@elyx-code/project-logic-tree 0.0.6584 → 0.0.6585
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 +127 -139
- package/dist/index.umd.cjs +29 -29
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -110,7 +110,7 @@ const Yu = [p.GlobalEvent], cV = [
|
|
|
110
110
|
], ir = [
|
|
111
111
|
...qt,
|
|
112
112
|
p.Loop
|
|
113
|
-
],
|
|
113
|
+
], Mt = [
|
|
114
114
|
p.ReturnStatement,
|
|
115
115
|
p.BreakStatement,
|
|
116
116
|
p.ContinueStatement
|
|
@@ -59761,7 +59761,7 @@ _(Yt, "MUTABLE_DOWNSTREAM_PROPERTIES", ["inputs", "outputs"]), _(Yt, "INMUTABLE_
|
|
|
59761
59761
|
...Yt.UPSTREAM_PROPERTIES,
|
|
59762
59762
|
...Yt.DOWNSTREAM_PROPERTIES
|
|
59763
59763
|
]);
|
|
59764
|
-
let
|
|
59764
|
+
let Bt = Yt;
|
|
59765
59765
|
var fgt = /* @__PURE__ */ ((d) => (d.Parent = "loop-parent-field", d.LoopDataTypeEntity = "loop-data-type-entity-field", d.LoopDataType = "loop-data-type-field", d.LoopBodyDataTypeEntity = "loop-body-data-type-entity-field", d.LoopBodyDataType = "loop-body-data-type-field", d))(fgt || {});
|
|
59766
59766
|
const Ot = class Ot extends ar {
|
|
59767
59767
|
constructor(i, a) {
|
|
@@ -63273,7 +63273,7 @@ _(Ot, "repository", {
|
|
|
63273
63273
|
...ir,
|
|
63274
63274
|
p.Project
|
|
63275
63275
|
]), _(Ot, "PARENT_TYPES", [
|
|
63276
|
-
...
|
|
63276
|
+
...Bt.USER_MANAGED_PARENT_TYPES
|
|
63277
63277
|
]), _(Ot, "CURRENT_ITERATION_NUMBER_ARG_NAME", "Current iteration number"), _(Ot, "CURRENT_VALUE_ARG_NAME", "Current value"), _(Ot, "MUTABLE_BASE_PROPERTIES", ["catchesError"]), _(Ot, "INMUTABLE_BASE_PROPERTIES", [
|
|
63278
63278
|
"id",
|
|
63279
63279
|
"type",
|
|
@@ -65306,7 +65306,7 @@ function Ea(d, u, i = /* @__PURE__ */ new Set()) {
|
|
|
65306
65306
|
(e) => Ea(e, u, i)
|
|
65307
65307
|
)
|
|
65308
65308
|
]);
|
|
65309
|
-
if (
|
|
65309
|
+
if (Mt.includes(d.parent.type)) {
|
|
65310
65310
|
const e = [
|
|
65311
65311
|
d,
|
|
65312
65312
|
...d.getCounterparts()
|
|
@@ -73028,7 +73028,7 @@ class Ko extends Fu {
|
|
|
73028
73028
|
a.type
|
|
73029
73029
|
) ? l.push(
|
|
73030
73030
|
...a.inputs
|
|
73031
|
-
) :
|
|
73031
|
+
) : Mt.includes(a.type) && l.push(
|
|
73032
73032
|
...a.outputs
|
|
73033
73033
|
), l.map(
|
|
73034
73034
|
(e) => {
|
|
@@ -73470,7 +73470,7 @@ class Ko extends Fu {
|
|
|
73470
73470
|
e
|
|
73471
73471
|
), (q.results || []).forEach((ae) => {
|
|
73472
73472
|
var oe, ve, Re, $e;
|
|
73473
|
-
if (ae.valueOwner.type !== p.InputMap ||
|
|
73473
|
+
if (ae.valueOwner.type !== p.InputMap || Mt.includes(ae.valueOwner.parent.type))
|
|
73474
73474
|
return;
|
|
73475
73475
|
const fe = i.body.inputs.find(
|
|
73476
73476
|
(Ee) => Y(Ee, l) === Y(ae.valueOwner, l)
|
|
@@ -73547,7 +73547,7 @@ class Ko extends Fu {
|
|
|
73547
73547
|
e
|
|
73548
73548
|
), (q.results || []).forEach((pe) => {
|
|
73549
73549
|
var Q, oe, ve;
|
|
73550
|
-
if (pe.valueOwner.type !== p.InputMap ||
|
|
73550
|
+
if (pe.valueOwner.type !== p.InputMap || Mt.includes(pe.valueOwner.parent.type))
|
|
73551
73551
|
return;
|
|
73552
73552
|
const ae = i.body.inputs.find(
|
|
73553
73553
|
(Re) => Y(Re, l) === Y(pe.valueOwner, l)
|
|
@@ -73669,7 +73669,7 @@ class Ko extends Fu {
|
|
|
73669
73669
|
e
|
|
73670
73670
|
), (q.results || []).forEach((Q) => {
|
|
73671
73671
|
var $e, Ee, we;
|
|
73672
|
-
if (Q.valueOwner.type !== p.InputMap ||
|
|
73672
|
+
if (Q.valueOwner.type !== p.InputMap || Mt.includes(Q.valueOwner.parent.type))
|
|
73673
73673
|
return;
|
|
73674
73674
|
const oe = i.body.inputs.find(
|
|
73675
73675
|
(Ue) => Y(Ue, l) === Y(Q.valueOwner, l)
|
|
@@ -73791,7 +73791,7 @@ class Ko extends Fu {
|
|
|
73791
73791
|
e
|
|
73792
73792
|
), (q.results || []).forEach((Q) => {
|
|
73793
73793
|
var $e, Ee, we;
|
|
73794
|
-
if (Q.valueOwner.type !== p.InputMap ||
|
|
73794
|
+
if (Q.valueOwner.type !== p.InputMap || Mt.includes(Q.valueOwner.parent.type))
|
|
73795
73795
|
return;
|
|
73796
73796
|
const oe = i.body.inputs.find(
|
|
73797
73797
|
(Ue) => Y(Ue, l) === Y(Q.valueOwner, l)
|
|
@@ -73913,7 +73913,7 @@ class Ko extends Fu {
|
|
|
73913
73913
|
e
|
|
73914
73914
|
), (q.results || []).forEach((Q) => {
|
|
73915
73915
|
var $e, Ee, we;
|
|
73916
|
-
if (Q.valueOwner.type !== p.InputMap ||
|
|
73916
|
+
if (Q.valueOwner.type !== p.InputMap || Mt.includes(Q.valueOwner.parent.type))
|
|
73917
73917
|
return;
|
|
73918
73918
|
const oe = i.body.inputs.find(
|
|
73919
73919
|
(Ue) => Y(Ue, l) === Y(Q.valueOwner, l)
|
|
@@ -74035,7 +74035,7 @@ class Ko extends Fu {
|
|
|
74035
74035
|
e
|
|
74036
74036
|
), (q.results || []).forEach((Q) => {
|
|
74037
74037
|
var $e, Ee, we;
|
|
74038
|
-
if (Q.valueOwner.type !== p.InputMap ||
|
|
74038
|
+
if (Q.valueOwner.type !== p.InputMap || Mt.includes(Q.valueOwner.parent.type))
|
|
74039
74039
|
return;
|
|
74040
74040
|
const oe = i.body.inputs.find(
|
|
74041
74041
|
(Ue) => Y(Ue, l) === Y(Q.valueOwner, l)
|
|
@@ -74373,7 +74373,7 @@ class Ko extends Fu {
|
|
|
74373
74373
|
e.forEach((T) => {
|
|
74374
74374
|
this.addEntity(T);
|
|
74375
74375
|
}), e.reduce(
|
|
74376
|
-
(T, A) =>
|
|
74376
|
+
(T, A) => Mt.includes(A.type) ? [...T, ...A.outputs] : Ei.includes(A.type) && A.type !== p.Condition ? [
|
|
74377
74377
|
...T,
|
|
74378
74378
|
...A.outputs,
|
|
74379
74379
|
...A.inputs
|
|
@@ -109733,7 +109733,7 @@ const ti = class ti extends ar {
|
|
|
109733
109733
|
{
|
|
109734
109734
|
parent: {
|
|
109735
109735
|
list: !1,
|
|
109736
|
-
types: [...Ei, ...
|
|
109736
|
+
types: [...Ei, ...Mt]
|
|
109737
109737
|
}
|
|
109738
109738
|
},
|
|
109739
109739
|
a
|
|
@@ -110249,7 +110249,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
110249
110249
|
throw console.log("this.initialData", this.initialData), new Error(
|
|
110250
110250
|
`Entity of type '${this.type}' with id '${this.id}' does not have a 'parent' set. This is required.`
|
|
110251
110251
|
);
|
|
110252
|
-
const v = (
|
|
110252
|
+
const v = (Mt.includes(this.parent.type) ? this.parent.outputs : this.parent.inputs).filter((A) => !A.deleted && A.id !== this.id);
|
|
110253
110253
|
return v.length && (y > v.length + 1 ? y = v.length : y < 0 && (y = 0)), v.find(
|
|
110254
110254
|
(A) => (A.index || 0) === y && !A.deleted
|
|
110255
110255
|
) && v.filter((A) => (A.index || 0) >= y && !A.deleted).forEach((A) => {
|
|
@@ -110285,7 +110285,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
110285
110285
|
)) {
|
|
110286
110286
|
var y;
|
|
110287
110287
|
const a = [this], l = [], c = [], e = [];
|
|
110288
|
-
return
|
|
110288
|
+
return Mt.includes(this.parent.type) ? this.parentRelationType === Ll.Error ? this.parent.setThrows(this, i) : this.parent.addOutput(this, i) : this.parent.addInput(
|
|
110289
110289
|
this,
|
|
110290
110290
|
i
|
|
110291
110291
|
), e.push(this.parent), (y = this.readsValue) == null || y.addValueReader(this, i), this.readsValue && a.push(this.readsValue), this.subscribe(), this.subscribeToDependencies(), i == null || i.attemptAutoclose("add-self-to-project", this.id), {
|
|
@@ -110490,7 +110490,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
110490
110490
|
self: this
|
|
110491
110491
|
};
|
|
110492
110492
|
const a = [], l = [], c = [], e = [];
|
|
110493
|
-
return
|
|
110493
|
+
return Mt.includes((y = this.parent) == null ? void 0 : y.type) ? (this.parent.removeOutput(
|
|
110494
110494
|
this,
|
|
110495
110495
|
i
|
|
110496
110496
|
), e.push(this.parent)) : (this.parent.removeInput(
|
|
@@ -110969,7 +110969,7 @@ _(ti, "repository", {
|
|
|
110969
110969
|
APILoadVersion: async (i, a, ...l) => null
|
|
110970
110970
|
}), _(ti, "type", p.InputMap), _(ti, "USER_MANAGED_PARENT_TYPES", [
|
|
110971
110971
|
...Ei,
|
|
110972
|
-
...
|
|
110972
|
+
...Mt
|
|
110973
110973
|
]), _(ti, "PARENT_TYPES", [
|
|
110974
110974
|
...ti.USER_MANAGED_PARENT_TYPES
|
|
110975
110975
|
]), _(ti, "MUTABLE_BASE_PROPERTIES", ["name", "codeName", "description"]), _(ti, "INMUTABLE_BASE_PROPERTIES", [
|
|
@@ -119603,7 +119603,7 @@ If you are trying to create a new entity, please use a different id, for example
|
|
|
119603
119603
|
};
|
|
119604
119604
|
}
|
|
119605
119605
|
case p.ActionDescriptor: {
|
|
119606
|
-
const y =
|
|
119606
|
+
const y = Bt.validateGenerationTarget(
|
|
119607
119607
|
l,
|
|
119608
119608
|
u
|
|
119609
119609
|
);
|
|
@@ -120347,7 +120347,7 @@ We have moved the reference to 'calledByEntry' for you.`
|
|
|
120347
120347
|
), i.calledByEntry.push(u.id), i.calledBySuccess = i.calledBySuccess.filter(
|
|
120348
120348
|
(l) => l !== u.id
|
|
120349
120349
|
);
|
|
120350
|
-
else if (
|
|
120350
|
+
else if (Mt.includes(u.type)) {
|
|
120351
120351
|
const l = u.calledBy || [], c = l.length ? `
|
|
120352
120352
|
|
|
120353
120353
|
This ${u.type} is called by ${yt(
|
|
@@ -120365,7 +120365,7 @@ This ${u.type} is called by ${yt(
|
|
|
120365
120365
|
message: `Entity of type "${d.type}" with id "${d.id}", has a reference to a '${u.type}' entity at 'calledBySuccess' with id "${u.id}".
|
|
120366
120366
|
${u.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
|
|
120367
120367
|
Termination entities are ${yt(
|
|
120368
|
-
|
|
120368
|
+
Mt,
|
|
120369
120369
|
", ",
|
|
120370
120370
|
" and "
|
|
120371
120371
|
)}.${c}`
|
|
@@ -120412,7 +120412,7 @@ Entry-point entities can only be referenced as 'calledByEntry'.
|
|
|
120412
120412
|
${Av}`
|
|
120413
120413
|
})
|
|
120414
120414
|
);
|
|
120415
|
-
else if (
|
|
120415
|
+
else if (Mt.includes(u.type)) {
|
|
120416
120416
|
const a = u.calledBy || [], l = a.length ? `
|
|
120417
120417
|
|
|
120418
120418
|
This ${u.type} is called by ${yt(
|
|
@@ -120430,7 +120430,7 @@ This ${u.type} is called by ${yt(
|
|
|
120430
120430
|
message: `Entity of type "${d.type}" with id "${d.id}", has a reference to a '${u.type}' entity at 'calledByError' with id "${u.id}".
|
|
120431
120431
|
${u.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
|
|
120432
120432
|
Termination entities are ${yt(
|
|
120433
|
-
|
|
120433
|
+
Mt,
|
|
120434
120434
|
", ",
|
|
120435
120435
|
" and "
|
|
120436
120436
|
)}.${l}`
|
|
@@ -120466,7 +120466,7 @@ ${ld}`
|
|
|
120466
120466
|
}
|
|
120467
120467
|
function $xt(d, u) {
|
|
120468
120468
|
const i = [];
|
|
120469
|
-
if (
|
|
120469
|
+
if (Mt.includes(u.type)) {
|
|
120470
120470
|
const a = u.calledBy || [], l = a.length ? `
|
|
120471
120471
|
|
|
120472
120472
|
This ${u.type} is called by ${yt(
|
|
@@ -120484,7 +120484,7 @@ This ${u.type} is called by ${yt(
|
|
|
120484
120484
|
message: `Entity of type "${d.type}" with id "${d.id}", has a reference to a '${u.type}' entity at 'calledByEntry' with id "${u.id}".
|
|
120485
120485
|
${u.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
|
|
120486
120486
|
Termination entities are ${yt(
|
|
120487
|
-
|
|
120487
|
+
Mt,
|
|
120488
120488
|
", ",
|
|
120489
120489
|
" and "
|
|
120490
120490
|
)}.${l}`
|
|
@@ -120644,10 +120644,10 @@ function Pxt(d, u) {
|
|
|
120644
120644
|
e,
|
|
120645
120645
|
g,
|
|
120646
120646
|
u
|
|
120647
|
-
) ? (
|
|
120647
|
+
) ? (Mt.includes(a.type) && ((a.calledBySuccess || []).find(
|
|
120648
120648
|
(L) => L === E.id
|
|
120649
120649
|
) ? (E.successCalls || []).find(
|
|
120650
|
-
(K) =>
|
|
120650
|
+
(K) => Mt.includes(K.type)
|
|
120651
120651
|
) && i.push(
|
|
120652
120652
|
new de({
|
|
120653
120653
|
id: `${a.id}--${E.id}--${le.UnreachableEntity}`,
|
|
@@ -120659,7 +120659,7 @@ The new termination statement is redundant because both entities would be called
|
|
|
120659
120659
|
) : (a.calledByError || []).find(
|
|
120660
120660
|
(L) => L === E.id
|
|
120661
120661
|
) ? (E.errorCalls || []).find(
|
|
120662
|
-
(K) =>
|
|
120662
|
+
(K) => Mt.includes(K.type)
|
|
120663
120663
|
) && i.push(
|
|
120664
120664
|
new de({
|
|
120665
120665
|
id: `${a.id}--${E.id}--${le.UnreachableEntity}`,
|
|
@@ -120671,7 +120671,7 @@ The new termination statement is redundant because both entities would be called
|
|
|
120671
120671
|
) : (a.calledByEntry || []).find(
|
|
120672
120672
|
(L) => L === E.id
|
|
120673
120673
|
) && (E.calls || []).find(
|
|
120674
|
-
(K) =>
|
|
120674
|
+
(K) => Mt.includes(K.type)
|
|
120675
120675
|
) && i.push(
|
|
120676
120676
|
new de({
|
|
120677
120677
|
id: `${a.id}--${E.id}--${le.UnreachableEntity}`,
|
|
@@ -120703,10 +120703,10 @@ The new termination statement is redundant because both entities would be called
|
|
|
120703
120703
|
g,
|
|
120704
120704
|
u
|
|
120705
120705
|
);
|
|
120706
|
-
V ? (
|
|
120706
|
+
V ? (Mt.includes(a.type) && ((a.calledBySuccess || []).find(
|
|
120707
120707
|
(L) => L === E.id
|
|
120708
120708
|
) ? (E.successCalls || []).find(
|
|
120709
|
-
(K) =>
|
|
120709
|
+
(K) => Mt.includes(K.type)
|
|
120710
120710
|
) && i.push(
|
|
120711
120711
|
new de({
|
|
120712
120712
|
id: `${a.id}--${E.id}--${le.UnreachableEntity}`,
|
|
@@ -120718,7 +120718,7 @@ The new termination statement is redundant because both entities would be called
|
|
|
120718
120718
|
) : (a.calledByError || []).find(
|
|
120719
120719
|
(L) => L === E.id
|
|
120720
120720
|
) ? (E.errorCalls || []).find(
|
|
120721
|
-
(K) =>
|
|
120721
|
+
(K) => Mt.includes(K.type)
|
|
120722
120722
|
) && i.push(
|
|
120723
120723
|
new de({
|
|
120724
120724
|
id: `${a.id}--${E.id}--${le.UnreachableEntity}`,
|
|
@@ -120730,7 +120730,7 @@ The new termination statement is redundant because both entities would be called
|
|
|
120730
120730
|
) : (a.calledByEntry || []).find(
|
|
120731
120731
|
(L) => L === E.id
|
|
120732
120732
|
) && (E.calls || []).find(
|
|
120733
|
-
(K) =>
|
|
120733
|
+
(K) => Mt.includes(K.type)
|
|
120734
120734
|
) && i.push(
|
|
120735
120735
|
new de({
|
|
120736
120736
|
id: `${a.id}--${E.id}--${le.UnreachableEntity}`,
|
|
@@ -120778,13 +120778,13 @@ To add a caller, use the 'add_caller' action with the properties: 'callerEntityI
|
|
|
120778
120778
|
Return statements need to have a caller when created, since their purpose is to terminate a call chain.` : a.type === p.ContinueStatement ? c += `
|
|
120779
120779
|
Continue statements need to have a caller when created, since they are used to skip the rest of the current iteration of a loop and can't be detached from a call chain.` : a.type === p.BreakStatement && (c += `
|
|
120780
120780
|
Break statements need to have a caller when created, since they are used to exit a loop and can't be detached from a call chain.`), c += `
|
|
120781
|
-
${_xt}`,
|
|
120781
|
+
${_xt}`, Mt.includes(a.type) || (c += `
|
|
120782
120782
|
It is recommended to have a caller reference already at the moment of creation in the payload of the generation action.`), i.push(
|
|
120783
120783
|
new de({
|
|
120784
120784
|
id: `${a.id}--${le.MissingCaller}`,
|
|
120785
120785
|
code: le.MissingCaller,
|
|
120786
120786
|
// If it is a termination statement, make it an error, otherwise a warning
|
|
120787
|
-
severity:
|
|
120787
|
+
severity: Mt.includes(a.type) ? S.Error : S.Warning,
|
|
120788
120788
|
message: c
|
|
120789
120789
|
})
|
|
120790
120790
|
);
|
|
@@ -121081,7 +121081,7 @@ function j4t(d, u, i = "calledBy") {
|
|
|
121081
121081
|
), a;
|
|
121082
121082
|
if ([...Ei, ...qt].includes(l.type))
|
|
121083
121083
|
return [];
|
|
121084
|
-
if (
|
|
121084
|
+
if (Mt.includes(l.type)) {
|
|
121085
121085
|
const c = l.calledBy || [], e = c.length ? `
|
|
121086
121086
|
|
|
121087
121087
|
This ${l.type} is called by ${yt(
|
|
@@ -121099,7 +121099,7 @@ This ${l.type} is called by ${yt(
|
|
|
121099
121099
|
message: `Entity with id '${l.id}' referenced in '${i}' property is of type '${l.type}'.
|
|
121100
121100
|
${l.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
|
|
121101
121101
|
Termination entities are ${yt(
|
|
121102
|
-
|
|
121102
|
+
Mt,
|
|
121103
121103
|
", ",
|
|
121104
121104
|
" and "
|
|
121105
121105
|
)}.${e}`
|
|
@@ -121137,7 +121137,7 @@ function G4t(d, u, i = "calledByError") {
|
|
|
121137
121137
|
), a;
|
|
121138
121138
|
if (Ei.includes(l.type))
|
|
121139
121139
|
return [];
|
|
121140
|
-
if (
|
|
121140
|
+
if (Mt.includes(l.type)) {
|
|
121141
121141
|
const c = l.calledBy || [], e = c.length ? `
|
|
121142
121142
|
|
|
121143
121143
|
This ${l.type} is called by ${yt(
|
|
@@ -121155,7 +121155,7 @@ This ${l.type} is called by ${yt(
|
|
|
121155
121155
|
message: `Entity with id '${l.id}' referenced in '${i}' property is of type '${l.type}'.
|
|
121156
121156
|
${l.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
|
|
121157
121157
|
Termination entities are ${yt(
|
|
121158
|
-
|
|
121158
|
+
Mt,
|
|
121159
121159
|
", ",
|
|
121160
121160
|
" and "
|
|
121161
121161
|
)}.${e}`
|
|
@@ -121800,7 +121800,7 @@ function Kj(d) {
|
|
|
121800
121800
|
const u = [], i = ((c = d.implements) == null ? void 0 : c.getDataType(null)) || null;
|
|
121801
121801
|
if (!i || ((e = i.entity) == null ? void 0 : e.id) === ue["primitive-entity"].void.id)
|
|
121802
121802
|
return u;
|
|
121803
|
-
if (ft(d).filter((y) =>
|
|
121803
|
+
if (ft(d).filter((y) => Mt.includes(y.type) || !Fj(
|
|
121804
121804
|
y
|
|
121805
121805
|
) ? !1 : !!(!y.successCalls.length && !y.errorCalls.length && y.calledBy.length)).length) {
|
|
121806
121806
|
const y = $t({
|
|
@@ -121819,7 +121819,7 @@ function Kj(d) {
|
|
|
121819
121819
|
}
|
|
121820
121820
|
function po(d) {
|
|
121821
121821
|
const u = [];
|
|
121822
|
-
if (!ps.includes(d.type) ||
|
|
121822
|
+
if (!ps.includes(d.type) || Mt.includes(d.type) || qt.includes(d.type) || !Fj(
|
|
121823
121823
|
d
|
|
121824
121824
|
))
|
|
121825
121825
|
return u;
|
|
@@ -125441,7 +125441,7 @@ function eUt(d) {
|
|
|
125441
125441
|
(y) => tI(y)
|
|
125442
125442
|
) : []
|
|
125443
125443
|
]), a = R(
|
|
125444
|
-
i.map((y) => Xj(y)).flatMap((y) =>
|
|
125444
|
+
i.map((y) => Xj(y)).flatMap((y) => Mt.includes(y == null ? void 0 : y.type) ? y.calledBy : [y])
|
|
125445
125445
|
);
|
|
125446
125446
|
if (a.length === 1) {
|
|
125447
125447
|
const y = a[0];
|
|
@@ -125632,19 +125632,16 @@ function Im(d) {
|
|
|
125632
125632
|
const u = d.calledBy;
|
|
125633
125633
|
if (u.length === 0)
|
|
125634
125634
|
return d.project;
|
|
125635
|
-
const i = u.reduce(
|
|
125636
|
-
(
|
|
125637
|
-
|
|
125638
|
-
|
|
125639
|
-
|
|
125640
|
-
|
|
125641
|
-
|
|
125642
|
-
|
|
125643
|
-
|
|
125644
|
-
|
|
125645
|
-
},
|
|
125646
|
-
d.project
|
|
125647
|
-
);
|
|
125635
|
+
const i = u.reduce((a, l) => {
|
|
125636
|
+
const c = Hr(l, d.project);
|
|
125637
|
+
return !c || c.type === p.Project ? a : a.type === p.Project || Bf(
|
|
125638
|
+
c,
|
|
125639
|
+
a
|
|
125640
|
+
).last ? c : (Bf(
|
|
125641
|
+
a,
|
|
125642
|
+
c
|
|
125643
|
+
).last, a);
|
|
125644
|
+
}, d.project);
|
|
125648
125645
|
return (
|
|
125649
125646
|
// If the resolved parent is a function declaration, and it is inside a loop
|
|
125650
125647
|
i.type === p.FunctionDeclaration && i.parent.type === p.Loop ? i.parent : i
|
|
@@ -125694,7 +125691,7 @@ function et(d, u) {
|
|
|
125694
125691
|
d.setParent(i, u), d.addSelfToProject(u);
|
|
125695
125692
|
} else
|
|
125696
125693
|
d.setParent(i, u), d.addSelfToProject(u);
|
|
125697
|
-
if (
|
|
125694
|
+
if (Mt.includes(d.type))
|
|
125698
125695
|
return;
|
|
125699
125696
|
ft(d).forEach((l) => {
|
|
125700
125697
|
let c = Im(l);
|
|
@@ -126074,7 +126071,7 @@ function iUt(d) {
|
|
|
126074
126071
|
return d.type === p.VariableDeclaration ? [d] : Ei.includes(d.type) ? [
|
|
126075
126072
|
...d.inputs,
|
|
126076
126073
|
...d.outputs || []
|
|
126077
|
-
] :
|
|
126074
|
+
] : Mt.includes(d.type) ? d.outputs : Yu.includes(d.type) || d.type === p.FunctionDeclaration ? d.inputs : [];
|
|
126078
126075
|
}
|
|
126079
126076
|
function rUt(d) {
|
|
126080
126077
|
const u = wa(d), i = [], a = [];
|
|
@@ -127144,7 +127141,7 @@ function cUt(d) {
|
|
|
127144
127141
|
const i = d.declaration;
|
|
127145
127142
|
return i.dataType && i.dataType.entity && i.dataType.entity.type === p.DefinitionEntity && i.dataType.entity.properties.length ? i.dataType.entity.properties : [];
|
|
127146
127143
|
}
|
|
127147
|
-
return
|
|
127144
|
+
return Mt.includes(d.type) ? d.outputs.map((i) => i.declaration).filter((i) => !!i) || [] : [];
|
|
127148
127145
|
}
|
|
127149
127146
|
function fUt(d, u) {
|
|
127150
127147
|
return u.type === p.Condition ? null : (u.type === p.FunctionCall || u.type === p.Operation) && u.outputs.find((i) => {
|
|
@@ -127197,7 +127194,7 @@ function mf(d) {
|
|
|
127197
127194
|
function vf(d) {
|
|
127198
127195
|
const u = G1(d), i = [];
|
|
127199
127196
|
return u.forEach((a) => {
|
|
127200
|
-
if (Pt.includes(a.type))
|
|
127197
|
+
if ([...Pt, ...Mt].includes(a.type))
|
|
127201
127198
|
i.push(a);
|
|
127202
127199
|
else if (wn.includes(a.type)) {
|
|
127203
127200
|
const l = a.parent;
|
|
@@ -127448,18 +127445,15 @@ function wv(d) {
|
|
|
127448
127445
|
throw new Error(
|
|
127449
127446
|
"[flattenDefinitionEntityImplementionTypes] Entity must be defined to flatten implementation types"
|
|
127450
127447
|
);
|
|
127451
|
-
return d.implements.reduce(
|
|
127452
|
-
|
|
127453
|
-
|
|
127454
|
-
|
|
127455
|
-
|
|
127456
|
-
|
|
127457
|
-
|
|
127458
|
-
|
|
127459
|
-
|
|
127460
|
-
] : [...u],
|
|
127461
|
-
[]
|
|
127462
|
-
);
|
|
127448
|
+
return d.implements.reduce((u, i) => i.type === p.DefinitionEntity ? [
|
|
127449
|
+
...u,
|
|
127450
|
+
p.DefinitionEntity,
|
|
127451
|
+
...wv(i),
|
|
127452
|
+
...ud(i)
|
|
127453
|
+
] : (i == null ? void 0 : i.type) === p.BuiltInBaseEntity ? [
|
|
127454
|
+
i == null ? void 0 : i.name,
|
|
127455
|
+
...ud(i)
|
|
127456
|
+
] : [...u], []);
|
|
127463
127457
|
}
|
|
127464
127458
|
function ud(d) {
|
|
127465
127459
|
var u;
|
|
@@ -127494,18 +127488,15 @@ function t0(d) {
|
|
|
127494
127488
|
] : [] : [];
|
|
127495
127489
|
}
|
|
127496
127490
|
function eG(d) {
|
|
127497
|
-
return d.implements.reduce(
|
|
127498
|
-
|
|
127499
|
-
|
|
127500
|
-
|
|
127501
|
-
|
|
127502
|
-
|
|
127503
|
-
|
|
127504
|
-
|
|
127505
|
-
|
|
127506
|
-
] : [...u, i],
|
|
127507
|
-
[]
|
|
127508
|
-
);
|
|
127491
|
+
return d.implements.reduce((u, i) => i.type === p.DefinitionEntity ? [
|
|
127492
|
+
...u,
|
|
127493
|
+
i,
|
|
127494
|
+
...eG(i),
|
|
127495
|
+
...t0(i)
|
|
127496
|
+
] : (i == null ? void 0 : i.type) === p.BuiltInBaseEntity ? [
|
|
127497
|
+
i,
|
|
127498
|
+
...t0(i)
|
|
127499
|
+
] : [...u, i], []);
|
|
127509
127500
|
}
|
|
127510
127501
|
function Uf(d) {
|
|
127511
127502
|
return [
|
|
@@ -127609,19 +127600,16 @@ function tG(d) {
|
|
|
127609
127600
|
) ? d : [
|
|
127610
127601
|
...d.implements,
|
|
127611
127602
|
...d.extends ? [d.extends] : []
|
|
127612
|
-
].reduce(
|
|
127613
|
-
(
|
|
127614
|
-
|
|
127615
|
-
|
|
127616
|
-
|
|
127617
|
-
|
|
127618
|
-
|
|
127619
|
-
|
|
127620
|
-
|
|
127621
|
-
|
|
127622
|
-
},
|
|
127623
|
-
null
|
|
127624
|
-
);
|
|
127603
|
+
].reduce((a, l) => {
|
|
127604
|
+
if (l.type === p.DefinitionEntity) {
|
|
127605
|
+
const c = tG(
|
|
127606
|
+
l
|
|
127607
|
+
);
|
|
127608
|
+
if (c)
|
|
127609
|
+
return c;
|
|
127610
|
+
}
|
|
127611
|
+
return a;
|
|
127612
|
+
}, null);
|
|
127625
127613
|
}
|
|
127626
127614
|
function hUt(d) {
|
|
127627
127615
|
return d.extends && d.extends.type === p.BuiltInBaseEntity ? d.extends : null;
|
|
@@ -127757,7 +127745,7 @@ function Py(d) {
|
|
|
127757
127745
|
case p.PrimitiveEntity:
|
|
127758
127746
|
return Vs;
|
|
127759
127747
|
case p.ActionDescriptor:
|
|
127760
|
-
return
|
|
127748
|
+
return Bt;
|
|
127761
127749
|
case p.LiteralValue:
|
|
127762
127750
|
return Mr;
|
|
127763
127751
|
case p.ContinueStatement:
|
|
@@ -128006,7 +127994,7 @@ function Nm(d) {
|
|
|
128006
127994
|
[
|
|
128007
127995
|
...c.successCalls || []
|
|
128008
127996
|
].forEach((v) => {
|
|
128009
|
-
|
|
127997
|
+
Mt.includes(v.type) && v.id !== d.id && (ft(
|
|
128010
127998
|
d
|
|
128011
127999
|
).find((E) => E === v) || a(c, v));
|
|
128012
128000
|
});
|
|
@@ -128023,7 +128011,7 @@ function Nm(d) {
|
|
|
128023
128011
|
[
|
|
128024
128012
|
...c.errorCalls || []
|
|
128025
128013
|
].forEach((v) => {
|
|
128026
|
-
|
|
128014
|
+
Mt.includes(v.type) && v !== d && (ft(
|
|
128027
128015
|
d
|
|
128028
128016
|
).find((E) => E === v) || a(c, v));
|
|
128029
128017
|
});
|
|
@@ -128038,7 +128026,7 @@ function Nm(d) {
|
|
|
128038
128026
|
}
|
|
128039
128027
|
}), d.calledByEntry.forEach((c) => {
|
|
128040
128028
|
if ([...c.calls || []].forEach((v) => {
|
|
128041
|
-
|
|
128029
|
+
Mt.includes(v.type) && v !== d && (ft(
|
|
128042
128030
|
d
|
|
128043
128031
|
).find((E) => E === v) || a(c, v));
|
|
128044
128032
|
}), c === l)
|
|
@@ -128200,7 +128188,7 @@ function _Ut(d) {
|
|
|
128200
128188
|
case p.Property:
|
|
128201
128189
|
return _n;
|
|
128202
128190
|
case p.ActionDescriptor:
|
|
128203
|
-
return
|
|
128191
|
+
return Bt;
|
|
128204
128192
|
case p.ReturnStatement:
|
|
128205
128193
|
return Ul;
|
|
128206
128194
|
case p.ContinueStatement:
|
|
@@ -134906,7 +134894,7 @@ function _i(d, u) {
|
|
|
134906
134894
|
case p.InstalledProject:
|
|
134907
134895
|
return i || new rd(d, u);
|
|
134908
134896
|
case p.ActionDescriptor:
|
|
134909
|
-
return i || new
|
|
134897
|
+
return i || new Bt(d, u);
|
|
134910
134898
|
case p.ReturnStatement:
|
|
134911
134899
|
return i || new Ul(d, u);
|
|
134912
134900
|
case p.Loop:
|
|
@@ -134997,7 +134985,7 @@ function BUt(d, u) {
|
|
|
134997
134985
|
case p.Search:
|
|
134998
134986
|
return id.fromGenerationTarget(d, u);
|
|
134999
134987
|
case p.ActionDescriptor:
|
|
135000
|
-
return
|
|
134988
|
+
return Bt.fromGenerationTarget(
|
|
135001
134989
|
d,
|
|
135002
134990
|
u
|
|
135003
134991
|
);
|
|
@@ -136991,7 +136979,7 @@ _(vt, "MUTABLE_DOWNSTREAM_PROPERTIES", [
|
|
|
136991
136979
|
...vt.DOWNSTREAM_PROPERTIES
|
|
136992
136980
|
]);
|
|
136993
136981
|
let N = vt;
|
|
136994
|
-
class D2t extends
|
|
136982
|
+
class D2t extends Bt {
|
|
136995
136983
|
constructor(i) {
|
|
136996
136984
|
super(ba, i);
|
|
136997
136985
|
_(this, "id", wi.Parallel);
|
|
@@ -137037,7 +137025,7 @@ class D2t extends Mt {
|
|
|
137037
137025
|
// // return [result];
|
|
137038
137026
|
// };
|
|
137039
137027
|
}
|
|
137040
|
-
class O2t extends
|
|
137028
|
+
class O2t extends Bt {
|
|
137041
137029
|
constructor(i) {
|
|
137042
137030
|
super(en, i);
|
|
137043
137031
|
_(this, "id", en.id);
|
|
@@ -137080,7 +137068,7 @@ class O2t extends Mt {
|
|
|
137080
137068
|
// return [result];
|
|
137081
137069
|
// };
|
|
137082
137070
|
}
|
|
137083
|
-
class $2t extends
|
|
137071
|
+
class $2t extends Bt {
|
|
137084
137072
|
constructor(i) {
|
|
137085
137073
|
super(Ol, i);
|
|
137086
137074
|
_(this, "id", wi.Sequential);
|
|
@@ -137123,12 +137111,12 @@ class $2t extends Mt {
|
|
|
137123
137111
|
// return [results];
|
|
137124
137112
|
// };
|
|
137125
137113
|
}
|
|
137126
|
-
class P2t extends
|
|
137114
|
+
class P2t extends Bt {
|
|
137127
137115
|
constructor(u) {
|
|
137128
137116
|
super(u0, u);
|
|
137129
137117
|
}
|
|
137130
137118
|
}
|
|
137131
|
-
class V2t extends
|
|
137119
|
+
class V2t extends Bt {
|
|
137132
137120
|
constructor(i) {
|
|
137133
137121
|
super(Kf, i);
|
|
137134
137122
|
_(this, "autoexecutable", !0);
|
|
@@ -137649,32 +137637,32 @@ class V2t extends Mt {
|
|
|
137649
137637
|
};
|
|
137650
137638
|
}
|
|
137651
137639
|
}
|
|
137652
|
-
class N2t extends
|
|
137640
|
+
class N2t extends Bt {
|
|
137653
137641
|
constructor(u) {
|
|
137654
137642
|
super(TV, u);
|
|
137655
137643
|
}
|
|
137656
137644
|
}
|
|
137657
|
-
class x2t extends
|
|
137645
|
+
class x2t extends Bt {
|
|
137658
137646
|
constructor(u) {
|
|
137659
137647
|
super(bV, u);
|
|
137660
137648
|
}
|
|
137661
137649
|
}
|
|
137662
|
-
class L2t extends
|
|
137650
|
+
class L2t extends Bt {
|
|
137663
137651
|
constructor(u) {
|
|
137664
137652
|
super(AV, u);
|
|
137665
137653
|
}
|
|
137666
137654
|
}
|
|
137667
|
-
class M2t extends
|
|
137655
|
+
class M2t extends Bt {
|
|
137668
137656
|
constructor(u) {
|
|
137669
137657
|
super(AI, u);
|
|
137670
137658
|
}
|
|
137671
137659
|
}
|
|
137672
|
-
class B2t extends
|
|
137660
|
+
class B2t extends Bt {
|
|
137673
137661
|
constructor(u) {
|
|
137674
137662
|
super(mI, u);
|
|
137675
137663
|
}
|
|
137676
137664
|
}
|
|
137677
|
-
class U2t extends
|
|
137665
|
+
class U2t extends Bt {
|
|
137678
137666
|
constructor(u) {
|
|
137679
137667
|
super(l0, u);
|
|
137680
137668
|
}
|
|
@@ -137707,7 +137695,7 @@ function j2t(d) {
|
|
|
137707
137695
|
// new ActionDescriptorState(generateHexadecimalTokenOperation, project),
|
|
137708
137696
|
];
|
|
137709
137697
|
return fN.forEach((i) => {
|
|
137710
|
-
u.some((a) => a.id === i.id) || u.push(new
|
|
137698
|
+
u.some((a) => a.id === i.id) || u.push(new Bt(i, d));
|
|
137711
137699
|
}), u.forEach((i) => {
|
|
137712
137700
|
i.initChildren(null), d.subscribeBuiltInInstance(i);
|
|
137713
137701
|
}), d.operationDeclarations = u, u;
|
|
@@ -138006,7 +137994,7 @@ function W2t(d) {
|
|
|
138006
137994
|
}
|
|
138007
137995
|
function H2t(d) {
|
|
138008
137996
|
const u = [
|
|
138009
|
-
new
|
|
137997
|
+
new Bt(JI, d)
|
|
138010
137998
|
];
|
|
138011
137999
|
return u.forEach((i) => {
|
|
138012
138000
|
i.initChildren(null), d.subscribeBuiltInInstance(i);
|
|
@@ -138014,38 +138002,38 @@ function H2t(d) {
|
|
|
138014
138002
|
}
|
|
138015
138003
|
function z2t(d) {
|
|
138016
138004
|
const u = [
|
|
138017
|
-
new
|
|
138018
|
-
new
|
|
138019
|
-
new
|
|
138020
|
-
new
|
|
138005
|
+
new Bt(D0, d),
|
|
138006
|
+
new Bt(lp, d),
|
|
138007
|
+
new Bt(I0, d),
|
|
138008
|
+
new Bt(
|
|
138021
138009
|
Wf,
|
|
138022
138010
|
d
|
|
138023
138011
|
),
|
|
138024
|
-
new
|
|
138012
|
+
new Bt(
|
|
138025
138013
|
Hf,
|
|
138026
138014
|
d
|
|
138027
138015
|
),
|
|
138028
|
-
new
|
|
138016
|
+
new Bt(xI, d)
|
|
138029
138017
|
];
|
|
138030
138018
|
u.forEach((a) => {
|
|
138031
138019
|
a.initChildren(null), d.subscribeBuiltInInstance(a);
|
|
138032
138020
|
}), d.loopDeclarations = u;
|
|
138033
138021
|
const i = [
|
|
138034
|
-
new
|
|
138035
|
-
new
|
|
138036
|
-
new
|
|
138022
|
+
new Bt(GI, d),
|
|
138023
|
+
new Bt(R0, d),
|
|
138024
|
+
new Bt(
|
|
138037
138025
|
MI,
|
|
138038
138026
|
d
|
|
138039
138027
|
),
|
|
138040
|
-
new
|
|
138028
|
+
new Bt(
|
|
138041
138029
|
bN,
|
|
138042
138030
|
d
|
|
138043
138031
|
),
|
|
138044
|
-
new
|
|
138032
|
+
new Bt(
|
|
138045
138033
|
IN,
|
|
138046
138034
|
d
|
|
138047
138035
|
),
|
|
138048
|
-
new
|
|
138036
|
+
new Bt(LI, d)
|
|
138049
138037
|
];
|
|
138050
138038
|
return i.forEach((a) => {
|
|
138051
138039
|
a.initChildren(null), d.subscribeBuiltInInstance(a);
|
|
@@ -138061,16 +138049,16 @@ function J2t(d) {
|
|
|
138061
138049
|
}
|
|
138062
138050
|
function Y2t(d) {
|
|
138063
138051
|
const u = [
|
|
138064
|
-
new
|
|
138065
|
-
new
|
|
138066
|
-
new
|
|
138067
|
-
new
|
|
138068
|
-
new
|
|
138069
|
-
new
|
|
138070
|
-
new
|
|
138071
|
-
new
|
|
138072
|
-
new
|
|
138073
|
-
new
|
|
138052
|
+
new Bt(ZN, d),
|
|
138053
|
+
new Bt(qN, d),
|
|
138054
|
+
new Bt(up, d),
|
|
138055
|
+
new Bt(zN, d),
|
|
138056
|
+
new Bt(QN, d),
|
|
138057
|
+
new Bt(SN, d),
|
|
138058
|
+
new Bt(YN, d),
|
|
138059
|
+
new Bt(XN, d),
|
|
138060
|
+
new Bt(Xf, d),
|
|
138061
|
+
new Bt(JN, d)
|
|
138074
138062
|
];
|
|
138075
138063
|
return u.forEach((i) => {
|
|
138076
138064
|
i.initChildren(null), d.subscribeBuiltInInstance(i);
|
|
@@ -138417,7 +138405,7 @@ export {
|
|
|
138417
138405
|
CBt as ALL_CONNECTION_DISABLED_REASONS,
|
|
138418
138406
|
gBt as ALL_OTHER_DISABLED_REASONS,
|
|
138419
138407
|
_Bt as ALL_TESTING_DISABLED_REASONS,
|
|
138420
|
-
|
|
138408
|
+
Bt as ActionDescriptorState,
|
|
138421
138409
|
e4t as ActionInputMapState,
|
|
138422
138410
|
r4t as ActionOutputMapState,
|
|
138423
138411
|
qr as Area,
|
|
@@ -138698,7 +138686,7 @@ export {
|
|
|
138698
138686
|
O as StateMutationAction,
|
|
138699
138687
|
ji as StateMutationErrorCode,
|
|
138700
138688
|
ze as StringOperations,
|
|
138701
|
-
|
|
138689
|
+
Mt as TERMINATION_TYPES,
|
|
138702
138690
|
SBt as TerminationInputMapState,
|
|
138703
138691
|
Qa as Traverser,
|
|
138704
138692
|
f7e as USER_MANAGED_ENTITY_TYPES,
|