@elyx-code/project-logic-tree 0.0.6673 → 0.0.6674

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -81,7 +81,7 @@ const Xf = [o.GlobalEvent], qG = [
81
81
  ], mr = [
82
82
  ...zt,
83
83
  o.Loop
84
- ], jt = [
84
+ ], Kt = [
85
85
  o.ReturnStatement,
86
86
  o.BreakStatement,
87
87
  o.ContinueStatement
@@ -95292,7 +95292,7 @@ function w4i(d) {
95292
95292
  ...Array.from(d.affected)
95293
95293
  ]);
95294
95294
  }
95295
- var ue = /* @__PURE__ */ ((d) => (d.Error = "error", d.Warning = "warning", d))(ue || {}), Ie = /* @__PURE__ */ ((d) => (d.InvalidObjectStructure = "invalid-object-structure", d.NameNotUniqueInScope = "name-not-unique-in-scope", d.NameAsResolvedCodeNameNotUniqueInScope = "name-as-resolved-code-name-not-unique-in-scope", d.NameMustStartWithLetterOrUnderscore = "name-must-start-with-letter-or-underscore", d.NameCanOnlyContainLettersNumbersUnderscoreAndSpaces = "name-can-only-contain-letters-numbers-underscore-and-spaces", d.NameIsForbiddenKeyword = "name-is-forbidden-keyword", d.EmptyName = "empty-name", d.MissingCaller = "missing-caller", d.PropertyOverwritesOtherSiblingWithSameName = "property-overwrites-other-sibling-with-same-name", d.PropertyOverwritesOtherSiblingWithSameImplementation = "property-overwrites-other-sibling-with-same-name", d.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName = "property-overwrites-other-implemented-entitys-property-with-same-name", d.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation = "property-overwrites-other-implemented-entitys-property-with-same-name", d.PropertyOverwritesOtherExtendedEntitysPropertyWithSameImplementation = "property-overwrites-other-extended-entitys-property-with-same-name", d.PropertyOverwritesOtherExtendedEntitysPropertyWithSameName = "property-overwrites-other-extended-entitys-property-with-same-name", d.PropertyOverwritesBasePropertyWithSameName = "property-overwrites-base-property-with-same-name", d.PropertyOverwritesBasePropertyWithSameImplementation = "property-overwrites-base-property-with-same-name", d.MethodOverwritesOtherSiblingWithSameName = "method-overwrites-other-sibling-with-same-name", d.MethodOverwritesOtherSiblingWithSameImplementation = "method-overwrites-other-sibling-with-same-name", d.MethodOverwritesOtherImplementedEntitysMethodWithSameName = "method-overwrites-other-implemented-entitys-method-with-same-name", d.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation = "method-overwrites-other-implemented-entitys-method-with-same-name", d.MethodOverwritesOtherExtendedEntitysMethodWithSameImplementation = "method-overwrites-other-extended-entitys-method-with-same-name", d.MethodOverwritesOtherExtendedEntitysMethodWithSameName = "method-overwrites-other-extended-entitys-method-with-same-name", d.MethodOverwritesBaseMethodWithSameName = "method-overwrites-base-method-with-same-name", d.MethodOverwritesBaseMethodWithSameImplementation = "method-overwrites-base-method-with-same-name", d.LoopBodyFunctionOverwrite = "loop-body-function-overwrite", d.NoOverlapWithImplementedSignature = "no-overlap-with-implemented-signature", d.ReaderWriterIncompatibleDataType = "reader-writer-incompatible-data-type", d.UnreachableEntity = "unreachable-entity", d.InternalCallParentMissingDataType = "internal-call-parent-missing-data-type", d.InternalCallParentDeclarationEntityInvalidType = "internal-call-parent-declaration-entity-invalid-type", d.InternalCallDeclarationNotFoundInParentDatatypeEntity = "internal-call-declaration-not-found-in-parent-datatype-entity", d.InternalCallDeclarationNotFound = "internal-call-declaration-not-found", d.InternalCallDeclarationIsInvalidType = "internal-call-declaration-is-invalid-type", d.InternalCallDeclarationNotInParentDatatypeEntity = "internal-call-declaration-not-in-parent-datatype-entity", d.GlobalVariableDeclarationCannotCatchError = "global-variable-declaration-cannot-catch-error", d.GlobalVariableDeclarationCannotCallOnError = "global-variable-declaration-cannot-call-on-error", d.GlobalVariableDeclarationCannotBeCalled = "global-variable-declaration-cannot-be-called", d))(Ie || {}), ne = /* @__PURE__ */ ((d) => (d.RootReference = "root-reference", d.InvalidUUIDStringFormat = "invalid-uuid-string-format", d.ReferencedEntityNotFound = "referenced-entity-not-found", d.EntityIdNotUnique = "entity-id-not-unique", d.BuiltInEntityGenerated = "built-in-entity-generated", d.BuiltInEntityUpdated = "built-in-entity-updated", d.BuiltInEntityDeleted = "built-in-entity-deleted", d.UnknownEntityType = "unknown-entity-type", d.MissingTypeProperty = "missing-type-property", d.MissingIdProperty = "missing-id-property", d.BuiltInEntityParent = "built-in-entity-parent", d.InvalidBuiltInEntityReference = "invalid-built-in-entity-reference", d.RecommendedImplementAbstractEntityAction = "recommended-implement-abstract-entity-action", d.RecommendedImplementOperationAction = "recommended-implement-operation-action", d.RecommendedImplementFunctionCallAction = "recommended-implement-function-call-action", d.RecommendedImplementVariableDeclarationAction = "recommended-implement-variable-declaration-action", d.RecommendedImplementVariableInstanceAction = "recommended-implement-variable-instance-action", d.RecommendedImplementConditionAction = "recommended-implement-condition-action", d.InvalidReferenceObjectStructure = "invalid-reference-object-structure", d.ContainsSingleButShouldBeReferenceList = "contains-single-but-should-be-reference-list", d.ContainsListButShouldReferenceSingle = "contains-list-but-should-reference-single", d.InvalidParentReference = "invalid-parent-reference", d.InvalidImplementsReference = "invalid-implements-reference", d.InvalidExtendsReference = "invalid-extends-reference", d.InvalidGenerationActionPayload = "invalid-generation-action-payload", d.InvalidReference = "invalid-reference", d.InvalidInternalCallParentRelation = "invalid-internal-call-parent-relation", d.InvalidUpdateEntityOperation = "invalid-update-entity-operation", d.NewEntityWouldOverriteExisting = "new-entity-would-overrite-existing", d.InvalidDownstreamPropertyOverride = "invalid-downstream-property-override", d.UnrecognizedProperty = "unrecognized-property", d.SelfReference = "self-reference", d.DuplicateReference = "duplicate-reference", d.CallerWithIncompatibleScope = "caller-with-incompatible-scope", d.InvalidFunctionDeclarationForFunctionCall = "invalid-function-declaration-for-function-call", d.InvalidInputMapDeclaration = "invalid-input-map-declaration", d.InvalidActionDescriptorForOperation = "invalid-action-descriptor-for-operation", d.InvalidActionDescriptorForCondition = "invalid-action-descriptor-for-condition", d.InvalidActionDescriptorForLoop = "invalid-action-descriptor-for-loop", d.InvalidInmutablePropertyOverride = "invalid-inmutable-property-override", d.OutputOverwrite = "output-overwrite", d.InputOverwrite = "input-overwrite", d.IncompatibleScope = "incompatible-scope", d.InvalidParentUpdate = "invalid-parent-update", d.NonInteractiveEntityReferenced = "non-interactive-entity-referenced", d.InvalidParentRelationType = "invalid-parent-relation-type", d))(ne || {}), ve = /* @__PURE__ */ ((d) => (d.NoPrimaryKeyProperty = "no-primary-key-property", d.ScopeWithoutLogic = "scope-without-logic", d.AbstractEntityImplements = "abstract-entity-implements", d.ImplementsIncompatibleEntities = "implements-incompatible-entities", d.ExtendsIncompatibleEntities = "extends-incompatible-entities", d.NonAbstractExtendingAbstractEntity = "non-abstract-extending-abstract-entity", d.AbstractExtendingNonAbstractEntity = "abstract-extending-non-abstract-entity", d.NonStaticExtendingStaticEntity = "non-static-extending-static-entity", d.StaticExtendingNonStaticEntity = "static-extending-non-static-entity", d.StaticImplementingNonStaticEntity = "static-implementing-non-static-entity", d.NonStaticImplementingStaticEntity = "non-static-implementing-static-entity", d.ImplementingNonAbstractEntity = "implementing-non-abstract-entity", d.ExtendingNonInteractiveEntity = "extending-non-interactive-entity", d.AbstractEntityWithNonAbstractMethods = "abstract-entity-with-non-abstract-methods", d.AbstractEntityWithNonAbstractProperties = "abstract-entity-with-non-abstract-properties", d.StaticEntityWithNonStaticProperties = "static-entity-with-non-static-properties", d.NonStaticPropertyInStaticEntity = "non-static-property-in-static-entity", d.AbstractPropertyInNonAbstractEntity = "abstract-property-in-non-abstract-entity", d.AbstractMethodInNonAbstractEntity = "abstract-method-in-non-abstract-entity", d.IncorrectEntityImplementation = "incorrect-entity-implementation", d.IncorrectMethodImplementation = "incorrect-method-implementation", d.IncorrectPropertyImplementation = "incorrect-property-implementation", d.PropertyImplementsNonAbstact = "property-implements-non-abstract", d.NonStaticPropertyImplementsStatic = "non-static-property-implements-static", d.StaticPropertyImplementsNonStatic = "static-property-implements-non-static", d.PropertyImplementsIncompatibleType = "property-implements-incompatible-type", d.MissingPropertyImplementation = "missing-property-implementation", d.MissingMethodImplementation = "missing-method-implementation", d.NoProperties = "no-properties", d.ReadingFromIncompatibleType = "reading-from-incompatible-type", d.WritingToIncompatibleType = "writing-to-incompatible-type", d.InvalidPropertiesCombination = "invalid-properties-combination", d.DisconnectedCallableEntity = "disconnected-callable-entity", d.VariableReadsValueAndInternalCall = "variable-reads-value-and-internal-call", d.VariableWritesValuesAndInternalCall = "variable-writes-values-and-internal-call", d.VariableHasInputsAndInternalCall = "variable-has-inputs-and-internal-calls", d.VariableHasOutputsAndInternalCall = "variable-has-outputs-and-internal-call", d.VariableIsCalledAndHasInternalCall = "variable-is-called-and-has-internal-call", d.VariableCallsOthersAndHasInternalCall = "variable-calls-others-and-has-internal-call", d.MissingRequiredValue = "missing-required-value", d.LackingReturnStatementOnSomeBranches = "lacking-return-statement-on-some-branches", d.LastCalledEntityMustBeReturnEntity = "last-called-entity-must-be-return-entity", d))(ve || {});
95295
+ var ue = /* @__PURE__ */ ((d) => (d.Error = "error", d.Warning = "warning", d))(ue || {}), Ie = /* @__PURE__ */ ((d) => (d.InvalidObjectStructure = "invalid-object-structure", d.NameNotUniqueInScope = "name-not-unique-in-scope", d.NameAsResolvedCodeNameNotUniqueInScope = "name-as-resolved-code-name-not-unique-in-scope", d.NameMustStartWithLetterOrUnderscore = "name-must-start-with-letter-or-underscore", d.NameCanOnlyContainLettersNumbersUnderscoreAndSpaces = "name-can-only-contain-letters-numbers-underscore-and-spaces", d.NameIsForbiddenKeyword = "name-is-forbidden-keyword", d.EmptyName = "empty-name", d.MissingCaller = "missing-caller", d.PropertyOverwritesOtherSiblingWithSameName = "property-overwrites-other-sibling-with-same-name", d.PropertyOverwritesOtherSiblingWithSameImplementation = "property-overwrites-other-sibling-with-same-name", d.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName = "property-overwrites-other-implemented-entitys-property-with-same-name", d.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation = "property-overwrites-other-implemented-entitys-property-with-same-name", d.PropertyOverwritesOtherExtendedEntitysPropertyWithSameImplementation = "property-overwrites-other-extended-entitys-property-with-same-name", d.PropertyOverwritesOtherExtendedEntitysPropertyWithSameName = "property-overwrites-other-extended-entitys-property-with-same-name", d.PropertyOverwritesBasePropertyWithSameName = "property-overwrites-base-property-with-same-name", d.PropertyOverwritesBasePropertyWithSameImplementation = "property-overwrites-base-property-with-same-name", d.MethodOverwritesOtherSiblingWithSameName = "method-overwrites-other-sibling-with-same-name", d.MethodOverwritesOtherSiblingWithSameImplementation = "method-overwrites-other-sibling-with-same-name", d.MethodOverwritesOtherImplementedEntitysMethodWithSameName = "method-overwrites-other-implemented-entitys-method-with-same-name", d.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation = "method-overwrites-other-implemented-entitys-method-with-same-name", d.MethodOverwritesOtherExtendedEntitysMethodWithSameImplementation = "method-overwrites-other-extended-entitys-method-with-same-name", d.MethodOverwritesOtherExtendedEntitysMethodWithSameName = "method-overwrites-other-extended-entitys-method-with-same-name", d.MethodOverwritesBaseMethodWithSameName = "method-overwrites-base-method-with-same-name", d.MethodOverwritesBaseMethodWithSameImplementation = "method-overwrites-base-method-with-same-name", d.LoopBodyFunctionOverwrite = "loop-body-function-overwrite", d.NoOverlapWithImplementedSignature = "no-overlap-with-implemented-signature", d.ReaderWriterIncompatibleDataType = "reader-writer-incompatible-data-type", d.UnreachableEntity = "unreachable-entity", d.InternalCallParentMissingDataType = "internal-call-parent-missing-data-type", d.InternalCallParentDeclarationEntityInvalidType = "internal-call-parent-declaration-entity-invalid-type", d.InternalCallDeclarationNotFoundInParentDatatypeEntity = "internal-call-declaration-not-found-in-parent-datatype-entity", d.InternalCallDeclarationNotFound = "internal-call-declaration-not-found", d.InternalCallDeclarationIsInvalidType = "internal-call-declaration-is-invalid-type", d.InternalCallDeclarationNotInParentDatatypeEntity = "internal-call-declaration-not-in-parent-datatype-entity", d.GlobalVariableDeclarationCannotCatchError = "global-variable-declaration-cannot-catch-error", d.GlobalVariableDeclarationCannotCallOnError = "global-variable-declaration-cannot-call-on-error", d.GlobalVariableDeclarationCannotBeCalled = "global-variable-declaration-cannot-be-called", d))(Ie || {}), ne = /* @__PURE__ */ ((d) => (d.RootReference = "root-reference", d.InvalidUUIDStringFormat = "invalid-uuid-string-format", d.ReferencedEntityNotFound = "referenced-entity-not-found", d.EntityIdNotUnique = "entity-id-not-unique", d.BuiltInEntityGenerated = "built-in-entity-generated", d.BuiltInEntityUpdated = "built-in-entity-updated", d.BuiltInEntityDeleted = "built-in-entity-deleted", d.UnknownEntityType = "unknown-entity-type", d.MissingTypeProperty = "missing-type-property", d.MissingIdProperty = "missing-id-property", d.BuiltInEntityParent = "built-in-entity-parent", d.InvalidBuiltInEntityReference = "invalid-built-in-entity-reference", d.RecommendedImplementAbstractEntityAction = "recommended-implement-abstract-entity-action", d.RecommendedImplementOperationAction = "recommended-implement-operation-action", d.RecommendedImplementFunctionCallAction = "recommended-implement-function-call-action", d.RecommendedImplementVariableDeclarationAction = "recommended-implement-variable-declaration-action", d.RecommendedImplementVariableInstanceAction = "recommended-implement-variable-instance-action", d.RecommendedImplementConditionAction = "recommended-implement-condition-action", d.InvalidReferenceObjectStructure = "invalid-reference-object-structure", d.ContainsSingleButShouldBeReferenceList = "contains-single-but-should-be-reference-list", d.ContainsListButShouldReferenceSingle = "contains-list-but-should-reference-single", d.InvalidParentReference = "invalid-parent-reference", d.InvalidImplementsReference = "invalid-implements-reference", d.InvalidExtendsReference = "invalid-extends-reference", d.InvalidGenerationActionPayload = "invalid-generation-action-payload", d.InvalidReference = "invalid-reference", d.InvalidInternalCallParentRelation = "invalid-internal-call-parent-relation", d.InvalidUpdateEntityOperation = "invalid-update-entity-operation", d.NewEntityWouldOverriteExisting = "new-entity-would-overrite-existing", d.InvalidDownstreamPropertyOverride = "invalid-downstream-property-override", d.UnrecognizedProperty = "unrecognized-property", d.SelfReference = "self-reference", d.DuplicateReference = "duplicate-reference", d.CallerWithIncompatibleScope = "caller-with-incompatible-scope", d.InvalidFunctionDeclarationForFunctionCall = "invalid-function-declaration-for-function-call", d.InvalidInputMapDeclaration = "invalid-input-map-declaration", d.InvalidActionDescriptorForOperation = "invalid-action-descriptor-for-operation", d.InvalidActionDescriptorForCondition = "invalid-action-descriptor-for-condition", d.InvalidActionDescriptorForLoop = "invalid-action-descriptor-for-loop", d.InvalidInmutablePropertyOverride = "invalid-inmutable-property-override", d.OutputOverwrite = "output-overwrite", d.InputOverwrite = "input-overwrite", d.IncompatibleScope = "incompatible-scope", d.InvalidParentUpdate = "invalid-parent-update", d.NonInteractiveEntityReferenced = "non-interactive-entity-referenced", d.InvalidParentRelationType = "invalid-parent-relation-type", d))(ne || {}), ve = /* @__PURE__ */ ((d) => (d.NoPrimaryKeyProperty = "no-primary-key-property", d.MissingEnumOptions = "missing-enum-options", d.ScopeWithoutLogic = "scope-without-logic", d.AbstractEntityImplements = "abstract-entity-implements", d.ImplementsIncompatibleEntities = "implements-incompatible-entities", d.ExtendsIncompatibleEntities = "extends-incompatible-entities", d.NonAbstractExtendingAbstractEntity = "non-abstract-extending-abstract-entity", d.AbstractExtendingNonAbstractEntity = "abstract-extending-non-abstract-entity", d.NonStaticExtendingStaticEntity = "non-static-extending-static-entity", d.StaticExtendingNonStaticEntity = "static-extending-non-static-entity", d.StaticImplementingNonStaticEntity = "static-implementing-non-static-entity", d.NonStaticImplementingStaticEntity = "non-static-implementing-static-entity", d.ImplementingNonAbstractEntity = "implementing-non-abstract-entity", d.ExtendingNonInteractiveEntity = "extending-non-interactive-entity", d.AbstractEntityWithNonAbstractMethods = "abstract-entity-with-non-abstract-methods", d.AbstractEntityWithNonAbstractProperties = "abstract-entity-with-non-abstract-properties", d.StaticEntityWithNonStaticProperties = "static-entity-with-non-static-properties", d.NonStaticPropertyInStaticEntity = "non-static-property-in-static-entity", d.AbstractPropertyInNonAbstractEntity = "abstract-property-in-non-abstract-entity", d.AbstractMethodInNonAbstractEntity = "abstract-method-in-non-abstract-entity", d.IncorrectEntityImplementation = "incorrect-entity-implementation", d.IncorrectMethodImplementation = "incorrect-method-implementation", d.IncorrectPropertyImplementation = "incorrect-property-implementation", d.PropertyImplementsNonAbstact = "property-implements-non-abstract", d.NonStaticPropertyImplementsStatic = "non-static-property-implements-static", d.StaticPropertyImplementsNonStatic = "static-property-implements-non-static", d.PropertyImplementsIncompatibleType = "property-implements-incompatible-type", d.MissingPropertyImplementation = "missing-property-implementation", d.MissingMethodImplementation = "missing-method-implementation", d.NoProperties = "no-properties", d.ReadingFromIncompatibleType = "reading-from-incompatible-type", d.WritingToIncompatibleType = "writing-to-incompatible-type", d.InvalidPropertiesCombination = "invalid-properties-combination", d.DisconnectedCallableEntity = "disconnected-callable-entity", d.VariableReadsValueAndInternalCall = "variable-reads-value-and-internal-call", d.VariableWritesValuesAndInternalCall = "variable-writes-values-and-internal-call", d.VariableHasInputsAndInternalCall = "variable-has-inputs-and-internal-calls", d.VariableHasOutputsAndInternalCall = "variable-has-outputs-and-internal-call", d.VariableIsCalledAndHasInternalCall = "variable-is-called-and-has-internal-call", d.VariableCallsOthersAndHasInternalCall = "variable-calls-others-and-has-internal-call", d.MissingRequiredValue = "missing-required-value", d.LackingReturnStatementOnSomeBranches = "lacking-return-statement-on-some-branches", d.LastCalledEntityMustBeReturnEntity = "last-called-entity-must-be-return-entity", d))(ve || {});
95296
95296
  class De {
95297
95297
  constructor(p) {
95298
95298
  // A deterministic error code, so if the same error occurs again in a subsequent validation run,
@@ -95356,7 +95356,7 @@ function OA(d) {
95356
95356
  const p = /* @__PURE__ */ new Set();
95357
95357
  return d.filter((i) => p.has(i.id) ? !1 : (p.add(i.id), !0));
95358
95358
  }
95359
- function Kt(d) {
95359
+ function kt(d) {
95360
95360
  const p = d.entity.errors.find((n) => n.id === d.id);
95361
95361
  return p ? { new: !1, error: p } : { new: !0, error: new Li(d) };
95362
95362
  }
@@ -97385,7 +97385,7 @@ function SK(d) {
97385
97385
  function Sgi(d) {
97386
97386
  const p = [];
97387
97387
  if (!d.calls.length && !d.extends) {
97388
- const i = Kt({
97388
+ const i = kt({
97389
97389
  id: `${d.id}--${ve.ScopeWithoutLogic}`,
97390
97390
  message: `Action "${se(d, d.project)}" with id "${d.id}" does not have any logic defined. So it doesn't do anything.`,
97391
97391
  severity: ue.Warning,
@@ -106401,7 +106401,7 @@ I(si, "MUTABLE_DOWNSTREAM_PROPERTIES", ["inputs", "outputs"]), I(si, "INMUTABLE_
106401
106401
  ]);
106402
106402
  let Ni = si;
106403
106403
  var nIi = /* @__PURE__ */ ((d) => (d.Parent = "loop-parent-field", d.LoopDataTypeEntity = "loop-data-type-entity-field", d.LoopDataType = "loop-data-type-field", d.LoopBodyDataTypeEntity = "loop-body-data-type-entity-field", d.LoopBodyDataType = "loop-body-data-type-field", d))(nIi || {});
106404
- const kt = class kt extends $r {
106404
+ const jt = class jt extends $r {
106405
106405
  constructor(i, n) {
106406
106406
  super(i);
106407
106407
  I(this, "initialData");
@@ -106597,7 +106597,7 @@ ${kR(n)}`
106597
106597
  return this.body.inputs.find(
106598
106598
  (c) => !!c.implements.find(
106599
106599
  (e) => e.id === i
106600
- ) || c.name === kt.CURRENT_ITERATION_NUMBER_ARG_NAME
106600
+ ) || c.name === jt.CURRENT_ITERATION_NUMBER_ARG_NAME
106601
106601
  );
106602
106602
  }
106603
106603
  // In loops that iterate over a value, like object keys, string characters, or list items,
@@ -106610,7 +106610,7 @@ ${kR(n)}`
106610
106610
  return this.body.inputs.find(
106611
106611
  (c) => !!c.implements.find(
106612
106612
  (e) => e.id === i
106613
- ) || c.name === kt.CURRENT_VALUE_ARG_NAME
106613
+ ) || c.name === jt.CURRENT_VALUE_ARG_NAME
106614
106614
  ) || null;
106615
106615
  }
106616
106616
  get continueStatements() {
@@ -106799,7 +106799,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
106799
106799
  // And adds it to the 'knownVersions' map
106800
106800
  captureVersion() {
106801
106801
  var n;
106802
- const i = ((n = this.knownVersions) == null ? void 0 : n.get(this.version)) || new kt(this, this.project);
106802
+ const i = ((n = this.knownVersions) == null ? void 0 : n.get(this.version)) || new jt(this, this.project);
106803
106803
  return i.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, i) : /* @__PURE__ */ new Map([[this.version, i]]), i.inputs = [...this.inputs], i.outputs = [...this.outputs], i.error = this.error, i.successCalls = [...this.successCalls], i.errorCalls = [...this.errorCalls], i.declaration = this.declaration, i.body = this.body, i.calledByEntry = [...this.calledByEntry], i.calledBySuccess = [...this.calledBySuccess], i.calledByError = [...this.calledByError], i.dataType = this.dataType, i.parent = this.parent, this;
106804
106804
  }
106805
106805
  // Traverses upstream entities and captures their versions as well
@@ -106864,7 +106864,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
106864
106864
  throw new Error(
106865
106865
  `Version with id '${i}' for entity with id '${this.id}' not found.`
106866
106866
  );
106867
- y = new kt(v, this.project);
106867
+ y = new jt(v, this.project);
106868
106868
  }
106869
106869
  return this.metaSync(y.toShallowJSON(), null), this.previousVersion = y.previousVersion, this.version = y.version, this.createdAt = y.createdAt, this.author = y.author, this.deleted = y.deleted, this.inputs = y.inputs, this.outputs = y.outputs, this.error = y.error, this.successCalls = y.successCalls, this.errorCalls = y.errorCalls, this.declaration = y.declaration, this.body = y.body, this.calledByEntry = y.calledByEntry, this.calledBySuccess = y.calledBySuccess, this.calledByError = y.calledByError, this.dataType = y.dataType, this.parent = y.parent, {
106870
106870
  updated: D(n),
@@ -107438,22 +107438,22 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
107438
107438
  return this.x = l.x || e.x, this.y = l.y || e.y, this.catchesError = l.catchesError !== void 0 ? l.catchesError : this.catchesError, super.baseMetaSync(l, this, n), l.deleted === !0 && !e.deleted ? n == null || n.add(this, H.Removed) : l.deleted === !1 && e.deleted ? n == null || n.add(this, H.Added) : c && (n == null || n.add(this, H.Updated)), n == null || n.attemptAutoclose("meta-sync", this.id), this;
107439
107439
  }
107440
107440
  async APILoad(i = Be, ...n) {
107441
- return await kt.repository.APILoad(this.id, ...n), this;
107441
+ return await jt.repository.APILoad(this.id, ...n), this;
107442
107442
  }
107443
107443
  async APICreate(i = Be, ...n) {
107444
- return await kt.repository.APICreate(this.toShallowJSON(), ...n), this;
107444
+ return await jt.repository.APICreate(this.toShallowJSON(), ...n), this;
107445
107445
  }
107446
107446
  async APIUpdate(i = Be, ...n) {
107447
- return await kt.repository.APIUpdate(this.toShallowJSON(), ...n), this;
107447
+ return await jt.repository.APIUpdate(this.toShallowJSON(), ...n), this;
107448
107448
  }
107449
107449
  async APIDelete(i = Be, ...n) {
107450
- return await kt.repository.APIDelete(this.toShallowJSON(), ...n), this;
107450
+ return await jt.repository.APIDelete(this.toShallowJSON(), ...n), this;
107451
107451
  }
107452
107452
  async APIClone(i = Be, ...n) {
107453
- return await kt.repository.APIClone(this.id, ...n), this;
107453
+ return await jt.repository.APIClone(this.id, ...n), this;
107454
107454
  }
107455
107455
  async APILoadVersion(i = Be, n, ...l) {
107456
- return await kt.repository.APILoadVersion(
107456
+ return await jt.repository.APILoadVersion(
107457
107457
  this.id,
107458
107458
  n,
107459
107459
  ...l
@@ -108582,7 +108582,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
108582
108582
  let T = this.body.inputs.find(
108583
108583
  (w) => {
108584
108584
  var _;
108585
- return w.name === kt.CURRENT_ITERATION_NUMBER_ARG_NAME || w.id === ((_ = this.currentIterationNumberArgumentDeclaration) == null ? void 0 : _.id);
108585
+ return w.name === jt.CURRENT_ITERATION_NUMBER_ARG_NAME || w.id === ((_ = this.currentIterationNumberArgumentDeclaration) == null ? void 0 : _.id);
108586
108586
  }
108587
108587
  );
108588
108588
  const v = this.getCurrentIterationNumberBuiltInValueDescriptor();
@@ -108597,7 +108597,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
108597
108597
  deletable: !0,
108598
108598
  editable: !0,
108599
108599
  type: o.ArgumentDeclaration,
108600
- name: kt.CURRENT_ITERATION_NUMBER_ARG_NAME,
108600
+ name: jt.CURRENT_ITERATION_NUMBER_ARG_NAME,
108601
108601
  codeName: null,
108602
108602
  description: "The number of the current iteration",
108603
108603
  defaultValue: null,
@@ -108813,7 +108813,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
108813
108813
  deletable: !0,
108814
108814
  editable: !0,
108815
108815
  type: o.ArgumentDeclaration,
108816
- name: kt.CURRENT_VALUE_ARG_NAME,
108816
+ name: jt.CURRENT_VALUE_ARG_NAME,
108817
108817
  codeName: null,
108818
108818
  description: null,
108819
108819
  defaultValue: null,
@@ -108915,7 +108915,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
108915
108915
  deletable: !0,
108916
108916
  editable: !0,
108917
108917
  type: o.ArgumentDeclaration,
108918
- name: kt.CURRENT_VALUE_ARG_NAME,
108918
+ name: jt.CURRENT_VALUE_ARG_NAME,
108919
108919
  codeName: null,
108920
108920
  description: null,
108921
108921
  defaultValue: null,
@@ -109106,7 +109106,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
109106
109106
  deletable: !0,
109107
109107
  editable: !0,
109108
109108
  type: o.ArgumentDeclaration,
109109
- name: kt.CURRENT_VALUE_ARG_NAME,
109109
+ name: jt.CURRENT_VALUE_ARG_NAME,
109110
109110
  codeName: null,
109111
109111
  description: null,
109112
109112
  constant: !0,
@@ -109207,7 +109207,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
109207
109207
  deletable: !0,
109208
109208
  editable: !0,
109209
109209
  type: o.ArgumentDeclaration,
109210
- name: kt.CURRENT_VALUE_ARG_NAME,
109210
+ name: jt.CURRENT_VALUE_ARG_NAME,
109211
109211
  codeName: null,
109212
109212
  description: null,
109213
109213
  index: this.body.inputs.length,
@@ -109975,7 +109975,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
109975
109975
  return i == null || i.attemptAutoclose("get-data-type", this.id), this.dataType || ((n = this.body) == null ? void 0 : n.dataType) || null;
109976
109976
  }
109977
109977
  };
109978
- I(kt, "repository", {
109978
+ I(jt, "repository", {
109979
109979
  APICreate: async (i, ...n) => i,
109980
109980
  APIUpdate: async (i, ...n) => i,
109981
109981
  APIDelete: async (i, ...n) => i,
@@ -109983,40 +109983,40 @@ I(kt, "repository", {
109983
109983
  },
109984
109984
  APILoad: async (i, ...n) => null,
109985
109985
  APILoadVersion: async (i, n, ...l) => null
109986
- }), I(kt, "type", o.Loop), I(kt, "USER_MANAGED_PARENT_TYPES", [
109986
+ }), I(jt, "type", o.Loop), I(jt, "USER_MANAGED_PARENT_TYPES", [
109987
109987
  ...mr,
109988
109988
  o.Project
109989
- ]), I(kt, "PARENT_TYPES", [
109989
+ ]), I(jt, "PARENT_TYPES", [
109990
109990
  ...Ni.USER_MANAGED_PARENT_TYPES
109991
- ]), I(kt, "CURRENT_ITERATION_NUMBER_ARG_NAME", "Current iteration number"), I(kt, "CURRENT_VALUE_ARG_NAME", "Current value"), I(kt, "MUTABLE_BASE_PROPERTIES", ["catchesError"]), I(kt, "INMUTABLE_BASE_PROPERTIES", [
109991
+ ]), I(jt, "CURRENT_ITERATION_NUMBER_ARG_NAME", "Current iteration number"), I(jt, "CURRENT_VALUE_ARG_NAME", "Current value"), I(jt, "MUTABLE_BASE_PROPERTIES", ["catchesError"]), I(jt, "INMUTABLE_BASE_PROPERTIES", [
109992
109992
  "id",
109993
109993
  "type",
109994
109994
  "version",
109995
109995
  "createdAt",
109996
109996
  "author",
109997
109997
  "previousVersion"
109998
- ]), I(kt, "BASE_PROPERTIES", [
109999
- ...kt.MUTABLE_BASE_PROPERTIES,
110000
- ...kt.INMUTABLE_BASE_PROPERTIES
109998
+ ]), I(jt, "BASE_PROPERTIES", [
109999
+ ...jt.MUTABLE_BASE_PROPERTIES,
110000
+ ...jt.INMUTABLE_BASE_PROPERTIES
110001
110001
  ]), // Includes the base properties and the meta properties
110002
110002
  // Often contains properties related to UX, not necessary for the logic
110003
- I(kt, "MUTABLE_META_PROPERTIES", [
110004
- ...kt.MUTABLE_BASE_PROPERTIES,
110003
+ I(jt, "MUTABLE_META_PROPERTIES", [
110004
+ ...jt.MUTABLE_BASE_PROPERTIES,
110005
110005
  "x",
110006
110006
  "y"
110007
- ]), I(kt, "INMUTABLE_META_PROPERTIES", [...kt.INMUTABLE_BASE_PROPERTIES]), I(kt, "META_PROPERTIES", [
110008
- ...kt.MUTABLE_META_PROPERTIES,
110009
- ...kt.INMUTABLE_META_PROPERTIES
110007
+ ]), I(jt, "INMUTABLE_META_PROPERTIES", [...jt.INMUTABLE_BASE_PROPERTIES]), I(jt, "META_PROPERTIES", [
110008
+ ...jt.MUTABLE_META_PROPERTIES,
110009
+ ...jt.INMUTABLE_META_PROPERTIES
110010
110010
  ]), // Properties pointing to nested entities that are declared before the entity itself
110011
- I(kt, "MUTABLE_UPSTREAM_PROPERTIES", [
110011
+ I(jt, "MUTABLE_UPSTREAM_PROPERTIES", [
110012
110012
  "calledBySuccess",
110013
110013
  "calledByError",
110014
110014
  "calledByEntry"
110015
- ]), I(kt, "INMUTABLE_UPSTREAM_PROPERTIES", ["parent", "declaration", "dataType"]), I(kt, "UPSTREAM_PROPERTIES", [
110016
- ...kt.MUTABLE_UPSTREAM_PROPERTIES,
110017
- ...kt.INMUTABLE_UPSTREAM_PROPERTIES
110015
+ ]), I(jt, "INMUTABLE_UPSTREAM_PROPERTIES", ["parent", "declaration", "dataType"]), I(jt, "UPSTREAM_PROPERTIES", [
110016
+ ...jt.MUTABLE_UPSTREAM_PROPERTIES,
110017
+ ...jt.INMUTABLE_UPSTREAM_PROPERTIES
110018
110018
  ]), // Properties pointing to nested entities that are declared after the entity itself or are direct children
110019
- I(kt, "MUTABLE_DOWNSTREAM_PROPERTIES", [
110019
+ I(jt, "MUTABLE_DOWNSTREAM_PROPERTIES", [
110020
110020
  "body",
110021
110021
  "inputs",
110022
110022
  "outputs",
@@ -110025,15 +110025,15 @@ I(kt, "MUTABLE_DOWNSTREAM_PROPERTIES", [
110025
110025
  "error",
110026
110026
  "breakStatements",
110027
110027
  "continueStatements"
110028
- ]), I(kt, "INMUTABLE_DOWNSTREAM_PROPERTIES", []), I(kt, "DOWNSTREAM_PROPERTIES", [
110029
- ...kt.MUTABLE_DOWNSTREAM_PROPERTIES,
110030
- ...kt.INMUTABLE_DOWNSTREAM_PROPERTIES
110031
- ]), I(kt, "PROPERTIES", [
110032
- ...kt.META_PROPERTIES,
110033
- ...kt.UPSTREAM_PROPERTIES,
110034
- ...kt.DOWNSTREAM_PROPERTIES
110028
+ ]), I(jt, "INMUTABLE_DOWNSTREAM_PROPERTIES", []), I(jt, "DOWNSTREAM_PROPERTIES", [
110029
+ ...jt.MUTABLE_DOWNSTREAM_PROPERTIES,
110030
+ ...jt.INMUTABLE_DOWNSTREAM_PROPERTIES
110031
+ ]), I(jt, "PROPERTIES", [
110032
+ ...jt.META_PROPERTIES,
110033
+ ...jt.UPSTREAM_PROPERTIES,
110034
+ ...jt.DOWNSTREAM_PROPERTIES
110035
110035
  ]);
110036
- let Sp = kt;
110036
+ let Sp = jt;
110037
110037
  function YK(d) {
110038
110038
  d.inputs.forEach((n) => n.validate());
110039
110039
  const i = [
@@ -112228,7 +112228,7 @@ function oo(d, p, i = /* @__PURE__ */ new Set()) {
112228
112228
  (e) => oo(e, p, i)
112229
112229
  )
112230
112230
  ]);
112231
- if (jt.includes(d.parent.type)) {
112231
+ if (Kt.includes(d.parent.type)) {
112232
112232
  const e = [d, ...d.getCounterparts()];
112233
112233
  return D([
112234
112234
  ...e,
@@ -113117,7 +113117,7 @@ function mIi(d, p, i = !1) {
113117
113117
  }
113118
113118
  function aL(d, p, i = !1) {
113119
113119
  var E, w, _;
113120
- if (![...jt, ...qt].includes(d.parent.type) || !i1(d))
113120
+ if (![...Kt, ...qt].includes(d.parent.type) || !i1(d))
113121
113121
  return null;
113122
113122
  if (((E = d.declaration) == null ? void 0 : E.type) === o.Property && d.declaration.static)
113123
113123
  return Zp(d.declaration, p);
@@ -113169,7 +113169,7 @@ function aL(d, p, i = !1) {
113169
113169
  }
113170
113170
  function sL(d, p, i = !1) {
113171
113171
  var E, w, _, $, L, U, F;
113172
- if (![...jt, ...qt].includes(d.parent.type) || !i1(d))
113172
+ if (![...Kt, ...qt].includes(d.parent.type) || !i1(d))
113173
113173
  return null;
113174
113174
  if (((E = d.declaration) == null ? void 0 : E.type) === o.Property && d.declaration.static)
113175
113175
  return Zp(
@@ -113368,7 +113368,7 @@ function tE(d, p, i = !1) {
113368
113368
  }
113369
113369
  function lD(d, p, i = !1) {
113370
113370
  var n, l;
113371
- return qt.includes(d.parent.type) && (n = Qn(d.parent).dataType) != null && n.isObject() || jt.includes(d.parent.type) && (l = d.parent.getDataType(null)) != null && l.isObject() ? aL(
113371
+ return qt.includes(d.parent.type) && (n = Qn(d.parent).dataType) != null && n.isObject() || Kt.includes(d.parent.type) && (l = d.parent.getDataType(null)) != null && l.isObject() ? aL(
113372
113372
  d,
113373
113373
  p,
113374
113374
  i
@@ -113376,7 +113376,7 @@ function lD(d, p, i = !1) {
113376
113376
  }
113377
113377
  function TIi(d, p, i = !1) {
113378
113378
  var n, l;
113379
- return qt.includes(d.parent.type) && (n = Qn(d.parent).dataType) != null && n.isObject() || jt.includes(d.parent.type) && (l = d.parent.getDataType(null)) != null && l.isObject() ? sL(
113379
+ return qt.includes(d.parent.type) && (n = Qn(d.parent).dataType) != null && n.isObject() || Kt.includes(d.parent.type) && (l = d.parent.getDataType(null)) != null && l.isObject() ? sL(
113380
113380
  d,
113381
113381
  p,
113382
113382
  i
@@ -129766,7 +129766,7 @@ class Bp extends Mf {
129766
129766
  n.type
129767
129767
  ) ? l.push(
129768
129768
  ...n.inputs
129769
- ) : jt.includes(n.type) && l.push(
129769
+ ) : Kt.includes(n.type) && l.push(
129770
129770
  ...n.outputs
129771
129771
  ), l.map(
129772
129772
  (e) => {
@@ -130208,7 +130208,7 @@ class Bp extends Mf {
130208
130208
  e
130209
130209
  ), (F.results || []).forEach((oe) => {
130210
130210
  var ye, _e, Ne, Me;
130211
- if (oe.valueOwner.type !== o.InputMap || jt.includes(oe.valueOwner.parent.type))
130211
+ if (oe.valueOwner.type !== o.InputMap || Kt.includes(oe.valueOwner.parent.type))
130212
130212
  return;
130213
130213
  const ce = i.body.inputs.find(
130214
130214
  (xe) => se(xe, l) === se(oe.valueOwner, l)
@@ -130285,7 +130285,7 @@ class Bp extends Mf {
130285
130285
  e
130286
130286
  ), (F.results || []).forEach((fe) => {
130287
130287
  var re, ye, _e;
130288
- if (fe.valueOwner.type !== o.InputMap || jt.includes(fe.valueOwner.parent.type))
130288
+ if (fe.valueOwner.type !== o.InputMap || Kt.includes(fe.valueOwner.parent.type))
130289
130289
  return;
130290
130290
  const oe = i.body.inputs.find(
130291
130291
  (Ne) => se(Ne, l) === se(fe.valueOwner, l)
@@ -130407,7 +130407,7 @@ class Bp extends Mf {
130407
130407
  e
130408
130408
  ), (F.results || []).forEach((re) => {
130409
130409
  var Me, xe, Ge;
130410
- if (re.valueOwner.type !== o.InputMap || jt.includes(re.valueOwner.parent.type))
130410
+ if (re.valueOwner.type !== o.InputMap || Kt.includes(re.valueOwner.parent.type))
130411
130411
  return;
130412
130412
  const ye = i.body.inputs.find(
130413
130413
  (We) => se(We, l) === se(re.valueOwner, l)
@@ -130529,7 +130529,7 @@ class Bp extends Mf {
130529
130529
  e
130530
130530
  ), (F.results || []).forEach((re) => {
130531
130531
  var Me, xe, Ge;
130532
- if (re.valueOwner.type !== o.InputMap || jt.includes(re.valueOwner.parent.type))
130532
+ if (re.valueOwner.type !== o.InputMap || Kt.includes(re.valueOwner.parent.type))
130533
130533
  return;
130534
130534
  const ye = i.body.inputs.find(
130535
130535
  (We) => se(We, l) === se(re.valueOwner, l)
@@ -130651,7 +130651,7 @@ class Bp extends Mf {
130651
130651
  e
130652
130652
  ), (F.results || []).forEach((re) => {
130653
130653
  var Me, xe, Ge;
130654
- if (re.valueOwner.type !== o.InputMap || jt.includes(re.valueOwner.parent.type))
130654
+ if (re.valueOwner.type !== o.InputMap || Kt.includes(re.valueOwner.parent.type))
130655
130655
  return;
130656
130656
  const ye = i.body.inputs.find(
130657
130657
  (We) => se(We, l) === se(re.valueOwner, l)
@@ -130773,7 +130773,7 @@ class Bp extends Mf {
130773
130773
  e
130774
130774
  ), (F.results || []).forEach((re) => {
130775
130775
  var Me, xe, Ge;
130776
- if (re.valueOwner.type !== o.InputMap || jt.includes(re.valueOwner.parent.type))
130776
+ if (re.valueOwner.type !== o.InputMap || Kt.includes(re.valueOwner.parent.type))
130777
130777
  return;
130778
130778
  const ye = i.body.inputs.find(
130779
130779
  (We) => se(We, l) === se(re.valueOwner, l)
@@ -131065,7 +131065,7 @@ class Bp extends Mf {
131065
131065
  e.forEach((v) => {
131066
131066
  this.addEntity(v);
131067
131067
  }), e.reduce(
131068
- (v, b) => jt.includes(b.type) ? [...v, ...b.outputs] : Pi.includes(b.type) && b.type !== o.Condition ? [
131068
+ (v, b) => Kt.includes(b.type) ? [...v, ...b.outputs] : Pi.includes(b.type) && b.type !== o.Condition ? [
131069
131069
  ...v,
131070
131070
  ...b.outputs,
131071
131071
  ...b.inputs
@@ -134605,7 +134605,7 @@ function sS(d) {
134605
134605
  if (d.parent !== d.project)
134606
134606
  return p;
134607
134607
  if (d.catchesError) {
134608
- const i = Kt({
134608
+ const i = kt({
134609
134609
  id: `${d.id}--${Ie.GlobalVariableDeclarationCannotCatchError}`,
134610
134610
  message: `${Vs[d.type].singular} "${se(d, d.project)}" with id "${d.id}" cannot catch an error because it is globally declared. Global variable declarations must crash the project if an error occurs.`,
134611
134611
  severity: ue.Error,
@@ -134615,7 +134615,7 @@ function sS(d) {
134615
134615
  p.push(i.error);
134616
134616
  }
134617
134617
  if (d.errorCalls.length) {
134618
- const i = Kt({
134618
+ const i = kt({
134619
134619
  id: `${d.id}--${Ie.GlobalVariableDeclarationCannotCallOnError}`,
134620
134620
  message: `${Vs[d.type].singular} "${se(d, d.project)}" with id "${d.id}" cannot call other entities from its error branch because it is globally declared. Global variable declarations must crash the project if an error occurs.`,
134621
134621
  severity: ue.Error,
@@ -134625,7 +134625,7 @@ function sS(d) {
134625
134625
  p.push(i.error);
134626
134626
  }
134627
134627
  if (d.calledBy.length) {
134628
- const i = Kt({
134628
+ const i = kt({
134629
134629
  id: `${d.id}--${Ie.GlobalVariableDeclarationCannotBeCalled}`,
134630
134630
  message: `${Vs[d.type].singular} "${se(d, d.project)}" with id "${d.id}" cannot be called because it is globally declared. Global variable declarations must be self initialized when the project is loaded, and not be called for initialization.`,
134631
134631
  severity: ue.Error,
@@ -163789,7 +163789,7 @@ function P3(d) {
163789
163789
  const p = [], i = YO(d.parent, null), n = i == null ? void 0 : i.entity;
163790
163790
  if (!n)
163791
163791
  p.push(
163792
- Kt({
163792
+ kt({
163793
163793
  id: `${d.id}--${Ie.InternalCallParentMissingDataType}`,
163794
163794
  code: Ie.InternalCallParentMissingDataType,
163795
163795
  severity: ue.Error,
@@ -163803,7 +163803,7 @@ function P3(d) {
163803
163803
  o.PrimitiveEntity
163804
163804
  ].includes(n.type))
163805
163805
  p.push(
163806
- Kt({
163806
+ kt({
163807
163807
  id: `${d.id}--${Ie.InternalCallParentDeclarationEntityInvalidType}`,
163808
163808
  code: Ie.InternalCallParentDeclarationEntityInvalidType,
163809
163809
  severity: ue.Error,
@@ -163836,7 +163836,7 @@ Built-in entity types can't have methods attached to them by the user. They are
163836
163836
  This variable's data-type 'entity' is a definition entity which extends or implements a non-interactive 'built-in-base-entity'.s` : n.type === o.BuiltInBaseEntity && (e = `
163837
163837
  This variable's data-type 'entity' is a non-interactive 'built-in-base-entity'.s`), !d.declaration)
163838
163838
  p.push(
163839
- Kt({
163839
+ kt({
163840
163840
  id: `${d.id}--${Ie.InternalCallDeclarationNotFound}`,
163841
163841
  code: Ie.InternalCallDeclarationNotFound,
163842
163842
  severity: ue.Error,
@@ -163849,7 +163849,7 @@ This variable's data-type 'entity' is a non-interactive 'built-in-base-entity'.s
163849
163849
  (T) => T.id === d.declaration.id
163850
163850
  );
163851
163851
  y ? y.type !== o.FunctionDeclaration && y.type !== o.ActionDescriptor && p.push(
163852
- Kt({
163852
+ kt({
163853
163853
  id: `${d.id}--${Ie.InternalCallDeclarationIsInvalidType}`,
163854
163854
  code: Ie.InternalCallDeclarationIsInvalidType,
163855
163855
  severity: ue.Error,
@@ -163858,7 +163858,7 @@ The declaration of the internal-call must be a '${o.FunctionDeclaration}' entity
163858
163858
  entity: d
163859
163859
  }).error
163860
163860
  ) : p.push(
163861
- Kt({
163861
+ kt({
163862
163862
  id: `${d.id}--${Ie.InternalCallDeclarationNotFoundInParentDatatypeEntity}`,
163863
163863
  code: Ie.InternalCallDeclarationNotFoundInParentDatatypeEntity,
163864
163864
  severity: ue.Error,
@@ -166434,7 +166434,7 @@ const pi = class pi extends $r {
166434
166434
  {
166435
166435
  parent: {
166436
166436
  list: !1,
166437
- types: [...Pi, ...jt]
166437
+ types: [...Pi, ...Kt]
166438
166438
  }
166439
166439
  },
166440
166440
  n
@@ -166946,7 +166946,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
166946
166946
  const n = [], l = [], c = [], e = [];
166947
166947
  this.initialized = !0;
166948
166948
  let y = this.index || 0;
166949
- const T = (jt.includes(this.parent.type) ? this.parent.outputs : this.parent.inputs).filter((b) => !b.deleted && b.id !== this.id);
166949
+ const T = (Kt.includes(this.parent.type) ? this.parent.outputs : this.parent.inputs).filter((b) => !b.deleted && b.id !== this.id);
166950
166950
  return T.length && (y > T.length + 1 ? y = T.length : y < 0 && (y = 0)), T.find(
166951
166951
  (b) => (b.index || 0) === y && !b.deleted
166952
166952
  ) && T.filter((b) => (b.index || 0) >= y && !b.deleted).forEach((b) => {
@@ -166982,7 +166982,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
166982
166982
  )) {
166983
166983
  var y;
166984
166984
  const n = [this], l = [], c = [], e = [];
166985
- return jt.includes(this.parent.type) ? this.parentRelationType === eu.Error ? this.parent.setThrows(this, i) : this.parent.addOutput(this, i) : this.parent.addInput(
166985
+ return Kt.includes(this.parent.type) ? this.parentRelationType === eu.Error ? this.parent.setThrows(this, i) : this.parent.addOutput(this, i) : this.parent.addInput(
166986
166986
  this,
166987
166987
  i
166988
166988
  ), e.push(this.parent), (y = this.readsValue) == null || y.addValueReader(this, i), this.readsValue && n.push(this.readsValue), this.subscribe(), this.subscribeToDependencies(), i == null || i.attemptAutoclose("add-self-to-project", this.id), {
@@ -167187,7 +167187,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
167187
167187
  self: this
167188
167188
  };
167189
167189
  const n = [], l = [], c = [], e = [];
167190
- return jt.includes((y = this.parent) == null ? void 0 : y.type) ? (this.parent.removeOutput(
167190
+ return Kt.includes((y = this.parent) == null ? void 0 : y.type) ? (this.parent.removeOutput(
167191
167191
  this,
167192
167192
  i
167193
167193
  ), e.push(this.parent)) : (this.parent.removeInput(
@@ -167665,7 +167665,7 @@ I(pi, "repository", {
167665
167665
  APILoadVersion: async (i, n, ...l) => null
167666
167666
  }), I(pi, "type", o.InputMap), I(pi, "USER_MANAGED_PARENT_TYPES", [
167667
167667
  ...Pi,
167668
- ...jt
167668
+ ...Kt
167669
167669
  ]), I(pi, "PARENT_TYPES", [
167670
167670
  ...pi.USER_MANAGED_PARENT_TYPES
167671
167671
  ]), I(pi, "MUTABLE_BASE_PROPERTIES", ["name", "codeName", "description"]), I(pi, "INMUTABLE_BASE_PROPERTIES", [
@@ -177042,7 +177042,7 @@ We have moved the reference to 'calledByEntry' for you.`
177042
177042
  ), i.calledByEntry.push(p.id), i.calledBySuccess = i.calledBySuccess.filter(
177043
177043
  (l) => l !== p.id
177044
177044
  );
177045
- else if (jt.includes(p.type)) {
177045
+ else if (Kt.includes(p.type)) {
177046
177046
  const l = p.calledBy || [], c = l.length ? `
177047
177047
 
177048
177048
  This ${p.type} is called by ${Dt(
@@ -177060,7 +177060,7 @@ This ${p.type} is called by ${Dt(
177060
177060
  message: `Entity of type "${d.type}" with id "${d.id}", has a reference to a '${p.type}' entity at 'calledBySuccess' with id "${p.id}".
177061
177061
  ${p.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
177062
177062
  Termination entities are ${Dt(
177063
- jt,
177063
+ Kt,
177064
177064
  ", ",
177065
177065
  " and "
177066
177066
  )}.${c}`
@@ -177107,7 +177107,7 @@ Entry-point entities can only be referenced as 'calledByEntry'.
177107
177107
  ${XA}`
177108
177108
  })
177109
177109
  );
177110
- else if (jt.includes(p.type)) {
177110
+ else if (Kt.includes(p.type)) {
177111
177111
  const n = p.calledBy || [], l = n.length ? `
177112
177112
 
177113
177113
  This ${p.type} is called by ${Dt(
@@ -177125,7 +177125,7 @@ This ${p.type} is called by ${Dt(
177125
177125
  message: `Entity of type "${d.type}" with id "${d.id}", has a reference to a '${p.type}' entity at 'calledByError' with id "${p.id}".
177126
177126
  ${p.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
177127
177127
  Termination entities are ${Dt(
177128
- jt,
177128
+ Kt,
177129
177129
  ", ",
177130
177130
  " and "
177131
177131
  )}.${l}`
@@ -177161,7 +177161,7 @@ ${ic}`
177161
177161
  }
177162
177162
  function LLi(d, p) {
177163
177163
  const i = [];
177164
- if (jt.includes(p.type)) {
177164
+ if (Kt.includes(p.type)) {
177165
177165
  const n = p.calledBy || [], l = n.length ? `
177166
177166
 
177167
177167
  This ${p.type} is called by ${Dt(
@@ -177179,7 +177179,7 @@ This ${p.type} is called by ${Dt(
177179
177179
  message: `Entity of type "${d.type}" with id "${d.id}", has a reference to a '${p.type}' entity at 'calledByEntry' with id "${p.id}".
177180
177180
  ${p.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
177181
177181
  Termination entities are ${Dt(
177182
- jt,
177182
+ Kt,
177183
177183
  ", ",
177184
177184
  " and "
177185
177185
  )}.${l}`
@@ -177339,10 +177339,10 @@ function GLi(d, p) {
177339
177339
  e,
177340
177340
  w,
177341
177341
  p
177342
- ) ? (jt.includes(n.type) && ((n.calledBySuccess || []).find(
177342
+ ) ? (Kt.includes(n.type) && ((n.calledBySuccess || []).find(
177343
177343
  ($) => $ === E.id
177344
177344
  ) ? (E.successCalls || []).find(
177345
- (U) => jt.includes(U.type)
177345
+ (U) => Kt.includes(U.type)
177346
177346
  ) && i.push(
177347
177347
  new De({
177348
177348
  id: `${n.id}--${E.id}--${Ie.UnreachableEntity}`,
@@ -177354,7 +177354,7 @@ The new termination statement is redundant because both entities would be called
177354
177354
  ) : (n.calledByError || []).find(
177355
177355
  ($) => $ === E.id
177356
177356
  ) ? (E.errorCalls || []).find(
177357
- (U) => jt.includes(U.type)
177357
+ (U) => Kt.includes(U.type)
177358
177358
  ) && i.push(
177359
177359
  new De({
177360
177360
  id: `${n.id}--${E.id}--${Ie.UnreachableEntity}`,
@@ -177366,7 +177366,7 @@ The new termination statement is redundant because both entities would be called
177366
177366
  ) : (n.calledByEntry || []).find(
177367
177367
  ($) => $ === E.id
177368
177368
  ) && (E.calls || []).find(
177369
- (U) => jt.includes(U.type)
177369
+ (U) => Kt.includes(U.type)
177370
177370
  ) && i.push(
177371
177371
  new De({
177372
177372
  id: `${n.id}--${E.id}--${Ie.UnreachableEntity}`,
@@ -177398,10 +177398,10 @@ The new termination statement is redundant because both entities would be called
177398
177398
  w,
177399
177399
  p
177400
177400
  );
177401
- _ ? (jt.includes(n.type) && ((n.calledBySuccess || []).find(
177401
+ _ ? (Kt.includes(n.type) && ((n.calledBySuccess || []).find(
177402
177402
  ($) => $ === E.id
177403
177403
  ) ? (E.successCalls || []).find(
177404
- (U) => jt.includes(U.type)
177404
+ (U) => Kt.includes(U.type)
177405
177405
  ) && i.push(
177406
177406
  new De({
177407
177407
  id: `${n.id}--${E.id}--${Ie.UnreachableEntity}`,
@@ -177413,7 +177413,7 @@ The new termination statement is redundant because both entities would be called
177413
177413
  ) : (n.calledByError || []).find(
177414
177414
  ($) => $ === E.id
177415
177415
  ) ? (E.errorCalls || []).find(
177416
- (U) => jt.includes(U.type)
177416
+ (U) => Kt.includes(U.type)
177417
177417
  ) && i.push(
177418
177418
  new De({
177419
177419
  id: `${n.id}--${E.id}--${Ie.UnreachableEntity}`,
@@ -177425,7 +177425,7 @@ The new termination statement is redundant because both entities would be called
177425
177425
  ) : (n.calledByEntry || []).find(
177426
177426
  ($) => $ === E.id
177427
177427
  ) && (E.calls || []).find(
177428
- (U) => jt.includes(U.type)
177428
+ (U) => Kt.includes(U.type)
177429
177429
  ) && i.push(
177430
177430
  new De({
177431
177431
  id: `${n.id}--${E.id}--${Ie.UnreachableEntity}`,
@@ -177473,13 +177473,13 @@ To add a caller, use the 'add_caller' action with the properties: 'callerEntityI
177473
177473
  Return statements need to have a caller when created, since their purpose is to terminate a call chain.` : n.type === o.ContinueStatement ? c += `
177474
177474
  Continue statements need to have a caller when created, since they are used to skip the rest of the current iteration of a loop and can't be detached from a call chain.` : n.type === o.BreakStatement && (c += `
177475
177475
  Break statements need to have a caller when created, since they are used to exit a loop and can't be detached from a call chain.`), c += `
177476
- ${NLi}`, jt.includes(n.type) || (c += `
177476
+ ${NLi}`, Kt.includes(n.type) || (c += `
177477
177477
  It is recommended to have a caller reference already at the moment of creation in the payload of the generation action.`), i.push(
177478
177478
  new De({
177479
177479
  id: `${n.id}--${Ie.MissingCaller}`,
177480
177480
  code: Ie.MissingCaller,
177481
177481
  // If it is a termination statement, make it an error, otherwise a warning
177482
- severity: jt.includes(n.type) ? ue.Error : ue.Warning,
177482
+ severity: Kt.includes(n.type) ? ue.Error : ue.Warning,
177483
177483
  message: c
177484
177484
  })
177485
177485
  );
@@ -177776,7 +177776,7 @@ function RUi(d, p, i = "calledBy") {
177776
177776
  ), n;
177777
177777
  if ([...Pi, ...zt].includes(l.type))
177778
177778
  return [];
177779
- if (jt.includes(l.type)) {
177779
+ if (Kt.includes(l.type)) {
177780
177780
  const c = l.calledBy || [], e = c.length ? `
177781
177781
 
177782
177782
  This ${l.type} is called by ${Dt(
@@ -177794,7 +177794,7 @@ This ${l.type} is called by ${Dt(
177794
177794
  message: `Entity with id '${l.id}' referenced in '${i}' property is of type '${l.type}'.
177795
177795
  ${l.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
177796
177796
  Termination entities are ${Dt(
177797
- jt,
177797
+ Kt,
177798
177798
  ", ",
177799
177799
  " and "
177800
177800
  )}.${e}`
@@ -177832,7 +177832,7 @@ function DUi(d, p, i = "calledByError") {
177832
177832
  ), n;
177833
177833
  if (Pi.includes(l.type))
177834
177834
  return [];
177835
- if (jt.includes(l.type)) {
177835
+ if (Kt.includes(l.type)) {
177836
177836
  const c = l.calledBy || [], e = c.length ? `
177837
177837
 
177838
177838
  This ${l.type} is called by ${Dt(
@@ -177850,7 +177850,7 @@ This ${l.type} is called by ${Dt(
177850
177850
  message: `Entity with id '${l.id}' referenced in '${i}' property is of type '${l.type}'.
177851
177851
  ${l.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
177852
177852
  Termination entities are ${Dt(
177853
- jt,
177853
+ Kt,
177854
177854
  ", ",
177855
177855
  " and "
177856
177856
  )}.${e}`
@@ -178369,7 +178369,7 @@ function m0(d) {
178369
178369
  return p;
178370
178370
  const i = d.project.requestActiveDynamicValue(d, !0);
178371
178371
  if ((i == null ? void 0 : i.type) === $e.Missing) {
178372
- const n = Kt({
178372
+ const n = kt({
178373
178373
  id: `${d.id}--${ve.MissingRequiredValue}`,
178374
178374
  message: `The '${d.type}' entity "${se(
178375
178375
  d,
@@ -178391,7 +178391,7 @@ function Iq(d) {
178391
178391
  (n) => n.calledBy.length || n.successCalls.length || n.errorCalls.length || n.getUsedInputs().length || n.getUsedOutputs().length
178392
178392
  );
178393
178393
  if (d.readsValue && i) {
178394
- const n = Kt({
178394
+ const n = kt({
178395
178395
  id: `${d.id}--${ve.VariableReadsValueAndInternalCall}`,
178396
178396
  message: `Variable "${se(d, d.project)}" with id "${d.id}" reads a value. A variable with internal calls can't read a value.`,
178397
178397
  severity: ue.Error,
@@ -178401,7 +178401,7 @@ function Iq(d) {
178401
178401
  p.push(n.error);
178402
178402
  }
178403
178403
  if (d.writesValues.length && i) {
178404
- const n = Kt({
178404
+ const n = kt({
178405
178405
  id: `${d.id}--${ve.VariableWritesValuesAndInternalCall}`,
178406
178406
  message: `Variable "${se(d, d.project)}" with id "${d.id}" writes values. A variable with internal calls can't write a value.`,
178407
178407
  severity: ue.Error,
@@ -178411,7 +178411,7 @@ function Iq(d) {
178411
178411
  p.push(n.error);
178412
178412
  }
178413
178413
  if (d.getUsedInputs().length && i) {
178414
- const n = Kt({
178414
+ const n = kt({
178415
178415
  id: `${d.id}--${ve.VariableHasInputsAndInternalCall}`,
178416
178416
  message: `Variable "${se(d, d.project)}" with id "${d.id}" has inputs. A variable with internal calls can't have inputs.`,
178417
178417
  severity: ue.Error,
@@ -178421,7 +178421,7 @@ function Iq(d) {
178421
178421
  p.push(n.error);
178422
178422
  }
178423
178423
  if (d.getUsedOutputs().length && i) {
178424
- const n = Kt({
178424
+ const n = kt({
178425
178425
  id: `${d.id}--${ve.VariableHasOutputsAndInternalCall}`,
178426
178426
  message: `Variable "${se(d, d.project)}" with id "${d.id}" has outputs. A variable with internal calls can't have outputs.`,
178427
178427
  severity: ue.Error,
@@ -178431,7 +178431,7 @@ function Iq(d) {
178431
178431
  p.push(n.error);
178432
178432
  }
178433
178433
  if (d.calledBy.length && i) {
178434
- const n = Kt({
178434
+ const n = kt({
178435
178435
  id: `${d.id}--${ve.VariableIsCalledAndHasInternalCall}`,
178436
178436
  message: `Variable "${se(d, d.project)}" with id "${d.id}" is called by other entities. A variable with internal calls can't be called by other entities.`,
178437
178437
  severity: ue.Error,
@@ -178441,7 +178441,7 @@ function Iq(d) {
178441
178441
  p.push(n.error);
178442
178442
  }
178443
178443
  if ([...d.successCalls, ...d.errorCalls].length && i) {
178444
- const n = Kt({
178444
+ const n = kt({
178445
178445
  id: `${d.id}--${ve.VariableCallsOthersAndHasInternalCall}`,
178446
178446
  message: `Variable "${se(d, d.project)}" with id "${d.id}" calls other entities. A variable with internal calls can't call other entities.`,
178447
178447
  severity: ue.Error,
@@ -178495,10 +178495,10 @@ function Dq(d) {
178495
178495
  const p = [], i = ((c = d.implements) == null ? void 0 : c.getDataType(null)) || null;
178496
178496
  if (!i || ((e = i.entity) == null ? void 0 : e.id) === Y["primitive-entity"].void.id)
178497
178497
  return p;
178498
- if (Rt(d).filter((y) => jt.includes(y.type) || !Rq(
178498
+ if (Rt(d).filter((y) => Kt.includes(y.type) || !Rq(
178499
178499
  y
178500
178500
  ) ? !1 : !!(!y.successCalls.length && !y.errorCalls.length && y.calledBy.length)).length) {
178501
- const y = Kt({
178501
+ const y = kt({
178502
178502
  id: `${d.id}--${ve.LackingReturnStatementOnSomeBranches}`,
178503
178503
  message: `The '${d.type}' entity "${se(
178504
178504
  d,
@@ -178514,12 +178514,12 @@ function Dq(d) {
178514
178514
  }
178515
178515
  function sp(d) {
178516
178516
  const p = [];
178517
- if (!en.includes(d.type) || jt.includes(d.type) || zt.includes(d.type) || !Rq(
178517
+ if (!en.includes(d.type) || Kt.includes(d.type) || zt.includes(d.type) || !Rq(
178518
178518
  d
178519
178519
  ))
178520
178520
  return p;
178521
178521
  if (!d.successCalls.length && !d.errorCalls.length && d.calledBy.length) {
178522
- const i = Kt({
178522
+ const i = kt({
178523
178523
  id: `${d.id}--${ve.LastCalledEntityMustBeReturnEntity}`,
178524
178524
  message: `The '${d.type}' entity "${se(
178525
178525
  d,
@@ -178588,7 +178588,7 @@ const jLi = [
178588
178588
  function QA(d, p = [zi], i = [], n) {
178589
178589
  const l = [], c = n ?? d.name;
178590
178590
  if (!c) {
178591
- const v = Kt({
178591
+ const v = kt({
178592
178592
  id: `${d.id}--${Ie.EmptyName}`,
178593
178593
  message: `${Vs[d.type].singular} "${se(d, d.project)}" with id "${d.id}" does not have a name. Entities of type ${d.type} must have valid names.`,
178594
178594
  severity: ue.Error,
@@ -178601,7 +178601,7 @@ function QA(d, p = [zi], i = [], n) {
178601
178601
  (v) => v.name === c || v.name === e
178602
178602
  );
178603
178603
  if (!y) {
178604
- const v = Kt({
178604
+ const v = kt({
178605
178605
  id: `${d.id}--${Ie.NameNotUniqueInScope}`,
178606
178606
  message: `${Vs[d.type].singular} "${se(d, d.project)}" with id "${d.id}" does not have a unique name. Entities of type ${d.type} must have valid names among all other entities of its type.`,
178607
178607
  severity: ue.Error,
@@ -178615,7 +178615,7 @@ function QA(d, p = [zi], i = [], n) {
178615
178615
  if (!!i.some(
178616
178616
  (_) => v(_.name || "") === b
178617
178617
  ) && y) {
178618
- const _ = Kt({
178618
+ const _ = kt({
178619
178619
  id: `${d.id}--${Ie.NameAsResolvedCodeNameNotUniqueInScope}`,
178620
178620
  message: `${Vs[d.type].singular} "${se(d, d.project)}" with id "${d.id}" does not have a unique name once it is resolved as it will appear in code: "${b}". Entities of type ${d.type} must have valid names including their code name form.`,
178621
178621
  severity: ue.Error,
@@ -178627,7 +178627,7 @@ function QA(d, p = [zi], i = [], n) {
178627
178627
  if (jLi.find(
178628
178628
  (_) => _ === b
178629
178629
  )) {
178630
- const _ = Kt({
178630
+ const _ = kt({
178631
178631
  id: `${d.id}--${Ie.NameIsForbiddenKeyword}`,
178632
178632
  message: `${Vs[d.type].singular} "${se(d, d.project)}" with id "${d.id}" has a name that is a forbidden keyword: "${b}". Entities of type ${d.type} must not use reserved keywords as names.`,
178633
178633
  severity: ue.Error,
@@ -178637,7 +178637,7 @@ function QA(d, p = [zi], i = [], n) {
178637
178637
  l.push(_.error);
178638
178638
  }
178639
178639
  }), !/^[a-zA-Z_]/.test(c)) {
178640
- const v = Kt({
178640
+ const v = kt({
178641
178641
  id: `${d.id}--${Ie.NameMustStartWithLetterOrUnderscore}`,
178642
178642
  message: `${Vs[d.type].singular} "${se(d, d.project)}" with id "${d.id}" has a name that does not start with a letter or underscore.`,
178643
178643
  severity: ue.Error,
@@ -182740,7 +182740,7 @@ function _f(d, p, i = !1) {
182740
182740
  };
182741
182741
  }
182742
182742
  }
182743
- const v = jt.includes(n.type) ? [] : Rt(n), b = e.filter((Z) => !(jt.includes(Z.callee.type) || Z.callee === n || !Rt(
182743
+ const v = Kt.includes(n.type) ? [] : Rt(n), b = e.filter((Z) => !(Kt.includes(Z.callee.type) || Z.callee === n || !Rt(
182744
182744
  Z.callee
182745
182745
  ).find((ae) => ae === n) || v.find((ae) => ae === Z.callee)));
182746
182746
  if (i && (ie.log(
@@ -182957,7 +182957,7 @@ function jUi(d) {
182957
182957
  (y) => ID(y)
182958
182958
  ) : []
182959
182959
  ]), n = D(
182960
- i.map((y) => xq(y)).flatMap((y) => jt.includes(y == null ? void 0 : y.type) ? y.calledBy : [y])
182960
+ i.map((y) => xq(y)).flatMap((y) => Kt.includes(y == null ? void 0 : y.type) ? y.calledBy : [y])
182961
182961
  );
182962
182962
  if (n.length === 1) {
182963
182963
  const y = n[0];
@@ -183210,7 +183210,7 @@ function mt(d, p) {
183210
183210
  d.setParent(i, p), d.addSelfToProject(p);
183211
183211
  } else
183212
183212
  d.setParent(i, p), d.addSelfToProject(p);
183213
- if (jt.includes(d.type))
183213
+ if (Kt.includes(d.type))
183214
183214
  return;
183215
183215
  Rt(d).forEach((l) => {
183216
183216
  let c = Ub(l);
@@ -183590,7 +183590,7 @@ function FUi(d) {
183590
183590
  return d.type === o.VariableDeclaration ? [d] : Pi.includes(d.type) ? [
183591
183591
  ...d.inputs,
183592
183592
  ...d.outputs || []
183593
- ] : jt.includes(d.type) ? d.outputs : Xf.includes(d.type) || d.type === o.FunctionDeclaration ? d.inputs : [];
183593
+ ] : Kt.includes(d.type) ? d.outputs : Xf.includes(d.type) || d.type === o.FunctionDeclaration ? d.inputs : [];
183594
183594
  }
183595
183595
  function SUi(d) {
183596
183596
  const p = co(d), i = [], n = [];
@@ -184754,7 +184754,7 @@ function QUi(d) {
184754
184754
  const i = d.declaration;
184755
184755
  return i.dataType && i.dataType.entity && i.dataType.entity.type === o.DefinitionEntity && i.dataType.entity.properties.length ? i.dataType.entity.properties : [];
184756
184756
  }
184757
- return jt.includes(d.type) ? d.outputs.map((i) => i.declaration).filter((i) => !!i) || [] : [];
184757
+ return Kt.includes(d.type) ? d.outputs.map((i) => i.declaration).filter((i) => !!i) || [] : [];
184758
184758
  }
184759
184759
  function eki(d, p) {
184760
184760
  return p.type === o.Condition ? null : (p.type === o.FunctionCall || p.type === o.Operation) && p.outputs.find((i) => {
@@ -184807,7 +184807,7 @@ function Yh(d) {
184807
184807
  function Xh(d) {
184808
184808
  const p = v_(d), i = [];
184809
184809
  return p.forEach((n) => {
184810
- if ([...qt, ...jt].includes(n.type))
184810
+ if ([...qt, ...Kt].includes(n.type))
184811
184811
  i.push(n);
184812
184812
  else if (Ns.includes(n.type)) {
184813
184813
  const l = n.parent;
@@ -185679,7 +185679,7 @@ function zb(d) {
185679
185679
  [
185680
185680
  ...c.successCalls || []
185681
185681
  ].forEach((T) => {
185682
- jt.includes(T.type) && T.id !== d.id && (Rt(
185682
+ Kt.includes(T.type) && T.id !== d.id && (Rt(
185683
185683
  d
185684
185684
  ).find((E) => E === T) || n(c, T));
185685
185685
  });
@@ -185696,7 +185696,7 @@ function zb(d) {
185696
185696
  [
185697
185697
  ...c.errorCalls || []
185698
185698
  ].forEach((T) => {
185699
- jt.includes(T.type) && T !== d && (Rt(
185699
+ Kt.includes(T.type) && T !== d && (Rt(
185700
185700
  d
185701
185701
  ).find((E) => E === T) || n(c, T));
185702
185702
  });
@@ -185711,7 +185711,7 @@ function zb(d) {
185711
185711
  }
185712
185712
  }), d.calledByEntry.forEach((c) => {
185713
185713
  if ([...c.calls || []].forEach((T) => {
185714
- jt.includes(T.type) && T !== d && (Rt(
185714
+ Kt.includes(T.type) && T !== d && (Rt(
185715
185715
  d
185716
185716
  ).find((E) => E === T) || n(c, T));
185717
185717
  }), c === l)
@@ -187443,16 +187443,27 @@ function gZ(d) {
187443
187443
  return typeof d == "string" && qGi.test(d);
187444
187444
  }
187445
187445
  function IZ(d) {
187446
+ var i, n;
187446
187447
  const p = [];
187447
187448
  if (d.entity && d.andChildrenGroup || d.entity && d.orChildrenGroup || d.andChildrenGroup && d.orChildrenGroup || d.entity && d.foreignKeyRef || d.andChildrenGroup && d.foreignKeyRef || d.orChildrenGroup && d.foreignKeyRef || d.foreignKeyRef && d.foreignKeyAllowed || d.entity && d.foreignKeyAllowed || d.andChildrenGroup && d.foreignKeyAllowed || d.orChildrenGroup && d.foreignKeyAllowed || d.foreignKeyAllowed && d.foreignKeyRef) {
187448
- const i = Kt({
187449
+ const l = kt({
187449
187450
  id: d.id + "--" + ve.InvalidPropertiesCombination,
187450
187451
  message: `Data type with id "${d.id}" has invalid properties combination. Only one of the following properties can be present at the time: 'entity', 'andChildrenGroup', 'orChildrenGroup', 'foreignKeyRef' or 'foreignKeyAllowed'.`,
187451
187452
  severity: ue.Error,
187452
187453
  code: ve.InvalidPropertiesCombination,
187453
187454
  entity: d
187454
187455
  });
187455
- p.push(i.error);
187456
+ p.push(l.error);
187457
+ }
187458
+ if (((i = d.entity) == null ? void 0 : i.type) === o.PrimitiveEntity && d.entity.id === Y["primitive-entity"].enum.id && !((n = d.options) != null && n.length)) {
187459
+ const l = kt({
187460
+ id: d.id + "--" + ve.MissingEnumOptions,
187461
+ message: `Data type with id "${d.id}" is an enum but has no options.`,
187462
+ severity: ue.Error,
187463
+ code: ve.MissingEnumOptions,
187464
+ entity: d
187465
+ });
187466
+ p.push(l.error);
187456
187467
  }
187457
187468
  return or(d.errors, p);
187458
187469
  }
@@ -189216,7 +189227,7 @@ function wZ(d, p) {
189216
189227
  if (!d.implements)
189217
189228
  return i;
189218
189229
  if (!p.abstract) {
189219
- const l = Kt({
189230
+ const l = kt({
189220
189231
  id: `${d.id}--${ve.PropertyImplementsNonAbstact}`,
189221
189232
  message: `Property "${se(d, d.project)}" with id "${d.id}" implements a non-abstract property "${se(
189222
189233
  p,
@@ -189229,7 +189240,7 @@ function wZ(d, p) {
189229
189240
  i.push(l.error);
189230
189241
  }
189231
189242
  if (d.static && !p.static) {
189232
- const l = Kt({
189243
+ const l = kt({
189233
189244
  id: `${d.id}--${ve.NonStaticPropertyImplementsStatic}`,
189234
189245
  message: `Static property "${se(
189235
189246
  d,
@@ -189245,7 +189256,7 @@ function wZ(d, p) {
189245
189256
  i.push(l.error);
189246
189257
  }
189247
189258
  if (!d.static && p.static) {
189248
- const l = Kt({
189259
+ const l = kt({
189249
189260
  id: `${d.id}--${ve.StaticPropertyImplementsNonStatic}`,
189250
189261
  message: `Non-static property "${se(
189251
189262
  d,
@@ -189264,7 +189275,7 @@ function wZ(d, p) {
189264
189275
  d.dataType,
189265
189276
  p.dataType
189266
189277
  )) {
189267
- const l = Kt({
189278
+ const l = kt({
189268
189279
  id: `${d.id}--${ve.PropertyImplementsIncompatibleType}`,
189269
189280
  message: `Property "${se(d, d.project)}" with id "${d.id}" implements a property "${se(
189270
189281
  p,
@@ -191134,7 +191145,7 @@ function VZ(d, p) {
191134
191145
  function YGi(d, p) {
191135
191146
  const i = [];
191136
191147
  if (!p.abstract) {
191137
- const b = Kt({
191148
+ const b = kt({
191138
191149
  id: d.id + "--" + ve.ImplementingNonAbstractEntity,
191139
191150
  message: `Entity "${d.name}" with id "${d.id}" is implementing a non-abstract entity "${p.name}" with id "${p.id}"`,
191140
191151
  severity: ue.Error,
@@ -191153,7 +191164,7 @@ function YGi(d, p) {
191153
191164
  (w) => w.id !== E.id
191154
191165
  ) : l.push(b);
191155
191166
  }), l.length && l.forEach((b) => {
191156
- const E = Kt({
191167
+ const E = kt({
191157
191168
  id: d.id + "--" + ve.MissingPropertyImplementation + "--" + b.id,
191158
191169
  message: `Property "${b.name}" with id "${b.id}" of entity "${p.name}" with id "${p.id}" is not implemented when entity "${d.name}" with id "${d.id}" implements it`,
191159
191170
  severity: ue.Error,
@@ -191175,7 +191186,7 @@ function YGi(d, p) {
191175
191186
  (w) => w.id !== E.id
191176
191187
  ) : e.push(b);
191177
191188
  }), e.length && e.forEach((b) => {
191178
- const E = Kt({
191189
+ const E = kt({
191179
191190
  id: d.id + "--" + ve.MissingMethodImplementation + "--" + b.id,
191180
191191
  message: `Method "${b.name}" with id "${b.id}" of entity "${p.name}" with id "${p.id}" is not implemented when entity "${d.name}" with id "${d.id}" implements it`,
191181
191192
  severity: ue.Error,
@@ -191191,7 +191202,7 @@ function YGi(d, p) {
191191
191202
  );
191192
191203
  E && T.push([E, b]);
191193
191204
  }), T.length && T.forEach(([b]) => {
191194
- const E = Kt({
191205
+ const E = kt({
191195
191206
  id: d.id + "--" + Ie.PropertyOverwritesOtherSiblingWithSameName + "--" + b.id,
191196
191207
  message: `Property "${b.name}" with id "${b.id}" of entity "${d.name}" with id "${d.id}" overwrites the property with the same name from the base entity "${p.name}" with id "${p.id}"`,
191197
191208
  severity: ue.Error,
@@ -191207,7 +191218,7 @@ function YGi(d, p) {
191207
191218
  );
191208
191219
  E && v.push([E, b]);
191209
191220
  }), v.length && v.forEach(([b]) => {
191210
- const E = Kt({
191221
+ const E = kt({
191211
191222
  id: d.id + "--" + Ie.MethodOverwritesOtherSiblingWithSameName + "--" + b.id,
191212
191223
  message: `Method "${b.name}" with id "${b.id}" of entity "${d.name}" with id "${d.id}" overwrites the method with the same name from the base entity "${p.name}" with id "${p.id}"`,
191213
191224
  severity: ue.Error,
@@ -191223,7 +191234,7 @@ function XGi(d, p) {
191223
191234
  return i;
191224
191235
  const n = [];
191225
191236
  if (!d.abstract && p.abstract) {
191226
- const c = Kt({
191237
+ const c = kt({
191227
191238
  id: d.id + "--" + p.id + "--" + ve.NonAbstractExtendingAbstractEntity,
191228
191239
  message: `Entity "${d.name}" with id "${d.id}" is not-abstract but is extending an abstract entity "${p.name}" with id "${p.id}"`,
191229
191240
  severity: ue.Error,
@@ -191234,7 +191245,7 @@ function XGi(d, p) {
191234
191245
  return i.push(c.error), i;
191235
191246
  }
191236
191247
  if (d.abstract && !p.abstract) {
191237
- const c = Kt({
191248
+ const c = kt({
191238
191249
  id: d.id + "--" + p.id + "--" + ve.AbstractExtendingNonAbstractEntity,
191239
191250
  message: `Entity "${d.name}" with id "${d.id}" is abstract but is extending an non-abstract entity "${p.name}" with id "${p.id}"`,
191240
191251
  severity: ue.Error,
@@ -191254,7 +191265,7 @@ function XGi(d, p) {
191254
191265
  );
191255
191266
  c.implements.find((y) => y.id === (e == null ? void 0 : e.id)) || e && n.push(c);
191256
191267
  }), n.length && n.forEach((c) => {
191257
- const e = Kt({
191268
+ const e = kt({
191258
191269
  id: d.id + "--" + Ie.PropertyOverwritesOtherSiblingWithSameName,
191259
191270
  message: `Property "${c.name}" with id "${c.id}" of entity "${d.name}" with id "${d.id}" overwrites the property with the same name from the extended entity "${p.name}" with id "${p.id}"`,
191260
191271
  severity: ue.Error,
@@ -191275,7 +191286,7 @@ function XGi(d, p) {
191275
191286
  );
191276
191287
  ((y = c.implements) == null ? void 0 : y.id) !== (e == null ? void 0 : e.id) && e && l.push(c);
191277
191288
  }), l.length && l.forEach((c) => {
191278
- const e = Kt({
191289
+ const e = kt({
191279
191290
  id: d.id + "--" + Ie.MethodOverwritesOtherSiblingWithSameName,
191280
191291
  message: `Method "${c.name}" with id "${c.id}" of entity "${d.name}" with id "${d.id}" overwrites the method with the same name from the extended entity "${p.name}" with id "${p.id}"`,
191281
191292
  severity: ue.Error,
@@ -191288,7 +191299,7 @@ function XGi(d, p) {
191288
191299
  function QGi(d) {
191289
191300
  const p = [];
191290
191301
  if (!d.properties.length) {
191291
- const i = Kt({
191302
+ const i = kt({
191292
191303
  id: d.id + "--" + ve.NoProperties,
191293
191304
  message: "No properties implemented",
191294
191305
  severity: ue.Warning,
@@ -191305,7 +191316,7 @@ function eMi(d) {
191305
191316
  const p = [];
191306
191317
  if (d.abstract) {
191307
191318
  if (d.methods.length) {
191308
- const i = Kt({
191319
+ const i = kt({
191309
191320
  id: d.id + "--" + ve.AbstractEntityWithNonAbstractMethods,
191310
191321
  message: `Entity "${d.name}" with id "${d.id}" is marked as abstract but has non-abstract methods`,
191311
191322
  severity: ue.Error,
@@ -191315,7 +191326,7 @@ function eMi(d) {
191315
191326
  p.push(i.error);
191316
191327
  }
191317
191328
  if (d.properties.some((i) => !i.abstract)) {
191318
- const i = Kt({
191329
+ const i = kt({
191319
191330
  id: d.id + "--" + ve.AbstractEntityWithNonAbstractProperties,
191320
191331
  message: `Entity "${d.name}" with id "${d.id}" is marked as abstract but has non-abstract properties`,
191321
191332
  severity: ue.Error,
@@ -191324,7 +191335,7 @@ function eMi(d) {
191324
191335
  });
191325
191336
  p.push(i.error), d.properties.forEach((n) => {
191326
191337
  if (!n.abstract) {
191327
- const l = Kt({
191338
+ const l = kt({
191328
191339
  id: d.id + "--" + ve.StaticEntityWithNonStaticProperties + "--" + n.id,
191329
191340
  message: `Property "${n.name}" with id "${n.id}" of entity "${d.name}" with id "${d.id}" is not marked as abstract but the entity is marked as abstract`,
191330
191341
  severity: ue.Error,
@@ -191337,7 +191348,7 @@ function eMi(d) {
191337
191348
  }
191338
191349
  } else {
191339
191350
  if (d.abstractMethods.length) {
191340
- const i = Kt({
191351
+ const i = kt({
191341
191352
  id: d.id + "--" + ve.AbstractPropertyInNonAbstractEntity,
191342
191353
  message: `Entity "${d.name}" with id "${d.id}" is not marked as abstract but has abstract methods`,
191343
191354
  severity: ue.Error,
@@ -191348,7 +191359,7 @@ function eMi(d) {
191348
191359
  }
191349
191360
  d.properties.some((i) => i.abstract) && d.properties.forEach((i) => {
191350
191361
  if (i.abstract) {
191351
- const n = Kt({
191362
+ const n = kt({
191352
191363
  id: d.id + "--" + ve.AbstractPropertyInNonAbstractEntity + "--" + i.id,
191353
191364
  message: `Property "${i.name}" with id "${i.id}" of entity "${d.name}" with id "${d.id}" is marked as abstract but the entity is not marked as abstract`,
191354
191365
  severity: ue.Error,
@@ -191362,7 +191373,7 @@ function eMi(d) {
191362
191373
  }
191363
191374
  return d.static && d.properties.some((i) => !i.static) && d.properties.forEach((i) => {
191364
191375
  if (!i.static) {
191365
- const n = Kt({
191376
+ const n = kt({
191366
191377
  id: d.id + "--" + ve.NonStaticPropertyInStaticEntity + "--" + i.id,
191367
191378
  message: `Property "${i.name}" with id "${i.id}" of entity "${d.name}" with id "${d.id}" is not marked as static but the entity is marked as static`,
191368
191379
  severity: ue.Error,
@@ -191500,7 +191511,7 @@ function iMi(d, p, i = !1) {
191500
191511
  var v, b;
191501
191512
  const n = [], l = Yn(p);
191502
191513
  if (!d.abstract && p.abstract) {
191503
- const E = Kt({
191514
+ const E = kt({
191504
191515
  id: d.id + "--" + p.id + "--" + ve.NonAbstractExtendingAbstractEntity,
191505
191516
  message: `Entity "${d.name}" with id "${d.id}" is not-abstract but is extending an abstract entity "${p.name}" with id "${p.id}"`,
191506
191517
  severity: ue.Error,
@@ -191511,7 +191522,7 @@ function iMi(d, p, i = !1) {
191511
191522
  n.push(E.error);
191512
191523
  }
191513
191524
  if (d.abstract && !p.abstract) {
191514
- const E = Kt({
191525
+ const E = kt({
191515
191526
  id: d.id + "--" + p.id + "--" + ve.AbstractExtendingNonAbstractEntity,
191516
191527
  message: `Entity "${d.name}" with id "${d.id}" is abstract but is extending an non-abstract entity "${p.name}" with id "${p.id}"`,
191517
191528
  severity: ue.Error,
@@ -191522,7 +191533,7 @@ function iMi(d, p, i = !1) {
191522
191533
  n.push(E.error);
191523
191534
  }
191524
191535
  if (!d.static && p.static) {
191525
- const E = Kt({
191536
+ const E = kt({
191526
191537
  id: d.id + "--" + p.id + "--" + ve.NonStaticExtendingStaticEntity,
191527
191538
  message: `Entity "${d.name}" with id "${d.id}" is not static but is extending a static entity "${p.name}" with id "${p.id}"`,
191528
191539
  severity: ue.Error,
@@ -191533,7 +191544,7 @@ function iMi(d, p, i = !1) {
191533
191544
  n.push(E.error);
191534
191545
  }
191535
191546
  if (d.static && !p.static) {
191536
- const E = Kt({
191547
+ const E = kt({
191537
191548
  id: d.id + "--" + p.id + "--" + ve.StaticExtendingNonStaticEntity,
191538
191549
  message: `Entity "${d.name}" with id "${d.id}" is static but is extending an non-static entity "${p.name}" with id "${p.id}"`,
191539
191550
  severity: ue.Error,
@@ -191544,7 +191555,7 @@ function iMi(d, p, i = !1) {
191544
191555
  n.push(E.error);
191545
191556
  }
191546
191557
  if (!T0(p)) {
191547
- const E = Kt({
191558
+ const E = kt({
191548
191559
  id: d.id + "--" + p.id + "--" + ve.ExtendingNonInteractiveEntity,
191549
191560
  message: `Entity "${d.name}" with id "${d.id}" is extending an non-interactive entity "${p.name}" with id "${p.id}"`,
191550
191561
  severity: ue.Error,
@@ -191565,7 +191576,7 @@ function iMi(d, p, i = !1) {
191565
191576
  E.length && E.forEach((w) => {
191566
191577
  var _, $, L, U;
191567
191578
  if (w.id !== ((_ = d.extends) == null ? void 0 : _.id)) {
191568
- const F = Kt({
191579
+ const F = kt({
191569
191580
  id: d.id + "--" + w.id + "--" + (($ = d.extends) == null ? void 0 : $.id) + "--" + ve.ExtendsIncompatibleEntities,
191570
191581
  message: `Entity "${d.name}" with id "${d.id}" is extending built-in entity "${w.name}" with id "${w.id}" but also extends entity "${(L = d.extends) == null ? void 0 : L.name}" with id "${(U = d.extends) == null ? void 0 : U.id}" which is incompatible`,
191571
191582
  severity: ue.Error,
@@ -199309,7 +199320,7 @@ export {
199309
199320
  V as StateMutationAction,
199310
199321
  nr as StateMutationErrorCode,
199311
199322
  S as StringOperations,
199312
- jt as TERMINATION_TYPES,
199323
+ Kt as TERMINATION_TYPES,
199313
199324
  BBi as TerminationInputMapState,
199314
199325
  es as Traverser,
199315
199326
  _We as USER_MANAGED_ENTITY_TYPES,
@@ -199549,7 +199560,7 @@ export {
199549
199560
  Zti as countedLoopBodyDataType,
199550
199561
  Uti as countedLoopDataType,
199551
199562
  KR as createDefinitionEntityFromJSONObject,
199552
- Kt as createEntityError,
199563
+ kt as createEntityError,
199553
199564
  zLi as createNestedDataTypeForEntity,
199554
199565
  UUi as createOrUpdateRowTransformer,
199555
199566
  lri as createPersistedEntityMethod,