@oomol-lab/open-flow 0.1.0-beta.29 → 0.1.0-beta.30

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.
@@ -5125,16 +5125,16 @@ var vc = class {
5125
5125
  graph: qc,
5126
5126
  subflows: I(B, Kc.extend({ graph: qc })),
5127
5127
  tasks: I(B, Pc)
5128
- });
5129
- P({
5130
- modelVersion: R(2),
5128
+ }), Zc = P({
5129
+ modelVersion: F([R(2), R(3)]),
5131
5130
  document: Xc,
5132
5131
  modules: I(B, Yc)
5133
- }).extend({
5132
+ });
5133
+ Zc.extend({ modelVersion: R(3) }), Zc.extend({
5134
5134
  kind: R("open-flow-flow-revision"),
5135
5135
  version: R(1)
5136
5136
  });
5137
- var Zc = {
5137
+ var Qc = {
5138
5138
  "binding.create": {
5139
5139
  bindingId: B,
5140
5140
  binding: Jc
@@ -5297,56 +5297,56 @@ var Zc = {
5297
5297
  value: B
5298
5298
  }
5299
5299
  };
5300
- N(F([...new Map(Object.entries(Zc).map(([e, t]) => [e, t instanceof k ? t : P({
5300
+ N(F([...new Map(Object.entries(Qc).map(([e, t]) => [e, t instanceof k ? t : P({
5301
5301
  kind: R(e),
5302
5302
  ...t
5303
5303
  })])).values()])).min(1);
5304
5304
  //#endregion
5305
5305
  //#region src/flow/common/change.ts
5306
- function Qc(e) {
5306
+ function $c(e) {
5307
5307
  return Object.fromEntries(e.flatMap((e) => "handle" in e ? [[e.handle, e]] : []));
5308
5308
  }
5309
5309
  //#endregion
5310
5310
  //#region src/json-schema-subset/utils.ts
5311
- var $c = 0;
5312
- function el() {
5313
- let e = $c;
5314
- return $c += 1, e;
5311
+ var el = 0;
5312
+ function tl() {
5313
+ let e = el;
5314
+ return el += 1, e;
5315
5315
  }
5316
- function tl(e) {
5316
+ function nl(e) {
5317
5317
  if (typeof e == "object" && e && !Object.isFrozen(e)) {
5318
- for (let t of Object.getOwnPropertyNames(e)) tl(Reflect.get(e, t));
5318
+ for (let t of Object.getOwnPropertyNames(e)) nl(Reflect.get(e, t));
5319
5319
  Object.freeze(e);
5320
5320
  }
5321
5321
  return e;
5322
5322
  }
5323
- function nl(e, t) {
5323
+ function rl(e, t) {
5324
5324
  let n = {};
5325
5325
  for (let r of t) r in e && (n[r] = e[r]);
5326
5326
  return n;
5327
5327
  }
5328
- function rl(e) {
5328
+ function il(e) {
5329
5329
  if (typeof e != "object" || !e) return e;
5330
5330
  if (Array.isArray(e)) {
5331
5331
  let t = [];
5332
- for (let [n, r] of e.entries()) t[n] = rl(r);
5332
+ for (let [n, r] of e.entries()) t[n] = il(r);
5333
5333
  return t;
5334
5334
  }
5335
5335
  {
5336
5336
  let t = {};
5337
- for (let n in e) t[n] = rl(e[n]);
5337
+ for (let n in e) t[n] = il(e[n]);
5338
5338
  return t;
5339
5339
  }
5340
5340
  }
5341
- function il(e, t) {
5341
+ function al(e, t) {
5342
5342
  if (e === t) return !0;
5343
5343
  if (typeof e != "object" || !e || typeof e != typeof t) return !1;
5344
5344
  if (Array.isArray(e)) {
5345
5345
  if (!Array.isArray(t) || e.length !== t.length) return !1;
5346
- for (let [n, r] of e.entries()) if (!il(r, t[n])) return !1;
5346
+ for (let [n, r] of e.entries()) if (!al(r, t[n])) return !1;
5347
5347
  } else {
5348
5348
  if (Array.isArray(t)) return !1;
5349
- for (let n in e) if (!(n in t) || !il(e[n], t[n])) return !1;
5349
+ for (let n in e) if (!(n in t) || !al(e[n], t[n])) return !1;
5350
5350
  for (let n in t) if (!(n in e)) return !1;
5351
5351
  }
5352
5352
  return !0;
@@ -5359,48 +5359,48 @@ var H = Object.freeze({
5359
5359
  ContainedBy: 2,
5360
5360
  Rejection: 3,
5361
5361
  Intersection: 4
5362
- }), U = fl(H.Equals), W = fl(H.Containing), G = fl(H.ContainedBy), K = fl(H.Rejection), q = fl(H.Intersection), al = tl([
5362
+ }), U = pl(H.Equals), W = pl(H.Containing), G = pl(H.ContainedBy), K = pl(H.Rejection), q = pl(H.Intersection), ol = nl([
5363
5363
  [H.Equals, U],
5364
5364
  [H.Containing, W],
5365
5365
  [H.ContainedBy, G],
5366
5366
  [H.Rejection, K],
5367
5367
  [H.Intersection, q]
5368
- ]), ol = (() => {
5368
+ ]), sl = (() => {
5369
5369
  let e = 0;
5370
- for (let [t, n] of al) e |= n;
5370
+ for (let [t, n] of ol) e |= n;
5371
5371
  return e;
5372
5372
  })();
5373
- function sl(e) {
5373
+ function cl(e) {
5374
5374
  return !!(e & U);
5375
5375
  }
5376
- function cl(e) {
5376
+ function ll(e) {
5377
5377
  return !!(e & W);
5378
5378
  }
5379
- function ll(e) {
5379
+ function ul(e) {
5380
5380
  return !!(e & G);
5381
5381
  }
5382
- function ul(e) {
5382
+ function dl(e) {
5383
5383
  return !!(e & K);
5384
5384
  }
5385
- function dl(e) {
5385
+ function fl(e) {
5386
5386
  return !!(e & q);
5387
5387
  }
5388
- function fl(e) {
5388
+ function pl(e) {
5389
5389
  return 1 << e;
5390
5390
  }
5391
5391
  //#endregion
5392
5392
  //#region src/json-schema-subset/expression/combination.ts
5393
- function pl(e) {
5394
- let t = 0, n = 0, r = { push: (r) => (t = n === 0 ? r : ml(t, r, e), n += 1, t) };
5393
+ function ml(e) {
5394
+ let t = 0, n = 0, r = { push: (r) => (t = n === 0 ? r : hl(t, r, e), n += 1, t) };
5395
5395
  return Object.defineProperties(r, {
5396
5396
  result: { get: () => t },
5397
5397
  count: { get: () => n }
5398
5398
  }), r;
5399
5399
  }
5400
- function ml(e, t, n) {
5400
+ function hl(e, t, n) {
5401
5401
  let r = 0;
5402
- for (let [i, a] of al) if (a & e) {
5403
- for (let [e, a] of al) if (a & t && (r |= n(i, e), r === ol)) return r;
5402
+ for (let [i, a] of ol) if (a & e) {
5403
+ for (let [e, a] of ol) if (a & t && (r |= n(i, e), r === sl)) return r;
5404
5404
  }
5405
5405
  return r;
5406
5406
  }
@@ -5414,59 +5414,59 @@ var J = Object.freeze({
5414
5414
  Not: 4,
5415
5415
  Swap: 5
5416
5416
  });
5417
- function hl(e, t) {
5417
+ function gl(e, t) {
5418
5418
  switch (e) {
5419
5419
  case J.Save: return t[0];
5420
- case J.OneOf: return _l(t);
5420
+ case J.OneOf: return vl(t);
5421
5421
  case J.AllOf:
5422
- case J.AnyOf: return vl(e, t);
5422
+ case J.AnyOf: return yl(e, t);
5423
5423
  case J.Not:
5424
- case J.Swap: return yl(e, t[0]);
5424
+ case J.Swap: return bl(e, t[0]);
5425
5425
  }
5426
5426
  }
5427
- function gl(e) {
5428
- return yl(J.Swap, e);
5429
- }
5430
5427
  function _l(e) {
5428
+ return bl(J.Swap, e);
5429
+ }
5430
+ function vl(e) {
5431
5431
  if (e.length === 1) return e[0];
5432
- let t = vl(J.AnyOf, e), n = [];
5432
+ let t = yl(J.AnyOf, e), n = [];
5433
5433
  for (let t = 0; t < e.length; ++t) for (let r = t + 1; r < e.length; ++r) {
5434
- let i = e[t], a = e[r], o = vl(J.AllOf, [i, a]);
5434
+ let i = e[t], a = e[r], o = yl(J.AllOf, [i, a]);
5435
5435
  n.push(o);
5436
5436
  }
5437
- let r = vl(J.AnyOf, n), i = yl(J.Not, r);
5438
- return vl(J.AllOf, [t, i]);
5437
+ let r = yl(J.AnyOf, n), i = bl(J.Not, r);
5438
+ return yl(J.AllOf, [t, i]);
5439
5439
  }
5440
- function vl(e, t) {
5440
+ function yl(e, t) {
5441
5441
  if (t.length < 0) throw Error("invalid expressions: empty array");
5442
5442
  let n;
5443
5443
  switch (e) {
5444
5444
  case J.AllOf:
5445
- n = pl(bl);
5445
+ n = ml(xl);
5446
5446
  break;
5447
5447
  case J.AnyOf:
5448
- n = pl(xl);
5448
+ n = ml(Sl);
5449
5449
  break;
5450
5450
  default: throw Error(`invalid operator ${e}`);
5451
5451
  }
5452
5452
  for (let e of t) n.push(e);
5453
5453
  return n.result;
5454
5454
  }
5455
- function yl(e, t) {
5455
+ function bl(e, t) {
5456
5456
  let n, r = 0;
5457
5457
  switch (e) {
5458
5458
  case J.Not:
5459
- n = Sl;
5459
+ n = Cl;
5460
5460
  break;
5461
5461
  case J.Swap:
5462
- n = Cl;
5462
+ n = wl;
5463
5463
  break;
5464
5464
  default: throw Error(`invalid operator ${e}`);
5465
5465
  }
5466
- for (let [e, i] of al) i & t && (r |= n(e));
5466
+ for (let [e, i] of ol) i & t && (r |= n(e));
5467
5467
  return r;
5468
5468
  }
5469
- function bl(e, t) {
5469
+ function xl(e, t) {
5470
5470
  let n = 0;
5471
5471
  switch (e) {
5472
5472
  case H.Equals:
@@ -5555,7 +5555,7 @@ function bl(e, t) {
5555
5555
  }
5556
5556
  return n;
5557
5557
  }
5558
- function xl(e, t) {
5558
+ function Sl(e, t) {
5559
5559
  let n = 0;
5560
5560
  switch (e) {
5561
5561
  case H.Equals:
@@ -5644,7 +5644,7 @@ function xl(e, t) {
5644
5644
  }
5645
5645
  return n;
5646
5646
  }
5647
- function Sl(e) {
5647
+ function Cl(e) {
5648
5648
  let t = 0;
5649
5649
  switch (e) {
5650
5650
  case H.Equals:
@@ -5663,7 +5663,7 @@ function Sl(e) {
5663
5663
  }
5664
5664
  return t;
5665
5665
  }
5666
- function Cl(e) {
5666
+ function wl(e) {
5667
5667
  let t = 0;
5668
5668
  switch (e) {
5669
5669
  case H.Equals:
@@ -5684,13 +5684,13 @@ function Cl(e) {
5684
5684
  }
5685
5685
  //#endregion
5686
5686
  //#region src/json-schema-subset/expression/types.ts
5687
- var wl = Object.freeze({
5687
+ var Tl = Object.freeze({
5688
5688
  Leaf: 0,
5689
5689
  Not: 1,
5690
5690
  AllOf: 2,
5691
5691
  AnyOf: 3,
5692
5692
  OneOf: 4
5693
- }), Tl = (e) => (t, n) => {
5693
+ }), El = (e) => (t, n) => {
5694
5694
  let r = {
5695
5695
  parent: null,
5696
5696
  swapped: !1,
@@ -5718,7 +5718,7 @@ var wl = Object.freeze({
5718
5718
  let n = U, [r, o] = t.expressions;
5719
5719
  if (!e.equals(r, o)) {
5720
5720
  let a = e.describe(r);
5721
- if (a.kind !== wl.Leaf) {
5721
+ if (a.kind !== Tl.Leaf) {
5722
5722
  let [e, n] = s(a, !1);
5723
5723
  t.expressions = null, t.calculation = e;
5724
5724
  for (let [e, r] of n.entries()) i.push({
@@ -5733,7 +5733,7 @@ var wl = Object.freeze({
5733
5733
  return;
5734
5734
  }
5735
5735
  let c = e.describe(o);
5736
- if (c.kind !== wl.Leaf) {
5736
+ if (c.kind !== Tl.Leaf) {
5737
5737
  let [e, n] = s(c, !0);
5738
5738
  t.expressions = null, t.calculation = e;
5739
5739
  for (let [e, a] of n.entries()) i.push({
@@ -5759,16 +5759,16 @@ var wl = Object.freeze({
5759
5759
  function s(e, t) {
5760
5760
  let n = J.Save, r;
5761
5761
  switch (e.kind) {
5762
- case wl.Not:
5762
+ case Tl.Not:
5763
5763
  n = J.Not, r = [e.expression];
5764
5764
  break;
5765
- case wl.AllOf:
5765
+ case Tl.AllOf:
5766
5766
  n = J.AllOf, r = [...e.expressions];
5767
5767
  break;
5768
- case wl.AnyOf:
5768
+ case Tl.AnyOf:
5769
5769
  n = J.AnyOf, r = [...e.expressions];
5770
5770
  break;
5771
- case wl.OneOf:
5771
+ case Tl.OneOf:
5772
5772
  n = J.OneOf, r = [...e.expressions];
5773
5773
  break;
5774
5774
  default: throw Error(`invalid kind ${e.kind}`);
@@ -5781,8 +5781,8 @@ var wl = Object.freeze({
5781
5781
  }, r];
5782
5782
  }
5783
5783
  function c(e) {
5784
- let t = e.calculation, n = e.parent, r = hl(t.operator, t.results);
5785
- if (r === 0 && (r = G), t.willSwap && (r = gl(r)), n) {
5784
+ let t = e.calculation, n = e.parent, r = gl(t.operator, t.results);
5785
+ if (r === 0 && (r = G), t.willSwap && (r = _l(r)), n) {
5786
5786
  let e = n.node.calculation, t = e.results;
5787
5787
  t[n.index] = r, e.count += 1, e.count >= t.length && a.push(n.node);
5788
5788
  }
@@ -5790,79 +5790,79 @@ var wl = Object.freeze({
5790
5790
  let l = r.calculation.results[0];
5791
5791
  if (l === 0) throw Error("cannot find result of root");
5792
5792
  return l;
5793
- }, El = class extends Error {
5793
+ }, Dl = class extends Error {
5794
5794
  constructor(e = []) {
5795
- super(kl(e)), this.name = "SchemaError", this.items = e;
5795
+ super(Al(e)), this.name = "SchemaError", this.items = e;
5796
5796
  }
5797
- }, Dl = Object.freeze({
5797
+ }, Ol = Object.freeze({
5798
5798
  Compiled: 0,
5799
5799
  External: 1
5800
5800
  });
5801
- function Ol(e) {
5801
+ function kl(e) {
5802
5802
  switch (e.kind) {
5803
- case Dl.Compiled: {
5803
+ case Ol.Compiled: {
5804
5804
  let { message: t, path: n } = e;
5805
5805
  return `${t} (at ${n.length > 0 ? n.join(".") : "$root"})`;
5806
5806
  }
5807
- case Dl.External: return String(e.error);
5807
+ case Ol.External: return String(e.error);
5808
5808
  }
5809
5809
  }
5810
- function kl(e) {
5810
+ function Al(e) {
5811
5811
  switch (e.length) {
5812
5812
  case 0: return "without any items";
5813
- case 1: return Ol(e[0]);
5814
- default: return `${Ol(e[0])} ... omit the rest ${e.length - 1} items`;
5813
+ case 1: return kl(e[0]);
5814
+ default: return `${kl(e[0])} ... omit the rest ${e.length - 1} items`;
5815
5815
  }
5816
5816
  }
5817
5817
  //#endregion
5818
5818
  //#region src/json-schema-subset/compiler/common.ts
5819
- var Al = /* @__PURE__ */ new Set(/* @__PURE__ */ "type.enum.const.multipleOf.maximum.exclusiveMaximum.minimum.exclusiveMinimum.maxLength.minLength.pattern.items.additionalItems.maxItems.minItems.uniqueItems.contains.maxProperties.minProperties.required.properties.patternProperties.additionalProperties.dependencies.propertyNames.if.then.else.allOf.anyOf.oneOf.not.format.contentMediaType.contentEncoding.definitions".split("."));
5820
- function jl(e) {
5821
- return Al.has(e);
5822
- }
5819
+ var jl = /* @__PURE__ */ new Set(/* @__PURE__ */ "type.enum.const.multipleOf.maximum.exclusiveMaximum.minimum.exclusiveMinimum.maxLength.minLength.pattern.items.additionalItems.maxItems.minItems.uniqueItems.contains.maxProperties.minProperties.required.properties.patternProperties.additionalProperties.dependencies.propertyNames.if.then.else.allOf.anyOf.oneOf.not.format.contentMediaType.contentEncoding.definitions".split("."));
5823
5820
  function Ml(e) {
5824
- for (let t in e) if (jl(t)) return !1;
5821
+ return jl.has(e);
5822
+ }
5823
+ function Nl(e) {
5824
+ for (let t in e) if (Ml(t)) return !1;
5825
5825
  return !0;
5826
5826
  }
5827
- function Nl(e, ...t) {
5827
+ function Pl(e, ...t) {
5828
5828
  return {
5829
5829
  ...e,
5830
5830
  path: [...e.path, ...t]
5831
5831
  };
5832
5832
  }
5833
- function Pl(e) {
5833
+ function Fl(e) {
5834
5834
  if (typeof e == "boolean") throw Error("JSONSchema7Definition cannot be boolean");
5835
5835
  return e;
5836
5836
  }
5837
- function Fl({ path: e, errors: t }, n, ...r) {
5838
- t.push(Il(e, r, n));
5837
+ function Il({ path: e, errors: t }, n, ...r) {
5838
+ t.push(Ll(e, r, n));
5839
5839
  }
5840
5840
  function Y({ path: e, warns: t }, n, ...r) {
5841
- t.push(Il(e, r, n));
5841
+ t.push(Ll(e, r, n));
5842
5842
  }
5843
- function Il(e, t, n) {
5843
+ function Ll(e, t, n) {
5844
5844
  return {
5845
- kind: Dl.Compiled,
5845
+ kind: Ol.Compiled,
5846
5846
  message: n,
5847
5847
  path: [...e, ...t]
5848
5848
  };
5849
5849
  }
5850
5850
  //#endregion
5851
5851
  //#region src/json-schema-subset/compiler/utils.ts
5852
- function Ll(e) {
5852
+ function Rl(e) {
5853
5853
  for (let t in e) {
5854
5854
  let n = e[t];
5855
- n === void 0 ? delete e[t] : n && typeof n == "object" && (Array.isArray(n) ? n.length === 0 && delete e[t] : Rl(n) && delete e[t]);
5855
+ n === void 0 ? delete e[t] : n && typeof n == "object" && (Array.isArray(n) ? n.length === 0 && delete e[t] : zl(n) && delete e[t]);
5856
5856
  }
5857
5857
  return e;
5858
5858
  }
5859
- function Rl(e) {
5859
+ function zl(e) {
5860
5860
  for (let t in e) return !1;
5861
5861
  return !0;
5862
5862
  }
5863
5863
  //#endregion
5864
5864
  //#region src/json-schema-subset/compiler/wrapper.ts
5865
- var zl = Symbol("compiledId"), Bl = Symbol("compiledKind"), Vl = Symbol("compiledPath"), Hl = Symbol("validatorLoader"), X = Object.freeze({
5865
+ var Bl = Symbol("compiledId"), Vl = Symbol("compiledKind"), Hl = Symbol("compiledPath"), Ul = Symbol("validatorLoader"), X = Object.freeze({
5866
5866
  Extends: 0,
5867
5867
  Never: 1,
5868
5868
  Any: 2,
@@ -5875,62 +5875,62 @@ var zl = Symbol("compiledId"), Bl = Symbol("compiledKind"), Vl = Symbol("compile
5875
5875
  Not: 9,
5876
5876
  Combination: 10,
5877
5877
  EnumOrConst: 11
5878
- }), Ul = tl(Zl(X.Any, el(), {}, () => () => !0)), Wl = tl(Zl(X.Never, el(), {
5878
+ }), Wl = nl(Ql(X.Any, tl(), {}, () => () => !0)), Gl = nl(Ql(X.Never, tl(), {
5879
5879
  type: "string",
5880
5880
  maxLength: 0,
5881
5881
  minLength: 1
5882
5882
  }, () => () => !1));
5883
- function Gl(e) {
5884
- return typeof e != "object" || !e ? !1 : zl in e;
5885
- }
5886
5883
  function Kl(e) {
5887
- return typeof e != "object" || !e ? !1 : zl in e && Bl in e;
5888
- }
5889
- function Z(e) {
5890
- return Kl(e) ? e[Bl] : X.Extends;
5884
+ return typeof e != "object" || !e ? !1 : Bl in e;
5891
5885
  }
5892
5886
  function ql(e) {
5893
- return Kl(e) || Gl(e) ? e[zl] : e.id;
5887
+ return typeof e != "object" || !e ? !1 : Bl in e && Vl in e;
5888
+ }
5889
+ function Z(e) {
5890
+ return ql(e) ? e[Vl] : X.Extends;
5894
5891
  }
5895
5892
  function Jl(e) {
5896
- return Kl(e) ? e[Vl] : void 0;
5893
+ return ql(e) || Kl(e) ? e[Bl] : e.id;
5897
5894
  }
5898
5895
  function Yl(e) {
5899
- return typeof e != "object" || !e || Object.defineProperty(e, zl, {
5900
- value: el(),
5896
+ return ql(e) ? e[Hl] : void 0;
5897
+ }
5898
+ function Xl(e) {
5899
+ return typeof e != "object" || !e || Object.defineProperty(e, Bl, {
5900
+ value: tl(),
5901
5901
  configurable: !1,
5902
5902
  writable: !1,
5903
5903
  enumerable: !1
5904
5904
  }), e;
5905
5905
  }
5906
5906
  function Q(e, t, n, r = []) {
5907
- return Zl(e, el(), t, n && (() => n.compile(t)), r);
5907
+ return Ql(e, tl(), t, n && (() => n.compile(t)), r);
5908
5908
  }
5909
- function Xl(e) {
5910
- return Zl(X.Never, el(), { ...e }, e[Hl], e[Vl]);
5909
+ function Zl(e) {
5910
+ return Ql(X.Never, tl(), { ...e }, e[Ul], e[Hl]);
5911
5911
  }
5912
- function Zl(e, t, n, r, i = []) {
5912
+ function Ql(e, t, n, r, i = []) {
5913
5913
  let a = null;
5914
5914
  return Object.defineProperties(n, {
5915
- [Bl]: {
5915
+ [Vl]: {
5916
5916
  value: e,
5917
5917
  configurable: !1,
5918
5918
  writable: !1,
5919
5919
  enumerable: !1
5920
5920
  },
5921
- [zl]: {
5921
+ [Bl]: {
5922
5922
  value: t,
5923
5923
  configurable: !1,
5924
5924
  writable: !1,
5925
5925
  enumerable: !1
5926
5926
  },
5927
- [Vl]: {
5927
+ [Hl]: {
5928
5928
  value: i,
5929
5929
  configurable: !1,
5930
5930
  writable: !1,
5931
5931
  enumerable: !1
5932
5932
  },
5933
- [Hl]: {
5933
+ [Ul]: {
5934
5934
  value: r,
5935
5935
  configurable: !1,
5936
5936
  writable: !1,
@@ -5947,16 +5947,16 @@ function Zl(e, t, n, r, i = []) {
5947
5947
  }
5948
5948
  //#endregion
5949
5949
  //#region src/json-schema-subset/compiler/array.ts
5950
- function Ql(e, t) {
5951
- let n = $l(e, t), r = eu(e, "maxItems", t), i = eu(e, "minItems", t), a = tu(e, t), o = t.uniqueItems, s;
5952
- if (Array.isArray(n) ? s = nu(e, t) : t.additionalItems && Y(e, "it is needless when items is not array", "additionalItems"), !n || !a || s === null) return null;
5950
+ function $l(e, t) {
5951
+ let n = eu(e, t), r = tu(e, "maxItems", t), i = tu(e, "minItems", t), a = nu(e, t), o = t.uniqueItems, s;
5952
+ if (Array.isArray(n) ? s = ru(e, t) : t.additionalItems && Y(e, "it is needless when items is not array", "additionalItems"), !n || !a || s === null) return null;
5953
5953
  let c = !1, l = !1;
5954
5954
  if (Array.isArray(n)) {
5955
- r !== void 0 && r <= n.length && (n = n.splice(r), s = ru(s, e.delegate));
5955
+ r !== void 0 && r <= n.length && (n = n.splice(r), s = iu(s, e.delegate));
5956
5956
  let t = n.findIndex((e) => Z(e) === X.Never);
5957
- t !== -1 && (n = n.splice(t), s = ru(s, e.delegate), r === void 0 && (r = n.length, l = !0)), i !== void 0 && n.length < i && (Y(e, `length(${n.length}) of items if less than minItems(${i})`), c = !0), n.length === 0 && s && Z(s) === X.Never && (c = !0);
5957
+ t !== -1 && (n = n.splice(t), s = iu(s, e.delegate), r === void 0 && (r = n.length, l = !0)), i !== void 0 && n.length < i && (Y(e, `length(${n.length}) of items if less than minItems(${i})`), c = !0), n.length === 0 && s && Z(s) === X.Never && (c = !0);
5958
5958
  } else Z(n) === X.Never && (c = !0);
5959
- return r !== void 0 && i !== void 0 && r < i && (l || Y(e, `maxItems(${r}) is less than minItems(${i})`), c = !0), Q(c ? X.Never : X.Array, Ll({
5959
+ return r !== void 0 && i !== void 0 && r < i && (l || Y(e, `maxItems(${r}) is less than minItems(${i})`), c = !0), Q(c ? X.Never : X.Array, Rl({
5960
5960
  type: "array",
5961
5961
  items: n,
5962
5962
  contains: a,
@@ -5966,12 +5966,12 @@ function Ql(e, t) {
5966
5966
  additionalItems: s
5967
5967
  }), e.delegate, e.path);
5968
5968
  }
5969
- function $l(e, { items: t }) {
5969
+ function eu(e, { items: t }) {
5970
5970
  if (!t) return Q(X.Any, {}, e.delegate, e.path);
5971
5971
  if (Array.isArray(t)) {
5972
5972
  let n = [], r = !1;
5973
5973
  for (let [i, a] of t.entries()) {
5974
- let t = Lu(Nl(e, "items", i), Pl(a));
5974
+ let t = Ru(Pl(e, "items", i), Fl(a));
5975
5975
  if (!t) {
5976
5976
  r = !0;
5977
5977
  continue;
@@ -5980,9 +5980,9 @@ function $l(e, { items: t }) {
5980
5980
  }
5981
5981
  return r ? null : n;
5982
5982
  }
5983
- return Lu(Nl(e, "items"), Pl(t));
5983
+ return Ru(Pl(e, "items"), Fl(t));
5984
5984
  }
5985
- function eu(e, t, n) {
5985
+ function tu(e, t, n) {
5986
5986
  let r = n[t];
5987
5987
  if (r !== void 0) {
5988
5988
  if (Number.isNaN(r)) {
@@ -5996,35 +5996,35 @@ function eu(e, t, n) {
5996
5996
  return r;
5997
5997
  }
5998
5998
  }
5999
- function tu(e, { contains: t }) {
6000
- return t ? Lu(Nl(e, "contains"), Pl(t)) : Q(X.Any, {}, e.delegate, e.path);
5999
+ function nu(e, { contains: t }) {
6000
+ return t ? Ru(Pl(e, "contains"), Fl(t)) : Q(X.Any, {}, e.delegate, e.path);
6001
6001
  }
6002
- function nu(e, { additionalItems: t }) {
6002
+ function ru(e, { additionalItems: t }) {
6003
6003
  switch (typeof t) {
6004
6004
  case "boolean": return t ? Q(X.Any, {}, e.delegate, e.path) : !1;
6005
- case "object": return Lu(Nl(e, "additionalItems"), t);
6005
+ case "object": return Ru(Pl(e, "additionalItems"), t);
6006
6006
  default: return Q(X.Any, {}, e.delegate, e.path);
6007
6007
  }
6008
6008
  }
6009
- function ru(e, t) {
6009
+ function iu(e, t) {
6010
6010
  return e === void 0 ? Q(X.Never, {
6011
6011
  type: "string",
6012
6012
  maxLength: 0,
6013
6013
  minLength: 1
6014
- }, t) : Kl(e) ? Z(e) === X.Never ? e : Xl(e) : e;
6014
+ }, t) : ql(e) ? Z(e) === X.Never ? e : Zl(e) : e;
6015
6015
  }
6016
6016
  //#endregion
6017
6017
  //#region src/json-schema-subset/compiler/combination.ts
6018
- var iu = Object.freeze([
6018
+ var au = Object.freeze([
6019
6019
  "allOf",
6020
6020
  "anyOf",
6021
6021
  "oneOf"
6022
6022
  ]);
6023
- function au(e, t, n, r) {
6024
- if (n.length === 0) return Fl(e, "disable empty list", t), null;
6023
+ function ou(e, t, n, r) {
6024
+ if (n.length === 0) return Il(e, "disable empty list", t), null;
6025
6025
  let i = [];
6026
6026
  for (let [r, a] of n.entries()) {
6027
- let n = Lu(Nl(e, t, r), Pl(a));
6027
+ let n = Ru(Pl(e, t, r), Fl(a));
6028
6028
  n && i.push(n);
6029
6029
  }
6030
6030
  if (i.length < n.length) return null;
@@ -6038,7 +6038,7 @@ function au(e, t, n, r) {
6038
6038
  let s = X.Combination;
6039
6039
  switch (t) {
6040
6040
  case "allOf":
6041
- o > 0 ? s = X.Never : a === i.length ? s = X.Any : ou(i) || (s = X.Never);
6041
+ o > 0 ? s = X.Never : a === i.length ? s = X.Any : su(i) || (s = X.Never);
6042
6042
  break;
6043
6043
  case "anyOf":
6044
6044
  a > 0 ? s = X.Any : o === i.length && (s = X.Never);
@@ -6047,7 +6047,7 @@ function au(e, t, n, r) {
6047
6047
  }
6048
6048
  return Q(s, { [t]: i }, r, e.path);
6049
6049
  }
6050
- function ou(e) {
6050
+ function su(e) {
6051
6051
  let t = null;
6052
6052
  for (let n of e) {
6053
6053
  let e = Z(n);
@@ -6062,35 +6062,35 @@ function ou(e) {
6062
6062
  }
6063
6063
  //#endregion
6064
6064
  //#region src/json-schema-subset/checker/validator.ts
6065
- var su = Object.freeze({
6065
+ var cu = Object.freeze({
6066
6066
  Valid: 0,
6067
6067
  Invalid: 1,
6068
6068
  Unknown: 2
6069
6069
  });
6070
- function cu(e, t) {
6070
+ function lu(e, t) {
6071
6071
  let n = e.isValid;
6072
- return n ? n(t) === !0 ? su.Valid : su.Invalid : su.Unknown;
6072
+ return n ? n(t) === !0 ? cu.Valid : cu.Invalid : cu.Unknown;
6073
6073
  }
6074
6074
  //#endregion
6075
6075
  //#region src/json-schema-subset/compiler/enumAndConst.ts
6076
- function lu(e, t, n, r) {
6076
+ function uu(e, t, n, r) {
6077
6077
  let i, a = !1;
6078
6078
  if (t) {
6079
- if (t.length === 0) return Fl(e, "disable empty list", "enum"), null;
6079
+ if (t.length === 0) return Il(e, "disable empty list", "enum"), null;
6080
6080
  i = [];
6081
- for (let [n, a] of t.entries()) switch (cu(r, a)) {
6082
- case su.Valid:
6083
- i.push(Yl(a));
6081
+ for (let [n, a] of t.entries()) switch (lu(r, a)) {
6082
+ case cu.Valid:
6083
+ i.push(Xl(a));
6084
6084
  break;
6085
- case su.Invalid: Y(e, "cannot pass JSON schema of currently schema object", "enum", n);
6085
+ case cu.Invalid: Y(e, "cannot pass JSON schema of currently schema object", "enum", n);
6086
6086
  }
6087
6087
  i.length === 0 && Y(e, "all of elements from list is rejected by currently schema object", "enum");
6088
6088
  }
6089
- if (n && cu(r, n) === su.Invalid && (a = !0), i) {
6089
+ if (n && lu(r, n) === cu.Invalid && (a = !0), i) {
6090
6090
  if (i.length === 0) a = !0;
6091
6091
  else if (n) {
6092
6092
  let e = !1;
6093
- for (let t of i) if (il(t, n)) {
6093
+ for (let t of i) if (al(t, n)) {
6094
6094
  e = !0;
6095
6095
  break;
6096
6096
  }
@@ -6098,11 +6098,11 @@ function lu(e, t, n, r) {
6098
6098
  }
6099
6099
  }
6100
6100
  let o = a ? X.Never : X.EnumOrConst, s = {};
6101
- return r.type && (s.type = r.type), i && (s.enum = i), n && (s.const = Yl(rl(n))), Q(o, s, e.delegate, e.path);
6101
+ return r.type && (s.type = r.type), i && (s.enum = i), n && (s.const = Xl(il(n))), Q(o, s, e.delegate, e.path);
6102
6102
  }
6103
6103
  //#endregion
6104
6104
  //#region src/json-schema-subset/compiler/object.ts
6105
- var uu = /* @__PURE__ */ new Set([
6105
+ var du = /* @__PURE__ */ new Set([
6106
6106
  "type",
6107
6107
  "maxProperties",
6108
6108
  "minProperties",
@@ -6113,27 +6113,27 @@ var uu = /* @__PURE__ */ new Set([
6113
6113
  "dependencies",
6114
6114
  "propertyNames"
6115
6115
  ]);
6116
- function du(e, t) {
6117
- let n = Object.keys(t).filter((e) => !uu.has(e) && jl(e));
6116
+ function fu(e, t) {
6117
+ let n = Object.keys(t).filter((e) => !du.has(e) && Ml(e));
6118
6118
  n.length > 0 && Y(e, `type="object" will exclude other keys: ${n.toSorted().join(", ")}`);
6119
- let r = fu(e, "maxProperties", t), i = fu(e, "minProperties", t), a = pu(e, t), o = mu(e, t), s = hu(e, t), c = _u(e, t);
6119
+ let r = pu(e, "maxProperties", t), i = pu(e, "minProperties", t), a = mu(e, t), o = hu(e, t), s = gu(e, t), c = vu(e, t);
6120
6120
  if (!a || !o || !s || !c) return null;
6121
- let l = gu(e, o, s, t);
6121
+ let l = _u(e, o, s, t);
6122
6122
  if (!l) return null;
6123
- let u = yu(e, vu(a, o, s, l), c, t);
6124
- return Q(bu(e, a, l, u, r, i) ? X.Never : X.Object, Ll({
6123
+ let u = bu(e, yu(a, o, s, l), c, t);
6124
+ return Q(xu(e, a, l, u, r, i) ? X.Never : X.Object, Rl({
6125
6125
  type: "object",
6126
6126
  required: u,
6127
6127
  properties: l,
6128
6128
  minProperties: i,
6129
6129
  maxProperties: r,
6130
6130
  additionalProperties: a,
6131
- patternProperties: Tu(o),
6132
- dependencies: Eu(c, t),
6131
+ patternProperties: Eu(o),
6132
+ dependencies: Du(c, t),
6133
6133
  propertyNames: s
6134
6134
  }), e.delegate, e.path);
6135
6135
  }
6136
- function fu(e, t, n) {
6136
+ function pu(e, t, n) {
6137
6137
  let r = n[t];
6138
6138
  if (r !== void 0) {
6139
6139
  if (Number.isNaN(r)) {
@@ -6147,22 +6147,22 @@ function fu(e, t, n) {
6147
6147
  return r;
6148
6148
  }
6149
6149
  }
6150
- function pu(e, { additionalProperties: t }) {
6150
+ function mu(e, { additionalProperties: t }) {
6151
6151
  return t === !1 ? Q(X.Never, {
6152
6152
  type: "string",
6153
6153
  maxLength: 0,
6154
6154
  minLength: 1
6155
- }, e.delegate, e.path) : typeof t == "object" ? Lu(Nl(e, "additionalProperties"), Pl(t)) : Q(X.Any, {}, e.delegate, e.path);
6155
+ }, e.delegate, e.path) : typeof t == "object" ? Ru(Pl(e, "additionalProperties"), Fl(t)) : Q(X.Any, {}, e.delegate, e.path);
6156
6156
  }
6157
- function mu(e, { patternProperties: t }) {
6157
+ function hu(e, { patternProperties: t }) {
6158
6158
  let n = !1, r = {};
6159
6159
  for (let i in t) {
6160
- let a = wu(i);
6160
+ let a = Tu(i);
6161
6161
  if (a instanceof Error) {
6162
6162
  Y(e, `property name invalid. ${i}`, "patternProperties", i);
6163
6163
  continue;
6164
6164
  }
6165
- let o = Pl(t[i]), s = Lu(Nl(e, "patternProperties", i), o);
6165
+ let o = Fl(t[i]), s = Ru(Pl(e, "patternProperties", i), o);
6166
6166
  if (!s) {
6167
6167
  n = !0;
6168
6168
  continue;
@@ -6171,29 +6171,29 @@ function mu(e, { patternProperties: t }) {
6171
6171
  }
6172
6172
  return n ? null : r;
6173
6173
  }
6174
- function hu(e, { propertyNames: t }) {
6174
+ function gu(e, { propertyNames: t }) {
6175
6175
  if (!t) return Q(X.Any, {}, e.delegate, e.path);
6176
- t = Pl(t);
6177
- let n = Lu(Nl(e, "propertyNames"), t);
6176
+ t = Fl(t);
6177
+ let n = Ru(Pl(e, "propertyNames"), t);
6178
6178
  if (!n) return null;
6179
6179
  let r = Z(n);
6180
- return r !== X.String && r !== X.Any ? Xl(n) : n;
6180
+ return r !== X.String && r !== X.Any ? Zl(n) : n;
6181
6181
  }
6182
- function gu(e, t, n, { properties: r }) {
6182
+ function _u(e, t, n, { properties: r }) {
6183
6183
  let i = !1;
6184
6184
  if (!r) return {};
6185
6185
  let a = {};
6186
6186
  for (let o in r) {
6187
- if (cu(n, o) === su.Invalid) {
6187
+ if (lu(n, o) === cu.Invalid) {
6188
6188
  Y(e, `key ${JSON.stringify(o)} cannot pass JSON schema from propertyNames`, "properties");
6189
6189
  continue;
6190
6190
  }
6191
- let s = Cu(t, o);
6191
+ let s = wu(t, o);
6192
6192
  if (s && Z(s) === X.Never) {
6193
6193
  Y(e, `key ${JSON.stringify(o)} matches a pattern that has a impossible(never) schema`, "properties");
6194
6194
  continue;
6195
6195
  }
6196
- let c = Pl(r[o]), l = Lu(Nl(e, "properties", o), c);
6196
+ let c = Fl(r[o]), l = Ru(Pl(e, "properties", o), c);
6197
6197
  if (!l) {
6198
6198
  i = !0;
6199
6199
  continue;
@@ -6202,40 +6202,40 @@ function gu(e, t, n, { properties: r }) {
6202
6202
  }
6203
6203
  return i ? null : a;
6204
6204
  }
6205
- function _u(e, { dependencies: t }) {
6205
+ function vu(e, { dependencies: t }) {
6206
6206
  if (!t) return [{}, {}];
6207
6207
  let n = {}, r = {};
6208
6208
  for (let i in t) {
6209
- let a = Pl(t[i]);
6209
+ let a = Fl(t[i]);
6210
6210
  if (Array.isArray(a)) {
6211
- let { keys: t, duplicated: r } = Su(a);
6211
+ let { keys: t, duplicated: r } = Cu(a);
6212
6212
  r && Y(e, `found duplicated property names: ${r.join(", ")}`, "dependencies", i), n[i] = t;
6213
6213
  } else {
6214
- let t = Lu(Nl(e, "dependencies", i), a);
6214
+ let t = Ru(Pl(e, "dependencies", i), a);
6215
6215
  if (t) {
6216
6216
  let e = Z(t);
6217
- r[i] = e === X.Object || e === X.Any ? t : e === X.Extends ? Wl : Xl(t);
6217
+ r[i] = e === X.Object || e === X.Any ? t : e === X.Extends ? Gl : Zl(t);
6218
6218
  }
6219
6219
  }
6220
6220
  }
6221
6221
  return [n, r];
6222
6222
  }
6223
- function vu(e, t, n, r) {
6223
+ function yu(e, t, n, r) {
6224
6224
  return (i) => {
6225
- if (cu(n, i) === su.Invalid) return !0;
6226
- let a = Cu(t, i);
6225
+ if (lu(n, i) === cu.Invalid) return !0;
6226
+ let a = wu(t, i);
6227
6227
  return !!(a && Z(a) === X.Never || Z(r[i] ?? e) === X.Never);
6228
6228
  };
6229
6229
  }
6230
- function yu(e, t, n, { required: r }) {
6230
+ function bu(e, t, n, { required: r }) {
6231
6231
  if (!r) return [];
6232
- let i = Su(r);
6232
+ let i = Cu(r);
6233
6233
  i.duplicated && Y(e, `found duplicated required keys: ${i.duplicated.join(", ")}`, "required");
6234
6234
  let a = [], o = [];
6235
- for (let e of i.keys) xu(n, e).some((e) => t(e)) ? o.push(e) : a.push(e);
6235
+ for (let e of i.keys) Su(n, e).some((e) => t(e)) ? o.push(e) : a.push(e);
6236
6236
  return o.length > 0 && Y(e, `key ${o.map((e) => JSON.stringify(e)).join(", ")} will ban by another condition`, "required"), a;
6237
6237
  }
6238
- function bu(e, t, n, r, i, a) {
6238
+ function xu(e, t, n, r, i, a) {
6239
6239
  if (i !== void 0 && a !== void 0 && i < a) return Y(e, `maxProperties(${i}) is less than minProperties(${a})`), !0;
6240
6240
  if (i !== void 0 && r.length > i) return Y(e, `length(${r.length}) of required is greater than maxProperties(${i})`), !0;
6241
6241
  if (a !== void 0 && r.length < a) return Y(e, `length(${r.length}) of required is less than minProperties(${a})`), !0;
@@ -6246,7 +6246,7 @@ function bu(e, t, n, r, i, a) {
6246
6246
  }
6247
6247
  return !0;
6248
6248
  }
6249
- function xu([e, t], n) {
6249
+ function Su([e, t], n) {
6250
6250
  let r = [n], i = new Set(r);
6251
6251
  for (; r.length > 0;) {
6252
6252
  let n = r.pop(), i = t[n], o = e[n];
@@ -6257,7 +6257,7 @@ function xu([e, t], n) {
6257
6257
  }
6258
6258
  return [...i];
6259
6259
  }
6260
- function Su(e) {
6260
+ function Cu(e) {
6261
6261
  let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
6262
6262
  for (let r of e) t.has(r) ? n.add(r) : t.add(r);
6263
6263
  return n.size === 0 ? {
@@ -6268,14 +6268,14 @@ function Su(e) {
6268
6268
  duplicated: [...n]
6269
6269
  };
6270
6270
  }
6271
- function Cu(e, t) {
6271
+ function wu(e, t) {
6272
6272
  for (let n in e) {
6273
6273
  let [r, i] = e[n];
6274
6274
  if (i.test(t)) return r;
6275
6275
  }
6276
6276
  return null;
6277
6277
  }
6278
- function wu(e) {
6278
+ function Tu(e) {
6279
6279
  try {
6280
6280
  return new RegExp(e, "i");
6281
6281
  } catch (e) {
@@ -6283,12 +6283,12 @@ function wu(e) {
6283
6283
  throw e;
6284
6284
  }
6285
6285
  }
6286
- function Tu(e) {
6286
+ function Eu(e) {
6287
6287
  let t = {};
6288
6288
  for (let n in e) t[n] = e[n][0];
6289
6289
  return t;
6290
6290
  }
6291
- function Eu([e, t], { dependencies: n }) {
6291
+ function Du([e, t], { dependencies: n }) {
6292
6292
  let r = {};
6293
6293
  for (let i in n) {
6294
6294
  let n = e[i], a = t[i];
@@ -6298,39 +6298,39 @@ function Eu([e, t], { dependencies: n }) {
6298
6298
  }
6299
6299
  //#endregion
6300
6300
  //#region src/json-schema-subset/compiler/primitive.ts
6301
- var Du = /* @__PURE__ */ new Set([
6301
+ var Ou = /* @__PURE__ */ new Set([
6302
6302
  "type",
6303
6303
  "multipleOf",
6304
6304
  "maximum",
6305
6305
  "exclusiveMaximum",
6306
6306
  "minimum",
6307
6307
  "exclusiveMinimum"
6308
- ]), Ou = /* @__PURE__ */ new Set([
6308
+ ]), ku = /* @__PURE__ */ new Set([
6309
6309
  "type",
6310
6310
  "format",
6311
6311
  "maxLength",
6312
6312
  "minLength",
6313
6313
  "pattern"
6314
6314
  ]);
6315
- function ku(e, t) {
6315
+ function Au(e, t) {
6316
6316
  let { type: n } = t;
6317
6317
  switch (n) {
6318
6318
  case "number":
6319
- case "integer": return Au(e, t);
6320
- case "string": return Mu(e, t);
6319
+ case "integer": return ju(e, t);
6320
+ case "string": return Nu(e, t);
6321
6321
  case "boolean":
6322
6322
  case "null": {
6323
- let r = Object.keys(t).filter((e) => jl(e) && e !== "type");
6323
+ let r = Object.keys(t).filter((e) => Ml(e) && e !== "type");
6324
6324
  return r.length > 0 && Y(e, `key "type" will exclude other keys: ${r.toSorted().join(", ")}`), Q(n === "null" ? X.Null : X.Boolean, { type: n }, e.delegate, e.path);
6325
6325
  }
6326
- default: return Fl(e, `invalid type ${JSON.stringify(n)}`), null;
6326
+ default: return Il(e, `invalid type ${JSON.stringify(n)}`), null;
6327
6327
  }
6328
6328
  }
6329
- function Au(e, t) {
6330
- let n = Object.keys(t).filter((e) => !Du.has(e) && jl(e));
6329
+ function ju(e, t) {
6330
+ let n = Object.keys(t).filter((e) => !Ou.has(e) && Ml(e));
6331
6331
  n.length > 0 && Y(e, `type=${JSON.stringify(t.type)} will exclude other keys: ${n.toSorted().join(", ")}`);
6332
- let r = nl(t, Du);
6333
- for (let t of Du) {
6332
+ let r = rl(t, Ou);
6333
+ for (let t of Ou) {
6334
6334
  let n = r[t];
6335
6335
  t !== "type" && n !== void 0 && Number.isNaN(n) && (Y(e, "found NaN", t), delete r[t]);
6336
6336
  }
@@ -6339,38 +6339,38 @@ function Au(e, t) {
6339
6339
  let { multipleOf: c } = r;
6340
6340
  c === 0 && (delete r.multipleOf, r.type = "number", Y(e, "cannot be 0", "multipleOf"));
6341
6341
  let l = X.Numeric;
6342
- return ju(r) || (l = X.Never), Q(l, r, e.delegate, e.path);
6342
+ return Mu(r) || (l = X.Never), Q(l, r, e.delegate, e.path);
6343
6343
  }
6344
- function ju(e) {
6344
+ function Mu(e) {
6345
6345
  let { maximum: t, exclusiveMaximum: n, minimum: r, exclusiveMinimum: i } = e;
6346
6346
  return t !== void 0 && r !== void 0 ? t >= r : n !== void 0 && r !== void 0 ? n > r : t !== void 0 && i !== void 0 ? t > i : n !== void 0 && i !== void 0 ? n > i : !0;
6347
6347
  }
6348
- function Mu(e, t) {
6349
- let n = Object.keys(t).filter((e) => !Ou.has(e) && jl(e));
6348
+ function Nu(e, t) {
6349
+ let n = Object.keys(t).filter((e) => !ku.has(e) && Ml(e));
6350
6350
  n.length > 0 && Y(e, `type="string" will exclude other keys: ${n.toSorted().join(", ")}`);
6351
- let r = nl(t, Ou);
6352
- Nu(e, r, "maxLength"), Nu(e, r, "minLength");
6351
+ let r = rl(t, ku);
6352
+ Pu(e, r, "maxLength"), Pu(e, r, "minLength");
6353
6353
  let i = r.maxLength, a = r.minLength, o = X.String;
6354
6354
  return i !== void 0 && (i < 0 || i !== void 0 && a !== void 0 && i < a) && (o = X.Never), Q(o, r, e.delegate, e.path);
6355
6355
  }
6356
- function Nu(e, t, n) {
6356
+ function Pu(e, t, n) {
6357
6357
  let r = t[n];
6358
6358
  r !== void 0 && Number.isNaN(r) && (Y(e, "found NaN", n), delete t[n]);
6359
6359
  }
6360
6360
  //#endregion
6361
6361
  //#region src/json-schema-subset/compiler/compiler.ts
6362
- var Pu = Object.freeze([]);
6363
- function Fu(e, t, n, r) {
6364
- if (Kl(e) || t.isExtendsSchema(e)) return {
6362
+ var Fu = Object.freeze([]);
6363
+ function Iu(e, t, n, r) {
6364
+ if (ql(e) || t.isExtendsSchema(e)) return {
6365
6365
  schema: e,
6366
- warns: Pu
6366
+ warns: Fu
6367
6367
  };
6368
6368
  if (r) {
6369
6369
  let t = r.isSchema(e);
6370
6370
  if (typeof t == "object") {
6371
6371
  let e = [];
6372
6372
  for (let n of t) e.push({
6373
- kind: Dl.External,
6373
+ kind: Ol.External,
6374
6374
  error: n
6375
6375
  });
6376
6376
  if (e.length > 0) return e;
@@ -6383,19 +6383,19 @@ function Fu(e, t, n, r) {
6383
6383
  path: [],
6384
6384
  errors: [],
6385
6385
  warns: []
6386
- }, a = Lu(i, e);
6387
- if (a) Iu(i.errors.length === 0, "found errors (it should be empty)");
6388
- else return Iu(i.errors.length > 0, "cannot found any errors"), i.errors;
6386
+ }, a = Ru(i, e);
6387
+ if (a) Lu(i.errors.length === 0, "found errors (it should be empty)");
6388
+ else return Lu(i.errors.length > 0, "cannot found any errors"), i.errors;
6389
6389
  return {
6390
6390
  schema: a,
6391
6391
  warns: i.warns
6392
6392
  };
6393
6393
  }
6394
- function Iu(e, t) {
6394
+ function Lu(e, t) {
6395
6395
  if (!e) throw Error(t);
6396
6396
  }
6397
- function Lu(e, t) {
6398
- if (e.extends.isExtendsSchema(t) || Kl(t)) return t;
6397
+ function Ru(e, t) {
6398
+ if (e.extends.isExtendsSchema(t) || ql(t)) return t;
6399
6399
  let n = e.extends.tryCompiledExtendsSchema(t, e.payload);
6400
6400
  if (n) return n;
6401
6401
  let r = t, i = !1, { enum: a, const: o } = t;
@@ -6403,23 +6403,23 @@ function Lu(e, t) {
6403
6403
  let { enum: e, const: n, ...a } = t;
6404
6404
  r = a, i = !0;
6405
6405
  }
6406
- let s = Ru(e, r);
6407
- return s && i && (s = lu(e, a, o, s)), s || null;
6406
+ let s = zu(e, r);
6407
+ return s && i && (s = uu(e, a, o, s)), s || null;
6408
6408
  }
6409
- function Ru(e, t) {
6410
- for (let n of iu) {
6409
+ function zu(e, t) {
6410
+ for (let n of au) {
6411
6411
  let r = t[n];
6412
6412
  if (r) {
6413
- let i = Object.keys(t).filter((e) => jl(e) && e !== n);
6414
- return i.length > 0 && Y(e, `composition key ${JSON.stringify(n)} will exclude other keys: ${i.toSorted().join(", ")}`), au(e, n, r) || null;
6413
+ let i = Object.keys(t).filter((e) => Ml(e) && e !== n);
6414
+ return i.length > 0 && Y(e, `composition key ${JSON.stringify(n)} will exclude other keys: ${i.toSorted().join(", ")}`), ou(e, n, r) || null;
6415
6415
  }
6416
6416
  }
6417
6417
  {
6418
- let n = Pl(t.not);
6418
+ let n = Fl(t.not);
6419
6419
  if (n) {
6420
- let r = Object.keys(t).filter((e) => jl(e) && e !== "not");
6420
+ let r = Object.keys(t).filter((e) => Ml(e) && e !== "not");
6421
6421
  r.length > 0 && Y(e, `key "not" will exclude other keys: ${r.toSorted().join(", ")}`);
6422
- let i = Lu(Nl(e, "not"), n);
6422
+ let i = Ru(Pl(e, "not"), n);
6423
6423
  if (!i) return null;
6424
6424
  let a = X.Not;
6425
6425
  switch (Z(i)) {
@@ -6435,26 +6435,26 @@ function Ru(e, t) {
6435
6435
  let { type: n } = t;
6436
6436
  if (Array.isArray(n)) {
6437
6437
  let { type: r, ...i } = t;
6438
- return au(e, "anyOf", n.map((e) => ({
6438
+ return ou(e, "anyOf", n.map((e) => ({
6439
6439
  ...i,
6440
6440
  type: e
6441
6441
  })));
6442
6442
  }
6443
6443
  switch (n) {
6444
- case "object": return du(e, t);
6445
- case "array": return Ql(e, t);
6446
- default: return ku(e, t);
6444
+ case "object": return fu(e, t);
6445
+ case "array": return $l(e, t);
6446
+ default: return Au(e, t);
6447
6447
  }
6448
6448
  }
6449
- return Ml(t) ? Q(X.Any, {}, e.delegate, e.path) : (Fl(e, "unrecognized"), null);
6449
+ return Nl(t) ? Q(X.Any, {}, e.delegate, e.path) : (Il(e, "unrecognized"), null);
6450
6450
  }
6451
6451
  //#endregion
6452
6452
  //#region src/json-schema-subset/checker/tools/mark.ts
6453
- var zu = class {
6453
+ var Bu = class {
6454
6454
  constructor(e) {
6455
6455
  let t = Object.freeze(e.toSorted());
6456
6456
  if (t.length > 32) throw Error(`cannot define ${t.length} keys which is greater than 32`);
6457
- this.keys = t, this.clazz = class extends Bu {
6457
+ this.keys = t, this.clazz = class extends Vu {
6458
6458
  constructor(e) {
6459
6459
  super(t, e);
6460
6460
  }
@@ -6478,7 +6478,7 @@ var zu = class {
6478
6478
  else if (e) for (let [n, r] of this.keys.entries()) e[r] && (t |= 1 << n);
6479
6479
  return new this.clazz(t);
6480
6480
  }
6481
- }, Bu = class {
6481
+ }, Vu = class {
6482
6482
  constructor(e, t) {
6483
6483
  this.keys = e, this.int32 = t;
6484
6484
  }
@@ -6493,21 +6493,21 @@ var zu = class {
6493
6493
  };
6494
6494
  //#endregion
6495
6495
  //#region src/json-schema-subset/checker/tools/quantum.ts
6496
- function Vu(e) {
6497
- return new Hu(e);
6496
+ function Hu(e) {
6497
+ return new Uu(e);
6498
6498
  }
6499
- var Hu = class {
6499
+ var Uu = class {
6500
6500
  constructor(e) {
6501
- this.description = new zu(e);
6501
+ this.description = new Bu(e);
6502
6502
  }
6503
6503
  get keys() {
6504
6504
  return this.description.keys;
6505
6505
  }
6506
6506
  variable(e) {
6507
6507
  let t;
6508
- return e && (t = this.description.toBundle(e).toInt32()), new Uu(this.description, t);
6508
+ return e && (t = this.description.toBundle(e).toInt32()), new Wu(this.description, t);
6509
6509
  }
6510
- }, Uu = class {
6510
+ }, Wu = class {
6511
6511
  constructor(e, t) {
6512
6512
  this.values = /* @__PURE__ */ new Set(), this.description = e, t !== void 0 && this.values.add(t);
6513
6513
  }
@@ -6528,7 +6528,7 @@ var Hu = class {
6528
6528
  }
6529
6529
  push(e, t) {
6530
6530
  let n = /* @__PURE__ */ new Set();
6531
- for (let r of this.values) for (let [i, a] of al) if (e & a) {
6531
+ for (let r of this.values) for (let [i, a] of ol) if (e & a) {
6532
6532
  let e = this.description.toBundle(r);
6533
6533
  t(i, e), n.add(e.toInt32());
6534
6534
  }
@@ -6545,11 +6545,11 @@ var Hu = class {
6545
6545
  };
6546
6546
  //#endregion
6547
6547
  //#region src/json-schema-subset/checker/tools/range.ts
6548
- function Wu(e, t) {
6548
+ function Gu(e, t) {
6549
6549
  let [n] = e, [r] = t;
6550
- return n.num < r.num ? Gu(e, t) : n.num > r.num ? Ku(e, t) : qu(e, t);
6550
+ return n.num < r.num ? Ku(e, t) : n.num > r.num ? qu(e, t) : Ju(e, t);
6551
6551
  }
6552
- function Gu(e, t) {
6552
+ function Ku(e, t) {
6553
6553
  let [n, r] = e, [i, a] = t;
6554
6554
  if (r.num <= i.num) {
6555
6555
  let n = r.exclusive, a = i.exclusive;
@@ -6574,11 +6574,11 @@ function Gu(e, t) {
6574
6574
  let t;
6575
6575
  return e && (t = {
6576
6576
  fromLeft: !1,
6577
- range: [Ju(r), a]
6577
+ range: [Yu(r), a]
6578
6578
  }), {
6579
6579
  left: {
6580
6580
  fromLeft: !0,
6581
- range: [n, Ju(i)]
6581
+ range: [n, Yu(i)]
6582
6582
  },
6583
6583
  center: [i, r],
6584
6584
  right: t
@@ -6588,16 +6588,16 @@ function Gu(e, t) {
6588
6588
  return {
6589
6589
  left: {
6590
6590
  fromLeft: !0,
6591
- range: [n, Ju(i)]
6591
+ range: [n, Yu(i)]
6592
6592
  },
6593
6593
  center: [i, a],
6594
6594
  right: {
6595
6595
  fromLeft: !0,
6596
- range: [Ju(a), r]
6596
+ range: [Yu(a), r]
6597
6597
  }
6598
6598
  };
6599
6599
  }
6600
- function Ku(e, t) {
6600
+ function qu(e, t) {
6601
6601
  let [n, r] = e, [i, a] = t;
6602
6602
  if (n.num >= a.num) {
6603
6603
  let r = a.exclusive, i = n.exclusive;
@@ -6622,11 +6622,11 @@ function Ku(e, t) {
6622
6622
  let t;
6623
6623
  return e && (t = {
6624
6624
  fromLeft: !0,
6625
- range: [Ju(a), r]
6625
+ range: [Yu(a), r]
6626
6626
  }), {
6627
6627
  left: {
6628
6628
  fromLeft: !1,
6629
- range: [i, Ju(n)]
6629
+ range: [i, Yu(n)]
6630
6630
  },
6631
6631
  center: [n, a],
6632
6632
  right: t
@@ -6636,23 +6636,23 @@ function Ku(e, t) {
6636
6636
  return {
6637
6637
  left: {
6638
6638
  fromLeft: !1,
6639
- range: [i, Ju(n)]
6639
+ range: [i, Yu(n)]
6640
6640
  },
6641
6641
  center: [n, r],
6642
6642
  right: {
6643
6643
  fromLeft: !1,
6644
- range: [Ju(r), a]
6644
+ range: [Yu(r), a]
6645
6645
  }
6646
6646
  };
6647
6647
  }
6648
- function qu(e, t) {
6648
+ function Ju(e, t) {
6649
6649
  let [n, r] = e, [i, a] = t, o = n.exclusive, s = i.exclusive, c, l = n;
6650
6650
  if (!o && s ? (l = i, c = {
6651
6651
  fromLeft: !0,
6652
- range: [n, Ju(i)]
6652
+ range: [n, Yu(i)]
6653
6653
  }) : o && !s && (c = {
6654
6654
  fromLeft: !1,
6655
- range: [i, Ju(n)]
6655
+ range: [i, Yu(n)]
6656
6656
  }), r.num <= a.num) {
6657
6657
  let e = !0, t = !1;
6658
6658
  if (r.num === a.num) {
@@ -6663,7 +6663,7 @@ function qu(e, t) {
6663
6663
  let t;
6664
6664
  return e && (t = {
6665
6665
  fromLeft: !1,
6666
- range: [Ju(r), a]
6666
+ range: [Yu(r), a]
6667
6667
  }), {
6668
6668
  left: c,
6669
6669
  center: [l, r],
@@ -6676,11 +6676,11 @@ function qu(e, t) {
6676
6676
  center: [l, a],
6677
6677
  right: {
6678
6678
  fromLeft: !0,
6679
- range: [Ju(a), r]
6679
+ range: [Yu(a), r]
6680
6680
  }
6681
6681
  };
6682
6682
  }
6683
- function Ju(e) {
6683
+ function Yu(e) {
6684
6684
  return {
6685
6685
  num: e.num,
6686
6686
  exclusive: !e.exclusive
@@ -6688,8 +6688,8 @@ function Ju(e) {
6688
6688
  }
6689
6689
  //#endregion
6690
6690
  //#region src/json-schema-subset/checker/range.ts
6691
- var Yu = (e) => (t = e, n = Infinity, r = e, i = Infinity) => {
6692
- let { left: a, center: o, right: s } = Wu([{
6691
+ var Xu = (e) => (t = e, n = Infinity, r = e, i = Infinity) => {
6692
+ let { left: a, center: o, right: s } = Gu([{
6693
6693
  num: t,
6694
6694
  exclusive: !1
6695
6695
  }, {
@@ -6719,24 +6719,24 @@ var Yu = (e) => (t = e, n = Infinity, r = e, i = Infinity) => {
6719
6719
  intersection: u
6720
6720
  };
6721
6721
  };
6722
- function Xu({ left: e, right: t, intersection: n }) {
6722
+ function Zu({ left: e, right: t, intersection: n }) {
6723
6723
  if (!n) return H.Rejection;
6724
6724
  let r = !1, i = !1;
6725
6725
  return e && (e.isFrom1 ? r = !0 : i = !0), t && (t.isFrom1 ? r = !0 : i = !0), r && i ? H.Intersection : r ? H.Containing : i ? H.ContainedBy : H.Equals;
6726
6726
  }
6727
6727
  //#endregion
6728
6728
  //#region src/json-schema-subset/checker/array.ts
6729
- var Zu = Yu(0), Qu = Vu([
6729
+ var Qu = Xu(0), $u = Hu([
6730
6730
  "hasCommon",
6731
6731
  "hasExtra1",
6732
6732
  "hasExtra2",
6733
6733
  "hasRejection",
6734
6734
  "hasCommonBroken"
6735
6735
  ]);
6736
- function $u({ calculate: e }, t, n) {
6737
- let r = Zu(t.minItems, t.maxItems, n.minItems, n.maxItems), i = Xu(r);
6736
+ function ed({ calculate: e }, t, n) {
6737
+ let r = Qu(t.minItems, t.maxItems, n.minItems, n.maxItems), i = Zu(r);
6738
6738
  if (i === H.Rejection) return K;
6739
- let [a, o] = ed(t), [s, c] = ed(n), l = Math.max(a.length, s.length) + 1, u = Math.min(l, r.intersection.max), d = Qu.variable({}), f = Math.min(t.minItems ?? 0, n.minItems ?? 0);
6739
+ let [a, o] = td(t), [s, c] = td(n), l = Math.max(a.length, s.length) + 1, u = Math.min(l, r.intersection.max), d = $u.variable({}), f = Math.min(t.minItems ?? 0, n.minItems ?? 0);
6740
6740
  for (let t = 0; t < u; t++) {
6741
6741
  let n = e(a[t] ?? o, s[t] ?? c);
6742
6742
  d.push(n, (e, n) => {
@@ -6776,69 +6776,69 @@ function $u({ calculate: e }, t, n) {
6776
6776
  }
6777
6777
  return p;
6778
6778
  }
6779
- function ed({ items: e, additionalItems: t }) {
6780
- return Array.isArray(e) ? [e, t ?? Ul] : [[], e ?? Ul];
6779
+ function td({ items: e, additionalItems: t }) {
6780
+ return Array.isArray(e) ? [e, t ?? Wl] : [[], e ?? Wl];
6781
6781
  }
6782
6782
  //#endregion
6783
6783
  //#region src/json-schema-subset/checker/cache.ts
6784
- function td(e) {
6784
+ function nd(e) {
6785
6785
  let t = /* @__PURE__ */ new Map();
6786
6786
  return (n, r) => {
6787
- let i = Gl(n);
6788
- return i === Gl(r) ? i ? rd(t, n, r, e) : n === r : !1;
6787
+ let i = Kl(n);
6788
+ return i === Kl(r) ? i ? id(t, n, r, e) : n === r : !1;
6789
6789
  };
6790
6790
  }
6791
- function nd(e) {
6791
+ function rd(e) {
6792
6792
  let t = /* @__PURE__ */ new Map();
6793
- return (n, r) => rd(t, n, r, e);
6793
+ return (n, r) => id(t, n, r, e);
6794
6794
  }
6795
- function rd(e, t, n, r) {
6796
- let i = `${ql(t)}/${ql(n)}`, a = e.get(i);
6795
+ function id(e, t, n, r) {
6796
+ let i = `${Jl(t)}/${Jl(n)}`, a = e.get(i);
6797
6797
  return a === void 0 && e.set(i, a = r(t, n)), a;
6798
6798
  }
6799
6799
  //#endregion
6800
6800
  //#region src/json-schema-subset/checker/enumAndConst.ts
6801
- function id(e, t, n) {
6802
- let r = od(t), i = od(n), a = !1, o = !1, s = !1;
6803
- for (let t of r) if (sd(e, i, t) ? s = !0 : a = !0, a && s) break;
6804
- for (let t of i) if (sd(e, r, t) ? s = !0 : o = !0, o && s) break;
6801
+ function ad(e, t, n) {
6802
+ let r = sd(t), i = sd(n), a = !1, o = !1, s = !1;
6803
+ for (let t of r) if (cd(e, i, t) ? s = !0 : a = !0, a && s) break;
6804
+ for (let t of i) if (cd(e, r, t) ? s = !0 : o = !0, o && s) break;
6805
6805
  return s ? a && o ? q : a ? W : o ? G : U : K;
6806
6806
  }
6807
- function ad(e, t) {
6807
+ function od(e, t) {
6808
6808
  let n = !1, r = !1;
6809
- for (let i of od(e)) {
6810
- switch (cu(t, i)) {
6811
- case su.Valid:
6809
+ for (let i of sd(e)) {
6810
+ switch (lu(t, i)) {
6811
+ case cu.Valid:
6812
6812
  n = !0;
6813
6813
  break;
6814
- case su.Invalid:
6814
+ case cu.Invalid:
6815
6815
  r = !0;
6816
6816
  break;
6817
- case su.Unknown: return ol;
6817
+ case cu.Unknown: return sl;
6818
6818
  }
6819
6819
  if (n && r) break;
6820
6820
  }
6821
6821
  return n && r ? q : n ? U | G : r ? K : Z(t) === X.Never ? U : G;
6822
6822
  }
6823
- function od({ const: e, enum: t }) {
6823
+ function sd({ const: e, enum: t }) {
6824
6824
  if (e !== void 0) return [e];
6825
6825
  if (t) return t;
6826
6826
  throw Error("invalid branch");
6827
6827
  }
6828
- function sd({ isEquals: e }, t, n) {
6828
+ function cd({ isEquals: e }, t, n) {
6829
6829
  for (let r of t) if (e(r, n)) return !0;
6830
6830
  return !1;
6831
6831
  }
6832
6832
  //#endregion
6833
6833
  //#region src/json-schema-subset/checker/equals.ts
6834
- function cd(e) {
6834
+ function ld(e) {
6835
6835
  function t(t, n) {
6836
6836
  let i = e.isExtendsSchema(t), a = e.isExtendsSchema(n);
6837
6837
  return i || a ? e.equals(t, n) : r(t, n);
6838
6838
  }
6839
6839
  let n = /* @__PURE__ */ new Map();
6840
6840
  function r(e, t) {
6841
- let r = ql(e), a = ql(t);
6841
+ let r = Jl(e), a = Jl(t);
6842
6842
  if (r === a) return !0;
6843
6843
  let o = `${r}/${a}`, s = n.get(o);
6844
6844
  return s === void 0 && (s = i(e, t), n.set(o, s)), s;
@@ -6855,25 +6855,25 @@ function cd(e) {
6855
6855
  return !0;
6856
6856
  }
6857
6857
  function a(e, t) {
6858
- return e === t ? !0 : typeof e != "object" || !e || typeof e != typeof t ? !1 : Kl(e) && Kl(t) ? r(e, t) : i(e, t);
6858
+ return e === t ? !0 : typeof e != "object" || !e || typeof e != typeof t ? !1 : ql(e) && ql(t) ? r(e, t) : i(e, t);
6859
6859
  }
6860
6860
  return t;
6861
6861
  }
6862
6862
  //#endregion
6863
6863
  //#region src/json-schema-subset/checker/numeric/integerNormalizer.ts
6864
- function ld(e) {
6865
- let t = gd(e), n = e.multipleOf ?? 1, r = dd(t, n);
6864
+ function ud(e) {
6865
+ let t = _d(e), n = e.multipleOf ?? 1, r = fd(t, n);
6866
6866
  return r ? {
6867
6867
  multipleOf: n,
6868
6868
  range: r
6869
6869
  } : null;
6870
6870
  }
6871
- function ud([e, t]) {
6871
+ function dd([e, t]) {
6872
6872
  return !(e.num !== t.num || e.exclusive || t.exclusive);
6873
6873
  }
6874
- function dd(e, t) {
6874
+ function fd(e, t) {
6875
6875
  if (!e) return;
6876
- let [n, r] = e, i = fd(n.num, t), a = pd(r.num, t);
6876
+ let [n, r] = e, i = pd(n.num, t), a = md(r.num, t);
6877
6877
  if (i === n.num && n.exclusive && (i += t), a === r.num && r.exclusive && (a -= t), !(i > a) && (i !== a || i !== Infinity && i !== -Infinity)) return [{
6878
6878
  num: i,
6879
6879
  exclusive: !1
@@ -6882,29 +6882,29 @@ function dd(e, t) {
6882
6882
  exclusive: !1
6883
6883
  }];
6884
6884
  }
6885
- function fd(e, t) {
6885
+ function pd(e, t) {
6886
6886
  return Math.ceil(e / t) * t;
6887
6887
  }
6888
- function pd(e, t) {
6888
+ function md(e, t) {
6889
6889
  return Math.floor(e / t) * t;
6890
6890
  }
6891
6891
  //#endregion
6892
6892
  //#region src/json-schema-subset/checker/numeric/float.ts
6893
- function md(e, t) {
6894
- let { left: n, right: r, center: i } = Wu(gd(e), gd(t));
6893
+ function hd(e, t) {
6894
+ let { left: n, right: r, center: i } = Gu(_d(e), _d(t));
6895
6895
  if (!i) return K;
6896
6896
  let a = !1, o = !1;
6897
6897
  return n && (n.fromLeft ? a = !0 : o = !0), r && (r.fromLeft ? a = !0 : o = !0), a && o ? q : a ? W : o ? G : U;
6898
6898
  }
6899
- function hd(e, t) {
6900
- let n = gd(e), r = ld(t);
6899
+ function gd(e, t) {
6900
+ let n = _d(e), r = ud(t);
6901
6901
  if (!r) return W;
6902
- let i = Wu(n, r.range), a = dd(i.center, r.multipleOf), o = _d(i.left, r.multipleOf), s = _d(i.right, r.multipleOf);
6902
+ let i = Gu(n, r.range), a = fd(i.center, r.multipleOf), o = vd(i.left, r.multipleOf), s = vd(i.right, r.multipleOf);
6903
6903
  if (!i.center) return K;
6904
6904
  let c = !1, l = !1;
6905
- return i.left?.fromLeft && (c = !0), i.right?.fromLeft && (c = !0), (!a || !ud(i.center)) && (c = !0), o && (l = !0), s && (l = !0), c && l ? q : c ? W : l ? G : U;
6905
+ return i.left?.fromLeft && (c = !0), i.right?.fromLeft && (c = !0), (!a || !dd(i.center)) && (c = !0), o && (l = !0), s && (l = !0), c && l ? q : c ? W : l ? G : U;
6906
6906
  }
6907
- function gd(e) {
6907
+ function _d(e) {
6908
6908
  let t, n;
6909
6909
  return t = e.exclusiveMinimum === void 0 ? e.minimum === void 0 ? {
6910
6910
  num: -Infinity,
@@ -6926,84 +6926,84 @@ function gd(e) {
6926
6926
  exclusive: !0
6927
6927
  }, [t, n];
6928
6928
  }
6929
- function _d(e, t) {
6930
- if (e && !e.fromLeft) return dd(e.range, t);
6929
+ function vd(e, t) {
6930
+ if (e && !e.fromLeft) return fd(e.range, t);
6931
6931
  }
6932
6932
  //#endregion
6933
6933
  //#region src/json-schema-subset/checker/numeric/integer.ts
6934
- function vd(e, t) {
6935
- let n = ld(e), r = ld(t);
6934
+ function yd(e, t) {
6935
+ let n = ud(e), r = ud(t);
6936
6936
  if (!n && !r) return U;
6937
6937
  if (!n) return G;
6938
6938
  if (!r) return W;
6939
- let { range: i, multipleOf: a } = n, { range: o, multipleOf: s } = r, c = Wu(i, o), l, u = 0;
6940
- if (c.center && (u = bd(a, s), l = dd(c.center, u)), !l) return K;
6939
+ let { range: i, multipleOf: a } = n, { range: o, multipleOf: s } = r, c = Gu(i, o), l, u = 0;
6940
+ if (c.center && (u = xd(a, s), l = fd(c.center, u)), !l) return K;
6941
6941
  let d = !1, f = !1, { left: p, right: m } = c;
6942
- return p && dd(p.range, p.fromLeft ? a : s) && (p.fromLeft ? d = !0 : f = !0), m && dd(m.range, m.fromLeft ? a : s) && (m.fromLeft ? d = !0 : f = !0), d ||= yd(n, l, u), f ||= yd(r, l, u), d && f ? q : d ? W : f ? G : U;
6942
+ return p && fd(p.range, p.fromLeft ? a : s) && (p.fromLeft ? d = !0 : f = !0), m && fd(m.range, m.fromLeft ? a : s) && (m.fromLeft ? d = !0 : f = !0), d ||= bd(n, l, u), f ||= bd(r, l, u), d && f ? q : d ? W : f ? G : U;
6943
6943
  }
6944
- function yd({ range: e, multipleOf: t }, n, r) {
6945
- let i = Wu(e, n);
6946
- if (dd(i.left?.range, t) || dd(i.right?.range, t)) return !0;
6947
- let a = dd(i.center, t);
6944
+ function bd({ range: e, multipleOf: t }, n, r) {
6945
+ let i = Gu(e, n);
6946
+ if (fd(i.left?.range, t) || fd(i.right?.range, t)) return !0;
6947
+ let a = fd(i.center, t);
6948
6948
  if (!a) return !1;
6949
- let o = Sd(n);
6950
- return Sd(a) > o || o !== 1 && t < r;
6951
- }
6952
- function bd(e, t) {
6953
- return e * t / xd(e, t);
6949
+ let o = Cd(n);
6950
+ return Cd(a) > o || o !== 1 && t < r;
6954
6951
  }
6955
6952
  function xd(e, t) {
6956
- return e === 0 ? t : xd(t % e, e);
6953
+ return e * t / Sd(e, t);
6954
+ }
6955
+ function Sd(e, t) {
6956
+ return e === 0 ? t : Sd(t % e, e);
6957
6957
  }
6958
- function Sd(e) {
6958
+ function Cd(e) {
6959
6959
  if (!e) return 0;
6960
6960
  let [t, n] = e;
6961
6961
  return n.num - t.num + 1;
6962
6962
  }
6963
6963
  //#endregion
6964
6964
  //#region src/json-schema-subset/checker/numeric/checker.ts
6965
- function Cd(e, t) {
6966
- if (wd(e) || wd(t)) return ol;
6967
- let n = Td(e), r = Td(t);
6968
- return n && r ? md(e, t) : n ? hd(e, t) : r ? gl(hd(t, e)) : vd(e, t);
6965
+ function wd(e, t) {
6966
+ if (Td(e) || Td(t)) return sl;
6967
+ let n = Ed(e), r = Ed(t);
6968
+ return n && r ? hd(e, t) : n ? gd(e, t) : r ? _l(gd(t, e)) : yd(e, t);
6969
6969
  }
6970
- function wd(e) {
6970
+ function Td(e) {
6971
6971
  let { multipleOf: t } = e;
6972
6972
  return t === void 0 ? !1 : !Number.isInteger(t) || t < 0;
6973
6973
  }
6974
- function Td(e) {
6974
+ function Ed(e) {
6975
6975
  let { multipleOf: t } = e;
6976
6976
  return !(t !== void 0 && Number.isInteger(t) || e.type === "integer");
6977
6977
  }
6978
6978
  //#endregion
6979
6979
  //#region src/json-schema-subset/checker/object.ts
6980
- var Ed = Yu(0), Dd = Vu([
6980
+ var Dd = Xu(0), Od = Hu([
6981
6981
  "hasCommonInRequired",
6982
6982
  "hasCommonOutRequired",
6983
6983
  "hasExtra1",
6984
6984
  "hasExtra2",
6985
6985
  "hasRejection"
6986
6986
  ]);
6987
- function Od(e, t, n) {
6988
- if (kd(t, n)) return K;
6989
- let r = Ad(t, n);
6987
+ function kd(e, t, n) {
6988
+ if (Ad(t, n)) return K;
6989
+ let r = jd(t, n);
6990
6990
  if (!r) return K;
6991
- let i = Id(t), a = Id(n), o = (t) => {
6991
+ let i = Ld(t), a = Ld(n), o = (t) => {
6992
6992
  let n = i(t), r = a(t);
6993
- return Ld(n, r) ? e.calculate(n, r) : 0;
6994
- }, { commonRequired: s, extraRequired1: c, extraRequired2: l } = r, u = Dd.variable({});
6995
- for (let e of [...s].toSorted()) u.push(o(e), Md);
6996
- for (let e of [...c].toSorted()) u.push(o(e), Nd);
6997
- for (let e of [...l].toSorted()) u.push(o(e), Pd);
6993
+ return Rd(n, r) ? e.calculate(n, r) : 0;
6994
+ }, { commonRequired: s, extraRequired1: c, extraRequired2: l } = r, u = Od.variable({});
6995
+ for (let e of [...s].toSorted()) u.push(o(e), Nd);
6996
+ for (let e of [...c].toSorted()) u.push(o(e), Pd);
6997
+ for (let e of [...l].toSorted()) u.push(o(e), Fd);
6998
6998
  let { hasOptional1: d, hasOptional2: f } = r;
6999
6999
  if (d || f) {
7000
- let r = Fd(d, f);
7001
- for (let e of [...jd(t, n)].toSorted()) {
7000
+ let r = Id(d, f);
7001
+ for (let e of [...Md(t, n)].toSorted()) {
7002
7002
  let t = o(e);
7003
7003
  t !== 0 && u.push(t, r);
7004
7004
  }
7005
- let i = t.additionalProperties ?? Ul, a = n.additionalProperties ?? Ul;
7006
- if (Ld(i, a)) {
7005
+ let i = t.additionalProperties ?? Wl, a = n.additionalProperties ?? Wl;
7006
+ if (Rd(i, a)) {
7007
7007
  let t = e.calculate(i, a);
7008
7008
  u.push(t, r);
7009
7009
  }
@@ -7015,10 +7015,10 @@ function Od(e, t, n) {
7015
7015
  for (let { hasExtra1: e, hasExtra2: t, hasCommonInRequired: n, hasCommonOutRequired: r, hasRejection: i } of u) m |= !n && p > 0 || !r && p === 0 || i ? K : e && t ? q : e ? W : t ? G : U;
7016
7016
  return m;
7017
7017
  }
7018
- function kd(e, t) {
7019
- return Xu(Ed(e.minProperties, e.maxProperties, t.minProperties, t.maxProperties)) === H.Rejection;
7020
- }
7021
7018
  function Ad(e, t) {
7019
+ return Zu(Dd(e.minProperties, e.maxProperties, t.minProperties, t.maxProperties)) === H.Rejection;
7020
+ }
7021
+ function jd(e, t) {
7022
7022
  let n = new Set(e.required), r = new Set(t.required), i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set(), o = n.size, s = r.size;
7023
7023
  for (let e of n) r.has(e) && i.add(e), a.add(e);
7024
7024
  for (let e of r) n.has(e) && i.add(e), a.add(e);
@@ -7034,7 +7034,7 @@ function Ad(e, t) {
7034
7034
  hasOptional2: u > s
7035
7035
  };
7036
7036
  }
7037
- function jd(e, t) {
7037
+ function Md(e, t) {
7038
7038
  let n = new Set(e.required), r = e.properties, i = t.properties, a = e.required, o = t.required;
7039
7039
  if (r) for (let e in r) n.add(e);
7040
7040
  if (i) for (let e in i) n.add(e);
@@ -7042,7 +7042,7 @@ function jd(e, t) {
7042
7042
  if (o) for (let e of o) n.delete(e);
7043
7043
  return n;
7044
7044
  }
7045
- var Md = (e, t) => {
7045
+ var Nd = (e, t) => {
7046
7046
  switch (e) {
7047
7047
  case H.Equals:
7048
7048
  t.hasCommonInRequired = !0;
@@ -7058,7 +7058,7 @@ var Md = (e, t) => {
7058
7058
  break;
7059
7059
  case H.Rejection: t.hasRejection = !0;
7060
7060
  }
7061
- }, Nd = (e, t) => {
7061
+ }, Pd = (e, t) => {
7062
7062
  switch (e) {
7063
7063
  case H.Equals:
7064
7064
  case H.ContainedBy:
@@ -7070,7 +7070,7 @@ var Md = (e, t) => {
7070
7070
  break;
7071
7071
  case H.Rejection: t.hasRejection = !0;
7072
7072
  }
7073
- }, Pd = (e, t) => {
7073
+ }, Fd = (e, t) => {
7074
7074
  switch (e) {
7075
7075
  case H.Equals:
7076
7076
  case H.Containing:
@@ -7082,7 +7082,7 @@ var Md = (e, t) => {
7082
7082
  break;
7083
7083
  case H.Rejection: t.hasRejection = !0;
7084
7084
  }
7085
- }, Fd = (e, t) => (n, r) => {
7085
+ }, Id = (e, t) => (n, r) => {
7086
7086
  if (r.hasRejection) return;
7087
7087
  let i = !1, a = !1, o = !1;
7088
7088
  switch (n) {
@@ -7102,7 +7102,7 @@ var Md = (e, t) => {
7102
7102
  }
7103
7103
  e && i && (r.hasExtra1 = !0), t && a && (r.hasExtra2 = !0), e && t && o && (r.hasCommonOutRequired = !0);
7104
7104
  };
7105
- function Id(e) {
7105
+ function Ld(e) {
7106
7106
  let t = e.properties, n = e.propertyNames, r = e.additionalProperties, i = [];
7107
7107
  if (e.patternProperties) for (let t in e.patternProperties) {
7108
7108
  let n = e.patternProperties[t], r = new RegExp(t, "i");
@@ -7112,41 +7112,41 @@ function Id(e) {
7112
7112
  });
7113
7113
  }
7114
7114
  return (e) => {
7115
- if (n && cu(n, e) === su.Invalid) return Wl;
7115
+ if (n && lu(n, e) === cu.Invalid) return Gl;
7116
7116
  for (let { pattern: t, schema: n } of i) if (t.test(e)) return n;
7117
- return ((t && t[e]) ?? r) || Ul;
7117
+ return ((t && t[e]) ?? r) || Wl;
7118
7118
  };
7119
7119
  }
7120
- function Ld(e, t) {
7120
+ function Rd(e, t) {
7121
7121
  let n = Z(e), r = Z(t);
7122
7122
  return n !== X.Never || r !== X.Never;
7123
7123
  }
7124
7124
  //#endregion
7125
7125
  //#region src/json-schema-subset/checker/string.ts
7126
- var Rd = Yu(0);
7127
- function zd(e, t) {
7126
+ var zd = Xu(0);
7127
+ function Bd(e, t) {
7128
7128
  if (t.format && !e.format) return W;
7129
- if (e.format && t.format && e.format !== t.format) return ol;
7130
- let n = Xu(Rd(e.minLength, e.maxLength, t.minLength, t.maxLength)), r = !!e.pattern, i = !!t.pattern;
7129
+ if (e.format && t.format && e.format !== t.format) return sl;
7130
+ let n = Zu(zd(e.minLength, e.maxLength, t.minLength, t.maxLength)), r = !!e.pattern, i = !!t.pattern;
7131
7131
  switch (n) {
7132
7132
  case H.Rejection: return K;
7133
- case H.Containing: return r ? ol : W;
7134
- case H.ContainedBy: return i ? ol : G;
7135
- case H.Equals: return r && i ? e.pattern === t.pattern ? U : ol : r ? U | G : i ? U | W : U;
7136
- case H.Intersection: return r && i ? ol : r ? q | K | G : i ? q | K | W : q;
7133
+ case H.Containing: return r ? sl : W;
7134
+ case H.ContainedBy: return i ? sl : G;
7135
+ case H.Equals: return r && i ? e.pattern === t.pattern ? U : sl : r ? U | G : i ? U | W : U;
7136
+ case H.Intersection: return r && i ? sl : r ? q | K | G : i ? q | K | W : q;
7137
7137
  }
7138
7138
  }
7139
7139
  //#endregion
7140
7140
  //#region src/json-schema-subset/checker/checker.ts
7141
- function Bd(e, t, n) {
7142
- let r = {}, i = [], a = nd(Hd(e, r)), o = Vd(), s = cd(e);
7143
- r.isEquals = td(il), r.calculate = Tl({
7141
+ function Vd(e, t, n) {
7142
+ let r = {}, i = [], a = rd(Ud(e, r)), o = Hd(), s = ld(e);
7143
+ r.isEquals = nd(al), r.calculate = El({
7144
7144
  describe: o,
7145
7145
  equals: s,
7146
7146
  calculate: a,
7147
7147
  observeCalculation: (e, t, n, r) => {
7148
- if (!Wd(r ? gl(n) : n)) return;
7149
- let a = r ? Gd(t, e) : Gd(e, t);
7148
+ if (!Gd(r ? _l(n) : n)) return;
7149
+ let a = r ? Kd(t, e) : Kd(e, t);
7150
7150
  a && i.push(a);
7151
7151
  }
7152
7152
  }), Object.freeze(r);
@@ -7156,34 +7156,34 @@ function Bd(e, t, n) {
7156
7156
  expression: c
7157
7157
  };
7158
7158
  }
7159
- var Vd = () => (e) => {
7159
+ var Hd = () => (e) => {
7160
7160
  let t;
7161
7161
  switch (Z(e)) {
7162
7162
  case X.Not:
7163
7163
  t = {
7164
- kind: wl.Not,
7164
+ kind: Tl.Not,
7165
7165
  expression: e.not
7166
7166
  };
7167
7167
  break;
7168
7168
  case X.Combination:
7169
7169
  if ("allOf" in e) t = {
7170
- kind: wl.AllOf,
7171
- expressions: Ud(e.allOf, X.Any)
7170
+ kind: Tl.AllOf,
7171
+ expressions: Wd(e.allOf, X.Any)
7172
7172
  };
7173
7173
  else if ("anyOf" in e) t = {
7174
- kind: wl.AnyOf,
7175
- expressions: Ud(e.anyOf, X.Never)
7174
+ kind: Tl.AnyOf,
7175
+ expressions: Wd(e.anyOf, X.Never)
7176
7176
  };
7177
7177
  else if ("oneOf" in e) t = {
7178
- kind: wl.OneOf,
7179
- expressions: Ud(e.oneOf, X.Never)
7178
+ kind: Tl.OneOf,
7179
+ expressions: Wd(e.oneOf, X.Never)
7180
7180
  };
7181
7181
  else throw Error(`invalid combination JSON Schema: ${JSON.stringify(e)}`);
7182
7182
  break;
7183
- default: t = { kind: wl.Leaf };
7183
+ default: t = { kind: Tl.Leaf };
7184
7184
  }
7185
7185
  return t;
7186
- }, Hd = (e, t) => (n, r) => {
7186
+ }, Ud = (e, t) => (n, r) => {
7187
7187
  let i = Z(n), a = Z(r);
7188
7188
  if (i === X.Extends || a === X.Extends) return e.calculate(n, r);
7189
7189
  switch (i) {
@@ -7194,28 +7194,28 @@ var Vd = () => (e) => {
7194
7194
  case X.Any: return G;
7195
7195
  case X.Never: return W;
7196
7196
  }
7197
- if (i === X.EnumOrConst && a === X.EnumOrConst) return id(t, n, r);
7198
- if (i === X.EnumOrConst) return ad(n, r);
7199
- if (a === X.EnumOrConst) return gl(ad(r, n));
7197
+ if (i === X.EnumOrConst && a === X.EnumOrConst) return ad(t, n, r);
7198
+ if (i === X.EnumOrConst) return od(n, r);
7199
+ if (a === X.EnumOrConst) return _l(od(r, n));
7200
7200
  if (i !== a) return K;
7201
7201
  switch (i) {
7202
7202
  case X.Null: return U;
7203
- case X.Numeric: return Cd(n, r);
7204
- case X.String: return zd(n, r);
7203
+ case X.Numeric: return wd(n, r);
7204
+ case X.String: return Bd(n, r);
7205
7205
  case X.Boolean: return U;
7206
- case X.Object: return Od(t, n, r);
7207
- case X.Array: return $u(t, n, r);
7206
+ case X.Object: return kd(t, n, r);
7207
+ case X.Array: return ed(t, n, r);
7208
7208
  default: throw Error(`invalid kind ${i}`);
7209
7209
  }
7210
7210
  };
7211
- function Ud(e, t) {
7211
+ function Wd(e, t) {
7212
7212
  return e.filter((e) => Z(e) !== t);
7213
7213
  }
7214
- function Wd(e) {
7215
- return !sl(e) && !ll(e) && (cl(e) || dl(e) || ul(e));
7214
+ function Gd(e) {
7215
+ return !cl(e) && !ul(e) && (ll(e) || fl(e) || dl(e));
7216
7216
  }
7217
- function Gd(e, t) {
7218
- let n = Jl(t);
7217
+ function Kd(e, t) {
7218
+ let n = Yl(t);
7219
7219
  if (!n) return;
7220
7220
  let r = Z(e), i = Z(t);
7221
7221
  if (r !== i) return [...n, "type"];
@@ -7250,12 +7250,12 @@ function Gd(e, t) {
7250
7250
  }
7251
7251
  //#endregion
7252
7252
  //#region src/json-schema-subset/extends/extendsContext.ts
7253
- var Kd = class e {
7253
+ var qd = class e {
7254
7254
  constructor(e = []) {
7255
7255
  this.extendsSchemaClasses = Object.freeze([...e]);
7256
7256
  }
7257
7257
  tryCompiledExtendsSchema(e, t) {
7258
- for (let n of this.extendsSchemaClasses) if (n.isMatch(e)) return new n(el(), e, t);
7258
+ for (let n of this.extendsSchemaClasses) if (n.isMatch(e)) return new n(tl(), e, t);
7259
7259
  return null;
7260
7260
  }
7261
7261
  isExtendsSchema(e) {
@@ -7265,7 +7265,7 @@ var Kd = class e {
7265
7265
  calculate(t, n) {
7266
7266
  let r = !(t instanceof this.findMatchedClass(t, n)), i = 0, a;
7267
7267
  a = r ? n.compare(t) : t.compare(n);
7268
- for (let t of a) r && (t = e.swap(t)), i |= fl(t);
7268
+ for (let t of a) r && (t = e.swap(t)), i |= pl(t);
7269
7269
  return i;
7270
7270
  }
7271
7271
  equals(e, t) {
@@ -7285,35 +7285,35 @@ var Kd = class e {
7285
7285
  };
7286
7286
  //#endregion
7287
7287
  //#region src/json-schema-subset/preprocessing.ts
7288
- function qd(e, t, n = !1) {
7288
+ function Jd(e, t, n = !1) {
7289
7289
  let r = t(e);
7290
7290
  if (Array.isArray(r)) {
7291
7291
  let e = [];
7292
- throw Yd(e, r, "$"), new El(e);
7292
+ throw Xd(e, r, "$"), new Dl(e);
7293
7293
  }
7294
7294
  let { schema: i, warns: a } = r;
7295
7295
  if (n && a.length > 0) {
7296
7296
  console.warn(`found ${a.length} warns after compile schema`);
7297
- for (let e of a) console.warn(Ol(e));
7297
+ for (let e of a) console.warn(kl(e));
7298
7298
  }
7299
7299
  return i;
7300
7300
  }
7301
- function Jd(e, t, n, r = !1) {
7301
+ function Yd(e, t, n, r = !1) {
7302
7302
  let i = n(e), a = n(t);
7303
7303
  if (Array.isArray(i) || Array.isArray(a)) {
7304
7304
  let e = [];
7305
- throw Array.isArray(i) && Yd(e, i, "$1"), Array.isArray(a) && Yd(e, a, "$2"), new El(e);
7305
+ throw Array.isArray(i) && Xd(e, i, "$1"), Array.isArray(a) && Xd(e, a, "$2"), new Dl(e);
7306
7306
  }
7307
7307
  let { schema: o, warns: s } = i, { schema: c, warns: l } = a;
7308
7308
  if (r) {
7309
7309
  s.length > 0 && console.warn(`found ${s.length} warns after compile superSchema`);
7310
- for (let e of s) console.warn(Ol(e));
7310
+ for (let e of s) console.warn(kl(e));
7311
7311
  l.length > 0 && console.warn(`found ${l.length} warns after compile subSchema`);
7312
- for (let e of l) console.warn(Ol(e));
7312
+ for (let e of l) console.warn(kl(e));
7313
7313
  }
7314
7314
  return [o, c];
7315
7315
  }
7316
- function Yd(e, t, n) {
7316
+ function Xd(e, t, n) {
7317
7317
  for (let r of t) {
7318
7318
  let t = {
7319
7319
  ...r,
@@ -7324,60 +7324,60 @@ function Yd(e, t, n) {
7324
7324
  }
7325
7325
  //#endregion
7326
7326
  //#region src/json-schema-subset/global.ts
7327
- var Xd = Object.freeze({
7327
+ var Zd = Object.freeze({
7328
7328
  True: 0,
7329
7329
  False: 1,
7330
7330
  Unknown: 2
7331
7331
  });
7332
- function Zd({ extendsSchemaClasses: e, delegate: t } = {}) {
7333
- let n = new Kd(e);
7332
+ function Qd({ extendsSchemaClasses: e, delegate: t } = {}) {
7333
+ let n = new qd(e);
7334
7334
  return Object.freeze({
7335
- compile: (e, r, i) => qd(e, (e) => Fu(e, n, r, t), i),
7335
+ compile: (e, r, i) => Jd(e, (e) => Iu(e, n, r, t), i),
7336
7336
  isSubset: (e, r, i = !1) => {
7337
- let [a, o] = Jd(e, r, (e) => Fu(e, n, void 0, t), i), { errorPath: s, expression: c } = Bd(n, a, o), l = sl(c) || ll(c), u = cl(c) || dl(c) || ul(c);
7338
- return l && !u ? { result: Xd.True } : !l && u ? {
7337
+ let [a, o] = Yd(e, r, (e) => Iu(e, n, void 0, t), i), { errorPath: s, expression: c } = Vd(n, a, o), l = cl(c) || ul(c), u = ll(c) || fl(c) || dl(c);
7338
+ return l && !u ? { result: Zd.True } : !l && u ? {
7339
7339
  errorPath: s,
7340
- result: Xd.False
7341
- } : { result: Xd.Unknown };
7340
+ result: Zd.False
7341
+ } : { result: Zd.Unknown };
7342
7342
  }
7343
7343
  });
7344
7344
  }
7345
7345
  //#endregion
7346
7346
  //#region ../../node_modules/.bun/@wopjs+cast@0.1.16/node_modules/@wopjs/cast/dist/index.mjs
7347
- var Qd = (e) => typeof e == "string", $d = Array.isArray, ef = (e) => typeof e == "object" && !!e, tf = (e) => ef(e) && !$d(e), nf = (e) => tf(e) ? e : void 0;
7347
+ var $d = (e) => typeof e == "string", ef = Array.isArray, tf = (e) => typeof e == "object" && !!e, nf = (e) => tf(e) && !ef(e), rf = (e) => nf(e) ? e : void 0;
7348
7348
  //#endregion
7349
7349
  //#region src/manifest/common/schemaComparer.ts
7350
- function rf(e) {
7351
- return nf(e)?.type === "string";
7352
- }
7353
7350
  function af(e) {
7354
- let t = nf(e), n = nf(t?.error);
7355
- if (t == null || n == null || t.packageId != null && !Qd(t.packageId) || n.message != null && !Qd(n.message)) throw TypeError("Invalid schema comparison context.");
7351
+ return rf(e)?.type === "string";
7356
7352
  }
7357
7353
  function of(e) {
7358
- return e == null ? { error: {} } : (af(e), e);
7354
+ let t = rf(e), n = rf(t?.error);
7355
+ if (t == null || n == null || t.packageId != null && !$d(t.packageId) || n.message != null && !$d(n.message)) throw TypeError("Invalid schema comparison context.");
7356
+ }
7357
+ function sf(e) {
7358
+ return e == null ? { error: {} } : (of(e), e);
7359
7359
  }
7360
- var sf = class e {
7360
+ var cf = class e {
7361
7361
  static setError(t, n, r) {
7362
7362
  t instanceof e ? t.context.error.message = r : n instanceof e && (n.context.error.message = r);
7363
7363
  }
7364
7364
  constructor(e, t, n) {
7365
- this.id = e, this.value = t, this.context = of(n);
7365
+ this.id = e, this.value = t, this.context = sf(n);
7366
7366
  }
7367
7367
  compare(e) {
7368
- return Kl(e) && Z(e) === X.Any ? [H.ContainedBy] : this.compareImpl(e);
7368
+ return ql(e) && Z(e) === X.Any ? [H.ContainedBy] : this.compareImpl(e);
7369
7369
  }
7370
- }, cf = class e extends sf {
7370
+ }, lf = class e extends cf {
7371
7371
  static isMatch(e) {
7372
- let t = nf(e)?.enum;
7373
- return Array.isArray(t) && t.every((e) => Qd(e));
7372
+ let t = rf(e)?.enum;
7373
+ return Array.isArray(t) && t.every((e) => $d(e));
7374
7374
  }
7375
7375
  constructor(t, n, r) {
7376
7376
  if (!e.isMatch(n)) throw TypeError("Invalid single-select schema.");
7377
7377
  super(t, n, r);
7378
7378
  }
7379
7379
  compareImpl(t) {
7380
- if (rf(t)) return [H.ContainedBy];
7380
+ if (af(t)) return [H.ContainedBy];
7381
7381
  if (t instanceof e) {
7382
7382
  let e = new Set(this.value.enum), n = H.Equals;
7383
7383
  for (let r of t.value.enum) e.has(r) || (n = H.ContainedBy), e.delete(r);
@@ -7396,58 +7396,58 @@ var sf = class e {
7396
7396
  }
7397
7397
  return !1;
7398
7398
  }
7399
- }, lf = class e extends sf {
7399
+ }, uf = class e extends cf {
7400
7400
  static isMatch(e) {
7401
- return nf(e)?.contentMediaType === "oomol/bin";
7401
+ return rf(e)?.contentMediaType === "oomol/bin";
7402
7402
  }
7403
7403
  constructor(t, n, r) {
7404
7404
  if (!e.isMatch(n)) throw TypeError("Invalid binary schema.");
7405
7405
  super(t, n, r);
7406
7406
  }
7407
7407
  compareImpl(t) {
7408
- return t instanceof e ? [H.Equals] : (sf.setError(this, t, "edgeError.binDiffType"), [H.Rejection]);
7408
+ return t instanceof e ? [H.Equals] : (cf.setError(this, t, "edgeError.binDiffType"), [H.Rejection]);
7409
7409
  }
7410
7410
  equals(t) {
7411
7411
  return t instanceof e;
7412
7412
  }
7413
- }, uf = class e extends sf {
7413
+ }, df = class e extends cf {
7414
7414
  static isMatch(e) {
7415
- return nf(e)?.contentMediaType === "oomol/artifact";
7415
+ return rf(e)?.contentMediaType === "oomol/artifact";
7416
7416
  }
7417
7417
  constructor(t, n, r) {
7418
7418
  if (!e.isMatch(n)) throw TypeError("Invalid Artifact schema.");
7419
7419
  super(t, n, r);
7420
7420
  }
7421
7421
  compareImpl(t) {
7422
- return t instanceof e ? [H.Equals] : (sf.setError(this, t, "edgeError.artifactDiffType"), [H.Rejection]);
7422
+ return t instanceof e ? [H.Equals] : (cf.setError(this, t, "edgeError.artifactDiffType"), [H.Rejection]);
7423
7423
  }
7424
7424
  equals(t) {
7425
7425
  return t instanceof e;
7426
7426
  }
7427
7427
  };
7428
- function df() {
7429
- return Zd({ extendsSchemaClasses: [
7430
- cf,
7428
+ function ff() {
7429
+ return Qd({ extendsSchemaClasses: [
7431
7430
  lf,
7432
- uf
7431
+ uf,
7432
+ df
7433
7433
  ] });
7434
7434
  }
7435
- df();
7435
+ ff();
7436
7436
  //#endregion
7437
7437
  //#region src/flow/common/schema.ts
7438
- function ff(e) {
7438
+ function pf(e) {
7439
7439
  return typeof e == "object" && e && !Array.isArray(e) ? e : void 0;
7440
7440
  }
7441
- var pf = /* @__PURE__ */ new WeakMap();
7442
- function mf(e, t) {
7441
+ var mf = /* @__PURE__ */ new WeakMap();
7442
+ function hf(e, t) {
7443
7443
  if (typeof t == "boolean") return t;
7444
- let n = ff(t);
7445
- if (n == null || n.properties != null && ff(n.properties) == null) return !1;
7444
+ let n = pf(t);
7445
+ if (n == null || n.properties != null && pf(n.properties) == null) return !1;
7446
7446
  try {
7447
- let t = pf.get(n);
7447
+ let t = mf.get(n);
7448
7448
  if (t == null) {
7449
7449
  let e = typeof n.$schema == "string" ? n.$schema : "", r = e.includes("draft-04") ? "4" : e.includes("draft-07") ? "7" : e.includes("2020-12") ? "2020-12" : "2019-09";
7450
- t = new vc(structuredClone(n), r), pf.set(n, t);
7450
+ t = new vc(structuredClone(n), r), mf.set(n, t);
7451
7451
  }
7452
7452
  return t.validate(e).valid;
7453
7453
  } catch {
@@ -7543,14 +7543,14 @@ var $ = js(() => F([Jo(), rs({
7543
7543
  exclusiveMinimum: M().optional(),
7544
7544
  exclusiveMaximum: M().optional()
7545
7545
  }).transform(({ title: e, default: t, examples: n, readOnly: r, writeOnly: i, deprecated: a, $comment: o, ...s }) => s)]));
7546
- function hf(e, t) {
7546
+ function gf(e, t) {
7547
7547
  if (e.kind == "value") return e.value;
7548
7548
  if (!Object.hasOwn(t, e.input)) throw Error(`Agent input ${e.input} is missing.`);
7549
7549
  return t[e.input];
7550
7550
  }
7551
7551
  //#endregion
7552
7552
  //#region src/base/common/json.ts
7553
- function gf(e) {
7553
+ function _f(e) {
7554
7554
  if (e === null || typeof e == "boolean" || typeof e == "string") return !0;
7555
7555
  if (typeof e == "number") return Number.isFinite(e);
7556
7556
  if (typeof e != "object") return !1;
@@ -7601,16 +7601,16 @@ function gf(e) {
7601
7601
  }
7602
7602
  }
7603
7603
  }
7604
- function _f(e) {
7604
+ function vf(e) {
7605
7605
  try {
7606
- return typeof e == "object" && !!e && !Array.isArray(e) && gf(e);
7606
+ return typeof e == "object" && !!e && !Array.isArray(e) && _f(e);
7607
7607
  } catch {
7608
7608
  return !1;
7609
7609
  }
7610
7610
  }
7611
7611
  //#endregion
7612
7612
  //#region src/trigger/common/contract.ts
7613
- var vf = [
7613
+ var yf = [
7614
7614
  {
7615
7615
  handle: "headers",
7616
7616
  jsonSchema: {
@@ -7643,7 +7643,7 @@ var vf = [
7643
7643
  jsonSchema: { type: "string" },
7644
7644
  nullable: !1
7645
7645
  }
7646
- ], yf = [{
7646
+ ], bf = [{
7647
7647
  description: "The scheduled time that triggered this run, in ISO 8601 format.",
7648
7648
  handle: "scheduledAt",
7649
7649
  jsonSchema: {
@@ -7652,13 +7652,13 @@ var vf = [
7652
7652
  },
7653
7653
  nullable: !1
7654
7654
  }];
7655
- function bf(e) {
7655
+ function xf(e) {
7656
7656
  switch (e.kind) {
7657
7657
  case "manual": return [];
7658
- case "cron": return yf;
7658
+ case "cron": return bf;
7659
7659
  case "poll":
7660
7660
  case "integration": return e.definition.outputs;
7661
- case "webhook": return vf.map((t) => t.handle === "body" ? Object.assign({}, t, { jsonSchema: {
7661
+ case "webhook": return yf.map((t) => t.handle === "body" ? Object.assign({}, t, { jsonSchema: {
7662
7662
  type: "object",
7663
7663
  additionalProperties: !1,
7664
7664
  properties: Object.fromEntries(e.bodyFields.map((e) => [e.handle, e.jsonSchema])),
@@ -7666,21 +7666,21 @@ function bf(e) {
7666
7666
  } }) : t);
7667
7667
  }
7668
7668
  }
7669
- function xf(e, t) {
7670
- if (!_f(t)) return !1;
7671
- let n = bf(e);
7672
- return new Set(n.map((e) => e.handle)).size === n.length && Object.keys(t).length === n.length && n.every((e) => Object.hasOwn(t, e.handle) && (t[e.handle] === null && e.nullable || mf(t[e.handle], e.jsonSchema)));
7669
+ function Sf(e, t) {
7670
+ if (!vf(t)) return !1;
7671
+ let n = xf(e);
7672
+ return new Set(n.map((e) => e.handle)).size === n.length && Object.keys(t).length === n.length && n.every((e) => Object.hasOwn(t, e.handle) && (t[e.handle] === null && e.nullable || hf(t[e.handle], e.jsonSchema)));
7673
7673
  }
7674
7674
  //#endregion
7675
7675
  //#region src/flow/common/graph.ts
7676
- function Sf(e) {
7676
+ function Cf(e) {
7677
7677
  return e?.kind == "approval" || e?.kind == "wait";
7678
7678
  }
7679
- function Cf(e) {
7679
+ function wf(e) {
7680
7680
  return e.kind == "wait" ? ["continue"] : ["approve", "reject"];
7681
7681
  }
7682
- function wf(e) {
7683
- let t = Cf(e);
7682
+ function Tf(e) {
7683
+ let t = wf(e);
7684
7684
  return {
7685
7685
  pending: {
7686
7686
  nullable: !1,
@@ -7721,27 +7721,27 @@ function wf(e) {
7721
7721
  }
7722
7722
  //#endregion
7723
7723
  //#region src/execution/common/scheduler.ts
7724
- function Tf(e, t) {
7724
+ function Ef(e, t) {
7725
7725
  return e.edges.some((e) => e.source == t && e.sourceHandle == "pending") || Object.values(e.nodes).some((e) => "inputs" in e && Object.values(e.inputs).some((e) => e.kind == "sources" && e.sources.some((e) => e.kind == "node" && e.nodeId == t && e.output == "pending")));
7726
7726
  }
7727
- var Ef = 12e4;
7728
- function Df(e, t) {
7727
+ var Df = 12e4;
7728
+ function Of(e, t) {
7729
7729
  return t?.(e) ?? {
7730
7730
  code: "node.failed",
7731
7731
  message: e instanceof Error ? e.message : String(e)
7732
7732
  };
7733
7733
  }
7734
- function Of(e, t) {
7734
+ function kf(e, t) {
7735
7735
  switch (t.kind) {
7736
7736
  case "condition": return { [t.input.handle]: t.input };
7737
7737
  case "value": return {};
7738
- case "subflow": return Qc(e.subflows[t.subflowId].inputs);
7739
- case "task": return Qc([...t.task == null ? e.tasks[t.taskId].inputs : t.task.inputs, ...t.additionalInputs ?? []]);
7738
+ case "subflow": return $c(e.subflows[t.subflowId].inputs);
7739
+ case "task": return $c([...t.task == null ? e.tasks[t.taskId].inputs : t.task.inputs, ...t.additionalInputs ?? []]);
7740
7740
  case "approval":
7741
7741
  case "wait": return { [t.input.handle]: t.input };
7742
7742
  }
7743
7743
  }
7744
- function kf(e, t) {
7744
+ function Af(e, t) {
7745
7745
  if (t.name != null) return t.name;
7746
7746
  switch (t.kind) {
7747
7747
  case "condition": return;
@@ -7752,45 +7752,45 @@ function kf(e, t) {
7752
7752
  case "wait": return "Wait";
7753
7753
  }
7754
7754
  }
7755
- function Af(e, t) {
7755
+ function jf(e, t) {
7756
7756
  return t.kind == "task" ? t.task == null ? e.tasks[t.taskId].executor.kind : "javascript" : t.kind;
7757
7757
  }
7758
- function jf(e, t) {
7758
+ function Mf(e, t) {
7759
7759
  if (typeof e != "object" || !e || Array.isArray(e)) throw Error(`${t} must be an object.`);
7760
7760
  return e;
7761
7761
  }
7762
- function Mf(e, t, n) {
7762
+ function Nf(e, t, n) {
7763
7763
  let r = Object.keys(e);
7764
7764
  if (r.length != t.length || r.some((e) => !t.includes(e))) throw Error(`${n} contains unsupported fields.`);
7765
7765
  }
7766
- function Nf(e, t) {
7766
+ function Pf(e, t) {
7767
7767
  if (typeof e != "string" || e.length == 0) throw Error(`${t} must be a non-empty string.`);
7768
7768
  return e;
7769
7769
  }
7770
- function Pf(e, t, n = 0) {
7770
+ function Ff(e, t, n = 0) {
7771
7771
  if (n > 64) throw Error(`${t} exceeds the maximum JSON depth.`);
7772
7772
  if (e === null || typeof e == "boolean" || typeof e == "string" || typeof e == "number" && Number.isFinite(e)) return e;
7773
- if (Array.isArray(e)) return e.map((e) => Pf(e, t, n + 1));
7774
- let r = jf(e, t);
7775
- return Object.fromEntries(Object.entries(r).map(([e, r]) => [e, Pf(r, t, n + 1)]));
7773
+ if (Array.isArray(e)) return e.map((e) => Ff(e, t, n + 1));
7774
+ let r = Mf(e, t);
7775
+ return Object.fromEntries(Object.entries(r).map(([e, r]) => [e, Ff(r, t, n + 1)]));
7776
7776
  }
7777
- var Ff = rs({
7777
+ var If = rs({
7778
7778
  state: Fs(),
7779
7779
  callId: A().min(1),
7780
7780
  toolId: A().min(1),
7781
7781
  input: I(A(), Fs()),
7782
7782
  rounds: M().int().nonnegative(),
7783
7783
  version: R(1)
7784
- }), If = F([rs({
7784
+ }), Lf = F([rs({
7785
7785
  kind: R("completed"),
7786
7786
  output: Fs()
7787
7787
  }), rs({
7788
7788
  kind: R("suspended"),
7789
- checkpoint: Ff
7789
+ checkpoint: If
7790
7790
  })]);
7791
- function Lf(e) {
7792
- let t = jf(e, "Flow Run checkpoint");
7793
- if (Mf(t, [
7791
+ function Rf(e) {
7792
+ let t = Mf(e, "Flow Run checkpoint");
7793
+ if (Nf(t, [
7794
7794
  "agents",
7795
7795
  "bindingValues",
7796
7796
  "counts",
@@ -7800,56 +7800,64 @@ function Lf(e) {
7800
7800
  "version",
7801
7801
  "waits"
7802
7802
  ], "Flow Run checkpoint"), t.version != 5) throw Error("Flow Run checkpoint version is unsupported.");
7803
- let n = Object.fromEntries(Object.entries(jf(t.bindingValues, "Checkpoint bindings")).map(([e, t]) => {
7803
+ let n = Object.fromEntries(Object.entries(Mf(t.bindingValues, "Checkpoint bindings")).map(([e, t]) => {
7804
7804
  if (typeof t != "string") throw Error("Checkpoint binding must be a string.");
7805
7805
  return [e, t];
7806
- })), r = Object.fromEntries(Object.entries(jf(t.inputs, "Checkpoint inputs")).map(([e, t]) => [e, Object.fromEntries(Object.entries(jf(t, "Checkpoint node inputs")).map(([e, t]) => [e, Pf(t, "Checkpoint input")]))])), i = Object.fromEntries(Object.entries(jf(t.results, "Checkpoint results")).map(([e, t]) => {
7807
- let n = jf(t, "Checkpoint result");
7808
- return Mf(n, ["jobId", "outputs"], "Checkpoint result"), [e, {
7809
- jobId: Nf(n.jobId, "Checkpoint job ID"),
7810
- outputs: Object.fromEntries(Object.entries(jf(n.outputs, "Checkpoint outputs")).map(([e, t]) => [e, Pf(t, "Checkpoint output")]))
7806
+ })), r = Object.fromEntries(Object.entries(Mf(t.inputs, "Checkpoint inputs")).map(([e, t]) => [e, Object.fromEntries(Object.entries(Mf(t, "Checkpoint node inputs")).map(([e, t]) => [e, Ff(t, "Checkpoint input")]))])), i = Object.fromEntries(Object.entries(Mf(t.results, "Checkpoint results")).map(([e, t]) => {
7807
+ let n = Mf(t, "Checkpoint result");
7808
+ return Nf(n, ["jobId", "outputs"], "Checkpoint result"), [e, {
7809
+ jobId: Pf(n.jobId, "Checkpoint job ID"),
7810
+ outputs: Object.fromEntries(Object.entries(Mf(n.outputs, "Checkpoint outputs")).map(([e, t]) => [e, Ff(t, "Checkpoint output")]))
7811
7811
  }];
7812
- })), a = I(A(), I(A(), M().int().positive().max(2 ** 53 - 1))).parse(t.counts), o = I(A(), I(A(), I(A(), Fs()))).parse(t.frames), s = N(rs({
7812
+ })), a = I(A(), I(A(), M().int().positive().max(2 ** 53 - 1))).parse(t.counts), o = I(A(), I(A(), I(A(), Fs()))).parse(t.frames), s = {
7813
7813
  jobId: A().min(1),
7814
7814
  nodeId: A().min(1),
7815
7815
  value: Fs(),
7816
- waitId: A().min(1),
7816
+ waitId: A().min(1)
7817
+ }, c = N(F([rs({
7818
+ ...s,
7817
7819
  pending: Fs().optional()
7818
- })).min(1).parse(t.waits), c = I(A(), rs({
7820
+ }), rs({
7821
+ ...s,
7822
+ notification: Fs().optional()
7823
+ }).transform(({ notification: e, ...t }) => ({
7824
+ ...t,
7825
+ pending: e
7826
+ }))])).min(1).parse(t.waits), l = I(A(), rs({
7819
7827
  invocationId: A().min(1),
7820
7828
  input: I(A(), Fs()),
7821
7829
  remainingMs: M().positive().optional(),
7822
- checkpoint: Ff
7823
- })).parse(t.agents), l = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set();
7824
- for (let e of s) {
7825
- if (l.has(e.jobId) || u.has(e.waitId) || o[e.jobId] == null || Object.values(i).some((t) => t.jobId == e.jobId)) throw Error("Checkpoint waiting execution states conflict.");
7826
- l.add(e.jobId), u.add(e.waitId);
7827
- }
7828
- if (Object.keys(o).some((e) => !l.has(e))) throw Error("Checkpoint frame has no waiting execution.");
7829
- if (Object.keys(c).some((e) => !l.has(e))) throw Error("Checkpoint Agent has no waiting execution.");
7830
+ checkpoint: If
7831
+ })).parse(t.agents), u = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set();
7832
+ for (let e of c) {
7833
+ if (u.has(e.jobId) || d.has(e.waitId) || o[e.jobId] == null || Object.values(i).some((t) => t.jobId == e.jobId)) throw Error("Checkpoint waiting execution states conflict.");
7834
+ u.add(e.jobId), d.add(e.waitId);
7835
+ }
7836
+ if (Object.keys(o).some((e) => !u.has(e))) throw Error("Checkpoint frame has no waiting execution.");
7837
+ if (Object.keys(l).some((e) => !u.has(e))) throw Error("Checkpoint Agent has no waiting execution.");
7830
7838
  return {
7831
- agents: c,
7839
+ agents: l,
7832
7840
  bindingValues: n,
7833
7841
  counts: a,
7834
7842
  frames: o,
7835
7843
  inputs: r,
7836
7844
  results: i,
7837
7845
  version: 5,
7838
- waits: s
7846
+ waits: c
7839
7847
  };
7840
7848
  }
7841
- function Rf(e, t) {
7849
+ function zf(e, t) {
7842
7850
  if (e === t) return !0;
7843
7851
  if (e == null || t == null || typeof e != "object" || typeof t != "object") return !1;
7844
- if (Array.isArray(e) || Array.isArray(t)) return Array.isArray(e) && Array.isArray(t) && e.length == t.length && e.every((e, n) => Rf(e, t[n]));
7852
+ if (Array.isArray(e) || Array.isArray(t)) return Array.isArray(e) && Array.isArray(t) && e.length == t.length && e.every((e, n) => zf(e, t[n]));
7845
7853
  let n = Object.entries(e), r = Object.entries(t), i = t;
7846
- return n.length == r.length && n.every(([e, t]) => Object.hasOwn(i, e) && Rf(t, i[e]));
7854
+ return n.length == r.length && n.every(([e, t]) => Object.hasOwn(i, e) && zf(t, i[e]));
7847
7855
  }
7848
- function zf(e, t, n) {
7856
+ function Bf(e, t, n) {
7849
7857
  let r = Object.hasOwn(n, t.input) ? n[t.input] : null, i = t.value;
7850
7858
  switch (t.operator) {
7851
- case "==": return i !== void 0 && Rf(r, i);
7852
- case "!=": return i !== void 0 && !Rf(r, i);
7859
+ case "==": return i !== void 0 && zf(r, i);
7860
+ case "!=": return i !== void 0 && !zf(r, i);
7853
7861
  case ">": return typeof r == "number" && typeof i == "number" && r > i;
7854
7862
  case ">=": return typeof r == "number" && typeof i == "number" && r >= i;
7855
7863
  case "<": return typeof r == "number" && typeof i == "number" && r < i;
@@ -7857,7 +7865,7 @@ function zf(e, t, n) {
7857
7865
  case "contains":
7858
7866
  case "notContains": {
7859
7867
  let e;
7860
- return typeof r == "string" && typeof i == "string" ? e = r.includes(i) : Array.isArray(r) && i !== void 0 && (e = r.some((e) => Rf(e, i))), e == null ? !1 : t.operator == "contains" ? e : !e;
7868
+ return typeof r == "string" && typeof i == "string" ? e = r.includes(i) : Array.isArray(r) && i !== void 0 && (e = r.some((e) => zf(e, i))), e == null ? !1 : t.operator == "contains" ? e : !e;
7861
7869
  }
7862
7870
  case "startsWith": return typeof r == "string" && typeof i == "string" && r.startsWith(i);
7863
7871
  case "endsWith": return typeof r == "string" && typeof i == "string" && r.endsWith(i);
@@ -7870,7 +7878,7 @@ function zf(e, t, n) {
7870
7878
  case "hasValue":
7871
7879
  case "notHasValue": {
7872
7880
  if (r == null || Array.isArray(r) || typeof r != "object" || i === void 0) return !1;
7873
- let e = Object.values(r).some((e) => Rf(e, i));
7881
+ let e = Object.values(r).some((e) => zf(e, i));
7874
7882
  return t.operator == "hasValue" ? e : !e;
7875
7883
  }
7876
7884
  case "isEmpty":
@@ -7884,17 +7892,17 @@ function zf(e, t, n) {
7884
7892
  case "isFalse": return r === !1;
7885
7893
  }
7886
7894
  }
7887
- function Bf(e, t) {
7895
+ function Vf(e, t) {
7888
7896
  if (e === void 0) return {};
7889
7897
  if (typeof e != "object" || !e || Array.isArray(e)) throw Error(`Node "${t}" must return an object.`);
7890
7898
  return e;
7891
7899
  }
7892
- function Vf(e, t) {
7900
+ function Hf(e, t) {
7893
7901
  let n = t.kind == "task" && t.taskId != null ? e.tasks[t.taskId] : void 0;
7894
7902
  return n?.executor.kind == "agent" ? n.executor : void 0;
7895
7903
  }
7896
- function Hf(e, t, n) {
7897
- let r = Vf(e, t)?.notification;
7904
+ function Uf(e, t, n) {
7905
+ let r = Hf(e, t)?.notification;
7898
7906
  if (r == null) return;
7899
7907
  let i = e.tasks[r.taskId];
7900
7908
  return {
@@ -7903,17 +7911,17 @@ function Hf(e, t, n) {
7903
7911
  input: Object.fromEntries(i.inputs.flatMap((e) => {
7904
7912
  if (!("handle" in e) || e.handle == r.messageHandle) return [];
7905
7913
  let t = r.inputs[e.handle];
7906
- return [[e.handle, t == null ? e.value ?? null : hf(t, n)]];
7914
+ return [[e.handle, t == null ? e.value ?? null : gf(t, n)]];
7907
7915
  }))
7908
7916
  };
7909
7917
  }
7910
- function Uf(e, t, n) {
7918
+ function Wf(e, t, n) {
7911
7919
  let r = e.tools.find((e) => e.id == t.toolId);
7912
7920
  if (r == null || !r.approval || t.rounds > e.maxRounds) throw Error("Agent pause does not match its tool declaration.");
7913
7921
  for (let e of r.inputs) {
7914
7922
  let r = t.input[e.handle];
7915
- if (r === void 0 || !(r === null && e.nullable) && !mf(r, e.jsonSchema)) throw Error("Agent pause arguments are invalid.");
7916
- if (e.source.kind != "model" && !Rf(r, hf(e.source, n))) throw Error("Agent pause changed fixed arguments.");
7923
+ if (r === void 0 || !(r === null && e.nullable) && !hf(r, e.jsonSchema)) throw Error("Agent pause arguments are invalid.");
7924
+ if (e.source.kind != "model" && !zf(r, gf(e.source, n))) throw Error("Agent pause changed fixed arguments.");
7917
7925
  }
7918
7926
  if (Object.keys(t.input).length != r.inputs.length) throw Error("Agent pause contains undeclared arguments.");
7919
7927
  return {
@@ -7924,8 +7932,8 @@ function Uf(e, t, n) {
7924
7932
  input: t.input
7925
7933
  };
7926
7934
  }
7927
- function Wf(e, t, n, r) {
7928
- let i = Bf(r, t), a = n.kind == "task" && n.taskId != null && e.tasks[n.taskId].executor.kind == "connector", o = Sf(n) ? wf(n) : n.kind == "task" ? Qc(n.task == null ? e.tasks[n.taskId].outputs : n.task.outputs) : n.kind == "subflow" ? Qc(e.subflows[n.subflowId].outputs) : n.kind == "value" ? Qc(n.values) : Object.fromEntries([...n.cases.map((e) => e.output), ...n.defaultOutput == null ? [] : [n.defaultOutput]].map((e) => [e, n.input])), s = Bf(Pf(Object.fromEntries(Object.entries(i).map(([e, t]) => [e, Object.hasOwn(o, e) && t === void 0 ? null : t])), `Node "${t}" outputs`), t), c = n.kind == "condition" || Sf(n) ? s : {
7935
+ function Gf(e, t, n, r) {
7936
+ let i = Vf(r, t), a = n.kind == "task" && n.taskId != null && e.tasks[n.taskId].executor.kind == "connector", o = Cf(n) ? Tf(n) : n.kind == "task" ? $c(n.task == null ? e.tasks[n.taskId].outputs : n.task.outputs) : n.kind == "subflow" ? $c(e.subflows[n.subflowId].outputs) : n.kind == "value" ? $c(n.values) : Object.fromEntries([...n.cases.map((e) => e.output), ...n.defaultOutput == null ? [] : [n.defaultOutput]].map((e) => [e, n.input])), s = Vf(Ff(Object.fromEntries(Object.entries(i).map(([e, t]) => [e, Object.hasOwn(o, e) && t === void 0 ? null : t])), `Node "${t}" outputs`), t), c = n.kind == "condition" || Cf(n) ? s : {
7929
7937
  ...Object.fromEntries(Object.keys(o).map((e) => [e, null])),
7930
7938
  ...s
7931
7939
  }, l = {};
@@ -7935,12 +7943,12 @@ function Wf(e, t, n, r) {
7935
7943
  if (a) continue;
7936
7944
  throw Error(`Node "${t}" output "${e}" does not match its declaration.`);
7937
7945
  }
7938
- if (!(n === null && r.nullable) && !mf(n, r.jsonSchema)) throw Error(`Node "${t}" output "${e}" does not match its declaration.`);
7946
+ if (!(n === null && r.nullable) && !hf(n, r.jsonSchema)) throw Error(`Node "${t}" output "${e}" does not match its declaration.`);
7939
7947
  l[e] = n;
7940
7948
  }
7941
7949
  return l;
7942
7950
  }
7943
- function Gf(e, t, n, r) {
7951
+ function Kf(e, t, n, r) {
7944
7952
  let i = n.inputs, a = n.agents;
7945
7953
  if ([...Object.keys(n.results), ...Object.keys(i)].some((e) => t.graph.nodes[e] == null)) throw Error("Checkpoint nodes do not match the prepared graph.");
7946
7954
  for (let [r, i] of Object.entries(n.counts)) {
@@ -7957,10 +7965,10 @@ function Gf(e, t, n, r) {
7957
7965
  if (r == null) throw Error("Checkpoint result node is missing.");
7958
7966
  if ("inputs" in r) {
7959
7967
  if (n.counts[""]?.[a] == null) throw Error("Checkpoint execution count is missing.");
7960
- if (!Rf(Wf(e, a, r, o), o)) throw Error("Checkpoint node outputs are incomplete.");
7968
+ if (!zf(Gf(e, a, r, o), o)) throw Error("Checkpoint node outputs are incomplete.");
7961
7969
  let t = Object.keys(o).length;
7962
- if (r.kind == "condition" && (t > 1 || r.defaultOutput != null && t != 1) || Sf(r) && (Cf(r).filter((e) => Object.hasOwn(o, e)).length > 1 || !Cf(r).some((e) => Object.hasOwn(o, e)) && !(i && Object.hasOwn(o, "pending")))) throw Error("Checkpoint branch result is invalid.");
7963
- } else if (!xf(r, o)) throw Error("Checkpoint Trigger output is invalid.");
7970
+ if (r.kind == "condition" && (t > 1 || r.defaultOutput != null && t != 1) || Cf(r) && (wf(r).filter((e) => Object.hasOwn(o, e)).length > 1 || !wf(r).some((e) => Object.hasOwn(o, e)) && !(i && Object.hasOwn(o, "pending")))) throw Error("Checkpoint branch result is invalid.");
7971
+ } else if (!Sf(r, o)) throw Error("Checkpoint Trigger output is invalid.");
7964
7972
  }
7965
7973
  };
7966
7974
  o(Object.fromEntries(Object.entries(n.results).map(([e, t]) => [e, t.outputs])));
@@ -7969,36 +7977,36 @@ function Gf(e, t, n, r) {
7969
7977
  for (let e of Object.values(n.frames)) {
7970
7978
  o(e, !0);
7971
7979
  let r = Object.keys(e).filter((e) => !("inputs" in t.graph.nodes[e]));
7972
- if (r.length != 1 || r[0] != s[0] || !Rf(e[r[0]], n.results[r[0]].outputs)) throw Error("Checkpoint frame Trigger does not match the Run.");
7980
+ if (r.length != 1 || r[0] != s[0] || !zf(e[r[0]], n.results[r[0]].outputs)) throw Error("Checkpoint frame Trigger does not match the Run.");
7973
7981
  }
7974
7982
  let c = /* @__PURE__ */ new Map();
7975
7983
  for (let e of n.waits) c.set(e.nodeId, (c.get(e.nodeId) ?? 0) + 1);
7976
7984
  for (let [e, t] of c) if ((n.counts[""]?.[e] ?? 0) < t + (n.results[e] == null ? 0 : 1)) throw Error("Checkpoint waiting execution count is incomplete.");
7977
7985
  for (let [n, r] of Object.entries(i)) {
7978
7986
  let i = t.graph.nodes[n];
7979
- if (!("inputs" in i) || Object.keys(r).some((t) => Of(e, i)[t] == null)) throw Error("Checkpoint launch inputs do not match the prepared graph.");
7987
+ if (!("inputs" in i) || Object.keys(r).some((t) => kf(e, i)[t] == null)) throw Error("Checkpoint launch inputs do not match the prepared graph.");
7980
7988
  }
7981
7989
  for (let i of n.waits) {
7982
7990
  let o = t.graph.nodes[i.nodeId];
7983
7991
  if (o == null || !("inputs" in o)) throw Error("Checkpoint waiting node is missing.");
7984
- let s = Vf(e, o), c = a[i.jobId];
7985
- if (!Sf(o) && s == null) throw Error("Checkpoint waiting node cannot suspend.");
7992
+ let s = Hf(e, o), c = a[i.jobId];
7993
+ if (!Cf(o) && s == null) throw Error("Checkpoint waiting node cannot suspend.");
7986
7994
  if (s != null) {
7987
7995
  if (c != null && c.invocationId != i.jobId) throw Error("Checkpoint Agent invocation identity changed.");
7988
7996
  if (c == null || o.timeoutMs == null != (c.remainingMs == null) || c.remainingMs != null && c.remainingMs > o.timeoutMs) throw Error("Checkpoint Agent budget is invalid.");
7989
- let e = Uf(s, c.checkpoint, c.input);
7990
- if (!Rf(i.value, e)) throw Error("Checkpoint Agent approval does not match its saved call.");
7991
- if (!Rf(r(i.nodeId, o, i.jobId), c.input)) throw Error("Checkpoint Agent inputs changed.");
7997
+ let e = Wf(s, c.checkpoint, c.input);
7998
+ if (!zf(i.value, e)) throw Error("Checkpoint Agent approval does not match its saved call.");
7999
+ if (!zf(r(i.nodeId, o, i.jobId), c.input)) throw Error("Checkpoint Agent inputs changed.");
7992
8000
  } else {
7993
8001
  if (c != null) throw Error("Checkpoint Wait contains Agent state.");
7994
- if (!Sf(o) || !Rf(r(i.nodeId, o, i.jobId)[o.input.handle], i.value)) throw Error("Checkpoint resolution input changed.");
7995
- if (Tf(t.graph, i.nodeId) != (i.pending != null)) throw Error("Checkpoint Wait pending output is missing or unexpected.");
7996
- i.pending != null && Wf(e, i.nodeId, o, { pending: i.pending });
8002
+ if (!Cf(o) || !zf(r(i.nodeId, o, i.jobId)[o.input.handle], i.value)) throw Error("Checkpoint resolution input changed.");
8003
+ if (Ef(t.graph, i.nodeId) != (i.pending != null)) throw Error("Checkpoint Wait pending output is missing or unexpected.");
8004
+ i.pending != null && Gf(e, i.nodeId, o, { pending: i.pending });
7997
8005
  }
7998
8006
  if (n.counts[""]?.[i.nodeId] == null) throw Error("Checkpoint waiting execution count is missing.");
7999
8007
  }
8000
8008
  }
8001
- function Kf(i, o, s, c, l, u = {}, d, f) {
8009
+ function qf(i, o, s, c, l, u = {}, d, f) {
8002
8010
  return t.scoped(t.gen(function* () {
8003
8011
  f ?? (yield* i.emit({
8004
8012
  flowId: o.flowId,
@@ -8019,7 +8027,7 @@ function Kf(i, o, s, c, l, u = {}, d, f) {
8019
8027
  if (f == null) {
8020
8028
  if (d != null) {
8021
8029
  let e = o.graph.nodes[d.nodeId];
8022
- if (e == null || "inputs" in e || !xf(e, d.outputs)) throw Error("Trigger outputs are invalid.");
8030
+ if (e == null || "inputs" in e || !Sf(e, d.outputs)) throw Error("Trigger outputs are invalid.");
8023
8031
  }
8024
8032
  for (let [e, t] of Object.entries(o.graph.nodes)) "inputs" in t || d?.nodeId == e && ee.set(e, {
8025
8033
  jobId: e,
@@ -8038,11 +8046,11 @@ function Kf(i, o, s, c, l, u = {}, d, f) {
8038
8046
  if (t.length > 1) throw Error(`${r} has multiple available sources.`);
8039
8047
  o = t[0] ?? null;
8040
8048
  }
8041
- if (o === void 0 && (o = null), !(o === null && t.nullable) && !mf(o, t.jsonSchema)) throw Error(`${r} does not match its declared schema.`);
8049
+ if (o === void 0 && (o = null), !(o === null && t.nullable) && !hf(o, t.jsonSchema)) throw Error(`${r} does not match its declared schema.`);
8042
8050
  return o;
8043
8051
  }, fe = (e, t, n) => {
8044
8052
  let r = t.inputs;
8045
- return Object.fromEntries(Object.entries(Of(i.prepared, t)).map(([t, i]) => [t, de(r[t], i, re[e]?.[t], `Node "${e}" input "${t}"`, ne[n])]));
8053
+ return Object.fromEntries(Object.entries(kf(i.prepared, t)).map(([t, i]) => [t, de(r[t], i, re[e]?.[t], `Node "${e}" input "${t}"`, ne[n])]));
8046
8054
  }, pe = (e, n, r, a = Object.keys(r)) => t.uninterruptible(t.gen(function* () {
8047
8055
  yield* i.emit({
8048
8056
  jobId: n,
@@ -8067,9 +8075,9 @@ function Kf(i, o, s, c, l, u = {}, d, f) {
8067
8075
  }, ge = (e, t, n) => {
8068
8076
  for (let r of h.get(e) ?? []) (r.sourceHandle == null || t.includes(r.sourceHandle)) && he(r.target, n);
8069
8077
  }, _e = (e, n, r, a, c) => {
8070
- let l = Vf(i.prepared, n), u = ue[r], d = u?.remainingMs ?? n.timeoutMs, f = performance.now(), p = t.gen(function* () {
8071
- let p = Af(i.prepared, n), m = kf(i.prepared, n), h = Object.fromEntries(Object.entries(a).filter(([e]) => {
8072
- if (Sf(n)) return e == n.input.handle;
8078
+ let l = Hf(i.prepared, n), u = ue[r], d = u?.remainingMs ?? n.timeoutMs, f = performance.now(), p = t.gen(function* () {
8079
+ let p = jf(i.prepared, n), m = Af(i.prepared, n), h = Object.fromEntries(Object.entries(a).filter(([e]) => {
8080
+ if (Cf(n)) return e == n.input.handle;
8073
8081
  let t = n.inputs[e];
8074
8082
  return t?.kind != "sources" || t.sources.every((e) => e.kind != "binding");
8075
8083
  }));
@@ -8087,7 +8095,7 @@ function Kf(i, o, s, c, l, u = {}, d, f) {
8087
8095
  case "condition": {
8088
8096
  let e = n.cases.find((e) => {
8089
8097
  if (e.expressions.length == 0) return !1;
8090
- let t = e.expressions.map((e) => zf(n, e, a));
8098
+ let t = e.expressions.map((e) => Bf(n, e, a));
8091
8099
  return e.relation == "all" ? t.every(Boolean) : t.some(Boolean);
8092
8100
  })?.output ?? n.defaultOutput;
8093
8101
  g = e == null ? {} : { [e]: a[n.input.handle] ?? null };
@@ -8098,7 +8106,7 @@ function Kf(i, o, s, c, l, u = {}, d, f) {
8098
8106
  break;
8099
8107
  case "subflow": {
8100
8108
  let e = i.prepared.subflows[n.subflowId];
8101
- g = yield* Kf(i, {
8109
+ g = yield* qf(i, {
8102
8110
  flowId: n.subflowId,
8103
8111
  graph: e.graph,
8104
8112
  kind: "subflow"
@@ -8128,10 +8136,10 @@ function Kf(i, o, s, c, l, u = {}, d, f) {
8128
8136
  }
8129
8137
  });
8130
8138
  if (l != null) {
8131
- let n = If.parse(m);
8139
+ let n = Lf.parse(m);
8132
8140
  if (n.kind == "suspended") {
8133
8141
  if (o.kind != "flow") return yield* t.fail(/* @__PURE__ */ Error("Subflow Agent is not supported."));
8134
- let i = n.checkpoint, s = Uf(l, i, a), c = d == null ? void 0 : d - (performance.now() - f);
8142
+ let i = n.checkpoint, s = Wf(l, i, a), c = d == null ? void 0 : d - (performance.now() - f);
8135
8143
  if (c != null && c <= 0) throw Error(`Node "${e}" timed out.`);
8136
8144
  return {
8137
8145
  kind: "suspended",
@@ -8145,7 +8153,7 @@ function Kf(i, o, s, c, l, u = {}, d, f) {
8145
8153
  };
8146
8154
  }
8147
8155
  g = { output: n.output };
8148
- } else g = Bf(m, e);
8156
+ } else g = Vf(m, e);
8149
8157
  break;
8150
8158
  }
8151
8159
  case "approval":
@@ -8154,7 +8162,7 @@ function Kf(i, o, s, c, l, u = {}, d, f) {
8154
8162
  return yield* t.try({
8155
8163
  try: () => ({
8156
8164
  kind: "completed",
8157
- outputs: Wf(i.prepared, e, n, g)
8165
+ outputs: Gf(i.prepared, e, n, g)
8158
8166
  }),
8159
8167
  catch: (e) => e instanceof Error ? e : Error(String(e))
8160
8168
  });
@@ -8165,18 +8173,18 @@ function Kf(i, o, s, c, l, u = {}, d, f) {
8165
8173
  }));
8166
8174
  }, ve = (e, n, s) => t.gen(function* () {
8167
8175
  if (o.kind != "flow" || i.waits == null) return yield* t.fail(/* @__PURE__ */ Error("Wait host is unavailable."));
8168
- let c = o.graph.nodes[e], l = a(), u = Sf(c) && Tf(o.graph, e), d = yield* i.waits.create({
8176
+ let c = o.graph.nodes[e], l = a(), u = Cf(c) && Ef(o.graph, e), d = yield* i.waits.create({
8169
8177
  jobId: n,
8170
8178
  nodeId: e,
8171
8179
  value: s,
8172
8180
  waitId: l,
8173
8181
  notify: u,
8174
- actions: Sf(c) ? Cf(c) : ["approve", "reject"],
8175
- prompt: Sf(c) ? c.prompt : JSON.stringify(s, null, 2),
8176
- ...Sf(c) ? {} : { notification: Hf(i.prepared, c, ue[n].input) }
8182
+ actions: Cf(c) ? wf(c) : ["approve", "reject"],
8183
+ prompt: Cf(c) ? c.prompt : JSON.stringify(s, null, 2),
8184
+ ...Cf(c) ? {} : { notification: Uf(i.prepared, c, ue[n].input) }
8177
8185
  });
8178
8186
  if (u) {
8179
- Wf(i.prepared, e, c, { pending: d });
8187
+ Gf(i.prepared, e, c, { pending: d });
8180
8188
  let t = {
8181
8189
  ...ne[n],
8182
8190
  [e]: { pending: d }
@@ -8192,7 +8200,7 @@ function Kf(i, o, s, c, l, u = {}, d, f) {
8192
8200
  }), yield* r.offer(v, void 0);
8193
8201
  }), ye = (e, t, n) => n.kind == "completed" ? (delete ue[t], pe(e, t, n.outputs)) : (ue[t] = n.agent, ve(e, t, n.value)), be = (e, n, r) => r.pipe(t.catchDefect((e) => t.fail(e instanceof Error ? e : Error(String(e)))), t.tapError((r) => t.gen(function* () {
8194
8202
  oe ?? (se ??= r), yield* i.emit({
8195
- ...Df(r, i.projectFailure),
8203
+ ...Of(r, i.projectFailure),
8196
8204
  jobId: n,
8197
8205
  nodeId: e,
8198
8206
  runId: s,
@@ -8214,7 +8222,7 @@ function Kf(i, o, s, c, l, u = {}, d, f) {
8214
8222
  try: () => fe(e, a, c),
8215
8223
  catch: (e) => e instanceof Error ? e : Error(String(e))
8216
8224
  });
8217
- if (Sf(a)) {
8225
+ if (Cf(a)) {
8218
8226
  let t = a.inputs[a.input.handle];
8219
8227
  yield* i.emit({
8220
8228
  inputs: t?.kind == "sources" && t.sources.some((e) => e.kind == "binding") ? {} : { [a.input.handle]: n[a.input.handle] },
@@ -8232,7 +8240,7 @@ function Kf(i, o, s, c, l, u = {}, d, f) {
8232
8240
  })).pipe(t.ensuring(r.offer(v, void 0))));
8233
8241
  };
8234
8242
  if (f != null && (yield* t.try({
8235
- try: () => Gf(i.prepared, o, f.checkpoint, fe),
8243
+ try: () => Kf(i.prepared, o, f.checkpoint, fe),
8236
8244
  catch: (e) => e instanceof Error ? e : Error(String(e))
8237
8245
  })), f == null) {
8238
8246
  if (d != null) ge(d.nodeId, Object.keys(d.outputs), { [d.nodeId]: d.outputs });
@@ -8245,9 +8253,9 @@ function Kf(i, o, s, c, l, u = {}, d, f) {
8245
8253
  le != null && (le = void 0, ce = n), _.delete(a.jobId);
8246
8254
  let c = o.graph.nodes[a.nodeId];
8247
8255
  ae(be(a.nodeId, a.jobId, t.gen(function* () {
8248
- if (Sf(c)) {
8249
- if (!Cf(c).some((e) => e == s)) return yield* t.fail(/* @__PURE__ */ Error("Resolution does not match node actions."));
8250
- yield* pe(a.nodeId, a.jobId, Wf(i.prepared, a.nodeId, c, {
8256
+ if (Cf(c)) {
8257
+ if (!wf(c).some((e) => e == s)) return yield* t.fail(/* @__PURE__ */ Error("Resolution does not match node actions."));
8258
+ yield* pe(a.nodeId, a.jobId, Gf(i.prepared, a.nodeId, c, {
8251
8259
  ...a.pending == null ? {} : { pending: a.pending },
8252
8260
  [s]: a.value
8253
8261
  }), [s]);
@@ -8272,7 +8280,7 @@ function Kf(i, o, s, c, l, u = {}, d, f) {
8272
8280
  if (oe != null) continue;
8273
8281
  if (o == 0 && _.size == 0 && me.length == 0) break;
8274
8282
  o > 0 || me.length > 0 ? le = void 0 : le ??= a;
8275
- let c = le == null ? y : Ef - (a - le);
8283
+ let c = le == null ? y : Df - (a - le);
8276
8284
  if (le != null && c <= 0) {
8277
8285
  let e = {
8278
8286
  bindingValues: i.bindingValues,
@@ -8286,7 +8294,7 @@ function Kf(i, o, s, c, l, u = {}, d, f) {
8286
8294
  }, n = JSON.stringify(e);
8287
8295
  return new TextEncoder().encode(n).byteLength > 16777216 ? yield* t.fail(/* @__PURE__ */ Error("Flow Run checkpoint exceeds 16 MiB.")) : {
8288
8296
  kind: "waiting",
8289
- checkpoint: Lf(JSON.parse(n)),
8297
+ checkpoint: Rf(JSON.parse(n)),
8290
8298
  ...y == null ? {} : { remainingMs: y }
8291
8299
  };
8292
8300
  }
@@ -8334,15 +8342,15 @@ function Kf(i, o, s, c, l, u = {}, d, f) {
8334
8342
  }), Se;
8335
8343
  }));
8336
8344
  }
8337
- function qf(e, n) {
8345
+ function Jf(e, n) {
8338
8346
  let r = n.emit ?? (() => t.void);
8339
8347
  return t.gen(function* () {
8340
8348
  if (n.resume != null && (n.inputs != null || n.trigger != null || n.bindingValues != null)) return yield* t.fail(/* @__PURE__ */ Error("A resumed Flow Run cannot accept launch inputs, binding values, or a Trigger seed."));
8341
- let i = n.resume == null ? void 0 : Lf(n.resume.checkpoint);
8349
+ let i = n.resume == null ? void 0 : Rf(n.resume.checkpoint);
8342
8350
  if (i != null && new TextEncoder().encode(JSON.stringify(i)).byteLength > 16777216) return yield* t.fail(/* @__PURE__ */ Error("Flow Run checkpoint exceeds 16 MiB."));
8343
8351
  if (i == null && n.trigger == null) return yield* t.fail(/* @__PURE__ */ Error("A Flow Run requires a Trigger seed."));
8344
8352
  let a = n.trigger == null ? void 0 : e.graph.nodes[n.trigger.nodeId];
8345
- return n.trigger != null && (a == null || "inputs" in a) ? yield* t.fail(/* @__PURE__ */ Error(`Node "${n.trigger.nodeId}" is not a TriggerNode in Flow "${n.flowId}".`)) : yield* Kf({
8353
+ return n.trigger != null && (a == null || "inputs" in a) ? yield* t.fail(/* @__PURE__ */ Error(`Node "${n.trigger.nodeId}" is not a TriggerNode in Flow "${n.flowId}".`)) : yield* qf({
8346
8354
  counts: Object.fromEntries(Object.entries(i?.counts ?? {}).map(([e, t]) => [e, { ...t }])),
8347
8355
  bindingValues: i?.bindingValues ?? n.bindingValues ?? {},
8348
8356
  createId: n.createId,
@@ -8360,4 +8368,4 @@ function qf(e, n) {
8360
8368
  });
8361
8369
  }
8362
8370
  //#endregion
8363
- export { Lf as decodeFlowRunCheckpoint, qf as runFlow, Ef as waitRetentionMs };
8371
+ export { Rf as decodeFlowRunCheckpoint, Jf as runFlow, Df as waitRetentionMs };