@elyx-code/project-logic-tree 0.0.6183 → 0.0.6184

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
@@ -23576,73 +23576,73 @@ var om = { exports: {} };
23576
23576
  var e = 1e3, t = 6e4, r = 36e5, s = "millisecond", d = "second", o = "minute", l = "hour", u = "day", y = "week", c = "month", m = "quarter", T = "year", D = "date", w = "Invalid Date", V = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, L = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, $ = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(ye) {
23577
23577
  var Q = ["th", "st", "nd", "rd"], W = ye % 100;
23578
23578
  return "[" + ye + (Q[(W - 20) % 10] || Q[W] || Q[0]) + "]";
23579
- } }, B = function(ye, Q, W) {
23579
+ } }, C = function(ye, Q, W) {
23580
23580
  var ae = String(ye);
23581
23581
  return !ae || ae.length >= Q ? ye : "" + Array(Q + 1 - ae.length).join(W) + ye;
23582
- }, U = { s: B, z: function(ye) {
23583
- var Q = -ye.utcOffset(), W = Math.abs(Q), ae = Math.floor(W / 60), K = W % 60;
23584
- return (Q <= 0 ? "+" : "-") + B(ae, 2, "0") + ":" + B(K, 2, "0");
23582
+ }, U = { s: C, z: function(ye) {
23583
+ var Q = -ye.utcOffset(), W = Math.abs(Q), ae = Math.floor(W / 60), H = W % 60;
23584
+ return (Q <= 0 ? "+" : "-") + C(ae, 2, "0") + ":" + C(H, 2, "0");
23585
23585
  }, m: function ye(Q, W) {
23586
23586
  if (Q.date() < W.date())
23587
23587
  return -ye(W, Q);
23588
- var ae = 12 * (W.year() - Q.year()) + (W.month() - Q.month()), K = Q.clone().add(ae, c), Te = W - K < 0, Ie = Q.clone().add(ae + (Te ? -1 : 1), c);
23589
- return +(-(ae + (W - K) / (Te ? K - Ie : Ie - K)) || 0);
23588
+ var ae = 12 * (W.year() - Q.year()) + (W.month() - Q.month()), H = Q.clone().add(ae, c), Te = W - H < 0, Ie = Q.clone().add(ae + (Te ? -1 : 1), c);
23589
+ return +(-(ae + (W - H) / (Te ? H - Ie : Ie - H)) || 0);
23590
23590
  }, a: function(ye) {
23591
23591
  return ye < 0 ? Math.ceil(ye) || 0 : Math.floor(ye);
23592
23592
  }, p: function(ye) {
23593
23593
  return { M: c, y: T, w: y, d: u, D, h: l, m: o, s: d, ms: s, Q: m }[ye] || String(ye || "").toLowerCase().replace(/s$/, "");
23594
23594
  }, u: function(ye) {
23595
23595
  return ye === void 0;
23596
- } }, k = "en", J = {};
23597
- J[k] = $;
23598
- var Y = "$isDayjsObject", de = function(ye) {
23599
- return ye instanceof $t || !(!ye || !ye[Y]);
23596
+ } }, k = "en", Z = {};
23597
+ Z[k] = $;
23598
+ var K = "$isDayjsObject", de = function(ye) {
23599
+ return ye instanceof $t || !(!ye || !ye[K]);
23600
23600
  }, he = function ye(Q, W, ae) {
23601
- var K;
23601
+ var H;
23602
23602
  if (!Q)
23603
23603
  return k;
23604
23604
  if (typeof Q == "string") {
23605
23605
  var Te = Q.toLowerCase();
23606
- J[Te] && (K = Te), W && (J[Te] = W, K = Te);
23606
+ Z[Te] && (H = Te), W && (Z[Te] = W, H = Te);
23607
23607
  var Ie = Q.split("-");
23608
- if (!K && Ie.length > 1)
23608
+ if (!H && Ie.length > 1)
23609
23609
  return ye(Ie[0]);
23610
23610
  } else {
23611
23611
  var rt = Q.name;
23612
- J[rt] = Q, K = rt;
23612
+ Z[rt] = Q, H = rt;
23613
23613
  }
23614
- return !ae && K && (k = K), K || !ae && k;
23615
- }, H = function(ye, Q) {
23614
+ return !ae && H && (k = H), H || !ae && k;
23615
+ }, Y = function(ye, Q) {
23616
23616
  if (de(ye))
23617
23617
  return ye.clone();
23618
23618
  var W = typeof Q == "object" ? Q : {};
23619
23619
  return W.date = ye, W.args = arguments, new $t(W);
23620
23620
  }, ne = U;
23621
23621
  ne.l = he, ne.i = de, ne.w = function(ye, Q) {
23622
- return H(ye, { locale: Q.$L, utc: Q.$u, x: Q.$x, $offset: Q.$offset });
23622
+ return Y(ye, { locale: Q.$L, utc: Q.$u, x: Q.$x, $offset: Q.$offset });
23623
23623
  };
23624
23624
  var $t = function() {
23625
23625
  function ye(W) {
23626
- this.$L = he(W.locale, null, !0), this.parse(W), this.$x = this.$x || W.x || {}, this[Y] = !0;
23626
+ this.$L = he(W.locale, null, !0), this.parse(W), this.$x = this.$x || W.x || {}, this[K] = !0;
23627
23627
  }
23628
23628
  var Q = ye.prototype;
23629
23629
  return Q.parse = function(W) {
23630
23630
  this.$d = function(ae) {
23631
- var K = ae.date, Te = ae.utc;
23632
- if (K === null)
23631
+ var H = ae.date, Te = ae.utc;
23632
+ if (H === null)
23633
23633
  return /* @__PURE__ */ new Date(NaN);
23634
- if (ne.u(K))
23634
+ if (ne.u(H))
23635
23635
  return /* @__PURE__ */ new Date();
23636
- if (K instanceof Date)
23637
- return new Date(K);
23638
- if (typeof K == "string" && !/Z$/i.test(K)) {
23639
- var Ie = K.match(V);
23636
+ if (H instanceof Date)
23637
+ return new Date(H);
23638
+ if (typeof H == "string" && !/Z$/i.test(H)) {
23639
+ var Ie = H.match(V);
23640
23640
  if (Ie) {
23641
23641
  var rt = Ie[2] - 1 || 0, Tt = (Ie[7] || "0").substring(0, 3);
23642
23642
  return Te ? new Date(Date.UTC(Ie[1], rt, Ie[3] || 1, Ie[4] || 0, Ie[5] || 0, Ie[6] || 0, Tt)) : new Date(Ie[1], rt, Ie[3] || 1, Ie[4] || 0, Ie[5] || 0, Ie[6] || 0, Tt);
23643
23643
  }
23644
23644
  }
23645
- return new Date(K);
23645
+ return new Date(H);
23646
23646
  }(W), this.init();
23647
23647
  }, Q.init = function() {
23648
23648
  var W = this.$d;
@@ -23652,24 +23652,24 @@ var om = { exports: {} };
23652
23652
  }, Q.isValid = function() {
23653
23653
  return this.$d.toString() !== w;
23654
23654
  }, Q.isSame = function(W, ae) {
23655
- var K = H(W);
23656
- return this.startOf(ae) <= K && K <= this.endOf(ae);
23655
+ var H = Y(W);
23656
+ return this.startOf(ae) <= H && H <= this.endOf(ae);
23657
23657
  }, Q.isAfter = function(W, ae) {
23658
- return H(W) < this.startOf(ae);
23658
+ return Y(W) < this.startOf(ae);
23659
23659
  }, Q.isBefore = function(W, ae) {
23660
- return this.endOf(ae) < H(W);
23661
- }, Q.$g = function(W, ae, K) {
23662
- return ne.u(W) ? this[ae] : this.set(K, W);
23660
+ return this.endOf(ae) < Y(W);
23661
+ }, Q.$g = function(W, ae, H) {
23662
+ return ne.u(W) ? this[ae] : this.set(H, W);
23663
23663
  }, Q.unix = function() {
23664
23664
  return Math.floor(this.valueOf() / 1e3);
23665
23665
  }, Q.valueOf = function() {
23666
23666
  return this.$d.getTime();
23667
23667
  }, Q.startOf = function(W, ae) {
23668
- var K = this, Te = !!ne.u(ae) || ae, Ie = ne.p(W), rt = function(Oi, qt) {
23669
- var si = ne.w(K.$u ? Date.UTC(K.$y, qt, Oi) : new Date(K.$y, qt, Oi), K);
23668
+ var H = this, Te = !!ne.u(ae) || ae, Ie = ne.p(W), rt = function(Oi, qt) {
23669
+ var si = ne.w(H.$u ? Date.UTC(H.$y, qt, Oi) : new Date(H.$y, qt, Oi), H);
23670
23670
  return Te ? si : si.endOf(u);
23671
23671
  }, Tt = function(Oi, qt) {
23672
- return ne.w(K.toDate()[Oi].apply(K.toDate("s"), (Te ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(qt)), K);
23672
+ return ne.w(H.toDate()[Oi].apply(H.toDate("s"), (Te ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(qt)), H);
23673
23673
  }, bt = this.$W, Bt = this.$M, pr = this.$D, bn = "set" + (this.$u ? "UTC" : "");
23674
23674
  switch (Ie) {
23675
23675
  case T:
@@ -23694,7 +23694,7 @@ var om = { exports: {} };
23694
23694
  }, Q.endOf = function(W) {
23695
23695
  return this.startOf(W, !1);
23696
23696
  }, Q.$set = function(W, ae) {
23697
- var K, Te = ne.p(W), Ie = "set" + (this.$u ? "UTC" : ""), rt = (K = {}, K[u] = Ie + "Date", K[D] = Ie + "Date", K[c] = Ie + "Month", K[T] = Ie + "FullYear", K[l] = Ie + "Hours", K[o] = Ie + "Minutes", K[d] = Ie + "Seconds", K[s] = Ie + "Milliseconds", K)[Te], Tt = Te === u ? this.$D + (ae - this.$W) : ae;
23697
+ var H, Te = ne.p(W), Ie = "set" + (this.$u ? "UTC" : ""), rt = (H = {}, H[u] = Ie + "Date", H[D] = Ie + "Date", H[c] = Ie + "Month", H[T] = Ie + "FullYear", H[l] = Ie + "Hours", H[o] = Ie + "Minutes", H[d] = Ie + "Seconds", H[s] = Ie + "Milliseconds", H)[Te], Tt = Te === u ? this.$D + (ae - this.$W) : ae;
23698
23698
  if (Te === c || Te === T) {
23699
23699
  var bt = this.clone().set(D, 1);
23700
23700
  bt.$d[rt](Tt), bt.init(), this.$d = bt.set(D, Math.min(this.$D, bt.daysInMonth())).$d;
@@ -23706,10 +23706,10 @@ var om = { exports: {} };
23706
23706
  }, Q.get = function(W) {
23707
23707
  return this[ne.p(W)]();
23708
23708
  }, Q.add = function(W, ae) {
23709
- var K, Te = this;
23709
+ var H, Te = this;
23710
23710
  W = Number(W);
23711
23711
  var Ie = ne.p(ae), rt = function(Bt) {
23712
- var pr = H(Te);
23712
+ var pr = Y(Te);
23713
23713
  return ne.w(pr.date(pr.date() + Math.round(Bt * W)), Te);
23714
23714
  };
23715
23715
  if (Ie === c)
@@ -23720,15 +23720,15 @@ var om = { exports: {} };
23720
23720
  return rt(1);
23721
23721
  if (Ie === y)
23722
23722
  return rt(7);
23723
- var Tt = (K = {}, K[o] = t, K[l] = r, K[d] = e, K)[Ie] || 1, bt = this.$d.getTime() + W * Tt;
23723
+ var Tt = (H = {}, H[o] = t, H[l] = r, H[d] = e, H)[Ie] || 1, bt = this.$d.getTime() + W * Tt;
23724
23724
  return ne.w(bt, this);
23725
23725
  }, Q.subtract = function(W, ae) {
23726
23726
  return this.add(-1 * W, ae);
23727
23727
  }, Q.format = function(W) {
23728
- var ae = this, K = this.$locale();
23728
+ var ae = this, H = this.$locale();
23729
23729
  if (!this.isValid())
23730
- return K.invalidDate || w;
23731
- var Te = W || "YYYY-MM-DDTHH:mm:ssZ", Ie = ne.z(this), rt = this.$H, Tt = this.$m, bt = this.$M, Bt = K.weekdays, pr = K.months, bn = K.meridiem, wi = function(qt, si, ys, Ta) {
23730
+ return H.invalidDate || w;
23731
+ var Te = W || "YYYY-MM-DDTHH:mm:ssZ", Ie = ne.z(this), rt = this.$H, Tt = this.$m, bt = this.$M, Bt = H.weekdays, pr = H.months, bn = H.meridiem, wi = function(qt, si, ys, Ta) {
23732
23732
  return qt && (qt[si] || qt(ae, Te)) || ys[si].slice(0, Ta);
23733
23733
  }, fs = function(qt) {
23734
23734
  return ne.s(rt % 12 || 12, qt, "0");
@@ -23748,7 +23748,7 @@ var om = { exports: {} };
23748
23748
  case "MM":
23749
23749
  return ne.s(bt + 1, 2, "0");
23750
23750
  case "MMM":
23751
- return wi(K.monthsShort, bt, pr, 3);
23751
+ return wi(H.monthsShort, bt, pr, 3);
23752
23752
  case "MMMM":
23753
23753
  return wi(pr, bt);
23754
23754
  case "D":
@@ -23758,9 +23758,9 @@ var om = { exports: {} };
23758
23758
  case "d":
23759
23759
  return String(ae.$W);
23760
23760
  case "dd":
23761
- return wi(K.weekdaysMin, ae.$W, Bt, 2);
23761
+ return wi(H.weekdaysMin, ae.$W, Bt, 2);
23762
23762
  case "ddd":
23763
- return wi(K.weekdaysShort, ae.$W, Bt, 3);
23763
+ return wi(H.weekdaysShort, ae.$W, Bt, 3);
23764
23764
  case "dddd":
23765
23765
  return Bt[ae.$W];
23766
23766
  case "H":
@@ -23793,8 +23793,8 @@ var om = { exports: {} };
23793
23793
  });
23794
23794
  }, Q.utcOffset = function() {
23795
23795
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
23796
- }, Q.diff = function(W, ae, K) {
23797
- var Te, Ie = this, rt = ne.p(ae), Tt = H(W), bt = (Tt.utcOffset() - this.utcOffset()) * t, Bt = this - Tt, pr = function() {
23796
+ }, Q.diff = function(W, ae, H) {
23797
+ var Te, Ie = this, rt = ne.p(ae), Tt = Y(W), bt = (Tt.utcOffset() - this.utcOffset()) * t, Bt = this - Tt, pr = function() {
23798
23798
  return ne.m(Ie, Tt);
23799
23799
  };
23800
23800
  switch (rt) {
@@ -23825,16 +23825,16 @@ var om = { exports: {} };
23825
23825
  default:
23826
23826
  Te = Bt;
23827
23827
  }
23828
- return K ? Te : ne.a(Te);
23828
+ return H ? Te : ne.a(Te);
23829
23829
  }, Q.daysInMonth = function() {
23830
23830
  return this.endOf(c).$D;
23831
23831
  }, Q.$locale = function() {
23832
- return J[this.$L];
23832
+ return Z[this.$L];
23833
23833
  }, Q.locale = function(W, ae) {
23834
23834
  if (!W)
23835
23835
  return this.$L;
23836
- var K = this.clone(), Te = he(W, ae, !0);
23837
- return Te && (K.$L = Te), K;
23836
+ var H = this.clone(), Te = he(W, ae, !0);
23837
+ return Te && (H.$L = Te), H;
23838
23838
  }, Q.clone = function() {
23839
23839
  return ne.w(this.$d, this);
23840
23840
  }, Q.toDate = function() {
@@ -23847,20 +23847,20 @@ var om = { exports: {} };
23847
23847
  return this.$d.toUTCString();
23848
23848
  }, ye;
23849
23849
  }(), wr = $t.prototype;
23850
- return H.prototype = wr, [["$ms", s], ["$s", d], ["$m", o], ["$H", l], ["$W", u], ["$M", c], ["$y", T], ["$D", D]].forEach(function(ye) {
23850
+ return Y.prototype = wr, [["$ms", s], ["$s", d], ["$m", o], ["$H", l], ["$W", u], ["$M", c], ["$y", T], ["$D", D]].forEach(function(ye) {
23851
23851
  wr[ye[1]] = function(Q) {
23852
23852
  return this.$g(Q, ye[0], ye[1]);
23853
23853
  };
23854
- }), H.extend = function(ye, Q) {
23855
- return ye.$i || (ye(Q, $t, H), ye.$i = !0), H;
23856
- }, H.locale = he, H.isDayjs = de, H.unix = function(ye) {
23857
- return H(1e3 * ye);
23858
- }, H.en = J[k], H.Ls = J, H.p = {}, H;
23854
+ }), Y.extend = function(ye, Q) {
23855
+ return ye.$i || (ye(Q, $t, Y), ye.$i = !0), Y;
23856
+ }, Y.locale = he, Y.isDayjs = de, Y.unix = function(ye) {
23857
+ return Y(1e3 * ye);
23858
+ }, Y.en = Z[k], Y.Ls = Z, Y.p = {}, Y;
23859
23859
  });
23860
23860
  })(om);
23861
23861
  var w8 = om.exports;
23862
23862
  const v = /* @__PURE__ */ zc(w8);
23863
- var R = /* @__PURE__ */ ((i) => (i.Error = "error", i.Warning = "warning", i))(R || {}), x = /* @__PURE__ */ ((i) => (i.InvalidObjectStructure = "invalid-object-structure", i.NameNotUniqueInScope = "name-not-unique-in-scope", i.EmptyName = "empty-name", i.MissingCaller = "missing-caller", i.PropertyOverwrite = "property-overwrite", i.MethodOverwrite = "method-overwrite", i.NoOverlapWithImplementedSignature = "no-overlap-with-implemented-signature", i.ReaderWriterIncompatibleDataType = "reader-writer-incompatible-data-type", i.UnreachableEntity = "unreachable-entity", i.InternalCallParentMissingDataType = "internal-call-parent-missing-data-type", i.InternalCallParentDeclarationEntityInvalidType = "internal-call-parent-declaration-entity-invalid-type", i.InternalCallDeclarationNotFoundInParentDatatypeEntity = "internal-call-declaration-not-found-in-parent-datatype-entity", i.InternalCallDeclarationIsNotFunctionDeclaration = "internal-call-declaration-is-not-function-declaration", i.InternalCallDeclarationNotInParentDatatypeEntity = "internal-call-declaration-not-in-parent-datatype-entity", i))(x || {}), E = /* @__PURE__ */ ((i) => (i.RootReference = "root-reference", i.ReferencedEntityNotFound = "referenced-entity-not-found", i.EntityIdNotUnique = "entity-id-not-unique", i.BuiltInEntityGenerated = "built-in-entity-generated", i.BuiltInEntityUpdated = "built-in-entity-updated", i.BuiltInEntityDeleted = "built-in-entity-deleted", i.UnknownEntityType = "unknown-entity-type", i.MissingTypeProperty = "missing-type-property", i.MissingIdProperty = "missing-id-property", i.BuiltInEntityParent = "built-in-entity-parent", i.InvalidBuiltInEntityReference = "invalid-built-in-entity-reference", i.RecommendedImplementAbstractEntityAction = "recommended-implement-abstract-entity-action", i.RecommendedImplementOperationAction = "recommended-implement-operation-action", i.RecommendedImplementFunctionCallAction = "recommended-implement-function-call-action", i.RecommendedImplementVariableDeclarationAction = "recommended-implement-variable-declaration-action", i.RecommendedImplementVariableInstanceAction = "recommended-implement-variable-instance-action", i.RecommendedImplementConditionAction = "recommended-implement-condition-action", i.InvalidReferenceObjectStructure = "invalid-reference-object-structure", i.ContainsSingleButShouldBeReferenceList = "contains-single-but-should-be-reference-list", i.ContainsListButShouldReferenceSingle = "contains-list-but-should-reference-single", i.InvalidParentReference = "invalid-parent-reference", i.InvalidImplementsReference = "invalid-implements-reference", i.InvalidExtendsReference = "invalid-extends-reference", i.InvalidGenerationActionPayload = "invalid-generation-action-payload", i.InvalidReference = "invalid-reference", i.InvalidInternalCallParentRelation = "invalid-internal-call-parent-relation", i.InvalidUpdateEntityOperation = "invalid-update-entity-operation", i.NewEntityWouldOverriteExisting = "new-entity-would-overrite-existing", i.InvalidDownstreamPropertyOverride = "invalid-downstream-property-override", i.UnrecognizedProperty = "unrecognized-property", i.SelfReference = "self-reference", i.DuplicateReference = "duplicate-reference", i.CallerWithIncompatibleScope = "caller-with-incompatible-scope", i.InvalidFunctionDeclarationForFunctionCall = "invalid-function-declaration-for-function-call", i.InvalidInputMapDeclaration = "invalid-input-map-declaration", i.InvalidActionDescriptorForOperation = "invalid-action-descriptor-for-operation", i.InvalidActionDescriptorForCondition = "invalid-action-descriptor-for-condition", i.InvalidActionDescriptorForLoop = "invalid-action-descriptor-for-loop", i.InvalidInmutablePropertyOverride = "invalid-inmutable-property-override", i.OutputOverwrite = "output-overwrite", i.InputOverwrite = "input-overwrite", i.IncompatibleScope = "incompatible-scope", i.InvalidParentUpdate = "invalid-parent-update", i.NonInteractiveEntityReferenced = "non-interactive-entity-referenced", i.InvalidParentRelationType = "invalid-parent-relation-type", i))(E || {}), Z = /* @__PURE__ */ ((i) => (i.NoPrimaryKeyProperty = "no-primary-key-property", i.ScopeWithoutLogic = "scope-without-logic", i.ExtendingAbstractEntity = "extending-abstract-entity", i.ImplementingNonAbstractEntity = "implementing-non-abstract-entity", i.AbstractEntityWithNonAbstractMethods = "abstract-entity-with-non-abstract-methods", i.AbstractEntityWithNonAbstractProperties = "abstract-entity-with-non-abstract-properties", i.StaticEntityWithNonStaticProperties = "static-entity-with-non-static-properties", i.NonStaticPropertyInStaticEntity = "non-static-property-in-static-entity", i.AbstractPropertyInNonAbstractEntity = "abstract-property-in-non-abstract-entity", i.AbstractMethodInNonAbstractEntity = "abstract-method-in-non-abstract-entity", i.IncorrectEntityImplementation = "incorrect-entity-implementation", i.IncorrectMethodImplementation = "incorrect-method-implementation", i.IncorrectPropertyImplementation = "incorrect-property-implementation", i.PropertyImplementsNonAbstact = "property-implements-non-abstract", i.NonStaticPropertyImplementsStatic = "non-static-property-implements-static", i.StaticPropertyImplementsNonStatic = "static-property-implements-non-static", i.PropertyImplementsIncompatibleType = "property-implements-incompatible-type", i.MissingPropertyImplementation = "missing-property-implementation", i.MissingMethodImplementation = "missing-method-implementation", i.NoProperties = "no-properties", i.ReadingFromIncompatibleType = "reading-from-incompatible-type", i.WritingToIncompatibleType = "writing-to-incompatible-type", i.InvalidPropertiesCombination = "invalid-properties-combination", i.DisconnectedCallableEntity = "disconnected-callable-entity", i.VariableReadsValueAndInternalCall = "variable-reads-value-and-internal-call", i.VariableWritesValuesAndInternalCall = "variable-writes-values-and-internal-call", i.VariableHasInputsAndInternalCall = "variable-has-inputs-and-internal-calls", i.VariableHasOutputsAndInternalCall = "variable-has-outputs-and-internal-call", i.VariableIsCalledAndHasInternalCall = "variable-is-called-and-has-internal-call", i.VariableCallsOthersAndHasInternalCall = "variable-calls-others-and-has-internal-call", i))(Z || {});
23863
+ var R = /* @__PURE__ */ ((i) => (i.Error = "error", i.Warning = "warning", i))(R || {}), x = /* @__PURE__ */ ((i) => (i.InvalidObjectStructure = "invalid-object-structure", i.NameNotUniqueInScope = "name-not-unique-in-scope", i.EmptyName = "empty-name", i.MissingCaller = "missing-caller", i.PropertyOverwrite = "property-overwrite", i.MethodOverwrite = "method-overwrite", i.NoOverlapWithImplementedSignature = "no-overlap-with-implemented-signature", i.ReaderWriterIncompatibleDataType = "reader-writer-incompatible-data-type", i.UnreachableEntity = "unreachable-entity", i.InternalCallParentMissingDataType = "internal-call-parent-missing-data-type", i.InternalCallParentDeclarationEntityInvalidType = "internal-call-parent-declaration-entity-invalid-type", i.InternalCallDeclarationNotFoundInParentDatatypeEntity = "internal-call-declaration-not-found-in-parent-datatype-entity", i.InternalCallDeclarationIsNotFunctionDeclaration = "internal-call-declaration-is-not-function-declaration", i.InternalCallDeclarationNotInParentDatatypeEntity = "internal-call-declaration-not-in-parent-datatype-entity", i))(x || {}), E = /* @__PURE__ */ ((i) => (i.RootReference = "root-reference", i.ReferencedEntityNotFound = "referenced-entity-not-found", i.EntityIdNotUnique = "entity-id-not-unique", i.BuiltInEntityGenerated = "built-in-entity-generated", i.BuiltInEntityUpdated = "built-in-entity-updated", i.BuiltInEntityDeleted = "built-in-entity-deleted", i.UnknownEntityType = "unknown-entity-type", i.MissingTypeProperty = "missing-type-property", i.MissingIdProperty = "missing-id-property", i.BuiltInEntityParent = "built-in-entity-parent", i.InvalidBuiltInEntityReference = "invalid-built-in-entity-reference", i.RecommendedImplementAbstractEntityAction = "recommended-implement-abstract-entity-action", i.RecommendedImplementOperationAction = "recommended-implement-operation-action", i.RecommendedImplementFunctionCallAction = "recommended-implement-function-call-action", i.RecommendedImplementVariableDeclarationAction = "recommended-implement-variable-declaration-action", i.RecommendedImplementVariableInstanceAction = "recommended-implement-variable-instance-action", i.RecommendedImplementConditionAction = "recommended-implement-condition-action", i.InvalidReferenceObjectStructure = "invalid-reference-object-structure", i.ContainsSingleButShouldBeReferenceList = "contains-single-but-should-be-reference-list", i.ContainsListButShouldReferenceSingle = "contains-list-but-should-reference-single", i.InvalidParentReference = "invalid-parent-reference", i.InvalidImplementsReference = "invalid-implements-reference", i.InvalidExtendsReference = "invalid-extends-reference", i.InvalidGenerationActionPayload = "invalid-generation-action-payload", i.InvalidReference = "invalid-reference", i.InvalidInternalCallParentRelation = "invalid-internal-call-parent-relation", i.InvalidUpdateEntityOperation = "invalid-update-entity-operation", i.NewEntityWouldOverriteExisting = "new-entity-would-overrite-existing", i.InvalidDownstreamPropertyOverride = "invalid-downstream-property-override", i.UnrecognizedProperty = "unrecognized-property", i.SelfReference = "self-reference", i.DuplicateReference = "duplicate-reference", i.CallerWithIncompatibleScope = "caller-with-incompatible-scope", i.InvalidFunctionDeclarationForFunctionCall = "invalid-function-declaration-for-function-call", i.InvalidInputMapDeclaration = "invalid-input-map-declaration", i.InvalidActionDescriptorForOperation = "invalid-action-descriptor-for-operation", i.InvalidActionDescriptorForCondition = "invalid-action-descriptor-for-condition", i.InvalidActionDescriptorForLoop = "invalid-action-descriptor-for-loop", i.InvalidInmutablePropertyOverride = "invalid-inmutable-property-override", i.OutputOverwrite = "output-overwrite", i.InputOverwrite = "input-overwrite", i.IncompatibleScope = "incompatible-scope", i.InvalidParentUpdate = "invalid-parent-update", i.NonInteractiveEntityReferenced = "non-interactive-entity-referenced", i.InvalidParentRelationType = "invalid-parent-relation-type", i))(E || {}), J = /* @__PURE__ */ ((i) => (i.NoPrimaryKeyProperty = "no-primary-key-property", i.ScopeWithoutLogic = "scope-without-logic", i.ExtendingAbstractEntity = "extending-abstract-entity", i.ImplementingNonAbstractEntity = "implementing-non-abstract-entity", i.AbstractEntityWithNonAbstractMethods = "abstract-entity-with-non-abstract-methods", i.AbstractEntityWithNonAbstractProperties = "abstract-entity-with-non-abstract-properties", i.StaticEntityWithNonStaticProperties = "static-entity-with-non-static-properties", i.NonStaticPropertyInStaticEntity = "non-static-property-in-static-entity", i.AbstractPropertyInNonAbstractEntity = "abstract-property-in-non-abstract-entity", i.AbstractMethodInNonAbstractEntity = "abstract-method-in-non-abstract-entity", i.IncorrectEntityImplementation = "incorrect-entity-implementation", i.IncorrectMethodImplementation = "incorrect-method-implementation", i.IncorrectPropertyImplementation = "incorrect-property-implementation", i.PropertyImplementsNonAbstact = "property-implements-non-abstract", i.NonStaticPropertyImplementsStatic = "non-static-property-implements-static", i.StaticPropertyImplementsNonStatic = "static-property-implements-non-static", i.PropertyImplementsIncompatibleType = "property-implements-incompatible-type", i.MissingPropertyImplementation = "missing-property-implementation", i.MissingMethodImplementation = "missing-method-implementation", i.NoProperties = "no-properties", i.ReadingFromIncompatibleType = "reading-from-incompatible-type", i.WritingToIncompatibleType = "writing-to-incompatible-type", i.InvalidPropertiesCombination = "invalid-properties-combination", i.DisconnectedCallableEntity = "disconnected-callable-entity", i.VariableReadsValueAndInternalCall = "variable-reads-value-and-internal-call", i.VariableWritesValuesAndInternalCall = "variable-writes-values-and-internal-call", i.VariableHasInputsAndInternalCall = "variable-has-inputs-and-internal-calls", i.VariableHasOutputsAndInternalCall = "variable-has-outputs-and-internal-call", i.VariableIsCalledAndHasInternalCall = "variable-is-called-and-has-internal-call", i.VariableCallsOthersAndHasInternalCall = "variable-calls-others-and-has-internal-call", i))(J || {});
23864
23864
  class P {
23865
23865
  constructor(a) {
23866
23866
  // A deterministic error code, so if the same error occurs again in a subsequent validation run,
@@ -26322,11 +26322,11 @@ function l3(i, a) {
26322
26322
  const e = [];
26323
26323
  if (!a.abstract) {
26324
26324
  const y = fe({
26325
- id: i.id + "--" + Z.ImplementingNonAbstractEntity,
26325
+ id: i.id + "--" + J.ImplementingNonAbstractEntity,
26326
26326
  message: `Entity "${i.name}" with id "${i.id}" is implementing a non-abstract entity "${a.name}" with id "${a.id}"`,
26327
26327
  issue: null,
26328
26328
  severity: R.Error,
26329
- code: Z.ImplementingNonAbstractEntity,
26329
+ code: J.ImplementingNonAbstractEntity,
26330
26330
  entity: i
26331
26331
  });
26332
26332
  return e.push(y.error), e;
@@ -26345,11 +26345,11 @@ function l3(i, a) {
26345
26345
  ) : r.push(y);
26346
26346
  }), r.length && r.forEach((y) => {
26347
26347
  const c = fe({
26348
- id: i.id + "--" + Z.MissingPropertyImplementation + "--" + y.id,
26348
+ id: i.id + "--" + J.MissingPropertyImplementation + "--" + y.id,
26349
26349
  message: `Property "${y.name}" with id "${y.id}" of entity "${a.name}" with id "${a.id}" is not implemented when entity "${i.name}" with id "${i.id}" implements it`,
26350
26350
  issue: null,
26351
26351
  severity: R.Error,
26352
- code: Z.MissingPropertyImplementation,
26352
+ code: J.MissingPropertyImplementation,
26353
26353
  entity: i
26354
26354
  });
26355
26355
  e.push(c.error);
@@ -26368,11 +26368,11 @@ function l3(i, a) {
26368
26368
  ) : d.push(y);
26369
26369
  }), d.length && d.forEach((y) => {
26370
26370
  const c = fe({
26371
- id: i.id + "--" + Z.MissingMethodImplementation + "--" + y.id,
26371
+ id: i.id + "--" + J.MissingMethodImplementation + "--" + y.id,
26372
26372
  message: `Method "${y.name}" with id "${y.id}" of entity "${a.name}" with id "${a.id}" is not implemented when entity "${i.name}" with id "${i.id}" implements it`,
26373
26373
  issue: null,
26374
26374
  severity: R.Error,
26375
- code: Z.MissingMethodImplementation,
26375
+ code: J.MissingMethodImplementation,
26376
26376
  entity: i
26377
26377
  });
26378
26378
  e.push(c.error);
@@ -26416,11 +26416,11 @@ function u3(i, a) {
26416
26416
  const e = [], t = [];
26417
26417
  if (a.abstract) {
26418
26418
  const s = fe({
26419
- id: i.id + "--" + Z.ExtendingAbstractEntity,
26419
+ id: i.id + "--" + J.ExtendingAbstractEntity,
26420
26420
  message: `Entity "${i.name}" with id "${i.id}" is extending an abstract entity "${a.name}" with id "${a.id}"`,
26421
26421
  issue: null,
26422
26422
  severity: R.Error,
26423
- code: Z.ExtendingAbstractEntity,
26423
+ code: J.ExtendingAbstractEntity,
26424
26424
  entity: i
26425
26425
  });
26426
26426
  return e.push(s.error), e;
@@ -26467,11 +26467,11 @@ function p3(i) {
26467
26467
  const a = [];
26468
26468
  if (!i.properties.length) {
26469
26469
  const e = fe({
26470
- id: i.id + "--" + Z.NoProperties,
26470
+ id: i.id + "--" + J.NoProperties,
26471
26471
  message: "No properties implemented",
26472
26472
  issue: null,
26473
26473
  severity: R.Warning,
26474
- code: Z.NoProperties,
26474
+ code: J.NoProperties,
26475
26475
  entity: i
26476
26476
  });
26477
26477
  a.push(e.error);
@@ -26485,32 +26485,32 @@ function c3(i) {
26485
26485
  if (i.abstract) {
26486
26486
  if (i.methods.length) {
26487
26487
  const e = fe({
26488
- id: i.id + "--" + Z.AbstractEntityWithNonAbstractMethods,
26488
+ id: i.id + "--" + J.AbstractEntityWithNonAbstractMethods,
26489
26489
  message: `Entity "${i.name}" with id "${i.id}" is marked as abstract but has non-abstract methods`,
26490
26490
  issue: null,
26491
26491
  severity: R.Error,
26492
- code: Z.AbstractEntityWithNonAbstractMethods,
26492
+ code: J.AbstractEntityWithNonAbstractMethods,
26493
26493
  entity: i
26494
26494
  });
26495
26495
  a.push(e.error);
26496
26496
  }
26497
26497
  if (i.properties.some((e) => !e.abstract)) {
26498
26498
  const e = fe({
26499
- id: i.id + "--" + Z.AbstractEntityWithNonAbstractProperties,
26499
+ id: i.id + "--" + J.AbstractEntityWithNonAbstractProperties,
26500
26500
  message: `Entity "${i.name}" with id "${i.id}" is marked as abstract but has non-abstract properties`,
26501
26501
  issue: null,
26502
26502
  severity: R.Error,
26503
- code: Z.AbstractEntityWithNonAbstractProperties,
26503
+ code: J.AbstractEntityWithNonAbstractProperties,
26504
26504
  entity: i
26505
26505
  });
26506
26506
  a.push(e.error), i.properties.forEach((t) => {
26507
26507
  if (!t.abstract) {
26508
26508
  const r = fe({
26509
- id: i.id + "--" + Z.StaticEntityWithNonStaticProperties + "--" + t.id,
26509
+ id: i.id + "--" + J.StaticEntityWithNonStaticProperties + "--" + t.id,
26510
26510
  message: `Property "${t.name}" with id "${t.id}" of entity "${i.name}" with id "${i.id}" is not marked as abstract but the entity is marked as abstract`,
26511
26511
  issue: null,
26512
26512
  severity: R.Error,
26513
- code: Z.StaticEntityWithNonStaticProperties,
26513
+ code: J.StaticEntityWithNonStaticProperties,
26514
26514
  entity: i
26515
26515
  });
26516
26516
  a.push(r.error);
@@ -26520,32 +26520,32 @@ function c3(i) {
26520
26520
  } else {
26521
26521
  if (i.abstractMethods.length) {
26522
26522
  const e = fe({
26523
- id: i.id + "--" + Z.AbstractPropertyInNonAbstractEntity,
26523
+ id: i.id + "--" + J.AbstractPropertyInNonAbstractEntity,
26524
26524
  message: `Entity "${i.name}" with id "${i.id}" is not marked as abstract but has abstract methods`,
26525
26525
  issue: null,
26526
26526
  severity: R.Error,
26527
- code: Z.AbstractPropertyInNonAbstractEntity,
26527
+ code: J.AbstractPropertyInNonAbstractEntity,
26528
26528
  entity: i
26529
26529
  });
26530
26530
  a.push(e.error);
26531
26531
  }
26532
26532
  if (i.properties.some((e) => e.abstract)) {
26533
26533
  const e = fe({
26534
- id: i.id + "--" + Z.AbstractMethodInNonAbstractEntity,
26534
+ id: i.id + "--" + J.AbstractMethodInNonAbstractEntity,
26535
26535
  message: `Entity "${i.name}" with id "${i.id}" is not marked as abstract but has abstract properties`,
26536
26536
  issue: null,
26537
26537
  severity: R.Error,
26538
- code: Z.AbstractMethodInNonAbstractEntity,
26538
+ code: J.AbstractMethodInNonAbstractEntity,
26539
26539
  entity: i
26540
26540
  });
26541
26541
  a.push(e.error), i.properties.forEach((t) => {
26542
26542
  if (t.abstract) {
26543
26543
  const r = fe({
26544
- id: i.id + "--" + Z.AbstractMethodInNonAbstractEntity + "--" + t.id,
26544
+ id: i.id + "--" + J.AbstractMethodInNonAbstractEntity + "--" + t.id,
26545
26545
  message: `Property "${t.name}" with id "${t.id}" of entity "${i.name}" with id "${i.id}" is marked as abstract but the entity is not marked as abstract`,
26546
26546
  issue: null,
26547
26547
  severity: R.Error,
26548
- code: Z.AbstractMethodInNonAbstractEntity,
26548
+ code: J.AbstractMethodInNonAbstractEntity,
26549
26549
  entity: i
26550
26550
  });
26551
26551
  a.push(r.error);
@@ -26555,21 +26555,21 @@ function c3(i) {
26555
26555
  }
26556
26556
  if (i.static && i.properties.some((e) => !e.static)) {
26557
26557
  const e = fe({
26558
- id: i.id + "--" + Z.StaticEntityWithNonStaticProperties,
26558
+ id: i.id + "--" + J.StaticEntityWithNonStaticProperties,
26559
26559
  message: `Entity "${i.name}" with id "${i.id}" is marked as static but has non-static properties`,
26560
26560
  issue: null,
26561
26561
  severity: R.Error,
26562
- code: Z.StaticEntityWithNonStaticProperties,
26562
+ code: J.StaticEntityWithNonStaticProperties,
26563
26563
  entity: i
26564
26564
  });
26565
26565
  a.push(e.error), i.properties.forEach((t) => {
26566
26566
  if (!t.static) {
26567
26567
  const r = fe({
26568
- id: i.id + "--" + Z.NonStaticPropertyInStaticEntity + "--" + t.id,
26568
+ id: i.id + "--" + J.NonStaticPropertyInStaticEntity + "--" + t.id,
26569
26569
  message: `Property "${t.name}" with id "${t.id}" of entity "${i.name}" with id "${i.id}" is not marked as static but the entity is marked as static`,
26570
26570
  issue: null,
26571
26571
  severity: R.Error,
26572
- code: Z.NonStaticPropertyInStaticEntity,
26572
+ code: J.NonStaticPropertyInStaticEntity,
26573
26573
  entity: i
26574
26574
  });
26575
26575
  a.push(r.error);
@@ -28083,7 +28083,7 @@ function Qu(i, a = null) {
28083
28083
  return null;
28084
28084
  }
28085
28085
  }
28086
- function C(i) {
28086
+ function B(i) {
28087
28087
  if (i) {
28088
28088
  let a = null;
28089
28089
  return typeof i == "string" ? a = i : i.entityId ? a = i.entityId : i.type !== n.GenericReference && (a = i.id), a;
@@ -28518,7 +28518,7 @@ function w0(i, a) {
28518
28518
  issue: null
28519
28519
  })
28520
28520
  );
28521
- const t = i.parent ? C(i.parent) : null;
28521
+ const t = i.parent ? B(i.parent) : null;
28522
28522
  let r = a;
28523
28523
  t && (r = a.get(t));
28524
28524
  const s = [];
@@ -28595,7 +28595,7 @@ function V0(i, a) {
28595
28595
  issue: null
28596
28596
  })
28597
28597
  );
28598
- const t = C(i.parent);
28598
+ const t = B(i.parent);
28599
28599
  if (!t)
28600
28600
  e.push(
28601
28601
  new P({
@@ -28647,7 +28647,7 @@ function C0(i, a) {
28647
28647
  issue: null
28648
28648
  })
28649
28649
  );
28650
- const t = C(i.parent);
28650
+ const t = B(i.parent);
28651
28651
  if (!t)
28652
28652
  e.push(
28653
28653
  new P({
@@ -28701,7 +28701,7 @@ function B0(i, a) {
28701
28701
  issue: null
28702
28702
  })
28703
28703
  );
28704
- const t = C(i.parent);
28704
+ const t = B(i.parent);
28705
28705
  if (!t)
28706
28706
  e.push(
28707
28707
  new P({
@@ -28797,14 +28797,14 @@ function IS(i) {
28797
28797
  const s = [...r];
28798
28798
  if (i.id === "80c86e1b-caca-4ba5-9b1f-38f72d10e4a3") {
28799
28799
  const o = fe({
28800
- id: `${i.id}--${Z.PropertyImplementsNonAbstact}`,
28800
+ id: `${i.id}--${J.PropertyImplementsNonAbstact}`,
28801
28801
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a non-abstract property "${j(
28802
28802
  i,
28803
28803
  i.project
28804
28804
  )}" with id "${i.id}".`,
28805
28805
  issue: null,
28806
28806
  severity: R.Error,
28807
- code: Z.PropertyImplementsNonAbstact,
28807
+ code: J.PropertyImplementsNonAbstact,
28808
28808
  entity: i
28809
28809
  });
28810
28810
  s.push(o.error);
@@ -28818,21 +28818,21 @@ function ES(i) {
28818
28818
  const e = i.implements;
28819
28819
  if (!e.abstract) {
28820
28820
  const r = fe({
28821
- id: `${i.id}--${Z.PropertyImplementsNonAbstact}`,
28821
+ id: `${i.id}--${J.PropertyImplementsNonAbstact}`,
28822
28822
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a non-abstract property "${j(
28823
28823
  e,
28824
28824
  i.project
28825
28825
  )}" with id "${e.id}".`,
28826
28826
  issue: null,
28827
28827
  severity: R.Error,
28828
- code: Z.PropertyImplementsNonAbstact,
28828
+ code: J.PropertyImplementsNonAbstact,
28829
28829
  entity: i
28830
28830
  });
28831
28831
  a.push(r.error);
28832
28832
  }
28833
28833
  if (i.static && !e.static) {
28834
28834
  const r = fe({
28835
- id: `${i.id}--${Z.NonStaticPropertyImplementsStatic}`,
28835
+ id: `${i.id}--${J.NonStaticPropertyImplementsStatic}`,
28836
28836
  message: `Static property "${j(
28837
28837
  i,
28838
28838
  i.project
@@ -28842,14 +28842,14 @@ function ES(i) {
28842
28842
  )}" with id "${e.id}".`,
28843
28843
  issue: null,
28844
28844
  severity: R.Error,
28845
- code: Z.NonStaticPropertyImplementsStatic,
28845
+ code: J.NonStaticPropertyImplementsStatic,
28846
28846
  entity: i
28847
28847
  });
28848
28848
  a.push(r.error);
28849
28849
  }
28850
28850
  if (!i.static && e.static) {
28851
28851
  const r = fe({
28852
- id: `${i.id}--${Z.StaticPropertyImplementsNonStatic}`,
28852
+ id: `${i.id}--${J.StaticPropertyImplementsNonStatic}`,
28853
28853
  message: `Non-static property "${j(
28854
28854
  i,
28855
28855
  i.project
@@ -28859,7 +28859,7 @@ function ES(i) {
28859
28859
  )}" with id "${e.id}".`,
28860
28860
  issue: null,
28861
28861
  severity: R.Error,
28862
- code: Z.StaticPropertyImplementsNonStatic,
28862
+ code: J.StaticPropertyImplementsNonStatic,
28863
28863
  entity: i
28864
28864
  });
28865
28865
  a.push(r.error);
@@ -28869,14 +28869,14 @@ function ES(i) {
28869
28869
  e.dataType
28870
28870
  )) {
28871
28871
  const r = fe({
28872
- id: `${i.id}--${Z.PropertyImplementsIncompatibleType}`,
28872
+ id: `${i.id}--${J.PropertyImplementsIncompatibleType}`,
28873
28873
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a property "${j(
28874
28874
  e,
28875
28875
  i.project
28876
28876
  )}" with id "${e.id}" that has an incompatible data type.`,
28877
28877
  issue: null,
28878
28878
  severity: R.Error,
28879
- code: Z.PropertyImplementsIncompatibleType,
28879
+ code: J.PropertyImplementsIncompatibleType,
28880
28880
  entity: i
28881
28881
  });
28882
28882
  a.push(r.error);
@@ -29325,12 +29325,12 @@ const Ee = class Ee extends tt {
29325
29325
  Then creates a new instance of the entity
29326
29326
  */
29327
29327
  static fromGenerationTarget(e, t) {
29328
- const r = C(e.parent), s = t.get(
29328
+ const r = B(e.parent), s = t.get(
29329
29329
  r
29330
29330
  );
29331
29331
  let d = null;
29332
29332
  if (e.implements) {
29333
- const u = C(
29333
+ const u = B(
29334
29334
  e.implements
29335
29335
  );
29336
29336
  d = t.get(
@@ -29576,7 +29576,7 @@ ${wd}`,
29576
29576
  hydrateAncestors() {
29577
29577
  const e = [], t = [], r = [], s = [];
29578
29578
  if (this.initialData.parent) {
29579
- const d = C(
29579
+ const d = B(
29580
29580
  this.initialData.parent
29581
29581
  ), o = this.project.get(
29582
29582
  d
@@ -29592,7 +29592,7 @@ ${wd}`,
29592
29592
  `${zt(this.type)} with id '${this.id}' is missing a parent reference`
29593
29593
  );
29594
29594
  if (this.initialData.implements) {
29595
- const d = C(this.initialData.implements), o = this.project.get(
29595
+ const d = B(this.initialData.implements), o = this.project.get(
29596
29596
  d
29597
29597
  );
29598
29598
  o && (this.setImplements(o, null), e.push(o));
@@ -30171,14 +30171,14 @@ function RS(i) {
30171
30171
  const r = [];
30172
30172
  if (i.id === "iterate-over-employee-list-continue-statement-employee-dto-output-decl-id") {
30173
30173
  const d = fe({
30174
- id: `${i.id}--${Z.PropertyImplementsNonAbstact}`,
30174
+ id: `${i.id}--${J.PropertyImplementsNonAbstact}`,
30175
30175
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a non-abstract property "${j(
30176
30176
  i,
30177
30177
  i.project
30178
30178
  )}" with id "${i.id}".`,
30179
30179
  issue: null,
30180
30180
  severity: R.Error,
30181
- code: Z.PropertyImplementsNonAbstact,
30181
+ code: J.PropertyImplementsNonAbstact,
30182
30182
  entity: i
30183
30183
  });
30184
30184
  r.push(d.error);
@@ -30226,10 +30226,10 @@ const be = class be extends tt {
30226
30226
  Then creates a new instance of the entity
30227
30227
  */
30228
30228
  static fromGenerationTarget(e, t) {
30229
- const r = C(e.parent), s = t.get(r);
30229
+ const r = B(e.parent), s = t.get(r);
30230
30230
  let d = null;
30231
30231
  if (e.readsValue) {
30232
- const u = C(e.readsValue);
30232
+ const u = B(e.readsValue);
30233
30233
  d = t.get(
30234
30234
  u
30235
30235
  );
@@ -30298,7 +30298,7 @@ const be = class be extends tt {
30298
30298
  ), o = B0(r, t);
30299
30299
  if (r = d.modifiedData, r.parent) {
30300
30300
  const y = t.get(
30301
- C(r.parent)
30301
+ B(r.parent)
30302
30302
  );
30303
30303
  if (y && [n.BreakStatement, n.ContinueStatement].includes(
30304
30304
  y.type
@@ -30337,22 +30337,22 @@ ${Lp}`,
30337
30337
  const m = c.implements;
30338
30338
  if (m) {
30339
30339
  const T = m.outputs.find(
30340
- (B) => B.name === r.name
30341
- ), D = m.outputs.filter((B) => !y.outputs.find(
30342
- (k) => k.type === n.ReturnDeclaration && k.name === B.name
30340
+ (C) => C.name === r.name
30341
+ ), D = m.outputs.filter((C) => !y.outputs.find(
30342
+ (k) => k.type === n.ReturnDeclaration && k.name === C.name
30343
30343
  )), w = y.outputs.filter(
30344
- (B) => B.type === n.ReturnDeclaration
30344
+ (C) => C.type === n.ReturnDeclaration
30345
30345
  ), V = w.find(
30346
- (B) => B.name === r.name
30346
+ (C) => C.name === r.name
30347
30347
  ), L = w.length ? `The parent entity already implements the following return declarations: ${re(
30348
30348
  w.map(
30349
- (B) => `'${B.id}' (${B.name})`
30349
+ (C) => `'${C.id}' (${C.name})`
30350
30350
  ),
30351
30351
  ", ",
30352
30352
  " and "
30353
30353
  )}.` : "The parent entity does not yet have any implemented return declarations.", $ = D.length ? `The parent entity is still missing the following returns in the implementation: ${re(
30354
30354
  D.map(
30355
- (B) => `'${B.id}' (${B.name})`
30355
+ (C) => `'${C.id}' (${C.name})`
30356
30356
  ),
30357
30357
  ", ",
30358
30358
  " and "
@@ -30579,7 +30579,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
30579
30579
  hydrateAncestors() {
30580
30580
  const e = [], t = [], r = [], s = [];
30581
30581
  if (this.initialData.parent) {
30582
- const d = C(
30582
+ const d = B(
30583
30583
  this.initialData.parent
30584
30584
  ), o = this.project.get(d);
30585
30585
  if (o)
@@ -30591,7 +30591,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
30591
30591
  } else
30592
30592
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
30593
30593
  if (this.initialData.readsValue) {
30594
- const d = C(
30594
+ const d = B(
30595
30595
  this.initialData.readsValue
30596
30596
  ), o = this.project.get(
30597
30597
  d
@@ -30599,7 +30599,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
30599
30599
  o && (this.setValueWriter(o), e.push(o));
30600
30600
  }
30601
30601
  if (this.initialData.implements) {
30602
- const d = C(
30602
+ const d = B(
30603
30603
  this.initialData.implements
30604
30604
  ), o = this.project.get(
30605
30605
  d
@@ -31318,14 +31318,14 @@ const Ue = class Ue extends tt {
31318
31318
  Then creates a new instance of the entity
31319
31319
  */
31320
31320
  static fromGenerationTarget(e, t) {
31321
- const r = C(e.parent), s = t.get(r), d = e.calledByEntry.map((c) => {
31322
- const m = C(c);
31321
+ const r = B(e.parent), s = t.get(r), d = e.calledByEntry.map((c) => {
31322
+ const m = B(c);
31323
31323
  return t.get(m);
31324
31324
  }), o = e.calledBySuccess.map((c) => {
31325
- const m = C(c);
31325
+ const m = B(c);
31326
31326
  return t.get(m);
31327
31327
  }), l = e.calledByError.map((c) => {
31328
- const m = C(c);
31328
+ const m = B(c);
31329
31329
  return t.get(m);
31330
31330
  }), u = {
31331
31331
  id: e.id,
@@ -31575,7 +31575,7 @@ Specifically for continue statements the parent needs to always be the 'loop' en
31575
31575
  hydrateAncestors() {
31576
31576
  const e = [], t = [], r = [], s = [];
31577
31577
  if (this.initialData.parent) {
31578
- const d = C(
31578
+ const d = B(
31579
31579
  this.initialData.parent
31580
31580
  ), o = this.project.get(d);
31581
31581
  if (o)
@@ -31587,15 +31587,15 @@ Specifically for continue statements the parent needs to always be the 'loop' en
31587
31587
  } else
31588
31588
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
31589
31589
  return this.initialData.calledByEntry.forEach((d) => {
31590
- const o = C(d), l = this.project.get(o);
31590
+ const o = B(d), l = this.project.get(o);
31591
31591
  l && (this.addEntryCaller(l, null), e.push(l));
31592
31592
  }), this.initialData.calledBySuccess.forEach((d) => {
31593
- const o = C(d), l = this.project.get(
31593
+ const o = B(d), l = this.project.get(
31594
31594
  o
31595
31595
  );
31596
31596
  l && (this.addSuccessCaller(l, null), e.push(l));
31597
31597
  }), this.initialData.calledByError.forEach((d) => {
31598
- const o = C(d), l = this.project.get(
31598
+ const o = B(d), l = this.project.get(
31599
31599
  o
31600
31600
  );
31601
31601
  l && (this.addErrorCaller(l, null), e.push(l));
@@ -32193,16 +32193,16 @@ const Ye = class Ye extends tt {
32193
32193
  Then creates a new instance of the entity
32194
32194
  */
32195
32195
  static fromGenerationTarget(e, t) {
32196
- const r = C(e.parent), s = t.get(
32196
+ const r = B(e.parent), s = t.get(
32197
32197
  r
32198
32198
  ), d = e.calledByEntry.map((c) => {
32199
- const m = C(c);
32199
+ const m = B(c);
32200
32200
  return t.get(m);
32201
32201
  }), o = e.calledBySuccess.map((c) => {
32202
- const m = C(c);
32202
+ const m = B(c);
32203
32203
  return t.get(m);
32204
32204
  }), l = e.calledByError.map((c) => {
32205
- const m = C(c);
32205
+ const m = B(c);
32206
32206
  return t.get(m);
32207
32207
  }), u = {
32208
32208
  id: e.id,
@@ -32453,7 +32453,7 @@ Specifically for return statements the parent needs to always be the 'function-d
32453
32453
  hydrateAncestors() {
32454
32454
  const e = [], t = [], r = [], s = [];
32455
32455
  if (this.initialData.parent) {
32456
- const d = C(
32456
+ const d = B(
32457
32457
  this.initialData.parent
32458
32458
  ), o = this.project.get(d);
32459
32459
  if (o)
@@ -32465,15 +32465,15 @@ Specifically for return statements the parent needs to always be the 'function-d
32465
32465
  } else
32466
32466
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
32467
32467
  return this.initialData.calledByEntry.forEach((d) => {
32468
- const o = C(d), l = this.project.get(o);
32468
+ const o = B(d), l = this.project.get(o);
32469
32469
  l && (this.addEntryCaller(l, null), e.push(l));
32470
32470
  }), this.initialData.calledBySuccess.forEach((d) => {
32471
- const o = C(d), l = this.project.get(
32471
+ const o = B(d), l = this.project.get(
32472
32472
  o
32473
32473
  );
32474
32474
  l && (this.addSuccessCaller(l, null), e.push(l));
32475
32475
  }), this.initialData.calledByError.forEach((d) => {
32476
- const o = C(d), l = this.project.get(
32476
+ const o = B(d), l = this.project.get(
32477
32477
  o
32478
32478
  );
32479
32479
  l && (this.addErrorCaller(l, null), e.push(l));
@@ -33039,14 +33039,14 @@ function OS(i) {
33039
33039
  const o = [...r, ...s];
33040
33040
  if (i.id === "getCompanyByIdEndpointReachedEntityEvent") {
33041
33041
  const l = fe({
33042
- id: `${i.id}--${Z.PropertyImplementsNonAbstact}`,
33042
+ id: `${i.id}--${J.PropertyImplementsNonAbstact}`,
33043
33043
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a non-abstract property "${j(
33044
33044
  i,
33045
33045
  i.project
33046
33046
  )}" with id "${i.id}".`,
33047
33047
  issue: null,
33048
33048
  severity: R.Error,
33049
- code: Z.PropertyImplementsNonAbstact,
33049
+ code: J.PropertyImplementsNonAbstact,
33050
33050
  entity: i
33051
33051
  });
33052
33052
  o.push(l.error);
@@ -33057,11 +33057,11 @@ function VS(i) {
33057
33057
  const a = [];
33058
33058
  if (!i.calls.length) {
33059
33059
  const e = fe({
33060
- id: `${i.id}--${Z.ScopeWithoutLogic}`,
33060
+ id: `${i.id}--${J.ScopeWithoutLogic}`,
33061
33061
  message: `Action "${j(i, i.project)}" with id "${i.id}" does not have any logic defined. So it doesn't do anything.`,
33062
33062
  issue: null,
33063
33063
  severity: R.Warning,
33064
- code: Z.ScopeWithoutLogic,
33064
+ code: J.ScopeWithoutLogic,
33065
33065
  entity: i
33066
33066
  });
33067
33067
  a.push(e.error);
@@ -33117,12 +33117,12 @@ const Ae = class Ae extends tt {
33117
33117
  static fromGenerationTarget(e, t) {
33118
33118
  let r = t;
33119
33119
  if (e.parent) {
33120
- const l = C(e.parent);
33120
+ const l = B(e.parent);
33121
33121
  r = t.get(l);
33122
33122
  }
33123
33123
  let s = null;
33124
33124
  if (e.implements) {
33125
- const l = C(e.implements);
33125
+ const l = B(e.implements);
33126
33126
  s = t.get(
33127
33127
  l
33128
33128
  );
@@ -33209,8 +33209,8 @@ ${Yi}`, s.push(
33209
33209
  } else {
33210
33210
  const w = m.methods.find(
33211
33211
  ($) => {
33212
- var B;
33213
- return ((B = $.implements) == null ? void 0 : B.id) === r.implements;
33212
+ var C;
33213
+ return ((C = $.implements) == null ? void 0 : C.id) === r.implements;
33214
33214
  }
33215
33215
  );
33216
33216
  w && s.push(
@@ -33463,7 +33463,7 @@ Please consider that any updates might affect the overlap with the signature of
33463
33463
  hydrateAncestors() {
33464
33464
  const e = [], t = [], r = [], s = [];
33465
33465
  if (this.initialData.parent) {
33466
- const d = C(
33466
+ const d = B(
33467
33467
  this.initialData.parent
33468
33468
  ), o = this.project.get(d);
33469
33469
  if (o)
@@ -33477,7 +33477,7 @@ Please consider that any updates might affect the overlap with the signature of
33477
33477
  `${zt(this.type)} with id '${this.id}' is missing a 'parent' reference`
33478
33478
  );
33479
33479
  if (this.initialData.implements) {
33480
- const d = C(
33480
+ const d = B(
33481
33481
  this.initialData.implements
33482
33482
  ), o = this.project.get(
33483
33483
  d
@@ -34164,11 +34164,11 @@ function _S(i) {
34164
34164
  const r = [];
34165
34165
  if (i.entity && i.andChildrenGroup || i.entity && i.orChildrenGroup || i.andChildrenGroup && i.orChildrenGroup) {
34166
34166
  const s = fe({
34167
- id: i.id + "--" + Z.InvalidPropertiesCombination,
34167
+ id: i.id + "--" + J.InvalidPropertiesCombination,
34168
34168
  message: `Data type with id "${i.id}" has invalid properties combination. Only one of the following properties can be present at the time: 'entity', 'andChildrenGroup' or 'orChildrenGroup'`,
34169
34169
  issue: null,
34170
34170
  severity: R.Error,
34171
- code: Z.InvalidPropertiesCombination,
34171
+ code: J.InvalidPropertiesCombination,
34172
34172
  entity: i
34173
34173
  });
34174
34174
  r.push(s.error);
@@ -34308,7 +34308,7 @@ const Re = class Re extends tt {
34308
34308
  Then creates a new instance of the entity
34309
34309
  */
34310
34310
  static fromGenerationTarget(e, t) {
34311
- const r = C(e.parent), s = t.get(r);
34311
+ const r = B(e.parent), s = t.get(r);
34312
34312
  let d = null;
34313
34313
  e.entity && (d = t.get(e.entity));
34314
34314
  const o = {
@@ -34634,7 +34634,7 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
34634
34634
  hydrateAncestors() {
34635
34635
  const e = [], t = [], r = [], s = [];
34636
34636
  if (this.initialData.parent) {
34637
- const d = C(
34637
+ const d = B(
34638
34638
  this.initialData.parent
34639
34639
  ), o = this.project.get(d);
34640
34640
  if (o)
@@ -34646,7 +34646,7 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
34646
34646
  } else
34647
34647
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
34648
34648
  if (this.initialData.entity) {
34649
- const d = C(
34649
+ const d = B(
34650
34650
  this.initialData.entity
34651
34651
  ), o = this.project.get(d);
34652
34652
  o && (o.type === n.DefinitionEntity && o.parent === this || (this.setEntity(o), o.type !== n.BuiltInBaseEntity && o.type !== n.PrimitiveEntity && e.push(o)));
@@ -35437,14 +35437,14 @@ function gS(i) {
35437
35437
  const r = LS(i), s = Pi(i), d = [...r, ...s];
35438
35438
  if (i.id === "exec-sequentially-operation-call-id") {
35439
35439
  const l = fe({
35440
- id: `${i.id}--${Z.PropertyImplementsNonAbstact}`,
35440
+ id: `${i.id}--${J.PropertyImplementsNonAbstact}`,
35441
35441
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a non-abstract property "${j(
35442
35442
  i,
35443
35443
  i.project
35444
35444
  )}" with id "${i.id}".`,
35445
35445
  issue: null,
35446
35446
  severity: R.Error,
35447
- code: Z.PropertyImplementsNonAbstact,
35447
+ code: J.PropertyImplementsNonAbstact,
35448
35448
  entity: i
35449
35449
  });
35450
35450
  d.push(l.error);
@@ -35501,19 +35501,19 @@ const De = class De extends tt {
35501
35501
  static fromGenerationTarget(e, t) {
35502
35502
  let r = t;
35503
35503
  if (e.parent) {
35504
- const m = C(e.parent);
35504
+ const m = B(e.parent);
35505
35505
  r = t.get(m);
35506
35506
  }
35507
- const s = C(e.declaration), d = t.get(
35507
+ const s = B(e.declaration), d = t.get(
35508
35508
  s
35509
35509
  ), o = e.calledByEntry.map((m) => {
35510
- const T = C(m);
35510
+ const T = B(m);
35511
35511
  return t.get(T);
35512
35512
  }), l = e.calledBySuccess.map((m) => {
35513
- const T = C(m);
35513
+ const T = B(m);
35514
35514
  return t.get(T);
35515
35515
  }), u = e.calledByError.map((m) => {
35516
- const T = C(m);
35516
+ const T = B(m);
35517
35517
  return t.get(T);
35518
35518
  }), y = {
35519
35519
  id: e.id,
@@ -35578,7 +35578,7 @@ const De = class De extends tt {
35578
35578
  ...d.errors,
35579
35579
  ...ot(r)
35580
35580
  );
35581
- const o = C(
35581
+ const o = B(
35582
35582
  r.declaration
35583
35583
  );
35584
35584
  if (o) {
@@ -35801,7 +35801,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
35801
35801
  hydrateAncestors() {
35802
35802
  const e = [], t = [], r = [], s = [];
35803
35803
  if (this.initialData.parent) {
35804
- const d = C(
35804
+ const d = B(
35805
35805
  this.initialData.parent
35806
35806
  ), o = this.project.get(d);
35807
35807
  if (o)
@@ -35813,7 +35813,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
35813
35813
  } else
35814
35814
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
35815
35815
  if (this.initialData.declaration) {
35816
- const d = C(
35816
+ const d = B(
35817
35817
  this.initialData.declaration
35818
35818
  ), o = this.project.get(
35819
35819
  d
@@ -35821,15 +35821,15 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
35821
35821
  o && (this.setDeclaration(o), e.push(o));
35822
35822
  }
35823
35823
  return this.initialData.calledByEntry.forEach((d) => {
35824
- const o = C(d), l = this.project.get(o);
35824
+ const o = B(d), l = this.project.get(o);
35825
35825
  l && (this.addEntryCaller(l, null), e.push(l));
35826
35826
  }), this.initialData.calledBySuccess.forEach((d) => {
35827
- const o = C(d), l = this.project.get(
35827
+ const o = B(d), l = this.project.get(
35828
35828
  o
35829
35829
  );
35830
35830
  l && (this.addSuccessCaller(l, null), e.push(l));
35831
35831
  }), this.initialData.calledByError.forEach((d) => {
35832
- const o = C(d), l = this.project.get(
35832
+ const o = B(d), l = this.project.get(
35833
35833
  o
35834
35834
  );
35835
35835
  l && (this.addErrorCaller(l, null), e.push(l));
@@ -36841,7 +36841,7 @@ const Pe = class Pe extends tt {
36841
36841
  static fromGenerationTarget(e, t) {
36842
36842
  let r = t;
36843
36843
  if (e.parent) {
36844
- const l = C(e.parent);
36844
+ const l = B(e.parent);
36845
36845
  r = t.get(l);
36846
36846
  }
36847
36847
  let s;
@@ -37123,7 +37123,7 @@ You can attach new logic to the existing 'global-event' but creating a new calla
37123
37123
  hydrateAncestors() {
37124
37124
  const e = [], t = [], r = [], s = [];
37125
37125
  if (this.initialData.parent) {
37126
- const d = C(
37126
+ const d = B(
37127
37127
  this.initialData.parent
37128
37128
  ), o = this.project.get(d);
37129
37129
  if (o)
@@ -37137,7 +37137,7 @@ You can attach new logic to the existing 'global-event' but creating a new calla
37137
37137
  `${zt(this.type)} with id '${this.id}' is missing a parent reference`
37138
37138
  );
37139
37139
  if (this.initialData.implements) {
37140
- const d = C(
37140
+ const d = B(
37141
37141
  this.initialData.implements
37142
37142
  ), o = this.project.get(
37143
37143
  d
@@ -37753,14 +37753,14 @@ const xe = class xe extends tt {
37753
37753
  Then creates a new instance of the entity
37754
37754
  */
37755
37755
  static fromGenerationTarget(e, t) {
37756
- const r = C(e.parent), s = t.get(r), d = e.calledByEntry.map((c) => {
37757
- const m = C(c);
37756
+ const r = B(e.parent), s = t.get(r), d = e.calledByEntry.map((c) => {
37757
+ const m = B(c);
37758
37758
  return t.get(m);
37759
37759
  }), o = e.calledBySuccess.map((c) => {
37760
- const m = C(c);
37760
+ const m = B(c);
37761
37761
  return t.get(m);
37762
37762
  }), l = e.calledByError.map((c) => {
37763
- const m = C(c);
37763
+ const m = B(c);
37764
37764
  return t.get(m);
37765
37765
  }), u = {
37766
37766
  id: e.id,
@@ -38010,7 +38010,7 @@ Specifically for break statements the parent needs to always be the 'loop' entit
38010
38010
  hydrateAncestors() {
38011
38011
  const e = [], t = [], r = [], s = [];
38012
38012
  if (this.initialData.parent) {
38013
- const d = C(
38013
+ const d = B(
38014
38014
  this.initialData.parent
38015
38015
  ), o = this.project.get(d);
38016
38016
  if (o)
@@ -38022,15 +38022,15 @@ Specifically for break statements the parent needs to always be the 'loop' entit
38022
38022
  } else
38023
38023
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
38024
38024
  return this.initialData.calledByEntry.forEach((d) => {
38025
- const o = C(d), l = this.project.get(o);
38025
+ const o = B(d), l = this.project.get(o);
38026
38026
  l && (l.addCall(this), e.push(l));
38027
38027
  }), this.initialData.calledBySuccess.forEach((d) => {
38028
- const o = C(d), l = this.project.get(
38028
+ const o = B(d), l = this.project.get(
38029
38029
  o
38030
38030
  );
38031
38031
  l && (l.addSuccessCall(this), e.push(l));
38032
38032
  }), this.initialData.calledByError.forEach((d) => {
38033
- const o = C(d), l = this.project.get(
38033
+ const o = B(d), l = this.project.get(
38034
38034
  o
38035
38035
  );
38036
38036
  l && (l.addErrorCall(this), e.push(l));
@@ -38642,7 +38642,7 @@ const we = class we extends tt {
38642
38642
  static fromGenerationTarget(e, t) {
38643
38643
  let r = null;
38644
38644
  if (e.parent) {
38645
- const o = C(e.parent);
38645
+ const o = B(e.parent);
38646
38646
  r = t.get(o);
38647
38647
  }
38648
38648
  const s = {
@@ -38960,7 +38960,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
38960
38960
  hydrateAncestors() {
38961
38961
  const e = [], t = [], r = [], s = [];
38962
38962
  if (this.initialData.parent) {
38963
- const d = C(
38963
+ const d = B(
38964
38964
  this.initialData.parent
38965
38965
  ), o = this.project.get(d);
38966
38966
  if (o)
@@ -39486,7 +39486,143 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
39486
39486
  y: 0
39487
39487
  };
39488
39488
  }
39489
- implementAsFunctionDeclaration(e, t = this.project.addChangeSet(
39489
+ implementAsGlobalEvent(e = this.project.addChangeSet(
39490
+ new A(
39491
+ this.project,
39492
+ "",
39493
+ v().toISOString(),
39494
+ this,
39495
+ !0,
39496
+ "implement-as-global-event"
39497
+ )
39498
+ ), t, r) {
39499
+ const s = t || this.project, d = r || I.UUID.uuid(), o = I.UUID.uuid(), l = {
39500
+ id: d,
39501
+ version: o,
39502
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39503
+ author: I.sessionAuthor,
39504
+ previousVersion: null,
39505
+ deleted: !1,
39506
+ type: n.GlobalEvent,
39507
+ name: this.name,
39508
+ description: this.description,
39509
+ inputs: [],
39510
+ calls: [],
39511
+ collapsed: !1,
39512
+ implements: this.toJSON(),
39513
+ parent: (s == null ? void 0 : s.toReference()) || null,
39514
+ x: 0,
39515
+ y: 0
39516
+ }, u = O(
39517
+ l,
39518
+ this.project
39519
+ );
39520
+ if (u.setParent(s, e), u.initChildren(e), e == null || e.add(u, b.Added), u.hydrateAncestors(), u.addSelfToProject(e), this.inputs.map((y, c) => {
39521
+ var V;
39522
+ const m = {
39523
+ id: I.UUID.uuid(),
39524
+ type: n.GenericReference,
39525
+ version: o,
39526
+ entityType: n.GlobalEvent,
39527
+ entityId: d
39528
+ }, T = {
39529
+ id: I.UUID.uuid(),
39530
+ version: I.UUID.uuid(),
39531
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39532
+ author: I.sessionAuthor,
39533
+ previousVersion: null,
39534
+ deleted: !1,
39535
+ type: n.ArgumentDeclaration,
39536
+ name: y.name,
39537
+ required: y.required,
39538
+ implements: y.toJSON(),
39539
+ constant: !0,
39540
+ writesValues: [],
39541
+ defaultValue: null,
39542
+ description: y.description,
39543
+ index: c,
39544
+ dataType: null,
39545
+ parent: m
39546
+ }, D = O(
39547
+ T,
39548
+ this.project
39549
+ );
39550
+ D.setParent(u, e), D.initChildren(e), e == null || e.add(D, b.Added), D.hydrateAncestors(), D.addSelfToProject(e);
39551
+ const w = ((V = y.dataType) == null ? void 0 : V.clone(e, D)) || null;
39552
+ w && (e == null || e.add(w, b.Added)), D.setDataType(w);
39553
+ }), this.outputs.length) {
39554
+ const y = I.UUID.uuid(), c = I.UUID.uuid(), m = {
39555
+ id: I.UUID.uuid(),
39556
+ // id: newId + '--return-statement-parent-ref',
39557
+ type: n.GenericReference,
39558
+ version: o,
39559
+ entityType: n.GlobalEvent,
39560
+ entityId: d
39561
+ }, T = {
39562
+ id: I.UUID.uuid(),
39563
+ type: n.GenericReference,
39564
+ version: o,
39565
+ entityType: n.GlobalEvent,
39566
+ entityId: d
39567
+ }, D = {
39568
+ id: y,
39569
+ version: c,
39570
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39571
+ author: I.sessionAuthor,
39572
+ previousVersion: null,
39573
+ deleted: !1,
39574
+ type: n.ReturnStatement,
39575
+ outputs: [],
39576
+ throws: null,
39577
+ calledBySuccess: [],
39578
+ calledByError: [],
39579
+ calledByEntry: [T],
39580
+ parent: m,
39581
+ x: 0,
39582
+ y: 0
39583
+ }, w = O(
39584
+ D,
39585
+ this.project
39586
+ );
39587
+ w.setParent(u, e), w.initChildren(e), e == null || e.add(w, b.Added), w.hydrateAncestors(), w.addSelfToProject(e), this.outputs.map((V, L) => {
39588
+ var Z;
39589
+ const $ = {
39590
+ id: I.UUID.uuid(),
39591
+ type: n.GenericReference,
39592
+ entityId: y,
39593
+ version: c,
39594
+ entityType: n.ReturnStatement
39595
+ }, C = {
39596
+ id: I.UUID.uuid(),
39597
+ version: I.UUID.uuid(),
39598
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39599
+ author: I.sessionAuthor,
39600
+ previousVersion: null,
39601
+ deleted: !1,
39602
+ type: n.ReturnDeclaration,
39603
+ name: V.name,
39604
+ description: V.description,
39605
+ readsValue: null,
39606
+ constant: !0,
39607
+ required: V.required,
39608
+ defaultValue: null,
39609
+ implements: V.toJSON(),
39610
+ isError: !1,
39611
+ index: L,
39612
+ dataType: null,
39613
+ parent: $
39614
+ }, U = O(
39615
+ C,
39616
+ this.project
39617
+ );
39618
+ U.setParent(w, e), U.initChildren(e), e == null || e.add(U, b.Added), U.hydrateAncestors(), U.addSelfToProject(e);
39619
+ const k = ((Z = V.dataType) == null ? void 0 : Z.clone(e, U)) || null;
39620
+ k && (e == null || e.add(k, b.Added)), U.setDataType(k);
39621
+ });
39622
+ }
39623
+ return e == null || e.attemptAutoclose("implement-as-function-declaration", this.id), u;
39624
+ }
39625
+ implementAsFunctionDeclaration(e = this.project.addChangeSet(
39490
39626
  new A(
39491
39627
  this.project,
39492
39628
  "",
@@ -39495,12 +39631,11 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
39495
39631
  !0,
39496
39632
  "implement-as-function-declaration"
39497
39633
  )
39498
- ), r) {
39499
- var y;
39500
- const s = e || this.project, d = r || I.UUID.uuid(), o = I.UUID.uuid(), l = {
39634
+ ), t, r) {
39635
+ const s = t || this.project, d = r || I.UUID.uuid(), o = I.UUID.uuid(), l = {
39501
39636
  id: d,
39502
39637
  version: o,
39503
- createdAt: (t == null ? void 0 : t.timestamp) || v().toISOString(),
39638
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39504
39639
  author: I.sessionAuthor,
39505
39640
  previousVersion: null,
39506
39641
  deleted: !1,
@@ -39513,64 +39648,64 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
39513
39648
  private: !1,
39514
39649
  implements: this.toJSON(),
39515
39650
  index: 0,
39516
- parent: ((y = this.parent) == null ? void 0 : y.toReference()) || null,
39651
+ parent: (s == null ? void 0 : s.toReference()) || null,
39517
39652
  x: 0,
39518
39653
  y: 0
39519
39654
  }, u = O(
39520
39655
  l,
39521
39656
  this.project
39522
39657
  );
39523
- if (u.setParent(s, t), u.initChildren(t), t == null || t.add(u, b.Added), u.hydrateAncestors(), u.addSelfToProject(t), this.inputs.map((c, m) => {
39524
- var L;
39525
- const T = {
39658
+ if (u.setParent(s, e), u.initChildren(e), e == null || e.add(u, b.Added), u.hydrateAncestors(), u.addSelfToProject(e), this.inputs.map((y, c) => {
39659
+ var V;
39660
+ const m = {
39526
39661
  id: I.UUID.uuid(),
39527
39662
  type: n.GenericReference,
39528
39663
  version: o,
39529
39664
  entityType: n.FunctionDeclaration,
39530
39665
  entityId: d
39531
- }, D = {
39666
+ }, T = {
39532
39667
  id: I.UUID.uuid(),
39533
39668
  version: I.UUID.uuid(),
39534
- createdAt: (t == null ? void 0 : t.timestamp) || v().toISOString(),
39669
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39535
39670
  author: I.sessionAuthor,
39536
39671
  previousVersion: null,
39537
39672
  deleted: !1,
39538
39673
  type: n.ArgumentDeclaration,
39539
- name: c.name,
39540
- required: c.required,
39541
- implements: c.toJSON(),
39674
+ name: y.name,
39675
+ required: y.required,
39676
+ implements: y.toJSON(),
39542
39677
  constant: !0,
39543
39678
  writesValues: [],
39544
39679
  defaultValue: null,
39545
- description: c.description,
39546
- index: m,
39680
+ description: y.description,
39681
+ index: c,
39547
39682
  dataType: null,
39548
- parent: T
39549
- }, w = O(
39550
- D,
39683
+ parent: m
39684
+ }, D = O(
39685
+ T,
39551
39686
  this.project
39552
39687
  );
39553
- w.setParent(u, t), w.initChildren(t), t == null || t.add(w, b.Added), w.hydrateAncestors(), w.addSelfToProject(t);
39554
- const V = ((L = c.dataType) == null ? void 0 : L.clone(t, w)) || null;
39555
- V && (t == null || t.add(V, b.Added)), w.setDataType(V);
39688
+ D.setParent(u, e), D.initChildren(e), e == null || e.add(D, b.Added), D.hydrateAncestors(), D.addSelfToProject(e);
39689
+ const w = ((V = y.dataType) == null ? void 0 : V.clone(e, D)) || null;
39690
+ w && (e == null || e.add(w, b.Added)), D.setDataType(w);
39556
39691
  }), this.outputs.length) {
39557
- const c = I.UUID.uuid(), m = I.UUID.uuid(), T = {
39692
+ const y = I.UUID.uuid(), c = I.UUID.uuid(), m = {
39558
39693
  id: I.UUID.uuid(),
39559
39694
  // id: newId + '--return-statement-parent-ref',
39560
39695
  type: n.GenericReference,
39561
39696
  version: o,
39562
39697
  entityType: n.FunctionDeclaration,
39563
39698
  entityId: d
39564
- }, D = {
39699
+ }, T = {
39565
39700
  id: I.UUID.uuid(),
39566
39701
  type: n.GenericReference,
39567
39702
  version: o,
39568
39703
  entityType: n.FunctionDeclaration,
39569
39704
  entityId: d
39570
- }, w = {
39571
- id: c,
39572
- version: m,
39573
- createdAt: (t == null ? void 0 : t.timestamp) || v().toISOString(),
39705
+ }, D = {
39706
+ id: y,
39707
+ version: c,
39708
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39574
39709
  author: I.sessionAuthor,
39575
39710
  previousVersion: null,
39576
39711
  deleted: !1,
@@ -39579,54 +39714,54 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
39579
39714
  throws: null,
39580
39715
  calledBySuccess: [],
39581
39716
  calledByError: [],
39582
- calledByEntry: [D],
39583
- parent: T,
39717
+ calledByEntry: [T],
39718
+ parent: m,
39584
39719
  x: 0,
39585
39720
  y: 0
39586
- }, V = O(
39587
- w,
39721
+ }, w = O(
39722
+ D,
39588
39723
  this.project
39589
39724
  );
39590
- V.setParent(u, t), V.initChildren(t), t == null || t.add(V, b.Added), V.hydrateAncestors(), V.addSelfToProject(t), this.outputs.map((L, $) => {
39591
- var Y;
39592
- const B = {
39725
+ w.setParent(u, e), w.initChildren(e), e == null || e.add(w, b.Added), w.hydrateAncestors(), w.addSelfToProject(e), this.outputs.map((V, L) => {
39726
+ var Z;
39727
+ const $ = {
39593
39728
  id: I.UUID.uuid(),
39594
39729
  type: n.GenericReference,
39595
- entityId: c,
39596
- version: m,
39730
+ entityId: y,
39731
+ version: c,
39597
39732
  entityType: n.ReturnStatement
39598
- }, U = {
39733
+ }, C = {
39599
39734
  id: I.UUID.uuid(),
39600
39735
  version: I.UUID.uuid(),
39601
- createdAt: (t == null ? void 0 : t.timestamp) || v().toISOString(),
39736
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39602
39737
  author: I.sessionAuthor,
39603
39738
  previousVersion: null,
39604
39739
  deleted: !1,
39605
39740
  type: n.ReturnDeclaration,
39606
- name: L.name,
39607
- description: L.description,
39741
+ name: V.name,
39742
+ description: V.description,
39608
39743
  readsValue: null,
39609
39744
  constant: !0,
39610
- required: L.required,
39745
+ required: V.required,
39611
39746
  defaultValue: null,
39612
- implements: L.toJSON(),
39747
+ implements: V.toJSON(),
39613
39748
  isError: !1,
39614
- index: $,
39749
+ index: L,
39615
39750
  dataType: null,
39616
- parent: B
39617
- }, k = O(
39618
- U,
39751
+ parent: $
39752
+ }, U = O(
39753
+ C,
39619
39754
  this.project
39620
39755
  );
39621
- k.setParent(V, t), k.initChildren(t), t == null || t.add(k, b.Added), k.hydrateAncestors(), k.addSelfToProject(t);
39622
- const J = ((Y = L.dataType) == null ? void 0 : Y.clone(t, k)) || null;
39623
- J && (t == null || t.add(J, b.Added)), k.setDataType(J);
39756
+ U.setParent(w, e), U.initChildren(e), e == null || e.add(U, b.Added), U.hydrateAncestors(), U.addSelfToProject(e);
39757
+ const k = ((Z = V.dataType) == null ? void 0 : Z.clone(e, U)) || null;
39758
+ k && (e == null || e.add(k, b.Added)), U.setDataType(k);
39624
39759
  });
39625
39760
  }
39626
- return t == null || t.attemptAutoclose("implement-as-function-declaration", this.id), u;
39761
+ return e == null || e.attemptAutoclose("implement-as-function-declaration", this.id), u;
39627
39762
  }
39628
39763
  // This function returns an instance of an loop, which is an implementation of this loop declaration
39629
- implementAsLoop(e, t = this.project.addChangeSet(
39764
+ implementAsLoop(e = this.project.addChangeSet(
39630
39765
  new A(
39631
39766
  this.project,
39632
39767
  "",
@@ -39635,11 +39770,11 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
39635
39770
  !0,
39636
39771
  "implement-as-loop"
39637
39772
  )
39638
- ), r) {
39639
- const s = e || this.project, d = r || I.UUID.uuid(), o = I.UUID.uuid(), l = {
39773
+ ), t, r) {
39774
+ const s = t || this.project, d = r || I.UUID.uuid(), o = I.UUID.uuid(), l = {
39640
39775
  id: d,
39641
39776
  version: o,
39642
- createdAt: (t == null ? void 0 : t.timestamp) || v().toISOString(),
39777
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39643
39778
  author: I.sessionAuthor,
39644
39779
  previousVersion: null,
39645
39780
  deleted: !1,
@@ -39663,10 +39798,10 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
39663
39798
  l,
39664
39799
  this.project
39665
39800
  );
39666
- return u.setParent(s, t), u.initChildren(t), t == null || t.add(u, b.Added), u.hydrateAncestors(), u.addSelfToProject(t), u.afterAllChildrenInitialized(t), t == null || t.attemptAutoclose("implement-as-loop", this.id), u;
39801
+ return u.setParent(s, e), u.initChildren(e), e == null || e.add(u, b.Added), u.hydrateAncestors(), u.addSelfToProject(e), u.afterAllChildrenInitialized(e), e == null || e.attemptAutoclose("implement-as-loop", this.id), u;
39667
39802
  }
39668
39803
  // This function returns an instance of an operation, which is an implementation of this operation declaration
39669
- implementAsOperation(e, t = this.project.addChangeSet(
39804
+ implementAsOperation(e = this.project.addChangeSet(
39670
39805
  new A(
39671
39806
  this.project,
39672
39807
  "",
@@ -39675,11 +39810,11 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
39675
39810
  !0,
39676
39811
  "implement-as-operation"
39677
39812
  )
39678
- ), r) {
39679
- const s = e || this.project, d = r || I.UUID.uuid(), o = I.UUID.uuid(), l = {
39813
+ ), t, r) {
39814
+ const s = t || this.project, d = r || I.UUID.uuid(), o = I.UUID.uuid(), l = {
39680
39815
  id: d,
39681
39816
  version: o,
39682
- createdAt: (t == null ? void 0 : t.timestamp) || v().toISOString(),
39817
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39683
39818
  author: I.sessionAuthor,
39684
39819
  previousVersion: null,
39685
39820
  deleted: !1,
@@ -39701,12 +39836,12 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
39701
39836
  l,
39702
39837
  this.project
39703
39838
  );
39704
- return u.setParent(s, t), u.initChildren(t), t == null || t.add(u, b.Added), u.hydrateAncestors(), u.addSelfToProject(t), this.inputs.forEach((y, c) => {
39839
+ return u.setParent(s, e), u.initChildren(e), e == null || e.add(u, b.Added), u.hydrateAncestors(), u.addSelfToProject(e), this.inputs.forEach((y, c) => {
39705
39840
  const m = {
39706
39841
  id: I.UUID.uuid(),
39707
39842
  version: I.UUID.uuid(),
39708
39843
  type: n.InputMap,
39709
- createdAt: (t == null ? void 0 : t.timestamp) || v().toISOString(),
39844
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39710
39845
  author: I.sessionAuthor,
39711
39846
  previousVersion: null,
39712
39847
  deleted: !1,
@@ -39727,12 +39862,12 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
39727
39862
  m,
39728
39863
  this.project
39729
39864
  );
39730
- T.setParent(u, t), T.initChildren(t), t == null || t.add(T, b.Added), T.hydrateAncestors(), T.addSelfToProject(t);
39865
+ T.setParent(u, e), T.initChildren(e), e == null || e.add(T, b.Added), T.hydrateAncestors(), T.addSelfToProject(e);
39731
39866
  }), this.outputs.forEach((y, c) => {
39732
39867
  const m = {
39733
39868
  id: I.UUID.uuid(),
39734
39869
  version: I.UUID.uuid(),
39735
- createdAt: (t == null ? void 0 : t.timestamp) || v().toISOString(),
39870
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39736
39871
  author: I.sessionAuthor,
39737
39872
  previousVersion: null,
39738
39873
  deleted: !1,
@@ -39752,10 +39887,10 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
39752
39887
  m,
39753
39888
  this.project
39754
39889
  );
39755
- T.setParent(u, t), T.initChildren(t), t == null || t.add(T, b.Added), T.hydrateAncestors(), T.addSelfToProject(t);
39756
- }), u.afterAllChildrenInitialized(t), t == null || t.attemptAutoclose("implement-as-operation", this.id), u;
39890
+ T.setParent(u, e), T.initChildren(e), e == null || e.add(T, b.Added), T.hydrateAncestors(), T.addSelfToProject(e);
39891
+ }), u.afterAllChildrenInitialized(e), e == null || e.attemptAutoclose("implement-as-operation", this.id), u;
39757
39892
  }
39758
- implementAsCondition(e, t = this.project.addChangeSet(
39893
+ implementAsCondition(e = this.project.addChangeSet(
39759
39894
  new A(
39760
39895
  this.project,
39761
39896
  "",
@@ -39764,11 +39899,11 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
39764
39899
  !0,
39765
39900
  "implement-as-condition"
39766
39901
  )
39767
- ), r) {
39768
- const s = e || this.project, d = r || I.UUID.uuid(), o = I.UUID.uuid(), l = {
39902
+ ), t, r) {
39903
+ const s = t || this.project, d = r || I.UUID.uuid(), o = I.UUID.uuid(), l = {
39769
39904
  id: d,
39770
39905
  version: o,
39771
- createdAt: (t == null ? void 0 : t.timestamp) || v().toISOString(),
39906
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39772
39907
  author: I.sessionAuthor,
39773
39908
  previousVersion: null,
39774
39909
  deleted: !1,
@@ -39787,12 +39922,12 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
39787
39922
  l,
39788
39923
  this.project
39789
39924
  );
39790
- return u.setParent(s, t), u.initChildren(t), t == null || t.add(u, b.Added), u.hydrateAncestors(), u.addSelfToProject(t), this.inputs.forEach((y, c) => {
39925
+ return u.setParent(s, e), u.initChildren(e), e == null || e.add(u, b.Added), u.hydrateAncestors(), u.addSelfToProject(e), this.inputs.forEach((y, c) => {
39791
39926
  const m = {
39792
39927
  id: I.UUID.uuid(),
39793
39928
  version: I.UUID.uuid(),
39794
39929
  type: n.InputMap,
39795
- createdAt: (t == null ? void 0 : t.timestamp) || v().toISOString(),
39930
+ createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
39796
39931
  author: I.sessionAuthor,
39797
39932
  previousVersion: null,
39798
39933
  deleted: !1,
@@ -39813,8 +39948,8 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
39813
39948
  m,
39814
39949
  this.project
39815
39950
  );
39816
- T.setParent(u, t), T.initChildren(t), t == null || t.add(T, b.Added), T.hydrateAncestors(), T.addSelfToProject(t);
39817
- }), u.afterAllChildrenInitialized(t), t == null || t.attemptAutoclose("implement-as-condition", this.id), u;
39951
+ T.setParent(u, e), T.initChildren(e), e == null || e.add(T, b.Added), T.hydrateAncestors(), T.addSelfToProject(e);
39952
+ }), u.afterAllChildrenInitialized(e), e == null || e.attemptAutoclose("implement-as-condition", this.id), u;
39818
39953
  }
39819
39954
  // Clear the errors of this entity and all its nested entities recursively
39820
39955
  clearErrors() {
@@ -40003,19 +40138,19 @@ const se = class se extends tt {
40003
40138
  static fromGenerationTarget(e, t) {
40004
40139
  let r = t;
40005
40140
  if (e.parent) {
40006
- const m = C(e.parent);
40141
+ const m = B(e.parent);
40007
40142
  r = t.get(m);
40008
40143
  }
40009
- const s = C(e.declaration), d = t.get(
40144
+ const s = B(e.declaration), d = t.get(
40010
40145
  s
40011
40146
  ), o = e.calledByEntry.map((m) => {
40012
- const T = C(m);
40147
+ const T = B(m);
40013
40148
  return t.get(T);
40014
40149
  }), l = e.calledBySuccess.map((m) => {
40015
- const T = C(m);
40150
+ const T = B(m);
40016
40151
  return t.get(T);
40017
40152
  }), u = e.calledByError.map((m) => {
40018
- const T = C(m);
40153
+ const T = B(m);
40019
40154
  return t.get(T);
40020
40155
  }), y = {
40021
40156
  id: e.id,
@@ -40350,7 +40485,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
40350
40485
  hydrateAncestors() {
40351
40486
  const e = [], t = [], r = [], s = [];
40352
40487
  if (this.initialData.parent) {
40353
- const d = C(
40488
+ const d = B(
40354
40489
  this.initialData.parent
40355
40490
  ), o = this.project.get(d);
40356
40491
  if (o)
@@ -40362,7 +40497,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
40362
40497
  } else
40363
40498
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
40364
40499
  if (this.initialData.declaration) {
40365
- const d = C(
40500
+ const d = B(
40366
40501
  this.initialData.declaration
40367
40502
  ), o = this.project.get(
40368
40503
  d
@@ -40370,15 +40505,15 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
40370
40505
  o && (this.setDeclaration(o), e.push(o));
40371
40506
  }
40372
40507
  return this.initialData.calledByEntry.forEach((d) => {
40373
- const o = C(d), l = this.project.get(o);
40508
+ const o = B(d), l = this.project.get(o);
40374
40509
  l && (this.addEntryCaller(l, null), e.push(l));
40375
40510
  }), this.initialData.calledBySuccess.forEach((d) => {
40376
- const o = C(d), l = this.project.get(
40511
+ const o = B(d), l = this.project.get(
40377
40512
  o
40378
40513
  );
40379
40514
  l && (this.addSuccessCaller(l, null), e.push(l));
40380
40515
  }), this.initialData.calledByError.forEach((d) => {
40381
- const o = C(d), l = this.project.get(
40516
+ const o = B(d), l = this.project.get(
40382
40517
  o
40383
40518
  );
40384
40519
  l && (this.addErrorCaller(l, null), e.push(l));
@@ -41280,30 +41415,30 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
41280
41415
  required: w.required,
41281
41416
  parent: this.body.toReference(),
41282
41417
  writesValues: []
41283
- }, H = O(
41418
+ }, Y = O(
41284
41419
  he,
41285
41420
  this.project
41286
41421
  );
41287
- H.setParent(this.body, e), H.initChildren(e), e == null || e.add(
41288
- H,
41422
+ Y.setParent(this.body, e), Y.initChildren(e), e == null || e.add(
41423
+ Y,
41289
41424
  b.Added
41290
- ), H.addSelfToProject(e), r.push(H), $ = H;
41425
+ ), Y.addSelfToProject(e), r.push(Y), $ = Y;
41291
41426
  }
41292
- const B = this.body.inputs.find(
41427
+ const C = this.body.inputs.find(
41293
41428
  (de) => de.index === $.index && de !== $
41294
41429
  ), U = this.body.inputs.filter(
41295
41430
  (de) => de !== $
41296
41431
  );
41297
41432
  let k = $.index;
41298
- B && (k = Math.max(...U.map((de) => de.index)) + 1), $.index !== k && ($.metaSync({ index: k }, e), t.push($));
41299
- const J = $.getDataType(e);
41300
- let Y = J;
41433
+ C && (k = Math.max(...U.map((de) => de.index)) + 1), $.index !== k && ($.metaSync({ index: k }, e), t.push($));
41434
+ const Z = $.getDataType(e);
41435
+ let K = Z;
41301
41436
  if (V)
41302
- if (!J || !Tr(
41303
- J,
41437
+ if (!Z || !Tr(
41438
+ Z,
41304
41439
  V
41305
41440
  )) {
41306
- if (!Y) {
41441
+ if (!K) {
41307
41442
  const he = V.clone(
41308
41443
  e,
41309
41444
  $
@@ -41311,13 +41446,13 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
41311
41446
  e == null || e.add(
41312
41447
  he,
41313
41448
  b.Added
41314
- ), he.addSelfToProject(e), Y = he, r.push(he), t.push($);
41449
+ ), he.addSelfToProject(e), K = he, r.push(he), t.push($);
41315
41450
  }
41316
- const de = Y.merge(V, e);
41317
- de.self === Y ? V.remove({ ignoreUpstream: !1 }, e) : de.self === V && (Y.remove({ ignoreUpstream: !1 }, e), Y = V), Y.metaSync({ isList: !0 }, e);
41451
+ const de = K.merge(V, e);
41452
+ de.self === K ? V.remove({ ignoreUpstream: !1 }, e) : de.self === V && (K.remove({ ignoreUpstream: !1 }, e), K = V), K.metaSync({ isList: !0 }, e);
41318
41453
  } else
41319
- Y.isList || (Y.metaSync({ isList: !0 }, e), t.push(Y));
41320
- if (!V && !Y) {
41454
+ K.isList || (K.metaSync({ isList: !0 }, e), t.push(K));
41455
+ if (!V && !K) {
41321
41456
  const de = {
41322
41457
  id: I.UUID.uuid(),
41323
41458
  version: I.UUID.uuid(),
@@ -41716,12 +41851,12 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
41716
41851
  switch (this.declaration.id) {
41717
41852
  case X.List: {
41718
41853
  const w = this.body.inputs.find(($) => {
41719
- var B;
41720
- return ((B = $.implements) == null ? void 0 : B.id) === G[n.Loop][X.List].body.inputs.currentValue.id;
41854
+ var C;
41855
+ return ((C = $.implements) == null ? void 0 : C.id) === G[n.Loop][X.List].body.inputs.currentValue.id;
41721
41856
  }), V = this.inputs.find(
41722
41857
  ($) => {
41723
- var B;
41724
- return ((B = $.declaration) == null ? void 0 : B.id) === G[n.Loop][X.List].inputs.list.id;
41858
+ var C;
41859
+ return ((C = $.declaration) == null ? void 0 : C.id) === G[n.Loop][X.List].inputs.list.id;
41725
41860
  }
41726
41861
  );
41727
41862
  if (!V)
@@ -41735,7 +41870,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
41735
41870
  L && (!w.implements || w.implements.id !== L.id) && (w.setImplements(L, e), t.push(w));
41736
41871
  let U = w.getDataType(e);
41737
41872
  if (!U) {
41738
- const J = {
41873
+ const Z = {
41739
41874
  id: I.UUID.uuid(),
41740
41875
  version: I.UUID.uuid(),
41741
41876
  createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
@@ -41751,14 +41886,14 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
41751
41886
  andChildrenGroup: [],
41752
41887
  orChildrenGroup: [],
41753
41888
  parent: $.toReference()
41754
- }, Y = O(
41755
- J,
41889
+ }, K = O(
41890
+ Z,
41756
41891
  this.project
41757
41892
  );
41758
- Y.setParent($, e), Y.initChildren(e), e == null || e.add(
41759
- Y,
41893
+ K.setParent($, e), K.initChildren(e), e == null || e.add(
41894
+ K,
41760
41895
  b.Added
41761
- ), Y.addSelfToProject(e), r.push(Y), U = Y;
41896
+ ), K.addSelfToProject(e), r.push(K), U = K;
41762
41897
  }
41763
41898
  const k = V.getDataType(
41764
41899
  e
@@ -41783,17 +41918,17 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
41783
41918
  writesValues: [],
41784
41919
  dataType: null,
41785
41920
  parent: this.body.toReference()
41786
- }, B = O(
41921
+ }, C = O(
41787
41922
  $,
41788
41923
  this.project
41789
41924
  );
41790
- B.initChildren(e), B.setParent(this.body, e), e == null || e.add(
41791
- B,
41925
+ C.initChildren(e), C.setParent(this.body, e), e == null || e.add(
41926
+ C,
41792
41927
  b.Added
41793
- ), B.addSelfToProject(e), L && (!B.implements || B.implements.id !== L.id) && (B.setImplements(
41928
+ ), C.addSelfToProject(e), L && (!C.implements || C.implements.id !== L.id) && (C.setImplements(
41794
41929
  L,
41795
41930
  e
41796
- ), t.push(B)), r.push(B), this.currentValueArgumentDeclaration = B;
41931
+ ), t.push(C)), r.push(C), this.currentValueArgumentDeclaration = C;
41797
41932
  }
41798
41933
  break;
41799
41934
  }
@@ -41807,12 +41942,12 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
41807
41942
  }
41808
41943
  case X.ObjectKeys: {
41809
41944
  const w = this.body.inputs.find(($) => {
41810
- var B;
41811
- return ((B = $.implements) == null ? void 0 : B.id) === G[n.Loop][X.ObjectKeys].body.inputs.currentValue.id;
41945
+ var C;
41946
+ return ((C = $.implements) == null ? void 0 : C.id) === G[n.Loop][X.ObjectKeys].body.inputs.currentValue.id;
41812
41947
  });
41813
41948
  if (!this.inputs.find(($) => {
41814
- var B;
41815
- return ((B = $.declaration) == null ? void 0 : B.id) === G[n.Loop][X.ObjectKeys].inputs.object.id;
41949
+ var C;
41950
+ return ((C = $.declaration) == null ? void 0 : C.id) === G[n.Loop][X.ObjectKeys].inputs.object.id;
41816
41951
  }))
41817
41952
  break;
41818
41953
  const L = this.getCurrentValueBuiltInValueDescriptor();
@@ -41845,14 +41980,14 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
41845
41980
  andChildrenGroup: [],
41846
41981
  orChildrenGroup: [],
41847
41982
  parent: $.toReference()
41848
- }, J = O(
41983
+ }, Z = O(
41849
41984
  k,
41850
41985
  this.project
41851
41986
  );
41852
- J.setParent($, e), J.initChildren(e), e == null || e.add(
41853
- J,
41987
+ Z.setParent($, e), Z.initChildren(e), e == null || e.add(
41988
+ Z,
41854
41989
  b.Added
41855
- ), J.addSelfToProject(e), U = J;
41990
+ ), Z.addSelfToProject(e), U = Z;
41856
41991
  }
41857
41992
  } else {
41858
41993
  const $ = {
@@ -41873,27 +42008,27 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
41873
42008
  writesValues: [],
41874
42009
  dataType: null,
41875
42010
  parent: this.body.toReference()
41876
- }, B = O(
42011
+ }, C = O(
41877
42012
  $,
41878
42013
  this.project
41879
42014
  );
41880
- B.initChildren(e), B.setParent(this.body, e), e == null || e.add(
41881
- B,
42015
+ C.initChildren(e), C.setParent(this.body, e), e == null || e.add(
42016
+ C,
41882
42017
  b.Added
41883
- ), B.addSelfToProject(e), L && (!B.implements || B.implements.id !== L.id) && (B.setImplements(
42018
+ ), C.addSelfToProject(e), L && (!C.implements || C.implements.id !== L.id) && (C.setImplements(
41884
42019
  L,
41885
42020
  e
41886
- ), t.push(B)), r.push(B), this.currentValueArgumentDeclaration = B;
42021
+ ), t.push(C)), r.push(C), this.currentValueArgumentDeclaration = C;
41887
42022
  }
41888
42023
  break;
41889
42024
  }
41890
42025
  case X.ObjectValues: {
41891
42026
  const w = this.body.inputs.find(($) => {
41892
- var B;
41893
- return ((B = $.implements) == null ? void 0 : B.id) === G[n.Loop][X.ObjectValues].body.inputs.currentValue.id;
42027
+ var C;
42028
+ return ((C = $.implements) == null ? void 0 : C.id) === G[n.Loop][X.ObjectValues].body.inputs.currentValue.id;
41894
42029
  }), V = this.inputs.find(($) => {
41895
- var B;
41896
- return ((B = $.declaration) == null ? void 0 : B.id) === G[n.Loop][X.ObjectValues].inputs.object.id;
42030
+ var C;
42031
+ return ((C = $.declaration) == null ? void 0 : C.id) === G[n.Loop][X.ObjectValues].inputs.object.id;
41897
42032
  });
41898
42033
  if (!V)
41899
42034
  break;
@@ -41909,17 +42044,17 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
41909
42044
  ), t.push(w));
41910
42045
  let U = w.getDataType(e);
41911
42046
  if (U) {
41912
- const k = V.getDataType(e), J = ((m = k == null ? void 0 : k.entity) == null ? void 0 : m.properties) || [];
41913
- (T = U.orChildrenGroup) == null || T.forEach((Y) => {
41914
- const { updated: de, removed: he } = Y.remove(
42047
+ const k = V.getDataType(e), Z = ((m = k == null ? void 0 : k.entity) == null ? void 0 : m.properties) || [];
42048
+ (T = U.orChildrenGroup) == null || T.forEach((K) => {
42049
+ const { updated: de, removed: he } = K.remove(
41915
42050
  {
41916
42051
  ignoreUpstream: !1
41917
42052
  },
41918
42053
  e
41919
42054
  );
41920
42055
  t.push(...de), s.push(...he);
41921
- }), J.forEach((Y) => {
41922
- if (!Y.getDataType(e)) {
42056
+ }), Z.forEach((K) => {
42057
+ if (!K.getDataType(e)) {
41923
42058
  const he = {
41924
42059
  id: I.UUID.uuid(),
41925
42060
  version: I.UUID.uuid(),
@@ -41937,17 +42072,17 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
41937
42072
  orChildrenGroup: [],
41938
42073
  parentRelationType: At.OrDataTypeGroup,
41939
42074
  parent: U.toReference()
41940
- }, H = O(
42075
+ }, Y = O(
41941
42076
  he,
41942
42077
  this.project
41943
42078
  );
41944
- H.setParent(
42079
+ Y.setParent(
41945
42080
  U,
41946
42081
  e
41947
- ), H.initChildren(e), e == null || e.add(
41948
- H,
42082
+ ), Y.initChildren(e), e == null || e.add(
42083
+ Y,
41949
42084
  b.Added
41950
- ), H.addSelfToProject(e), r.push(H);
42085
+ ), Y.addSelfToProject(e), r.push(Y);
41951
42086
  }
41952
42087
  });
41953
42088
  } else {
@@ -41967,16 +42102,16 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
41967
42102
  andChildrenGroup: [],
41968
42103
  orChildrenGroup: [],
41969
42104
  parent: $.toReference()
41970
- }, J = O(
42105
+ }, Z = O(
41971
42106
  k,
41972
42107
  this.project
41973
42108
  );
41974
- J.setParent($, e), J.initChildren(e), e == null || e.add(
41975
- J,
42109
+ Z.setParent($, e), Z.initChildren(e), e == null || e.add(
42110
+ Z,
41976
42111
  b.Added
41977
- ), J.addSelfToProject(e), U = J;
41978
- const Y = V.getDataType(e);
41979
- (((c = Y == null ? void 0 : Y.entity) == null ? void 0 : c.properties) || []).forEach((he) => {
42112
+ ), Z.addSelfToProject(e), U = Z;
42113
+ const K = V.getDataType(e);
42114
+ (((c = K == null ? void 0 : K.entity) == null ? void 0 : c.properties) || []).forEach((he) => {
41980
42115
  if (!he.getDataType(e)) {
41981
42116
  const ne = {
41982
42117
  id: I.UUID.uuid(),
@@ -41994,13 +42129,13 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
41994
42129
  andChildrenGroup: [],
41995
42130
  orChildrenGroup: [],
41996
42131
  parentRelationType: At.OrDataTypeGroup,
41997
- parent: J.toReference()
42132
+ parent: Z.toReference()
41998
42133
  }, $t = O(
41999
42134
  ne,
42000
42135
  this.project
42001
42136
  );
42002
42137
  $t.setParent(
42003
- J,
42138
+ Z,
42004
42139
  e
42005
42140
  ), $t.initChildren(e), e == null || e.add(
42006
42141
  $t,
@@ -42028,28 +42163,28 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
42028
42163
  writesValues: [],
42029
42164
  dataType: null,
42030
42165
  parent: this.body.toReference()
42031
- }, B = O(
42166
+ }, C = O(
42032
42167
  $,
42033
42168
  this.project
42034
42169
  );
42035
- B.initChildren(e), B.setParent(this.body, e), e == null || e.add(
42036
- B,
42170
+ C.initChildren(e), C.setParent(this.body, e), e == null || e.add(
42171
+ C,
42037
42172
  b.Added
42038
- ), B.addSelfToProject(e), L && (!B.implements || B.implements.id !== L.id) && (B.setImplements(
42173
+ ), C.addSelfToProject(e), L && (!C.implements || C.implements.id !== L.id) && (C.setImplements(
42039
42174
  L,
42040
42175
  e
42041
- ), t.push(B)), r.push(B), this.currentValueArgumentDeclaration = B;
42176
+ ), t.push(C)), r.push(C), this.currentValueArgumentDeclaration = C;
42042
42177
  }
42043
42178
  break;
42044
42179
  }
42045
42180
  case X.String: {
42046
42181
  const w = this.body.inputs.find(($) => {
42047
- var B;
42048
- return ((B = $.implements) == null ? void 0 : B.id) === G[n.Loop][X.String].body.inputs.currentValue.id;
42182
+ var C;
42183
+ return ((C = $.implements) == null ? void 0 : C.id) === G[n.Loop][X.String].body.inputs.currentValue.id;
42049
42184
  });
42050
42185
  if (!this.inputs.find(($) => {
42051
- var B;
42052
- return ((B = $.declaration) == null ? void 0 : B.id) === G[n.Loop][X.String].inputs.string.id;
42186
+ var C;
42187
+ return ((C = $.declaration) == null ? void 0 : C.id) === G[n.Loop][X.String].inputs.string.id;
42053
42188
  }))
42054
42189
  break;
42055
42190
  const L = this.getCurrentValueBuiltInValueDescriptor();
@@ -42085,14 +42220,14 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
42085
42220
  andChildrenGroup: [],
42086
42221
  orChildrenGroup: [],
42087
42222
  parent: $.toReference()
42088
- }, J = O(
42223
+ }, Z = O(
42089
42224
  k,
42090
42225
  this.project
42091
42226
  );
42092
- J.setParent($, e), J.initChildren(e), e == null || e.add(
42093
- J,
42227
+ Z.setParent($, e), Z.initChildren(e), e == null || e.add(
42228
+ Z,
42094
42229
  b.Added
42095
- ), J.addSelfToProject(e), r.push(J), U = J;
42230
+ ), Z.addSelfToProject(e), r.push(Z), U = Z;
42096
42231
  }
42097
42232
  } else {
42098
42233
  const $ = {
@@ -42113,17 +42248,17 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
42113
42248
  writesValues: [],
42114
42249
  dataType: null,
42115
42250
  parent: this.body.toReference()
42116
- }, B = O(
42251
+ }, C = O(
42117
42252
  $,
42118
42253
  this.project
42119
42254
  );
42120
- B.initChildren(e), B.setParent(this.body, e), e == null || e.add(
42121
- B,
42255
+ C.initChildren(e), C.setParent(this.body, e), e == null || e.add(
42256
+ C,
42122
42257
  b.Added
42123
- ), B.addSelfToProject(e), L && (!B.implements || B.implements.id !== L.id) && (B.setImplements(
42258
+ ), C.addSelfToProject(e), L && (!C.implements || C.implements.id !== L.id) && (C.setImplements(
42124
42259
  L,
42125
42260
  e
42126
- ), t.push(B)), r.push(B), this.currentValueArgumentDeclaration = B;
42261
+ ), t.push(C)), r.push(C), this.currentValueArgumentDeclaration = C;
42127
42262
  }
42128
42263
  break;
42129
42264
  }
@@ -42526,23 +42661,23 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
42526
42661
  } = this.syncBodyArgumentsDeclarations(e);
42527
42662
  t.push(...V), r.push(...L), s.push(...$);
42528
42663
  const {
42529
- updated: B,
42664
+ updated: C,
42530
42665
  added: U,
42531
42666
  removed: k
42532
42667
  } = this.syncBodyInputIndexes(e);
42533
- t.push(...B), r.push(...U), s.push(...k);
42668
+ t.push(...C), r.push(...U), s.push(...k);
42534
42669
  const {
42535
- updated: J,
42536
- added: Y,
42670
+ updated: Z,
42671
+ added: K,
42537
42672
  removed: de
42538
42673
  } = this.syncOutputsDeclarations(e);
42539
- t.push(...J), r.push(...Y), s.push(...de);
42674
+ t.push(...Z), r.push(...K), s.push(...de);
42540
42675
  const {
42541
42676
  updated: he,
42542
- added: H,
42677
+ added: Y,
42543
42678
  removed: ne
42544
42679
  } = this.syncOutputMaps(e);
42545
- return t.push(...he), r.push(...H), s.push(...ne), e == null || e.attemptAutoclose("sync-children", this.id), {
42680
+ return t.push(...he), r.push(...Y), s.push(...ne), e == null || e.attemptAutoclose("sync-children", this.id), {
42546
42681
  self: this,
42547
42682
  updated: p(t),
42548
42683
  added: p(r),
@@ -42660,22 +42795,22 @@ const $e = class $e extends tt {
42660
42795
  static fromGenerationTarget(e, t) {
42661
42796
  let r = t;
42662
42797
  if (e.parent) {
42663
- const c = C(e.parent);
42798
+ const c = B(e.parent);
42664
42799
  r = t.get(c);
42665
42800
  }
42666
42801
  const s = e.calledByEntry.map((c) => {
42667
- const m = C(c);
42802
+ const m = B(c);
42668
42803
  return t.get(m);
42669
42804
  }), d = e.calledBySuccess.map((c) => {
42670
- const m = C(c);
42805
+ const m = B(c);
42671
42806
  return t.get(m);
42672
42807
  }), o = e.calledByError.map((c) => {
42673
- const m = C(c);
42808
+ const m = B(c);
42674
42809
  return t.get(m);
42675
42810
  });
42676
42811
  let l;
42677
42812
  if (e.declaration) {
42678
- const c = C(e.declaration);
42813
+ const c = B(e.declaration);
42679
42814
  l = t.get(
42680
42815
  c
42681
42816
  );
@@ -42960,7 +43095,7 @@ If an entity is called by another, they must be in the same scope, which means t
42960
43095
  hydrateAncestors() {
42961
43096
  const e = [], t = [], r = [], s = [];
42962
43097
  if (this.initialData.parent) {
42963
- const d = C(
43098
+ const d = B(
42964
43099
  this.initialData.parent
42965
43100
  ), o = this.project.get(d);
42966
43101
  if (o)
@@ -42974,7 +43109,7 @@ If an entity is called by another, they must be in the same scope, which means t
42974
43109
  `${zt(this.type)} with id '${this.id}' is missing a parent reference`
42975
43110
  );
42976
43111
  if (this.initialData.declaration) {
42977
- const d = C(
43112
+ const d = B(
42978
43113
  this.initialData.declaration
42979
43114
  ), o = this.project.get(
42980
43115
  d
@@ -42982,15 +43117,15 @@ If an entity is called by another, they must be in the same scope, which means t
42982
43117
  o && (this.setDeclaration(o), e.push(o));
42983
43118
  }
42984
43119
  return this.initialData.calledByEntry.forEach((d) => {
42985
- const o = C(d), l = this.project.get(o);
43120
+ const o = B(d), l = this.project.get(o);
42986
43121
  l && (this.addEntryCaller(l, null), e.push(l));
42987
43122
  }), this.initialData.calledBySuccess.forEach((d) => {
42988
- const o = C(d), l = this.project.get(
43123
+ const o = B(d), l = this.project.get(
42989
43124
  o
42990
43125
  );
42991
43126
  l && (this.addSuccessCaller(l, null), e.push(l));
42992
43127
  }), this.initialData.calledByError.forEach((d) => {
42993
- const o = C(d), l = this.project.get(
43128
+ const o = B(d), l = this.project.get(
42994
43129
  o
42995
43130
  );
42996
43131
  l && (this.addErrorCaller(l, null), e.push(l));
@@ -43720,28 +43855,28 @@ function JS(i) {
43720
43855
  const s = [...Pi(i)];
43721
43856
  if (i.id === "random-company-employee-test-variable-id") {
43722
43857
  const l = fe({
43723
- id: `${i.id}--${Z.PropertyImplementsNonAbstact}`,
43858
+ id: `${i.id}--${J.PropertyImplementsNonAbstact}`,
43724
43859
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a non-abstract property "${j(
43725
43860
  i,
43726
43861
  i.project
43727
43862
  )}" with id "${i.id}".`,
43728
43863
  issue: null,
43729
43864
  severity: R.Error,
43730
- code: Z.PropertyImplementsNonAbstact,
43865
+ code: J.PropertyImplementsNonAbstact,
43731
43866
  entity: i
43732
43867
  });
43733
43868
  s.push(l.error);
43734
43869
  }
43735
43870
  if (i.id === "company-dto-variable-one-id") {
43736
43871
  const l = fe({
43737
- id: `${i.id}--${Z.PropertyImplementsNonAbstact}`,
43872
+ id: `${i.id}--${J.PropertyImplementsNonAbstact}`,
43738
43873
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a non-abstract property "${j(
43739
43874
  i,
43740
43875
  i.project
43741
43876
  )}" with id "${i.id}".`,
43742
43877
  issue: null,
43743
43878
  severity: R.Error,
43744
- code: Z.PropertyImplementsNonAbstact,
43879
+ code: J.PropertyImplementsNonAbstact,
43745
43880
  entity: i
43746
43881
  });
43747
43882
  s.push(l.error);
@@ -43755,14 +43890,14 @@ function qS(i) {
43755
43890
  const s = [...Pi(i)];
43756
43891
  if (i.id === "exec-sequentially-result-variable-id") {
43757
43892
  const o = fe({
43758
- id: `${i.id}--${Z.PropertyImplementsNonAbstact}`,
43893
+ id: `${i.id}--${J.PropertyImplementsNonAbstact}`,
43759
43894
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a non-abstract property "${j(
43760
43895
  i,
43761
43896
  i.project
43762
43897
  )}" with id "${i.id}".`,
43763
43898
  issue: null,
43764
43899
  severity: R.Error,
43765
- code: Z.PropertyImplementsNonAbstact,
43900
+ code: J.PropertyImplementsNonAbstact,
43766
43901
  entity: i
43767
43902
  });
43768
43903
  s.push(o.error);
@@ -43817,24 +43952,24 @@ const Oe = class Oe extends tt {
43817
43952
  static fromGenerationTarget(e, t) {
43818
43953
  let r = t;
43819
43954
  if (e.parent) {
43820
- const T = C(e.parent);
43955
+ const T = B(e.parent);
43821
43956
  r = t.get(T);
43822
43957
  }
43823
- const s = C(e.declaration), d = t.get(
43958
+ const s = B(e.declaration), d = t.get(
43824
43959
  s
43825
43960
  ), o = e.calledByEntry.map((T) => {
43826
- const D = C(T);
43961
+ const D = B(T);
43827
43962
  return t.get(D);
43828
43963
  }), l = e.calledBySuccess.map((T) => {
43829
- const D = C(T);
43964
+ const D = B(T);
43830
43965
  return t.get(D);
43831
43966
  }), u = e.calledByError.map((T) => {
43832
- const D = C(T);
43967
+ const D = B(T);
43833
43968
  return t.get(D);
43834
43969
  });
43835
43970
  let y = null;
43836
43971
  if (e.readsValue) {
43837
- const T = C(e.readsValue);
43972
+ const T = B(e.readsValue);
43838
43973
  y = t.get(
43839
43974
  T
43840
43975
  );
@@ -44138,7 +44273,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44138
44273
  hydrateAncestors() {
44139
44274
  const e = [], t = [], r = [], s = [];
44140
44275
  if (this.initialData.parent) {
44141
- const d = C(
44276
+ const d = B(
44142
44277
  this.initialData.parent
44143
44278
  ), o = this.project.get(d);
44144
44279
  if (o)
@@ -44150,7 +44285,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44150
44285
  } else
44151
44286
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
44152
44287
  if (this.initialData.readsValue) {
44153
- const d = C(
44288
+ const d = B(
44154
44289
  this.initialData.readsValue
44155
44290
  ), o = this.project.get(
44156
44291
  d
@@ -44158,7 +44293,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44158
44293
  o && (this.setValueWriter(o), e.push(o));
44159
44294
  }
44160
44295
  if (this.initialData.declaration) {
44161
- const d = C(
44296
+ const d = B(
44162
44297
  this.initialData.declaration
44163
44298
  ), o = this.project.get(
44164
44299
  d
@@ -44166,15 +44301,15 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44166
44301
  o && (this.setDeclaration(o), e.push(o));
44167
44302
  }
44168
44303
  return this.initialData.calledByEntry.forEach((d) => {
44169
- const o = C(d), l = this.project.get(o);
44304
+ const o = B(d), l = this.project.get(o);
44170
44305
  l && (this.addEntryCaller(l, null), e.push(l));
44171
44306
  }), this.initialData.calledBySuccess.forEach((d) => {
44172
- const o = C(d), l = this.project.get(
44307
+ const o = B(d), l = this.project.get(
44173
44308
  o
44174
44309
  );
44175
44310
  l && (this.addSuccessCaller(l, null), e.push(l));
44176
44311
  }), this.initialData.calledByError.forEach((d) => {
44177
- const o = C(d), l = this.project.get(
44312
+ const o = B(d), l = this.project.get(
44178
44313
  o
44179
44314
  );
44180
44315
  l && (this.addErrorCaller(l, null), e.push(l));
@@ -44198,7 +44333,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44198
44333
  "after-all-children-initialized"
44199
44334
  )
44200
44335
  )) {
44201
- var B;
44336
+ var C;
44202
44337
  const t = [], r = [], s = [], d = [];
44203
44338
  this.initialized = !0, this.captureVersion();
44204
44339
  const {
@@ -44221,16 +44356,16 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44221
44356
  removed: L,
44222
44357
  affected: $
44223
44358
  } = this.generateUnusedInternalCalls(e);
44224
- if (r.push(...w), t.push(...V), s.push(...L), d.push(...$), !this.declaration.dataType || (B = this.declaration.dataType) != null && B.inferred) {
44359
+ if (r.push(...w), t.push(...V), s.push(...L), d.push(...$), !this.declaration.dataType || (C = this.declaration.dataType) != null && C.inferred) {
44225
44360
  const {
44226
44361
  added: U,
44227
44362
  updated: k,
44228
- removed: J,
44229
- affected: Y
44363
+ removed: Z,
44364
+ affected: K
44230
44365
  } = this.declaration.inferDataTypeAndSyncInstancesInputsAndOutputs(
44231
44366
  e
44232
44367
  );
44233
- r.push(...U), t.push(...k), s.push(...J), d.push(...Y);
44368
+ r.push(...U), t.push(...k), s.push(...Z), d.push(...K);
44234
44369
  }
44235
44370
  return e == null || e.attemptAutoclose("after-all-children-initialized", this.id), {
44236
44371
  updated: p(t),
@@ -45397,22 +45532,22 @@ const Ve = class Ve extends tt {
45397
45532
  static fromGenerationTarget(e, t) {
45398
45533
  let r = t;
45399
45534
  if (e.parent) {
45400
- const c = C(e.parent);
45535
+ const c = B(e.parent);
45401
45536
  r = t.get(c);
45402
45537
  }
45403
45538
  const s = e.calledByEntry.map((c) => {
45404
- const m = C(c);
45539
+ const m = B(c);
45405
45540
  return t.get(m);
45406
45541
  }), d = e.calledBySuccess.map((c) => {
45407
- const m = C(c);
45542
+ const m = B(c);
45408
45543
  return t.get(m);
45409
45544
  }), o = e.calledByError.map((c) => {
45410
- const m = C(c);
45545
+ const m = B(c);
45411
45546
  return t.get(m);
45412
45547
  });
45413
45548
  let l = null;
45414
45549
  if (e.readsValue) {
45415
- const c = C(e.readsValue);
45550
+ const c = B(e.readsValue);
45416
45551
  l = t.get(
45417
45552
  c
45418
45553
  );
@@ -45703,7 +45838,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
45703
45838
  hydrateAncestors() {
45704
45839
  const e = [], t = [], r = [], s = [];
45705
45840
  if (this.initialData.parent) {
45706
- const d = C(
45841
+ const d = B(
45707
45842
  this.initialData.parent
45708
45843
  ), o = this.project.get(d);
45709
45844
  if (o)
@@ -45715,7 +45850,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
45715
45850
  } else
45716
45851
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
45717
45852
  if (this.initialData.readsValue) {
45718
- const d = C(
45853
+ const d = B(
45719
45854
  this.initialData.readsValue
45720
45855
  ), o = this.project.get(
45721
45856
  d
@@ -45723,15 +45858,15 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
45723
45858
  o && (this.setValueWriter(o), e.push(o));
45724
45859
  }
45725
45860
  return this.initialData.calledByEntry.forEach((d) => {
45726
- const o = C(d), l = this.project.get(o);
45861
+ const o = B(d), l = this.project.get(o);
45727
45862
  l && (this.addEntryCaller(l, null), e.push(l));
45728
45863
  }), this.initialData.calledBySuccess.forEach((d) => {
45729
- const o = C(d), l = this.project.get(
45864
+ const o = B(d), l = this.project.get(
45730
45865
  o
45731
45866
  );
45732
45867
  l && (this.addSuccessCaller(l, null), e.push(l));
45733
45868
  }), this.initialData.calledByError.forEach((d) => {
45734
- const o = C(d), l = this.project.get(
45869
+ const o = B(d), l = this.project.get(
45735
45870
  o
45736
45871
  );
45737
45872
  l && (this.addErrorCaller(l, null), e.push(l));
@@ -45779,12 +45914,12 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
45779
45914
  } = this.generateUnusedInternalCalls(e);
45780
45915
  if (r.push(...w), t.push(...V), s.push(...L), d.push(...$), !this.dataType || this.dataType.inferred) {
45781
45916
  const {
45782
- added: B,
45917
+ added: C,
45783
45918
  updated: U,
45784
45919
  removed: k,
45785
- affected: J
45920
+ affected: Z
45786
45921
  } = this.inferDataTypeAndSyncInstancesInputsAndOutputs(e);
45787
- r.push(...B), t.push(...U), s.push(...k), d.push(...J);
45922
+ r.push(...C), t.push(...U), s.push(...k), d.push(...Z);
45788
45923
  }
45789
45924
  return e == null || e.attemptAutoclose("after-all-children-initialized", this.id), {
45790
45925
  updated: p(t),
@@ -46072,7 +46207,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
46072
46207
  "infer-data-type-and-sync-instances-inputs-and-outputs"
46073
46208
  )
46074
46209
  )) {
46075
- var L, $, B, U;
46210
+ var L, $, C, U;
46076
46211
  const t = [], r = [], s = [], d = [];
46077
46212
  if (!this.dataType) {
46078
46213
  const k = O(
@@ -46106,20 +46241,20 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
46106
46241
  if (this.readsValue) {
46107
46242
  const k = (L = this.readsValue.getDataType(e)) == null ? void 0 : L.clone(e);
46108
46243
  if (k) {
46109
- const J = ($ = this.dataType) == null ? void 0 : $.merge(
46244
+ const Z = ($ = this.dataType) == null ? void 0 : $.merge(
46110
46245
  k,
46111
46246
  e
46112
46247
  );
46113
- this.dataType && (J == null ? void 0 : J.self.id) !== this.dataType.id && this.dataType.remove({ ignoreUpstream: !1 }, e), k.id !== ((B = J == null ? void 0 : J.self) == null ? void 0 : B.id) && k.remove({ ignoreUpstream: !1 }, e), J != null && J.self && (J.self.metaSync(
46248
+ this.dataType && (Z == null ? void 0 : Z.self.id) !== this.dataType.id && this.dataType.remove({ ignoreUpstream: !1 }, e), k.id !== ((C = Z == null ? void 0 : Z.self) == null ? void 0 : C.id) && k.remove({ ignoreUpstream: !1 }, e), Z != null && Z.self && (Z.self.metaSync(
46114
46249
  {
46115
46250
  inferred: !0,
46116
46251
  like: !0
46117
46252
  },
46118
46253
  e
46119
46254
  ), e == null || e.add(
46120
- J.self,
46255
+ Z.self,
46121
46256
  b.Added
46122
- ), this.setDataType(J.self));
46257
+ ), this.setDataType(Z.self));
46123
46258
  }
46124
46259
  return e == null || e.attemptAutoclose(
46125
46260
  "infer-data-type-and-sync-instances-inputs-and-outputs",
@@ -46144,7 +46279,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
46144
46279
  ]), l = [];
46145
46280
  if (o.forEach((k) => {
46146
46281
  l.find(
46147
- (Y) => j(Y, this.project) === j(k, this.project)
46282
+ (K) => j(K, this.project) === j(k, this.project)
46148
46283
  ) || l.push(k);
46149
46284
  }), !l.length)
46150
46285
  return e == null || e.attemptAutoclose(
@@ -46195,19 +46330,19 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
46195
46330
  } = this.generateUnusedOutputs(e);
46196
46331
  return t.push(...D), r.push(...T), s.push(...w), d.push(...V), this.variableInstances.forEach((k) => {
46197
46332
  const {
46198
- updated: J,
46199
- added: Y,
46333
+ updated: Z,
46334
+ added: K,
46200
46335
  removed: de,
46201
46336
  affected: he
46202
46337
  } = k.generateUnusedInputs(e);
46203
- t.push(...Y), r.push(...J), s.push(...de), d.push(...he);
46338
+ t.push(...K), r.push(...Z), s.push(...de), d.push(...he);
46204
46339
  const {
46205
- updated: H,
46340
+ updated: Y,
46206
46341
  added: ne,
46207
46342
  removed: $t,
46208
46343
  affected: wr
46209
46344
  } = k.generateUnusedOutputs(e);
46210
- t.push(...ne), r.push(...H), s.push(...$t), d.push(...wr);
46345
+ t.push(...ne), r.push(...Y), s.push(...$t), d.push(...wr);
46211
46346
  }), e == null || e.attemptAutoclose(
46212
46347
  "infer-data-type-and-sync-instances-inputs-and-outputs",
46213
46348
  this.id
@@ -46716,7 +46851,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
46716
46851
  "clone-entity"
46717
46852
  )
46718
46853
  ), t = null, r = null, s = !0) {
46719
- var w, V, L, $, B;
46854
+ var w, V, L, $, C;
46720
46855
  let d = ct(t, this);
46721
46856
  const o = this.toJSON(), l = r || I.UUID.uuid();
46722
46857
  o.inputs = [], o.id = l, o.version = I.UUID.uuid(), o.createdAt = (e == null ? void 0 : e.timestamp) || v().toISOString(), o.author = (e == null ? void 0 : e.author) || "1", o.previousVersion = null, o.deleted = !1;
@@ -46759,7 +46894,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
46759
46894
  )
46760
46895
  );
46761
46896
  u.outputs = T;
46762
- const D = (B = this.internalCalls) == null ? void 0 : B.map(
46897
+ const D = (C = this.internalCalls) == null ? void 0 : C.map(
46763
46898
  (U) => U.clone(
46764
46899
  e,
46765
46900
  u,
@@ -47139,14 +47274,14 @@ function zS(i) {
47139
47274
  const s = [...Pi(i)];
47140
47275
  if (i.id === "search-person-by-id-id") {
47141
47276
  const o = fe({
47142
- id: `${i.id}--${Z.PropertyImplementsNonAbstact}`,
47277
+ id: `${i.id}--${J.PropertyImplementsNonAbstact}`,
47143
47278
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a non-abstract property "${j(
47144
47279
  i,
47145
47280
  i.project
47146
47281
  )}" with id "${i.id}".`,
47147
47282
  issue: null,
47148
47283
  severity: R.Error,
47149
- code: Z.PropertyImplementsNonAbstact,
47284
+ code: J.PropertyImplementsNonAbstact,
47150
47285
  entity: i
47151
47286
  });
47152
47287
  s.push(o.error);
@@ -47200,17 +47335,17 @@ const Se = class Se extends tt {
47200
47335
  static fromGenerationTarget(e, t) {
47201
47336
  let r = t;
47202
47337
  if (e.parent) {
47203
- const y = C(e.parent);
47338
+ const y = B(e.parent);
47204
47339
  r = t.get(y);
47205
47340
  }
47206
47341
  const s = e.calledByEntry.map((y) => {
47207
- const c = C(y);
47342
+ const c = B(y);
47208
47343
  return t.get(c);
47209
47344
  }), d = e.calledBySuccess.map((y) => {
47210
- const c = C(y);
47345
+ const c = B(y);
47211
47346
  return t.get(c);
47212
47347
  }), o = e.calledByError.map((y) => {
47213
- const c = C(y);
47348
+ const c = B(y);
47214
47349
  return t.get(c);
47215
47350
  }), l = {
47216
47351
  id: e.id,
@@ -47459,7 +47594,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
47459
47594
  hydrateAncestors() {
47460
47595
  const e = [], t = [], r = [], s = [];
47461
47596
  if (this.initialData.parent) {
47462
- const d = C(
47597
+ const d = B(
47463
47598
  this.initialData.parent
47464
47599
  ), o = this.project.get(d);
47465
47600
  if (o)
@@ -47471,15 +47606,15 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
47471
47606
  } else
47472
47607
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
47473
47608
  return this.initialData.calledByEntry.forEach((d) => {
47474
- const o = C(d), l = this.project.get(o);
47609
+ const o = B(d), l = this.project.get(o);
47475
47610
  l && (this.addEntryCaller(l, null), e.push(l));
47476
47611
  }), this.initialData.calledBySuccess.forEach((d) => {
47477
- const o = C(d), l = this.project.get(
47612
+ const o = B(d), l = this.project.get(
47478
47613
  o
47479
47614
  );
47480
47615
  l && (this.addSuccessCaller(l, null), e.push(l));
47481
47616
  }), this.initialData.calledByError.forEach((d) => {
47482
- const o = C(d), l = this.project.get(
47617
+ const o = B(d), l = this.project.get(
47483
47618
  o
47484
47619
  );
47485
47620
  l && (this.addErrorCaller(l, null), e.push(l));
@@ -48216,7 +48351,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
48216
48351
  "clone-entity"
48217
48352
  )
48218
48353
  ), t = null, r = null, s = !0) {
48219
- var V, L, $, B;
48354
+ var V, L, $, C;
48220
48355
  let d = ct(t, this);
48221
48356
  const o = this.toJSON(), l = r || I.UUID.uuid();
48222
48357
  o.inputs = [];
@@ -48254,7 +48389,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
48254
48389
  )
48255
48390
  );
48256
48391
  c.inputs = D;
48257
- const w = (B = this.outputs) == null ? void 0 : B.map(
48392
+ const w = (C = this.outputs) == null ? void 0 : C.map(
48258
48393
  (U, k) => U.clone(
48259
48394
  e,
48260
48395
  c,
@@ -48633,7 +48768,7 @@ const je = class je extends tt {
48633
48768
  hydrateAncestors() {
48634
48769
  const e = [], t = [], r = [], s = [];
48635
48770
  if (this.initialData.parent) {
48636
- const d = C(
48771
+ const d = B(
48637
48772
  this.initialData.parent
48638
48773
  ), o = this.project.get(d);
48639
48774
  if (o)
@@ -49233,16 +49368,16 @@ const Ce = class Ce extends tt {
49233
49368
  Then creates a new instance of the entity
49234
49369
  */
49235
49370
  static fromGenerationTarget(e, t) {
49236
- const r = C(e.parent), s = t.get(r), d = C(e.declaration), o = t.get(
49371
+ const r = B(e.parent), s = t.get(r), d = B(e.declaration), o = t.get(
49237
49372
  d
49238
49373
  ), l = e.calledByEntry.map((T) => {
49239
- const D = C(T);
49374
+ const D = B(T);
49240
49375
  return t.get(D);
49241
49376
  }), u = e.calledBySuccess.map((T) => {
49242
- const D = C(T);
49377
+ const D = B(T);
49243
49378
  return t.get(D);
49244
49379
  }), y = e.calledByError.map((T) => {
49245
- const D = C(T);
49380
+ const D = B(T);
49246
49381
  return t.get(D);
49247
49382
  }), c = {
49248
49383
  id: e.id,
@@ -49302,7 +49437,7 @@ const Ce = class Ce extends tt {
49302
49437
  t
49303
49438
  );
49304
49439
  r = d.modifiedData;
49305
- const o = C(
49440
+ const o = B(
49306
49441
  r.parent
49307
49442
  ), l = t.get(o);
49308
49443
  if (l) {
@@ -49607,7 +49742,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
49607
49742
  hydrateAncestors() {
49608
49743
  const e = [], t = [], r = [], s = [];
49609
49744
  if (this.initialData.parent) {
49610
- const d = C(
49745
+ const d = B(
49611
49746
  this.initialData.parent
49612
49747
  ), o = this.project.get(d);
49613
49748
  if (o)
@@ -49619,7 +49754,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
49619
49754
  } else
49620
49755
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
49621
49756
  if (this.initialData.declaration) {
49622
- const d = C(
49757
+ const d = B(
49623
49758
  this.initialData.declaration
49624
49759
  ), o = this.project.get(
49625
49760
  d
@@ -49627,15 +49762,15 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
49627
49762
  o && (this.setDeclaration(o), e.push(o));
49628
49763
  }
49629
49764
  return this.initialData.calledByEntry.forEach((d) => {
49630
- const o = C(d), l = this.project.get(o);
49765
+ const o = B(d), l = this.project.get(o);
49631
49766
  l && (this.addEntryCaller(l, null), e.push(l));
49632
49767
  }), this.initialData.calledBySuccess.forEach((d) => {
49633
- const o = C(d), l = this.project.get(
49768
+ const o = B(d), l = this.project.get(
49634
49769
  o
49635
49770
  );
49636
49771
  l && (this.addSuccessCaller(l, null), e.push(l));
49637
49772
  }), this.initialData.calledByError.forEach((d) => {
49638
- const o = C(d), l = this.project.get(
49773
+ const o = B(d), l = this.project.get(
49639
49774
  o
49640
49775
  );
49641
49776
  l && (this.addErrorCaller(l, null), e.push(l));
@@ -50609,14 +50744,14 @@ function eZ(i) {
50609
50744
  const r = [];
50610
50745
  if (i.id === "exec-sequentially-argument-map-id") {
50611
50746
  const s = fe({
50612
- id: `${i.id}--${Z.PropertyImplementsNonAbstact}`,
50747
+ id: `${i.id}--${J.PropertyImplementsNonAbstact}`,
50613
50748
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a non-abstract property "${j(
50614
50749
  i,
50615
50750
  i.project
50616
50751
  )}" with id "${i.id}".`,
50617
50752
  issue: null,
50618
50753
  severity: R.Error,
50619
- code: Z.PropertyImplementsNonAbstact,
50754
+ code: J.PropertyImplementsNonAbstact,
50620
50755
  entity: i
50621
50756
  });
50622
50757
  r.push(s.error);
@@ -50662,17 +50797,17 @@ const Be = class Be extends tt {
50662
50797
  Then creates a new instance of the entity
50663
50798
  */
50664
50799
  static fromGenerationTarget(e, t) {
50665
- const r = C(e.parent), s = t.get(
50800
+ const r = B(e.parent), s = t.get(
50666
50801
  r
50667
50802
  );
50668
50803
  let d = null;
50669
50804
  if (e.declaration) {
50670
- const y = C(e.declaration);
50805
+ const y = B(e.declaration);
50671
50806
  d = t.get(y);
50672
50807
  }
50673
50808
  let o = null;
50674
50809
  if (e.readsValue) {
50675
- const y = C(e.readsValue);
50810
+ const y = B(e.readsValue);
50676
50811
  o = t.get(
50677
50812
  y
50678
50813
  );
@@ -51071,7 +51206,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
51071
51206
  hydrateAncestors() {
51072
51207
  const e = [], t = [], r = [], s = [];
51073
51208
  if (this.initialData.parent) {
51074
- const d = C(
51209
+ const d = B(
51075
51210
  this.initialData.parent
51076
51211
  ), o = this.project.get(
51077
51212
  d
@@ -51085,7 +51220,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
51085
51220
  } else
51086
51221
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
51087
51222
  if (this.initialData.readsValue) {
51088
- const d = C(
51223
+ const d = B(
51089
51224
  this.initialData.readsValue
51090
51225
  ), o = this.project.get(
51091
51226
  d
@@ -51093,7 +51228,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
51093
51228
  o && (this.setValueWriter(o), e.push(o));
51094
51229
  }
51095
51230
  if (this.initialData.declaration) {
51096
- const d = C(
51231
+ const d = B(
51097
51232
  this.initialData.declaration
51098
51233
  ), o = this.project.get(d);
51099
51234
  o && (this.setDeclaration(o), e.push(o));
@@ -51645,14 +51780,14 @@ function rZ(i) {
51645
51780
  const r = [];
51646
51781
  if (i.id === "exec-sequentially-return-map-id") {
51647
51782
  const s = fe({
51648
- id: `${i.id}--${Z.PropertyImplementsNonAbstact}`,
51783
+ id: `${i.id}--${J.PropertyImplementsNonAbstact}`,
51649
51784
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a non-abstract property "${j(
51650
51785
  i,
51651
51786
  i.project
51652
51787
  )}" with id "${i.id}".`,
51653
51788
  issue: null,
51654
51789
  severity: R.Error,
51655
- code: Z.PropertyImplementsNonAbstact,
51790
+ code: J.PropertyImplementsNonAbstact,
51656
51791
  entity: i
51657
51792
  });
51658
51793
  r.push(s.error);
@@ -51697,12 +51832,12 @@ const _e = class _e extends tt {
51697
51832
  Then creates a new instance of the entity
51698
51833
  */
51699
51834
  static fromGenerationTarget(e, t) {
51700
- const r = C(e.parent), s = t.get(
51835
+ const r = B(e.parent), s = t.get(
51701
51836
  r
51702
51837
  );
51703
51838
  let d;
51704
51839
  if (e.declaration) {
51705
- const u = C(e.declaration);
51840
+ const u = B(e.declaration);
51706
51841
  d = t.get(u);
51707
51842
  }
51708
51843
  const o = {
@@ -51754,7 +51889,7 @@ const _e = class _e extends tt {
51754
51889
  (u) => u !== n.Condition
51755
51890
  ).includes(o.type)) {
51756
51891
  const u = o.outputs.find(
51757
- (y) => y.declaration.id === (r.declaration ? C(r.declaration) : null)
51892
+ (y) => y.declaration.id === (r.declaration ? B(r.declaration) : null)
51758
51893
  );
51759
51894
  if (u)
51760
51895
  s.push(
@@ -52035,7 +52170,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
52035
52170
  hydrateAncestors() {
52036
52171
  const e = [], t = [], r = [], s = [];
52037
52172
  if (this.initialData.parent) {
52038
- const d = C(
52173
+ const d = B(
52039
52174
  this.initialData.parent
52040
52175
  ), o = this.project.get(
52041
52176
  d
@@ -52049,7 +52184,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
52049
52184
  } else
52050
52185
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
52051
52186
  if (this.initialData.declaration) {
52052
- const d = C(
52187
+ const d = B(
52053
52188
  this.initialData.declaration
52054
52189
  ), o = this.project.get(
52055
52190
  d
@@ -52605,28 +52740,28 @@ function nZ(i) {
52605
52740
  const r = [];
52606
52741
  if (i.id === "company-dto-func-declaration-argument-dcl-id") {
52607
52742
  const d = fe({
52608
- id: `${i.id}--${Z.PropertyImplementsNonAbstact}`,
52743
+ id: `${i.id}--${J.PropertyImplementsNonAbstact}`,
52609
52744
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a non-abstract property "${j(
52610
52745
  i,
52611
52746
  i.project
52612
52747
  )}" with id "${i.id}".`,
52613
52748
  issue: null,
52614
52749
  severity: R.Error,
52615
- code: Z.PropertyImplementsNonAbstact,
52750
+ code: J.PropertyImplementsNonAbstact,
52616
52751
  entity: i
52617
52752
  });
52618
52753
  r.push(d.error);
52619
52754
  }
52620
52755
  if (i.id === "manual-hello-world-loop-current-iteration-number-output-map-id") {
52621
52756
  const d = fe({
52622
- id: `${i.id}--${Z.PropertyImplementsNonAbstact}`,
52757
+ id: `${i.id}--${J.PropertyImplementsNonAbstact}`,
52623
52758
  message: `Property "${j(i, i.project)}" with id "${i.id}" implements a non-abstract property "${j(
52624
52759
  i,
52625
52760
  i.project
52626
52761
  )}" with id "${i.id}".`,
52627
52762
  issue: null,
52628
52763
  severity: R.Error,
52629
- code: Z.PropertyImplementsNonAbstact,
52764
+ code: J.PropertyImplementsNonAbstact,
52630
52765
  entity: i
52631
52766
  });
52632
52767
  r.push(d.error);
@@ -52673,7 +52808,7 @@ const Me = class Me extends tt {
52673
52808
  Then creates a new instance of the entity
52674
52809
  */
52675
52810
  static fromGenerationTarget(e, t) {
52676
- const r = C(e.parent), s = t.get(r), d = {
52811
+ const r = B(e.parent), s = t.get(r), d = {
52677
52812
  id: e.id,
52678
52813
  version: I.UUID.uuid(),
52679
52814
  createdAt: v().toISOString(),
@@ -52720,7 +52855,7 @@ const Me = class Me extends tt {
52720
52855
  const o = C0(r, t);
52721
52856
  if (r.parent) {
52722
52857
  const l = t.get(
52723
- C(r.parent)
52858
+ B(r.parent)
52724
52859
  );
52725
52860
  if (l && at.includes(l.type)) {
52726
52861
  const u = l.implements;
@@ -52969,7 +53104,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
52969
53104
  hydrateAncestors() {
52970
53105
  const e = [], t = [], r = [], s = [];
52971
53106
  if (this.initialData.parent) {
52972
- const d = C(
53107
+ const d = B(
52973
53108
  this.initialData.parent
52974
53109
  ), o = this.project.get(
52975
53110
  d
@@ -52983,7 +53118,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
52983
53118
  } else
52984
53119
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
52985
53120
  if (this.initialData.implements) {
52986
- const d = C(this.initialData.implements), o = this.project.get(
53121
+ const d = B(this.initialData.implements), o = this.project.get(
52987
53122
  d
52988
53123
  );
52989
53124
  o && (this.setImplements(o, null), e.push(o));
@@ -53713,7 +53848,7 @@ const Ne = class Ne extends tt {
53713
53848
  Then creates a new instance of the entity
53714
53849
  */
53715
53850
  static fromGenerationTarget(e, t) {
53716
- const r = C(e.parent), s = t.get(r);
53851
+ const r = B(e.parent), s = t.get(r);
53717
53852
  let d = null, o = null;
53718
53853
  e.valueAsTypeList ? Array.isArray(e.valueAsTypeList) && (o = e.valueAsTypeList.map(
53719
53854
  (y) => t.get(y) || t.getBuiltIn(y)
@@ -53940,7 +54075,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
53940
54075
  hydrateAncestors() {
53941
54076
  const e = [], t = [], r = [], s = [];
53942
54077
  if (this.initialData.parent) {
53943
- const d = C(
54078
+ const d = B(
53944
54079
  this.initialData.parent
53945
54080
  ), o = this.project.get(d);
53946
54081
  if (o)
@@ -53953,11 +54088,11 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
53953
54088
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
53954
54089
  if (this.initialData.valueAsTypeList && Array.isArray(this.initialData.valueAsTypeList))
53955
54090
  this.valueAsTypeList = this.valueAsTypeList || [], this.initialData.valueAsTypeList.forEach((d) => {
53956
- const o = C(d), l = this.project.get(o);
54091
+ const o = B(d), l = this.project.get(o);
53957
54092
  l && this.valueAsTypeList.push(l);
53958
54093
  });
53959
54094
  else if (this.initialData.valueAsTypeSingle) {
53960
- const d = C(
54095
+ const d = B(
53961
54096
  this.initialData.valueAsTypeSingle
53962
54097
  ), o = this.project.get(d);
53963
54098
  o && (this.valueAsTypeSingle = o);
@@ -54115,7 +54250,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
54115
54250
  });
54116
54251
  else if (this.initialData.valueAsTypeSingle) {
54117
54252
  if (this.initialData.valueAsTypeSingle.type === n.GenericReference) {
54118
- const r = C(this.initialData.valueAsTypeSingle), s = r ? this.project.get(r) : null;
54253
+ const r = B(this.initialData.valueAsTypeSingle), s = r ? this.project.get(r) : null;
54119
54254
  if (!s)
54120
54255
  throw new Error(
54121
54256
  `Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${this.initialData.valueAsTypeSingle.entityType}' with id '${this.initialData.valueAsTypeSingle.entityId}' that is not part of the project state.`
@@ -54529,7 +54664,7 @@ const ge = class ge extends tt {
54529
54664
  Then creates a new instance of the entity
54530
54665
  */
54531
54666
  static fromGenerationTarget(e, t) {
54532
- const r = e.parent ? C(e.parent) : null, s = r ? t.get(r) : null, d = e.parentRelationType === _.FixedArguments ? s == null ? void 0 : s.inputs.length : s == null ? void 0 : s.outputs.length, o = {
54667
+ const r = e.parent ? B(e.parent) : null, s = r ? t.get(r) : null, d = e.parentRelationType === _.FixedArguments ? s == null ? void 0 : s.inputs.length : s == null ? void 0 : s.outputs.length, o = {
54533
54668
  id: e.id,
54534
54669
  version: I.UUID.uuid(),
54535
54670
  createdAt: v().toISOString(),
@@ -54772,7 +54907,7 @@ ${Fr(
54772
54907
  hydrateAncestors() {
54773
54908
  const e = [], t = [], r = [], s = [];
54774
54909
  if (this.initialData.parent) {
54775
- const d = C(
54910
+ const d = B(
54776
54911
  this.initialData.parent
54777
54912
  ), o = this.project.get(d);
54778
54913
  if (o)
@@ -54959,13 +55094,13 @@ ${Fr(
54959
55094
  const {
54960
55095
  updated: L,
54961
55096
  removed: $,
54962
- added: B
55097
+ added: C
54963
55098
  } = V.entity.onDetachedDependencyRemoved(
54964
55099
  this,
54965
55100
  V.field,
54966
55101
  t
54967
55102
  );
54968
- r.push(...L), s.push(...$), d.push(...B);
55103
+ r.push(...L), s.push(...$), d.push(...C);
54969
55104
  }), this.defaultValue) {
54970
55105
  const { updated: V, removed: L } = this.defaultValue.remove(
54971
55106
  {
@@ -57536,10 +57671,10 @@ function So(i, a) {
57536
57671
  const e = [];
57537
57672
  if (i.readsValue) {
57538
57673
  const t = a.project.get(
57539
- C(i.readsValue)
57674
+ B(i.readsValue)
57540
57675
  );
57541
57676
  if (a.project.getBuiltIn(
57542
- C(i.readsValue)
57677
+ B(i.readsValue)
57543
57678
  ))
57544
57679
  e.push(
57545
57680
  new P({
@@ -57611,8 +57746,8 @@ function Pi(i) {
57611
57746
  if (i.parent === i.project)
57612
57747
  !i.calledBy.length && i.type !== n.VariableDeclaration && a.push(
57613
57748
  new _n({
57614
- id: `${i.id}--${Z.DisconnectedCallableEntity}`,
57615
- code: Z.DisconnectedCallableEntity,
57749
+ id: `${i.id}--${J.DisconnectedCallableEntity}`,
57750
+ code: J.DisconnectedCallableEntity,
57616
57751
  severity: R.Warning,
57617
57752
  message: `This '${i.type}' entity "${j(
57618
57753
  i,
@@ -57664,66 +57799,66 @@ function G0(i) {
57664
57799
  return a;
57665
57800
  if (i.readsValue) {
57666
57801
  const e = fe({
57667
- id: `${i.id}--${Z.VariableReadsValueAndInternalCall}`,
57802
+ id: `${i.id}--${J.VariableReadsValueAndInternalCall}`,
57668
57803
  message: `Variable "${j(i, i.project)}" with id "${i.id}" reads a value. A variable with internal calls can't read a value.`,
57669
57804
  issue: null,
57670
57805
  severity: R.Error,
57671
- code: Z.VariableReadsValueAndInternalCall,
57806
+ code: J.VariableReadsValueAndInternalCall,
57672
57807
  entity: i
57673
57808
  });
57674
57809
  a.push(e.error);
57675
57810
  }
57676
57811
  if (i.writesValues.length) {
57677
57812
  const e = fe({
57678
- id: `${i.id}--${Z.VariableWritesValuesAndInternalCall}`,
57813
+ id: `${i.id}--${J.VariableWritesValuesAndInternalCall}`,
57679
57814
  message: `Variable "${j(i, i.project)}" with id "${i.id}" writes values. A variable with internal calls can't write a value.`,
57680
57815
  issue: null,
57681
57816
  severity: R.Error,
57682
- code: Z.VariableWritesValuesAndInternalCall,
57817
+ code: J.VariableWritesValuesAndInternalCall,
57683
57818
  entity: i
57684
57819
  });
57685
57820
  a.push(e.error);
57686
57821
  }
57687
57822
  if (i.getUsedInputs().length) {
57688
57823
  const e = fe({
57689
- id: `${i.id}--${Z.VariableHasInputsAndInternalCall}`,
57824
+ id: `${i.id}--${J.VariableHasInputsAndInternalCall}`,
57690
57825
  message: `Variable "${j(i, i.project)}" with id "${i.id}" has inputs. A variable with internal calls can't have inputs.`,
57691
57826
  issue: null,
57692
57827
  severity: R.Error,
57693
- code: Z.VariableHasInputsAndInternalCall,
57828
+ code: J.VariableHasInputsAndInternalCall,
57694
57829
  entity: i
57695
57830
  });
57696
57831
  a.push(e.error);
57697
57832
  }
57698
57833
  if (i.getUsedOutputs().length) {
57699
57834
  const e = fe({
57700
- id: `${i.id}--${Z.VariableHasOutputsAndInternalCall}`,
57835
+ id: `${i.id}--${J.VariableHasOutputsAndInternalCall}`,
57701
57836
  message: `Variable "${j(i, i.project)}" with id "${i.id}" has outputs. A variable with internal calls can't have outputs.`,
57702
57837
  issue: null,
57703
57838
  severity: R.Error,
57704
- code: Z.VariableHasOutputsAndInternalCall,
57839
+ code: J.VariableHasOutputsAndInternalCall,
57705
57840
  entity: i
57706
57841
  });
57707
57842
  a.push(e.error);
57708
57843
  }
57709
57844
  if (i.calledBy.length) {
57710
57845
  const e = fe({
57711
- id: `${i.id}--${Z.VariableIsCalledAndHasInternalCall}`,
57846
+ id: `${i.id}--${J.VariableIsCalledAndHasInternalCall}`,
57712
57847
  message: `Variable "${j(i, i.project)}" with id "${i.id}" is called by other entities. A variable with internal calls can't be called by other entities.`,
57713
57848
  issue: null,
57714
57849
  severity: R.Error,
57715
- code: Z.VariableIsCalledAndHasInternalCall,
57850
+ code: J.VariableIsCalledAndHasInternalCall,
57716
57851
  entity: i
57717
57852
  });
57718
57853
  a.push(e.error);
57719
57854
  }
57720
57855
  if ([...i.successCalls, ...i.errorCalls].length) {
57721
57856
  const e = fe({
57722
- id: `${i.id}--${Z.VariableCallsOthersAndHasInternalCall}`,
57857
+ id: `${i.id}--${J.VariableCallsOthersAndHasInternalCall}`,
57723
57858
  message: `Variable "${j(i, i.project)}" with id "${i.id}" calls other entities. A variable with internal calls can't call other entities.`,
57724
57859
  issue: null,
57725
57860
  severity: R.Error,
57726
- code: Z.VariableCallsOthersAndHasInternalCall,
57861
+ code: J.VariableCallsOthersAndHasInternalCall,
57727
57862
  entity: i
57728
57863
  });
57729
57864
  a.push(e.error);
@@ -57781,19 +57916,19 @@ const Ge = class Ge extends tt {
57781
57916
  static fromGenerationTarget(e, t) {
57782
57917
  let r = t;
57783
57918
  if (e.parent) {
57784
- const m = C(e.parent);
57919
+ const m = B(e.parent);
57785
57920
  r = t.get(m);
57786
57921
  }
57787
- const s = C(e.declaration), d = t.get(
57922
+ const s = B(e.declaration), d = t.get(
57788
57923
  s
57789
57924
  ), o = e.calledByEntry.map((m) => {
57790
- const T = C(m);
57925
+ const T = B(m);
57791
57926
  return t.get(T);
57792
57927
  }), l = e.calledBySuccess.map((m) => {
57793
- const T = C(m);
57928
+ const T = B(m);
57794
57929
  return t.get(T);
57795
57930
  }), u = e.calledByError.map((m) => {
57796
- const T = C(m);
57931
+ const T = B(m);
57797
57932
  return t.get(T);
57798
57933
  }), y = {
57799
57934
  id: e.id,
@@ -57858,7 +57993,7 @@ const Ge = class Ge extends tt {
57858
57993
  ...d.errors,
57859
57994
  ...ot(r)
57860
57995
  );
57861
- const o = C(
57996
+ const o = B(
57862
57997
  r.declaration
57863
57998
  );
57864
57999
  if (o) {
@@ -58101,7 +58236,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
58101
58236
  hydrateAncestors() {
58102
58237
  const e = [], t = [], r = [], s = [];
58103
58238
  if (this.initialData.parent) {
58104
- const d = C(
58239
+ const d = B(
58105
58240
  this.initialData.parent
58106
58241
  ), o = this.project.get(d);
58107
58242
  if (o)
@@ -58113,7 +58248,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
58113
58248
  } else
58114
58249
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
58115
58250
  if (this.initialData.declaration) {
58116
- const d = C(
58251
+ const d = B(
58117
58252
  this.initialData.declaration
58118
58253
  ), o = this.project.get(
58119
58254
  d
@@ -58121,15 +58256,15 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
58121
58256
  o && (this.setDeclaration(o), e.push(o));
58122
58257
  }
58123
58258
  return this.initialData.calledByEntry.forEach((d) => {
58124
- const o = C(d), l = this.project.get(o);
58259
+ const o = B(d), l = this.project.get(o);
58125
58260
  l && (this.addEntryCaller(l, null), e.push(l));
58126
58261
  }), this.initialData.calledBySuccess.forEach((d) => {
58127
- const o = C(d), l = this.project.get(
58262
+ const o = B(d), l = this.project.get(
58128
58263
  o
58129
58264
  );
58130
58265
  l && (this.addSuccessCaller(l, null), e.push(l));
58131
58266
  }), this.initialData.calledByError.forEach((d) => {
58132
- const o = C(d), l = this.project.get(
58267
+ const o = B(d), l = this.project.get(
58133
58268
  o
58134
58269
  );
58135
58270
  l && (this.addErrorCaller(l, null), e.push(l));
@@ -58341,7 +58476,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
58341
58476
  );
58342
58477
  this.declaration = t;
58343
58478
  } else {
58344
- const t = C(
58479
+ const t = B(
58345
58480
  this.initialData.declaration
58346
58481
  ), r = this.project.get(
58347
58482
  t
@@ -59383,7 +59518,11 @@ function ip(i, a, e, t) {
59383
59518
  return m.abstract = !1, m.implements = y, e == null || e.add(m, b.Added), m.setParent(l, e), l.addProperty(m), m;
59384
59519
  }), i.abstractMethods.map(
59385
59520
  (y) => {
59386
- const c = I.UUID.uuid(), m = y.implementAsFunctionDeclaration(l, e, c);
59521
+ const c = I.UUID.uuid(), m = y.implementAsFunctionDeclaration(
59522
+ e,
59523
+ l,
59524
+ c
59525
+ );
59387
59526
  return l.addMethod(m), e == null || e.add(m, b.Added), m;
59388
59527
  }
59389
59528
  ), l.afterAllChildrenInitialized(e);
@@ -59448,16 +59587,16 @@ function k0(i, a, e, t, r) {
59448
59587
  let L = !1;
59449
59588
  const $ = new Date(i);
59450
59589
  if ($ instanceof Date && !isNaN($.valueOf()) && (L = !0), L) {
59451
- const B = a.project.getBuiltIn(
59590
+ const C = a.project.getBuiltIn(
59452
59591
  G[n.PrimitiveEntity][M.Date].id
59453
59592
  );
59454
- a.setEntity(B);
59593
+ a.setEntity(C);
59455
59594
  break;
59456
59595
  } else {
59457
- const B = a.project.getBuiltIn(
59596
+ const C = a.project.getBuiltIn(
59458
59597
  G[n.PrimitiveEntity][M.String].id
59459
59598
  );
59460
- a.setEntity(B);
59599
+ a.setEntity(C);
59461
59600
  break;
59462
59601
  }
59463
59602
  case "number":
@@ -59489,9 +59628,9 @@ function k0(i, a, e, t, r) {
59489
59628
  },
59490
59629
  t
59491
59630
  ), i.length > 0) {
59492
- const B = i.slice(0, 5).filter((k) => k !== void 0);
59493
- if (B.every((k) => typeof k == typeof B[0]) && (typeof B[0] != "object" || B[0] === null))
59494
- switch (typeof B[0]) {
59631
+ const C = i.slice(0, 5).filter((k) => k !== void 0);
59632
+ if (C.every((k) => typeof k == typeof C[0]) && (typeof C[0] != "object" || C[0] === null))
59633
+ switch (typeof C[0]) {
59495
59634
  case "string":
59496
59635
  a.setEntity(
59497
59636
  a.project.getBuiltIn(
@@ -59523,10 +59662,10 @@ function k0(i, a, e, t, r) {
59523
59662
  }
59524
59663
  else {
59525
59664
  const k = [];
59526
- let J = !1;
59527
- B.forEach((de) => {
59528
- var he, H, ne, $t;
59529
- if (Array.isArray(de) && (J = !0), typeof de == "object" && !Array.isArray(de) && de !== null) {
59665
+ let Z = !1;
59666
+ C.forEach((de) => {
59667
+ var he, Y, ne, $t;
59668
+ if (Array.isArray(de) && (Z = !0), typeof de == "object" && !Array.isArray(de) && de !== null) {
59530
59669
  const wr = ud(
59531
59670
  de,
59532
59671
  a.project,
@@ -59537,14 +59676,14 @@ function k0(i, a, e, t, r) {
59537
59676
  t,
59538
59677
  r
59539
59678
  );
59540
- wr.hasCreated && k.push((he = wr.changeSet) == null ? void 0 : he.self), s.push(...(H = wr.changeSet) == null ? void 0 : H.updated), d.push(...(ne = wr.changeSet) == null ? void 0 : ne.added), o.push(...($t = wr.changeSet) == null ? void 0 : $t.removed);
59679
+ wr.hasCreated && k.push((he = wr.changeSet) == null ? void 0 : he.self), s.push(...(Y = wr.changeSet) == null ? void 0 : Y.updated), d.push(...(ne = wr.changeSet) == null ? void 0 : ne.added), o.push(...($t = wr.changeSet) == null ? void 0 : $t.removed);
59541
59680
  }
59542
59681
  });
59543
- const Y = p(
59682
+ const K = p(
59544
59683
  k
59545
59684
  );
59546
- if (!Y.length && !J) {
59547
- B.forEach((de) => {
59685
+ if (!K.length && !Z) {
59686
+ C.forEach((de) => {
59548
59687
  const he = {
59549
59688
  id: I.UUID.uuid(),
59550
59689
  version: I.UUID.uuid(),
@@ -59562,35 +59701,35 @@ function k0(i, a, e, t, r) {
59562
59701
  inferred: !1,
59563
59702
  parentRelationType: At.OrDataTypeGroup,
59564
59703
  parent: a.toReference()
59565
- }, H = O(
59704
+ }, Y = O(
59566
59705
  he,
59567
59706
  a.project
59568
59707
  );
59569
- switch (H.setParent(a, t), H.initChildren(t), t == null || t.add(H, b.Added), H.addSelfToProject(t), typeof de) {
59708
+ switch (Y.setParent(a, t), Y.initChildren(t), t == null || t.add(Y, b.Added), Y.addSelfToProject(t), typeof de) {
59570
59709
  case "string":
59571
- H.setEntity(
59572
- H.project.getBuiltIn(
59710
+ Y.setEntity(
59711
+ Y.project.getBuiltIn(
59573
59712
  G[n.PrimitiveEntity][M.String].id
59574
59713
  )
59575
59714
  );
59576
59715
  break;
59577
59716
  case "number":
59578
- H.setEntity(
59579
- H.project.getBuiltIn(
59717
+ Y.setEntity(
59718
+ Y.project.getBuiltIn(
59580
59719
  G[n.PrimitiveEntity][M.Number].id
59581
59720
  )
59582
59721
  );
59583
59722
  break;
59584
59723
  case "boolean":
59585
- H.setEntity(
59586
- H.project.getBuiltIn(
59724
+ Y.setEntity(
59725
+ Y.project.getBuiltIn(
59587
59726
  G[n.PrimitiveEntity][M.Boolean].id
59588
59727
  )
59589
59728
  );
59590
59729
  break;
59591
59730
  case "object":
59592
- H.setEntity(
59593
- H.project.getBuiltIn(
59731
+ Y.setEntity(
59732
+ Y.project.getBuiltIn(
59594
59733
  G[n.PrimitiveEntity][M.Null].id
59595
59734
  )
59596
59735
  );
@@ -59599,20 +59738,20 @@ function k0(i, a, e, t, r) {
59599
59738
  });
59600
59739
  break;
59601
59740
  } else
59602
- Y.length === 1 && !J ? a.setEntity(Y[0]) : B.forEach((de) => {
59741
+ K.length === 1 && !Z ? a.setEntity(K[0]) : C.forEach((de) => {
59603
59742
  if (typeof de == "object" && !Array.isArray(de) && de !== null) {
59604
59743
  const he = F0(
59605
59744
  Object.keys(de),
59606
59745
  a.project
59607
59746
  );
59608
59747
  if (he) {
59609
- const H = OZ(
59610
- he || Y[0],
59748
+ const Y = OZ(
59749
+ he || K[0],
59611
59750
  a,
59612
59751
  t,
59613
59752
  At.OrDataTypeGroup
59614
59753
  );
59615
- s.push(...H.updated), d.push(...H.added), o.push(...H.removed);
59754
+ s.push(...Y.updated), d.push(...Y.added), o.push(...Y.removed);
59616
59755
  }
59617
59756
  } else {
59618
59757
  const he = {
@@ -59632,14 +59771,14 @@ function k0(i, a, e, t, r) {
59632
59771
  inferred: !1,
59633
59772
  parentRelationType: At.OrDataTypeGroup,
59634
59773
  parent: a.toReference()
59635
- }, H = O(
59774
+ }, Y = O(
59636
59775
  he,
59637
59776
  a.project
59638
59777
  );
59639
- H.setParent(a, t), H.initChildren(t), t == null || t.add(H, b.Added), H.addSelfToProject(t);
59778
+ Y.setParent(a, t), Y.initChildren(t), t == null || t.add(Y, b.Added), Y.addSelfToProject(t);
59640
59779
  const ne = k0(
59641
59780
  de,
59642
- H,
59781
+ Y,
59643
59782
  {
59644
59783
  ...e,
59645
59784
  id: I.UUID.uuid()
@@ -59652,7 +59791,7 @@ function k0(i, a, e, t, r) {
59652
59791
  });
59653
59792
  }
59654
59793
  } else {
59655
- const B = ud(
59794
+ const C = ud(
59656
59795
  i[0],
59657
59796
  a.project,
59658
59797
  {
@@ -59661,11 +59800,11 @@ function k0(i, a, e, t, r) {
59661
59800
  t,
59662
59801
  r
59663
59802
  );
59664
- a.setEntity((u = B.changeSet) == null ? void 0 : u.self), s.push(...(y = B.changeSet) == null ? void 0 : y.updated), d.push(...(c = B.changeSet) == null ? void 0 : c.added), o.push(...(m = B.changeSet) == null ? void 0 : m.removed);
59803
+ a.setEntity((u = C.changeSet) == null ? void 0 : u.self), s.push(...(y = C.changeSet) == null ? void 0 : y.updated), d.push(...(c = C.changeSet) == null ? void 0 : c.added), o.push(...(m = C.changeSet) == null ? void 0 : m.removed);
59665
59804
  break;
59666
59805
  }
59667
59806
  else {
59668
- const B = ud(
59807
+ const C = ud(
59669
59808
  i,
59670
59809
  a.project,
59671
59810
  {
@@ -59674,7 +59813,7 @@ function k0(i, a, e, t, r) {
59674
59813
  t,
59675
59814
  r
59676
59815
  );
59677
- a.setEntity((T = B.changeSet) == null ? void 0 : T.self), s.push(...(D = B.changeSet) == null ? void 0 : D.updated), d.push(...(w = B.changeSet) == null ? void 0 : w.added), o.push(...(V = B.changeSet) == null ? void 0 : V.removed);
59816
+ a.setEntity((T = C.changeSet) == null ? void 0 : T.self), s.push(...(D = C.changeSet) == null ? void 0 : D.updated), d.push(...(w = C.changeSet) == null ? void 0 : w.added), o.push(...(V = C.changeSet) == null ? void 0 : V.removed);
59678
59817
  break;
59679
59818
  }
59680
59819
  }
@@ -59745,12 +59884,12 @@ function ud(i, a, e, t, r) {
59745
59884
  private: !1,
59746
59885
  required: !0,
59747
59886
  parent: D.toReference()
59748
- }, B = O(
59887
+ }, C = O(
59749
59888
  $,
59750
59889
  a
59751
59890
  );
59752
- B.setParent(D, t), B.initChildren(t), t == null || t.add(B, b.Added), B.addSelfToProject(t), d.push(B);
59753
- const U = i[w], J = {
59891
+ C.setParent(D, t), C.initChildren(t), t == null || t.add(C, b.Added), C.addSelfToProject(t), d.push(C);
59892
+ const U = i[w], Z = {
59754
59893
  id: I.UUID.uuid(),
59755
59894
  version: I.UUID.uuid(),
59756
59895
  createdAt: (t == null ? void 0 : t.timestamp) || (/* @__PURE__ */ new Date()).toISOString(),
@@ -59765,15 +59904,15 @@ function ud(i, a, e, t, r) {
59765
59904
  orChildrenGroup: null,
59766
59905
  like: !0,
59767
59906
  inferred: !1,
59768
- parent: B.toReference()
59769
- }, Y = O(
59770
- J,
59907
+ parent: C.toReference()
59908
+ }, K = O(
59909
+ Z,
59771
59910
  a
59772
59911
  );
59773
- Y.setParent(B, t), Y.initChildren(t), t == null || t.add(Y, b.Added), Y.addSelfToProject(t), d.push(Y);
59912
+ K.setParent(C, t), K.initChildren(t), t == null || t.add(K, b.Added), K.addSelfToProject(t), d.push(K);
59774
59913
  const de = k0(
59775
59914
  U,
59776
- Y,
59915
+ K,
59777
59916
  {
59778
59917
  ...e,
59779
59918
  name: w,
@@ -60302,25 +60441,25 @@ function pd(i, a = {}, e = {
60302
60441
  ...(y.projects || []).flatMap((U) => U),
60303
60442
  ...(d.calls || []).flatMap((U) => U)
60304
60443
  ];
60305
- i.type === n.DataType && (r.entity && a[C(r.entity)] && a[C(r.entity)].parent && C(
60306
- a[C(r.entity)].parent
60444
+ i.type === n.DataType && (r.entity && a[B(r.entity)] && a[B(r.entity)].parent && B(
60445
+ a[B(r.entity)].parent
60307
60446
  ) === i.id ? L.push(r.entity) : r.entity && V.push(r.entity));
60308
- const $ = {}, B = {};
60447
+ const $ = {}, C = {};
60309
60448
  return V.forEach((U) => {
60310
- const k = C(U);
60449
+ const k = B(U);
60311
60450
  if (k && e.ignoreBuiltInBaseEntities && (Er.includes(U.type) || (e.allBuiltInEntityIds || []).includes(k)))
60312
60451
  return;
60313
- const J = U.version;
60314
- k && ($[k] = J);
60452
+ const Z = U.version;
60453
+ k && ($[k] = Z);
60315
60454
  }), L.forEach((U) => {
60316
- const k = C(U);
60455
+ const k = B(U);
60317
60456
  if (k && e.ignoreBuiltInBaseEntities && (Er.includes(U.type) || (e.allBuiltInEntityIds || []).includes(k)))
60318
60457
  return;
60319
- const J = U.version;
60320
- k && (B[k] = J);
60458
+ const Z = U.version;
60459
+ k && (C[k] = Z);
60321
60460
  }), {
60322
60461
  upstream: $,
60323
- downstream: B
60462
+ downstream: C
60324
60463
  };
60325
60464
  }
60326
60465
  function Aq(i, a) {
@@ -61313,7 +61452,7 @@ function Yt(i, a) {
61313
61452
  if (!e)
61314
61453
  return null;
61315
61454
  if (e.type === n.GenericReference) {
61316
- const t = C(e);
61455
+ const t = B(e);
61317
61456
  if (!t)
61318
61457
  return null;
61319
61458
  const r = a.get(t);
@@ -61464,7 +61603,7 @@ function ir(i, a) {
61464
61603
  if (!i)
61465
61604
  return null;
61466
61605
  let e;
61467
- return typeof i == "string" ? e = i : i.type === n.GenericReference ? e = C(i) : e = i.id, e === a.id ? a : a.get(e);
61606
+ return typeof i == "string" ? e = i : i.type === n.GenericReference ? e = B(i) : e = i.id, e === a.id ? a : a.get(e);
61468
61607
  }
61469
61608
  function Xi(i) {
61470
61609
  if (!i)
@@ -61749,7 +61888,7 @@ function dp(i, a = {}) {
61749
61888
  return [];
61750
61889
  if (!i.parent)
61751
61890
  return [];
61752
- const e = C(i.parent);
61891
+ const e = B(i.parent);
61753
61892
  if (!e)
61754
61893
  return [];
61755
61894
  const t = a[e];
@@ -61915,7 +62054,7 @@ const Le = class Le extends tt {
61915
62054
  static fromGenerationTarget(e, t) {
61916
62055
  let r = t;
61917
62056
  if (e.parent) {
61918
- const u = C(e.parent);
62057
+ const u = B(e.parent);
61919
62058
  r = t.get(u);
61920
62059
  }
61921
62060
  const s = [];
@@ -62221,7 +62360,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
62221
62360
  hydrateAncestors() {
62222
62361
  const e = [], t = [], r = [], s = [];
62223
62362
  if (this.initialData.parent) {
62224
- const d = C(
62363
+ const d = B(
62225
62364
  this.initialData.parent
62226
62365
  ), o = this.project.get(d);
62227
62366
  if (o)
@@ -62233,10 +62372,10 @@ Alternatively you can update the parent data-type entity with 'update' action to
62233
62372
  } else
62234
62373
  throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);
62235
62374
  return this.initialData.extends.forEach((d) => {
62236
- const o = C(d), l = this.project.get(o);
62375
+ const o = B(d), l = this.project.get(o);
62237
62376
  l && (this.addExtension(l), l.type !== n.BuiltInBaseEntity && e.push(l));
62238
62377
  }), this.initialData.implements.forEach((d) => {
62239
- const o = C(d), l = this.project.get(o);
62378
+ const o = B(d), l = this.project.get(o);
62240
62379
  l && (this.addImplementation(l), l.type !== n.BuiltInBaseEntity && e.push(l));
62241
62380
  }), {
62242
62381
  updated: p(e),
@@ -62522,7 +62661,11 @@ Alternatively you can update the parent data-type entity with 'update' action to
62522
62661
  this,
62523
62662
  e
62524
62663
  ).forEach((s) => {
62525
- const d = `_suggestion--parent--${this.id}--${s.id}`, o = s.implementAsFunctionDeclaration(this, null, d), l = O(
62664
+ const d = `_suggestion--parent--${this.id}--${s.id}`, o = s.implementAsFunctionDeclaration(
62665
+ null,
62666
+ this,
62667
+ d
62668
+ ), l = O(
62526
62669
  o,
62527
62670
  this.project
62528
62671
  );
@@ -62966,19 +63109,19 @@ Alternatively you can update the parent data-type entity with 'update' action to
62966
63109
  );
62967
63110
  c.properties = m;
62968
63111
  const T = (V = this.methods) == null ? void 0 : V.map(
62969
- ($, B) => $.clone(
63112
+ ($, C) => $.clone(
62970
63113
  e,
62971
63114
  c,
62972
- y + "-method-" + B + "-id",
63115
+ y + "-method-" + C + "-id",
62973
63116
  s
62974
63117
  )
62975
63118
  );
62976
63119
  c.methods = T;
62977
63120
  const D = (L = this.abstractMethods) == null ? void 0 : L.map(
62978
- ($, B) => $.clone(
63121
+ ($, C) => $.clone(
62979
63122
  e,
62980
63123
  c,
62981
- y + "-abstract-method-" + B + "-id",
63124
+ y + "-abstract-method-" + C + "-id",
62982
63125
  s
62983
63126
  )
62984
63127
  );
@@ -63049,7 +63192,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
63049
63192
  l.forEach((c) => {
63050
63193
  var L, $;
63051
63194
  const m = u.find(
63052
- (B) => j(B, this.project) === j(c, this.project)
63195
+ (C) => j(C, this.project) === j(c, this.project)
63053
63196
  );
63054
63197
  if (!m)
63055
63198
  return;
@@ -63067,23 +63210,23 @@ Alternatively you can update the parent data-type entity with 'update' action to
63067
63210
  !0
63068
63211
  );
63069
63212
  if (V) {
63070
- const B = (L = m.dataType) == null ? void 0 : L.merge(
63213
+ const C = (L = m.dataType) == null ? void 0 : L.merge(
63071
63214
  V,
63072
63215
  t
63073
63216
  );
63074
- m.dataType && (B == null ? void 0 : B.self.id) !== m.dataType.id && m.dataType.remove(
63217
+ m.dataType && (C == null ? void 0 : C.self.id) !== m.dataType.id && m.dataType.remove(
63075
63218
  { ignoreUpstream: !1 },
63076
63219
  t
63077
- ), V.id !== (($ = B == null ? void 0 : B.self) == null ? void 0 : $.id) && V.remove({ ignoreUpstream: !1 }, t), B != null && B.self && (B.self.metaSync(
63220
+ ), V.id !== (($ = C == null ? void 0 : C.self) == null ? void 0 : $.id) && V.remove({ ignoreUpstream: !1 }, t), C != null && C.self && (C.self.metaSync(
63078
63221
  {
63079
63222
  inferred: !0,
63080
63223
  like: !0
63081
63224
  },
63082
63225
  t
63083
63226
  ), t == null || t.add(
63084
- B.self,
63227
+ C.self,
63085
63228
  b.Added
63086
- ), m.setDataType(B.self), t == null || t.add(
63229
+ ), m.setDataType(C.self), t == null || t.add(
63087
63230
  m,
63088
63231
  b.Updated
63089
63232
  ));
@@ -63106,9 +63249,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
63106
63249
  affected: [],
63107
63250
  self: this
63108
63251
  }) : (y.forEach((c) => {
63109
- var B, U, k, J;
63252
+ var C, U, k, Z;
63110
63253
  const m = this.properties.find(
63111
- (Y) => j(Y, this.project) === j(c, this.project)
63254
+ (K) => j(K, this.project) === j(c, this.project)
63112
63255
  );
63113
63256
  if (m) {
63114
63257
  if (c.setDeclaration(m), !m.getDataType(t)) {
@@ -63118,18 +63261,18 @@ Alternatively you can update the parent data-type entity with 'update' action to
63118
63261
  c
63119
63262
  ), he = Sr(
63120
63263
  de
63121
- ), H = he == null ? void 0 : he.clone(
63264
+ ), Y = he == null ? void 0 : he.clone(
63122
63265
  t,
63123
63266
  m,
63124
63267
  I.UUID.uuid(),
63125
63268
  !0
63126
63269
  );
63127
- if (H) {
63128
- const ne = (B = m.dataType) == null ? void 0 : B.merge(H, t);
63270
+ if (Y) {
63271
+ const ne = (C = m.dataType) == null ? void 0 : C.merge(Y, t);
63129
63272
  m.dataType && (ne == null ? void 0 : ne.self.id) !== m.dataType.id && m.dataType.remove(
63130
63273
  { ignoreUpstream: !1 },
63131
63274
  t
63132
- ), H.id !== ((U = ne == null ? void 0 : ne.self) == null ? void 0 : U.id) && H.remove({ ignoreUpstream: !1 }, t), ne != null && ne.self && (ne.self.metaSync(
63275
+ ), Y.id !== ((U = ne == null ? void 0 : ne.self) == null ? void 0 : U.id) && Y.remove({ ignoreUpstream: !1 }, t), ne != null && ne.self && (ne.self.metaSync(
63133
63276
  {
63134
63277
  inferred: !0,
63135
63278
  like: !0
@@ -63185,23 +63328,23 @@ Alternatively you can update the parent data-type entity with 'update' action to
63185
63328
  !0
63186
63329
  );
63187
63330
  if ($) {
63188
- const Y = (k = D.dataType) == null ? void 0 : k.merge(
63331
+ const K = (k = D.dataType) == null ? void 0 : k.merge(
63189
63332
  $,
63190
63333
  t
63191
63334
  );
63192
- D.dataType && (Y == null ? void 0 : Y.self.id) !== D.dataType.id && D.dataType.remove(
63335
+ D.dataType && (K == null ? void 0 : K.self.id) !== D.dataType.id && D.dataType.remove(
63193
63336
  { ignoreUpstream: !1 },
63194
63337
  t
63195
- ), $.id !== ((J = Y == null ? void 0 : Y.self) == null ? void 0 : J.id) && $.remove({ ignoreUpstream: !1 }, t), Y != null && Y.self && (Y.self.metaSync(
63338
+ ), $.id !== ((Z = K == null ? void 0 : K.self) == null ? void 0 : Z.id) && $.remove({ ignoreUpstream: !1 }, t), K != null && K.self && (K.self.metaSync(
63196
63339
  {
63197
63340
  inferred: !0,
63198
63341
  like: !0
63199
63342
  },
63200
63343
  t
63201
63344
  ), t == null || t.add(
63202
- Y.self,
63345
+ K.self,
63203
63346
  b.Added
63204
- ), D.setDataType(Y.self), t == null || t.add(D, b.Updated));
63347
+ ), D.setDataType(K.self), t == null || t.add(D, b.Updated));
63205
63348
  }
63206
63349
  return this.addProperty(D), c.setDeclaration(D), t == null || t.add(c, b.Updated), D;
63207
63350
  }), t == null || t.attemptAutoclose("infer-definition-entity-from-inputs", this.id), {
@@ -66721,7 +66864,7 @@ export {
66721
66864
  R as EntityErrorSeverity,
66722
66865
  P as EntityGenerationError,
66723
66866
  E as EntityGenerationErrorCode,
66724
- Z as EntityInstanceErrorCode,
66867
+ J as EntityInstanceErrorCode,
66725
66868
  He as EntityOperations,
66726
66869
  n as EntityType,
66727
66870
  Hq as EntityWithLogicScopeClass,
@@ -67133,7 +67276,7 @@ export {
67133
67276
  Xq as getProject,
67134
67277
  Zo as getPrototypeByType,
67135
67278
  dp as getRecusriveParentsIds,
67136
- C as getReferenceEntityId,
67279
+ B as getReferenceEntityId,
67137
67280
  sd as getReferencedEntitiesStateOrErrors,
67138
67281
  U0 as getReferencedEntityStateOrErrors,
67139
67282
  pd as getReferencedIds,