@elyx-code/project-logic-tree 0.0.6964 → 0.0.6966
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.cjs +25 -24
- package/dist/index.d.ts +1 -0
- package/dist/index.js +537 -374
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -82,7 +82,7 @@ const op = [d.GlobalEvent], ek = [
|
|
|
82
82
|
], _t = [
|
|
83
83
|
...jC,
|
|
84
84
|
d.InternalCall
|
|
85
|
-
],
|
|
85
|
+
], Kt = [
|
|
86
86
|
d.FunctionDeclaration,
|
|
87
87
|
...op
|
|
88
88
|
], ur = [
|
|
@@ -97,15 +97,15 @@ const op = [d.GlobalEvent], ek = [
|
|
|
97
97
|
d.ContinueStatement
|
|
98
98
|
], ar = [
|
|
99
99
|
..._t,
|
|
100
|
-
...
|
|
100
|
+
...Kt
|
|
101
101
|
], GQe = [
|
|
102
102
|
...jC,
|
|
103
|
-
...
|
|
104
|
-
], FC = [...ur, ...
|
|
103
|
+
...Kt
|
|
104
|
+
], FC = [...ur, ...Kt], C3i = [
|
|
105
105
|
...tk,
|
|
106
|
-
...
|
|
106
|
+
...Kt
|
|
107
107
|
], _r = [
|
|
108
|
-
...
|
|
108
|
+
...Kt,
|
|
109
109
|
d.Loop
|
|
110
110
|
], Ct = [
|
|
111
111
|
d.ReturnStatement,
|
|
@@ -67543,12 +67543,12 @@ const aii = Ts(
|
|
|
67543
67543
|
outputName: null,
|
|
67544
67544
|
outputDescription: null,
|
|
67545
67545
|
parent: null
|
|
67546
|
-
},
|
|
67546
|
+
}, qt = ie[d.Operation][$i.GoogleDriveFiles];
|
|
67547
67547
|
var qj = /* @__PURE__ */ ((s) => (s.Audio = "application/vnd.google-apps.audio", s.Document = "application/vnd.google-apps.document", s.DriveSdk = "application/vnd.google-apps.drive-sdk", s.Drawing = "application/vnd.google-apps.drawing", s.File = "application/vnd.google-apps.file", s.Folder = "application/vnd.google-apps.folder", s.Form = "application/vnd.google-apps.form", s.FusionTable = "application/vnd.google-apps.fusiontable", s.Jam = "application/vnd.google-apps.jam", s.MailLayout = "application/vnd.google-apps.mail-layout", s.Map = "application/vnd.google-apps.map", s.Photo = "application/vnd.google-apps.photo", s.Presentation = "application/vnd.google-apps.presentation", s.Script = "application/vnd.google-apps.script", s.Shortcut = "application/vnd.google-apps.shortcut", s.Site = "application/vnd.google-apps.site", s.Spreadsheet = "application/vnd.google-apps.spreadsheet", s.Unknown = "application/vnd.google-apps.unknown", s.Vid = "application/vnd.google-apps.vid", s.Video = "application/vnd.google-apps.video", s))(qj || {});
|
|
67548
67548
|
const GI = Object.values(qj), rc = {
|
|
67549
67549
|
id: "external-integration--google-drive--get--files--ref",
|
|
67550
67550
|
type: d.GenericReference,
|
|
67551
|
-
entityId:
|
|
67551
|
+
entityId: qt.id,
|
|
67552
67552
|
version: "1",
|
|
67553
67553
|
entityType: d.ActionDescriptor
|
|
67554
67554
|
}, Eu = (s) => ({
|
|
@@ -67564,7 +67564,7 @@ const GI = Object.values(qj), rc = {
|
|
|
67564
67564
|
version: "1",
|
|
67565
67565
|
entityType: d.Property
|
|
67566
67566
|
}), zii = {
|
|
67567
|
-
id:
|
|
67567
|
+
id: qt.inputs.connection.dataType.id,
|
|
67568
67568
|
version: "1",
|
|
67569
67569
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67570
67570
|
previousVersion: null,
|
|
@@ -67589,9 +67589,9 @@ const GI = Object.values(qj), rc = {
|
|
|
67589
67589
|
andChildrenGroup: null,
|
|
67590
67590
|
orChildrenGroup: null,
|
|
67591
67591
|
entity: PI,
|
|
67592
|
-
parent: Eu(
|
|
67592
|
+
parent: Eu(qt.inputs.connection.id)
|
|
67593
67593
|
}, Jii = {
|
|
67594
|
-
id:
|
|
67594
|
+
id: qt.inputs.connection.id,
|
|
67595
67595
|
version: "1",
|
|
67596
67596
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67597
67597
|
previousVersion: null,
|
|
@@ -67610,7 +67610,7 @@ const GI = Object.values(qj), rc = {
|
|
|
67610
67610
|
dataType: zii,
|
|
67611
67611
|
parent: rc
|
|
67612
67612
|
}, Yii = {
|
|
67613
|
-
id:
|
|
67613
|
+
id: qt.inputs.filesFilter.dataType.id,
|
|
67614
67614
|
version: "1",
|
|
67615
67615
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67616
67616
|
previousVersion: null,
|
|
@@ -67635,9 +67635,9 @@ const GI = Object.values(qj), rc = {
|
|
|
67635
67635
|
andChildrenGroup: null,
|
|
67636
67636
|
orChildrenGroup: null,
|
|
67637
67637
|
entity: be,
|
|
67638
|
-
parent: Eu(
|
|
67638
|
+
parent: Eu(qt.inputs.filesFilter.id)
|
|
67639
67639
|
}, Qii = {
|
|
67640
|
-
id:
|
|
67640
|
+
id: qt.inputs.filesFilter.id,
|
|
67641
67641
|
version: "1",
|
|
67642
67642
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67643
67643
|
previousVersion: null,
|
|
@@ -67656,7 +67656,7 @@ const GI = Object.values(qj), rc = {
|
|
|
67656
67656
|
dataType: Yii,
|
|
67657
67657
|
parent: rc
|
|
67658
67658
|
}, Xii = {
|
|
67659
|
-
id:
|
|
67659
|
+
id: qt.inputs.foldersFilter.dataType.id,
|
|
67660
67660
|
version: "1",
|
|
67661
67661
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67662
67662
|
previousVersion: null,
|
|
@@ -67681,9 +67681,9 @@ const GI = Object.values(qj), rc = {
|
|
|
67681
67681
|
andChildrenGroup: null,
|
|
67682
67682
|
orChildrenGroup: null,
|
|
67683
67683
|
entity: be,
|
|
67684
|
-
parent: Eu(
|
|
67684
|
+
parent: Eu(qt.inputs.foldersFilter.id)
|
|
67685
67685
|
}, eri = {
|
|
67686
|
-
id:
|
|
67686
|
+
id: qt.inputs.foldersFilter.id,
|
|
67687
67687
|
version: "1",
|
|
67688
67688
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67689
67689
|
previousVersion: null,
|
|
@@ -67702,7 +67702,7 @@ const GI = Object.values(qj), rc = {
|
|
|
67702
67702
|
dataType: Xii,
|
|
67703
67703
|
parent: rc
|
|
67704
67704
|
}, tri = {
|
|
67705
|
-
id:
|
|
67705
|
+
id: qt.inputs.mimeTypes.dataType.id,
|
|
67706
67706
|
version: "1",
|
|
67707
67707
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67708
67708
|
previousVersion: null,
|
|
@@ -67727,9 +67727,9 @@ const GI = Object.values(qj), rc = {
|
|
|
67727
67727
|
andChildrenGroup: null,
|
|
67728
67728
|
orChildrenGroup: null,
|
|
67729
67729
|
entity: Gt,
|
|
67730
|
-
parent: Eu(
|
|
67730
|
+
parent: Eu(qt.inputs.mimeTypes.id)
|
|
67731
67731
|
}, iri = {
|
|
67732
|
-
id:
|
|
67732
|
+
id: qt.inputs.mimeTypes.id,
|
|
67733
67733
|
version: "1",
|
|
67734
67734
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67735
67735
|
previousVersion: null,
|
|
@@ -67748,7 +67748,7 @@ const GI = Object.values(qj), rc = {
|
|
|
67748
67748
|
dataType: tri,
|
|
67749
67749
|
parent: rc
|
|
67750
67750
|
}, rri = {
|
|
67751
|
-
id:
|
|
67751
|
+
id: qt.inputs.trashed.dataType.id,
|
|
67752
67752
|
version: "1",
|
|
67753
67753
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67754
67754
|
previousVersion: null,
|
|
@@ -67773,9 +67773,9 @@ const GI = Object.values(qj), rc = {
|
|
|
67773
67773
|
andChildrenGroup: null,
|
|
67774
67774
|
orChildrenGroup: null,
|
|
67775
67775
|
entity: ht,
|
|
67776
|
-
parent: Eu(
|
|
67776
|
+
parent: Eu(qt.inputs.trashed.id)
|
|
67777
67777
|
}, nri = {
|
|
67778
|
-
id:
|
|
67778
|
+
id: qt.inputs.trashed.id,
|
|
67779
67779
|
version: "1",
|
|
67780
67780
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67781
67781
|
previousVersion: null,
|
|
@@ -67790,7 +67790,7 @@ const GI = Object.values(qj), rc = {
|
|
|
67790
67790
|
index: 4,
|
|
67791
67791
|
required: !0,
|
|
67792
67792
|
defaultValue: {
|
|
67793
|
-
id:
|
|
67793
|
+
id: qt.inputs.trashed.defaultValue.id,
|
|
67794
67794
|
deletable: !1,
|
|
67795
67795
|
editable: !1,
|
|
67796
67796
|
type: d.LiteralValue,
|
|
@@ -67805,13 +67805,13 @@ const GI = Object.values(qj), rc = {
|
|
|
67805
67805
|
value: !1,
|
|
67806
67806
|
valueAsTypeList: null,
|
|
67807
67807
|
valueAsTypeSingle: null,
|
|
67808
|
-
parent: Eu(
|
|
67808
|
+
parent: Eu(qt.inputs.trashed.id)
|
|
67809
67809
|
},
|
|
67810
67810
|
parentRelationType: U.FixedArguments,
|
|
67811
67811
|
dataType: rri,
|
|
67812
67812
|
parent: rc
|
|
67813
67813
|
}, ari = {
|
|
67814
|
-
id:
|
|
67814
|
+
id: qt.inputs.pageSize.dataType.id,
|
|
67815
67815
|
version: "1",
|
|
67816
67816
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67817
67817
|
previousVersion: null,
|
|
@@ -67836,9 +67836,9 @@ const GI = Object.values(qj), rc = {
|
|
|
67836
67836
|
andChildrenGroup: null,
|
|
67837
67837
|
orChildrenGroup: null,
|
|
67838
67838
|
entity: xe,
|
|
67839
|
-
parent: Eu(
|
|
67839
|
+
parent: Eu(qt.inputs.pageSize.id)
|
|
67840
67840
|
}, sri = {
|
|
67841
|
-
id:
|
|
67841
|
+
id: qt.inputs.pageSize.id,
|
|
67842
67842
|
version: "1",
|
|
67843
67843
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67844
67844
|
previousVersion: null,
|
|
@@ -67868,13 +67868,13 @@ const GI = Object.values(qj), rc = {
|
|
|
67868
67868
|
value: 100,
|
|
67869
67869
|
valueAsTypeList: null,
|
|
67870
67870
|
valueAsTypeSingle: null,
|
|
67871
|
-
parent: Eu(
|
|
67871
|
+
parent: Eu(qt.inputs.pageSize.id)
|
|
67872
67872
|
},
|
|
67873
67873
|
parentRelationType: U.FixedArguments,
|
|
67874
67874
|
dataType: ari,
|
|
67875
67875
|
parent: rc
|
|
67876
67876
|
}, lri = {
|
|
67877
|
-
id:
|
|
67877
|
+
id: qt.inputs.pageToken.dataType.id,
|
|
67878
67878
|
version: "1",
|
|
67879
67879
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67880
67880
|
previousVersion: null,
|
|
@@ -67899,9 +67899,9 @@ const GI = Object.values(qj), rc = {
|
|
|
67899
67899
|
andChildrenGroup: null,
|
|
67900
67900
|
orChildrenGroup: null,
|
|
67901
67901
|
entity: be,
|
|
67902
|
-
parent: Eu(
|
|
67902
|
+
parent: Eu(qt.inputs.pageToken.id)
|
|
67903
67903
|
}, ori = {
|
|
67904
|
-
id:
|
|
67904
|
+
id: qt.inputs.pageToken.id,
|
|
67905
67905
|
version: "1",
|
|
67906
67906
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67907
67907
|
previousVersion: null,
|
|
@@ -67922,23 +67922,23 @@ const GI = Object.values(qj), rc = {
|
|
|
67922
67922
|
}, Zj = {
|
|
67923
67923
|
id: "external-integration--google-drive--get--files-response-entity--ref",
|
|
67924
67924
|
type: d.GenericReference,
|
|
67925
|
-
entityId:
|
|
67925
|
+
entityId: qt.dataType.entity.id,
|
|
67926
67926
|
version: "1",
|
|
67927
67927
|
entityType: d.DefinitionEntity
|
|
67928
67928
|
}, dri = {
|
|
67929
67929
|
id: "external-integration--google-drive--get--files-response-entity-properties-results-data-type--ref",
|
|
67930
67930
|
type: d.GenericReference,
|
|
67931
|
-
entityId:
|
|
67931
|
+
entityId: qt.dataType.entity.properties.results.dataType.id,
|
|
67932
67932
|
version: "1",
|
|
67933
67933
|
entityType: d.DataType
|
|
67934
67934
|
}, t0 = {
|
|
67935
67935
|
id: "external-integration--google-drive--get--files-results-entity--ref",
|
|
67936
67936
|
type: d.GenericReference,
|
|
67937
|
-
entityId:
|
|
67937
|
+
entityId: qt.dataType.entity.properties.results.dataType.entity.id,
|
|
67938
67938
|
version: "1",
|
|
67939
67939
|
entityType: d.DefinitionEntity
|
|
67940
67940
|
}, uri = {
|
|
67941
|
-
id:
|
|
67941
|
+
id: qt.dataType.entity.properties.results.dataType.entity.properties.idProperty.dataType.id,
|
|
67942
67942
|
version: "1",
|
|
67943
67943
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
67944
67944
|
previousVersion: null,
|
|
@@ -67964,10 +67964,10 @@ const GI = Object.values(qj), rc = {
|
|
|
67964
67964
|
orChildrenGroup: null,
|
|
67965
67965
|
entity: be,
|
|
67966
67966
|
parent: e0(
|
|
67967
|
-
|
|
67967
|
+
qt.dataType.entity.properties.results.dataType.entity.properties.idProperty.id
|
|
67968
67968
|
)
|
|
67969
67969
|
}, pri = {
|
|
67970
|
-
id:
|
|
67970
|
+
id: qt.dataType.entity.properties.results.dataType.entity.properties.idProperty.id,
|
|
67971
67971
|
name: "id",
|
|
67972
67972
|
deletable: !1,
|
|
67973
67973
|
editable: !1,
|
|
@@ -67995,7 +67995,7 @@ const GI = Object.values(qj), rc = {
|
|
|
67995
67995
|
previousVersion: null,
|
|
67996
67996
|
deleted: !1
|
|
67997
67997
|
}, cri = {
|
|
67998
|
-
id:
|
|
67998
|
+
id: qt.dataType.entity.properties.results.dataType.entity.properties.parents.dataType.id,
|
|
67999
67999
|
version: "1",
|
|
68000
68000
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
68001
68001
|
previousVersion: null,
|
|
@@ -68021,10 +68021,10 @@ const GI = Object.values(qj), rc = {
|
|
|
68021
68021
|
orChildrenGroup: null,
|
|
68022
68022
|
entity: be,
|
|
68023
68023
|
parent: e0(
|
|
68024
|
-
|
|
68024
|
+
qt.dataType.entity.properties.results.dataType.entity.properties.parents.id
|
|
68025
68025
|
)
|
|
68026
68026
|
}, fri = {
|
|
68027
|
-
id:
|
|
68027
|
+
id: qt.dataType.entity.properties.results.dataType.entity.properties.parents.id,
|
|
68028
68028
|
name: "Parents",
|
|
68029
68029
|
deletable: !1,
|
|
68030
68030
|
editable: !1,
|
|
@@ -68052,7 +68052,7 @@ const GI = Object.values(qj), rc = {
|
|
|
68052
68052
|
previousVersion: null,
|
|
68053
68053
|
deleted: !1
|
|
68054
68054
|
}, yri = {
|
|
68055
|
-
id:
|
|
68055
|
+
id: qt.dataType.entity.properties.results.dataType.entity.properties.name.dataType.id,
|
|
68056
68056
|
version: "1",
|
|
68057
68057
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
68058
68058
|
previousVersion: null,
|
|
@@ -68078,10 +68078,10 @@ const GI = Object.values(qj), rc = {
|
|
|
68078
68078
|
orChildrenGroup: null,
|
|
68079
68079
|
entity: be,
|
|
68080
68080
|
parent: e0(
|
|
68081
|
-
|
|
68081
|
+
qt.dataType.entity.properties.results.dataType.entity.properties.name.id
|
|
68082
68082
|
)
|
|
68083
68083
|
}, hri = {
|
|
68084
|
-
id:
|
|
68084
|
+
id: qt.dataType.entity.properties.results.dataType.entity.properties.name.id,
|
|
68085
68085
|
name: "Name",
|
|
68086
68086
|
deletable: !1,
|
|
68087
68087
|
editable: !1,
|
|
@@ -68109,7 +68109,7 @@ const GI = Object.values(qj), rc = {
|
|
|
68109
68109
|
previousVersion: null,
|
|
68110
68110
|
deleted: !1
|
|
68111
68111
|
}, mri = {
|
|
68112
|
-
id:
|
|
68112
|
+
id: qt.dataType.entity.properties.results.dataType.entity.properties.mimeType.dataType.id,
|
|
68113
68113
|
version: "1",
|
|
68114
68114
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
68115
68115
|
previousVersion: null,
|
|
@@ -68135,10 +68135,10 @@ const GI = Object.values(qj), rc = {
|
|
|
68135
68135
|
orChildrenGroup: null,
|
|
68136
68136
|
entity: Gt,
|
|
68137
68137
|
parent: e0(
|
|
68138
|
-
|
|
68138
|
+
qt.dataType.entity.properties.results.dataType.entity.properties.mimeType.id
|
|
68139
68139
|
)
|
|
68140
68140
|
}, Tri = {
|
|
68141
|
-
id:
|
|
68141
|
+
id: qt.dataType.entity.properties.results.dataType.entity.properties.mimeType.id,
|
|
68142
68142
|
name: "Mime Type",
|
|
68143
68143
|
deletable: !1,
|
|
68144
68144
|
editable: !1,
|
|
@@ -68166,7 +68166,7 @@ const GI = Object.values(qj), rc = {
|
|
|
68166
68166
|
previousVersion: null,
|
|
68167
68167
|
deleted: !1
|
|
68168
68168
|
}, vri = {
|
|
68169
|
-
id:
|
|
68169
|
+
id: qt.dataType.entity.properties.results.dataType.entity.properties.webViewLink.dataType.id,
|
|
68170
68170
|
version: "1",
|
|
68171
68171
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
68172
68172
|
previousVersion: null,
|
|
@@ -68192,10 +68192,10 @@ const GI = Object.values(qj), rc = {
|
|
|
68192
68192
|
orChildrenGroup: null,
|
|
68193
68193
|
entity: be,
|
|
68194
68194
|
parent: e0(
|
|
68195
|
-
|
|
68195
|
+
qt.dataType.entity.properties.results.dataType.entity.properties.webViewLink.id
|
|
68196
68196
|
)
|
|
68197
68197
|
}, bri = {
|
|
68198
|
-
id:
|
|
68198
|
+
id: qt.dataType.entity.properties.results.dataType.entity.properties.webViewLink.id,
|
|
68199
68199
|
name: "Web view link",
|
|
68200
68200
|
deletable: !1,
|
|
68201
68201
|
editable: !1,
|
|
@@ -68223,7 +68223,7 @@ const GI = Object.values(qj), rc = {
|
|
|
68223
68223
|
previousVersion: null,
|
|
68224
68224
|
deleted: !1
|
|
68225
68225
|
}, Eri = {
|
|
68226
|
-
id:
|
|
68226
|
+
id: qt.dataType.entity.properties.results.dataType.entity.properties.modifiedTime.dataType.id,
|
|
68227
68227
|
version: "1",
|
|
68228
68228
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
68229
68229
|
previousVersion: null,
|
|
@@ -68249,10 +68249,10 @@ const GI = Object.values(qj), rc = {
|
|
|
68249
68249
|
orChildrenGroup: null,
|
|
68250
68250
|
entity: be,
|
|
68251
68251
|
parent: e0(
|
|
68252
|
-
|
|
68252
|
+
qt.dataType.entity.properties.results.dataType.entity.properties.modifiedTime.id
|
|
68253
68253
|
)
|
|
68254
68254
|
}, Ari = {
|
|
68255
|
-
id:
|
|
68255
|
+
id: qt.dataType.entity.properties.results.dataType.entity.properties.modifiedTime.id,
|
|
68256
68256
|
name: "Modified time",
|
|
68257
68257
|
deletable: !1,
|
|
68258
68258
|
editable: !1,
|
|
@@ -68286,7 +68286,7 @@ const GI = Object.values(qj), rc = {
|
|
|
68286
68286
|
additionalProperties: !1,
|
|
68287
68287
|
additionalPropertiesDataType: null,
|
|
68288
68288
|
allPropertiesImplement: null,
|
|
68289
|
-
id:
|
|
68289
|
+
id: qt.dataType.entity.properties.results.dataType.entity.id,
|
|
68290
68290
|
version: "1",
|
|
68291
68291
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
68292
68292
|
author: "1",
|
|
@@ -68313,7 +68313,7 @@ const GI = Object.values(qj), rc = {
|
|
|
68313
68313
|
y: 0,
|
|
68314
68314
|
parent: dri
|
|
68315
68315
|
}, gri = {
|
|
68316
|
-
id:
|
|
68316
|
+
id: qt.dataType.entity.properties.results.dataType.id,
|
|
68317
68317
|
version: "1",
|
|
68318
68318
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
68319
68319
|
previousVersion: null,
|
|
@@ -68341,12 +68341,12 @@ const GI = Object.values(qj), rc = {
|
|
|
68341
68341
|
parent: {
|
|
68342
68342
|
id: "external-integration--google-drive--get--files-response-entity-prop-results-dt--ref",
|
|
68343
68343
|
type: d.GenericReference,
|
|
68344
|
-
entityId:
|
|
68344
|
+
entityId: qt.dataType.entity.properties.results.dataType.id,
|
|
68345
68345
|
version: "1",
|
|
68346
68346
|
entityType: d.Property
|
|
68347
68347
|
}
|
|
68348
68348
|
}, Rri = {
|
|
68349
|
-
id:
|
|
68349
|
+
id: qt.dataType.entity.properties.results.id,
|
|
68350
68350
|
name: "Files metadata",
|
|
68351
68351
|
deletable: !1,
|
|
68352
68352
|
editable: !1,
|
|
@@ -68374,7 +68374,7 @@ const GI = Object.values(qj), rc = {
|
|
|
68374
68374
|
previousVersion: null,
|
|
68375
68375
|
deleted: !1
|
|
68376
68376
|
}, wri = {
|
|
68377
|
-
id:
|
|
68377
|
+
id: qt.dataType.entity.properties.nextPageToken.dataType.id,
|
|
68378
68378
|
version: "1",
|
|
68379
68379
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
68380
68380
|
previousVersion: null,
|
|
@@ -68402,12 +68402,12 @@ const GI = Object.values(qj), rc = {
|
|
|
68402
68402
|
parent: {
|
|
68403
68403
|
id: "external-integration--google-drive--get--files-response-entity-prop-nextPageToken-dt--ref",
|
|
68404
68404
|
type: d.GenericReference,
|
|
68405
|
-
entityId:
|
|
68405
|
+
entityId: qt.dataType.entity.properties.nextPageToken.dataType.id,
|
|
68406
68406
|
version: "1",
|
|
68407
68407
|
entityType: d.Property
|
|
68408
68408
|
}
|
|
68409
68409
|
}, Dri = {
|
|
68410
|
-
id:
|
|
68410
|
+
id: qt.dataType.entity.properties.nextPageToken.id,
|
|
68411
68411
|
name: "Next page token",
|
|
68412
68412
|
deletable: !1,
|
|
68413
68413
|
editable: !1,
|
|
@@ -68441,7 +68441,7 @@ const GI = Object.values(qj), rc = {
|
|
|
68441
68441
|
additionalProperties: !1,
|
|
68442
68442
|
additionalPropertiesDataType: null,
|
|
68443
68443
|
allPropertiesImplement: null,
|
|
68444
|
-
id:
|
|
68444
|
+
id: qt.dataType.entity.id,
|
|
68445
68445
|
version: "1",
|
|
68446
68446
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
68447
68447
|
author: "1",
|
|
@@ -68465,12 +68465,12 @@ const GI = Object.values(qj), rc = {
|
|
|
68465
68465
|
parent: {
|
|
68466
68466
|
id: "external-integration--google-drive--get--files-response-entity-parent--ref",
|
|
68467
68467
|
type: d.GenericReference,
|
|
68468
|
-
entityId:
|
|
68468
|
+
entityId: qt.dataType.id,
|
|
68469
68469
|
version: "1",
|
|
68470
68470
|
entityType: d.DataType
|
|
68471
68471
|
}
|
|
68472
68472
|
}, Ori = {
|
|
68473
|
-
id:
|
|
68473
|
+
id: qt.dataType.id,
|
|
68474
68474
|
version: "1",
|
|
68475
68475
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
68476
68476
|
previousVersion: null,
|
|
@@ -68497,7 +68497,7 @@ const GI = Object.values(qj), rc = {
|
|
|
68497
68497
|
entity: Cri,
|
|
68498
68498
|
parent: rc
|
|
68499
68499
|
}, _ri = {
|
|
68500
|
-
id:
|
|
68500
|
+
id: qt.id,
|
|
68501
68501
|
version: "1",
|
|
68502
68502
|
createdAt: "2024-01-01T00:00:00.000Z",
|
|
68503
68503
|
previousVersion: null,
|
|
@@ -82782,7 +82782,7 @@ class nn extends z_ {
|
|
|
82782
82782
|
})), c == null || c.attemptAutoclose(a, i.id), !1) : !0;
|
|
82783
82783
|
}
|
|
82784
82784
|
checkCanEditFromScopeOwner(i, r) {
|
|
82785
|
-
const a =
|
|
82785
|
+
const a = Ft(i, i.project);
|
|
82786
82786
|
return a ? this.checkCanEdit(a, r) : !0;
|
|
82787
82787
|
}
|
|
82788
82788
|
checkCanEditFromScopeOwnerWithSideEffects(i, r, a) {
|
|
@@ -82946,7 +82946,7 @@ const Ei = class Ei extends nn {
|
|
|
82946
82946
|
const b = r.get(
|
|
82947
82947
|
te(a.parent)
|
|
82948
82948
|
);
|
|
82949
|
-
if (b &&
|
|
82949
|
+
if (b && Kt.includes(b.type)) {
|
|
82950
82950
|
const E = b.implements;
|
|
82951
82951
|
if (E) {
|
|
82952
82952
|
const A = E.inputs.find(
|
|
@@ -84345,7 +84345,7 @@ R(Ei, "repository", {
|
|
|
84345
84345
|
},
|
|
84346
84346
|
APILoad: async (i, ...r) => null,
|
|
84347
84347
|
APILoadVersion: async (i, r, ...a) => null
|
|
84348
|
-
}), R(Ei, "type", d.ArgumentDeclaration), R(Ei, "USER_MANAGED_PARENT_TYPES", [...
|
|
84348
|
+
}), R(Ei, "type", d.ArgumentDeclaration), R(Ei, "USER_MANAGED_PARENT_TYPES", [...Kt]), R(Ei, "PARENT_TYPES", [
|
|
84349
84349
|
...Ei.USER_MANAGED_PARENT_TYPES
|
|
84350
84350
|
]), R(Ei, "MUTABLE_BASE_PROPERTIES", [
|
|
84351
84351
|
"name",
|
|
@@ -98660,12 +98660,12 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
98660
98660
|
}
|
|
98661
98661
|
// The return statements, don't belong to the loop itself, but to the parent scope entity
|
|
98662
98662
|
addReturnStatement(i) {
|
|
98663
|
-
return
|
|
98663
|
+
return Kt.includes(this.parent.type) && this.parent.addReturnStatement(
|
|
98664
98664
|
i
|
|
98665
98665
|
), this;
|
|
98666
98666
|
}
|
|
98667
98667
|
removeReturnStatement(i) {
|
|
98668
|
-
return
|
|
98668
|
+
return Kt.includes(this.parent.type) && this.parent.removeReturnStatement(
|
|
98669
98669
|
i
|
|
98670
98670
|
), this;
|
|
98671
98671
|
}
|
|
@@ -124271,7 +124271,7 @@ class uT extends Wy {
|
|
|
124271
124271
|
async schedule(i, r, a) {
|
|
124272
124272
|
if (this.hasExecuted(i))
|
|
124273
124273
|
return null;
|
|
124274
|
-
if (
|
|
124274
|
+
if (Kt.includes(i.type))
|
|
124275
124275
|
return this.executeBranch(
|
|
124276
124276
|
i,
|
|
124277
124277
|
a,
|
|
@@ -124294,7 +124294,7 @@ class uT extends Wy {
|
|
|
124294
124294
|
// And returns a resolved list of dynamic values to be used during the execution
|
|
124295
124295
|
mergeExernalValuesWithInternalInputs(i, r) {
|
|
124296
124296
|
const a = [];
|
|
124297
|
-
return [..._t, ...
|
|
124297
|
+
return [..._t, ...Kt].includes(
|
|
124298
124298
|
r.type
|
|
124299
124299
|
) ? a.push(
|
|
124300
124300
|
...r.inputs
|
|
@@ -124308,7 +124308,7 @@ class uT extends Wy {
|
|
|
124308
124308
|
);
|
|
124309
124309
|
if (f)
|
|
124310
124310
|
return f;
|
|
124311
|
-
if (!f &&
|
|
124311
|
+
if (!f && Kt.includes(r.type) && (f = i.find(
|
|
124312
124312
|
(m) => {
|
|
124313
124313
|
var b;
|
|
124314
124314
|
return ((b = m.valueOwner.declaration) == null ? void 0 : b.id) === e.id;
|
|
@@ -126132,7 +126132,8 @@ class uT extends Wy {
|
|
|
126132
126132
|
...Fu,
|
|
126133
126133
|
...a
|
|
126134
126134
|
}, e = {
|
|
126135
|
-
detached: !1
|
|
126135
|
+
detached: !1,
|
|
126136
|
+
execution: this
|
|
126136
126137
|
};
|
|
126137
126138
|
switch (i.type) {
|
|
126138
126139
|
case d.Condition: {
|
|
@@ -126325,7 +126326,8 @@ class uT extends Wy {
|
|
|
126325
126326
|
...Fu,
|
|
126326
126327
|
...r
|
|
126327
126328
|
}, e = {
|
|
126328
|
-
detached: !1
|
|
126329
|
+
detached: !1,
|
|
126330
|
+
execution: this
|
|
126329
126331
|
};
|
|
126330
126332
|
if (!this.hasEntity(i) || this.hasSkipped(i))
|
|
126331
126333
|
return null;
|
|
@@ -128179,7 +128181,7 @@ class dn {
|
|
|
128179
128181
|
if (d.DefinitionEntity === e.type) {
|
|
128180
128182
|
r.push(e);
|
|
128181
128183
|
return;
|
|
128182
|
-
} else if (
|
|
128184
|
+
} else if (Kt.includes(e.type)) {
|
|
128183
128185
|
a.push(e);
|
|
128184
128186
|
return;
|
|
128185
128187
|
}
|
|
@@ -128349,7 +128351,7 @@ class dn {
|
|
|
128349
128351
|
this.parents.forEach((r) => {
|
|
128350
128352
|
r !== this.calculationEntryPoint && r.shiftDownAlone(i);
|
|
128351
128353
|
});
|
|
128352
|
-
} else if ([...
|
|
128354
|
+
} else if ([...Kt].includes(this.entity.type) && this.children.length)
|
|
128353
128355
|
this.centerHeaderVerticallyOverCombinedAllChildrenHeaderHeight();
|
|
128354
128356
|
else if (!this.children.length && this.parents.length > 1) {
|
|
128355
128357
|
const i = p.filter(
|
|
@@ -128603,7 +128605,7 @@ async function AZi(s, p, i = {}) {
|
|
|
128603
128605
|
for (const e of s.instancesList) {
|
|
128604
128606
|
if (s.diggestedBuiltInBaseEntitiesIds.has(e.id) || !sh.includes(e.type) || ((c = mt(e)) == null ? void 0 : c.id) !== e.id)
|
|
128605
128607
|
continue;
|
|
128606
|
-
let f =
|
|
128608
|
+
let f = Ft(e, s);
|
|
128607
128609
|
if (!f) {
|
|
128608
128610
|
console.log(
|
|
128609
128611
|
"No top scope owner for instance: ",
|
|
@@ -128613,9 +128615,9 @@ async function AZi(s, p, i = {}) {
|
|
|
128613
128615
|
);
|
|
128614
128616
|
continue;
|
|
128615
128617
|
}
|
|
128616
|
-
if (!(
|
|
128618
|
+
if (!(Kt.includes(f.type) && f.collapsed && f.id !== e.id)) {
|
|
128617
128619
|
for (; f.parent && f.parent !== s; )
|
|
128618
|
-
f = f.parent,
|
|
128620
|
+
f = f.parent, Kt.includes(f.type) && f.collapsed && (f.id, e.id);
|
|
128619
128621
|
e.x = 0, e.y = 0, p == null || p.add(
|
|
128620
128622
|
e,
|
|
128621
128623
|
W.Updated
|
|
@@ -128629,10 +128631,10 @@ async function IZi(s, p, i = {}) {
|
|
|
128629
128631
|
for (const e of c) {
|
|
128630
128632
|
if (s.project.diggestedBuiltInBaseEntitiesIds.has(e.id))
|
|
128631
128633
|
continue;
|
|
128632
|
-
let f =
|
|
128633
|
-
if (f && !(
|
|
128634
|
+
let f = Ft(e, s.project);
|
|
128635
|
+
if (f && !(Kt.includes(f.type) && f.collapsed && f.id !== e.id)) {
|
|
128634
128636
|
for (; f.parent && f.parent !== s.project; )
|
|
128635
|
-
f = f.parent,
|
|
128637
|
+
f = f.parent, Kt.includes(f.type) && f.collapsed && (f.id, e.id);
|
|
128636
128638
|
e.x = 0, e.y = 0, p == null || p.add(
|
|
128637
128639
|
e,
|
|
128638
128640
|
W.Updated
|
|
@@ -129563,7 +129565,7 @@ The 'variable-declaration' must be called before any internal call that referenc
|
|
|
129563
129565
|
entity: s
|
|
129564
129566
|
}).error
|
|
129565
129567
|
);
|
|
129566
|
-
const e =
|
|
129568
|
+
const e = Ft(i, s.project), f = Ft(s, s.project);
|
|
129567
129569
|
if ((e == null ? void 0 : e.type) !== d.Project && e && f) {
|
|
129568
129570
|
const m = !!a.find(
|
|
129569
129571
|
(b) => b.id === s.id
|
|
@@ -129593,7 +129595,7 @@ The 'variable-declaration' must be called in the same scope or in a higher scope
|
|
|
129593
129595
|
else if (as(e, f, s.project)) {
|
|
129594
129596
|
let b = f;
|
|
129595
129597
|
for (; b.id !== e.id && b.id !== s.project.id; ) {
|
|
129596
|
-
const A =
|
|
129598
|
+
const A = Ft(b, s.project);
|
|
129597
129599
|
if (A.id === e.id)
|
|
129598
129600
|
break;
|
|
129599
129601
|
b = A;
|
|
@@ -132487,7 +132489,7 @@ The 'variable-declaration' must be called before any internal call that referenc
|
|
|
132487
132489
|
entity: s
|
|
132488
132490
|
}).error
|
|
132489
132491
|
);
|
|
132490
|
-
const e =
|
|
132492
|
+
const e = Ft(i, s.project), f = Ft(s, s.project);
|
|
132491
132493
|
if ((e == null ? void 0 : e.type) !== d.Project && e && f) {
|
|
132492
132494
|
const m = !!a.find(
|
|
132493
132495
|
(b) => b.id === s.id
|
|
@@ -132517,7 +132519,7 @@ The 'variable-declaration' must be called in the same scope or in a higher scope
|
|
|
132517
132519
|
else if (as(e, f, s.project)) {
|
|
132518
132520
|
let b = f;
|
|
132519
132521
|
for (; b.id !== e.id && b.id !== s.project.id; ) {
|
|
132520
|
-
const A =
|
|
132522
|
+
const A = Ft(b, s.project);
|
|
132521
132523
|
if (A.id === e.id)
|
|
132522
132524
|
break;
|
|
132523
132525
|
b = A;
|
|
@@ -138375,7 +138377,7 @@ The entity is ${li(k, { nested: !1 }).lines[0].text}.`, J += "Technically, an im
|
|
|
138375
138377
|
);
|
|
138376
138378
|
}
|
|
138377
138379
|
} else if (Ct.includes(h.type)) {
|
|
138378
|
-
const V = h, B =
|
|
138380
|
+
const V = h, B = Ft(V, r), M = V.getDataType(null), k = (N = eo(
|
|
138379
138381
|
ds(M),
|
|
138380
138382
|
{ removeDuplicates: !0, removeNulls: !0 }
|
|
138381
138383
|
).find((q) => !!q.entity)) == null ? void 0 : N.entity;
|
|
@@ -177353,7 +177355,7 @@ function _6i(s, p) {
|
|
|
177353
177355
|
modifiedData: null,
|
|
177354
177356
|
messageAddition: ""
|
|
177355
177357
|
};
|
|
177356
|
-
if (
|
|
177358
|
+
if (Kt.includes(p.type) ? s.calls && (r.push(
|
|
177357
177359
|
new De({
|
|
177358
177360
|
id: `${p.id}--${Te.InvalidInmutablePropertyOverride}`,
|
|
177359
177361
|
message: `Entity of type "${p.type}" with id "${p.id}" cannot have the property "calls" updated.`,
|
|
@@ -178018,7 +178020,7 @@ All pass-through callable entities are: ${It(
|
|
|
178018
178020
|
", ",
|
|
178019
178021
|
" and "
|
|
178020
178022
|
)}.`, g1 = `Entry point entities are the entities which start the execution of a logic chain. They are ${It(
|
|
178021
|
-
|
|
178023
|
+
Kt,
|
|
178022
178024
|
", ",
|
|
178023
178025
|
" and "
|
|
178024
178026
|
)}. 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. `, dRi = `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(
|
|
@@ -178285,7 +178287,7 @@ async function G6i(s, p, i = !1, r) {
|
|
|
178285
178287
|
(E) => ur.includes(E.type)
|
|
178286
178288
|
).reduce(
|
|
178287
178289
|
(E, A) => {
|
|
178288
|
-
const _ =
|
|
178290
|
+
const _ = Ft(A, s), N = E.find((B) => B.scope.id === (_ == null ? void 0 : _.id));
|
|
178289
178291
|
return N ? (N.callables.push(A), E) : [
|
|
178290
178292
|
..._.type === d.Project ? [{ scope: _, callables: [A] }] : [],
|
|
178291
178293
|
...E,
|
|
@@ -178356,7 +178358,7 @@ async function G6i(s, p, i = !1, r) {
|
|
|
178356
178358
|
}), { explanations: a };
|
|
178357
178359
|
}
|
|
178358
178360
|
let c = tp.SuccessCaller;
|
|
178359
|
-
i ? c = tp.ErrorCaller : p &&
|
|
178361
|
+
i ? c = tp.ErrorCaller : p && Kt.includes(p.type) && (c = tp.EntryPointCaller);
|
|
178360
178362
|
const e = await _1(
|
|
178361
178363
|
p,
|
|
178362
178364
|
c,
|
|
@@ -178392,7 +178394,7 @@ function IRi(s, p) {
|
|
|
178392
178394
|
}, r = [];
|
|
178393
178395
|
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 = [];
|
|
178394
178396
|
const a = [];
|
|
178395
|
-
if (
|
|
178397
|
+
if (Kt.includes(p.type))
|
|
178396
178398
|
a.push(
|
|
178397
178399
|
new De({
|
|
178398
178400
|
id: `${s.id}--${p.id}--${Te.InvalidReference}`,
|
|
@@ -178466,7 +178468,7 @@ For the 'calledBySuccess' property, you specifically need to reference a pass-th
|
|
|
178466
178468
|
}
|
|
178467
178469
|
function gRi(s, p) {
|
|
178468
178470
|
const i = [], r = [];
|
|
178469
|
-
if (
|
|
178471
|
+
if (Kt.includes(p.type))
|
|
178470
178472
|
r.push(
|
|
178471
178473
|
new De({
|
|
178472
178474
|
id: `${s.id}--${p.id}--${Te.InvalidReference}`,
|
|
@@ -178681,14 +178683,14 @@ function wRi(s, p) {
|
|
|
178681
178683
|
message: `Entity of type "${i.type}" with id "${i.id}" has duplicate caller references. Each caller reference should be unique. Duplicate caller reference will be ignored.`
|
|
178682
178684
|
})
|
|
178683
178685
|
);
|
|
178684
|
-
const f =
|
|
178685
|
-
i.type === d.ReturnStatement && f && !
|
|
178686
|
+
const f = Ft(i, p);
|
|
178687
|
+
i.type === d.ReturnStatement && f && !Kt.includes(f.type) ? (a.push(
|
|
178686
178688
|
new De({
|
|
178687
178689
|
id: `${i.id}--${Te.IncompatibleScope}`,
|
|
178688
178690
|
code: Te.IncompatibleScope,
|
|
178689
178691
|
severity: ve.Error,
|
|
178690
178692
|
message: `Entity of type "${i.type}" with id "${i.id}" has an explicitly set parent, but it isn't a '${It(
|
|
178691
|
-
|
|
178693
|
+
Kt,
|
|
178692
178694
|
"', '",
|
|
178693
178695
|
"' or '"
|
|
178694
178696
|
)}' entity. A return statement's parent should always be resolved to a function declaration or global event.`
|
|
@@ -178732,7 +178734,7 @@ function wRi(s, p) {
|
|
|
178732
178734
|
);
|
|
178733
178735
|
return;
|
|
178734
178736
|
}
|
|
178735
|
-
const _ =
|
|
178737
|
+
const _ = Ft(A, p);
|
|
178736
178738
|
if (f)
|
|
178737
178739
|
Ns(
|
|
178738
178740
|
f,
|
|
@@ -178983,7 +178985,7 @@ All value writing entity types are: ${It(
|
|
|
178983
178985
|
)}.`
|
|
178984
178986
|
})
|
|
178985
178987
|
);
|
|
178986
|
-
const r =
|
|
178988
|
+
const r = Ft(s, p.project), a = Ft(
|
|
178987
178989
|
p,
|
|
178988
178990
|
p.project
|
|
178989
178991
|
);
|
|
@@ -179188,7 +179190,7 @@ function B6i(s, p, i = "calledBy") {
|
|
|
179188
179190
|
message: `Entity with id "${s}" referenced in '${i}' property not found in the project. Perhaps it should be created first? Perhaps it is the wrong ID?`
|
|
179189
179191
|
})
|
|
179190
179192
|
), r;
|
|
179191
|
-
if ([..._t, ...
|
|
179193
|
+
if ([..._t, ...Kt].includes(a.type))
|
|
179192
179194
|
return [];
|
|
179193
179195
|
if (Ct.includes(a.type)) {
|
|
179194
179196
|
const c = a.calledBy || [], e = c.length ? `
|
|
@@ -179271,7 +179273,7 @@ Termination entities are ${It(
|
|
|
179271
179273
|
})
|
|
179272
179274
|
);
|
|
179273
179275
|
} else
|
|
179274
|
-
|
|
179276
|
+
Kt.includes(c.type) ? (a.push(
|
|
179275
179277
|
new De({
|
|
179276
179278
|
id: `last-action--${c.id}--${Te.InvalidReference}`,
|
|
179277
179279
|
code: Te.InvalidReference,
|
|
@@ -180521,7 +180523,7 @@ function Z6i(s) {
|
|
|
180521
180523
|
function Y6(s) {
|
|
180522
180524
|
var a, c, e, f;
|
|
180523
180525
|
if (s.type !== d.InternalCall) {
|
|
180524
|
-
if (!
|
|
180526
|
+
if (!Kt.includes(s.parent.type))
|
|
180525
180527
|
return !1;
|
|
180526
180528
|
const h = s.parent;
|
|
180527
180529
|
if (!!h.returnStatements.length)
|
|
@@ -180529,7 +180531,7 @@ function Y6(s) {
|
|
|
180529
180531
|
const b = ((a = h.implements) == null ? void 0 : a.getDataType(null)) || null;
|
|
180530
180532
|
return !(!b || ((c = b.entity) == null ? void 0 : c.id) === ie["primitive-entity"].void.id);
|
|
180531
180533
|
}
|
|
180532
|
-
if (!
|
|
180534
|
+
if (!Kt.includes(s.parent.parent.type))
|
|
180533
180535
|
return !1;
|
|
180534
180536
|
const p = s.parent.parent;
|
|
180535
180537
|
if (!!p.returnStatements.length)
|
|
@@ -180559,7 +180561,7 @@ function w1(s) {
|
|
|
180559
180561
|
}
|
|
180560
180562
|
function $a(s) {
|
|
180561
180563
|
const p = [];
|
|
180562
|
-
if (!ur.includes(s.type) || Ct.includes(s.type) ||
|
|
180564
|
+
if (!ur.includes(s.type) || Ct.includes(s.type) || Kt.includes(s.type) || !Y6(
|
|
180563
180565
|
s
|
|
180564
180566
|
))
|
|
180565
180567
|
return p;
|
|
@@ -197287,7 +197289,7 @@ function NC(s, p, i, r, a = {}) {
|
|
|
197287
197289
|
}
|
|
197288
197290
|
function PC(s, p, i, r, a = {}) {
|
|
197289
197291
|
const c = a.onPrefix ? a.onPrefix(s) : "";
|
|
197290
|
-
if (
|
|
197292
|
+
if (Kt.includes(s.type)) {
|
|
197291
197293
|
s.inputs.length > 0 && (ui(r, p, i, "INPUTS:"), s.inputs.forEach(
|
|
197292
197294
|
(b) => {
|
|
197293
197295
|
const E = a.onPrefix ? a.onPrefix(b) : "", A = kt(
|
|
@@ -197632,13 +197634,13 @@ async function _1(s, p, i = {}) {
|
|
|
197632
197634
|
const ye = ud(
|
|
197633
197635
|
s,
|
|
197634
197636
|
s.project
|
|
197635
|
-
), he =
|
|
197637
|
+
), he = Ft(s, s.project), Ie = ye ? yt(ye).filter(
|
|
197636
197638
|
(Re) => {
|
|
197637
197639
|
var $e;
|
|
197638
197640
|
return Re.id !== s.id && oe.every((Ge) => Ge.callee.id !== Re.id) && ar.includes(Re.type) && // (!PASS_THROUGH_CALLABLE_TYPES.includes(call.type) ||
|
|
197639
197641
|
// (!(call as PassThroughCallableEntityState).successCalls.length &&
|
|
197640
197642
|
// !(call as PassThroughCallableEntityState).errorCalls.length)) &&
|
|
197641
|
-
!z.some((Ge) => Ge.id === Re.id) && (($e =
|
|
197643
|
+
!z.some((Ge) => Ge.id === Re.id) && (($e = Ft(Re, s.project)) == null ? void 0 : $e.id) === (he == null ? void 0 : he.id);
|
|
197642
197644
|
}
|
|
197643
197645
|
) : [];
|
|
197644
197646
|
z.push(...Ie), z = C(
|
|
@@ -197654,7 +197656,7 @@ async function _1(s, p, i = {}) {
|
|
|
197654
197656
|
]);
|
|
197655
197657
|
continue;
|
|
197656
197658
|
}
|
|
197657
|
-
const $e =
|
|
197659
|
+
const $e = Ft(Re, s.project);
|
|
197658
197660
|
if ((s.type === d.ContinueStatement || s.type === d.BreakStatement) && ($e == null ? void 0 : $e.type) !== d.Loop) {
|
|
197659
197661
|
A(Re, [
|
|
197660
197662
|
"continue-or-break-statement-called-from-outside-loop"
|
|
@@ -197738,7 +197740,7 @@ async function _1(s, p, i = {}) {
|
|
|
197738
197740
|
]);
|
|
197739
197741
|
break;
|
|
197740
197742
|
}
|
|
197741
|
-
const Ji =
|
|
197743
|
+
const Ji = Ft(
|
|
197742
197744
|
ti.last,
|
|
197743
197745
|
s.project
|
|
197744
197746
|
);
|
|
@@ -197829,7 +197831,7 @@ async function _1(s, p, i = {}) {
|
|
|
197829
197831
|
}
|
|
197830
197832
|
if (z.includes(Re))
|
|
197831
197833
|
return !1;
|
|
197832
|
-
const $e =
|
|
197834
|
+
const $e = Ft(
|
|
197833
197835
|
Re,
|
|
197834
197836
|
s.project
|
|
197835
197837
|
);
|
|
@@ -197881,7 +197883,7 @@ async function _1(s, p, i = {}) {
|
|
|
197881
197883
|
);
|
|
197882
197884
|
const Y = b.flatMap(
|
|
197883
197885
|
(he) => UC(he)
|
|
197884
|
-
), de =
|
|
197886
|
+
), de = Ft(s, s.project), ue = (de == null ? void 0 : de.type) === d.Project;
|
|
197885
197887
|
let ye = !1;
|
|
197886
197888
|
ue && d.VariableDeclaration !== h.type && !se.calledBy.length && (ye = !0), i.allowReadWriteToFixableScope && [
|
|
197887
197889
|
...ye ? await ACi(s.project, { tracker: r }) : await ICi(s.project, {
|
|
@@ -197893,9 +197895,9 @@ async function _1(s, p, i = {}) {
|
|
|
197893
197895
|
].forEach((Ie) => {
|
|
197894
197896
|
if (Y.includes(Ie))
|
|
197895
197897
|
return;
|
|
197896
|
-
const Re = RN(Ie), $e =
|
|
197898
|
+
const Re = RN(Ie), $e = Ft(Ie, s.project), Ge = [];
|
|
197897
197899
|
if ($e && se.type === d.VariableDeclaration && !se.variableInstances.every((ke) => {
|
|
197898
|
-
const Ze =
|
|
197900
|
+
const Ze = Ft(ke, s.project);
|
|
197899
197901
|
return !!Ze && (as(
|
|
197900
197902
|
$e,
|
|
197901
197903
|
Ze,
|
|
@@ -197911,7 +197913,7 @@ async function _1(s, p, i = {}) {
|
|
|
197911
197913
|
], Ze = se.calledBy.some(
|
|
197912
197914
|
(Ke) => {
|
|
197913
197915
|
var et;
|
|
197914
|
-
return ((et =
|
|
197916
|
+
return ((et = Ft(Ke, s.project)) == null ? void 0 : et.id) !== ($e == null ? void 0 : $e.id);
|
|
197915
197917
|
}
|
|
197916
197918
|
);
|
|
197917
197919
|
!Ze && ke.length === 0 && !Ge.length ? (e[Ie.id] = {
|
|
@@ -197984,7 +197986,7 @@ async function _1(s, p, i = {}) {
|
|
|
197984
197986
|
]);
|
|
197985
197987
|
return;
|
|
197986
197988
|
}
|
|
197987
|
-
const de =
|
|
197989
|
+
const de = Ft(z, s.project);
|
|
197988
197990
|
if (((ue = s.parent) == null ? void 0 : ue.type) === d.Loop && (de == null ? void 0 : de.type) !== d.Loop) {
|
|
197989
197991
|
A(z, [
|
|
197990
197992
|
"element-in-loop-body-calling-outside-loop"
|
|
@@ -198002,7 +198004,7 @@ async function _1(s, p, i = {}) {
|
|
|
198002
198004
|
}), yt(s).forEach((z) => {
|
|
198003
198005
|
if (z.id === s.id || m.includes(z) || b.includes(z))
|
|
198004
198006
|
return !1;
|
|
198005
|
-
const Y =
|
|
198007
|
+
const Y = Ft(
|
|
198006
198008
|
z,
|
|
198007
198009
|
s.project
|
|
198008
198010
|
);
|
|
@@ -198028,9 +198030,9 @@ async function _1(s, p, i = {}) {
|
|
|
198028
198030
|
].filter((z) => !z.calledBy.length);
|
|
198029
198031
|
for (const z of oe) {
|
|
198030
198032
|
if (await r.tick(), z.type === d.VariableDeclaration) {
|
|
198031
|
-
const Y =
|
|
198033
|
+
const Y = Ft(s, s.project), de = (Y == null ? void 0 : Y.type) === d.Project;
|
|
198032
198034
|
if (Y && !z.variableInstances.every((ue) => {
|
|
198033
|
-
const ye =
|
|
198035
|
+
const ye = Ft(ue, s.project);
|
|
198034
198036
|
return de || !!ye && as(
|
|
198035
198037
|
Y,
|
|
198036
198038
|
ye,
|
|
@@ -198077,7 +198079,7 @@ async function _1(s, p, i = {}) {
|
|
|
198077
198079
|
/* SiblingInternalCallAlreadyUsedInParentVariable */
|
|
198078
198080
|
]);
|
|
198079
198081
|
});
|
|
198080
|
-
const ue =
|
|
198082
|
+
const ue = Ft(s, s.project);
|
|
198081
198083
|
oe.forEach((ye) => {
|
|
198082
198084
|
if ([
|
|
198083
198085
|
...s.successCalls || []
|
|
@@ -198088,7 +198090,7 @@ async function _1(s, p, i = {}) {
|
|
|
198088
198090
|
]);
|
|
198089
198091
|
return;
|
|
198090
198092
|
}
|
|
198091
|
-
const Ie =
|
|
198093
|
+
const Ie = Ft(ye, s.project);
|
|
198092
198094
|
if (ue !== Ie) {
|
|
198093
198095
|
A(ye, [
|
|
198094
198096
|
"other-incompatible-scope-reason"
|
|
@@ -198165,7 +198167,7 @@ async function _1(s, p, i = {}) {
|
|
|
198165
198167
|
/* CannotBeCalledBeforeDeclaration */
|
|
198166
198168
|
]), b.includes(ye))
|
|
198167
198169
|
continue;
|
|
198168
|
-
const $e =
|
|
198170
|
+
const $e = Ft(
|
|
198169
198171
|
ye,
|
|
198170
198172
|
s.project
|
|
198171
198173
|
);
|
|
@@ -198275,9 +198277,9 @@ async function _1(s, p, i = {}) {
|
|
|
198275
198277
|
].filter((he) => !he.calledBy.length);
|
|
198276
198278
|
for (const he of ye) {
|
|
198277
198279
|
if (await r.tick(), he.type === d.VariableDeclaration) {
|
|
198278
|
-
const Ie =
|
|
198280
|
+
const Ie = Ft(s, s.project), Re = (Ie == null ? void 0 : Ie.type) === d.Project;
|
|
198279
198281
|
if (Ie && !he.variableInstances.every(($e) => {
|
|
198280
|
-
const Ge =
|
|
198282
|
+
const Ge = Ft($e, s.project);
|
|
198281
198283
|
return Re || !!Ge && as(
|
|
198282
198284
|
Ie,
|
|
198283
198285
|
Ge,
|
|
@@ -198331,7 +198333,7 @@ async function _1(s, p, i = {}) {
|
|
|
198331
198333
|
/* CannotCallAncestor */
|
|
198332
198334
|
]
|
|
198333
198335
|
);
|
|
198334
|
-
const oe =
|
|
198336
|
+
const oe = Ft(s, s.project);
|
|
198335
198337
|
m.forEach((z) => {
|
|
198336
198338
|
if ([
|
|
198337
198339
|
...s.errorCalls || []
|
|
@@ -198342,7 +198344,7 @@ async function _1(s, p, i = {}) {
|
|
|
198342
198344
|
]);
|
|
198343
198345
|
return;
|
|
198344
198346
|
}
|
|
198345
|
-
const de =
|
|
198347
|
+
const de = Ft(z, s.project);
|
|
198346
198348
|
if (oe !== de) {
|
|
198347
198349
|
A(z, [
|
|
198348
198350
|
"other-incompatible-scope-reason"
|
|
@@ -198408,7 +198410,7 @@ async function _1(s, p, i = {}) {
|
|
|
198408
198410
|
/* CannotBeCalledBeforeDeclaration */
|
|
198409
198411
|
]), b.includes(z))
|
|
198410
198412
|
continue;
|
|
198411
|
-
const ye =
|
|
198413
|
+
const ye = Ft(
|
|
198412
198414
|
z,
|
|
198413
198415
|
s.project
|
|
198414
198416
|
);
|
|
@@ -198491,9 +198493,9 @@ async function _1(s, p, i = {}) {
|
|
|
198491
198493
|
].filter((Y) => !Y.calledBy.length);
|
|
198492
198494
|
for (const Y of z) {
|
|
198493
198495
|
if (await r.tick(), Y.type === d.VariableDeclaration) {
|
|
198494
|
-
const de =
|
|
198496
|
+
const de = Ft(s, s.project), ue = (de == null ? void 0 : de.type) === d.Project;
|
|
198495
198497
|
if (de && !Y.variableInstances.every((ye) => {
|
|
198496
|
-
const he =
|
|
198498
|
+
const he = Ft(ye, s.project);
|
|
198497
198499
|
return ue || !!he && as(
|
|
198498
198500
|
de,
|
|
198499
198501
|
he,
|
|
@@ -198583,7 +198585,7 @@ async function _1(s, p, i = {}) {
|
|
|
198583
198585
|
}
|
|
198584
198586
|
);
|
|
198585
198587
|
if (i.allowReadWriteToFixableScope) {
|
|
198586
|
-
const ue =
|
|
198588
|
+
const ue = Ft(s, s.project), ye = Wu(s);
|
|
198587
198589
|
[
|
|
198588
198590
|
...await gCi(s.project, {
|
|
198589
198591
|
tracker: r
|
|
@@ -198598,7 +198600,7 @@ async function _1(s, p, i = {}) {
|
|
|
198598
198600
|
return;
|
|
198599
198601
|
const Re = yf(Ie), $e = [];
|
|
198600
198602
|
if (ue && (Re == null ? void 0 : Re.type) === d.VariableDeclaration && !Re.variableInstances.every((Ge) => {
|
|
198601
|
-
const ke =
|
|
198603
|
+
const ke = Ft(Ge, s.project);
|
|
198602
198604
|
return !!ke && (as(
|
|
198603
198605
|
ue,
|
|
198604
198606
|
ke,
|
|
@@ -198614,7 +198616,7 @@ async function _1(s, p, i = {}) {
|
|
|
198614
198616
|
], ke = Re.calledBy.some(
|
|
198615
198617
|
(Ze) => {
|
|
198616
198618
|
var Ke;
|
|
198617
|
-
return ((Ke =
|
|
198619
|
+
return ((Ke = Ft(Ze, s.project)) == null ? void 0 : Ke.id) !== (ue == null ? void 0 : ue.id);
|
|
198618
198620
|
}
|
|
198619
198621
|
);
|
|
198620
198622
|
!ke && !Ge.length && !$e.length ? (e[Ie.id] = {
|
|
@@ -198820,7 +198822,7 @@ async function D5i(s, p, i, r, a, c) {
|
|
|
198820
198822
|
const h = a.compatible[f.id];
|
|
198821
198823
|
if (h && h.requiresCallConnectionToFrom && h.requiresCallConnectionTo) {
|
|
198822
198824
|
const m = h.requiresCallConnectionToFrom, b = h.requiresCallConnectionTo;
|
|
198823
|
-
if (
|
|
198825
|
+
if (Kt.includes(m.type) ? (m.addCall(
|
|
198824
198826
|
b,
|
|
198825
198827
|
r
|
|
198826
198828
|
), b.addEntryCaller(
|
|
@@ -198924,7 +198926,7 @@ function C5i(s, p, i, r) {
|
|
|
198924
198926
|
return;
|
|
198925
198927
|
}
|
|
198926
198928
|
case "called-by": {
|
|
198927
|
-
ar.includes(s.type) && ur.includes(p.type) && (
|
|
198929
|
+
ar.includes(s.type) && ur.includes(p.type) && (Kt.includes(s.type) ? (s.addCall(
|
|
198928
198930
|
p,
|
|
198929
198931
|
r
|
|
198930
198932
|
), p.addEntryCaller(
|
|
@@ -198943,7 +198945,7 @@ function C5i(s, p, i, r) {
|
|
|
198943
198945
|
return;
|
|
198944
198946
|
}
|
|
198945
198947
|
case "entry-point-caller": {
|
|
198946
|
-
if (
|
|
198948
|
+
if (Kt.includes(s.type) && ur.includes(p.type) && (s.addCall(
|
|
198947
198949
|
p,
|
|
198948
198950
|
r
|
|
198949
198951
|
), p.addEntryCaller(
|
|
@@ -199117,7 +199119,9 @@ function ml(s, p) {
|
|
|
199117
199119
|
return {
|
|
199118
199120
|
list: i.flatMap((e) => {
|
|
199119
199121
|
if (e === p)
|
|
199120
|
-
return r = e,
|
|
199122
|
+
return r = e, Kt.includes(e.type) ? e.parent.type === d.Loop ? a = "loop-body" : a = "entry" : e.successCalls.includes(s) ? a = "success" : e.errorCalls.includes(
|
|
199123
|
+
s
|
|
199124
|
+
) && (a = "error"), [e];
|
|
199121
199125
|
if (e.type === d.FunctionDeclaration && e.parent.type === d.Loop && e.parent === p)
|
|
199122
199126
|
return r = e.parent, a = "loop-body", [e];
|
|
199123
199127
|
if (!ur.includes(e.type))
|
|
@@ -199141,20 +199145,24 @@ function O5i(s, p) {
|
|
|
199141
199145
|
(a) => a.callee === p
|
|
199142
199146
|
))
|
|
199143
199147
|
return null;
|
|
199144
|
-
if (
|
|
199148
|
+
if (Kt.includes(s.type)) {
|
|
199145
199149
|
if (s.calls.includes(p))
|
|
199146
199150
|
return s.type === d.Loop ? "loop-body" : "entry";
|
|
199147
199151
|
} else if (_t.includes(s.type) && s.type !== d.InternalCall) {
|
|
199148
|
-
if (s.successCalls.includes(
|
|
199152
|
+
if (s.successCalls.includes(
|
|
199153
|
+
p
|
|
199154
|
+
))
|
|
199149
199155
|
return "success";
|
|
199150
|
-
if (s.errorCalls.includes(
|
|
199156
|
+
if (s.errorCalls.includes(
|
|
199157
|
+
p
|
|
199158
|
+
))
|
|
199151
199159
|
return "error";
|
|
199152
199160
|
}
|
|
199153
199161
|
return null;
|
|
199154
199162
|
}
|
|
199155
199163
|
function zA(s) {
|
|
199156
|
-
const p =
|
|
199157
|
-
return p ?
|
|
199164
|
+
const p = Ft(s, s.project);
|
|
199165
|
+
return p ? Kt.includes(p.type) ? p : p.type === d.Loop ? p.body : null : null;
|
|
199158
199166
|
}
|
|
199159
199167
|
function $Di(s, p) {
|
|
199160
199168
|
const i = s.calledBy;
|
|
@@ -199197,7 +199205,10 @@ function Kc(s) {
|
|
|
199197
199205
|
);
|
|
199198
199206
|
return [
|
|
199199
199207
|
...c,
|
|
199200
|
-
{
|
|
199208
|
+
{
|
|
199209
|
+
caller: e,
|
|
199210
|
+
callType: "success"
|
|
199211
|
+
},
|
|
199201
199212
|
...f
|
|
199202
199213
|
];
|
|
199203
199214
|
}
|
|
@@ -199212,7 +199223,10 @@ function Kc(s) {
|
|
|
199212
199223
|
);
|
|
199213
199224
|
return [
|
|
199214
199225
|
...c,
|
|
199215
|
-
{
|
|
199226
|
+
{
|
|
199227
|
+
caller: e,
|
|
199228
|
+
callType: "error"
|
|
199229
|
+
},
|
|
199216
199230
|
...f
|
|
199217
199231
|
];
|
|
199218
199232
|
}
|
|
@@ -199253,7 +199267,11 @@ function GDi(s) {
|
|
|
199253
199267
|
ancestor: null,
|
|
199254
199268
|
callType: null
|
|
199255
199269
|
};
|
|
199256
|
-
const r = p.filter((c) => !(c === s || !ar.includes(c.type) || !yt(
|
|
199270
|
+
const r = p.filter((c) => !(c === s || !ar.includes(c.type) || !yt(
|
|
199271
|
+
c
|
|
199272
|
+
).find(
|
|
199273
|
+
(h) => h === s
|
|
199274
|
+
))).filter(
|
|
199257
199275
|
// Filter out duplicate callers
|
|
199258
199276
|
(c, e, f) => f.findIndex((h) => h === c) === e
|
|
199259
199277
|
).filter((c) => $Di(
|
|
@@ -199261,8 +199279,12 @@ function GDi(s) {
|
|
|
199261
199279
|
c
|
|
199262
199280
|
)), a = r.filter(
|
|
199263
199281
|
(c) => {
|
|
199264
|
-
const e = yt(
|
|
199265
|
-
|
|
199282
|
+
const e = yt(
|
|
199283
|
+
c
|
|
199284
|
+
), f = r.filter((m) => m !== c).map((m) => m);
|
|
199285
|
+
return !e.some((m) => !!f.find(
|
|
199286
|
+
(E) => E === m
|
|
199287
|
+
));
|
|
199266
199288
|
}
|
|
199267
199289
|
);
|
|
199268
199290
|
if (a.length === 0)
|
|
@@ -199278,7 +199300,7 @@ function GDi(s) {
|
|
|
199278
199300
|
ancestor: c,
|
|
199279
199301
|
callType: "loop-body"
|
|
199280
199302
|
};
|
|
199281
|
-
} else if (
|
|
199303
|
+
} else if (Kt.includes(c.type)) {
|
|
199282
199304
|
if (c.calls.includes(s))
|
|
199283
199305
|
return c.type === d.FunctionDeclaration && c.parent.type === d.Loop ? {
|
|
199284
199306
|
ancestor: c,
|
|
@@ -199288,16 +199310,12 @@ function GDi(s) {
|
|
|
199288
199310
|
callType: "entry"
|
|
199289
199311
|
};
|
|
199290
199312
|
} else if (_t.includes(c.type)) {
|
|
199291
|
-
if (c.successCalls.includes(
|
|
199292
|
-
s
|
|
199293
|
-
))
|
|
199313
|
+
if (c.successCalls.includes(s))
|
|
199294
199314
|
return {
|
|
199295
199315
|
ancestor: c,
|
|
199296
199316
|
callType: "success"
|
|
199297
199317
|
};
|
|
199298
|
-
if (c.errorCalls.includes(
|
|
199299
|
-
s
|
|
199300
|
-
))
|
|
199318
|
+
if (c.errorCalls.includes(s))
|
|
199301
199319
|
return {
|
|
199302
199320
|
ancestor: c,
|
|
199303
199321
|
callType: "error"
|
|
@@ -199359,7 +199377,13 @@ function BDi(s, p, i) {
|
|
|
199359
199377
|
`[findNextCombinedSingleCallerAncestor] Invalid 'from' ${i.type} -- ${i.id} argument, doesn't contain 'targetB' entity ${p.type} -- ${p.id}`
|
|
199360
199378
|
);
|
|
199361
199379
|
}
|
|
199362
|
-
const a = ud(
|
|
199380
|
+
const a = ud(
|
|
199381
|
+
s,
|
|
199382
|
+
s.project
|
|
199383
|
+
), c = ud(
|
|
199384
|
+
p,
|
|
199385
|
+
p.project
|
|
199386
|
+
);
|
|
199363
199387
|
if ((a == null ? void 0 : a.id) !== (c == null ? void 0 : c.id))
|
|
199364
199388
|
return r;
|
|
199365
199389
|
if (!a)
|
|
@@ -199367,7 +199391,7 @@ function BDi(s, p, i) {
|
|
|
199367
199391
|
ancestor: null,
|
|
199368
199392
|
callType: null
|
|
199369
199393
|
};
|
|
199370
|
-
const e =
|
|
199394
|
+
const e = Ft(s, s.project), f = Ft(p, p.project);
|
|
199371
199395
|
if (!e)
|
|
199372
199396
|
throw new Error(
|
|
199373
199397
|
`[findNextCombinedSingleCallerAncestor] Invalid 'targetA' argument, doesn't have a scope owner: ${s.type} -- ${s.id}`
|
|
@@ -199537,10 +199561,12 @@ function Uy(s, p, i = !1) {
|
|
|
199537
199561
|
"findNextSingleCallerAncestor: Target is not defined, cannot find ancestor."
|
|
199538
199562
|
);
|
|
199539
199563
|
let r = s;
|
|
199540
|
-
(s.type === d.VariableDeclaration || s.type === d.VariableInstance) && !s.calledBy.length && !s.successCalls.length && !s.errorCalls.length && s.internalCalls.some(
|
|
199564
|
+
(s.type === d.VariableDeclaration || s.type === d.VariableInstance) && !s.calledBy.length && !s.successCalls.length && !s.errorCalls.length && s.internalCalls.some(
|
|
199565
|
+
(k) => !!k.calledBy.length
|
|
199566
|
+
) && (r = s.internalCalls.find(
|
|
199541
199567
|
(q) => !!q.calledBy.length
|
|
199542
199568
|
));
|
|
199543
|
-
const a =
|
|
199569
|
+
const a = Ft(r, s.project);
|
|
199544
199570
|
let c = p || a;
|
|
199545
199571
|
if (!c)
|
|
199546
199572
|
return {
|
|
@@ -199573,7 +199599,7 @@ function Uy(s, p, i = !1) {
|
|
|
199573
199599
|
ancestor: k,
|
|
199574
199600
|
callType: "loop-body"
|
|
199575
199601
|
};
|
|
199576
|
-
if (
|
|
199602
|
+
if (Kt.includes(k.type))
|
|
199577
199603
|
return k.type === d.FunctionDeclaration && k.parent.type === d.Loop ? {
|
|
199578
199604
|
ancestor: k.parent,
|
|
199579
199605
|
callType: "loop-body"
|
|
@@ -199582,16 +199608,12 @@ function Uy(s, p, i = !1) {
|
|
|
199582
199608
|
callType: "entry"
|
|
199583
199609
|
};
|
|
199584
199610
|
if (_t.includes(k.type)) {
|
|
199585
|
-
if (k.successCalls.includes(
|
|
199586
|
-
r
|
|
199587
|
-
))
|
|
199611
|
+
if (k.successCalls.includes(r))
|
|
199588
199612
|
return {
|
|
199589
199613
|
ancestor: k,
|
|
199590
199614
|
callType: "success"
|
|
199591
199615
|
};
|
|
199592
|
-
if (k.errorCalls.includes(
|
|
199593
|
-
r
|
|
199594
|
-
))
|
|
199616
|
+
if (k.errorCalls.includes(r))
|
|
199595
199617
|
return {
|
|
199596
199618
|
ancestor: k,
|
|
199597
199619
|
callType: "error"
|
|
@@ -199621,8 +199643,10 @@ function Uy(s, p, i = !1) {
|
|
|
199621
199643
|
ancestor: c,
|
|
199622
199644
|
callType: "loop-body"
|
|
199623
199645
|
};
|
|
199624
|
-
} else if (
|
|
199625
|
-
if (c.calls.includes(
|
|
199646
|
+
} else if (Kt.includes(c.type)) {
|
|
199647
|
+
if (c.calls.includes(
|
|
199648
|
+
r
|
|
199649
|
+
))
|
|
199626
199650
|
return c.type === d.FunctionDeclaration && c.parent.type === d.Loop ? {
|
|
199627
199651
|
ancestor: c.parent,
|
|
199628
199652
|
callType: "loop-body"
|
|
@@ -199631,16 +199655,12 @@ function Uy(s, p, i = !1) {
|
|
|
199631
199655
|
callType: "entry"
|
|
199632
199656
|
};
|
|
199633
199657
|
} else if (_t.includes(c.type) && r.calledBy.length === 1) {
|
|
199634
|
-
if (c.successCalls.includes(
|
|
199635
|
-
r
|
|
199636
|
-
))
|
|
199658
|
+
if (c.successCalls.includes(r))
|
|
199637
199659
|
return {
|
|
199638
199660
|
ancestor: c,
|
|
199639
199661
|
callType: "success"
|
|
199640
199662
|
};
|
|
199641
|
-
if (c.errorCalls.includes(
|
|
199642
|
-
r
|
|
199643
|
-
))
|
|
199663
|
+
if (c.errorCalls.includes(r))
|
|
199644
199664
|
return {
|
|
199645
199665
|
ancestor: c,
|
|
199646
199666
|
callType: "error"
|
|
@@ -199678,8 +199698,10 @@ function Uy(s, p, i = !1) {
|
|
|
199678
199698
|
};
|
|
199679
199699
|
const A = E.filter(
|
|
199680
199700
|
(k) => {
|
|
199681
|
-
const q = E.filter((re) => re !== k).map(
|
|
199682
|
-
|
|
199701
|
+
const q = E.filter((re) => re !== k).map(
|
|
199702
|
+
(re) => re.callee
|
|
199703
|
+
);
|
|
199704
|
+
return Kt.includes(k.callee.type) && k.callee.calls.length === 1 && q.find(
|
|
199683
199705
|
(re) => re === k.callee.calls[0]
|
|
199684
199706
|
) || _t.includes(k.callee.type) && k.callee.successCalls.length === 1 && q.find(
|
|
199685
199707
|
(re) => {
|
|
@@ -199714,7 +199736,7 @@ function Uy(s, p, i = !1) {
|
|
|
199714
199736
|
callType: "loop-body"
|
|
199715
199737
|
};
|
|
199716
199738
|
} else {
|
|
199717
|
-
if (
|
|
199739
|
+
if (Kt.includes(k.callee.type))
|
|
199718
199740
|
return k.callee.type === d.FunctionDeclaration && k.callee.parent.type === d.Loop ? {
|
|
199719
199741
|
ancestor: k.callee.parent,
|
|
199720
199742
|
callType: "loop-body"
|
|
@@ -199822,7 +199844,7 @@ function _5i(s) {
|
|
|
199822
199844
|
});
|
|
199823
199845
|
if (r.length === 1) {
|
|
199824
199846
|
const f = r[0];
|
|
199825
|
-
if (
|
|
199847
|
+
if (Kt.includes(f.type))
|
|
199826
199848
|
return f.parent.type === d.Loop ? {
|
|
199827
199849
|
ancestor: f.parent,
|
|
199828
199850
|
callType: "loop-body"
|
|
@@ -199842,7 +199864,9 @@ function _5i(s) {
|
|
|
199842
199864
|
ancestor: f,
|
|
199843
199865
|
callType: "success"
|
|
199844
199866
|
};
|
|
199845
|
-
if (f.errorCalls.includes(
|
|
199867
|
+
if (f.errorCalls.includes(
|
|
199868
|
+
p
|
|
199869
|
+
))
|
|
199846
199870
|
return {
|
|
199847
199871
|
ancestor: f,
|
|
199848
199872
|
callType: "error"
|
|
@@ -199856,7 +199880,7 @@ function _5i(s) {
|
|
|
199856
199880
|
}
|
|
199857
199881
|
const a = r.map((f) => {
|
|
199858
199882
|
var m;
|
|
199859
|
-
if (
|
|
199883
|
+
if (Kt.includes(f.type))
|
|
199860
199884
|
return f.parent.type === d.Loop ? {
|
|
199861
199885
|
ancestor: f.parent,
|
|
199862
199886
|
callType: "loop-body"
|
|
@@ -199899,13 +199923,17 @@ function _5i(s) {
|
|
|
199899
199923
|
return h;
|
|
199900
199924
|
}).filter(
|
|
199901
199925
|
// Filter out duplicates
|
|
199902
|
-
(f, h, m) => h === m.findIndex(
|
|
199903
|
-
|
|
199904
|
-
|
|
199905
|
-
|
|
199926
|
+
(f, h, m) => h === m.findIndex(
|
|
199927
|
+
(b) => {
|
|
199928
|
+
var E, A;
|
|
199929
|
+
return ((E = b.ancestor) == null ? void 0 : E.id) === ((A = f.ancestor) == null ? void 0 : A.id);
|
|
199930
|
+
}
|
|
199931
|
+
)
|
|
199906
199932
|
), c = zA(p), e = a.filter((f) => f != null && f.ancestor ? c === f.ancestor ? !0 : !a.filter(
|
|
199907
199933
|
(b) => b.ancestor !== f.ancestor
|
|
199908
|
-
).map(
|
|
199934
|
+
).map(
|
|
199935
|
+
(b) => b.ancestor
|
|
199936
|
+
).some((b) => {
|
|
199909
199937
|
const E = ml(
|
|
199910
199938
|
f.ancestor,
|
|
199911
199939
|
b
|
|
@@ -199940,7 +199968,7 @@ function MDi(s, p) {
|
|
|
199940
199968
|
if (yt(s).includes(p) || !yt(p).includes(s))
|
|
199941
199969
|
return !1;
|
|
199942
199970
|
const a = s.calledBy;
|
|
199943
|
-
return a.length === 0 ? !1 : a.length === 1 ? a[0] === p : LDi(a).length > 1 && a.includes(p) ? !1 : a.every((e) => s === p ? !0 :
|
|
199971
|
+
return a.length === 0 ? !1 : a.length === 1 ? a[0] === p : LDi(a).length > 1 && a.includes(p) ? !1 : a.every((e) => s === p ? !0 : Kt.includes(e.type) ? !1 : MDi(
|
|
199944
199972
|
e,
|
|
199945
199973
|
p
|
|
199946
199974
|
));
|
|
@@ -200014,7 +200042,7 @@ function yA(s) {
|
|
|
200014
200042
|
return s.project;
|
|
200015
200043
|
const i = p.reduce(
|
|
200016
200044
|
(r, a) => {
|
|
200017
|
-
const c =
|
|
200045
|
+
const c = Ft(a, s.project);
|
|
200018
200046
|
return !c || c.type === d.Project ? r : r.type === d.Project || MT(
|
|
200019
200047
|
c,
|
|
200020
200048
|
r
|
|
@@ -200040,7 +200068,10 @@ function Rt(s, p) {
|
|
|
200040
200068
|
s.project
|
|
200041
200069
|
);
|
|
200042
200070
|
!a.compatible && // We want to allow the global variable declaration to be used in any scope
|
|
200043
|
-
a.type !== "b-is-global-a-is-not" ? s.parent.remove({ ignoreUpstream: !1 }, p) : (s.parent.setParent(
|
|
200071
|
+
a.type !== "b-is-global-a-is-not" ? s.parent.remove({ ignoreUpstream: !1 }, p) : (s.parent.setParent(
|
|
200072
|
+
i,
|
|
200073
|
+
p
|
|
200074
|
+
), s.parent.addSelfToProject(p));
|
|
200044
200075
|
} else
|
|
200045
200076
|
s.parent.setParent(i, p), s.parent.addSelfToProject(p);
|
|
200046
200077
|
else if ((s.type === d.ContinueStatement || s.type === d.BreakStatement) && i.type !== d.Loop) {
|
|
@@ -200061,7 +200092,10 @@ function Rt(s, p) {
|
|
|
200061
200092
|
!c.compatible && // We want to allow the global variable declaration to be used in any scope
|
|
200062
200093
|
c.type !== "b-is-global-a-is-not" ? s.remove({ ignoreUpstream: !1 }, p) : (s.setParent(i, p), s.addSelfToProject(p));
|
|
200063
200094
|
} else
|
|
200064
|
-
s.setParent(
|
|
200095
|
+
s.setParent(
|
|
200096
|
+
i,
|
|
200097
|
+
p
|
|
200098
|
+
), s.addSelfToProject(p);
|
|
200065
200099
|
else if (s.type === d.VariableInstance) {
|
|
200066
200100
|
const c = Ns(
|
|
200067
200101
|
i,
|
|
@@ -200086,7 +200120,10 @@ function Rt(s, p) {
|
|
|
200086
200120
|
s.project
|
|
200087
200121
|
);
|
|
200088
200122
|
!e.compatible && // We want to allow the global variable declaration to be used in any scope
|
|
200089
|
-
e.type !== "b-is-global-a-is-not" ? a.parent.remove(
|
|
200123
|
+
e.type !== "b-is-global-a-is-not" ? a.parent.remove(
|
|
200124
|
+
{ ignoreUpstream: !1 },
|
|
200125
|
+
p
|
|
200126
|
+
) : (a.parent.setParent(
|
|
200090
200127
|
c,
|
|
200091
200128
|
p
|
|
200092
200129
|
), a.parent.addSelfToProject(p));
|
|
@@ -200098,7 +200135,9 @@ function Rt(s, p) {
|
|
|
200098
200135
|
else if ((a.type === d.ContinueStatement || a.type === d.BreakStatement) && c.type !== d.Loop) {
|
|
200099
200136
|
a.remove({ ignoreUpstream: !1 }, p);
|
|
200100
200137
|
return;
|
|
200101
|
-
} else if (a.type === d.ReturnStatement && !_r.includes(
|
|
200138
|
+
} else if (a.type === d.ReturnStatement && !_r.includes(
|
|
200139
|
+
c.type
|
|
200140
|
+
)) {
|
|
200102
200141
|
a.remove({ ignoreUpstream: !1 }, p);
|
|
200103
200142
|
return;
|
|
200104
200143
|
} else if (Ut.includes(a.type)) {
|
|
@@ -200111,7 +200150,10 @@ function Rt(s, p) {
|
|
|
200111
200150
|
s.project
|
|
200112
200151
|
);
|
|
200113
200152
|
!f.compatible && // We want to allow the global variable declaration to be used in any scope
|
|
200114
|
-
f.type !== "b-is-global-a-is-not" ? a.remove({ ignoreUpstream: !1 }, p) : (a.setParent(
|
|
200153
|
+
f.type !== "b-is-global-a-is-not" ? a.remove({ ignoreUpstream: !1 }, p) : (a.setParent(
|
|
200154
|
+
c,
|
|
200155
|
+
p
|
|
200156
|
+
), a.addSelfToProject(p));
|
|
200115
200157
|
} else
|
|
200116
200158
|
a.setParent(
|
|
200117
200159
|
c,
|
|
@@ -200124,7 +200166,10 @@ function Rt(s, p) {
|
|
|
200124
200166
|
s.project
|
|
200125
200167
|
);
|
|
200126
200168
|
!f.compatible && // We want to allow the global variable declaration to be used in any scope
|
|
200127
|
-
f.type !== "b-is-global-a-is-not" ? a.remove({ ignoreUpstream: !1 }, p) : (a.setParent(
|
|
200169
|
+
f.type !== "b-is-global-a-is-not" ? a.remove({ ignoreUpstream: !1 }, p) : (a.setParent(
|
|
200170
|
+
c,
|
|
200171
|
+
p
|
|
200172
|
+
), a.addSelfToProject(p));
|
|
200128
200173
|
} else
|
|
200129
200174
|
a.setParent(
|
|
200130
200175
|
c,
|
|
@@ -200159,7 +200204,9 @@ function LC(s, p) {
|
|
|
200159
200204
|
}
|
|
200160
200205
|
function I5(s, p) {
|
|
200161
200206
|
if (!s || !p)
|
|
200162
|
-
throw new Error(
|
|
200207
|
+
throw new Error(
|
|
200208
|
+
"Both entities must be defined to find a common ancestor"
|
|
200209
|
+
);
|
|
200163
200210
|
if (s === p)
|
|
200164
200211
|
return s;
|
|
200165
200212
|
const i = s.parent;
|
|
@@ -200182,7 +200229,9 @@ function I5(s, p) {
|
|
|
200182
200229
|
}
|
|
200183
200230
|
function V5i(s, p, i = !0) {
|
|
200184
200231
|
if (!s || !p)
|
|
200185
|
-
throw new Error(
|
|
200232
|
+
throw new Error(
|
|
200233
|
+
"Both entities must be defined to find a common ancestor"
|
|
200234
|
+
);
|
|
200186
200235
|
if (s === p)
|
|
200187
200236
|
return {
|
|
200188
200237
|
ancestor: s,
|
|
@@ -200319,7 +200368,10 @@ function Sc(s, p) {
|
|
|
200319
200368
|
return null;
|
|
200320
200369
|
if (sh.includes(i.type)) {
|
|
200321
200370
|
if (i.type === d.FunctionDeclaration) {
|
|
200322
|
-
const r = hT(
|
|
200371
|
+
const r = hT(
|
|
200372
|
+
i.parent,
|
|
200373
|
+
p
|
|
200374
|
+
);
|
|
200323
200375
|
if (r) {
|
|
200324
200376
|
if (r.type === d.DefinitionEntity)
|
|
200325
200377
|
return r;
|
|
@@ -200336,7 +200388,10 @@ function Sc(s, p) {
|
|
|
200336
200388
|
// To represent dynamically inferred data-types, in which case,
|
|
200337
200389
|
// they are not canvas entities, but we can still find their parent canvas entity as usual
|
|
200338
200390
|
(i.type === d.DefinitionEntity && r.type === d.DataType || i.type === d.Condition && r.type === d.Condition))
|
|
200339
|
-
return Sc(
|
|
200391
|
+
return Sc(
|
|
200392
|
+
r,
|
|
200393
|
+
p
|
|
200394
|
+
);
|
|
200340
200395
|
}
|
|
200341
200396
|
return i;
|
|
200342
200397
|
} else {
|
|
@@ -200351,14 +200406,18 @@ function Sc(s, p) {
|
|
|
200351
200406
|
function mn(s) {
|
|
200352
200407
|
if (s.type === d.Loop) {
|
|
200353
200408
|
const p = [
|
|
200354
|
-
...Un(s.successCalls).map(
|
|
200355
|
-
|
|
200356
|
-
|
|
200357
|
-
|
|
200358
|
-
|
|
200359
|
-
|
|
200360
|
-
|
|
200361
|
-
|
|
200409
|
+
...Un(s.successCalls).map(
|
|
200410
|
+
(a) => ({
|
|
200411
|
+
callee: a,
|
|
200412
|
+
callType: "success"
|
|
200413
|
+
})
|
|
200414
|
+
),
|
|
200415
|
+
...Un(s.errorCalls).map(
|
|
200416
|
+
(a) => ({
|
|
200417
|
+
callee: a,
|
|
200418
|
+
callType: "error"
|
|
200419
|
+
})
|
|
200420
|
+
),
|
|
200362
200421
|
...(s.body ? yt(s.body) : []).map((a) => ({
|
|
200363
200422
|
callee: a,
|
|
200364
200423
|
callType: "loop-body"
|
|
@@ -200383,10 +200442,12 @@ function mn(s) {
|
|
|
200383
200442
|
callType: "success"
|
|
200384
200443
|
})
|
|
200385
200444
|
),
|
|
200386
|
-
...Un(s.errorCalls).map(
|
|
200387
|
-
|
|
200388
|
-
|
|
200389
|
-
|
|
200445
|
+
...Un(s.errorCalls).map(
|
|
200446
|
+
(a) => ({
|
|
200447
|
+
callee: a,
|
|
200448
|
+
callType: "error"
|
|
200449
|
+
})
|
|
200450
|
+
)
|
|
200390
200451
|
];
|
|
200391
200452
|
return C(
|
|
200392
200453
|
p.map((a) => a.callee)
|
|
@@ -200399,7 +200460,7 @@ function mn(s) {
|
|
|
200399
200460
|
};
|
|
200400
200461
|
});
|
|
200401
200462
|
}
|
|
200402
|
-
if (
|
|
200463
|
+
if (Kt.includes(s.type)) {
|
|
200403
200464
|
const p = [
|
|
200404
200465
|
...Un(s.calls).map(
|
|
200405
200466
|
(a) => s.parent.type === d.Loop ? {
|
|
@@ -200474,7 +200535,10 @@ function x5i(s) {
|
|
|
200474
200535
|
const a = i[i.length - 1];
|
|
200475
200536
|
if (a) {
|
|
200476
200537
|
const c = a[a.length - 1];
|
|
200477
|
-
ed(
|
|
200538
|
+
ed(
|
|
200539
|
+
r,
|
|
200540
|
+
c
|
|
200541
|
+
) ? i.push([r]) : a.push(r);
|
|
200478
200542
|
} else
|
|
200479
200543
|
i.push([r]);
|
|
200480
200544
|
}), i;
|
|
@@ -200493,7 +200557,7 @@ function wN(s) {
|
|
|
200493
200557
|
...Sd(
|
|
200494
200558
|
s.errorCalls
|
|
200495
200559
|
)
|
|
200496
|
-
] :
|
|
200560
|
+
] : Kt.includes(s.type) ? Sd(
|
|
200497
200561
|
s.calls
|
|
200498
200562
|
) : [];
|
|
200499
200563
|
}
|
|
@@ -200583,7 +200647,7 @@ function yt(s, p = {}) {
|
|
|
200583
200647
|
...Un(r, { sorting: p.sorting })
|
|
200584
200648
|
]);
|
|
200585
200649
|
}
|
|
200586
|
-
if (
|
|
200650
|
+
if (Kt.includes(s.type)) {
|
|
200587
200651
|
const i = p.sorting === "local-y-axis" ? s.calls.sort((r, a) => {
|
|
200588
200652
|
const c = mt(
|
|
200589
200653
|
r
|
|
@@ -200626,10 +200690,13 @@ async function g0(s, p = {}) {
|
|
|
200626
200690
|
tracker: i,
|
|
200627
200691
|
sorting: p.sorting
|
|
200628
200692
|
}),
|
|
200629
|
-
...s.body ? await g0(
|
|
200630
|
-
|
|
200631
|
-
|
|
200632
|
-
|
|
200693
|
+
...s.body ? await g0(
|
|
200694
|
+
s.body,
|
|
200695
|
+
{
|
|
200696
|
+
tracker: i,
|
|
200697
|
+
sorting: p.sorting
|
|
200698
|
+
}
|
|
200699
|
+
) : []
|
|
200633
200700
|
],
|
|
200634
200701
|
{ tracker: i }
|
|
200635
200702
|
);
|
|
@@ -200668,7 +200735,7 @@ async function g0(s, p = {}) {
|
|
|
200668
200735
|
{ tracker: i }
|
|
200669
200736
|
);
|
|
200670
200737
|
}
|
|
200671
|
-
if (
|
|
200738
|
+
if (Kt.includes(s.type)) {
|
|
200672
200739
|
const r = p.sorting === "local-y-axis" ? s.calls.sort((a, c) => {
|
|
200673
200740
|
const e = mt(
|
|
200674
200741
|
a
|
|
@@ -200690,7 +200757,7 @@ function B5i(s) {
|
|
|
200690
200757
|
return _t.includes(s.type) ? [
|
|
200691
200758
|
...Un(s.successCalls),
|
|
200692
200759
|
...Un(s.errorCalls)
|
|
200693
|
-
] :
|
|
200760
|
+
] : Kt.includes(s.type) ? Un(s.calls) : [];
|
|
200694
200761
|
}
|
|
200695
200762
|
function zDi(s, p = /* @__PURE__ */ new Set()) {
|
|
200696
200763
|
return s.writesValues.filter(
|
|
@@ -200712,29 +200779,7 @@ function hr(s, p = /* @__PURE__ */ new Set()) {
|
|
|
200712
200779
|
).reduce((r, a) => [...r, ...hr(a, p)], []);
|
|
200713
200780
|
if (s.type === d.FunctionCall || s.type === d.Operation || s.type === d.Condition)
|
|
200714
200781
|
return [
|
|
200715
|
-
...yt(s).reduce(
|
|
200716
|
-
(c, e) => {
|
|
200717
|
-
const f = mt(e);
|
|
200718
|
-
return [
|
|
200719
|
-
...c,
|
|
200720
|
-
...hr(
|
|
200721
|
-
f || e,
|
|
200722
|
-
p
|
|
200723
|
-
)
|
|
200724
|
-
];
|
|
200725
|
-
},
|
|
200726
|
-
[]
|
|
200727
|
-
),
|
|
200728
|
-
...qDi(s.inputs),
|
|
200729
|
-
...HDi(s.outputs)
|
|
200730
|
-
].reduce((c, e) => [...c, ...hr(e, p)], []);
|
|
200731
|
-
if (op.includes(s.type)) {
|
|
200732
|
-
const i = [
|
|
200733
|
-
...GC(
|
|
200734
|
-
s.inputs
|
|
200735
|
-
)
|
|
200736
|
-
], a = yt(s).reduce(
|
|
200737
|
-
(c, e) => {
|
|
200782
|
+
...yt(s).reduce((c, e) => {
|
|
200738
200783
|
const f = mt(e);
|
|
200739
200784
|
return [
|
|
200740
200785
|
...c,
|
|
@@ -200743,9 +200788,27 @@ function hr(s, p = /* @__PURE__ */ new Set()) {
|
|
|
200743
200788
|
p
|
|
200744
200789
|
)
|
|
200745
200790
|
];
|
|
200746
|
-
},
|
|
200747
|
-
|
|
200748
|
-
|
|
200791
|
+
}, []),
|
|
200792
|
+
...qDi(s.inputs),
|
|
200793
|
+
...HDi(
|
|
200794
|
+
s.outputs
|
|
200795
|
+
)
|
|
200796
|
+
].reduce((c, e) => [...c, ...hr(e, p)], []);
|
|
200797
|
+
if (op.includes(s.type)) {
|
|
200798
|
+
const i = [
|
|
200799
|
+
...GC(
|
|
200800
|
+
s.inputs
|
|
200801
|
+
)
|
|
200802
|
+
], a = yt(s).reduce((c, e) => {
|
|
200803
|
+
const f = mt(e);
|
|
200804
|
+
return [
|
|
200805
|
+
...c,
|
|
200806
|
+
...hr(
|
|
200807
|
+
f || e,
|
|
200808
|
+
p
|
|
200809
|
+
)
|
|
200810
|
+
];
|
|
200811
|
+
}, []);
|
|
200749
200812
|
return i.push(...a), i.reduce((c, e) => [...c, ...hr(e)], []);
|
|
200750
200813
|
}
|
|
200751
200814
|
if (s.type === d.FunctionDeclaration) {
|
|
@@ -200755,36 +200818,30 @@ function hr(s, p = /* @__PURE__ */ new Set()) {
|
|
|
200755
200818
|
)
|
|
200756
200819
|
], a = yt(
|
|
200757
200820
|
s
|
|
200758
|
-
).reduce(
|
|
200759
|
-
(
|
|
200760
|
-
|
|
200761
|
-
|
|
200762
|
-
|
|
200763
|
-
|
|
200764
|
-
|
|
200765
|
-
|
|
200766
|
-
|
|
200767
|
-
|
|
200768
|
-
},
|
|
200769
|
-
[]
|
|
200770
|
-
);
|
|
200821
|
+
).reduce((c, e) => {
|
|
200822
|
+
const f = mt(e);
|
|
200823
|
+
return [
|
|
200824
|
+
...c,
|
|
200825
|
+
...hr(
|
|
200826
|
+
f || e,
|
|
200827
|
+
p
|
|
200828
|
+
)
|
|
200829
|
+
];
|
|
200830
|
+
}, []);
|
|
200771
200831
|
return i.push(...a), i.reduce((c, e) => [...c, ...hr(e)], []);
|
|
200772
200832
|
}
|
|
200773
200833
|
if (Ut.includes(s.type)) {
|
|
200774
200834
|
p.add(s.id);
|
|
200775
|
-
const r = yt(s).reduce(
|
|
200776
|
-
(
|
|
200777
|
-
|
|
200778
|
-
|
|
200779
|
-
|
|
200780
|
-
|
|
200781
|
-
|
|
200782
|
-
|
|
200783
|
-
|
|
200784
|
-
|
|
200785
|
-
},
|
|
200786
|
-
[]
|
|
200787
|
-
);
|
|
200835
|
+
const r = yt(s).reduce((a, c) => {
|
|
200836
|
+
const e = mt(c);
|
|
200837
|
+
return [
|
|
200838
|
+
...a,
|
|
200839
|
+
...hr(
|
|
200840
|
+
e || c,
|
|
200841
|
+
p
|
|
200842
|
+
)
|
|
200843
|
+
];
|
|
200844
|
+
}, []);
|
|
200788
200845
|
return [
|
|
200789
200846
|
s,
|
|
200790
200847
|
...r,
|
|
@@ -200855,19 +200912,25 @@ function YDi(s) {
|
|
|
200855
200912
|
...h,
|
|
200856
200913
|
...GC(m.inputs),
|
|
200857
200914
|
...Un(
|
|
200858
|
-
Sd(
|
|
200915
|
+
Sd(
|
|
200916
|
+
m.calls
|
|
200917
|
+
)
|
|
200859
200918
|
),
|
|
200860
200919
|
...m.returnStatements
|
|
200861
200920
|
], []), e = s.functions.reduce((h, m) => [
|
|
200862
200921
|
...h,
|
|
200863
200922
|
...Un(
|
|
200864
|
-
Sd(
|
|
200923
|
+
Sd(
|
|
200924
|
+
m.calls
|
|
200925
|
+
)
|
|
200865
200926
|
),
|
|
200866
200927
|
...m.returnStatements
|
|
200867
200928
|
], []), f = s.events.reduce((h, m) => [
|
|
200868
200929
|
...h,
|
|
200869
200930
|
...Un(
|
|
200870
|
-
Sd(
|
|
200931
|
+
Sd(
|
|
200932
|
+
m.calls
|
|
200933
|
+
)
|
|
200871
200934
|
),
|
|
200872
200935
|
...m.returnStatements
|
|
200873
200936
|
], []);
|
|
@@ -200930,9 +200993,7 @@ function rd(s, p = {}, i = {}) {
|
|
|
200930
200993
|
debug: !1,
|
|
200931
200994
|
...i
|
|
200932
200995
|
};
|
|
200933
|
-
if (r.ignoreBuiltInBaseEntities && (Ra.includes(s.type) || (r.allBuiltInEntityIds || /* @__PURE__ */ new Set()).has(
|
|
200934
|
-
s.id
|
|
200935
|
-
)))
|
|
200996
|
+
if (r.ignoreBuiltInBaseEntities && (Ra.includes(s.type) || (r.allBuiltInEntityIds || /* @__PURE__ */ new Set()).has(s.id)))
|
|
200936
200997
|
return {
|
|
200937
200998
|
upstream: {},
|
|
200938
200999
|
downstream: {}
|
|
@@ -200940,11 +201001,15 @@ function rd(s, p = {}, i = {}) {
|
|
|
200940
201001
|
const a = s, c = s, e = s, f = s, h = s, m = s, b = s, E = s, A = s, _ = s, N = s, V = s, B = s, M = [
|
|
200941
201002
|
...B.readsValue ? [B.readsValue] : [],
|
|
200942
201003
|
...B.declaration ? [B.declaration] : [],
|
|
200943
|
-
...(V.calledByEntry || []).flatMap(
|
|
201004
|
+
...(V.calledByEntry || []).flatMap(
|
|
201005
|
+
(J) => J
|
|
201006
|
+
),
|
|
200944
201007
|
...(V.calledBySuccess || []).flatMap(
|
|
200945
201008
|
(J) => J
|
|
200946
201009
|
),
|
|
200947
|
-
...(V.calledByError || []).flatMap(
|
|
201010
|
+
...(V.calledByError || []).flatMap(
|
|
201011
|
+
(J) => J
|
|
201012
|
+
),
|
|
200948
201013
|
..._.parent ? [_.parent] : [],
|
|
200949
201014
|
...c.foreignKeyRef ? [c.foreignKeyRef] : []
|
|
200950
201015
|
];
|
|
@@ -200957,7 +201022,9 @@ function rd(s, p = {}, i = {}) {
|
|
|
200957
201022
|
(J) => J
|
|
200958
201023
|
)
|
|
200959
201024
|
) : A.extends && M.push(A.extends), h.valueAsTypeList && Array.isArray(h.valueAsTypeList) && M.push(
|
|
200960
|
-
...h.valueAsTypeList.flatMap(
|
|
201025
|
+
...h.valueAsTypeList.flatMap(
|
|
201026
|
+
(J) => J
|
|
201027
|
+
)
|
|
200961
201028
|
), h.valueAsTypeSingle && M.push(h.valueAsTypeSingle), (B.internalCalls || []).forEach((J) => {
|
|
200962
201029
|
const ne = te(J);
|
|
200963
201030
|
if (ne && p[ne]) {
|
|
@@ -200985,9 +201052,13 @@ function rd(s, p = {}, i = {}) {
|
|
|
200985
201052
|
...V.defaultValue ? [V.defaultValue] : [],
|
|
200986
201053
|
...(V.successCalls || []).flatMap((J) => J),
|
|
200987
201054
|
...(V.errorCalls || []).flatMap((J) => J),
|
|
200988
|
-
...(e.properties || []).flatMap(
|
|
201055
|
+
...(e.properties || []).flatMap(
|
|
201056
|
+
(J) => J
|
|
201057
|
+
),
|
|
200989
201058
|
...(e.methods || []).flatMap((J) => J),
|
|
200990
|
-
...(e.abstractMethods || []).flatMap(
|
|
201059
|
+
...(e.abstractMethods || []).flatMap(
|
|
201060
|
+
(J) => J
|
|
201061
|
+
),
|
|
200991
201062
|
...b.error ? [b.error] : [],
|
|
200992
201063
|
..._.throws ? [_.throws] : [],
|
|
200993
201064
|
...(c.andChildrenGroup || []).flatMap(
|
|
@@ -201011,7 +201082,14 @@ function rd(s, p = {}, i = {}) {
|
|
|
201011
201082
|
];
|
|
201012
201083
|
if (s.type === d.DataType) {
|
|
201013
201084
|
const J = c.entity ? te(c.entity) : null, ne = J ? p[J] : null, ee = ne ? ne == null ? void 0 : ne.parent : null, se = ee ? te(ee) : null;
|
|
201014
|
-
r.debug && (console.log(
|
|
201085
|
+
r.debug && (console.log(
|
|
201086
|
+
"[getReferencedIds] referencedEntId " + J
|
|
201087
|
+
), console.log("[getReferencedIds] foundInAllKnown ", ne), console.log(
|
|
201088
|
+
"[getReferencedIds] refParentOfChild ",
|
|
201089
|
+
ee
|
|
201090
|
+
), console.log(
|
|
201091
|
+
"[getReferencedIds] parentIdOfChild " + se
|
|
201092
|
+
), console.log("[getReferencedIds] Own id " + s.id), console.log(
|
|
201015
201093
|
"[getReferencedIds] is same " + (se === s.id)
|
|
201016
201094
|
)), c.entity && p[te(c.entity)] && p[te(c.entity)].parent && te(
|
|
201017
201095
|
p[te(c.entity)].parent
|
|
@@ -201038,9 +201116,7 @@ function rd(s, p = {}, i = {}) {
|
|
|
201038
201116
|
return M.forEach((J) => {
|
|
201039
201117
|
var se;
|
|
201040
201118
|
const ne = te(J);
|
|
201041
|
-
if (ne && r.ignoreBuiltInBaseEntities && (Ra.includes(J.type) || (r.allBuiltInEntityIds || /* @__PURE__ */ new Set()).has(
|
|
201042
|
-
ne
|
|
201043
|
-
)))
|
|
201119
|
+
if (ne && r.ignoreBuiltInBaseEntities && (Ra.includes(J.type) || (r.allBuiltInEntityIds || /* @__PURE__ */ new Set()).has(ne)))
|
|
201044
201120
|
return;
|
|
201045
201121
|
const ee = J.version;
|
|
201046
201122
|
if (ne) {
|
|
@@ -201050,9 +201126,7 @@ function rd(s, p = {}, i = {}) {
|
|
|
201050
201126
|
}), k.forEach((J) => {
|
|
201051
201127
|
var se;
|
|
201052
201128
|
const ne = te(J);
|
|
201053
|
-
if (ne && r.ignoreBuiltInBaseEntities && (Ra.includes(J.type) || (r.allBuiltInEntityIds || /* @__PURE__ */ new Set()).has(
|
|
201054
|
-
ne
|
|
201055
|
-
)))
|
|
201129
|
+
if (ne && r.ignoreBuiltInBaseEntities && (Ra.includes(J.type) || (r.allBuiltInEntityIds || /* @__PURE__ */ new Set()).has(ne)))
|
|
201056
201130
|
return;
|
|
201057
201131
|
const ee = J.version;
|
|
201058
201132
|
if (ne) {
|
|
@@ -201106,7 +201180,10 @@ function k5i(s, p) {
|
|
|
201106
201180
|
...s.inputs || [],
|
|
201107
201181
|
...s.outputs || []
|
|
201108
201182
|
].map((c) => {
|
|
201109
|
-
const e = hT(
|
|
201183
|
+
const e = hT(
|
|
201184
|
+
c,
|
|
201185
|
+
p
|
|
201186
|
+
);
|
|
201110
201187
|
return e ? rCi(
|
|
201111
201188
|
e,
|
|
201112
201189
|
p
|
|
@@ -201117,7 +201194,9 @@ function k5i(s, p) {
|
|
|
201117
201194
|
);
|
|
201118
201195
|
}
|
|
201119
201196
|
if (Ut.includes(s.type)) {
|
|
201120
|
-
const r = kT(
|
|
201197
|
+
const r = kT(
|
|
201198
|
+
s
|
|
201199
|
+
);
|
|
201121
201200
|
r && i.push(r);
|
|
201122
201201
|
}
|
|
201123
201202
|
return C(i);
|
|
@@ -201140,7 +201219,9 @@ function jf(s) {
|
|
|
201140
201219
|
);
|
|
201141
201220
|
}
|
|
201142
201221
|
if (tn.includes(s.type)) {
|
|
201143
|
-
const i = kT(
|
|
201222
|
+
const i = kT(
|
|
201223
|
+
s
|
|
201224
|
+
);
|
|
201144
201225
|
i && p.push(i);
|
|
201145
201226
|
}
|
|
201146
201227
|
return C(
|
|
@@ -201172,13 +201253,18 @@ async function eCi(s, p = {}) {
|
|
|
201172
201253
|
f !== null && c.push(f), await i.tick();
|
|
201173
201254
|
}
|
|
201174
201255
|
r.push(
|
|
201175
|
-
...await Wc(
|
|
201176
|
-
|
|
201177
|
-
|
|
201256
|
+
...await Wc(
|
|
201257
|
+
c,
|
|
201258
|
+
{
|
|
201259
|
+
tracker: i
|
|
201260
|
+
}
|
|
201261
|
+
)
|
|
201178
201262
|
);
|
|
201179
201263
|
}
|
|
201180
201264
|
if (tn.includes(s.type)) {
|
|
201181
|
-
const a = kT(
|
|
201265
|
+
const a = kT(
|
|
201266
|
+
s
|
|
201267
|
+
);
|
|
201182
201268
|
a && r.push(a);
|
|
201183
201269
|
}
|
|
201184
201270
|
return await Wc(r, {
|
|
@@ -201188,7 +201274,9 @@ async function eCi(s, p = {}) {
|
|
|
201188
201274
|
async function R5(s, p = {}) {
|
|
201189
201275
|
const i = Se.from(p);
|
|
201190
201276
|
await i.tick();
|
|
201191
|
-
const r = await eCi(s, { tracker: i }), a = [
|
|
201277
|
+
const r = await eCi(s, { tracker: i }), a = [
|
|
201278
|
+
...r
|
|
201279
|
+
];
|
|
201192
201280
|
for (const c of r) {
|
|
201193
201281
|
const e = await R5(
|
|
201194
201282
|
c,
|
|
@@ -201259,7 +201347,9 @@ async function nCi(s, p = /* @__PURE__ */ new Set(), i = {}) {
|
|
|
201259
201347
|
pe(s, s.project),
|
|
201260
201348
|
s.id
|
|
201261
201349
|
), await r.tick();
|
|
201262
|
-
const a = await JA(s, !1, {
|
|
201350
|
+
const a = await JA(s, !1, {
|
|
201351
|
+
tracker: r
|
|
201352
|
+
});
|
|
201263
201353
|
a.forEach((e) => {
|
|
201264
201354
|
p.add(e.id);
|
|
201265
201355
|
});
|
|
@@ -201285,7 +201375,10 @@ function D5(s) {
|
|
|
201285
201375
|
return C(
|
|
201286
201376
|
Sd(
|
|
201287
201377
|
C(
|
|
201288
|
-
p.flatMap((i) => [
|
|
201378
|
+
p.flatMap((i) => [
|
|
201379
|
+
...i.successCalls,
|
|
201380
|
+
...i.errorCalls
|
|
201381
|
+
])
|
|
201289
201382
|
)
|
|
201290
201383
|
)
|
|
201291
201384
|
);
|
|
@@ -201294,7 +201387,10 @@ function C5(s) {
|
|
|
201294
201387
|
const p = s.internalCalls || [];
|
|
201295
201388
|
return C(
|
|
201296
201389
|
C(
|
|
201297
|
-
p.flatMap((i) => [
|
|
201390
|
+
p.flatMap((i) => [
|
|
201391
|
+
...i.successCalls,
|
|
201392
|
+
...i.errorCalls
|
|
201393
|
+
])
|
|
201298
201394
|
)
|
|
201299
201395
|
);
|
|
201300
201396
|
}
|
|
@@ -201381,9 +201477,7 @@ function nd(s, p = !1) {
|
|
|
201381
201477
|
if (op.includes(s.type)) {
|
|
201382
201478
|
if (s.collapsed && p)
|
|
201383
201479
|
return [];
|
|
201384
|
-
const r = s.inputs.map((c) => zo(c)).flat(), a = s.calls.map(
|
|
201385
|
-
(c) => mt(c)
|
|
201386
|
-
);
|
|
201480
|
+
const r = s.inputs.map((c) => zo(c)).flat(), a = s.calls.map((c) => mt(c));
|
|
201387
201481
|
i.push(
|
|
201388
201482
|
...C(
|
|
201389
201483
|
r
|
|
@@ -201428,9 +201522,7 @@ function nd(s, p = !1) {
|
|
|
201428
201522
|
);
|
|
201429
201523
|
i.push(...c);
|
|
201430
201524
|
}
|
|
201431
|
-
const r = s.errorCalls.map(
|
|
201432
|
-
(c) => mt(c)
|
|
201433
|
-
), a = s.successCalls.map((c) => mt(c));
|
|
201525
|
+
const r = s.errorCalls.map((c) => mt(c)), a = s.successCalls.map((c) => mt(c));
|
|
201434
201526
|
i.push(
|
|
201435
201527
|
...a,
|
|
201436
201528
|
...r
|
|
@@ -201501,7 +201593,9 @@ function BC(s, p = !1) {
|
|
|
201501
201593
|
if (Ut.includes(s.type)) {
|
|
201502
201594
|
const r = Jo(
|
|
201503
201595
|
s
|
|
201504
|
-
), a = C5(
|
|
201596
|
+
), a = C5(
|
|
201597
|
+
s
|
|
201598
|
+
);
|
|
201505
201599
|
i.push(
|
|
201506
201600
|
...r,
|
|
201507
201601
|
...a
|
|
@@ -201548,7 +201642,10 @@ function MC(s, p = !1) {
|
|
|
201548
201642
|
...i,
|
|
201549
201643
|
...i.reduce((a, c) => [
|
|
201550
201644
|
...a,
|
|
201551
|
-
...MC(
|
|
201645
|
+
...MC(
|
|
201646
|
+
c,
|
|
201647
|
+
p
|
|
201648
|
+
)
|
|
201552
201649
|
], [])
|
|
201553
201650
|
];
|
|
201554
201651
|
return C(r);
|
|
@@ -201561,10 +201658,15 @@ function RA(s, p = !1) {
|
|
|
201561
201658
|
...i,
|
|
201562
201659
|
...i.reduce((a, c) => [
|
|
201563
201660
|
...a,
|
|
201564
|
-
...RA(
|
|
201661
|
+
...RA(
|
|
201662
|
+
c,
|
|
201663
|
+
p
|
|
201664
|
+
)
|
|
201565
201665
|
], [])
|
|
201566
201666
|
];
|
|
201567
|
-
return C(
|
|
201667
|
+
return C(
|
|
201668
|
+
r
|
|
201669
|
+
);
|
|
201568
201670
|
}
|
|
201569
201671
|
async function JA(s, p = !1, i = {}) {
|
|
201570
201672
|
ce.log(
|
|
@@ -201617,9 +201719,7 @@ async function JA(s, p = !1, i = {}) {
|
|
|
201617
201719
|
);
|
|
201618
201720
|
}
|
|
201619
201721
|
if (op.includes(s.type) && !(s.collapsed && p)) {
|
|
201620
|
-
const c = s.inputs.map((f) => zo(f)).flat(), e = s.calls.map(
|
|
201621
|
-
(f) => mt(f)
|
|
201622
|
-
);
|
|
201722
|
+
const c = s.inputs.map((f) => zo(f)).flat(), e = s.calls.map((f) => mt(f));
|
|
201623
201723
|
a.push(
|
|
201624
201724
|
...C(
|
|
201625
201725
|
c
|
|
@@ -201665,9 +201765,7 @@ async function JA(s, p = !1, i = {}) {
|
|
|
201665
201765
|
);
|
|
201666
201766
|
a.push(...f);
|
|
201667
201767
|
}
|
|
201668
|
-
const c = s.errorCalls.map(
|
|
201669
|
-
(f) => mt(f)
|
|
201670
|
-
), e = s.successCalls.map((f) => mt(f));
|
|
201768
|
+
const c = s.errorCalls.map((f) => mt(f)), e = s.successCalls.map((f) => mt(f));
|
|
201671
201769
|
a.push(
|
|
201672
201770
|
...e,
|
|
201673
201771
|
...c
|
|
@@ -201742,7 +201840,9 @@ async function kC(s, p = !1, i = {}) {
|
|
|
201742
201840
|
if (Ut.includes(s.type)) {
|
|
201743
201841
|
const c = Jo(
|
|
201744
201842
|
s
|
|
201745
|
-
), e = C5(
|
|
201843
|
+
), e = C5(
|
|
201844
|
+
s
|
|
201845
|
+
);
|
|
201746
201846
|
a.push(
|
|
201747
201847
|
...c,
|
|
201748
201848
|
...e
|
|
@@ -201801,9 +201901,13 @@ async function O5(s, p = !1, i = {}) {
|
|
|
201801
201901
|
async function sCi(s, p = !1, i = {}) {
|
|
201802
201902
|
const r = Se.from(i);
|
|
201803
201903
|
await r.tick();
|
|
201804
|
-
const a = await kC(
|
|
201805
|
-
|
|
201806
|
-
|
|
201904
|
+
const a = await kC(
|
|
201905
|
+
s,
|
|
201906
|
+
p,
|
|
201907
|
+
{
|
|
201908
|
+
tracker: r
|
|
201909
|
+
}
|
|
201910
|
+
), c = [
|
|
201807
201911
|
...a
|
|
201808
201912
|
];
|
|
201809
201913
|
for (const e of a) {
|
|
@@ -201814,7 +201918,9 @@ async function sCi(s, p = !1, i = {}) {
|
|
|
201814
201918
|
);
|
|
201815
201919
|
c.push(...f);
|
|
201816
201920
|
}
|
|
201817
|
-
return C(
|
|
201921
|
+
return C(
|
|
201922
|
+
c
|
|
201923
|
+
);
|
|
201818
201924
|
}
|
|
201819
201925
|
function V1(s) {
|
|
201820
201926
|
if (!s)
|
|
@@ -201900,7 +202006,9 @@ function pi(s, p) {
|
|
|
201900
202006
|
throw new Error(
|
|
201901
202007
|
`checkHasBaseEntity: entity is not a '${d.DefinitionEntity}' or '${d.BuiltInBaseEntity}', got ${s.type}`
|
|
201902
202008
|
);
|
|
201903
|
-
return s.type === d.BuiltInBaseEntity ? !!(s.name === p || [
|
|
202009
|
+
return s.type === d.BuiltInBaseEntity ? !!(s.name === p || [
|
|
202010
|
+
...hf(s)
|
|
202011
|
+
].includes(p)) : !!jT(s).includes(p);
|
|
201904
202012
|
}
|
|
201905
202013
|
function lCi(s, p) {
|
|
201906
202014
|
if (!s)
|
|
@@ -201918,7 +202026,10 @@ function lCi(s, p) {
|
|
|
201918
202026
|
if (pi(s.extends, p))
|
|
201919
202027
|
return s.extends;
|
|
201920
202028
|
if (s.extends.type === d.BuiltInBaseEntity)
|
|
201921
|
-
return Yu(
|
|
202029
|
+
return Yu(
|
|
202030
|
+
s.extends,
|
|
202031
|
+
p
|
|
202032
|
+
);
|
|
201922
202033
|
}
|
|
201923
202034
|
return null;
|
|
201924
202035
|
}
|
|
@@ -201929,11 +202040,17 @@ function lCi(s, p) {
|
|
|
201929
202040
|
if (i.type === d.BuiltInBaseEntity) {
|
|
201930
202041
|
if (pi(i, p))
|
|
201931
202042
|
return i;
|
|
201932
|
-
const r = Yu(
|
|
202043
|
+
const r = Yu(
|
|
202044
|
+
i,
|
|
202045
|
+
p
|
|
202046
|
+
);
|
|
201933
202047
|
if (r)
|
|
201934
202048
|
return r;
|
|
201935
202049
|
} else if (i.type === d.DefinitionEntity) {
|
|
201936
|
-
const r = Yu(
|
|
202050
|
+
const r = Yu(
|
|
202051
|
+
i,
|
|
202052
|
+
p
|
|
202053
|
+
);
|
|
201937
202054
|
if (r)
|
|
201938
202055
|
return r;
|
|
201939
202056
|
}
|
|
@@ -201954,7 +202071,10 @@ function Yu(s, p) {
|
|
|
201954
202071
|
if (s.extends.name === p)
|
|
201955
202072
|
return s.extends;
|
|
201956
202073
|
if (s.extends.type === d.BuiltInBaseEntity)
|
|
201957
|
-
return Yu(
|
|
202074
|
+
return Yu(
|
|
202075
|
+
s.extends,
|
|
202076
|
+
p
|
|
202077
|
+
);
|
|
201958
202078
|
}
|
|
201959
202079
|
return null;
|
|
201960
202080
|
}
|
|
@@ -201965,11 +202085,17 @@ function Yu(s, p) {
|
|
|
201965
202085
|
if (i.type === d.BuiltInBaseEntity) {
|
|
201966
202086
|
if (i.name === p)
|
|
201967
202087
|
return i;
|
|
201968
|
-
const r = Yu(
|
|
202088
|
+
const r = Yu(
|
|
202089
|
+
i,
|
|
202090
|
+
p
|
|
202091
|
+
);
|
|
201969
202092
|
if (r)
|
|
201970
202093
|
return r;
|
|
201971
202094
|
} else if (i.type === d.DefinitionEntity) {
|
|
201972
|
-
const r = Yu(
|
|
202095
|
+
const r = Yu(
|
|
202096
|
+
i,
|
|
202097
|
+
p
|
|
202098
|
+
);
|
|
201973
202099
|
if (r)
|
|
201974
202100
|
return r;
|
|
201975
202101
|
}
|
|
@@ -202060,7 +202186,7 @@ function N5(s) {
|
|
|
202060
202186
|
}
|
|
202061
202187
|
function oCi(s) {
|
|
202062
202188
|
if ([
|
|
202063
|
-
...
|
|
202189
|
+
...Kt,
|
|
202064
202190
|
d.DefinitionEntity,
|
|
202065
202191
|
d.InstalledProject,
|
|
202066
202192
|
d.Project
|
|
@@ -202073,7 +202199,7 @@ function oCi(s) {
|
|
|
202073
202199
|
}
|
|
202074
202200
|
function P5(s) {
|
|
202075
202201
|
return [
|
|
202076
|
-
...
|
|
202202
|
+
...Kt,
|
|
202077
202203
|
d.DefinitionEntity,
|
|
202078
202204
|
d.InstalledProject,
|
|
202079
202205
|
d.Project
|
|
@@ -202171,7 +202297,7 @@ function R0(s) {
|
|
|
202171
202297
|
return null;
|
|
202172
202298
|
}
|
|
202173
202299
|
}
|
|
202174
|
-
function
|
|
202300
|
+
function Ft(s, p, i = null) {
|
|
202175
202301
|
const r = s != null && s.parent ? te(s == null ? void 0 : s.parent) : null;
|
|
202176
202302
|
let a = r ? p.get(r) : null, c = i || s;
|
|
202177
202303
|
if ((s == null ? void 0 : s.id) === (p == null ? void 0 : p.id))
|
|
@@ -202180,7 +202306,7 @@ function qt(s, p, i = null) {
|
|
|
202180
202306
|
return _n(s, p, c);
|
|
202181
202307
|
if (s.type === d.FunctionDeclaration && (a == null ? void 0 : a.type) === d.Loop)
|
|
202182
202308
|
return a;
|
|
202183
|
-
if (
|
|
202309
|
+
if (Kt.includes(s.type))
|
|
202184
202310
|
return s;
|
|
202185
202311
|
if (s.type === d.Loop)
|
|
202186
202312
|
return c.id === s.id ? a : s;
|
|
@@ -202194,9 +202320,9 @@ function qt(s, p, i = null) {
|
|
|
202194
202320
|
if (!f)
|
|
202195
202321
|
return null;
|
|
202196
202322
|
const h = p.get(f);
|
|
202197
|
-
return h ?
|
|
202323
|
+
return h ? Ft(h, p, c) : null;
|
|
202198
202324
|
} else
|
|
202199
|
-
return e === p ? p :
|
|
202325
|
+
return e === p ? p : Ft(e, p, c);
|
|
202200
202326
|
}
|
|
202201
202327
|
function _n(s, p, i = null) {
|
|
202202
202328
|
const r = s != null && s.parent ? te(s == null ? void 0 : s.parent) : null;
|
|
@@ -202207,7 +202333,7 @@ function _n(s, p, i = null) {
|
|
|
202207
202333
|
p,
|
|
202208
202334
|
c
|
|
202209
202335
|
);
|
|
202210
|
-
if (
|
|
202336
|
+
if (Kt.includes(s.type))
|
|
202211
202337
|
return s;
|
|
202212
202338
|
if (Ra.includes(s.type))
|
|
202213
202339
|
return null;
|
|
@@ -202219,7 +202345,11 @@ function _n(s, p, i = null) {
|
|
|
202219
202345
|
if (!f)
|
|
202220
202346
|
return null;
|
|
202221
202347
|
const h = p.get(f);
|
|
202222
|
-
return h ? _n(
|
|
202348
|
+
return h ? _n(
|
|
202349
|
+
h,
|
|
202350
|
+
p,
|
|
202351
|
+
c
|
|
202352
|
+
) : null;
|
|
202223
202353
|
} else
|
|
202224
202354
|
return e === p ? p : _n(e, p, c);
|
|
202225
202355
|
}
|
|
@@ -202245,11 +202375,11 @@ function ud(s, p) {
|
|
|
202245
202375
|
function as(s, p, i) {
|
|
202246
202376
|
if (s === p || p === i || s === i || !s || !p)
|
|
202247
202377
|
return !1;
|
|
202248
|
-
const r =
|
|
202378
|
+
const r = Ft(
|
|
202249
202379
|
p.parent,
|
|
202250
202380
|
i
|
|
202251
202381
|
);
|
|
202252
|
-
return r === i ? !1 : r === s ? !0 : as(
|
|
202382
|
+
return r === i ? !1 : r === s ? !0 : as(s, r, i);
|
|
202253
202383
|
}
|
|
202254
202384
|
var YA = /* @__PURE__ */ ((s) => (s.SameBothLocal = "same-both-local", s.AInB = "a-in-b", s.BInA = "b-in-a", s.ParallelInCommonParent = "parallel-in-common-parent", s.ParallelInProject = "parallel-in-project", s.AIsGlobalBIsNot = "a-is-global-b-is-not", s.BIsGlobalAIsNot = "b-is-global-a-is-not", s.SameBothGlobal = "same-both-global", s))(YA || {});
|
|
202255
202385
|
function Ns(s, p, i) {
|
|
@@ -202283,7 +202413,7 @@ function Ns(s, p, i) {
|
|
|
202283
202413
|
commonAncestorScope: p
|
|
202284
202414
|
};
|
|
202285
202415
|
}
|
|
202286
|
-
const r =
|
|
202416
|
+
const r = Ft(s, i), a = Ft(p, i);
|
|
202287
202417
|
if ((s == null ? void 0 : s.id) === (a == null ? void 0 : a.id))
|
|
202288
202418
|
return {
|
|
202289
202419
|
compatible: !0,
|
|
@@ -202297,9 +202427,13 @@ function Ns(s, p, i) {
|
|
|
202297
202427
|
commonAncestorScope: p
|
|
202298
202428
|
};
|
|
202299
202429
|
if (!r)
|
|
202300
|
-
throw new Error(
|
|
202430
|
+
throw new Error(
|
|
202431
|
+
"Could not find scope owner for the entity: " + s.id
|
|
202432
|
+
);
|
|
202301
202433
|
if (!a)
|
|
202302
|
-
throw new Error(
|
|
202434
|
+
throw new Error(
|
|
202435
|
+
"Could not find scope owner for the entity: " + p.id
|
|
202436
|
+
);
|
|
202303
202437
|
if (r === a && r.type !== d.Project)
|
|
202304
202438
|
return {
|
|
202305
202439
|
compatible: !0,
|
|
@@ -202344,7 +202478,7 @@ function Ns(s, p, i) {
|
|
|
202344
202478
|
} : f ? {
|
|
202345
202479
|
compatible: !1,
|
|
202346
202480
|
type: "parallel-in-common-parent",
|
|
202347
|
-
commonAncestorScope:
|
|
202481
|
+
commonAncestorScope: Ft(
|
|
202348
202482
|
f,
|
|
202349
202483
|
i
|
|
202350
202484
|
)
|
|
@@ -202364,7 +202498,7 @@ function pCi(s, p, i) {
|
|
|
202364
202498
|
return null;
|
|
202365
202499
|
if (s === p)
|
|
202366
202500
|
return s;
|
|
202367
|
-
let a =
|
|
202501
|
+
let a = Ft(s.parent, i);
|
|
202368
202502
|
if (a) {
|
|
202369
202503
|
if (a === p)
|
|
202370
202504
|
return p;
|
|
@@ -202380,12 +202514,12 @@ function pCi(s, p, i) {
|
|
|
202380
202514
|
return s;
|
|
202381
202515
|
} else
|
|
202382
202516
|
return s;
|
|
202383
|
-
a =
|
|
202517
|
+
a = Ft(
|
|
202384
202518
|
a.parent,
|
|
202385
202519
|
i
|
|
202386
202520
|
);
|
|
202387
202521
|
}
|
|
202388
|
-
let c =
|
|
202522
|
+
let c = Ft(p.parent, i);
|
|
202389
202523
|
if (c) {
|
|
202390
202524
|
if (c === s)
|
|
202391
202525
|
return s;
|
|
@@ -202401,7 +202535,7 @@ function pCi(s, p, i) {
|
|
|
202401
202535
|
return p;
|
|
202402
202536
|
} else
|
|
202403
202537
|
return p;
|
|
202404
|
-
c =
|
|
202538
|
+
c = Ft(
|
|
202405
202539
|
c.parent,
|
|
202406
202540
|
i
|
|
202407
202541
|
);
|
|
@@ -202410,7 +202544,11 @@ function pCi(s, p, i) {
|
|
|
202410
202544
|
}
|
|
202411
202545
|
function cCi(s) {
|
|
202412
202546
|
return s.length === 0 ? null : s.length === 1 ? s[0] : s.reduce((i, r) => {
|
|
202413
|
-
const a = pCi(
|
|
202547
|
+
const a = pCi(
|
|
202548
|
+
i,
|
|
202549
|
+
r,
|
|
202550
|
+
r.project
|
|
202551
|
+
);
|
|
202414
202552
|
return !a || a === r ? i : r;
|
|
202415
202553
|
}, s[0]);
|
|
202416
202554
|
}
|
|
@@ -202852,25 +202990,47 @@ function QA(s) {
|
|
|
202852
202990
|
return !0;
|
|
202853
202991
|
}
|
|
202854
202992
|
function iSi(s, p, i) {
|
|
202855
|
-
const r =
|
|
202856
|
-
|
|
202857
|
-
|
|
202858
|
-
|
|
202859
|
-
|
|
202993
|
+
const r = [];
|
|
202994
|
+
if (i) {
|
|
202995
|
+
const a = Ft(
|
|
202996
|
+
i,
|
|
202997
|
+
s
|
|
202998
|
+
);
|
|
202999
|
+
console.log(
|
|
203000
|
+
`Own "${pe(i, s)}" from ${a == null ? void 0 : a.type} "${pe(a, s)}"
|
|
203001
|
+
`
|
|
203002
|
+
);
|
|
203003
|
+
}
|
|
203004
|
+
return p.forEach((a) => {
|
|
203005
|
+
var c;
|
|
203006
|
+
if (i) {
|
|
203007
|
+
if (a.id === i.id) {
|
|
203008
|
+
r.push(a);
|
|
203009
|
+
return;
|
|
203010
|
+
}
|
|
203011
|
+
const e = Ns(
|
|
203012
|
+
i,
|
|
202860
203013
|
a,
|
|
202861
|
-
f,
|
|
202862
203014
|
s
|
|
202863
|
-
)
|
|
202864
|
-
|
|
202865
|
-
|
|
203015
|
+
), f = Ft(
|
|
203016
|
+
a,
|
|
203017
|
+
s
|
|
203018
|
+
), h = {
|
|
203019
|
+
...e
|
|
203020
|
+
};
|
|
203021
|
+
if (delete h.commonAncestorScope, console.log(
|
|
203022
|
+
`For "${pe(a, s)}" from ${f == null ? void 0 : f.type} "${pe(f, s)}": `,
|
|
203023
|
+
h
|
|
203024
|
+
), e.compatible)
|
|
203025
|
+
r.push(a);
|
|
203026
|
+
else
|
|
202866
203027
|
return;
|
|
202867
|
-
e.push(f);
|
|
202868
203028
|
} else {
|
|
202869
|
-
if (((
|
|
203029
|
+
if (((c = a.parent) == null ? void 0 : c.type) !== d.Project)
|
|
202870
203030
|
return;
|
|
202871
|
-
|
|
203031
|
+
r.push(a);
|
|
202872
203032
|
}
|
|
202873
|
-
}), C(
|
|
203033
|
+
}), C(r);
|
|
202874
203034
|
}
|
|
202875
203035
|
function M4(s, p) {
|
|
202876
203036
|
var i, r, a, c;
|
|
@@ -202994,10 +203154,7 @@ function aSi(s, p) {
|
|
|
202994
203154
|
);
|
|
202995
203155
|
if (!c || c.id !== a.id) {
|
|
202996
203156
|
if (_t.includes(a.type))
|
|
202997
|
-
return a.addSuccessCall(
|
|
202998
|
-
r,
|
|
202999
|
-
p
|
|
203000
|
-
), r.addSuccessCaller(
|
|
203157
|
+
return a.addSuccessCall(r, p), r.addSuccessCaller(
|
|
203001
203158
|
a,
|
|
203002
203159
|
p,
|
|
203003
203160
|
!0
|
|
@@ -203005,7 +203162,7 @@ function aSi(s, p) {
|
|
|
203005
203162
|
valid: i,
|
|
203006
203163
|
newCallerEntity: a
|
|
203007
203164
|
};
|
|
203008
|
-
if (
|
|
203165
|
+
if (Kt.includes(a.type))
|
|
203009
203166
|
return a.addCall(
|
|
203010
203167
|
r,
|
|
203011
203168
|
p
|
|
@@ -203020,10 +203177,12 @@ function aSi(s, p) {
|
|
|
203020
203177
|
}
|
|
203021
203178
|
function gT(s) {
|
|
203022
203179
|
const p = [];
|
|
203023
|
-
return Ct.includes(s.type) ? (p.push(...s.outputs), s.throws && p.push(
|
|
203024
|
-
|
|
203025
|
-
|
|
203026
|
-
|
|
203180
|
+
return Ct.includes(s.type) ? (p.push(...s.outputs), s.throws && p.push(
|
|
203181
|
+
s.throws
|
|
203182
|
+
), p) : _t.includes(s.type) ? (p.push(
|
|
203183
|
+
...s.inputs.flatMap(
|
|
203184
|
+
(i) => [i]
|
|
203185
|
+
)
|
|
203027
203186
|
), s.type === d.Condition && p.push(
|
|
203028
203187
|
...(s.andChildrenGroup || []).flatMap(
|
|
203029
203188
|
(i) => gT(i)
|
|
@@ -203035,7 +203194,9 @@ function gT(s) {
|
|
|
203035
203194
|
...s.internalCalls.flatMap(
|
|
203036
203195
|
(i) => gT(i)
|
|
203037
203196
|
)
|
|
203038
|
-
), p.push(s)), C(
|
|
203197
|
+
), p.push(s)), C(
|
|
203198
|
+
p
|
|
203199
|
+
)) : [];
|
|
203039
203200
|
}
|
|
203040
203201
|
function UC(s) {
|
|
203041
203202
|
const p = [];
|
|
@@ -203043,7 +203204,7 @@ function UC(s) {
|
|
|
203043
203204
|
...s.internalCalls.flatMap(
|
|
203044
203205
|
(i) => UC(i)
|
|
203045
203206
|
)
|
|
203046
|
-
), p.push(s)), p) :
|
|
203207
|
+
), p.push(s)), p) : Kt.includes(s.type) ? (p.push(...s.inputs), p) : [];
|
|
203047
203208
|
}
|
|
203048
203209
|
async function ACi(s, p = {}) {
|
|
203049
203210
|
const i = Se.from(p), r = [];
|
|
@@ -203085,13 +203246,15 @@ async function k4(s, p, i) {
|
|
|
203085
203246
|
m
|
|
203086
203247
|
).find((E) => E.id === s.id)));
|
|
203087
203248
|
for (const e of c)
|
|
203088
|
-
if (
|
|
203089
|
-
e.removeCall(s, p), s.removeCaller(e, p), await r.onCallRemoved(
|
|
203249
|
+
if (Kt.includes(e.type))
|
|
203250
|
+
e.removeCall(s, p), s.removeCaller(e, p), await r.onCallRemoved(
|
|
203251
|
+
e,
|
|
203252
|
+
s,
|
|
203253
|
+
"entry"
|
|
203254
|
+
);
|
|
203090
203255
|
else if (_t.includes(e.type)) {
|
|
203091
203256
|
let f = "success";
|
|
203092
|
-
e.errorCalls.includes(
|
|
203093
|
-
s
|
|
203094
|
-
) && (f = "error"), e.removeCall(
|
|
203257
|
+
e.errorCalls.includes(s) && (f = "error"), e.removeCall(
|
|
203095
203258
|
s,
|
|
203096
203259
|
p
|
|
203097
203260
|
), s.removeCaller(e, p, !0), await r.onCallRemoved(
|
|
@@ -220358,7 +220521,7 @@ export {
|
|
|
220358
220521
|
_3i as ENTITY_WITH_USER_MANAGED_SINGLE_IMPLEMENTS_TYPES,
|
|
220359
220522
|
KC as ENTITY_WITH_VALUE_TYPES,
|
|
220360
220523
|
g1 as ENTRY_POINT_ENTITIES_EXPLANATION,
|
|
220361
|
-
|
|
220524
|
+
Kt as ENTRY_POINT_TYPES,
|
|
220362
220525
|
ID as ERROR_PROPERTY_HEIGHT,
|
|
220363
220526
|
op as EVENT_TYPES,
|
|
220364
220527
|
FC as EXECUTABLE_TYPES,
|
|
@@ -221833,7 +221996,7 @@ export {
|
|
|
221833
221996
|
EV as getRelationalDBInstanceNameFromEntityId,
|
|
221834
221997
|
ud as getRootEntryPointScopeOwner,
|
|
221835
221998
|
xZi as getRootExternalIntegrationFromAlias,
|
|
221836
|
-
|
|
221999
|
+
Ft as getScopeOwner,
|
|
221837
222000
|
ffi as getSecond,
|
|
221838
222001
|
lxt as getSecondDateArg,
|
|
221839
222002
|
sxt as getSecondDateDT,
|