@ansible/ansible-ui-framework 0.0.734 → 0.0.736

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/index.js +344 -339
  2. package/index.umd.cjs +12 -12
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -104,7 +104,7 @@ function If() {
104
104
  // with.
105
105
  j.$$typeof === x || j.getModuleId !== void 0));
106
106
  }
107
- function P(j, Q, ae) {
107
+ function O(j, Q, ae) {
108
108
  var Se = j.displayName;
109
109
  if (Se)
110
110
  return Se;
@@ -144,7 +144,7 @@ function If() {
144
144
  var ae = j;
145
145
  return R(ae._context) + ".Provider";
146
146
  case l:
147
- return P(j, j.render, "ForwardRef");
147
+ return O(j, j.render, "ForwardRef");
148
148
  case h:
149
149
  var Se = j.displayName || null;
150
150
  return Se !== null ? Se : F(j.type) || "Memo";
@@ -347,7 +347,7 @@ function If() {
347
347
  }
348
348
  return "";
349
349
  }
350
- var O = Object.prototype.hasOwnProperty, L = {}, W = E.ReactDebugCurrentFrame;
350
+ var P = Object.prototype.hasOwnProperty, L = {}, W = E.ReactDebugCurrentFrame;
351
351
  function oe(j) {
352
352
  if (j) {
353
353
  var Q = j._owner, ae = be(j.type, j._source, Q ? Q.type : null);
@@ -357,7 +357,7 @@ function If() {
357
357
  }
358
358
  function ne(j, Q, ae, Se, Re) {
359
359
  {
360
- var qe = Function.call.bind(O);
360
+ var qe = Function.call.bind(P);
361
361
  for (var De in j)
362
362
  if (qe(j, De)) {
363
363
  var _e = void 0;
@@ -406,7 +406,7 @@ function If() {
406
406
  }, T, D, I;
407
407
  I = {};
408
408
  function B(j) {
409
- if (O.call(j, "ref")) {
409
+ if (P.call(j, "ref")) {
410
410
  var Q = Object.getOwnPropertyDescriptor(j, "ref").get;
411
411
  if (Q && Q.isReactWarning)
412
412
  return !1;
@@ -414,7 +414,7 @@ function If() {
414
414
  return j.ref !== void 0;
415
415
  }
416
416
  function se(j) {
417
- if (O.call(j, "key")) {
417
+ if (P.call(j, "key")) {
418
418
  var Q = Object.getOwnPropertyDescriptor(j, "key").get;
419
419
  if (Q && Q.isReactWarning)
420
420
  return !1;
@@ -483,7 +483,7 @@ function If() {
483
483
  var qe, De = {}, _e = null, dt = null;
484
484
  ae !== void 0 && (Ht(ae), _e = "" + ae), se(Q) && (Ht(Q.key), _e = "" + Q.key), B(Q) && (dt = Q.ref, he(Q, Re));
485
485
  for (qe in Q)
486
- O.call(Q, qe) && !bt.hasOwnProperty(qe) && (De[qe] = Q[qe]);
486
+ P.call(Q, qe) && !bt.hasOwnProperty(qe) && (De[qe] = Q[qe]);
487
487
  if (j && j.defaultProps) {
488
488
  var Je = j.defaultProps;
489
489
  for (qe in Je)
@@ -2116,7 +2116,7 @@ function om() {
2116
2116
  }
2117
2117
  }
2118
2118
  }
2119
- var b = l, A = c, V = o, _ = a, x = e, k = d, P = n, R = p, F = m, H = r, G = i, Y = s, X = h, ee = !1;
2119
+ var b = l, A = c, V = o, _ = a, x = e, k = d, O = n, R = p, F = m, H = r, G = i, Y = s, X = h, ee = !1;
2120
2120
  function N(Z) {
2121
2121
  return ee || (ee = !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.")), $(Z) || w(Z) === l;
2122
2122
  }
@@ -2156,7 +2156,7 @@ function om() {
2156
2156
  function Ee(Z) {
2157
2157
  return w(Z) === h;
2158
2158
  }
2159
- Ye.AsyncMode = b, Ye.ConcurrentMode = A, Ye.ContextConsumer = V, Ye.ContextProvider = _, Ye.Element = x, Ye.ForwardRef = k, Ye.Fragment = P, Ye.Lazy = R, Ye.Memo = F, Ye.Portal = H, Ye.Profiler = G, Ye.StrictMode = Y, Ye.Suspense = X, Ye.isAsyncMode = N, Ye.isConcurrentMode = $, Ye.isContextConsumer = M, Ye.isContextProvider = U, Ye.isElement = q, Ye.isForwardRef = K, Ye.isFragment = ie, Ye.isLazy = z, Ye.isMemo = ve, Ye.isPortal = te, Ye.isProfiler = Ne, Ye.isStrictMode = Ce, Ye.isSuspense = Ee, Ye.isValidElementType = S, Ye.typeOf = w;
2159
+ Ye.AsyncMode = b, Ye.ConcurrentMode = A, Ye.ContextConsumer = V, Ye.ContextProvider = _, Ye.Element = x, Ye.ForwardRef = k, Ye.Fragment = O, Ye.Lazy = R, Ye.Memo = F, Ye.Portal = H, Ye.Profiler = G, Ye.StrictMode = Y, Ye.Suspense = X, Ye.isAsyncMode = N, Ye.isConcurrentMode = $, Ye.isContextConsumer = M, Ye.isContextProvider = U, Ye.isElement = q, Ye.isForwardRef = K, Ye.isFragment = ie, Ye.isLazy = z, Ye.isMemo = ve, Ye.isPortal = te, Ye.isProfiler = Ne, Ye.isStrictMode = Ce, Ye.isSuspense = Ee, Ye.isValidElementType = S, Ye.typeOf = w;
2160
2160
  }()), Ye;
2161
2161
  }
2162
2162
  (function(t) {
@@ -2164,7 +2164,7 @@ function om() {
2164
2164
  })(im);
2165
2165
  function lm(t) {
2166
2166
  function e(U, q, K, ie, z) {
2167
- for (var ve = 0, te = 0, Ne = 0, Ce = 0, Ee, Z, Ue = 0, Le = 0, be, O = be = Ee = 0, L = 0, W = 0, oe = 0, ne = 0, re = K.length, pe = re - 1, Oe, fe = "", Me = "", Ht = "", Ct = "", bt; L < re; ) {
2167
+ for (var ve = 0, te = 0, Ne = 0, Ce = 0, Ee, Z, Ue = 0, Le = 0, be, P = be = Ee = 0, L = 0, W = 0, oe = 0, ne = 0, re = K.length, pe = re - 1, Oe, fe = "", Me = "", Ht = "", Ct = "", bt; L < re; ) {
2168
2168
  if (Z = K.charCodeAt(L), L === pe && te + Ce + Ne + ve !== 0 && (te !== 0 && (Z = te === 47 ? 10 : 47), Ce = Ne = ve = 0, re++, pe++), te + Ce + Ne + ve === 0) {
2169
2169
  if (L === pe && (0 < W && (fe = fe.replace(u, "")), 0 < fe.trim().length)) {
2170
2170
  switch (Z) {
@@ -2194,21 +2194,21 @@ function lm(t) {
2194
2194
  case 42:
2195
2195
  case 47:
2196
2196
  e: {
2197
- for (O = L + 1; O < pe; ++O)
2198
- switch (K.charCodeAt(O)) {
2197
+ for (P = L + 1; P < pe; ++P)
2198
+ switch (K.charCodeAt(P)) {
2199
2199
  case 47:
2200
- if (Z === 42 && K.charCodeAt(O - 1) === 42 && L + 2 !== O) {
2201
- L = O + 1;
2200
+ if (Z === 42 && K.charCodeAt(P - 1) === 42 && L + 2 !== P) {
2201
+ L = P + 1;
2202
2202
  break e;
2203
2203
  }
2204
2204
  break;
2205
2205
  case 10:
2206
2206
  if (Z === 47) {
2207
- L = O + 1;
2207
+ L = P + 1;
2208
2208
  break e;
2209
2209
  }
2210
2210
  }
2211
- L = O;
2211
+ L = P;
2212
2212
  }
2213
2213
  }
2214
2214
  break;
@@ -2258,12 +2258,12 @@ function lm(t) {
2258
2258
  default:
2259
2259
  be = e(q, r(q, fe, oe), be, ie, z + 1);
2260
2260
  }
2261
- Ht += be, be = oe = W = O = Ee = 0, fe = "", Z = K.charCodeAt(++L);
2261
+ Ht += be, be = oe = W = P = Ee = 0, fe = "", Z = K.charCodeAt(++L);
2262
2262
  break;
2263
2263
  case 125:
2264
2264
  case 59:
2265
2265
  if (fe = (0 < W ? fe.replace(u, "") : fe).trim(), 1 < (ne = fe.length))
2266
- switch (O === 0 && (Ee = fe.charCodeAt(0), Ee === 45 || 96 < Ee && 123 > Ee) && (ne = (fe = fe.replace(" ", ":")).length), 0 < ee && (bt = o(1, fe, q, U, F, R, Me.length, ie, z, ie)) !== void 0 && (ne = (fe = bt.trim()).length) === 0 && (fe = "\0\0"), Ee = fe.charCodeAt(0), Z = fe.charCodeAt(1), Ee) {
2266
+ switch (P === 0 && (Ee = fe.charCodeAt(0), Ee === 45 || 96 < Ee && 123 > Ee) && (ne = (fe = fe.replace(" ", ":")).length), 0 < ee && (bt = o(1, fe, q, U, F, R, Me.length, ie, z, ie)) !== void 0 && (ne = (fe = bt.trim()).length) === 0 && (fe = "\0\0"), Ee = fe.charCodeAt(0), Z = fe.charCodeAt(1), Ee) {
2267
2267
  case 0:
2268
2268
  break;
2269
2269
  case 64:
@@ -2274,7 +2274,7 @@ function lm(t) {
2274
2274
  default:
2275
2275
  fe.charCodeAt(ne - 1) !== 58 && (Me += s(fe, Ee, Z, fe.charCodeAt(2)));
2276
2276
  }
2277
- oe = W = O = Ee = 0, fe = "", Z = K.charCodeAt(++L);
2277
+ oe = W = P = Ee = 0, fe = "", Z = K.charCodeAt(++L);
2278
2278
  }
2279
2279
  }
2280
2280
  switch (Z) {
@@ -2317,8 +2317,8 @@ function lm(t) {
2317
2317
  Ce + te + ve === 0 && (W = oe = 1, Oe = "\f" + Oe);
2318
2318
  break;
2319
2319
  case 108:
2320
- if (Ce + te + ve + H === 0 && 0 < O)
2321
- switch (L - O) {
2320
+ if (Ce + te + ve + H === 0 && 0 < P)
2321
+ switch (L - P) {
2322
2322
  case 2:
2323
2323
  Ue === 112 && K.charCodeAt(L - 3) === 58 && (H = Ue);
2324
2324
  case 8:
@@ -2326,7 +2326,7 @@ function lm(t) {
2326
2326
  }
2327
2327
  break;
2328
2328
  case 58:
2329
- Ce + te + ve === 0 && (O = L);
2329
+ Ce + te + ve === 0 && (P = L);
2330
2330
  break;
2331
2331
  case 44:
2332
2332
  te + Ne + Ce + ve === 0 && (W = 1, Oe += "\r");
@@ -2357,7 +2357,7 @@ function lm(t) {
2357
2357
  }
2358
2358
  break;
2359
2359
  case 64:
2360
- te + Ne + Ce + ve + O + be === 0 && (be = 1);
2360
+ te + Ne + Ce + ve + P + be === 0 && (be = 1);
2361
2361
  break;
2362
2362
  case 42:
2363
2363
  case 47:
@@ -2459,7 +2459,7 @@ function lm(t) {
2459
2459
  if (z.charCodeAt(8) === 45)
2460
2460
  return "-webkit-" + z + z;
2461
2461
  if (0 < z.indexOf("image-set(", 11))
2462
- return z.replace(P, "$1-webkit-$2") + z;
2462
+ return z.replace(O, "$1-webkit-$2") + z;
2463
2463
  break;
2464
2464
  case 932:
2465
2465
  if (z.charCodeAt(4) === 45)
@@ -2588,7 +2588,7 @@ function lm(t) {
2588
2588
  var z = e(Y, K, q, 0, 0);
2589
2589
  return 0 < ee && (ie = o(-2, z, K, K, F, R, z.length, 0, 0, 0), ie !== void 0 && (z = ie)), M = "", H = 0, R = F = 1, z;
2590
2590
  }
2591
- var h = /^\0+/g, u = /[\0\r\f]/g, m = /: */g, p = /zoo|gra/, y = /([,: ])(transform)/g, v = /,\r+?/g, E = /([\t\r\n ])*\f?&/g, C = /@(k\w+)\s*(\S*)\s*/, S = /::(place)/g, w = /:(read-only)/g, b = /[svh]\w+-[tblr]{2}/, A = /\(\s*(.*)\s*\)/g, V = /([\s\S]*?);/g, _ = /-self|flex-/g, x = /[^]*?(:[rp][el]a[\w-]+)[^]*/, k = /stretch|:\s*\w+\-(?:conte|avail)/, P = /([^-])(image-set\()/, R = 1, F = 1, H = 0, G = 1, Y = [], X = [], ee = 0, N = null, $ = 0, M = "";
2591
+ var h = /^\0+/g, u = /[\0\r\f]/g, m = /: */g, p = /zoo|gra/, y = /([,: ])(transform)/g, v = /,\r+?/g, E = /([\t\r\n ])*\f?&/g, C = /@(k\w+)\s*(\S*)\s*/, S = /::(place)/g, w = /:(read-only)/g, b = /[svh]\w+-[tblr]{2}/, A = /\(\s*(.*)\s*\)/g, V = /([\s\S]*?);/g, _ = /-self|flex-/g, x = /[^]*?(:[rp][el]a[\w-]+)[^]*/, k = /stretch|:\s*\w+\-(?:conte|avail)/, O = /([^-])(image-set\()/, R = 1, F = 1, H = 0, G = 1, Y = [], X = [], ee = 0, N = null, $ = 0, M = "";
2592
2592
  return d.use = l, d.set = c, t !== void 0 && c(t), d;
2593
2593
  }
2594
2594
  var cm = {
@@ -3228,7 +3228,7 @@ function Oc(t, e, r) {
3228
3228
  } : t.shouldForwardProp);
3229
3229
  var p, y = new Mm(r, h, n ? t.componentStyle : void 0), v = y.isStatic && a.length === 0, E = function(C, S) {
3230
3230
  return function(w, b, A, V) {
3231
- var _ = w.attrs, x = w.componentStyle, k = w.defaultProps, P = w.foldedComponentIds, R = w.shouldForwardProp, F = w.styledComponentId, H = w.target;
3231
+ var _ = w.attrs, x = w.componentStyle, k = w.defaultProps, O = w.foldedComponentIds, R = w.shouldForwardProp, F = w.styledComponentId, H = w.target;
3232
3232
  process.env.NODE_ENV !== "production" && Ga(F);
3233
3233
  var G = function(ie, z, ve) {
3234
3234
  ie === void 0 && (ie = Pr);
@@ -3244,16 +3244,16 @@ function Oc(t, e, r) {
3244
3244
  }(x, V, Y, process.env.NODE_ENV !== "production" ? w.warnTooManyClasses : void 0), N = A, $ = X.$as || b.$as || X.as || b.as || H, M = as($), U = X !== b ? vr({}, b, {}, X) : b, q = {};
3245
3245
  for (var K in U)
3246
3246
  K[0] !== "$" && K !== "as" && (K === "forwardedAs" ? q.as = U[K] : (R ? R(K, mo, $) : !M || mo(K)) && (q[K] = U[K]));
3247
- return b.style && X.style !== b.style && (q.style = vr({}, b.style, {}, X.style)), q.className = Array.prototype.concat(P, F, ee !== F ? ee : null, b.className, X.className).filter(Boolean).join(" "), q.ref = N, Rl($, q);
3247
+ return b.style && X.style !== b.style && (q.style = vr({}, b.style, {}, X.style)), q.className = Array.prototype.concat(O, F, ee !== F ? ee : null, b.className, X.className).filter(Boolean).join(" "), q.ref = N, Rl($, q);
3248
3248
  }(p, C, S, v);
3249
3249
  };
3250
3250
  return E.displayName = d, (p = Ke.forwardRef(E)).attrs = u, p.componentStyle = y, p.displayName = d, p.shouldForwardProp = m, p.foldedComponentIds = n ? Array.prototype.concat(t.foldedComponentIds, t.styledComponentId) : Ds, p.styledComponentId = h, p.target = n ? t.target : t, p.withComponent = function(C) {
3251
3251
  var S = e.componentId, w = function(A, V) {
3252
3252
  if (A == null)
3253
3253
  return {};
3254
- var _, x, k = {}, P = Object.keys(A);
3255
- for (x = 0; x < P.length; x++)
3256
- _ = P[x], V.indexOf(_) >= 0 || (k[_] = A[_]);
3254
+ var _, x, k = {}, O = Object.keys(A);
3255
+ for (x = 0; x < O.length; x++)
3256
+ _ = O[x], V.indexOf(_) >= 0 || (k[_] = A[_]);
3257
3257
  return k;
3258
3258
  }(e, ["componentId"]), b = S && S + "-" + (as(C) ? C : bi(Qi(C)));
3259
3259
  return Oc(C, vr({}, w, { attrs: u, componentId: b }), r);
@@ -9185,9 +9185,9 @@ var Hr = function(t) {
9185
9185
  return hs.get(t);
9186
9186
  if (Uu(t))
9187
9187
  return hs.set(t, tl), tl;
9188
- var r = getComputedStyle(t), n = Ma(t) && t.ownerSVGElement && t.getBBox(), s = !zy && r.boxSizing === "border-box", i = Ly.test(r.writingMode || ""), a = !n && el.test(r.overflowY || ""), o = !n && el.test(r.overflowX || ""), l = n ? 0 : rr(r.paddingTop), c = n ? 0 : rr(r.paddingRight), d = n ? 0 : rr(r.paddingBottom), h = n ? 0 : rr(r.paddingLeft), u = n ? 0 : rr(r.borderTopWidth), m = n ? 0 : rr(r.borderRightWidth), p = n ? 0 : rr(r.borderBottomWidth), y = n ? 0 : rr(r.borderLeftWidth), v = h + c, E = l + d, C = y + m, S = u + p, w = o ? t.offsetHeight - S - t.clientHeight : 0, b = a ? t.offsetWidth - C - t.clientWidth : 0, A = s ? v + C : 0, V = s ? E + S : 0, _ = n ? n.width : rr(r.width) - A - b, x = n ? n.height : rr(r.height) - V - w, k = _ + v + b + C, P = x + E + w + S, R = Hr({
9188
+ var r = getComputedStyle(t), n = Ma(t) && t.ownerSVGElement && t.getBBox(), s = !zy && r.boxSizing === "border-box", i = Ly.test(r.writingMode || ""), a = !n && el.test(r.overflowY || ""), o = !n && el.test(r.overflowX || ""), l = n ? 0 : rr(r.paddingTop), c = n ? 0 : rr(r.paddingRight), d = n ? 0 : rr(r.paddingBottom), h = n ? 0 : rr(r.paddingLeft), u = n ? 0 : rr(r.borderTopWidth), m = n ? 0 : rr(r.borderRightWidth), p = n ? 0 : rr(r.borderBottomWidth), y = n ? 0 : rr(r.borderLeftWidth), v = h + c, E = l + d, C = y + m, S = u + p, w = o ? t.offsetHeight - S - t.clientHeight : 0, b = a ? t.offsetWidth - C - t.clientWidth : 0, A = s ? v + C : 0, V = s ? E + S : 0, _ = n ? n.width : rr(r.width) - A - b, x = n ? n.height : rr(r.height) - V - w, k = _ + v + b + C, O = x + E + w + S, R = Hr({
9189
9189
  devicePixelContentBoxSize: un(Math.round(_ * devicePixelRatio), Math.round(x * devicePixelRatio), i),
9190
- borderBoxSize: un(k, P, i),
9190
+ borderBoxSize: un(k, O, i),
9191
9191
  contentBoxSize: un(_, x, i),
9192
9192
  contentRect: new Bu(h, l, _, x)
9193
9193
  });
@@ -10152,8 +10152,8 @@ function kv(t) {
10152
10152
  } = t, m = lr("md"), { viewType: p, setViewType: y } = t;
10153
10153
  let { toolbarActions: v } = t;
10154
10154
  v = v ?? [];
10155
- const E = ge((k, P) => s(P), [s]), C = ge(
10156
- (k, P) => i(P),
10155
+ const E = ge((k, O) => s(O), [s]), C = ge(
10156
+ (k, O) => i(O),
10157
10157
  [i]
10158
10158
  ), S = a !== void 0, w = v !== void 0 && v.length > 0, b = t.showSelect === !0 || o !== void 0 && v && v.find(
10159
10159
  (k) => "selection" in k && k.selection === st.Multiple
@@ -10185,7 +10185,7 @@ function kv(t) {
10185
10185
  Mr,
10186
10186
  {
10187
10187
  id: "filter",
10188
- onSelect: (k, P) => _(P.toString()),
10188
+ onSelect: (k, O) => _(O.toString()),
10189
10189
  value: V,
10190
10190
  placeholderText: "",
10191
10191
  children: a.map((k) => /* @__PURE__ */ f.jsx(Pt, { value: k.key, children: /* @__PURE__ */ f.jsxs(
@@ -10208,23 +10208,23 @@ function kv(t) {
10208
10208
  id: "filter-input",
10209
10209
  filter: a.find((k) => k.key === V),
10210
10210
  addFilter: (k) => {
10211
- let P = l == null ? void 0 : l[V];
10212
- P || (P = []), P.includes(k) || P.push(k), c == null || c({ ...l, [V]: P });
10211
+ let O = l == null ? void 0 : l[V];
10212
+ O || (O = []), O.includes(k) || O.push(k), c == null || c({ ...l, [V]: O });
10213
10213
  },
10214
10214
  removeFilter: (k) => {
10215
- let P = l == null ? void 0 : l[V];
10216
- P || (P = []), P = P.filter((R) => R !== k), c == null || c({ ...l, [V]: P });
10215
+ let O = l == null ? void 0 : l[V];
10216
+ O || (O = []), O = O.filter((R) => R !== k), c == null || c({ ...l, [V]: O });
10217
10217
  },
10218
10218
  values: (l == null ? void 0 : l[V]) ?? []
10219
10219
  }
10220
10220
  ) }),
10221
10221
  a.map((k) => {
10222
- const P = (l == null ? void 0 : l[k.key]) ?? [];
10222
+ const O = (l == null ? void 0 : l[k.key]) ?? [];
10223
10223
  return /* @__PURE__ */ f.jsx(
10224
10224
  Gd,
10225
10225
  {
10226
10226
  categoryName: k.label,
10227
- chips: P.map((R) => {
10227
+ chips: O.map((R) => {
10228
10228
  var F;
10229
10229
  return "options" in k ? ((F = k.options.find((H) => H.value === R)) == null ? void 0 : F.label) ?? R : R;
10230
10230
  }),
@@ -11235,7 +11235,7 @@ function Wv(t) {
11235
11235
  }
11236
11236
  G();
11237
11237
  }, [b, i, r, n, a, d.errorText]);
11238
- const { paged: k, page: P, perPage: R, setPage: F, setPerPage: H } = di(r);
11238
+ const { paged: k, page: O, perPage: R, setPage: F, setPerPage: H } = di(r);
11239
11239
  return /* @__PURE__ */ f.jsxs(
11240
11240
  gn,
11241
11241
  {
@@ -11291,7 +11291,7 @@ function Wv(t) {
11291
11291
  }
11292
11292
  ],
11293
11293
  keyFn: n,
11294
- page: P,
11294
+ page: O,
11295
11295
  perPage: R,
11296
11296
  setPage: F,
11297
11297
  setPerPage: H,
@@ -11385,20 +11385,20 @@ function Kv(t) {
11385
11385
  isDanger: u
11386
11386
  } = t, [m, p] = Kr(), [y] = St(), v = ge(() => {
11387
11387
  p(void 0), c == null || c();
11388
- }, [c, p]), E = ke(() => o && r.some(o) ? r.sort((P, R) => Es(o(P), o(R))) : r, [r, o]), { paged: C, page: S, perPage: w, setPage: b, setPerPage: A } = di(E), [V, _] = ye(!d), x = ke(() => o && r.some(o) ? [
11388
+ }, [c, p]), E = ke(() => o && r.some(o) ? r.sort((O, R) => Es(o(O), o(R))) : r, [r, o]), { paged: C, page: S, perPage: w, setPage: b, setPerPage: A } = di(E), [V, _] = ye(!d), x = ke(() => o && r.some(o) ? [
11389
11389
  {
11390
11390
  header: "",
11391
- cell: (P) => o(P) ? /* @__PURE__ */ f.jsx(
11391
+ cell: (O) => o(O) ? /* @__PURE__ */ f.jsx(
11392
11392
  zt,
11393
11393
  {
11394
- content: o(P),
11395
- trigger: o(P) ? void 0 : "manual",
11394
+ content: o(O),
11395
+ trigger: o(O) ? void 0 : "manual",
11396
11396
  children: /* @__PURE__ */ f.jsx(nf, { status: "warning", children: /* @__PURE__ */ f.jsx(_f, {}) })
11397
11397
  }
11398
11398
  ) : null
11399
11399
  },
11400
11400
  ...a
11401
- ] : a, [a, o, r]), k = ke(() => o ? r.filter((P) => !o(P)) : r, [o, r]);
11401
+ ] : a, [a, o, r]), k = ke(() => o ? r.filter((O) => !o(O)) : r, [o, r]);
11402
11402
  return /* @__PURE__ */ f.jsx(
11403
11403
  gn,
11404
11404
  {
@@ -11427,7 +11427,7 @@ function Kv(t) {
11427
11427
  hasNoBodyWrapper: !0,
11428
11428
  children: r.length > 0 && /* @__PURE__ */ f.jsxs(Os, { style: { paddingLeft: 0, paddingRight: 0 }, children: [
11429
11429
  /* @__PURE__ */ f.jsxs(Yv, { children: [
11430
- i && i.length > 0 && i.map((P, R) => /* @__PURE__ */ f.jsx(qs, { isInline: !0, title: P, variant: "warning" }, R)),
11430
+ i && i.length > 0 && i.map((O, R) => /* @__PURE__ */ f.jsx(qs, { isInline: !0, title: O, variant: "warning" }, R)),
11431
11431
  /* @__PURE__ */ f.jsx(
11432
11432
  ui,
11433
11433
  {
@@ -11810,10 +11810,10 @@ function x0(t) {
11810
11810
  b.current && C(p);
11811
11811
  }
11812
11812
  return _ && a && a.on(_, k), x && a && a.store.on(x, k), function() {
11813
- b.current = !1, _ && a && _.split(" ").forEach(function(P) {
11814
- return a.off(P, k);
11815
- }), x && a && x.split(" ").forEach(function(P) {
11816
- return a.store.off(P, k);
11813
+ b.current = !1, _ && a && _.split(" ").forEach(function(O) {
11814
+ return a.off(O, k);
11815
+ }), x && a && x.split(" ").forEach(function(O) {
11816
+ return a.store.off(O, k);
11817
11817
  });
11818
11818
  };
11819
11819
  }, [a, S]);
@@ -12344,7 +12344,7 @@ var tn = (t) => pt(t) && !zs(t) ? t : {
12344
12344
  return {};
12345
12345
  const S = a ? a[0] : i, w = (R) => {
12346
12346
  n && S.reportValidity && (S.setCustomValidity(dn(R) ? "" : R || ""), S.reportValidity());
12347
- }, b = {}, A = Ua(i), V = Zn(i), _ = A || V, x = (y || Ba(i)) && lt(i.value) && lt(C) || Ls(i) && i.value === "" || C === "" || Array.isArray(C) && !C.length, k = ld.bind(null, p, r, b), P = (R, F, H, G = mr.maxLength, Y = mr.minLength) => {
12347
+ }, b = {}, A = Ua(i), V = Zn(i), _ = A || V, x = (y || Ba(i)) && lt(i.value) && lt(C) || Ls(i) && i.value === "" || C === "" || Array.isArray(C) && !C.length, k = ld.bind(null, p, r, b), O = (R, F, H, G = mr.maxLength, Y = mr.minLength) => {
12348
12348
  const X = R ? F : H;
12349
12349
  b[p] = {
12350
12350
  type: R ? G : Y,
@@ -12373,12 +12373,12 @@ var tn = (t) => pt(t) && !zs(t) ? t : {
12373
12373
  const Y = i.valueAsDate || new Date(C), X = ($) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + $), ee = i.type == "time", N = i.type == "week";
12374
12374
  ir(H.value) && C && (R = ee ? X(C) > X(H.value) : N ? C > H.value : Y > new Date(H.value)), ir(G.value) && C && (F = ee ? X(C) < X(G.value) : N ? C < G.value : Y < new Date(G.value));
12375
12375
  }
12376
- if ((R || F) && (P(!!R, H.message, G.message, mr.max, mr.min), !r))
12376
+ if ((R || F) && (O(!!R, H.message, G.message, mr.max, mr.min), !r))
12377
12377
  return w(b[p].message), b;
12378
12378
  }
12379
12379
  if ((l || c) && !x && (ir(C) || s && Array.isArray(C))) {
12380
12380
  const R = tn(l), F = tn(c), H = !_t(R.value) && C.length > +R.value, G = !_t(F.value) && C.length < +F.value;
12381
- if ((H || G) && (P(H, R.message, F.message), !r))
12381
+ if ((H || G) && (O(H, R.message, F.message), !r))
12382
12382
  return w(b[p].message), b;
12383
12383
  }
12384
12384
  if (u && !x && ir(C)) {
@@ -12582,73 +12582,73 @@ function V0(t = {}, e) {
12582
12582
  values: Ni(),
12583
12583
  array: Ni(),
12584
12584
  state: Ni()
12585
- }, m = t.resetOptions && t.resetOptions.keepDirtyValues, p = ml(r.mode), y = ml(r.reValidateMode), v = r.criteriaMode === Zt.all, E = (O) => (L) => {
12586
- clearTimeout(d), d = setTimeout(O, L);
12587
- }, C = async (O) => {
12588
- if (h.isValid || O) {
12589
- const L = r.resolver ? Mt((await x()).errors) : await P(s, !0);
12585
+ }, m = t.resetOptions && t.resetOptions.keepDirtyValues, p = ml(r.mode), y = ml(r.reValidateMode), v = r.criteriaMode === Zt.all, E = (P) => (L) => {
12586
+ clearTimeout(d), d = setTimeout(P, L);
12587
+ }, C = async (P) => {
12588
+ if (h.isValid || P) {
12589
+ const L = r.resolver ? Mt((await x()).errors) : await O(s, !0);
12590
12590
  L !== n.isValid && u.state.next({
12591
12591
  isValid: L
12592
12592
  });
12593
12593
  }
12594
- }, S = (O) => h.isValidating && u.state.next({
12595
- isValidating: O
12596
- }), w = (O, L = [], W, oe, ne = !0, re = !0) => {
12594
+ }, S = (P) => h.isValidating && u.state.next({
12595
+ isValidating: P
12596
+ }), w = (P, L = [], W, oe, ne = !0, re = !0) => {
12597
12597
  if (oe && W) {
12598
- if (o.action = !0, re && Array.isArray(ue(s, O))) {
12599
- const pe = W(ue(s, O), oe.argA, oe.argB);
12600
- ne && Xe(s, O, pe);
12598
+ if (o.action = !0, re && Array.isArray(ue(s, P))) {
12599
+ const pe = W(ue(s, P), oe.argA, oe.argB);
12600
+ ne && Xe(s, P, pe);
12601
12601
  }
12602
- if (re && Array.isArray(ue(n.errors, O))) {
12603
- const pe = W(ue(n.errors, O), oe.argA, oe.argB);
12604
- ne && Xe(n.errors, O, pe), F0(n.errors, O);
12602
+ if (re && Array.isArray(ue(n.errors, P))) {
12603
+ const pe = W(ue(n.errors, P), oe.argA, oe.argB);
12604
+ ne && Xe(n.errors, P, pe), F0(n.errors, P);
12605
12605
  }
12606
- if (h.touchedFields && re && Array.isArray(ue(n.touchedFields, O))) {
12607
- const pe = W(ue(n.touchedFields, O), oe.argA, oe.argB);
12608
- ne && Xe(n.touchedFields, O, pe);
12606
+ if (h.touchedFields && re && Array.isArray(ue(n.touchedFields, P))) {
12607
+ const pe = W(ue(n.touchedFields, P), oe.argA, oe.argB);
12608
+ ne && Xe(n.touchedFields, P, pe);
12609
12609
  }
12610
12610
  h.dirtyFields && (n.dirtyFields = Ii(i, a)), u.state.next({
12611
- name: O,
12612
- isDirty: F(O, L),
12611
+ name: P,
12612
+ isDirty: F(P, L),
12613
12613
  dirtyFields: n.dirtyFields,
12614
12614
  errors: n.errors,
12615
12615
  isValid: n.isValid
12616
12616
  });
12617
12617
  } else
12618
- Xe(a, O, L);
12619
- }, b = (O, L) => {
12620
- Xe(n.errors, O, L), u.state.next({
12618
+ Xe(a, P, L);
12619
+ }, b = (P, L) => {
12620
+ Xe(n.errors, P, L), u.state.next({
12621
12621
  errors: n.errors
12622
12622
  });
12623
- }, A = (O, L, W, oe) => {
12624
- const ne = ue(s, O);
12623
+ }, A = (P, L, W, oe) => {
12624
+ const ne = ue(s, P);
12625
12625
  if (ne) {
12626
- const re = ue(a, O, lt(W) ? ue(i, O) : W);
12627
- lt(re) || oe && oe.defaultChecked || L ? Xe(a, O, L ? re : Ri(ne._f)) : Y(O, re), o.mount && C();
12626
+ const re = ue(a, P, lt(W) ? ue(i, P) : W);
12627
+ lt(re) || oe && oe.defaultChecked || L ? Xe(a, P, L ? re : Ri(ne._f)) : Y(P, re), o.mount && C();
12628
12628
  }
12629
- }, V = (O, L, W, oe, ne) => {
12629
+ }, V = (P, L, W, oe, ne) => {
12630
12630
  let re = !1, pe = !1;
12631
12631
  const Oe = {
12632
- name: O
12632
+ name: P
12633
12633
  };
12634
12634
  if (!W || oe) {
12635
12635
  h.isDirty && (pe = n.isDirty, n.isDirty = Oe.isDirty = F(), re = pe !== Oe.isDirty);
12636
- const fe = Vr(ue(i, O), L);
12637
- pe = ue(n.dirtyFields, O), fe ? xt(n.dirtyFields, O) : Xe(n.dirtyFields, O, !0), Oe.dirtyFields = n.dirtyFields, re = re || h.dirtyFields && pe !== !fe;
12636
+ const fe = Vr(ue(i, P), L);
12637
+ pe = ue(n.dirtyFields, P), fe ? xt(n.dirtyFields, P) : Xe(n.dirtyFields, P, !0), Oe.dirtyFields = n.dirtyFields, re = re || h.dirtyFields && pe !== !fe;
12638
12638
  }
12639
12639
  if (W) {
12640
- const fe = ue(n.touchedFields, O);
12641
- fe || (Xe(n.touchedFields, O, W), Oe.touchedFields = n.touchedFields, re = re || h.touchedFields && fe !== W);
12640
+ const fe = ue(n.touchedFields, P);
12641
+ fe || (Xe(n.touchedFields, P, W), Oe.touchedFields = n.touchedFields, re = re || h.touchedFields && fe !== W);
12642
12642
  }
12643
12643
  return re && ne && u.state.next(Oe), re ? Oe : {};
12644
- }, _ = (O, L, W, oe) => {
12645
- const ne = ue(n.errors, O), re = h.isValid && dn(L) && n.isValid !== L;
12646
- if (t.delayError && W ? (c = E(() => b(O, W)), c(t.delayError)) : (clearTimeout(d), c = null, W ? Xe(n.errors, O, W) : xt(n.errors, O)), (W ? !Vr(ne, W) : ne) || !Mt(oe) || re) {
12644
+ }, _ = (P, L, W, oe) => {
12645
+ const ne = ue(n.errors, P), re = h.isValid && dn(L) && n.isValid !== L;
12646
+ if (t.delayError && W ? (c = E(() => b(P, W)), c(t.delayError)) : (clearTimeout(d), c = null, W ? Xe(n.errors, P, W) : xt(n.errors, P)), (W ? !Vr(ne, W) : ne) || !Mt(oe) || re) {
12647
12647
  const pe = {
12648
12648
  ...oe,
12649
12649
  ...re && dn(L) ? { isValid: L } : {},
12650
12650
  errors: n.errors,
12651
- name: O
12651
+ name: P
12652
12652
  };
12653
12653
  n = {
12654
12654
  ...n,
@@ -12656,21 +12656,21 @@ function V0(t = {}, e) {
12656
12656
  }, u.state.next(pe);
12657
12657
  }
12658
12658
  S(!1);
12659
- }, x = async (O) => r.resolver(a, r.context, I0(O || l.mount, s, r.criteriaMode, r.shouldUseNativeValidation)), k = async (O) => {
12659
+ }, x = async (P) => r.resolver(a, r.context, I0(P || l.mount, s, r.criteriaMode, r.shouldUseNativeValidation)), k = async (P) => {
12660
12660
  const { errors: L } = await x();
12661
- if (O)
12662
- for (const W of O) {
12661
+ if (P)
12662
+ for (const W of P) {
12663
12663
  const oe = ue(L, W);
12664
12664
  oe ? Xe(n.errors, W, oe) : xt(n.errors, W);
12665
12665
  }
12666
12666
  else
12667
12667
  n.errors = L;
12668
12668
  return L;
12669
- }, P = async (O, L, W = {
12669
+ }, O = async (P, L, W = {
12670
12670
  valid: !0
12671
12671
  }) => {
12672
- for (const oe in O) {
12673
- const ne = O[oe];
12672
+ for (const oe in P) {
12673
+ const ne = P[oe];
12674
12674
  if (ne) {
12675
12675
  const { _f: re, ...pe } = ne;
12676
12676
  if (re) {
@@ -12679,59 +12679,59 @@ function V0(t = {}, e) {
12679
12679
  break;
12680
12680
  !L && (ue(fe, re.name) ? Oe ? O0(n.errors, fe, re.name) : Xe(n.errors, re.name, fe[re.name]) : xt(n.errors, re.name));
12681
12681
  }
12682
- pe && await P(pe, L, W);
12682
+ pe && await O(pe, L, W);
12683
12683
  }
12684
12684
  }
12685
12685
  return W.valid;
12686
12686
  }, R = () => {
12687
- for (const O of l.unMount) {
12688
- const L = ue(s, O);
12689
- L && (L._f.refs ? L._f.refs.every((W) => !Di(W)) : !Di(L._f.ref)) && z(O);
12687
+ for (const P of l.unMount) {
12688
+ const L = ue(s, P);
12689
+ L && (L._f.refs ? L._f.refs.every((W) => !Di(W)) : !Di(L._f.ref)) && z(P);
12690
12690
  }
12691
12691
  l.unMount = /* @__PURE__ */ new Set();
12692
- }, F = (O, L) => (O && L && Xe(a, O, L), !Vr(M(), i)), H = (O, L, W) => id(O, l, {
12693
- ...o.mount ? a : lt(L) ? i : ir(O) ? { [O]: L } : L
12694
- }, W, L), G = (O) => Kn(ue(o.mount ? a : i, O, t.shouldUnregister ? ue(i, O, []) : [])), Y = (O, L, W = {}) => {
12695
- const oe = ue(s, O);
12692
+ }, F = (P, L) => (P && L && Xe(a, P, L), !Vr(M(), i)), H = (P, L, W) => id(P, l, {
12693
+ ...o.mount ? a : lt(L) ? i : ir(P) ? { [P]: L } : L
12694
+ }, W, L), G = (P) => Kn(ue(o.mount ? a : i, P, t.shouldUnregister ? ue(i, P, []) : [])), Y = (P, L, W = {}) => {
12695
+ const oe = ue(s, P);
12696
12696
  let ne = L;
12697
12697
  if (oe) {
12698
12698
  const re = oe._f;
12699
- re && (!re.disabled && Xe(a, O, md(L, re)), ne = Ls(re.ref) && _t(L) ? "" : L, dd(re.ref) ? [...re.ref.options].forEach((pe) => pe.selected = ne.includes(pe.value)) : re.refs ? Zn(re.ref) ? re.refs.length > 1 ? re.refs.forEach((pe) => (!pe.defaultChecked || !pe.disabled) && (pe.checked = Array.isArray(ne) ? !!ne.find((Oe) => Oe === pe.value) : ne === pe.value)) : re.refs[0] && (re.refs[0].checked = !!ne) : re.refs.forEach((pe) => pe.checked = pe.value === ne) : Ba(re.ref) ? re.ref.value = "" : (re.ref.value = ne, re.ref.type || u.values.next({
12700
- name: O,
12699
+ re && (!re.disabled && Xe(a, P, md(L, re)), ne = Ls(re.ref) && _t(L) ? "" : L, dd(re.ref) ? [...re.ref.options].forEach((pe) => pe.selected = ne.includes(pe.value)) : re.refs ? Zn(re.ref) ? re.refs.length > 1 ? re.refs.forEach((pe) => (!pe.defaultChecked || !pe.disabled) && (pe.checked = Array.isArray(ne) ? !!ne.find((Oe) => Oe === pe.value) : ne === pe.value)) : re.refs[0] && (re.refs[0].checked = !!ne) : re.refs.forEach((pe) => pe.checked = pe.value === ne) : Ba(re.ref) ? re.ref.value = "" : (re.ref.value = ne, re.ref.type || u.values.next({
12700
+ name: P,
12701
12701
  values: { ...a }
12702
12702
  })));
12703
12703
  }
12704
- (W.shouldDirty || W.shouldTouch) && V(O, ne, W.shouldTouch, W.shouldDirty, !0), W.shouldValidate && $(O);
12705
- }, X = (O, L, W) => {
12704
+ (W.shouldDirty || W.shouldTouch) && V(P, ne, W.shouldTouch, W.shouldDirty, !0), W.shouldValidate && $(P);
12705
+ }, X = (P, L, W) => {
12706
12706
  for (const oe in L) {
12707
- const ne = L[oe], re = `${O}.${oe}`, pe = ue(s, re);
12708
- (l.array.has(O) || !Bs(ne) || pe && !pe._f) && !sn(ne) ? X(re, ne, W) : Y(re, ne, W);
12707
+ const ne = L[oe], re = `${P}.${oe}`, pe = ue(s, re);
12708
+ (l.array.has(P) || !Bs(ne) || pe && !pe._f) && !sn(ne) ? X(re, ne, W) : Y(re, ne, W);
12709
12709
  }
12710
- }, ee = (O, L, W = {}) => {
12711
- const oe = ue(s, O), ne = l.array.has(O), re = gr(L);
12712
- Xe(a, O, re), ne ? (u.array.next({
12713
- name: O,
12710
+ }, ee = (P, L, W = {}) => {
12711
+ const oe = ue(s, P), ne = l.array.has(P), re = gr(L);
12712
+ Xe(a, P, re), ne ? (u.array.next({
12713
+ name: P,
12714
12714
  values: { ...a }
12715
12715
  }), (h.isDirty || h.dirtyFields) && W.shouldDirty && u.state.next({
12716
- name: O,
12716
+ name: P,
12717
12717
  dirtyFields: Ii(i, a),
12718
- isDirty: F(O, re)
12719
- })) : oe && !oe._f && !_t(re) ? X(O, re, W) : Y(O, re, W), pl(O, l) && u.state.next({ ...n }), u.values.next({
12720
- name: O,
12718
+ isDirty: F(P, re)
12719
+ })) : oe && !oe._f && !_t(re) ? X(P, re, W) : Y(P, re, W), pl(P, l) && u.state.next({ ...n }), u.values.next({
12720
+ name: P,
12721
12721
  values: { ...a }
12722
12722
  }), !o.mount && e();
12723
- }, N = async (O) => {
12724
- const L = O.target;
12723
+ }, N = async (P) => {
12724
+ const L = P.target;
12725
12725
  let W = L.name, oe = !0;
12726
- const ne = ue(s, W), re = () => L.type ? Ri(ne._f) : Xu(O);
12726
+ const ne = ue(s, W), re = () => L.type ? Ri(ne._f) : Xu(P);
12727
12727
  if (ne) {
12728
12728
  let pe, Oe;
12729
- const fe = re(), Me = O.type === Vs.BLUR || O.type === Vs.FOCUS_OUT, Ht = !R0(ne._f) && !r.resolver && !ue(n.errors, W) && !ne._f.deps || A0(Me, ue(n.touchedFields, W), n.isSubmitted, y, p), Ct = pl(W, l, Me);
12730
- Xe(a, W, fe), Me ? (ne._f.onBlur && ne._f.onBlur(O), c && c(0)) : ne._f.onChange && ne._f.onChange(O);
12729
+ const fe = re(), Me = P.type === Vs.BLUR || P.type === Vs.FOCUS_OUT, Ht = !R0(ne._f) && !r.resolver && !ue(n.errors, W) && !ne._f.deps || A0(Me, ue(n.touchedFields, W), n.isSubmitted, y, p), Ct = pl(W, l, Me);
12730
+ Xe(a, W, fe), Me ? (ne._f.onBlur && ne._f.onBlur(P), c && c(0)) : ne._f.onChange && ne._f.onChange(P);
12731
12731
  const bt = V(W, fe, Me, !1), T = !Mt(bt) || Ct;
12732
12732
  if (!Me && u.values.next({
12733
12733
  name: W,
12734
- type: O.type,
12734
+ type: P.type,
12735
12735
  values: { ...a }
12736
12736
  }), Ht)
12737
12737
  return h.isValid && C(), T && u.state.next({ name: W, ...Ct ? {} : bt });
@@ -12739,55 +12739,55 @@ function V0(t = {}, e) {
12739
12739
  const { errors: D } = await x([W]), I = xl(n.errors, s, W), B = xl(D, s, I.name || W);
12740
12740
  pe = B.error, W = B.name, Oe = Mt(D);
12741
12741
  } else
12742
- pe = (await wl(ne, a, v, r.shouldUseNativeValidation))[W], oe = isNaN(fe) || fe === ue(a, W, fe), oe && (pe ? Oe = !1 : h.isValid && (Oe = await P(s, !0)));
12742
+ pe = (await wl(ne, a, v, r.shouldUseNativeValidation))[W], oe = isNaN(fe) || fe === ue(a, W, fe), oe && (pe ? Oe = !1 : h.isValid && (Oe = await O(s, !0)));
12743
12743
  oe && (ne._f.deps && $(ne._f.deps), _(W, Oe, pe, bt));
12744
12744
  }
12745
- }, $ = async (O, L = {}) => {
12745
+ }, $ = async (P, L = {}) => {
12746
12746
  let W, oe;
12747
- const ne = $s(O);
12747
+ const ne = $s(P);
12748
12748
  if (S(!0), r.resolver) {
12749
- const re = await k(lt(O) ? O : ne);
12750
- W = Mt(re), oe = O ? !ne.some((pe) => ue(re, pe)) : W;
12749
+ const re = await k(lt(P) ? P : ne);
12750
+ W = Mt(re), oe = P ? !ne.some((pe) => ue(re, pe)) : W;
12751
12751
  } else
12752
- O ? (oe = (await Promise.all(ne.map(async (re) => {
12752
+ P ? (oe = (await Promise.all(ne.map(async (re) => {
12753
12753
  const pe = ue(s, re);
12754
- return await P(pe && pe._f ? { [re]: pe } : pe);
12755
- }))).every(Boolean), !(!oe && !n.isValid) && C()) : oe = W = await P(s);
12754
+ return await O(pe && pe._f ? { [re]: pe } : pe);
12755
+ }))).every(Boolean), !(!oe && !n.isValid) && C()) : oe = W = await O(s);
12756
12756
  return u.state.next({
12757
- ...!ir(O) || h.isValid && W !== n.isValid ? {} : { name: O },
12758
- ...r.resolver || !O ? { isValid: W } : {},
12757
+ ...!ir(P) || h.isValid && W !== n.isValid ? {} : { name: P },
12758
+ ...r.resolver || !P ? { isValid: W } : {},
12759
12759
  errors: n.errors,
12760
12760
  isValidating: !1
12761
- }), L.shouldFocus && !oe && ha(s, (re) => re && ue(n.errors, re), O ? ne : l.mount), oe;
12762
- }, M = (O) => {
12761
+ }), L.shouldFocus && !oe && ha(s, (re) => re && ue(n.errors, re), P ? ne : l.mount), oe;
12762
+ }, M = (P) => {
12763
12763
  const L = {
12764
12764
  ...i,
12765
12765
  ...o.mount ? a : {}
12766
12766
  };
12767
- return lt(O) ? L : ir(O) ? ue(L, O) : O.map((W) => ue(L, W));
12768
- }, U = (O, L) => ({
12769
- invalid: !!ue((L || n).errors, O),
12770
- isDirty: !!ue((L || n).dirtyFields, O),
12771
- isTouched: !!ue((L || n).touchedFields, O),
12772
- error: ue((L || n).errors, O)
12773
- }), q = (O) => {
12774
- O && $s(O).forEach((L) => xt(n.errors, L)), u.state.next({
12775
- errors: O ? n.errors : {}
12767
+ return lt(P) ? L : ir(P) ? ue(L, P) : P.map((W) => ue(L, W));
12768
+ }, U = (P, L) => ({
12769
+ invalid: !!ue((L || n).errors, P),
12770
+ isDirty: !!ue((L || n).dirtyFields, P),
12771
+ isTouched: !!ue((L || n).touchedFields, P),
12772
+ error: ue((L || n).errors, P)
12773
+ }), q = (P) => {
12774
+ P && $s(P).forEach((L) => xt(n.errors, L)), u.state.next({
12775
+ errors: P ? n.errors : {}
12776
12776
  });
12777
- }, K = (O, L, W) => {
12778
- const oe = (ue(s, O, { _f: {} })._f || {}).ref;
12779
- Xe(n.errors, O, {
12777
+ }, K = (P, L, W) => {
12778
+ const oe = (ue(s, P, { _f: {} })._f || {}).ref;
12779
+ Xe(n.errors, P, {
12780
12780
  ...L,
12781
12781
  ref: oe
12782
12782
  }), u.state.next({
12783
- name: O,
12783
+ name: P,
12784
12784
  errors: n.errors,
12785
12785
  isValid: !1
12786
12786
  }), W && W.shouldFocus && oe && oe.focus && oe.focus();
12787
- }, ie = (O, L) => Or(O) ? u.values.subscribe({
12788
- next: (W) => O(H(void 0, L), W)
12789
- }) : H(O, L, !0), z = (O, L = {}) => {
12790
- for (const W of O ? $s(O) : l.mount)
12787
+ }, ie = (P, L) => Or(P) ? u.values.subscribe({
12788
+ next: (W) => P(H(void 0, L), W)
12789
+ }) : H(P, L, !0), z = (P, L = {}) => {
12790
+ for (const W of P ? $s(P) : l.mount)
12791
12791
  l.mount.delete(W), l.array.delete(W), L.keepValue || (xt(s, W), xt(a, W)), !L.keepError && xt(n.errors, W), !L.keepDirty && xt(n.dirtyFields, W), !L.keepTouched && xt(n.touchedFields, W), !r.shouldUnregister && !L.keepDefaultValue && xt(i, W);
12792
12792
  u.values.next({
12793
12793
  values: { ...a }
@@ -12795,18 +12795,18 @@ function V0(t = {}, e) {
12795
12795
  ...n,
12796
12796
  ...L.keepDirty ? { isDirty: F() } : {}
12797
12797
  }), !L.keepIsValid && C();
12798
- }, ve = (O, L = {}) => {
12799
- let W = ue(s, O);
12798
+ }, ve = (P, L = {}) => {
12799
+ let W = ue(s, P);
12800
12800
  const oe = dn(L.disabled);
12801
- return Xe(s, O, {
12801
+ return Xe(s, P, {
12802
12802
  ...W || {},
12803
12803
  _f: {
12804
- ...W && W._f ? W._f : { ref: { name: O } },
12805
- name: O,
12804
+ ...W && W._f ? W._f : { ref: { name: P } },
12805
+ name: P,
12806
12806
  mount: !0,
12807
12807
  ...L
12808
12808
  }
12809
- }), l.mount.add(O), W ? oe && Xe(a, O, L.disabled ? void 0 : ue(a, O, Ri(W._f))) : A(O, !0, L.value), {
12809
+ }), l.mount.add(P), W ? oe && Xe(a, P, L.disabled ? void 0 : ue(a, P, Ri(W._f))) : A(P, !0, L.value), {
12810
12810
  ...oe ? { disabled: L.disabled } : {},
12811
12811
  ...r.shouldUseNativeValidation ? {
12812
12812
  required: !!L.required,
@@ -12816,33 +12816,33 @@ function V0(t = {}, e) {
12816
12816
  maxLength: kn(L.maxLength),
12817
12817
  pattern: kn(L.pattern)
12818
12818
  } : {},
12819
- name: O,
12819
+ name: P,
12820
12820
  onChange: N,
12821
12821
  onBlur: N,
12822
12822
  ref: (ne) => {
12823
12823
  if (ne) {
12824
- ve(O, L), W = ue(s, O);
12824
+ ve(P, L), W = ue(s, P);
12825
12825
  const re = lt(ne.value) && ne.querySelectorAll && ne.querySelectorAll("input,select,textarea")[0] || ne, pe = D0(re), Oe = W._f.refs || [];
12826
12826
  if (pe ? Oe.find((fe) => fe === re) : re === W._f.ref)
12827
12827
  return;
12828
- Xe(s, O, {
12828
+ Xe(s, P, {
12829
12829
  _f: {
12830
12830
  ...W._f,
12831
12831
  ...pe ? {
12832
12832
  refs: [
12833
12833
  ...Oe.filter(Di),
12834
12834
  re,
12835
- ...Array.isArray(ue(i, O)) ? [{}] : []
12835
+ ...Array.isArray(ue(i, P)) ? [{}] : []
12836
12836
  ],
12837
- ref: { type: re.type, name: O }
12837
+ ref: { type: re.type, name: P }
12838
12838
  } : { ref: re }
12839
12839
  }
12840
- }), A(O, !1, void 0, re);
12840
+ }), A(P, !1, void 0, re);
12841
12841
  } else
12842
- W = ue(s, O, {}), W._f && (W._f.mount = !1), (r.shouldUnregister || L.shouldUnregister) && !(Qu(l.array, O) && o.action) && l.unMount.add(O);
12842
+ W = ue(s, P, {}), W._f && (W._f.mount = !1), (r.shouldUnregister || L.shouldUnregister) && !(Qu(l.array, P) && o.action) && l.unMount.add(P);
12843
12843
  }
12844
12844
  };
12845
- }, te = () => r.shouldFocusError && ha(s, (O) => O && ue(n.errors, O), l.mount), Ne = (O, L) => async (W) => {
12845
+ }, te = () => r.shouldFocusError && ha(s, (P) => P && ue(n.errors, P), l.mount), Ne = (P, L) => async (W) => {
12846
12846
  W && (W.preventDefault && W.preventDefault(), W.persist && W.persist());
12847
12847
  let oe = gr(a);
12848
12848
  if (u.state.next({
@@ -12851,26 +12851,26 @@ function V0(t = {}, e) {
12851
12851
  const { errors: ne, values: re } = await x();
12852
12852
  n.errors = ne, oe = re;
12853
12853
  } else
12854
- await P(s);
12854
+ await O(s);
12855
12855
  xt(n.errors, "root"), Mt(n.errors) ? (u.state.next({
12856
12856
  errors: {}
12857
- }), await O(oe, W)) : (L && await L({ ...n.errors }, W), te(), setTimeout(te)), u.state.next({
12857
+ }), await P(oe, W)) : (L && await L({ ...n.errors }, W), te(), setTimeout(te)), u.state.next({
12858
12858
  isSubmitted: !0,
12859
12859
  isSubmitting: !1,
12860
12860
  isSubmitSuccessful: Mt(n.errors),
12861
12861
  submitCount: n.submitCount + 1,
12862
12862
  errors: n.errors
12863
12863
  });
12864
- }, Ce = (O, L = {}) => {
12865
- ue(s, O) && (lt(L.defaultValue) ? ee(O, ue(i, O)) : (ee(O, L.defaultValue), Xe(i, O, L.defaultValue)), L.keepTouched || xt(n.touchedFields, O), L.keepDirty || (xt(n.dirtyFields, O), n.isDirty = L.defaultValue ? F(O, ue(i, O)) : F()), L.keepError || (xt(n.errors, O), h.isValid && C()), u.state.next({ ...n }));
12866
- }, Ee = (O, L = {}) => {
12867
- const W = O || i, oe = gr(W), ne = O && !Mt(O) ? oe : i;
12864
+ }, Ce = (P, L = {}) => {
12865
+ ue(s, P) && (lt(L.defaultValue) ? ee(P, ue(i, P)) : (ee(P, L.defaultValue), Xe(i, P, L.defaultValue)), L.keepTouched || xt(n.touchedFields, P), L.keepDirty || (xt(n.dirtyFields, P), n.isDirty = L.defaultValue ? F(P, ue(i, P)) : F()), L.keepError || (xt(n.errors, P), h.isValid && C()), u.state.next({ ...n }));
12866
+ }, Ee = (P, L = {}) => {
12867
+ const W = P || i, oe = gr(W), ne = P && !Mt(P) ? oe : i;
12868
12868
  if (L.keepDefaultValues || (i = W), !L.keepValues) {
12869
12869
  if (L.keepDirtyValues || m)
12870
12870
  for (const re of l.mount)
12871
12871
  ue(n.dirtyFields, re) ? Xe(ne, re, ue(a, re)) : ee(re, ue(ne, re));
12872
12872
  else {
12873
- if (Va && lt(O))
12873
+ if (Va && lt(P))
12874
12874
  for (const re of l.mount) {
12875
12875
  const pe = ue(s, re);
12876
12876
  if (pe && pe._f) {
@@ -12901,15 +12901,15 @@ function V0(t = {}, e) {
12901
12901
  focus: ""
12902
12902
  }, !o.mount && e(), o.mount = !h.isValid || !!L.keepIsValid, o.watch = !!t.shouldUnregister, u.state.next({
12903
12903
  submitCount: L.keepSubmitCount ? n.submitCount : 0,
12904
- isDirty: L.keepDirty ? n.isDirty : !!(L.keepDefaultValues && !Vr(O, i)),
12904
+ isDirty: L.keepDirty ? n.isDirty : !!(L.keepDefaultValues && !Vr(P, i)),
12905
12905
  isSubmitted: L.keepIsSubmitted ? n.isSubmitted : !1,
12906
- dirtyFields: L.keepDirtyValues ? n.dirtyFields : L.keepDefaultValues && O ? Ii(i, O) : {},
12906
+ dirtyFields: L.keepDirtyValues ? n.dirtyFields : L.keepDefaultValues && P ? Ii(i, P) : {},
12907
12907
  touchedFields: L.keepTouched ? n.touchedFields : {},
12908
12908
  errors: L.keepErrors ? n.errors : {},
12909
12909
  isSubmitting: !1,
12910
12910
  isSubmitSuccessful: !1
12911
12911
  });
12912
- }, Z = (O, L) => Ee(Or(O) ? O(a) : O, L);
12912
+ }, Z = (P, L) => Ee(Or(P) ? P(a) : P, L);
12913
12913
  return {
12914
12914
  control: {
12915
12915
  register: ve,
@@ -12923,15 +12923,15 @@ function V0(t = {}, e) {
12923
12923
  _updateFieldArray: w,
12924
12924
  _getFieldArray: G,
12925
12925
  _reset: Ee,
12926
- _resetDefaultValues: () => Or(r.defaultValues) && r.defaultValues().then((O) => {
12927
- Z(O, r.resetOptions), u.state.next({
12926
+ _resetDefaultValues: () => Or(r.defaultValues) && r.defaultValues().then((P) => {
12927
+ Z(P, r.resetOptions), u.state.next({
12928
12928
  isLoading: !1
12929
12929
  });
12930
12930
  }),
12931
- _updateFormState: (O) => {
12931
+ _updateFormState: (P) => {
12932
12932
  n = {
12933
12933
  ...n,
12934
- ...O
12934
+ ...P
12935
12935
  };
12936
12936
  },
12937
12937
  _subjects: u,
@@ -12945,8 +12945,8 @@ function V0(t = {}, e) {
12945
12945
  get _state() {
12946
12946
  return o;
12947
12947
  },
12948
- set _state(O) {
12949
- o = O;
12948
+ set _state(P) {
12949
+ o = P;
12950
12950
  },
12951
12951
  get _defaultValues() {
12952
12952
  return i;
@@ -12954,22 +12954,22 @@ function V0(t = {}, e) {
12954
12954
  get _names() {
12955
12955
  return l;
12956
12956
  },
12957
- set _names(O) {
12958
- l = O;
12957
+ set _names(P) {
12958
+ l = P;
12959
12959
  },
12960
12960
  get _formState() {
12961
12961
  return n;
12962
12962
  },
12963
- set _formState(O) {
12964
- n = O;
12963
+ set _formState(P) {
12964
+ n = P;
12965
12965
  },
12966
12966
  get _options() {
12967
12967
  return r;
12968
12968
  },
12969
- set _options(O) {
12969
+ set _options(P) {
12970
12970
  r = {
12971
12971
  ...r,
12972
- ...O
12972
+ ...P
12973
12973
  };
12974
12974
  }
12975
12975
  },
@@ -12984,8 +12984,8 @@ function V0(t = {}, e) {
12984
12984
  clearErrors: q,
12985
12985
  unregister: z,
12986
12986
  setError: K,
12987
- setFocus: (O, L = {}) => {
12988
- const W = ue(s, O), oe = W && W._f;
12987
+ setFocus: (P, L = {}) => {
12988
+ const W = ue(s, P), oe = W && W._f;
12989
12989
  if (oe) {
12990
12990
  const ne = oe.refs ? oe.refs[0] : oe.ref;
12991
12991
  ne.focus && (ne.focus(), L.shouldSelect && ne.select());
@@ -13336,39 +13336,44 @@ function Sw(t) {
13336
13336
  name: e,
13337
13337
  control: y,
13338
13338
  shouldUnregister: !0,
13339
- render: ({ field: { onChange: b, value: A, name: V }, fieldState: { error: _ } }) => /* @__PURE__ */ f.jsx(
13340
- C0,
13341
- {
13342
- ...m,
13343
- onBlur: () => E(V),
13344
- isRequired: n,
13345
- id: d ?? V.split(".").join("-"),
13346
- value: A,
13347
- onChange: b,
13348
- helperTextInvalid: _ != null && _.message ? o && S ? w.validating : _ == null ? void 0 : _.message : void 0,
13349
- isReadOnly: r || C,
13350
- minLength: void 0,
13351
- maxLength: void 0,
13352
- children: l && /* @__PURE__ */ f.jsx(
13353
- Qe,
13354
- {
13355
- ouiaId: `lookup-${V}-button`,
13356
- variant: "control",
13357
- onClick: () => h == null ? void 0 : h((x) => {
13358
- if (u) {
13359
- const k = u(x);
13360
- v(V, k, {
13361
- shouldValidate: !0
13362
- });
13363
- }
13364
- }, l),
13365
- "aria-label": "Options menu",
13366
- isDisabled: C,
13367
- children: /* @__PURE__ */ f.jsx(Sa, {})
13368
- }
13369
- )
13339
+ render: ({ field: { onChange: b, value: A, name: V }, fieldState: { error: _ } }) => {
13340
+ function x(k) {
13341
+ b(k.trimStart());
13370
13342
  }
13371
- ),
13343
+ return /* @__PURE__ */ f.jsx(
13344
+ C0,
13345
+ {
13346
+ ...m,
13347
+ onBlur: () => E(V),
13348
+ isRequired: n,
13349
+ id: d ?? V.split(".").join("-"),
13350
+ value: A,
13351
+ onChange: x,
13352
+ helperTextInvalid: _ != null && _.message ? o && S ? w.validating : _ == null ? void 0 : _.message : void 0,
13353
+ isReadOnly: r || C,
13354
+ minLength: void 0,
13355
+ maxLength: void 0,
13356
+ children: l && /* @__PURE__ */ f.jsx(
13357
+ Qe,
13358
+ {
13359
+ ouiaId: `lookup-${V}-button`,
13360
+ variant: "control",
13361
+ onClick: () => h == null ? void 0 : h((k) => {
13362
+ if (u) {
13363
+ const O = u(k);
13364
+ v(V, O, {
13365
+ shouldValidate: !0
13366
+ });
13367
+ }
13368
+ }, l),
13369
+ "aria-label": "Options menu",
13370
+ isDisabled: C,
13371
+ children: /* @__PURE__ */ f.jsx(Sa, {})
13372
+ }
13373
+ )
13374
+ }
13375
+ );
13376
+ },
13372
13377
  rules: {
13373
13378
  required: typeof p == "string" && n === !0 ? {
13374
13379
  value: !0,
@@ -13760,7 +13765,7 @@ var we = et(function(t, e) {
13760
13765
  return this.rhs = R(this.rhs, $, M), this;
13761
13766
  }
13762
13767
  get names() {
13763
- return P(this.lhs instanceof we.Name ? {} : { ...this.lhs.names }, this.rhs);
13768
+ return O(this.lhs instanceof we.Name ? {} : { ...this.lhs.names }, this.rhs);
13764
13769
  }
13765
13770
  }
13766
13771
  class o extends a {
@@ -13881,7 +13886,7 @@ var we = et(function(t, e) {
13881
13886
  }
13882
13887
  get names() {
13883
13888
  const $ = super.names;
13884
- return P($, this.condition), this.else && k($, this.else.names), $;
13889
+ return O($, this.condition), this.else && k($, this.else.names), $;
13885
13890
  }
13886
13891
  }
13887
13892
  v.kind = "if";
@@ -13912,8 +13917,8 @@ var we = et(function(t, e) {
13912
13917
  return `for(${M} ${U}=${q}; ${U}<${K}; ${U}++)` + super.render($);
13913
13918
  }
13914
13919
  get names() {
13915
- const $ = P(super.names, this.from);
13916
- return P($, this.to);
13920
+ const $ = O(super.names, this.from);
13921
+ return O($, this.to);
13917
13922
  }
13918
13923
  }
13919
13924
  class w extends E {
@@ -13983,7 +13988,7 @@ var we = et(function(t, e) {
13983
13988
  N[M] = (N[M] || 0) + ($[M] || 0);
13984
13989
  return N;
13985
13990
  }
13986
- function P(N, $) {
13991
+ function O(N, $) {
13987
13992
  return $ instanceof we._CodeOrName ? k(N, $.names) : N;
13988
13993
  }
13989
13994
  function R(N, $, M) {
@@ -14322,8 +14327,8 @@ var J = /* @__PURE__ */ Object.defineProperty({ default: U0 }, "__esModule", { v
14322
14327
  return h === !1 ? g._`{}` : function(u, m, p = {}) {
14323
14328
  const { gen: y, it: v } = u, E = [a(v, p), o(u, p)];
14324
14329
  return function(C, { params: S, message: w }, b) {
14325
- const { keyword: A, data: V, schemaValue: _, it: x } = C, { opts: k, propertyName: P, topSchemaRef: R, schemaPath: F } = x;
14326
- b.push([s.keyword, A], [s.params, typeof S == "function" ? S(C) : S || g._`{}`]), k.messages && b.push([s.message, typeof w == "function" ? w(C) : w]), k.verbose && b.push([s.schema, _], [s.parentSchema, g._`${R}${F}`], [J.default.data, V]), P && b.push([s.propertyName, P]);
14330
+ const { keyword: A, data: V, schemaValue: _, it: x } = C, { opts: k, propertyName: O, topSchemaRef: R, schemaPath: F } = x;
14331
+ b.push([s.keyword, A], [s.params, typeof S == "function" ? S(C) : S || g._`{}`]), k.messages && b.push([s.message, typeof w == "function" ? w(C) : w]), k.verbose && b.push([s.schema, _], [s.parentSchema, g._`${R}${F}`], [J.default.data, V]), O && b.push([s.propertyName, O]);
14327
14332
  }(u, m, E), y.object(...E);
14328
14333
  }(l, c, d);
14329
14334
  }
@@ -14423,8 +14428,8 @@ var J = /* @__PURE__ */ Object.defineProperty({ default: U0 }, "__esModule", { v
14423
14428
  }
14424
14429
  }
14425
14430
  w.else(), l(E), w.endIf(), w.if(g._`${_} !== undefined`, () => {
14426
- w.assign(b, _), function({ gen: k, parentData: P, parentDataProperty: R }, F) {
14427
- k.if(g._`${P} !== undefined`, () => k.assign(g._`${P}[${R}]`, F));
14431
+ w.assign(b, _), function({ gen: k, parentData: O, parentDataProperty: R }, F) {
14432
+ k.if(g._`${O} !== undefined`, () => k.assign(g._`${O}[${R}]`, F));
14428
14433
  }(E, _);
14429
14434
  });
14430
14435
  }(c, d, p) : l(c);
@@ -14769,9 +14774,9 @@ var J = /* @__PURE__ */ Object.defineProperty({ default: U0 }, "__esModule", { v
14769
14774
  if (x === void 0)
14770
14775
  return;
14771
14776
  const k = E + V;
14772
- let P = v[x];
14777
+ let O = v[x];
14773
14778
  function R(H) {
14774
- if (H = c(P ? (0, this.opts.uriResolver.resolve)(P, H) : H), S.has(H))
14779
+ if (H = c(O ? (0, this.opts.uriResolver.resolve)(O, H) : H), S.has(H))
14775
14780
  throw b(H);
14776
14781
  S.add(H);
14777
14782
  let G = this.refs[H];
@@ -14784,7 +14789,7 @@ var J = /* @__PURE__ */ Object.defineProperty({ default: U0 }, "__esModule", { v
14784
14789
  R.call(this, `#${H}`);
14785
14790
  }
14786
14791
  }
14787
- typeof A[m] == "string" && (P = R.call(this, A[m])), F.call(this, A.$anchor), F.call(this, A.$dynamicAnchor), v[V] = P;
14792
+ typeof A[m] == "string" && (O = R.call(this, A[m])), F.call(this, A.$anchor), F.call(this, A.$dynamicAnchor), v[V] = O;
14788
14793
  }), C;
14789
14794
  function w(A, V, _) {
14790
14795
  if (V !== void 0 && !Wa(A, V))
@@ -14847,11 +14852,11 @@ var J = /* @__PURE__ */ Object.defineProperty({ default: U0 }, "__esModule", { v
14847
14852
  }
14848
14853
  }
14849
14854
  function d(S, w, b, A) {
14850
- const { gen: V, schema: _, data: x, allErrors: k, opts: P, self: R } = S, { RULES: F } = R;
14855
+ const { gen: V, schema: _, data: x, allErrors: k, opts: O, self: R } = S, { RULES: F } = R;
14851
14856
  function H(G) {
14852
- (0, _s.shouldUseGroup)(_, G) && (G.type ? (V.if((0, r.checkDataType)(G.type, x, P.strictNumbers)), h(S, G), w.length === 1 && w[0] === G.type && b && (V.else(), (0, r.reportTypeError)(S)), V.endIf()) : h(S, G), k || V.if(g._`${J.default.errors} === ${A || 0}`));
14857
+ (0, _s.shouldUseGroup)(_, G) && (G.type ? (V.if((0, r.checkDataType)(G.type, x, O.strictNumbers)), h(S, G), w.length === 1 && w[0] === G.type && b && (V.else(), (0, r.reportTypeError)(S)), V.endIf()) : h(S, G), k || V.if(g._`${J.default.errors} === ${A || 0}`));
14853
14858
  }
14854
- !_.$ref || !P.ignoreKeywordsWithRef && (0, me.schemaHasRulesButRef)(_, F) ? (P.jtd || function(G, Y) {
14859
+ !_.$ref || !O.ignoreKeywordsWithRef && (0, me.schemaHasRulesButRef)(_, F) ? (O.jtd || function(G, Y) {
14855
14860
  !G.schemaEnv.meta && G.opts.strictTypes && (function(X, ee) {
14856
14861
  ee.length && (X.dataTypes.length ? (ee.forEach((N) => {
14857
14862
  u(X.dataTypes, N) || m(X, `type "${N}" not allowed by context "${X.dataTypes.join(",")}"`);
@@ -14901,8 +14906,8 @@ var J = /* @__PURE__ */ Object.defineProperty({ default: U0 }, "__esModule", { v
14901
14906
  const { gen: x, validateName: k } = _;
14902
14907
  _.evaluated = x.const("evaluated", g._`${k}.evaluated`), x.if(g._`${_.evaluated}.dynamicProps`, () => x.assign(g._`${_.evaluated}.props`, g._`undefined`)), x.if(g._`${_.evaluated}.dynamicItems`, () => x.assign(g._`${_.evaluated}.items`, g._`undefined`));
14903
14908
  }(w), l(w), function(_) {
14904
- const { gen: x, schemaEnv: k, validateName: P, ValidationError: R, opts: F } = _;
14905
- k.$async ? x.if(g._`${J.default.errors} === 0`, () => x.return(J.default.data), () => x.throw(g._`new ${R}(${J.default.vErrors})`)) : (x.assign(g._`${P}.errors`, J.default.vErrors), F.unevaluated && function({ gen: H, evaluated: G, props: Y, items: X }) {
14909
+ const { gen: x, schemaEnv: k, validateName: O, ValidationError: R, opts: F } = _;
14910
+ k.$async ? x.if(g._`${J.default.errors} === 0`, () => x.return(J.default.data), () => x.throw(g._`new ${R}(${J.default.vErrors})`)) : (x.assign(g._`${O}.errors`, J.default.vErrors), F.unevaluated && function({ gen: H, evaluated: G, props: Y, items: X }) {
14906
14911
  Y instanceof g.Name && H.assign(g._`${G}.props`, Y), X instanceof g.Name && H.assign(g._`${G}.items`, X);
14907
14912
  }(_), x.return(g._`${J.default.errors} === 0`));
14908
14913
  }(w);
@@ -14993,7 +14998,7 @@ var J = /* @__PURE__ */ Object.defineProperty({ default: U0 }, "__esModule", { v
14993
14998
  (0, Ai.extendSubschemaData)(A, this.it, w), (0, Ai.extendSubschemaMode)(A, w);
14994
14999
  const V = { ...this.it, ...A, items: void 0, props: void 0 };
14995
15000
  return function(_, x) {
14996
- a(_) && (o(_), i(_)) ? function(k, P) {
15001
+ a(_) && (o(_), i(_)) ? function(k, O) {
14997
15002
  const { schema: R, gen: F, opts: H } = k;
14998
15003
  H.$comment && R.$comment && c(k), function(Y) {
14999
15004
  const X = Y.schema[Y.opts.schemaId];
@@ -15003,7 +15008,7 @@ var J = /* @__PURE__ */ Object.defineProperty({ default: U0 }, "__esModule", { v
15003
15008
  throw new Error("async schema in sync schema");
15004
15009
  }(k);
15005
15010
  const G = F.const("_errs", J.default.errors);
15006
- l(k, G), F.var(P, g._`${G} === ${J.default.errors}`);
15011
+ l(k, G), F.var(O, g._`${G} === ${J.default.errors}`);
15007
15012
  }(_, x) : (0, El.boolOrEmptySchema)(_, x);
15008
15013
  }(V, b), V;
15009
15014
  }
@@ -15038,11 +15043,11 @@ var J = /* @__PURE__ */ Object.defineProperty({ default: U0 }, "__esModule", { v
15038
15043
  const F = +R[1];
15039
15044
  if (V = R[2], V === "#") {
15040
15045
  if (F >= w)
15041
- throw new Error(P("property/index", F));
15046
+ throw new Error(O("property/index", F));
15042
15047
  return A[w - F];
15043
15048
  }
15044
15049
  if (F > w)
15045
- throw new Error(P("data", F));
15050
+ throw new Error(O("data", F));
15046
15051
  if (_ = b[w - F], !V)
15047
15052
  return _;
15048
15053
  }
@@ -15051,7 +15056,7 @@ var J = /* @__PURE__ */ Object.defineProperty({ default: U0 }, "__esModule", { v
15051
15056
  for (const R of k)
15052
15057
  R && (_ = g._`${_}${(0, g.getProperty)((0, me.unescapeJsonPointer)(R))}`, x = g._`${x} && ${_}`);
15053
15058
  return x;
15054
- function P(R, F) {
15059
+ function O(R, F) {
15055
15060
  return `Cannot access ${R} ${F} levels up, current level is ${w}`;
15056
15061
  }
15057
15062
  }
@@ -15351,7 +15356,7 @@ var ma = /* @__PURE__ */ Object.defineProperty({ default: G0 }, "__esModule", {
15351
15356
  var D = T.charCodeAt(0);
15352
15357
  return D < 16 ? "%0" + D.toString(16).toUpperCase() : D < 128 ? "%" + D.toString(16).toUpperCase() : D < 2048 ? "%" + (D >> 6 | 192).toString(16).toUpperCase() + "%" + (63 & D | 128).toString(16).toUpperCase() : "%" + (D >> 12 | 224).toString(16).toUpperCase() + "%" + (D >> 6 & 63 | 128).toString(16).toUpperCase() + "%" + (63 & D | 128).toString(16).toUpperCase();
15353
15358
  }
15354
- function P(T) {
15359
+ function O(T) {
15355
15360
  for (var D = "", I = 0, B = T.length; I < B; ) {
15356
15361
  var se = parseInt(T.substr(I + 1, 2), 16);
15357
15362
  if (se < 128)
@@ -15377,7 +15382,7 @@ var ma = /* @__PURE__ */ Object.defineProperty({ default: G0 }, "__esModule", {
15377
15382
  }
15378
15383
  function R(T, D) {
15379
15384
  function I(B) {
15380
- var se = P(B);
15385
+ var se = O(B);
15381
15386
  return se.match(D.UNRESERVED) ? se : B;
15382
15387
  }
15383
15388
  return T.scheme && (T.scheme = String(T.scheme).replace(D.PCT_ENCODED, I).toLowerCase().replace(D.NOT_SCHEME, "")), T.userinfo !== void 0 && (T.userinfo = String(T.userinfo).replace(D.PCT_ENCODED, I).replace(D.NOT_USERINFO, k).replace(D.PCT_ENCODED, a)), T.host !== void 0 && (T.host = String(T.host).replace(D.PCT_ENCODED, I).toLowerCase().replace(D.NOT_HOST, k).replace(D.PCT_ENCODED, a)), T.path !== void 0 && (T.path = String(T.path).replace(D.PCT_ENCODED, I).replace(T.scheme ? D.NOT_PATH : D.NOT_PATH_NOSCHEME, k).replace(D.PCT_ENCODED, a)), T.query !== void 0 && (T.query = String(T.query).replace(D.PCT_ENCODED, I).replace(D.NOT_QUERY, k).replace(D.PCT_ENCODED, a)), T.fragment !== void 0 && (T.fragment = String(T.fragment).replace(D.PCT_ENCODED, I).replace(D.NOT_FRAGMENT, k).replace(D.PCT_ENCODED, a)), T;
@@ -15426,7 +15431,7 @@ var ma = /* @__PURE__ */ Object.defineProperty({ default: G0 }, "__esModule", {
15426
15431
  else {
15427
15432
  if (I.host && (D.domainHost || he && he.domainHost))
15428
15433
  try {
15429
- I.host = V(I.host.replace(B.PCT_ENCODED, P).toLowerCase());
15434
+ I.host = V(I.host.replace(B.PCT_ENCODED, O).toLowerCase());
15430
15435
  } catch (xe) {
15431
15436
  I.error = I.error || "Host's domain name can not be converted to ASCII via punycode: " + xe;
15432
15437
  }
@@ -15468,7 +15473,7 @@ var ma = /* @__PURE__ */ Object.defineProperty({ default: G0 }, "__esModule", {
15468
15473
  if (se && se.serialize && se.serialize(T, D), T.host && !I.IPV6ADDRESS.test(T.host)) {
15469
15474
  if (D.domainHost || se && se.domainHost)
15470
15475
  try {
15471
- T.host = D.iri ? _(T.host) : V(T.host.replace(I.PCT_ENCODED, P).toLowerCase());
15476
+ T.host = D.iri ? _(T.host) : V(T.host.replace(I.PCT_ENCODED, O).toLowerCase());
15472
15477
  } catch (je) {
15473
15478
  T.error = T.error || "Host's domain name can not be converted to " + (D.iri ? "Unicode" : "ASCII") + " via punycode: " + je;
15474
15479
  }
@@ -15486,7 +15491,7 @@ var ma = /* @__PURE__ */ Object.defineProperty({ default: G0 }, "__esModule", {
15486
15491
  return arguments[3] || (T = ee(ie(T, I), I), D = ee(ie(D, I), I)), !(I = I || {}).tolerant && D.scheme ? (B.scheme = D.scheme, B.userinfo = D.userinfo, B.host = D.host, B.port = D.port, B.path = K(D.path || ""), B.query = D.query) : (D.userinfo !== void 0 || D.host !== void 0 || D.port !== void 0 ? (B.userinfo = D.userinfo, B.host = D.host, B.port = D.port, B.path = K(D.path || ""), B.query = D.query) : (D.path ? (D.path.charAt(0) === "/" ? B.path = K(D.path) : (B.path = T.userinfo === void 0 && T.host === void 0 && T.port === void 0 || T.path ? T.path ? T.path.slice(0, T.path.lastIndexOf("/") + 1) + D.path : D.path : "/" + D.path, B.path = K(B.path)), B.query = D.query) : (B.path = T.path, B.query = D.query !== void 0 ? D.query : T.query), B.userinfo = T.userinfo, B.host = T.host, B.port = T.port), B.scheme = T.scheme), B.fragment = D.fragment, B;
15487
15492
  }
15488
15493
  function ve(T, D) {
15489
- return T && T.toString().replace(D && D.iri ? c.PCT_ENCODED : l.PCT_ENCODED, P);
15494
+ return T && T.toString().replace(D && D.iri ? c.PCT_ENCODED : l.PCT_ENCODED, O);
15490
15495
  }
15491
15496
  var te = { scheme: "http", domainHost: !0, parse: function(T, D) {
15492
15497
  return T.host || (T.error = T.error || "HTTP URIs must have a host."), T;
@@ -15506,9 +15511,9 @@ var ma = /* @__PURE__ */ Object.defineProperty({ default: G0 }, "__esModule", {
15506
15511
  T.path = se && se !== "/" ? se : void 0, T.query = he, T.resourceName = void 0;
15507
15512
  }
15508
15513
  return T.fragment = void 0, T;
15509
- } }, Z = { scheme: "wss", domainHost: Ee.domainHost, parse: Ee.parse, serialize: Ee.serialize }, Ue = {}, Le = "[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]", be = "[0-9A-Fa-f]", O = s(s("%[EFef][0-9A-Fa-f]%" + be + be + "%" + be + be) + "|" + s("%[89A-Fa-f][0-9A-Fa-f]%" + be + be) + "|" + s("%" + be + be)), L = n("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]", '[\\"\\\\]'), W = new RegExp(Le, "g"), oe = new RegExp(O, "g"), ne = new RegExp(n("[^]", "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]", "[\\.]", '[\\"]', L), "g"), re = new RegExp(n("[^]", Le, "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"), "g"), pe = re;
15514
+ } }, Z = { scheme: "wss", domainHost: Ee.domainHost, parse: Ee.parse, serialize: Ee.serialize }, Ue = {}, Le = "[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]", be = "[0-9A-Fa-f]", P = s(s("%[EFef][0-9A-Fa-f]%" + be + be + "%" + be + be) + "|" + s("%[89A-Fa-f][0-9A-Fa-f]%" + be + be) + "|" + s("%" + be + be)), L = n("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]", '[\\"\\\\]'), W = new RegExp(Le, "g"), oe = new RegExp(P, "g"), ne = new RegExp(n("[^]", "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]", "[\\.]", '[\\"]', L), "g"), re = new RegExp(n("[^]", Le, "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"), "g"), pe = re;
15510
15515
  function Oe(T) {
15511
- var D = P(T);
15516
+ var D = O(T);
15512
15517
  return D.match(W) ? D : T;
15513
15518
  }
15514
15519
  var fe = { scheme: "mailto", parse: function(T, D) {
@@ -15587,7 +15592,7 @@ var ma = /* @__PURE__ */ Object.defineProperty({ default: G0 }, "__esModule", {
15587
15592
  var I = T;
15588
15593
  return I.nss = (T.uuid || "").toLowerCase(), I;
15589
15594
  } };
15590
- x[te.scheme] = te, x[Ne.scheme] = Ne, x[Ee.scheme] = Ee, x[Z.scheme] = Z, x[fe.scheme] = fe, x[Ht.scheme] = Ht, x[bt.scheme] = bt, r.SCHEMES = x, r.pctEncChar = k, r.pctDecChars = P, r.parse = ee, r.removeDotSegments = K, r.serialize = ie, r.resolveComponents = z, r.resolve = function(T, D, I) {
15595
+ x[te.scheme] = te, x[Ne.scheme] = Ne, x[Ee.scheme] = Ee, x[Z.scheme] = Z, x[fe.scheme] = fe, x[Ht.scheme] = Ht, x[bt.scheme] = bt, r.SCHEMES = x, r.pctEncChar = k, r.pctDecChars = O, r.parse = ee, r.removeDotSegments = K, r.serialize = ie, r.resolveComponents = z, r.resolve = function(T, D, I) {
15591
15596
  var B = function(se, he) {
15592
15597
  var xe = { scheme: "null" };
15593
15598
  if (he)
@@ -15626,15 +15631,15 @@ var Y0 = /* @__PURE__ */ Object.defineProperty({ default: wd }, "__esModule", {
15626
15631
  n.code = "new RegExp";
15627
15632
  const s = ["removeAdditional", "useDefaults", "coerceTypes"], i = /* @__PURE__ */ new Set(["validate", "serialize", "parse", "wrapper", "root", "schema", "keyword", "pattern", "formats", "validate$data", "func", "obj", "Error"]), a = { errorDataPath: "", format: "`validateFormats: false` can be used instead.", nullable: '"nullable" keyword is supported by default.', jsonPointers: "Deprecated jsPropertySyntax can be used instead.", extendRefs: "Deprecated ignoreKeywordsWithRef can be used instead.", missingRefs: "Pass empty schema with $id that should be ignored to ajv.addSchema.", processCode: "Use option `code: {process: (code, schemaEnv: object) => string}`", sourceCode: "Use option `code: {source: true}`", strictDefaults: "It is default now, see option `strict`.", strictKeywords: "It is default now, see option `strict`.", uniqueItems: '"uniqueItems" keyword is always validated.', unknownFormats: "Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).", cache: "Map is used as cache, schema object as key.", serialize: "Map is used as cache, schema object as key.", ajvErrors: "It is default now." }, o = { ignoreKeywordsWithRef: "", jsPropertySyntax: "", unicode: '"minLength"/"maxLength" account for unicode characters by default.' };
15628
15633
  function l(_) {
15629
- var x, k, P, R, F, H, G, Y, X, ee, N, $, M, U, q, K, ie, z, ve, te, Ne, Ce, Ee, Z, Ue;
15630
- const Le = _.strict, be = (x = _.code) === null || x === void 0 ? void 0 : x.optimize, O = be === !0 || be === void 0 ? 1 : be || 0, L = (P = (k = _.code) === null || k === void 0 ? void 0 : k.regExp) !== null && P !== void 0 ? P : n, W = (R = _.uriResolver) !== null && R !== void 0 ? R : Y0.default;
15631
- return { strictSchema: (H = (F = _.strictSchema) !== null && F !== void 0 ? F : Le) === null || H === void 0 || H, strictNumbers: (Y = (G = _.strictNumbers) !== null && G !== void 0 ? G : Le) === null || Y === void 0 || Y, strictTypes: (ee = (X = _.strictTypes) !== null && X !== void 0 ? X : Le) !== null && ee !== void 0 ? ee : "log", strictTuples: ($ = (N = _.strictTuples) !== null && N !== void 0 ? N : Le) !== null && $ !== void 0 ? $ : "log", strictRequired: (U = (M = _.strictRequired) !== null && M !== void 0 ? M : Le) !== null && U !== void 0 && U, code: _.code ? { ..._.code, optimize: O, regExp: L } : { optimize: O, regExp: L }, loopRequired: (q = _.loopRequired) !== null && q !== void 0 ? q : 200, loopEnum: (K = _.loopEnum) !== null && K !== void 0 ? K : 200, meta: (ie = _.meta) === null || ie === void 0 || ie, messages: (z = _.messages) === null || z === void 0 || z, inlineRefs: (ve = _.inlineRefs) === null || ve === void 0 || ve, schemaId: (te = _.schemaId) !== null && te !== void 0 ? te : "$id", addUsedSchema: (Ne = _.addUsedSchema) === null || Ne === void 0 || Ne, validateSchema: (Ce = _.validateSchema) === null || Ce === void 0 || Ce, validateFormats: (Ee = _.validateFormats) === null || Ee === void 0 || Ee, unicodeRegExp: (Z = _.unicodeRegExp) === null || Z === void 0 || Z, int32range: (Ue = _.int32range) === null || Ue === void 0 || Ue, uriResolver: W };
15634
+ var x, k, O, R, F, H, G, Y, X, ee, N, $, M, U, q, K, ie, z, ve, te, Ne, Ce, Ee, Z, Ue;
15635
+ const Le = _.strict, be = (x = _.code) === null || x === void 0 ? void 0 : x.optimize, P = be === !0 || be === void 0 ? 1 : be || 0, L = (O = (k = _.code) === null || k === void 0 ? void 0 : k.regExp) !== null && O !== void 0 ? O : n, W = (R = _.uriResolver) !== null && R !== void 0 ? R : Y0.default;
15636
+ return { strictSchema: (H = (F = _.strictSchema) !== null && F !== void 0 ? F : Le) === null || H === void 0 || H, strictNumbers: (Y = (G = _.strictNumbers) !== null && G !== void 0 ? G : Le) === null || Y === void 0 || Y, strictTypes: (ee = (X = _.strictTypes) !== null && X !== void 0 ? X : Le) !== null && ee !== void 0 ? ee : "log", strictTuples: ($ = (N = _.strictTuples) !== null && N !== void 0 ? N : Le) !== null && $ !== void 0 ? $ : "log", strictRequired: (U = (M = _.strictRequired) !== null && M !== void 0 ? M : Le) !== null && U !== void 0 && U, code: _.code ? { ..._.code, optimize: P, regExp: L } : { optimize: P, regExp: L }, loopRequired: (q = _.loopRequired) !== null && q !== void 0 ? q : 200, loopEnum: (K = _.loopEnum) !== null && K !== void 0 ? K : 200, meta: (ie = _.meta) === null || ie === void 0 || ie, messages: (z = _.messages) === null || z === void 0 || z, inlineRefs: (ve = _.inlineRefs) === null || ve === void 0 || ve, schemaId: (te = _.schemaId) !== null && te !== void 0 ? te : "$id", addUsedSchema: (Ne = _.addUsedSchema) === null || Ne === void 0 || Ne, validateSchema: (Ce = _.validateSchema) === null || Ce === void 0 || Ce, validateFormats: (Ee = _.validateFormats) === null || Ee === void 0 || Ee, unicodeRegExp: (Z = _.unicodeRegExp) === null || Z === void 0 || Z, int32range: (Ue = _.int32range) === null || Ue === void 0 || Ue, uriResolver: W };
15632
15637
  }
15633
15638
  class c {
15634
15639
  constructor(x = {}) {
15635
15640
  this.schemas = {}, this.refs = {}, this.formats = {}, this._compilations = /* @__PURE__ */ new Set(), this._loading = {}, this._cache = /* @__PURE__ */ new Map(), x = this.opts = { ...x, ...l(x) };
15636
- const { es5: k, lines: P } = this.opts.code;
15637
- this.scope = new r.ValueScope({ scope: {}, prefixes: i, es5: k, lines: P }), this.logger = function(F) {
15641
+ const { es5: k, lines: O } = this.opts.code;
15642
+ this.scope = new r.ValueScope({ scope: {}, prefixes: i, es5: k, lines: O }), this.logger = function(F) {
15638
15643
  if (F === !1)
15639
15644
  return v;
15640
15645
  if (F === void 0)
@@ -15650,32 +15655,32 @@ var Y0 = /* @__PURE__ */ Object.defineProperty({ default: wd }, "__esModule", {
15650
15655
  this.addKeyword("$async");
15651
15656
  }
15652
15657
  _addDefaultMetaSchema() {
15653
- const { $data: x, meta: k, schemaId: P } = this.opts;
15658
+ const { $data: x, meta: k, schemaId: O } = this.opts;
15654
15659
  let R = $l;
15655
- P === "id" && (R = { ...$l }, R.id = R.$id, delete R.$id), k && x && this.addMetaSchema(R, R[P], !1);
15660
+ O === "id" && (R = { ...$l }, R.id = R.$id, delete R.$id), k && x && this.addMetaSchema(R, R[O], !1);
15656
15661
  }
15657
15662
  defaultMeta() {
15658
15663
  const { meta: x, schemaId: k } = this.opts;
15659
15664
  return this.opts.defaultMeta = typeof x == "object" ? x[k] || x : void 0;
15660
15665
  }
15661
15666
  validate(x, k) {
15662
- let P;
15667
+ let O;
15663
15668
  if (typeof x == "string") {
15664
- if (P = this.getSchema(x), !P)
15669
+ if (O = this.getSchema(x), !O)
15665
15670
  throw new Error(`no schema with key or ref "${x}"`);
15666
15671
  } else
15667
- P = this.compile(x);
15668
- const R = P(k);
15669
- return "$async" in P || (this.errors = P.errors), R;
15672
+ O = this.compile(x);
15673
+ const R = O(k);
15674
+ return "$async" in O || (this.errors = O.errors), R;
15670
15675
  }
15671
15676
  compile(x, k) {
15672
- const P = this._addSchema(x, k);
15673
- return P.validate || this._compileSchemaEnv(P);
15677
+ const O = this._addSchema(x, k);
15678
+ return O.validate || this._compileSchemaEnv(O);
15674
15679
  }
15675
15680
  compileAsync(x, k) {
15676
15681
  if (typeof this.opts.loadSchema != "function")
15677
15682
  throw new Error("options.loadSchema should be a function");
15678
- const { loadSchema: P } = this.opts;
15683
+ const { loadSchema: O } = this.opts;
15679
15684
  return R.call(this, x, k);
15680
15685
  async function R(ee, N) {
15681
15686
  await F.call(this, ee.$schema);
@@ -15707,16 +15712,16 @@ var Y0 = /* @__PURE__ */ Object.defineProperty({ default: wd }, "__esModule", {
15707
15712
  if (N)
15708
15713
  return N;
15709
15714
  try {
15710
- return await (this._loading[ee] = P(ee));
15715
+ return await (this._loading[ee] = O(ee));
15711
15716
  } finally {
15712
15717
  delete this._loading[ee];
15713
15718
  }
15714
15719
  }
15715
15720
  }
15716
- addSchema(x, k, P, R = this.opts.validateSchema) {
15721
+ addSchema(x, k, O, R = this.opts.validateSchema) {
15717
15722
  if (Array.isArray(x)) {
15718
15723
  for (const H of x)
15719
- this.addSchema(H, void 0, P, R);
15724
+ this.addSchema(H, void 0, O, R);
15720
15725
  return this;
15721
15726
  }
15722
15727
  let F;
@@ -15725,20 +15730,20 @@ var Y0 = /* @__PURE__ */ Object.defineProperty({ default: wd }, "__esModule", {
15725
15730
  if (F = x[H], F !== void 0 && typeof F != "string")
15726
15731
  throw new Error(`schema ${H} must be string`);
15727
15732
  }
15728
- return k = (0, ft.normalizeId)(k || F), this._checkUnique(k), this.schemas[k] = this._addSchema(x, P, k, R, !0), this;
15733
+ return k = (0, ft.normalizeId)(k || F), this._checkUnique(k), this.schemas[k] = this._addSchema(x, O, k, R, !0), this;
15729
15734
  }
15730
- addMetaSchema(x, k, P = this.opts.validateSchema) {
15731
- return this.addSchema(x, k, !0, P), this;
15735
+ addMetaSchema(x, k, O = this.opts.validateSchema) {
15736
+ return this.addSchema(x, k, !0, O), this;
15732
15737
  }
15733
15738
  validateSchema(x, k) {
15734
15739
  if (typeof x == "boolean")
15735
15740
  return !0;
15736
- let P;
15737
- if (P = x.$schema, P !== void 0 && typeof P != "string")
15741
+ let O;
15742
+ if (O = x.$schema, O !== void 0 && typeof O != "string")
15738
15743
  throw new Error("$schema must be a string");
15739
- if (P = P || this.opts.defaultMeta || this.defaultMeta(), !P)
15744
+ if (O = O || this.opts.defaultMeta || this.defaultMeta(), !O)
15740
15745
  return this.logger.warn("meta-schema not available"), this.errors = null, !0;
15741
- const R = this.validate(P, x);
15746
+ const R = this.validate(O, x);
15742
15747
  if (!R && k) {
15743
15748
  const F = "schema is invalid: " + this.errorsText();
15744
15749
  if (this.opts.validateSchema !== "log")
@@ -15752,7 +15757,7 @@ var Y0 = /* @__PURE__ */ Object.defineProperty({ default: wd }, "__esModule", {
15752
15757
  for (; typeof (k = h.call(this, x)) == "string"; )
15753
15758
  x = k;
15754
15759
  if (k === void 0) {
15755
- const { schemaId: P } = this.opts, R = new yr.SchemaEnv({ schema: {}, schemaId: P });
15760
+ const { schemaId: O } = this.opts, R = new yr.SchemaEnv({ schema: {}, schemaId: O });
15756
15761
  if (k = yr.resolveSchema.call(this, R, x), !k)
15757
15762
  return;
15758
15763
  this.refs[x] = k;
@@ -15784,20 +15789,20 @@ var Y0 = /* @__PURE__ */ Object.defineProperty({ default: wd }, "__esModule", {
15784
15789
  return this;
15785
15790
  }
15786
15791
  addKeyword(x, k) {
15787
- let P;
15792
+ let O;
15788
15793
  if (typeof x == "string")
15789
- P = x, typeof k == "object" && (this.logger.warn("these parameters are deprecated, see docs for addKeyword"), k.keyword = P);
15794
+ O = x, typeof k == "object" && (this.logger.warn("these parameters are deprecated, see docs for addKeyword"), k.keyword = O);
15790
15795
  else {
15791
15796
  if (typeof x != "object" || k !== void 0)
15792
15797
  throw new Error("invalid addKeywords parameters");
15793
- if (P = (k = x).keyword, Array.isArray(P) && !P.length)
15798
+ if (O = (k = x).keyword, Array.isArray(O) && !O.length)
15794
15799
  throw new Error("addKeywords: keyword must be string or non-empty array");
15795
15800
  }
15796
- if (C.call(this, P, k), !k)
15797
- return (0, me.eachItem)(P, (F) => S.call(this, F)), this;
15801
+ if (C.call(this, O, k), !k)
15802
+ return (0, me.eachItem)(O, (F) => S.call(this, F)), this;
15798
15803
  b.call(this, k);
15799
15804
  const R = { ...k, type: (0, ar.getJSONTypes)(k.type), schemaType: (0, ar.getJSONTypes)(k.schemaType) };
15800
- return (0, me.eachItem)(P, R.type.length === 0 ? (F) => S.call(this, F, R) : (F) => R.type.forEach((H) => S.call(this, F, R, H))), this;
15805
+ return (0, me.eachItem)(O, R.type.length === 0 ? (F) => S.call(this, F, R) : (F) => R.type.forEach((H) => S.call(this, F, R, H))), this;
15801
15806
  }
15802
15807
  getKeyword(x) {
15803
15808
  const k = this.RULES.all[x];
@@ -15806,28 +15811,28 @@ var Y0 = /* @__PURE__ */ Object.defineProperty({ default: wd }, "__esModule", {
15806
15811
  removeKeyword(x) {
15807
15812
  const { RULES: k } = this;
15808
15813
  delete k.keywords[x], delete k.all[x];
15809
- for (const P of k.rules) {
15810
- const R = P.rules.findIndex((F) => F.keyword === x);
15811
- R >= 0 && P.rules.splice(R, 1);
15814
+ for (const O of k.rules) {
15815
+ const R = O.rules.findIndex((F) => F.keyword === x);
15816
+ R >= 0 && O.rules.splice(R, 1);
15812
15817
  }
15813
15818
  return this;
15814
15819
  }
15815
15820
  addFormat(x, k) {
15816
15821
  return typeof k == "string" && (k = new RegExp(k)), this.formats[x] = k, this;
15817
15822
  }
15818
- errorsText(x = this.errors, { separator: k = ", ", dataVar: P = "data" } = {}) {
15819
- return x && x.length !== 0 ? x.map((R) => `${P}${R.instancePath} ${R.message}`).reduce((R, F) => R + k + F) : "No errors";
15823
+ errorsText(x = this.errors, { separator: k = ", ", dataVar: O = "data" } = {}) {
15824
+ return x && x.length !== 0 ? x.map((R) => `${O}${R.instancePath} ${R.message}`).reduce((R, F) => R + k + F) : "No errors";
15820
15825
  }
15821
15826
  $dataMetaSchema(x, k) {
15822
- const P = this.RULES.all;
15827
+ const O = this.RULES.all;
15823
15828
  x = JSON.parse(JSON.stringify(x));
15824
15829
  for (const R of k) {
15825
15830
  const F = R.split("/").slice(1);
15826
15831
  let H = x;
15827
15832
  for (const G of F)
15828
15833
  H = H[G];
15829
- for (const G in P) {
15830
- const Y = P[G];
15834
+ for (const G in O) {
15835
+ const Y = O[G];
15831
15836
  if (typeof Y != "object")
15832
15837
  continue;
15833
15838
  const { $data: X } = Y.definition, ee = H[G];
@@ -15837,12 +15842,12 @@ var Y0 = /* @__PURE__ */ Object.defineProperty({ default: wd }, "__esModule", {
15837
15842
  return x;
15838
15843
  }
15839
15844
  _removeAllSchemas(x, k) {
15840
- for (const P in x) {
15841
- const R = x[P];
15842
- k && !k.test(P) || (typeof R == "string" ? delete x[P] : R && !R.meta && (this._cache.delete(R.schema), delete x[P]));
15845
+ for (const O in x) {
15846
+ const R = x[O];
15847
+ k && !k.test(O) || (typeof R == "string" ? delete x[O] : R && !R.meta && (this._cache.delete(R.schema), delete x[O]));
15843
15848
  }
15844
15849
  }
15845
- _addSchema(x, k, P, R = this.opts.validateSchema, F = this.opts.addUsedSchema) {
15850
+ _addSchema(x, k, O, R = this.opts.validateSchema, F = this.opts.addUsedSchema) {
15846
15851
  let H;
15847
15852
  const { schemaId: G } = this.opts;
15848
15853
  if (typeof x == "object")
@@ -15856,9 +15861,9 @@ var Y0 = /* @__PURE__ */ Object.defineProperty({ default: wd }, "__esModule", {
15856
15861
  let Y = this._cache.get(x);
15857
15862
  if (Y !== void 0)
15858
15863
  return Y;
15859
- P = (0, ft.normalizeId)(H || P);
15860
- const X = ft.getSchemaRefs.call(this, x, P);
15861
- return Y = new yr.SchemaEnv({ schema: x, schemaId: G, meta: k, baseId: P, localRefs: X }), this._cache.set(Y.schema, Y), F && !P.startsWith("#") && (P && this._checkUnique(P), this.refs[P] = Y), R && this.validateSchema(x, !0), Y;
15864
+ O = (0, ft.normalizeId)(H || O);
15865
+ const X = ft.getSchemaRefs.call(this, x, O);
15866
+ return Y = new yr.SchemaEnv({ schema: x, schemaId: G, meta: k, baseId: O, localRefs: X }), this._cache.set(Y.schema, Y), F && !O.startsWith("#") && (O && this._checkUnique(O), this.refs[O] = Y), R && this.validateSchema(x, !0), Y;
15862
15867
  }
15863
15868
  _checkUnique(x) {
15864
15869
  if (this.schemas[x] || this.refs[x])
@@ -15879,10 +15884,10 @@ var Y0 = /* @__PURE__ */ Object.defineProperty({ default: wd }, "__esModule", {
15879
15884
  }
15880
15885
  }
15881
15886
  }
15882
- function d(_, x, k, P = "error") {
15887
+ function d(_, x, k, O = "error") {
15883
15888
  for (const R in _) {
15884
15889
  const F = R;
15885
- F in x && this.logger[P](`${k}: option ${R}. ${_[F]}`);
15890
+ F in x && this.logger[O](`${k}: option ${R}. ${_[F]}`);
15886
15891
  }
15887
15892
  }
15888
15893
  function h(_) {
@@ -15927,16 +15932,16 @@ var Y0 = /* @__PURE__ */ Object.defineProperty({ default: wd }, "__esModule", {
15927
15932
  } }, E = /^[a-z_$][a-z0-9_$:-]*$/i;
15928
15933
  function C(_, x) {
15929
15934
  const { RULES: k } = this;
15930
- if ((0, me.eachItem)(_, (P) => {
15931
- if (k.keywords[P])
15932
- throw new Error(`Keyword ${P} is already defined`);
15933
- if (!E.test(P))
15934
- throw new Error(`Keyword ${P} has invalid name`);
15935
+ if ((0, me.eachItem)(_, (O) => {
15936
+ if (k.keywords[O])
15937
+ throw new Error(`Keyword ${O} is already defined`);
15938
+ if (!E.test(O))
15939
+ throw new Error(`Keyword ${O} has invalid name`);
15935
15940
  }), x && x.$data && !("code" in x) && !("validate" in x))
15936
15941
  throw new Error('$data keyword must have "code" or "validate" function');
15937
15942
  }
15938
15943
  function S(_, x, k) {
15939
- var P;
15944
+ var O;
15940
15945
  const R = x == null ? void 0 : x.post;
15941
15946
  if (k && R)
15942
15947
  throw new Error('keyword with "post" flag cannot have "type"');
@@ -15945,11 +15950,11 @@ var Y0 = /* @__PURE__ */ Object.defineProperty({ default: wd }, "__esModule", {
15945
15950
  if (H || (H = { type: k, rules: [] }, F.rules.push(H)), F.keywords[_] = !0, !x)
15946
15951
  return;
15947
15952
  const G = { keyword: _, definition: { ...x, type: (0, ar.getJSONTypes)(x.type), schemaType: (0, ar.getJSONTypes)(x.schemaType) } };
15948
- x.before ? w.call(this, H, G, x.before) : H.rules.push(G), F.all[_] = G, (P = x.implements) === null || P === void 0 || P.forEach((Y) => this.addKeyword(Y));
15953
+ x.before ? w.call(this, H, G, x.before) : H.rules.push(G), F.all[_] = G, (O = x.implements) === null || O === void 0 || O.forEach((Y) => this.addKeyword(Y));
15949
15954
  }
15950
15955
  function w(_, x, k) {
15951
- const P = _.rules.findIndex((R) => R.keyword === k);
15952
- P >= 0 ? _.rules.splice(P, 0, x) : (_.rules.push(x), this.logger.warn(`rule ${k} is not defined`));
15956
+ const O = _.rules.findIndex((R) => R.keyword === k);
15957
+ O >= 0 ? _.rules.splice(O, 0, x) : (_.rules.push(x), this.logger.warn(`rule ${k} is not defined`));
15953
15958
  }
15954
15959
  function b(_) {
15955
15960
  let { metaSchema: x } = _;
@@ -16554,8 +16559,8 @@ var kb = /* @__PURE__ */ Object.defineProperty({ default: Tb }, "__esModule", {
16554
16559
  function w(V, _) {
16555
16560
  const x = [];
16556
16561
  for (const k in V) {
16557
- const P = _[k];
16558
- i.test(P) && x.push([k, A(P)]);
16562
+ const O = _[k];
16563
+ i.test(O) && x.push([k, A(O)]);
16559
16564
  }
16560
16565
  return u.object(...x);
16561
16566
  }
@@ -16568,54 +16573,54 @@ var kb = /* @__PURE__ */ Object.defineProperty({ default: Tb }, "__esModule", {
16568
16573
  u.if(ce._`${J.default.errors} > 0`, () => {
16569
16574
  if (typeof E == "object") {
16570
16575
  const [_, x] = function(k) {
16571
- let P, R;
16576
+ let O, R;
16572
16577
  for (const F in k) {
16573
16578
  if (F === "properties" || F === "items")
16574
16579
  continue;
16575
16580
  const H = k[F];
16576
16581
  if (typeof H == "object") {
16577
- P || (P = {});
16578
- const G = P[F] = {};
16582
+ O || (O = {});
16583
+ const G = O[F] = {};
16579
16584
  for (const Y in H)
16580
16585
  G[Y] = [];
16581
16586
  } else
16582
16587
  R || (R = {}), R[F] = [];
16583
16588
  }
16584
- return [P, R];
16589
+ return [O, R];
16585
16590
  }(E);
16586
16591
  x && function(k) {
16587
- const P = u.const("emErrors", ce.stringify(k)), R = u.const("templates", w(k, p));
16588
- u.forOf("err", J.default.vErrors, (Y) => u.if(S(Y, P), () => u.code(ce._`${P}[${Y}.keyword].push(${Y})`).assign(ce._`${Y}.${n}`, !0)));
16592
+ const O = u.const("emErrors", ce.stringify(k)), R = u.const("templates", w(k, p));
16593
+ u.forOf("err", J.default.vErrors, (Y) => u.if(S(Y, O), () => u.code(ce._`${O}[${Y}.keyword].push(${Y})`).assign(ce._`${Y}.${n}`, !0)));
16589
16594
  const { singleError: F } = d;
16590
16595
  if (F) {
16591
16596
  const Y = u.let("message", ce._`""`), X = u.let("paramsErrors", ce._`[]`);
16592
16597
  H((ee) => {
16593
- u.if(Y, () => u.code(ce._`${Y} += ${typeof F == "string" ? F : ";"}`)), u.code(ce._`${Y} += ${G(ee)}`), u.assign(X, ce._`${X}.concat(${P}[${ee}])`);
16598
+ u.if(Y, () => u.code(ce._`${Y} += ${typeof F == "string" ? F : ";"}`)), u.code(ce._`${Y} += ${G(ee)}`), u.assign(X, ce._`${X}.concat(${O}[${ee}])`);
16594
16599
  }), Nt.reportError(h, { message: Y, params: ce._`{errors: ${X}}` });
16595
16600
  } else
16596
- H((Y) => Nt.reportError(h, { message: G(Y), params: ce._`{errors: ${P}[${Y}]}` }));
16601
+ H((Y) => Nt.reportError(h, { message: G(Y), params: ce._`{errors: ${O}[${Y}]}` }));
16597
16602
  function H(Y) {
16598
- u.forIn("key", P, (X) => u.if(ce._`${P}[${X}].length`, () => Y(X)));
16603
+ u.forIn("key", O, (X) => u.if(ce._`${O}[${X}].length`, () => Y(X)));
16599
16604
  }
16600
16605
  function G(Y) {
16601
16606
  return ce._`${Y} in ${R} ? ${R}[${Y}]() : ${y}[${Y}]`;
16602
16607
  }
16603
16608
  }(x), _ && function(k) {
16604
- const P = u.const("emErrors", ce.stringify(k)), R = [];
16609
+ const O = u.const("emErrors", ce.stringify(k)), R = [];
16605
16610
  for (const X in k)
16606
16611
  R.push([X, w(k[X], p[X])]);
16607
16612
  const F = u.const("templates", u.object(...R)), H = u.scopeValue("obj", { ref: s, code: ce.stringify(s) }), G = u.let("emPropParams"), Y = u.let("emParamsErrors");
16608
- u.forOf("err", J.default.vErrors, (X) => u.if(S(X, P), () => {
16609
- u.assign(G, ce._`${H}[${X}.keyword]`), u.assign(Y, ce._`${P}[${X}.keyword][${X}.params[${G}]]`), u.if(Y, () => u.code(ce._`${Y}.push(${X})`).assign(ce._`${X}.${n}`, !0));
16610
- })), u.forIn("key", P, (X) => u.forIn("keyProp", ce._`${P}[${X}]`, (ee) => {
16611
- u.assign(Y, ce._`${P}[${X}][${ee}]`), u.if(ce._`${Y}.length`, () => {
16613
+ u.forOf("err", J.default.vErrors, (X) => u.if(S(X, O), () => {
16614
+ u.assign(G, ce._`${H}[${X}.keyword]`), u.assign(Y, ce._`${O}[${X}.keyword][${X}.params[${G}]]`), u.if(Y, () => u.code(ce._`${Y}.push(${X})`).assign(ce._`${X}.${n}`, !0));
16615
+ })), u.forIn("key", O, (X) => u.forIn("keyProp", ce._`${O}[${X}]`, (ee) => {
16616
+ u.assign(Y, ce._`${O}[${X}][${ee}]`), u.if(ce._`${Y}.length`, () => {
16612
16617
  const N = u.const("tmpl", ce._`${F}[${X}] && ${F}[${X}][${ee}]`);
16613
16618
  Nt.reportError(h, { message: ce._`${N} ? ${N}() : ${y}[${X}][${ee}]`, params: ce._`{errors: ${Y}}` });
16614
16619
  });
16615
16620
  }));
16616
16621
  }(_), function(k) {
16617
- const { props: P, items: R } = k;
16618
- if (!P && !R)
16622
+ const { props: O, items: R } = k;
16623
+ if (!O && !R)
16619
16624
  return;
16620
16625
  const F = ce._`typeof ${m} == "object"`, H = ce._`Array.isArray(${m})`, G = u.let("emErrors");
16621
16626
  let Y, X;
@@ -16623,11 +16628,11 @@ var kb = /* @__PURE__ */ Object.defineProperty({ default: Tb }, "__esModule", {
16623
16628
  function N($, M) {
16624
16629
  u.assign(G, ce.stringify($)), u.assign(ee, w($, M));
16625
16630
  }
16626
- P && R ? (Y = u.let("emChildKwd"), u.if(F), u.if(H, () => {
16631
+ O && R ? (Y = u.let("emChildKwd"), u.if(F), u.if(H, () => {
16627
16632
  N(R, p.items), u.assign(Y, ce.str`items`);
16628
16633
  }, () => {
16629
- N(P, p.properties), u.assign(Y, ce.str`properties`);
16630
- }), X = ce._`[${Y}]`) : R ? (u.if(H), N(R, p.items), X = ce._`.items`) : P && (u.if(g.and(F, g.not(H))), N(P, p.properties), X = ce._`.properties`), u.forOf("err", J.default.vErrors, ($) => function(M, U, q) {
16634
+ N(O, p.properties), u.assign(Y, ce.str`properties`);
16635
+ }), X = ce._`[${Y}]`) : R ? (u.if(H), N(R, p.items), X = ce._`.items`) : O && (u.if(g.and(F, g.not(H))), N(O, p.properties), X = ce._`.properties`), u.forOf("err", J.default.vErrors, ($) => function(M, U, q) {
16631
16636
  u.if(g.and(ce._`${M}.keyword !== ${r}`, ce._`!${M}.${n}`, ce._`${M}.instancePath.indexOf(${C}) === 0`), () => {
16632
16637
  const K = u.scopeValue("pattern", { ref: /^\/([^/]*)(?:\/|$)/, code: ce._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")` }), ie = u.const("emMatches", ce._`${K}.exec(${M}.instancePath.slice(${C}.length))`), z = u.const("emChild", ce._`${ie} && ${ie}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);
16633
16638
  u.if(ce._`${z} !== undefined && ${z} in ${U}`, () => q(z));
@@ -16635,16 +16640,16 @@ var kb = /* @__PURE__ */ Object.defineProperty({ default: Tb }, "__esModule", {
16635
16640
  }($, G, (M) => u.code(ce._`${G}[${M}].push(${$})`).assign(ce._`${$}.${n}`, !0))), u.forIn("key", G, ($) => u.if(ce._`${G}[${$}].length`, () => {
16636
16641
  Nt.reportError(h, { message: ce._`${$} in ${ee} ? ${ee}[${$}]() : ${y}${X}[${$}]`, params: ce._`{errors: ${G}[${$}]}` }), u.assign(ce._`${J.default.vErrors}[${J.default.errors}-1].instancePath`, ce._`${C} + "/" + ${$}.replace(/~/g, "~0").replace(/\\//g, "~1")`);
16637
16642
  })), u.endIf();
16638
- }(function({ properties: k, items: P }) {
16643
+ }(function({ properties: k, items: O }) {
16639
16644
  const R = {};
16640
16645
  if (k) {
16641
16646
  R.props = {};
16642
16647
  for (const F in k)
16643
16648
  R.props[F] = [];
16644
16649
  }
16645
- if (P) {
16650
+ if (O) {
16646
16651
  R.items = {};
16647
- for (let F = 0; F < P.length; F++)
16652
+ for (let F = 0; F < O.length; F++)
16648
16653
  R.items[F] = [];
16649
16654
  }
16650
16655
  return R;
@@ -16653,8 +16658,8 @@ var kb = /* @__PURE__ */ Object.defineProperty({ default: Tb }, "__esModule", {
16653
16658
  const V = typeof E == "string" ? E : E._;
16654
16659
  V && function(_) {
16655
16660
  const x = u.const("emErrs", ce._`[]`);
16656
- u.forOf("err", J.default.vErrors, (k) => u.if(function(P) {
16657
- return g.and(ce._`${P}.keyword !== ${r}`, ce._`!${P}.${n}`, g.or(ce._`${P}.instancePath === ${C}`, g.and(ce._`${P}.instancePath.indexOf(${C}) === 0`, ce._`${P}.instancePath[${C}.length] === "/"`)), ce._`${P}.schemaPath.indexOf(${v.errSchemaPath}) === 0`, ce._`${P}.schemaPath[${v.errSchemaPath}.length] === "/"`);
16661
+ u.forOf("err", J.default.vErrors, (k) => u.if(function(O) {
16662
+ return g.and(ce._`${O}.keyword !== ${r}`, ce._`!${O}.${n}`, g.or(ce._`${O}.instancePath === ${C}`, g.and(ce._`${O}.instancePath.indexOf(${C}) === 0`, ce._`${O}.instancePath[${C}.length] === "/"`)), ce._`${O}.schemaPath.indexOf(${v.errSchemaPath}) === 0`, ce._`${O}.schemaPath[${v.errSchemaPath}.length] === "/"`);
16658
16663
  }(k), () => u.code(ce._`${x}.push(${k})`).assign(ce._`${k}.${n}`, !0))), u.if(ce._`${x}.length`, () => Nt.reportError(h, { message: b(_), params: ce._`{errors: ${x}}` }));
16659
16664
  }(V), d.keepErrors || function() {
16660
16665
  const _ = u.const("emErrs", ce._`[]`);