@elyx-code/project-logic-tree 0.0.6439 → 0.0.6440

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
@@ -145,7 +145,7 @@ const Fn = [
145
145
  ], fr = [
146
146
  ...PI,
147
147
  f.InternalCall
148
- ], Ot = [
148
+ ], gt = [
149
149
  f.FunctionDeclaration,
150
150
  ...Ld
151
151
  ], yi = [
@@ -160,15 +160,15 @@ const Fn = [
160
160
  f.ContinueStatement
161
161
  ], Pi = [
162
162
  ...fr,
163
- ...Ot
163
+ ...gt
164
164
  ], L5e = [
165
165
  ...PI,
166
- ...Ot
167
- ], A$ = [...yi, ...Ot], DRt = [
166
+ ...gt
167
+ ], A$ = [...yi, ...gt], DRt = [
168
168
  ...I$,
169
- ...Ot
169
+ ...gt
170
170
  ], Lr = [
171
- ...Ot,
171
+ ...gt,
172
172
  f.Loop
173
173
  ], br = [
174
174
  f.ReturnStatement,
@@ -29857,7 +29857,7 @@ const $t = class $t extends Or {
29857
29857
  const v = a.get(
29858
29858
  Z(o.parent)
29859
29859
  );
29860
- if (v && Ot.includes(v.type)) {
29860
+ if (v && gt.includes(v.type)) {
29861
29861
  const E = v.implements;
29862
29862
  if (E) {
29863
29863
  const b = E.inputs.find(
@@ -30794,7 +30794,7 @@ g($t, "repository", {
30794
30794
  },
30795
30795
  APILoad: async (i, ...a) => null,
30796
30796
  APILoadVersion: async (i, a, ...o) => null
30797
- }), g($t, "type", f.ArgumentDeclaration), g($t, "USER_MANAGED_PARENT_TYPES", [...Ot]), g($t, "PARENT_TYPES", [
30797
+ }), g($t, "type", f.ArgumentDeclaration), g($t, "USER_MANAGED_PARENT_TYPES", [...gt]), g($t, "PARENT_TYPES", [
30798
30798
  ...$t.USER_MANAGED_PARENT_TYPES
30799
30799
  ]), g($t, "MUTABLE_BASE_PROPERTIES", [
30800
30800
  "name",
@@ -35790,7 +35790,7 @@ ${o$}`
35790
35790
  }
35791
35791
  } else if (b && b.type === f.ReturnStatement) {
35792
35792
  const A = b.parent;
35793
- if (A && Ot.includes(A.type)) {
35793
+ if (A && gt.includes(A.type)) {
35794
35794
  const O = A.implements;
35795
35795
  if (O) {
35796
35796
  const N = O.outputs.find(
@@ -43192,10 +43192,10 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
43192
43192
  }
43193
43193
  // The return statements, don't belong to the loop itself, but to the parent scope entity
43194
43194
  addReturnStatement(i) {
43195
- return Ot.includes(this.parent.type) && this.parent.addReturnStatement(i), this;
43195
+ return gt.includes(this.parent.type) && this.parent.addReturnStatement(i), this;
43196
43196
  }
43197
43197
  removeReturnStatement(i) {
43198
- return Ot.includes(this.parent.type) && this.parent.removeReturnStatement(i), this;
43198
+ return gt.includes(this.parent.type) && this.parent.removeReturnStatement(i), this;
43199
43199
  }
43200
43200
  addBreakStatement(i) {
43201
43201
  return this.breakStatements.includes(i) || this.breakStatements.push(i), this;
@@ -61356,15 +61356,15 @@ const cd = xi, yT = Zp, pd = iM, L = ir, Bn = vn, $ = um, di = cm, HC = pm, D =
61356
61356
  return t;
61357
61357
  }
61358
61358
  function k1() {
61359
- var t, n, s, l, c, h, T, _, U, H, ce, Pe, Fe, gt, Vr, ud;
61359
+ var t, n, s, l, c, h, T, _, U, H, ce, Pe, Fe, Dt, Vr, ud;
61360
61360
  if (t = r, n = r, m++, s = Ne(), m--, s !== e ? (r = n, n = void 0) : n = e, n === e && (n = r, m++, s = Ye(), m--, s !== e ? (r = n, n = void 0) : n = e, n === e && (n = r, m++, s = _e(), m--, s !== e ? (r = n, n = void 0) : n = e)), n !== e)
61361
61361
  if (s = r, l = Oi(), l !== e ? (c = I(), l = [l, c], s = l) : (r = s, s = e), s !== e)
61362
61362
  if (l = r, c = qi(), c !== e ? (h = I(), T = Os(), T !== e ? (_ = I(), c = [c, h, T, _], l = c) : (r = l, l = e)) : (r = l, l = e), l === e && (l = null), c = r, h = S1(), h !== e ? (T = I(), h = [h, T], c = h) : (r = c, c = e), c === e && (c = null), h = r, T = ds(), T !== e ? (_ = I(), T = [T, _], h = T) : (r = h, h = e), h !== e)
61363
61363
  if (T = r, _ = ws(), _ !== e ? (U = I(), _ = [_, U], T = _) : (r = T, T = e), T === e && (T = null), _ = r, U = Ue(), U !== e ? (H = I(), U = [U, H], _ = U) : (r = _, _ = e), _ === e && (_ = null), U = r, H = Rr(), H !== e ? (ce = I(), H = [H, ce], U = H) : (r = U, U = e), U !== e)
61364
61364
  if (H = r, ce = Ue(), ce !== e ? (Pe = I(), ce = [ce, Pe], H = ce) : (r = H, H = e), H !== e)
61365
61365
  if (ce = Du(), ce === e && (ce = rBe()), ce !== e) {
61366
- for (Pe = [], Fe = r, gt = I(), Vr = Lf(), Vr !== e ? (gt = [gt, Vr], Fe = gt) : (r = Fe, Fe = e); Fe !== e; )
61367
- Pe.push(Fe), Fe = r, gt = I(), Vr = Lf(), Vr !== e ? (gt = [gt, Vr], Fe = gt) : (r = Fe, Fe = e);
61366
+ for (Pe = [], Fe = r, Dt = I(), Vr = Lf(), Vr !== e ? (Dt = [Dt, Vr], Fe = Dt) : (r = Fe, Fe = e); Fe !== e; )
61367
+ Pe.push(Fe), Fe = r, Dt = I(), Vr = Lf(), Vr !== e ? (Dt = [Dt, Vr], Fe = Dt) : (r = Fe, Fe = e);
61368
61368
  w = t, t = Pse(s, l, c, h, T, _, U, H, ce, Pe);
61369
61369
  } else
61370
61370
  r = t, t = e;
@@ -61385,8 +61385,8 @@ const cd = xi, yT = Zp, pd = iM, L = ir, Bn = vn, $ = um, di = cm, HC = pm, D =
61385
61385
  if (h = r, T = Bu(), T !== e ? (_ = I(), T = [T, _], h = T) : (r = h, h = e), h === e && (h = null), T = r, _ = ws(), _ !== e ? (U = I(), _ = [_, U], T = _) : (r = T, T = e), T === e && (T = null), _ = r, U = Ue(), U !== e ? (H = I(), U = [U, H], _ = U) : (r = _, _ = e), _ === e && (_ = null), U = r, H = Rr(), H !== e ? (ce = I(), H = [H, ce], U = H) : (r = U, U = e), U !== e)
61386
61386
  if (H = r, ce = v1(), ce === e && (ce = Ue()), ce !== e ? (Pe = I(), ce = [ce, Pe], H = ce) : (r = H, H = e), H !== e)
61387
61387
  if (ce = r, Pe = xf(), Pe !== e ? (Fe = I(), Pe = [Pe, Fe], ce = Pe) : (r = ce, ce = e), ce === e && (ce = null), Pe = Du(), Pe !== e) {
61388
- for (Fe = [], gt = r, Vr = I(), ud = Lf(), ud !== e ? (Vr = [Vr, ud], gt = Vr) : (r = gt, gt = e); gt !== e; )
61389
- Fe.push(gt), gt = r, Vr = I(), ud = Lf(), ud !== e ? (Vr = [Vr, ud], gt = Vr) : (r = gt, gt = e);
61388
+ for (Fe = [], Dt = r, Vr = I(), ud = Lf(), ud !== e ? (Vr = [Vr, ud], Dt = Vr) : (r = Dt, Dt = e); Dt !== e; )
61389
+ Fe.push(Dt), Dt = r, Vr = I(), ud = Lf(), ud !== e ? (Vr = [Vr, ud], Dt = Vr) : (r = Dt, Dt = e);
61390
61390
  w = t, t = Nse(s, l, c, h, T, _, U, H, ce, Pe, Fe);
61391
61391
  } else
61392
61392
  r = t, t = e;
@@ -61463,12 +61463,12 @@ const cd = xi, yT = Zp, pd = iM, L = ir, Bn = vn, $ = um, di = cm, HC = pm, D =
61463
61463
  return t = r, n = T5e(), n !== e ? (s = r, l = I(), c = ch(), c !== e ? (l = [l, c], s = l) : (r = s, s = e), s === e && (s = null), w = t, t = Qse(n, s)) : (r = t, t = e), t;
61464
61464
  }
61465
61465
  function Z1() {
61466
- var t, n, s, l, c, h, T, _, U, H, ce, Pe, Fe, gt, Vr;
61466
+ var t, n, s, l, c, h, T, _, U, H, ce, Pe, Fe, Dt, Vr;
61467
61467
  if (t = r, n = Oi(), n !== e)
61468
61468
  if (s = r, l = I(), c = qi(), c !== e ? (h = I(), T = Os(), T !== e ? (l = [l, c, h, T], s = l) : (r = s, s = e)) : (r = s, s = e), s === e && (s = null), l = r, c = I(), h = K0(), h !== e ? (c = [c, h], l = c) : (r = l, l = e), l === e && (l = null), c = r, h = I(), T = vi(), T !== e ? (h = [h, T], c = h) : (r = c, c = e), c !== e)
61469
61469
  if (h = r, T = I(), _ = ws(), _ !== e ? (T = [T, _], h = T) : (r = h, h = e), h === e && (h = null), T = r, _ = I(), U = Ue(), U !== e ? (_ = [_, U], T = _) : (r = T, T = e), T !== e) {
61470
- for (_ = r, U = I(), H = $Ne(), H !== e ? (U = [U, H], _ = U) : (r = _, _ = e), _ === e && (_ = null), U = r, H = I(), ce = PNe(), ce !== e ? (H = [H, ce], U = H) : (r = U, U = e), U === e && (U = null), H = r, ce = I(), Pe = U4e(), Pe !== e ? (ce = [ce, Pe], H = ce) : (r = H, H = e), H === e && (H = null), ce = r, Pe = I(), Fe = Pxe(), Fe !== e ? (Pe = [Pe, Fe], ce = Pe) : (r = ce, ce = e), ce === e && (ce = null), Pe = [], Fe = r, gt = I(), Vr = J1(), Vr !== e ? (gt = [gt, Vr], Fe = gt) : (r = Fe, Fe = e); Fe !== e; )
61471
- Pe.push(Fe), Fe = r, gt = I(), Vr = J1(), Vr !== e ? (gt = [gt, Vr], Fe = gt) : (r = Fe, Fe = e);
61470
+ for (_ = r, U = I(), H = $Ne(), H !== e ? (U = [U, H], _ = U) : (r = _, _ = e), _ === e && (_ = null), U = r, H = I(), ce = PNe(), ce !== e ? (H = [H, ce], U = H) : (r = U, U = e), U === e && (U = null), H = r, ce = I(), Pe = U4e(), Pe !== e ? (ce = [ce, Pe], H = ce) : (r = H, H = e), H === e && (H = null), ce = r, Pe = I(), Fe = Pxe(), Fe !== e ? (Pe = [Pe, Fe], ce = Pe) : (r = ce, ce = e), ce === e && (ce = null), Pe = [], Fe = r, Dt = I(), Vr = J1(), Vr !== e ? (Dt = [Dt, Vr], Fe = Dt) : (r = Fe, Fe = e); Fe !== e; )
61471
+ Pe.push(Fe), Fe = r, Dt = I(), Vr = J1(), Vr !== e ? (Dt = [Dt, Vr], Fe = Dt) : (r = Fe, Fe = e);
61472
61472
  w = t, t = ene(n, s, l, c, h, T, _, U, H, ce, Pe);
61473
61473
  } else
61474
61474
  r = t, t = e;
@@ -62014,14 +62014,14 @@ const cd = xi, yT = Zp, pd = iM, L = ir, Bn = vn, $ = um, di = cm, HC = pm, D =
62014
62014
  return t = r, n = Ue(), n !== e ? (s = r, l = I(), c = ri(), c !== e ? (h = I(), l = [l, c, h], s = l) : (r = s, s = e), s !== e ? (l = Ue(), l !== e ? (w = t, t = woe(n, s, l)) : (r = t, t = e)) : (r = t, t = e)) : (r = t, t = e), t;
62015
62015
  }
62016
62016
  function Ff() {
62017
- var t, n, s, l, c, h, T, _, U, H, ce, Pe, Fe, gt;
62017
+ var t, n, s, l, c, h, T, _, U, H, ce, Pe, Fe, Dt;
62018
62018
  if (t = r, n = r, s = Oi(), s !== e ? (l = I(), s = [s, l], n = s) : (r = n, n = e), n !== e)
62019
62019
  if (s = r, l = qi(), l !== e ? (c = I(), h = Os(), h !== e ? (T = I(), l = [l, c, h, T], s = l) : (r = s, s = e)) : (r = s, s = e), s === e && (s = null), l = r, c = qVe(), c !== e ? (h = I(), c = [c, h], l = c) : (r = l, l = e), l === e && (l = null), c = r, h = dd(), h !== e ? (T = I(), h = [h, T], c = h) : (r = c, c = e), c !== e)
62020
62020
  if (h = r, T = ws(), T !== e ? (_ = I(), T = [T, _], h = T) : (r = h, h = e), h === e && (h = null), T = r, _ = Ue(), _ !== e ? (U = I(), _ = [_, U], T = _) : (r = T, T = e), T !== e)
62021
62021
  if (_ = r, U = Ug(), U !== e ? (H = I(), U = [U, H], _ = U) : (r = _, _ = e), _ === e && (_ = r, U = Ng(), U !== e ? (H = I(), U = [U, H], _ = U) : (r = _, _ = e), _ === e && (_ = r, U = Q3e(), U !== e ? (H = I(), ce = Ws(), ce !== e ? (Pe = I(), U = [U, H, ce, Pe], _ = U) : (r = _, _ = e)) : (r = _, _ = e))), _ === e && (_ = null), U = r, H = ZVe(), H !== e ? (ce = I(), H = [H, ce], U = H) : (r = U, U = e), U !== e)
62022
62022
  if (H = r, ce = ev(), ce !== e ? (Pe = I(), ce = [ce, Pe], H = ce) : (r = H, H = e), H !== e) {
62023
- for (ce = [], Pe = r, Fe = mR(), Fe !== e ? (gt = I(), Fe = [Fe, gt], Pe = Fe) : (r = Pe, Pe = e); Pe !== e; )
62024
- ce.push(Pe), Pe = r, Fe = mR(), Fe !== e ? (gt = I(), Fe = [Fe, gt], Pe = Fe) : (r = Pe, Pe = e);
62023
+ for (ce = [], Pe = r, Fe = mR(), Fe !== e ? (Dt = I(), Fe = [Fe, Dt], Pe = Fe) : (r = Pe, Pe = e); Pe !== e; )
62024
+ ce.push(Pe), Pe = r, Fe = mR(), Fe !== e ? (Dt = I(), Fe = [Fe, Dt], Pe = Fe) : (r = Pe, Pe = e);
62025
62025
  Pe = XVe(), Pe !== e ? (w = t, t = Roe(n, s, l, c, h, T, _, U, H, ce, Pe)) : (r = t, t = e);
62026
62026
  } else
62027
62027
  r = t, t = e;
@@ -62167,15 +62167,15 @@ const cd = xi, yT = Zp, pd = iM, L = ir, Bn = vn, $ = um, di = cm, HC = pm, D =
62167
62167
  return t = Ua(), t === e && (t = r, n = Hl(), n !== e ? (s = r, m++, l = Ne(), m--, l !== e ? (r = s, s = void 0) : s = e, s !== e ? (w = t, t = rle(n)) : (r = t, t = e)) : (r = t, t = e)), t;
62168
62168
  }
62169
62169
  function IR() {
62170
- var t, n, s, l, c, h, T, _, U, H, ce, Pe, Fe, gt;
62170
+ var t, n, s, l, c, h, T, _, U, H, ce, Pe, Fe, Dt;
62171
62171
  if (t = r, n = r, m++, s = _e(), m--, s !== e ? (r = n, n = void 0) : n = e, n !== e)
62172
62172
  if (s = r, l = Oi(), l !== e ? (c = I(), l = [l, c], s = l) : (r = s, s = e), s !== e)
62173
62173
  if (l = r, c = qi(), c !== e ? (h = I(), T = Os(), T !== e ? (_ = I(), c = [c, h, T, _], l = c) : (r = l, l = e)) : (r = l, l = e), l === e && (l = null), c = r, h = Po(), h === e && (h = $o()), h !== e ? (T = I(), h = [h, T], c = h) : (r = c, c = e), c === e && (c = null), h = r, T = vi(), T !== e ? (_ = I(), T = [T, _], h = T) : (r = h, h = e), h === e && (h = null), T = r, _ = zl(), _ !== e ? (U = I(), _ = [_, U], T = _) : (r = T, T = e), T !== e)
62174
62174
  if (_ = r, U = ws(), U !== e ? (H = I(), U = [U, H], _ = U) : (r = _, _ = e), _ === e && (_ = null), U = r, H = Ue(), H !== e ? (ce = I(), H = [H, ce], U = H) : (r = U, U = e), U !== e)
62175
62175
  if (H = Kl(), H === e && (H = Zs()), H !== e) {
62176
- if (ce = [], Pe = r, Fe = I(), gt = Kf(), gt !== e ? (Fe = [Fe, gt], Pe = Fe) : (r = Pe, Pe = e), Pe !== e)
62176
+ if (ce = [], Pe = r, Fe = I(), Dt = Kf(), Dt !== e ? (Fe = [Fe, Dt], Pe = Fe) : (r = Pe, Pe = e), Pe !== e)
62177
62177
  for (; Pe !== e; )
62178
- ce.push(Pe), Pe = r, Fe = I(), gt = Kf(), gt !== e ? (Fe = [Fe, gt], Pe = Fe) : (r = Pe, Pe = e);
62178
+ ce.push(Pe), Pe = r, Fe = I(), Dt = Kf(), Dt !== e ? (Fe = [Fe, Dt], Pe = Fe) : (r = Pe, Pe = e);
62179
62179
  else
62180
62180
  ce = e;
62181
62181
  ce !== e ? (w = t, t = ile(s, l, c, h, T, _, U, H, ce)) : (r = t, t = e);
@@ -63845,8 +63845,8 @@ const cd = xi, yT = Zp, pd = iM, L = ir, Bn = vn, $ = um, di = cm, HC = pm, D =
63845
63845
  return t = r, n = as(), n !== e ? (s = r, l = I(), c = PMe(), c !== e ? (l = [l, c], s = l) : (r = s, s = e), s === e && (s = null), w = t, t = Hhe(n, s)) : (r = t, t = e), t;
63846
63846
  }
63847
63847
  function PMe() {
63848
- var t, n, s, l, c, h, T, _, U, H, ce, Pe, Fe, gt, Vr;
63849
- return t = r, n = r, s = Hr(), s !== e ? (l = I(), c = LE(), c !== e ? (h = I(), T = Lh(), T !== e ? (_ = I(), U = Bh(), U !== e ? (H = I(), ce = Nr(), ce !== e ? (Pe = I(), Fe = kE(), Fe !== e ? (gt = I(), Vr = cD(), Vr !== e ? (s = [s, l, c, h, T, _, U, H, ce, Pe, Fe, gt, Vr], n = s) : (r = n, n = e)) : (r = n, n = e)) : (r = n, n = e)) : (r = n, n = e)) : (r = n, n = e)) : (r = n, n = e)) : (r = n, n = e), n === e && (n = r, s = Hr(), s !== e ? (l = I(), c = LE(), c !== e ? (h = I(), T = Lh(), T !== e ? (_ = I(), U = Bh(), U !== e ? (s = [s, l, c, h, T, _, U], n = s) : (r = n, n = e)) : (r = n, n = e)) : (r = n, n = e)) : (r = n, n = e), n === e && (n = r, s = Hr(), s !== e ? (l = I(), c = Sg(), c !== e ? (h = I(), T = Bh(), T !== e ? (s = [s, l, c, h, T], n = s) : (r = n, n = e)) : (r = n, n = e)) : (r = n, n = e), n === e && (n = r, s = Nr(), s !== e ? (l = I(), c = kE(), c !== e ? (h = I(), T = cD(), T !== e ? (s = [s, l, c, h, T], n = s) : (r = n, n = e)) : (r = n, n = e)) : (r = n, n = e)))), n !== e && (w = t, n = zhe(n)), t = n, t;
63848
+ var t, n, s, l, c, h, T, _, U, H, ce, Pe, Fe, Dt, Vr;
63849
+ return t = r, n = r, s = Hr(), s !== e ? (l = I(), c = LE(), c !== e ? (h = I(), T = Lh(), T !== e ? (_ = I(), U = Bh(), U !== e ? (H = I(), ce = Nr(), ce !== e ? (Pe = I(), Fe = kE(), Fe !== e ? (Dt = I(), Vr = cD(), Vr !== e ? (s = [s, l, c, h, T, _, U, H, ce, Pe, Fe, Dt, Vr], n = s) : (r = n, n = e)) : (r = n, n = e)) : (r = n, n = e)) : (r = n, n = e)) : (r = n, n = e)) : (r = n, n = e)) : (r = n, n = e), n === e && (n = r, s = Hr(), s !== e ? (l = I(), c = LE(), c !== e ? (h = I(), T = Lh(), T !== e ? (_ = I(), U = Bh(), U !== e ? (s = [s, l, c, h, T, _, U], n = s) : (r = n, n = e)) : (r = n, n = e)) : (r = n, n = e)) : (r = n, n = e), n === e && (n = r, s = Hr(), s !== e ? (l = I(), c = Sg(), c !== e ? (h = I(), T = Bh(), T !== e ? (s = [s, l, c, h, T], n = s) : (r = n, n = e)) : (r = n, n = e)) : (r = n, n = e), n === e && (n = r, s = Nr(), s !== e ? (l = I(), c = kE(), c !== e ? (h = I(), T = cD(), T !== e ? (s = [s, l, c, h, T], n = s) : (r = n, n = e)) : (r = n, n = e)) : (r = n, n = e)))), n !== e && (w = t, n = zhe(n)), t = n, t;
63850
63850
  }
63851
63851
  function as() {
63852
63852
  var t, n, s;
@@ -86930,10 +86930,10 @@ const xIt = (d) => {
86930
86930
  asap: UIt,
86931
86931
  isIterable: jIt
86932
86932
  };
86933
- function Ct(d, u, i, a, o) {
86933
+ function Ot(d, u, i, a, o) {
86934
86934
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = d, this.name = "AxiosError", u && (this.code = u), i && (this.config = i), a && (this.request = a), o && (this.response = o, this.status = o.status ? o.status : null);
86935
86935
  }
86936
- Ee.inherits(Ct, Error, {
86936
+ Ee.inherits(Ot, Error, {
86937
86937
  toJSON: function() {
86938
86938
  return {
86939
86939
  // Standard
@@ -86954,7 +86954,7 @@ Ee.inherits(Ct, Error, {
86954
86954
  };
86955
86955
  }
86956
86956
  });
86957
- const x4 = Ct.prototype, M4 = {};
86957
+ const x4 = Ot.prototype, M4 = {};
86958
86958
  [
86959
86959
  "ERR_BAD_OPTION_VALUE",
86960
86960
  "ERR_BAD_OPTION",
@@ -86972,13 +86972,13 @@ const x4 = Ct.prototype, M4 = {};
86972
86972
  ].forEach((d) => {
86973
86973
  M4[d] = { value: d };
86974
86974
  });
86975
- Object.defineProperties(Ct, M4);
86975
+ Object.defineProperties(Ot, M4);
86976
86976
  Object.defineProperty(x4, "isAxiosError", { value: !0 });
86977
- Ct.from = (d, u, i, a, o, p) => {
86977
+ Ot.from = (d, u, i, a, o, p) => {
86978
86978
  const e = Object.create(x4);
86979
86979
  return Ee.toFlatObject(d, e, function(v) {
86980
86980
  return v !== Error.prototype;
86981
- }, (y) => y !== "isAxiosError"), Ct.call(e, d.message, u, i, a, o), e.cause = d, e.name = d.name, p && Object.assign(e, p), e;
86981
+ }, (y) => y !== "isAxiosError"), Ot.call(e, d.message, u, i, a, o), e.cause = d, e.name = d.name, p && Object.assign(e, p), e;
86982
86982
  };
86983
86983
  const GIt = null;
86984
86984
  function cI(d) {
@@ -87017,7 +87017,7 @@ function Om(d, u, i) {
87017
87017
  if (Ee.isDate(x))
87018
87018
  return x.toISOString();
87019
87019
  if (!v && Ee.isBlob(x))
87020
- throw new Ct("Blob is not supported. Use a Buffer instead.");
87020
+ throw new Ot("Blob is not supported. Use a Buffer instead.");
87021
87021
  return Ee.isArrayBuffer(x) || Ee.isTypedArray(x) ? v && typeof Blob == "function" ? new Blob([x]) : Buffer.from(x) : x;
87022
87022
  }
87023
87023
  function b(x, G, K) {
@@ -87268,7 +87268,7 @@ const Hb = {
87268
87268
  return JSON.parse(u);
87269
87269
  } catch (y) {
87270
87270
  if (e)
87271
- throw y.name === "SyntaxError" ? Ct.from(y, Ct.ERR_BAD_RESPONSE, this, null, this.response) : y;
87271
+ throw y.name === "SyntaxError" ? Ot.from(y, Ot.ERR_BAD_RESPONSE, this, null, this.response) : y;
87272
87272
  }
87273
87273
  }
87274
87274
  return u;
@@ -87512,16 +87512,16 @@ function K4(d) {
87512
87512
  return !!(d && d.__CANCEL__);
87513
87513
  }
87514
87514
  function nu(d, u, i) {
87515
- Ct.call(this, d ?? "canceled", Ct.ERR_CANCELED, u, i), this.name = "CanceledError";
87515
+ Ot.call(this, d ?? "canceled", Ot.ERR_CANCELED, u, i), this.name = "CanceledError";
87516
87516
  }
87517
- Ee.inherits(nu, Ct, {
87517
+ Ee.inherits(nu, Ot, {
87518
87518
  __CANCEL__: !0
87519
87519
  });
87520
87520
  function k4(d, u, i) {
87521
87521
  const a = i.config.validateStatus;
87522
- !i.status || !a || a(i.status) ? d(i) : u(new Ct(
87522
+ !i.status || !a || a(i.status) ? d(i) : u(new Ot(
87523
87523
  "Request failed with status code " + i.status,
87524
- [Ct.ERR_BAD_REQUEST, Ct.ERR_BAD_RESPONSE][Math.floor(i.status / 100) - 4],
87524
+ [Ot.ERR_BAD_REQUEST, Ot.ERR_BAD_RESPONSE][Math.floor(i.status / 100) - 4],
87525
87525
  i.config,
87526
87526
  i.request,
87527
87527
  i
@@ -87746,15 +87746,15 @@ const q4 = (d) => {
87746
87746
  "onloadend" in K ? K.onloadend = q : K.onreadystatechange = function() {
87747
87747
  !K || K.readyState !== 4 || K.status === 0 && !(K.responseURL && K.responseURL.indexOf("file:") === 0) || setTimeout(q);
87748
87748
  }, K.onabort = function() {
87749
- K && (a(new Ct("Request aborted", Ct.ECONNABORTED, d, K)), K = null);
87749
+ K && (a(new Ot("Request aborted", Ot.ECONNABORTED, d, K)), K = null);
87750
87750
  }, K.onerror = function() {
87751
- a(new Ct("Network Error", Ct.ERR_NETWORK, d, K)), K = null;
87751
+ a(new Ot("Network Error", Ot.ERR_NETWORK, d, K)), K = null;
87752
87752
  }, K.ontimeout = function() {
87753
87753
  let de = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
87754
87754
  const se = o.transitional || G4;
87755
- o.timeoutErrorMessage && (de = o.timeoutErrorMessage), a(new Ct(
87755
+ o.timeoutErrorMessage && (de = o.timeoutErrorMessage), a(new Ot(
87756
87756
  de,
87757
- se.clarifyTimeoutError ? Ct.ETIMEDOUT : Ct.ECONNABORTED,
87757
+ se.clarifyTimeoutError ? Ot.ETIMEDOUT : Ot.ECONNABORTED,
87758
87758
  d,
87759
87759
  K
87760
87760
  )), K = null;
@@ -87765,7 +87765,7 @@ const q4 = (d) => {
87765
87765
  }, o.cancelToken && o.cancelToken.subscribe(b), o.signal && (o.signal.aborted ? b() : o.signal.addEventListener("abort", b)));
87766
87766
  const ne = dAt(o.url);
87767
87767
  if (ne && Mi.protocols.indexOf(ne) === -1) {
87768
- a(new Ct("Unsupported protocol " + ne + ":", Ct.ERR_BAD_REQUEST, d));
87768
+ a(new Ot("Unsupported protocol " + ne + ":", Ot.ERR_BAD_REQUEST, d));
87769
87769
  return;
87770
87770
  }
87771
87771
  K.send(p || null);
@@ -87778,11 +87778,11 @@ const q4 = (d) => {
87778
87778
  if (!o) {
87779
87779
  o = !0, y();
87780
87780
  const b = E instanceof Error ? E : this.reason;
87781
- a.abort(b instanceof Ct ? b : new nu(b instanceof Error ? b.message : b));
87781
+ a.abort(b instanceof Ot ? b : new nu(b instanceof Error ? b.message : b));
87782
87782
  }
87783
87783
  };
87784
87784
  let e = u && setTimeout(() => {
87785
- e = null, p(new Ct(`timeout ${u} of ms exceeded`, Ct.ETIMEDOUT));
87785
+ e = null, p(new Ot(`timeout ${u} of ms exceeded`, Ot.ETIMEDOUT));
87786
87786
  }, u);
87787
87787
  const y = () => {
87788
87788
  d && (e && clearTimeout(e), e = null, d.forEach((E) => {
@@ -87872,7 +87872,7 @@ const q4 = (d) => {
87872
87872
  Pm && ((d) => {
87873
87873
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
87874
87874
  !Dy[u] && (Dy[u] = Ee.isFunction(d[u]) ? (i) => i[u]() : (i, a) => {
87875
- throw new Ct(`Response type '${u}' is not supported`, Ct.ERR_NOT_SUPPORT, a);
87875
+ throw new Ot(`Response type '${u}' is not supported`, Ot.ERR_NOT_SUPPORT, a);
87876
87876
  });
87877
87877
  });
87878
87878
  })(new Response());
@@ -87972,11 +87972,11 @@ const _At = async (d) => {
87972
87972
  });
87973
87973
  } catch (q) {
87974
87974
  throw G && G(), q && q.name === "TypeError" && /Load failed|fetch/i.test(q.message) ? Object.assign(
87975
- new Ct("Network Error", Ct.ERR_NETWORK, d, x),
87975
+ new Ot("Network Error", Ot.ERR_NETWORK, d, x),
87976
87976
  {
87977
87977
  cause: q.cause || q
87978
87978
  }
87979
- ) : Ct.from(q, q && q.code, d, x);
87979
+ ) : Ot.from(q, q && q.code, d, x);
87980
87980
  }
87981
87981
  }), hI = {
87982
87982
  http: GIt,
@@ -88002,7 +88002,7 @@ const XO = (d) => `- ${d}`, CAt = (d) => Ee.isFunction(d) || d === null || d ===
88002
88002
  i = d[p];
88003
88003
  let e;
88004
88004
  if (a = i, !CAt(i) && (a = hI[(e = String(i)).toLowerCase()], a === void 0))
88005
- throw new Ct(`Unknown adapter '${e}'`);
88005
+ throw new Ot(`Unknown adapter '${e}'`);
88006
88006
  if (a)
88007
88007
  break;
88008
88008
  o[e || "#" + p] = a;
@@ -88014,7 +88014,7 @@ const XO = (d) => `- ${d}`, CAt = (d) => Ee.isFunction(d) || d === null || d ===
88014
88014
  let e = u ? p.length > 1 ? `since :
88015
88015
  ` + p.map(XO).join(`
88016
88016
  `) : " " + XO(p[0]) : "as no adapter specified";
88017
- throw new Ct(
88017
+ throw new Ot(
88018
88018
  "There is no suitable adapter to dispatch the request " + e,
88019
88019
  "ERR_NOT_SUPPORT"
88020
88020
  );
@@ -88058,9 +88058,9 @@ Nm.transitional = function(u, i, a) {
88058
88058
  }
88059
88059
  return (p, e, y) => {
88060
88060
  if (u === !1)
88061
- throw new Ct(
88061
+ throw new Ot(
88062
88062
  o(e, " has been removed" + (i ? " in " + i : "")),
88063
- Ct.ERR_DEPRECATED
88063
+ Ot.ERR_DEPRECATED
88064
88064
  );
88065
88065
  return i && !e$[e] && (e$[e] = !0, console.warn(
88066
88066
  o(
@@ -88075,7 +88075,7 @@ Nm.spelling = function(u) {
88075
88075
  };
88076
88076
  function OAt(d, u, i) {
88077
88077
  if (typeof d != "object")
88078
- throw new Ct("options must be an object", Ct.ERR_BAD_OPTION_VALUE);
88078
+ throw new Ot("options must be an object", Ot.ERR_BAD_OPTION_VALUE);
88079
88079
  const a = Object.keys(d);
88080
88080
  let o = a.length;
88081
88081
  for (; o-- > 0; ) {
@@ -88083,11 +88083,11 @@ function OAt(d, u, i) {
88083
88083
  if (e) {
88084
88084
  const y = d[p], v = y === void 0 || e(y, p, d);
88085
88085
  if (v !== !0)
88086
- throw new Ct("option " + p + " must be " + v, Ct.ERR_BAD_OPTION_VALUE);
88086
+ throw new Ot("option " + p + " must be " + v, Ot.ERR_BAD_OPTION_VALUE);
88087
88087
  continue;
88088
88088
  }
88089
88089
  if (i !== !0)
88090
- throw new Ct("Unknown option " + p, Ct.ERR_BAD_OPTION);
88090
+ throw new Ot("Unknown option " + p, Ot.ERR_BAD_OPTION);
88091
88091
  }
88092
88092
  }
88093
88093
  const ay = {
@@ -88384,7 +88384,7 @@ ci.CancelToken = $At;
88384
88384
  ci.isCancel = K4;
88385
88385
  ci.VERSION = H4;
88386
88386
  ci.toFormData = Om;
88387
- ci.AxiosError = Ct;
88387
+ ci.AxiosError = Ot;
88388
88388
  ci.Cancel = ci.CanceledError;
88389
88389
  ci.all = function(u) {
88390
88390
  return Promise.all(u);
@@ -91892,7 +91892,7 @@ class jn extends lp {
91892
91892
  async schedule(i, a, o) {
91893
91893
  if (this.hasExecuted(i))
91894
91894
  return null;
91895
- if (Ot.includes(i.type))
91895
+ if (gt.includes(i.type))
91896
91896
  return this.executeBranch(
91897
91897
  i,
91898
91898
  o,
@@ -91915,7 +91915,7 @@ class jn extends lp {
91915
91915
  // And returns a resolved list of dynamic values to be used during the execution
91916
91916
  mergeExernalValuesWithInternalInputs(i, a) {
91917
91917
  const o = [];
91918
- return [...fr, ...Ot].includes(
91918
+ return [...fr, ...gt].includes(
91919
91919
  a.type
91920
91920
  ) ? o.push(
91921
91921
  ...a.inputs
@@ -91927,7 +91927,7 @@ class jn extends lp {
91927
91927
  );
91928
91928
  if (y)
91929
91929
  return y;
91930
- if (!y && Ot.includes(a.type) && (y = i.find(
91930
+ if (!y && gt.includes(a.type) && (y = i.find(
91931
91931
  (E) => {
91932
91932
  var b;
91933
91933
  return ((b = E.valueOwner.declaration) == null ? void 0 : b.id) === e.id;
@@ -95285,7 +95285,7 @@ class Ei {
95285
95285
  if (f.DefinitionEntity === e.type) {
95286
95286
  a.push(e);
95287
95287
  return;
95288
- } else if (Ot.includes(e.type)) {
95288
+ } else if (gt.includes(e.type)) {
95289
95289
  o.push(e);
95290
95290
  return;
95291
95291
  }
@@ -95455,7 +95455,7 @@ class Ei {
95455
95455
  this.parents.forEach((a) => {
95456
95456
  a !== this.calculationEntryPoint && a.shiftDownAlone(i);
95457
95457
  });
95458
- } else if ([...Ot].includes(this.entity.type) && this.children.length)
95458
+ } else if ([...gt].includes(this.entity.type) && this.children.length)
95459
95459
  this.centerHeaderVerticallyOverCombinedAllChildrenHeaderHeight();
95460
95460
  else if (!this.children.length && this.parents.length > 1) {
95461
95461
  const i = u.filter(
@@ -96561,7 +96561,7 @@ function cgt(d, u) {
96561
96561
  modifiedData: null,
96562
96562
  messageAddition: ""
96563
96563
  };
96564
- if (Ot.includes(u.type) ? d.calls && i.push(
96564
+ if (gt.includes(u.type) ? d.calls && i.push(
96565
96565
  new te({
96566
96566
  id: `${u.id}--${k.InvalidInmutablePropertyOverride}`,
96567
96567
  message: `Entity of type "${u.type}" with id "${u.id}" cannot have the property "calls" updated.
@@ -97088,7 +97088,7 @@ All pass-through callable entities are: ${it(
97088
97088
  ", ",
97089
97089
  " and "
97090
97090
  )}.`, xm = `Entry point entities are the entities which start the execution of a logic chain. They are ${it(
97091
- Ot,
97091
+ gt,
97092
97092
  ", ",
97093
97093
  " and "
97094
97094
  )}. They aren't explicitly called by any entities. Rather, they can be called implicitly by the system, or as a function-call somewhere else in the case of a function-declaration. `, rwt = `Caller entities are entities that can call other entities. Regarless of whether they are entry-point entities or pass-through callable entities. All caller entity types are: ${it(
@@ -97183,7 +97183,7 @@ function swt(d, u) {
97183
97183
  };
97184
97184
  i.calledByEntry ? typeof i.calledByEntry == "string" && (i.calledByEntry = [i.calledByEntry]) : i.calledByEntry = [], i.calledBySuccess ? typeof i.calledBySuccess == "string" && (i.calledBySuccess = [i.calledBySuccess]) : i.calledBySuccess = [], i.calledByError ? typeof i.calledByError == "string" && (i.calledByError = [i.calledByError]) : i.calledByError = [];
97185
97185
  const a = [];
97186
- if (Ot.includes(u.type))
97186
+ if (gt.includes(u.type))
97187
97187
  a.push(
97188
97188
  new te({
97189
97189
  id: `${d.id}--${u.id}--${k.InvalidReference}`,
@@ -97251,7 +97251,7 @@ ${Xo}`
97251
97251
  }
97252
97252
  function nwt(d, u) {
97253
97253
  const i = [];
97254
- if (Ot.includes(u.type))
97254
+ if (gt.includes(u.type))
97255
97255
  i.push(
97256
97256
  new te({
97257
97257
  id: `${d.id}--${u.id}--${k.InvalidReference}`,
@@ -97447,13 +97447,13 @@ function owt(d, u) {
97447
97447
  })
97448
97448
  );
97449
97449
  const e = Hi(a, u);
97450
- a.type === f.ReturnStatement && e && !Ot.includes(e.type) ? i.push(
97450
+ a.type === f.ReturnStatement && e && !gt.includes(e.type) ? i.push(
97451
97451
  new te({
97452
97452
  id: `${a.id}--${k.IncompatibleScope}`,
97453
97453
  code: k.IncompatibleScope,
97454
97454
  severity: S.Error,
97455
97455
  message: `Entity of type "${a.type}" with id "${a.id}" has an explicitly set parent, but it isn't a '${it(
97456
- Ot,
97456
+ gt,
97457
97457
  "', '",
97458
97458
  "' or '"
97459
97459
  )}' entity. A return statement's parent should always be resolved to a function declaration or global event.${DT}`
@@ -97929,7 +97929,7 @@ function mgt(d, u, i = "calledBy") {
97929
97929
  message: `Entity with id "${d}" referenced in '${i}' property not found in the project. Perhaps it should be created first? Perhaps it is the wrong ID?`
97930
97930
  })
97931
97931
  ), a;
97932
- if ([...fr, ...Ot].includes(o.type))
97932
+ if ([...fr, ...gt].includes(o.type))
97933
97933
  return [];
97934
97934
  if (br.includes(o.type)) {
97935
97935
  const p = o.calledBy || [], e = p.length ? `
@@ -98012,7 +98012,7 @@ Termination entities are ${it(
98012
98012
  })
98013
98013
  );
98014
98014
  } else
98015
- Ot.includes(o.type) ? a.push(
98015
+ gt.includes(o.type) ? a.push(
98016
98016
  new te({
98017
98017
  id: `last-action--${o.id}--${k.InvalidReference}`,
98018
98018
  code: k.InvalidReference,
@@ -98650,14 +98650,14 @@ function hB(d) {
98650
98650
  return u;
98651
98651
  }
98652
98652
  function ao(d) {
98653
- var i;
98653
+ var i, a;
98654
98654
  const u = [];
98655
- if (yi.includes(d.type) || d.type === f.ReturnStatement || Ot.includes(d.type) || !Ot.includes(d.parent.type) && !((i = d.parent.implements) != null && i.outputs.length) || mt.includes(d.type) && d.internalCalls.some(
98656
- (a) => !!a.calledBy.length
98655
+ if (yi.includes(d.type) || d.type === f.ReturnStatement || gt.includes(d.type) || d.type !== f.InternalCall && !gt.includes(d.parent.type) && !((i = d.parent.implements) != null && i.outputs.length) || d.type === f.InternalCall && !gt.includes(d.parent.parent.type) && !((a = d.parent.parent.implements) != null && a.outputs.length) || mt.includes(d.type) && d.internalCalls.some(
98656
+ (o) => !!o.calledBy.length
98657
98657
  ))
98658
98658
  return u;
98659
98659
  if (!d.calledBySuccess.length && !d.calledByError.length) {
98660
- const a = ct({
98660
+ const o = ct({
98661
98661
  id: `${d.id}--${X.LastCalledEntityMustBeReturnEntity}`,
98662
98662
  message: `The '${d.type}' entity "${J(
98663
98663
  d,
@@ -98667,7 +98667,7 @@ function ao(d) {
98667
98667
  code: X.LastCalledEntityMustBeReturnEntity,
98668
98668
  entity: d
98669
98669
  });
98670
- u.push(a.error);
98670
+ u.push(o.error);
98671
98671
  }
98672
98672
  return u;
98673
98673
  }
@@ -101373,7 +101373,7 @@ function Ad(d, u) {
101373
101373
  return {
101374
101374
  list: i.flatMap((e) => {
101375
101375
  if (e === u)
101376
- return a = e, Ot.includes(e.type) ? e.parent.type === f.Loop ? o = "loop-body" : o = "entry" : e.successCalls.includes(d) ? o = "success" : e.errorCalls.includes(d) && (o = "error"), [e];
101376
+ return a = e, gt.includes(e.type) ? e.parent.type === f.Loop ? o = "loop-body" : o = "entry" : e.successCalls.includes(d) ? o = "success" : e.errorCalls.includes(d) && (o = "error"), [e];
101377
101377
  if (!yi.includes(e.type))
101378
101378
  return [e];
101379
101379
  const y = Ad(
@@ -101451,7 +101451,7 @@ function ew(d) {
101451
101451
  };
101452
101452
  });
101453
101453
  }
101454
- if (Ot.includes(d.type)) {
101454
+ if (gt.includes(d.type)) {
101455
101455
  const u = [
101456
101456
  ...Bi(
101457
101457
  si(
@@ -101533,7 +101533,7 @@ function NT(d, u, i, a, o = !0) {
101533
101533
  }
101534
101534
  function EB(d, u, i, a = !0) {
101535
101535
  let o, p = [];
101536
- if (Ot.includes(i.type))
101536
+ if (gt.includes(i.type))
101537
101537
  i.parent.type === f.Loop ? o = "loop-body" : o = "entry", p = NT(
101538
101538
  i.calls,
101539
101539
  d,
@@ -101639,7 +101639,7 @@ function TB(d, u, i = !0) {
101639
101639
  if (yi.includes(d.type) && Pi.includes(u.type) && (v = d.calledBy) != null && v.every(
101640
101640
  (b) => b === u
101641
101641
  )) {
101642
- if (Ot.includes(u.type))
101642
+ if (gt.includes(u.type))
101643
101643
  return u.parent.type === f.Loop ? {
101644
101644
  ancestor: u,
101645
101645
  callType: "loop-body"
@@ -101665,7 +101665,7 @@ function TB(d, u, i = !0) {
101665
101665
  if (yi.includes(u.type) && Pi.includes(d.type) && (E = u.calledBy) != null && E.every(
101666
101666
  (b) => b === d
101667
101667
  )) {
101668
- if (Ot.includes(d.type))
101668
+ if (gt.includes(d.type))
101669
101669
  return d.parent.type === f.Loop ? {
101670
101670
  ancestor: d,
101671
101671
  callType: "loop-body"
@@ -101734,7 +101734,7 @@ function Ewt(d) {
101734
101734
  };
101735
101735
  }
101736
101736
  if (u.length === 1) {
101737
- if (Ot.includes(u[0].type))
101737
+ if (gt.includes(u[0].type))
101738
101738
  return u[0].parent.type === f.Loop ? {
101739
101739
  ancestor: u[0],
101740
101740
  callType: "loop-body"
@@ -101759,7 +101759,7 @@ function Ewt(d) {
101759
101759
  for (let o = 1; o < u.length && i; o++) {
101760
101760
  const p = u[o];
101761
101761
  if (!yi.includes(p.type)) {
101762
- i = p, Ot.includes(i.type) ? i.parent.type === f.Loop ? a = "loop-body" : a = "entry" : i.successCalls.includes(d) ? a = "success" : i.errorCalls.includes(d) && (a = "error");
101762
+ i = p, gt.includes(i.type) ? i.parent.type === f.Loop ? a = "loop-body" : a = "entry" : i.successCalls.includes(d) ? a = "success" : i.errorCalls.includes(d) && (a = "error");
101763
101763
  continue;
101764
101764
  }
101765
101765
  if (i === p)
@@ -101815,7 +101815,7 @@ function $gt(d) {
101815
101815
  for (let e = 1; e < a.length && o; e++) {
101816
101816
  const y = a[e];
101817
101817
  if (!yi.includes(y.type)) {
101818
- o = y, Ot.includes(o.type) ? o.parent.type === f.Loop ? p = "loop-body" : p = "entry" : o.successCalls.includes(
101818
+ o = y, gt.includes(o.type) ? o.parent.type === f.Loop ? p = "loop-body" : p = "entry" : o.successCalls.includes(
101819
101819
  u
101820
101820
  ) ? p = "success" : o.errorCalls.includes(
101821
101821
  u
@@ -101985,11 +101985,11 @@ function Pgt(d, u) {
101985
101985
  return !!Ad(d, u).last;
101986
101986
  }
101987
101987
  function Oy(d) {
101988
- if (Ot.includes(d.type))
101988
+ if (gt.includes(d.type))
101989
101989
  return d;
101990
101990
  if ([...yi, f.VariableDeclaration].includes(d.type)) {
101991
101991
  const u = d.parent;
101992
- return Ot.includes(u.type) ? u : null;
101992
+ return gt.includes(u.type) ? u : null;
101993
101993
  }
101994
101994
  return null;
101995
101995
  }
@@ -102251,7 +102251,7 @@ function tw(d) {
102251
102251
  ...si(
102252
102252
  d.errorCalls
102253
102253
  )
102254
- ] : Ot.includes(d.type) ? si(
102254
+ ] : gt.includes(d.type) ? si(
102255
102255
  d.calls
102256
102256
  ) : [];
102257
102257
  }
@@ -102315,7 +102315,7 @@ function bt(d) {
102315
102315
  d.errorCalls
102316
102316
  )
102317
102317
  )
102318
- ]) : Ot.includes(d.type) ? R(
102318
+ ]) : gt.includes(d.type) ? R(
102319
102319
  Bi(
102320
102320
  si(
102321
102321
  d.calls
@@ -102335,7 +102335,7 @@ function jgt(d) {
102335
102335
  d.errorCalls
102336
102336
  )
102337
102337
  )
102338
- ] : Ot.includes(d.type) ? Bi(
102338
+ ] : gt.includes(d.type) ? Bi(
102339
102339
  si(
102340
102340
  d.calls
102341
102341
  )
@@ -103683,7 +103683,7 @@ function DB(d) {
103683
103683
  }
103684
103684
  function y1t(d) {
103685
103685
  if ([
103686
- ...Ot,
103686
+ ...gt,
103687
103687
  f.DefinitionEntity,
103688
103688
  f.InstalledProject,
103689
103689
  f.Project
@@ -103696,7 +103696,7 @@ function y1t(d) {
103696
103696
  }
103697
103697
  function CB(d) {
103698
103698
  return [
103699
- ...Ot,
103699
+ ...gt,
103700
103700
  f.DefinitionEntity,
103701
103701
  f.InstalledProject,
103702
103702
  f.Project
@@ -103805,7 +103805,7 @@ function Hi(d, u, i = null) {
103805
103805
  return Yr(d, u, p);
103806
103806
  if (d.type === f.FunctionDeclaration && (o == null ? void 0 : o.type) === f.Loop)
103807
103807
  return o;
103808
- if (Ot.includes(d.type))
103808
+ if (gt.includes(d.type))
103809
103809
  return d;
103810
103810
  if (d.type === f.Loop)
103811
103811
  return p.id === d.id ? o : d;
@@ -103832,7 +103832,7 @@ function Yr(d, u, i = null) {
103832
103832
  u,
103833
103833
  p
103834
103834
  );
103835
- if (Ot.includes(d.type))
103835
+ if (gt.includes(d.type))
103836
103836
  return d;
103837
103837
  if (hs.includes(d.type))
103838
103838
  return null;
@@ -105391,7 +105391,7 @@ function v$(d, u) {
105391
105391
  };
105392
105392
  }
105393
105393
  var V1t = /* @__PURE__ */ ((d) => (d.PropertyImplements = "property-implements", d.PropertyExtends = "property-extends", d.DataTypeEntity = "data-type-entity", d))(V1t || {});
105394
- const Dt = class Dt extends Or {
105394
+ const Ct = class Ct extends Or {
105395
105395
  constructor(i, a) {
105396
105396
  super(i);
105397
105397
  g(this, "initialData");
@@ -105727,7 +105727,7 @@ ${II}`
105727
105727
  // And adds it to the 'knownVersions' map
105728
105728
  captureVersion() {
105729
105729
  var a;
105730
- const i = ((a = this.knownVersions) == null ? void 0 : a.get(this.version)) || new Dt(this, this.project);
105730
+ const i = ((a = this.knownVersions) == null ? void 0 : a.get(this.version)) || new Ct(this, this.project);
105731
105731
  return i.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, i) : /* @__PURE__ */ new Map([[this.version, i]]), i.defaultValue = this.defaultValue, i.dataType = this.dataType, i.implements = this.implements, i.extends = this.extends, i.parent = this.parent, this;
105732
105732
  }
105733
105733
  // Traverses upstream entities and captures their versions as well
@@ -105794,7 +105794,7 @@ ${II}`
105794
105794
  throw new Error(
105795
105795
  `Version with id '${i}' for entity with id '${this.id}' not found.`
105796
105796
  );
105797
- y = new Dt(
105797
+ y = new Ct(
105798
105798
  E,
105799
105799
  this.project
105800
105800
  );
@@ -106059,31 +106059,31 @@ ${II}`
106059
106059
  return this.name = i.name !== void 0 ? i.name : p.name, this.codeName = i.codeName !== void 0 ? i.codeName : p.codeName, this.description = i.description !== void 0 ? i.description : p.description, this.abstract = i.abstract !== void 0 ? i.abstract : p.abstract, this.private = i.private !== void 0 ? i.private : p.private, this.index = i.index || (i.index !== 0 ? p.index : 0), this.static = i.static !== void 0 ? i.static : p.static, this.hidden = i.hidden !== void 0 ? i.hidden : p.hidden, this.constant = i.constant !== void 0 ? i.constant : p.constant, this.interactive = i.interactive !== void 0 ? i.interactive : p.interactive, this.required = i.required !== void 0 ? i.required : p.required, super.metaSync(i), i.deleted === !0 && !p.deleted ? a == null || a.add(this, F.Removed) : i.deleted === !1 && p.deleted ? a == null || a.add(this, F.Added) : o && (a == null || a.add(this, F.Updated)), a == null || a.attemptAutoclose("meta-sync", this.id), this;
106060
106060
  }
106061
106061
  async APILoad(i = me, ...a) {
106062
- return await Dt.repository.APILoad(this.id, ...a), this;
106062
+ return await Ct.repository.APILoad(this.id, ...a), this;
106063
106063
  }
106064
106064
  async APICreate(i = me, ...a) {
106065
- return await Dt.repository.APICreate(
106065
+ return await Ct.repository.APICreate(
106066
106066
  this.toShallowJSON(),
106067
106067
  ...a
106068
106068
  ), this;
106069
106069
  }
106070
106070
  async APIUpdate(i = me, ...a) {
106071
- return await Dt.repository.APIUpdate(
106071
+ return await Ct.repository.APIUpdate(
106072
106072
  this.toShallowJSON(),
106073
106073
  ...a
106074
106074
  ), this;
106075
106075
  }
106076
106076
  async APIDelete(i = me, ...a) {
106077
- return await Dt.repository.APIDelete(
106077
+ return await Ct.repository.APIDelete(
106078
106078
  this.toShallowJSON(),
106079
106079
  ...a
106080
106080
  ), this;
106081
106081
  }
106082
106082
  async APIClone(i = me, ...a) {
106083
- return await Dt.repository.APIClone(this.id, ...a), this;
106083
+ return await Ct.repository.APIClone(this.id, ...a), this;
106084
106084
  }
106085
106085
  async APILoadVersion(i = me, a, ...o) {
106086
- return await Dt.repository.APILoadVersion(
106086
+ return await Ct.repository.APILoadVersion(
106087
106087
  this.id,
106088
106088
  a,
106089
106089
  ...o
@@ -106452,7 +106452,7 @@ ${II}`
106452
106452
  "implement-self-as-property"
106453
106453
  )
106454
106454
  ), o = null) {
106455
- const p = o || P.UUID.uuid(), e = Dt.new(a);
106455
+ const p = o || P.UUID.uuid(), e = Ct.new(a);
106456
106456
  e.id = p, e.name = this.name, e.description = this.description, e.index = this.index, e.private = this.private, e.required = this.required, e.static = this.static, e.constant = this.constant, e.hidden = this.hidden, e.interactive = this.interactive, e.parent = i.toReference(), e.implements = this.toJSON();
106457
106457
  const y = re(
106458
106458
  e,
@@ -106608,7 +106608,7 @@ ${II}`
106608
106608
  };
106609
106609
  }
106610
106610
  };
106611
- g(Dt, "repository", {
106611
+ g(Ct, "repository", {
106612
106612
  APICreate: async (i, ...a) => i,
106613
106613
  APIUpdate: async (i, ...a) => i,
106614
106614
  APIDelete: async (i, ...a) => i,
@@ -106616,13 +106616,13 @@ g(Dt, "repository", {
106616
106616
  },
106617
106617
  APILoad: async (i, ...a) => null,
106618
106618
  APILoadVersion: async (i, a, ...o) => null
106619
- }), g(Dt, "type", f.Property), g(Dt, "USER_MANAGED_PARENT_TYPES", [
106619
+ }), g(Ct, "type", f.Property), g(Ct, "USER_MANAGED_PARENT_TYPES", [
106620
106620
  f.DefinitionEntity
106621
- ]), g(Dt, "PARENT_TYPES", [
106622
- ...Dt.USER_MANAGED_PARENT_TYPES,
106621
+ ]), g(Ct, "PARENT_TYPES", [
106622
+ ...Ct.USER_MANAGED_PARENT_TYPES,
106623
106623
  f.PrimitiveEntity,
106624
106624
  f.BuiltInBaseEntity
106625
- ]), g(Dt, "MUTABLE_BASE_PROPERTIES", [
106625
+ ]), g(Ct, "MUTABLE_BASE_PROPERTIES", [
106626
106626
  "name",
106627
106627
  "codeName",
106628
106628
  "description",
@@ -106632,40 +106632,40 @@ g(Dt, "repository", {
106632
106632
  "required",
106633
106633
  "constant",
106634
106634
  "interactive"
106635
- ]), g(Dt, "INMUTABLE_BASE_PROPERTIES", [
106635
+ ]), g(Ct, "INMUTABLE_BASE_PROPERTIES", [
106636
106636
  "id",
106637
106637
  "type",
106638
106638
  "version",
106639
106639
  "createdAt",
106640
106640
  "author",
106641
106641
  "previousVersion"
106642
- ]), g(Dt, "BASE_PROPERTIES", [
106643
- ...Dt.MUTABLE_BASE_PROPERTIES,
106644
- ...Dt.INMUTABLE_BASE_PROPERTIES
106642
+ ]), g(Ct, "BASE_PROPERTIES", [
106643
+ ...Ct.MUTABLE_BASE_PROPERTIES,
106644
+ ...Ct.INMUTABLE_BASE_PROPERTIES
106645
106645
  ]), // Includes the base properties and the meta properties
106646
106646
  // Often contains properties related to UX, not necessary for the logic
106647
- g(Dt, "MUTABLE_META_PROPERTIES", [
106648
- ...Dt.MUTABLE_BASE_PROPERTIES,
106647
+ g(Ct, "MUTABLE_META_PROPERTIES", [
106648
+ ...Ct.MUTABLE_BASE_PROPERTIES,
106649
106649
  "index"
106650
- ]), g(Dt, "INMUTABLE_META_PROPERTIES", [
106651
- ...Dt.INMUTABLE_BASE_PROPERTIES
106652
- ]), g(Dt, "META_PROPERTIES", [
106653
- ...Dt.MUTABLE_META_PROPERTIES,
106654
- ...Dt.INMUTABLE_META_PROPERTIES
106650
+ ]), g(Ct, "INMUTABLE_META_PROPERTIES", [
106651
+ ...Ct.INMUTABLE_BASE_PROPERTIES
106652
+ ]), g(Ct, "META_PROPERTIES", [
106653
+ ...Ct.MUTABLE_META_PROPERTIES,
106654
+ ...Ct.INMUTABLE_META_PROPERTIES
106655
106655
  ]), // Properties pointing to nested entities that are declared before the entity itself
106656
- g(Dt, "MUTABLE_UPSTREAM_PROPERTIES", []), g(Dt, "INMUTABLE_UPSTREAM_PROPERTIES", ["parent", "implements", "extends"]), g(Dt, "UPSTREAM_PROPERTIES", [
106657
- ...Dt.MUTABLE_UPSTREAM_PROPERTIES,
106658
- ...Dt.INMUTABLE_UPSTREAM_PROPERTIES
106656
+ g(Ct, "MUTABLE_UPSTREAM_PROPERTIES", []), g(Ct, "INMUTABLE_UPSTREAM_PROPERTIES", ["parent", "implements", "extends"]), g(Ct, "UPSTREAM_PROPERTIES", [
106657
+ ...Ct.MUTABLE_UPSTREAM_PROPERTIES,
106658
+ ...Ct.INMUTABLE_UPSTREAM_PROPERTIES
106659
106659
  ]), // Properties pointing to nested entities that are declared after the entity itself or are direct children
106660
- g(Dt, "MUTABLE_DOWNSTREAM_PROPERTIES", ["dataType"]), g(Dt, "INMUTABLE_DOWNSTREAM_PROPERTIES", []), g(Dt, "DOWNSTREAM_PROPERTIES", [
106661
- ...Dt.MUTABLE_DOWNSTREAM_PROPERTIES,
106662
- ...Dt.INMUTABLE_DOWNSTREAM_PROPERTIES
106663
- ]), g(Dt, "PROPERTIES", [
106664
- ...Dt.META_PROPERTIES,
106665
- ...Dt.UPSTREAM_PROPERTIES,
106666
- ...Dt.DOWNSTREAM_PROPERTIES
106660
+ g(Ct, "MUTABLE_DOWNSTREAM_PROPERTIES", ["dataType"]), g(Ct, "INMUTABLE_DOWNSTREAM_PROPERTIES", []), g(Ct, "DOWNSTREAM_PROPERTIES", [
106661
+ ...Ct.MUTABLE_DOWNSTREAM_PROPERTIES,
106662
+ ...Ct.INMUTABLE_DOWNSTREAM_PROPERTIES
106663
+ ]), g(Ct, "PROPERTIES", [
106664
+ ...Ct.META_PROPERTIES,
106665
+ ...Ct.UPSTREAM_PROPERTIES,
106666
+ ...Ct.DOWNSTREAM_PROPERTIES
106667
106667
  ]);
106668
- let Ea = Dt;
106668
+ let Ea = Ct;
106669
106669
  function UB(d) {
106670
106670
  const u = d.implements.flatMap(
106671
106671
  (y) => L1t(d, y)
@@ -113542,7 +113542,7 @@ export {
113542
113542
  _Rt as ENTITY_WITH_USER_MANAGED_SINGLE_IMPLEMENTS_TYPES,
113543
113543
  E$ as ENTITY_WITH_VALUE_TYPES,
113544
113544
  xm as ENTRY_POINT_ENTITIES_EXPLANATION,
113545
- Ot as ENTRY_POINT_TYPES,
113545
+ gt as ENTRY_POINT_TYPES,
113546
113546
  wT as ERROR_PROPERTY_HEIGHT,
113547
113547
  Ld as EVENT_TYPES,
113548
113548
  A$ as EXECUTABLE_TYPES,
@@ -386,7 +386,7 @@ The only use for declaring global callable entities is for a 'variable-declarati
386
386
  Or for a logic that the user is going to manually test themselves by clicking on the user-interface.`,entity:d}));else{const i=qp(d);if(!i.reachable){let a=`This '${d.type}' entity "${W(d,d.project)}" with id "${d.id}" is not reachable from the project's closest entry point '${i.entryPoint.type}' "${W(i.entryPoint,d.project)}".`;a+=`
387
387
  This is because there are termination statements in the call chain before reaching this '${d.type}'.
388
388
  If a caller entity calls a termination statement, it will always prevent all other calls from executing.`;let o=`
389
- This '${d.type}' is blocked `;i.blocks.forEach((p,e)=>{const y=p.blockedByCaller,v=p.blockedByCalling;e===0?o+="by ":e===i.blocks.length-1&&(o+="and by "),o+=`its ancestor "${W(y,d.project)}" with id "${y.id}" that calls a '${v.type}' entity with id "${v.id}"`,e<i.blocks.length-1?o+=", ":o+="."}),u.push(new ar({id:`${d.id}--${ee.UnreachableEntity}`,code:ee.UnreachableEntity,severity:q.Warning,message:`${a}${o}`,entity:d}))}}return vr(d.errors,u)}function po(d){const u=[],i=d.project.requestActiveDynamicValue(d);if((i==null?void 0:i.type)===Ae.Missing){const a=lt({id:`${d.id}--${Q.MissingRequiredValue}`,message:`The '${d.type}' entity "${W(d,d.project)}" with id "${d.id}" is missing its required value before it can be executed or published.`,severity:q.Error,code:Q.MissingRequiredValue,entity:d});u.push(a.error)}return u}function ZA(d){const u=[];if(!d.internalCalls.length)return u;const i=d.internalCalls.some(a=>a.calledBy.length||a.successCalls.length||a.errorCalls.length||a.getUsedInputs().length||a.getUsedOutputs().length);if(d.readsValue&&i){const a=lt({id:`${d.id}--${Q.VariableReadsValueAndInternalCall}`,message:`Variable "${W(d,d.project)}" with id "${d.id}" reads a value. A variable with internal calls can't read a value.`,severity:q.Error,code:Q.VariableReadsValueAndInternalCall,entity:d});u.push(a.error)}if(d.writesValues.length&&i){const a=lt({id:`${d.id}--${Q.VariableWritesValuesAndInternalCall}`,message:`Variable "${W(d,d.project)}" with id "${d.id}" writes values. A variable with internal calls can't write a value.`,severity:q.Error,code:Q.VariableWritesValuesAndInternalCall,entity:d});u.push(a.error)}if(d.getUsedInputs().length&&i){const a=lt({id:`${d.id}--${Q.VariableHasInputsAndInternalCall}`,message:`Variable "${W(d,d.project)}" with id "${d.id}" has inputs. A variable with internal calls can't have inputs.`,severity:q.Error,code:Q.VariableHasInputsAndInternalCall,entity:d});u.push(a.error)}if(d.getUsedOutputs().length&&i){const a=lt({id:`${d.id}--${Q.VariableHasOutputsAndInternalCall}`,message:`Variable "${W(d,d.project)}" with id "${d.id}" has outputs. A variable with internal calls can't have outputs.`,severity:q.Error,code:Q.VariableHasOutputsAndInternalCall,entity:d});u.push(a.error)}if(d.calledBy.length&&i){const a=lt({id:`${d.id}--${Q.VariableIsCalledAndHasInternalCall}`,message:`Variable "${W(d,d.project)}" with id "${d.id}" is called by other entities. A variable with internal calls can't be called by other entities.`,severity:q.Error,code:Q.VariableIsCalledAndHasInternalCall,entity:d});u.push(a.error)}if([...d.successCalls,...d.errorCalls].length&&i){const a=lt({id:`${d.id}--${Q.VariableCallsOthersAndHasInternalCall}`,message:`Variable "${W(d,d.project)}" with id "${d.id}" calls other entities. A variable with internal calls can't call other entities.`,severity:q.Error,code:Q.VariableCallsOthersAndHasInternalCall,entity:d});u.push(a.error)}return u}function HTe(d){const u=d.variableDeclarations,i=d.events.flatMap(e=>[e,...bt(e)]),a=d.functions.flatMap(e=>d.instancesList.find(y=>y.type===f.FunctionCall&&y.declaration.id===e.id)?[e,...bt(e)]:[]),o=d.entities.flatMap(e=>[e,...d.entities.reduce((y,v)=>[...y,...v.methods.flatMap(E=>[E,...bt(E)])],[])]);return xT([...u,...i,...a,...o].flatMap(e=>e.getErrors()))}function HA(d){var a;const u=[];if(!((a=d.implements)!=null&&a.outputs.length))return u;if(bt(d).filter(o=>o.type!==f.ReturnStatement&&o.parent===d).length){const o=lt({id:`${d.id}--${Q.LackingReturnStatementOnSomeBranches}`,message:`The '${d.type}' entity "${W(d,d.project)}" with id "${d.id}" is missing the required return statement by its implementation on some branches.`,severity:q.Error,code:Q.LackingReturnStatementOnSomeBranches,entity:d});u.push(o.error)}return u}function Ca(d){var i;const u=[];if(li.includes(d.type)||d.type===f.ReturnStatement||Dt.includes(d.type)||!Dt.includes(d.parent.type)&&!((i=d.parent.implements)!=null&&i.outputs.length)||yt.includes(d.type)&&d.internalCalls.some(a=>!!a.calledBy.length))return u;if(!d.calledBySuccess.length&&!d.calledByError.length){const a=lt({id:`${d.id}--${Q.LastCalledEntityMustBeReturnEntity}`,message:`The '${d.type}' entity "${W(d,d.project)}" with id "${d.id}" cannot be the last entity of the branch. A return statement must be the last entity on all branches of its parent entry-point.`,severity:q.Error,code:Q.LastCalledEntityMustBeReturnEntity,entity:d});u.push(a.error)}return u}function y5(d){var a;d.inputs.forEach(o=>o.validate()),d.outputs.forEach(o=>o.validate()),(a=d.error)==null||a.validate();const i=[...Oa(d),...Ca(d)];return vr(d.errors,i)}const WTe=Object.freeze(Object.defineProperty({__proto__:null,validate:y5},Symbol.toStringTag,{value:"Module"}));var m5=(d=>(d.Parent="parent",d.Declaration="declaration",d))(m5||{});const Qt=class Qt extends Cr{constructor(i,a){super(i);g(this,"initialData");g(this,"id");g(this,"x");g(this,"y");g(this,"type",f.FunctionCall);g(this,"successCalls",[]);g(this,"errorCalls",[]);g(this,"process",null);g(this,"declaration");g(this,"inputs",[]);g(this,"outputs",[]);g(this,"calledBySuccess",[]);g(this,"calledByError",[]);g(this,"calledByEntry",[]);g(this,"error",null);g(this,"parent");g(this,"errors",[]);g(this,"project");g(this,"detachedDependents",{});g(this,"knownVersions",null);g(this,"activeVersion",!1);g(this,"initialized",!1);g(this,"startedInitialization",!1);this.initialData=i,this.project=a,this.id=i.id,this.x=i.x,this.y=i.y}static new(i=null){return{id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:(i==null?void 0:i.author)||N.sessionAuthor,previousVersion:null,deleted:!1,type:f.FunctionCall,declaration:null,inputs:[],outputs:[],process:null,error:null,parent:null,calledByEntry:[],calledBySuccess:[],calledByError:[],errorCalls:[],successCalls:[],x:0,y:0}}static fromGenerationTarget(i,a){let o=a;if(i.parent){const $=H(i.parent);o=a.get($)}const p=H(i.declaration),e=a.get(p),y=i.calledByEntry.map($=>{const V=H($);return a.get(V)}),v=i.calledBySuccess.map($=>{const V=H($);return a.get(V)}),E=i.calledByError.map($=>{const V=H($);return a.get(V)}),b={id:i.id,version:N.UUID.uuid(),createdAt:L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.FunctionCall,declaration:e.toReference(),calledByEntry:y,calledBySuccess:v,calledByError:E,errorCalls:[],successCalls:[],inputs:[],outputs:[],process:null,error:null,x:0,y:0,parent:o},A=ie(b,a);return A.setParent(o,null),A}static validateGenerationTarget(i,a){let o=JSON.parse(JSON.stringify(i));const p=[],e=ri(o,{parent:{list:!1,types:[...Nr,f.Project],optional:!0}},a);o=e.modifiedData,p.push(...e.errors,...Vr(o));const y=H(o.declaration);if(y){const v=p5(y,a);p.push(...v)}else{const v=a.functions.length?`
389
+ This '${d.type}' is blocked `;i.blocks.forEach((p,e)=>{const y=p.blockedByCaller,v=p.blockedByCalling;e===0?o+="by ":e===i.blocks.length-1&&(o+="and by "),o+=`its ancestor "${W(y,d.project)}" with id "${y.id}" that calls a '${v.type}' entity with id "${v.id}"`,e<i.blocks.length-1?o+=", ":o+="."}),u.push(new ar({id:`${d.id}--${ee.UnreachableEntity}`,code:ee.UnreachableEntity,severity:q.Warning,message:`${a}${o}`,entity:d}))}}return vr(d.errors,u)}function po(d){const u=[],i=d.project.requestActiveDynamicValue(d);if((i==null?void 0:i.type)===Ae.Missing){const a=lt({id:`${d.id}--${Q.MissingRequiredValue}`,message:`The '${d.type}' entity "${W(d,d.project)}" with id "${d.id}" is missing its required value before it can be executed or published.`,severity:q.Error,code:Q.MissingRequiredValue,entity:d});u.push(a.error)}return u}function ZA(d){const u=[];if(!d.internalCalls.length)return u;const i=d.internalCalls.some(a=>a.calledBy.length||a.successCalls.length||a.errorCalls.length||a.getUsedInputs().length||a.getUsedOutputs().length);if(d.readsValue&&i){const a=lt({id:`${d.id}--${Q.VariableReadsValueAndInternalCall}`,message:`Variable "${W(d,d.project)}" with id "${d.id}" reads a value. A variable with internal calls can't read a value.`,severity:q.Error,code:Q.VariableReadsValueAndInternalCall,entity:d});u.push(a.error)}if(d.writesValues.length&&i){const a=lt({id:`${d.id}--${Q.VariableWritesValuesAndInternalCall}`,message:`Variable "${W(d,d.project)}" with id "${d.id}" writes values. A variable with internal calls can't write a value.`,severity:q.Error,code:Q.VariableWritesValuesAndInternalCall,entity:d});u.push(a.error)}if(d.getUsedInputs().length&&i){const a=lt({id:`${d.id}--${Q.VariableHasInputsAndInternalCall}`,message:`Variable "${W(d,d.project)}" with id "${d.id}" has inputs. A variable with internal calls can't have inputs.`,severity:q.Error,code:Q.VariableHasInputsAndInternalCall,entity:d});u.push(a.error)}if(d.getUsedOutputs().length&&i){const a=lt({id:`${d.id}--${Q.VariableHasOutputsAndInternalCall}`,message:`Variable "${W(d,d.project)}" with id "${d.id}" has outputs. A variable with internal calls can't have outputs.`,severity:q.Error,code:Q.VariableHasOutputsAndInternalCall,entity:d});u.push(a.error)}if(d.calledBy.length&&i){const a=lt({id:`${d.id}--${Q.VariableIsCalledAndHasInternalCall}`,message:`Variable "${W(d,d.project)}" with id "${d.id}" is called by other entities. A variable with internal calls can't be called by other entities.`,severity:q.Error,code:Q.VariableIsCalledAndHasInternalCall,entity:d});u.push(a.error)}if([...d.successCalls,...d.errorCalls].length&&i){const a=lt({id:`${d.id}--${Q.VariableCallsOthersAndHasInternalCall}`,message:`Variable "${W(d,d.project)}" with id "${d.id}" calls other entities. A variable with internal calls can't call other entities.`,severity:q.Error,code:Q.VariableCallsOthersAndHasInternalCall,entity:d});u.push(a.error)}return u}function HTe(d){const u=d.variableDeclarations,i=d.events.flatMap(e=>[e,...bt(e)]),a=d.functions.flatMap(e=>d.instancesList.find(y=>y.type===f.FunctionCall&&y.declaration.id===e.id)?[e,...bt(e)]:[]),o=d.entities.flatMap(e=>[e,...d.entities.reduce((y,v)=>[...y,...v.methods.flatMap(E=>[E,...bt(E)])],[])]);return xT([...u,...i,...a,...o].flatMap(e=>e.getErrors()))}function HA(d){var a;const u=[];if(!((a=d.implements)!=null&&a.outputs.length))return u;if(bt(d).filter(o=>o.type!==f.ReturnStatement&&o.parent===d).length){const o=lt({id:`${d.id}--${Q.LackingReturnStatementOnSomeBranches}`,message:`The '${d.type}' entity "${W(d,d.project)}" with id "${d.id}" is missing the required return statement by its implementation on some branches.`,severity:q.Error,code:Q.LackingReturnStatementOnSomeBranches,entity:d});u.push(o.error)}return u}function Ca(d){var i,a;const u=[];if(li.includes(d.type)||d.type===f.ReturnStatement||Dt.includes(d.type)||d.type!==f.InternalCall&&!Dt.includes(d.parent.type)&&!((i=d.parent.implements)!=null&&i.outputs.length)||d.type===f.InternalCall&&!Dt.includes(d.parent.parent.type)&&!((a=d.parent.parent.implements)!=null&&a.outputs.length)||yt.includes(d.type)&&d.internalCalls.some(o=>!!o.calledBy.length))return u;if(!d.calledBySuccess.length&&!d.calledByError.length){const o=lt({id:`${d.id}--${Q.LastCalledEntityMustBeReturnEntity}`,message:`The '${d.type}' entity "${W(d,d.project)}" with id "${d.id}" cannot be the last entity of the branch. A return statement must be the last entity on all branches of its parent entry-point.`,severity:q.Error,code:Q.LastCalledEntityMustBeReturnEntity,entity:d});u.push(o.error)}return u}function y5(d){var a;d.inputs.forEach(o=>o.validate()),d.outputs.forEach(o=>o.validate()),(a=d.error)==null||a.validate();const i=[...Oa(d),...Ca(d)];return vr(d.errors,i)}const WTe=Object.freeze(Object.defineProperty({__proto__:null,validate:y5},Symbol.toStringTag,{value:"Module"}));var m5=(d=>(d.Parent="parent",d.Declaration="declaration",d))(m5||{});const Qt=class Qt extends Cr{constructor(i,a){super(i);g(this,"initialData");g(this,"id");g(this,"x");g(this,"y");g(this,"type",f.FunctionCall);g(this,"successCalls",[]);g(this,"errorCalls",[]);g(this,"process",null);g(this,"declaration");g(this,"inputs",[]);g(this,"outputs",[]);g(this,"calledBySuccess",[]);g(this,"calledByError",[]);g(this,"calledByEntry",[]);g(this,"error",null);g(this,"parent");g(this,"errors",[]);g(this,"project");g(this,"detachedDependents",{});g(this,"knownVersions",null);g(this,"activeVersion",!1);g(this,"initialized",!1);g(this,"startedInitialization",!1);this.initialData=i,this.project=a,this.id=i.id,this.x=i.x,this.y=i.y}static new(i=null){return{id:N.UUID.uuid(),version:N.UUID.uuid(),createdAt:(i==null?void 0:i.timestamp)||L().toISOString(),author:(i==null?void 0:i.author)||N.sessionAuthor,previousVersion:null,deleted:!1,type:f.FunctionCall,declaration:null,inputs:[],outputs:[],process:null,error:null,parent:null,calledByEntry:[],calledBySuccess:[],calledByError:[],errorCalls:[],successCalls:[],x:0,y:0}}static fromGenerationTarget(i,a){let o=a;if(i.parent){const $=H(i.parent);o=a.get($)}const p=H(i.declaration),e=a.get(p),y=i.calledByEntry.map($=>{const V=H($);return a.get(V)}),v=i.calledBySuccess.map($=>{const V=H($);return a.get(V)}),E=i.calledByError.map($=>{const V=H($);return a.get(V)}),b={id:i.id,version:N.UUID.uuid(),createdAt:L().toISOString(),author:N.sessionAuthor,previousVersion:null,deleted:!1,type:f.FunctionCall,declaration:e.toReference(),calledByEntry:y,calledBySuccess:v,calledByError:E,errorCalls:[],successCalls:[],inputs:[],outputs:[],process:null,error:null,x:0,y:0,parent:o},A=ie(b,a);return A.setParent(o,null),A}static validateGenerationTarget(i,a){let o=JSON.parse(JSON.stringify(i));const p=[],e=ri(o,{parent:{list:!1,types:[...Nr,f.Project],optional:!0}},a);o=e.modifiedData,p.push(...e.errors,...Vr(o));const y=H(o.declaration);if(y){const v=p5(y,a);p.push(...v)}else{const v=a.functions.length?`
390
390
  All global 'function-declaration' entity ids are:
391
391
  - ${a.functions.map(E=>`${E.id} (${W(E,a)})`).join(`
392
392
  - `)}.`:`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elyx-code/project-logic-tree",
3
- "version": "0.0.6439",
3
+ "version": "0.0.6440",
4
4
  "author": "Sergio Herrero",
5
5
  "license": "UNLICENSED",
6
6
  "description": "An installable module which contains the type definitions and ephemeral state management for a projects' logic tree data structure",