@akad/design-system 0.1.0-beta.3 → 0.1.0-beta.4

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,5 +1,5 @@
1
1
  import { jsx as P, jsxs as ae, Fragment as ws } from "react/jsx-runtime";
2
- import gt, { useMemo as Ke, useState as Z, useRef as zr, useCallback as de, useEffect as $e, createElement as Au } from "react";
2
+ import yt, { useMemo as Ke, useState as Z, useRef as zr, useCallback as de, useEffect as $e, createElement as Au } from "react";
3
3
  var Iu = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
4
  function hn(t) {
5
5
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
@@ -18,7 +18,7 @@ function Du() {
18
18
  if ($a)
19
19
  return ve;
20
20
  $a = 1;
21
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, s = t ? Symbol.for("react.fragment") : 60107, n = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, f = t ? Symbol.for("react.forward_ref") : 60112, p = t ? Symbol.for("react.suspense") : 60113, T = t ? Symbol.for("react.suspense_list") : 60120, S = t ? Symbol.for("react.memo") : 60115, E = t ? Symbol.for("react.lazy") : 60116, k = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, g = t ? Symbol.for("react.responder") : 60118, I = t ? Symbol.for("react.scope") : 60119;
21
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, s = t ? Symbol.for("react.fragment") : 60107, n = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, p = t ? Symbol.for("react.suspense") : 60113, T = t ? Symbol.for("react.suspense_list") : 60120, S = t ? Symbol.for("react.memo") : 60115, E = t ? Symbol.for("react.lazy") : 60116, k = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, g = t ? Symbol.for("react.responder") : 60118, I = t ? Symbol.for("react.scope") : 60119;
22
22
  function D(b) {
23
23
  if (typeof b == "object" && b !== null) {
24
24
  var x = b.$$typeof;
@@ -35,7 +35,7 @@ function Du() {
35
35
  default:
36
36
  switch (b = b && b.$$typeof, b) {
37
37
  case o:
38
- case f:
38
+ case d:
39
39
  case E:
40
40
  case S:
41
41
  case i:
@@ -52,7 +52,7 @@ function Du() {
52
52
  function A(b) {
53
53
  return D(b) === c;
54
54
  }
55
- return ve.AsyncMode = l, ve.ConcurrentMode = c, ve.ContextConsumer = o, ve.ContextProvider = i, ve.Element = e, ve.ForwardRef = f, ve.Fragment = s, ve.Lazy = E, ve.Memo = S, ve.Portal = r, ve.Profiler = a, ve.StrictMode = n, ve.Suspense = p, ve.isAsyncMode = function(b) {
55
+ return ve.AsyncMode = l, ve.ConcurrentMode = c, ve.ContextConsumer = o, ve.ContextProvider = i, ve.Element = e, ve.ForwardRef = d, ve.Fragment = s, ve.Lazy = E, ve.Memo = S, ve.Portal = r, ve.Profiler = a, ve.StrictMode = n, ve.Suspense = p, ve.isAsyncMode = function(b) {
56
56
  return A(b) || D(b) === l;
57
57
  }, ve.isConcurrentMode = A, ve.isContextConsumer = function(b) {
58
58
  return D(b) === o;
@@ -61,7 +61,7 @@ function Du() {
61
61
  }, ve.isElement = function(b) {
62
62
  return typeof b == "object" && b !== null && b.$$typeof === e;
63
63
  }, ve.isForwardRef = function(b) {
64
- return D(b) === f;
64
+ return D(b) === d;
65
65
  }, ve.isFragment = function(b) {
66
66
  return D(b) === s;
67
67
  }, ve.isLazy = function(b) {
@@ -77,7 +77,7 @@ function Du() {
77
77
  }, ve.isSuspense = function(b) {
78
78
  return D(b) === p;
79
79
  }, ve.isValidElementType = function(b) {
80
- return typeof b == "string" || typeof b == "function" || b === s || b === c || b === a || b === n || b === p || b === T || typeof b == "object" && b !== null && (b.$$typeof === E || b.$$typeof === S || b.$$typeof === i || b.$$typeof === o || b.$$typeof === f || b.$$typeof === _ || b.$$typeof === g || b.$$typeof === I || b.$$typeof === k);
80
+ return typeof b == "string" || typeof b == "function" || b === s || b === c || b === a || b === n || b === p || b === T || typeof b == "object" && b !== null && (b.$$typeof === E || b.$$typeof === S || b.$$typeof === i || b.$$typeof === o || b.$$typeof === d || b.$$typeof === _ || b.$$typeof === g || b.$$typeof === I || b.$$typeof === k);
81
81
  }, ve.typeOf = D, ve;
82
82
  }
83
83
  var _e = {};
@@ -92,10 +92,10 @@ var _e = {};
92
92
  var Sa;
93
93
  function Nu() {
94
94
  return Sa || (Sa = 1, process.env.NODE_ENV !== "production" && function() {
95
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, s = t ? Symbol.for("react.fragment") : 60107, n = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, f = t ? Symbol.for("react.forward_ref") : 60112, p = t ? Symbol.for("react.suspense") : 60113, T = t ? Symbol.for("react.suspense_list") : 60120, S = t ? Symbol.for("react.memo") : 60115, E = t ? Symbol.for("react.lazy") : 60116, k = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, g = t ? Symbol.for("react.responder") : 60118, I = t ? Symbol.for("react.scope") : 60119;
95
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, s = t ? Symbol.for("react.fragment") : 60107, n = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, p = t ? Symbol.for("react.suspense") : 60113, T = t ? Symbol.for("react.suspense_list") : 60120, S = t ? Symbol.for("react.memo") : 60115, E = t ? Symbol.for("react.lazy") : 60116, k = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, g = t ? Symbol.for("react.responder") : 60118, I = t ? Symbol.for("react.scope") : 60119;
96
96
  function D(z) {
97
97
  return typeof z == "string" || typeof z == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
98
- z === s || z === c || z === a || z === n || z === p || z === T || typeof z == "object" && z !== null && (z.$$typeof === E || z.$$typeof === S || z.$$typeof === i || z.$$typeof === o || z.$$typeof === f || z.$$typeof === _ || z.$$typeof === g || z.$$typeof === I || z.$$typeof === k);
98
+ z === s || z === c || z === a || z === n || z === p || z === T || typeof z == "object" && z !== null && (z.$$typeof === E || z.$$typeof === S || z.$$typeof === i || z.$$typeof === o || z.$$typeof === d || z.$$typeof === _ || z.$$typeof === g || z.$$typeof === I || z.$$typeof === k);
99
99
  }
100
100
  function A(z) {
101
101
  if (typeof z == "object" && z !== null) {
@@ -115,7 +115,7 @@ function Nu() {
115
115
  var tt = Xe && Xe.$$typeof;
116
116
  switch (tt) {
117
117
  case o:
118
- case f:
118
+ case d:
119
119
  case E:
120
120
  case S:
121
121
  case i:
@@ -129,7 +129,7 @@ function Nu() {
129
129
  }
130
130
  }
131
131
  }
132
- var b = l, x = c, V = o, Q = i, H = e, ce = f, q = s, K = E, se = S, G = r, ge = a, ye = n, be = p, Ne = !1;
132
+ var b = l, x = c, V = o, Q = i, H = e, ce = d, q = s, K = E, se = S, G = r, ge = a, ye = n, be = p, Ne = !1;
133
133
  function je(z) {
134
134
  return Ne || (Ne = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), O(z) || A(z) === l;
135
135
  }
@@ -146,9 +146,9 @@ function Nu() {
146
146
  return typeof z == "object" && z !== null && z.$$typeof === e;
147
147
  }
148
148
  function u(z) {
149
- return A(z) === f;
149
+ return A(z) === d;
150
150
  }
151
- function d(z) {
151
+ function f(z) {
152
152
  return A(z) === s;
153
153
  }
154
154
  function v(z) {
@@ -169,7 +169,7 @@ function Nu() {
169
169
  function ee(z) {
170
170
  return A(z) === p;
171
171
  }
172
- _e.AsyncMode = b, _e.ConcurrentMode = x, _e.ContextConsumer = V, _e.ContextProvider = Q, _e.Element = H, _e.ForwardRef = ce, _e.Fragment = q, _e.Lazy = K, _e.Memo = se, _e.Portal = G, _e.Profiler = ge, _e.StrictMode = ye, _e.Suspense = be, _e.isAsyncMode = je, _e.isConcurrentMode = O, _e.isContextConsumer = y, _e.isContextProvider = R, _e.isElement = C, _e.isForwardRef = u, _e.isFragment = d, _e.isLazy = v, _e.isMemo = N, _e.isPortal = j, _e.isProfiler = B, _e.isStrictMode = L, _e.isSuspense = ee, _e.isValidElementType = D, _e.typeOf = A;
172
+ _e.AsyncMode = b, _e.ConcurrentMode = x, _e.ContextConsumer = V, _e.ContextProvider = Q, _e.Element = H, _e.ForwardRef = ce, _e.Fragment = q, _e.Lazy = K, _e.Memo = se, _e.Portal = G, _e.Profiler = ge, _e.StrictMode = ye, _e.Suspense = be, _e.isAsyncMode = je, _e.isConcurrentMode = O, _e.isContextConsumer = y, _e.isContextProvider = R, _e.isElement = C, _e.isForwardRef = u, _e.isFragment = f, _e.isLazy = v, _e.isMemo = N, _e.isPortal = j, _e.isProfiler = B, _e.isStrictMode = L, _e.isSuspense = ee, _e.isValidElementType = D, _e.typeOf = A;
173
173
  }()), _e;
174
174
  }
175
175
  var Ea;
@@ -201,22 +201,22 @@ function Pu() {
201
201
  return !1;
202
202
  for (var i = {}, o = 0; o < 10; o++)
203
203
  i["_" + String.fromCharCode(o)] = o;
204
- var l = Object.getOwnPropertyNames(i).map(function(f) {
205
- return i[f];
204
+ var l = Object.getOwnPropertyNames(i).map(function(d) {
205
+ return i[d];
206
206
  });
207
207
  if (l.join("") !== "0123456789")
208
208
  return !1;
209
209
  var c = {};
210
- return "abcdefghijklmnopqrst".split("").forEach(function(f) {
211
- c[f] = f;
210
+ return "abcdefghijklmnopqrst".split("").forEach(function(d) {
211
+ c[d] = d;
212
212
  }), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst";
213
213
  } catch {
214
214
  return !1;
215
215
  }
216
216
  }
217
217
  return Ms = n() ? Object.assign : function(a, i) {
218
- for (var o, l = s(a), c, f = 1; f < arguments.length; f++) {
219
- o = Object(arguments[f]);
218
+ for (var o, l = s(a), c, d = 1; d < arguments.length; d++) {
219
+ o = Object(arguments[d]);
220
220
  for (var p in o)
221
221
  e.call(o, p) && (l[p] = o[p]);
222
222
  if (t) {
@@ -260,22 +260,22 @@ function Ru() {
260
260
  }
261
261
  function n(a, i, o, l, c) {
262
262
  if (process.env.NODE_ENV !== "production") {
263
- for (var f in a)
264
- if (s(a, f)) {
263
+ for (var d in a)
264
+ if (s(a, d)) {
265
265
  var p;
266
266
  try {
267
- if (typeof a[f] != "function") {
267
+ if (typeof a[d] != "function") {
268
268
  var T = Error(
269
- (l || "React class") + ": " + o + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
269
+ (l || "React class") + ": " + o + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
270
270
  );
271
271
  throw T.name = "Invariant Violation", T;
272
272
  }
273
- p = a[f](i, f, l, o, null, e);
273
+ p = a[d](i, d, l, o, null, e);
274
274
  } catch (E) {
275
275
  p = E;
276
276
  }
277
277
  if (p && !(p instanceof Error) && t(
278
- (l || "React class") + ": type specification of " + o + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof p + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
278
+ (l || "React class") + ": type specification of " + o + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof p + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
279
279
  ), p instanceof Error && !(p.message in r)) {
280
280
  r[p.message] = !0;
281
281
  var S = c ? c() : "";
@@ -309,9 +309,9 @@ function Fu() {
309
309
  return null;
310
310
  }
311
311
  return Bs = function(o, l) {
312
- var c = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
312
+ var c = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
313
313
  function p(O) {
314
- var y = O && (c && O[c] || O[f]);
314
+ var y = O && (c && O[c] || O[d]);
315
315
  if (typeof y == "function")
316
316
  return y;
317
317
  }
@@ -346,7 +346,7 @@ function Fu() {
346
346
  function _(O) {
347
347
  if (process.env.NODE_ENV !== "production")
348
348
  var y = {}, R = 0;
349
- function C(d, v, N, j, B, L, ee) {
349
+ function C(f, v, N, j, B, L, ee) {
350
350
  if (j = j || T, L = L || N, ee !== r) {
351
351
  if (l) {
352
352
  var z = new Error(
@@ -361,18 +361,18 @@ function Fu() {
361
361
  ), y[he] = !0, R++);
362
362
  }
363
363
  }
364
- return v[N] == null ? d ? v[N] === null ? new k("The " + B + " `" + L + "` is marked as required " + ("in `" + j + "`, but its value is `null`.")) : new k("The " + B + " `" + L + "` is marked as required in " + ("`" + j + "`, but its value is `undefined`.")) : null : O(v, N, j, B, L);
364
+ return v[N] == null ? f ? v[N] === null ? new k("The " + B + " `" + L + "` is marked as required " + ("in `" + j + "`, but its value is `null`.")) : new k("The " + B + " `" + L + "` is marked as required in " + ("`" + j + "`, but its value is `undefined`.")) : null : O(v, N, j, B, L);
365
365
  }
366
366
  var u = C.bind(null, !1);
367
367
  return u.isRequired = C.bind(null, !0), u;
368
368
  }
369
369
  function g(O) {
370
- function y(R, C, u, d, v, N) {
370
+ function y(R, C, u, f, v, N) {
371
371
  var j = R[C], B = ye(j);
372
372
  if (B !== O) {
373
373
  var L = be(j);
374
374
  return new k(
375
- "Invalid " + d + " `" + v + "` of type " + ("`" + L + "` supplied to `" + u + "`, expected ") + ("`" + O + "`."),
375
+ "Invalid " + f + " `" + v + "` of type " + ("`" + L + "` supplied to `" + u + "`, expected ") + ("`" + O + "`."),
376
376
  { expectedType: O }
377
377
  );
378
378
  }
@@ -384,16 +384,16 @@ function Fu() {
384
384
  return _(i);
385
385
  }
386
386
  function D(O) {
387
- function y(R, C, u, d, v) {
387
+ function y(R, C, u, f, v) {
388
388
  if (typeof O != "function")
389
389
  return new k("Property `" + v + "` of component `" + u + "` has invalid PropType notation inside arrayOf.");
390
390
  var N = R[C];
391
391
  if (!Array.isArray(N)) {
392
392
  var j = ye(N);
393
- return new k("Invalid " + d + " `" + v + "` of type " + ("`" + j + "` supplied to `" + u + "`, expected an array."));
393
+ return new k("Invalid " + f + " `" + v + "` of type " + ("`" + j + "` supplied to `" + u + "`, expected an array."));
394
394
  }
395
395
  for (var B = 0; B < N.length; B++) {
396
- var L = O(N, B, u, d, v + "[" + B + "]", r);
396
+ var L = O(N, B, u, f, v + "[" + B + "]", r);
397
397
  if (L instanceof Error)
398
398
  return L;
399
399
  }
@@ -402,32 +402,32 @@ function Fu() {
402
402
  return _(y);
403
403
  }
404
404
  function A() {
405
- function O(y, R, C, u, d) {
405
+ function O(y, R, C, u, f) {
406
406
  var v = y[R];
407
407
  if (!o(v)) {
408
408
  var N = ye(v);
409
- return new k("Invalid " + u + " `" + d + "` of type " + ("`" + N + "` supplied to `" + C + "`, expected a single ReactElement."));
409
+ return new k("Invalid " + u + " `" + f + "` of type " + ("`" + N + "` supplied to `" + C + "`, expected a single ReactElement."));
410
410
  }
411
411
  return null;
412
412
  }
413
413
  return _(O);
414
414
  }
415
415
  function b() {
416
- function O(y, R, C, u, d) {
416
+ function O(y, R, C, u, f) {
417
417
  var v = y[R];
418
418
  if (!t.isValidElementType(v)) {
419
419
  var N = ye(v);
420
- return new k("Invalid " + u + " `" + d + "` of type " + ("`" + N + "` supplied to `" + C + "`, expected a single ReactElement type."));
420
+ return new k("Invalid " + u + " `" + f + "` of type " + ("`" + N + "` supplied to `" + C + "`, expected a single ReactElement type."));
421
421
  }
422
422
  return null;
423
423
  }
424
424
  return _(O);
425
425
  }
426
426
  function x(O) {
427
- function y(R, C, u, d, v) {
427
+ function y(R, C, u, f, v) {
428
428
  if (!(R[C] instanceof O)) {
429
429
  var N = O.name || T, j = je(R[C]);
430
- return new k("Invalid " + d + " `" + v + "` of type " + ("`" + j + "` supplied to `" + u + "`, expected ") + ("instance of `" + N + "`."));
430
+ return new k("Invalid " + f + " `" + v + "` of type " + ("`" + j + "` supplied to `" + u + "`, expected ") + ("instance of `" + N + "`."));
431
431
  }
432
432
  return null;
433
433
  }
@@ -438,7 +438,7 @@ function Fu() {
438
438
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
439
439
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
440
440
  ) : a("Invalid argument supplied to oneOf, expected an array.")), i;
441
- function y(R, C, u, d, v) {
441
+ function y(R, C, u, f, v) {
442
442
  for (var N = R[C], j = 0; j < O.length; j++)
443
443
  if (E(N, O[j]))
444
444
  return null;
@@ -446,20 +446,20 @@ function Fu() {
446
446
  var he = be(z);
447
447
  return he === "symbol" ? String(z) : z;
448
448
  });
449
- return new k("Invalid " + d + " `" + v + "` of value `" + String(N) + "` " + ("supplied to `" + u + "`, expected one of " + B + "."));
449
+ return new k("Invalid " + f + " `" + v + "` of value `" + String(N) + "` " + ("supplied to `" + u + "`, expected one of " + B + "."));
450
450
  }
451
451
  return _(y);
452
452
  }
453
453
  function Q(O) {
454
- function y(R, C, u, d, v) {
454
+ function y(R, C, u, f, v) {
455
455
  if (typeof O != "function")
456
456
  return new k("Property `" + v + "` of component `" + u + "` has invalid PropType notation inside objectOf.");
457
457
  var N = R[C], j = ye(N);
458
458
  if (j !== "object")
459
- return new k("Invalid " + d + " `" + v + "` of type " + ("`" + j + "` supplied to `" + u + "`, expected an object."));
459
+ return new k("Invalid " + f + " `" + v + "` of type " + ("`" + j + "` supplied to `" + u + "`, expected an object."));
460
460
  for (var B in N)
461
461
  if (s(N, B)) {
462
- var L = O(N, B, u, d, v + "." + B, r);
462
+ var L = O(N, B, u, f, v + "." + B, r);
463
463
  if (L instanceof Error)
464
464
  return L;
465
465
  }
@@ -477,9 +477,9 @@ function Fu() {
477
477
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Ne(R) + " at index " + y + "."
478
478
  ), i;
479
479
  }
480
- function C(u, d, v, N, j) {
480
+ function C(u, f, v, N, j) {
481
481
  for (var B = [], L = 0; L < O.length; L++) {
482
- var ee = O[L], z = ee(u, d, v, N, j, r);
482
+ var ee = O[L], z = ee(u, f, v, N, j, r);
483
483
  if (z == null)
484
484
  return null;
485
485
  z.data && s(z.data, "expectedType") && B.push(z.data.expectedType);
@@ -490,8 +490,8 @@ function Fu() {
490
490
  return _(C);
491
491
  }
492
492
  function ce() {
493
- function O(y, R, C, u, d) {
494
- return G(y[R]) ? null : new k("Invalid " + u + " `" + d + "` supplied to " + ("`" + C + "`, expected a ReactNode."));
493
+ function O(y, R, C, u, f) {
494
+ return G(y[R]) ? null : new k("Invalid " + u + " `" + f + "` supplied to " + ("`" + C + "`, expected a ReactNode."));
495
495
  }
496
496
  return _(O);
497
497
  }
@@ -501,15 +501,15 @@ function Fu() {
501
501
  );
502
502
  }
503
503
  function K(O) {
504
- function y(R, C, u, d, v) {
504
+ function y(R, C, u, f, v) {
505
505
  var N = R[C], j = ye(N);
506
506
  if (j !== "object")
507
- return new k("Invalid " + d + " `" + v + "` of type `" + j + "` " + ("supplied to `" + u + "`, expected `object`."));
507
+ return new k("Invalid " + f + " `" + v + "` of type `" + j + "` " + ("supplied to `" + u + "`, expected `object`."));
508
508
  for (var B in O) {
509
509
  var L = O[B];
510
510
  if (typeof L != "function")
511
- return q(u, d, v, B, be(L));
512
- var ee = L(N, B, u, d, v + "." + B, r);
511
+ return q(u, f, v, B, be(L));
512
+ var ee = L(N, B, u, f, v + "." + B, r);
513
513
  if (ee)
514
514
  return ee;
515
515
  }
@@ -518,21 +518,21 @@ function Fu() {
518
518
  return _(y);
519
519
  }
520
520
  function se(O) {
521
- function y(R, C, u, d, v) {
521
+ function y(R, C, u, f, v) {
522
522
  var N = R[C], j = ye(N);
523
523
  if (j !== "object")
524
- return new k("Invalid " + d + " `" + v + "` of type `" + j + "` " + ("supplied to `" + u + "`, expected `object`."));
524
+ return new k("Invalid " + f + " `" + v + "` of type `" + j + "` " + ("supplied to `" + u + "`, expected `object`."));
525
525
  var B = e({}, R[C], O);
526
526
  for (var L in B) {
527
527
  var ee = O[L];
528
528
  if (s(O, L) && typeof ee != "function")
529
- return q(u, d, v, L, be(ee));
529
+ return q(u, f, v, L, be(ee));
530
530
  if (!ee)
531
531
  return new k(
532
- "Invalid " + d + " `" + v + "` key `" + L + "` supplied to `" + u + "`.\nBad object: " + JSON.stringify(R[C], null, " ") + `
532
+ "Invalid " + f + " `" + v + "` key `" + L + "` supplied to `" + u + "`.\nBad object: " + JSON.stringify(R[C], null, " ") + `
533
533
  Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
534
534
  );
535
- var z = ee(N, L, u, d, v + "." + L, r);
535
+ var z = ee(N, L, u, f, v + "." + L, r);
536
536
  if (z)
537
537
  return z;
538
538
  }
@@ -623,7 +623,7 @@ function Mu() {
623
623
  function r() {
624
624
  }
625
625
  return r.resetWarningCache = e, Ls = function() {
626
- function s(i, o, l, c, f, p) {
626
+ function s(i, o, l, c, d, p) {
627
627
  if (p !== t) {
628
628
  var T = new Error(
629
629
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
@@ -796,7 +796,7 @@ const h = /* @__PURE__ */ hn(Vu), Ia = {
796
796
  Regular: "regular",
797
797
  Light: "light",
798
798
  Extralight: "extralight"
799
- }, nt = {
799
+ }, at = {
800
800
  name: "Icon",
801
801
  class: "ds-icon",
802
802
  props: {
@@ -845,43 +845,43 @@ const h = /* @__PURE__ */ hn(Vu), Ia = {
845
845
  };
846
846
  var Ji = /* @__PURE__ */ ((t) => (t[t.bold = 700] = "bold", t[t.semibold = 600] = "semibold", t[t.medium = 500] = "medium", t[t.regular = 400] = "regular", t[t.light = 300] = "light", t[t.extralight = 200] = "extralight", t))(Ji || {});
847
847
  const Ae = ({
848
- image: t = nt.props.image.default,
849
- color: e = nt.props.color.default,
848
+ image: t = at.props.image.default,
849
+ color: e = at.props.color.default,
850
850
  className: r,
851
- size: s = nt.props.size.default,
852
- fill: n = nt.props.fill.default,
853
- weight: a = nt.props.weight.default,
851
+ size: s = at.props.size.default,
852
+ fill: n = at.props.fill.default,
853
+ weight: a = at.props.weight.default,
854
854
  testId: i = "ds-icon-test",
855
- onClick: o = nt.props.onClick.default
855
+ onClick: o = at.props.onClick.default
856
856
  }) => {
857
- const l = "material-symbols-rounded", c = e && nt.props.color.options.find((p) => p === e) && `${nt.class}__color--${e}`, f = Ke(() => ({
857
+ const l = "material-symbols-rounded", c = e && at.props.color.options.find((p) => p === e) && `${at.class}__color--${e}`, d = Ke(() => ({
858
858
  fontVariationSettings: `'FILL' ${n ? 1 : 0}, 'GRAD' 0,'wght' ${Ji[a]}, 'opsz' 48`
859
859
  }), [a, n]);
860
860
  return /* @__PURE__ */ P(
861
861
  "i",
862
862
  {
863
863
  className: [
864
- `${nt.class}--${s}`,
865
- nt.class,
864
+ `${at.class}--${s}`,
865
+ at.class,
866
866
  l,
867
867
  c,
868
868
  r && r
869
869
  ].filter((p) => p).join(" "),
870
870
  "data-testid": i,
871
871
  onClick: o,
872
- style: f,
872
+ style: d,
873
873
  translate: "no",
874
874
  children: t
875
875
  }
876
876
  );
877
877
  };
878
878
  Ae.propTypes = {
879
- color: h.oneOf(nt.props.color.options),
879
+ color: h.oneOf(at.props.color.options),
880
880
  image: h.string,
881
881
  fontVariationSettings: h.object,
882
- size: h.oneOf(nt.props.size.options),
882
+ size: h.oneOf(at.props.size.options),
883
883
  fill: h.bool,
884
- weight: h.oneOf(nt.props.weight.options),
884
+ weight: h.oneOf(at.props.weight.options),
885
885
  onClick: h.func
886
886
  };
887
887
  Ae.displayName = "DsIcon";
@@ -896,12 +896,12 @@ const gs = ({
896
896
  testId: o = i || "ds-button-test",
897
897
  elevation: l,
898
898
  variant: c = Se.props.variant.default,
899
- color: f = Se.props.color.default,
899
+ color: d = Se.props.color.default,
900
900
  iconFill: p = Se.props.iconFill.default,
901
901
  iconPosition: T = Se.props.iconPosition.default,
902
902
  fullSize: S = Se.props.fullSize.default
903
903
  }) => {
904
- const E = s && Se.props.size.options.find((x) => x === s) ? `${Se.class}--${s}` : `${Se.class}__${Se.props.size.default}`, k = n && `${Se.class}--disabled`, _ = `${Se.class}__${f}--${c}`, g = l && `${Se.class}--elevation-${l}`, I = a && `${Se.class}--with-icon`, D = S ? `${Se.class}--full-size` : "", A = T === "right" ? `${Se.class}__icon` : `${Se.class}__icon--left`, b = T === "right" ? `${Se.class}__text` : `${Se.class}__text--reversed`;
904
+ const E = s && Se.props.size.options.find((x) => x === s) ? `${Se.class}--${s}` : `${Se.class}__${Se.props.size.default}`, k = n && `${Se.class}--disabled`, _ = `${Se.class}__${d}--${c}`, g = l && `${Se.class}--elevation-${l}`, I = a && `${Se.class}--with-icon`, D = S ? `${Se.class}--full-size` : "", A = T === "right" ? `${Se.class}__icon` : `${Se.class}__icon--left`, b = T === "right" ? `${Se.class}__text` : `${Se.class}__text--reversed`;
905
905
  return /* @__PURE__ */ P(
906
906
  "button",
907
907
  {
@@ -917,6 +917,7 @@ const gs = ({
917
917
  e && e
918
918
  ].filter((x) => x).join(" "),
919
919
  "data-testid": o,
920
+ disabled: n,
920
921
  id: i,
921
922
  onClick: n ? () => {
922
923
  } : r,
@@ -1007,7 +1008,7 @@ const ts = {
1007
1008
  Info: "info",
1008
1009
  InfoLight: "info-light",
1009
1010
  InfoLighter: "info-lighter"
1010
- }, kt = {
1011
+ }, mt = {
1011
1012
  name: "Card",
1012
1013
  class: "ds-card",
1013
1014
  props: {
@@ -1025,34 +1026,48 @@ const ts = {
1025
1026
  type: Number,
1026
1027
  default: 0,
1027
1028
  options: [0, 1, 2, 3, 4]
1029
+ },
1030
+ id: {
1031
+ type: String,
1032
+ default: ""
1033
+ },
1034
+ testId: {
1035
+ type: String,
1036
+ default: "ds-card"
1028
1037
  }
1029
1038
  }
1030
1039
  }, Qi = ({
1031
- children: t,
1032
- className: e,
1033
- elevation: r = kt.props.elevation.default,
1034
- backgroundColor: s = kt.props.backgroundColor.default,
1035
- borderColor: n = kt.props.borderColor.default
1040
+ id: t,
1041
+ testId: e = mt.props.testId.default,
1042
+ children: r,
1043
+ className: s,
1044
+ elevation: n = mt.props.elevation.default,
1045
+ backgroundColor: a = mt.props.backgroundColor.default,
1046
+ borderColor: i = mt.props.borderColor.default
1036
1047
  }) => {
1037
- const a = r && `${kt.class}--elevation-${r}`, i = n && `${kt.class}--border-${n}`, o = s && `${kt.class}--${s}`;
1048
+ const o = n && `${mt.class}--elevation-${n}`, l = i && `${mt.class}--border-${i}`, c = a && `${mt.class}--${a}`;
1038
1049
  return /* @__PURE__ */ P(
1039
1050
  "div",
1040
1051
  {
1041
1052
  className: [
1042
- kt.class,
1043
- e,
1044
- a,
1045
- i,
1046
- o
1047
- ].filter((l) => l).join(" "),
1048
- children: t
1053
+ mt.class,
1054
+ s,
1055
+ o,
1056
+ l,
1057
+ c
1058
+ ].filter((d) => d).join(" "),
1059
+ "data-testid": e,
1060
+ id: t,
1061
+ children: r
1049
1062
  }
1050
1063
  );
1051
1064
  };
1052
1065
  Qi.propTypes = {
1053
- backgroundColor: h.oneOf(kt.props.backgroundColor.options),
1054
- borderColor: h.oneOf(kt.props.borderColor.options),
1055
- elevation: h.oneOf(kt.props.elevation.options)
1066
+ id: h.string,
1067
+ testId: h.string,
1068
+ backgroundColor: h.oneOf(mt.props.backgroundColor.options),
1069
+ borderColor: h.oneOf(mt.props.borderColor.options),
1070
+ elevation: h.oneOf(mt.props.elevation.options)
1056
1071
  };
1057
1072
  Qi.displayName = "DsCard";
1058
1073
  const st = {
@@ -1088,7 +1103,7 @@ const st = {
1088
1103
  default: () => ({})
1089
1104
  }
1090
1105
  }
1091
- }, eo = gt.forwardRef(
1106
+ }, eo = yt.forwardRef(
1092
1107
  ({
1093
1108
  id: t,
1094
1109
  className: e,
@@ -1100,7 +1115,7 @@ const st = {
1100
1115
  disabled: o = st.props.checked.default,
1101
1116
  onChangeHandler: l
1102
1117
  }, c) => {
1103
- const f = i || !1, [p, T] = Z(f), S = {
1118
+ const d = i || !1, [p, T] = Z(d), S = {
1104
1119
  image: p ? "check_box" : "check_box_outline_blank",
1105
1120
  class: p ? `${st.class}__icon--checked` : `${st.class}__icon--unchecked`
1106
1121
  }, E = o && `${st.class}--disabled`, k = (_) => {
@@ -2008,13 +2023,13 @@ class We {
2008
2023
  const l = this.state;
2009
2024
  if (this.overwrite === !0) {
2010
2025
  i = s.state;
2011
- for (let f = 0; f < a.rawInserted.length; ++f)
2026
+ for (let d = 0; d < a.rawInserted.length; ++d)
2012
2027
  s.unshift(this.displayValue.length - a.tailShift);
2013
2028
  }
2014
2029
  let c = this.appendTail(s);
2015
2030
  if (o = c.rawInserted.length === s.toString().length, !(o && c.inserted) && this.overwrite === "shift") {
2016
2031
  this.state = l, i = s.state;
2017
- for (let f = 0; f < a.rawInserted.length; ++f)
2032
+ for (let d = 0; d < a.rawInserted.length; ++d)
2018
2033
  s.shift();
2019
2034
  c = this.appendTail(s), o = c.rawInserted.length === s.toString().length;
2020
2035
  }
@@ -2094,9 +2109,9 @@ class We {
2094
2109
  l && (n = Lu(n), c = this.extractInput(0, i, {
2095
2110
  raw: !0
2096
2111
  }));
2097
- let f = e;
2112
+ let d = e;
2098
2113
  const p = new ue();
2099
- if (n !== X.NONE && (f = this.nearestInputPos(e, r > 1 && e !== 0 && !l ? X.NONE : n), p.tailShift = f - e), p.aggregate(this.remove(f)), l && n !== X.NONE && c === this.rawInputValue)
2114
+ if (n !== X.NONE && (d = this.nearestInputPos(e, r > 1 && e !== 0 && !l ? X.NONE : n), p.tailShift = d - e), p.aggregate(this.remove(d)), l && n !== X.NONE && c === this.rawInputValue)
2100
2115
  if (n === X.FORCE_LEFT) {
2101
2116
  let T;
2102
2117
  for (; c === this.rawInputValue && (T = this.displayValue.length); )
@@ -2599,9 +2614,9 @@ class Ye extends We {
2599
2614
  let s = !1, n = !1;
2600
2615
  for (let a = 0; a < r.length; ++a) {
2601
2616
  if (this.blocks) {
2602
- const c = r.slice(a), f = Object.keys(this.blocks).filter((T) => c.indexOf(T) === 0);
2603
- f.sort((T, S) => S.length - T.length);
2604
- const p = f[0];
2617
+ const c = r.slice(a), d = Object.keys(this.blocks).filter((T) => c.indexOf(T) === 0);
2618
+ d.sort((T, S) => S.length - T.length);
2619
+ const p = d[0];
2605
2620
  if (p) {
2606
2621
  const {
2607
2622
  expose: T,
@@ -3101,7 +3116,7 @@ class Os extends We {
3101
3116
  }
3102
3117
  _applyDispatch(e, r, s) {
3103
3118
  e === void 0 && (e = ""), r === void 0 && (r = {}), s === void 0 && (s = "");
3104
- const n = r.tail && r._beforeTailState != null ? r._beforeTailState._value : this.value, a = this.rawInputValue, i = r.tail && r._beforeTailState != null ? r._beforeTailState._rawInputValue : a, o = a.slice(i.length), l = this.currentMask, c = new ue(), f = l == null ? void 0 : l.state;
3119
+ const n = r.tail && r._beforeTailState != null ? r._beforeTailState._value : this.value, a = this.rawInputValue, i = r.tail && r._beforeTailState != null ? r._beforeTailState._rawInputValue : a, o = a.slice(i.length), l = this.currentMask, c = new ue(), d = l == null ? void 0 : l.state;
3105
3120
  return this.currentMask = this.doDispatch(e, {
3106
3121
  ...r
3107
3122
  }, s), this.currentMask && (this.currentMask !== l ? (this.currentMask.reset(), i && (this.currentMask.append(i, {
@@ -3109,7 +3124,7 @@ class Os extends We {
3109
3124
  }), c.tailShift = this.currentMask.value.length - n.length), o && (c.tailShift += this.currentMask.append(o, {
3110
3125
  raw: !0,
3111
3126
  tail: !0
3112
- }).tailShift)) : f && (this.currentMask.state = f)), c;
3127
+ }).tailShift)) : d && (this.currentMask.state = d)), c;
3113
3128
  }
3114
3129
  _appendPlaceholder() {
3115
3130
  const e = this._applyDispatch();
@@ -3362,7 +3377,7 @@ class Wu extends We {
3362
3377
  }
3363
3378
  te.MaskedFunction = Wu;
3364
3379
  var oo;
3365
- class at extends We {
3380
+ class it extends We {
3366
3381
  /** Single char */
3367
3382
  /** Single char */
3368
3383
  /** Array of single chars */
@@ -3379,7 +3394,7 @@ class at extends We {
3379
3394
  /** Parse string to get typed value */
3380
3395
  constructor(e) {
3381
3396
  super({
3382
- ...at.DEFAULTS,
3397
+ ...it.DEFAULTS,
3383
3398
  ...e
3384
3399
  });
3385
3400
  }
@@ -3436,7 +3451,7 @@ class at extends We {
3436
3451
  let o = !isNaN(i), l = !1;
3437
3452
  if (o) {
3438
3453
  let T;
3439
- this.min != null && this.min < 0 && this.number < this.min && (T = this.min), this.max != null && this.max > 0 && this.number > this.max && (T = this.max), T != null && (this.autofix ? (this._value = this.format(T, this).replace(at.UNMASKED_RADIX, this.radix), l || (l = a === this._value && !r.tail)) : o = !1), o && (o = !!this._value.match(this._numberRegExp));
3454
+ this.min != null && this.min < 0 && this.number < this.min && (T = this.min), this.max != null && this.max > 0 && this.number > this.max && (T = this.max), T != null && (this.autofix ? (this._value = this.format(T, this).replace(it.UNMASKED_RADIX, this.radix), l || (l = a === this._value && !r.tail)) : o = !1), o && (o = !!this._value.match(this._numberRegExp));
3440
3455
  }
3441
3456
  let c;
3442
3457
  o ? c = new ue({
@@ -3444,7 +3459,7 @@ class at extends We {
3444
3459
  rawInserted: l ? "" : e,
3445
3460
  skip: l
3446
3461
  }) : (this._value = a, c = new ue()), this._value = this._insertThousandsSeparators(this._value);
3447
- const f = r.tail && r._beforeTailState ? r._beforeTailState._value : this._value, p = this._separatorsCountFromSlice(f);
3462
+ const d = r.tail && r._beforeTailState ? r._beforeTailState._value : this._value, p = this._separatorsCountFromSlice(d);
3448
3463
  return c.tailShift += (p - n) * this.thousandsSeparator.length, c;
3449
3464
  }
3450
3465
  _findSeparatorAround(e) {
@@ -3516,11 +3531,11 @@ class at extends We {
3516
3531
  }
3517
3532
  doSkipInvalid(e, r, s) {
3518
3533
  r === void 0 && (r = {});
3519
- const n = this.scale === 0 && e !== this.thousandsSeparator && (e === this.radix || e === at.UNMASKED_RADIX || this.mapToRadix.includes(e));
3534
+ const n = this.scale === 0 && e !== this.thousandsSeparator && (e === this.radix || e === it.UNMASKED_RADIX || this.mapToRadix.includes(e));
3520
3535
  return super.doSkipInvalid(e, r, s) && !n;
3521
3536
  }
3522
3537
  get unmaskedValue() {
3523
- return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix, at.UNMASKED_RADIX);
3538
+ return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix, it.UNMASKED_RADIX);
3524
3539
  }
3525
3540
  set unmaskedValue(e) {
3526
3541
  super.unmaskedValue = e;
@@ -3529,7 +3544,7 @@ class at extends We {
3529
3544
  return this.parse(this.unmaskedValue, this);
3530
3545
  }
3531
3546
  set typedValue(e) {
3532
- this.rawInputValue = this.format(e, this).replace(at.UNMASKED_RADIX, this.radix);
3547
+ this.rawInputValue = this.format(e, this).replace(it.UNMASKED_RADIX, this.radix);
3533
3548
  }
3534
3549
  /** Parsed Number */
3535
3550
  get number() {
@@ -3545,13 +3560,13 @@ class at extends We {
3545
3560
  return this.min != null && this.min > 0 || this.max != null && this.max > 0;
3546
3561
  }
3547
3562
  typedValueEquals(e) {
3548
- return (super.typedValueEquals(e) || at.EMPTY_VALUES.includes(e) && at.EMPTY_VALUES.includes(this.typedValue)) && !(e === 0 && this.value === "");
3563
+ return (super.typedValueEquals(e) || it.EMPTY_VALUES.includes(e) && it.EMPTY_VALUES.includes(this.typedValue)) && !(e === 0 && this.value === "");
3549
3564
  }
3550
3565
  }
3551
- oo = at;
3552
- at.UNMASKED_RADIX = ".";
3553
- at.EMPTY_VALUES = [...We.EMPTY_VALUES, 0];
3554
- at.DEFAULTS = {
3566
+ oo = it;
3567
+ it.UNMASKED_RADIX = ".";
3568
+ it.EMPTY_VALUES = [...We.EMPTY_VALUES, 0];
3569
+ it.DEFAULTS = {
3555
3570
  ...We.DEFAULTS,
3556
3571
  mask: Number,
3557
3572
  radix: ",",
@@ -3568,7 +3583,7 @@ at.DEFAULTS = {
3568
3583
  maximumFractionDigits: 20
3569
3584
  })
3570
3585
  };
3571
- te.MaskedNumber = at;
3586
+ te.MaskedNumber = it;
3572
3587
  const tn = {
3573
3588
  MASKED: "value",
3574
3589
  UNMASKED: "unmaskedValue",
@@ -3631,10 +3646,10 @@ class Xu extends Ye {
3631
3646
  r === void 0 && (r = {});
3632
3647
  const s = new ue();
3633
3648
  for (
3634
- let l = (n = (a = this._mapPosToBlock(this.displayValue.length)) == null ? void 0 : a.index) != null ? n : Math.max(this._blocks.length - 1, 0), c, f;
3649
+ let l = (n = (a = this._mapPosToBlock(this.displayValue.length)) == null ? void 0 : a.index) != null ? n : Math.max(this._blocks.length - 1, 0), c, d;
3635
3650
  // try to get a block or
3636
3651
  // try to allocate a new block if not allocated already
3637
- c = (i = this._blocks[l]) != null ? i : f = !f && this._allocateBlock(l);
3652
+ c = (i = this._blocks[l]) != null ? i : d = !d && this._allocateBlock(l);
3638
3653
  ++l
3639
3654
  ) {
3640
3655
  var n, a, i, o;
@@ -3642,7 +3657,7 @@ class Xu extends Ye {
3642
3657
  ...r,
3643
3658
  _beforeTailState: (o = r._beforeTailState) == null || (o = o._blocks) == null ? void 0 : o[l]
3644
3659
  });
3645
- if (p.skip && f) {
3660
+ if (p.skip && d) {
3646
3661
  this._blocks.pop(), this.mask = this.mask.slice(1);
3647
3662
  break;
3648
3663
  }
@@ -3735,7 +3750,7 @@ const lo = {
3735
3750
  }, co = Object.keys(lo).filter((t) => t !== "value"), Ju = ["value", "unmask", "onAccept", "onComplete", "inputRef"], Zu = co.filter((t) => Ju.indexOf(t) < 0);
3736
3751
  function Qu(t) {
3737
3752
  var e;
3738
- const r = (e = class extends gt.Component {
3753
+ const r = (e = class extends yt.Component {
3739
3754
  constructor(a) {
3740
3755
  super(a), this._inputRef = this._inputRef.bind(this);
3741
3756
  }
@@ -3792,13 +3807,13 @@ function Qu(t) {
3792
3807
  this.props.onComplete && this.maskRef && this.props.onComplete(this.maskValue, this.maskRef, a);
3793
3808
  }
3794
3809
  render() {
3795
- return gt.createElement(t, {
3810
+ return yt.createElement(t, {
3796
3811
  ...this._extractNonMaskProps(this.props),
3797
3812
  inputRef: this._inputRef
3798
3813
  });
3799
3814
  }
3800
3815
  }, e.displayName = void 0, e.propTypes = void 0, e), s = t.displayName || t.name || "Component";
3801
- return r.displayName = "IMask(" + s + ")", r.propTypes = lo, gt.forwardRef((n, a) => gt.createElement(r, {
3816
+ return r.displayName = "IMask(" + s + ")", r.propTypes = lo, yt.forwardRef((n, a) => yt.createElement(r, {
3802
3817
  ...n,
3803
3818
  ref: a
3804
3819
  }));
@@ -3808,15 +3823,15 @@ const el = Qu((t) => {
3808
3823
  inputRef: e,
3809
3824
  ...r
3810
3825
  } = t;
3811
- return gt.createElement("input", {
3826
+ return yt.createElement("input", {
3812
3827
  ...r,
3813
3828
  ref: e
3814
3829
  });
3815
- }), tl = (t, e) => gt.createElement(el, {
3830
+ }), tl = (t, e) => yt.createElement(el, {
3816
3831
  ...t,
3817
3832
  ref: e
3818
3833
  });
3819
- gt.forwardRef(tl);
3834
+ yt.forwardRef(tl);
3820
3835
  function rl(t, e) {
3821
3836
  let {
3822
3837
  onAccept: r,
@@ -3826,12 +3841,12 @@ function rl(t, e) {
3826
3841
  defaultUnmaskedValue: i,
3827
3842
  defaultTypedValue: o
3828
3843
  } = e === void 0 ? {} : e;
3829
- const l = zr(null), [c, f] = Z({}), [p, T] = Z(""), [S, E] = Z(""), [k, _] = Z(), g = de(() => {
3844
+ const l = zr(null), [c, d] = Z({}), [p, T] = Z(""), [S, E] = Z(""), [k, _] = Z(), g = de(() => {
3830
3845
  var b;
3831
3846
  (b = l.current) == null || b.destroy(), l.current = null;
3832
3847
  }, []), I = de(() => {
3833
3848
  const b = l.current;
3834
- b && (f({
3849
+ b && (d({
3835
3850
  value: b.value,
3836
3851
  unmaskedValue: b.unmaskedValue,
3837
3852
  typedValue: b.typedValue
@@ -3845,19 +3860,19 @@ function rl(t, e) {
3845
3860
  value: b,
3846
3861
  ...x
3847
3862
  } = c, V = l.current;
3848
- !V || p === void 0 || (b !== p && (V.value = p, V.value !== p && D()), f(x));
3863
+ !V || p === void 0 || (b !== p && (V.value = p, V.value !== p && D()), d(x));
3849
3864
  }, [p]), $e(() => {
3850
3865
  const {
3851
3866
  unmaskedValue: b,
3852
3867
  ...x
3853
3868
  } = c, V = l.current;
3854
- !V || S === void 0 || (b !== S && (V.unmaskedValue = S, V.unmaskedValue !== S && D()), f(x));
3869
+ !V || S === void 0 || (b !== S && (V.unmaskedValue = S, V.unmaskedValue !== S && D()), d(x));
3855
3870
  }, [S]), $e(() => {
3856
3871
  const {
3857
3872
  typedValue: b,
3858
3873
  ...x
3859
3874
  } = c, V = l.current;
3860
- !V || k === void 0 || (b !== k && (V.typedValue = k, V.masked.typedValueEquals(k) || D()), f(x));
3875
+ !V || k === void 0 || (b !== k && (V.typedValue = k, V.masked.typedValueEquals(k) || D()), d(x));
3861
3876
  }, [k]), $e(() => {
3862
3877
  const b = n.current;
3863
3878
  if (!b || !(t != null && t.mask))
@@ -4073,7 +4088,7 @@ const Ua = {
4073
4088
  }) => {
4074
4089
  const a = zr(null), i = zr(null), [o, l] = Z(!1), c = e && Nt.props.position.options.find(
4075
4090
  (b) => b === e
4076
- ) && `${Nt.class}--${e}`, f = r && Nt.props.placement.options.find(
4091
+ ) && `${Nt.class}--${e}`, d = r && Nt.props.placement.options.find(
4077
4092
  (b) => b === r
4078
4093
  ) && `${Nt.class}--${r}`, [p, T] = Z(0), [S, E] = Z(0), [k, _] = Z(0), [g, I] = Z(0);
4079
4094
  let D;
@@ -4146,7 +4161,7 @@ const Ua = {
4146
4161
  o && /* @__PURE__ */ P(
4147
4162
  "span",
4148
4163
  {
4149
- className: [c, f].filter((b) => b).join(" "),
4164
+ className: [c, d].filter((b) => b).join(" "),
4150
4165
  children: /* @__PURE__ */ P(
4151
4166
  "span",
4152
4167
  {
@@ -4168,7 +4183,7 @@ Sr.propTypes = {
4168
4183
  text: h.oneOfType([h.string, h.node])
4169
4184
  };
4170
4185
  Sr.displayName = "DsTooltip";
4171
- const Ur = gt.forwardRef(
4186
+ const Ur = yt.forwardRef(
4172
4187
  ({
4173
4188
  name: t,
4174
4189
  testId: e = t || "ds-input-test",
@@ -4180,7 +4195,7 @@ const Ur = gt.forwardRef(
4180
4195
  value: o,
4181
4196
  min: l,
4182
4197
  max: c,
4183
- tooltip: f = Ie.props.tooltip.default,
4198
+ tooltip: d = Ie.props.tooltip.default,
4184
4199
  tooltipPosition: p = Ie.props.tooltipPosition.default,
4185
4200
  tooltipPlacement: T = Ie.props.tooltipPlacement.default,
4186
4201
  icon: S = Ie.props.icon.default,
@@ -4196,7 +4211,7 @@ const Ur = gt.forwardRef(
4196
4211
  onKeyDownHandler: V,
4197
4212
  onFocusHandler: Q
4198
4213
  }, H) => {
4199
- const [ce, q] = Z(!1), [K, se] = Z(Math.random()), [G, ge] = Z(!1), [ye, be] = Z(!1), Ne = !!b && !!A, je = (ie, vt, rt) => {
4214
+ const [ce, q] = Z(!1), [K, se] = Z(Math.random()), [G, ge] = Z(!1), [ye, be] = Z(!1), Ne = !!b && !!A, je = (ie, _t, rt) => {
4200
4215
  if (C(ie), Ne && rt) {
4201
4216
  const xt = {
4202
4217
  ...rt,
@@ -4204,7 +4219,7 @@ const Ur = gt.forwardRef(
4204
4219
  ...rt.target,
4205
4220
  name: t,
4206
4221
  maskedValue: ie,
4207
- value: vt.unmaskedValue,
4222
+ value: _t.unmaskedValue,
4208
4223
  type: "text"
4209
4224
  }
4210
4225
  };
@@ -4222,7 +4237,7 @@ const Ur = gt.forwardRef(
4222
4237
  }
4223
4238
  ), u = (ie) => {
4224
4239
  b && !Ne && b(ie);
4225
- }, d = (ie) => {
4240
+ }, f = (ie) => {
4226
4241
  V && V(ie);
4227
4242
  }, v = (ie) => {
4228
4243
  q(!1), x && x(ie);
@@ -4266,7 +4281,7 @@ const Ur = gt.forwardRef(
4266
4281
  onChange: u,
4267
4282
  onFocus: N,
4268
4283
  onInput: u,
4269
- onKeyDown: d,
4284
+ onKeyDown: f,
4270
4285
  placeholder: z(),
4271
4286
  ref: y,
4272
4287
  type: B
@@ -4274,13 +4289,13 @@ const Ur = gt.forwardRef(
4274
4289
  ),
4275
4290
  /* @__PURE__ */ ae("label", { className: ee, htmlFor: t, children: [
4276
4291
  a,
4277
- f && /* @__PURE__ */ P(
4292
+ d && /* @__PURE__ */ P(
4278
4293
  Sr,
4279
4294
  {
4280
4295
  className: "ds-input__tooltip",
4281
4296
  placement: T,
4282
4297
  position: p,
4283
- text: f,
4298
+ text: d,
4284
4299
  children: /* @__PURE__ */ P(Ae, { className: "ds-input__icon", image: "info" })
4285
4300
  }
4286
4301
  )
@@ -4333,7 +4348,7 @@ const Za = {
4333
4348
  Neutral10: "neutral-10",
4334
4349
  Neutral05: "neutral-05",
4335
4350
  Neutral00: "neutral-00"
4336
- }, ut = {
4351
+ }, nt = {
4337
4352
  name: "Loading",
4338
4353
  class: "ds-loading",
4339
4354
  props: {
@@ -4354,37 +4369,49 @@ const Za = {
4354
4369
  type: String,
4355
4370
  default: Qa.Neutral10,
4356
4371
  options: Object.values(Qa)
4372
+ },
4373
+ id: {
4374
+ type: String,
4375
+ default: ""
4376
+ },
4377
+ testId: {
4378
+ type: String,
4379
+ default: "ds-loading"
4357
4380
  }
4358
4381
  }
4359
4382
  }, fo = ({
4360
- className: t,
4361
- size: e = ut.props.size.default,
4362
- opacity: r = ut.props.opacity.default,
4363
- fullscreen: s = ut.props.fullscreen.default,
4364
- backgroundColor: n = ut.props.backgroundColor.default
4383
+ id: t,
4384
+ testId: e = nt.props.testId.default,
4385
+ className: r,
4386
+ size: s = nt.props.size.default,
4387
+ opacity: n = nt.props.opacity.default,
4388
+ fullscreen: a = nt.props.fullscreen.default,
4389
+ backgroundColor: i = nt.props.backgroundColor.default
4365
4390
  }) => {
4366
- const a = !s && `${ut.class}--absolute`, i = e && `${ut.class}__dots--${e}`, o = n && ut.props.backgroundColor.options.find(
4367
- (c) => c === n
4368
- ) && `${ut.class}__background--${n}`, l = r && `${ut.class}__background--opacity`;
4391
+ const o = !a && `${nt.class}--absolute`, l = s && `${nt.class}__dots--${s}`, c = i && nt.props.backgroundColor.options.find(
4392
+ (p) => p === i
4393
+ ) && `${nt.class}__background--${i}`, d = n && `${nt.class}__background--opacity`;
4369
4394
  return /* @__PURE__ */ ae(
4370
4395
  "div",
4371
4396
  {
4372
- className: [ut.class, t, a].filter((c) => c).join(" "),
4397
+ className: [nt.class, r, o].filter((p) => p).join(" "),
4398
+ "data-testid": e,
4399
+ id: t,
4373
4400
  children: [
4374
4401
  /* @__PURE__ */ P(
4375
4402
  "div",
4376
4403
  {
4377
4404
  className: [
4378
- `${ut.class}__background`,
4379
- o,
4380
- l
4381
- ].filter((c) => c).join(" ")
4405
+ `${nt.class}__background`,
4406
+ c,
4407
+ d
4408
+ ].filter((p) => p).join(" ")
4382
4409
  }
4383
4410
  ),
4384
4411
  /* @__PURE__ */ P(
4385
4412
  "div",
4386
4413
  {
4387
- className: ["ds-loading__dots", i].filter((c) => c).join(" "),
4414
+ className: ["ds-loading__dots", l].filter((p) => p).join(" "),
4388
4415
  role: "status"
4389
4416
  }
4390
4417
  )
@@ -4393,7 +4420,9 @@ const Za = {
4393
4420
  );
4394
4421
  };
4395
4422
  fo.propTypes = {
4396
- size: h.oneOf(ut.props.size.options),
4423
+ id: h.string,
4424
+ testId: h.string,
4425
+ size: h.oneOf(nt.props.size.options),
4397
4426
  opacity: h.bool,
4398
4427
  fullscreen: h.bool,
4399
4428
  backgroundColor: h.string
@@ -4691,7 +4720,7 @@ const si = {
4691
4720
  const c = () => {
4692
4721
  const p = [Zt.class, e];
4693
4722
  return l && p.push(`${Zt.class}--gap-${l}`), p.join(" ");
4694
- }, f = () => ({
4723
+ }, d = () => ({
4695
4724
  display: "flex",
4696
4725
  justifyContent: r,
4697
4726
  alignItems: s,
@@ -4701,7 +4730,7 @@ const si = {
4701
4730
  height: o,
4702
4731
  gap: l
4703
4732
  });
4704
- return /* @__PURE__ */ P("div", { className: c(), style: f(), children: t });
4733
+ return /* @__PURE__ */ P("div", { className: c(), style: d(), children: t });
4705
4734
  };
4706
4735
  Gt.propTypes = {
4707
4736
  className: h.string,
@@ -4883,7 +4912,7 @@ const oi = {
4883
4912
  default: ""
4884
4913
  }
4885
4914
  }
4886
- }, mo = gt.forwardRef(
4915
+ }, mo = yt.forwardRef(
4887
4916
  ({
4888
4917
  label: t,
4889
4918
  className: e,
@@ -4895,7 +4924,7 @@ const oi = {
4895
4924
  options: o,
4896
4925
  value: l,
4897
4926
  placeholder: c,
4898
- onChange: f,
4927
+ onChange: d,
4899
4928
  onChangeHandler: p,
4900
4929
  size: T = De.props.size.default,
4901
4930
  status: S = De.props.status.default,
@@ -4906,7 +4935,7 @@ const oi = {
4906
4935
  ...I
4907
4936
  }, D) => {
4908
4937
  const [A, b] = Z(!1), x = (H) => {
4909
- b(!1), f && f(H, H.target.value), p && p(H, H.target.value);
4938
+ b(!1), d && d(H, H.target.value), p && p(H, H.target.value);
4910
4939
  }, V = () => {
4911
4940
  const H = [De.class, "select-placeholder"];
4912
4941
  return H.push(`${De.class}--${T}`), S && H.push(`${De.class}--${S}`), A && H.push(`${De.class}--active`), r && H.push(`${De.class}--disabled`), e && H.push(e), H.join(" ");
@@ -5135,7 +5164,7 @@ const fi = {
5135
5164
  }
5136
5165
  }
5137
5166
  }
5138
- }, go = gt.forwardRef(
5167
+ }, go = yt.forwardRef(
5139
5168
  ({
5140
5169
  name: t,
5141
5170
  testId: e = t || "ds-textarea-test",
@@ -5147,7 +5176,7 @@ const fi = {
5147
5176
  minLength: o,
5148
5177
  maxLength: l,
5149
5178
  tooltip: c,
5150
- icon: f,
5179
+ icon: d,
5151
5180
  status: p = Be.props.status.default,
5152
5181
  feedback: T,
5153
5182
  disabled: S = Be.props.disabled.default,
@@ -5219,7 +5248,7 @@ const fi = {
5219
5248
  className: "ds-textarea__tooltip",
5220
5249
  placement: "end",
5221
5250
  text: c,
5222
- children: /* @__PURE__ */ P(Ae, { className: "ds-textarea__icon", image: f })
5251
+ children: /* @__PURE__ */ P(Ae, { className: "ds-textarea__icon", image: d })
5223
5252
  }
5224
5253
  )
5225
5254
  ] }, q);
@@ -5299,9 +5328,9 @@ function al() {
5299
5328
  }, []), t;
5300
5329
  }
5301
5330
  const il = ({ children: t, grid: e }) => {
5302
- const { row: r, col: s, mobileRow: n, mobileCol: a } = e, { width: i } = al(), [o, l] = Z(""), [c, f] = Z("");
5331
+ const { row: r, col: s, mobileRow: n, mobileCol: a } = e, { width: i } = al(), [o, l] = Z(""), [c, d] = Z("");
5303
5332
  return $e(() => {
5304
- i <= 768 ? (l(n || r), f(a || s)) : (l(r), f(s));
5333
+ i <= 768 ? (l(n || r), d(a || s)) : (l(r), d(s));
5305
5334
  }, [i]), /* @__PURE__ */ P("div", { style: { gridRow: o, gridColumn: c }, children: t });
5306
5335
  };
5307
5336
  il.displayName = "DsGridElement";
@@ -5391,7 +5420,7 @@ const vn = ({
5391
5420
  width: o,
5392
5421
  height: l
5393
5422
  }) => {
5394
- const c = s && `${Le.class}__v-gap--${r}`, f = n && `${Le.class}__h-gap--${r}`, p = a && Le.props.horizontalAlign.options.find(
5423
+ const c = s && `${Le.class}__v-gap--${r}`, d = n && `${Le.class}__h-gap--${r}`, p = a && Le.props.horizontalAlign.options.find(
5395
5424
  (D) => D === a
5396
5425
  ) ? `${Le.class}--h-${a}` : null, T = i && Le.props.verticalAlign.options.find(
5397
5426
  (D) => D === i
@@ -5408,7 +5437,7 @@ const vn = ({
5408
5437
  p,
5409
5438
  T,
5410
5439
  c,
5411
- f
5440
+ d
5412
5441
  ].filter((D) => D).join(" "),
5413
5442
  style: {
5414
5443
  width: o,
@@ -5488,7 +5517,7 @@ const fr = {
5488
5517
  bottom: n,
5489
5518
  left: a
5490
5519
  }) => {
5491
- const i = r && `${dt.class}__top--${r}`, o = s && `${dt.class}__right--${s}`, l = n && `${dt.class}__bottom--${n}`, c = a && `${dt.class}__left--${a}`, f = e && `${dt.class}--${e}`;
5520
+ const i = r && `${dt.class}__top--${r}`, o = s && `${dt.class}__right--${s}`, l = n && `${dt.class}__bottom--${n}`, c = a && `${dt.class}__left--${a}`, d = e && `${dt.class}--${e}`;
5492
5521
  return /* @__PURE__ */ P(
5493
5522
  "div",
5494
5523
  {
@@ -5498,7 +5527,7 @@ const fr = {
5498
5527
  o,
5499
5528
  l,
5500
5529
  c,
5501
- f
5530
+ d
5502
5531
  ].filter((p) => p).join(" "),
5503
5532
  children: t
5504
5533
  }
@@ -5763,7 +5792,7 @@ const xe = {
5763
5792
  icon: o = xe.props.icon.default,
5764
5793
  noOptionsMessage: l = xe.props.noOptionsMessage.default,
5765
5794
  disabled: c = xe.props.disabled.default,
5766
- status: f = xe.props.status.default,
5795
+ status: d = xe.props.status.default,
5767
5796
  onBlurHandler: p = xe.props.onBlurHandler.default,
5768
5797
  onFocusHandler: T = xe.props.onFocusHandler.default
5769
5798
  }) => {
@@ -5804,7 +5833,7 @@ const xe = {
5804
5833
  onBlurHandler: p,
5805
5834
  onChangeHandler: D,
5806
5835
  onFocusHandler: T,
5807
- status: f,
5836
+ status: d,
5808
5837
  value: S
5809
5838
  },
5810
5839
  g
@@ -5913,7 +5942,7 @@ const Dr = {
5913
5942
  max: a,
5914
5943
  onChangeHandler: i
5915
5944
  }) => {
5916
- const o = zr(null), [l, c] = Z(!1), [f, p] = Z("");
5945
+ const o = zr(null), [l, c] = Z(!1), [d, p] = Z("");
5917
5946
  $e(() => {
5918
5947
  p(e ?? "");
5919
5948
  }, [e]);
@@ -5921,7 +5950,7 @@ const Dr = {
5921
5950
  _.key === "Enter" && S(_);
5922
5951
  };
5923
5952
  function S(_) {
5924
- c(!1), i && (n && parseInt(n) >= parseInt(f === "" ? n : f) ? (_.currentTarget.value = n, p(n)) : a && parseInt(a) < parseInt(f) ? (_.currentTarget.value = a, p(a)) : _.currentTarget.value = f, i(_));
5953
+ c(!1), i && (n && parseInt(n) >= parseInt(d === "" ? n : d) ? (_.currentTarget.value = n, p(n)) : a && parseInt(a) < parseInt(d) ? (_.currentTarget.value = a, p(a)) : _.currentTarget.value = d, i(_));
5925
5954
  }
5926
5955
  const E = (_) => {
5927
5956
  p(_.currentTarget.value);
@@ -5941,7 +5970,7 @@ const Dr = {
5941
5970
  onKeyDown: T,
5942
5971
  ref: o,
5943
5972
  type: "number",
5944
- value: f
5973
+ value: d
5945
5974
  }
5946
5975
  ) : /* @__PURE__ */ P("div", { onClick: k, children: /* @__PURE__ */ ae(Gt, { alignItems: "center", gap: "nano", children: [
5947
5976
  /* @__PURE__ */ P(Ge, { children: /* @__PURE__ */ P(Kt, { children: /* @__PURE__ */ ae("b", { children: [
@@ -5996,10 +6025,10 @@ const cl = [1, 2, 3, 4], _i = {
5996
6025
  isModalOpen: o = lt.props.isModalOpen.default,
5997
6026
  onClose: l,
5998
6027
  onCancel: c,
5999
- onConfirm: f,
6028
+ onConfirm: d,
6000
6029
  ...p
6001
6030
  }) => {
6002
- const T = a && lt.props.variant.options.find((_) => _ === a) ? `${lt.class}--${a}` : `${lt.class}--${lt.props.variant.default}`, S = i && `${lt.class}--elevation-${i}`, E = f || c, k = de(
6031
+ const T = a && lt.props.variant.options.find((_) => _ === a) ? `${lt.class}--${a}` : `${lt.class}--${lt.props.variant.default}`, S = i && `${lt.class}--elevation-${i}`, E = d || c, k = de(
6003
6032
  (_) => {
6004
6033
  _.keyCode === 27 && l();
6005
6034
  },
@@ -6057,11 +6086,11 @@ const cl = [1, 2, 3, 4], _i = {
6057
6086
  children: s
6058
6087
  }
6059
6088
  ),
6060
- f && /* @__PURE__ */ P(
6089
+ d && /* @__PURE__ */ P(
6061
6090
  gs,
6062
6091
  {
6063
6092
  onClick: () => {
6064
- l(), f();
6093
+ l(), d();
6065
6094
  },
6066
6095
  children: n
6067
6096
  }
@@ -6145,7 +6174,7 @@ const bi = {
6145
6174
  autoCloseTimer: o = He.props.autoCloseTimer.default,
6146
6175
  dismissible: l = He.props.dismissible.default,
6147
6176
  elevation: c,
6148
- progressBar: f = He.props.progressBar.default,
6177
+ progressBar: d = He.props.progressBar.default,
6149
6178
  handleClose: p
6150
6179
  }) => {
6151
6180
  const [T, S] = Z(o), [E, k] = Z(!1), [_, g] = Z(!0), I = [
@@ -6198,7 +6227,7 @@ const bi = {
6198
6227
  }
6199
6228
  ) : /* @__PURE__ */ P(At, { horizontal: "quark" }) })
6200
6229
  ] }) }),
6201
- f && i && /* @__PURE__ */ P(
6230
+ d && i && /* @__PURE__ */ P(
6202
6231
  "div",
6203
6232
  {
6204
6233
  className: `${He.class}__progress-bar ${He.class}__progress-bar--${e}`,
@@ -6264,7 +6293,7 @@ const Gs = {
6264
6293
  validationList: e = Gs.props.validationList.default,
6265
6294
  instructionLabel: r = Gs.props.instructionLabel.default
6266
6295
  }) => {
6267
- const [s, n] = Z(""), [a, i] = Z(""), [o, l] = Z([]), [c, f] = Z({
6296
+ const [s, n] = Z(""), [a, i] = Z(""), [o, l] = Z([]), [c, d] = Z({
6268
6297
  score: 0,
6269
6298
  color: "danger",
6270
6299
  label: "Fraca"
@@ -6304,7 +6333,7 @@ const Gs = {
6304
6333
  let q = H;
6305
6334
  return ce ? (q++, q) : H;
6306
6335
  }, 0), x = A == null ? void 0 : A.length, V = b * 100 / x || 0, Q = g(V);
6307
- return f(Q), Q;
6336
+ return d(Q), Q;
6308
6337
  }, D = () => /* @__PURE__ */ P("ul", { children: e.map((A, b) => {
6309
6338
  const x = o[b] ? "ds-password-confirmation__list" : "ds-password-confirmation__list--disc";
6310
6339
  return /* @__PURE__ */ ae("li", { className: x, children: [
@@ -6523,8 +6552,8 @@ const Si = {
6523
6552
  t && `${zt.class}__tab--active`,
6524
6553
  s && `${zt.class}__tab--disabled`,
6525
6554
  e && e
6526
- ].join(" "), c = (f) => {
6527
- o && !s && o(f);
6555
+ ].join(" "), c = (d) => {
6556
+ o && !s && o(d);
6528
6557
  };
6529
6558
  return /* @__PURE__ */ P("div", { className: l, id: n, onClick: () => c(a), children: i });
6530
6559
  }, zp = ({
@@ -6601,13 +6630,13 @@ const Ei = {
6601
6630
  n && n(o);
6602
6631
  };
6603
6632
  return /* @__PURE__ */ P("div", { className: a, children: s.map((o) => {
6604
- const l = o.autoClose ?? !0, c = o.autoCloseTimer ?? 4e3, f = o.dismissible ?? !0, p = o.elevation ?? 2, T = o.progressBar ?? !0;
6633
+ const l = o.autoClose ?? !0, c = o.autoCloseTimer ?? 4e3, d = o.dismissible ?? !0, p = o.elevation ?? 2, T = o.progressBar ?? !0;
6605
6634
  return /* @__PURE__ */ P(
6606
6635
  bn,
6607
6636
  {
6608
6637
  autoClose: l,
6609
6638
  autoCloseTimer: c,
6610
- dismissible: f,
6639
+ dismissible: d,
6611
6640
  elevation: p,
6612
6641
  handleClose: () => i(o.id),
6613
6642
  id: o.id,
@@ -6764,7 +6793,7 @@ function _s(t, e, r = /* @__PURE__ */ new WeakSet()) {
6764
6793
  return !1;
6765
6794
  return !0;
6766
6795
  }
6767
- var sn = { exports: {} }, wo = {}, yt = {}, br = {}, Kr = {}, le = {}, Hr = {};
6796
+ var sn = { exports: {} }, wo = {}, vt = {}, br = {}, Kr = {}, le = {}, Hr = {};
6768
6797
  (function(t) {
6769
6798
  Object.defineProperty(t, "__esModule", { value: !0 }), t.regexpCode = t.getEsmExportName = t.getProperty = t.safeStringify = t.stringify = t.strConcat = t.addCodeArg = t.str = t._ = t.nil = t._Code = t.Name = t.IDENTIFIER = t._CodeOrName = void 0;
6770
6799
  class e {
@@ -6855,10 +6884,10 @@ var sn = { exports: {} }, wo = {}, yt = {}, br = {}, Kr = {}, le = {}, Hr = {};
6855
6884
  if (typeof I == "string" && I[0] === '"' && !(g instanceof r))
6856
6885
  return `"${g}${I.slice(1)}`;
6857
6886
  }
6858
- function f(g, I) {
6887
+ function d(g, I) {
6859
6888
  return I.emptyStr() ? g : g.emptyStr() ? I : i`${g}${I}`;
6860
6889
  }
6861
- t.strConcat = f;
6890
+ t.strConcat = d;
6862
6891
  function p(g) {
6863
6892
  return typeof g == "number" || typeof g == "boolean" || g === null ? g : S(Array.isArray(g) ? g.join(",") : g);
6864
6893
  }
@@ -6903,8 +6932,8 @@ var nn = {};
6903
6932
  var: new e.Name("var")
6904
6933
  };
6905
6934
  class n {
6906
- constructor({ prefixes: c, parent: f } = {}) {
6907
- this._names = {}, this._prefixes = c, this._parent = f;
6935
+ constructor({ prefixes: c, parent: d } = {}) {
6936
+ this._names = {}, this._prefixes = c, this._parent = d;
6908
6937
  }
6909
6938
  toName(c) {
6910
6939
  return c instanceof e.Name ? c : this.name(c);
@@ -6913,23 +6942,23 @@ var nn = {};
6913
6942
  return new e.Name(this._newName(c));
6914
6943
  }
6915
6944
  _newName(c) {
6916
- const f = this._names[c] || this._nameGroup(c);
6917
- return `${c}${f.index++}`;
6945
+ const d = this._names[c] || this._nameGroup(c);
6946
+ return `${c}${d.index++}`;
6918
6947
  }
6919
6948
  _nameGroup(c) {
6920
- var f, p;
6921
- if (!((p = (f = this._parent) === null || f === void 0 ? void 0 : f._prefixes) === null || p === void 0) && p.has(c) || this._prefixes && !this._prefixes.has(c))
6949
+ var d, p;
6950
+ if (!((p = (d = this._parent) === null || d === void 0 ? void 0 : d._prefixes) === null || p === void 0) && p.has(c) || this._prefixes && !this._prefixes.has(c))
6922
6951
  throw new Error(`CodeGen: prefix "${c}" is not allowed in this scope`);
6923
6952
  return this._names[c] = { prefix: c, index: 0 };
6924
6953
  }
6925
6954
  }
6926
6955
  t.Scope = n;
6927
6956
  class a extends e.Name {
6928
- constructor(c, f) {
6929
- super(f), this.prefix = c;
6957
+ constructor(c, d) {
6958
+ super(d), this.prefix = c;
6930
6959
  }
6931
- setValue(c, { property: f, itemIndex: p }) {
6932
- this.value = c, this.scopePath = (0, e._)`.${new e.Name(f)}[${p}]`;
6960
+ setValue(c, { property: d, itemIndex: p }) {
6961
+ this.value = c, this.scopePath = (0, e._)`.${new e.Name(d)}[${p}]`;
6933
6962
  }
6934
6963
  }
6935
6964
  t.ValueScopeName = a;
@@ -6944,11 +6973,11 @@ var nn = {};
6944
6973
  name(c) {
6945
6974
  return new a(c, this._newName(c));
6946
6975
  }
6947
- value(c, f) {
6976
+ value(c, d) {
6948
6977
  var p;
6949
- if (f.ref === void 0)
6978
+ if (d.ref === void 0)
6950
6979
  throw new Error("CodeGen: ref must be passed in value");
6951
- const T = this.toName(c), { prefix: S } = T, E = (p = f.key) !== null && p !== void 0 ? p : f.ref;
6980
+ const T = this.toName(c), { prefix: S } = T, E = (p = d.key) !== null && p !== void 0 ? p : d.ref;
6952
6981
  let k = this._values[S];
6953
6982
  if (k) {
6954
6983
  const I = k.get(E);
@@ -6958,28 +6987,28 @@ var nn = {};
6958
6987
  k = this._values[S] = /* @__PURE__ */ new Map();
6959
6988
  k.set(E, T);
6960
6989
  const _ = this._scope[S] || (this._scope[S] = []), g = _.length;
6961
- return _[g] = f.ref, T.setValue(f, { property: S, itemIndex: g }), T;
6990
+ return _[g] = d.ref, T.setValue(d, { property: S, itemIndex: g }), T;
6962
6991
  }
6963
- getValue(c, f) {
6992
+ getValue(c, d) {
6964
6993
  const p = this._values[c];
6965
6994
  if (p)
6966
- return p.get(f);
6995
+ return p.get(d);
6967
6996
  }
6968
- scopeRefs(c, f = this._values) {
6969
- return this._reduceValues(f, (p) => {
6997
+ scopeRefs(c, d = this._values) {
6998
+ return this._reduceValues(d, (p) => {
6970
6999
  if (p.scopePath === void 0)
6971
7000
  throw new Error(`CodeGen: name "${p}" has no value`);
6972
7001
  return (0, e._)`${c}${p.scopePath}`;
6973
7002
  });
6974
7003
  }
6975
- scopeCode(c = this._values, f, p) {
7004
+ scopeCode(c = this._values, d, p) {
6976
7005
  return this._reduceValues(c, (T) => {
6977
7006
  if (T.value === void 0)
6978
7007
  throw new Error(`CodeGen: name "${T}" has no value`);
6979
7008
  return T.value.code;
6980
- }, f, p);
7009
+ }, d, p);
6981
7010
  }
6982
- _reduceValues(c, f, p = {}, T) {
7011
+ _reduceValues(c, d, p = {}, T) {
6983
7012
  let S = e.nil;
6984
7013
  for (const E in c) {
6985
7014
  const k = c[E];
@@ -6990,7 +7019,7 @@ var nn = {};
6990
7019
  if (_.has(g))
6991
7020
  return;
6992
7021
  _.set(g, s.Started);
6993
- let I = f(g);
7022
+ let I = d(g);
6994
7023
  if (I) {
6995
7024
  const D = this.opts.es5 ? t.varKinds.var : t.varKinds.const;
6996
7025
  S = (0, e._)`${S}${D} ${g} = ${I};${this.opts._n}`;
@@ -7052,36 +7081,36 @@ var nn = {};
7052
7081
  optimizeNodes() {
7053
7082
  return this;
7054
7083
  }
7055
- optimizeNames(u, d) {
7084
+ optimizeNames(u, f) {
7056
7085
  return this;
7057
7086
  }
7058
7087
  }
7059
7088
  class i extends a {
7060
- constructor(u, d, v) {
7061
- super(), this.varKind = u, this.name = d, this.rhs = v;
7089
+ constructor(u, f, v) {
7090
+ super(), this.varKind = u, this.name = f, this.rhs = v;
7062
7091
  }
7063
- render({ es5: u, _n: d }) {
7092
+ render({ es5: u, _n: f }) {
7064
7093
  const v = u ? r.varKinds.var : this.varKind, N = this.rhs === void 0 ? "" : ` = ${this.rhs}`;
7065
- return `${v} ${this.name}${N};` + d;
7094
+ return `${v} ${this.name}${N};` + f;
7066
7095
  }
7067
- optimizeNames(u, d) {
7096
+ optimizeNames(u, f) {
7068
7097
  if (u[this.name.str])
7069
- return this.rhs && (this.rhs = G(this.rhs, u, d)), this;
7098
+ return this.rhs && (this.rhs = G(this.rhs, u, f)), this;
7070
7099
  }
7071
7100
  get names() {
7072
7101
  return this.rhs instanceof e._CodeOrName ? this.rhs.names : {};
7073
7102
  }
7074
7103
  }
7075
7104
  class o extends a {
7076
- constructor(u, d, v) {
7077
- super(), this.lhs = u, this.rhs = d, this.sideEffects = v;
7105
+ constructor(u, f, v) {
7106
+ super(), this.lhs = u, this.rhs = f, this.sideEffects = v;
7078
7107
  }
7079
7108
  render({ _n: u }) {
7080
7109
  return `${this.lhs} = ${this.rhs};` + u;
7081
7110
  }
7082
- optimizeNames(u, d) {
7111
+ optimizeNames(u, f) {
7083
7112
  if (!(this.lhs instanceof e.Name && !u[this.lhs.str] && !this.sideEffects))
7084
- return this.rhs = G(this.rhs, u, d), this;
7113
+ return this.rhs = G(this.rhs, u, f), this;
7085
7114
  }
7086
7115
  get names() {
7087
7116
  const u = this.lhs instanceof e.Name ? {} : { ...this.lhs.names };
@@ -7089,8 +7118,8 @@ var nn = {};
7089
7118
  }
7090
7119
  }
7091
7120
  class l extends o {
7092
- constructor(u, d, v, N) {
7093
- super(u, v, N), this.op = d;
7121
+ constructor(u, f, v, N) {
7122
+ super(u, v, N), this.op = f;
7094
7123
  }
7095
7124
  render({ _n: u }) {
7096
7125
  return `${this.lhs} ${this.op}= ${this.rhs};` + u;
@@ -7104,7 +7133,7 @@ var nn = {};
7104
7133
  return `${this.label}:` + u;
7105
7134
  }
7106
7135
  }
7107
- class f extends a {
7136
+ class d extends a {
7108
7137
  constructor(u) {
7109
7138
  super(), this.label = u, this.names = {};
7110
7139
  }
@@ -7133,8 +7162,8 @@ var nn = {};
7133
7162
  optimizeNodes() {
7134
7163
  return `${this.code}` ? this : void 0;
7135
7164
  }
7136
- optimizeNames(u, d) {
7137
- return this.code = G(this.code, u, d), this;
7165
+ optimizeNames(u, f) {
7166
+ return this.code = G(this.code, u, f), this;
7138
7167
  }
7139
7168
  get names() {
7140
7169
  return this.code instanceof e._CodeOrName ? this.code.names : {};
@@ -7145,28 +7174,28 @@ var nn = {};
7145
7174
  super(), this.nodes = u;
7146
7175
  }
7147
7176
  render(u) {
7148
- return this.nodes.reduce((d, v) => d + v.render(u), "");
7177
+ return this.nodes.reduce((f, v) => f + v.render(u), "");
7149
7178
  }
7150
7179
  optimizeNodes() {
7151
7180
  const { nodes: u } = this;
7152
- let d = u.length;
7153
- for (; d--; ) {
7154
- const v = u[d].optimizeNodes();
7155
- Array.isArray(v) ? u.splice(d, 1, ...v) : v ? u[d] = v : u.splice(d, 1);
7181
+ let f = u.length;
7182
+ for (; f--; ) {
7183
+ const v = u[f].optimizeNodes();
7184
+ Array.isArray(v) ? u.splice(f, 1, ...v) : v ? u[f] = v : u.splice(f, 1);
7156
7185
  }
7157
7186
  return u.length > 0 ? this : void 0;
7158
7187
  }
7159
- optimizeNames(u, d) {
7188
+ optimizeNames(u, f) {
7160
7189
  const { nodes: v } = this;
7161
7190
  let N = v.length;
7162
7191
  for (; N--; ) {
7163
7192
  const j = v[N];
7164
- j.optimizeNames(u, d) || (ge(u, j.names), v.splice(N, 1));
7193
+ j.optimizeNames(u, f) || (ge(u, j.names), v.splice(N, 1));
7165
7194
  }
7166
7195
  return v.length > 0 ? this : void 0;
7167
7196
  }
7168
7197
  get names() {
7169
- return this.nodes.reduce((u, d) => K(u, d.names), {});
7198
+ return this.nodes.reduce((u, f) => K(u, f.names), {});
7170
7199
  }
7171
7200
  }
7172
7201
  class E extends S {
@@ -7180,32 +7209,32 @@ var nn = {};
7180
7209
  }
7181
7210
  _.kind = "else";
7182
7211
  class g extends E {
7183
- constructor(u, d) {
7184
- super(d), this.condition = u;
7212
+ constructor(u, f) {
7213
+ super(f), this.condition = u;
7185
7214
  }
7186
7215
  render(u) {
7187
- let d = `if(${this.condition})` + super.render(u);
7188
- return this.else && (d += "else " + this.else.render(u)), d;
7216
+ let f = `if(${this.condition})` + super.render(u);
7217
+ return this.else && (f += "else " + this.else.render(u)), f;
7189
7218
  }
7190
7219
  optimizeNodes() {
7191
7220
  super.optimizeNodes();
7192
7221
  const u = this.condition;
7193
7222
  if (u === !0)
7194
7223
  return this.nodes;
7195
- let d = this.else;
7196
- if (d) {
7197
- const v = d.optimizeNodes();
7198
- d = this.else = Array.isArray(v) ? new _(v) : v;
7224
+ let f = this.else;
7225
+ if (f) {
7226
+ const v = f.optimizeNodes();
7227
+ f = this.else = Array.isArray(v) ? new _(v) : v;
7199
7228
  }
7200
- if (d)
7201
- return u === !1 ? d instanceof g ? d : d.nodes : this.nodes.length ? this : new g(ye(u), d instanceof g ? [d] : d.nodes);
7229
+ if (f)
7230
+ return u === !1 ? f instanceof g ? f : f.nodes : this.nodes.length ? this : new g(ye(u), f instanceof g ? [f] : f.nodes);
7202
7231
  if (!(u === !1 || !this.nodes.length))
7203
7232
  return this;
7204
7233
  }
7205
- optimizeNames(u, d) {
7234
+ optimizeNames(u, f) {
7206
7235
  var v;
7207
- if (this.else = (v = this.else) === null || v === void 0 ? void 0 : v.optimizeNames(u, d), !!(super.optimizeNames(u, d) || this.else))
7208
- return this.condition = G(this.condition, u, d), this;
7236
+ if (this.else = (v = this.else) === null || v === void 0 ? void 0 : v.optimizeNames(u, f), !!(super.optimizeNames(u, f) || this.else))
7237
+ return this.condition = G(this.condition, u, f), this;
7209
7238
  }
7210
7239
  get names() {
7211
7240
  const u = super.names;
@@ -7223,21 +7252,21 @@ var nn = {};
7223
7252
  render(u) {
7224
7253
  return `for(${this.iteration})` + super.render(u);
7225
7254
  }
7226
- optimizeNames(u, d) {
7227
- if (super.optimizeNames(u, d))
7228
- return this.iteration = G(this.iteration, u, d), this;
7255
+ optimizeNames(u, f) {
7256
+ if (super.optimizeNames(u, f))
7257
+ return this.iteration = G(this.iteration, u, f), this;
7229
7258
  }
7230
7259
  get names() {
7231
7260
  return K(super.names, this.iteration.names);
7232
7261
  }
7233
7262
  }
7234
7263
  class A extends I {
7235
- constructor(u, d, v, N) {
7236
- super(), this.varKind = u, this.name = d, this.from = v, this.to = N;
7264
+ constructor(u, f, v, N) {
7265
+ super(), this.varKind = u, this.name = f, this.from = v, this.to = N;
7237
7266
  }
7238
7267
  render(u) {
7239
- const d = u.es5 ? r.varKinds.var : this.varKind, { name: v, from: N, to: j } = this;
7240
- return `for(${d} ${v}=${N}; ${v}<${j}; ${v}++)` + super.render(u);
7268
+ const f = u.es5 ? r.varKinds.var : this.varKind, { name: v, from: N, to: j } = this;
7269
+ return `for(${f} ${v}=${N}; ${v}<${j}; ${v}++)` + super.render(u);
7241
7270
  }
7242
7271
  get names() {
7243
7272
  const u = se(super.names, this.from);
@@ -7245,23 +7274,23 @@ var nn = {};
7245
7274
  }
7246
7275
  }
7247
7276
  class b extends I {
7248
- constructor(u, d, v, N) {
7249
- super(), this.loop = u, this.varKind = d, this.name = v, this.iterable = N;
7277
+ constructor(u, f, v, N) {
7278
+ super(), this.loop = u, this.varKind = f, this.name = v, this.iterable = N;
7250
7279
  }
7251
7280
  render(u) {
7252
7281
  return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(u);
7253
7282
  }
7254
- optimizeNames(u, d) {
7255
- if (super.optimizeNames(u, d))
7256
- return this.iterable = G(this.iterable, u, d), this;
7283
+ optimizeNames(u, f) {
7284
+ if (super.optimizeNames(u, f))
7285
+ return this.iterable = G(this.iterable, u, f), this;
7257
7286
  }
7258
7287
  get names() {
7259
7288
  return K(super.names, this.iterable.names);
7260
7289
  }
7261
7290
  }
7262
7291
  class x extends E {
7263
- constructor(u, d, v) {
7264
- super(), this.name = u, this.args = d, this.async = v;
7292
+ constructor(u, f, v) {
7293
+ super(), this.name = u, this.args = f, this.async = v;
7265
7294
  }
7266
7295
  render(u) {
7267
7296
  return `${this.async ? "async " : ""}function ${this.name}(${this.args})` + super.render(u);
@@ -7276,16 +7305,16 @@ var nn = {};
7276
7305
  V.kind = "return";
7277
7306
  class Q extends E {
7278
7307
  render(u) {
7279
- let d = "try" + super.render(u);
7280
- return this.catch && (d += this.catch.render(u)), this.finally && (d += this.finally.render(u)), d;
7308
+ let f = "try" + super.render(u);
7309
+ return this.catch && (f += this.catch.render(u)), this.finally && (f += this.finally.render(u)), f;
7281
7310
  }
7282
7311
  optimizeNodes() {
7283
- var u, d;
7284
- return super.optimizeNodes(), (u = this.catch) === null || u === void 0 || u.optimizeNodes(), (d = this.finally) === null || d === void 0 || d.optimizeNodes(), this;
7312
+ var u, f;
7313
+ return super.optimizeNodes(), (u = this.catch) === null || u === void 0 || u.optimizeNodes(), (f = this.finally) === null || f === void 0 || f.optimizeNodes(), this;
7285
7314
  }
7286
- optimizeNames(u, d) {
7315
+ optimizeNames(u, f) {
7287
7316
  var v, N;
7288
- return super.optimizeNames(u, d), (v = this.catch) === null || v === void 0 || v.optimizeNames(u, d), (N = this.finally) === null || N === void 0 || N.optimizeNames(u, d), this;
7317
+ return super.optimizeNames(u, f), (v = this.catch) === null || v === void 0 || v.optimizeNames(u, f), (N = this.finally) === null || N === void 0 || N.optimizeNames(u, f), this;
7289
7318
  }
7290
7319
  get names() {
7291
7320
  const u = super.names;
@@ -7308,8 +7337,8 @@ var nn = {};
7308
7337
  }
7309
7338
  ce.kind = "finally";
7310
7339
  class q {
7311
- constructor(u, d = {}) {
7312
- this._values = {}, this._blockStarts = [], this._constants = {}, this.opts = { ...d, _n: d.lines ? `
7340
+ constructor(u, f = {}) {
7341
+ this._values = {}, this._blockStarts = [], this._constants = {}, this.opts = { ...f, _n: f.lines ? `
7313
7342
  ` : "" }, this._extScope = u, this._scope = new r.Scope({ parent: u }), this._nodes = [new k()];
7314
7343
  }
7315
7344
  toString() {
@@ -7324,12 +7353,12 @@ var nn = {};
7324
7353
  return this._extScope.name(u);
7325
7354
  }
7326
7355
  // reserves unique name in the external scope and assigns value to it
7327
- scopeValue(u, d) {
7328
- const v = this._extScope.value(u, d);
7356
+ scopeValue(u, f) {
7357
+ const v = this._extScope.value(u, f);
7329
7358
  return (this._values[v.prefix] || (this._values[v.prefix] = /* @__PURE__ */ new Set())).add(v), v;
7330
7359
  }
7331
- getScopeValue(u, d) {
7332
- return this._extScope.getValue(u, d);
7360
+ getScopeValue(u, f) {
7361
+ return this._extScope.getValue(u, f);
7333
7362
  }
7334
7363
  // return code that assigns values in the external scope to the names that are used internally
7335
7364
  // (same names that were returned by gen.scopeName or gen.scopeValue)
@@ -7339,29 +7368,29 @@ var nn = {};
7339
7368
  scopeCode() {
7340
7369
  return this._extScope.scopeCode(this._values);
7341
7370
  }
7342
- _def(u, d, v, N) {
7343
- const j = this._scope.toName(d);
7371
+ _def(u, f, v, N) {
7372
+ const j = this._scope.toName(f);
7344
7373
  return v !== void 0 && N && (this._constants[j.str] = v), this._leafNode(new i(u, j, v)), j;
7345
7374
  }
7346
7375
  // `const` declaration (`var` in es5 mode)
7347
- const(u, d, v) {
7348
- return this._def(r.varKinds.const, u, d, v);
7376
+ const(u, f, v) {
7377
+ return this._def(r.varKinds.const, u, f, v);
7349
7378
  }
7350
7379
  // `let` declaration with optional assignment (`var` in es5 mode)
7351
- let(u, d, v) {
7352
- return this._def(r.varKinds.let, u, d, v);
7380
+ let(u, f, v) {
7381
+ return this._def(r.varKinds.let, u, f, v);
7353
7382
  }
7354
7383
  // `var` declaration with optional assignment
7355
- var(u, d, v) {
7356
- return this._def(r.varKinds.var, u, d, v);
7384
+ var(u, f, v) {
7385
+ return this._def(r.varKinds.var, u, f, v);
7357
7386
  }
7358
7387
  // assignment code
7359
- assign(u, d, v) {
7360
- return this._leafNode(new o(u, d, v));
7388
+ assign(u, f, v) {
7389
+ return this._leafNode(new o(u, f, v));
7361
7390
  }
7362
7391
  // `+=` code
7363
- add(u, d) {
7364
- return this._leafNode(new l(u, t.operators.ADD, d));
7392
+ add(u, f) {
7393
+ return this._leafNode(new l(u, t.operators.ADD, f));
7365
7394
  }
7366
7395
  // appends passed SafeExpr to code or executes Block
7367
7396
  code(u) {
@@ -7369,17 +7398,17 @@ var nn = {};
7369
7398
  }
7370
7399
  // returns code for object literal for the passed argument list of key-value pairs
7371
7400
  object(...u) {
7372
- const d = ["{"];
7401
+ const f = ["{"];
7373
7402
  for (const [v, N] of u)
7374
- d.length > 1 && d.push(","), d.push(v), (v !== N || this.opts.es5) && (d.push(":"), (0, e.addCodeArg)(d, N));
7375
- return d.push("}"), new e._Code(d);
7403
+ f.length > 1 && f.push(","), f.push(v), (v !== N || this.opts.es5) && (f.push(":"), (0, e.addCodeArg)(f, N));
7404
+ return f.push("}"), new e._Code(f);
7376
7405
  }
7377
7406
  // `if` clause (or statement if `thenBody` and, optionally, `elseBody` are passed)
7378
- if(u, d, v) {
7379
- if (this._blockNode(new g(u)), d && v)
7380
- this.code(d).else().code(v).endIf();
7381
- else if (d)
7382
- this.code(d).endIf();
7407
+ if(u, f, v) {
7408
+ if (this._blockNode(new g(u)), f && v)
7409
+ this.code(f).else().code(v).endIf();
7410
+ else if (f)
7411
+ this.code(f).endIf();
7383
7412
  else if (v)
7384
7413
  throw new Error('CodeGen: "else" body without "then" body');
7385
7414
  return this;
@@ -7396,36 +7425,36 @@ var nn = {};
7396
7425
  endIf() {
7397
7426
  return this._endBlockNode(g, _);
7398
7427
  }
7399
- _for(u, d) {
7400
- return this._blockNode(u), d && this.code(d).endFor(), this;
7428
+ _for(u, f) {
7429
+ return this._blockNode(u), f && this.code(f).endFor(), this;
7401
7430
  }
7402
7431
  // a generic `for` clause (or statement if `forBody` is passed)
7403
- for(u, d) {
7404
- return this._for(new D(u), d);
7432
+ for(u, f) {
7433
+ return this._for(new D(u), f);
7405
7434
  }
7406
7435
  // `for` statement for a range of values
7407
- forRange(u, d, v, N, j = this.opts.es5 ? r.varKinds.var : r.varKinds.let) {
7436
+ forRange(u, f, v, N, j = this.opts.es5 ? r.varKinds.var : r.varKinds.let) {
7408
7437
  const B = this._scope.toName(u);
7409
- return this._for(new A(j, B, d, v), () => N(B));
7438
+ return this._for(new A(j, B, f, v), () => N(B));
7410
7439
  }
7411
7440
  // `for-of` statement (in es5 mode replace with a normal for loop)
7412
- forOf(u, d, v, N = r.varKinds.const) {
7441
+ forOf(u, f, v, N = r.varKinds.const) {
7413
7442
  const j = this._scope.toName(u);
7414
7443
  if (this.opts.es5) {
7415
- const B = d instanceof e.Name ? d : this.var("_arr", d);
7444
+ const B = f instanceof e.Name ? f : this.var("_arr", f);
7416
7445
  return this.forRange("_i", 0, (0, e._)`${B}.length`, (L) => {
7417
7446
  this.var(j, (0, e._)`${B}[${L}]`), v(j);
7418
7447
  });
7419
7448
  }
7420
- return this._for(new b("of", N, j, d), () => v(j));
7449
+ return this._for(new b("of", N, j, f), () => v(j));
7421
7450
  }
7422
7451
  // `for-in` statement.
7423
7452
  // With option `ownProperties` replaced with a `for-of` loop for object keys
7424
- forIn(u, d, v, N = this.opts.es5 ? r.varKinds.var : r.varKinds.const) {
7453
+ forIn(u, f, v, N = this.opts.es5 ? r.varKinds.var : r.varKinds.const) {
7425
7454
  if (this.opts.ownProperties)
7426
- return this.forOf(u, (0, e._)`Object.keys(${d})`, v);
7455
+ return this.forOf(u, (0, e._)`Object.keys(${f})`, v);
7427
7456
  const j = this._scope.toName(u);
7428
- return this._for(new b("in", N, j, d), () => v(j));
7457
+ return this._for(new b("in", N, j, f), () => v(j));
7429
7458
  }
7430
7459
  // end `for` loop
7431
7460
  endFor() {
@@ -7437,23 +7466,23 @@ var nn = {};
7437
7466
  }
7438
7467
  // `break` statement
7439
7468
  break(u) {
7440
- return this._leafNode(new f(u));
7469
+ return this._leafNode(new d(u));
7441
7470
  }
7442
7471
  // `return` statement
7443
7472
  return(u) {
7444
- const d = new V();
7445
- if (this._blockNode(d), this.code(u), d.nodes.length !== 1)
7473
+ const f = new V();
7474
+ if (this._blockNode(f), this.code(u), f.nodes.length !== 1)
7446
7475
  throw new Error('CodeGen: "return" should have one node');
7447
7476
  return this._endBlockNode(V);
7448
7477
  }
7449
7478
  // `try` statement
7450
- try(u, d, v) {
7451
- if (!d && !v)
7479
+ try(u, f, v) {
7480
+ if (!f && !v)
7452
7481
  throw new Error('CodeGen: "try" without "catch" and "finally"');
7453
7482
  const N = new Q();
7454
- if (this._blockNode(N), this.code(u), d) {
7483
+ if (this._blockNode(N), this.code(u), f) {
7455
7484
  const j = this.name("e");
7456
- this._currNode = N.catch = new H(j), d(j);
7485
+ this._currNode = N.catch = new H(j), f(j);
7457
7486
  }
7458
7487
  return v && (this._currNode = N.finally = new ce(), this.code(v)), this._endBlockNode(H, ce);
7459
7488
  }
@@ -7462,22 +7491,22 @@ var nn = {};
7462
7491
  return this._leafNode(new p(u));
7463
7492
  }
7464
7493
  // start self-balancing block
7465
- block(u, d) {
7466
- return this._blockStarts.push(this._nodes.length), u && this.code(u).endBlock(d), this;
7494
+ block(u, f) {
7495
+ return this._blockStarts.push(this._nodes.length), u && this.code(u).endBlock(f), this;
7467
7496
  }
7468
7497
  // end the current self-balancing block
7469
7498
  endBlock(u) {
7470
- const d = this._blockStarts.pop();
7471
- if (d === void 0)
7499
+ const f = this._blockStarts.pop();
7500
+ if (f === void 0)
7472
7501
  throw new Error("CodeGen: not in self-balancing block");
7473
- const v = this._nodes.length - d;
7502
+ const v = this._nodes.length - f;
7474
7503
  if (v < 0 || u !== void 0 && v !== u)
7475
7504
  throw new Error(`CodeGen: wrong number of nodes: ${v} vs ${u} expected`);
7476
- return this._nodes.length = d, this;
7505
+ return this._nodes.length = f, this;
7477
7506
  }
7478
7507
  // `function` heading (or definition if funcBody is passed)
7479
- func(u, d = e.nil, v, N) {
7480
- return this._blockNode(new x(u, d, v)), N && this.code(N).endFunc(), this;
7508
+ func(u, f = e.nil, v, N) {
7509
+ return this._blockNode(new x(u, f, v)), N && this.code(N).endFunc(), this;
7481
7510
  }
7482
7511
  // end function definition
7483
7512
  endFunc() {
@@ -7493,17 +7522,17 @@ var nn = {};
7493
7522
  _blockNode(u) {
7494
7523
  this._currNode.nodes.push(u), this._nodes.push(u);
7495
7524
  }
7496
- _endBlockNode(u, d) {
7525
+ _endBlockNode(u, f) {
7497
7526
  const v = this._currNode;
7498
- if (v instanceof u || d && v instanceof d)
7527
+ if (v instanceof u || f && v instanceof f)
7499
7528
  return this._nodes.pop(), this;
7500
- throw new Error(`CodeGen: not in block "${d ? `${u.kind}/${d.kind}` : u.kind}"`);
7529
+ throw new Error(`CodeGen: not in block "${f ? `${u.kind}/${f.kind}` : u.kind}"`);
7501
7530
  }
7502
7531
  _elseNode(u) {
7503
- const d = this._currNode;
7504
- if (!(d instanceof g))
7532
+ const f = this._currNode;
7533
+ if (!(f instanceof g))
7505
7534
  throw new Error('CodeGen: "else" without "if"');
7506
- return this._currNode = d.else = u, this;
7535
+ return this._currNode = f.else = u, this;
7507
7536
  }
7508
7537
  get _root() {
7509
7538
  return this._nodes[0];
@@ -7513,36 +7542,36 @@ var nn = {};
7513
7542
  return u[u.length - 1];
7514
7543
  }
7515
7544
  set _currNode(u) {
7516
- const d = this._nodes;
7517
- d[d.length - 1] = u;
7545
+ const f = this._nodes;
7546
+ f[f.length - 1] = u;
7518
7547
  }
7519
7548
  }
7520
7549
  t.CodeGen = q;
7521
7550
  function K(C, u) {
7522
- for (const d in u)
7523
- C[d] = (C[d] || 0) + (u[d] || 0);
7551
+ for (const f in u)
7552
+ C[f] = (C[f] || 0) + (u[f] || 0);
7524
7553
  return C;
7525
7554
  }
7526
7555
  function se(C, u) {
7527
7556
  return u instanceof e._CodeOrName ? K(C, u.names) : C;
7528
7557
  }
7529
- function G(C, u, d) {
7558
+ function G(C, u, f) {
7530
7559
  if (C instanceof e.Name)
7531
7560
  return v(C);
7532
7561
  if (!N(C))
7533
7562
  return C;
7534
7563
  return new e._Code(C._items.reduce((j, B) => (B instanceof e.Name && (B = v(B)), B instanceof e._Code ? j.push(...B._items) : j.push(B), j), []));
7535
7564
  function v(j) {
7536
- const B = d[j.str];
7565
+ const B = f[j.str];
7537
7566
  return B === void 0 || u[j.str] !== 1 ? j : (delete u[j.str], B);
7538
7567
  }
7539
7568
  function N(j) {
7540
- return j instanceof e._Code && j._items.some((B) => B instanceof e.Name && u[B.str] === 1 && d[B.str] !== void 0);
7569
+ return j instanceof e._Code && j._items.some((B) => B instanceof e.Name && u[B.str] === 1 && f[B.str] !== void 0);
7541
7570
  }
7542
7571
  }
7543
7572
  function ge(C, u) {
7544
- for (const d in u)
7545
- C[d] = (C[d] || 0) - (u[d] || 0);
7573
+ for (const f in u)
7574
+ C[f] = (C[f] || 0) - (u[f] || 0);
7546
7575
  }
7547
7576
  function ye(C) {
7548
7577
  return typeof C == "boolean" || typeof C == "number" || C === null ? !C : (0, e._)`!${R(C)}`;
@@ -7559,7 +7588,7 @@ var nn = {};
7559
7588
  }
7560
7589
  t.or = O;
7561
7590
  function y(C) {
7562
- return (u, d) => u === e.nil ? d : d === e.nil ? u : (0, e._)`${R(u)} ${C} ${R(d)}`;
7591
+ return (u, f) => u === e.nil ? f : f === e.nil ? u : (0, e._)`${R(u)} ${C} ${R(f)}`;
7563
7592
  }
7564
7593
  function R(C) {
7565
7594
  return C instanceof e.Name ? C : (0, e._)`(${C})`;
@@ -7775,7 +7804,7 @@ It.default = Dl;
7775
7804
  const { gen: I, validateName: D, schemaEnv: A } = _;
7776
7805
  A.$async ? I.throw((0, e._)`new ${_.ValidationError}(${g})`) : (I.assign((0, e._)`${D}.errors`, g), I.return(!1));
7777
7806
  }
7778
- const f = {
7807
+ const d = {
7779
7808
  keyword: new e.Name("keyword"),
7780
7809
  schemaPath: new e.Name("schemaPath"),
7781
7810
  // also used in JTD errors
@@ -7802,11 +7831,11 @@ It.default = Dl;
7802
7831
  }
7803
7832
  function E({ keyword: _, it: { errSchemaPath: g } }, { schemaPath: I, parentSchema: D }) {
7804
7833
  let A = D ? g : (0, e.str)`${g}/${_}`;
7805
- return I && (A = (0, e.str)`${A}${(0, r.getErrorPath)(I, r.Type.Str)}`), [f.schemaPath, A];
7834
+ return I && (A = (0, e.str)`${A}${(0, r.getErrorPath)(I, r.Type.Str)}`), [d.schemaPath, A];
7806
7835
  }
7807
7836
  function k(_, { params: g, message: I }, D) {
7808
7837
  const { keyword: A, data: b, schemaValue: x, it: V } = _, { opts: Q, propertyName: H, topSchemaRef: ce, schemaPath: q } = V;
7809
- D.push([f.keyword, A], [f.params, typeof g == "function" ? g(_) : g || (0, e._)`{}`]), Q.messages && D.push([f.message, typeof I == "function" ? I(_) : I]), Q.verbose && D.push([f.schema, x], [f.parentSchema, (0, e._)`${ce}${q}`], [s.default.data, b]), H && D.push([f.propertyName, H]);
7838
+ D.push([d.keyword, A], [d.params, typeof g == "function" ? g(_) : g || (0, e._)`{}`]), Q.messages && D.push([d.message, typeof I == "function" ? I(_) : I]), Q.verbose && D.push([d.schema, x], [d.parentSchema, (0, e._)`${ce}${q}`], [s.default.data, b]), H && D.push([d.propertyName, H]);
7810
7839
  }
7811
7840
  })(Kr);
7812
7841
  Object.defineProperty(br, "__esModule", { value: !0 });
@@ -8097,14 +8126,14 @@ function ic(t, e) {
8097
8126
  }
8098
8127
  fe.schemaProperties = ic;
8099
8128
  function oc({ schemaCode: t, data: e, it: { gen: r, topSchemaRef: s, schemaPath: n, errorPath: a }, it: i }, o, l, c) {
8100
- const f = c ? (0, Ce._)`${t}, ${e}, ${s}${n}` : e, p = [
8129
+ const d = c ? (0, Ce._)`${t}, ${e}, ${s}${n}` : e, p = [
8101
8130
  [Bt.default.instancePath, (0, Ce.strConcat)(Bt.default.instancePath, a)],
8102
8131
  [Bt.default.parentData, i.parentData],
8103
8132
  [Bt.default.parentDataProperty, i.parentDataProperty],
8104
8133
  [Bt.default.rootData, Bt.default.rootData]
8105
8134
  ];
8106
8135
  i.opts.dynamicRef && p.push([Bt.default.dynamicAnchors, Bt.default.dynamicAnchors]);
8107
- const T = (0, Ce._)`${f}, ${r.object(...p)}`;
8136
+ const T = (0, Ce._)`${d}, ${r.object(...p)}`;
8108
8137
  return l !== Ce.nil ? (0, Ce._)`${o}.call(${l}, ${T})` : (0, Ce._)`${o}(${T})`;
8109
8138
  }
8110
8139
  fe.callValidateCode = oc;
@@ -8145,12 +8174,12 @@ function dc(t) {
8145
8174
  return;
8146
8175
  const i = e.let("valid", !1), o = e.name("_valid");
8147
8176
  e.block(() => r.forEach((l, c) => {
8148
- const f = t.subschema({
8177
+ const d = t.subschema({
8149
8178
  keyword: s,
8150
8179
  schemaProp: c,
8151
8180
  compositeRule: !0
8152
8181
  }, o);
8153
- e.assign(i, (0, Ce._)`${i} || ${o}`), t.mergeValidEvaluated(f, o) || e.if((0, Ce.not)(i));
8182
+ e.assign(i, (0, Ce._)`${i} || ${o}`), t.mergeValidEvaluated(d, o) || e.if((0, Ce.not)(i));
8154
8183
  })), t.result(i, () => t.reset(), () => t.error(!0));
8155
8184
  }
8156
8185
  fe.validateUnion = dc;
@@ -8174,7 +8203,7 @@ function mc(t, e) {
8174
8203
  var r;
8175
8204
  const { gen: s, keyword: n, schema: a, parentSchema: i, $data: o, it: l } = t;
8176
8205
  yc(l, e);
8177
- const c = !o && e.compile ? e.compile.call(l.self, a, i, l) : e.validate, f = Vo(s, n, c), p = s.let("valid");
8206
+ const c = !o && e.compile ? e.compile.call(l.self, a, i, l) : e.validate, d = Vo(s, n, c), p = s.let("valid");
8178
8207
  t.block$data(p, T), t.ok((r = e.valid) !== null && r !== void 0 ? r : p);
8179
8208
  function T() {
8180
8209
  if (e.errors === !1)
@@ -8189,12 +8218,12 @@ function mc(t, e) {
8189
8218
  return s.try(() => k((0, Je._)`await `), (I) => s.assign(p, !1).if((0, Je._)`${I} instanceof ${l.ValidationError}`, () => s.assign(g, (0, Je._)`${I}.errors`), () => s.throw(I))), g;
8190
8219
  }
8191
8220
  function E() {
8192
- const g = (0, Je._)`${f}.errors`;
8221
+ const g = (0, Je._)`${d}.errors`;
8193
8222
  return s.assign(g, null), k(Je.nil), g;
8194
8223
  }
8195
8224
  function k(g = e.async ? (0, Je._)`await ` : Je.nil) {
8196
8225
  const I = l.opts.passContext ? rr.default.this : rr.default.self, D = !("compile" in e && !o || e.schema === !1);
8197
- s.assign(p, (0, Je._)`${g}${(0, fc.callValidateCode)(t, f, I, D)}`, e.modifying);
8226
+ s.assign(p, (0, Je._)`${g}${(0, fc.callValidateCode)(t, d, I, D)}`, e.modifying);
8198
8227
  }
8199
8228
  function _(g) {
8200
8229
  var I;
@@ -8277,8 +8306,8 @@ function $c(t, e, { dataProp: r, dataPropType: s, data: n, dataTypes: a, propert
8277
8306
  throw new Error('both "data" and "dataProp" passed, only one allowed');
8278
8307
  const { gen: o } = e;
8279
8308
  if (r !== void 0) {
8280
- const { errorPath: c, dataPathArr: f, opts: p } = e, T = o.let("data", (0, Ct._)`${e.data}${(0, Ct.getProperty)(r)}`, !0);
8281
- l(T), t.errorPath = (0, Ct.str)`${c}${(0, Bo.getErrorPath)(r, s, p.jsPropertySyntax)}`, t.parentDataProperty = (0, Ct._)`${r}`, t.dataPathArr = [...f, t.parentDataProperty];
8309
+ const { errorPath: c, dataPathArr: d, opts: p } = e, T = o.let("data", (0, Ct._)`${e.data}${(0, Ct.getProperty)(r)}`, !0);
8310
+ l(T), t.errorPath = (0, Ct.str)`${c}${(0, Bo.getErrorPath)(r, s, p.jsPropertySyntax)}`, t.parentDataProperty = (0, Ct._)`${r}`, t.dataPathArr = [...d, t.parentDataProperty];
8282
8311
  }
8283
8312
  if (n !== void 0) {
8284
8313
  const c = n instanceof Ct.Name ? n : o.let("data", n, !0);
@@ -8382,18 +8411,18 @@ qt.skipKeywords = {
8382
8411
  function fs(t, e, r, s, n, a, i, o, l, c) {
8383
8412
  if (s && typeof s == "object" && !Array.isArray(s)) {
8384
8413
  e(s, n, a, i, o, l, c);
8385
- for (var f in s) {
8386
- var p = s[f];
8414
+ for (var d in s) {
8415
+ var p = s[d];
8387
8416
  if (Array.isArray(p)) {
8388
- if (f in qt.arrayKeywords)
8417
+ if (d in qt.arrayKeywords)
8389
8418
  for (var T = 0; T < p.length; T++)
8390
- fs(t, e, r, p[T], n + "/" + f + "/" + T, a, n, f, s, T);
8391
- } else if (f in qt.propsKeywords) {
8419
+ fs(t, e, r, p[T], n + "/" + d + "/" + T, a, n, d, s, T);
8420
+ } else if (d in qt.propsKeywords) {
8392
8421
  if (p && typeof p == "object")
8393
8422
  for (var S in p)
8394
- fs(t, e, r, p[S], n + "/" + f + "/" + Ec(S), a, n, f, s, S);
8423
+ fs(t, e, r, p[S], n + "/" + d + "/" + Ec(S), a, n, d, s, S);
8395
8424
  } else
8396
- (f in qt.keywords || t.allKeys && !(f in qt.skipKeywords)) && fs(t, e, r, p, n + "/" + f, a, n, f, s);
8425
+ (d in qt.keywords || t.allKeys && !(d in qt.skipKeywords)) && fs(t, e, r, p, n + "/" + d, a, n, d, s);
8397
8426
  }
8398
8427
  r(s, n, a, i, o, l, c);
8399
8428
  }
@@ -8486,7 +8515,7 @@ function Rc(t, e) {
8486
8515
  function g(D) {
8487
8516
  const A = this.opts.uriResolver.resolve;
8488
8517
  if (D = _r(_ ? A(_, D) : D), l.has(D))
8489
- throw f(D);
8518
+ throw d(D);
8490
8519
  l.add(D);
8491
8520
  let b = this.refs[D];
8492
8521
  return typeof b == "string" && (b = this.refs[b]), typeof b == "object" ? c(p, b.schema, D) : D !== _r(k) && (D[0] === "#" ? (c(p, o[D], D), o[D] = p) : this.refs[D] = k), D;
@@ -8501,15 +8530,15 @@ function Rc(t, e) {
8501
8530
  }), o;
8502
8531
  function c(p, T, S) {
8503
8532
  if (T !== void 0 && !Cc(p, T))
8504
- throw f(S);
8533
+ throw d(S);
8505
8534
  }
8506
- function f(p) {
8535
+ function d(p) {
8507
8536
  return new Error(`reference "${p}" resolves to more than one schema`);
8508
8537
  }
8509
8538
  }
8510
8539
  qe.getSchemaRefs = Rc;
8511
- Object.defineProperty(yt, "__esModule", { value: !0 });
8512
- yt.getData = yt.KeywordCxt = yt.validateFunctionCode = void 0;
8540
+ Object.defineProperty(vt, "__esModule", { value: !0 });
8541
+ vt.getData = vt.KeywordCxt = vt.validateFunctionCode = void 0;
8513
8542
  const Ko = br, Ii = Ve, On = Ft, bs = Ve, Fc = Is, jr = Ot, Ys = Ht, W = le, re = It, Mc = qe, Mt = U, Nr = Kr;
8514
8543
  function jc(t) {
8515
8544
  if (Yo(t) && (Xo(t), Wo(t))) {
@@ -8518,7 +8547,7 @@ function jc(t) {
8518
8547
  }
8519
8548
  Go(t, () => (0, Ko.topBoolOrEmptySchema)(t));
8520
8549
  }
8521
- yt.validateFunctionCode = jc;
8550
+ vt.validateFunctionCode = jc;
8522
8551
  function Go({ gen: t, validateName: e, schema: r, schemaEnv: s, opts: n }, a) {
8523
8552
  n.code.es5 ? t.func(e, (0, W._)`${re.default.data}, ${re.default.valCxt}`, s.$async, () => {
8524
8553
  t.code((0, W._)`"use strict"; ${Di(r, n)}`), Vc(t, n), t.code(a);
@@ -8614,15 +8643,15 @@ function Yc({ gen: t, evaluated: e, props: r, items: s }) {
8614
8643
  r instanceof W.Name && t.assign((0, W._)`${e}.props`, r), s instanceof W.Name && t.assign((0, W._)`${e}.items`, s);
8615
8644
  }
8616
8645
  function Ni(t, e, r, s) {
8617
- const { gen: n, schema: a, data: i, allErrors: o, opts: l, self: c } = t, { RULES: f } = c;
8618
- if (a.$ref && (l.ignoreKeywordsWithRef || !(0, Mt.schemaHasRulesButRef)(a, f))) {
8619
- n.block(() => tu(t, "$ref", f.all.$ref.definition));
8646
+ const { gen: n, schema: a, data: i, allErrors: o, opts: l, self: c } = t, { RULES: d } = c;
8647
+ if (a.$ref && (l.ignoreKeywordsWithRef || !(0, Mt.schemaHasRulesButRef)(a, d))) {
8648
+ n.block(() => tu(t, "$ref", d.all.$ref.definition));
8620
8649
  return;
8621
8650
  }
8622
8651
  l.jtd || Xc(t, e), n.block(() => {
8623
- for (const T of f.rules)
8652
+ for (const T of d.rules)
8624
8653
  p(T);
8625
- p(f.post);
8654
+ p(d.post);
8626
8655
  });
8627
8656
  function p(T) {
8628
8657
  (0, On.shouldUseGroup)(a, T) && (T.type ? (n.if((0, bs.checkDataType)(T.type, i, l.strictNumbers)), Pi(t, T), e.length === 1 && e[0] === T.type && r && (n.else(), (0, bs.reportTypeError)(t)), n.endIf()) : Pi(t, T), o || n.if((0, W._)`${re.default.errors} === ${s || 0}`));
@@ -8779,7 +8808,7 @@ class eu {
8779
8808
  return n.if(r, () => this.mergeEvaluated(e, W.Name)), !0;
8780
8809
  }
8781
8810
  }
8782
- yt.KeywordCxt = eu;
8811
+ vt.KeywordCxt = eu;
8783
8812
  function tu(t, e, r, s) {
8784
8813
  const n = new eu(t, r, e);
8785
8814
  "code" in r ? r.code(n, s) : n.$data && r.validate ? (0, jr.funcKeywordCode)(n, r) : "macro" in r ? (0, jr.macroKeywordCode)(n, r) : (r.compile || r.validate) && (0, jr.funcKeywordCode)(n, r);
@@ -8797,15 +8826,15 @@ function ru(t, { dataLevel: e, dataNames: r, dataPathArr: s }) {
8797
8826
  const c = sd.exec(t);
8798
8827
  if (!c)
8799
8828
  throw new Error(`Invalid JSON-pointer: ${t}`);
8800
- const f = +c[1];
8829
+ const d = +c[1];
8801
8830
  if (n = c[2], n === "#") {
8802
- if (f >= e)
8803
- throw new Error(l("property/index", f));
8804
- return s[e - f];
8831
+ if (d >= e)
8832
+ throw new Error(l("property/index", d));
8833
+ return s[e - d];
8805
8834
  }
8806
- if (f > e)
8807
- throw new Error(l("data", f));
8808
- if (a = r[e - f], !n)
8835
+ if (d > e)
8836
+ throw new Error(l("data", d));
8837
+ if (a = r[e - d], !n)
8809
8838
  return a;
8810
8839
  }
8811
8840
  let i = a;
@@ -8813,11 +8842,11 @@ function ru(t, { dataLevel: e, dataNames: r, dataPathArr: s }) {
8813
8842
  for (const c of o)
8814
8843
  c && (a = (0, W._)`${a}${(0, W.getProperty)((0, Mt.unescapeJsonPointer)(c))}`, i = (0, W._)`${i} && ${a}`);
8815
8844
  return i;
8816
- function l(c, f) {
8817
- return `Cannot access ${c} ${f} levels up, current level is ${e}`;
8845
+ function l(c, d) {
8846
+ return `Cannot access ${c} ${d} levels up, current level is ${e}`;
8818
8847
  }
8819
8848
  }
8820
- yt.getData = ru;
8849
+ vt.getData = ru;
8821
8850
  var Gr = {};
8822
8851
  Object.defineProperty(Gr, "__esModule", { value: !0 });
8823
8852
  class nd extends Error {
@@ -8838,13 +8867,13 @@ Wr.default = ad;
8838
8867
  var et = {};
8839
8868
  Object.defineProperty(et, "__esModule", { value: !0 });
8840
8869
  et.resolveSchema = et.getCompilingSchema = et.resolveRef = et.compileSchema = et.SchemaEnv = void 0;
8841
- const pt = le, id = Gr, Qt = It, mt = qe, Ri = U, od = yt;
8870
+ const pt = le, id = Gr, Qt = It, gt = qe, Ri = U, od = vt;
8842
8871
  class Ds {
8843
8872
  constructor(e) {
8844
8873
  var r;
8845
8874
  this.refs = {}, this.dynamicAnchors = {};
8846
8875
  let s;
8847
- typeof e.schema == "object" && (s = e.schema), this.schema = e.schema, this.schemaId = e.schemaId, this.root = e.root || this, this.baseId = (r = e.baseId) !== null && r !== void 0 ? r : (0, mt.normalizeId)(s == null ? void 0 : s[e.schemaId || "$id"]), this.schemaPath = e.schemaPath, this.localRefs = e.localRefs, this.meta = e.meta, this.$async = s == null ? void 0 : s.$async, this.refs = {};
8876
+ typeof e.schema == "object" && (s = e.schema), this.schema = e.schema, this.schemaId = e.schemaId, this.root = e.root || this, this.baseId = (r = e.baseId) !== null && r !== void 0 ? r : (0, gt.normalizeId)(s == null ? void 0 : s[e.schemaId || "$id"]), this.schemaPath = e.schemaPath, this.localRefs = e.localRefs, this.meta = e.meta, this.$async = s == null ? void 0 : s.$async, this.refs = {};
8848
8877
  }
8849
8878
  }
8850
8879
  et.SchemaEnv = Ds;
@@ -8852,7 +8881,7 @@ function In(t) {
8852
8881
  const e = su.call(this, t);
8853
8882
  if (e)
8854
8883
  return e;
8855
- const r = (0, mt.getFullPath)(this.opts.uriResolver, t.root.baseId), { es5: s, lines: n } = this.opts.code, { ownProperties: a } = this.opts, i = new pt.CodeGen(this.scope, { es5: s, lines: n, ownProperties: a });
8884
+ const r = (0, gt.getFullPath)(this.opts.uriResolver, t.root.baseId), { es5: s, lines: n } = this.opts.code, { ownProperties: a } = this.opts, i = new pt.CodeGen(this.scope, { es5: s, lines: n, ownProperties: a });
8856
8885
  let o;
8857
8886
  t.$async && (o = i.scopeValue("Error", {
8858
8887
  ref: id.default,
@@ -8885,12 +8914,12 @@ function In(t) {
8885
8914
  opts: this.opts,
8886
8915
  self: this
8887
8916
  };
8888
- let f;
8917
+ let d;
8889
8918
  try {
8890
8919
  this._compilations.add(t), (0, od.validateFunctionCode)(c), i.optimize(this.opts.code.optimize);
8891
8920
  const p = i.toString();
8892
- f = `${i.scopeRefs(Qt.default.scope)}return ${p}`, this.opts.code.process && (f = this.opts.code.process(f, t));
8893
- const S = new Function(`${Qt.default.self}`, `${Qt.default.scope}`, f)(this, this.scope.get());
8921
+ d = `${i.scopeRefs(Qt.default.scope)}return ${p}`, this.opts.code.process && (d = this.opts.code.process(d, t));
8922
+ const S = new Function(`${Qt.default.self}`, `${Qt.default.scope}`, d)(this, this.scope.get());
8894
8923
  if (this.scope.value(l, { ref: S }), S.errors = null, S.schema = t.schema, S.schemaEnv = t, t.$async && (S.$async = !0), this.opts.code.source === !0 && (S.source = { validateName: l, validateCode: p, scopeValues: i._values }), this.opts.unevaluated) {
8895
8924
  const { props: E, items: k } = c;
8896
8925
  S.evaluated = {
@@ -8902,7 +8931,7 @@ function In(t) {
8902
8931
  }
8903
8932
  return t.validate = S, t;
8904
8933
  } catch (p) {
8905
- throw delete t.validate, delete t.validateName, f && this.logger.error("Error compiling schema, function code:", f), p;
8934
+ throw delete t.validate, delete t.validateName, d && this.logger.error("Error compiling schema, function code:", d), p;
8906
8935
  } finally {
8907
8936
  this._compilations.delete(t);
8908
8937
  }
@@ -8910,7 +8939,7 @@ function In(t) {
8910
8939
  et.compileSchema = In;
8911
8940
  function ud(t, e, r) {
8912
8941
  var s;
8913
- r = (0, mt.resolveUrl)(this.opts.uriResolver, e, r);
8942
+ r = (0, gt.resolveUrl)(this.opts.uriResolver, e, r);
8914
8943
  const n = t.refs[r];
8915
8944
  if (n)
8916
8945
  return n;
@@ -8924,7 +8953,7 @@ function ud(t, e, r) {
8924
8953
  }
8925
8954
  et.resolveRef = ud;
8926
8955
  function ld(t) {
8927
- return (0, mt.inlineRef)(t.schema, this.opts.inlineRefs) ? t.schema : t.validate ? t : In.call(this, t);
8956
+ return (0, gt.inlineRef)(t.schema, this.opts.inlineRefs) ? t.schema : t.validate ? t : In.call(this, t);
8928
8957
  }
8929
8958
  function su(t) {
8930
8959
  for (const e of this._compilations)
@@ -8942,19 +8971,19 @@ function dd(t, e) {
8942
8971
  return r || this.schemas[e] || Ns.call(this, t, e);
8943
8972
  }
8944
8973
  function Ns(t, e) {
8945
- const r = this.opts.uriResolver.parse(e), s = (0, mt._getFullPath)(this.opts.uriResolver, r);
8946
- let n = (0, mt.getFullPath)(this.opts.uriResolver, t.baseId, void 0);
8974
+ const r = this.opts.uriResolver.parse(e), s = (0, gt._getFullPath)(this.opts.uriResolver, r);
8975
+ let n = (0, gt.getFullPath)(this.opts.uriResolver, t.baseId, void 0);
8947
8976
  if (Object.keys(t.schema).length > 0 && s === n)
8948
8977
  return Js.call(this, r, t);
8949
- const a = (0, mt.normalizeId)(s), i = this.refs[a] || this.schemas[a];
8978
+ const a = (0, gt.normalizeId)(s), i = this.refs[a] || this.schemas[a];
8950
8979
  if (typeof i == "string") {
8951
8980
  const o = Ns.call(this, t, i);
8952
8981
  return typeof (o == null ? void 0 : o.schema) != "object" ? void 0 : Js.call(this, r, o);
8953
8982
  }
8954
8983
  if (typeof (i == null ? void 0 : i.schema) == "object") {
8955
- if (i.validate || In.call(this, i), a === (0, mt.normalizeId)(e)) {
8984
+ if (i.validate || In.call(this, i), a === (0, gt.normalizeId)(e)) {
8956
8985
  const { schema: o } = i, { schemaId: l } = this.opts, c = o[l];
8957
- return c && (n = (0, mt.resolveUrl)(this.opts.uriResolver, n, c)), new Ds({ schema: o, schemaId: l, root: t, baseId: n });
8986
+ return c && (n = (0, gt.resolveUrl)(this.opts.uriResolver, n, c)), new Ds({ schema: o, schemaId: l, root: t, baseId: n });
8958
8987
  }
8959
8988
  return Js.call(this, r, i);
8960
8989
  }
@@ -8979,11 +9008,11 @@ function Js(t, { baseId: e, schema: r, root: s }) {
8979
9008
  return;
8980
9009
  r = l;
8981
9010
  const c = typeof r == "object" && r[this.opts.schemaId];
8982
- !fd.has(o) && c && (e = (0, mt.resolveUrl)(this.opts.uriResolver, e, c));
9011
+ !fd.has(o) && c && (e = (0, gt.resolveUrl)(this.opts.uriResolver, e, c));
8983
9012
  }
8984
9013
  let a;
8985
9014
  if (typeof r != "boolean" && r.$ref && !(0, Ri.schemaHasRulesButRef)(r, this.RULES)) {
8986
- const o = (0, mt.resolveUrl)(this.opts.uriResolver, e, r.$ref);
9015
+ const o = (0, gt.resolveUrl)(this.opts.uriResolver, e, r.$ref);
8987
9016
  a = Ns.call(this, s, o);
8988
9017
  }
8989
9018
  const { schemaId: i } = this.opts;
@@ -9051,7 +9080,7 @@ var Dn = {}, ln = { exports: {} };
9051
9080
  function c($) {
9052
9081
  var m = "[A-Za-z]", w = "[0-9]", M = s(w, "[A-Fa-f]"), F = n(n("%[EFef]" + M + "%" + M + M + "%" + M + M) + "|" + n("%[89A-Fa-f]" + M + "%" + M + M) + "|" + n("%" + M + M)), Y = "[\\:\\/\\?\\#\\[\\]\\@]", J = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", me = s(Y, J), we = $ ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", Pe = $ ? "[\\uE000-\\uF8FF]" : "[]", pe = s(m, w, "[\\-\\.\\_\\~]", we);
9053
9082
  n(m + s(m, w, "[\\+\\-\\.]") + "*"), n(n(F + "|" + s(pe, J, "[\\:]")) + "*");
9054
- var ke = n(n("25[0-5]") + "|" + n("2[0-4]" + w) + "|" + n("1" + w + w) + "|" + n("0?[1-9]" + w) + "|0?0?" + w), Re = n(ke + "\\." + ke + "\\." + ke + "\\." + ke), ne = n(M + "{1,4}"), Te = n(n(ne + "\\:" + ne) + "|" + Re), Me = n(n(ne + "\\:") + "{6}" + Te), Oe = n("\\:\\:" + n(ne + "\\:") + "{5}" + Te), Vt = n(n(ne) + "?\\:\\:" + n(ne + "\\:") + "{4}" + Te), $t = n(n(n(ne + "\\:") + "{0,1}" + ne) + "?\\:\\:" + n(ne + "\\:") + "{3}" + Te), St = n(n(n(ne + "\\:") + "{0,2}" + ne) + "?\\:\\:" + n(ne + "\\:") + "{2}" + Te), dr = n(n(n(ne + "\\:") + "{0,3}" + ne) + "?\\:\\:" + ne + "\\:" + Te), Xt = n(n(n(ne + "\\:") + "{0,4}" + ne) + "?\\:\\:" + Te), ot = n(n(n(ne + "\\:") + "{0,5}" + ne) + "?\\:\\:" + ne), Et = n(n(n(ne + "\\:") + "{0,6}" + ne) + "?\\:\\:"), Jt = n([Me, Oe, Vt, $t, St, dr, Xt, ot, Et].join("|")), Dt = n(n(pe + "|" + F) + "+");
9083
+ var ke = n(n("25[0-5]") + "|" + n("2[0-4]" + w) + "|" + n("1" + w + w) + "|" + n("0?[1-9]" + w) + "|0?0?" + w), Re = n(ke + "\\." + ke + "\\." + ke + "\\." + ke), ne = n(M + "{1,4}"), Te = n(n(ne + "\\:" + ne) + "|" + Re), Me = n(n(ne + "\\:") + "{6}" + Te), Oe = n("\\:\\:" + n(ne + "\\:") + "{5}" + Te), Vt = n(n(ne) + "?\\:\\:" + n(ne + "\\:") + "{4}" + Te), St = n(n(n(ne + "\\:") + "{0,1}" + ne) + "?\\:\\:" + n(ne + "\\:") + "{3}" + Te), Et = n(n(n(ne + "\\:") + "{0,2}" + ne) + "?\\:\\:" + n(ne + "\\:") + "{2}" + Te), dr = n(n(n(ne + "\\:") + "{0,3}" + ne) + "?\\:\\:" + ne + "\\:" + Te), Xt = n(n(n(ne + "\\:") + "{0,4}" + ne) + "?\\:\\:" + Te), ut = n(n(n(ne + "\\:") + "{0,5}" + ne) + "?\\:\\:" + ne), kt = n(n(n(ne + "\\:") + "{0,6}" + ne) + "?\\:\\:"), Jt = n([Me, Oe, Vt, St, Et, dr, Xt, ut, kt].join("|")), Dt = n(n(pe + "|" + F) + "+");
9055
9084
  n("[vV]" + M + "+\\." + s(pe, J, "[\\:]") + "+"), n(n(F + "|" + s(pe, J)) + "*");
9056
9085
  var Ar = n(F + "|" + s(pe, J, "[\\:\\@]"));
9057
9086
  return n(n(F + "|" + s(pe, J, "[\\@]")) + "+"), n(n(Ar + "|" + s("[\\/\\?]", Pe)) + "*"), {
@@ -9071,7 +9100,7 @@ var Dn = {}, ln = { exports: {} };
9071
9100
  //RFC 6874, with relaxed parsing rules
9072
9101
  };
9073
9102
  }
9074
- var f = c(!1), p = c(!0), T = /* @__PURE__ */ function() {
9103
+ var d = c(!1), p = c(!0), T = /* @__PURE__ */ function() {
9075
9104
  function $(m, w) {
9076
9105
  var M = [], F = !0, Y = !1, J = void 0;
9077
9106
  try {
@@ -9195,27 +9224,27 @@ var Dn = {}, ln = { exports: {} };
9195
9224
  }
9196
9225
  var ne = w.length, Te = ne;
9197
9226
  for (ne && w.push(x); Te < M; ) {
9198
- var Me = E, Oe = !0, Vt = !1, $t = void 0;
9227
+ var Me = E, Oe = !0, Vt = !1, St = void 0;
9199
9228
  try {
9200
- for (var St = m[Symbol.iterator](), dr; !(Oe = (dr = St.next()).done); Oe = !0) {
9229
+ for (var Et = m[Symbol.iterator](), dr; !(Oe = (dr = Et.next()).done); Oe = !0) {
9201
9230
  var Xt = dr.value;
9202
9231
  Xt >= F && Xt < Me && (Me = Xt);
9203
9232
  }
9204
9233
  } catch (Ir) {
9205
- Vt = !0, $t = Ir;
9234
+ Vt = !0, St = Ir;
9206
9235
  } finally {
9207
9236
  try {
9208
- !Oe && St.return && St.return();
9237
+ !Oe && Et.return && Et.return();
9209
9238
  } finally {
9210
9239
  if (Vt)
9211
- throw $t;
9240
+ throw St;
9212
9241
  }
9213
9242
  }
9214
- var ot = Te + 1;
9215
- Me - F > K((E - Y) / ot) && G("overflow"), Y += (Me - F) * ot, F = Me;
9216
- var Et = !0, Jt = !1, Dt = void 0;
9243
+ var ut = Te + 1;
9244
+ Me - F > K((E - Y) / ut) && G("overflow"), Y += (Me - F) * ut, F = Me;
9245
+ var kt = !0, Jt = !1, Dt = void 0;
9217
9246
  try {
9218
- for (var Ar = m[Symbol.iterator](), ya; !(Et = (ya = Ar.next()).done); Et = !0) {
9247
+ for (var Ar = m[Symbol.iterator](), ya; !(kt = (ya = Ar.next()).done); kt = !0) {
9219
9248
  var va = ya.value;
9220
9249
  if (va < F && ++Y > E && G("overflow"), va == F) {
9221
9250
  for (
@@ -9230,14 +9259,14 @@ var Dn = {}, ln = { exports: {} };
9230
9259
  var _a = Jr - Qr, ba = k - Qr;
9231
9260
  w.push(se(O(Qr + _a % ba, 0))), Jr = K(_a / ba);
9232
9261
  }
9233
- w.push(se(O(Jr, 0))), J = y(Y, ot, Te == ne), Y = 0, ++Te;
9262
+ w.push(se(O(Jr, 0))), J = y(Y, ut, Te == ne), Y = 0, ++Te;
9234
9263
  }
9235
9264
  }
9236
9265
  } catch (Ir) {
9237
9266
  Jt = !0, Dt = Ir;
9238
9267
  } finally {
9239
9268
  try {
9240
- !Et && Ar.return && Ar.return();
9269
+ !kt && Ar.return && Ar.return();
9241
9270
  } finally {
9242
9271
  if (Jt)
9243
9272
  throw Dt;
@@ -9250,7 +9279,7 @@ var Dn = {}, ln = { exports: {} };
9250
9279
  return ye(m, function(w) {
9251
9280
  return V.test(w) ? R(w.slice(4).toLowerCase()) : w;
9252
9281
  });
9253
- }, d = function(m) {
9282
+ }, f = function(m) {
9254
9283
  return ye(m, function(w) {
9255
9284
  return Q.test(w) ? "xn--" + C(w) : w;
9256
9285
  });
@@ -9274,7 +9303,7 @@ var Dn = {}, ln = { exports: {} };
9274
9303
  },
9275
9304
  decode: R,
9276
9305
  encode: C,
9277
- toASCII: d,
9306
+ toASCII: f,
9278
9307
  toUnicode: u
9279
9308
  }, N = {};
9280
9309
  function j($) {
@@ -9325,27 +9354,27 @@ var Dn = {}, ln = { exports: {} };
9325
9354
  for (var J = F.toLowerCase().split("::").reverse(), me = T(J, 2), we = me[0], Pe = me[1], pe = Pe ? Pe.split(":").map(ee) : [], ke = we.split(":").map(ee), Re = m.IPV4ADDRESS.test(ke[ke.length - 1]), ne = Re ? 7 : 8, Te = ke.length - ne, Me = Array(ne), Oe = 0; Oe < ne; ++Oe)
9326
9355
  Me[Oe] = pe[Oe] || ke[Te + Oe] || "";
9327
9356
  Re && (Me[ne - 1] = z(Me[ne - 1], m));
9328
- var Vt = Me.reduce(function(ot, Et, Jt) {
9329
- if (!Et || Et === "0") {
9330
- var Dt = ot[ot.length - 1];
9331
- Dt && Dt.index + Dt.length === Jt ? Dt.length++ : ot.push({ index: Jt, length: 1 });
9357
+ var Vt = Me.reduce(function(ut, kt, Jt) {
9358
+ if (!kt || kt === "0") {
9359
+ var Dt = ut[ut.length - 1];
9360
+ Dt && Dt.index + Dt.length === Jt ? Dt.length++ : ut.push({ index: Jt, length: 1 });
9332
9361
  }
9333
- return ot;
9334
- }, []), $t = Vt.sort(function(ot, Et) {
9335
- return Et.length - ot.length;
9336
- })[0], St = void 0;
9337
- if ($t && $t.length > 1) {
9338
- var dr = Me.slice(0, $t.index), Xt = Me.slice($t.index + $t.length);
9339
- St = dr.join(":") + "::" + Xt.join(":");
9362
+ return ut;
9363
+ }, []), St = Vt.sort(function(ut, kt) {
9364
+ return kt.length - ut.length;
9365
+ })[0], Et = void 0;
9366
+ if (St && St.length > 1) {
9367
+ var dr = Me.slice(0, St.index), Xt = Me.slice(St.index + St.length);
9368
+ Et = dr.join(":") + "::" + Xt.join(":");
9340
9369
  } else
9341
- St = Me.join(":");
9342
- return Y && (St += "%" + Y), St;
9370
+ Et = Me.join(":");
9371
+ return Y && (Et += "%" + Y), Et;
9343
9372
  } else
9344
9373
  return $;
9345
9374
  }
9346
9375
  var Xe = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i, tt = "".match(/(){0}/)[1] === void 0;
9347
9376
  function ie($) {
9348
- var m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, w = {}, M = m.iri !== !1 ? p : f;
9377
+ var m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, w = {}, M = m.iri !== !1 ? p : d;
9349
9378
  m.reference === "suffix" && ($ = (m.scheme ? m.scheme + ":" : "") + "//" + $);
9350
9379
  var F = $.match(Xe);
9351
9380
  if (F) {
@@ -9358,7 +9387,7 @@ var Dn = {}, ln = { exports: {} };
9358
9387
  } catch (J) {
9359
9388
  w.error = w.error || "Host's domain name can not be converted to ASCII via punycode: " + J;
9360
9389
  }
9361
- L(w, f);
9390
+ L(w, d);
9362
9391
  } else
9363
9392
  L(w, M);
9364
9393
  Y && Y.parse && Y.parse(w, m);
@@ -9366,14 +9395,14 @@ var Dn = {}, ln = { exports: {} };
9366
9395
  w.error = w.error || "URI can not be parsed.";
9367
9396
  return w;
9368
9397
  }
9369
- function vt($, m) {
9370
- var w = m.iri !== !1 ? p : f, M = [];
9398
+ function _t($, m) {
9399
+ var w = m.iri !== !1 ? p : d, M = [];
9371
9400
  return $.userinfo !== void 0 && (M.push($.userinfo), M.push("@")), $.host !== void 0 && M.push(he(z(String($.host), w), w).replace(w.IPV6ADDRESS, function(F, Y, J) {
9372
9401
  return "[" + Y + (J ? "%25" + J : "") + "]";
9373
9402
  })), (typeof $.port == "number" || typeof $.port == "string") && (M.push(":"), M.push(String($.port))), M.length ? M.join("") : void 0;
9374
9403
  }
9375
9404
  var rt = /^\.\.?\//, xt = /^\/\.(\/|$)/, ur = /^\/\.\.(\/|$)/, wr = /^\/?(?:.|\n)*?(?=\/|$)/;
9376
- function _t($) {
9405
+ function bt($) {
9377
9406
  for (var m = []; $.length; )
9378
9407
  if ($.match(rt))
9379
9408
  $ = $.replace(rt, "");
@@ -9394,7 +9423,7 @@ var Dn = {}, ln = { exports: {} };
9394
9423
  return m.join("");
9395
9424
  }
9396
9425
  function Ze($) {
9397
- var m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, w = m.iri ? p : f, M = [], F = N[(m.scheme || $.scheme || "").toLowerCase()];
9426
+ var m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, w = m.iri ? p : d, M = [], F = N[(m.scheme || $.scheme || "").toLowerCase()];
9398
9427
  if (F && F.serialize && F.serialize($, m), $.host && !w.IPV6ADDRESS.test($.host)) {
9399
9428
  if (m.domainHost || F && F.domainHost)
9400
9429
  try {
@@ -9404,16 +9433,16 @@ var Dn = {}, ln = { exports: {} };
9404
9433
  }
9405
9434
  }
9406
9435
  L($, w), m.reference !== "suffix" && $.scheme && (M.push($.scheme), M.push(":"));
9407
- var Y = vt($, m);
9436
+ var Y = _t($, m);
9408
9437
  if (Y !== void 0 && (m.reference !== "suffix" && M.push("//"), M.push(Y), $.path && $.path.charAt(0) !== "/" && M.push("/")), $.path !== void 0) {
9409
9438
  var J = $.path;
9410
- !m.absolutePath && (!F || !F.absolutePath) && (J = _t(J)), Y === void 0 && (J = J.replace(/^\/\//, "/%2F")), M.push(J);
9439
+ !m.absolutePath && (!F || !F.absolutePath) && (J = bt(J)), Y === void 0 && (J = J.replace(/^\/\//, "/%2F")), M.push(J);
9411
9440
  }
9412
9441
  return $.query !== void 0 && (M.push("?"), M.push($.query)), $.fragment !== void 0 && (M.push("#"), M.push($.fragment)), M.join("");
9413
9442
  }
9414
9443
  function lr($, m) {
9415
9444
  var w = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, M = arguments[3], F = {};
9416
- return M || ($ = ie(Ze($, w), w), m = ie(Ze(m, w), w)), w = w || {}, !w.tolerant && m.scheme ? (F.scheme = m.scheme, F.userinfo = m.userinfo, F.host = m.host, F.port = m.port, F.path = _t(m.path || ""), F.query = m.query) : (m.userinfo !== void 0 || m.host !== void 0 || m.port !== void 0 ? (F.userinfo = m.userinfo, F.host = m.host, F.port = m.port, F.path = _t(m.path || ""), F.query = m.query) : (m.path ? (m.path.charAt(0) === "/" ? F.path = _t(m.path) : (($.userinfo !== void 0 || $.host !== void 0 || $.port !== void 0) && !$.path ? F.path = "/" + m.path : $.path ? F.path = $.path.slice(0, $.path.lastIndexOf("/") + 1) + m.path : F.path = m.path, F.path = _t(F.path)), F.query = m.query) : (F.path = $.path, m.query !== void 0 ? F.query = m.query : F.query = $.query), F.userinfo = $.userinfo, F.host = $.host, F.port = $.port), F.scheme = $.scheme), F.fragment = m.fragment, F;
9445
+ return M || ($ = ie(Ze($, w), w), m = ie(Ze(m, w), w)), w = w || {}, !w.tolerant && m.scheme ? (F.scheme = m.scheme, F.userinfo = m.userinfo, F.host = m.host, F.port = m.port, F.path = bt(m.path || ""), F.query = m.query) : (m.userinfo !== void 0 || m.host !== void 0 || m.port !== void 0 ? (F.userinfo = m.userinfo, F.host = m.host, F.port = m.port, F.path = bt(m.path || ""), F.query = m.query) : (m.path ? (m.path.charAt(0) === "/" ? F.path = bt(m.path) : (($.userinfo !== void 0 || $.host !== void 0 || $.port !== void 0) && !$.path ? F.path = "/" + m.path : $.path ? F.path = $.path.slice(0, $.path.lastIndexOf("/") + 1) + m.path : F.path = m.path, F.path = bt(F.path)), F.query = m.query) : (F.path = $.path, m.query !== void 0 ? F.query = m.query : F.query = $.query), F.userinfo = $.userinfo, F.host = $.host, F.port = $.port), F.scheme = $.scheme), F.fragment = m.fragment, F;
9417
9446
  }
9418
9447
  function Cr($, m, w) {
9419
9448
  var M = l({ scheme: "null" }, w);
@@ -9426,10 +9455,10 @@ var Dn = {}, ln = { exports: {} };
9426
9455
  return typeof $ == "string" ? $ = Ze(ie($, w), w) : a($) === "object" && ($ = Ze($, w)), typeof m == "string" ? m = Ze(ie(m, w), w) : a(m) === "object" && (m = Ze(m, w)), $ === m;
9427
9456
  }
9428
9457
  function Xr($, m) {
9429
- return $ && $.toString().replace(!m || !m.iri ? f.ESCAPE : p.ESCAPE, j);
9458
+ return $ && $.toString().replace(!m || !m.iri ? d.ESCAPE : p.ESCAPE, j);
9430
9459
  }
9431
- function it($, m) {
9432
- return $ && $.toString().replace(!m || !m.iri ? f.PCT_ENCODED : p.PCT_ENCODED, B);
9460
+ function ot($, m) {
9461
+ return $ && $.toString().replace(!m || !m.iri ? d.PCT_ENCODED : p.PCT_ENCODED, B);
9433
9462
  }
9434
9463
  var Yt = {
9435
9464
  scheme: "http",
@@ -9469,7 +9498,7 @@ var Dn = {}, ln = { exports: {} };
9469
9498
  domainHost: Or.domainHost,
9470
9499
  parse: Or.parse,
9471
9500
  serialize: Or.serialize
9472
- }, vu = {}, fa = "[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]", bt = "[0-9A-Fa-f]", _u = n(n("%[EFef]" + bt + "%" + bt + bt + "%" + bt + bt) + "|" + n("%[89A-Fa-f]" + bt + "%" + bt + bt) + "|" + n("%" + bt + bt)), bu = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]", $u = "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]", Su = s($u, '[\\"\\\\]'), Eu = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]", ku = new RegExp(fa, "g"), cr = new RegExp(_u, "g"), wu = new RegExp(s("[^]", bu, "[\\.]", '[\\"]', Su), "g"), pa = new RegExp(s("[^]", fa, Eu), "g"), Cu = pa;
9501
+ }, vu = {}, fa = "[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]", $t = "[0-9A-Fa-f]", _u = n(n("%[EFef]" + $t + "%" + $t + $t + "%" + $t + $t) + "|" + n("%[89A-Fa-f]" + $t + "%" + $t + $t) + "|" + n("%" + $t + $t)), bu = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]", $u = "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]", Su = s($u, '[\\"\\\\]'), Eu = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]", ku = new RegExp(fa, "g"), cr = new RegExp(_u, "g"), wu = new RegExp(s("[^]", bu, "[\\.]", '[\\"]', Su), "g"), pa = new RegExp(s("[^]", fa, Eu), "g"), Cu = pa;
9473
9502
  function Fs($) {
9474
9503
  var m = B($);
9475
9504
  return m.match(ku) ? m : $;
@@ -9487,13 +9516,13 @@ var Dn = {}, ln = { exports: {} };
9487
9516
  F.push(ke[Re]);
9488
9517
  break;
9489
9518
  case "subject":
9490
- M.subject = it(pe[1], w);
9519
+ M.subject = ot(pe[1], w);
9491
9520
  break;
9492
9521
  case "body":
9493
- M.body = it(pe[1], w);
9522
+ M.body = ot(pe[1], w);
9494
9523
  break;
9495
9524
  default:
9496
- Y = !0, J[it(pe[0], w)] = it(pe[1], w);
9525
+ Y = !0, J[ot(pe[0], w)] = ot(pe[1], w);
9497
9526
  break;
9498
9527
  }
9499
9528
  }
@@ -9502,11 +9531,11 @@ var Dn = {}, ln = { exports: {} };
9502
9531
  M.query = void 0;
9503
9532
  for (var Te = 0, Me = F.length; Te < Me; ++Te) {
9504
9533
  var Oe = F[Te].split("@");
9505
- if (Oe[0] = it(Oe[0]), w.unicodeSupport)
9506
- Oe[1] = it(Oe[1], w).toLowerCase();
9534
+ if (Oe[0] = ot(Oe[0]), w.unicodeSupport)
9535
+ Oe[1] = ot(Oe[1], w).toLowerCase();
9507
9536
  else
9508
9537
  try {
9509
- Oe[1] = v.toASCII(it(Oe[1], w).toLowerCase());
9538
+ Oe[1] = v.toASCII(ot(Oe[1], w).toLowerCase());
9510
9539
  } catch (Vt) {
9511
9540
  M.error = M.error || "Email address's domain name can not be converted to ASCII via punycode: " + Vt;
9512
9541
  }
@@ -9520,7 +9549,7 @@ var Dn = {}, ln = { exports: {} };
9520
9549
  for (var Y = 0, J = F.length; Y < J; ++Y) {
9521
9550
  var me = String(F[Y]), we = me.lastIndexOf("@"), Pe = me.slice(0, we).replace(cr, Fs).replace(cr, i).replace(wu, j), pe = me.slice(we + 1);
9522
9551
  try {
9523
- pe = w.iri ? v.toUnicode(pe) : v.toASCII(it(pe, w).toLowerCase());
9552
+ pe = w.iri ? v.toUnicode(pe) : v.toASCII(ot(pe, w).toLowerCase());
9524
9553
  } catch (Te) {
9525
9554
  M.error = M.error || "Email address's domain name can not be converted to " + (w.iri ? "Unicode" : "ASCII") + " via punycode: " + Te;
9526
9555
  }
@@ -9563,7 +9592,7 @@ var Dn = {}, ln = { exports: {} };
9563
9592
  return M.nss = (m.uuid || "").toLowerCase(), M;
9564
9593
  }
9565
9594
  };
9566
- N[Yt.scheme] = Yt, N[la.scheme] = la, N[Or.scheme] = Or, N[da.scheme] = da, N[ha.scheme] = ha, N[ma.scheme] = ma, N[ga.scheme] = ga, r.SCHEMES = N, r.pctEncChar = j, r.pctDecChars = B, r.parse = ie, r.removeDotSegments = _t, r.serialize = Ze, r.resolveComponents = lr, r.resolve = Cr, r.normalize = Wt, r.equal = Tr, r.escapeComponent = Xr, r.unescapeComponent = it, Object.defineProperty(r, "__esModule", { value: !0 });
9595
+ N[Yt.scheme] = Yt, N[la.scheme] = la, N[Or.scheme] = Or, N[da.scheme] = da, N[ha.scheme] = ha, N[ma.scheme] = ma, N[ga.scheme] = ga, r.SCHEMES = N, r.pctEncChar = j, r.pctDecChars = B, r.parse = ie, r.removeDotSegments = bt, r.serialize = Ze, r.resolveComponents = lr, r.resolve = Cr, r.normalize = Wt, r.equal = Tr, r.escapeComponent = Xr, r.unescapeComponent = ot, Object.defineProperty(r, "__esModule", { value: !0 });
9567
9596
  });
9568
9597
  })(ln, ln.exports);
9569
9598
  var bd = ln.exports;
@@ -9573,7 +9602,7 @@ nu.code = 'require("ajv/dist/runtime/uri").default';
9573
9602
  Dn.default = nu;
9574
9603
  (function(t) {
9575
9604
  Object.defineProperty(t, "__esModule", { value: !0 }), t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = void 0;
9576
- var e = yt;
9605
+ var e = vt;
9577
9606
  Object.defineProperty(t, "KeywordCxt", { enumerable: !0, get: function() {
9578
9607
  return e.KeywordCxt;
9579
9608
  } });
@@ -9591,7 +9620,7 @@ Dn.default = nu;
9591
9620
  } }), Object.defineProperty(t, "CodeGen", { enumerable: !0, get: function() {
9592
9621
  return r.CodeGen;
9593
9622
  } });
9594
- const s = Gr, n = Wr, a = ir, i = et, o = le, l = qe, c = Ve, f = U, p = _d, T = Dn, S = (O, y) => new RegExp(O, y);
9623
+ const s = Gr, n = Wr, a = ir, i = et, o = le, l = qe, c = Ve, d = U, p = _d, T = Dn, S = (O, y) => new RegExp(O, y);
9595
9624
  S.code = "new RegExp";
9596
9625
  const E = ["removeAdditional", "useDefaults", "coerceTypes"], k = /* @__PURE__ */ new Set([
9597
9626
  "validate",
@@ -9629,23 +9658,23 @@ Dn.default = nu;
9629
9658
  unicode: '"minLength"/"maxLength" account for unicode characters by default.'
9630
9659
  }, I = 200;
9631
9660
  function D(O) {
9632
- var y, R, C, u, d, v, N, j, B, L, ee, z, he, Xe, tt, ie, vt, rt, xt, ur, wr, _t, Ze, lr, Cr;
9633
- const Wt = O.strict, Tr = (y = O.code) === null || y === void 0 ? void 0 : y.optimize, Xr = Tr === !0 || Tr === void 0 ? 1 : Tr || 0, it = (C = (R = O.code) === null || R === void 0 ? void 0 : R.regExp) !== null && C !== void 0 ? C : S, Yt = (u = O.uriResolver) !== null && u !== void 0 ? u : T.default;
9661
+ var y, R, C, u, f, v, N, j, B, L, ee, z, he, Xe, tt, ie, _t, rt, xt, ur, wr, bt, Ze, lr, Cr;
9662
+ const Wt = O.strict, Tr = (y = O.code) === null || y === void 0 ? void 0 : y.optimize, Xr = Tr === !0 || Tr === void 0 ? 1 : Tr || 0, ot = (C = (R = O.code) === null || R === void 0 ? void 0 : R.regExp) !== null && C !== void 0 ? C : S, Yt = (u = O.uriResolver) !== null && u !== void 0 ? u : T.default;
9634
9663
  return {
9635
- strictSchema: (v = (d = O.strictSchema) !== null && d !== void 0 ? d : Wt) !== null && v !== void 0 ? v : !0,
9664
+ strictSchema: (v = (f = O.strictSchema) !== null && f !== void 0 ? f : Wt) !== null && v !== void 0 ? v : !0,
9636
9665
  strictNumbers: (j = (N = O.strictNumbers) !== null && N !== void 0 ? N : Wt) !== null && j !== void 0 ? j : !0,
9637
9666
  strictTypes: (L = (B = O.strictTypes) !== null && B !== void 0 ? B : Wt) !== null && L !== void 0 ? L : "log",
9638
9667
  strictTuples: (z = (ee = O.strictTuples) !== null && ee !== void 0 ? ee : Wt) !== null && z !== void 0 ? z : "log",
9639
9668
  strictRequired: (Xe = (he = O.strictRequired) !== null && he !== void 0 ? he : Wt) !== null && Xe !== void 0 ? Xe : !1,
9640
- code: O.code ? { ...O.code, optimize: Xr, regExp: it } : { optimize: Xr, regExp: it },
9669
+ code: O.code ? { ...O.code, optimize: Xr, regExp: ot } : { optimize: Xr, regExp: ot },
9641
9670
  loopRequired: (tt = O.loopRequired) !== null && tt !== void 0 ? tt : I,
9642
9671
  loopEnum: (ie = O.loopEnum) !== null && ie !== void 0 ? ie : I,
9643
- meta: (vt = O.meta) !== null && vt !== void 0 ? vt : !0,
9672
+ meta: (_t = O.meta) !== null && _t !== void 0 ? _t : !0,
9644
9673
  messages: (rt = O.messages) !== null && rt !== void 0 ? rt : !0,
9645
9674
  inlineRefs: (xt = O.inlineRefs) !== null && xt !== void 0 ? xt : !0,
9646
9675
  schemaId: (ur = O.schemaId) !== null && ur !== void 0 ? ur : "$id",
9647
9676
  addUsedSchema: (wr = O.addUsedSchema) !== null && wr !== void 0 ? wr : !0,
9648
- validateSchema: (_t = O.validateSchema) !== null && _t !== void 0 ? _t : !0,
9677
+ validateSchema: (bt = O.validateSchema) !== null && bt !== void 0 ? bt : !0,
9649
9678
  validateFormats: (Ze = O.validateFormats) !== null && Ze !== void 0 ? Ze : !0,
9650
9679
  unicodeRegExp: (lr = O.unicodeRegExp) !== null && lr !== void 0 ? lr : !0,
9651
9680
  int32range: (Cr = O.int32range) !== null && Cr !== void 0 ? Cr : !0,
@@ -9692,11 +9721,11 @@ Dn.default = nu;
9692
9721
  const { loadSchema: C } = this.opts;
9693
9722
  return u.call(this, y, R);
9694
9723
  async function u(L, ee) {
9695
- await d.call(this, L.$schema);
9724
+ await f.call(this, L.$schema);
9696
9725
  const z = this._addSchema(L, ee);
9697
9726
  return z.validate || v.call(this, z);
9698
9727
  }
9699
- async function d(L) {
9728
+ async function f(L) {
9700
9729
  L && !this.getSchema(L) && await u.call(this, { $ref: L }, !0);
9701
9730
  }
9702
9731
  async function v(L) {
@@ -9714,7 +9743,7 @@ Dn.default = nu;
9714
9743
  }
9715
9744
  async function j(L) {
9716
9745
  const ee = await B.call(this, L);
9717
- this.refs[L] || await d.call(this, ee.$schema), this.refs[L] || this.addSchema(ee, L, R);
9746
+ this.refs[L] || await f.call(this, ee.$schema), this.refs[L] || this.addSchema(ee, L, R);
9718
9747
  }
9719
9748
  async function B(L) {
9720
9749
  const ee = this._loading[L];
@@ -9734,13 +9763,13 @@ Dn.default = nu;
9734
9763
  this.addSchema(v, void 0, C, u);
9735
9764
  return this;
9736
9765
  }
9737
- let d;
9766
+ let f;
9738
9767
  if (typeof y == "object") {
9739
9768
  const { schemaId: v } = this.opts;
9740
- if (d = y[v], d !== void 0 && typeof d != "string")
9769
+ if (f = y[v], f !== void 0 && typeof f != "string")
9741
9770
  throw new Error(`schema ${v} must be string`);
9742
9771
  }
9743
- return R = (0, l.normalizeId)(R || d), this._checkUnique(R), this.schemas[R] = this._addSchema(y, C, R, u, !0), this;
9772
+ return R = (0, l.normalizeId)(R || f), this._checkUnique(R), this.schemas[R] = this._addSchema(y, C, R, u, !0), this;
9744
9773
  }
9745
9774
  // Add schema that will be used to validate other schemas
9746
9775
  // options in META_IGNORE_OPTIONS are alway set to false
@@ -9758,11 +9787,11 @@ Dn.default = nu;
9758
9787
  return this.logger.warn("meta-schema not available"), this.errors = null, !0;
9759
9788
  const u = this.validate(C, y);
9760
9789
  if (!u && R) {
9761
- const d = "schema is invalid: " + this.errorsText();
9790
+ const f = "schema is invalid: " + this.errorsText();
9762
9791
  if (this.opts.validateSchema === "log")
9763
- this.logger.error(d);
9792
+ this.logger.error(f);
9764
9793
  else
9765
- throw new Error(d);
9794
+ throw new Error(f);
9766
9795
  }
9767
9796
  return u;
9768
9797
  }
@@ -9820,14 +9849,14 @@ Dn.default = nu;
9820
9849
  } else
9821
9850
  throw new Error("invalid addKeywords parameters");
9822
9851
  if (G.call(this, C, R), !R)
9823
- return (0, f.eachItem)(C, (d) => ge.call(this, d)), this;
9852
+ return (0, d.eachItem)(C, (f) => ge.call(this, f)), this;
9824
9853
  be.call(this, R);
9825
9854
  const u = {
9826
9855
  ...R,
9827
9856
  type: (0, c.getJSONTypes)(R.type),
9828
9857
  schemaType: (0, c.getJSONTypes)(R.schemaType)
9829
9858
  };
9830
- return (0, f.eachItem)(C, u.type.length === 0 ? (d) => ge.call(this, d, u) : (d) => u.type.forEach((v) => ge.call(this, d, u, v))), this;
9859
+ return (0, d.eachItem)(C, u.type.length === 0 ? (f) => ge.call(this, f, u) : (f) => u.type.forEach((v) => ge.call(this, f, u, v))), this;
9831
9860
  }
9832
9861
  getKeyword(y) {
9833
9862
  const R = this.RULES.all[y];
@@ -9838,7 +9867,7 @@ Dn.default = nu;
9838
9867
  const { RULES: R } = this;
9839
9868
  delete R.keywords[y], delete R.all[y];
9840
9869
  for (const C of R.rules) {
9841
- const u = C.rules.findIndex((d) => d.keyword === y);
9870
+ const u = C.rules.findIndex((f) => f.keyword === y);
9842
9871
  u >= 0 && C.rules.splice(u, 1);
9843
9872
  }
9844
9873
  return this;
@@ -9848,15 +9877,15 @@ Dn.default = nu;
9848
9877
  return typeof R == "string" && (R = new RegExp(R)), this.formats[y] = R, this;
9849
9878
  }
9850
9879
  errorsText(y = this.errors, { separator: R = ", ", dataVar: C = "data" } = {}) {
9851
- return !y || y.length === 0 ? "No errors" : y.map((u) => `${C}${u.instancePath} ${u.message}`).reduce((u, d) => u + R + d);
9880
+ return !y || y.length === 0 ? "No errors" : y.map((u) => `${C}${u.instancePath} ${u.message}`).reduce((u, f) => u + R + f);
9852
9881
  }
9853
9882
  $dataMetaSchema(y, R) {
9854
9883
  const C = this.RULES.all;
9855
9884
  y = JSON.parse(JSON.stringify(y));
9856
9885
  for (const u of R) {
9857
- const d = u.split("/").slice(1);
9886
+ const f = u.split("/").slice(1);
9858
9887
  let v = y;
9859
- for (const N of d)
9888
+ for (const N of f)
9860
9889
  v = v[N];
9861
9890
  for (const N in C) {
9862
9891
  const j = C[N];
@@ -9874,7 +9903,7 @@ Dn.default = nu;
9874
9903
  (!R || R.test(C)) && (typeof u == "string" ? delete y[C] : u && !u.meta && (this._cache.delete(u.schema), delete y[C]));
9875
9904
  }
9876
9905
  }
9877
- _addSchema(y, R, C, u = this.opts.validateSchema, d = this.opts.addUsedSchema) {
9906
+ _addSchema(y, R, C, u = this.opts.validateSchema, f = this.opts.addUsedSchema) {
9878
9907
  let v;
9879
9908
  const { schemaId: N } = this.opts;
9880
9909
  if (typeof y == "object")
@@ -9890,7 +9919,7 @@ Dn.default = nu;
9890
9919
  return j;
9891
9920
  C = (0, l.normalizeId)(v || C);
9892
9921
  const B = l.getSchemaRefs.call(this, y, C);
9893
- return j = new i.SchemaEnv({ schema: y, schemaId: N, meta: R, baseId: C, localRefs: B }), this._cache.set(j.schema, j), d && !C.startsWith("#") && (C && this._checkUnique(C), this.refs[C] = j), u && this.validateSchema(y, !0), j;
9922
+ return j = new i.SchemaEnv({ schema: y, schemaId: N, meta: R, baseId: C, localRefs: B }), this._cache.set(j.schema, j), f && !C.startsWith("#") && (C && this._checkUnique(C), this.refs[C] = j), u && this.validateSchema(y, !0), j;
9894
9923
  }
9895
9924
  _checkUnique(y) {
9896
9925
  if (this.schemas[y] || this.refs[y])
@@ -9914,8 +9943,8 @@ Dn.default = nu;
9914
9943
  A.ValidationError = s.default, A.MissingRefError = n.default, t.default = A;
9915
9944
  function b(O, y, R, C = "error") {
9916
9945
  for (const u in O) {
9917
- const d = u;
9918
- d in y && this.logger[C](`${R}: option ${u}. ${O[d]}`);
9946
+ const f = u;
9947
+ f in y && this.logger[C](`${R}: option ${u}. ${O[f]}`);
9919
9948
  }
9920
9949
  }
9921
9950
  function x(O) {
@@ -9969,7 +9998,7 @@ Dn.default = nu;
9969
9998
  const se = /^[a-z_$][a-z0-9_$:-]*$/i;
9970
9999
  function G(O, y) {
9971
10000
  const { RULES: R } = this;
9972
- if ((0, f.eachItem)(O, (C) => {
10001
+ if ((0, d.eachItem)(O, (C) => {
9973
10002
  if (R.keywords[C])
9974
10003
  throw new Error(`Keyword ${C} is already defined`);
9975
10004
  if (!se.test(C))
@@ -9982,9 +10011,9 @@ Dn.default = nu;
9982
10011
  const u = y == null ? void 0 : y.post;
9983
10012
  if (R && u)
9984
10013
  throw new Error('keyword with "post" flag cannot have "type"');
9985
- const { RULES: d } = this;
9986
- let v = u ? d.post : d.rules.find(({ type: j }) => j === R);
9987
- if (v || (v = { type: R, rules: [] }, d.rules.push(v)), d.keywords[O] = !0, !y)
10014
+ const { RULES: f } = this;
10015
+ let v = u ? f.post : f.rules.find(({ type: j }) => j === R);
10016
+ if (v || (v = { type: R, rules: [] }, f.rules.push(v)), f.keywords[O] = !0, !y)
9988
10017
  return;
9989
10018
  const N = {
9990
10019
  keyword: O,
@@ -9994,7 +10023,7 @@ Dn.default = nu;
9994
10023
  schemaType: (0, c.getJSONTypes)(y.schemaType)
9995
10024
  }
9996
10025
  };
9997
- y.before ? ye.call(this, v, N, y.before) : v.rules.push(N), d.all[O] = N, (C = y.implements) === null || C === void 0 || C.forEach((j) => this.addKeyword(j));
10026
+ y.before ? ye.call(this, v, N, y.before) : v.rules.push(N), f.all[O] = N, (C = y.implements) === null || C === void 0 || C.forEach((j) => this.addKeyword(j));
9998
10027
  }
9999
10028
  function ye(O, y, R) {
10000
10029
  const C = O.rules.findIndex((u) => u.keyword === R);
@@ -10030,12 +10059,12 @@ const Sd = Wr, Fi = fe, Qe = le, mr = It, Mi = et, as = U, Ed = {
10030
10059
  const { gen: e, schema: r, it: s } = t, { baseId: n, schemaEnv: a, validateName: i, opts: o, self: l } = s, { root: c } = a;
10031
10060
  if ((r === "#" || r === "#/") && n === c.baseId)
10032
10061
  return p();
10033
- const f = Mi.resolveRef.call(l, c, n, r);
10034
- if (f === void 0)
10062
+ const d = Mi.resolveRef.call(l, c, n, r);
10063
+ if (d === void 0)
10035
10064
  throw new Sd.default(s.opts.uriResolver, n, r);
10036
- if (f instanceof Mi.SchemaEnv)
10037
- return T(f);
10038
- return S(f);
10065
+ if (d instanceof Mi.SchemaEnv)
10066
+ return T(d);
10067
+ return S(d);
10039
10068
  function p() {
10040
10069
  if (a === c)
10041
10070
  return ps(t, i, a, a.$async);
@@ -10065,8 +10094,8 @@ function au(t, e) {
10065
10094
  or.getValidate = au;
10066
10095
  function ps(t, e, r, s) {
10067
10096
  const { gen: n, it: a } = t, { allErrors: i, schemaEnv: o, opts: l } = a, c = l.passContext ? mr.default.this : Qe.nil;
10068
- s ? f() : p();
10069
- function f() {
10097
+ s ? d() : p();
10098
+ function d() {
10070
10099
  if (!o.$async)
10071
10100
  throw new Error("async schema referenced by sync schema");
10072
10101
  const E = n.let("valid");
@@ -10240,7 +10269,7 @@ const Pr = fe, Br = le, Bd = U, Ld = {
10240
10269
  if (!a && r.length === 0)
10241
10270
  return;
10242
10271
  const l = r.length >= o.loopRequired;
10243
- if (i.allErrors ? c() : f(), o.strictRequired) {
10272
+ if (i.allErrors ? c() : d(), o.strictRequired) {
10244
10273
  const S = t.parentSchema.properties, { definedProperties: E } = t.it;
10245
10274
  for (const k of r)
10246
10275
  if ((S == null ? void 0 : S[k]) === void 0 && !E.has(k)) {
@@ -10255,7 +10284,7 @@ const Pr = fe, Br = le, Bd = U, Ld = {
10255
10284
  for (const S of r)
10256
10285
  (0, Pr.checkReportMissingProp)(t, S);
10257
10286
  }
10258
- function f() {
10287
+ function d() {
10259
10288
  const S = e.let("missing");
10260
10289
  if (l || a) {
10261
10290
  const E = e.let("valid", !0);
@@ -10318,8 +10347,8 @@ const Zs = Ve, ze = le, Hd = U, Kd = Yr, Gd = {
10318
10347
  if (!s && !n)
10319
10348
  return;
10320
10349
  const l = e.let("valid"), c = a.items ? (0, Zs.getSchemaTypes)(a.items) : [];
10321
- t.block$data(l, f, (0, ze._)`${i} === false`), t.ok(l);
10322
- function f() {
10350
+ t.block$data(l, d, (0, ze._)`${i} === false`), t.ok(l);
10351
+ function d() {
10323
10352
  const E = e.let("i", (0, ze._)`${r}.length`), k = e.let("j");
10324
10353
  t.setParams({ i: E, j: k }), e.assign(l, !0), e.if((0, ze._)`${E} > 1`, () => (p() ? T : S)(E, k));
10325
10354
  }
@@ -10375,18 +10404,18 @@ const Fr = le, Qd = U, ef = Yr, tf = {
10375
10404
  const o = n.length >= i.opts.loopEnum;
10376
10405
  let l;
10377
10406
  const c = () => l ?? (l = (0, Qd.useFunc)(e, ef.default));
10378
- let f;
10407
+ let d;
10379
10408
  if (o || s)
10380
- f = e.let("valid"), t.block$data(f, p);
10409
+ d = e.let("valid"), t.block$data(d, p);
10381
10410
  else {
10382
10411
  if (!Array.isArray(n))
10383
10412
  throw new Error("ajv implementation error");
10384
10413
  const S = e.const("vSchema", a);
10385
- f = (0, Fr.or)(...n.map((E, k) => T(S, k)));
10414
+ d = (0, Fr.or)(...n.map((E, k) => T(S, k)));
10386
10415
  }
10387
- t.pass(f);
10416
+ t.pass(d);
10388
10417
  function p() {
10389
- e.assign(f, !1), e.forOf("v", a, (S) => e.if((0, Fr._)`${c()}(${r}, ${S})`, () => e.assign(f, !0).break()));
10418
+ e.assign(d, !1), e.forOf("v", a, (S) => e.if((0, Fr._)`${c()}(${r}, ${S})`, () => e.assign(d, !0).break()));
10390
10419
  }
10391
10420
  function T(S, E) {
10392
10421
  const k = n[E];
@@ -10448,8 +10477,8 @@ function uu(t, e) {
10448
10477
  r.if((0, nr.not)(c), () => l(c)), t.ok(c);
10449
10478
  }
10450
10479
  function l(c) {
10451
- r.forRange("i", e.length, o, (f) => {
10452
- t.subschema({ keyword: a, dataProp: f, dataPropType: dn.Type.Num }, c), i.allErrors || r.if((0, nr.not)(c), () => r.break());
10480
+ r.forRange("i", e.length, o, (d) => {
10481
+ t.subschema({ keyword: a, dataProp: d, dataPropType: dn.Type.Num }, c), i.allErrors || r.if((0, nr.not)(c), () => r.break());
10453
10482
  });
10454
10483
  }
10455
10484
  }
@@ -10472,7 +10501,7 @@ const ji = le, hs = U, yf = fe, vf = {
10472
10501
  };
10473
10502
  function lu(t, e, r = t.schema) {
10474
10503
  const { gen: s, parentSchema: n, data: a, keyword: i, it: o } = t;
10475
- f(n), o.opts.unevaluated && r.length && o.items !== !0 && (o.items = hs.mergeEvaluated.items(s, r.length, o.items));
10504
+ d(n), o.opts.unevaluated && r.length && o.items !== !0 && (o.items = hs.mergeEvaluated.items(s, r.length, o.items));
10476
10505
  const l = s.name("valid"), c = s.const("len", (0, ji._)`${a}.length`);
10477
10506
  r.forEach((p, T) => {
10478
10507
  (0, hs.alwaysValidSchema)(o, p) || (s.if((0, ji._)`${c} > ${T}`, () => t.subschema({
@@ -10481,7 +10510,7 @@ function lu(t, e, r = t.schema) {
10481
10510
  dataProp: T
10482
10511
  }, l)), t.ok(l));
10483
10512
  });
10484
- function f(p) {
10513
+ function d(p) {
10485
10514
  const { opts: T, errSchemaPath: S } = o, E = r.length, k = E === p.minItems && (E === p.maxItems || p[e] === !1);
10486
10515
  if (T.strictTuples && !k) {
10487
10516
  const _ = `"${i}" is ${E}-tuple, but minItems or maxItems/${e} are not specified or different at path "${S}"`;
@@ -10534,7 +10563,7 @@ const ct = le, is = U, Cf = {
10534
10563
  let i, o;
10535
10564
  const { minContains: l, maxContains: c } = s;
10536
10565
  a.opts.next ? (i = l === void 0 ? 1 : l, o = c) : i = 1;
10537
- const f = e.const("len", (0, ct._)`${n}.length`);
10566
+ const d = e.const("len", (0, ct._)`${n}.length`);
10538
10567
  if (t.setParams({ min: i, max: o }), o === void 0 && i === 0) {
10539
10568
  (0, is.checkStrictMode)(a, '"minContains" == 0 without "maxContains": "contains" keyword ignored');
10540
10569
  return;
@@ -10544,8 +10573,8 @@ const ct = le, is = U, Cf = {
10544
10573
  return;
10545
10574
  }
10546
10575
  if ((0, is.alwaysValidSchema)(a, r)) {
10547
- let k = (0, ct._)`${f} >= ${i}`;
10548
- o !== void 0 && (k = (0, ct._)`${k} && ${f} <= ${o}`), t.pass(k);
10576
+ let k = (0, ct._)`${d} >= ${i}`;
10577
+ o !== void 0 && (k = (0, ct._)`${k} && ${d} <= ${o}`), t.pass(k);
10549
10578
  return;
10550
10579
  }
10551
10580
  a.items = !0;
@@ -10556,7 +10585,7 @@ const ct = le, is = U, Cf = {
10556
10585
  S(k, () => e.if(k, () => E(_)));
10557
10586
  }
10558
10587
  function S(k, _) {
10559
- e.forRange("i", 0, f, (g) => {
10588
+ e.forRange("i", 0, d, (g) => {
10560
10589
  t.subschema({
10561
10590
  keyword: "contains",
10562
10591
  dataProp: g,
@@ -10576,14 +10605,14 @@ var cu = {};
10576
10605
  Object.defineProperty(t, "__esModule", { value: !0 }), t.validateSchemaDeps = t.validatePropertyDeps = t.error = void 0;
10577
10606
  const e = le, r = U, s = fe;
10578
10607
  t.error = {
10579
- message: ({ params: { property: l, depsCount: c, deps: f } }) => {
10608
+ message: ({ params: { property: l, depsCount: c, deps: d } }) => {
10580
10609
  const p = c === 1 ? "property" : "properties";
10581
- return (0, e.str)`must have ${p} ${f} when property ${l} is present`;
10610
+ return (0, e.str)`must have ${p} ${d} when property ${l} is present`;
10582
10611
  },
10583
- params: ({ params: { property: l, depsCount: c, deps: f, missingProperty: p } }) => (0, e._)`{property: ${l},
10612
+ params: ({ params: { property: l, depsCount: c, deps: d, missingProperty: p } }) => (0, e._)`{property: ${l},
10584
10613
  missingProperty: ${p},
10585
10614
  depsCount: ${c},
10586
- deps: ${f}}`
10615
+ deps: ${d}}`
10587
10616
  // TODO change to reference
10588
10617
  };
10589
10618
  const n = {
@@ -10592,51 +10621,51 @@ var cu = {};
10592
10621
  schemaType: "object",
10593
10622
  error: t.error,
10594
10623
  code(l) {
10595
- const [c, f] = a(l);
10596
- i(l, c), o(l, f);
10624
+ const [c, d] = a(l);
10625
+ i(l, c), o(l, d);
10597
10626
  }
10598
10627
  };
10599
10628
  function a({ schema: l }) {
10600
- const c = {}, f = {};
10629
+ const c = {}, d = {};
10601
10630
  for (const p in l) {
10602
10631
  if (p === "__proto__")
10603
10632
  continue;
10604
- const T = Array.isArray(l[p]) ? c : f;
10633
+ const T = Array.isArray(l[p]) ? c : d;
10605
10634
  T[p] = l[p];
10606
10635
  }
10607
- return [c, f];
10636
+ return [c, d];
10608
10637
  }
10609
10638
  function i(l, c = l.schema) {
10610
- const { gen: f, data: p, it: T } = l;
10639
+ const { gen: d, data: p, it: T } = l;
10611
10640
  if (Object.keys(c).length === 0)
10612
10641
  return;
10613
- const S = f.let("missing");
10642
+ const S = d.let("missing");
10614
10643
  for (const E in c) {
10615
10644
  const k = c[E];
10616
10645
  if (k.length === 0)
10617
10646
  continue;
10618
- const _ = (0, s.propertyInData)(f, p, E, T.opts.ownProperties);
10647
+ const _ = (0, s.propertyInData)(d, p, E, T.opts.ownProperties);
10619
10648
  l.setParams({
10620
10649
  property: E,
10621
10650
  depsCount: k.length,
10622
10651
  deps: k.join(", ")
10623
- }), T.allErrors ? f.if(_, () => {
10652
+ }), T.allErrors ? d.if(_, () => {
10624
10653
  for (const g of k)
10625
10654
  (0, s.checkReportMissingProp)(l, g);
10626
- }) : (f.if((0, e._)`${_} && (${(0, s.checkMissingProp)(l, k, S)})`), (0, s.reportMissingProp)(l, S), f.else());
10655
+ }) : (d.if((0, e._)`${_} && (${(0, s.checkMissingProp)(l, k, S)})`), (0, s.reportMissingProp)(l, S), d.else());
10627
10656
  }
10628
10657
  }
10629
10658
  t.validatePropertyDeps = i;
10630
10659
  function o(l, c = l.schema) {
10631
- const { gen: f, data: p, keyword: T, it: S } = l, E = f.name("valid");
10660
+ const { gen: d, data: p, keyword: T, it: S } = l, E = d.name("valid");
10632
10661
  for (const k in c)
10633
- (0, r.alwaysValidSchema)(S, c[k]) || (f.if(
10634
- (0, s.propertyInData)(f, p, k, S.opts.ownProperties),
10662
+ (0, r.alwaysValidSchema)(S, c[k]) || (d.if(
10663
+ (0, s.propertyInData)(d, p, k, S.opts.ownProperties),
10635
10664
  () => {
10636
10665
  const _ = l.subschema({ keyword: T, schemaProp: k }, E);
10637
10666
  l.mergeValidEvaluated(_, E);
10638
10667
  },
10639
- () => f.var(E, !0)
10668
+ () => d.var(E, !0)
10640
10669
  // TODO var
10641
10670
  ), l.ok(E));
10642
10671
  }
@@ -10690,11 +10719,11 @@ const os = fe, ht = le, Df = It, us = U, Nf = {
10690
10719
  const { allErrors: o, opts: l } = i;
10691
10720
  if (i.props = !0, l.removeAdditional !== "all" && (0, us.alwaysValidSchema)(i, r))
10692
10721
  return;
10693
- const c = (0, os.allSchemaProperties)(s.properties), f = (0, os.allSchemaProperties)(s.patternProperties);
10722
+ const c = (0, os.allSchemaProperties)(s.properties), d = (0, os.allSchemaProperties)(s.patternProperties);
10694
10723
  p(), t.ok((0, ht._)`${a} === ${Df.default.errors}`);
10695
10724
  function p() {
10696
10725
  e.forIn("key", n, (_) => {
10697
- !c.length && !f.length ? E(_) : e.if(T(_), () => E(_));
10726
+ !c.length && !d.length ? E(_) : e.if(T(_), () => E(_));
10698
10727
  });
10699
10728
  }
10700
10729
  function T(_) {
@@ -10704,7 +10733,7 @@ const os = fe, ht = le, Df = It, us = U, Nf = {
10704
10733
  g = (0, os.isOwnProperty)(e, I, _);
10705
10734
  } else
10706
10735
  c.length ? g = (0, ht.or)(...c.map((I) => (0, ht._)`${_} === ${I}`)) : g = ht.nil;
10707
- return f.length && (g = (0, ht.or)(g, ...f.map((I) => (0, ht._)`${(0, os.usePattern)(t, I)}.test(${_})`))), (0, ht.not)(g);
10736
+ return d.length && (g = (0, ht.or)(g, ...d.map((I) => (0, ht._)`${(0, os.usePattern)(t, I)}.test(${_})`))), (0, ht.not)(g);
10708
10737
  }
10709
10738
  function S(_) {
10710
10739
  e.code((0, ht._)`delete ${n}[${_}]`);
@@ -10742,7 +10771,7 @@ const os = fe, ht = le, Df = It, us = U, Nf = {
10742
10771
  Ps.default = Pf;
10743
10772
  var Zn = {};
10744
10773
  Object.defineProperty(Zn, "__esModule", { value: !0 });
10745
- const Rf = yt, Vi = fe, Qs = U, Bi = Ps, Ff = {
10774
+ const Rf = vt, Vi = fe, Qs = U, Bi = Ps, Ff = {
10746
10775
  keyword: "properties",
10747
10776
  type: "object",
10748
10777
  schemaType: "object",
@@ -10758,11 +10787,11 @@ const Rf = yt, Vi = fe, Qs = U, Bi = Ps, Ff = {
10758
10787
  return;
10759
10788
  const l = e.name("valid");
10760
10789
  for (const p of o)
10761
- c(p) ? f(p) : (e.if((0, Vi.propertyInData)(e, n, p, a.opts.ownProperties)), f(p), a.allErrors || e.else().var(l, !0), e.endIf()), t.it.definedProperties.add(p), t.ok(l);
10790
+ c(p) ? d(p) : (e.if((0, Vi.propertyInData)(e, n, p, a.opts.ownProperties)), d(p), a.allErrors || e.else().var(l, !0), e.endIf()), t.it.definedProperties.add(p), t.ok(l);
10762
10791
  function c(p) {
10763
10792
  return a.opts.useDefaults && !a.compositeRule && r[p].default !== void 0;
10764
10793
  }
10765
- function f(p) {
10794
+ function d(p) {
10766
10795
  t.subschema({
10767
10796
  keyword: "properties",
10768
10797
  schemaProp: p,
@@ -10782,13 +10811,13 @@ const Li = fe, ls = le, zi = U, qi = U, Mf = {
10782
10811
  const { gen: e, schema: r, data: s, parentSchema: n, it: a } = t, { opts: i } = a, o = (0, Li.allSchemaProperties)(r), l = o.filter((k) => (0, zi.alwaysValidSchema)(a, r[k]));
10783
10812
  if (o.length === 0 || l.length === o.length && (!a.opts.unevaluated || a.props === !0))
10784
10813
  return;
10785
- const c = i.strictSchema && !i.allowMatchingProperties && n.properties, f = e.name("valid");
10814
+ const c = i.strictSchema && !i.allowMatchingProperties && n.properties, d = e.name("valid");
10786
10815
  a.props !== !0 && !(a.props instanceof ls.Name) && (a.props = (0, qi.evaluatedPropsToName)(e, a.props));
10787
10816
  const { props: p } = a;
10788
10817
  T();
10789
10818
  function T() {
10790
10819
  for (const k of o)
10791
- c && S(k), a.allErrors ? E(k) : (e.var(f, !0), E(k), e.if(f));
10820
+ c && S(k), a.allErrors ? E(k) : (e.var(d, !0), E(k), e.if(d));
10792
10821
  }
10793
10822
  function S(k) {
10794
10823
  for (const _ in c)
@@ -10803,7 +10832,7 @@ const Li = fe, ls = le, zi = U, qi = U, Mf = {
10803
10832
  schemaProp: k,
10804
10833
  dataProp: _,
10805
10834
  dataPropType: qi.Type.Str
10806
- }, f), a.opts.unevaluated && p !== !0 ? e.assign((0, ls._)`${p}[${_}]`, !0) : !g && !a.allErrors && e.if((0, ls.not)(f), () => e.break());
10835
+ }, d), a.opts.unevaluated && p !== !0 ? e.assign((0, ls._)`${p}[${_}]`, !0) : !g && !a.allErrors && e.if((0, ls.not)(d), () => e.break());
10807
10836
  });
10808
10837
  });
10809
10838
  }
@@ -10862,9 +10891,9 @@ const ms = le, Lf = U, zf = {
10862
10891
  const a = r, i = e.let("valid", !1), o = e.let("passing", null), l = e.name("_valid");
10863
10892
  t.setParams({ passing: o }), e.block(c), t.result(i, () => t.reset(), () => t.error(!0));
10864
10893
  function c() {
10865
- a.forEach((f, p) => {
10894
+ a.forEach((d, p) => {
10866
10895
  let T;
10867
- (0, Lf.alwaysValidSchema)(n, f) ? e.var(l, !0) : T = t.subschema({
10896
+ (0, Lf.alwaysValidSchema)(n, d) ? e.var(l, !0) : T = t.subschema({
10868
10897
  keyword: "oneOf",
10869
10898
  schemaProp: p,
10870
10899
  compositeRule: !0
@@ -10913,24 +10942,24 @@ const ks = le, fu = U, Kf = {
10913
10942
  return;
10914
10943
  const i = e.let("valid", !0), o = e.name("_valid");
10915
10944
  if (l(), t.reset(), n && a) {
10916
- const f = e.let("ifClause");
10917
- t.setParams({ ifClause: f }), e.if(o, c("then", f), c("else", f));
10945
+ const d = e.let("ifClause");
10946
+ t.setParams({ ifClause: d }), e.if(o, c("then", d), c("else", d));
10918
10947
  } else
10919
10948
  n ? e.if(o, c("then")) : e.if((0, ks.not)(o), c("else"));
10920
10949
  t.pass(i, () => t.error(!0));
10921
10950
  function l() {
10922
- const f = t.subschema({
10951
+ const d = t.subschema({
10923
10952
  keyword: "if",
10924
10953
  compositeRule: !0,
10925
10954
  createErrors: !1,
10926
10955
  allErrors: !1
10927
10956
  }, o);
10928
- t.mergeEvaluated(f);
10957
+ t.mergeEvaluated(d);
10929
10958
  }
10930
- function c(f, p) {
10959
+ function c(d, p) {
10931
10960
  return () => {
10932
- const T = t.subschema({ keyword: f }, o);
10933
- e.assign(i, o), t.mergeValidEvaluated(T, i), p ? e.assign(p, (0, ks._)`${f}`) : t.setParams({ ifClause: f });
10961
+ const T = t.subschema({ keyword: d }, o);
10962
+ e.assign(i, o), t.mergeValidEvaluated(T, i), p ? e.assign(p, (0, ks._)`${d}`) : t.setParams({ ifClause: d });
10934
10963
  };
10935
10964
  }
10936
10965
  }
@@ -10983,7 +11012,7 @@ const Fe = le, pp = {
10983
11012
  $data: !0,
10984
11013
  error: pp,
10985
11014
  code(t, e) {
10986
- const { gen: r, data: s, $data: n, schema: a, schemaCode: i, it: o } = t, { opts: l, errSchemaPath: c, schemaEnv: f, self: p } = o;
11015
+ const { gen: r, data: s, $data: n, schema: a, schemaCode: i, it: o } = t, { opts: l, errSchemaPath: c, schemaEnv: d, self: p } = o;
10987
11016
  if (!l.validateFormats)
10988
11017
  return;
10989
11018
  n ? T() : S();
@@ -10997,7 +11026,7 @@ const Fe = le, pp = {
10997
11026
  return l.strictSchema === !1 ? Fe.nil : (0, Fe._)`${i} && !${g}`;
10998
11027
  }
10999
11028
  function D() {
11000
- const A = f.$async ? (0, Fe._)`(${k}.async ? await ${g}(${s}) : ${g}(${s}))` : (0, Fe._)`${g}(${s})`, b = (0, Fe._)`(typeof ${g} == "function" ? ${A} : ${g}.test(${s}))`;
11029
+ const A = d.$async ? (0, Fe._)`(${k}.async ? await ${g}(${s}) : ${g}(${s}))` : (0, Fe._)`${g}(${s})`, b = (0, Fe._)`(typeof ${g} == "function" ? ${A} : ${g}.test(${s}))`;
11001
11030
  return (0, Fe._)`${g} && ${g} !== true && ${_} === ${e} && !${b}`;
11002
11031
  }
11003
11032
  }
@@ -11027,7 +11056,7 @@ const Fe = le, pp = {
11027
11056
  }
11028
11057
  function A() {
11029
11058
  if (typeof E == "object" && !(E instanceof RegExp) && E.async) {
11030
- if (!f.$async)
11059
+ if (!d.$async)
11031
11060
  throw new Error("async format in sync schema");
11032
11061
  return (0, Fe._)`await ${g}(${s})`;
11033
11062
  }
@@ -11095,8 +11124,8 @@ const gr = le, fn = Rs, Gi = et, Sp = U, Ep = {
11095
11124
  if (!i)
11096
11125
  throw new Error("discriminator: requires oneOf keyword");
11097
11126
  const l = e.let("valid", !1), c = e.const("tag", (0, gr._)`${r}${(0, gr.getProperty)(o)}`);
11098
- e.if((0, gr._)`typeof ${c} == "string"`, () => f(), () => t.error(!1, { discrError: fn.DiscrError.Tag, tag: c, tagName: o })), t.ok(l);
11099
- function f() {
11127
+ e.if((0, gr._)`typeof ${c} == "string"`, () => d(), () => t.error(!1, { discrError: fn.DiscrError.Tag, tag: c, tagName: o })), t.ok(l);
11128
+ function d() {
11100
11129
  const S = T();
11101
11130
  e.if(!1);
11102
11131
  for (const E in S)
@@ -11402,23 +11431,23 @@ const wp = "http://json-schema.org/draft-07/schema#", Cp = "http://json-schema.o
11402
11431
  }
11403
11432
  }
11404
11433
  e.Ajv = l, t.exports = e = l, t.exports.Ajv = l, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = l;
11405
- var c = yt;
11434
+ var c = vt;
11406
11435
  Object.defineProperty(e, "KeywordCxt", { enumerable: !0, get: function() {
11407
11436
  return c.KeywordCxt;
11408
11437
  } });
11409
- var f = le;
11438
+ var d = le;
11410
11439
  Object.defineProperty(e, "_", { enumerable: !0, get: function() {
11411
- return f._;
11440
+ return d._;
11412
11441
  } }), Object.defineProperty(e, "str", { enumerable: !0, get: function() {
11413
- return f.str;
11442
+ return d.str;
11414
11443
  } }), Object.defineProperty(e, "stringify", { enumerable: !0, get: function() {
11415
- return f.stringify;
11444
+ return d.stringify;
11416
11445
  } }), Object.defineProperty(e, "nil", { enumerable: !0, get: function() {
11417
- return f.nil;
11446
+ return d.nil;
11418
11447
  } }), Object.defineProperty(e, "Name", { enumerable: !0, get: function() {
11419
- return f.Name;
11448
+ return d.Name;
11420
11449
  } }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
11421
- return f.CodeGen;
11450
+ return d.CodeGen;
11422
11451
  } });
11423
11452
  var p = Gr;
11424
11453
  Object.defineProperty(e, "ValidationError", { enumerable: !0, get: function() {
@@ -11443,7 +11472,7 @@ var pn = { exports: {} }, hu = {};
11443
11472
  // date-time: http://tools.ietf.org/html/rfc3339#section-5.6
11444
11473
  time: e(l(!0), c),
11445
11474
  "date-time": e(T(!0), S),
11446
- "iso-time": e(l(), f),
11475
+ "iso-time": e(l(), d),
11447
11476
  "iso-date-time": e(T(), E),
11448
11477
  // duration: https://tools.ietf.org/html/rfc3339#appendix-A
11449
11478
  duration: /^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,
@@ -11488,7 +11517,7 @@ var pn = { exports: {} }, hu = {};
11488
11517
  date: e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/, i),
11489
11518
  time: e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, c),
11490
11519
  "date-time": e(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, S),
11491
- "iso-time": e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, f),
11520
+ "iso-time": e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, d),
11492
11521
  "iso-date-time": e(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, E),
11493
11522
  // uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js
11494
11523
  uri: /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,
@@ -11535,7 +11564,7 @@ var pn = { exports: {} }, hu = {};
11535
11564
  if (se && G)
11536
11565
  return se - G;
11537
11566
  }
11538
- function f(q, K) {
11567
+ function d(q, K) {
11539
11568
  if (!(q && K))
11540
11569
  return;
11541
11570
  const se = o.exec(q), G = o.exec(K);
@@ -11612,7 +11641,7 @@ var mu = {};
11612
11641
  $data: !0,
11613
11642
  error: a,
11614
11643
  code(o) {
11615
- const { gen: l, data: c, schemaCode: f, keyword: p, it: T } = o, { opts: S, self: E } = T;
11644
+ const { gen: l, data: c, schemaCode: d, keyword: p, it: T } = o, { opts: S, self: E } = T;
11616
11645
  if (!S.validateFormats)
11617
11646
  return;
11618
11647
  const k = new e.KeywordCxt(T, E.RULES.all.format.definition, "format");
@@ -11638,7 +11667,7 @@ var mu = {};
11638
11667
  o.fail$data(I(b));
11639
11668
  }
11640
11669
  function I(D) {
11641
- return (0, r._)`${D}.compare(${c}, ${f}) ${n[p].fail} 0`;
11670
+ return (0, r._)`${D}.compare(${c}, ${d}) ${n[p].fail} 0`;
11642
11671
  }
11643
11672
  },
11644
11673
  dependencies: ["format"]
@@ -11648,22 +11677,22 @@ var mu = {};
11648
11677
  })(mu);
11649
11678
  (function(t, e) {
11650
11679
  Object.defineProperty(e, "__esModule", { value: !0 });
11651
- const r = hu, s = mu, n = le, a = new n.Name("fullFormats"), i = new n.Name("fastFormats"), o = (c, f = { keywords: !0 }) => {
11652
- if (Array.isArray(f))
11653
- return l(c, f, r.fullFormats, a), c;
11654
- const [p, T] = f.mode === "fast" ? [r.fastFormats, i] : [r.fullFormats, a], S = f.formats || r.formatNames;
11655
- return l(c, S, p, T), f.keywords && (0, s.default)(c), c;
11680
+ const r = hu, s = mu, n = le, a = new n.Name("fullFormats"), i = new n.Name("fastFormats"), o = (c, d = { keywords: !0 }) => {
11681
+ if (Array.isArray(d))
11682
+ return l(c, d, r.fullFormats, a), c;
11683
+ const [p, T] = d.mode === "fast" ? [r.fastFormats, i] : [r.fullFormats, a], S = d.formats || r.formatNames;
11684
+ return l(c, S, p, T), d.keywords && (0, s.default)(c), c;
11656
11685
  };
11657
- o.get = (c, f = "full") => {
11658
- const T = (f === "fast" ? r.fastFormats : r.fullFormats)[c];
11686
+ o.get = (c, d = "full") => {
11687
+ const T = (d === "fast" ? r.fastFormats : r.fullFormats)[c];
11659
11688
  if (!T)
11660
11689
  throw new Error(`Unknown format "${c}"`);
11661
11690
  return T;
11662
11691
  };
11663
- function l(c, f, p, T) {
11692
+ function l(c, d, p, T) {
11664
11693
  var S, E;
11665
11694
  (S = (E = c.opts.code).formats) !== null && S !== void 0 || (E.formats = (0, n._)`require("ajv-formats/dist/formats").${T}`);
11666
- for (const k of f)
11695
+ for (const k of d)
11667
11696
  c.addFormat(k, p[k]);
11668
11697
  }
11669
11698
  t.exports = e = o, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = o;
@@ -11744,7 +11773,7 @@ const Up = ({
11744
11773
  const [r, s] = Z({}), [n, a] = Z({
11745
11774
  status: void 0,
11746
11775
  fields: {}
11747
- }), [i, o] = Z({}), [l, c] = Z({}), [f, p] = Z([]), [T, S] = Z({}), [E, k] = Z(void 0);
11776
+ }), [i, o] = Z({}), [l, c] = Z({}), [d, p] = Z([]), [T, S] = Z({}), [E, k] = Z(void 0);
11748
11777
  $e(() => {
11749
11778
  I();
11750
11779
  }, []), $e(() => {
@@ -11753,53 +11782,53 @@ const Up = ({
11753
11782
  }, [t]);
11754
11783
  const _ = de(
11755
11784
  (u) => {
11756
- const d = f.includes(String(u));
11757
- return e != null && e[u] ? l[u] !== (e == null ? void 0 : e[u]) || d : l[u] !== void 0 || d;
11785
+ const f = d.includes(String(u));
11786
+ return e != null && e[u] ? l[u] !== (e == null ? void 0 : e[u]) || f : l[u] !== void 0 || f;
11758
11787
  },
11759
- [f, l, e]
11788
+ [d, l, e]
11760
11789
  ), g = Ke(() => Object.keys(n.fields).map(
11761
- (d) => {
11790
+ (f) => {
11762
11791
  var v, N;
11763
- return (N = (v = n.fields) == null ? void 0 : v[d]) == null ? void 0 : N.touched;
11792
+ return (N = (v = n.fields) == null ? void 0 : v[f]) == null ? void 0 : N.touched;
11764
11793
  }
11765
- ).some((d) => d), [n]), I = de(() => {
11794
+ ).some((f) => f), [n]), I = de(() => {
11766
11795
  Object.keys(e || []).forEach((u) => {
11767
- c((d) => ({
11768
- ...d,
11796
+ c((f) => ({
11797
+ ...f,
11769
11798
  [u]: e[u]
11770
11799
  }));
11771
11800
  });
11772
11801
  }, [e]), D = de(
11773
11802
  (u) => {
11774
11803
  var N, j, B, L;
11775
- const d = ((N = u == null ? void 0 : u.target) == null ? void 0 : N.type) === "checkbox" ? (j = u == null ? void 0 : u.target) == null ? void 0 : j.checked : (B = u == null ? void 0 : u.target) == null ? void 0 : B.value, v = wi(
11804
+ const f = ((N = u == null ? void 0 : u.target) == null ? void 0 : N.type) === "checkbox" ? (j = u == null ? void 0 : u.target) == null ? void 0 : j.checked : (B = u == null ? void 0 : u.target) == null ? void 0 : B.value, v = wi(
11776
11805
  (L = u == null ? void 0 : u.target) == null ? void 0 : L.name,
11777
11806
  t
11778
11807
  );
11779
- return (v == null ? void 0 : v.type) === "number" ? Number(d) : (v == null ? void 0 : v.type) === "boolean" ? JSON.parse(String(d)) : (v == null ? void 0 : v.type) === "string" ? String(d) : d;
11808
+ return (v == null ? void 0 : v.type) === "number" ? Number(f) : (v == null ? void 0 : v.type) === "boolean" ? JSON.parse(String(f)) : (v == null ? void 0 : v.type) === "string" ? String(f) : f;
11780
11809
  },
11781
11810
  [t]
11782
11811
  ), A = de(() => {
11783
11812
  const u = {};
11784
11813
  return Object.keys(l).forEach(
11785
- (d) => {
11786
- const v = String(d).split(".");
11787
- vl(u, v, l[d]);
11814
+ (f) => {
11815
+ const v = String(f).split(".");
11816
+ vl(u, v, l[f]);
11788
11817
  }
11789
11818
  ), { ...u, toJson: () => JSON.stringify(u) };
11790
11819
  }, [l]), b = de(() => {
11791
11820
  if (!E)
11792
11821
  return { result: null, errors: void 0 };
11793
- const { ...u } = A(), d = E.compile(t), v = d(u), N = ki(d);
11822
+ const { ...u } = A(), f = E.compile(t), v = f(u), N = ki(f);
11794
11823
  return { result: v, errors: N };
11795
11824
  }, [E, A, t]), x = de(
11796
- (u, d) => {
11825
+ (u, f) => {
11797
11826
  if (!E)
11798
11827
  return { result: null, errors: void 0 };
11799
11828
  const v = E.getSchema(u);
11800
11829
  if (!v)
11801
11830
  return { result: null };
11802
- const N = v(d);
11831
+ const N = v(f);
11803
11832
  if (!(v != null && v.errors))
11804
11833
  return { status: N, errors: {} };
11805
11834
  const j = ki(v, u);
@@ -11808,8 +11837,8 @@ const Up = ({
11808
11837
  [E]
11809
11838
  ), V = de(
11810
11839
  (u) => {
11811
- const d = { [u.target.name]: u }, v = { ...n };
11812
- v == null || delete v.fields[u.target.name], a(v), s((B) => ({ ...B, ...d }));
11840
+ const f = { [u.target.name]: u }, v = { ...n };
11841
+ v == null || delete v.fields[u.target.name], a(v), s((B) => ({ ...B, ...f }));
11813
11842
  const N = D(u), j = { [u.target.name]: N };
11814
11843
  c((B) => ({
11815
11844
  ...B,
@@ -11818,27 +11847,27 @@ const Up = ({
11818
11847
  },
11819
11848
  [n, D]
11820
11849
  ), Q = de(
11821
- (u, d) => {
11822
- const v = { [u]: d };
11850
+ (u, f) => {
11851
+ const v = { [u]: f };
11823
11852
  o((N) => ({ ...N, ...v }));
11824
11853
  },
11825
11854
  []
11826
11855
  ), H = de(
11827
- (u, d) => {
11828
- const v = { [u]: d };
11856
+ (u, f) => {
11857
+ const v = { [u]: f };
11829
11858
  c((N) => ({ ...N, ...v }));
11830
11859
  },
11831
11860
  []
11832
11861
  ), ce = de(
11833
11862
  ({ touched: u }) => {
11834
- const { errors: d } = b(), v = Object.keys(l).reduce(
11863
+ const { errors: f } = b(), v = Object.keys(l).reduce(
11835
11864
  (j, B) => ({ ...j, [B]: { status: !0 } }),
11836
11865
  {}
11837
11866
  ), N = {
11838
- status: !d,
11867
+ status: !f,
11839
11868
  fields: {
11840
11869
  ...v,
11841
- ...d
11870
+ ...f
11842
11871
  }
11843
11872
  };
11844
11873
  return Object.keys(N == null ? void 0 : N.fields).forEach(
@@ -11851,12 +11880,12 @@ const Up = ({
11851
11880
  },
11852
11881
  [l, b]
11853
11882
  ), q = de(
11854
- (u) => Object.keys(l).filter((d) => d.split(".").includes(u) || d === u).reduce((d, v) => ({ ...d, [v]: { status: !0 } }), {}),
11883
+ (u) => Object.keys(l).filter((f) => f.split(".").includes(u) || f === u).reduce((f, v) => ({ ...f, [v]: { status: !0 } }), {}),
11855
11884
  [l]
11856
11885
  ), K = de(
11857
- (u, d) => {
11886
+ (u, f) => {
11858
11887
  Object.keys(n.fields).forEach((j) => {
11859
- new RegExp(`(\\.|^)${d}(\\.|$)`).test(j) && delete n.fields[j];
11888
+ new RegExp(`(\\.|^)${f}(\\.|$)`).test(j) && delete n.fields[j];
11860
11889
  });
11861
11890
  const v = {
11862
11891
  ...n.fields,
@@ -11872,8 +11901,8 @@ const Up = ({
11872
11901
  },
11873
11902
  [n.fields]
11874
11903
  ), se = de(
11875
- (u, d, v = {}) => {
11876
- const { touched: N } = v, j = x(u, d), B = q(u);
11904
+ (u, f, v = {}) => {
11905
+ const { touched: N } = v, j = x(u, f), B = q(u);
11877
11906
  if (j.status === null)
11878
11907
  return console.warn(`Cannot find schemaID: ${u}`), j;
11879
11908
  const L = {
@@ -11898,11 +11927,11 @@ const Up = ({
11898
11927
  q
11899
11928
  ]
11900
11929
  ), G = de((u) => {
11901
- p((d) => [...d, u]);
11930
+ p((f) => [...f, u]);
11902
11931
  }, []), ge = de(
11903
11932
  (u) => {
11904
- var d, v, N, j, B;
11905
- return (d = n == null ? void 0 : n.fields[u]) != null && d.touched && ((v = n == null ? void 0 : n.fields[u]) != null && v.status) ? { status: "", message: "" } : (N = n == null ? void 0 : n.fields[u]) != null && N.touched && !((j = n == null ? void 0 : n.fields[u]) != null && j.status) ? {
11933
+ var f, v, N, j, B;
11934
+ return (f = n == null ? void 0 : n.fields[u]) != null && f.touched && ((v = n == null ? void 0 : n.fields[u]) != null && v.status) ? { status: "", message: "" } : (N = n == null ? void 0 : n.fields[u]) != null && N.touched && !((j = n == null ? void 0 : n.fields[u]) != null && j.status) ? {
11906
11935
  status: "error",
11907
11936
  message: (B = n == null ? void 0 : n.fields[u]) == null ? void 0 : B.message
11908
11937
  } : { status: "", message: "" };
@@ -11910,14 +11939,14 @@ const Up = ({
11910
11939
  [n == null ? void 0 : n.fields]
11911
11940
  ), ye = de(
11912
11941
  (u) => {
11913
- const { status: d } = ge(u);
11914
- return d;
11942
+ const { status: f } = ge(u);
11943
+ return f;
11915
11944
  },
11916
11945
  [ge]
11917
11946
  ), be = de(
11918
11947
  (u) => {
11919
- const { message: d } = ge(u);
11920
- return d;
11948
+ const { message: f } = ge(u);
11949
+ return f;
11921
11950
  },
11922
11951
  [ge]
11923
11952
  ), Ne = de(
@@ -11926,33 +11955,33 @@ const Up = ({
11926
11955
  ), je = de(() => {
11927
11956
  s({}), o({}), a({ status: void 0, fields: {} }), c({});
11928
11957
  }, []), O = de(
11929
- (u, d) => ({
11958
+ (u, f) => ({
11930
11959
  ...u,
11931
11960
  onBlurHandler: () => se(
11932
- d,
11933
- l[d]
11961
+ f,
11962
+ l[f]
11934
11963
  ),
11935
11964
  onChangeHandler: V,
11936
- onFocusHandler: () => G(d)
11965
+ onFocusHandler: () => G(f)
11937
11966
  }),
11938
11967
  [l, G, V, se]
11939
11968
  ), y = de(
11940
11969
  (u) => {
11941
11970
  if (!u)
11942
11971
  return;
11943
- const d = u.value ? u : u.querySelectorAll(
11972
+ const f = u.value ? u : u.querySelectorAll(
11944
11973
  "input,select,textarea"
11945
11974
  )[0] || u;
11946
- T[d == null ? void 0 : d.name] || S((v) => ({
11975
+ T[f == null ? void 0 : f.name] || S((v) => ({
11947
11976
  ...v,
11948
- [d.name]: d
11977
+ [f.name]: f
11949
11978
  }));
11950
11979
  },
11951
11980
  [T]
11952
11981
  ), R = de(
11953
11982
  (u) => {
11954
11983
  var Xe, tt;
11955
- const d = [
11984
+ const f = [
11956
11985
  "text",
11957
11986
  "email",
11958
11987
  "password",
@@ -11976,12 +12005,12 @@ const Up = ({
11976
12005
  return he.checked = l[u], O(he, u);
11977
12006
  if (ee === "input" && (v == null ? void 0 : v.format) === "date")
11978
12007
  return he.type = "date", he.value = String(l[u] || ""), v != null && v.formatMinimum && (he.min = v == null ? void 0 : v.formatMinimum), v != null && v.formatMaximum && (he.max = v == null ? void 0 : v.formatMaximum), O(he, u);
11979
- if (ee === "input" && d.includes(z) || ee === "textarea")
12008
+ if (ee === "input" && f.includes(z) || ee === "textarea")
11980
12009
  return he.type = bl(v), he.value = String(l[u] || ""), O(he, u);
11981
12010
  if (ee === "select") {
11982
12011
  const ie = v["x-options"] || [];
11983
- return he.value = l[u], he.onChangeHandler = (vt) => {
11984
- const rt = D(vt);
12012
+ return he.value = l[u], he.onChangeHandler = (_t) => {
12013
+ const rt = D(_t);
11985
12014
  H(u, rt), se(u, rt, {
11986
12015
  touched: !0
11987
12016
  });
@@ -12003,10 +12032,10 @@ const Up = ({
12003
12032
  ]
12004
12033
  ), C = de(
12005
12034
  (u) => {
12006
- const d = { ...l }, v = { ...n }, N = new RegExp(`(\\.|^)${u}(\\.|$)`);
12035
+ const f = { ...l }, v = { ...n }, N = new RegExp(`(\\.|^)${u}(\\.|$)`);
12007
12036
  Object.keys(l).forEach((j) => {
12008
- N.test(j) && (delete v.fields[j], delete d[j]);
12009
- }), a(v), c(d);
12037
+ N.test(j) && (delete v.fields[j], delete f[j]);
12038
+ }), a(v), c(f);
12010
12039
  },
12011
12040
  [l, n]
12012
12041
  );
@@ -12074,7 +12103,7 @@ const Kp = () => {
12074
12103
  [r, n]
12075
12104
  ), c = de(() => {
12076
12105
  o && s((V) => V + 1);
12077
- }, [o]), f = de(() => {
12106
+ }, [o]), d = de(() => {
12078
12107
  l && s((V) => V - 1);
12079
12108
  }, [l]);
12080
12109
  function p(V) {
@@ -12135,7 +12164,7 @@ const Kp = () => {
12135
12164
  setSteps: p,
12136
12165
  setStepSelected: I,
12137
12166
  goToNextStep: c,
12138
- goToPrevStep: f,
12167
+ goToPrevStep: d,
12139
12168
  canGoToNextStep: o,
12140
12169
  canGoToPrevStep: l,
12141
12170
  isStep: A,