@rippling/pebble-sdui-mobile 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,43 +1,44 @@
1
1
  import { buildNode as P } from "../../core/component-utils.js";
2
- import { buildAction as ot } from "../../core/action-utils.js";
2
+ import { buildAction as ze } from "../../core/action-utils.js";
3
3
  import { createCatalogSchemaValidator as Yo } from "../../core/catalog-validation.js";
4
- import { renderElementTree as Zo } from "../../core/spec.js";
5
- const du = (e) => P("ActionCard", e), cu = (e) => P("Anchor", e), pu = (e) => P("Animation", e), uu = (e) => P("Avatar", e), fu = (e) => P("AvatarStack", e), hu = (e) => P("Badge", e), mu = (e) => P("Button", e), gu = (e) => P("Card", e), yu = (e) => P("Checkbox", e), $u = (e) => P("CheckboxGroup", e), bu = (e) => P("Chip", e), vu = (e) => P("Country", e), Su = (e) => P("Currency", e), wu = (e) => P("Date", e), ku = (e) => P("DateRange", e), Ou = (e) => P("DateTimePicker", e), Cu = (e) => P("Divider", e), Pu = (e) => P("Email", e), _u = (e) => P("ExpansionPanel", e), Vu = (e) => P("FileViewerButton", e), Du = (e) => P("FileViewerPressable", e), Fu = (e) => P("FloatingButton", e), ju = (e) => P("Form", e), Ru = (e) => P("Group", e), Tu = (e) => P("Hidden", e), Iu = (e) => P("HStack", e), Eu = (e) => P("Icon", e), xu = (e) => P("Image", e), Au = (e) => P("InputText", e), Nu = (e) => P("Label", e), zu = (e) => P("List", e), Mu = (e) => P("ListItem", e), Lu = (e) => P("ModalSheet", e), Bu = (e) => P("Notice", e), qu = (e) => P("Number", e), Hu = (e) => P("ObjectFooter", e), Wu = (e) => P("ObjectItem", e), Uu = (e) => P("ObjectListView", e), Gu = (e) => P("ObjectListViewCard", e), Ku = (e) => P("PageCondensedFooter", e), Ju = (e) => P("PageCondensedHeader", e), Yu = (e) => P("PageContent", e), Zu = (e) => P("PageFilterHeader", e), Xu = (e) => P("PageFooter", e), Qu = (e) => P("PageHeader", e), ef = (e) => P("PageModalActionHeader", e), tf = (e) => P("Password", e), rf = (e) => P("Percentage", e), of = (e) => P("Phone", e), nf = (e) => P("Pressable", e), sf = (e) => P("ProgressIndicator", e), af = (e) => P("Radio", e), lf = (e) => P("RadioGroup", e), df = (e) => P("Search", e), cf = (e) => P("SectionHeader", e), pf = (e) => P("Select", e), uf = (e) => P("SelectChips", e), ff = (e) => P("Signature", e), hf = (e) => P("Sin", e), mf = (e) => P("Slider", e), gf = (e) => P("SliderRange", e), yf = (e) => P("SnackBar", e), $f = (e) => P("Spacer", e), bf = (e) => P("Spinner", e), vf = (e) => P("Ssn", e), Sf = (e) => P("Status", e), wf = (e) => P("StatusBar", e), kf = (e) => P("Switch", e), Of = (e) => P("Tabs", e), Cf = (e) => P("Text", e), Pf = (e) => P("Textarea", e), _f = (e) => P("Time", e), Vf = (e) => P("TimeRange", e), Df = (e) => P("Tip", e), Ff = (e) => P("VStack", e), jf = (e) => P("Widget", e), Rf = (e) => P("WorkEmail", e), Tf = (e, t) => ot("goBack", e, t), If = (e, t) => ot("navigate", e, t), Ef = (e, t) => ot("push", e, t), xf = (e, t) => ot("setState", e, t), Af = (e, t) => ot("triggerApi", e, t), Nf = (e) => ({
4
+ import { renderComponentMarkdown as Zo } from "../../core/component-markdown.js";
5
+ import { renderElementTree as Xo } from "../../core/spec.js";
6
+ const uu = (e) => P("ActionCard", e), fu = (e) => P("Anchor", e), hu = (e) => P("Animation", e), mu = (e) => P("Avatar", e), gu = (e) => P("AvatarStack", e), yu = (e) => P("Badge", e), bu = (e) => P("Button", e), $u = (e) => P("Card", e), vu = (e) => P("Checkbox", e), Su = (e) => P("CheckboxGroup", e), wu = (e) => P("Chip", e), ku = (e) => P("Country", e), Ou = (e) => P("Currency", e), Cu = (e) => P("Date", e), Pu = (e) => P("DateRange", e), _u = (e) => P("DateTimePicker", e), Vu = (e) => P("Divider", e), Du = (e) => P("Email", e), Fu = (e) => P("ExpansionPanel", e), ju = (e) => P("FileViewerButton", e), Ru = (e) => P("FileViewerPressable", e), Tu = (e) => P("FloatingButton", e), Iu = (e) => P("Form", e), Eu = (e) => P("Group", e), xu = (e) => P("Hidden", e), Au = (e) => P("HStack", e), Nu = (e) => P("Icon", e), zu = (e) => P("Image", e), Mu = (e) => P("InputText", e), Lu = (e) => P("Label", e), Bu = (e) => P("List", e), qu = (e) => P("ListItem", e), Hu = (e) => P("ModalSheet", e), Wu = (e) => P("Notice", e), Uu = (e) => P("Number", e), Gu = (e) => P("ObjectFooter", e), Ku = (e) => P("ObjectItem", e), Ju = (e) => P("ObjectListView", e), Yu = (e) => P("ObjectListViewCard", e), Zu = (e) => P("PageCondensedFooter", e), Xu = (e) => P("PageCondensedHeader", e), Qu = (e) => P("PageContent", e), ef = (e) => P("PageFilterHeader", e), tf = (e) => P("PageFooter", e), rf = (e) => P("PageHeader", e), of = (e) => P("PageModalActionHeader", e), nf = (e) => P("Password", e), sf = (e) => P("Percentage", e), af = (e) => P("Phone", e), lf = (e) => P("Pressable", e), df = (e) => P("ProgressIndicator", e), cf = (e) => P("Radio", e), pf = (e) => P("RadioGroup", e), uf = (e) => P("Search", e), ff = (e) => P("SectionHeader", e), hf = (e) => P("Select", e), mf = (e) => P("SelectChips", e), gf = (e) => P("Signature", e), yf = (e) => P("Sin", e), bf = (e) => P("Slider", e), $f = (e) => P("SliderRange", e), vf = (e) => P("SnackBar", e), Sf = (e) => P("Spacer", e), wf = (e) => P("Spinner", e), kf = (e) => P("Ssn", e), Of = (e) => P("Status", e), Cf = (e) => P("StatusBar", e), Pf = (e) => P("Switch", e), _f = (e) => P("Tabs", e), Vf = (e) => P("Text", e), Df = (e) => P("Textarea", e), Ff = (e) => P("Time", e), jf = (e) => P("TimeRange", e), Rf = (e) => P("Tip", e), Tf = (e) => P("VStack", e), If = (e) => P("Widget", e), Ef = (e) => P("WorkEmail", e), xf = (e, t) => ze("copyToClipboard", e, t), Af = (e, t) => ze("goBack", e, t), Nf = (e, t) => ze("navigate", e, t), zf = (e, t) => ze("push", e, t), Mf = (e, t) => ze("setState", e, t), Lf = (e, t) => ze("triggerApi", e, t), Bf = (e) => ({
6
7
  $computed: "currency_format",
7
8
  args: e
8
- }), zf = (e) => ({
9
+ }), qf = (e) => ({
9
10
  $computed: "currency_getCurrencyCodeByCountryCode",
10
11
  args: e
11
- }), Mf = (e) => ({
12
+ }), Hf = (e) => ({
12
13
  $computed: "currency_getCurrencyNameByCode",
13
14
  args: e
14
- }), Lf = (e) => ({
15
+ }), Wf = (e) => ({
15
16
  $computed: "currency_getCurrencySymbol",
16
17
  args: e
17
- }), Bf = (e) => ({
18
+ }), Uf = (e) => ({
18
19
  $computed: "currency_isConvertableToCurrency",
19
20
  args: e
20
- }), qf = (e) => ({
21
+ }), Gf = (e) => ({
21
22
  $computed: "currency_toMoney",
22
23
  args: e
23
- }), Hf = (e) => ({
24
+ }), Kf = (e) => ({
24
25
  $computed: "dateTime_add",
25
26
  args: e
26
- }), Wf = (e) => ({
27
+ }), Jf = (e) => ({
27
28
  $computed: "dateTime_format",
28
29
  args: e
29
30
  });
30
- var tr = { exports: {} }, qi = {}, oe = {}, xe = {}, nt = {}, E = {}, it = {};
31
+ var tr = { exports: {} }, qi = {}, oe = {}, xe = {}, nt = {}, E = {}, ot = {};
31
32
  (function(e) {
32
33
  Object.defineProperty(e, "__esModule", { value: !0 }), e.regexpCode = e.getEsmExportName = e.getProperty = e.safeStringify = e.stringify = e.strConcat = e.addCodeArg = e.str = e._ = e.nil = e._Code = e.Name = e.IDENTIFIER = e._CodeOrName = void 0;
33
34
  class t {
34
35
  }
35
36
  e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
36
37
  class r extends t {
37
- constructor($) {
38
- if (super(), !e.IDENTIFIER.test($))
38
+ constructor(b) {
39
+ if (super(), !e.IDENTIFIER.test(b))
39
40
  throw new Error("CodeGen: name must be a valid identifier");
40
- this.str = $;
41
+ this.str = b;
41
42
  }
42
43
  toString() {
43
44
  return this.str;
@@ -51,8 +52,8 @@ var tr = { exports: {} }, qi = {}, oe = {}, xe = {}, nt = {}, E = {}, it = {};
51
52
  }
52
53
  e.Name = r;
53
54
  class i extends t {
54
- constructor($) {
55
- super(), this._items = typeof $ == "string" ? [$] : $;
55
+ constructor(b) {
56
+ super(), this._items = typeof b == "string" ? [b] : b;
56
57
  }
57
58
  toString() {
58
59
  return this.str;
@@ -60,66 +61,66 @@ var tr = { exports: {} }, qi = {}, oe = {}, xe = {}, nt = {}, E = {}, it = {};
60
61
  emptyStr() {
61
62
  if (this._items.length > 1)
62
63
  return !1;
63
- const $ = this._items[0];
64
- return $ === "" || $ === '""';
64
+ const b = this._items[0];
65
+ return b === "" || b === '""';
65
66
  }
66
67
  get str() {
67
- var $;
68
- return ($ = this._str) !== null && $ !== void 0 ? $ : this._str = this._items.reduce((C, D) => `${C}${D}`, "");
68
+ var b;
69
+ return (b = this._str) !== null && b !== void 0 ? b : this._str = this._items.reduce((C, D) => `${C}${D}`, "");
69
70
  }
70
71
  get names() {
71
- var $;
72
- return ($ = this._names) !== null && $ !== void 0 ? $ : this._names = this._items.reduce((C, D) => (D instanceof r && (C[D.str] = (C[D.str] || 0) + 1), C), {});
72
+ var b;
73
+ return (b = this._names) !== null && b !== void 0 ? b : this._names = this._items.reduce((C, D) => (D instanceof r && (C[D.str] = (C[D.str] || 0) + 1), C), {});
73
74
  }
74
75
  }
75
76
  e._Code = i, e.nil = new i("");
76
- function o(u, ...$) {
77
+ function o(u, ...b) {
77
78
  const C = [u[0]];
78
79
  let D = 0;
79
- for (; D < $.length; )
80
- l(C, $[D]), C.push(u[++D]);
80
+ for (; D < b.length; )
81
+ l(C, b[D]), C.push(u[++D]);
81
82
  return new i(C);
82
83
  }
83
84
  e._ = o;
84
85
  const n = new i("+");
85
- function a(u, ...$) {
86
+ function a(u, ...b) {
86
87
  const C = [S(u[0])];
87
88
  let D = 0;
88
- for (; D < $.length; )
89
- C.push(n), l(C, $[D]), C.push(n, S(u[++D]));
89
+ for (; D < b.length; )
90
+ C.push(n), l(C, b[D]), C.push(n, S(u[++D]));
90
91
  return d(C), new i(C);
91
92
  }
92
93
  e.str = a;
93
- function l(u, $) {
94
- $ instanceof i ? u.push(...$._items) : $ instanceof r ? u.push($) : u.push(h($));
94
+ function l(u, b) {
95
+ b instanceof i ? u.push(...b._items) : b instanceof r ? u.push(b) : u.push(h(b));
95
96
  }
96
97
  e.addCodeArg = l;
97
98
  function d(u) {
98
- let $ = 1;
99
- for (; $ < u.length - 1; ) {
100
- if (u[$] === n) {
101
- const C = c(u[$ - 1], u[$ + 1]);
99
+ let b = 1;
100
+ for (; b < u.length - 1; ) {
101
+ if (u[b] === n) {
102
+ const C = c(u[b - 1], u[b + 1]);
102
103
  if (C !== void 0) {
103
- u.splice($ - 1, 3, C);
104
+ u.splice(b - 1, 3, C);
104
105
  continue;
105
106
  }
106
- u[$++] = "+";
107
+ u[b++] = "+";
107
108
  }
108
- $++;
109
+ b++;
109
110
  }
110
111
  }
111
- function c(u, $) {
112
- if ($ === '""')
112
+ function c(u, b) {
113
+ if (b === '""')
113
114
  return u;
114
115
  if (u === '""')
115
- return $;
116
+ return b;
116
117
  if (typeof u == "string")
117
- return $ instanceof r || u[u.length - 1] !== '"' ? void 0 : typeof $ != "string" ? `${u.slice(0, -1)}${$}"` : $[0] === '"' ? u.slice(0, -1) + $.slice(1) : void 0;
118
- if (typeof $ == "string" && $[0] === '"' && !(u instanceof r))
119
- return `"${u}${$.slice(1)}`;
118
+ return b instanceof r || u[u.length - 1] !== '"' ? void 0 : typeof b != "string" ? `${u.slice(0, -1)}${b}"` : b[0] === '"' ? u.slice(0, -1) + b.slice(1) : void 0;
119
+ if (typeof b == "string" && b[0] === '"' && !(u instanceof r))
120
+ return `"${u}${b.slice(1)}`;
120
121
  }
121
- function f(u, $) {
122
- return $.emptyStr() ? u : u.emptyStr() ? $ : a`${u}${$}`;
122
+ function f(u, b) {
123
+ return b.emptyStr() ? u : u.emptyStr() ? b : a`${u}${b}`;
123
124
  }
124
125
  e.strConcat = f;
125
126
  function h(u) {
@@ -133,10 +134,10 @@ var tr = { exports: {} }, qi = {}, oe = {}, xe = {}, nt = {}, E = {}, it = {};
133
134
  return JSON.stringify(u).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
134
135
  }
135
136
  e.safeStringify = S;
136
- function b(u) {
137
+ function $(u) {
137
138
  return typeof u == "string" && e.IDENTIFIER.test(u) ? new i(`.${u}`) : o`[${u}]`;
138
139
  }
139
- e.getProperty = b;
140
+ e.getProperty = $;
140
141
  function w(u) {
141
142
  if (typeof u == "string" && e.IDENTIFIER.test(u))
142
143
  return new i(`${u}`);
@@ -147,11 +148,11 @@ var tr = { exports: {} }, qi = {}, oe = {}, xe = {}, nt = {}, E = {}, it = {};
147
148
  return new i(u.toString());
148
149
  }
149
150
  e.regexpCode = g;
150
- })(it);
151
+ })(ot);
151
152
  var rr = {};
152
153
  (function(e) {
153
154
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
154
- const t = it;
155
+ const t = ot;
155
156
  class r extends Error {
156
157
  constructor(c) {
157
158
  super(`CodeGen: "code" for ${c} not defined`), this.value = c.value;
@@ -211,15 +212,15 @@ var rr = {};
211
212
  var h;
212
213
  if (f.ref === void 0)
213
214
  throw new Error("CodeGen: ref must be passed in value");
214
- const k = this.toName(c), { prefix: S } = k, b = (h = f.key) !== null && h !== void 0 ? h : f.ref;
215
+ const k = this.toName(c), { prefix: S } = k, $ = (h = f.key) !== null && h !== void 0 ? h : f.ref;
215
216
  let w = this._values[S];
216
217
  if (w) {
217
- const $ = w.get(b);
218
- if ($)
219
- return $;
218
+ const b = w.get($);
219
+ if (b)
220
+ return b;
220
221
  } else
221
222
  w = this._values[S] = /* @__PURE__ */ new Map();
222
- w.set(b, k);
223
+ w.set($, k);
223
224
  const g = this._scope[S] || (this._scope[S] = []), u = g.length;
224
225
  return g[u] = f.ref, k.setValue(f, { property: S, itemIndex: u }), k;
225
226
  }
@@ -244,21 +245,21 @@ var rr = {};
244
245
  }
245
246
  _reduceValues(c, f, h = {}, k) {
246
247
  let S = t.nil;
247
- for (const b in c) {
248
- const w = c[b];
248
+ for (const $ in c) {
249
+ const w = c[$];
249
250
  if (!w)
250
251
  continue;
251
- const g = h[b] = h[b] || /* @__PURE__ */ new Map();
252
+ const g = h[$] = h[$] || /* @__PURE__ */ new Map();
252
253
  w.forEach((u) => {
253
254
  if (g.has(u))
254
255
  return;
255
256
  g.set(u, i.Started);
256
- let $ = f(u);
257
- if ($) {
257
+ let b = f(u);
258
+ if (b) {
258
259
  const C = this.opts.es5 ? e.varKinds.var : e.varKinds.const;
259
- S = (0, t._)`${S}${C} ${u} = ${$};${this.opts._n}`;
260
- } else if ($ = k == null ? void 0 : k(u))
261
- S = (0, t._)`${S}${$}${this.opts._n}`;
260
+ S = (0, t._)`${S}${C} ${u} = ${b};${this.opts._n}`;
261
+ } else if (b = k == null ? void 0 : k(u))
262
+ S = (0, t._)`${S}${b}${this.opts._n}`;
262
263
  else
263
264
  throw new r(u);
264
265
  g.set(u, i.Completed);
@@ -271,8 +272,8 @@ var rr = {};
271
272
  })(rr);
272
273
  (function(e) {
273
274
  Object.defineProperty(e, "__esModule", { value: !0 }), e.or = e.and = e.not = e.CodeGen = e.operators = e.varKinds = e.ValueScopeName = e.ValueScope = e.Scope = e.Name = e.regexpCode = e.stringify = e.getProperty = e.nil = e.strConcat = e.str = e._ = void 0;
274
- const t = it, r = rr;
275
- var i = it;
275
+ const t = ot, r = rr;
276
+ var i = ot;
276
277
  Object.defineProperty(e, "_", { enumerable: !0, get: function() {
277
278
  return i._;
278
279
  } }), Object.defineProperty(e, "str", { enumerable: !0, get: function() {
@@ -329,7 +330,7 @@ var rr = {};
329
330
  }
330
331
  optimizeNames(s, p) {
331
332
  if (s[this.name.str])
332
- return this.rhs && (this.rhs = fe(this.rhs, s, p)), this;
333
+ return this.rhs && (this.rhs = he(this.rhs, s, p)), this;
333
334
  }
334
335
  get names() {
335
336
  return this.rhs instanceof t._CodeOrName ? this.rhs.names : {};
@@ -344,11 +345,11 @@ var rr = {};
344
345
  }
345
346
  optimizeNames(s, p) {
346
347
  if (!(this.lhs instanceof t.Name && !s[this.lhs.str] && !this.sideEffects))
347
- return this.rhs = fe(this.rhs, s, p), this;
348
+ return this.rhs = he(this.rhs, s, p), this;
348
349
  }
349
350
  get names() {
350
351
  const s = this.lhs instanceof t.Name ? {} : { ...this.lhs.names };
351
- return _e(s, this.rhs);
352
+ return Ve(s, this.rhs);
352
353
  }
353
354
  }
354
355
  class d extends l {
@@ -397,7 +398,7 @@ var rr = {};
397
398
  return `${this.code}` ? this : void 0;
398
399
  }
399
400
  optimizeNames(s, p) {
400
- return this.code = fe(this.code, s, p), this;
401
+ return this.code = he(this.code, s, p), this;
401
402
  }
402
403
  get names() {
403
404
  return this.code instanceof t._CodeOrName ? this.code.names : {};
@@ -424,7 +425,7 @@ var rr = {};
424
425
  let R = v.length;
425
426
  for (; R--; ) {
426
427
  const T = v[R];
427
- T.optimizeNames(s, p) || (We(s, T.names), v.splice(R, 1));
428
+ T.optimizeNames(s, p) || (Ue(s, T.names), v.splice(R, 1));
428
429
  }
429
430
  return v.length > 0 ? this : void 0;
430
431
  }
@@ -432,17 +433,17 @@ var rr = {};
432
433
  return this.nodes.reduce((s, p) => le(s, p.names), {});
433
434
  }
434
435
  }
435
- class b extends S {
436
+ class $ extends S {
436
437
  render(s) {
437
438
  return "{" + s._n + super.render(s) + "}" + s._n;
438
439
  }
439
440
  }
440
441
  class w extends S {
441
442
  }
442
- class g extends b {
443
+ class g extends $ {
443
444
  }
444
445
  g.kind = "else";
445
- class u extends b {
446
+ class u extends $ {
446
447
  constructor(s, p) {
447
448
  super(p), this.condition = s;
448
449
  }
@@ -468,18 +469,18 @@ var rr = {};
468
469
  optimizeNames(s, p) {
469
470
  var v;
470
471
  if (this.else = (v = this.else) === null || v === void 0 ? void 0 : v.optimizeNames(s, p), !!(super.optimizeNames(s, p) || this.else))
471
- return this.condition = fe(this.condition, s, p), this;
472
+ return this.condition = he(this.condition, s, p), this;
472
473
  }
473
474
  get names() {
474
475
  const s = super.names;
475
- return _e(s, this.condition), this.else && le(s, this.else.names), s;
476
+ return Ve(s, this.condition), this.else && le(s, this.else.names), s;
476
477
  }
477
478
  }
478
479
  u.kind = "if";
479
- class $ extends b {
480
+ class b extends $ {
480
481
  }
481
- $.kind = "for";
482
- class C extends $ {
482
+ b.kind = "for";
483
+ class C extends b {
483
484
  constructor(s) {
484
485
  super(), this.iteration = s;
485
486
  }
@@ -488,13 +489,13 @@ var rr = {};
488
489
  }
489
490
  optimizeNames(s, p) {
490
491
  if (super.optimizeNames(s, p))
491
- return this.iteration = fe(this.iteration, s, p), this;
492
+ return this.iteration = he(this.iteration, s, p), this;
492
493
  }
493
494
  get names() {
494
495
  return le(super.names, this.iteration.names);
495
496
  }
496
497
  }
497
- class D extends $ {
498
+ class D extends b {
498
499
  constructor(s, p, v, R) {
499
500
  super(), this.varKind = s, this.name = p, this.from = v, this.to = R;
500
501
  }
@@ -503,11 +504,11 @@ var rr = {};
503
504
  return `for(${p} ${v}=${R}; ${v}<${T}; ${v}++)` + super.render(s);
504
505
  }
505
506
  get names() {
506
- const s = _e(super.names, this.from);
507
- return _e(s, this.to);
507
+ const s = Ve(super.names, this.from);
508
+ return Ve(s, this.to);
508
509
  }
509
510
  }
510
- class F extends $ {
511
+ class F extends b {
511
512
  constructor(s, p, v, R) {
512
513
  super(), this.loop = s, this.varKind = p, this.name = v, this.iterable = R;
513
514
  }
@@ -516,13 +517,13 @@ var rr = {};
516
517
  }
517
518
  optimizeNames(s, p) {
518
519
  if (super.optimizeNames(s, p))
519
- return this.iterable = fe(this.iterable, s, p), this;
520
+ return this.iterable = he(this.iterable, s, p), this;
520
521
  }
521
522
  get names() {
522
523
  return le(super.names, this.iterable.names);
523
524
  }
524
525
  }
525
- class L extends b {
526
+ class L extends $ {
526
527
  constructor(s, p, v) {
527
528
  super(), this.name = s, this.args = p, this.async = v;
528
529
  }
@@ -537,7 +538,7 @@ var rr = {};
537
538
  }
538
539
  }
539
540
  H.kind = "return";
540
- class ae extends b {
541
+ class ae extends $ {
541
542
  render(s) {
542
543
  let p = "try" + super.render(s);
543
544
  return this.catch && (p += this.catch.render(s)), this.finally && (p += this.finally.render(s)), p;
@@ -555,7 +556,7 @@ var rr = {};
555
556
  return this.catch && le(s, this.catch.names), this.finally && le(s, this.finally.names), s;
556
557
  }
557
558
  }
558
- class ue extends b {
559
+ class fe extends $ {
559
560
  constructor(s) {
560
561
  super(), this.error = s;
561
562
  }
@@ -563,14 +564,14 @@ var rr = {};
563
564
  return `catch(${this.error})` + super.render(s);
564
565
  }
565
566
  }
566
- ue.kind = "catch";
567
- class be extends b {
567
+ fe.kind = "catch";
568
+ class ve extends $ {
568
569
  render(s) {
569
570
  return "finally" + super.render(s);
570
571
  }
571
572
  }
572
- be.kind = "finally";
573
- class He {
573
+ ve.kind = "finally";
574
+ class We {
574
575
  constructor(s, p = {}) {
575
576
  this._values = {}, this._blockStarts = [], this._constants = {}, this.opts = { ...p, _n: p.lines ? `
576
577
  ` : "" }, this._extScope = s, this._scope = new r.Scope({ parent: s }), this._nodes = [new w()];
@@ -692,7 +693,7 @@ var rr = {};
692
693
  }
693
694
  // end `for` loop
694
695
  endFor() {
695
- return this._endBlockNode($);
696
+ return this._endBlockNode(b);
696
697
  }
697
698
  // `label` statement
698
699
  label(s) {
@@ -716,9 +717,9 @@ var rr = {};
716
717
  const R = new ae();
717
718
  if (this._blockNode(R), this.code(s), p) {
718
719
  const T = this.name("e");
719
- this._currNode = R.catch = new ue(T), p(T);
720
+ this._currNode = R.catch = new fe(T), p(T);
720
721
  }
721
- return v && (this._currNode = R.finally = new be(), this.code(v)), this._endBlockNode(ue, be);
722
+ return v && (this._currNode = R.finally = new ve(), this.code(v)), this._endBlockNode(fe, ve);
722
723
  }
723
724
  // `throw` statement
724
725
  throw(s) {
@@ -780,16 +781,16 @@ var rr = {};
780
781
  p[p.length - 1] = s;
781
782
  }
782
783
  }
783
- e.CodeGen = He;
784
+ e.CodeGen = We;
784
785
  function le(y, s) {
785
786
  for (const p in s)
786
787
  y[p] = (y[p] || 0) + (s[p] || 0);
787
788
  return y;
788
789
  }
789
- function _e(y, s) {
790
+ function Ve(y, s) {
790
791
  return s instanceof t._CodeOrName ? le(y, s.names) : y;
791
792
  }
792
- function fe(y, s, p) {
793
+ function he(y, s, p) {
793
794
  if (y instanceof t.Name)
794
795
  return v(y);
795
796
  if (!R(y))
@@ -803,7 +804,7 @@ var rr = {};
803
804
  return T instanceof t._Code && T._items.some((z) => z instanceof t.Name && s[z.str] === 1 && p[z.str] !== void 0);
804
805
  }
805
806
  }
806
- function We(y, s) {
807
+ function Ue(y, s) {
807
808
  for (const p in s)
808
809
  y[p] = (y[p] || 0) - (s[p] || 0);
809
810
  }
@@ -831,18 +832,18 @@ var rr = {};
831
832
  var V = {};
832
833
  Object.defineProperty(V, "__esModule", { value: !0 });
833
834
  V.checkStrictMode = V.getErrorPath = V.Type = V.useFunc = V.setEvaluated = V.evaluatedPropsToName = V.mergeEvaluated = V.eachItem = V.unescapeJsonPointer = V.escapeJsonPointer = V.escapeFragment = V.unescapeFragment = V.schemaRefOrVal = V.schemaHasRulesButRef = V.schemaHasRules = V.checkUnknownRules = V.alwaysValidSchema = V.toHash = void 0;
834
- const M = E, Xo = it;
835
- function Qo(e) {
835
+ const M = E, Qo = ot;
836
+ function en(e) {
836
837
  const t = {};
837
838
  for (const r of e)
838
839
  t[r] = !0;
839
840
  return t;
840
841
  }
841
- V.toHash = Qo;
842
- function en(e, t) {
842
+ V.toHash = en;
843
+ function tn(e, t) {
843
844
  return typeof t == "boolean" ? t : Object.keys(t).length === 0 ? !0 : (Hi(e, t), !Wi(t, e.self.RULES.all));
844
845
  }
845
- V.alwaysValidSchema = en;
846
+ V.alwaysValidSchema = tn;
846
847
  function Hi(e, t = e.schema) {
847
848
  const { opts: r, self: i } = e;
848
849
  if (!r.strictSchema || typeof t == "boolean")
@@ -861,7 +862,7 @@ function Wi(e, t) {
861
862
  return !1;
862
863
  }
863
864
  V.schemaHasRules = Wi;
864
- function tn(e, t) {
865
+ function rn(e, t) {
865
866
  if (typeof e == "boolean")
866
867
  return !e;
867
868
  for (const r in e)
@@ -869,8 +870,8 @@ function tn(e, t) {
869
870
  return !0;
870
871
  return !1;
871
872
  }
872
- V.schemaHasRulesButRef = tn;
873
- function rn({ topSchemaRef: e, schemaPath: t }, r, i, o) {
873
+ V.schemaHasRulesButRef = rn;
874
+ function on({ topSchemaRef: e, schemaPath: t }, r, i, o) {
874
875
  if (!o) {
875
876
  if (typeof r == "number" || typeof r == "boolean")
876
877
  return r;
@@ -879,15 +880,15 @@ function rn({ topSchemaRef: e, schemaPath: t }, r, i, o) {
879
880
  }
880
881
  return (0, M._)`${e}${t}${(0, M.getProperty)(i)}`;
881
882
  }
882
- V.schemaRefOrVal = rn;
883
- function on(e) {
883
+ V.schemaRefOrVal = on;
884
+ function nn(e) {
884
885
  return Ui(decodeURIComponent(e));
885
886
  }
886
- V.unescapeFragment = on;
887
- function nn(e) {
887
+ V.unescapeFragment = nn;
888
+ function sn(e) {
888
889
  return encodeURIComponent(dr(e));
889
890
  }
890
- V.escapeFragment = nn;
891
+ V.escapeFragment = sn;
891
892
  function dr(e) {
892
893
  return typeof e == "number" ? `${e}` : e.replace(/~/g, "~0").replace(/\//g, "~1");
893
894
  }
@@ -896,14 +897,14 @@ function Ui(e) {
896
897
  return e.replace(/~1/g, "/").replace(/~0/g, "~");
897
898
  }
898
899
  V.unescapeJsonPointer = Ui;
899
- function sn(e, t) {
900
+ function an(e, t) {
900
901
  if (Array.isArray(e))
901
902
  for (const r of e)
902
903
  t(r);
903
904
  else
904
905
  t(e);
905
906
  }
906
- V.eachItem = sn;
907
+ V.eachItem = an;
907
908
  function fi({ mergeNames: e, mergeToName: t, mergeValues: r, resultToName: i }) {
908
909
  return (o, n, a, l) => {
909
910
  const d = a === void 0 ? n : a instanceof M.Name ? (n instanceof M.Name ? e(o, n, a) : t(o, n, a), a) : n instanceof M.Name ? (t(o, a, n), n) : r(n, a);
@@ -940,25 +941,25 @@ function cr(e, t, r) {
940
941
  }
941
942
  V.setEvaluated = cr;
942
943
  const hi = {};
943
- function an(e, t) {
944
+ function ln(e, t) {
944
945
  return e.scopeValue("func", {
945
946
  ref: t,
946
- code: hi[t.code] || (hi[t.code] = new Xo._Code(t.code))
947
+ code: hi[t.code] || (hi[t.code] = new Qo._Code(t.code))
947
948
  });
948
949
  }
949
- V.useFunc = an;
950
+ V.useFunc = ln;
950
951
  var ir;
951
952
  (function(e) {
952
953
  e[e.Num = 0] = "Num", e[e.Str = 1] = "Str";
953
954
  })(ir || (V.Type = ir = {}));
954
- function ln(e, t, r) {
955
+ function dn(e, t, r) {
955
956
  if (e instanceof M.Name) {
956
957
  const i = t === ir.Num;
957
958
  return r ? i ? (0, M._)`"[" + ${e} + "]"` : (0, M._)`"['" + ${e} + "']"` : i ? (0, M._)`"/" + ${e}` : (0, M._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`;
958
959
  }
959
960
  return r ? (0, M.getProperty)(e).toString() : "/" + dr(e);
960
961
  }
961
- V.getErrorPath = ln;
962
+ V.getErrorPath = dn;
962
963
  function Ki(e, t, r = e.opts.strictSchema) {
963
964
  if (r) {
964
965
  if (t = `strict mode: ${t}`, r === !0)
@@ -969,7 +970,7 @@ function Ki(e, t, r = e.opts.strictSchema) {
969
970
  V.checkStrictMode = Ki;
970
971
  var Q = {};
971
972
  Object.defineProperty(Q, "__esModule", { value: !0 });
972
- const J = E, dn = {
973
+ const J = E, cn = {
973
974
  // validation function arguments
974
975
  data: new J.Name("data"),
975
976
  // data passed to validation function
@@ -998,7 +999,7 @@ const J = E, dn = {
998
999
  jsonLen: new J.Name("jsonLen"),
999
1000
  jsonPart: new J.Name("jsonPart")
1000
1001
  };
1001
- Q.default = dn;
1002
+ Q.default = cn;
1002
1003
  (function(e) {
1003
1004
  Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
1004
1005
  const t = E, r = V, i = Q;
@@ -1007,13 +1008,13 @@ Q.default = dn;
1007
1008
  }, e.keyword$DataError = {
1008
1009
  message: ({ keyword: g, schemaType: u }) => u ? (0, t.str)`"${g}" keyword must be ${u} ($data)` : (0, t.str)`"${g}" keyword is invalid ($data)`
1009
1010
  };
1010
- function o(g, u = e.keywordError, $, C) {
1011
- const { it: D } = g, { gen: F, compositeRule: L, allErrors: H } = D, ae = h(g, u, $);
1011
+ function o(g, u = e.keywordError, b, C) {
1012
+ const { it: D } = g, { gen: F, compositeRule: L, allErrors: H } = D, ae = h(g, u, b);
1012
1013
  C ?? (L || H) ? d(F, ae) : c(D, (0, t._)`[${ae}]`);
1013
1014
  }
1014
1015
  e.reportError = o;
1015
- function n(g, u = e.keywordError, $) {
1016
- const { it: C } = g, { gen: D, compositeRule: F, allErrors: L } = C, H = h(g, u, $);
1016
+ function n(g, u = e.keywordError, b) {
1017
+ const { it: C } = g, { gen: D, compositeRule: F, allErrors: L } = C, H = h(g, u, b);
1017
1018
  d(D, H), F || L || c(C, i.default.vErrors);
1018
1019
  }
1019
1020
  e.reportExtraError = n;
@@ -1021,22 +1022,22 @@ Q.default = dn;
1021
1022
  g.assign(i.default.errors, u), g.if((0, t._)`${i.default.vErrors} !== null`, () => g.if(u, () => g.assign((0, t._)`${i.default.vErrors}.length`, u), () => g.assign(i.default.vErrors, null)));
1022
1023
  }
1023
1024
  e.resetErrorsCount = a;
1024
- function l({ gen: g, keyword: u, schemaValue: $, data: C, errsCount: D, it: F }) {
1025
+ function l({ gen: g, keyword: u, schemaValue: b, data: C, errsCount: D, it: F }) {
1025
1026
  if (D === void 0)
1026
1027
  throw new Error("ajv implementation error");
1027
1028
  const L = g.name("err");
1028
1029
  g.forRange("i", D, i.default.errors, (H) => {
1029
- g.const(L, (0, t._)`${i.default.vErrors}[${H}]`), g.if((0, t._)`${L}.instancePath === undefined`, () => g.assign((0, t._)`${L}.instancePath`, (0, t.strConcat)(i.default.instancePath, F.errorPath))), g.assign((0, t._)`${L}.schemaPath`, (0, t.str)`${F.errSchemaPath}/${u}`), F.opts.verbose && (g.assign((0, t._)`${L}.schema`, $), g.assign((0, t._)`${L}.data`, C));
1030
+ g.const(L, (0, t._)`${i.default.vErrors}[${H}]`), g.if((0, t._)`${L}.instancePath === undefined`, () => g.assign((0, t._)`${L}.instancePath`, (0, t.strConcat)(i.default.instancePath, F.errorPath))), g.assign((0, t._)`${L}.schemaPath`, (0, t.str)`${F.errSchemaPath}/${u}`), F.opts.verbose && (g.assign((0, t._)`${L}.schema`, b), g.assign((0, t._)`${L}.data`, C));
1030
1031
  });
1031
1032
  }
1032
1033
  e.extendErrors = l;
1033
1034
  function d(g, u) {
1034
- const $ = g.const("err", u);
1035
- g.if((0, t._)`${i.default.vErrors} === null`, () => g.assign(i.default.vErrors, (0, t._)`[${$}]`), (0, t._)`${i.default.vErrors}.push(${$})`), g.code((0, t._)`${i.default.errors}++`);
1035
+ const b = g.const("err", u);
1036
+ g.if((0, t._)`${i.default.vErrors} === null`, () => g.assign(i.default.vErrors, (0, t._)`[${b}]`), (0, t._)`${i.default.vErrors}.push(${b})`), g.code((0, t._)`${i.default.errors}++`);
1036
1037
  }
1037
1038
  function c(g, u) {
1038
- const { gen: $, validateName: C, schemaEnv: D } = g;
1039
- D.$async ? $.throw((0, t._)`new ${g.ValidationError}(${u})`) : ($.assign((0, t._)`${C}.errors`, u), $.return(!1));
1039
+ const { gen: b, validateName: C, schemaEnv: D } = g;
1040
+ D.$async ? b.throw((0, t._)`new ${g.ValidationError}(${u})`) : (b.assign((0, t._)`${C}.errors`, u), b.return(!1));
1040
1041
  }
1041
1042
  const f = {
1042
1043
  keyword: new t.Name("keyword"),
@@ -1048,45 +1049,45 @@ Q.default = dn;
1048
1049
  schema: new t.Name("schema"),
1049
1050
  parentSchema: new t.Name("parentSchema")
1050
1051
  };
1051
- function h(g, u, $) {
1052
+ function h(g, u, b) {
1052
1053
  const { createErrors: C } = g.it;
1053
- return C === !1 ? (0, t._)`{}` : k(g, u, $);
1054
+ return C === !1 ? (0, t._)`{}` : k(g, u, b);
1054
1055
  }
1055
- function k(g, u, $ = {}) {
1056
+ function k(g, u, b = {}) {
1056
1057
  const { gen: C, it: D } = g, F = [
1057
- S(D, $),
1058
- b(g, $)
1058
+ S(D, b),
1059
+ $(g, b)
1059
1060
  ];
1060
1061
  return w(g, u, F), C.object(...F);
1061
1062
  }
1062
1063
  function S({ errorPath: g }, { instancePath: u }) {
1063
- const $ = u ? (0, t.str)`${g}${(0, r.getErrorPath)(u, r.Type.Str)}` : g;
1064
- return [i.default.instancePath, (0, t.strConcat)(i.default.instancePath, $)];
1064
+ const b = u ? (0, t.str)`${g}${(0, r.getErrorPath)(u, r.Type.Str)}` : g;
1065
+ return [i.default.instancePath, (0, t.strConcat)(i.default.instancePath, b)];
1065
1066
  }
1066
- function b({ keyword: g, it: { errSchemaPath: u } }, { schemaPath: $, parentSchema: C }) {
1067
+ function $({ keyword: g, it: { errSchemaPath: u } }, { schemaPath: b, parentSchema: C }) {
1067
1068
  let D = C ? u : (0, t.str)`${u}/${g}`;
1068
- return $ && (D = (0, t.str)`${D}${(0, r.getErrorPath)($, r.Type.Str)}`), [f.schemaPath, D];
1069
+ return b && (D = (0, t.str)`${D}${(0, r.getErrorPath)(b, r.Type.Str)}`), [f.schemaPath, D];
1069
1070
  }
1070
- function w(g, { params: u, message: $ }, C) {
1071
- const { keyword: D, data: F, schemaValue: L, it: H } = g, { opts: ae, propertyName: ue, topSchemaRef: be, schemaPath: He } = H;
1072
- C.push([f.keyword, D], [f.params, typeof u == "function" ? u(g) : u || (0, t._)`{}`]), ae.messages && C.push([f.message, typeof $ == "function" ? $(g) : $]), ae.verbose && C.push([f.schema, L], [f.parentSchema, (0, t._)`${be}${He}`], [i.default.data, F]), ue && C.push([f.propertyName, ue]);
1071
+ function w(g, { params: u, message: b }, C) {
1072
+ const { keyword: D, data: F, schemaValue: L, it: H } = g, { opts: ae, propertyName: fe, topSchemaRef: ve, schemaPath: We } = H;
1073
+ C.push([f.keyword, D], [f.params, typeof u == "function" ? u(g) : u || (0, t._)`{}`]), ae.messages && C.push([f.message, typeof b == "function" ? b(g) : b]), ae.verbose && C.push([f.schema, L], [f.parentSchema, (0, t._)`${ve}${We}`], [i.default.data, F]), fe && C.push([f.propertyName, fe]);
1073
1074
  }
1074
1075
  })(nt);
1075
1076
  Object.defineProperty(xe, "__esModule", { value: !0 });
1076
1077
  xe.boolOrEmptySchema = xe.topBoolOrEmptySchema = void 0;
1077
- const cn = nt, pn = E, un = Q, fn = {
1078
+ const pn = nt, un = E, fn = Q, hn = {
1078
1079
  message: "boolean schema is false"
1079
1080
  };
1080
- function hn(e) {
1081
+ function mn(e) {
1081
1082
  const { gen: t, schema: r, validateName: i } = e;
1082
- r === !1 ? Ji(e, !1) : typeof r == "object" && r.$async === !0 ? t.return(un.default.data) : (t.assign((0, pn._)`${i}.errors`, null), t.return(!0));
1083
+ r === !1 ? Ji(e, !1) : typeof r == "object" && r.$async === !0 ? t.return(fn.default.data) : (t.assign((0, un._)`${i}.errors`, null), t.return(!0));
1083
1084
  }
1084
- xe.topBoolOrEmptySchema = hn;
1085
- function mn(e, t) {
1085
+ xe.topBoolOrEmptySchema = mn;
1086
+ function gn(e, t) {
1086
1087
  const { gen: r, schema: i } = e;
1087
1088
  i === !1 ? (r.var(t, !1), Ji(e)) : r.var(t, !0);
1088
1089
  }
1089
- xe.boolOrEmptySchema = mn;
1090
+ xe.boolOrEmptySchema = gn;
1090
1091
  function Ji(e, t) {
1091
1092
  const { gen: r, data: i } = e, o = {
1092
1093
  gen: r,
@@ -1098,17 +1099,17 @@ function Ji(e, t) {
1098
1099
  params: {},
1099
1100
  it: e
1100
1101
  };
1101
- (0, cn.reportError)(o, fn, void 0, t);
1102
+ (0, pn.reportError)(o, hn, void 0, t);
1102
1103
  }
1103
- var W = {}, Ce = {};
1104
- Object.defineProperty(Ce, "__esModule", { value: !0 });
1105
- Ce.getRules = Ce.isJSONType = void 0;
1106
- const gn = ["string", "number", "integer", "boolean", "null", "object", "array"], yn = new Set(gn);
1104
+ var W = {}, Pe = {};
1105
+ Object.defineProperty(Pe, "__esModule", { value: !0 });
1106
+ Pe.getRules = Pe.isJSONType = void 0;
1107
+ const yn = ["string", "number", "integer", "boolean", "null", "object", "array"], bn = new Set(yn);
1107
1108
  function $n(e) {
1108
- return typeof e == "string" && yn.has(e);
1109
+ return typeof e == "string" && bn.has(e);
1109
1110
  }
1110
- Ce.isJSONType = $n;
1111
- function bn() {
1111
+ Pe.isJSONType = $n;
1112
+ function vn() {
1112
1113
  const e = {
1113
1114
  number: { type: "number", rules: [] },
1114
1115
  string: { type: "string", rules: [] },
@@ -1123,15 +1124,15 @@ function bn() {
1123
1124
  keywords: {}
1124
1125
  };
1125
1126
  }
1126
- Ce.getRules = bn;
1127
+ Pe.getRules = vn;
1127
1128
  var de = {};
1128
1129
  Object.defineProperty(de, "__esModule", { value: !0 });
1129
1130
  de.shouldUseRule = de.shouldUseGroup = de.schemaHasRulesForType = void 0;
1130
- function vn({ schema: e, self: t }, r) {
1131
+ function Sn({ schema: e, self: t }, r) {
1131
1132
  const i = t.RULES.types[r];
1132
1133
  return i && i !== !0 && Yi(e, i);
1133
1134
  }
1134
- de.schemaHasRulesForType = vn;
1135
+ de.schemaHasRulesForType = Sn;
1135
1136
  function Yi(e, t) {
1136
1137
  return t.rules.some((r) => Zi(e, r));
1137
1138
  }
@@ -1143,12 +1144,12 @@ function Zi(e, t) {
1143
1144
  de.shouldUseRule = Zi;
1144
1145
  Object.defineProperty(W, "__esModule", { value: !0 });
1145
1146
  W.reportTypeError = W.checkDataTypes = W.checkDataType = W.coerceAndCheckDataType = W.getJSONTypes = W.getSchemaTypes = W.DataType = void 0;
1146
- const Sn = Ce, wn = de, kn = nt, x = E, Xi = V;
1147
- var Te;
1147
+ const wn = Pe, kn = de, On = nt, x = E, Xi = V;
1148
+ var Ie;
1148
1149
  (function(e) {
1149
1150
  e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
1150
- })(Te || (W.DataType = Te = {}));
1151
- function On(e) {
1151
+ })(Ie || (W.DataType = Ie = {}));
1152
+ function Cn(e) {
1152
1153
  const t = Qi(e.type);
1153
1154
  if (t.includes("null")) {
1154
1155
  if (e.nullable === !1)
@@ -1160,36 +1161,36 @@ function On(e) {
1160
1161
  }
1161
1162
  return t;
1162
1163
  }
1163
- W.getSchemaTypes = On;
1164
+ W.getSchemaTypes = Cn;
1164
1165
  function Qi(e) {
1165
1166
  const t = Array.isArray(e) ? e : e ? [e] : [];
1166
- if (t.every(Sn.isJSONType))
1167
+ if (t.every(wn.isJSONType))
1167
1168
  return t;
1168
1169
  throw new Error("type must be JSONType or JSONType[]: " + t.join(","));
1169
1170
  }
1170
1171
  W.getJSONTypes = Qi;
1171
- function Cn(e, t) {
1172
- const { gen: r, data: i, opts: o } = e, n = Pn(t, o.coerceTypes), a = t.length > 0 && !(n.length === 0 && t.length === 1 && (0, wn.schemaHasRulesForType)(e, t[0]));
1172
+ function Pn(e, t) {
1173
+ const { gen: r, data: i, opts: o } = e, n = _n(t, o.coerceTypes), a = t.length > 0 && !(n.length === 0 && t.length === 1 && (0, kn.schemaHasRulesForType)(e, t[0]));
1173
1174
  if (a) {
1174
- const l = pr(t, i, o.strictNumbers, Te.Wrong);
1175
+ const l = pr(t, i, o.strictNumbers, Ie.Wrong);
1175
1176
  r.if(l, () => {
1176
- n.length ? _n(e, t, n) : ur(e);
1177
+ n.length ? Vn(e, t, n) : ur(e);
1177
1178
  });
1178
1179
  }
1179
1180
  return a;
1180
1181
  }
1181
- W.coerceAndCheckDataType = Cn;
1182
+ W.coerceAndCheckDataType = Pn;
1182
1183
  const eo = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
1183
- function Pn(e, t) {
1184
+ function _n(e, t) {
1184
1185
  return t ? e.filter((r) => eo.has(r) || t === "array" && r === "array") : [];
1185
1186
  }
1186
- function _n(e, t, r) {
1187
+ function Vn(e, t, r) {
1187
1188
  const { gen: i, data: o, opts: n } = e, a = i.let("dataType", (0, x._)`typeof ${o}`), l = i.let("coerced", (0, x._)`undefined`);
1188
1189
  n.coerceTypes === "array" && i.if((0, x._)`${a} == 'object' && Array.isArray(${o}) && ${o}.length == 1`, () => i.assign(o, (0, x._)`${o}[0]`).assign(a, (0, x._)`typeof ${o}`).if(pr(t, o, n.strictNumbers), () => i.assign(l, o))), i.if((0, x._)`${l} !== undefined`);
1189
1190
  for (const c of r)
1190
1191
  (eo.has(c) || c === "array" && n.coerceTypes === "array") && d(c);
1191
1192
  i.else(), ur(e), i.endIf(), i.if((0, x._)`${l} !== undefined`, () => {
1192
- i.assign(o, l), Vn(e, l);
1193
+ i.assign(o, l), Dn(e, l);
1193
1194
  });
1194
1195
  function d(c) {
1195
1196
  switch (c) {
@@ -1216,11 +1217,11 @@ function _n(e, t, r) {
1216
1217
  }
1217
1218
  }
1218
1219
  }
1219
- function Vn({ gen: e, parentData: t, parentDataProperty: r }, i) {
1220
+ function Dn({ gen: e, parentData: t, parentDataProperty: r }, i) {
1220
1221
  e.if((0, x._)`${t} !== undefined`, () => e.assign((0, x._)`${t}[${r}]`, i));
1221
1222
  }
1222
- function or(e, t, r, i = Te.Correct) {
1223
- const o = i === Te.Correct ? x.operators.EQ : x.operators.NEQ;
1223
+ function or(e, t, r, i = Ie.Correct) {
1224
+ const o = i === Ie.Correct ? x.operators.EQ : x.operators.NEQ;
1224
1225
  let n;
1225
1226
  switch (e) {
1226
1227
  case "null":
@@ -1240,7 +1241,7 @@ function or(e, t, r, i = Te.Correct) {
1240
1241
  default:
1241
1242
  return (0, x._)`typeof ${t} ${o} ${e}`;
1242
1243
  }
1243
- return i === Te.Correct ? n : (0, x.not)(n);
1244
+ return i === Ie.Correct ? n : (0, x.not)(n);
1244
1245
  function a(l = x.nil) {
1245
1246
  return (0, x.and)((0, x._)`typeof ${t} == "number"`, l, r ? (0, x._)`isFinite(${t})` : x.nil);
1246
1247
  }
@@ -1262,16 +1263,16 @@ function pr(e, t, r, i) {
1262
1263
  return o;
1263
1264
  }
1264
1265
  W.checkDataTypes = pr;
1265
- const Dn = {
1266
+ const Fn = {
1266
1267
  message: ({ schema: e }) => `must be ${e}`,
1267
1268
  params: ({ schema: e, schemaValue: t }) => typeof e == "string" ? (0, x._)`{type: ${e}}` : (0, x._)`{type: ${t}}`
1268
1269
  };
1269
1270
  function ur(e) {
1270
- const t = Fn(e);
1271
- (0, kn.reportError)(t, Dn);
1271
+ const t = jn(e);
1272
+ (0, On.reportError)(t, Fn);
1272
1273
  }
1273
1274
  W.reportTypeError = ur;
1274
- function Fn(e) {
1275
+ function jn(e) {
1275
1276
  const { gen: t, data: r, schema: i } = e, o = (0, Xi.schemaRefOrVal)(e, i, "type");
1276
1277
  return {
1277
1278
  gen: t,
@@ -1288,46 +1289,46 @@ function Fn(e) {
1288
1289
  var Pt = {};
1289
1290
  Object.defineProperty(Pt, "__esModule", { value: !0 });
1290
1291
  Pt.assignDefaults = void 0;
1291
- const De = E, jn = V;
1292
- function Rn(e, t) {
1292
+ const Fe = E, Rn = V;
1293
+ function Tn(e, t) {
1293
1294
  const { properties: r, items: i } = e.schema;
1294
1295
  if (t === "object" && r)
1295
1296
  for (const o in r)
1296
1297
  mi(e, o, r[o].default);
1297
1298
  else t === "array" && Array.isArray(i) && i.forEach((o, n) => mi(e, n, o.default));
1298
1299
  }
1299
- Pt.assignDefaults = Rn;
1300
+ Pt.assignDefaults = Tn;
1300
1301
  function mi(e, t, r) {
1301
1302
  const { gen: i, compositeRule: o, data: n, opts: a } = e;
1302
1303
  if (r === void 0)
1303
1304
  return;
1304
- const l = (0, De._)`${n}${(0, De.getProperty)(t)}`;
1305
+ const l = (0, Fe._)`${n}${(0, Fe.getProperty)(t)}`;
1305
1306
  if (o) {
1306
- (0, jn.checkStrictMode)(e, `default is ignored for: ${l}`);
1307
+ (0, Rn.checkStrictMode)(e, `default is ignored for: ${l}`);
1307
1308
  return;
1308
1309
  }
1309
- let d = (0, De._)`${l} === undefined`;
1310
- a.useDefaults === "empty" && (d = (0, De._)`${d} || ${l} === null || ${l} === ""`), i.if(d, (0, De._)`${l} = ${(0, De.stringify)(r)}`);
1310
+ let d = (0, Fe._)`${l} === undefined`;
1311
+ a.useDefaults === "empty" && (d = (0, Fe._)`${d} || ${l} === null || ${l} === ""`), i.if(d, (0, Fe._)`${l} = ${(0, Fe.stringify)(r)}`);
1311
1312
  }
1312
1313
  var se = {}, A = {};
1313
1314
  Object.defineProperty(A, "__esModule", { value: !0 });
1314
1315
  A.validateUnion = A.validateArray = A.usePattern = A.callValidateCode = A.schemaProperties = A.allSchemaProperties = A.noPropertyInData = A.propertyInData = A.isOwnProperty = A.hasPropFunc = A.reportMissingProp = A.checkMissingProp = A.checkReportMissingProp = void 0;
1315
- const B = E, fr = V, he = Q, Tn = V;
1316
- function In(e, t) {
1316
+ const B = E, fr = V, me = Q, In = V;
1317
+ function En(e, t) {
1317
1318
  const { gen: r, data: i, it: o } = e;
1318
1319
  r.if(mr(r, i, t, o.opts.ownProperties), () => {
1319
1320
  e.setParams({ missingProperty: (0, B._)`${t}` }, !0), e.error();
1320
1321
  });
1321
1322
  }
1322
- A.checkReportMissingProp = In;
1323
- function En({ gen: e, data: t, it: { opts: r } }, i, o) {
1323
+ A.checkReportMissingProp = En;
1324
+ function xn({ gen: e, data: t, it: { opts: r } }, i, o) {
1324
1325
  return (0, B.or)(...i.map((n) => (0, B.and)(mr(e, t, n, r.ownProperties), (0, B._)`${o} = ${n}`)));
1325
1326
  }
1326
- A.checkMissingProp = En;
1327
- function xn(e, t) {
1327
+ A.checkMissingProp = xn;
1328
+ function An(e, t) {
1328
1329
  e.setParams({ missingProperty: t }, !0), e.error();
1329
1330
  }
1330
- A.reportMissingProp = xn;
1331
+ A.reportMissingProp = An;
1331
1332
  function to(e) {
1332
1333
  return e.scopeValue("func", {
1333
1334
  // eslint-disable-next-line @typescript-eslint/unbound-method
@@ -1340,11 +1341,11 @@ function hr(e, t, r) {
1340
1341
  return (0, B._)`${to(e)}.call(${t}, ${r})`;
1341
1342
  }
1342
1343
  A.isOwnProperty = hr;
1343
- function An(e, t, r, i) {
1344
+ function Nn(e, t, r, i) {
1344
1345
  const o = (0, B._)`${t}${(0, B.getProperty)(r)} !== undefined`;
1345
1346
  return i ? (0, B._)`${o} && ${hr(e, t, r)}` : o;
1346
1347
  }
1347
- A.propertyInData = An;
1348
+ A.propertyInData = Nn;
1348
1349
  function mr(e, t, r, i) {
1349
1350
  const o = (0, B._)`${t}${(0, B.getProperty)(r)} === undefined`;
1350
1351
  return i ? (0, B.or)(o, (0, B.not)(hr(e, t, r))) : o;
@@ -1354,33 +1355,33 @@ function ro(e) {
1354
1355
  return e ? Object.keys(e).filter((t) => t !== "__proto__") : [];
1355
1356
  }
1356
1357
  A.allSchemaProperties = ro;
1357
- function Nn(e, t) {
1358
+ function zn(e, t) {
1358
1359
  return ro(t).filter((r) => !(0, fr.alwaysValidSchema)(e, t[r]));
1359
1360
  }
1360
- A.schemaProperties = Nn;
1361
- function zn({ schemaCode: e, data: t, it: { gen: r, topSchemaRef: i, schemaPath: o, errorPath: n }, it: a }, l, d, c) {
1361
+ A.schemaProperties = zn;
1362
+ function Mn({ schemaCode: e, data: t, it: { gen: r, topSchemaRef: i, schemaPath: o, errorPath: n }, it: a }, l, d, c) {
1362
1363
  const f = c ? (0, B._)`${e}, ${t}, ${i}${o}` : t, h = [
1363
- [he.default.instancePath, (0, B.strConcat)(he.default.instancePath, n)],
1364
- [he.default.parentData, a.parentData],
1365
- [he.default.parentDataProperty, a.parentDataProperty],
1366
- [he.default.rootData, he.default.rootData]
1364
+ [me.default.instancePath, (0, B.strConcat)(me.default.instancePath, n)],
1365
+ [me.default.parentData, a.parentData],
1366
+ [me.default.parentDataProperty, a.parentDataProperty],
1367
+ [me.default.rootData, me.default.rootData]
1367
1368
  ];
1368
- a.opts.dynamicRef && h.push([he.default.dynamicAnchors, he.default.dynamicAnchors]);
1369
+ a.opts.dynamicRef && h.push([me.default.dynamicAnchors, me.default.dynamicAnchors]);
1369
1370
  const k = (0, B._)`${f}, ${r.object(...h)}`;
1370
1371
  return d !== B.nil ? (0, B._)`${l}.call(${d}, ${k})` : (0, B._)`${l}(${k})`;
1371
1372
  }
1372
- A.callValidateCode = zn;
1373
- const Mn = (0, B._)`new RegExp`;
1374
- function Ln({ gen: e, it: { opts: t } }, r) {
1373
+ A.callValidateCode = Mn;
1374
+ const Ln = (0, B._)`new RegExp`;
1375
+ function Bn({ gen: e, it: { opts: t } }, r) {
1375
1376
  const i = t.unicodeRegExp ? "u" : "", { regExp: o } = t.code, n = o(r, i);
1376
1377
  return e.scopeValue("pattern", {
1377
1378
  key: n.toString(),
1378
1379
  ref: n,
1379
- code: (0, B._)`${o.code === "new RegExp" ? Mn : (0, Tn.useFunc)(e, o)}(${r}, ${i})`
1380
+ code: (0, B._)`${o.code === "new RegExp" ? Ln : (0, In.useFunc)(e, o)}(${r}, ${i})`
1380
1381
  });
1381
1382
  }
1382
- A.usePattern = Ln;
1383
- function Bn(e) {
1383
+ A.usePattern = Bn;
1384
+ function qn(e) {
1384
1385
  const { gen: t, data: r, keyword: i, it: o } = e, n = t.name("valid");
1385
1386
  if (o.allErrors) {
1386
1387
  const l = t.let("valid", !0);
@@ -1398,8 +1399,8 @@ function Bn(e) {
1398
1399
  });
1399
1400
  }
1400
1401
  }
1401
- A.validateArray = Bn;
1402
- function qn(e) {
1402
+ A.validateArray = qn;
1403
+ function Hn(e) {
1403
1404
  const { gen: t, schema: r, keyword: i, it: o } = e;
1404
1405
  if (!Array.isArray(r))
1405
1406
  throw new Error("ajv implementation error");
@@ -1415,11 +1416,11 @@ function qn(e) {
1415
1416
  t.assign(a, (0, B._)`${a} || ${l}`), e.mergeValidEvaluated(f, l) || t.if((0, B.not)(a));
1416
1417
  })), e.result(a, () => e.reset(), () => e.error(!0));
1417
1418
  }
1418
- A.validateUnion = qn;
1419
+ A.validateUnion = Hn;
1419
1420
  Object.defineProperty(se, "__esModule", { value: !0 });
1420
1421
  se.validateKeywordUsage = se.validSchemaType = se.funcKeywordCode = se.macroKeywordCode = void 0;
1421
- const Y = E, Se = Q, Hn = A, Wn = nt;
1422
- function Un(e, t) {
1422
+ const Y = E, we = Q, Wn = A, Un = nt;
1423
+ function Gn(e, t) {
1423
1424
  const { gen: r, keyword: i, schema: o, parentSchema: n, it: a } = e, l = t.macro.call(a.self, o, n, a), d = io(r, i, l);
1424
1425
  a.opts.validateSchema !== !1 && a.self.validateSchema(l, !0);
1425
1426
  const c = r.name("valid");
@@ -1431,50 +1432,50 @@ function Un(e, t) {
1431
1432
  compositeRule: !0
1432
1433
  }, c), e.pass(c, () => e.error(!0));
1433
1434
  }
1434
- se.macroKeywordCode = Un;
1435
- function Gn(e, t) {
1435
+ se.macroKeywordCode = Gn;
1436
+ function Kn(e, t) {
1436
1437
  var r;
1437
1438
  const { gen: i, keyword: o, schema: n, parentSchema: a, $data: l, it: d } = e;
1438
- Jn(d, t);
1439
+ Yn(d, t);
1439
1440
  const c = !l && t.compile ? t.compile.call(d.self, n, a, d) : t.validate, f = io(i, o, c), h = i.let("valid");
1440
1441
  e.block$data(h, k), e.ok((r = t.valid) !== null && r !== void 0 ? r : h);
1441
1442
  function k() {
1442
1443
  if (t.errors === !1)
1443
1444
  w(), t.modifying && gi(e), g(() => e.error());
1444
1445
  else {
1445
- const u = t.async ? S() : b();
1446
- t.modifying && gi(e), g(() => Kn(e, u));
1446
+ const u = t.async ? S() : $();
1447
+ t.modifying && gi(e), g(() => Jn(e, u));
1447
1448
  }
1448
1449
  }
1449
1450
  function S() {
1450
1451
  const u = i.let("ruleErrs", null);
1451
- return i.try(() => w((0, Y._)`await `), ($) => i.assign(h, !1).if((0, Y._)`${$} instanceof ${d.ValidationError}`, () => i.assign(u, (0, Y._)`${$}.errors`), () => i.throw($))), u;
1452
+ return i.try(() => w((0, Y._)`await `), (b) => i.assign(h, !1).if((0, Y._)`${b} instanceof ${d.ValidationError}`, () => i.assign(u, (0, Y._)`${b}.errors`), () => i.throw(b))), u;
1452
1453
  }
1453
- function b() {
1454
+ function $() {
1454
1455
  const u = (0, Y._)`${f}.errors`;
1455
1456
  return i.assign(u, null), w(Y.nil), u;
1456
1457
  }
1457
1458
  function w(u = t.async ? (0, Y._)`await ` : Y.nil) {
1458
- const $ = d.opts.passContext ? Se.default.this : Se.default.self, C = !("compile" in t && !l || t.schema === !1);
1459
- i.assign(h, (0, Y._)`${u}${(0, Hn.callValidateCode)(e, f, $, C)}`, t.modifying);
1459
+ const b = d.opts.passContext ? we.default.this : we.default.self, C = !("compile" in t && !l || t.schema === !1);
1460
+ i.assign(h, (0, Y._)`${u}${(0, Wn.callValidateCode)(e, f, b, C)}`, t.modifying);
1460
1461
  }
1461
1462
  function g(u) {
1462
- var $;
1463
- i.if((0, Y.not)(($ = t.valid) !== null && $ !== void 0 ? $ : h), u);
1463
+ var b;
1464
+ i.if((0, Y.not)((b = t.valid) !== null && b !== void 0 ? b : h), u);
1464
1465
  }
1465
1466
  }
1466
- se.funcKeywordCode = Gn;
1467
+ se.funcKeywordCode = Kn;
1467
1468
  function gi(e) {
1468
1469
  const { gen: t, data: r, it: i } = e;
1469
1470
  t.if(i.parentData, () => t.assign(r, (0, Y._)`${i.parentData}[${i.parentDataProperty}]`));
1470
1471
  }
1471
- function Kn(e, t) {
1472
+ function Jn(e, t) {
1472
1473
  const { gen: r } = e;
1473
1474
  r.if((0, Y._)`Array.isArray(${t})`, () => {
1474
- r.assign(Se.default.vErrors, (0, Y._)`${Se.default.vErrors} === null ? ${t} : ${Se.default.vErrors}.concat(${t})`).assign(Se.default.errors, (0, Y._)`${Se.default.vErrors}.length`), (0, Wn.extendErrors)(e);
1475
+ r.assign(we.default.vErrors, (0, Y._)`${we.default.vErrors} === null ? ${t} : ${we.default.vErrors}.concat(${t})`).assign(we.default.errors, (0, Y._)`${we.default.vErrors}.length`), (0, Un.extendErrors)(e);
1475
1476
  }, () => e.error());
1476
1477
  }
1477
- function Jn({ schemaEnv: e }, t) {
1478
+ function Yn({ schemaEnv: e }, t) {
1478
1479
  if (t.async && !e.$async)
1479
1480
  throw new Error("async keyword in sync schema");
1480
1481
  }
@@ -1483,11 +1484,11 @@ function io(e, t, r) {
1483
1484
  throw new Error(`keyword "${t}" failed to compile`);
1484
1485
  return e.scopeValue("keyword", typeof r == "function" ? { ref: r } : { ref: r, code: (0, Y.stringify)(r) });
1485
1486
  }
1486
- function Yn(e, t, r = !1) {
1487
+ function Zn(e, t, r = !1) {
1487
1488
  return !t.length || t.some((i) => i === "array" ? Array.isArray(e) : i === "object" ? e && typeof e == "object" && !Array.isArray(e) : typeof e == i || r && typeof e > "u");
1488
1489
  }
1489
- se.validSchemaType = Yn;
1490
- function Zn({ schema: e, opts: t, self: r, errSchemaPath: i }, o, n) {
1490
+ se.validSchemaType = Zn;
1491
+ function Xn({ schema: e, opts: t, self: r, errSchemaPath: i }, o, n) {
1491
1492
  if (Array.isArray(o.keyword) ? !o.keyword.includes(n) : o.keyword !== n)
1492
1493
  throw new Error("ajv implementation error");
1493
1494
  const a = o.dependencies;
@@ -1501,12 +1502,12 @@ function Zn({ schema: e, opts: t, self: r, errSchemaPath: i }, o, n) {
1501
1502
  throw new Error(d);
1502
1503
  }
1503
1504
  }
1504
- se.validateKeywordUsage = Zn;
1505
+ se.validateKeywordUsage = Xn;
1505
1506
  var $e = {};
1506
1507
  Object.defineProperty($e, "__esModule", { value: !0 });
1507
1508
  $e.extendSubschemaMode = $e.extendSubschemaData = $e.getSubschema = void 0;
1508
1509
  const ne = E, oo = V;
1509
- function Xn(e, { keyword: t, schemaProp: r, schema: i, schemaPath: o, errSchemaPath: n, topSchemaRef: a }) {
1510
+ function Qn(e, { keyword: t, schemaProp: r, schema: i, schemaPath: o, errSchemaPath: n, topSchemaRef: a }) {
1510
1511
  if (t !== void 0 && i !== void 0)
1511
1512
  throw new Error('both "keyword" and "schema" passed, only one allowed');
1512
1513
  if (t !== void 0) {
@@ -1533,8 +1534,8 @@ function Xn(e, { keyword: t, schemaProp: r, schema: i, schemaPath: o, errSchemaP
1533
1534
  }
1534
1535
  throw new Error('either "keyword" or "schema" must be passed');
1535
1536
  }
1536
- $e.getSubschema = Xn;
1537
- function Qn(e, t, { dataProp: r, dataPropType: i, data: o, dataTypes: n, propertyName: a }) {
1537
+ $e.getSubschema = Qn;
1538
+ function es(e, t, { dataProp: r, dataPropType: i, data: o, dataTypes: n, propertyName: a }) {
1538
1539
  if (o !== void 0 && r !== void 0)
1539
1540
  throw new Error('both "data" and "dataProp" passed, only one allowed');
1540
1541
  const { gen: l } = t;
@@ -1551,11 +1552,11 @@ function Qn(e, t, { dataProp: r, dataPropType: i, data: o, dataTypes: n, propert
1551
1552
  e.data = c, e.dataLevel = t.dataLevel + 1, e.dataTypes = [], t.definedProperties = /* @__PURE__ */ new Set(), e.parentData = t.data, e.dataNames = [...t.dataNames, c];
1552
1553
  }
1553
1554
  }
1554
- $e.extendSubschemaData = Qn;
1555
- function es(e, { jtdDiscriminator: t, jtdMetadata: r, compositeRule: i, createErrors: o, allErrors: n }) {
1555
+ $e.extendSubschemaData = es;
1556
+ function ts(e, { jtdDiscriminator: t, jtdMetadata: r, compositeRule: i, createErrors: o, allErrors: n }) {
1556
1557
  i !== void 0 && (e.compositeRule = i), o !== void 0 && (e.createErrors = o), n !== void 0 && (e.allErrors = n), e.jtdDiscriminator = t, e.jtdMetadata = r;
1557
1558
  }
1558
- $e.extendSubschemaMode = es;
1559
+ $e.extendSubschemaMode = ts;
1559
1560
  var K = {}, no = function e(t, r) {
1560
1561
  if (t === r) return !0;
1561
1562
  if (t && r && typeof t == "object" && typeof r == "object") {
@@ -1580,14 +1581,14 @@ var K = {}, no = function e(t, r) {
1580
1581
  return !0;
1581
1582
  }
1582
1583
  return t !== t && r !== r;
1583
- }, so = { exports: {} }, ye = so.exports = function(e, t, r) {
1584
+ }, so = { exports: {} }, be = so.exports = function(e, t, r) {
1584
1585
  typeof t == "function" && (r = t, t = {}), r = t.cb || r;
1585
1586
  var i = typeof r == "function" ? r : r.pre || function() {
1586
1587
  }, o = r.post || function() {
1587
1588
  };
1588
1589
  mt(t, i, o, e, "", e);
1589
1590
  };
1590
- ye.keywords = {
1591
+ be.keywords = {
1591
1592
  additionalItems: !0,
1592
1593
  items: !0,
1593
1594
  contains: !0,
@@ -1598,20 +1599,20 @@ ye.keywords = {
1598
1599
  then: !0,
1599
1600
  else: !0
1600
1601
  };
1601
- ye.arrayKeywords = {
1602
+ be.arrayKeywords = {
1602
1603
  items: !0,
1603
1604
  allOf: !0,
1604
1605
  anyOf: !0,
1605
1606
  oneOf: !0
1606
1607
  };
1607
- ye.propsKeywords = {
1608
+ be.propsKeywords = {
1608
1609
  $defs: !0,
1609
1610
  definitions: !0,
1610
1611
  properties: !0,
1611
1612
  patternProperties: !0,
1612
1613
  dependencies: !0
1613
1614
  };
1614
- ye.skipKeywords = {
1615
+ be.skipKeywords = {
1615
1616
  default: !0,
1616
1617
  enum: !0,
1617
1618
  const: !0,
@@ -1637,25 +1638,25 @@ function mt(e, t, r, i, o, n, a, l, d, c) {
1637
1638
  for (var f in i) {
1638
1639
  var h = i[f];
1639
1640
  if (Array.isArray(h)) {
1640
- if (f in ye.arrayKeywords)
1641
+ if (f in be.arrayKeywords)
1641
1642
  for (var k = 0; k < h.length; k++)
1642
1643
  mt(e, t, r, h[k], o + "/" + f + "/" + k, n, o, f, i, k);
1643
- } else if (f in ye.propsKeywords) {
1644
+ } else if (f in be.propsKeywords) {
1644
1645
  if (h && typeof h == "object")
1645
1646
  for (var S in h)
1646
- mt(e, t, r, h[S], o + "/" + f + "/" + ts(S), n, o, f, i, S);
1647
- } else (f in ye.keywords || e.allKeys && !(f in ye.skipKeywords)) && mt(e, t, r, h, o + "/" + f, n, o, f, i);
1647
+ mt(e, t, r, h[S], o + "/" + f + "/" + rs(S), n, o, f, i, S);
1648
+ } else (f in be.keywords || e.allKeys && !(f in be.skipKeywords)) && mt(e, t, r, h, o + "/" + f, n, o, f, i);
1648
1649
  }
1649
1650
  r(i, o, n, a, l, d, c);
1650
1651
  }
1651
1652
  }
1652
- function ts(e) {
1653
+ function rs(e) {
1653
1654
  return e.replace(/~/g, "~0").replace(/\//g, "~1");
1654
1655
  }
1655
- var rs = so.exports;
1656
+ var is = so.exports;
1656
1657
  Object.defineProperty(K, "__esModule", { value: !0 });
1657
1658
  K.getSchemaRefs = K.resolveUrl = K.normalizeId = K._getFullPath = K.getFullPath = K.inlineRef = void 0;
1658
- const is = V, os = no, ns = rs, ss = /* @__PURE__ */ new Set([
1659
+ const os = V, ns = no, ss = is, as = /* @__PURE__ */ new Set([
1659
1660
  "type",
1660
1661
  "format",
1661
1662
  "pattern",
@@ -1673,11 +1674,11 @@ const is = V, os = no, ns = rs, ss = /* @__PURE__ */ new Set([
1673
1674
  "enum",
1674
1675
  "const"
1675
1676
  ]);
1676
- function as(e, t = !0) {
1677
+ function ls(e, t = !0) {
1677
1678
  return typeof e == "boolean" ? !0 : t === !0 ? !nr(e) : t ? ao(e) <= t : !1;
1678
1679
  }
1679
- K.inlineRef = as;
1680
- const ls = /* @__PURE__ */ new Set([
1680
+ K.inlineRef = ls;
1681
+ const ds = /* @__PURE__ */ new Set([
1681
1682
  "$ref",
1682
1683
  "$recursiveRef",
1683
1684
  "$recursiveAnchor",
@@ -1686,7 +1687,7 @@ const ls = /* @__PURE__ */ new Set([
1686
1687
  ]);
1687
1688
  function nr(e) {
1688
1689
  for (const t in e) {
1689
- if (ls.has(t))
1690
+ if (ds.has(t))
1690
1691
  return !0;
1691
1692
  const r = e[t];
1692
1693
  if (Array.isArray(r) && r.some(nr) || typeof r == "object" && nr(r))
@@ -1699,13 +1700,13 @@ function ao(e) {
1699
1700
  for (const r in e) {
1700
1701
  if (r === "$ref")
1701
1702
  return 1 / 0;
1702
- if (t++, !ss.has(r) && (typeof e[r] == "object" && (0, is.eachItem)(e[r], (i) => t += ao(i)), t === 1 / 0))
1703
+ if (t++, !as.has(r) && (typeof e[r] == "object" && (0, os.eachItem)(e[r], (i) => t += ao(i)), t === 1 / 0))
1703
1704
  return 1 / 0;
1704
1705
  }
1705
1706
  return t;
1706
1707
  }
1707
1708
  function lo(e, t = "", r) {
1708
- r !== !1 && (t = Ie(t));
1709
+ r !== !1 && (t = Ee(t));
1709
1710
  const i = e.parse(t);
1710
1711
  return co(e, i);
1711
1712
  }
@@ -1714,71 +1715,71 @@ function co(e, t) {
1714
1715
  return e.serialize(t).split("#")[0] + "#";
1715
1716
  }
1716
1717
  K._getFullPath = co;
1717
- const ds = /#\/?$/;
1718
- function Ie(e) {
1719
- return e ? e.replace(ds, "") : "";
1718
+ const cs = /#\/?$/;
1719
+ function Ee(e) {
1720
+ return e ? e.replace(cs, "") : "";
1720
1721
  }
1721
- K.normalizeId = Ie;
1722
- function cs(e, t, r) {
1723
- return r = Ie(r), e.resolve(t, r);
1722
+ K.normalizeId = Ee;
1723
+ function ps(e, t, r) {
1724
+ return r = Ee(r), e.resolve(t, r);
1724
1725
  }
1725
- K.resolveUrl = cs;
1726
- const ps = /^[a-z_][-a-z0-9._]*$/i;
1727
- function us(e, t) {
1726
+ K.resolveUrl = ps;
1727
+ const us = /^[a-z_][-a-z0-9._]*$/i;
1728
+ function fs(e, t) {
1728
1729
  if (typeof e == "boolean")
1729
1730
  return {};
1730
- const { schemaId: r, uriResolver: i } = this.opts, o = Ie(e[r] || t), n = { "": o }, a = lo(i, o, !1), l = {}, d = /* @__PURE__ */ new Set();
1731
- return ns(e, { allKeys: !0 }, (h, k, S, b) => {
1732
- if (b === void 0)
1731
+ const { schemaId: r, uriResolver: i } = this.opts, o = Ee(e[r] || t), n = { "": o }, a = lo(i, o, !1), l = {}, d = /* @__PURE__ */ new Set();
1732
+ return ss(e, { allKeys: !0 }, (h, k, S, $) => {
1733
+ if ($ === void 0)
1733
1734
  return;
1734
1735
  const w = a + k;
1735
- let g = n[b];
1736
- typeof h[r] == "string" && (g = u.call(this, h[r])), $.call(this, h.$anchor), $.call(this, h.$dynamicAnchor), n[k] = g;
1736
+ let g = n[$];
1737
+ typeof h[r] == "string" && (g = u.call(this, h[r])), b.call(this, h.$anchor), b.call(this, h.$dynamicAnchor), n[k] = g;
1737
1738
  function u(C) {
1738
1739
  const D = this.opts.uriResolver.resolve;
1739
- if (C = Ie(g ? D(g, C) : C), d.has(C))
1740
+ if (C = Ee(g ? D(g, C) : C), d.has(C))
1740
1741
  throw f(C);
1741
1742
  d.add(C);
1742
1743
  let F = this.refs[C];
1743
- return typeof F == "string" && (F = this.refs[F]), typeof F == "object" ? c(h, F.schema, C) : C !== Ie(w) && (C[0] === "#" ? (c(h, l[C], C), l[C] = h) : this.refs[C] = w), C;
1744
+ return typeof F == "string" && (F = this.refs[F]), typeof F == "object" ? c(h, F.schema, C) : C !== Ee(w) && (C[0] === "#" ? (c(h, l[C], C), l[C] = h) : this.refs[C] = w), C;
1744
1745
  }
1745
- function $(C) {
1746
+ function b(C) {
1746
1747
  if (typeof C == "string") {
1747
- if (!ps.test(C))
1748
+ if (!us.test(C))
1748
1749
  throw new Error(`invalid anchor "${C}"`);
1749
1750
  u.call(this, `#${C}`);
1750
1751
  }
1751
1752
  }
1752
1753
  }), l;
1753
1754
  function c(h, k, S) {
1754
- if (k !== void 0 && !os(h, k))
1755
+ if (k !== void 0 && !ns(h, k))
1755
1756
  throw f(S);
1756
1757
  }
1757
1758
  function f(h) {
1758
1759
  return new Error(`reference "${h}" resolves to more than one schema`);
1759
1760
  }
1760
1761
  }
1761
- K.getSchemaRefs = us;
1762
+ K.getSchemaRefs = fs;
1762
1763
  Object.defineProperty(oe, "__esModule", { value: !0 });
1763
1764
  oe.getData = oe.KeywordCxt = oe.validateFunctionCode = void 0;
1764
- const po = xe, yi = W, gr = de, St = W, fs = Pt, Ze = se, Jt = $e, j = E, I = Q, hs = K, ce = V, Ge = nt;
1765
- function ms(e) {
1765
+ const po = xe, yi = W, gr = de, St = W, hs = Pt, Xe = se, Jt = $e, j = E, I = Q, ms = K, ce = V, Ke = nt;
1766
+ function gs(e) {
1766
1767
  if (ho(e) && (mo(e), fo(e))) {
1767
1768
  $s(e);
1768
1769
  return;
1769
1770
  }
1770
1771
  uo(e, () => (0, po.topBoolOrEmptySchema)(e));
1771
1772
  }
1772
- oe.validateFunctionCode = ms;
1773
+ oe.validateFunctionCode = gs;
1773
1774
  function uo({ gen: e, validateName: t, schema: r, schemaEnv: i, opts: o }, n) {
1774
1775
  o.code.es5 ? e.func(t, (0, j._)`${I.default.data}, ${I.default.valCxt}`, i.$async, () => {
1775
- e.code((0, j._)`"use strict"; ${$i(r, o)}`), ys(e, o), e.code(n);
1776
- }) : e.func(t, (0, j._)`${I.default.data}, ${gs(o)}`, i.$async, () => e.code($i(r, o)).code(n));
1776
+ e.code((0, j._)`"use strict"; ${bi(r, o)}`), bs(e, o), e.code(n);
1777
+ }) : e.func(t, (0, j._)`${I.default.data}, ${ys(o)}`, i.$async, () => e.code(bi(r, o)).code(n));
1777
1778
  }
1778
- function gs(e) {
1779
+ function ys(e) {
1779
1780
  return (0, j._)`{${I.default.instancePath}="", ${I.default.parentData}, ${I.default.parentDataProperty}, ${I.default.rootData}=${I.default.data}${e.dynamicRef ? (0, j._)`, ${I.default.dynamicAnchors}={}` : j.nil}}={}`;
1780
1781
  }
1781
- function ys(e, t) {
1782
+ function bs(e, t) {
1782
1783
  e.if(I.default.valCxt, () => {
1783
1784
  e.var(I.default.instancePath, (0, j._)`${I.default.valCxt}.${I.default.instancePath}`), e.var(I.default.parentData, (0, j._)`${I.default.valCxt}.${I.default.parentData}`), e.var(I.default.parentDataProperty, (0, j._)`${I.default.valCxt}.${I.default.parentDataProperty}`), e.var(I.default.rootData, (0, j._)`${I.default.valCxt}.${I.default.rootData}`), t.dynamicRef && e.var(I.default.dynamicAnchors, (0, j._)`${I.default.valCxt}.${I.default.dynamicAnchors}`);
1784
1785
  }, () => {
@@ -1788,20 +1789,20 @@ function ys(e, t) {
1788
1789
  function $s(e) {
1789
1790
  const { schema: t, opts: r, gen: i } = e;
1790
1791
  uo(e, () => {
1791
- r.$comment && t.$comment && yo(e), ks(e), i.let(I.default.vErrors, null), i.let(I.default.errors, 0), r.unevaluated && bs(e), go(e), Ps(e);
1792
+ r.$comment && t.$comment && yo(e), Os(e), i.let(I.default.vErrors, null), i.let(I.default.errors, 0), r.unevaluated && vs(e), go(e), _s(e);
1792
1793
  });
1793
1794
  }
1794
- function bs(e) {
1795
+ function vs(e) {
1795
1796
  const { gen: t, validateName: r } = e;
1796
1797
  e.evaluated = t.const("evaluated", (0, j._)`${r}.evaluated`), t.if((0, j._)`${e.evaluated}.dynamicProps`, () => t.assign((0, j._)`${e.evaluated}.props`, (0, j._)`undefined`)), t.if((0, j._)`${e.evaluated}.dynamicItems`, () => t.assign((0, j._)`${e.evaluated}.items`, (0, j._)`undefined`));
1797
1798
  }
1798
- function $i(e, t) {
1799
+ function bi(e, t) {
1799
1800
  const r = typeof e == "object" && e[t.schemaId];
1800
1801
  return r && (t.code.source || t.code.process) ? (0, j._)`/*# sourceURL=${r} */` : j.nil;
1801
1802
  }
1802
- function vs(e, t) {
1803
+ function Ss(e, t) {
1803
1804
  if (ho(e) && (mo(e), fo(e))) {
1804
- Ss(e, t);
1805
+ ws(e, t);
1805
1806
  return;
1806
1807
  }
1807
1808
  (0, po.boolOrEmptySchema)(e, t);
@@ -1817,34 +1818,34 @@ function fo({ schema: e, self: t }) {
1817
1818
  function ho(e) {
1818
1819
  return typeof e.schema != "boolean";
1819
1820
  }
1820
- function Ss(e, t) {
1821
+ function ws(e, t) {
1821
1822
  const { schema: r, gen: i, opts: o } = e;
1822
- o.$comment && r.$comment && yo(e), Os(e), Cs(e);
1823
+ o.$comment && r.$comment && yo(e), Cs(e), Ps(e);
1823
1824
  const n = i.const("_errs", I.default.errors);
1824
1825
  go(e, n), i.var(t, (0, j._)`${n} === ${I.default.errors}`);
1825
1826
  }
1826
1827
  function mo(e) {
1827
- (0, ce.checkUnknownRules)(e), ws(e);
1828
+ (0, ce.checkUnknownRules)(e), ks(e);
1828
1829
  }
1829
1830
  function go(e, t) {
1830
1831
  if (e.opts.jtd)
1831
- return bi(e, [], !1, t);
1832
+ return $i(e, [], !1, t);
1832
1833
  const r = (0, yi.getSchemaTypes)(e.schema), i = (0, yi.coerceAndCheckDataType)(e, r);
1833
- bi(e, r, !i, t);
1834
+ $i(e, r, !i, t);
1834
1835
  }
1835
- function ws(e) {
1836
+ function ks(e) {
1836
1837
  const { schema: t, errSchemaPath: r, opts: i, self: o } = e;
1837
1838
  t.$ref && i.ignoreKeywordsWithRef && (0, ce.schemaHasRulesButRef)(t, o.RULES) && o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`);
1838
1839
  }
1839
- function ks(e) {
1840
+ function Os(e) {
1840
1841
  const { schema: t, opts: r } = e;
1841
1842
  t.default !== void 0 && r.useDefaults && r.strictSchema && (0, ce.checkStrictMode)(e, "default is ignored in the schema root");
1842
1843
  }
1843
- function Os(e) {
1844
+ function Cs(e) {
1844
1845
  const t = e.schema[e.opts.schemaId];
1845
- t && (e.baseId = (0, hs.resolveUrl)(e.opts.uriResolver, e.baseId, t));
1846
+ t && (e.baseId = (0, ms.resolveUrl)(e.opts.uriResolver, e.baseId, t));
1846
1847
  }
1847
- function Cs(e) {
1848
+ function Ps(e) {
1848
1849
  if (e.schema.$async && !e.schemaEnv.$async)
1849
1850
  throw new Error("async schema in sync schema");
1850
1851
  }
@@ -1857,20 +1858,20 @@ function yo({ gen: e, schemaEnv: t, schema: r, errSchemaPath: i, opts: o }) {
1857
1858
  e.code((0, j._)`${I.default.self}.opts.$comment(${n}, ${a}, ${l}.schema)`);
1858
1859
  }
1859
1860
  }
1860
- function Ps(e) {
1861
+ function _s(e) {
1861
1862
  const { gen: t, schemaEnv: r, validateName: i, ValidationError: o, opts: n } = e;
1862
- r.$async ? t.if((0, j._)`${I.default.errors} === 0`, () => t.return(I.default.data), () => t.throw((0, j._)`new ${o}(${I.default.vErrors})`)) : (t.assign((0, j._)`${i}.errors`, I.default.vErrors), n.unevaluated && _s(e), t.return((0, j._)`${I.default.errors} === 0`));
1863
+ r.$async ? t.if((0, j._)`${I.default.errors} === 0`, () => t.return(I.default.data), () => t.throw((0, j._)`new ${o}(${I.default.vErrors})`)) : (t.assign((0, j._)`${i}.errors`, I.default.vErrors), n.unevaluated && Vs(e), t.return((0, j._)`${I.default.errors} === 0`));
1863
1864
  }
1864
- function _s({ gen: e, evaluated: t, props: r, items: i }) {
1865
+ function Vs({ gen: e, evaluated: t, props: r, items: i }) {
1865
1866
  r instanceof j.Name && e.assign((0, j._)`${t}.props`, r), i instanceof j.Name && e.assign((0, j._)`${t}.items`, i);
1866
1867
  }
1867
- function bi(e, t, r, i) {
1868
+ function $i(e, t, r, i) {
1868
1869
  const { gen: o, schema: n, data: a, allErrors: l, opts: d, self: c } = e, { RULES: f } = c;
1869
1870
  if (n.$ref && (d.ignoreKeywordsWithRef || !(0, ce.schemaHasRulesButRef)(n, f))) {
1870
1871
  o.block(() => vo(e, "$ref", f.all.$ref.definition));
1871
1872
  return;
1872
1873
  }
1873
- d.jtd || Vs(e, t), o.block(() => {
1874
+ d.jtd || Ds(e, t), o.block(() => {
1874
1875
  for (const k of f.rules)
1875
1876
  h(k);
1876
1877
  h(f.post);
@@ -1881,59 +1882,59 @@ function bi(e, t, r, i) {
1881
1882
  }
1882
1883
  function vi(e, t) {
1883
1884
  const { gen: r, schema: i, opts: { useDefaults: o } } = e;
1884
- o && (0, fs.assignDefaults)(e, t.type), r.block(() => {
1885
+ o && (0, hs.assignDefaults)(e, t.type), r.block(() => {
1885
1886
  for (const n of t.rules)
1886
1887
  (0, gr.shouldUseRule)(i, n) && vo(e, n.keyword, n.definition, t.type);
1887
1888
  });
1888
1889
  }
1889
- function Vs(e, t) {
1890
- e.schemaEnv.meta || !e.opts.strictTypes || (Ds(e, t), e.opts.allowUnionTypes || Fs(e, t), js(e, e.dataTypes));
1891
- }
1892
1890
  function Ds(e, t) {
1891
+ e.schemaEnv.meta || !e.opts.strictTypes || (Fs(e, t), e.opts.allowUnionTypes || js(e, t), Rs(e, e.dataTypes));
1892
+ }
1893
+ function Fs(e, t) {
1893
1894
  if (t.length) {
1894
1895
  if (!e.dataTypes.length) {
1895
1896
  e.dataTypes = t;
1896
1897
  return;
1897
1898
  }
1898
1899
  t.forEach((r) => {
1899
- $o(e.dataTypes, r) || yr(e, `type "${r}" not allowed by context "${e.dataTypes.join(",")}"`);
1900
- }), Ts(e, t);
1900
+ bo(e.dataTypes, r) || yr(e, `type "${r}" not allowed by context "${e.dataTypes.join(",")}"`);
1901
+ }), Is(e, t);
1901
1902
  }
1902
1903
  }
1903
- function Fs(e, t) {
1904
+ function js(e, t) {
1904
1905
  t.length > 1 && !(t.length === 2 && t.includes("null")) && yr(e, "use allowUnionTypes to allow union type keyword");
1905
1906
  }
1906
- function js(e, t) {
1907
+ function Rs(e, t) {
1907
1908
  const r = e.self.RULES.all;
1908
1909
  for (const i in r) {
1909
1910
  const o = r[i];
1910
1911
  if (typeof o == "object" && (0, gr.shouldUseRule)(e.schema, o)) {
1911
1912
  const { type: n } = o.definition;
1912
- n.length && !n.some((a) => Rs(t, a)) && yr(e, `missing type "${n.join(",")}" for keyword "${i}"`);
1913
+ n.length && !n.some((a) => Ts(t, a)) && yr(e, `missing type "${n.join(",")}" for keyword "${i}"`);
1913
1914
  }
1914
1915
  }
1915
1916
  }
1916
- function Rs(e, t) {
1917
+ function Ts(e, t) {
1917
1918
  return e.includes(t) || t === "number" && e.includes("integer");
1918
1919
  }
1919
- function $o(e, t) {
1920
+ function bo(e, t) {
1920
1921
  return e.includes(t) || t === "integer" && e.includes("number");
1921
1922
  }
1922
- function Ts(e, t) {
1923
+ function Is(e, t) {
1923
1924
  const r = [];
1924
1925
  for (const i of e.dataTypes)
1925
- $o(t, i) ? r.push(i) : t.includes("integer") && i === "number" && r.push("integer");
1926
+ bo(t, i) ? r.push(i) : t.includes("integer") && i === "number" && r.push("integer");
1926
1927
  e.dataTypes = r;
1927
1928
  }
1928
1929
  function yr(e, t) {
1929
1930
  const r = e.schemaEnv.baseId + e.errSchemaPath;
1930
1931
  t += ` at "${r}" (strictTypes)`, (0, ce.checkStrictMode)(e, t, e.opts.strictTypes);
1931
1932
  }
1932
- class bo {
1933
+ class $o {
1933
1934
  constructor(t, r, i) {
1934
- if ((0, Ze.validateKeywordUsage)(t, r, i), this.gen = t.gen, this.allErrors = t.allErrors, this.keyword = i, this.data = t.data, this.schema = t.schema[i], this.$data = r.$data && t.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, ce.schemaRefOrVal)(t, this.schema, i, this.$data), this.schemaType = r.schemaType, this.parentSchema = t.schema, this.params = {}, this.it = t, this.def = r, this.$data)
1935
+ if ((0, Xe.validateKeywordUsage)(t, r, i), this.gen = t.gen, this.allErrors = t.allErrors, this.keyword = i, this.data = t.data, this.schema = t.schema[i], this.$data = r.$data && t.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, ce.schemaRefOrVal)(t, this.schema, i, this.$data), this.schemaType = r.schemaType, this.parentSchema = t.schema, this.params = {}, this.it = t, this.def = r, this.$data)
1935
1936
  this.schemaCode = t.gen.const("vSchema", So(this.$data, t));
1936
- else if (this.schemaCode = this.schemaValue, !(0, Ze.validSchemaType)(this.schema, r.schemaType, r.allowUndefined))
1937
+ else if (this.schemaCode = this.schemaValue, !(0, Xe.validSchemaType)(this.schema, r.schemaType, r.allowUndefined))
1937
1938
  throw new Error(`${i} value must be ${JSON.stringify(r.schemaType)}`);
1938
1939
  ("code" in r ? r.trackErrors : r.errors !== !1) && (this.errsCount = t.gen.const("_errs", I.default.errors));
1939
1940
  }
@@ -1967,15 +1968,15 @@ class bo {
1967
1968
  this._error(t, i);
1968
1969
  }
1969
1970
  _error(t, r) {
1970
- (t ? Ge.reportExtraError : Ge.reportError)(this, this.def.error, r);
1971
+ (t ? Ke.reportExtraError : Ke.reportError)(this, this.def.error, r);
1971
1972
  }
1972
1973
  $dataError() {
1973
- (0, Ge.reportError)(this, this.def.$dataError || Ge.keyword$DataError);
1974
+ (0, Ke.reportError)(this, this.def.$dataError || Ke.keyword$DataError);
1974
1975
  }
1975
1976
  reset() {
1976
1977
  if (this.errsCount === void 0)
1977
1978
  throw new Error('add "trackErrors" to keyword definition');
1978
- (0, Ge.resetErrorsCount)(this.gen, this.errsCount);
1979
+ (0, Ke.resetErrorsCount)(this.gen, this.errsCount);
1979
1980
  }
1980
1981
  ok(t) {
1981
1982
  this.allErrors || this.gen.if(t);
@@ -2018,7 +2019,7 @@ class bo {
2018
2019
  const i = (0, Jt.getSubschema)(this.it, t);
2019
2020
  (0, Jt.extendSubschemaData)(i, this.it, t), (0, Jt.extendSubschemaMode)(i, t);
2020
2021
  const o = { ...this.it, ...i, items: void 0, props: void 0 };
2021
- return vs(o, r), o;
2022
+ return Ss(o, r), o;
2022
2023
  }
2023
2024
  mergeEvaluated(t, r) {
2024
2025
  const { it: i, gen: o } = this;
@@ -2030,22 +2031,22 @@ class bo {
2030
2031
  return o.if(r, () => this.mergeEvaluated(t, j.Name)), !0;
2031
2032
  }
2032
2033
  }
2033
- oe.KeywordCxt = bo;
2034
+ oe.KeywordCxt = $o;
2034
2035
  function vo(e, t, r, i) {
2035
- const o = new bo(e, r, t);
2036
- "code" in r ? r.code(o, i) : o.$data && r.validate ? (0, Ze.funcKeywordCode)(o, r) : "macro" in r ? (0, Ze.macroKeywordCode)(o, r) : (r.compile || r.validate) && (0, Ze.funcKeywordCode)(o, r);
2036
+ const o = new $o(e, r, t);
2037
+ "code" in r ? r.code(o, i) : o.$data && r.validate ? (0, Xe.funcKeywordCode)(o, r) : "macro" in r ? (0, Xe.macroKeywordCode)(o, r) : (r.compile || r.validate) && (0, Xe.funcKeywordCode)(o, r);
2037
2038
  }
2038
- const Is = /^\/(?:[^~]|~0|~1)*$/, Es = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
2039
+ const Es = /^\/(?:[^~]|~0|~1)*$/, xs = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
2039
2040
  function So(e, { dataLevel: t, dataNames: r, dataPathArr: i }) {
2040
2041
  let o, n;
2041
2042
  if (e === "")
2042
2043
  return I.default.rootData;
2043
2044
  if (e[0] === "/") {
2044
- if (!Is.test(e))
2045
+ if (!Es.test(e))
2045
2046
  throw new Error(`Invalid JSON-pointer: ${e}`);
2046
2047
  o = e, n = I.default.rootData;
2047
2048
  } else {
2048
- const c = Es.exec(e);
2049
+ const c = xs.exec(e);
2049
2050
  if (!c)
2050
2051
  throw new Error(`Invalid JSON-pointer: ${e}`);
2051
2052
  const f = +c[1];
@@ -2071,25 +2072,25 @@ function So(e, { dataLevel: t, dataNames: r, dataPathArr: i }) {
2071
2072
  oe.getData = So;
2072
2073
  var st = {};
2073
2074
  Object.defineProperty(st, "__esModule", { value: !0 });
2074
- class xs extends Error {
2075
+ class As extends Error {
2075
2076
  constructor(t) {
2076
2077
  super("validation failed"), this.errors = t, this.ajv = this.validation = !0;
2077
2078
  }
2078
2079
  }
2079
- st.default = xs;
2080
- var ze = {};
2081
- Object.defineProperty(ze, "__esModule", { value: !0 });
2080
+ st.default = As;
2081
+ var Me = {};
2082
+ Object.defineProperty(Me, "__esModule", { value: !0 });
2082
2083
  const Yt = K;
2083
- class As extends Error {
2084
+ class Ns extends Error {
2084
2085
  constructor(t, r, i, o) {
2085
2086
  super(o || `can't resolve reference ${i} from id ${r}`), this.missingRef = (0, Yt.resolveUrl)(t, r, i), this.missingSchema = (0, Yt.normalizeId)((0, Yt.getFullPath)(t, this.missingRef));
2086
2087
  }
2087
2088
  }
2088
- ze.default = As;
2089
+ Me.default = Ns;
2089
2090
  var Z = {};
2090
2091
  Object.defineProperty(Z, "__esModule", { value: !0 });
2091
2092
  Z.resolveSchema = Z.getCompilingSchema = Z.resolveRef = Z.compileSchema = Z.SchemaEnv = void 0;
2092
- const te = E, Ns = st, ve = Q, ie = K, Si = V, zs = oe;
2093
+ const te = E, zs = st, Se = Q, ie = K, Si = V, Ms = oe;
2093
2094
  class _t {
2094
2095
  constructor(t) {
2095
2096
  var r;
@@ -2099,14 +2100,14 @@ class _t {
2099
2100
  }
2100
2101
  }
2101
2102
  Z.SchemaEnv = _t;
2102
- function $r(e) {
2103
+ function br(e) {
2103
2104
  const t = wo.call(this, e);
2104
2105
  if (t)
2105
2106
  return t;
2106
2107
  const r = (0, ie.getFullPath)(this.opts.uriResolver, e.root.baseId), { es5: i, lines: o } = this.opts.code, { ownProperties: n } = this.opts, a = new te.CodeGen(this.scope, { es5: i, lines: o, ownProperties: n });
2107
2108
  let l;
2108
2109
  e.$async && (l = a.scopeValue("Error", {
2109
- ref: Ns.default,
2110
+ ref: zs.default,
2110
2111
  code: (0, te._)`require("ajv/dist/runtime/validation_error").default`
2111
2112
  }));
2112
2113
  const d = a.scopeName("validate");
@@ -2114,10 +2115,10 @@ function $r(e) {
2114
2115
  const c = {
2115
2116
  gen: a,
2116
2117
  allErrors: this.opts.allErrors,
2117
- data: ve.default.data,
2118
- parentData: ve.default.parentData,
2119
- parentDataProperty: ve.default.parentDataProperty,
2120
- dataNames: [ve.default.data],
2118
+ data: Se.default.data,
2119
+ parentData: Se.default.parentData,
2120
+ parentDataProperty: Se.default.parentDataProperty,
2121
+ dataNames: [Se.default.data],
2121
2122
  dataPathArr: [te.nil],
2122
2123
  // TODO can its length be used as dataLevel if nil is removed?
2123
2124
  dataLevel: 0,
@@ -2138,16 +2139,16 @@ function $r(e) {
2138
2139
  };
2139
2140
  let f;
2140
2141
  try {
2141
- this._compilations.add(e), (0, zs.validateFunctionCode)(c), a.optimize(this.opts.code.optimize);
2142
+ this._compilations.add(e), (0, Ms.validateFunctionCode)(c), a.optimize(this.opts.code.optimize);
2142
2143
  const h = a.toString();
2143
- f = `${a.scopeRefs(ve.default.scope)}return ${h}`, this.opts.code.process && (f = this.opts.code.process(f, e));
2144
- const S = new Function(`${ve.default.self}`, `${ve.default.scope}`, f)(this, this.scope.get());
2144
+ f = `${a.scopeRefs(Se.default.scope)}return ${h}`, this.opts.code.process && (f = this.opts.code.process(f, e));
2145
+ const S = new Function(`${Se.default.self}`, `${Se.default.scope}`, f)(this, this.scope.get());
2145
2146
  if (this.scope.value(d, { ref: S }), S.errors = null, S.schema = e.schema, S.schemaEnv = e, e.$async && (S.$async = !0), this.opts.code.source === !0 && (S.source = { validateName: d, validateCode: h, scopeValues: a._values }), this.opts.unevaluated) {
2146
- const { props: b, items: w } = c;
2147
+ const { props: $, items: w } = c;
2147
2148
  S.evaluated = {
2148
- props: b instanceof te.Name ? void 0 : b,
2149
+ props: $ instanceof te.Name ? void 0 : $,
2149
2150
  items: w instanceof te.Name ? void 0 : w,
2150
- dynamicProps: b instanceof te.Name,
2151
+ dynamicProps: $ instanceof te.Name,
2151
2152
  dynamicItems: w instanceof te.Name
2152
2153
  }, S.source && (S.source.evaluated = (0, te.stringify)(S.evaluated));
2153
2154
  }
@@ -2158,35 +2159,35 @@ function $r(e) {
2158
2159
  this._compilations.delete(e);
2159
2160
  }
2160
2161
  }
2161
- Z.compileSchema = $r;
2162
- function Ms(e, t, r) {
2162
+ Z.compileSchema = br;
2163
+ function Ls(e, t, r) {
2163
2164
  var i;
2164
2165
  r = (0, ie.resolveUrl)(this.opts.uriResolver, t, r);
2165
2166
  const o = e.refs[r];
2166
2167
  if (o)
2167
2168
  return o;
2168
- let n = qs.call(this, e, r);
2169
+ let n = Hs.call(this, e, r);
2169
2170
  if (n === void 0) {
2170
2171
  const a = (i = e.localRefs) === null || i === void 0 ? void 0 : i[r], { schemaId: l } = this.opts;
2171
2172
  a && (n = new _t({ schema: a, schemaId: l, root: e, baseId: t }));
2172
2173
  }
2173
2174
  if (n !== void 0)
2174
- return e.refs[r] = Ls.call(this, n);
2175
+ return e.refs[r] = Bs.call(this, n);
2175
2176
  }
2176
- Z.resolveRef = Ms;
2177
- function Ls(e) {
2178
- return (0, ie.inlineRef)(e.schema, this.opts.inlineRefs) ? e.schema : e.validate ? e : $r.call(this, e);
2177
+ Z.resolveRef = Ls;
2178
+ function Bs(e) {
2179
+ return (0, ie.inlineRef)(e.schema, this.opts.inlineRefs) ? e.schema : e.validate ? e : br.call(this, e);
2179
2180
  }
2180
2181
  function wo(e) {
2181
2182
  for (const t of this._compilations)
2182
- if (Bs(t, e))
2183
+ if (qs(t, e))
2183
2184
  return t;
2184
2185
  }
2185
2186
  Z.getCompilingSchema = wo;
2186
- function Bs(e, t) {
2187
+ function qs(e, t) {
2187
2188
  return e.schema === t.schema && e.root === t.root && e.baseId === t.baseId;
2188
2189
  }
2189
- function qs(e, t) {
2190
+ function Hs(e, t) {
2190
2191
  let r;
2191
2192
  for (; typeof (r = this.refs[t]) == "string"; )
2192
2193
  t = r;
@@ -2203,7 +2204,7 @@ function Vt(e, t) {
2203
2204
  return typeof (l == null ? void 0 : l.schema) != "object" ? void 0 : Zt.call(this, r, l);
2204
2205
  }
2205
2206
  if (typeof (a == null ? void 0 : a.schema) == "object") {
2206
- if (a.validate || $r.call(this, a), n === (0, ie.normalizeId)(t)) {
2207
+ if (a.validate || br.call(this, a), n === (0, ie.normalizeId)(t)) {
2207
2208
  const { schema: l } = a, { schemaId: d } = this.opts, c = l[d];
2208
2209
  return c && (o = (0, ie.resolveUrl)(this.opts.uriResolver, o, c)), new _t({ schema: l, schemaId: d, root: e, baseId: o });
2209
2210
  }
@@ -2211,7 +2212,7 @@ function Vt(e, t) {
2211
2212
  }
2212
2213
  }
2213
2214
  Z.resolveSchema = Vt;
2214
- const Hs = /* @__PURE__ */ new Set([
2215
+ const Ws = /* @__PURE__ */ new Set([
2215
2216
  "properties",
2216
2217
  "patternProperties",
2217
2218
  "enum",
@@ -2230,7 +2231,7 @@ function Zt(e, { baseId: t, schema: r, root: i }) {
2230
2231
  return;
2231
2232
  r = d;
2232
2233
  const c = typeof r == "object" && r[this.opts.schemaId];
2233
- !Hs.has(l) && c && (t = (0, ie.resolveUrl)(this.opts.uriResolver, t, c));
2234
+ !Ws.has(l) && c && (t = (0, ie.resolveUrl)(this.opts.uriResolver, t, c));
2234
2235
  }
2235
2236
  let n;
2236
2237
  if (typeof r != "boolean" && r.$ref && !(0, Si.schemaHasRulesButRef)(r, this.RULES)) {
@@ -2241,9 +2242,9 @@ function Zt(e, { baseId: t, schema: r, root: i }) {
2241
2242
  if (n = n || new _t({ schema: r, schemaId: a, root: i, baseId: t }), n.schema !== n.root.schema)
2242
2243
  return n;
2243
2244
  }
2244
- const Ws = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Us = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Gs = "object", Ks = [
2245
+ const Us = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Gs = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Ks = "object", Js = [
2245
2246
  "$data"
2246
- ], Js = {
2247
+ ], Ys = {
2247
2248
  $data: {
2248
2249
  type: "string",
2249
2250
  anyOf: [
@@ -2255,16 +2256,16 @@ const Ws = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/
2255
2256
  }
2256
2257
  ]
2257
2258
  }
2258
- }, Ys = !1, Zs = {
2259
- $id: Ws,
2260
- description: Us,
2261
- type: Gs,
2262
- required: Ks,
2263
- properties: Js,
2264
- additionalProperties: Ys
2259
+ }, Zs = !1, Xs = {
2260
+ $id: Us,
2261
+ description: Gs,
2262
+ type: Ks,
2263
+ required: Js,
2264
+ properties: Ys,
2265
+ additionalProperties: Zs
2265
2266
  };
2266
- var br = {}, Dt = { exports: {} };
2267
- const Xs = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), ko = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u), vr = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu), Oo = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu), Qs = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
2267
+ var $r = {}, Dt = { exports: {} };
2268
+ const Qs = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), ko = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u), vr = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu), Oo = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu), ea = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
2268
2269
  function Co(e) {
2269
2270
  let t = "", r = 0, i = 0;
2270
2271
  for (i = 0; i < e.length; i++)
@@ -2281,11 +2282,11 @@ function Co(e) {
2281
2282
  }
2282
2283
  return t;
2283
2284
  }
2284
- const ea = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
2285
+ const ta = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
2285
2286
  function wi(e) {
2286
2287
  return e.length = 0, !0;
2287
2288
  }
2288
- function ta(e, t, r) {
2289
+ function ra(e, t, r) {
2289
2290
  if (e.length) {
2290
2291
  const i = Co(e);
2291
2292
  if (i !== "")
@@ -2296,10 +2297,10 @@ function ta(e, t, r) {
2296
2297
  }
2297
2298
  return !0;
2298
2299
  }
2299
- function ra(e) {
2300
+ function ia(e) {
2300
2301
  let t = 0;
2301
2302
  const r = { error: !1, address: "", zone: "" }, i = [], o = [];
2302
- let n = !1, a = !1, l = ta;
2303
+ let n = !1, a = !1, l = ra;
2303
2304
  for (let d = 0; d < e.length; d++) {
2304
2305
  const c = e[d];
2305
2306
  if (!(c === "[" || c === "]"))
@@ -2324,9 +2325,9 @@ function ra(e) {
2324
2325
  return o.length && (l === wi ? r.zone = o.join("") : a ? i.push(o.join("")) : i.push(Co(o))), r.address = i.join(""), r;
2325
2326
  }
2326
2327
  function Po(e) {
2327
- if (ia(e, ":") < 2)
2328
+ if (oa(e, ":") < 2)
2328
2329
  return { host: e, isIPV6: !1 };
2329
- const t = ra(e);
2330
+ const t = ia(e);
2330
2331
  if (t.error)
2331
2332
  return { host: e, isIPV6: !1 };
2332
2333
  {
@@ -2334,13 +2335,13 @@ function Po(e) {
2334
2335
  return t.zone && (r += "%" + t.zone, i += "%25" + t.zone), { host: r, isIPV6: !0, escapedHost: i };
2335
2336
  }
2336
2337
  }
2337
- function ia(e, t) {
2338
+ function oa(e, t) {
2338
2339
  let r = 0;
2339
2340
  for (let i = 0; i < e.length; i++)
2340
2341
  e[i] === t && r++;
2341
2342
  return r;
2342
2343
  }
2343
- function oa(e) {
2344
+ function na(e) {
2344
2345
  let t = e;
2345
2346
  const r = [];
2346
2347
  let i = -1, o = 0;
@@ -2398,12 +2399,12 @@ function oa(e) {
2398
2399
  }
2399
2400
  return r.join("");
2400
2401
  }
2401
- const na = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" }, sa = /[@/?#:]/g, aa = /[@/?#]/g;
2402
+ const sa = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" }, aa = /[@/?#:]/g, la = /[@/?#]/g;
2402
2403
  function _o(e, t) {
2403
- const r = t ? aa : sa;
2404
- return r.lastIndex = 0, e.replace(r, (i) => na[i]);
2404
+ const r = t ? la : aa;
2405
+ return r.lastIndex = 0, e.replace(r, (i) => sa[i]);
2405
2406
  }
2406
- function la(e, t = !1) {
2407
+ function da(e, t = !1) {
2407
2408
  if (e.indexOf("%") === -1)
2408
2409
  return e;
2409
2410
  let r = "";
@@ -2420,7 +2421,7 @@ function la(e, t = !1) {
2420
2421
  }
2421
2422
  return r;
2422
2423
  }
2423
- function da(e) {
2424
+ function ca(e) {
2424
2425
  let t = "";
2425
2426
  for (let r = 0; r < e.length; r++) {
2426
2427
  if (e[r] === "%" && r + 2 < e.length) {
@@ -2431,11 +2432,11 @@ function da(e) {
2431
2432
  continue;
2432
2433
  }
2433
2434
  }
2434
- Qs(e[r]) ? t += e[r] : t += escape(e[r]);
2435
+ ea(e[r]) ? t += e[r] : t += escape(e[r]);
2435
2436
  }
2436
2437
  return t;
2437
2438
  }
2438
- function ca(e) {
2439
+ function pa(e) {
2439
2440
  let t = "";
2440
2441
  for (let r = 0; r < e.length; r++) {
2441
2442
  if (e[r] === "%" && r + 2 < e.length) {
@@ -2449,7 +2450,7 @@ function ca(e) {
2449
2450
  }
2450
2451
  return t;
2451
2452
  }
2452
- function pa(e) {
2453
+ function ua(e) {
2453
2454
  const t = [];
2454
2455
  if (e.userinfo !== void 0 && (t.push(e.userinfo), t.push("@")), e.host !== void 0) {
2455
2456
  let r = unescape(e.host);
@@ -2462,18 +2463,18 @@ function pa(e) {
2462
2463
  return (typeof e.port == "number" || typeof e.port == "string") && (t.push(":"), t.push(String(e.port))), t.length ? t.join("") : void 0;
2463
2464
  }
2464
2465
  var Vo = {
2465
- nonSimpleDomain: ea,
2466
- recomposeAuthority: pa,
2466
+ nonSimpleDomain: ta,
2467
+ recomposeAuthority: ua,
2467
2468
  reescapeHostDelimiters: _o,
2468
- normalizePercentEncoding: la,
2469
- normalizePathEncoding: da,
2470
- escapePreservingEscapes: ca,
2471
- removeDotSegments: oa,
2469
+ normalizePercentEncoding: da,
2470
+ normalizePathEncoding: ca,
2471
+ escapePreservingEscapes: pa,
2472
+ removeDotSegments: na,
2472
2473
  isIPv4: ko,
2473
- isUUID: Xs,
2474
+ isUUID: Qs,
2474
2475
  normalizeIPv6: Po
2475
2476
  };
2476
- const { isUUID: ua } = Vo, fa = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
2477
+ const { isUUID: fa } = Vo, ha = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
2477
2478
  function Do(e) {
2478
2479
  return e.secure === !0 ? !0 : e.secure === !1 ? !1 : e.scheme ? e.scheme.length === 3 && (e.scheme[0] === "w" || e.scheme[0] === "W") && (e.scheme[1] === "s" || e.scheme[1] === "S") && (e.scheme[2] === "s" || e.scheme[2] === "S") : !1;
2479
2480
  }
@@ -2484,20 +2485,20 @@ function jo(e) {
2484
2485
  const t = String(e.scheme).toLowerCase() === "https";
2485
2486
  return (e.port === (t ? 443 : 80) || e.port === "") && (e.port = void 0), e.path || (e.path = "/"), e;
2486
2487
  }
2487
- function ha(e) {
2488
+ function ma(e) {
2488
2489
  return e.secure = Do(e), e.resourceName = (e.path || "/") + (e.query ? "?" + e.query : ""), e.path = void 0, e.query = void 0, e;
2489
2490
  }
2490
- function ma(e) {
2491
+ function ga(e) {
2491
2492
  if ((e.port === (Do(e) ? 443 : 80) || e.port === "") && (e.port = void 0), typeof e.secure == "boolean" && (e.scheme = e.secure ? "wss" : "ws", e.secure = void 0), e.resourceName) {
2492
2493
  const [t, r] = e.resourceName.split("?");
2493
2494
  e.path = t && t !== "/" ? t : void 0, e.query = r, e.resourceName = void 0;
2494
2495
  }
2495
2496
  return e.fragment = void 0, e;
2496
2497
  }
2497
- function ga(e, t) {
2498
+ function ya(e, t) {
2498
2499
  if (!e.path)
2499
2500
  return e.error = "URN can not be parsed", e;
2500
- const r = e.path.match(fa);
2501
+ const r = e.path.match(ha);
2501
2502
  if (r) {
2502
2503
  const i = t.scheme || e.scheme || "urn";
2503
2504
  e.nid = r[1].toLowerCase(), e.nss = r[2];
@@ -2507,7 +2508,7 @@ function ga(e, t) {
2507
2508
  e.error = e.error || "URN can not be parsed.";
2508
2509
  return e;
2509
2510
  }
2510
- function ya(e, t) {
2511
+ function ba(e, t) {
2511
2512
  if (e.nid === void 0)
2512
2513
  throw new Error("URN without nid cannot be serialized");
2513
2514
  const r = t.scheme || e.scheme || "urn", i = e.nid.toLowerCase(), o = `${r}:${t.nid || i}`, n = Sr(o);
@@ -2517,9 +2518,9 @@ function ya(e, t) {
2517
2518
  }
2518
2519
  function $a(e, t) {
2519
2520
  const r = e;
2520
- return r.uuid = r.nss, r.nss = void 0, !t.tolerant && (!r.uuid || !ua(r.uuid)) && (r.error = r.error || "UUID is not valid."), r;
2521
+ return r.uuid = r.nss, r.nss = void 0, !t.tolerant && (!r.uuid || !fa(r.uuid)) && (r.error = r.error || "UUID is not valid."), r;
2521
2522
  }
2522
- function ba(e) {
2523
+ function va(e) {
2523
2524
  const t = e;
2524
2525
  return t.nss = (e.uuid || "").toLowerCase(), t;
2525
2526
  }
@@ -2531,7 +2532,7 @@ const Ro = (
2531
2532
  parse: Fo,
2532
2533
  serialize: jo
2533
2534
  }
2534
- ), va = (
2535
+ ), Sa = (
2535
2536
  /** @type {SchemeHandler} */
2536
2537
  {
2537
2538
  scheme: "https",
@@ -2544,10 +2545,10 @@ const Ro = (
2544
2545
  {
2545
2546
  scheme: "ws",
2546
2547
  domainHost: !0,
2547
- parse: ha,
2548
- serialize: ma
2548
+ parse: ma,
2549
+ serialize: ga
2549
2550
  }
2550
- ), Sa = (
2551
+ ), wa = (
2551
2552
  /** @type {SchemeHandler} */
2552
2553
  {
2553
2554
  scheme: "wss",
@@ -2555,31 +2556,31 @@ const Ro = (
2555
2556
  parse: gt.parse,
2556
2557
  serialize: gt.serialize
2557
2558
  }
2558
- ), wa = (
2559
+ ), ka = (
2559
2560
  /** @type {SchemeHandler} */
2560
2561
  {
2561
2562
  scheme: "urn",
2562
- parse: ga,
2563
- serialize: ya,
2563
+ parse: ya,
2564
+ serialize: ba,
2564
2565
  skipNormalize: !0
2565
2566
  }
2566
- ), ka = (
2567
+ ), Oa = (
2567
2568
  /** @type {SchemeHandler} */
2568
2569
  {
2569
2570
  scheme: "urn:uuid",
2570
2571
  parse: $a,
2571
- serialize: ba,
2572
+ serialize: va,
2572
2573
  skipNormalize: !0
2573
2574
  }
2574
2575
  ), wt = (
2575
2576
  /** @type {Record<SchemeName, SchemeHandler>} */
2576
2577
  {
2577
2578
  http: Ro,
2578
- https: va,
2579
+ https: Sa,
2579
2580
  ws: gt,
2580
- wss: Sa,
2581
- urn: wa,
2582
- "urn:uuid": ka
2581
+ wss: wa,
2582
+ urn: ka,
2583
+ "urn:uuid": Oa
2583
2584
  }
2584
2585
  );
2585
2586
  Object.setPrototypeOf(wt, null);
@@ -2592,29 +2593,29 @@ function Sr(e) {
2592
2593
  e.toLowerCase()
2593
2594
  ]) || void 0;
2594
2595
  }
2595
- var Oa = {
2596
+ var Ca = {
2596
2597
  SCHEMES: wt,
2597
2598
  getSchemeHandler: Sr
2598
2599
  };
2599
- const { normalizeIPv6: Ca, removeDotSegments: Je, recomposeAuthority: Pa, normalizePercentEncoding: _a, normalizePathEncoding: Va, escapePreservingEscapes: Da, reescapeHostDelimiters: Fa, isIPv4: ja, nonSimpleDomain: Ra } = Vo, { SCHEMES: Ta, getSchemeHandler: To } = Oa;
2600
- function Ia(e, t) {
2600
+ const { normalizeIPv6: Pa, removeDotSegments: Ye, recomposeAuthority: _a, normalizePercentEncoding: Va, normalizePathEncoding: Da, escapePreservingEscapes: Fa, reescapeHostDelimiters: ja, isIPv4: Ra, nonSimpleDomain: Ta } = Vo, { SCHEMES: Ia, getSchemeHandler: To } = Ca;
2601
+ function Ea(e, t) {
2601
2602
  return typeof e == "string" ? e = /** @type {T} */
2602
- za(e, t) : typeof e == "object" && (e = /** @type {T} */
2603
- Ae(Pe(e, t), t)), e;
2603
+ Ma(e, t) : typeof e == "object" && (e = /** @type {T} */
2604
+ Ae(_e(e, t), t)), e;
2604
2605
  }
2605
- function Ea(e, t, r) {
2606
+ function xa(e, t, r) {
2606
2607
  const i = r ? Object.assign({ scheme: "null" }, r) : { scheme: "null" }, o = Io(Ae(e, i), Ae(t, i), i, !0);
2607
- return i.skipEscape = !0, Pe(o, i);
2608
+ return i.skipEscape = !0, _e(o, i);
2608
2609
  }
2609
2610
  function Io(e, t, r, i) {
2610
2611
  const o = {};
2611
- return i || (e = Ae(Pe(e, r), r), t = Ae(Pe(t, r), r)), r = r || {}, !r.tolerant && t.scheme ? (o.scheme = t.scheme, o.userinfo = t.userinfo, o.host = t.host, o.port = t.port, o.path = Je(t.path || ""), o.query = t.query) : (t.userinfo !== void 0 || t.host !== void 0 || t.port !== void 0 ? (o.userinfo = t.userinfo, o.host = t.host, o.port = t.port, o.path = Je(t.path || ""), o.query = t.query) : (t.path ? (t.path[0] === "/" ? o.path = Je(t.path) : ((e.userinfo !== void 0 || e.host !== void 0 || e.port !== void 0) && !e.path ? o.path = "/" + t.path : e.path ? o.path = e.path.slice(0, e.path.lastIndexOf("/") + 1) + t.path : o.path = t.path, o.path = Je(o.path)), o.query = t.query) : (o.path = e.path, t.query !== void 0 ? o.query = t.query : o.query = e.query), o.userinfo = e.userinfo, o.host = e.host, o.port = e.port), o.scheme = e.scheme), o.fragment = t.fragment, o;
2612
+ return i || (e = Ae(_e(e, r), r), t = Ae(_e(t, r), r)), r = r || {}, !r.tolerant && t.scheme ? (o.scheme = t.scheme, o.userinfo = t.userinfo, o.host = t.host, o.port = t.port, o.path = Ye(t.path || ""), o.query = t.query) : (t.userinfo !== void 0 || t.host !== void 0 || t.port !== void 0 ? (o.userinfo = t.userinfo, o.host = t.host, o.port = t.port, o.path = Ye(t.path || ""), o.query = t.query) : (t.path ? (t.path[0] === "/" ? o.path = Ye(t.path) : ((e.userinfo !== void 0 || e.host !== void 0 || e.port !== void 0) && !e.path ? o.path = "/" + t.path : e.path ? o.path = e.path.slice(0, e.path.lastIndexOf("/") + 1) + t.path : o.path = t.path, o.path = Ye(o.path)), o.query = t.query) : (o.path = e.path, t.query !== void 0 ? o.query = t.query : o.query = e.query), o.userinfo = e.userinfo, o.host = e.host, o.port = e.port), o.scheme = e.scheme), o.fragment = t.fragment, o;
2612
2613
  }
2613
- function xa(e, t, r) {
2614
+ function Aa(e, t, r) {
2614
2615
  const i = ki(e, r), o = ki(t, r);
2615
2616
  return i !== void 0 && o !== void 0 && i.toLowerCase() === o.toLowerCase();
2616
2617
  }
2617
- function Pe(e, t) {
2618
+ function _e(e, t) {
2618
2619
  const r = {
2619
2620
  host: e.host,
2620
2621
  scheme: e.scheme,
@@ -2631,16 +2632,16 @@ function Pe(e, t) {
2631
2632
  secure: e.secure,
2632
2633
  error: ""
2633
2634
  }, i = Object.assign({}, t), o = [], n = To(i.scheme || r.scheme);
2634
- n && n.serialize && n.serialize(r, i), r.path !== void 0 && (i.skipEscape ? r.path = _a(r.path) : (r.path = Da(r.path), r.scheme !== void 0 && (r.path = r.path.split("%3A").join(":")))), i.reference !== "suffix" && r.scheme && o.push(r.scheme, ":");
2635
- const a = Pa(r);
2635
+ n && n.serialize && n.serialize(r, i), r.path !== void 0 && (i.skipEscape ? r.path = Va(r.path) : (r.path = Fa(r.path), r.scheme !== void 0 && (r.path = r.path.split("%3A").join(":")))), i.reference !== "suffix" && r.scheme && o.push(r.scheme, ":");
2636
+ const a = _a(r);
2636
2637
  if (a !== void 0 && (i.reference !== "suffix" && o.push("//"), o.push(a), r.path && r.path[0] !== "/" && o.push("/")), r.path !== void 0) {
2637
2638
  let l = r.path;
2638
- !i.absolutePath && (!n || !n.absolutePath) && (l = Je(l)), a === void 0 && l[0] === "/" && l[1] === "/" && (l = "/%2F" + l.slice(2)), o.push(l);
2639
+ !i.absolutePath && (!n || !n.absolutePath) && (l = Ye(l)), a === void 0 && l[0] === "/" && l[1] === "/" && (l = "/%2F" + l.slice(2)), o.push(l);
2639
2640
  }
2640
2641
  return r.query !== void 0 && o.push("?", r.query), r.fragment !== void 0 && o.push("#", r.fragment), o.join("");
2641
2642
  }
2642
- const Aa = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
2643
- function Na(e, t) {
2643
+ const Na = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
2644
+ function za(e, t) {
2644
2645
  if (t[2] !== void 0 && e.path && e.path[0] !== "/")
2645
2646
  return 'URI path must start with "/" when authority is present.';
2646
2647
  if (typeof e.port == "number" && (e.port < 0 || e.port > 65535))
@@ -2658,25 +2659,25 @@ function Eo(e, t) {
2658
2659
  };
2659
2660
  let o = !1, n = !1;
2660
2661
  r.reference === "suffix" && (r.scheme ? e = r.scheme + ":" + e : e = "//" + e);
2661
- const a = e.match(Aa);
2662
+ const a = e.match(Na);
2662
2663
  if (a) {
2663
2664
  i.scheme = a[1], i.userinfo = a[3], i.host = a[4], i.port = parseInt(a[5], 10), i.path = a[6] || "", i.query = a[7], i.fragment = a[8], isNaN(i.port) && (i.port = a[5]);
2664
- const l = Na(i, a);
2665
+ const l = za(i, a);
2665
2666
  if (l !== void 0 && (i.error = i.error || l, o = !0), i.host)
2666
- if (ja(i.host) === !1) {
2667
- const f = Ca(i.host);
2667
+ if (Ra(i.host) === !1) {
2668
+ const f = Pa(i.host);
2668
2669
  i.host = f.host.toLowerCase(), n = f.isIPV6;
2669
2670
  } else
2670
2671
  n = !0;
2671
2672
  i.scheme === void 0 && i.userinfo === void 0 && i.host === void 0 && i.port === void 0 && i.query === void 0 && !i.path ? i.reference = "same-document" : i.scheme === void 0 ? i.reference = "relative" : i.fragment === void 0 ? i.reference = "absolute" : i.reference = "uri", r.reference && r.reference !== "suffix" && r.reference !== i.reference && (i.error = i.error || "URI is not a " + r.reference + " reference.");
2672
2673
  const d = To(r.scheme || i.scheme);
2673
- if (!r.unicodeSupport && (!d || !d.unicodeSupport) && i.host && (r.domainHost || d && d.domainHost) && n === !1 && Ra(i.host))
2674
+ if (!r.unicodeSupport && (!d || !d.unicodeSupport) && i.host && (r.domainHost || d && d.domainHost) && n === !1 && Ta(i.host))
2674
2675
  try {
2675
2676
  i.host = URL.domainToASCII(i.host.toLowerCase());
2676
2677
  } catch (c) {
2677
2678
  i.error = i.error || "Host's domain name can not be converted to ASCII: " + c;
2678
2679
  }
2679
- if ((!d || d && !d.skipNormalize) && (e.indexOf("%") !== -1 && (i.scheme !== void 0 && (i.scheme = unescape(i.scheme)), i.host !== void 0 && (i.host = Fa(unescape(i.host), n))), i.path && (i.path = Va(i.path)), i.fragment))
2680
+ if ((!d || d && !d.skipNormalize) && (e.indexOf("%") !== -1 && (i.scheme !== void 0 && (i.scheme = unescape(i.scheme)), i.host !== void 0 && (i.host = ja(unescape(i.host), n))), i.path && (i.path = Da(i.path)), i.fragment))
2680
2681
  try {
2681
2682
  i.fragment = encodeURI(decodeURIComponent(i.fragment));
2682
2683
  } catch {
@@ -2690,13 +2691,13 @@ function Eo(e, t) {
2690
2691
  function Ae(e, t) {
2691
2692
  return Eo(e, t).parsed;
2692
2693
  }
2693
- function za(e, t) {
2694
+ function Ma(e, t) {
2694
2695
  return xo(e, t).normalized;
2695
2696
  }
2696
2697
  function xo(e, t) {
2697
2698
  const { parsed: r, malformedAuthorityOrPort: i } = Eo(e, t);
2698
2699
  return {
2699
- normalized: i ? e : Pe(r, t),
2700
+ normalized: i ? e : _e(r, t),
2700
2701
  malformedAuthorityOrPort: i
2701
2702
  };
2702
2703
  }
@@ -2706,25 +2707,25 @@ function ki(e, t) {
2706
2707
  return i ? void 0 : r;
2707
2708
  }
2708
2709
  if (typeof e == "object")
2709
- return Pe(e, t);
2710
+ return _e(e, t);
2710
2711
  }
2711
2712
  const wr = {
2712
- SCHEMES: Ta,
2713
- normalize: Ia,
2714
- resolve: Ea,
2713
+ SCHEMES: Ia,
2714
+ normalize: Ea,
2715
+ resolve: xa,
2715
2716
  resolveComponent: Io,
2716
- equal: xa,
2717
- serialize: Pe,
2717
+ equal: Aa,
2718
+ serialize: _e,
2718
2719
  parse: Ae
2719
2720
  };
2720
2721
  Dt.exports = wr;
2721
2722
  Dt.exports.default = wr;
2722
2723
  Dt.exports.fastUri = wr;
2723
- var Ma = Dt.exports;
2724
- Object.defineProperty(br, "__esModule", { value: !0 });
2725
- const Ao = Ma;
2724
+ var La = Dt.exports;
2725
+ Object.defineProperty($r, "__esModule", { value: !0 });
2726
+ const Ao = La;
2726
2727
  Ao.code = 'require("ajv/dist/runtime/uri").default';
2727
- br.default = Ao;
2728
+ $r.default = Ao;
2728
2729
  (function(e) {
2729
2730
  Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
2730
2731
  var t = oe;
@@ -2745,9 +2746,9 @@ br.default = Ao;
2745
2746
  } }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
2746
2747
  return r.CodeGen;
2747
2748
  } });
2748
- const i = st, o = ze, n = Ce, a = Z, l = E, d = K, c = W, f = V, h = Zs, k = br, S = (_, m) => new RegExp(_, m);
2749
+ const i = st, o = Me, n = Pe, a = Z, l = E, d = K, c = W, f = V, h = Xs, k = $r, S = (_, m) => new RegExp(_, m);
2749
2750
  S.code = "new RegExp";
2750
- const b = ["removeAdditional", "useDefaults", "coerceTypes"], w = /* @__PURE__ */ new Set([
2751
+ const $ = ["removeAdditional", "useDefaults", "coerceTypes"], w = /* @__PURE__ */ new Set([
2751
2752
  "validate",
2752
2753
  "serialize",
2753
2754
  "parse",
@@ -2781,19 +2782,19 @@ br.default = Ao;
2781
2782
  ignoreKeywordsWithRef: "",
2782
2783
  jsPropertySyntax: "",
2783
2784
  unicode: '"minLength"/"maxLength" account for unicode characters by default.'
2784
- }, $ = 200;
2785
+ }, b = 200;
2785
2786
  function C(_) {
2786
- var m, O, y, s, p, v, R, T, z, N, U, Ve, Et, xt, At, Nt, zt, Mt, Lt, Bt, qt, Ht, Wt, Ut, Gt;
2787
- const Ue = _.strict, Kt = (m = _.code) === null || m === void 0 ? void 0 : m.optimize, pi = Kt === !0 || Kt === void 0 ? 1 : Kt || 0, ui = (y = (O = _.code) === null || O === void 0 ? void 0 : O.regExp) !== null && y !== void 0 ? y : S, Jo = (s = _.uriResolver) !== null && s !== void 0 ? s : k.default;
2787
+ var m, O, y, s, p, v, R, T, z, N, U, De, Et, xt, At, Nt, zt, Mt, Lt, Bt, qt, Ht, Wt, Ut, Gt;
2788
+ const Ge = _.strict, Kt = (m = _.code) === null || m === void 0 ? void 0 : m.optimize, pi = Kt === !0 || Kt === void 0 ? 1 : Kt || 0, ui = (y = (O = _.code) === null || O === void 0 ? void 0 : O.regExp) !== null && y !== void 0 ? y : S, Jo = (s = _.uriResolver) !== null && s !== void 0 ? s : k.default;
2788
2789
  return {
2789
- strictSchema: (v = (p = _.strictSchema) !== null && p !== void 0 ? p : Ue) !== null && v !== void 0 ? v : !0,
2790
- strictNumbers: (T = (R = _.strictNumbers) !== null && R !== void 0 ? R : Ue) !== null && T !== void 0 ? T : !0,
2791
- strictTypes: (N = (z = _.strictTypes) !== null && z !== void 0 ? z : Ue) !== null && N !== void 0 ? N : "log",
2792
- strictTuples: (Ve = (U = _.strictTuples) !== null && U !== void 0 ? U : Ue) !== null && Ve !== void 0 ? Ve : "log",
2793
- strictRequired: (xt = (Et = _.strictRequired) !== null && Et !== void 0 ? Et : Ue) !== null && xt !== void 0 ? xt : !1,
2790
+ strictSchema: (v = (p = _.strictSchema) !== null && p !== void 0 ? p : Ge) !== null && v !== void 0 ? v : !0,
2791
+ strictNumbers: (T = (R = _.strictNumbers) !== null && R !== void 0 ? R : Ge) !== null && T !== void 0 ? T : !0,
2792
+ strictTypes: (N = (z = _.strictTypes) !== null && z !== void 0 ? z : Ge) !== null && N !== void 0 ? N : "log",
2793
+ strictTuples: (De = (U = _.strictTuples) !== null && U !== void 0 ? U : Ge) !== null && De !== void 0 ? De : "log",
2794
+ strictRequired: (xt = (Et = _.strictRequired) !== null && Et !== void 0 ? Et : Ge) !== null && xt !== void 0 ? xt : !1,
2794
2795
  code: _.code ? { ..._.code, optimize: pi, regExp: ui } : { optimize: pi, regExp: ui },
2795
- loopRequired: (At = _.loopRequired) !== null && At !== void 0 ? At : $,
2796
- loopEnum: (Nt = _.loopEnum) !== null && Nt !== void 0 ? Nt : $,
2796
+ loopRequired: (At = _.loopRequired) !== null && At !== void 0 ? At : b,
2797
+ loopEnum: (Nt = _.loopEnum) !== null && Nt !== void 0 ? Nt : b,
2797
2798
  meta: (zt = _.meta) !== null && zt !== void 0 ? zt : !0,
2798
2799
  messages: (Mt = _.messages) !== null && Mt !== void 0 ? Mt : !0,
2799
2800
  inlineRefs: (Lt = _.inlineRefs) !== null && Lt !== void 0 ? Lt : !0,
@@ -2812,7 +2813,7 @@ br.default = Ao;
2812
2813
  const { es5: O, lines: y } = this.opts.code;
2813
2814
  this.scope = new l.ValueScope({ scope: {}, prefixes: w, es5: O, lines: y }), this.logger = le(m.logger);
2814
2815
  const s = m.validateFormats;
2815
- m.validateFormats = !1, this.RULES = (0, n.getRules)(), F.call(this, g, m, "NOT SUPPORTED"), F.call(this, u, m, "DEPRECATED", "warn"), this._metaOpts = be.call(this), m.formats && ae.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), m.keywords && ue.call(this, m.keywords), typeof m.meta == "object" && this.addMetaSchema(m.meta), H.call(this), m.validateFormats = s;
2816
+ m.validateFormats = !1, this.RULES = (0, n.getRules)(), F.call(this, g, m, "NOT SUPPORTED"), F.call(this, u, m, "DEPRECATED", "warn"), this._metaOpts = ve.call(this), m.formats && ae.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), m.keywords && fe.call(this, m.keywords), typeof m.meta == "object" && this.addMetaSchema(m.meta), H.call(this), m.validateFormats = s;
2816
2817
  }
2817
2818
  _addVocabularies() {
2818
2819
  this.addKeyword("$async");
@@ -2847,8 +2848,8 @@ br.default = Ao;
2847
2848
  return s.call(this, m, O);
2848
2849
  async function s(N, U) {
2849
2850
  await p.call(this, N.$schema);
2850
- const Ve = this._addSchema(N, U);
2851
- return Ve.validate || v.call(this, Ve);
2851
+ const De = this._addSchema(N, U);
2852
+ return De.validate || v.call(this, De);
2852
2853
  }
2853
2854
  async function p(N) {
2854
2855
  N && !this.getSchema(N) && await s.call(this, { $ref: N }, !0);
@@ -2973,15 +2974,15 @@ br.default = Ao;
2973
2974
  throw new Error("addKeywords: keyword must be string or non-empty array");
2974
2975
  } else
2975
2976
  throw new Error("invalid addKeywords parameters");
2976
- if (fe.call(this, y, O), !O)
2977
- return (0, f.eachItem)(y, (p) => We.call(this, p)), this;
2977
+ if (he.call(this, y, O), !O)
2978
+ return (0, f.eachItem)(y, (p) => Ue.call(this, p)), this;
2978
2979
  Tt.call(this, O);
2979
2980
  const s = {
2980
2981
  ...O,
2981
2982
  type: (0, c.getJSONTypes)(O.type),
2982
2983
  schemaType: (0, c.getJSONTypes)(O.schemaType)
2983
2984
  };
2984
- return (0, f.eachItem)(y, s.type.length === 0 ? (p) => We.call(this, p, s) : (p) => s.type.forEach((v) => We.call(this, p, s, v))), this;
2985
+ return (0, f.eachItem)(y, s.type.length === 0 ? (p) => Ue.call(this, p, s) : (p) => s.type.forEach((v) => Ue.call(this, p, s, v))), this;
2985
2986
  }
2986
2987
  getKeyword(m) {
2987
2988
  const O = this.RULES.all[m];
@@ -3090,7 +3091,7 @@ br.default = Ao;
3090
3091
  m && this.addFormat(_, m);
3091
3092
  }
3092
3093
  }
3093
- function ue(_) {
3094
+ function fe(_) {
3094
3095
  if (Array.isArray(_)) {
3095
3096
  this.addVocabulary(_);
3096
3097
  return;
@@ -3101,37 +3102,37 @@ br.default = Ao;
3101
3102
  O.keyword || (O.keyword = m), this.addKeyword(O);
3102
3103
  }
3103
3104
  }
3104
- function be() {
3105
+ function ve() {
3105
3106
  const _ = { ...this.opts };
3106
- for (const m of b)
3107
+ for (const m of $)
3107
3108
  delete _[m];
3108
3109
  return _;
3109
3110
  }
3110
- const He = { log() {
3111
+ const We = { log() {
3111
3112
  }, warn() {
3112
3113
  }, error() {
3113
3114
  } };
3114
3115
  function le(_) {
3115
3116
  if (_ === !1)
3116
- return He;
3117
+ return We;
3117
3118
  if (_ === void 0)
3118
3119
  return console;
3119
3120
  if (_.log && _.warn && _.error)
3120
3121
  return _;
3121
3122
  throw new Error("logger must implement log, warn and error methods");
3122
3123
  }
3123
- const _e = /^[a-z_$][a-z0-9_$:-]*$/i;
3124
- function fe(_, m) {
3124
+ const Ve = /^[a-z_$][a-z0-9_$:-]*$/i;
3125
+ function he(_, m) {
3125
3126
  const { RULES: O } = this;
3126
3127
  if ((0, f.eachItem)(_, (y) => {
3127
3128
  if (O.keywords[y])
3128
3129
  throw new Error(`Keyword ${y} is already defined`);
3129
- if (!_e.test(y))
3130
+ if (!Ve.test(y))
3130
3131
  throw new Error(`Keyword ${y} has invalid name`);
3131
3132
  }), !!m && m.$data && !("code" in m || "validate" in m))
3132
3133
  throw new Error('$data keyword must have "code" or "validate" function');
3133
3134
  }
3134
- function We(_, m, O) {
3135
+ function Ue(_, m, O) {
3135
3136
  var y;
3136
3137
  const s = m == null ? void 0 : m.post;
3137
3138
  if (O && s)
@@ -3167,17 +3168,17 @@ br.default = Ao;
3167
3168
  })(qi);
3168
3169
  var kr = {}, Or = {}, Cr = {};
3169
3170
  Object.defineProperty(Cr, "__esModule", { value: !0 });
3170
- const La = {
3171
+ const Ba = {
3171
3172
  keyword: "id",
3172
3173
  code() {
3173
3174
  throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID');
3174
3175
  }
3175
3176
  };
3176
- Cr.default = La;
3177
- var pe = {};
3178
- Object.defineProperty(pe, "__esModule", { value: !0 });
3179
- pe.callRef = pe.getValidate = void 0;
3180
- const Ba = ze, Oi = A, X = E, Fe = Q, Ci = Z, ct = V, qa = {
3177
+ Cr.default = Ba;
3178
+ var ue = {};
3179
+ Object.defineProperty(ue, "__esModule", { value: !0 });
3180
+ ue.callRef = ue.getValidate = void 0;
3181
+ const qa = Me, Oi = A, X = E, je = Q, Ci = Z, ct = V, Ha = {
3181
3182
  keyword: "$ref",
3182
3183
  schemaType: "string",
3183
3184
  code(e) {
@@ -3186,23 +3187,23 @@ const Ba = ze, Oi = A, X = E, Fe = Q, Ci = Z, ct = V, qa = {
3186
3187
  return h();
3187
3188
  const f = Ci.resolveRef.call(d, c, o, r);
3188
3189
  if (f === void 0)
3189
- throw new Ba.default(i.opts.uriResolver, o, r);
3190
+ throw new qa.default(i.opts.uriResolver, o, r);
3190
3191
  if (f instanceof Ci.SchemaEnv)
3191
3192
  return k(f);
3192
3193
  return S(f);
3193
3194
  function h() {
3194
3195
  if (n === c)
3195
3196
  return yt(e, a, n, n.$async);
3196
- const b = t.scopeValue("root", { ref: c });
3197
- return yt(e, (0, X._)`${b}.validate`, c, c.$async);
3197
+ const $ = t.scopeValue("root", { ref: c });
3198
+ return yt(e, (0, X._)`${$}.validate`, c, c.$async);
3198
3199
  }
3199
- function k(b) {
3200
- const w = No(e, b);
3201
- yt(e, w, b, b.$async);
3200
+ function k($) {
3201
+ const w = No(e, $);
3202
+ yt(e, w, $, $.$async);
3202
3203
  }
3203
- function S(b) {
3204
- const w = t.scopeValue("schema", l.code.source === !0 ? { ref: b, code: (0, X.stringify)(b) } : { ref: b }), g = t.name("valid"), u = e.subschema({
3205
- schema: b,
3204
+ function S($) {
3205
+ const w = t.scopeValue("schema", l.code.source === !0 ? { ref: $, code: (0, X.stringify)($) } : { ref: $ }), g = t.name("valid"), u = e.subschema({
3206
+ schema: $,
3206
3207
  dataTypes: [],
3207
3208
  schemaPath: X.nil,
3208
3209
  topSchemaRef: w,
@@ -3216,28 +3217,28 @@ function No(e, t) {
3216
3217
  const { gen: r } = e;
3217
3218
  return t.validate ? r.scopeValue("validate", { ref: t.validate }) : (0, X._)`${r.scopeValue("wrapper", { ref: t })}.validate`;
3218
3219
  }
3219
- pe.getValidate = No;
3220
+ ue.getValidate = No;
3220
3221
  function yt(e, t, r, i) {
3221
- const { gen: o, it: n } = e, { allErrors: a, schemaEnv: l, opts: d } = n, c = d.passContext ? Fe.default.this : X.nil;
3222
+ const { gen: o, it: n } = e, { allErrors: a, schemaEnv: l, opts: d } = n, c = d.passContext ? je.default.this : X.nil;
3222
3223
  i ? f() : h();
3223
3224
  function f() {
3224
3225
  if (!l.$async)
3225
3226
  throw new Error("async schema referenced by sync schema");
3226
- const b = o.let("valid");
3227
+ const $ = o.let("valid");
3227
3228
  o.try(() => {
3228
- o.code((0, X._)`await ${(0, Oi.callValidateCode)(e, t, c)}`), S(t), a || o.assign(b, !0);
3229
+ o.code((0, X._)`await ${(0, Oi.callValidateCode)(e, t, c)}`), S(t), a || o.assign($, !0);
3229
3230
  }, (w) => {
3230
- o.if((0, X._)`!(${w} instanceof ${n.ValidationError})`, () => o.throw(w)), k(w), a || o.assign(b, !1);
3231
- }), e.ok(b);
3231
+ o.if((0, X._)`!(${w} instanceof ${n.ValidationError})`, () => o.throw(w)), k(w), a || o.assign($, !1);
3232
+ }), e.ok($);
3232
3233
  }
3233
3234
  function h() {
3234
3235
  e.result((0, Oi.callValidateCode)(e, t, c), () => S(t), () => k(t));
3235
3236
  }
3236
- function k(b) {
3237
- const w = (0, X._)`${b}.errors`;
3238
- o.assign(Fe.default.vErrors, (0, X._)`${Fe.default.vErrors} === null ? ${w} : ${Fe.default.vErrors}.concat(${w})`), o.assign(Fe.default.errors, (0, X._)`${Fe.default.vErrors}.length`);
3237
+ function k($) {
3238
+ const w = (0, X._)`${$}.errors`;
3239
+ o.assign(je.default.vErrors, (0, X._)`${je.default.vErrors} === null ? ${w} : ${je.default.vErrors}.concat(${w})`), o.assign(je.default.errors, (0, X._)`${je.default.vErrors}.length`);
3239
3240
  }
3240
- function S(b) {
3241
+ function S($) {
3241
3242
  var w;
3242
3243
  if (!n.opts.unevaluated)
3243
3244
  return;
@@ -3246,71 +3247,71 @@ function yt(e, t, r, i) {
3246
3247
  if (g && !g.dynamicProps)
3247
3248
  g.props !== void 0 && (n.props = ct.mergeEvaluated.props(o, g.props, n.props));
3248
3249
  else {
3249
- const u = o.var("props", (0, X._)`${b}.evaluated.props`);
3250
+ const u = o.var("props", (0, X._)`${$}.evaluated.props`);
3250
3251
  n.props = ct.mergeEvaluated.props(o, u, n.props, X.Name);
3251
3252
  }
3252
3253
  if (n.items !== !0)
3253
3254
  if (g && !g.dynamicItems)
3254
3255
  g.items !== void 0 && (n.items = ct.mergeEvaluated.items(o, g.items, n.items));
3255
3256
  else {
3256
- const u = o.var("items", (0, X._)`${b}.evaluated.items`);
3257
+ const u = o.var("items", (0, X._)`${$}.evaluated.items`);
3257
3258
  n.items = ct.mergeEvaluated.items(o, u, n.items, X.Name);
3258
3259
  }
3259
3260
  }
3260
3261
  }
3261
- pe.callRef = yt;
3262
- pe.default = qa;
3262
+ ue.callRef = yt;
3263
+ ue.default = Ha;
3263
3264
  Object.defineProperty(Or, "__esModule", { value: !0 });
3264
- const Ha = Cr, Wa = pe, Ua = [
3265
+ const Wa = Cr, Ua = ue, Ga = [
3265
3266
  "$schema",
3266
3267
  "$id",
3267
3268
  "$defs",
3268
3269
  "$vocabulary",
3269
3270
  { keyword: "$comment" },
3270
3271
  "definitions",
3271
- Ha.default,
3272
- Wa.default
3272
+ Wa.default,
3273
+ Ua.default
3273
3274
  ];
3274
- Or.default = Ua;
3275
+ Or.default = Ga;
3275
3276
  var Pr = {}, _r = {};
3276
3277
  Object.defineProperty(_r, "__esModule", { value: !0 });
3277
- const kt = E, me = kt.operators, Ot = {
3278
- maximum: { okStr: "<=", ok: me.LTE, fail: me.GT },
3279
- minimum: { okStr: ">=", ok: me.GTE, fail: me.LT },
3280
- exclusiveMaximum: { okStr: "<", ok: me.LT, fail: me.GTE },
3281
- exclusiveMinimum: { okStr: ">", ok: me.GT, fail: me.LTE }
3282
- }, Ga = {
3278
+ const kt = E, ge = kt.operators, Ot = {
3279
+ maximum: { okStr: "<=", ok: ge.LTE, fail: ge.GT },
3280
+ minimum: { okStr: ">=", ok: ge.GTE, fail: ge.LT },
3281
+ exclusiveMaximum: { okStr: "<", ok: ge.LT, fail: ge.GTE },
3282
+ exclusiveMinimum: { okStr: ">", ok: ge.GT, fail: ge.LTE }
3283
+ }, Ka = {
3283
3284
  message: ({ keyword: e, schemaCode: t }) => (0, kt.str)`must be ${Ot[e].okStr} ${t}`,
3284
3285
  params: ({ keyword: e, schemaCode: t }) => (0, kt._)`{comparison: ${Ot[e].okStr}, limit: ${t}}`
3285
- }, Ka = {
3286
+ }, Ja = {
3286
3287
  keyword: Object.keys(Ot),
3287
3288
  type: "number",
3288
3289
  schemaType: "number",
3289
3290
  $data: !0,
3290
- error: Ga,
3291
+ error: Ka,
3291
3292
  code(e) {
3292
3293
  const { keyword: t, data: r, schemaCode: i } = e;
3293
3294
  e.fail$data((0, kt._)`${r} ${Ot[t].fail} ${i} || isNaN(${r})`);
3294
3295
  }
3295
3296
  };
3296
- _r.default = Ka;
3297
+ _r.default = Ja;
3297
3298
  var Vr = {};
3298
3299
  Object.defineProperty(Vr, "__esModule", { value: !0 });
3299
- const Xe = E, Ja = {
3300
- message: ({ schemaCode: e }) => (0, Xe.str)`must be multiple of ${e}`,
3301
- params: ({ schemaCode: e }) => (0, Xe._)`{multipleOf: ${e}}`
3302
- }, Ya = {
3300
+ const Qe = E, Ya = {
3301
+ message: ({ schemaCode: e }) => (0, Qe.str)`must be multiple of ${e}`,
3302
+ params: ({ schemaCode: e }) => (0, Qe._)`{multipleOf: ${e}}`
3303
+ }, Za = {
3303
3304
  keyword: "multipleOf",
3304
3305
  type: "number",
3305
3306
  schemaType: "number",
3306
3307
  $data: !0,
3307
- error: Ja,
3308
+ error: Ya,
3308
3309
  code(e) {
3309
- const { gen: t, data: r, schemaCode: i, it: o } = e, n = o.opts.multipleOfPrecision, a = t.let("res"), l = n ? (0, Xe._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${n}` : (0, Xe._)`${a} !== parseInt(${a})`;
3310
- e.fail$data((0, Xe._)`(${i} === 0 || (${a} = ${r}/${i}, ${l}))`);
3310
+ const { gen: t, data: r, schemaCode: i, it: o } = e, n = o.opts.multipleOfPrecision, a = t.let("res"), l = n ? (0, Qe._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${n}` : (0, Qe._)`${a} !== parseInt(${a})`;
3311
+ e.fail$data((0, Qe._)`(${i} === 0 || (${a} = ${r}/${i}, ${l}))`);
3311
3312
  }
3312
3313
  };
3313
- Vr.default = Ya;
3314
+ Vr.default = Za;
3314
3315
  var Dr = {}, Fr = {};
3315
3316
  Object.defineProperty(Fr, "__esModule", { value: !0 });
3316
3317
  function zo(e) {
@@ -3323,156 +3324,156 @@ function zo(e) {
3323
3324
  Fr.default = zo;
3324
3325
  zo.code = 'require("ajv/dist/runtime/ucs2length").default';
3325
3326
  Object.defineProperty(Dr, "__esModule", { value: !0 });
3326
- const we = E, Za = V, Xa = Fr, Qa = {
3327
+ const ke = E, Xa = V, Qa = Fr, el = {
3327
3328
  message({ keyword: e, schemaCode: t }) {
3328
3329
  const r = e === "maxLength" ? "more" : "fewer";
3329
- return (0, we.str)`must NOT have ${r} than ${t} characters`;
3330
+ return (0, ke.str)`must NOT have ${r} than ${t} characters`;
3330
3331
  },
3331
- params: ({ schemaCode: e }) => (0, we._)`{limit: ${e}}`
3332
- }, el = {
3332
+ params: ({ schemaCode: e }) => (0, ke._)`{limit: ${e}}`
3333
+ }, tl = {
3333
3334
  keyword: ["maxLength", "minLength"],
3334
3335
  type: "string",
3335
3336
  schemaType: "number",
3336
3337
  $data: !0,
3337
- error: Qa,
3338
+ error: el,
3338
3339
  code(e) {
3339
- const { keyword: t, data: r, schemaCode: i, it: o } = e, n = t === "maxLength" ? we.operators.GT : we.operators.LT, a = o.opts.unicode === !1 ? (0, we._)`${r}.length` : (0, we._)`${(0, Za.useFunc)(e.gen, Xa.default)}(${r})`;
3340
- e.fail$data((0, we._)`${a} ${n} ${i}`);
3340
+ const { keyword: t, data: r, schemaCode: i, it: o } = e, n = t === "maxLength" ? ke.operators.GT : ke.operators.LT, a = o.opts.unicode === !1 ? (0, ke._)`${r}.length` : (0, ke._)`${(0, Xa.useFunc)(e.gen, Qa.default)}(${r})`;
3341
+ e.fail$data((0, ke._)`${a} ${n} ${i}`);
3341
3342
  }
3342
3343
  };
3343
- Dr.default = el;
3344
+ Dr.default = tl;
3344
3345
  var jr = {};
3345
3346
  Object.defineProperty(jr, "__esModule", { value: !0 });
3346
- const tl = A, rl = V, Re = E, il = {
3347
- message: ({ schemaCode: e }) => (0, Re.str)`must match pattern "${e}"`,
3348
- params: ({ schemaCode: e }) => (0, Re._)`{pattern: ${e}}`
3349
- }, ol = {
3347
+ const rl = A, il = V, Te = E, ol = {
3348
+ message: ({ schemaCode: e }) => (0, Te.str)`must match pattern "${e}"`,
3349
+ params: ({ schemaCode: e }) => (0, Te._)`{pattern: ${e}}`
3350
+ }, nl = {
3350
3351
  keyword: "pattern",
3351
3352
  type: "string",
3352
3353
  schemaType: "string",
3353
3354
  $data: !0,
3354
- error: il,
3355
+ error: ol,
3355
3356
  code(e) {
3356
3357
  const { gen: t, data: r, $data: i, schema: o, schemaCode: n, it: a } = e, l = a.opts.unicodeRegExp ? "u" : "";
3357
3358
  if (i) {
3358
- const { regExp: d } = a.opts.code, c = d.code === "new RegExp" ? (0, Re._)`new RegExp` : (0, rl.useFunc)(t, d), f = t.let("valid");
3359
- t.try(() => t.assign(f, (0, Re._)`${c}(${n}, ${l}).test(${r})`), () => t.assign(f, !1)), e.fail$data((0, Re._)`!${f}`);
3359
+ const { regExp: d } = a.opts.code, c = d.code === "new RegExp" ? (0, Te._)`new RegExp` : (0, il.useFunc)(t, d), f = t.let("valid");
3360
+ t.try(() => t.assign(f, (0, Te._)`${c}(${n}, ${l}).test(${r})`), () => t.assign(f, !1)), e.fail$data((0, Te._)`!${f}`);
3360
3361
  } else {
3361
- const d = (0, tl.usePattern)(e, o);
3362
- e.fail$data((0, Re._)`!${d}.test(${r})`);
3362
+ const d = (0, rl.usePattern)(e, o);
3363
+ e.fail$data((0, Te._)`!${d}.test(${r})`);
3363
3364
  }
3364
3365
  }
3365
3366
  };
3366
- jr.default = ol;
3367
+ jr.default = nl;
3367
3368
  var Rr = {};
3368
3369
  Object.defineProperty(Rr, "__esModule", { value: !0 });
3369
- const Qe = E, nl = {
3370
+ const et = E, sl = {
3370
3371
  message({ keyword: e, schemaCode: t }) {
3371
3372
  const r = e === "maxProperties" ? "more" : "fewer";
3372
- return (0, Qe.str)`must NOT have ${r} than ${t} properties`;
3373
+ return (0, et.str)`must NOT have ${r} than ${t} properties`;
3373
3374
  },
3374
- params: ({ schemaCode: e }) => (0, Qe._)`{limit: ${e}}`
3375
- }, sl = {
3375
+ params: ({ schemaCode: e }) => (0, et._)`{limit: ${e}}`
3376
+ }, al = {
3376
3377
  keyword: ["maxProperties", "minProperties"],
3377
3378
  type: "object",
3378
3379
  schemaType: "number",
3379
3380
  $data: !0,
3380
- error: nl,
3381
+ error: sl,
3381
3382
  code(e) {
3382
- const { keyword: t, data: r, schemaCode: i } = e, o = t === "maxProperties" ? Qe.operators.GT : Qe.operators.LT;
3383
- e.fail$data((0, Qe._)`Object.keys(${r}).length ${o} ${i}`);
3383
+ const { keyword: t, data: r, schemaCode: i } = e, o = t === "maxProperties" ? et.operators.GT : et.operators.LT;
3384
+ e.fail$data((0, et._)`Object.keys(${r}).length ${o} ${i}`);
3384
3385
  }
3385
3386
  };
3386
- Rr.default = sl;
3387
+ Rr.default = al;
3387
3388
  var Tr = {};
3388
3389
  Object.defineProperty(Tr, "__esModule", { value: !0 });
3389
- const Ke = A, et = E, al = V, ll = {
3390
- message: ({ params: { missingProperty: e } }) => (0, et.str)`must have required property '${e}'`,
3391
- params: ({ params: { missingProperty: e } }) => (0, et._)`{missingProperty: ${e}}`
3392
- }, dl = {
3390
+ const Je = A, tt = E, ll = V, dl = {
3391
+ message: ({ params: { missingProperty: e } }) => (0, tt.str)`must have required property '${e}'`,
3392
+ params: ({ params: { missingProperty: e } }) => (0, tt._)`{missingProperty: ${e}}`
3393
+ }, cl = {
3393
3394
  keyword: "required",
3394
3395
  type: "object",
3395
3396
  schemaType: "array",
3396
3397
  $data: !0,
3397
- error: ll,
3398
+ error: dl,
3398
3399
  code(e) {
3399
3400
  const { gen: t, schema: r, schemaCode: i, data: o, $data: n, it: a } = e, { opts: l } = a;
3400
3401
  if (!n && r.length === 0)
3401
3402
  return;
3402
3403
  const d = r.length >= l.loopRequired;
3403
3404
  if (a.allErrors ? c() : f(), l.strictRequired) {
3404
- const S = e.parentSchema.properties, { definedProperties: b } = e.it;
3405
+ const S = e.parentSchema.properties, { definedProperties: $ } = e.it;
3405
3406
  for (const w of r)
3406
- if ((S == null ? void 0 : S[w]) === void 0 && !b.has(w)) {
3407
+ if ((S == null ? void 0 : S[w]) === void 0 && !$.has(w)) {
3407
3408
  const g = a.schemaEnv.baseId + a.errSchemaPath, u = `required property "${w}" is not defined at "${g}" (strictRequired)`;
3408
- (0, al.checkStrictMode)(a, u, a.opts.strictRequired);
3409
+ (0, ll.checkStrictMode)(a, u, a.opts.strictRequired);
3409
3410
  }
3410
3411
  }
3411
3412
  function c() {
3412
3413
  if (d || n)
3413
- e.block$data(et.nil, h);
3414
+ e.block$data(tt.nil, h);
3414
3415
  else
3415
3416
  for (const S of r)
3416
- (0, Ke.checkReportMissingProp)(e, S);
3417
+ (0, Je.checkReportMissingProp)(e, S);
3417
3418
  }
3418
3419
  function f() {
3419
3420
  const S = t.let("missing");
3420
3421
  if (d || n) {
3421
- const b = t.let("valid", !0);
3422
- e.block$data(b, () => k(S, b)), e.ok(b);
3422
+ const $ = t.let("valid", !0);
3423
+ e.block$data($, () => k(S, $)), e.ok($);
3423
3424
  } else
3424
- t.if((0, Ke.checkMissingProp)(e, r, S)), (0, Ke.reportMissingProp)(e, S), t.else();
3425
+ t.if((0, Je.checkMissingProp)(e, r, S)), (0, Je.reportMissingProp)(e, S), t.else();
3425
3426
  }
3426
3427
  function h() {
3427
3428
  t.forOf("prop", i, (S) => {
3428
- e.setParams({ missingProperty: S }), t.if((0, Ke.noPropertyInData)(t, o, S, l.ownProperties), () => e.error());
3429
+ e.setParams({ missingProperty: S }), t.if((0, Je.noPropertyInData)(t, o, S, l.ownProperties), () => e.error());
3429
3430
  });
3430
3431
  }
3431
- function k(S, b) {
3432
+ function k(S, $) {
3432
3433
  e.setParams({ missingProperty: S }), t.forOf(S, i, () => {
3433
- t.assign(b, (0, Ke.propertyInData)(t, o, S, l.ownProperties)), t.if((0, et.not)(b), () => {
3434
+ t.assign($, (0, Je.propertyInData)(t, o, S, l.ownProperties)), t.if((0, tt.not)($), () => {
3434
3435
  e.error(), t.break();
3435
3436
  });
3436
- }, et.nil);
3437
+ }, tt.nil);
3437
3438
  }
3438
3439
  }
3439
3440
  };
3440
- Tr.default = dl;
3441
+ Tr.default = cl;
3441
3442
  var Ir = {};
3442
3443
  Object.defineProperty(Ir, "__esModule", { value: !0 });
3443
- const tt = E, cl = {
3444
+ const rt = E, pl = {
3444
3445
  message({ keyword: e, schemaCode: t }) {
3445
3446
  const r = e === "maxItems" ? "more" : "fewer";
3446
- return (0, tt.str)`must NOT have ${r} than ${t} items`;
3447
+ return (0, rt.str)`must NOT have ${r} than ${t} items`;
3447
3448
  },
3448
- params: ({ schemaCode: e }) => (0, tt._)`{limit: ${e}}`
3449
- }, pl = {
3449
+ params: ({ schemaCode: e }) => (0, rt._)`{limit: ${e}}`
3450
+ }, ul = {
3450
3451
  keyword: ["maxItems", "minItems"],
3451
3452
  type: "array",
3452
3453
  schemaType: "number",
3453
3454
  $data: !0,
3454
- error: cl,
3455
+ error: pl,
3455
3456
  code(e) {
3456
- const { keyword: t, data: r, schemaCode: i } = e, o = t === "maxItems" ? tt.operators.GT : tt.operators.LT;
3457
- e.fail$data((0, tt._)`${r}.length ${o} ${i}`);
3457
+ const { keyword: t, data: r, schemaCode: i } = e, o = t === "maxItems" ? rt.operators.GT : rt.operators.LT;
3458
+ e.fail$data((0, rt._)`${r}.length ${o} ${i}`);
3458
3459
  }
3459
3460
  };
3460
- Ir.default = pl;
3461
+ Ir.default = ul;
3461
3462
  var Er = {}, at = {};
3462
3463
  Object.defineProperty(at, "__esModule", { value: !0 });
3463
3464
  const Mo = no;
3464
3465
  Mo.code = 'require("ajv/dist/runtime/equal").default';
3465
3466
  at.default = Mo;
3466
3467
  Object.defineProperty(Er, "__esModule", { value: !0 });
3467
- const Xt = W, G = E, ul = V, fl = at, hl = {
3468
+ const Xt = W, G = E, fl = V, hl = at, ml = {
3468
3469
  message: ({ params: { i: e, j: t } }) => (0, G.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,
3469
3470
  params: ({ params: { i: e, j: t } }) => (0, G._)`{i: ${e}, j: ${t}}`
3470
- }, ml = {
3471
+ }, gl = {
3471
3472
  keyword: "uniqueItems",
3472
3473
  type: "array",
3473
3474
  schemaType: "boolean",
3474
3475
  $data: !0,
3475
- error: hl,
3476
+ error: ml,
3476
3477
  code(e) {
3477
3478
  const { gen: t, data: r, $data: i, schema: o, parentSchema: n, schemaCode: a, it: l } = e;
3478
3479
  if (!i && !o)
@@ -3480,61 +3481,61 @@ const Xt = W, G = E, ul = V, fl = at, hl = {
3480
3481
  const d = t.let("valid"), c = n.items ? (0, Xt.getSchemaTypes)(n.items) : [];
3481
3482
  e.block$data(d, f, (0, G._)`${a} === false`), e.ok(d);
3482
3483
  function f() {
3483
- const b = t.let("i", (0, G._)`${r}.length`), w = t.let("j");
3484
- e.setParams({ i: b, j: w }), t.assign(d, !0), t.if((0, G._)`${b} > 1`, () => (h() ? k : S)(b, w));
3484
+ const $ = t.let("i", (0, G._)`${r}.length`), w = t.let("j");
3485
+ e.setParams({ i: $, j: w }), t.assign(d, !0), t.if((0, G._)`${$} > 1`, () => (h() ? k : S)($, w));
3485
3486
  }
3486
3487
  function h() {
3487
- return c.length > 0 && !c.some((b) => b === "object" || b === "array");
3488
- }
3489
- function k(b, w) {
3490
- const g = t.name("item"), u = (0, Xt.checkDataTypes)(c, g, l.opts.strictNumbers, Xt.DataType.Wrong), $ = t.const("indices", (0, G._)`{}`);
3491
- t.for((0, G._)`;${b}--;`, () => {
3492
- t.let(g, (0, G._)`${r}[${b}]`), t.if(u, (0, G._)`continue`), c.length > 1 && t.if((0, G._)`typeof ${g} == "string"`, (0, G._)`${g} += "_"`), t.if((0, G._)`typeof ${$}[${g}] == "number"`, () => {
3493
- t.assign(w, (0, G._)`${$}[${g}]`), e.error(), t.assign(d, !1).break();
3494
- }).code((0, G._)`${$}[${g}] = ${b}`);
3488
+ return c.length > 0 && !c.some(($) => $ === "object" || $ === "array");
3489
+ }
3490
+ function k($, w) {
3491
+ const g = t.name("item"), u = (0, Xt.checkDataTypes)(c, g, l.opts.strictNumbers, Xt.DataType.Wrong), b = t.const("indices", (0, G._)`{}`);
3492
+ t.for((0, G._)`;${$}--;`, () => {
3493
+ t.let(g, (0, G._)`${r}[${$}]`), t.if(u, (0, G._)`continue`), c.length > 1 && t.if((0, G._)`typeof ${g} == "string"`, (0, G._)`${g} += "_"`), t.if((0, G._)`typeof ${b}[${g}] == "number"`, () => {
3494
+ t.assign(w, (0, G._)`${b}[${g}]`), e.error(), t.assign(d, !1).break();
3495
+ }).code((0, G._)`${b}[${g}] = ${$}`);
3495
3496
  });
3496
3497
  }
3497
- function S(b, w) {
3498
- const g = (0, ul.useFunc)(t, fl.default), u = t.name("outer");
3499
- t.label(u).for((0, G._)`;${b}--;`, () => t.for((0, G._)`${w} = ${b}; ${w}--;`, () => t.if((0, G._)`${g}(${r}[${b}], ${r}[${w}])`, () => {
3498
+ function S($, w) {
3499
+ const g = (0, fl.useFunc)(t, hl.default), u = t.name("outer");
3500
+ t.label(u).for((0, G._)`;${$}--;`, () => t.for((0, G._)`${w} = ${$}; ${w}--;`, () => t.if((0, G._)`${g}(${r}[${$}], ${r}[${w}])`, () => {
3500
3501
  e.error(), t.assign(d, !1).break(u);
3501
3502
  })));
3502
3503
  }
3503
3504
  }
3504
3505
  };
3505
- Er.default = ml;
3506
+ Er.default = gl;
3506
3507
  var xr = {};
3507
3508
  Object.defineProperty(xr, "__esModule", { value: !0 });
3508
- const sr = E, gl = V, yl = at, $l = {
3509
+ const sr = E, yl = V, bl = at, $l = {
3509
3510
  message: "must be equal to constant",
3510
3511
  params: ({ schemaCode: e }) => (0, sr._)`{allowedValue: ${e}}`
3511
- }, bl = {
3512
+ }, vl = {
3512
3513
  keyword: "const",
3513
3514
  $data: !0,
3514
3515
  error: $l,
3515
3516
  code(e) {
3516
3517
  const { gen: t, data: r, $data: i, schemaCode: o, schema: n } = e;
3517
- i || n && typeof n == "object" ? e.fail$data((0, sr._)`!${(0, gl.useFunc)(t, yl.default)}(${r}, ${o})`) : e.fail((0, sr._)`${n} !== ${r}`);
3518
+ i || n && typeof n == "object" ? e.fail$data((0, sr._)`!${(0, yl.useFunc)(t, bl.default)}(${r}, ${o})`) : e.fail((0, sr._)`${n} !== ${r}`);
3518
3519
  }
3519
3520
  };
3520
- xr.default = bl;
3521
+ xr.default = vl;
3521
3522
  var Ar = {};
3522
3523
  Object.defineProperty(Ar, "__esModule", { value: !0 });
3523
- const Ye = E, vl = V, Sl = at, wl = {
3524
+ const Ze = E, Sl = V, wl = at, kl = {
3524
3525
  message: "must be equal to one of the allowed values",
3525
- params: ({ schemaCode: e }) => (0, Ye._)`{allowedValues: ${e}}`
3526
- }, kl = {
3526
+ params: ({ schemaCode: e }) => (0, Ze._)`{allowedValues: ${e}}`
3527
+ }, Ol = {
3527
3528
  keyword: "enum",
3528
3529
  schemaType: "array",
3529
3530
  $data: !0,
3530
- error: wl,
3531
+ error: kl,
3531
3532
  code(e) {
3532
3533
  const { gen: t, data: r, $data: i, schema: o, schemaCode: n, it: a } = e;
3533
3534
  if (!i && o.length === 0)
3534
3535
  throw new Error("enum must have non-empty array");
3535
3536
  const l = o.length >= a.opts.loopEnum;
3536
3537
  let d;
3537
- const c = () => d ?? (d = (0, vl.useFunc)(t, Sl.default));
3538
+ const c = () => d ?? (d = (0, Sl.useFunc)(t, wl.default));
3538
3539
  let f;
3539
3540
  if (l || i)
3540
3541
  f = t.let("valid"), e.block$data(f, h);
@@ -3542,52 +3543,52 @@ const Ye = E, vl = V, Sl = at, wl = {
3542
3543
  if (!Array.isArray(o))
3543
3544
  throw new Error("ajv implementation error");
3544
3545
  const S = t.const("vSchema", n);
3545
- f = (0, Ye.or)(...o.map((b, w) => k(S, w)));
3546
+ f = (0, Ze.or)(...o.map(($, w) => k(S, w)));
3546
3547
  }
3547
3548
  e.pass(f);
3548
3549
  function h() {
3549
- t.assign(f, !1), t.forOf("v", n, (S) => t.if((0, Ye._)`${c()}(${r}, ${S})`, () => t.assign(f, !0).break()));
3550
+ t.assign(f, !1), t.forOf("v", n, (S) => t.if((0, Ze._)`${c()}(${r}, ${S})`, () => t.assign(f, !0).break()));
3550
3551
  }
3551
- function k(S, b) {
3552
- const w = o[b];
3553
- return typeof w == "object" && w !== null ? (0, Ye._)`${c()}(${r}, ${S}[${b}])` : (0, Ye._)`${r} === ${w}`;
3552
+ function k(S, $) {
3553
+ const w = o[$];
3554
+ return typeof w == "object" && w !== null ? (0, Ze._)`${c()}(${r}, ${S}[${$}])` : (0, Ze._)`${r} === ${w}`;
3554
3555
  }
3555
3556
  }
3556
3557
  };
3557
- Ar.default = kl;
3558
+ Ar.default = Ol;
3558
3559
  Object.defineProperty(Pr, "__esModule", { value: !0 });
3559
- const Ol = _r, Cl = Vr, Pl = Dr, _l = jr, Vl = Rr, Dl = Tr, Fl = Ir, jl = Er, Rl = xr, Tl = Ar, Il = [
3560
+ const Cl = _r, Pl = Vr, _l = Dr, Vl = jr, Dl = Rr, Fl = Tr, jl = Ir, Rl = Er, Tl = xr, Il = Ar, El = [
3560
3561
  // number
3561
- Ol.default,
3562
3562
  Cl.default,
3563
- // string
3564
3563
  Pl.default,
3564
+ // string
3565
3565
  _l.default,
3566
- // object
3567
3566
  Vl.default,
3567
+ // object
3568
3568
  Dl.default,
3569
- // array
3570
3569
  Fl.default,
3570
+ // array
3571
3571
  jl.default,
3572
+ Rl.default,
3572
3573
  // any
3573
3574
  { keyword: "type", schemaType: ["string", "array"] },
3574
3575
  { keyword: "nullable", schemaType: "boolean" },
3575
- Rl.default,
3576
- Tl.default
3576
+ Tl.default,
3577
+ Il.default
3577
3578
  ];
3578
- Pr.default = Il;
3579
- var Nr = {}, Me = {};
3580
- Object.defineProperty(Me, "__esModule", { value: !0 });
3581
- Me.validateAdditionalItems = void 0;
3582
- const ke = E, ar = V, El = {
3583
- message: ({ params: { len: e } }) => (0, ke.str)`must NOT have more than ${e} items`,
3584
- params: ({ params: { len: e } }) => (0, ke._)`{limit: ${e}}`
3585
- }, xl = {
3579
+ Pr.default = El;
3580
+ var Nr = {}, Le = {};
3581
+ Object.defineProperty(Le, "__esModule", { value: !0 });
3582
+ Le.validateAdditionalItems = void 0;
3583
+ const Oe = E, ar = V, xl = {
3584
+ message: ({ params: { len: e } }) => (0, Oe.str)`must NOT have more than ${e} items`,
3585
+ params: ({ params: { len: e } }) => (0, Oe._)`{limit: ${e}}`
3586
+ }, Al = {
3586
3587
  keyword: "additionalItems",
3587
3588
  type: "array",
3588
3589
  schemaType: ["boolean", "object"],
3589
3590
  before: "uniqueItems",
3590
- error: El,
3591
+ error: xl,
3591
3592
  code(e) {
3592
3593
  const { parentSchema: t, it: r } = e, { items: i } = t;
3593
3594
  if (!Array.isArray(i)) {
@@ -3600,25 +3601,25 @@ const ke = E, ar = V, El = {
3600
3601
  function Lo(e, t) {
3601
3602
  const { gen: r, schema: i, data: o, keyword: n, it: a } = e;
3602
3603
  a.items = !0;
3603
- const l = r.const("len", (0, ke._)`${o}.length`);
3604
+ const l = r.const("len", (0, Oe._)`${o}.length`);
3604
3605
  if (i === !1)
3605
- e.setParams({ len: t.length }), e.pass((0, ke._)`${l} <= ${t.length}`);
3606
+ e.setParams({ len: t.length }), e.pass((0, Oe._)`${l} <= ${t.length}`);
3606
3607
  else if (typeof i == "object" && !(0, ar.alwaysValidSchema)(a, i)) {
3607
- const c = r.var("valid", (0, ke._)`${l} <= ${t.length}`);
3608
- r.if((0, ke.not)(c), () => d(c)), e.ok(c);
3608
+ const c = r.var("valid", (0, Oe._)`${l} <= ${t.length}`);
3609
+ r.if((0, Oe.not)(c), () => d(c)), e.ok(c);
3609
3610
  }
3610
3611
  function d(c) {
3611
3612
  r.forRange("i", t.length, l, (f) => {
3612
- e.subschema({ keyword: n, dataProp: f, dataPropType: ar.Type.Num }, c), a.allErrors || r.if((0, ke.not)(c), () => r.break());
3613
+ e.subschema({ keyword: n, dataProp: f, dataPropType: ar.Type.Num }, c), a.allErrors || r.if((0, Oe.not)(c), () => r.break());
3613
3614
  });
3614
3615
  }
3615
3616
  }
3616
- Me.validateAdditionalItems = Lo;
3617
- Me.default = xl;
3618
- var zr = {}, Le = {};
3619
- Object.defineProperty(Le, "__esModule", { value: !0 });
3620
- Le.validateTuple = void 0;
3621
- const Pi = E, $t = V, Al = A, Nl = {
3617
+ Le.validateAdditionalItems = Lo;
3618
+ Le.default = Al;
3619
+ var zr = {}, Be = {};
3620
+ Object.defineProperty(Be, "__esModule", { value: !0 });
3621
+ Be.validateTuple = void 0;
3622
+ const Pi = E, bt = V, Nl = A, zl = {
3622
3623
  keyword: "items",
3623
3624
  type: "array",
3624
3625
  schemaType: ["object", "array", "boolean"],
@@ -3627,68 +3628,68 @@ const Pi = E, $t = V, Al = A, Nl = {
3627
3628
  const { schema: t, it: r } = e;
3628
3629
  if (Array.isArray(t))
3629
3630
  return Bo(e, "additionalItems", t);
3630
- r.items = !0, !(0, $t.alwaysValidSchema)(r, t) && e.ok((0, Al.validateArray)(e));
3631
+ r.items = !0, !(0, bt.alwaysValidSchema)(r, t) && e.ok((0, Nl.validateArray)(e));
3631
3632
  }
3632
3633
  };
3633
3634
  function Bo(e, t, r = e.schema) {
3634
3635
  const { gen: i, parentSchema: o, data: n, keyword: a, it: l } = e;
3635
- f(o), l.opts.unevaluated && r.length && l.items !== !0 && (l.items = $t.mergeEvaluated.items(i, r.length, l.items));
3636
+ f(o), l.opts.unevaluated && r.length && l.items !== !0 && (l.items = bt.mergeEvaluated.items(i, r.length, l.items));
3636
3637
  const d = i.name("valid"), c = i.const("len", (0, Pi._)`${n}.length`);
3637
3638
  r.forEach((h, k) => {
3638
- (0, $t.alwaysValidSchema)(l, h) || (i.if((0, Pi._)`${c} > ${k}`, () => e.subschema({
3639
+ (0, bt.alwaysValidSchema)(l, h) || (i.if((0, Pi._)`${c} > ${k}`, () => e.subschema({
3639
3640
  keyword: a,
3640
3641
  schemaProp: k,
3641
3642
  dataProp: k
3642
3643
  }, d)), e.ok(d));
3643
3644
  });
3644
3645
  function f(h) {
3645
- const { opts: k, errSchemaPath: S } = l, b = r.length, w = b === h.minItems && (b === h.maxItems || h[t] === !1);
3646
+ const { opts: k, errSchemaPath: S } = l, $ = r.length, w = $ === h.minItems && ($ === h.maxItems || h[t] === !1);
3646
3647
  if (k.strictTuples && !w) {
3647
- const g = `"${a}" is ${b}-tuple, but minItems or maxItems/${t} are not specified or different at path "${S}"`;
3648
- (0, $t.checkStrictMode)(l, g, k.strictTuples);
3648
+ const g = `"${a}" is ${$}-tuple, but minItems or maxItems/${t} are not specified or different at path "${S}"`;
3649
+ (0, bt.checkStrictMode)(l, g, k.strictTuples);
3649
3650
  }
3650
3651
  }
3651
3652
  }
3652
- Le.validateTuple = Bo;
3653
- Le.default = Nl;
3653
+ Be.validateTuple = Bo;
3654
+ Be.default = zl;
3654
3655
  Object.defineProperty(zr, "__esModule", { value: !0 });
3655
- const zl = Le, Ml = {
3656
+ const Ml = Be, Ll = {
3656
3657
  keyword: "prefixItems",
3657
3658
  type: "array",
3658
3659
  schemaType: ["array"],
3659
3660
  before: "uniqueItems",
3660
- code: (e) => (0, zl.validateTuple)(e, "items")
3661
+ code: (e) => (0, Ml.validateTuple)(e, "items")
3661
3662
  };
3662
- zr.default = Ml;
3663
+ zr.default = Ll;
3663
3664
  var Mr = {};
3664
3665
  Object.defineProperty(Mr, "__esModule", { value: !0 });
3665
- const _i = E, Ll = V, Bl = A, ql = Me, Hl = {
3666
+ const _i = E, Bl = V, ql = A, Hl = Le, Wl = {
3666
3667
  message: ({ params: { len: e } }) => (0, _i.str)`must NOT have more than ${e} items`,
3667
3668
  params: ({ params: { len: e } }) => (0, _i._)`{limit: ${e}}`
3668
- }, Wl = {
3669
+ }, Ul = {
3669
3670
  keyword: "items",
3670
3671
  type: "array",
3671
3672
  schemaType: ["object", "boolean"],
3672
3673
  before: "uniqueItems",
3673
- error: Hl,
3674
+ error: Wl,
3674
3675
  code(e) {
3675
3676
  const { schema: t, parentSchema: r, it: i } = e, { prefixItems: o } = r;
3676
- i.items = !0, !(0, Ll.alwaysValidSchema)(i, t) && (o ? (0, ql.validateAdditionalItems)(e, o) : e.ok((0, Bl.validateArray)(e)));
3677
+ i.items = !0, !(0, Bl.alwaysValidSchema)(i, t) && (o ? (0, Hl.validateAdditionalItems)(e, o) : e.ok((0, ql.validateArray)(e)));
3677
3678
  }
3678
3679
  };
3679
- Mr.default = Wl;
3680
+ Mr.default = Ul;
3680
3681
  var Lr = {};
3681
3682
  Object.defineProperty(Lr, "__esModule", { value: !0 });
3682
- const ee = E, pt = V, Ul = {
3683
+ const ee = E, pt = V, Gl = {
3683
3684
  message: ({ params: { min: e, max: t } }) => t === void 0 ? (0, ee.str)`must contain at least ${e} valid item(s)` : (0, ee.str)`must contain at least ${e} and no more than ${t} valid item(s)`,
3684
3685
  params: ({ params: { min: e, max: t } }) => t === void 0 ? (0, ee._)`{minContains: ${e}}` : (0, ee._)`{minContains: ${e}, maxContains: ${t}}`
3685
- }, Gl = {
3686
+ }, Kl = {
3686
3687
  keyword: "contains",
3687
3688
  type: "array",
3688
3689
  schemaType: ["object", "boolean"],
3689
3690
  before: "uniqueItems",
3690
3691
  trackErrors: !0,
3691
- error: Ul,
3692
+ error: Gl,
3692
3693
  code(e) {
3693
3694
  const { gen: t, schema: r, parentSchema: i, data: o, it: n } = e;
3694
3695
  let a, l;
@@ -3713,7 +3714,7 @@ const ee = E, pt = V, Ul = {
3713
3714
  l === void 0 && a === 1 ? S(h, () => t.if(h, () => t.break())) : a === 0 ? (t.let(h, !0), l !== void 0 && t.if((0, ee._)`${o}.length > 0`, k)) : (t.let(h, !1), k()), e.result(h, () => e.reset());
3714
3715
  function k() {
3715
3716
  const w = t.name("_valid"), g = t.let("count", 0);
3716
- S(w, () => t.if(w, () => b(g)));
3717
+ S(w, () => t.if(w, () => $(g)));
3717
3718
  }
3718
3719
  function S(w, g) {
3719
3720
  t.forRange("i", 0, f, (u) => {
@@ -3725,12 +3726,12 @@ const ee = E, pt = V, Ul = {
3725
3726
  }, w), g();
3726
3727
  });
3727
3728
  }
3728
- function b(w) {
3729
+ function $(w) {
3729
3730
  t.code((0, ee._)`${w}++`), l === void 0 ? t.if((0, ee._)`${w} >= ${a}`, () => t.assign(h, !0).break()) : (t.if((0, ee._)`${w} > ${l}`, () => t.assign(h, !1).break()), a === 1 ? t.assign(h, !0) : t.if((0, ee._)`${w} >= ${a}`, () => t.assign(h, !0)));
3730
3731
  }
3731
3732
  }
3732
3733
  };
3733
- Lr.default = Gl;
3734
+ Lr.default = Kl;
3734
3735
  var Ft = {};
3735
3736
  (function(e) {
3736
3737
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
@@ -3771,13 +3772,13 @@ var Ft = {};
3771
3772
  if (Object.keys(c).length === 0)
3772
3773
  return;
3773
3774
  const S = f.let("missing");
3774
- for (const b in c) {
3775
- const w = c[b];
3775
+ for (const $ in c) {
3776
+ const w = c[$];
3776
3777
  if (w.length === 0)
3777
3778
  continue;
3778
- const g = (0, i.propertyInData)(f, h, b, k.opts.ownProperties);
3779
+ const g = (0, i.propertyInData)(f, h, $, k.opts.ownProperties);
3779
3780
  d.setParams({
3780
- property: b,
3781
+ property: $,
3781
3782
  depsCount: w.length,
3782
3783
  deps: w.join(", ")
3783
3784
  }), k.allErrors ? f.if(g, () => {
@@ -3788,33 +3789,33 @@ var Ft = {};
3788
3789
  }
3789
3790
  e.validatePropertyDeps = a;
3790
3791
  function l(d, c = d.schema) {
3791
- const { gen: f, data: h, keyword: k, it: S } = d, b = f.name("valid");
3792
+ const { gen: f, data: h, keyword: k, it: S } = d, $ = f.name("valid");
3792
3793
  for (const w in c)
3793
3794
  (0, r.alwaysValidSchema)(S, c[w]) || (f.if(
3794
3795
  (0, i.propertyInData)(f, h, w, S.opts.ownProperties),
3795
3796
  () => {
3796
- const g = d.subschema({ keyword: k, schemaProp: w }, b);
3797
- d.mergeValidEvaluated(g, b);
3797
+ const g = d.subschema({ keyword: k, schemaProp: w }, $);
3798
+ d.mergeValidEvaluated(g, $);
3798
3799
  },
3799
- () => f.var(b, !0)
3800
+ () => f.var($, !0)
3800
3801
  // TODO var
3801
- ), d.ok(b));
3802
+ ), d.ok($));
3802
3803
  }
3803
3804
  e.validateSchemaDeps = l, e.default = o;
3804
3805
  })(Ft);
3805
3806
  var Br = {};
3806
3807
  Object.defineProperty(Br, "__esModule", { value: !0 });
3807
- const qo = E, Kl = V, Jl = {
3808
+ const qo = E, Jl = V, Yl = {
3808
3809
  message: "property name must be valid",
3809
3810
  params: ({ params: e }) => (0, qo._)`{propertyName: ${e.propertyName}}`
3810
- }, Yl = {
3811
+ }, Zl = {
3811
3812
  keyword: "propertyNames",
3812
3813
  type: "object",
3813
3814
  schemaType: ["object", "boolean"],
3814
- error: Jl,
3815
+ error: Yl,
3815
3816
  code(e) {
3816
3817
  const { gen: t, schema: r, data: i, it: o } = e;
3817
- if ((0, Kl.alwaysValidSchema)(o, r))
3818
+ if ((0, Jl.alwaysValidSchema)(o, r))
3818
3819
  return;
3819
3820
  const n = t.name("valid");
3820
3821
  t.forIn("key", i, (a) => {
@@ -3830,19 +3831,19 @@ const qo = E, Kl = V, Jl = {
3830
3831
  }), e.ok(n);
3831
3832
  }
3832
3833
  };
3833
- Br.default = Yl;
3834
+ Br.default = Zl;
3834
3835
  var jt = {};
3835
3836
  Object.defineProperty(jt, "__esModule", { value: !0 });
3836
- const ut = A, re = E, Zl = Q, ft = V, Xl = {
3837
+ const ut = A, re = E, Xl = Q, ft = V, Ql = {
3837
3838
  message: "must NOT have additional properties",
3838
3839
  params: ({ params: e }) => (0, re._)`{additionalProperty: ${e.additionalProperty}}`
3839
- }, Ql = {
3840
+ }, ed = {
3840
3841
  keyword: "additionalProperties",
3841
3842
  type: ["object"],
3842
3843
  schemaType: ["boolean", "object"],
3843
3844
  allowUndefined: !0,
3844
3845
  trackErrors: !0,
3845
- error: Xl,
3846
+ error: Ql,
3846
3847
  code(e) {
3847
3848
  const { gen: t, schema: r, parentSchema: i, data: o, errsCount: n, it: a } = e;
3848
3849
  if (!n)
@@ -3851,24 +3852,24 @@ const ut = A, re = E, Zl = Q, ft = V, Xl = {
3851
3852
  if (a.props = !0, d.removeAdditional !== "all" && (0, ft.alwaysValidSchema)(a, r))
3852
3853
  return;
3853
3854
  const c = (0, ut.allSchemaProperties)(i.properties), f = (0, ut.allSchemaProperties)(i.patternProperties);
3854
- h(), e.ok((0, re._)`${n} === ${Zl.default.errors}`);
3855
+ h(), e.ok((0, re._)`${n} === ${Xl.default.errors}`);
3855
3856
  function h() {
3856
3857
  t.forIn("key", o, (g) => {
3857
- !c.length && !f.length ? b(g) : t.if(k(g), () => b(g));
3858
+ !c.length && !f.length ? $(g) : t.if(k(g), () => $(g));
3858
3859
  });
3859
3860
  }
3860
3861
  function k(g) {
3861
3862
  let u;
3862
3863
  if (c.length > 8) {
3863
- const $ = (0, ft.schemaRefOrVal)(a, i.properties, "properties");
3864
- u = (0, ut.isOwnProperty)(t, $, g);
3865
- } else c.length ? u = (0, re.or)(...c.map(($) => (0, re._)`${g} === ${$}`)) : u = re.nil;
3866
- return f.length && (u = (0, re.or)(u, ...f.map(($) => (0, re._)`${(0, ut.usePattern)(e, $)}.test(${g})`))), (0, re.not)(u);
3864
+ const b = (0, ft.schemaRefOrVal)(a, i.properties, "properties");
3865
+ u = (0, ut.isOwnProperty)(t, b, g);
3866
+ } else c.length ? u = (0, re.or)(...c.map((b) => (0, re._)`${g} === ${b}`)) : u = re.nil;
3867
+ return f.length && (u = (0, re.or)(u, ...f.map((b) => (0, re._)`${(0, ut.usePattern)(e, b)}.test(${g})`))), (0, re.not)(u);
3867
3868
  }
3868
3869
  function S(g) {
3869
3870
  t.code((0, re._)`delete ${o}[${g}]`);
3870
3871
  }
3871
- function b(g) {
3872
+ function $(g) {
3872
3873
  if (d.removeAdditional === "all" || d.removeAdditional && r === !1) {
3873
3874
  S(g);
3874
3875
  return;
@@ -3884,13 +3885,13 @@ const ut = A, re = E, Zl = Q, ft = V, Xl = {
3884
3885
  })) : (w(g, u), l || t.if((0, re.not)(u), () => t.break()));
3885
3886
  }
3886
3887
  }
3887
- function w(g, u, $) {
3888
+ function w(g, u, b) {
3888
3889
  const C = {
3889
3890
  keyword: "additionalProperties",
3890
3891
  dataProp: g,
3891
3892
  dataPropType: ft.Type.Str
3892
3893
  };
3893
- $ === !1 && Object.assign(C, {
3894
+ b === !1 && Object.assign(C, {
3894
3895
  compositeRule: !0,
3895
3896
  createErrors: !1,
3896
3897
  allErrors: !1
@@ -3898,16 +3899,16 @@ const ut = A, re = E, Zl = Q, ft = V, Xl = {
3898
3899
  }
3899
3900
  }
3900
3901
  };
3901
- jt.default = Ql;
3902
+ jt.default = ed;
3902
3903
  var qr = {};
3903
3904
  Object.defineProperty(qr, "__esModule", { value: !0 });
3904
- const ed = oe, Vi = A, Qt = V, Di = jt, td = {
3905
+ const td = oe, Vi = A, Qt = V, Di = jt, rd = {
3905
3906
  keyword: "properties",
3906
3907
  type: "object",
3907
3908
  schemaType: "object",
3908
3909
  code(e) {
3909
3910
  const { gen: t, schema: r, parentSchema: i, data: o, it: n } = e;
3910
- n.opts.removeAdditional === "all" && i.additionalProperties === void 0 && Di.default.code(new ed.KeywordCxt(n, Di.default, "additionalProperties"));
3911
+ n.opts.removeAdditional === "all" && i.additionalProperties === void 0 && Di.default.code(new td.KeywordCxt(n, Di.default, "additionalProperties"));
3911
3912
  const a = (0, Vi.allSchemaProperties)(r);
3912
3913
  for (const h of a)
3913
3914
  n.definedProperties.add(h);
@@ -3930,10 +3931,10 @@ const ed = oe, Vi = A, Qt = V, Di = jt, td = {
3930
3931
  }
3931
3932
  }
3932
3933
  };
3933
- qr.default = td;
3934
+ qr.default = rd;
3934
3935
  var Hr = {};
3935
3936
  Object.defineProperty(Hr, "__esModule", { value: !0 });
3936
- const Fi = A, ht = E, ji = V, Ri = V, rd = {
3937
+ const Fi = A, ht = E, ji = V, Ri = V, id = {
3937
3938
  keyword: "patternProperties",
3938
3939
  type: "object",
3939
3940
  schemaType: "object",
@@ -3947,13 +3948,13 @@ const Fi = A, ht = E, ji = V, Ri = V, rd = {
3947
3948
  k();
3948
3949
  function k() {
3949
3950
  for (const w of l)
3950
- c && S(w), n.allErrors ? b(w) : (t.var(f, !0), b(w), t.if(f));
3951
+ c && S(w), n.allErrors ? $(w) : (t.var(f, !0), $(w), t.if(f));
3951
3952
  }
3952
3953
  function S(w) {
3953
3954
  for (const g in c)
3954
3955
  new RegExp(w).test(g) && (0, ji.checkStrictMode)(n, `property ${g} matches pattern ${w} (use allowMatchingProperties)`);
3955
3956
  }
3956
- function b(w) {
3957
+ function $(w) {
3957
3958
  t.forIn("key", i, (g) => {
3958
3959
  t.if((0, ht._)`${(0, Fi.usePattern)(e, w)}.test(${g})`, () => {
3959
3960
  const u = d.includes(w);
@@ -3968,16 +3969,16 @@ const Fi = A, ht = E, ji = V, Ri = V, rd = {
3968
3969
  }
3969
3970
  }
3970
3971
  };
3971
- Hr.default = rd;
3972
+ Hr.default = id;
3972
3973
  var Wr = {};
3973
3974
  Object.defineProperty(Wr, "__esModule", { value: !0 });
3974
- const id = V, od = {
3975
+ const od = V, nd = {
3975
3976
  keyword: "not",
3976
3977
  schemaType: ["object", "boolean"],
3977
3978
  trackErrors: !0,
3978
3979
  code(e) {
3979
3980
  const { gen: t, schema: r, it: i } = e;
3980
- if ((0, id.alwaysValidSchema)(i, r)) {
3981
+ if ((0, od.alwaysValidSchema)(i, r)) {
3981
3982
  e.fail();
3982
3983
  return;
3983
3984
  }
@@ -3991,27 +3992,27 @@ const id = V, od = {
3991
3992
  },
3992
3993
  error: { message: "must NOT be valid" }
3993
3994
  };
3994
- Wr.default = od;
3995
+ Wr.default = nd;
3995
3996
  var Ur = {};
3996
3997
  Object.defineProperty(Ur, "__esModule", { value: !0 });
3997
- const nd = A, sd = {
3998
+ const sd = A, ad = {
3998
3999
  keyword: "anyOf",
3999
4000
  schemaType: "array",
4000
4001
  trackErrors: !0,
4001
- code: nd.validateUnion,
4002
+ code: sd.validateUnion,
4002
4003
  error: { message: "must match a schema in anyOf" }
4003
4004
  };
4004
- Ur.default = sd;
4005
+ Ur.default = ad;
4005
4006
  var Gr = {};
4006
4007
  Object.defineProperty(Gr, "__esModule", { value: !0 });
4007
- const bt = E, ad = V, ld = {
4008
+ const $t = E, ld = V, dd = {
4008
4009
  message: "must match exactly one schema in oneOf",
4009
- params: ({ params: e }) => (0, bt._)`{passingSchemas: ${e.passing}}`
4010
- }, dd = {
4010
+ params: ({ params: e }) => (0, $t._)`{passingSchemas: ${e.passing}}`
4011
+ }, cd = {
4011
4012
  keyword: "oneOf",
4012
4013
  schemaType: "array",
4013
4014
  trackErrors: !0,
4014
- error: ld,
4015
+ error: dd,
4015
4016
  code(e) {
4016
4017
  const { gen: t, schema: r, parentSchema: i, it: o } = e;
4017
4018
  if (!Array.isArray(r))
@@ -4023,21 +4024,21 @@ const bt = E, ad = V, ld = {
4023
4024
  function c() {
4024
4025
  n.forEach((f, h) => {
4025
4026
  let k;
4026
- (0, ad.alwaysValidSchema)(o, f) ? t.var(d, !0) : k = e.subschema({
4027
+ (0, ld.alwaysValidSchema)(o, f) ? t.var(d, !0) : k = e.subschema({
4027
4028
  keyword: "oneOf",
4028
4029
  schemaProp: h,
4029
4030
  compositeRule: !0
4030
- }, d), h > 0 && t.if((0, bt._)`${d} && ${a}`).assign(a, !1).assign(l, (0, bt._)`[${l}, ${h}]`).else(), t.if(d, () => {
4031
- t.assign(a, !0), t.assign(l, h), k && e.mergeEvaluated(k, bt.Name);
4031
+ }, d), h > 0 && t.if((0, $t._)`${d} && ${a}`).assign(a, !1).assign(l, (0, $t._)`[${l}, ${h}]`).else(), t.if(d, () => {
4032
+ t.assign(a, !0), t.assign(l, h), k && e.mergeEvaluated(k, $t.Name);
4032
4033
  });
4033
4034
  });
4034
4035
  }
4035
4036
  }
4036
4037
  };
4037
- Gr.default = dd;
4038
+ Gr.default = cd;
4038
4039
  var Kr = {};
4039
4040
  Object.defineProperty(Kr, "__esModule", { value: !0 });
4040
- const cd = V, pd = {
4041
+ const pd = V, ud = {
4041
4042
  keyword: "allOf",
4042
4043
  schemaType: "array",
4043
4044
  code(e) {
@@ -4046,24 +4047,24 @@ const cd = V, pd = {
4046
4047
  throw new Error("ajv implementation error");
4047
4048
  const o = t.name("valid");
4048
4049
  r.forEach((n, a) => {
4049
- if ((0, cd.alwaysValidSchema)(i, n))
4050
+ if ((0, pd.alwaysValidSchema)(i, n))
4050
4051
  return;
4051
4052
  const l = e.subschema({ keyword: "allOf", schemaProp: a }, o);
4052
4053
  e.ok(o), e.mergeEvaluated(l);
4053
4054
  });
4054
4055
  }
4055
4056
  };
4056
- Kr.default = pd;
4057
+ Kr.default = ud;
4057
4058
  var Jr = {};
4058
4059
  Object.defineProperty(Jr, "__esModule", { value: !0 });
4059
- const Ct = E, Ho = V, ud = {
4060
+ const Ct = E, Ho = V, fd = {
4060
4061
  message: ({ params: e }) => (0, Ct.str)`must match "${e.ifClause}" schema`,
4061
4062
  params: ({ params: e }) => (0, Ct._)`{failingKeyword: ${e.ifClause}}`
4062
- }, fd = {
4063
+ }, hd = {
4063
4064
  keyword: "if",
4064
4065
  schemaType: ["object", "boolean"],
4065
4066
  trackErrors: !0,
4066
- error: ud,
4067
+ error: fd,
4067
4068
  code(e) {
4068
4069
  const { gen: t, parentSchema: r, it: i } = e;
4069
4070
  r.then === void 0 && r.else === void 0 && (0, Ho.checkStrictMode)(i, '"if" without "then" and "else" is ignored');
@@ -4097,42 +4098,42 @@ function Ti(e, t) {
4097
4098
  const r = e.schema[t];
4098
4099
  return r !== void 0 && !(0, Ho.alwaysValidSchema)(e, r);
4099
4100
  }
4100
- Jr.default = fd;
4101
+ Jr.default = hd;
4101
4102
  var Yr = {};
4102
4103
  Object.defineProperty(Yr, "__esModule", { value: !0 });
4103
- const hd = V, md = {
4104
+ const md = V, gd = {
4104
4105
  keyword: ["then", "else"],
4105
4106
  schemaType: ["object", "boolean"],
4106
4107
  code({ keyword: e, parentSchema: t, it: r }) {
4107
- t.if === void 0 && (0, hd.checkStrictMode)(r, `"${e}" without "if" is ignored`);
4108
+ t.if === void 0 && (0, md.checkStrictMode)(r, `"${e}" without "if" is ignored`);
4108
4109
  }
4109
4110
  };
4110
- Yr.default = md;
4111
+ Yr.default = gd;
4111
4112
  Object.defineProperty(Nr, "__esModule", { value: !0 });
4112
- const gd = Me, yd = zr, $d = Le, bd = Mr, vd = Lr, Sd = Ft, wd = Br, kd = jt, Od = qr, Cd = Hr, Pd = Wr, _d = Ur, Vd = Gr, Dd = Kr, Fd = Jr, jd = Yr;
4113
- function Rd(e = !1) {
4113
+ const yd = Le, bd = zr, $d = Be, vd = Mr, Sd = Lr, wd = Ft, kd = Br, Od = jt, Cd = qr, Pd = Hr, _d = Wr, Vd = Ur, Dd = Gr, Fd = Kr, jd = Jr, Rd = Yr;
4114
+ function Td(e = !1) {
4114
4115
  const t = [
4115
4116
  // any
4116
- Pd.default,
4117
4117
  _d.default,
4118
4118
  Vd.default,
4119
4119
  Dd.default,
4120
4120
  Fd.default,
4121
4121
  jd.default,
4122
+ Rd.default,
4122
4123
  // object
4123
- wd.default,
4124
4124
  kd.default,
4125
- Sd.default,
4126
4125
  Od.default,
4127
- Cd.default
4126
+ wd.default,
4127
+ Cd.default,
4128
+ Pd.default
4128
4129
  ];
4129
- return e ? t.push(yd.default, bd.default) : t.push(gd.default, $d.default), t.push(vd.default), t;
4130
+ return e ? t.push(bd.default, vd.default) : t.push(yd.default, $d.default), t.push(Sd.default), t;
4130
4131
  }
4131
- Nr.default = Rd;
4132
- var Zr = {}, Be = {};
4133
- Object.defineProperty(Be, "__esModule", { value: !0 });
4134
- Be.dynamicAnchor = void 0;
4135
- const er = E, Td = Q, Ii = Z, Id = pe, Ed = {
4132
+ Nr.default = Td;
4133
+ var Zr = {}, qe = {};
4134
+ Object.defineProperty(qe, "__esModule", { value: !0 });
4135
+ qe.dynamicAnchor = void 0;
4136
+ const er = E, Id = Q, Ii = Z, Ed = ue, xd = {
4136
4137
  keyword: "$dynamicAnchor",
4137
4138
  schemaType: "string",
4138
4139
  code: (e) => Wo(e, e.schema)
@@ -4140,19 +4141,19 @@ const er = E, Td = Q, Ii = Z, Id = pe, Ed = {
4140
4141
  function Wo(e, t) {
4141
4142
  const { gen: r, it: i } = e;
4142
4143
  i.schemaEnv.root.dynamicAnchors[t] = !0;
4143
- const o = (0, er._)`${Td.default.dynamicAnchors}${(0, er.getProperty)(t)}`, n = i.errSchemaPath === "#" ? i.validateName : xd(e);
4144
+ const o = (0, er._)`${Id.default.dynamicAnchors}${(0, er.getProperty)(t)}`, n = i.errSchemaPath === "#" ? i.validateName : Ad(e);
4144
4145
  r.if((0, er._)`!${o}`, () => r.assign(o, n));
4145
4146
  }
4146
- Be.dynamicAnchor = Wo;
4147
- function xd(e) {
4147
+ qe.dynamicAnchor = Wo;
4148
+ function Ad(e) {
4148
4149
  const { schemaEnv: t, schema: r, self: i } = e.it, { root: o, baseId: n, localRefs: a, meta: l } = t.root, { schemaId: d } = i.opts, c = new Ii.SchemaEnv({ schema: r, schemaId: d, root: o, baseId: n, localRefs: a, meta: l });
4149
- return Ii.compileSchema.call(i, c), (0, Id.getValidate)(e, c);
4150
+ return Ii.compileSchema.call(i, c), (0, Ed.getValidate)(e, c);
4150
4151
  }
4151
- Be.default = Ed;
4152
- var qe = {};
4153
- Object.defineProperty(qe, "__esModule", { value: !0 });
4154
- qe.dynamicRef = void 0;
4155
- const Ei = E, Ad = Q, xi = pe, Nd = {
4152
+ qe.default = xd;
4153
+ var He = {};
4154
+ Object.defineProperty(He, "__esModule", { value: !0 });
4155
+ He.dynamicRef = void 0;
4156
+ const Ei = E, Nd = Q, xi = ue, zd = {
4156
4157
  keyword: "$dynamicRef",
4157
4158
  schemaType: "string",
4158
4159
  code: (e) => Uo(e, e.schema)
@@ -4170,7 +4171,7 @@ function Uo(e, t) {
4170
4171
  }
4171
4172
  function a(d) {
4172
4173
  if (o.schemaEnv.root.dynamicAnchors[n]) {
4173
- const c = r.let("_v", (0, Ei._)`${Ad.default.dynamicAnchors}${(0, Ei.getProperty)(n)}`);
4174
+ const c = r.let("_v", (0, Ei._)`${Nd.default.dynamicAnchors}${(0, Ei.getProperty)(n)}`);
4174
4175
  r.if(c, l(c, d), l(o.validateName, d));
4175
4176
  } else
4176
4177
  l(o.validateName, d)();
@@ -4181,79 +4182,79 @@ function Uo(e, t) {
4181
4182
  }) : () => (0, xi.callRef)(e, d);
4182
4183
  }
4183
4184
  }
4184
- qe.dynamicRef = Uo;
4185
- qe.default = Nd;
4185
+ He.dynamicRef = Uo;
4186
+ He.default = zd;
4186
4187
  var Xr = {};
4187
4188
  Object.defineProperty(Xr, "__esModule", { value: !0 });
4188
- const zd = Be, Md = V, Ld = {
4189
+ const Md = qe, Ld = V, Bd = {
4189
4190
  keyword: "$recursiveAnchor",
4190
4191
  schemaType: "boolean",
4191
4192
  code(e) {
4192
- e.schema ? (0, zd.dynamicAnchor)(e, "") : (0, Md.checkStrictMode)(e.it, "$recursiveAnchor: false is ignored");
4193
+ e.schema ? (0, Md.dynamicAnchor)(e, "") : (0, Ld.checkStrictMode)(e.it, "$recursiveAnchor: false is ignored");
4193
4194
  }
4194
4195
  };
4195
- Xr.default = Ld;
4196
+ Xr.default = Bd;
4196
4197
  var Qr = {};
4197
4198
  Object.defineProperty(Qr, "__esModule", { value: !0 });
4198
- const Bd = qe, qd = {
4199
+ const qd = He, Hd = {
4199
4200
  keyword: "$recursiveRef",
4200
4201
  schemaType: "string",
4201
- code: (e) => (0, Bd.dynamicRef)(e, e.schema)
4202
+ code: (e) => (0, qd.dynamicRef)(e, e.schema)
4202
4203
  };
4203
- Qr.default = qd;
4204
+ Qr.default = Hd;
4204
4205
  Object.defineProperty(Zr, "__esModule", { value: !0 });
4205
- const Hd = Be, Wd = qe, Ud = Xr, Gd = Qr, Kd = [Hd.default, Wd.default, Ud.default, Gd.default];
4206
- Zr.default = Kd;
4206
+ const Wd = qe, Ud = He, Gd = Xr, Kd = Qr, Jd = [Wd.default, Ud.default, Gd.default, Kd.default];
4207
+ Zr.default = Jd;
4207
4208
  var ei = {}, ti = {};
4208
4209
  Object.defineProperty(ti, "__esModule", { value: !0 });
4209
- const Ai = Ft, Jd = {
4210
+ const Ai = Ft, Yd = {
4210
4211
  keyword: "dependentRequired",
4211
4212
  type: "object",
4212
4213
  schemaType: "object",
4213
4214
  error: Ai.error,
4214
4215
  code: (e) => (0, Ai.validatePropertyDeps)(e)
4215
4216
  };
4216
- ti.default = Jd;
4217
+ ti.default = Yd;
4217
4218
  var ri = {};
4218
4219
  Object.defineProperty(ri, "__esModule", { value: !0 });
4219
- const Yd = Ft, Zd = {
4220
+ const Zd = Ft, Xd = {
4220
4221
  keyword: "dependentSchemas",
4221
4222
  type: "object",
4222
4223
  schemaType: "object",
4223
- code: (e) => (0, Yd.validateSchemaDeps)(e)
4224
+ code: (e) => (0, Zd.validateSchemaDeps)(e)
4224
4225
  };
4225
- ri.default = Zd;
4226
+ ri.default = Xd;
4226
4227
  var ii = {};
4227
4228
  Object.defineProperty(ii, "__esModule", { value: !0 });
4228
- const Xd = V, Qd = {
4229
+ const Qd = V, ec = {
4229
4230
  keyword: ["maxContains", "minContains"],
4230
4231
  type: "array",
4231
4232
  schemaType: "number",
4232
4233
  code({ keyword: e, parentSchema: t, it: r }) {
4233
- t.contains === void 0 && (0, Xd.checkStrictMode)(r, `"${e}" without "contains" is ignored`);
4234
+ t.contains === void 0 && (0, Qd.checkStrictMode)(r, `"${e}" without "contains" is ignored`);
4234
4235
  }
4235
4236
  };
4236
- ii.default = Qd;
4237
+ ii.default = ec;
4237
4238
  Object.defineProperty(ei, "__esModule", { value: !0 });
4238
- const ec = ti, tc = ri, rc = ii, ic = [ec.default, tc.default, rc.default];
4239
- ei.default = ic;
4239
+ const tc = ti, rc = ri, ic = ii, oc = [tc.default, rc.default, ic.default];
4240
+ ei.default = oc;
4240
4241
  var oi = {}, ni = {};
4241
4242
  Object.defineProperty(ni, "__esModule", { value: !0 });
4242
- const ge = E, Ni = V, oc = Q, nc = {
4243
+ const ye = E, Ni = V, nc = Q, sc = {
4243
4244
  message: "must NOT have unevaluated properties",
4244
- params: ({ params: e }) => (0, ge._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`
4245
- }, sc = {
4245
+ params: ({ params: e }) => (0, ye._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`
4246
+ }, ac = {
4246
4247
  keyword: "unevaluatedProperties",
4247
4248
  type: "object",
4248
4249
  schemaType: ["boolean", "object"],
4249
4250
  trackErrors: !0,
4250
- error: nc,
4251
+ error: sc,
4251
4252
  code(e) {
4252
4253
  const { gen: t, schema: r, data: i, errsCount: o, it: n } = e;
4253
4254
  if (!o)
4254
4255
  throw new Error("ajv implementation error");
4255
4256
  const { allErrors: a, props: l } = n;
4256
- l instanceof ge.Name ? t.if((0, ge._)`${l} !== true`, () => t.forIn("key", i, (h) => t.if(c(l, h), () => d(h)))) : l !== !0 && t.forIn("key", i, (h) => l === void 0 ? d(h) : t.if(f(l, h), () => d(h))), n.props = !0, e.ok((0, ge._)`${o} === ${oc.default.errors}`);
4257
+ l instanceof ye.Name ? t.if((0, ye._)`${l} !== true`, () => t.forIn("key", i, (h) => t.if(c(l, h), () => d(h)))) : l !== !0 && t.forIn("key", i, (h) => l === void 0 ? d(h) : t.if(f(l, h), () => d(h))), n.props = !0, e.ok((0, ye._)`${o} === ${nc.default.errors}`);
4257
4258
  function d(h) {
4258
4259
  if (r === !1) {
4259
4260
  e.setParams({ unevaluatedProperty: h }), e.error(), a || t.break();
@@ -4265,77 +4266,77 @@ const ge = E, Ni = V, oc = Q, nc = {
4265
4266
  keyword: "unevaluatedProperties",
4266
4267
  dataProp: h,
4267
4268
  dataPropType: Ni.Type.Str
4268
- }, k), a || t.if((0, ge.not)(k), () => t.break());
4269
+ }, k), a || t.if((0, ye.not)(k), () => t.break());
4269
4270
  }
4270
4271
  }
4271
4272
  function c(h, k) {
4272
- return (0, ge._)`!${h} || !${h}[${k}]`;
4273
+ return (0, ye._)`!${h} || !${h}[${k}]`;
4273
4274
  }
4274
4275
  function f(h, k) {
4275
4276
  const S = [];
4276
- for (const b in h)
4277
- h[b] === !0 && S.push((0, ge._)`${k} !== ${b}`);
4278
- return (0, ge.and)(...S);
4277
+ for (const $ in h)
4278
+ h[$] === !0 && S.push((0, ye._)`${k} !== ${$}`);
4279
+ return (0, ye.and)(...S);
4279
4280
  }
4280
4281
  }
4281
4282
  };
4282
- ni.default = sc;
4283
+ ni.default = ac;
4283
4284
  var si = {};
4284
4285
  Object.defineProperty(si, "__esModule", { value: !0 });
4285
- const Oe = E, zi = V, ac = {
4286
- message: ({ params: { len: e } }) => (0, Oe.str)`must NOT have more than ${e} items`,
4287
- params: ({ params: { len: e } }) => (0, Oe._)`{limit: ${e}}`
4288
- }, lc = {
4286
+ const Ce = E, zi = V, lc = {
4287
+ message: ({ params: { len: e } }) => (0, Ce.str)`must NOT have more than ${e} items`,
4288
+ params: ({ params: { len: e } }) => (0, Ce._)`{limit: ${e}}`
4289
+ }, dc = {
4289
4290
  keyword: "unevaluatedItems",
4290
4291
  type: "array",
4291
4292
  schemaType: ["boolean", "object"],
4292
- error: ac,
4293
+ error: lc,
4293
4294
  code(e) {
4294
4295
  const { gen: t, schema: r, data: i, it: o } = e, n = o.items || 0;
4295
4296
  if (n === !0)
4296
4297
  return;
4297
- const a = t.const("len", (0, Oe._)`${i}.length`);
4298
+ const a = t.const("len", (0, Ce._)`${i}.length`);
4298
4299
  if (r === !1)
4299
- e.setParams({ len: n }), e.fail((0, Oe._)`${a} > ${n}`);
4300
+ e.setParams({ len: n }), e.fail((0, Ce._)`${a} > ${n}`);
4300
4301
  else if (typeof r == "object" && !(0, zi.alwaysValidSchema)(o, r)) {
4301
- const d = t.var("valid", (0, Oe._)`${a} <= ${n}`);
4302
- t.if((0, Oe.not)(d), () => l(d, n)), e.ok(d);
4302
+ const d = t.var("valid", (0, Ce._)`${a} <= ${n}`);
4303
+ t.if((0, Ce.not)(d), () => l(d, n)), e.ok(d);
4303
4304
  }
4304
4305
  o.items = !0;
4305
4306
  function l(d, c) {
4306
4307
  t.forRange("i", c, a, (f) => {
4307
- e.subschema({ keyword: "unevaluatedItems", dataProp: f, dataPropType: zi.Type.Num }, d), o.allErrors || t.if((0, Oe.not)(d), () => t.break());
4308
+ e.subschema({ keyword: "unevaluatedItems", dataProp: f, dataPropType: zi.Type.Num }, d), o.allErrors || t.if((0, Ce.not)(d), () => t.break());
4308
4309
  });
4309
4310
  }
4310
4311
  }
4311
4312
  };
4312
- si.default = lc;
4313
+ si.default = dc;
4313
4314
  Object.defineProperty(oi, "__esModule", { value: !0 });
4314
- const dc = ni, cc = si, pc = [dc.default, cc.default];
4315
- oi.default = pc;
4315
+ const cc = ni, pc = si, uc = [cc.default, pc.default];
4316
+ oi.default = uc;
4316
4317
  var ai = {}, li = {};
4317
4318
  Object.defineProperty(li, "__esModule", { value: !0 });
4318
- const q = E, uc = {
4319
+ const q = E, fc = {
4319
4320
  message: ({ schemaCode: e }) => (0, q.str)`must match format "${e}"`,
4320
4321
  params: ({ schemaCode: e }) => (0, q._)`{format: ${e}}`
4321
- }, fc = {
4322
+ }, hc = {
4322
4323
  keyword: "format",
4323
4324
  type: ["number", "string"],
4324
4325
  schemaType: "string",
4325
4326
  $data: !0,
4326
- error: uc,
4327
+ error: fc,
4327
4328
  code(e, t) {
4328
4329
  const { gen: r, data: i, $data: o, schema: n, schemaCode: a, it: l } = e, { opts: d, errSchemaPath: c, schemaEnv: f, self: h } = l;
4329
4330
  if (!d.validateFormats)
4330
4331
  return;
4331
4332
  o ? k() : S();
4332
4333
  function k() {
4333
- const b = r.scopeValue("formats", {
4334
+ const $ = r.scopeValue("formats", {
4334
4335
  ref: h.formats,
4335
4336
  code: d.code.formats
4336
- }), w = r.const("fDef", (0, q._)`${b}[${a}]`), g = r.let("fType"), u = r.let("format");
4337
- r.if((0, q._)`typeof ${w} == "object" && !(${w} instanceof RegExp)`, () => r.assign(g, (0, q._)`${w}.type || "string"`).assign(u, (0, q._)`${w}.validate`), () => r.assign(g, (0, q._)`"string"`).assign(u, w)), e.fail$data((0, q.or)($(), C()));
4338
- function $() {
4337
+ }), w = r.const("fDef", (0, q._)`${$}[${a}]`), g = r.let("fType"), u = r.let("format");
4338
+ r.if((0, q._)`typeof ${w} == "object" && !(${w} instanceof RegExp)`, () => r.assign(g, (0, q._)`${w}.type || "string"`).assign(u, (0, q._)`${w}.validate`), () => r.assign(g, (0, q._)`"string"`).assign(u, w)), e.fail$data((0, q.or)(b(), C()));
4339
+ function b() {
4339
4340
  return d.strictSchema === !1 ? q.nil : (0, q._)`${a} && !${u}`;
4340
4341
  }
4341
4342
  function C() {
@@ -4344,16 +4345,16 @@ const q = E, uc = {
4344
4345
  }
4345
4346
  }
4346
4347
  function S() {
4347
- const b = h.formats[n];
4348
- if (!b) {
4349
- $();
4348
+ const $ = h.formats[n];
4349
+ if (!$) {
4350
+ b();
4350
4351
  return;
4351
4352
  }
4352
- if (b === !0)
4353
+ if ($ === !0)
4353
4354
  return;
4354
- const [w, g, u] = C(b);
4355
+ const [w, g, u] = C($);
4355
4356
  w === t && e.pass(D());
4356
- function $() {
4357
+ function b() {
4357
4358
  if (d.strictSchema === !1) {
4358
4359
  h.logger.warn(F());
4359
4360
  return;
@@ -4368,7 +4369,7 @@ const q = E, uc = {
4368
4369
  return typeof F == "object" && !(F instanceof RegExp) ? [F.type || "string", F.validate, (0, q._)`${H}.validate`] : ["string", F, H];
4369
4370
  }
4370
4371
  function D() {
4371
- if (typeof b == "object" && !(b instanceof RegExp) && b.async) {
4372
+ if (typeof $ == "object" && !($ instanceof RegExp) && $.async) {
4372
4373
  if (!f.$async)
4373
4374
  throw new Error("async format in sync schema");
4374
4375
  return (0, q._)`await ${u}(${i})`;
@@ -4378,10 +4379,10 @@ const q = E, uc = {
4378
4379
  }
4379
4380
  }
4380
4381
  };
4381
- li.default = fc;
4382
+ li.default = hc;
4382
4383
  Object.defineProperty(ai, "__esModule", { value: !0 });
4383
- const hc = li, mc = [hc.default];
4384
- ai.default = mc;
4384
+ const mc = li, gc = [mc.default];
4385
+ ai.default = gc;
4385
4386
  var Ne = {};
4386
4387
  Object.defineProperty(Ne, "__esModule", { value: !0 });
4387
4388
  Ne.contentVocabulary = Ne.metadataVocabulary = void 0;
@@ -4400,18 +4401,18 @@ Ne.contentVocabulary = [
4400
4401
  "contentSchema"
4401
4402
  ];
4402
4403
  Object.defineProperty(kr, "__esModule", { value: !0 });
4403
- const gc = Or, yc = Pr, $c = Nr, bc = Zr, vc = ei, Sc = oi, wc = ai, Mi = Ne, kc = [
4404
- bc.default,
4405
- gc.default,
4404
+ const yc = Or, bc = Pr, $c = Nr, vc = Zr, Sc = ei, wc = oi, kc = ai, Mi = Ne, Oc = [
4405
+ vc.default,
4406
4406
  yc.default,
4407
+ bc.default,
4407
4408
  (0, $c.default)(!0),
4408
- wc.default,
4409
+ kc.default,
4409
4410
  Mi.metadataVocabulary,
4410
4411
  Mi.contentVocabulary,
4411
- vc.default,
4412
- Sc.default
4412
+ Sc.default,
4413
+ wc.default
4413
4414
  ];
4414
- kr.default = kc;
4415
+ kr.default = Oc;
4415
4416
  var di = {}, Rt = {};
4416
4417
  Object.defineProperty(Rt, "__esModule", { value: !0 });
4417
4418
  Rt.DiscrError = void 0;
@@ -4420,14 +4421,14 @@ var Li;
4420
4421
  e.Tag = "tag", e.Mapping = "mapping";
4421
4422
  })(Li || (Rt.DiscrError = Li = {}));
4422
4423
  Object.defineProperty(di, "__esModule", { value: !0 });
4423
- const je = E, lr = Rt, Bi = Z, Oc = ze, Cc = V, Pc = {
4424
+ const Re = E, lr = Rt, Bi = Z, Cc = Me, Pc = V, _c = {
4424
4425
  message: ({ params: { discrError: e, tagName: t } }) => e === lr.DiscrError.Tag ? `tag "${t}" must be string` : `value of tag "${t}" must be in oneOf`,
4425
- params: ({ params: { discrError: e, tag: t, tagName: r } }) => (0, je._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`
4426
- }, _c = {
4426
+ params: ({ params: { discrError: e, tag: t, tagName: r } }) => (0, Re._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`
4427
+ }, Vc = {
4427
4428
  keyword: "discriminator",
4428
4429
  type: "object",
4429
4430
  schemaType: "object",
4430
- error: Pc,
4431
+ error: _c,
4431
4432
  code(e) {
4432
4433
  const { gen: t, data: r, schema: i, parentSchema: o, it: n } = e, { oneOf: a } = o;
4433
4434
  if (!n.opts.discriminator)
@@ -4439,42 +4440,42 @@ const je = E, lr = Rt, Bi = Z, Oc = ze, Cc = V, Pc = {
4439
4440
  throw new Error("discriminator: mapping is not supported");
4440
4441
  if (!a)
4441
4442
  throw new Error("discriminator: requires oneOf keyword");
4442
- const d = t.let("valid", !1), c = t.const("tag", (0, je._)`${r}${(0, je.getProperty)(l)}`);
4443
- t.if((0, je._)`typeof ${c} == "string"`, () => f(), () => e.error(!1, { discrError: lr.DiscrError.Tag, tag: c, tagName: l })), e.ok(d);
4443
+ const d = t.let("valid", !1), c = t.const("tag", (0, Re._)`${r}${(0, Re.getProperty)(l)}`);
4444
+ t.if((0, Re._)`typeof ${c} == "string"`, () => f(), () => e.error(!1, { discrError: lr.DiscrError.Tag, tag: c, tagName: l })), e.ok(d);
4444
4445
  function f() {
4445
4446
  const S = k();
4446
4447
  t.if(!1);
4447
- for (const b in S)
4448
- t.elseIf((0, je._)`${c} === ${b}`), t.assign(d, h(S[b]));
4448
+ for (const $ in S)
4449
+ t.elseIf((0, Re._)`${c} === ${$}`), t.assign(d, h(S[$]));
4449
4450
  t.else(), e.error(!1, { discrError: lr.DiscrError.Mapping, tag: c, tagName: l }), t.endIf();
4450
4451
  }
4451
4452
  function h(S) {
4452
- const b = t.name("valid"), w = e.subschema({ keyword: "oneOf", schemaProp: S }, b);
4453
- return e.mergeEvaluated(w, je.Name), b;
4453
+ const $ = t.name("valid"), w = e.subschema({ keyword: "oneOf", schemaProp: S }, $);
4454
+ return e.mergeEvaluated(w, Re.Name), $;
4454
4455
  }
4455
4456
  function k() {
4456
4457
  var S;
4457
- const b = {}, w = u(o);
4458
+ const $ = {}, w = u(o);
4458
4459
  let g = !0;
4459
4460
  for (let D = 0; D < a.length; D++) {
4460
4461
  let F = a[D];
4461
- if (F != null && F.$ref && !(0, Cc.schemaHasRulesButRef)(F, n.self.RULES)) {
4462
+ if (F != null && F.$ref && !(0, Pc.schemaHasRulesButRef)(F, n.self.RULES)) {
4462
4463
  const H = F.$ref;
4463
4464
  if (F = Bi.resolveRef.call(n.self, n.schemaEnv.root, n.baseId, H), F instanceof Bi.SchemaEnv && (F = F.schema), F === void 0)
4464
- throw new Oc.default(n.opts.uriResolver, n.baseId, H);
4465
+ throw new Cc.default(n.opts.uriResolver, n.baseId, H);
4465
4466
  }
4466
4467
  const L = (S = F == null ? void 0 : F.properties) === null || S === void 0 ? void 0 : S[l];
4467
4468
  if (typeof L != "object")
4468
4469
  throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${l}"`);
4469
- g = g && (w || u(F)), $(L, D);
4470
+ g = g && (w || u(F)), b(L, D);
4470
4471
  }
4471
4472
  if (!g)
4472
4473
  throw new Error(`discriminator: "${l}" must be required`);
4473
- return b;
4474
+ return $;
4474
4475
  function u({ required: D }) {
4475
4476
  return Array.isArray(D) && D.includes(l);
4476
4477
  }
4477
- function $(D, F) {
4478
+ function b(D, F) {
4478
4479
  if (D.const)
4479
4480
  C(D.const, F);
4480
4481
  else if (D.enum)
@@ -4484,16 +4485,16 @@ const je = E, lr = Rt, Bi = Z, Oc = ze, Cc = V, Pc = {
4484
4485
  throw new Error(`discriminator: "properties/${l}" must have "const" or "enum"`);
4485
4486
  }
4486
4487
  function C(D, F) {
4487
- if (typeof D != "string" || D in b)
4488
+ if (typeof D != "string" || D in $)
4488
4489
  throw new Error(`discriminator: "${l}" values must be unique strings`);
4489
- b[D] = F;
4490
+ $[D] = F;
4490
4491
  }
4491
4492
  }
4492
4493
  }
4493
4494
  };
4494
- di.default = _c;
4495
+ di.default = Vc;
4495
4496
  var ci = {};
4496
- const Vc = "https://json-schema.org/draft/2020-12/schema", Dc = "https://json-schema.org/draft/2020-12/schema", Fc = {
4497
+ const Dc = "https://json-schema.org/draft/2020-12/schema", Fc = "https://json-schema.org/draft/2020-12/schema", jc = {
4497
4498
  "https://json-schema.org/draft/2020-12/vocab/core": !0,
4498
4499
  "https://json-schema.org/draft/2020-12/vocab/applicator": !0,
4499
4500
  "https://json-schema.org/draft/2020-12/vocab/unevaluated": !0,
@@ -4501,7 +4502,7 @@ const Vc = "https://json-schema.org/draft/2020-12/schema", Dc = "https://json-sc
4501
4502
  "https://json-schema.org/draft/2020-12/vocab/meta-data": !0,
4502
4503
  "https://json-schema.org/draft/2020-12/vocab/format-annotation": !0,
4503
4504
  "https://json-schema.org/draft/2020-12/vocab/content": !0
4504
- }, jc = "meta", Rc = "Core and Validation specifications meta-schema", Tc = [
4505
+ }, Rc = "meta", Tc = "Core and Validation specifications meta-schema", Ic = [
4505
4506
  {
4506
4507
  $ref: "meta/core"
4507
4508
  },
@@ -4523,10 +4524,10 @@ const Vc = "https://json-schema.org/draft/2020-12/schema", Dc = "https://json-sc
4523
4524
  {
4524
4525
  $ref: "meta/content"
4525
4526
  }
4526
- ], Ic = [
4527
+ ], Ec = [
4527
4528
  "object",
4528
4529
  "boolean"
4529
- ], Ec = "This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.", xc = {
4530
+ ], xc = "This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.", Ac = {
4530
4531
  definitions: {
4531
4532
  $comment: '"definitions" has been replaced by "$defs".',
4532
4533
  type: "object",
@@ -4562,22 +4563,22 @@ const Vc = "https://json-schema.org/draft/2020-12/schema", Dc = "https://json-sc
4562
4563
  $ref: "meta/core#/$defs/uriReferenceString",
4563
4564
  deprecated: !0
4564
4565
  }
4565
- }, Ac = {
4566
- $schema: Vc,
4567
- $id: Dc,
4568
- $vocabulary: Fc,
4569
- $dynamicAnchor: jc,
4570
- title: Rc,
4571
- allOf: Tc,
4572
- type: Ic,
4573
- $comment: Ec,
4574
- properties: xc
4575
- }, Nc = "https://json-schema.org/draft/2020-12/schema", zc = "https://json-schema.org/draft/2020-12/meta/applicator", Mc = {
4566
+ }, Nc = {
4567
+ $schema: Dc,
4568
+ $id: Fc,
4569
+ $vocabulary: jc,
4570
+ $dynamicAnchor: Rc,
4571
+ title: Tc,
4572
+ allOf: Ic,
4573
+ type: Ec,
4574
+ $comment: xc,
4575
+ properties: Ac
4576
+ }, zc = "https://json-schema.org/draft/2020-12/schema", Mc = "https://json-schema.org/draft/2020-12/meta/applicator", Lc = {
4576
4577
  "https://json-schema.org/draft/2020-12/vocab/applicator": !0
4577
- }, Lc = "meta", Bc = "Applicator vocabulary meta-schema", qc = [
4578
+ }, Bc = "meta", qc = "Applicator vocabulary meta-schema", Hc = [
4578
4579
  "object",
4579
4580
  "boolean"
4580
- ], Hc = {
4581
+ ], Wc = {
4581
4582
  prefixItems: {
4582
4583
  $ref: "#/$defs/schemaArray"
4583
4584
  },
@@ -4638,7 +4639,7 @@ const Vc = "https://json-schema.org/draft/2020-12/schema", Dc = "https://json-sc
4638
4639
  not: {
4639
4640
  $dynamicRef: "#meta"
4640
4641
  }
4641
- }, Wc = {
4642
+ }, Uc = {
4642
4643
  schemaArray: {
4643
4644
  type: "array",
4644
4645
  minItems: 1,
@@ -4646,41 +4647,41 @@ const Vc = "https://json-schema.org/draft/2020-12/schema", Dc = "https://json-sc
4646
4647
  $dynamicRef: "#meta"
4647
4648
  }
4648
4649
  }
4649
- }, Uc = {
4650
- $schema: Nc,
4651
- $id: zc,
4652
- $vocabulary: Mc,
4653
- $dynamicAnchor: Lc,
4654
- title: Bc,
4655
- type: qc,
4656
- properties: Hc,
4657
- $defs: Wc
4658
- }, Gc = "https://json-schema.org/draft/2020-12/schema", Kc = "https://json-schema.org/draft/2020-12/meta/unevaluated", Jc = {
4650
+ }, Gc = {
4651
+ $schema: zc,
4652
+ $id: Mc,
4653
+ $vocabulary: Lc,
4654
+ $dynamicAnchor: Bc,
4655
+ title: qc,
4656
+ type: Hc,
4657
+ properties: Wc,
4658
+ $defs: Uc
4659
+ }, Kc = "https://json-schema.org/draft/2020-12/schema", Jc = "https://json-schema.org/draft/2020-12/meta/unevaluated", Yc = {
4659
4660
  "https://json-schema.org/draft/2020-12/vocab/unevaluated": !0
4660
- }, Yc = "meta", Zc = "Unevaluated applicator vocabulary meta-schema", Xc = [
4661
+ }, Zc = "meta", Xc = "Unevaluated applicator vocabulary meta-schema", Qc = [
4661
4662
  "object",
4662
4663
  "boolean"
4663
- ], Qc = {
4664
+ ], ep = {
4664
4665
  unevaluatedItems: {
4665
4666
  $dynamicRef: "#meta"
4666
4667
  },
4667
4668
  unevaluatedProperties: {
4668
4669
  $dynamicRef: "#meta"
4669
4670
  }
4670
- }, ep = {
4671
- $schema: Gc,
4672
- $id: Kc,
4673
- $vocabulary: Jc,
4674
- $dynamicAnchor: Yc,
4675
- title: Zc,
4676
- type: Xc,
4677
- properties: Qc
4678
- }, tp = "https://json-schema.org/draft/2020-12/schema", rp = "https://json-schema.org/draft/2020-12/meta/content", ip = {
4671
+ }, tp = {
4672
+ $schema: Kc,
4673
+ $id: Jc,
4674
+ $vocabulary: Yc,
4675
+ $dynamicAnchor: Zc,
4676
+ title: Xc,
4677
+ type: Qc,
4678
+ properties: ep
4679
+ }, rp = "https://json-schema.org/draft/2020-12/schema", ip = "https://json-schema.org/draft/2020-12/meta/content", op = {
4679
4680
  "https://json-schema.org/draft/2020-12/vocab/content": !0
4680
- }, op = "meta", np = "Content vocabulary meta-schema", sp = [
4681
+ }, np = "meta", sp = "Content vocabulary meta-schema", ap = [
4681
4682
  "object",
4682
4683
  "boolean"
4683
- ], ap = {
4684
+ ], lp = {
4684
4685
  contentEncoding: {
4685
4686
  type: "string"
4686
4687
  },
@@ -4690,20 +4691,20 @@ const Vc = "https://json-schema.org/draft/2020-12/schema", Dc = "https://json-sc
4690
4691
  contentSchema: {
4691
4692
  $dynamicRef: "#meta"
4692
4693
  }
4693
- }, lp = {
4694
- $schema: tp,
4695
- $id: rp,
4696
- $vocabulary: ip,
4697
- $dynamicAnchor: op,
4698
- title: np,
4699
- type: sp,
4700
- properties: ap
4701
- }, dp = "https://json-schema.org/draft/2020-12/schema", cp = "https://json-schema.org/draft/2020-12/meta/core", pp = {
4694
+ }, dp = {
4695
+ $schema: rp,
4696
+ $id: ip,
4697
+ $vocabulary: op,
4698
+ $dynamicAnchor: np,
4699
+ title: sp,
4700
+ type: ap,
4701
+ properties: lp
4702
+ }, cp = "https://json-schema.org/draft/2020-12/schema", pp = "https://json-schema.org/draft/2020-12/meta/core", up = {
4702
4703
  "https://json-schema.org/draft/2020-12/vocab/core": !0
4703
- }, up = "meta", fp = "Core vocabulary meta-schema", hp = [
4704
+ }, fp = "meta", hp = "Core vocabulary meta-schema", mp = [
4704
4705
  "object",
4705
4706
  "boolean"
4706
- ], mp = {
4707
+ ], gp = {
4707
4708
  $id: {
4708
4709
  $ref: "#/$defs/uriReferenceString",
4709
4710
  $comment: "Non-empty fragments not allowed.",
@@ -4742,7 +4743,7 @@ const Vc = "https://json-schema.org/draft/2020-12/schema", Dc = "https://json-sc
4742
4743
  $dynamicRef: "#meta"
4743
4744
  }
4744
4745
  }
4745
- }, gp = {
4746
+ }, yp = {
4746
4747
  anchorString: {
4747
4748
  type: "string",
4748
4749
  pattern: "^[A-Za-z_][-A-Za-z0-9._]*$"
@@ -4755,38 +4756,38 @@ const Vc = "https://json-schema.org/draft/2020-12/schema", Dc = "https://json-sc
4755
4756
  type: "string",
4756
4757
  format: "uri-reference"
4757
4758
  }
4758
- }, yp = {
4759
- $schema: dp,
4760
- $id: cp,
4761
- $vocabulary: pp,
4762
- $dynamicAnchor: up,
4763
- title: fp,
4764
- type: hp,
4765
- properties: mp,
4766
- $defs: gp
4767
- }, $p = "https://json-schema.org/draft/2020-12/schema", bp = "https://json-schema.org/draft/2020-12/meta/format-annotation", vp = {
4759
+ }, bp = {
4760
+ $schema: cp,
4761
+ $id: pp,
4762
+ $vocabulary: up,
4763
+ $dynamicAnchor: fp,
4764
+ title: hp,
4765
+ type: mp,
4766
+ properties: gp,
4767
+ $defs: yp
4768
+ }, $p = "https://json-schema.org/draft/2020-12/schema", vp = "https://json-schema.org/draft/2020-12/meta/format-annotation", Sp = {
4768
4769
  "https://json-schema.org/draft/2020-12/vocab/format-annotation": !0
4769
- }, Sp = "meta", wp = "Format vocabulary meta-schema for annotation results", kp = [
4770
+ }, wp = "meta", kp = "Format vocabulary meta-schema for annotation results", Op = [
4770
4771
  "object",
4771
4772
  "boolean"
4772
- ], Op = {
4773
+ ], Cp = {
4773
4774
  format: {
4774
4775
  type: "string"
4775
4776
  }
4776
- }, Cp = {
4777
+ }, Pp = {
4777
4778
  $schema: $p,
4778
- $id: bp,
4779
- $vocabulary: vp,
4780
- $dynamicAnchor: Sp,
4781
- title: wp,
4782
- type: kp,
4783
- properties: Op
4784
- }, Pp = "https://json-schema.org/draft/2020-12/schema", _p = "https://json-schema.org/draft/2020-12/meta/meta-data", Vp = {
4779
+ $id: vp,
4780
+ $vocabulary: Sp,
4781
+ $dynamicAnchor: wp,
4782
+ title: kp,
4783
+ type: Op,
4784
+ properties: Cp
4785
+ }, _p = "https://json-schema.org/draft/2020-12/schema", Vp = "https://json-schema.org/draft/2020-12/meta/meta-data", Dp = {
4785
4786
  "https://json-schema.org/draft/2020-12/vocab/meta-data": !0
4786
- }, Dp = "meta", Fp = "Meta-data vocabulary meta-schema", jp = [
4787
+ }, Fp = "meta", jp = "Meta-data vocabulary meta-schema", Rp = [
4787
4788
  "object",
4788
4789
  "boolean"
4789
- ], Rp = {
4790
+ ], Tp = {
4790
4791
  title: {
4791
4792
  type: "string"
4792
4793
  },
@@ -4810,20 +4811,20 @@ const Vc = "https://json-schema.org/draft/2020-12/schema", Dc = "https://json-sc
4810
4811
  type: "array",
4811
4812
  items: !0
4812
4813
  }
4813
- }, Tp = {
4814
- $schema: Pp,
4815
- $id: _p,
4816
- $vocabulary: Vp,
4817
- $dynamicAnchor: Dp,
4818
- title: Fp,
4819
- type: jp,
4820
- properties: Rp
4821
- }, Ip = "https://json-schema.org/draft/2020-12/schema", Ep = "https://json-schema.org/draft/2020-12/meta/validation", xp = {
4814
+ }, Ip = {
4815
+ $schema: _p,
4816
+ $id: Vp,
4817
+ $vocabulary: Dp,
4818
+ $dynamicAnchor: Fp,
4819
+ title: jp,
4820
+ type: Rp,
4821
+ properties: Tp
4822
+ }, Ep = "https://json-schema.org/draft/2020-12/schema", xp = "https://json-schema.org/draft/2020-12/meta/validation", Ap = {
4822
4823
  "https://json-schema.org/draft/2020-12/vocab/validation": !0
4823
- }, Ap = "meta", Np = "Validation vocabulary meta-schema", zp = [
4824
+ }, Np = "meta", zp = "Validation vocabulary meta-schema", Mp = [
4824
4825
  "object",
4825
4826
  "boolean"
4826
- ], Mp = {
4827
+ ], Lp = {
4827
4828
  type: {
4828
4829
  anyOf: [
4829
4830
  {
@@ -4902,7 +4903,7 @@ const Vc = "https://json-schema.org/draft/2020-12/schema", Dc = "https://json-sc
4902
4903
  $ref: "#/$defs/stringArray"
4903
4904
  }
4904
4905
  }
4905
- }, Lp = {
4906
+ }, Bp = {
4906
4907
  nonNegativeInteger: {
4907
4908
  type: "integer",
4908
4909
  minimum: 0
@@ -4930,34 +4931,34 @@ const Vc = "https://json-schema.org/draft/2020-12/schema", Dc = "https://json-sc
4930
4931
  uniqueItems: !0,
4931
4932
  default: []
4932
4933
  }
4933
- }, Bp = {
4934
- $schema: Ip,
4935
- $id: Ep,
4936
- $vocabulary: xp,
4937
- $dynamicAnchor: Ap,
4938
- title: Np,
4939
- type: zp,
4940
- properties: Mp,
4941
- $defs: Lp
4934
+ }, qp = {
4935
+ $schema: Ep,
4936
+ $id: xp,
4937
+ $vocabulary: Ap,
4938
+ $dynamicAnchor: Np,
4939
+ title: zp,
4940
+ type: Mp,
4941
+ properties: Lp,
4942
+ $defs: Bp
4942
4943
  };
4943
4944
  Object.defineProperty(ci, "__esModule", { value: !0 });
4944
- const qp = Ac, Hp = Uc, Wp = ep, Up = lp, Gp = yp, Kp = Cp, Jp = Tp, Yp = Bp, Zp = ["/properties"];
4945
- function Xp(e) {
4945
+ const Hp = Nc, Wp = Gc, Up = tp, Gp = dp, Kp = bp, Jp = Pp, Yp = Ip, Zp = qp, Xp = ["/properties"];
4946
+ function Qp(e) {
4946
4947
  return [
4947
- qp,
4948
4948
  Hp,
4949
4949
  Wp,
4950
4950
  Up,
4951
4951
  Gp,
4952
- t(this, Kp),
4953
- Jp,
4954
- t(this, Yp)
4952
+ Kp,
4953
+ t(this, Jp),
4954
+ Yp,
4955
+ t(this, Zp)
4955
4956
  ].forEach((r) => this.addMetaSchema(r, void 0, !1)), this;
4956
4957
  function t(r, i) {
4957
- return e ? r.$dataMetaSchema(i, Zp) : i;
4958
+ return e ? r.$dataMetaSchema(i, Xp) : i;
4958
4959
  }
4959
4960
  }
4960
- ci.default = Xp;
4961
+ ci.default = Qp;
4961
4962
  (function(e, t) {
4962
4963
  Object.defineProperty(t, "__esModule", { value: !0 }), t.MissingRefError = t.ValidationError = t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = t.Ajv2020 = void 0;
4963
4964
  const r = qi, i = kr, o = di, n = ci, a = "https://json-schema.org/draft/2020-12/schema";
@@ -4975,8 +4976,8 @@ ci.default = Xp;
4975
4976
  }
4976
4977
  _addDefaultMetaSchema() {
4977
4978
  super._addDefaultMetaSchema();
4978
- const { $data: S, meta: b } = this.opts;
4979
- b && (n.default.call(this, S), this.refs["http://json-schema.org/schema"] = a);
4979
+ const { $data: S, meta: $ } = this.opts;
4980
+ $ && (n.default.call(this, S), this.refs["http://json-schema.org/schema"] = a);
4980
4981
  }
4981
4982
  defaultMeta() {
4982
4983
  return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(a) ? a : void 0);
@@ -5005,13 +5006,13 @@ ci.default = Xp;
5005
5006
  Object.defineProperty(t, "ValidationError", { enumerable: !0, get: function() {
5006
5007
  return f.default;
5007
5008
  } });
5008
- var h = ze;
5009
+ var h = Me;
5009
5010
  Object.defineProperty(t, "MissingRefError", { enumerable: !0, get: function() {
5010
5011
  return h.default;
5011
5012
  } });
5012
5013
  })(tr, tr.exports);
5013
- var Qp = tr.exports;
5014
- const eu = "custom-apps", tu = "1.7.0", Ee = {
5014
+ var eu = tr.exports;
5015
+ const tu = "custom-apps", ru = "1.8.0", pe = {
5015
5016
  ActionCard: {
5016
5017
  description: "Card with icon asset, title, caption, and action buttons",
5017
5018
  events: ["primaryAction", "secondaryAction"],
@@ -12970,6 +12971,22 @@ const eu = "custom-apps", tu = "1.7.0", Ee = {
12970
12971
  acceptsChildren: !1
12971
12972
  }
12972
12973
  }, vt = {
12974
+ copyToClipboard: {
12975
+ description: "Copy text to the device clipboard.",
12976
+ docs: "`text` (required): the resolved text to place on the device clipboard.",
12977
+ paramsSchema: {
12978
+ $schema: "https://json-schema.org/draft/2020-12/schema",
12979
+ additionalProperties: !1,
12980
+ properties: {
12981
+ text: {
12982
+ description: "Text to copy to the device clipboard.",
12983
+ type: "string"
12984
+ }
12985
+ },
12986
+ required: ["text"],
12987
+ type: "object"
12988
+ }
12989
+ },
12973
12990
  goBack: {
12974
12991
  description: "Mobile-specific action that goes back to the previous screen in the navigation stack.",
12975
12992
  docs: "No params. Calls NavigationService.navigateBack(). No-ops if there is no screen to go back to.",
@@ -13082,7 +13099,7 @@ The value may use $state or $computed expressions. This is useful for deriving v
13082
13099
  type: "object"
13083
13100
  }
13084
13101
  }
13085
- }, rt = {
13102
+ }, it = {
13086
13103
  currency_format: {
13087
13104
  description: "Format an amount as currency (symbol/code + grouped decimals) using app currency utilities.",
13088
13105
  paramsSchema: {
@@ -13257,7 +13274,7 @@ The value may use $state or $computed expressions. This is useful for deriving v
13257
13274
  type: "object"
13258
13275
  }
13259
13276
  }
13260
- }, ru = {}, Go = {
13277
+ }, iu = {}, Go = {
13261
13278
  AlignItemsValue: {
13262
13279
  enum: ["flex-start", "flex-end", "center", "stretch", "baseline"]
13263
13280
  },
@@ -15165,16 +15182,27 @@ The value may use $state or $computed expressions. This is useful for deriving v
15165
15182
  WritingDirectionValue: {
15166
15183
  enum: ["auto", "ltr", "rtl"]
15167
15184
  }
15168
- };
15169
- function Uf() {
15185
+ }, ou = [
15186
+ { field: "category", title: "Categories" },
15187
+ { field: "keywords", title: "Keywords" },
15188
+ { field: "anatomy", title: "Anatomy" },
15189
+ { field: "guidance", title: "Guidance" },
15190
+ { field: "antiPatterns", title: "Anti-patterns" },
15191
+ { field: "aiGuardrails", title: "AI guardrails" },
15192
+ { field: "propGuidance", title: "Prop guidance" },
15193
+ { field: "selection", title: "Component selection" },
15194
+ { field: "relatedComponents", title: "Related components" },
15195
+ { field: "subComponents", title: "Sub-components" }
15196
+ ];
15197
+ function Yf() {
15170
15198
  return Object.fromEntries(
15171
- Object.entries(Ee).map(([e, t]) => [
15199
+ Object.entries(pe).map(([e, t]) => [
15172
15200
  e,
15173
15201
  String(t.description ?? "")
15174
15202
  ])
15175
15203
  );
15176
15204
  }
15177
- function Gf() {
15205
+ function Zf() {
15178
15206
  return Object.fromEntries(
15179
15207
  Object.entries(vt).map(([e, t]) => [
15180
15208
  e,
@@ -15182,47 +15210,58 @@ function Gf() {
15182
15210
  ])
15183
15211
  );
15184
15212
  }
15185
- function Kf() {
15213
+ function Xf() {
15186
15214
  return Object.fromEntries(
15187
- Object.entries(rt).map(([e, t]) => [
15215
+ Object.entries(it).map(([e, t]) => [
15188
15216
  e,
15189
15217
  String(t.description ?? "")
15190
15218
  ])
15191
15219
  );
15192
15220
  }
15193
- function Jf() {
15194
- return rt;
15221
+ function Qf() {
15222
+ return it;
15195
15223
  }
15196
- function Yf() {
15224
+ function eh() {
15197
15225
  return Go;
15198
15226
  }
15199
- function Zf(e) {
15200
- if (!(e in Ee))
15227
+ function th(e) {
15228
+ if (!Object.hasOwn(pe, e))
15201
15229
  throw new Error(
15202
- `Unknown component '${e}'. Available: ${Object.keys(Ee).join(", ")}`
15230
+ `Unknown component '${e}'. Available: ${Object.keys(pe).join(", ")}`
15203
15231
  );
15204
- const t = { ...Ee[e] };
15232
+ const t = { ...pe[e] };
15205
15233
  return delete t.example, t;
15206
15234
  }
15207
- function Xf(e) {
15235
+ function rh(e) {
15236
+ if (!Object.hasOwn(pe, e))
15237
+ throw new Error(
15238
+ `Unknown component '${e}'. Available: ${Object.keys(pe).join(", ")}`
15239
+ );
15240
+ return Zo(
15241
+ e,
15242
+ pe[e],
15243
+ ou
15244
+ );
15245
+ }
15246
+ function ih(e) {
15208
15247
  if (!(e in vt))
15209
15248
  throw new Error(
15210
15249
  `Unknown action '${e}'. Available: ${Object.keys(vt).join(", ")}`
15211
15250
  );
15212
15251
  return vt[e];
15213
15252
  }
15214
- function Qf(e) {
15215
- if (!(e in rt))
15253
+ function oh(e) {
15254
+ if (!(e in it))
15216
15255
  throw new Error(
15217
- `Unknown function '${e}'. Available: ${Object.keys(rt).join(", ")}`
15256
+ `Unknown function '${e}'. Available: ${Object.keys(it).join(", ")}`
15218
15257
  );
15219
- return rt[e];
15258
+ return it[e];
15220
15259
  }
15221
- function iu(e) {
15260
+ function nu(e) {
15222
15261
  return e ? e.slice(1).split("/").map((t) => t.replace(/~1/g, "/").replace(/~0/g, "~")).join(".") : "(root)";
15223
15262
  }
15224
15263
  function Ko(e, t) {
15225
- const r = new Qp.Ajv2020({ allErrors: !0, strict: !1 });
15264
+ const r = new eu.Ajv2020({ allErrors: !0, strict: !1 });
15226
15265
  r.removeKeyword("id");
15227
15266
  const i = r.compile(e);
15228
15267
  if (i(t)) return [];
@@ -15232,30 +15271,30 @@ function Ko(e, t) {
15232
15271
  return o.filter(
15233
15272
  (a) => a.keyword === "anyOf" || !(a.schemaPath.includes("/anyOf/") && n.has(a.instancePath))
15234
15273
  ).map((a) => {
15235
- const l = iu(a.instancePath);
15274
+ const l = nu(a.instancePath);
15236
15275
  return a.keyword === "anyOf" ? `props ${l}: must match the declared schema or a reactive reference` : `props ${l}: ${a.message ?? "failed schema validation"}`;
15237
15276
  });
15238
15277
  }
15239
- const ou = Yo({
15278
+ const su = Yo({
15240
15279
  defs: Go,
15241
- directives: ru,
15280
+ directives: iu,
15242
15281
  supportsStandardDirectives: !1,
15243
15282
  validateSchema: Ko
15244
15283
  });
15245
- function eh(e) {
15284
+ function nh(e) {
15246
15285
  const t = [], r = e.elements ?? {}, i = e.root;
15247
15286
  i && !(i in r) && t.push(`Root element '${i}' not found in elements map`);
15248
15287
  for (const [o, n] of Object.entries(r)) {
15249
15288
  const a = n.type ?? "";
15250
- if (!(a in Ee)) {
15289
+ if (!(a in pe)) {
15251
15290
  t.push(`Element '${o}': unknown type '${a}'`);
15252
15291
  continue;
15253
15292
  }
15254
- const l = Ee[a], d = l.propsSchema;
15293
+ const l = pe[a], d = l.propsSchema;
15255
15294
  if (d) {
15256
15295
  const k = n.props ?? {};
15257
15296
  for (const S of Ko(
15258
- ou.preparePropsSchema(d),
15297
+ su.preparePropsSchema(d),
15259
15298
  k
15260
15299
  ))
15261
15300
  t.push(`Element '${o}': ${S}`);
@@ -15269,116 +15308,118 @@ function eh(e) {
15269
15308
  }
15270
15309
  return t;
15271
15310
  }
15272
- function th(e) {
15311
+ function sh(e) {
15273
15312
  return {
15274
- ...Zo(e.root, e.state),
15313
+ ...Xo(e.root, e.state),
15275
15314
  platform: "mobile",
15276
- catalog: eu,
15277
- catalogVersion: tu
15315
+ catalog: tu,
15316
+ catalogVersion: ru
15278
15317
  };
15279
15318
  }
15280
15319
  export {
15281
- du as ActionCard,
15282
- cu as Anchor,
15283
- pu as Animation,
15284
- uu as Avatar,
15285
- fu as AvatarStack,
15286
- hu as Badge,
15287
- mu as Button,
15288
- eu as CATALOG_NAME,
15289
- tu as CATALOG_VERSION,
15290
- gu as Card,
15291
- yu as Checkbox,
15292
- $u as CheckboxGroup,
15293
- bu as Chip,
15294
- vu as Country,
15295
- Su as Currency,
15296
- wu as Date,
15297
- ku as DateRange,
15298
- Ou as DateTimePicker,
15299
- Cu as Divider,
15300
- Pu as Email,
15301
- _u as ExpansionPanel,
15302
- Vu as FileViewerButton,
15303
- Du as FileViewerPressable,
15304
- Fu as FloatingButton,
15305
- ju as Form,
15306
- Ru as Group,
15307
- Iu as HStack,
15308
- Tu as Hidden,
15309
- Eu as Icon,
15310
- xu as Image,
15311
- Au as InputText,
15312
- Nu as Label,
15313
- zu as List,
15314
- Mu as ListItem,
15315
- Lu as ModalSheet,
15316
- Bu as Notice,
15317
- qu as Number,
15318
- Hu as ObjectFooter,
15319
- Wu as ObjectItem,
15320
- Uu as ObjectListView,
15321
- Gu as ObjectListViewCard,
15322
- Ku as PageCondensedFooter,
15323
- Ju as PageCondensedHeader,
15324
- Yu as PageContent,
15325
- Zu as PageFilterHeader,
15326
- Xu as PageFooter,
15327
- Qu as PageHeader,
15328
- ef as PageModalActionHeader,
15329
- tf as Password,
15330
- rf as Percentage,
15331
- of as Phone,
15332
- nf as Pressable,
15333
- sf as ProgressIndicator,
15334
- af as Radio,
15335
- lf as RadioGroup,
15336
- df as Search,
15337
- cf as SectionHeader,
15338
- pf as Select,
15339
- uf as SelectChips,
15340
- ff as Signature,
15341
- hf as Sin,
15342
- mf as Slider,
15343
- gf as SliderRange,
15344
- yf as SnackBar,
15345
- $f as Spacer,
15346
- bf as Spinner,
15347
- vf as Ssn,
15348
- Sf as Status,
15349
- wf as StatusBar,
15350
- kf as Switch,
15351
- Of as Tabs,
15352
- Cf as Text,
15353
- Pf as Textarea,
15354
- _f as Time,
15355
- Vf as TimeRange,
15356
- Df as Tip,
15357
- Ff as VStack,
15358
- jf as Widget,
15359
- Rf as WorkEmail,
15360
- Nf as currencyFormat,
15361
- zf as currencyGetCurrencyCodeByCountryCode,
15362
- Mf as currencyGetCurrencyNameByCode,
15363
- Lf as currencyGetCurrencySymbol,
15364
- Bf as currencyIsConvertableToCurrency,
15365
- qf as currencyToMoney,
15366
- Hf as dateTimeAdd,
15367
- Wf as dateTimeFormat,
15368
- Xf as getAction,
15369
- Gf as getActions,
15370
- Zf as getComponent,
15371
- Uf as getComponents,
15372
- Jf as getComputedFunctions,
15373
- Yf as getDefs,
15374
- Qf as getFunction,
15375
- Kf as getFunctions,
15376
- Tf as goBack,
15377
- If as navigate,
15378
- Ef as push,
15379
- th as render,
15380
- xf as setState,
15381
- Af as triggerApi,
15382
- eh as validate
15320
+ uu as ActionCard,
15321
+ fu as Anchor,
15322
+ hu as Animation,
15323
+ mu as Avatar,
15324
+ gu as AvatarStack,
15325
+ yu as Badge,
15326
+ bu as Button,
15327
+ tu as CATALOG_NAME,
15328
+ ru as CATALOG_VERSION,
15329
+ $u as Card,
15330
+ vu as Checkbox,
15331
+ Su as CheckboxGroup,
15332
+ wu as Chip,
15333
+ ku as Country,
15334
+ Ou as Currency,
15335
+ Cu as Date,
15336
+ Pu as DateRange,
15337
+ _u as DateTimePicker,
15338
+ Vu as Divider,
15339
+ Du as Email,
15340
+ Fu as ExpansionPanel,
15341
+ ju as FileViewerButton,
15342
+ Ru as FileViewerPressable,
15343
+ Tu as FloatingButton,
15344
+ Iu as Form,
15345
+ Eu as Group,
15346
+ Au as HStack,
15347
+ xu as Hidden,
15348
+ Nu as Icon,
15349
+ zu as Image,
15350
+ Mu as InputText,
15351
+ Lu as Label,
15352
+ Bu as List,
15353
+ qu as ListItem,
15354
+ Hu as ModalSheet,
15355
+ Wu as Notice,
15356
+ Uu as Number,
15357
+ Gu as ObjectFooter,
15358
+ Ku as ObjectItem,
15359
+ Ju as ObjectListView,
15360
+ Yu as ObjectListViewCard,
15361
+ Zu as PageCondensedFooter,
15362
+ Xu as PageCondensedHeader,
15363
+ Qu as PageContent,
15364
+ ef as PageFilterHeader,
15365
+ tf as PageFooter,
15366
+ rf as PageHeader,
15367
+ of as PageModalActionHeader,
15368
+ nf as Password,
15369
+ sf as Percentage,
15370
+ af as Phone,
15371
+ lf as Pressable,
15372
+ df as ProgressIndicator,
15373
+ cf as Radio,
15374
+ pf as RadioGroup,
15375
+ uf as Search,
15376
+ ff as SectionHeader,
15377
+ hf as Select,
15378
+ mf as SelectChips,
15379
+ gf as Signature,
15380
+ yf as Sin,
15381
+ bf as Slider,
15382
+ $f as SliderRange,
15383
+ vf as SnackBar,
15384
+ Sf as Spacer,
15385
+ wf as Spinner,
15386
+ kf as Ssn,
15387
+ Of as Status,
15388
+ Cf as StatusBar,
15389
+ Pf as Switch,
15390
+ _f as Tabs,
15391
+ Vf as Text,
15392
+ Df as Textarea,
15393
+ Ff as Time,
15394
+ jf as TimeRange,
15395
+ Rf as Tip,
15396
+ Tf as VStack,
15397
+ If as Widget,
15398
+ Ef as WorkEmail,
15399
+ xf as copyToClipboard,
15400
+ Bf as currencyFormat,
15401
+ qf as currencyGetCurrencyCodeByCountryCode,
15402
+ Hf as currencyGetCurrencyNameByCode,
15403
+ Wf as currencyGetCurrencySymbol,
15404
+ Uf as currencyIsConvertableToCurrency,
15405
+ Gf as currencyToMoney,
15406
+ Kf as dateTimeAdd,
15407
+ Jf as dateTimeFormat,
15408
+ ih as getAction,
15409
+ Zf as getActions,
15410
+ th as getComponent,
15411
+ rh as getComponentMarkdown,
15412
+ Yf as getComponents,
15413
+ Qf as getComputedFunctions,
15414
+ eh as getDefs,
15415
+ oh as getFunction,
15416
+ Xf as getFunctions,
15417
+ Af as goBack,
15418
+ Nf as navigate,
15419
+ zf as push,
15420
+ sh as render,
15421
+ Mf as setState,
15422
+ Lf as triggerApi,
15423
+ nh as validate
15383
15424
  };
15384
15425
  //# sourceMappingURL=index.js.map