@elyx-code/project-logic-tree 0.0.6363 → 0.0.6365

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.
package/dist/index.js CHANGED
@@ -26985,7 +26985,7 @@ class X {
26985
26985
  this.id = u.id, this.message = u.message, this.issue = u.issue, this.severity = u.severity, this.code = u.code;
26986
26986
  }
26987
26987
  toEntityError(u) {
26988
- return this.code in oe ? new Wt({
26988
+ return this.code in oe ? new Ht({
26989
26989
  id: this.id,
26990
26990
  message: this.message,
26991
26991
  issue: this.issue,
@@ -26995,7 +26995,7 @@ class X {
26995
26995
  }) : null;
26996
26996
  }
26997
26997
  }
26998
- class Wt {
26998
+ class Ht {
26999
26999
  constructor(u) {
27000
27000
  // A deterministic error code, so if the same error occurs again in a subsequent validation run,
27001
27001
  // it can be identified as the same problem
@@ -27022,7 +27022,7 @@ class Wt {
27022
27022
  this.id = u.id, this.message = u.message, this.issue = u.issue, this.severity = u.severity, this.code = u.code, this.entity = u.entity, this.firstRelationship = u.firstRelationship, this.secondRelationship = u.secondRelationship;
27023
27023
  }
27024
27024
  clone() {
27025
- return new Wt({
27025
+ return new Ht({
27026
27026
  id: this.id,
27027
27027
  message: this.message,
27028
27028
  issue: this.issue,
@@ -27040,7 +27040,7 @@ function QIt(d) {
27040
27040
  }
27041
27041
  function Bt(d) {
27042
27042
  const u = d.entity.errors.find((a) => a.id === d.id);
27043
- return u ? { new: !1, error: u } : { new: !0, error: new Wt(d) };
27043
+ return u ? { new: !1, error: u } : { new: !0, error: new Ht(d) };
27044
27044
  }
27045
27045
  function eAt(d, u) {
27046
27046
  const i = /* @__PURE__ */ new Map();
@@ -36415,7 +36415,7 @@ Please consider than any updates might affect the overlap with the signature of
36415
36415
  ), i == null || i.attemptAutoclose("clone-entity", this.id), w) : (i == null || i.attemptAutoclose("clone-entity", this.id), w);
36416
36416
  }
36417
36417
  getVariableInstances() {
36418
- return Yt(this).filter(
36418
+ return Jt(this).filter(
36419
36419
  (l) => l.type === f.VariableInstance
36420
36420
  );
36421
36421
  }
@@ -44313,7 +44313,7 @@ You can attach new logic to the existing 'global-event' but creating a new calla
44313
44313
  ), i == null || i.attemptAutoclose("clone-entity", this.id), P) : (i == null || i.attemptAutoclose("clone-entity", this.id), P);
44314
44314
  }
44315
44315
  getVariableInstances() {
44316
- return Yt(this).filter(
44316
+ return Jt(this).filter(
44317
44317
  (l) => l.type === f.VariableInstance
44318
44318
  );
44319
44319
  }
@@ -47375,7 +47375,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
47375
47375
  )), i == null || i.attemptAutoclose("clone-entity", this.id), I;
47376
47376
  }
47377
47377
  getVariableInstances() {
47378
- return this.body ? Yt(this.body).filter(
47378
+ return this.body ? Jt(this.body).filter(
47379
47379
  (l) => l.type === f.VariableInstance
47380
47380
  ) : [];
47381
47381
  }
@@ -73670,7 +73670,7 @@ class Hh {
73670
73670
  get columns() {
73671
73671
  var u;
73672
73672
  return (((u = this.dataSource) == null ? void 0 : u.columns) || []).map((i) => {
73673
- const a = new Jt(this.owner);
73673
+ const a = new Wt(this.owner);
73674
73674
  return a.source = i, a.parent = this.dataSource, a.as = i.as, a;
73675
73675
  });
73676
73676
  }
@@ -73682,7 +73682,7 @@ class Hh {
73682
73682
  var u;
73683
73683
  return (((u = this.dataSource) == null ? void 0 : u.selections) || []).map((i) => {
73684
73684
  if (i.type === "column-ref") {
73685
- const a = new Jt(this.owner);
73685
+ const a = new Wt(this.owner);
73686
73686
  return a.source = i, a.parent = i.parent, a.as = i.as, a;
73687
73687
  } else if (i.type === "all-columns-selector") {
73688
73688
  const a = new gd(this.owner);
@@ -73694,14 +73694,14 @@ class Hh {
73694
73694
  get selectedColumns() {
73695
73695
  var u;
73696
73696
  return (((u = this.dataSource) == null ? void 0 : u.selectedColumns) || []).map((i) => {
73697
- const a = new Jt(this.owner);
73697
+ const a = new Wt(this.owner);
73698
73698
  return a.source = i, a.parent = i.parent, a.as = i.as, a;
73699
73699
  });
73700
73700
  }
73701
73701
  get primaryKeys() {
73702
73702
  var u;
73703
73703
  return (((u = this.dataSource) == null ? void 0 : u.primaryKeys) || []).map((i) => {
73704
- const a = new Jt(this.owner);
73704
+ const a = new Wt(this.owner);
73705
73705
  return a.source = i, a.parent = i.parent, a.as = i.as, a;
73706
73706
  });
73707
73707
  }
@@ -73714,7 +73714,7 @@ class Hh {
73714
73714
  var i;
73715
73715
  const u = ((i = this.dataSource) == null ? void 0 : i.primaryKey) || null;
73716
73716
  if (u) {
73717
- const a = new Jt(this.owner);
73717
+ const a = new Wt(this.owner);
73718
73718
  return a.source = u, a.parent = u.parent, a.as = u.as, a;
73719
73719
  }
73720
73720
  return null;
@@ -73729,7 +73729,7 @@ class Hh {
73729
73729
  this.dataSource = u;
73730
73730
  }
73731
73731
  }
73732
- var Ht = /* @__PURE__ */ ((d) => (d.String = "string", d.Number = "number", d.Boolean = "boolean", d.Null = "null", d.Date = "date", d))(Ht || {});
73732
+ var Yt = /* @__PURE__ */ ((d) => (d.String = "string", d.Number = "number", d.Boolean = "boolean", d.Null = "null", d.Date = "date", d))(Yt || {});
73733
73733
  class Pr {
73734
73734
  constructor(u) {
73735
73735
  D(this, "owner");
@@ -73803,7 +73803,7 @@ class GM {
73803
73803
  // The goal is to remove all references to that data source in a non-destructive way
73804
73804
  removeDataSource(u) {
73805
73805
  var i, a;
73806
- this.left instanceof Jt && ((i = this.left.parent) == null ? void 0 : i.id) === (u == null ? void 0 : u.id) && (this.left = null, this.remove()), this.right instanceof Jt && ((a = this.right.parent) == null ? void 0 : a.id) === (u == null ? void 0 : u.id) && (this.right = null, this.remove()), this.and.forEach((l) => {
73806
+ this.left instanceof Wt && ((i = this.left.parent) == null ? void 0 : i.id) === (u == null ? void 0 : u.id) && (this.left = null, this.remove()), this.right instanceof Wt && ((a = this.right.parent) == null ? void 0 : a.id) === (u == null ? void 0 : u.id) && (this.right = null, this.remove()), this.and.forEach((l) => {
73807
73807
  l.removeDataSource(u);
73808
73808
  }), this.or.forEach((l) => {
73809
73809
  l.removeDataSource(u);
@@ -73820,13 +73820,13 @@ class GM {
73820
73820
  let i = !1;
73821
73821
  if (this.operator && this.left && this.right) {
73822
73822
  let y = "";
73823
- if (this.left instanceof Jt) {
73823
+ if (this.left instanceof Wt) {
73824
73824
  const b = this.left.as;
73825
73825
  y = ((a = this.left.parent) == null ? void 0 : a.as) + "." + b;
73826
73826
  } else
73827
73827
  this.left instanceof Xs ? y = `'{{::${(l = this.left) == null ? void 0 : l.id}}}'` : this.left instanceof Pr && (y = this.left.toQuery());
73828
73828
  let v = "";
73829
- if (this.right instanceof Jt) {
73829
+ if (this.right instanceof Wt) {
73830
73830
  const b = this.right.as;
73831
73831
  v = ((p = this.right.parent) == null ? void 0 : p.as) + "." + b;
73832
73832
  } else
@@ -73908,7 +73908,7 @@ class dA {
73908
73908
  get columns() {
73909
73909
  var u;
73910
73910
  return (((u = this.statement) == null ? void 0 : u.columns) || []).map((i) => {
73911
- const a = new Jt(this.owner);
73911
+ const a = new Wt(this.owner);
73912
73912
  return a.source = i, a.parent = i.parent, a.as = i.as, a;
73913
73913
  });
73914
73914
  }
@@ -73920,7 +73920,7 @@ class dA {
73920
73920
  var u;
73921
73921
  return (((u = this.statement) == null ? void 0 : u.selections) || []).map((i) => {
73922
73922
  if (i.type === "column-ref") {
73923
- const a = new Jt(this.owner);
73923
+ const a = new Wt(this.owner);
73924
73924
  return a.source = i, a.parent = i.parent, a.as = i.as, a;
73925
73925
  } else if (i.type === "all-columns-selector") {
73926
73926
  const a = new gd(this.owner);
@@ -73932,14 +73932,14 @@ class dA {
73932
73932
  get selectedColumns() {
73933
73933
  var u;
73934
73934
  return (((u = this.statement) == null ? void 0 : u.selectedColumns) || []).map((i) => {
73935
- const a = new Jt(this.owner);
73935
+ const a = new Wt(this.owner);
73936
73936
  return a.source = i, a.parent = i.parent, a.as = i.as, a;
73937
73937
  });
73938
73938
  }
73939
73939
  get primaryKeys() {
73940
73940
  var u;
73941
73941
  return (((u = this.statement) == null ? void 0 : u.primaryKeys) || []).map((i) => {
73942
- const a = new Jt(this.owner);
73942
+ const a = new Wt(this.owner);
73943
73943
  return a.source = i, a.parent = i.parent, a.as = i.as, a;
73944
73944
  });
73945
73945
  }
@@ -73952,7 +73952,7 @@ class dA {
73952
73952
  var i;
73953
73953
  const u = ((i = this.statement) == null ? void 0 : i.primaryKey) || null;
73954
73954
  if (u) {
73955
- const a = new Jt(this.owner);
73955
+ const a = new Wt(this.owner);
73956
73956
  return a.source = u, a.parent = u.parent, a.as = u.as, a;
73957
73957
  }
73958
73958
  return null;
@@ -73997,7 +73997,7 @@ class Zi {
73997
73997
  var u, i, a;
73998
73998
  if (this.sourceType === "table")
73999
73999
  return (this.entity ? fp(this.entity) : []).map((p) => {
74000
- const t = new Jt(this.owner);
74000
+ const t = new Wt(this.owner);
74001
74001
  return t.source = p, t.parent = this, t.as = Wr(p.name), t;
74002
74002
  }) || [];
74003
74003
  if (this.sourceType === "query") {
@@ -74005,17 +74005,17 @@ class Zi {
74005
74005
  return (u = this.query) == null || u.selections.forEach((p) => {
74006
74006
  var t;
74007
74007
  if (p.type === "column-ref") {
74008
- const y = new Jt(this.owner);
74008
+ const y = new Wt(this.owner);
74009
74009
  y.source = p, y.parent = this, y.as = p.as, l.push(y);
74010
74010
  } else
74011
74011
  p.type === "all-columns-selector" && ((t = p.parent) == null ? void 0 : t.type) === "data-source" && p.parent.columns.forEach((b) => {
74012
- const w = new Jt(this.owner);
74012
+ const w = new Wt(this.owner);
74013
74013
  w.source = b, w.parent = this, w.as = b.as, l.push(w);
74014
74014
  });
74015
74015
  }), l;
74016
74016
  } else if (this.sourceType === "aggregation")
74017
74017
  return (((a = (i = this.aggregation) == null ? void 0 : i.dataSource) == null ? void 0 : a.columns) || []).map((l) => {
74018
- const p = new Jt(this.owner);
74018
+ const p = new Wt(this.owner);
74019
74019
  return p.source = l, p.parent = this, p.as = l.as, p;
74020
74020
  });
74021
74021
  return [];
@@ -74076,7 +74076,7 @@ class Zi {
74076
74076
  return i.length > 0 ? i[0] : null;
74077
74077
  }
74078
74078
  }
74079
- class Jt {
74079
+ class Wt {
74080
74080
  constructor(u) {
74081
74081
  D(this, "owner");
74082
74082
  D(this, "source", null);
@@ -74521,11 +74521,11 @@ const qAt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
74521
74521
  AggregationStatement: Hh,
74522
74522
  AggregationStatementType: yd,
74523
74523
  AllColumnsSelector: gd,
74524
- ColumnRef: Jt,
74524
+ ColumnRef: Wt,
74525
74525
  DataSource: Zi,
74526
74526
  DataSourceType: Hn,
74527
74527
  NestedSearchStatement: dA,
74528
- SearchLiteralValueType: Ht,
74528
+ SearchLiteralValueType: Yt,
74529
74529
  SearchStatementLiteralValue: Pr,
74530
74530
  SearchStatementNodeType: hy,
74531
74531
  SearchStatementState: kM,
@@ -74931,7 +74931,7 @@ function In(d, u, i, a, l = !1) {
74931
74931
  (de) => We(de.as) === We(ie.text)
74932
74932
  );
74933
74933
  if (H) {
74934
- p.left = new Jt(i), p.left.source = H.source, p.left.as = We(H.as);
74934
+ p.left = new Wt(i), p.left.source = H.source, p.left.as = We(H.as);
74935
74935
  const de = new Zi(i);
74936
74936
  de.entity = ((t = H.parent) == null ? void 0 : t.entity) || null, de.query = ((y = H.parent) == null ? void 0 : y.query) || null, de.aggregation = ((v = H.parent) == null ? void 0 : v.aggregation) || null, de.sourceType = ((b = H.parent) == null ? void 0 : b.sourceType) || null;
74937
74937
  const ve = i.addDataSource(de);
@@ -74946,7 +74946,7 @@ function In(d, u, i, a, l = !1) {
74946
74946
  if (l)
74947
74947
  debugger;
74948
74948
  if (de) {
74949
- p.left = new Jt(i), p.left.source = de, p.left.as = We(de.as);
74949
+ p.left = new Wt(i), p.left.source = de, p.left.as = We(de.as);
74950
74950
  const ve = new Zi(i);
74951
74951
  ve.entity = ((w = de.parent) == null ? void 0 : w.entity) || null, ve.query = ((I = de.parent) == null ? void 0 : I.query) || null, ve.aggregation = ((P = de.parent) == null ? void 0 : P.aggregation) || null, ve.sourceType = ((N = de.parent) == null ? void 0 : N.sourceType) || null;
74952
74952
  const Pe = i.addDataSource(ve);
@@ -74957,16 +74957,16 @@ function In(d, u, i, a, l = !1) {
74957
74957
  debugger;
74958
74958
  } else if (ie.type === "number_literal") {
74959
74959
  const H = new Pr(i);
74960
- H.value = ie.value, H.valueType = Ht.Number, p.left = H, p.operator = S;
74960
+ H.value = ie.value, H.valueType = Yt.Number, p.left = H, p.operator = S;
74961
74961
  } else if (ie.type === "string_literal") {
74962
74962
  const H = new Pr(i);
74963
- V(ie.value).isValid() ? (H.value = new Date(ie.value), H.valueType = Ht.Date) : (H.value = ie.value, H.valueType = Ht.String), p.left = H, p.operator = S;
74963
+ V(ie.value).isValid() ? (H.value = new Date(ie.value), H.valueType = Yt.Date) : (H.value = ie.value, H.valueType = Yt.String), p.left = H, p.operator = S;
74964
74964
  } else if (ie.type === "boolean_literal") {
74965
74965
  const H = new Pr(i);
74966
- H.value = ie.value, H.valueType = Ht.Boolean, p.left = H, p.operator = S;
74966
+ H.value = ie.value, H.valueType = Yt.Boolean, p.left = H, p.operator = S;
74967
74967
  } else if (ie.type === "null_literal") {
74968
74968
  const H = new Pr(i);
74969
- H.value = ie.value, H.valueType = Ht.Null, p.left = H, p.operator = S;
74969
+ H.value = ie.value, H.valueType = Yt.Null, p.left = H, p.operator = S;
74970
74970
  } else if (ie.type === "binary_expr") {
74971
74971
  const H = Gc(
74972
74972
  ie
@@ -75008,7 +75008,7 @@ function In(d, u, i, a, l = !1) {
75008
75008
  (de) => We(de.as) === We(ue.text)
75009
75009
  );
75010
75010
  if (H) {
75011
- p.right = new Jt(i), p.right.source = H, p.right.as = We(H.as);
75011
+ p.right = new Wt(i), p.right.source = H, p.right.as = We(H.as);
75012
75012
  const de = new Zi(i);
75013
75013
  de.entity = ((x = H.parent) == null ? void 0 : x.entity) || null, de.query = ((K = H.parent) == null ? void 0 : K.query) || null, de.aggregation = ((k = H.parent) == null ? void 0 : k.aggregation) || null, de.sourceType = ((W = H.parent) == null ? void 0 : W.sourceType) || null;
75014
75014
  const ve = i.addDataSource(de);
@@ -75023,7 +75023,7 @@ function In(d, u, i, a, l = !1) {
75023
75023
  if (l)
75024
75024
  debugger;
75025
75025
  if (de) {
75026
- p.right = new Jt(i), p.right.source = de, p.right.as = We(de.as);
75026
+ p.right = new Wt(i), p.right.source = de, p.right.as = We(de.as);
75027
75027
  const ve = new Zi(i);
75028
75028
  ve.entity = ((te = de.parent) == null ? void 0 : te.entity) || null, ve.query = ((ee = de.parent) == null ? void 0 : ee.query) || null, ve.aggregation = ((ce = de.parent) == null ? void 0 : ce.aggregation) || null, ve.sourceType = ((re = de.parent) == null ? void 0 : re.sourceType) || null;
75029
75029
  const Pe = i.addDataSource(ve);
@@ -75034,16 +75034,16 @@ function In(d, u, i, a, l = !1) {
75034
75034
  debugger;
75035
75035
  } else if (ue.type === "number_literal") {
75036
75036
  const H = new Pr(i);
75037
- H.value = ue.value, H.valueType = Ht.Number, p.right = H;
75037
+ H.value = ue.value, H.valueType = Yt.Number, p.right = H;
75038
75038
  } else if (ue.type === "string_literal") {
75039
75039
  const H = new Pr(i);
75040
- V(ue.value).isValid() ? (H.value = new Date(ue.value), H.valueType = Ht.Date) : (H.value = ue.value, H.valueType = Ht.String), p.right = H;
75040
+ V(ue.value).isValid() ? (H.value = new Date(ue.value), H.valueType = Yt.Date) : (H.value = ue.value, H.valueType = Yt.String), p.right = H;
75041
75041
  } else if (ue.type === "boolean_literal") {
75042
75042
  const H = new Pr(i);
75043
- H.value = ue.value, H.valueType = Ht.Boolean, p.right = H;
75043
+ H.value = ue.value, H.valueType = Yt.Boolean, p.right = H;
75044
75044
  } else if (ue.type === "null_literal") {
75045
75045
  const H = new Pr(i);
75046
- H.value = ue.value, H.valueType = Ht.Null, p.right = H;
75046
+ H.value = ue.value, H.valueType = Yt.Null, p.right = H;
75047
75047
  } else if (ue.type === "binary_expr") {
75048
75048
  if (l)
75049
75049
  debugger;
@@ -75316,44 +75316,44 @@ function QM(d, u, i = !1) {
75316
75316
  const y = p.expr;
75317
75317
  if (y.type === "string_literal") {
75318
75318
  const v = new Pr(u);
75319
- V(y.value).isValid() ? (v.value = new Date(y.value), v.valueType = Ht.Date) : (v.value = y.value, v.valueType = Ht.String);
75320
- const b = new Jt(u);
75319
+ V(y.value).isValid() ? (v.value = new Date(y.value), v.valueType = Yt.Date) : (v.value = y.value, v.valueType = Yt.String);
75320
+ const b = new Wt(u);
75321
75321
  b.source = v, b.as = p.alias.text, t.push(b);
75322
75322
  } else if (y.type === "number_literal") {
75323
75323
  const v = new Pr(u);
75324
- v.value = y.value, v.valueType = Ht.Number;
75325
- const b = new Jt(u);
75324
+ v.value = y.value, v.valueType = Yt.Number;
75325
+ const b = new Wt(u);
75326
75326
  b.source = v, b.as = p.alias.text, t.push(b);
75327
75327
  } else if (y.type === "boolean_literal") {
75328
75328
  const v = new Pr(u);
75329
- v.value = y.value, v.valueType = Ht.Boolean;
75330
- const b = new Jt(u);
75329
+ v.value = y.value, v.valueType = Yt.Boolean;
75330
+ const b = new Wt(u);
75331
75331
  b.source = v, b.as = p.alias.text, t.push(b);
75332
75332
  } else if (y.type === "null_literal") {
75333
75333
  const v = new Pr(u);
75334
- v.value = y.value, v.valueType = Ht.Null;
75335
- const b = new Jt(u);
75334
+ v.value = y.value, v.valueType = Yt.Null;
75335
+ const b = new Wt(u);
75336
75336
  b.source = v, b.as = p.alias.text, t.push(b);
75337
75337
  }
75338
75338
  } else if (p.type === "string_literal") {
75339
75339
  const y = new Pr(u);
75340
- V(p.value).isValid() ? (y.value = new Date(p.value), y.valueType = Ht.Date) : (y.value = p.value, y.valueType = Ht.String);
75341
- const v = new Jt(u);
75340
+ V(p.value).isValid() ? (y.value = new Date(p.value), y.valueType = Yt.Date) : (y.value = p.value, y.valueType = Yt.String);
75341
+ const v = new Wt(u);
75342
75342
  v.source = y, v.as = p.value.toString(), t.push(v);
75343
75343
  } else if (p.type === "number_literal") {
75344
75344
  const y = new Pr(u);
75345
- y.value = p.value, y.valueType = Ht.Number;
75346
- const v = new Jt(u);
75345
+ y.value = p.value, y.valueType = Yt.Number;
75346
+ const v = new Wt(u);
75347
75347
  v.source = y, v.as = p.value.toString(), t.push(v);
75348
75348
  } else if (p.type === "boolean_literal") {
75349
75349
  const y = new Pr(u);
75350
- y.value = p.value, y.valueType = Ht.Boolean;
75351
- const v = new Jt(u);
75350
+ y.value = p.value, y.valueType = Yt.Boolean;
75351
+ const v = new Wt(u);
75352
75352
  v.source = y, v.as = "boolean", t.push(v);
75353
75353
  } else if (p.type === "null_literal") {
75354
75354
  const y = new Pr(u);
75355
- y.value = p.value, y.valueType = Ht.Null;
75356
- const v = new Jt(u);
75355
+ y.value = p.value, y.valueType = Yt.Null;
75356
+ const v = new Wt(u);
75357
75357
  v.source = y, v.as = "empty", t.push(v);
75358
75358
  }
75359
75359
  return t;
@@ -75544,7 +75544,7 @@ function up(d, u, i = null, a = !1) {
75544
75544
  ].filter((H, de, ve) => ve.findIndex((Pe) => We(Pe.as) === We(H.as)) === de);
75545
75545
  x.forEach((H) => {
75546
75546
  var Pe, De, Ie, Re, Be;
75547
- const de = new Jt(p), ve = (((Pe = p.from) == null ? void 0 : Pe.columns) || []).find(
75547
+ const de = new Wt(p), ve = (((Pe = p.from) == null ? void 0 : Pe.columns) || []).find(
75548
75548
  ($e) => $e.as === H.from
75549
75549
  );
75550
75550
  if (ve) {
@@ -75560,7 +75560,7 @@ function up(d, u, i = null, a = !1) {
75560
75560
  for (let Pe = 0; Pe < ve.columns.length; Pe++) {
75561
75561
  const De = ve.columns[Pe];
75562
75562
  if (We(De.as) === H.from) {
75563
- const Ie = new Jt(p);
75563
+ const Ie = new Wt(p);
75564
75564
  Ie.source = De, Ie.as = We(H.to);
75565
75565
  const Re = new Zi(p);
75566
75566
  Re.sourceType = Hn.Aggregation, Re.aggregation = ve;
@@ -75599,11 +75599,11 @@ function up(d, u, i = null, a = !1) {
75599
75599
  );
75600
75600
  if (ie !== null) {
75601
75601
  const H = new Pr(p);
75602
- H.valueType = Ht.Number, H.value = ie, p.limit = H;
75602
+ H.valueType = Yt.Number, H.value = ie, p.limit = H;
75603
75603
  }
75604
75604
  if ((p.limit === null || p.limit === void 0 || ie === 1) && (p.asList = (i == null ? void 0 : i.resultsAsList) || !1), S !== null) {
75605
75605
  const H = new Pr(p);
75606
- H.valueType = Ht.Number, H.value = S, p.offset = H;
75606
+ H.valueType = Yt.Number, H.value = S, p.offset = H;
75607
75607
  }
75608
75608
  return ue && aL(
75609
75609
  ue,
@@ -75655,13 +75655,13 @@ const ZAt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
75655
75655
  }, Symbol.toStringTag, { value: "Module" }));
75656
75656
  function n$(d) {
75657
75657
  switch (d) {
75658
- case Ht.String:
75658
+ case Yt.String:
75659
75659
  return z.String;
75660
- case Ht.Number:
75660
+ case Yt.Number:
75661
75661
  return z.Number;
75662
- case Ht.Boolean:
75662
+ case Yt.Boolean:
75663
75663
  return z.Boolean;
75664
- case Ht.Date:
75664
+ case Yt.Date:
75665
75665
  return z.Date;
75666
75666
  default:
75667
75667
  return z.String;
@@ -75669,19 +75669,19 @@ function n$(d) {
75669
75669
  }
75670
75670
  function a$(d, u) {
75671
75671
  switch (d) {
75672
- case Ht.String:
75672
+ case Yt.String:
75673
75673
  return u.get(
75674
75674
  me["primitive-entity"].string.id
75675
75675
  );
75676
- case Ht.Number:
75676
+ case Yt.Number:
75677
75677
  return u.get(
75678
75678
  me["primitive-entity"].number.id
75679
75679
  );
75680
- case Ht.Boolean:
75680
+ case Yt.Boolean:
75681
75681
  return u.get(
75682
75682
  me["primitive-entity"].boolean.id
75683
75683
  );
75684
- case Ht.Date:
75684
+ case Yt.Date:
75685
75685
  return u.get(
75686
75686
  me["primitive-entity"].date.id
75687
75687
  );
@@ -93959,7 +93959,7 @@ function Sa(d) {
93959
93959
  const u = [];
93960
93960
  if (d.parent === d.project)
93961
93961
  !d.calledBy.length && d.type !== f.VariableDeclaration && u.push(
93962
- new Wt({
93962
+ new Ht({
93963
93963
  id: `${d.id}--${ne.DisconnectedCallableEntity}`,
93964
93964
  code: ne.DisconnectedCallableEntity,
93965
93965
  severity: Z.Warning,
@@ -93994,7 +93994,7 @@ This '${d.type}' is blocked `;
93994
93994
  d.project
93995
93995
  )}" with id "${y.id}" that calls a '${v.type}' entity with id "${v.id}"`, t < i.blocks.length - 1 ? l += ", " : l += ".";
93996
93996
  }), u.push(
93997
- new Wt({
93997
+ new Ht({
93998
93998
  id: `${d.id}--${oe.UnreachableEntity}`,
93999
93999
  code: oe.UnreachableEntity,
94000
94000
  severity: Z.Warning,
@@ -96560,7 +96560,7 @@ function _a(d, u, i, a) {
96560
96560
  return !!p.implements && ((b = v.implements) == null ? void 0 : b.id) === ((w = p.implements) == null ? void 0 : w.id);
96561
96561
  });
96562
96562
  if (t) {
96563
- const v = new Wt({
96563
+ const v = new Ht({
96564
96564
  id: p.id + "--" + t.id + "--" + a,
96565
96565
  message: `Entity of type ${p.type} named "${p.name}" with id "${p.id}" overrides a base ${t.type} ${t.name} with id "${t.id}" that has the same name`,
96566
96566
  issue: null,
@@ -96572,7 +96572,7 @@ function _a(d, u, i, a) {
96572
96572
  l.push(v);
96573
96573
  }
96574
96574
  if (y) {
96575
- const v = new Wt({
96575
+ const v = new Ht({
96576
96576
  id: p.id + "--" + y.id + "--" + i,
96577
96577
  message: `Entity of type ${p.type} named "${p.name}" with id "${p.id}" overrides a base ${y.type} ${y.name} with id "${y.id}" that implements the same base descriptor`,
96578
96578
  issue: null,
@@ -96590,7 +96590,7 @@ function _a(d, u, i, a) {
96590
96590
  return !!b.implements && ((w = b.implements) == null ? void 0 : w.id) === ((I = p.implements) == null ? void 0 : I.id);
96591
96591
  });
96592
96592
  if (t) {
96593
- const b = new Wt({
96593
+ const b = new Ht({
96594
96594
  id: t.id + "--" + p.id + "--" + a,
96595
96595
  message: `Entity of type ${t.type} named "${t.name}" with id "${t.id}" overrides a base entity ${p.name} with id "${p.id}" that has the same name`,
96596
96596
  issue: null,
@@ -96602,7 +96602,7 @@ function _a(d, u, i, a) {
96602
96602
  l.push(b);
96603
96603
  }
96604
96604
  if (y) {
96605
- const b = new Wt({
96605
+ const b = new Ht({
96606
96606
  id: y.id + "--" + p.id + "--" + i,
96607
96607
  message: `Entity of type ${y.type} named "${y.name}" with id "${y.id}" overrides a base entity ${p.name} with id "${p.id}" that implements the same base ${(v = y == null ? void 0 : y.implements) == null ? void 0 : v.type}`,
96608
96608
  issue: null,
@@ -96693,7 +96693,7 @@ function WTt(d, u) {
96693
96693
  override: u
96694
96694
  };
96695
96695
  if (a.includes(" ")) {
96696
- const l = new Wt({
96696
+ const l = new Ht({
96697
96697
  id: d.id + "--string-value-must-not-have-spaces",
96698
96698
  message: `Entity of type ${d.type} with id "${d.id}" has an invalid value "${u}". The value cannot contain spaces.`,
96699
96699
  issue: null,
@@ -96721,7 +96721,7 @@ function HTt(d, u) {
96721
96721
  override: u
96722
96722
  };
96723
96723
  if (a.includes(" ")) {
96724
- const l = new Wt({
96724
+ const l = new Ht({
96725
96725
  id: d.id + "--string-value-must-not-have-spaces",
96726
96726
  message: `Entity of type ${d.type} with id "${d.id}" has an invalid value "${u}". The value cannot contain spaces or dashes.`,
96727
96727
  issue: null,
@@ -96732,7 +96732,7 @@ function HTt(d, u) {
96732
96732
  i.push(l);
96733
96733
  }
96734
96734
  if (a.includes("-")) {
96735
- const l = new Wt({
96735
+ const l = new Ht({
96736
96736
  id: d.id + "--string-value-must-not-have-dashes",
96737
96737
  message: `Entity of type ${d.type} with id "${d.id}" has an invalid value "${u}". The value cannot contain spaces or dashes.`,
96738
96738
  issue: null,
@@ -97096,21 +97096,21 @@ function e1t(d) {
97096
97096
  function obt(d, u = /* @__PURE__ */ new Set()) {
97097
97097
  return d.writesValues.filter(
97098
97098
  (a) => lt.includes(a.type) && !u.has(a.id)
97099
- ).reduce((a, l) => u.has(l.id) ? a : [...a, ...Yt(l, u)], []);
97099
+ ).reduce((a, l) => u.has(l.id) ? a : [...a, ...Jt(l, u)], []);
97100
97100
  }
97101
97101
  function lbt(d, u = /* @__PURE__ */ new Set()) {
97102
97102
  var a;
97103
97103
  return (((a = d.readsValue) == null ? void 0 : a.writesValues) || []).filter(
97104
97104
  (l) => lt.includes(l.type) && !u.has(l.id)
97105
- ).reduce((l, p) => u.has(p.id) ? l : [...l, ...Yt(p, u)], []);
97105
+ ).reduce((l, p) => u.has(p.id) ? l : [...l, ...Jt(p, u)], []);
97106
97106
  }
97107
- function Yt(d, u = /* @__PURE__ */ new Set()) {
97107
+ function Jt(d, u = /* @__PURE__ */ new Set()) {
97108
97108
  if (u.has(d.id))
97109
97109
  return [];
97110
97110
  if (d.type === f.ReturnStatement)
97111
97111
  return ibt(
97112
97112
  d.outputs
97113
- ).reduce((a, l) => [...a, ...Yt(l, u)], []);
97113
+ ).reduce((a, l) => [...a, ...Jt(l, u)], []);
97114
97114
  if (d.type === f.FunctionCall || d.type === f.Operation || d.type === f.Condition)
97115
97115
  return [
97116
97116
  ...ft(d).reduce(
@@ -97118,7 +97118,7 @@ function Yt(d, u = /* @__PURE__ */ new Set()) {
97118
97118
  const y = fr(t);
97119
97119
  return [
97120
97120
  ...p,
97121
- ...Yt(
97121
+ ...Jt(
97122
97122
  y || t,
97123
97123
  u
97124
97124
  )
@@ -97128,7 +97128,7 @@ function Yt(d, u = /* @__PURE__ */ new Set()) {
97128
97128
  ),
97129
97129
  ...rbt(d.inputs),
97130
97130
  ...abt(d.outputs)
97131
- ].reduce((p, t) => [...p, ...Yt(t, u)], []);
97131
+ ].reduce((p, t) => [...p, ...Jt(t, u)], []);
97132
97132
  if (hp.includes(d.type)) {
97133
97133
  const i = $T(
97134
97134
  d.inputs
@@ -97137,7 +97137,7 @@ function Yt(d, u = /* @__PURE__ */ new Set()) {
97137
97137
  const y = fr(t);
97138
97138
  return [
97139
97139
  ...p,
97140
- ...Yt(
97140
+ ...Jt(
97141
97141
  y || t,
97142
97142
  u
97143
97143
  )
@@ -97145,7 +97145,7 @@ function Yt(d, u = /* @__PURE__ */ new Set()) {
97145
97145
  },
97146
97146
  []
97147
97147
  );
97148
- return i.push(...l), i.reduce((p, t) => [...p, ...Yt(t, u)], []);
97148
+ return i.push(...l), i.reduce((p, t) => [...p, ...Jt(t, u)], []);
97149
97149
  }
97150
97150
  if (d.type === f.FunctionDeclaration) {
97151
97151
  const i = [
@@ -97159,7 +97159,7 @@ function Yt(d, u = /* @__PURE__ */ new Set()) {
97159
97159
  const y = fr(t);
97160
97160
  return [
97161
97161
  ...p,
97162
- ...Yt(
97162
+ ...Jt(
97163
97163
  y || t,
97164
97164
  u
97165
97165
  )
@@ -97167,7 +97167,7 @@ function Yt(d, u = /* @__PURE__ */ new Set()) {
97167
97167
  },
97168
97168
  []
97169
97169
  );
97170
- return i.push(...l), i.reduce((p, t) => [...p, ...Yt(t)], []);
97170
+ return i.push(...l), i.reduce((p, t) => [...p, ...Jt(t)], []);
97171
97171
  }
97172
97172
  if (lt.includes(d.type)) {
97173
97173
  u.add(d.id);
@@ -97176,7 +97176,7 @@ function Yt(d, u = /* @__PURE__ */ new Set()) {
97176
97176
  const t = fr(p);
97177
97177
  return [
97178
97178
  ...l,
97179
- ...Yt(
97179
+ ...Jt(
97180
97180
  t || p,
97181
97181
  u
97182
97182
  )
@@ -99249,7 +99249,7 @@ function tIt(d) {
99249
99249
  function rIt(d, u) {
99250
99250
  const i = [], a = Ci(u);
99251
99251
  if (!u.abstract) {
99252
- const t = new Wt({
99252
+ const t = new Ht({
99253
99253
  id: d.id + "--" + u.id + "--" + ne.ImplementingNonAbstractEntity,
99254
99254
  message: `Entity "${d.name}" with id "${d.id}" is implementing a non-abstract built-in entity "${u.name}" with id "${u.id}"`,
99255
99255
  issue: null,
@@ -99264,7 +99264,7 @@ function rIt(d, u) {
99264
99264
  (t) => t.id !== u.id
99265
99265
  );
99266
99266
  if (d.abstract) {
99267
- const t = new Wt({
99267
+ const t = new Ht({
99268
99268
  id: d.id + "--" + u.id + "--" + ne.AbstractEntityImplements,
99269
99269
  message: `Entity "${d.name}" with id "${d.id}" is marked as abstract and cannot implement built-in entity "${u.name}" with id "${u.id}"`,
99270
99270
  issue: null,
@@ -99276,7 +99276,7 @@ function rIt(d, u) {
99276
99276
  i.push(t);
99277
99277
  }
99278
99278
  if (d.static && !u.static) {
99279
- const t = new Wt({
99279
+ const t = new Ht({
99280
99280
  id: d.id + "--" + u.id + "--" + ne.StaticImplementingNonStaticEntity,
99281
99281
  message: `Entity "${d.name}" with id "${d.id}" is marked as static and cannot implement non-static built-in entity "${u.name}" with id "${u.id}"`,
99282
99282
  issue: null,
@@ -99288,7 +99288,7 @@ function rIt(d, u) {
99288
99288
  i.push(t);
99289
99289
  }
99290
99290
  if (!d.static && u.static) {
99291
- const t = new Wt({
99291
+ const t = new Ht({
99292
99292
  id: d.id + "--" + u.id + "--" + ne.NonStaticImplementingStaticEntity,
99293
99293
  message: `Entity "${d.name}" with id "${d.id}" is not marked as static and cannot implement static built-in entity "${u.name}" with id "${u.id}"`,
99294
99294
  issue: null,
@@ -99306,7 +99306,7 @@ function rIt(d, u) {
99306
99306
  );
99307
99307
  y.length && y.forEach((v) => {
99308
99308
  if (v.id !== t.id) {
99309
- const b = new Wt({
99309
+ const b = new Ht({
99310
99310
  id: d.id + "--" + v.id + "--" + t.id + "--" + ne.ImplementsIncompatibleEntities,
99311
99311
  message: `Entity "${d.name}" with id "${d.id}" is implementing built-in entity "${v.name}" with id "${v.id}" but also implements entity "${t.name}" with id "${t.id}" which is incompatible`,
99312
99312
  issue: null,
@@ -99326,7 +99326,7 @@ function rIt(d, u) {
99326
99326
  );
99327
99327
  I.length && I.forEach((P) => {
99328
99328
  if (P.id !== w.id) {
99329
- const N = new Wt({
99329
+ const N = new Ht({
99330
99330
  id: d.id + "--" + P.id + "--" + w.id + "--" + ne.ImplementsIncompatibleEntities,
99331
99331
  message: `Entity "${d.name}" with id "${d.id}" is implementing built-in entity "${P.name}" with id "${P.id}" but also implements entity "${w.name}" with id "${w.id}" which is incompatible`,
99332
99332
  issue: null,
@@ -99361,7 +99361,7 @@ function rIt(d, u) {
99361
99361
  if (!a.find(
99362
99362
  (y) => y.id === t.id
99363
99363
  )) {
99364
- const y = new Wt({
99364
+ const y = new Ht({
99365
99365
  id: d.id + "--" + u.id + "--" + t.id + "--" + ne.ExtendsIncompatibleEntities,
99366
99366
  message: `Entity "${d.name}" with id "${d.id}" is implementing built-in entity "${u.name}" with id "${u.id}" but also extends entity "${t.name}" with id "${t.id}" which is incompatible`,
99367
99367
  issue: null,
@@ -99467,7 +99467,7 @@ function iIt(d, u, i = !1) {
99467
99467
  );
99468
99468
  te.length && te.forEach((ee) => {
99469
99469
  if (ee.id !== W.id) {
99470
- const ce = new Wt({
99470
+ const ce = new Ht({
99471
99471
  id: d.id + "--" + ee.id + "--" + W.id + "--" + ne.ImplementsIncompatibleEntities,
99472
99472
  message: `Entity "${d.name}" with id "${d.id}" is extending built-in entity "${ee.name}" with id "${ee.id}" but also extends or implements entity "${W.name}" with id "${W.id}" which is incompatible`,
99473
99473
  issue: null,
@@ -99524,7 +99524,7 @@ function iIt(d, u, i = !1) {
99524
99524
  );
99525
99525
  I.length && I.forEach((P) => {
99526
99526
  if (P.id !== w.id) {
99527
- const N = new Wt({
99527
+ const N = new Ht({
99528
99528
  id: d.id + "--" + P.id + "--" + w.id + "--" + ne.ImplementsIncompatibleEntities,
99529
99529
  message: `Entity "${d.name}" with id "${d.id}" is implementing built-in entity "${P.name}" with id "${P.id}" but also implements entity "${w.name}" with id "${w.id}" which is incompatible`,
99530
99530
  issue: null,
@@ -99544,7 +99544,7 @@ function iIt(d, u, i = !1) {
99544
99544
  );
99545
99545
  K.length && K.forEach((k) => {
99546
99546
  if (k.id !== x.id) {
99547
- const W = new Wt({
99547
+ const W = new Ht({
99548
99548
  id: d.id + "--" + k.id + "--" + x.id + "--" + ne.ImplementsIncompatibleEntities,
99549
99549
  message: `Entity "${d.name}" with id "${d.id}" is implementing built-in entity "${k.name}" with id "${k.id}" but also implements entity "${x.name}" with id "${x.id}" which is incompatible`,
99550
99550
  issue: null,
@@ -99593,7 +99593,7 @@ function iIt(d, u, i = !1) {
99593
99593
  if (!l.find(
99594
99594
  (I) => I.id === w.id
99595
99595
  )) {
99596
- const I = new Wt({
99596
+ const I = new Ht({
99597
99597
  id: d.id + "--" + u.id + "--" + w.id + "--" + ne.ImplementsIncompatibleEntities,
99598
99598
  message: `Entity "${d.name}" with id "${d.id}" is extending built-in entity "${u.name}" with id "${u.id}" but also extends entity "${w.name}" with id "${w.id}" which is incompatible`,
99599
99599
  issue: null,
@@ -99611,7 +99611,7 @@ function sIt(d) {
99611
99611
  const u = [];
99612
99612
  return d.implements.forEach((i) => {
99613
99613
  if (!i.static) {
99614
- const a = new Wt({
99614
+ const a = new Ht({
99615
99615
  id: d.id + "--" + i.id + "--" + ne.StaticImplementingNonStaticEntity,
99616
99616
  message: `Entity "${d.name}" with id "${d.id}" is static but implements entity "${i.name}" with id "${i.id}" which is non-static`,
99617
99617
  issue: null,
@@ -99624,7 +99624,7 @@ function sIt(d) {
99624
99624
  }
99625
99625
  }), d.extends.forEach((i) => {
99626
99626
  if (!i.static) {
99627
- const a = new Wt({
99627
+ const a = new Ht({
99628
99628
  id: d.id + "--" + i.id + "--" + ne.StaticExtendingNonStaticEntity,
99629
99629
  message: `Entity "${d.name}" with id "${d.id}" is static but extends entity "${i.name}" with id "${i.id}" which is non-static`,
99630
99630
  issue: null,
@@ -99640,7 +99640,7 @@ function sIt(d) {
99640
99640
  function nIt(d) {
99641
99641
  const u = [];
99642
99642
  if (d.implements.length) {
99643
- const i = new Wt({
99643
+ const i = new Ht({
99644
99644
  id: d.id + "--" + ne.AbstractEntityImplements,
99645
99645
  message: `Entity "${d.name}" with id "${d.id}" cannot be marked as abstract because it implements other entities`,
99646
99646
  issue: null,
@@ -99652,7 +99652,7 @@ function nIt(d) {
99652
99652
  }
99653
99653
  return d.extends.forEach((i) => {
99654
99654
  if (!i.abstract) {
99655
- const a = new Wt({
99655
+ const a = new Ht({
99656
99656
  id: d.id + "--" + i.id + "--" + ne.AbstractExtendingNonAbstractEntity,
99657
99657
  message: `Entity "${d.name}" with id "${d.id}" is abstract but extends entity "${i.name}" with id "${i.id}" which is non-abstract`,
99658
99658
  issue: null,
@@ -99669,7 +99669,7 @@ function aIt(d) {
99669
99669
  const u = [];
99670
99670
  return d.extends.forEach((i) => {
99671
99671
  if (i.static) {
99672
- const a = new Wt({
99672
+ const a = new Ht({
99673
99673
  id: d.id + "--" + i.id + "--" + ne.NonStaticExtendingStaticEntity,
99674
99674
  message: `Entity "${d.name}" with id "${d.id}" is non-static but extends entity "${i.name}" with id "${i.id}" which is static`,
99675
99675
  issue: null,
@@ -99686,7 +99686,7 @@ function oIt(d) {
99686
99686
  const u = [];
99687
99687
  return d.extends.forEach((i) => {
99688
99688
  if (i.abstract) {
99689
- const a = new Wt({
99689
+ const a = new Ht({
99690
99690
  id: d.id + "--" + i.id + "--" + ne.NonAbstractExtendingAbstractEntity,
99691
99691
  message: `Entity "${d.name}" with id "${d.id}" is non-abstract but extends entity "${i.name}" with id "${i.id}" which is abstract`,
99692
99692
  issue: null,
@@ -103897,27 +103897,27 @@ const Je = class Je extends mr {
103897
103897
  return [
103898
103898
  ...this.variableDeclarations,
103899
103899
  ...this.getEntryPoints().reduce((a, l) => {
103900
- const p = Yt(l);
103900
+ const p = Jt(l);
103901
103901
  return [...a, ...p];
103902
103902
  }, []),
103903
103903
  ...this.functionCalls.reduce((a, l) => {
103904
- const p = Yt(l);
103904
+ const p = Jt(l);
103905
103905
  return [...a, ...p];
103906
103906
  }, []),
103907
103907
  ...this.conditions.reduce((a, l) => {
103908
- const p = Yt(l);
103908
+ const p = Jt(l);
103909
103909
  return [...a, ...p];
103910
103910
  }, []),
103911
103911
  ...this.operations.reduce((a, l) => {
103912
- const p = Yt(l);
103912
+ const p = Jt(l);
103913
103913
  return [...a, ...p];
103914
103914
  }, []),
103915
103915
  ...this.loops.reduce((a, l) => {
103916
- const p = Yt(l);
103916
+ const p = Jt(l);
103917
103917
  return [...a, ...p];
103918
103918
  }, []),
103919
103919
  ...this.searches.reduce((a, l) => {
103920
- const p = Yt(l);
103920
+ const p = Jt(l);
103921
103921
  return [...a, ...p];
103922
103922
  }, [])
103923
103923
  ];
@@ -103925,38 +103925,44 @@ const Je = class Je extends mr {
103925
103925
  getVariableInstances() {
103926
103926
  return [
103927
103927
  ...this.variableInstances,
103928
+ ...this.entities.reduce((a, l) => l.methods.flatMap((p) => {
103929
+ const y = Jt(p).filter(
103930
+ (v) => v.type === f.VariableInstance
103931
+ );
103932
+ return [...a, ...y];
103933
+ }), []),
103928
103934
  ...this.getEntryPoints().reduce((a, l) => {
103929
- const t = Yt(l).filter(
103935
+ const t = Jt(l).filter(
103930
103936
  (y) => y.type === f.VariableInstance
103931
103937
  );
103932
103938
  return [...a, ...t];
103933
103939
  }, []),
103934
103940
  ...this.functionCalls.reduce((a, l) => {
103935
- const t = Yt(l).filter(
103941
+ const t = Jt(l).filter(
103936
103942
  (y) => y.type === f.VariableInstance
103937
103943
  );
103938
103944
  return [...a, ...t];
103939
103945
  }, []),
103940
103946
  ...this.conditions.reduce((a, l) => {
103941
- const t = Yt(l).filter(
103947
+ const t = Jt(l).filter(
103942
103948
  (y) => y.type === f.VariableInstance
103943
103949
  );
103944
103950
  return [...a, ...t];
103945
103951
  }, []),
103946
103952
  ...this.operations.reduce((a, l) => {
103947
- const t = Yt(l).filter(
103953
+ const t = Jt(l).filter(
103948
103954
  (y) => y.type === f.VariableInstance
103949
103955
  );
103950
103956
  return [...a, ...t];
103951
103957
  }, []),
103952
103958
  ...this.loops.reduce((a, l) => {
103953
- const t = Yt(l).filter(
103959
+ const t = Jt(l).filter(
103954
103960
  (y) => y.type === f.VariableInstance
103955
103961
  );
103956
103962
  return [...a, ...t];
103957
103963
  }, []),
103958
103964
  ...this.searches.reduce((a, l) => {
103959
- const t = Yt(l).filter(
103965
+ const t = Jt(l).filter(
103960
103966
  (y) => y.type === f.VariableInstance
103961
103967
  );
103962
103968
  return [...a, ...t];
@@ -103966,38 +103972,44 @@ const Je = class Je extends mr {
103966
103972
  getVariableDeclarations() {
103967
103973
  return R([
103968
103974
  ...this.variableDeclarations,
103975
+ ...this.entities.reduce((a, l) => l.methods.flatMap((p) => {
103976
+ const y = Jt(p).filter(
103977
+ (v) => v.type === f.VariableDeclaration
103978
+ );
103979
+ return [...a, ...y];
103980
+ }), []),
103969
103981
  ...this.getEntryPoints().reduce((a, l) => {
103970
- const t = Yt(l).filter(
103982
+ const t = Jt(l).filter(
103971
103983
  (y) => y.type === f.VariableDeclaration
103972
103984
  );
103973
103985
  return [...a, ...t];
103974
103986
  }, []),
103975
103987
  ...this.functionCalls.reduce((a, l) => {
103976
- const t = Yt(l).filter(
103988
+ const t = Jt(l).filter(
103977
103989
  (y) => y.type === f.VariableDeclaration
103978
103990
  );
103979
103991
  return [...a, ...t];
103980
103992
  }, []),
103981
103993
  ...this.conditions.reduce((a, l) => {
103982
- const t = Yt(l).filter(
103994
+ const t = Jt(l).filter(
103983
103995
  (y) => y.type === f.VariableDeclaration
103984
103996
  );
103985
103997
  return [...a, ...t];
103986
103998
  }, []),
103987
103999
  ...this.operations.reduce((a, l) => {
103988
- const t = Yt(l).filter(
104000
+ const t = Jt(l).filter(
103989
104001
  (y) => y.type === f.VariableDeclaration
103990
104002
  );
103991
104003
  return [...a, ...t];
103992
104004
  }, []),
103993
104005
  ...this.loops.reduce((a, l) => {
103994
- const t = Yt(l).filter(
104006
+ const t = Jt(l).filter(
103995
104007
  (y) => y.type === f.VariableDeclaration
103996
104008
  );
103997
104009
  return [...a, ...t];
103998
104010
  }, []),
103999
104011
  ...this.searches.reduce((a, l) => {
104000
- const t = Yt(l).filter(
104012
+ const t = Jt(l).filter(
104001
104013
  (y) => y.type === f.VariableDeclaration
104002
104014
  );
104003
104015
  return [...a, ...t];
@@ -105095,7 +105107,7 @@ var DIt = /* @__PURE__ */ ((d) => (d.StatusCodeMustBeNumber = "status-code-must-
105095
105107
  function CIt(d, u) {
105096
105108
  const i = [];
105097
105109
  if (typeof u != "number") {
105098
- const a = new Wt({
105110
+ const a = new Ht({
105099
105111
  id: d.id + "--status-code-must-be-number",
105100
105112
  message: `Entity of type ${d.type} with id "${d.id}" has an invalid value "${u}". The value must be a number.`,
105101
105113
  issue: null,
@@ -105109,7 +105121,7 @@ function CIt(d, u) {
105109
105121
  };
105110
105122
  }
105111
105123
  if (u < 100) {
105112
- const a = new Wt({
105124
+ const a = new Ht({
105113
105125
  id: d.id + "--status-code-must-be-between-100-and-599",
105114
105126
  message: `Entity of type ${d.type} with id "${d.id}" has an invalid value "${u}". The value must be a number between 100 and 599.`,
105115
105127
  issue: null,
@@ -105120,7 +105132,7 @@ function CIt(d, u) {
105120
105132
  i.push(a);
105121
105133
  }
105122
105134
  if (u > 599) {
105123
- const a = new Wt({
105135
+ const a = new Ht({
105124
105136
  id: d.id + "--status-code-must-be-between-100-and-599",
105125
105137
  message: `Entity of type ${d.type} with id "${d.id}" has an invalid value "${u}". The value must be a number between 100 and 599.`,
105126
105138
  issue: null,
@@ -105737,7 +105749,7 @@ export {
105737
105749
  QKe as EXECUTION_OPERATIONS,
105738
105750
  kh as EfimeralValueStore,
105739
105751
  $It as EndpointEntity,
105740
- Wt as EntityError,
105752
+ Ht as EntityError,
105741
105753
  Z as EntityErrorSeverity,
105742
105754
  X as EntityGenerationError,
105743
105755
  q as EntityGenerationErrorCode,
@@ -106100,7 +106112,7 @@ export {
106100
106112
  Ubt as flattenVariableInstance,
106101
106113
  lbt as flattenVariableReads,
106102
106114
  obt as flattenVariableWrites,
106103
- Yt as flattenVariables,
106115
+ Jt as flattenVariables,
106104
106116
  E1t as fromChangeSetToRecordChangeSet,
106105
106117
  n$ as fromLiteralValueTypeToPrimitiveType,
106106
106118
  Cwt as fromPublishingDisabledCodeToReadable,