@tempots/beatui 0.74.0 → 0.75.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { U as sn, V as ye, B as Gs, o as ze, m as br, p as Xs, C as Zs, t as xs, l as Ys, j as Qs, N as ei, k as ti, s as ri, r as ni, q as ai, R as si, S as ii, E as rs, W as oi, u as ci, X as ui } from "../widget-customization-Bo4XWiwB.js";
2
- import { Y as gf, c as vf, d as $f, f as bf } from "../widget-customization-Bo4XWiwB.js";
1
+ import { U as sn, V as ye, B as Gs, o as ze, m as br, p as Xs, C as Zs, t as xs, l as Ys, j as Qs, N as ei, k as ti, s as ri, r as ni, q as ai, R as si, S as ii, E as rs, W as oi, u as ci, X as ui } from "../widget-customization-CobH7Rj_.js";
2
+ import { Y as gf, c as vf, d as $f, f as bf } from "../widget-customization-CobH7Rj_.js";
3
3
  import { g as dr } from "../_commonjsHelpers-C6fGbg64.js";
4
4
  import { a as Ee, S as me, I as nt, c as te, j as _r, b as on, L as We, M as li, C as ns, g as di, A as fi, h as mi } from "../use-form-B7A865EM.js";
5
5
  import { _ as Kr, g as pi, S as hi, f as yi, N as as, l as de, W as gi, e as vi, t as Xe, T as $i, U as bi, b as Mr, c as _i, M as st, h as wi, G as Si, L as Pi, i as ji, j as Ei } from "../deep-merge-CQQCMLwG.js";
@@ -310,8 +310,8 @@ function H() {
310
310
  super(), this.varKind = $, this.name = j, this.rhs = R;
311
311
  }
312
312
  render({ es5: $, _n: j }) {
313
- const R = $ ? r.varKinds.var : this.varKind, L = this.rhs === void 0 ? "" : ` = ${this.rhs}`;
314
- return `${R} ${this.name}${L};` + j;
313
+ const R = $ ? r.varKinds.var : this.varKind, F = this.rhs === void 0 ? "" : ` = ${this.rhs}`;
314
+ return `${R} ${this.name}${F};` + j;
315
315
  }
316
316
  optimizeNames($, j) {
317
317
  if ($[this.name.str])
@@ -334,12 +334,12 @@ function H() {
334
334
  }
335
335
  get names() {
336
336
  const $ = this.lhs instanceof t.Name ? {} : { ...this.lhs.names };
337
- return F($, this.rhs);
337
+ return L($, this.rhs);
338
338
  }
339
339
  }
340
340
  class l extends c {
341
- constructor($, j, R, L) {
342
- super($, R, L), this.op = j;
341
+ constructor($, j, R, F) {
342
+ super($, R, F), this.op = j;
343
343
  }
344
344
  render({ _n: $ }) {
345
345
  return `${this.lhs} ${this.op}= ${this.rhs};` + $;
@@ -407,10 +407,10 @@ function H() {
407
407
  }
408
408
  optimizeNames($, j) {
409
409
  const { nodes: R } = this;
410
- let L = R.length;
411
- for (; L--; ) {
412
- const D = R[L];
413
- D.optimizeNames($, j) || (ee($, D.names), R.splice(L, 1));
410
+ let F = R.length;
411
+ for (; F--; ) {
412
+ const D = R[F];
413
+ D.optimizeNames($, j) || (ee($, D.names), R.splice(F, 1));
414
414
  }
415
415
  return R.length > 0 ? this : void 0;
416
416
  }
@@ -458,7 +458,7 @@ function H() {
458
458
  }
459
459
  get names() {
460
460
  const $ = super.names;
461
- return F($, this.condition), this.else && V($, this.else.names), $;
461
+ return L($, this.condition), this.else && V($, this.else.names), $;
462
462
  }
463
463
  }
464
464
  f.kind = "if";
@@ -481,21 +481,21 @@ function H() {
481
481
  }
482
482
  }
483
483
  class y extends o {
484
- constructor($, j, R, L) {
485
- super(), this.varKind = $, this.name = j, this.from = R, this.to = L;
484
+ constructor($, j, R, F) {
485
+ super(), this.varKind = $, this.name = j, this.from = R, this.to = F;
486
486
  }
487
487
  render($) {
488
- const j = $.es5 ? r.varKinds.var : this.varKind, { name: R, from: L, to: D } = this;
489
- return `for(${j} ${R}=${L}; ${R}<${D}; ${R}++)` + super.render($);
488
+ const j = $.es5 ? r.varKinds.var : this.varKind, { name: R, from: F, to: D } = this;
489
+ return `for(${j} ${R}=${F}; ${R}<${D}; ${R}++)` + super.render($);
490
490
  }
491
491
  get names() {
492
- const $ = F(super.names, this.from);
493
- return F($, this.to);
492
+ const $ = L(super.names, this.from);
493
+ return L($, this.to);
494
494
  }
495
495
  }
496
496
  class v extends o {
497
- constructor($, j, R, L) {
498
- super(), this.loop = $, this.varKind = j, this.name = R, this.iterable = L;
497
+ constructor($, j, R, F) {
498
+ super(), this.loop = $, this.varKind = j, this.name = R, this.iterable = F;
499
499
  }
500
500
  render($) {
501
501
  return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render($);
@@ -533,8 +533,8 @@ function H() {
533
533
  return super.optimizeNodes(), ($ = this.catch) === null || $ === void 0 || $.optimizeNodes(), (j = this.finally) === null || j === void 0 || j.optimizeNodes(), this;
534
534
  }
535
535
  optimizeNames($, j) {
536
- var R, L;
537
- return super.optimizeNames($, j), (R = this.catch) === null || R === void 0 || R.optimizeNames($, j), (L = this.finally) === null || L === void 0 || L.optimizeNames($, j), this;
536
+ var R, F;
537
+ return super.optimizeNames($, j), (R = this.catch) === null || R === void 0 || R.optimizeNames($, j), (F = this.finally) === null || F === void 0 || F.optimizeNames($, j), this;
538
538
  }
539
539
  get names() {
540
540
  const $ = super.names;
@@ -588,9 +588,9 @@ function H() {
588
588
  scopeCode() {
589
589
  return this._extScope.scopeCode(this._values);
590
590
  }
591
- _def($, j, R, L) {
591
+ _def($, j, R, F) {
592
592
  const D = this._scope.toName(j);
593
- return R !== void 0 && L && (this._constants[D.str] = R), this._leafNode(new i($, D, R)), D;
593
+ return R !== void 0 && F && (this._constants[D.str] = R), this._leafNode(new i($, D, R)), D;
594
594
  }
595
595
  // `const` declaration (`var` in es5 mode)
596
596
  const($, j, R) {
@@ -619,8 +619,8 @@ function H() {
619
619
  // returns code for object literal for the passed argument list of key-value pairs
620
620
  object(...$) {
621
621
  const j = ["{"];
622
- for (const [R, L] of $)
623
- j.length > 1 && j.push(","), j.push(R), (R !== L || this.opts.es5) && (j.push(":"), (0, t.addCodeArg)(j, L));
622
+ for (const [R, F] of $)
623
+ j.length > 1 && j.push(","), j.push(R), (R !== F || this.opts.es5) && (j.push(":"), (0, t.addCodeArg)(j, F));
624
624
  return j.push("}"), new t._Code(j);
625
625
  }
626
626
  // `if` clause (or statement if `thenBody` and, optionally, `elseBody` are passed)
@@ -653,12 +653,12 @@ function H() {
653
653
  return this._for(new d($), j);
654
654
  }
655
655
  // `for` statement for a range of values
656
- forRange($, j, R, L, D = this.opts.es5 ? r.varKinds.var : r.varKinds.let) {
656
+ forRange($, j, R, F, D = this.opts.es5 ? r.varKinds.var : r.varKinds.let) {
657
657
  const X = this._scope.toName($);
658
- return this._for(new y(D, X, j, R), () => L(X));
658
+ return this._for(new y(D, X, j, R), () => F(X));
659
659
  }
660
660
  // `for-of` statement (in es5 mode replace with a normal for loop)
661
- forOf($, j, R, L = r.varKinds.const) {
661
+ forOf($, j, R, F = r.varKinds.const) {
662
662
  const D = this._scope.toName($);
663
663
  if (this.opts.es5) {
664
664
  const X = j instanceof t.Name ? j : this.var("_arr", j);
@@ -666,15 +666,15 @@ function H() {
666
666
  this.var(D, (0, t._)`${X}[${G}]`), R(D);
667
667
  });
668
668
  }
669
- return this._for(new v("of", L, D, j), () => R(D));
669
+ return this._for(new v("of", F, D, j), () => R(D));
670
670
  }
671
671
  // `for-in` statement.
672
672
  // With option `ownProperties` replaced with a `for-of` loop for object keys
673
- forIn($, j, R, L = this.opts.es5 ? r.varKinds.var : r.varKinds.const) {
673
+ forIn($, j, R, F = this.opts.es5 ? r.varKinds.var : r.varKinds.const) {
674
674
  if (this.opts.ownProperties)
675
675
  return this.forOf($, (0, t._)`Object.keys(${j})`, R);
676
676
  const D = this._scope.toName($);
677
- return this._for(new v("in", L, D, j), () => R(D));
677
+ return this._for(new v("in", F, D, j), () => R(D));
678
678
  }
679
679
  // end `for` loop
680
680
  endFor() {
@@ -699,12 +699,12 @@ function H() {
699
699
  try($, j, R) {
700
700
  if (!j && !R)
701
701
  throw new Error('CodeGen: "try" without "catch" and "finally"');
702
- const L = new N();
703
- if (this._blockNode(L), this.code($), j) {
702
+ const F = new N();
703
+ if (this._blockNode(F), this.code($), j) {
704
704
  const D = this.name("e");
705
- this._currNode = L.catch = new q(D), j(D);
705
+ this._currNode = F.catch = new q(D), j(D);
706
706
  }
707
- return R && (this._currNode = L.finally = new U(), this.code(R)), this._endBlockNode(q, U);
707
+ return R && (this._currNode = F.finally = new U(), this.code(R)), this._endBlockNode(q, U);
708
708
  }
709
709
  // `throw` statement
710
710
  throw($) {
@@ -725,8 +725,8 @@ function H() {
725
725
  return this._nodes.length = j, this;
726
726
  }
727
727
  // `function` heading (or definition if funcBody is passed)
728
- func($, j = t.nil, R, L) {
729
- return this._blockNode(new _($, j, R)), L && this.code(L).endFunc(), this;
728
+ func($, j = t.nil, R, F) {
729
+ return this._blockNode(new _($, j, R)), F && this.code(F).endFunc(), this;
730
730
  }
731
731
  // end function definition
732
732
  endFunc() {
@@ -772,20 +772,20 @@ function H() {
772
772
  k[j] = (k[j] || 0) + ($[j] || 0);
773
773
  return k;
774
774
  }
775
- function F(k, $) {
775
+ function L(k, $) {
776
776
  return $ instanceof t._CodeOrName ? V(k, $.names) : k;
777
777
  }
778
778
  function W(k, $, j) {
779
779
  if (k instanceof t.Name)
780
780
  return R(k);
781
- if (!L(k))
781
+ if (!F(k))
782
782
  return k;
783
783
  return new t._Code(k._items.reduce((D, X) => (X instanceof t.Name && (X = R(X)), X instanceof t._Code ? D.push(...X._items) : D.push(X), D), []));
784
784
  function R(D) {
785
785
  const X = j[D.str];
786
786
  return X === void 0 || $[D.str] !== 1 ? D : (delete $[D.str], X);
787
787
  }
788
- function L(D) {
788
+ function F(D) {
789
789
  return D instanceof t._Code && D._items.some((X) => X instanceof t.Name && $[X.str] === 1 && j[X.str] !== void 0);
790
790
  }
791
791
  }
@@ -894,8 +894,8 @@ function Q() {
894
894
  Z.eachItem = g;
895
895
  function w({ mergeNames: v, mergeToName: _, mergeValues: P, resultToName: N }) {
896
896
  return (q, U, I, V) => {
897
- const F = I === void 0 ? U : I instanceof e.Name ? (U instanceof e.Name ? v(q, U, I) : _(q, U, I), I) : U instanceof e.Name ? (_(q, I, U), U) : P(U, I);
898
- return V === e.Name && !(F instanceof e.Name) ? N(q, F) : F;
897
+ const L = I === void 0 ? U : I instanceof e.Name ? (U instanceof e.Name ? v(q, U, I) : _(q, U, I), I) : U instanceof e.Name ? (_(q, I, U), U) : P(U, I);
898
+ return V === e.Name && !(L instanceof e.Name) ? N(q, L) : L;
899
899
  };
900
900
  }
901
901
  Z.mergeEvaluated = {
@@ -1370,14 +1370,14 @@ function je() {
1370
1370
  }
1371
1371
  ne.schemaProperties = g;
1372
1372
  function w({ schemaCode: o, data: d, it: { gen: y, topSchemaRef: v, schemaPath: _, errorPath: P }, it: N }, q, U, I) {
1373
- const V = I ? (0, e._)`${o}, ${d}, ${v}${_}` : d, F = [
1373
+ const V = I ? (0, e._)`${o}, ${d}, ${v}${_}` : d, L = [
1374
1374
  [r.default.instancePath, (0, e.strConcat)(r.default.instancePath, P)],
1375
1375
  [r.default.parentData, N.parentData],
1376
1376
  [r.default.parentDataProperty, N.parentDataProperty],
1377
1377
  [r.default.rootData, r.default.rootData]
1378
1378
  ];
1379
- N.opts.dynamicRef && F.push([r.default.dynamicAnchors, r.default.dynamicAnchors]);
1380
- const W = (0, e._)`${V}, ${y.object(...F)}`;
1379
+ N.opts.dynamicRef && L.push([r.default.dynamicAnchors, r.default.dynamicAnchors]);
1380
+ const W = (0, e._)`${V}, ${y.object(...L)}`;
1381
1381
  return U !== e.nil ? (0, e._)`${q}.call(${U}, ${W})` : (0, e._)`${q}(${W})`;
1382
1382
  }
1383
1383
  ne.callValidateCode = w;
@@ -1456,25 +1456,25 @@ function Di() {
1456
1456
  if (w.errors === !1)
1457
1457
  I(), w.modifying && i(g), V(() => g.error());
1458
1458
  else {
1459
- const F = w.async ? q() : U();
1460
- w.modifying && i(g), V(() => c(g, F));
1459
+ const L = w.async ? q() : U();
1460
+ w.modifying && i(g), V(() => c(g, L));
1461
1461
  }
1462
1462
  }
1463
1463
  function q() {
1464
- const F = h.let("ruleErrs", null);
1465
- return h.try(() => I((0, e._)`await `), (W) => h.assign(P, !1).if((0, e._)`${W} instanceof ${y.ValidationError}`, () => h.assign(F, (0, e._)`${W}.errors`), () => h.throw(W))), F;
1464
+ const L = h.let("ruleErrs", null);
1465
+ return h.try(() => I((0, e._)`await `), (W) => h.assign(P, !1).if((0, e._)`${W} instanceof ${y.ValidationError}`, () => h.assign(L, (0, e._)`${W}.errors`), () => h.throw(W))), L;
1466
1466
  }
1467
1467
  function U() {
1468
- const F = (0, e._)`${_}.errors`;
1469
- return h.assign(F, null), I(e.nil), F;
1468
+ const L = (0, e._)`${_}.errors`;
1469
+ return h.assign(L, null), I(e.nil), L;
1470
1470
  }
1471
- function I(F = w.async ? (0, e._)`await ` : e.nil) {
1471
+ function I(L = w.async ? (0, e._)`await ` : e.nil) {
1472
1472
  const W = y.opts.passContext ? t.default.this : t.default.self, ee = !("compile" in w && !d || w.schema === !1);
1473
- h.assign(P, (0, e._)`${F}${(0, r.callValidateCode)(g, _, W, ee)}`, w.modifying);
1473
+ h.assign(P, (0, e._)`${L}${(0, r.callValidateCode)(g, _, W, ee)}`, w.modifying);
1474
1474
  }
1475
- function V(F) {
1475
+ function V(L) {
1476
1476
  var W;
1477
- h.if((0, e.not)((W = w.valid) !== null && W !== void 0 ? W : P), F);
1477
+ h.if((0, e.not)((W = w.valid) !== null && W !== void 0 ? W : P), L);
1478
1478
  }
1479
1479
  }
1480
1480
  Se.funcKeywordCode = a;
@@ -1753,11 +1753,11 @@ function pr() {
1753
1753
  if (typeof h == "boolean")
1754
1754
  return {};
1755
1755
  const { schemaId: f, uriResolver: o } = this.opts, d = b(h[f] || u), y = { "": d }, v = l(o, d, !1), _ = {}, P = /* @__PURE__ */ new Set();
1756
- return r(h, { allKeys: !0 }, (U, I, V, F) => {
1757
- if (F === void 0)
1756
+ return r(h, { allKeys: !0 }, (U, I, V, L) => {
1757
+ if (L === void 0)
1758
1758
  return;
1759
1759
  const W = v + I;
1760
- let ee = y[F];
1760
+ let ee = y[L];
1761
1761
  typeof U[f] == "string" && (ee = re.call(this, U[f])), ae.call(this, U.$anchor), ae.call(this, U.$dynamicAnchor), y[I] = ee;
1762
1762
  function re(Y) {
1763
1763
  const ce = this.opts.uriResolver.resolve;
@@ -1816,7 +1816,7 @@ function Je() {
1816
1816
  function u(E) {
1817
1817
  const { schema: A, opts: T, gen: z } = E;
1818
1818
  w(E, () => {
1819
- T.$comment && A.$comment && F(E), U(E), z.let(l.default.vErrors, null), z.let(l.default.errors, 0), T.unevaluated && f(E), N(E), W(E);
1819
+ T.$comment && A.$comment && L(E), U(E), z.let(l.default.vErrors, null), z.let(l.default.errors, 0), T.unevaluated && f(E), N(E), W(E);
1820
1820
  });
1821
1821
  }
1822
1822
  function f(E) {
@@ -1847,7 +1847,7 @@ function Je() {
1847
1847
  }
1848
1848
  function _(E, A) {
1849
1849
  const { schema: T, gen: z, opts: B } = E;
1850
- B.$comment && T.$comment && F(E), I(E), V(E);
1850
+ B.$comment && T.$comment && L(E), I(E), V(E);
1851
1851
  const x = z.const("_errs", l.default.errors);
1852
1852
  N(E, x), z.var(A, (0, c._)`${x} === ${l.default.errors}`);
1853
1853
  }
@@ -1876,7 +1876,7 @@ function Je() {
1876
1876
  if (E.schema.$async && !E.schemaEnv.$async)
1877
1877
  throw new Error("async schema in sync schema");
1878
1878
  }
1879
- function F({ gen: E, schemaEnv: A, schema: T, errSchemaPath: z, opts: B }) {
1879
+ function L({ gen: E, schemaEnv: A, schema: T, errSchemaPath: z, opts: B }) {
1880
1880
  const x = T.$comment;
1881
1881
  if (B.$comment === !0)
1882
1882
  E.code((0, c._)`${l.default.self}.logger.log(${x})`);
@@ -1895,7 +1895,7 @@ function Je() {
1895
1895
  function re(E, A, T, z) {
1896
1896
  const { gen: B, schema: x, data: ue, allErrors: we, opts: ge, self: ve } = E, { RULES: le } = ve;
1897
1897
  if (x.$ref && (ge.ignoreKeywordsWithRef || !(0, m.schemaHasRulesButRef)(x, le))) {
1898
- B.block(() => L(E, "$ref", le.all.$ref.definition));
1898
+ B.block(() => F(E, "$ref", le.all.$ref.definition));
1899
1899
  return;
1900
1900
  }
1901
1901
  ge.jtd || Y(E, A), B.block(() => {
@@ -1911,7 +1911,7 @@ function Je() {
1911
1911
  const { gen: T, schema: z, opts: { useDefaults: B } } = E;
1912
1912
  B && (0, s.assignDefaults)(E, A.type), T.block(() => {
1913
1913
  for (const x of A.rules)
1914
- (0, r.shouldUseRule)(z, x) && L(E, x.keyword, x.definition, A.type);
1914
+ (0, r.shouldUseRule)(z, x) && F(E, x.keyword, x.definition, A.type);
1915
1915
  });
1916
1916
  }
1917
1917
  function Y(E, A) {
@@ -2059,7 +2059,7 @@ function Je() {
2059
2059
  }
2060
2060
  }
2061
2061
  Oe.KeywordCxt = R;
2062
- function L(E, A, T, z) {
2062
+ function F(E, A, T, z) {
2063
2063
  const B = new R(E, T, A);
2064
2064
  "code" in T ? T.code(B, z) : B.$data && T.validate ? (0, a.funcKeywordCode)(B, T) : "macro" in T ? (0, a.macroKeywordCode)(B, T) : (T.compile || T.validate) && (0, a.funcKeywordCode)(B, T);
2065
2065
  }
@@ -2177,17 +2177,17 @@ function hr() {
2177
2177
  this._compilations.add(u), (0, a.validateFunctionCode)(q), _.optimize(this.opts.code.optimize);
2178
2178
  const I = _.toString();
2179
2179
  U = `${_.scopeRefs(r.default.scope)}return ${I}`, this.opts.code.process && (U = this.opts.code.process(U, u));
2180
- const F = new Function(`${r.default.self}`, `${r.default.scope}`, U)(this, this.scope.get());
2181
- if (this.scope.value(N, { ref: F }), F.errors = null, F.schema = u.schema, F.schemaEnv = u, u.$async && (F.$async = !0), this.opts.code.source === !0 && (F.source = { validateName: N, validateCode: I, scopeValues: _._values }), this.opts.unevaluated) {
2180
+ const L = new Function(`${r.default.self}`, `${r.default.scope}`, U)(this, this.scope.get());
2181
+ if (this.scope.value(N, { ref: L }), L.errors = null, L.schema = u.schema, L.schemaEnv = u, u.$async && (L.$async = !0), this.opts.code.source === !0 && (L.source = { validateName: N, validateCode: I, scopeValues: _._values }), this.opts.unevaluated) {
2182
2182
  const { props: W, items: ee } = q;
2183
- F.evaluated = {
2183
+ L.evaluated = {
2184
2184
  props: W instanceof e.Name ? void 0 : W,
2185
2185
  items: ee instanceof e.Name ? void 0 : ee,
2186
2186
  dynamicProps: W instanceof e.Name,
2187
2187
  dynamicItems: ee instanceof e.Name
2188
- }, F.source && (F.source.evaluated = (0, e.stringify)(F.evaluated));
2188
+ }, L.source && (L.source.evaluated = (0, e.stringify)(L.evaluated));
2189
2189
  }
2190
- return u.validate = F, u;
2190
+ return u.validate = L, u;
2191
2191
  } catch (I) {
2192
2192
  throw delete u.validate, delete u.validateName, U && this.logger.error("Error compiling schema, function code:", U), I;
2193
2193
  } finally {
@@ -2279,9 +2279,9 @@ function hr() {
2279
2279
  }
2280
2280
  return $e;
2281
2281
  }
2282
- const Li = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Fi = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Ui = "object", Ki = ["$data"], Wi = { $data: { type: "string", anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] } }, Bi = !1, Ji = {
2283
- $id: Li,
2284
- description: Fi,
2282
+ const Fi = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Li = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Ui = "object", Ki = ["$data"], Wi = { $data: { type: "string", anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] } }, Bi = !1, Ji = {
2283
+ $id: Fi,
2284
+ description: Li,
2285
2285
  type: Ui,
2286
2286
  required: Ki,
2287
2287
  properties: Wi,
@@ -2709,11 +2709,11 @@ function Jr() {
2709
2709
  unicode: '"minLength"/"maxLength" account for unicode characters by default.'
2710
2710
  }, o = 200;
2711
2711
  function d(M) {
2712
- var O, C, k, $, j, R, L, D, X, G, E, A, T, z, B, x, ue, we, ge, ve, le, Ve, _e, gr, vr;
2712
+ var O, C, k, $, j, R, F, D, X, G, E, A, T, z, B, x, ue, we, ge, ve, le, Ve, _e, gr, vr;
2713
2713
  const Ge = M.strict, $r = (O = M.code) === null || O === void 0 ? void 0 : O.optimize, nn = $r === !0 || $r === void 0 ? 1 : $r || 0, an = (k = (C = M.code) === null || C === void 0 ? void 0 : C.regExp) !== null && k !== void 0 ? k : w, Hs = ($ = M.uriResolver) !== null && $ !== void 0 ? $ : g.default;
2714
2714
  return {
2715
2715
  strictSchema: (R = (j = M.strictSchema) !== null && j !== void 0 ? j : Ge) !== null && R !== void 0 ? R : !0,
2716
- strictNumbers: (D = (L = M.strictNumbers) !== null && L !== void 0 ? L : Ge) !== null && D !== void 0 ? D : !0,
2716
+ strictNumbers: (D = (F = M.strictNumbers) !== null && F !== void 0 ? F : Ge) !== null && D !== void 0 ? D : !0,
2717
2717
  strictTypes: (G = (X = M.strictTypes) !== null && X !== void 0 ? X : Ge) !== null && G !== void 0 ? G : "log",
2718
2718
  strictTuples: (A = (E = M.strictTuples) !== null && E !== void 0 ? E : Ge) !== null && A !== void 0 ? A : "log",
2719
2719
  strictRequired: (z = (T = M.strictRequired) !== null && T !== void 0 ? T : Ge) !== null && z !== void 0 ? z : !1,
@@ -2785,10 +2785,10 @@ function Jr() {
2785
2785
  } catch (E) {
2786
2786
  if (!(E instanceof s.default))
2787
2787
  throw E;
2788
- return L.call(this, E), await D.call(this, E.missingSchema), R.call(this, G);
2788
+ return F.call(this, E), await D.call(this, E.missingSchema), R.call(this, G);
2789
2789
  }
2790
2790
  }
2791
- function L({ missingSchema: G, missingRef: E }) {
2791
+ function F({ missingSchema: G, missingRef: E }) {
2792
2792
  if (this.refs[G])
2793
2793
  throw new Error(`AnySchema ${G} is loaded but ${E} cannot be resolved`);
2794
2794
  }
@@ -2936,14 +2936,14 @@ function Jr() {
2936
2936
  for (const $ of C) {
2937
2937
  const j = $.split("/").slice(1);
2938
2938
  let R = O;
2939
- for (const L of j)
2940
- R = R[L];
2941
- for (const L in k) {
2942
- const D = k[L];
2939
+ for (const F of j)
2940
+ R = R[F];
2941
+ for (const F in k) {
2942
+ const D = k[F];
2943
2943
  if (typeof D != "object")
2944
2944
  continue;
2945
- const { $data: X } = D.definition, G = R[L];
2946
- X && G && (R[L] = ce(G));
2945
+ const { $data: X } = D.definition, G = R[F];
2946
+ X && G && (R[F] = ce(G));
2947
2947
  }
2948
2948
  }
2949
2949
  return O;
@@ -2956,9 +2956,9 @@ function Jr() {
2956
2956
  }
2957
2957
  _addSchema(O, C, k, $ = this.opts.validateSchema, j = this.opts.addUsedSchema) {
2958
2958
  let R;
2959
- const { schemaId: L } = this.opts;
2959
+ const { schemaId: F } = this.opts;
2960
2960
  if (typeof O == "object")
2961
- R = O[L];
2961
+ R = O[F];
2962
2962
  else {
2963
2963
  if (this.opts.jtd)
2964
2964
  throw new Error("schema must be object");
@@ -2970,7 +2970,7 @@ function Jr() {
2970
2970
  return D;
2971
2971
  k = (0, l.normalizeId)(R || k);
2972
2972
  const X = l.getSchemaRefs.call(this, O, k);
2973
- return D = new i.SchemaEnv({ schema: O, schemaId: L, meta: C, baseId: k, localRefs: X }), this._cache.set(D.schema, D), j && !k.startsWith("#") && (k && this._checkUnique(k), this.refs[k] = D), $ && this.validateSchema(O, !0), D;
2973
+ return D = new i.SchemaEnv({ schema: O, schemaId: F, meta: C, baseId: k, localRefs: X }), this._cache.set(D.schema, D), j && !k.startsWith("#") && (k && this._checkUnique(k), this.refs[k] = D), $ && this.validateSchema(O, !0), D;
2974
2974
  }
2975
2975
  _checkUnique(O) {
2976
2976
  if (this.schemas[O] || this.refs[O])
@@ -3046,13 +3046,13 @@ function Jr() {
3046
3046
  return M;
3047
3047
  throw new Error("logger must implement log, warn and error methods");
3048
3048
  }
3049
- const F = /^[a-z_$][a-z0-9_$:-]*$/i;
3049
+ const L = /^[a-z_$][a-z0-9_$:-]*$/i;
3050
3050
  function W(M, O) {
3051
3051
  const { RULES: C } = this;
3052
3052
  if ((0, m.eachItem)(M, (k) => {
3053
3053
  if (C.keywords[k])
3054
3054
  throw new Error(`Keyword ${k} is already defined`);
3055
- if (!F.test(k))
3055
+ if (!L.test(k))
3056
3056
  throw new Error(`Keyword ${k} has invalid name`);
3057
3057
  }), !!O && O.$data && !("code" in O || "validate" in O))
3058
3058
  throw new Error('$data keyword must have "code" or "validate" function');
@@ -3066,7 +3066,7 @@ function Jr() {
3066
3066
  let R = $ ? j.post : j.rules.find(({ type: D }) => D === C);
3067
3067
  if (R || (R = { type: C, rules: [] }, j.rules.push(R)), j.keywords[M] = !0, !O)
3068
3068
  return;
3069
- const L = {
3069
+ const F = {
3070
3070
  keyword: M,
3071
3071
  definition: {
3072
3072
  ...O,
@@ -3074,7 +3074,7 @@ function Jr() {
3074
3074
  schemaType: (0, p.getJSONTypes)(O.schemaType)
3075
3075
  }
3076
3076
  };
3077
- O.before ? re.call(this, R, L, O.before) : R.rules.push(L), j.all[M] = L, (k = O.implements) === null || k === void 0 || k.forEach((D) => this.addKeyword(D));
3077
+ O.before ? re.call(this, R, F, O.before) : R.rules.push(F), j.all[M] = F, (k = O.implements) === null || k === void 0 || k.forEach((D) => this.addKeyword(D));
3078
3078
  }
3079
3079
  function re(M, O, C) {
3080
3080
  const k = M.rules.findIndex(($) => $.keyword === C);
@@ -3232,10 +3232,10 @@ function Qi() {
3232
3232
  };
3233
3233
  return ht.default = s, ht;
3234
3234
  }
3235
- var yt = {}, Ln;
3235
+ var yt = {}, Fn;
3236
3236
  function eo() {
3237
- if (Ln) return yt;
3238
- Ln = 1, Object.defineProperty(yt, "__esModule", { value: !0 });
3237
+ if (Fn) return yt;
3238
+ Fn = 1, Object.defineProperty(yt, "__esModule", { value: !0 });
3239
3239
  const e = H(), r = {
3240
3240
  keyword: "multipleOf",
3241
3241
  type: "number",
@@ -3252,10 +3252,10 @@ function eo() {
3252
3252
  };
3253
3253
  return yt.default = r, yt;
3254
3254
  }
3255
- var gt = {}, vt = {}, Fn;
3255
+ var gt = {}, vt = {}, Ln;
3256
3256
  function to() {
3257
- if (Fn) return vt;
3258
- Fn = 1, Object.defineProperty(vt, "__esModule", { value: !0 });
3257
+ if (Ln) return vt;
3258
+ Ln = 1, Object.defineProperty(vt, "__esModule", { value: !0 });
3259
3259
  function e(t) {
3260
3260
  const r = t.length;
3261
3261
  let n = 0, s = 0, a;
@@ -3545,10 +3545,10 @@ function hs() {
3545
3545
  ];
3546
3546
  return pt.default = m, pt;
3547
3547
  }
3548
- var Ot = {}, Le = {}, Yn;
3548
+ var Ot = {}, Fe = {}, Yn;
3549
3549
  function ys() {
3550
- if (Yn) return Le;
3551
- Yn = 1, Object.defineProperty(Le, "__esModule", { value: !0 }), Le.validateAdditionalItems = void 0;
3550
+ if (Yn) return Fe;
3551
+ Yn = 1, Object.defineProperty(Fe, "__esModule", { value: !0 }), Fe.validateAdditionalItems = void 0;
3552
3552
  const e = H(), t = Q(), n = {
3553
3553
  keyword: "additionalItems",
3554
3554
  type: "array",
@@ -3583,12 +3583,12 @@ function ys() {
3583
3583
  });
3584
3584
  }
3585
3585
  }
3586
- return Le.validateAdditionalItems = s, Le.default = n, Le;
3586
+ return Fe.validateAdditionalItems = s, Fe.default = n, Fe;
3587
3587
  }
3588
- var Rt = {}, Fe = {}, Qn;
3588
+ var Rt = {}, Le = {}, Qn;
3589
3589
  function gs() {
3590
- if (Qn) return Fe;
3591
- Qn = 1, Object.defineProperty(Fe, "__esModule", { value: !0 }), Fe.validateTuple = void 0;
3590
+ if (Qn) return Le;
3591
+ Qn = 1, Object.defineProperty(Le, "__esModule", { value: !0 }), Le.validateTuple = void 0;
3592
3592
  const e = H(), t = Q(), r = je(), n = {
3593
3593
  keyword: "items",
3594
3594
  type: "array",
@@ -3620,7 +3620,7 @@ function gs() {
3620
3620
  }
3621
3621
  }
3622
3622
  }
3623
- return Fe.validateTuple = s, Fe.default = n, Fe;
3623
+ return Le.validateTuple = s, Le.default = n, Le;
3624
3624
  }
3625
3625
  var ea;
3626
3626
  function lo() {
@@ -4108,10 +4108,10 @@ function _o() {
4108
4108
  }
4109
4109
  return zt.default = n, zt;
4110
4110
  }
4111
- var Lt = {}, ma;
4111
+ var Ft = {}, ma;
4112
4112
  function wo() {
4113
- if (ma) return Lt;
4114
- ma = 1, Object.defineProperty(Lt, "__esModule", { value: !0 });
4113
+ if (ma) return Ft;
4114
+ ma = 1, Object.defineProperty(Ft, "__esModule", { value: !0 });
4115
4115
  const e = Q(), t = {
4116
4116
  keyword: ["then", "else"],
4117
4117
  schemaType: ["object", "boolean"],
@@ -4119,7 +4119,7 @@ function wo() {
4119
4119
  n.if === void 0 && (0, e.checkStrictMode)(s, `"${r}" without "if" is ignored`);
4120
4120
  }
4121
4121
  };
4122
- return Lt.default = t, Lt;
4122
+ return Ft.default = t, Ft;
4123
4123
  }
4124
4124
  var pa;
4125
4125
  function $s() {
@@ -4146,7 +4146,7 @@ function $s() {
4146
4146
  }
4147
4147
  return Ot.default = u, Ot;
4148
4148
  }
4149
- var Ft = {}, Ut = {}, ha;
4149
+ var Lt = {}, Ut = {}, ha;
4150
4150
  function So() {
4151
4151
  if (ha) return Ut;
4152
4152
  ha = 1, Object.defineProperty(Ut, "__esModule", { value: !0 });
@@ -4217,10 +4217,10 @@ function So() {
4217
4217
  }
4218
4218
  var ya;
4219
4219
  function bs() {
4220
- if (ya) return Ft;
4221
- ya = 1, Object.defineProperty(Ft, "__esModule", { value: !0 });
4220
+ if (ya) return Lt;
4221
+ ya = 1, Object.defineProperty(Lt, "__esModule", { value: !0 });
4222
4222
  const t = [So().default];
4223
- return Ft.default = t, Ft;
4223
+ return Lt.default = t, Lt;
4224
4224
  }
4225
4225
  var Me = {}, ga;
4226
4226
  function _s() {
@@ -4308,10 +4308,10 @@ function Zr() {
4308
4308
  if (V = r.resolveRef.call(g.self, g.schemaEnv.root, g.baseId, W), V instanceof r.SchemaEnv && (V = V.schema), V === void 0)
4309
4309
  throw new n.default(g.opts.uriResolver, g.baseId, W);
4310
4310
  }
4311
- const F = (y = V?.properties) === null || y === void 0 ? void 0 : y[S];
4312
- if (typeof F != "object")
4311
+ const L = (y = V?.properties) === null || y === void 0 ? void 0 : y[S];
4312
+ if (typeof L != "object")
4313
4313
  throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${S}"`);
4314
- P = P && (_ || N(V)), q(F, I);
4314
+ P = P && (_ || N(V)), q(L, I);
4315
4315
  }
4316
4316
  if (!P)
4317
4317
  throw new Error(`discriminator: "${S}" must be required`);
@@ -4323,8 +4323,8 @@ function Zr() {
4323
4323
  if (I.const)
4324
4324
  U(I.const, V);
4325
4325
  else if (I.enum)
4326
- for (const F of I.enum)
4327
- U(F, V);
4326
+ for (const L of I.enum)
4327
+ U(L, V);
4328
4328
  else
4329
4329
  throw new Error(`discriminator: "properties/${S}" must have "const" or "enum"`);
4330
4330
  }
@@ -4618,9 +4618,9 @@ function As() {
4618
4618
  return Yt.default = r, Yt;
4619
4619
  }
4620
4620
  var tr = {};
4621
- const Lo = "https://json-schema.org/draft/2019-09/schema", Fo = "https://json-schema.org/draft/2019-09/schema", Uo = { "https://json-schema.org/draft/2019-09/vocab/core": !0, "https://json-schema.org/draft/2019-09/vocab/applicator": !0, "https://json-schema.org/draft/2019-09/vocab/validation": !0, "https://json-schema.org/draft/2019-09/vocab/meta-data": !0, "https://json-schema.org/draft/2019-09/vocab/format": !1, "https://json-schema.org/draft/2019-09/vocab/content": !0 }, Ko = !0, Wo = "Core and Validation specifications meta-schema", Bo = [{ $ref: "meta/core" }, { $ref: "meta/applicator" }, { $ref: "meta/validation" }, { $ref: "meta/meta-data" }, { $ref: "meta/format" }, { $ref: "meta/content" }], Jo = ["object", "boolean"], Ho = { definitions: { $comment: "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.", type: "object", additionalProperties: { $recursiveRef: "#" }, default: {} }, dependencies: { $comment: '"dependencies" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to "dependentSchemas" and "dependentRequired"', type: "object", additionalProperties: { anyOf: [{ $recursiveRef: "#" }, { $ref: "meta/validation#/$defs/stringArray" }] } } }, Go = {
4622
- $schema: Lo,
4623
- $id: Fo,
4621
+ const Fo = "https://json-schema.org/draft/2019-09/schema", Lo = "https://json-schema.org/draft/2019-09/schema", Uo = { "https://json-schema.org/draft/2019-09/vocab/core": !0, "https://json-schema.org/draft/2019-09/vocab/applicator": !0, "https://json-schema.org/draft/2019-09/vocab/validation": !0, "https://json-schema.org/draft/2019-09/vocab/meta-data": !0, "https://json-schema.org/draft/2019-09/vocab/format": !1, "https://json-schema.org/draft/2019-09/vocab/content": !0 }, Ko = !0, Wo = "Core and Validation specifications meta-schema", Bo = [{ $ref: "meta/core" }, { $ref: "meta/applicator" }, { $ref: "meta/validation" }, { $ref: "meta/meta-data" }, { $ref: "meta/format" }, { $ref: "meta/content" }], Jo = ["object", "boolean"], Ho = { definitions: { $comment: "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.", type: "object", additionalProperties: { $recursiveRef: "#" }, default: {} }, dependencies: { $comment: '"dependencies" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to "dependentSchemas" and "dependentRequired"', type: "object", additionalProperties: { anyOf: [{ $recursiveRef: "#" }, { $ref: "meta/validation#/$defs/stringArray" }] } } }, Go = {
4622
+ $schema: Fo,
4623
+ $id: Lo,
4624
4624
  $vocabulary: Uo,
4625
4625
  $recursiveAnchor: Ko,
4626
4626
  title: Wo,
@@ -4668,13 +4668,13 @@ const Lo = "https://json-schema.org/draft/2019-09/schema", Fo = "https://json-sc
4668
4668
  title: Ic,
4669
4669
  type: Cc,
4670
4670
  properties: Tc
4671
- }, Mc = "https://json-schema.org/draft/2019-09/schema", Dc = "https://json-schema.org/draft/2019-09/meta/validation", Vc = { "https://json-schema.org/draft/2019-09/vocab/validation": !0 }, zc = !0, Lc = "Validation vocabulary meta-schema", Fc = ["object", "boolean"], Uc = { multipleOf: { type: "number", exclusiveMinimum: 0 }, maximum: { type: "number" }, exclusiveMaximum: { type: "number" }, minimum: { type: "number" }, exclusiveMinimum: { type: "number" }, maxLength: { $ref: "#/$defs/nonNegativeInteger" }, minLength: { $ref: "#/$defs/nonNegativeIntegerDefault0" }, pattern: { type: "string", format: "regex" }, maxItems: { $ref: "#/$defs/nonNegativeInteger" }, minItems: { $ref: "#/$defs/nonNegativeIntegerDefault0" }, uniqueItems: { type: "boolean", default: !1 }, maxContains: { $ref: "#/$defs/nonNegativeInteger" }, minContains: { $ref: "#/$defs/nonNegativeInteger", default: 1 }, maxProperties: { $ref: "#/$defs/nonNegativeInteger" }, minProperties: { $ref: "#/$defs/nonNegativeIntegerDefault0" }, required: { $ref: "#/$defs/stringArray" }, dependentRequired: { type: "object", additionalProperties: { $ref: "#/$defs/stringArray" } }, const: !0, enum: { type: "array", items: !0 }, type: { anyOf: [{ $ref: "#/$defs/simpleTypes" }, { type: "array", items: { $ref: "#/$defs/simpleTypes" }, minItems: 1, uniqueItems: !0 }] } }, Kc = { nonNegativeInteger: { type: "integer", minimum: 0 }, nonNegativeIntegerDefault0: { $ref: "#/$defs/nonNegativeInteger", default: 0 }, simpleTypes: { enum: ["array", "boolean", "integer", "null", "number", "object", "string"] }, stringArray: { type: "array", items: { type: "string" }, uniqueItems: !0, default: [] } }, Wc = {
4671
+ }, Mc = "https://json-schema.org/draft/2019-09/schema", Dc = "https://json-schema.org/draft/2019-09/meta/validation", Vc = { "https://json-schema.org/draft/2019-09/vocab/validation": !0 }, zc = !0, Fc = "Validation vocabulary meta-schema", Lc = ["object", "boolean"], Uc = { multipleOf: { type: "number", exclusiveMinimum: 0 }, maximum: { type: "number" }, exclusiveMaximum: { type: "number" }, minimum: { type: "number" }, exclusiveMinimum: { type: "number" }, maxLength: { $ref: "#/$defs/nonNegativeInteger" }, minLength: { $ref: "#/$defs/nonNegativeIntegerDefault0" }, pattern: { type: "string", format: "regex" }, maxItems: { $ref: "#/$defs/nonNegativeInteger" }, minItems: { $ref: "#/$defs/nonNegativeIntegerDefault0" }, uniqueItems: { type: "boolean", default: !1 }, maxContains: { $ref: "#/$defs/nonNegativeInteger" }, minContains: { $ref: "#/$defs/nonNegativeInteger", default: 1 }, maxProperties: { $ref: "#/$defs/nonNegativeInteger" }, minProperties: { $ref: "#/$defs/nonNegativeIntegerDefault0" }, required: { $ref: "#/$defs/stringArray" }, dependentRequired: { type: "object", additionalProperties: { $ref: "#/$defs/stringArray" } }, const: !0, enum: { type: "array", items: !0 }, type: { anyOf: [{ $ref: "#/$defs/simpleTypes" }, { type: "array", items: { $ref: "#/$defs/simpleTypes" }, minItems: 1, uniqueItems: !0 }] } }, Kc = { nonNegativeInteger: { type: "integer", minimum: 0 }, nonNegativeIntegerDefault0: { $ref: "#/$defs/nonNegativeInteger", default: 0 }, simpleTypes: { enum: ["array", "boolean", "integer", "null", "number", "object", "string"] }, stringArray: { type: "array", items: { type: "string" }, uniqueItems: !0, default: [] } }, Wc = {
4672
4672
  $schema: Mc,
4673
4673
  $id: Dc,
4674
4674
  $vocabulary: Vc,
4675
4675
  $recursiveAnchor: zc,
4676
- title: Lc,
4677
- type: Fc,
4676
+ title: Fc,
4677
+ type: Lc,
4678
4678
  properties: Uc,
4679
4679
  $defs: Kc
4680
4680
  };
@@ -4818,9 +4818,9 @@ const Zc = "https://json-schema.org/draft/2020-12/schema", xc = "https://json-sc
4818
4818
  type: Mu,
4819
4819
  properties: Du,
4820
4820
  $defs: Vu
4821
- }, Lu = "https://json-schema.org/draft/2020-12/schema", Fu = "https://json-schema.org/draft/2020-12/meta/format-annotation", Uu = { "https://json-schema.org/draft/2020-12/vocab/format-annotation": !0 }, Ku = "meta", Wu = "Format vocabulary meta-schema for annotation results", Bu = ["object", "boolean"], Ju = { format: { type: "string" } }, Hu = {
4822
- $schema: Lu,
4823
- $id: Fu,
4821
+ }, Fu = "https://json-schema.org/draft/2020-12/schema", Lu = "https://json-schema.org/draft/2020-12/meta/format-annotation", Uu = { "https://json-schema.org/draft/2020-12/vocab/format-annotation": !0 }, Ku = "meta", Wu = "Format vocabulary meta-schema for annotation results", Bu = ["object", "boolean"], Ju = { format: { type: "string" } }, Hu = {
4822
+ $schema: Fu,
4823
+ $id: Lu,
4824
4824
  $vocabulary: Uu,
4825
4825
  $dynamicAnchor: Ku,
4826
4826
  title: Wu,
@@ -4999,8 +4999,8 @@ function hl() {
4999
4999
  const V = n.exec(I);
5000
5000
  if (!V)
5001
5001
  return !1;
5002
- const F = +V[1], W = +V[2], ee = +V[3];
5003
- return W >= 1 && W <= 12 && ee >= 1 && ee <= (W === 2 && r(F) ? 29 : s[W]);
5002
+ const L = +V[1], W = +V[2], ee = +V[3];
5003
+ return W >= 1 && W <= 12 && ee >= 1 && ee <= (W === 2 && r(L) ? 29 : s[W]);
5004
5004
  }
5005
5005
  function i(I, V) {
5006
5006
  if (I && V)
@@ -5008,8 +5008,8 @@ function hl() {
5008
5008
  }
5009
5009
  const c = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;
5010
5010
  function l(I) {
5011
- return function(F) {
5012
- const W = c.exec(F);
5011
+ return function(L) {
5012
+ const W = c.exec(L);
5013
5013
  if (!W)
5014
5014
  return !1;
5015
5015
  const ee = +W[1], re = +W[2], ae = +W[3], Y = W[4], ce = W[5] === "-" ? -1 : 1, M = +(W[6] || 0), O = +(W[7] || 0);
@@ -5024,16 +5024,16 @@ function hl() {
5024
5024
  function p(I, V) {
5025
5025
  if (!(I && V))
5026
5026
  return;
5027
- const F = (/* @__PURE__ */ new Date("2020-01-01T" + I)).valueOf(), W = (/* @__PURE__ */ new Date("2020-01-01T" + V)).valueOf();
5028
- if (F && W)
5029
- return F - W;
5027
+ const L = (/* @__PURE__ */ new Date("2020-01-01T" + I)).valueOf(), W = (/* @__PURE__ */ new Date("2020-01-01T" + V)).valueOf();
5028
+ if (L && W)
5029
+ return L - W;
5030
5030
  }
5031
5031
  function m(I, V) {
5032
5032
  if (!(I && V))
5033
5033
  return;
5034
- const F = c.exec(I), W = c.exec(V);
5035
- if (F && W)
5036
- return I = F[1] + F[2] + F[3], V = W[1] + W[2] + W[3], I > V ? 1 : I < V ? -1 : 0;
5034
+ const L = c.exec(I), W = c.exec(V);
5035
+ if (L && W)
5036
+ return I = L[1] + L[2] + L[3], V = W[1] + W[2] + W[3], I > V ? 1 : I < V ? -1 : 0;
5037
5037
  }
5038
5038
  const b = /t|\s/i;
5039
5039
  function g(I) {
@@ -5046,14 +5046,14 @@ function hl() {
5046
5046
  function w(I, V) {
5047
5047
  if (!(I && V))
5048
5048
  return;
5049
- const F = new Date(I).valueOf(), W = new Date(V).valueOf();
5050
- if (F && W)
5051
- return F - W;
5049
+ const L = new Date(I).valueOf(), W = new Date(V).valueOf();
5050
+ if (L && W)
5051
+ return L - W;
5052
5052
  }
5053
5053
  function S(I, V) {
5054
5054
  if (!(I && V))
5055
5055
  return;
5056
- const [F, W] = I.split(b), [ee, re] = V.split(b), ae = i(F, ee);
5056
+ const [L, W] = I.split(b), [ee, re] = V.split(b), ae = i(L, ee);
5057
5057
  if (ae !== void 0)
5058
5058
  return ae || p(W, re);
5059
5059
  }
@@ -5087,9 +5087,9 @@ function hl() {
5087
5087
  }
5088
5088
  }(Cr)), Cr;
5089
5089
  }
5090
- var Tr = {}, La;
5090
+ var Tr = {}, Fa;
5091
5091
  function yl() {
5092
- return La || (La = 1, function(e) {
5092
+ return Fa || (Fa = 1, function(e) {
5093
5093
  Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
5094
5094
  const t = Ss(), r = H(), n = r.operators, s = {
5095
5095
  formatMaximum: { okStr: "<=", ok: n.LTE, fail: n.GT },
@@ -5142,9 +5142,9 @@ function yl() {
5142
5142
  e.default = i;
5143
5143
  }(Tr)), Tr;
5144
5144
  }
5145
- var Fa;
5145
+ var La;
5146
5146
  function gl() {
5147
- return Fa || (Fa = 1, function(e, t) {
5147
+ return La || (La = 1, function(e, t) {
5148
5148
  Object.defineProperty(t, "__esModule", { value: !0 });
5149
5149
  const r = hl(), n = yl(), s = H(), a = new s.Name("fullFormats"), i = new s.Name("fastFormats"), c = (p, m = { keywords: !0 }) => {
5150
5150
  if (Array.isArray(m))
@@ -5983,7 +5983,7 @@ function zl(e, t) {
5983
5983
  return { ok: !1 };
5984
5984
  }
5985
5985
  }
5986
- function Ll(e) {
5986
+ function Fl(e) {
5987
5987
  switch (e) {
5988
5988
  case "null":
5989
5989
  return null;
@@ -5995,7 +5995,7 @@ function Ll(e) {
5995
5995
  return;
5996
5996
  }
5997
5997
  }
5998
- function Fl(e) {
5998
+ function Ll(e) {
5999
5999
  if (typeof e == "boolean") return {};
6000
6000
  const t = e["x:ui"];
6001
6001
  if (t != null && typeof t == "object" && !Array.isArray(t)) {
@@ -6371,7 +6371,7 @@ function zr({
6371
6371
  controller: t
6372
6372
  });
6373
6373
  }
6374
- function Lr({
6374
+ function Fr({
6375
6375
  ctx: e,
6376
6376
  controller: t
6377
6377
  }) {
@@ -6476,7 +6476,7 @@ function zs(e, t) {
6476
6476
  }
6477
6477
  return n.set(t, i), i;
6478
6478
  }
6479
- function Ls(e, t, r) {
6479
+ function Fs(e, t, r) {
6480
6480
  let n = e;
6481
6481
  const s = /* @__PURE__ */ new Set(), a = (i, c) => {
6482
6482
  const { $ref: l, ...p } = c;
@@ -6618,7 +6618,7 @@ function ie(e, t, r) {
6618
6618
  i
6619
6619
  );
6620
6620
  }
6621
- function Fs(e) {
6621
+ function Ls(e) {
6622
6622
  if (typeof e == "boolean") return;
6623
6623
  const t = e["x:ui"];
6624
6624
  if (!t || !t.visibleIf) return;
@@ -6681,7 +6681,7 @@ function Zl(e, t) {
6681
6681
  }
6682
6682
  return n;
6683
6683
  }
6684
- function Fr(e, t) {
6684
+ function Lr(e, t) {
6685
6685
  const r = Zl(t, e.field);
6686
6686
  switch (e.operator) {
6687
6687
  case "equals":
@@ -6713,7 +6713,7 @@ function Fr(e, t) {
6713
6713
  }
6714
6714
  }
6715
6715
  function Us(e, t) {
6716
- const r = e.conditions.map((n) => "operator" in n && ["and", "or", "not"].includes(n.operator) ? Us(n, t) : Fr(n, t));
6716
+ const r = e.conditions.map((n) => "operator" in n && ["and", "or", "not"].includes(n.operator) ? Us(n, t) : Lr(n, t));
6717
6717
  switch (e.operator) {
6718
6718
  case "and":
6719
6719
  return r.every(Boolean);
@@ -6729,9 +6729,9 @@ function xl(e, t) {
6729
6729
  try {
6730
6730
  if (typeof e == "string") {
6731
6731
  const r = Xl(e);
6732
- return Fr(r, t);
6732
+ return Lr(r, t);
6733
6733
  }
6734
- return "operator" in e && ["and", "or", "not"].includes(e.operator) ? Us(e, t) : Fr(e, t);
6734
+ return "operator" in e && ["and", "or", "not"].includes(e.operator) ? Us(e, t) : Lr(e, t);
6735
6735
  } catch (r) {
6736
6736
  return console.warn("Error evaluating visibility condition:", r), !0;
6737
6737
  }
@@ -6751,7 +6751,7 @@ function Ql({
6751
6751
  children: r,
6752
6752
  options: n = Xa
6753
6753
  }) {
6754
- const s = Fs(e.definition);
6754
+ const s = Ls(e.definition);
6755
6755
  if (!s)
6756
6756
  return r;
6757
6757
  const a = { ...Xa, ...n }, i = ed(t), c = Yl(s, i);
@@ -7329,14 +7329,7 @@ function Ks({
7329
7329
  ), l = e.with({
7330
7330
  definition: i,
7331
7331
  schemaConflicts: [...e.schemaConflicts, ...c]
7332
- }), p = i.properties ?? {};
7333
- console.log(
7334
- "[OBJECT_CONTROL_DEBUG] ctx.path:",
7335
- e.path,
7336
- "effective.properties keys:",
7337
- Object.keys(i.properties ?? {})
7338
- );
7339
- const m = new Set(Object.keys(p)), b = Object.keys(s ?? {}), g = b.filter((R) => !m.has(R)), w = i.unevaluatedProperties, S = Qe(
7332
+ }), p = i.properties ?? {}, m = new Set(Object.keys(p)), b = Object.keys(s ?? {}), g = b.filter((R) => !m.has(R)), w = i.unevaluatedProperties, S = Qe(
7340
7333
  i,
7341
7334
  s ?? {},
7342
7335
  e.ajv
@@ -7351,22 +7344,22 @@ function Ks({
7351
7344
  } catch {
7352
7345
  return null;
7353
7346
  }
7354
- }).filter((R) => R != null), V = i.propertyNames, F = (R) => {
7355
- const L = (R ?? "").trim();
7356
- if (L === "") return { ok: !1, message: "Key cannot be empty" };
7347
+ }).filter((R) => R != null), V = i.propertyNames, L = (R) => {
7348
+ const F = (R ?? "").trim();
7349
+ if (F === "") return { ok: !1, message: "Key cannot be empty" };
7357
7350
  if (V === !1)
7358
7351
  return { ok: !1, message: "No property names are allowed by schema" };
7359
7352
  if (V && typeof V == "object" && e.ajv)
7360
7353
  try {
7361
7354
  const D = e.ajv.compile(V);
7362
- if (!D(L))
7355
+ if (!D(F))
7363
7356
  return { ok: !1, message: D.errors?.[0]?.message ?? "Invalid property name" };
7364
7357
  } catch {
7365
7358
  }
7366
- if (!o && !m.has(L)) {
7359
+ if (!o && !m.has(F)) {
7367
7360
  if (I.length === 0)
7368
7361
  return { ok: !1, message: "Only declared properties are allowed" };
7369
- if (!I.some((X) => X.test(L)))
7362
+ if (!I.some((X) => X.test(F)))
7370
7363
  return {
7371
7364
  ok: !1,
7372
7365
  message: `Key must match one of: ${Object.keys(U).join(", ")}`
@@ -7374,19 +7367,19 @@ function Ks({
7374
7367
  }
7375
7368
  return { ok: !0 };
7376
7369
  }, W = i["x:ui"], ee = !!(W && typeof W == "object" && W.lockKeyAfterSet), re = (R) => {
7377
- const L = rt(R, (X) => X);
7378
- if (L !== void 0) return L;
7370
+ const F = rt(R, (X) => X);
7371
+ if (F !== void 0) return F;
7379
7372
  const D = R.type;
7380
7373
  if (D === "string") return "";
7381
7374
  if (D === "number" || D === "integer") return 0;
7382
7375
  if (D === "boolean") return !1;
7383
7376
  if (D === "array") return [];
7384
7377
  if (D === "object") return {};
7385
- }, ae = (R, L) => {
7386
- const D = R, X = (E) => L.has(E) ? !1 : F(E).ok;
7378
+ }, ae = (R, F) => {
7379
+ const D = R, X = (E) => F.has(E) ? !1 : L(E).ok;
7387
7380
  if (X(D)) return D;
7388
7381
  let G = 1;
7389
- for (; L.has(D + G) || !X(D + G); ) G++;
7382
+ for (; F.has(D + G) || !X(D + G); ) G++;
7390
7383
  return D + G;
7391
7384
  }, Y = Wr(
7392
7385
  Br,
@@ -7396,10 +7389,10 @@ function Ks({
7396
7389
  disabled: !N,
7397
7390
  onClick: () => {
7398
7391
  if (!N) return;
7399
- const L = new Set(
7392
+ const F = new Set(
7400
7393
  Object.keys(se.get(t.signal) ?? {})
7401
- ), D = ae("property", L);
7402
- if (!F(D).ok) return;
7394
+ ), D = ae("property", F);
7395
+ if (!L(D).ok) return;
7403
7396
  let G = d;
7404
7397
  w && typeof w == "object" && (G = w);
7405
7398
  const E = re(G), A = {
@@ -7414,24 +7407,17 @@ function Ks({
7414
7407
  )
7415
7408
  ), ce = sd(l), M = Ti(p).filter(
7416
7409
  ([, R]) => R !== !1
7417
- );
7418
- console.log(
7419
- "[OBJECT_CONTROL_DEBUG] knownProps keys:",
7420
- Object.keys(p),
7421
- "filtered entries:",
7422
- M.map(([R]) => R)
7423
- );
7424
- const C = [
7410
+ ), C = [
7425
7411
  ...M.map(([R]) => R),
7426
7412
  ...u,
7427
7413
  ...h
7428
7414
  ], k = [
7429
7415
  // Known properties
7430
- ...M.map(([R, L]) => {
7416
+ ...M.map(([R, F]) => {
7431
7417
  const D = R, X = t.field(D);
7432
7418
  return De({
7433
7419
  ctx: l.with({
7434
- definition: L,
7420
+ definition: F,
7435
7421
  isPropertyRequired: Array.isArray(i.required) ? i.required.includes(D) : l.hasRequiredProperty(D),
7436
7422
  // Ensure child fields show their own labels even when this object
7437
7423
  // is rendered inside a union/combinator where labels are suppressed
@@ -7442,21 +7428,21 @@ function Ks({
7442
7428
  }),
7443
7429
  // Evaluated additional keys (pattern-matched and truly additional)
7444
7430
  ...u.map((R) => {
7445
- const L = I.some((D) => D.test(R));
7446
- return nd(R, L, {
7431
+ const F = I.some((D) => D.test(R));
7432
+ return nd(R, F, {
7447
7433
  controller: t,
7448
7434
  effCtx: l,
7449
7435
  patternProps: U,
7450
7436
  apSchema: d,
7451
7437
  canRemove: q,
7452
7438
  lockKeyAfterSet: ee,
7453
- validatePropertyName: F
7439
+ validatePropertyName: L
7454
7440
  });
7455
7441
  }),
7456
7442
  // Unevaluated keys (use unevaluatedProperties schema if available)
7457
7443
  ...h.map((R) => {
7458
- const L = I.some((D) => D.test(R));
7459
- return ad(R, L, {
7444
+ const F = I.some((D) => D.test(R));
7445
+ return ad(R, F, {
7460
7446
  controller: t,
7461
7447
  effCtx: l,
7462
7448
  patternProps: U,
@@ -7464,7 +7450,7 @@ function Ks({
7464
7450
  unevaluatedProps: w,
7465
7451
  canRemove: q,
7466
7452
  lockKeyAfterSet: ee,
7467
- validatePropertyName: F
7453
+ validatePropertyName: L
7468
7454
  });
7469
7455
  }),
7470
7456
  // Add affordance
@@ -7680,7 +7666,7 @@ function ff({
7680
7666
  });
7681
7667
  if (n)
7682
7668
  return n;
7683
- const a = e.definition.allOf.filter((p) => typeof p == "object").map((p) => Ls(p, e.schema, e.ajv)), { mergedSchema: i, conflicts: c } = Qr(a, e.path), l = e.with({
7669
+ const a = e.definition.allOf.filter((p) => typeof p == "object").map((p) => Fs(p, e.schema, e.ajv)), { mergedSchema: i, conflicts: c } = Qr(a, e.path), l = e.with({
7684
7670
  definition: i,
7685
7671
  schemaConflicts: [...e.schemaConflicts, ...c]
7686
7672
  });
@@ -7756,7 +7742,7 @@ function De({
7756
7742
  );
7757
7743
  if (i.length > 0) {
7758
7744
  const c = i.map(
7759
- (g) => Ls(g, e.schema, e.ajv)
7745
+ (g) => Fs(g, e.schema, e.ajv)
7760
7746
  ), { mergedSchema: l, conflicts: p } = Qr(c, e.path), { allOf: m, ...b } = n;
7761
7747
  n = { ...b, ...l }, s = e.with({
7762
7748
  definition: n,
@@ -7882,7 +7868,7 @@ function De({
7882
7868
  case "boolean":
7883
7869
  return ie(
7884
7870
  s,
7885
- Lr({
7871
+ Fr({
7886
7872
  ctx: s,
7887
7873
  controller: t
7888
7874
  }),
@@ -7948,7 +7934,7 @@ function De({
7948
7934
  t,
7949
7935
  ie(
7950
7936
  s,
7951
- Lr({
7937
+ Fr({
7952
7938
  ctx: s,
7953
7939
  controller: t
7954
7940
  }),
@@ -8030,7 +8016,7 @@ function wd({
8030
8016
  return e === !0 ? lr({ ctx: s, controller: t }) : e === !1 ? ke() : De({ ctx: s, controller: t });
8031
8017
  }
8032
8018
  function he(e, t, r) {
8033
- return Fs(e.definition) ? Ql({
8019
+ return Ls(e.definition) ? Ql({
8034
8020
  ctx: e,
8035
8021
  controller: t,
8036
8022
  children: r,
@@ -8221,7 +8207,7 @@ function Pd(e) {
8221
8207
  label: Kr(t),
8222
8208
  detect: (r) => Vl(r, [t]) === t,
8223
8209
  convert: (r) => zl(r, t),
8224
- defaultValue: () => Ll(t)
8210
+ defaultValue: () => Fl(t)
8225
8211
  }));
8226
8212
  }
8227
8213
  function Js({
@@ -8237,7 +8223,7 @@ function Js({
8237
8223
  return n;
8238
8224
  const s = e.definition;
8239
8225
  let a = s.type ?? [];
8240
- const i = Fl(s), c = a.includes("null"), l = a.filter(
8226
+ const i = Ll(s), c = a.includes("null"), l = a.filter(
8241
8227
  (h) => h !== "null" && (h === "string" || h === "number" || h === "integer" || h === "boolean")
8242
8228
  ), p = c && l.length === a.length - 1;
8243
8229
  p && (a = l);
@@ -8294,7 +8280,7 @@ function Js({
8294
8280
  controller: f
8295
8281
  });
8296
8282
  case "boolean":
8297
- return Lr({
8283
+ return Fr({
8298
8284
  ctx: o,
8299
8285
  controller: f
8300
8286
  });
@@ -8735,10 +8721,10 @@ function Dd(e) {
8735
8721
  case "array":
8736
8722
  return zd(e);
8737
8723
  case "string":
8738
- return Ld(e);
8724
+ return Fd(e);
8739
8725
  case "number":
8740
8726
  case "integer":
8741
- return Fd(e);
8727
+ return Ld(e);
8742
8728
  case "boolean":
8743
8729
  return !1;
8744
8730
  case "null":
@@ -8772,7 +8758,7 @@ function zd(e) {
8772
8758
  const n = Be(r);
8773
8759
  return Array(t).fill(n ?? null);
8774
8760
  }
8775
- function Ld(e) {
8761
+ function Fd(e) {
8776
8762
  switch (e.format) {
8777
8763
  case "date":
8778
8764
  return Wd();
@@ -8784,7 +8770,7 @@ function Ld(e) {
8784
8770
  return "";
8785
8771
  }
8786
8772
  }
8787
- function Fd(e) {
8773
+ function Ld(e) {
8788
8774
  const t = e.type === "integer";
8789
8775
  let r = e.minimum, n = e.maximum;
8790
8776
  if (e.exclusiveMinimum !== void 0) {
@@ -8835,16 +8821,18 @@ function Hd(e, t) {
8835
8821
  }
8836
8822
  function Gd(e) {
8837
8823
  const t = new ui();
8838
- for (const r of e)
8839
- t.register(r.name, {
8840
- factory: r.factory,
8841
- displayName: r.displayName || r.name,
8842
- description: r.description,
8843
- supportedTypes: r.supportedTypes,
8844
- priority: r.priority ?? 50,
8824
+ for (let r = 0; r < e.length; r++) {
8825
+ const n = e[r], s = n.displayName ?? `custom-widget-${r}`;
8826
+ t.register(s, {
8827
+ factory: n.factory,
8828
+ displayName: n.displayName ?? `Custom Widget ${r + 1}`,
8829
+ description: n.description,
8830
+ supportedTypes: n.supportedTypes,
8831
+ priority: n.priority ?? 50,
8845
8832
  canFallback: !0,
8846
- matcher: r.matcher
8833
+ matcher: n.matcher
8847
8834
  });
8835
+ }
8848
8836
  return t;
8849
8837
  }
8850
8838
  function mf({
@@ -8905,10 +8893,10 @@ function mf({
8905
8893
  for (const ae of f)
8906
8894
  o.validateField(ae, re, re);
8907
8895
  }) : () => {
8908
- }, F = () => {
8896
+ }, L = () => {
8909
8897
  U(), I(), V(), o?.dispose(), v.dispose();
8910
8898
  }, W = c ? Gd(c) : void 0, ee = ke(
8911
- Ai(F),
8899
+ Ai(L),
8912
8900
  wd({
8913
8901
  schema: e,
8914
8902
  controller: v,
@@ -8969,7 +8957,7 @@ export {
8969
8957
  lr as JSONSchemaAny,
8970
8958
  bd as JSONSchemaAnyOf,
8971
8959
  Bs as JSONSchemaArray,
8972
- Lr as JSONSchemaBoolean,
8960
+ Fr as JSONSchemaBoolean,
8973
8961
  rd as JSONSchemaConst,
8974
8962
  wd as JSONSchemaControl,
8975
8963
  td as JSONSchemaEnum,