@elyx-code/project-logic-tree 0.0.6242 → 0.0.6244
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 +1479 -1478
- package/dist/index.umd.cjs +5 -5
- package/package.json +1 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(h,n){typeof exports=="object"&&typeof module<"u"?n(exports):typeof define=="function"&&define.amd?define(["exports"],n):(h=typeof globalThis<"u"?globalThis:h||self,n(h["@elyx-code/project-logic-tree"]={}))})(this,function(h){"use strict";var qW=Object.defineProperty;var JW=(h,n,S)=>n in h?qW(h,n,{enumerable:!0,configurable:!0,writable:!0,value:S}):h[n]=S;var f=(h,n,S)=>(JW(h,typeof n!="symbol"?n+"":n,S),S);var n=(r=>(r.DefinitionEntity="definition-entity",r.BuiltInBaseEntity="built-in-base-entity",r.Project="project",r.InstalledProject="installed-project",r.GlobalEvent="global-event",r.DataType="data-type",r.FunctionCall="function-call",r.FunctionDeclaration="function-declaration",r.ActionDescriptor="action-descriptor",r.ValueDescriptor="value-descriptor",r.ArgumentDeclaration="argument-declaration",r.InputMap="input-map",r.ReturnStatement="return-statement",r.BreakStatement="break-statement",r.ContinueStatement="continue-statement",r.ReturnDeclaration="return-declaration",r.OutputMap="output-map",r.PrimitiveEntity="primitive-entity",r.LiteralValue="literal-value",r.Property="property",r.Operation="operation",r.Condition="condition",r.VariableDeclaration="variable-declaration",r.VariableInstance="variable-instance",r.Search="search",r.Loop="loop",r.InternalCall="internal-call",r.GenericReference="generic-reference",r))(n||{}),S=(r=>(r.HTTP_ENDPOINT="BUILT_IN_HTTP_ENDPOINT_ENTITY",r.RELATIONAL_DATABASE="BUILT_IN_RELATIONAL_DATABASE_ENTITY",r.PERSISTED_ENTITY="BUILT_IN_PERSISTED_ENTITY_ENTITY",r.CRON_JOB="BUILT_IN_CRON_JOB_ENTITY",r.EXECUTION="BUILT_IN_EXECUTION_ENTITY",r.KEY_VALUE_PARAM="BUILT_IN_KEY_VALUE_PARAM_ENTITY",r))(S||{}),vt=(r=>(r.CurrentDateAndTime="current-date-and-time",r.Unique="unique",r.Random="random",r))(vt||{}),L=(r=>(r.EntityTemplate="entity-template",r.ActionDescriptor="action-descriptor",r.String="string",r.Number="number",r.Boolean="boolean",r.Null="null",r.Enum="enum",r.KeyValue="key-value",r.Date="date",r.UUID="uuid",r.File="file",r.Untyped="untyped",r))(L||{}),et=(r=>(r.Addition="addition",r.Subtraction="subtraction",r.Multiplication="multiplication",r.Division="division",r.Remainder="remainder",r.Exponentiation="exponentiation",r))(et||{}),Ie=(r=>(r.Join="string-join",r.Split="string-split",r.DeleteLast="string-delete-last",r.DeleteFirst="string-delete-first",r.DeleteIndex="string-delete-index",r.AddIndex="string-add-index",r.ReplaceFirst="string-replace-first",r.ReplaceLast="string-replace-last",r.ReplaceIndex="string-replace-index",r.ReplaceSingleMatch="string-replace-single-match",r.ReplaceAllMatches="string-replace-all-matches",r.GetIndex="string-get-index",r.GetFirst="string-get-first",r.GetLast="string-get-last",r.Append="string-append",r.Prepend="string-prepend",r))(Ie||{}),he=(r=>(r.Join="list-join",r.Split="list-split",r.DeleteLast="list-delete-last",r.DeleteFirst="list-delete-first",r.DeleteIndex="list-delete-index",r.AddIndex="list-add-index",r.ReplaceFirst="list-replace-first",r.ReplaceLast="list-replace-last",r.ReplaceIndex="list-replace-index",r.ReplaceSingleMatch="list-replace-single-match",r.ReplaceAllMatches="list-replace-all-matches",r.GetIndex="list-get-index",r.GetFirst="list-get-first",r.GetLast="list-get-last",r.Append="list-append",r.Prepend="list-prepend",r))(he||{}),Qe=(r=>(r.Parallel="parallel",r.Sequential="sequential",r.Wait="wait",r))(Qe||{}),tt=(r=>(r.CreateNewInstance="create-new-instance",r.Validate="validate",r))(tt||{}),Lt=(r=>(r.HttpRequest="base-http-request",r))(Lt||{}),yt=(r=>(r.Equal="equal",r.NotEqual="not-equal",r.And="and",r.Or="or",r.LessThan="less-than",r.MoreThan="more-than",r.LessThanOrEqual="less-than-or-equal",r.MoreThanOrEqual="more-than-or-equal",r))(yt||{}),bi=(r=>(r.Empty="empty",r.NotEmpty="not-empty",r))(bi||{}),ee=(r=>(r.ManualFlow="manual-flow-loop",r.Counted="counted-loop",r.List="list-loop",r.ObjectKeys="object-keys-loop",r.ObjectValues="object-values-loop",r.String="string-loop",r))(ee||{}),N=(r=>(r.FixedArguments="fixed-arguments",r.FixedReturns="fixed-returns",r.ReturnedError="returned-error",r.OngoingProcessExecution="ongoing-process-execution",r.DynamicArgument="dynamic-argument-types",r.DynamicReturn="dynamic-return-types",r))(N||{}),Pt=(r=>(r.OrDataTypeGroup="or-data-type-group",r.AndDataTypeGroup="and-data-type-group",r))(Pt||{}),ir=(r=>(r.PROJECT_PUBLICATION_COMPLETED="GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED",r))(ir||{}),ci=(r=>(r.DeletePersistedEntity="base-delete-persisted-entity",r.SoftDeletePersistedEntity="base-soft-delete-persisted-entity",r.AbortExecution="base-abort-execution",r))(ci||{}),xn=(r=>(r.Error="error",r.Task="task",r.Return="return",r))(xn||{});const Dr=[n.VariableDeclaration,n.VariableInstance,n.InputMap,n.ReturnDeclaration],Tt=[n.VariableDeclaration,n.VariableInstance,n.ArgumentDeclaration,n.OutputMap],af=[...Dr,...Tt,n.Property,n.ValueDescriptor],it=[n.VariableDeclaration,n.VariableInstance],Rw=[n.FunctionDeclaration,n.Condition,n.Loop,n.Operation,n.FunctionCall,n.Search,n.InternalCall,n.GlobalEvent,n.DefinitionEntity,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.VariableDeclaration,n.VariableInstance,n.LiteralValue,n.ActionDescriptor,n.ValueDescriptor,n.Property,n.DataType,n.InstalledProject,n.ArgumentDeclaration,n.InputMap,n.OutputMap,n.ReturnDeclaration],Dw=[n.FunctionDeclaration,n.Property,n.ArgumentDeclaration,n.ReturnDeclaration],of=[n.FunctionCall,n.VariableInstance,n.InputMap,n.OutputMap,n.InternalCall],Ow=[...of,n.Condition,n.Loop,n.Operation,n.Condition],kn=[n.GlobalEvent],pd=[n.Operation,n.FunctionCall,n.Search,n.VariableDeclaration,n.VariableInstance,n.Loop],lf=[...pd,n.InternalCall],Sa=[...pd,n.Condition],dt=[...Sa,n.InternalCall],at=[n.FunctionDeclaration,...kn],gi=[...dt,n.ReturnStatement,n.BreakStatement,n.ContinueStatement],cd=[...Sa,n.ReturnStatement,n.BreakStatement,n.ContinueStatement],Gi=[...dt,...at],df=[...Sa,...at],Pw=[...gi,...at],ww=[...cd,...at],ut=[...at,n.Loop],ot=[n.ReturnStatement,n.BreakStatement,n.ContinueStatement],Cw=[n.DefinitionEntity,n.BuiltInBaseEntity,n.Project,n.InstalledProject,n.GlobalEvent,n.DataType,n.FunctionCall,n.FunctionDeclaration,n.ActionDescriptor,n.ValueDescriptor,n.ArgumentDeclaration,n.InputMap,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.ReturnDeclaration,n.OutputMap,n.PrimitiveEntity,n.LiteralValue,n.Property,n.Operation,n.Condition,n.VariableDeclaration,n.VariableInstance,n.Search,n.Loop,n.InternalCall],Wa=[n.DefinitionEntity,n.GlobalEvent,n.FunctionDeclaration,n.FunctionCall,n.VariableDeclaration,n.VariableInstance,n.Operation,n.Condition,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.InstalledProject,n.Loop,n.Search],uf=[n.DefinitionEntity,n.FunctionDeclaration,n.ArgumentDeclaration,n.ReturnDeclaration,n.Property,n.VariableDeclaration,n.Search,n.Project,n.InstalledProject,n.ActionDescriptor,n.ValueDescriptor],fi=[n.BuiltInBaseEntity,n.PrimitiveEntity],pf=[n.DefinitionEntity,n.FunctionDeclaration,n.ArgumentDeclaration,n.ReturnDeclaration,n.Property,n.VariableDeclaration,n.GlobalEvent,n.Search,n.Project,n.InstalledProject,n.ActionDescriptor,n.ValueDescriptor,n.InputMap,n.OutputMap,n.FunctionCall,n.Operation,n.Condition,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.VariableInstance,n.LiteralValue,n.InternalCall];var za=(r=>(r.ActionOngoingProcessOutputValue="action-ongoing-process-output-value-descriptor-id",r))(za||{});const k={[n.PrimitiveEntity]:{[L.String]:{id:"8b5fbe15-4c2b-48c0-9fd8-e5efbe3978dc",properties:{}},[L.Boolean]:{id:"f596545d-1565-4faa-9969-d95fa5edfea4",properties:{}},[L.Number]:{id:"ecb84c29-6153-4b82-86a5-fce2b5f92002",properties:{}},[L.KeyValue]:{id:"b6f3c3c4-9c3d-4f9d-9e9e-1c0f6a3c8c6b",properties:{}},[L.Enum]:{id:"9542b8b4-2642-4eee-9db9-def7963a17a0",properties:{options:{id:"00ccfcae-2104-45ef-bf6c-50ddccd74286",dataType:{id:"7dd59b70-f97b-43a7-a051-fde1842ce5d6",defaultValue:{id:"enum-options-property-data-type-default-value-id"}}}}},[L.UUID]:{id:"4a6234aa-c0f6-4731-b4dd-750388029226",properties:{}},[L.Date]:{id:"dc58f38b-d574-4956-aac6-32ce9529b937",properties:{}},[L.Null]:{id:"7d698f34-5a89-4aab-846b-07ef3843b8c4",properties:{}},[L.Untyped]:{id:"4044a018-818e-49d7-bf9a-c3dd1fff2102",properties:{}}},[n.ValueDescriptor]:{"action-ongoing-process-output-value-descriptor-id":{id:"action-ongoing-process-output-value-descriptor-id",dataType:{id:"process-output-value-data-type-id"}}},[n.BuiltInBaseEntity]:{[S.KEY_VALUE_PARAM]:{id:S.KEY_VALUE_PARAM},[S.HTTP_ENDPOINT]:{id:S.HTTP_ENDPOINT,properties:{method:{id:"http-endpoint-built-in-method-property-id"},path:{id:"http-endpoint-built-in-path-property-id"},cors:{id:"http-endpoint-built-in-cors-property-id"}},methods:{handler:{id:"http-endpoint-built-in-handler-method-id",outputs:{statusCode:{id:"http-endpoint-built-in-handler-status-code-output-id"},body:{id:"http-endpoint-built-in-handler-body-output-id"},headers:{id:"http-endpoint-built-in-handler-headers-output-id"}}}}},[S.PERSISTED_ENTITY]:{id:S.PERSISTED_ENTITY,properties:{database:{id:"persisted-built-in-base-entity-database-property-id"},primaryKey:{id:"persisted-built-in-base-entity-primary-key-property-id"}}},[S.RELATIONAL_DATABASE]:{id:S.RELATIONAL_DATABASE,properties:{identifier:{id:"relational-database-built-in-base-entity-identifier-property-id"},username:{id:"relational-database-built-in-base-entity-username-property-id"},password:{id:"relational-database-built-in-base-entity-password-property-id"},minSize:{id:"relational-database-built-in-base-entity-min-size-property-id"},default:{id:"relational-database-built-in-base-entity-default-property-id"},autoscaling:{id:"relational-database-built-in-base-entity-autoscaling-property-id"}}},[S.CRON_JOB]:{id:S.CRON_JOB,properties:{expression:{id:"cron-job-built-in-base-entity-expression-property-id"}},methods:{handler:{id:"cron-job-built-in-base-entity-handler-method-id"}}}},[n.Operation]:{[Ie.Join]:{id:Ie.Join,inputs:{separator:{id:"join-strings-separator-input-id"},first:{id:"join-strings-first-string-input-id"},second:{id:"join-strings-second-string-input-id"},dynamicString:{id:"join-strings-dynamic-string-input-id"}},outputs:{result:{id:"join-strings-result-string-return-delaration-id"},error:{id:"join-strings-error-return-delaration-id"}}},[Ie.Split]:{id:Ie.Split,inputs:{stringValue:{id:"split-string-string-input-id"},indexLocation:{id:"split-string-index-input-id"}},outputs:{firstPartResult:{id:"split-string-first-part-result-string-return-delaration-id"},secondPartResult:{id:"split-string-second-part-result-string-return-delaration-id"},error:{id:"split-string-error-return-delaration-id"}}},[et.Addition]:{id:et.Addition,inputs:{firstSummand:{id:"number-addition-first-summand-number-input-id"},secondSummand:{id:"number-addition-second-summand-number-input-id"},dynamicSummand:{id:"number-addition-dynamic-summand-number-input-id"}},outputs:{result:{id:"number-addition-result-number-return-delaration-id",dataType:{id:"number-addition-result-number-data-type-id"}},error:{id:"number-addition-error-return-delaration-id"}}},[et.Subtraction]:{id:et.Subtraction,inputs:{minuend:{id:"number-subtraction-minuend-number-input-id"},subtrahend:{id:"number-subtraction-subtrahend-number-input-id"},dynamicSubtrahend:{id:"number-subtraction-dynamic-subtrahend-number-input-id"}},outputs:{result:{id:"number-subtraction-result-number-return-delaration-id",dataType:{id:"number-subtraction-result-number-data-type-id"}},error:{id:"number-subtraction-error-return-delaration-id"}}},[Lt.HttpRequest]:{id:Lt.HttpRequest,inputs:{url:{id:"http-request-url-input-id"},query:{id:"http-request-query-input-id"},method:{id:"http-request-method-input-id"},headers:{id:"http-request-headers-input-id"},body:{id:"http-request-body-string-input-id"}},outputs:{code:{id:"http-response-code-return-delaration-id"},body:{id:"http-response-body-return-delaration-id"},headers:{id:"http-response-headers-return-delaration-id"},error:{id:"http-request-error-return-delaration-id"}}},[tt.Validate]:{id:tt.Validate,inputs:{entityToMatch:{id:"validate-data-entity-to-match-input-id"},dataToValidate:{id:"validate-data-data-to-validate-input-id"}},outputs:{outputEntity:{id:"validate-data-output-entity-return-delaration-id"},error:{id:"validate-data-error-return-delaration-id"}}},[Qe.Parallel]:{id:Qe.Parallel,inputs:{listOfActions:{id:"parallel-execution-list-of-actions-input-id"}},outputs:{results:{id:"parallel-execution-results-output-id",dataType:{id:"parallel-execution-results-data-type-id"}},error:{id:"parallel-execution-error-output-id"}}}},[n.Loop]:{[ee.List]:{id:ee.List,inputs:{list:{id:"iterate-over-list-loop-list-input-id"}},outputs:{results:{id:"iterate-over-list-loop-output-id"}},body:{id:"iterate-over-list-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-list-loop-iteration-number-input-id"},currentValue:{id:"iterate-over-list-loop-current-value-input-id"}}}},[ee.String]:{id:ee.String,inputs:{string:{id:"iterate-over-string-loop-string-input-id"}},outputs:{results:{id:"iterate-over-string-loop-output-id"}},body:{id:"iterate-over-string-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-string-loop-iteration-number-input-id"},currentValue:{id:"iterate-over-string-loop-current-value-input-id"}}}},[ee.ObjectKeys]:{id:ee.ObjectKeys,inputs:{object:{id:"iterate-over-object-keys-loop-object-input-id"}},outputs:{results:{id:"iterate-over-object-keys-loop-output-id"}},body:{id:"iterate-over-object-keys-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-object-keys-loop-iteration-number-input-id"},currentValue:{id:"iterate-over-object-keys-loop-current-value-input-id"}}}},[ee.ObjectValues]:{id:ee.ObjectValues,inputs:{object:{id:"iterate-over-object-values-loop-object-input-id"}},outputs:{results:{id:"iterate-over-object-values-loop-output-id"}},body:{id:"iterate-over-object-values-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-object-values-loop-iteration-number-input-id"},currentValue:{id:"iterate-over-object-values-loop-current-value-input-id"}}}},[ee.ManualFlow]:{id:ee.ManualFlow,inputs:{},outputs:{results:{id:"manual-flow-loop-output-id"}},body:{id:"manual-flow-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-manual-flow-loop-iteration-number-input-id"}}}},[ee.Counted]:{id:ee.Counted,inputs:{number:{id:"counted-loop-number-input-id"}},outputs:{results:{id:"counted-loop-output-id"}},body:{id:"counted-loop-body-descriptor-id",inputs:{iterationNumber:{id:"counted-loop-iteration-number-input-id"}}}}},[n.Condition]:{[yt.MoreThanOrEqual]:{id:yt.MoreThanOrEqual,inputs:{leftHand:{id:"condition-more-than-or-equal-left-hand-input-id",dataType:{id:"condition-more-than-or-equal-left-hand-data-type-id"}},rightHand:{id:"condition-more-than-or-equal-right-hand-input-id",dataType:{id:"condition-more-than-or-equal-right-hand-data-type-id"}}}},[bi.NotEmpty]:{id:bi.NotEmpty,inputs:{leftHand:{id:"condition-not-empty-input-id"}}}},[n.GlobalEvent]:{[ir.PROJECT_PUBLICATION_COMPLETED]:{id:ir.PROJECT_PUBLICATION_COMPLETED}}},yi=k[n.PrimitiveEntity],ae={type:n.PrimitiveEntity,id:yi.string.id,description:"A string of characters.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},rr={type:n.PrimitiveEntity,id:yi.boolean.id,description:"A 'true' or 'false' value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},ve={type:n.PrimitiveEntity,id:yi.number.id,description:"A number value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},fd={type:n.PrimitiveEntity,id:yi.null.id,description:"An explicitly empty value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Null,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},wt={type:n.PrimitiveEntity,id:yi.untyped.id,description:"Data of any type that isn't known in advance.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Untyped,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},cf={id:"c2f52f01-8f2e-490e-8083-72289c8189c1",type:n.GenericReference,entityId:yi.enum.properties.options.id,version:"1",entityType:n.Property},ff={id:"4e803941-2e6a-4227-b803-b8877c0d7fee",type:n.GenericReference,entityId:"00ccfcae-2104-45ef-bf6c-50ddccd74286",version:"1",entityType:n.Property},yf={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:yi.enum.properties.options.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:ae,asType:!1,parent:ff},hf={id:"a2983c4c-0286-4ef1-8b5c-5a52904d3200",type:n.GenericReference,entityId:"9542b8b4-2642-4eee-9db9-def7963a17a0",version:"1",entityType:n.PrimitiveEntity},mf={constant:!1,hidden:!1,required:!0,id:yi.enum.properties.options.id,name:"Options",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:yi.enum.properties.options.dataType.defaultValue.id,type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,autogeneration:null,value:[],valueAsTypeList:null,valueAsTypeSingle:null,parent:cf},dataType:yf,description:"Options for the enum. Each option is a text value.",parent:hf},nr={type:n.PrimitiveEntity,id:yi.enum.id,description:"A set of text options to choose from.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Enum,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[mf],methods:[]},Fi={type:n.PrimitiveEntity,id:yi.date.id,description:"A date and time value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Date,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},sr={type:n.PrimitiveEntity,id:yi.uuid.id,description:"A unique identifier in the form of a 36-character string.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.UUID,static:!1,abstract:!1,abstractMethods:[],extends:[ae],properties:[],methods:[]},Zn={type:n.PrimitiveEntity,id:yi[L.KeyValue].id,description:"A complex data structure with any combination of properties with names and values.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},vf=[ae,rr,ve,fd,wt,nr,Fi,sr,Zn],xi=k[n.Operation][et.Addition],Tf={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:xi.inputs.firstSummand.id,version:"1",entityType:n.ValueDescriptor},Ef={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"number-addition-first-number-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:Tf},If={type:n.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:xi.inputs.secondSummand.id,version:"1",entityType:n.ValueDescriptor},Af={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:If},bf={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:xi.outputs.result.id,version:"1",entityType:n.ValueDescriptor},Rf={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:xi.outputs.result.dataType.id,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:bf},Df={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:et.Addition,version:"1",entityType:n.ActionDescriptor},yd={id:xi.inputs.firstSummand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Summand",description:"The first number to add",defaultValue:null,dataType:Ef,required:!0,parentRelationType:N.FixedArguments,index:0,parent:Df},Of={type:n.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:et.Addition,version:"1",entityType:n.ActionDescriptor},hd={id:xi.inputs.secondSummand.id,type:n.ValueDescriptor,description:"The second number to add",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Summand",defaultValue:null,dataType:Af,required:!0,parentRelationType:N.FixedArguments,index:1,parent:Of},md={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:et.Addition,version:"1",entityType:n.ActionDescriptor},vd={parentRelationType:N.FixedReturns,id:xi.outputs.result.id,type:n.ValueDescriptor,description:"The result number of the addition",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",defaultValue:null,dataType:Rf,required:!0,index:0,parent:md},Pf={type:n.GenericReference,id:"number-addition-operation-error-parent-ref",entityId:et.Addition,version:"1",entityType:n.ActionDescriptor},wf={parentRelationType:N.FixedReturns,id:xi.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Pf},Cf={type:n.GenericReference,id:"number-addition-operation-dynamic-summand-argument-type-parent-ref",entityId:xi.inputs.dynamicSummand.id,version:"1",entityType:n.ValueDescriptor},Vf={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"number-addition-operation-dynamic-summand-argument-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:Cf},Bf={parentRelationType:N.DynamicArgument,id:xi.inputs.dynamicSummand.id,type:n.ValueDescriptor,description:"A number to add",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Summand",defaultValue:null,dataType:Vf,required:!0,index:2,parent:md},Ya={id:et.Addition,type:n.ActionDescriptor,description:"Sum numbers",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:et.Addition,inputs:[yd,hd,Bf],error:wf,outputs:[vd],parent:null},ki=k[n.Operation][et.Subtraction],_f={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:ki.inputs.minuend.id,version:"1",entityType:n.ValueDescriptor},Mf={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"number-subtraction-first-number-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:_f},Nf={type:n.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:ki.inputs.subtrahend.id,version:"1",entityType:n.ValueDescriptor},Lf={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:Nf},jf={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:ki.outputs.result.id,version:"1",entityType:n.ValueDescriptor},Uf={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:ki.outputs.result.dataType.id,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:jf},Td={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:et.Subtraction,version:"1",entityType:n.ActionDescriptor},$f={id:ki.inputs.minuend.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Minuend",description:"Base number to substract from",defaultValue:null,dataType:Mf,required:!0,parentRelationType:N.FixedArguments,index:0,parent:Td},gf={type:n.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:et.Subtraction,version:"1",entityType:n.ActionDescriptor},Gf={id:ki.inputs.subtrahend.id,type:n.ValueDescriptor,description:"The second number to substract",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Subtrahend",defaultValue:null,dataType:Lf,required:!0,parentRelationType:N.FixedArguments,index:1,parent:gf},Ff={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:et.Subtraction,version:"1",entityType:n.ActionDescriptor},xf={parentRelationType:N.FixedReturns,id:ki.outputs.result.id,type:n.ValueDescriptor,description:"The result number of the subtraction",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",defaultValue:null,dataType:Uf,required:!0,index:0,parent:Ff},kf={type:n.GenericReference,id:"number-subtraction-operation-error-parent-ref",entityId:et.Subtraction,version:"1",entityType:n.ActionDescriptor},Zf={parentRelationType:N.FixedReturns,id:ki.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:kf},qf={type:n.GenericReference,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-parent-ref",entityId:ki.inputs.dynamicSubtrahend.id,version:"1",entityType:n.ValueDescriptor},Jf={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:qf},Sf={id:ki.inputs.dynamicSubtrahend.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Subtrahend",description:"A number to substract",defaultValue:null,dataType:Jf,required:!0,parentRelationType:N.DynamicArgument,index:2,parent:Td},Ed={id:et.Subtraction,type:n.ActionDescriptor,description:"Substract numbers",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:et.Subtraction,inputs:[$f,Gf,Sf],error:Zf,outputs:[xf],parent:null},Wf={[et.Addition]:Ya,[et.Subtraction]:Ed},Ri=k[n.Operation][Ie.Join],zf={type:n.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:Ri.inputs.first.id,version:"1",entityType:n.ValueDescriptor},Yf={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"join-strings-first-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:zf},Hf={type:n.GenericReference,id:"join-strings-second-string-argument-declaration",entityId:Ri.inputs.second.id,version:"1",entityType:n.ValueDescriptor},Kf={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"join-strings-second-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:Hf},Xf={type:n.GenericReference,id:"join-strings-result-string-return-delaration",entityId:Ri.outputs.result.id,version:"1",entityType:n.ValueDescriptor},Qf={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"join-strings-result-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:Xf},ey={type:n.GenericReference,id:"join-strings-operation-first-string-argument-parent-ref",entityId:Ie.Join,version:"1",entityType:n.ActionDescriptor},Ha={id:Ri.inputs.first.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text",description:"The first text to join to the second one. Its value will be at the beginning of the resulting text.",defaultValue:null,dataType:Yf,parentRelationType:N.FixedArguments,required:!0,index:1,parent:ey},ty={type:n.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:Ri.inputs.first.id,version:"1",entityType:n.ValueDescriptor},iy={type:n.GenericReference,id:"join-strings-separator-string-data-type-default-value-parent-ref",entityId:Ri.inputs.separator.id,version:"1",entityType:n.ValueDescriptor},ry={type:n.LiteralValue,id:"join-strings-separator-string-data-type-default-value-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"",valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:iy},ny={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"join-strings-separator-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:ty},sy={type:n.GenericReference,id:"join-strings-operation-separator-string-argument-parent-ref",entityId:Ie.Join,version:"1",entityType:n.ActionDescriptor},ay={id:Ri.inputs.separator.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Separator",description:"The text value that will be inserted between each of the values that are joined.",defaultValue:ry,dataType:ny,parentRelationType:N.FixedArguments,required:!1,index:0,parent:sy},oy={type:n.GenericReference,id:"join-strings-operation-second-string-argument-parent-ref",entityId:Ie.Join,version:"1",entityType:n.ActionDescriptor},Ka={id:Ri.inputs.second.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text",description:"The second text to join to the first one. Its value will be at the end of the resulting text.",defaultValue:null,dataType:Kf,parentRelationType:N.FixedArguments,required:!0,index:2,parent:oy},ly={type:n.GenericReference,id:"join-strings-operation-result-string-return-parent-ref",entityId:Ie.Join,version:"1",entityType:n.ActionDescriptor},Bs={parentRelationType:N.FixedReturns,id:Ri.outputs.result.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",description:"The resulting text value.",defaultValue:null,dataType:Qf,required:!0,index:0,parent:ly},dy={type:n.GenericReference,id:"join-strings-operation-error-parent-ref",entityId:Ie.Join,version:"1",entityType:n.ActionDescriptor},uy={parentRelationType:N.FixedReturns,id:Ri.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:dy},py={type:n.GenericReference,id:"join-strings-dynamic-string-argument-declaration",entityId:Ri.inputs.dynamicString.id,version:"1",entityType:n.ValueDescriptor},cy={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"join-strings-dynamic-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:py},fy={type:n.GenericReference,id:"join-strings-operation-dynamic-string-argument-parent-ref",entityId:Ie.Join,version:"1",entityType:n.ActionDescriptor},yy={id:Ri.inputs.dynamicString.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text",description:"Text to join to the previous ones. Its value will be at the end of the resulting text.",defaultValue:null,dataType:cy,parentRelationType:N.DynamicArgument,required:!0,index:3,parent:fy},_s={id:Ie.Join,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ie.Join,description:"Join text values together, to form a single resulting text value.",inputs:[ay,Ha,Ka,yy],outputs:[Bs],error:uy,parent:null},ar=k[n.Operation][Ie.Split],hy={type:n.GenericReference,id:"split-string-string-argument-declaration",entityId:ar.inputs.stringValue.id,version:"1",entityType:n.ValueDescriptor},my={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"split-string-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:hy},vy={type:n.GenericReference,id:"split-string-index-argument-declaration",entityId:ar.inputs.indexLocation.id,version:"1",entityType:n.ValueDescriptor},Ty={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"split-string-index-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:vy},Ey={type:n.GenericReference,id:"split-string-first-part-result-string-return-delaration",entityId:ar.outputs.firstPartResult.id,version:"1",entityType:n.ValueDescriptor},Iy={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"split-string-first-part-result-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:Ey},Ay={type:n.GenericReference,id:"split-string-second-part-result-string-return-delaration",entityId:ar.outputs.secondPartResult.id,version:"1",entityType:n.ValueDescriptor},by={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"split-string-second-part-result-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:Ay},Ry={type:n.GenericReference,id:"split-string-operation-string-argument-parent-ref",entityId:Ie.Join,version:"1",entityType:n.ActionDescriptor},Dy={id:ar.inputs.stringValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text value",description:"The text value that will be split into two at the given index location.",defaultValue:null,dataType:my,parentRelationType:N.FixedArguments,required:!0,index:0,parent:Ry},Oy={type:n.GenericReference,id:"split-string-operation-index-argument-parent-ref",entityId:Ie.Join,version:"1",entityType:n.ActionDescriptor},Py={id:ar.inputs.indexLocation.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Index location",description:"The index location where the text will be split into two. The text at this index will be the beginning of the second text.",defaultValue:null,dataType:Ty,parentRelationType:N.FixedArguments,required:!0,index:1,parent:Oy},wy={type:n.GenericReference,id:"split-string-operation-second-part-result-string-return-parent-ref",entityId:Ie.Join,version:"1",entityType:n.ActionDescriptor},Vw={parentRelationType:N.FixedReturns,id:ar.outputs.secondPartResult.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second part",description:"The secont part of the resulting text value.",defaultValue:null,dataType:by,required:!0,index:1,parent:wy},Cy={type:n.GenericReference,id:"split-string-operation-first-part-result-string-return-parent-ref",entityId:Ie.Join,version:"1",entityType:n.ActionDescriptor},Vy={parentRelationType:N.FixedReturns,id:ar.outputs.firstPartResult.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First part",description:"The first part of the resulting text value.",defaultValue:null,dataType:Iy,required:!0,index:0,parent:Cy},By={type:n.GenericReference,id:"split-string-operation-error-parent-ref",entityId:Ie.Join,version:"1",entityType:n.ActionDescriptor},_y={parentRelationType:N.FixedReturns,id:ar.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:By},Id={id:Ie.Split,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ie.Split,description:"Split a text into two, at the given index location.",inputs:[Dy,Py],outputs:[Vy],error:_y,parent:null},My={[Ie.Join]:_s,[Ie.Split]:Id};var Ny=(r=>(r.FirstInputList="join-list-first-list-argument-declaration",r.SecondInputList="join-list-second-list-argument-declaration",r))(Ny||{}),Ly=(r=>(r.ResultList="join-list-result-list-return-delaration",r.Error="join-list-error-return-delaration",r))(Ly||{});const jy={type:n.GenericReference,id:"join-list-operation-first-list-argument-ref",entityId:"join-list-first-list-argument-declaration",version:"1",entityType:n.ValueDescriptor},Uy={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"join-list-first-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:jy},$y={type:n.GenericReference,id:"join-list-operation-second-list-argument-ref",entityId:"join-list-second-list-argument-declaration",version:"1",entityType:n.ValueDescriptor},gy={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"join-list-second-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:$y},Gy={type:n.GenericReference,id:"join-list-operation-result-list-return-ref",entityId:"join-list-result-list-return-delaration",version:"1",entityType:n.ValueDescriptor},Fy={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"join-list-result-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!0,parent:Gy},xy={type:n.GenericReference,id:"join-list-operation-first-list-argument-parent-ref",entityId:he.Join,version:"1",entityType:n.ActionDescriptor},ky={id:"join-list-first-list-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First value",description:"The first list to join to the second one. Its values will be at the beginning of the resulting list.",defaultValue:null,dataType:Uy,parentRelationType:N.FixedArguments,required:!0,index:0,parent:xy},Zy={type:n.GenericReference,id:"join-list-operation-second-list-argument-parent-ref",entityId:he.Join,version:"1",entityType:n.ActionDescriptor},qy={id:"join-list-second-list-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second value",description:"The second list to join to the first one. Its values will be at the end of the resulting list.",defaultValue:null,dataType:gy,parentRelationType:N.FixedArguments,required:!0,index:1,parent:Zy},Jy={type:n.GenericReference,id:"join-list-operation-result-list-return-parent-ref",entityId:he.Join,version:"1",entityType:n.ActionDescriptor},Sy={parentRelationType:N.FixedReturns,id:"join-list-result-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",description:"The resulting list value.",defaultValue:null,dataType:Fy,required:!0,index:0,parent:Jy},Wy={type:n.GenericReference,id:"join-list-operation-error-parent-ref",entityId:he.Join,version:"1",entityType:n.ActionDescriptor},zy={parentRelationType:N.FixedReturns,id:"join-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Wy},Ad={id:he.Join,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:he.Join,description:"Join two lists together, to form a single resulting list value.",inputs:[ky,qy],error:zy,outputs:[Sy],parent:null};var Yy=(r=>(r.InputList="list-to-split-argument-declaration",r.SplitIndex="split-list-index-argument-declaration",r))(Yy||{}),Hy=(r=>(r.FirstOutputList="split-list-first-output-list-return-delaration",r.SecondOutputList="split-list-second-output-list-return-delaration",r.Error="split-list-error-return-delaration",r))(Hy||{});const Ky={type:n.GenericReference,id:"split-list-operation-input-list-argument-ref",entityId:"list-to-split-argument-declaration",version:"1",entityType:n.ValueDescriptor},Xy={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"split-list-operation-input-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!0,parent:Ky},Qy={type:n.GenericReference,id:"split-list-operation-split-index-argument-ref",entityId:"split-list-index-argument-declaration",version:"1",entityType:n.ValueDescriptor},eh={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"split-list-operation-split-index-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:Qy},bd={type:n.GenericReference,id:"split-list-operation-first-output-list-return-ref",entityId:"split-list-first-output-list-return-delaration",version:"1",entityType:n.ValueDescriptor},th={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"split-list-operation-first-output-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!0,parent:bd},ih={type:n.GenericReference,id:"split-list-operation-input-list-argument-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},rh={id:"list-to-split-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List to split",description:"The list to split at the given index",defaultValue:null,dataType:Xy,parentRelationType:N.FixedArguments,required:!0,index:0,parent:ih},nh={type:n.GenericReference,id:"split-list-operation-split-index-argument-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},sh={id:"split-list-index-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Split location",description:"The index at which to split the list. The value at this index will be the first value of the second list.",defaultValue:null,dataType:eh,parentRelationType:N.FixedArguments,required:!0,index:1,parent:nh},ah={type:n.GenericReference,id:"split-list-operation-first-output-list-return-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},oh={parentRelationType:N.FixedReturns,id:"split-list-first-output-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First list",description:"The list of values up to the split index",defaultValue:null,dataType:th,required:!0,index:0,parent:ah},lh={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"split-list-operation-second-output-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!0,parent:bd},dh={type:n.GenericReference,id:"split-list-operation-second-output-list-return-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},uh={parentRelationType:N.FixedReturns,id:"split-list-second-output-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second list",description:"The list of values up to the split index",defaultValue:null,dataType:lh,required:!0,index:0,parent:dh},ph={type:n.GenericReference,id:"split-list-operation-error-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},ch={parentRelationType:N.FixedReturns,id:"split-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:ph},Rd={id:he.Split,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:he.Split,description:"Splits a given list at the given index, and returns two lists, one with the values up to the index, and the other with the values after the index",inputs:[rh,sh],outputs:[oh,uh],error:ch,parent:null};var fh=(r=>(r.InputList="get-last-in-list-input-list-argument-declaration",r))(fh||{}),yh=(r=>(r.OutputElement="get-last-in-list-output-element-return-delaration",r.Error="get-last-in-list-error-return-delaration",r))(yh||{});const hh={type:n.GenericReference,id:"get-last-in-list-operation-input-list-argument-ref",entityId:"get-last-in-list-input-list-argument-declaration",version:"1",entityType:n.ValueDescriptor},mh={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"get-last-in-list-input-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:hh},vh={type:n.GenericReference,id:"get-last-in-list-operation-output-element-return-ref",entityId:"get-last-in-list-output-element-return-delaration",version:"1",entityType:n.ValueDescriptor},Th={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"get-last-in-list-output-element-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!0,parent:vh},Eh={type:n.GenericReference,id:"get-last-in-list-operation-input-list-argument-parent-ref",entityId:he.GetLast,version:"1",entityType:n.ActionDescriptor},Ih={id:"get-last-in-list-input-list-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List",description:"The list to get the last element from.",defaultValue:null,dataType:mh,parentRelationType:N.FixedArguments,required:!0,index:0,parent:Eh},Ah={type:n.GenericReference,id:"get-last-in-list-operation-output-element-return-parent-ref",entityId:he.GetLast,version:"1",entityType:n.ActionDescriptor},bh={parentRelationType:N.FixedReturns,id:"get-last-in-list-output-element-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Last element",description:"The last element of the given list.",defaultValue:null,dataType:Th,required:!0,index:0,parent:Ah},Rh={type:n.GenericReference,id:"get-last-in-list-operation-error-parent-ref",entityId:he.GetLast,version:"1",entityType:n.ActionDescriptor},Dh={parentRelationType:N.FixedReturns,id:"get-last-in-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Rh},Dd={id:he.GetLast,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:he.GetLast,description:"Outputs the last element of a given list.",inputs:[Ih],outputs:[bh],error:Dh,parent:null};var Oh=(r=>(r.List="append-to-list-lsit-argument-declaration",r.ElementToAppend="append-to-list-element-to-append-argument-declaration",r))(Oh||{}),Ph=(r=>(r.ResultList="append-to-list-result-list-return-delaration",r.Error="append-to-list-error-return-delaration",r))(Ph||{});const wh={type:n.GenericReference,id:"append-to-list-operation-lsit-argument-ref",entityId:"append-to-list-lsit-argument-declaration",version:"1",entityType:n.ValueDescriptor},Ch={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"append-to-list-lsit-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:wh},Vh={type:n.GenericReference,id:"append-to-list-operation-second-list-argument-ref",entityId:"append-to-list-element-to-append-argument-declaration",version:"1",entityType:n.ValueDescriptor},Bh={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"append-to-list-second-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:Vh},_h={type:n.GenericReference,id:"append-to-list-operation-result-list-return-ref",entityId:"append-to-list-result-list-return-delaration",version:"1",entityType:n.ValueDescriptor},Mh={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"append-to-list-result-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!0,parent:_h},Nh={type:n.GenericReference,id:"append-to-list-operation-lsit-argument-parent-ref",entityId:he.Append,version:"1",entityType:n.ActionDescriptor},Od={id:"append-to-list-lsit-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List value",description:"The list to which the element will be appended",defaultValue:null,dataType:Ch,parentRelationType:N.FixedArguments,required:!0,index:0,parent:Nh},Lh={type:n.GenericReference,id:"append-to-list-operation-second-list-argument-parent-ref",entityId:he.Append,version:"1",entityType:n.ActionDescriptor},Pd={id:"append-to-list-element-to-append-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Element",description:"The element that will be added at the end of the list",defaultValue:null,dataType:Bh,parentRelationType:N.FixedArguments,required:!0,index:1,parent:Lh},jh={type:n.GenericReference,id:"append-to-list-operation-result-list-return-parent-ref",entityId:he.Append,version:"1",entityType:n.ActionDescriptor},Uh={parentRelationType:N.FixedReturns,id:"append-to-list-result-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",description:"The resulting list value.",defaultValue:null,dataType:Mh,required:!0,index:0,parent:jh},$h={type:n.GenericReference,id:"append-to-list-operation-error-parent-ref",entityId:he.Append,version:"1",entityType:n.ActionDescriptor},gh={parentRelationType:N.FixedReturns,id:"append-to-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:$h},Xa={id:he.Append,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:he.Append,description:"Adds a given element to the end of a list value.",inputs:[Od,Pd],error:gh,outputs:[Uh],parent:null},Gh={[he.Join]:Ad,[he.Split]:Rd,[he.GetLast]:Dd,[he.Append]:Xa},qn=k[n.Operation][Qe.Parallel],Fh={id:"parallel-execution-list-of-functions-blueprint-dynamic-output-parent-ref",type:n.GenericReference,entityId:"parallel-execution-list-of-functions-blueprint-id",version:"1",entityType:n.ActionDescriptor},xh={id:"parallel-execution-list-of-functions-blueprint-dynamic-output-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any output value",description:"An output value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:Fh,parentRelationType:N.DynamicArgument},kh={id:"parallel-execution-list-of-functions-blueprint-dynamic-input-parent-ref",type:n.GenericReference,entityId:"parallel-execution-list-of-functions-blueprint-id",version:"1",entityType:n.ActionDescriptor},Zh={id:"parallel-execution-list-of-functions-blueprint-dynamic-input-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any input value",description:"An input value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:kh,parentRelationType:N.DynamicArgument},qh={id:"parallel-execution-list-of-functions-blueprint-parent-ref",type:n.GenericReference,entityId:"parallel-execution-list-of-functions-argument-data-type-id",version:"1",entityType:n.DataType},Jh={id:"parallel-execution-list-of-functions-blueprint-id",type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[Zh],outputs:[xh],error:null,parent:qh},Sh={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:qn.inputs.listOfActions.id,version:"1",entityType:n.ValueDescriptor},Wh={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"parallel-execution-list-of-functions-argument-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jh,asType:!1,isList:!0,parent:Sh},zh={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:qn.outputs.results.id,version:"1",entityType:n.ValueDescriptor},Yh={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:qn.outputs.results.dataType.id,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!0,parent:zh},Hh={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:Qe.Parallel,version:"1",entityType:n.ActionDescriptor},wd={id:qn.inputs.listOfActions.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",dataType:Wh,defaultValue:null,required:!0,index:0,parent:Hh,parentRelationType:N.FixedArguments},Kh={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:Qe.Parallel,version:"1",entityType:n.ActionDescriptor},Cd={id:qn.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List of execution results",description:"Each execution result, in the same order as the input list of actions. One item on this list for each executed action.",dataType:Yh,defaultValue:null,required:!0,index:0,parent:Kh,parentRelationType:N.FixedReturns},Xh={type:n.GenericReference,id:"parallel-execution-operation-error-parent-ref",entityId:Qe.Parallel,version:"1",entityType:n.ActionDescriptor},Qh={id:qn.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Xh,parentRelationType:N.ReturnedError},Vi={id:Qe.Parallel,type:n.ActionDescriptor,description:"Execute a list of actions in parallel",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Qe.Parallel,inputs:[wd],outputs:[Cd],error:Qh,parent:null};var em=(r=>(r.MillisecondsNumber="wait-milliseconds-number-argument-declaration",r))(em||{}),tm=(r=>(r.Error="wait-operation-error-return-delaration",r))(tm||{});const im={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",version:"1",entityType:n.ValueDescriptor,entityId:"wait-milliseconds-number-argument-declaration"},rm={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"wait-milliseconds-number-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:im},nm={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",version:"1",entityType:n.ActionDescriptor,entityId:Qe.Wait},dn={id:"wait-milliseconds-number-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Milliseconds to wait",description:"The amount of milliseconds to wait before calling the next entity",defaultValue:null,dataType:rm,required:!0,index:0,parent:nm,parentRelationType:N.FixedArguments},sm={type:n.GenericReference,id:"wait-operation-error-parent-ref",entityId:Qe.Wait,version:"1",entityType:n.ActionDescriptor},am={id:"wait-operation-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:sm,parentRelationType:N.ReturnedError},Wt={id:Qe.Wait,type:n.ActionDescriptor,description:"Wait for the given amount of milliseconds before calling the next entity",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Qe.Wait,inputs:[dn],outputs:[],error:am,parent:null};var om=(r=>(r.ListOfFunctions="sequential-execution-list-of-functions-argument-declaration",r))(om||{}),lm=(r=>(r.ListOfExecutionResults="sequential-execution-result-return-delaration",r.Error="sequential-execution-error-return-delaration",r))(lm||{});const dm={id:"sequential-execution-list-of-functions-blueprint-dynamic-output-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any output value",description:"An output value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:null,parentRelationType:N.DynamicArgument},um={id:"sequential-execution-list-of-functions-blueprint-dynamic-input-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any input value",description:"An input value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:null,parentRelationType:N.DynamicArgument},pm={id:"sequential-execution-list-of-functions-blueprint-id",type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[um],outputs:[dm],error:null,parent:null},cm={type:n.GenericReference,id:"parallel-execution-list-of-functions-argument-declaration-id",entityId:"sequential-execution-list-of-functions-argument-declaration",version:"1",entityType:n.ValueDescriptor},fm={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"sequential-execution-list-of-functions-argument-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:pm,asType:!1,isList:!0,parent:cm},ym={type:n.GenericReference,id:"sequential-execution-list-of-execution-results-return-declaration-id",entityId:"sequential-execution-result-return-delaration",version:"1",entityType:n.ValueDescriptor},hm={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"sequential-execution-list-of-execution-results-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!0,parent:ym},mm={type:n.GenericReference,id:"parallel-execution-operation-list-of-functions-argument-parent-ref",entityId:Qe.Sequential,version:"1",entityType:n.ActionDescriptor},Vd={id:"sequential-execution-list-of-functions-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",defaultValue:null,dataType:fm,required:!0,index:0,parent:mm,parentRelationType:N.FixedArguments},vm={type:n.GenericReference,id:"parallel-execution-operation-list-of-execution-results-return-parent-ref",entityId:Qe.Sequential,version:"1",entityType:n.ActionDescriptor},Bd={id:"sequential-execution-result-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List of execution results",description:"Each execution result, in the same order as the input list of actions. One item on this list for each executed action.",defaultValue:null,dataType:hm,required:!0,index:0,parent:vm,parentRelationType:N.FixedReturns},Tm={type:n.GenericReference,id:"sequential-execution-operation-error-parent-ref",entityId:Qe.Sequential,version:"1",entityType:n.ActionDescriptor},Em={id:"sequential-execution-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Tm,parentRelationType:N.ReturnedError},or={id:Qe.Sequential,type:n.ActionDescriptor,description:"Execute a list of actions one after the other",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Qe.Sequential,inputs:[Vd],outputs:[Bd],error:Em,parent:null},Im={[Qe.Parallel]:Vi,[Qe.Wait]:Wt,[Qe.Sequential]:or};var Am=(r=>(r.EntityToInstanciate="entity-to-instanciate-argument-declaration",r.NewEntityData="new-entity-data-argument-declaration",r))(Am||{}),bm=(r=>(r.Error="create-new-instance-error-return-delaration",r))(bm||{});const Rm={type:n.GenericReference,id:"new-entity-data-argument-declaration-parent-ref",entityId:tt.CreateNewInstance,version:"1",entityType:n.ActionDescriptor},Dm={type:n.GenericReference,id:"new-entity-data-argument-data-type-parent-ref",entityId:"new-entity-data-argument-declaration",version:"1",entityType:n.ValueDescriptor},Om={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"new-entity-data-argument-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:Dm},Pm={id:"new-entity-data-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Data for new entity",description:"The data to be used to create the new entity, with all the required properties",dataType:Om,required:!0,defaultValue:null,parentRelationType:N.FixedArguments,index:1,parent:Rm},wm={type:n.GenericReference,id:"entity-to-instanciate-argument-declaration-ref",version:"1",entityType:n.ValueDescriptor,entityId:"entity-to-instanciate-argument-declaration"},Cm={like:!1,staticEntities:!1,interactiveEntities:!0,actionEntities:!1,inferred:!1,id:"entity-to-instanciate-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!0,parent:wm},Vm={type:n.GenericReference,id:"create-new-instance-operation-ref",version:"1",entityType:n.ActionDescriptor,entityId:tt.CreateNewInstance},Bm={id:"entity-to-instanciate-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Entity to create a new copy of",description:"The entity of which a new copy will to be created",defaultValue:null,dataType:Cm,required:!0,parentRelationType:N.FixedArguments,index:0,parent:Vm},_m={type:n.GenericReference,id:"create-new-instance-output-entity-declaration-parent-ref",entityId:tt.CreateNewInstance,version:"1",entityType:n.ActionDescriptor},Mm={parentRelationType:N.FixedReturns,id:"create-new-instance-output-entity-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Created entity",description:"The entity that was created",defaultValue:null,dataType:null,parent:_m,required:!0,index:0},Nm={type:n.GenericReference,id:"create-new-instance-error-parent-ref",entityId:tt.CreateNewInstance,version:"1",entityType:n.ActionDescriptor},Lm={parentRelationType:N.FixedReturns,id:"create-new-instance-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Nm},un={id:tt.CreateNewInstance,type:n.ActionDescriptor,description:"Creates a new copy of a given entity, with the given values for each property, or default values if a value is not provided",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:tt.CreateNewInstance,inputs:[Bm,Pm],outputs:[Mm],error:Lm,parent:null},Jn=k[n.Operation][tt.Validate],jm={type:n.GenericReference,id:"validate-data-operation-data-to-validate-argument-declaration-ref",version:"1",entityType:n.ValueDescriptor,entityId:Jn.inputs.dataToValidate.id},Um={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"validate-data-operation-data-to-validate-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:jm},$m={type:n.GenericReference,id:"validate-data-operation-data-to-validate-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:tt.Validate},gm={id:Jn.inputs.dataToValidate.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Data to validate",description:"The value to validate against the given entity type",defaultValue:null,dataType:Um,required:!0,parentRelationType:N.FixedArguments,index:0,parent:$m},Gm={type:n.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-declaration-ref",version:"1",entityType:n.ValueDescriptor,entityId:Jn.inputs.entityToMatch.id},Fm={like:!1,inferred:!1,id:"validate-data-operation-entity-to-match-type-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!0,staticEntities:null,interactiveEntities:!0,actionEntities:!1,parent:Gm},xm={type:n.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:tt.Validate},km={id:Jn.inputs.entityToMatch.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Entity to match",description:"The entity to match the data against",dataType:Fm,defaultValue:null,required:!0,index:0,parentRelationType:N.FixedArguments,parent:xm},Zm={type:n.GenericReference,id:"validate-data-operation-output-entity-declaration-parent-ref",entityId:tt.Validate,version:"1",entityType:n.ActionDescriptor},qm={id:Jn.outputs.outputEntity.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:null,name:"Output value",description:"A value with the type of the entity that was validated",defaultValue:null,parent:Zm,required:!0,index:0,parentRelationType:N.FixedReturns},Jm={type:n.GenericReference,id:"wait-operation-error-parent-ref",entityId:tt.Validate,version:"1",entityType:n.ActionDescriptor},Sm={id:Jn.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",dataType:null,defaultValue:null,required:!0,index:1,parent:Jm,parentRelationType:N.ReturnedError},pn={id:tt.Validate,type:n.ActionDescriptor,description:"Validates the given data to see if it matches the structure of a given type/entity",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:tt.Validate,inputs:[km,gm],outputs:[qm],error:Sm,parent:null},Wm={[tt.CreateNewInstance]:un,[tt.Validate]:pn},At=k[n.Operation]["base-http-request"],zm={type:n.GenericReference,id:"d87cf943-57e1-4d19-9f05-190fa8c8ebc4",version:"1",entityType:n.ValueDescriptor,entityId:At.inputs.url.id},Ym={id:"http-request-url-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://some-url.com",name:L.String,valueAsTypeSingle:null,valueAsTypeList:null,parent:zm,autogeneration:null},Hm={type:n.GenericReference,id:"aed50d73-eab5-42ce-b00e-7f5c45a9026f",entityId:At.inputs.url.id,version:"1",entityType:n.ValueDescriptor},Km={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:Hm},Xm={type:n.GenericReference,id:"c3145af6-3387-464a-8887-272e483c856d",entityId:At.inputs.query.id,version:"1",entityType:n.ValueDescriptor},Qm={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"2a5ba737-6335-4cc4-a2c0-16dca4052fac",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:Xm},e0={type:n.GenericReference,id:"075556b7-e468-48f7-8485-7159eaf389b2",version:"1",entityType:n.ValueDescriptor,entityId:At.inputs.method.id},t0={id:"http-request-method-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:L.Enum,valueAsTypeSingle:null,valueAsTypeList:null,parent:e0,autogeneration:null},i0={type:n.GenericReference,id:"aed647c8-a1b5-4cfc-9a3d-97887a567a80",entityId:At.inputs.method.id,version:"1",entityType:n.ValueDescriptor},r0={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"6df7ec2b-5dbd-44af-896b-17b314e88560",type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:nr,isList:!1,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:i0},n0={type:n.GenericReference,id:"77203dfa-d2f6-4804-9556-e1cce46228f3",entityId:At.inputs.headers.id,version:"1",entityType:n.ValueDescriptor},s0={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"2c8a2a07-69c6-40ad-b5c9-f0dc4d5955ce",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wt,asType:!1,isList:!1,parent:n0},a0={type:n.GenericReference,id:"03db68a0-7ab6-4c6a-85b6-f4b95ebb53ff",entityId:At.inputs.body.id,version:"1",entityType:n.ValueDescriptor},o0={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"0397876c-ed54-4ee9-85a4-04fd16dad973",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wt,asType:!1,isList:!1,parent:a0},l0={type:n.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",version:"1",entityType:n.ValueDescriptor,entityId:At.outputs.code.id},d0={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"45e6d0bc-0c0e-4059-a7a1-6bee925d73d0",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:l0},u0={type:n.GenericReference,id:"2baaa53a-9aef-4bd1-b06d-967c17b7b627",version:"1",entityType:n.ValueDescriptor,entityId:At.outputs.headers.id},p0={type:n.GenericReference,id:"69f34d6c-c686-4165-b6ff-70dae8e1778b",version:"1",entityType:n.ValueDescriptor,entityId:At.outputs.headers.id},c0={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wt,isList:!1,asType:!1,parent:p0},f0={type:n.GenericReference,id:"744334e0-5135-4214-85d0-809437cb620b",version:"1",entityType:n.ValueDescriptor,entityId:At.outputs.body.id},y0={type:n.GenericReference,id:"0e0e20df-1a46-432c-ba01-fd96508a6a61",version:"1",entityType:n.ValueDescriptor,entityId:At.outputs.body.id},h0={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"05fc1a5d-151a-479a-9c4e-4063f3456177",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wt,isList:!1,asType:!1,parent:y0},m0={type:n.GenericReference,id:"26911792-f707-4bf1-b6f7-03d04a84232c",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},Qa={id:At.inputs.method.id,type:n.ValueDescriptor,description:"A single word that represents the type of request you want to make. For example: GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD, TRACE, CONNECT, CUSTOM",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Method",defaultValue:t0,dataType:r0,required:!1,index:0,parentRelationType:N.FixedArguments,parent:m0},v0={type:n.GenericReference,id:"eee0c501-0ae6-4448-b914-aada76d63163",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},eo={id:At.inputs.url.id,type:n.ValueDescriptor,description:"The base domain, or address where the request is being sent to. For example: https://some-url.com",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"URL",dataType:Km,defaultValue:Ym,required:!1,index:1,parentRelationType:N.FixedArguments,parent:v0},T0={type:n.GenericReference,id:"670091a4-21b1-4223-ad4c-b6dada0aec49",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},_d={id:At.inputs.query.id,type:n.ValueDescriptor,description:"A text with standarized format, without spaces that is added at the end of the URL path, after the ? character. It contains data that might be used to process the request. For example: /api/users?name=John&age=30",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Query Params",defaultValue:null,dataType:Qm,required:!1,index:2,parentRelationType:N.FixedArguments,parent:T0},E0={type:n.GenericReference,id:"85aad3eb-22fe-45f9-b68c-1dc7061f41e0",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},to={id:At.inputs.headers.id,type:n.ValueDescriptor,description:"A set of any properties, with names and values that represent metadata about the request, such as the server, date, content type, and more, that you want to send alongside your request data.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Headers",defaultValue:null,dataType:s0,required:!1,index:3,parent:E0,parentRelationType:N.FixedArguments},I0={type:n.GenericReference,id:"c3e2a4af-9b84-4574-8b30-5044ffc51776",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},io={id:At.inputs.body.id,type:n.ValueDescriptor,description:"The main data payload of the request. This is the data that you want to send to the server. It could be anything, but it is usually a KeyValue data structure or a text value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Body",dataType:o0,defaultValue:null,required:!1,index:4,parentRelationType:N.FixedArguments,parent:I0},A0={type:n.GenericReference,id:"92e04dc7-2145-4a31-908e-03810f7235e8",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},ro={id:At.outputs.code.id,type:n.ValueDescriptor,description:'A standardized status code of the response. It is a 3-digit number that represents the response status. For example, 200 means "OK", 404 means "Not Found", and 500 means "Internal Server Error".',version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Code",defaultValue:null,dataType:d0,required:!0,index:0,parentRelationType:N.FixedReturns,parent:A0},b0={type:n.GenericReference,id:"86aca556-bbf1-4679-9909-31db61b288e2",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},no={parentRelationType:N.FixedReturns,id:At.outputs.headers.id,type:n.ValueDescriptor,description:"A set of any properties, with names and value that the server sent back to you. It represents metadata about the response, such as the server, date, content type, and more.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Headers",defaultValue:{id:"http-response-headers-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:{},name:L.KeyValue,parent:u0,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:c0,required:!0,index:1,parent:b0},R0={type:n.GenericReference,id:"ccf3d1be-04e4-4d03-99fd-5bc1e1919f90",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},so={id:At.outputs.body.id,type:n.ValueDescriptor,description:"The main data payload of the response. This is the data that the server sent back to you. It could be anything, but it is usually a KeyValue data structure or a text value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Body",parentRelationType:N.FixedReturns,dataType:h0,defaultValue:{id:"http-response-body-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:{},name:L.KeyValue,parent:f0,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},required:!0,index:2,parent:R0},D0={type:n.GenericReference,id:"21487ffc-82b9-473d-bc19-6e7d7c480ed7",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},O0={type:n.GenericReference,id:"ad69861b-32f7-4461-b7f7-aa84a82578d9",version:"1",entityType:n.ValueDescriptor,entityId:At.outputs.error.id},P0={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"5da68b15-57bc-40c1-b79f-a9075e0f22c1",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wt,isList:!1,asType:!1,parent:O0},Md={parentRelationType:N.ReturnedError,id:At.outputs.error.id,type:n.ValueDescriptor,description:"Http request error, if any. Contains a payload describing what went wrong.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",defaultValue:null,dataType:P0,required:!0,index:0,parent:D0},Ms={type:n.ActionDescriptor,id:Lt.HttpRequest,name:Lt.HttpRequest,description:"Make an HTTP request, out to the internet, to a given URL with the specified method, query parameters, headers, and body.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[Qa,eo,_d,to,io],outputs:[ro,no,so],error:Md,parent:null},w0={[Lt.HttpRequest]:Ms},C0={...My,...Wf,...Gh,...Im,...Wm,...w0},V0=Object.values(C0),Bw=k[n.Loop]["manual-flow-loop"],B0={id:"manual-flow-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.ManualFlow,version:"1",entityType:n.ActionDescriptor},_0={id:Bw.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:B0,parentRelationType:N.DynamicReturn},ao={id:ee.ManualFlow,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ee.ManualFlow,description:"A loop that is manually controlled by the continue and break statements. It runs until the break statement is called, and it can skip to the next iteration with the continue statement.",inputs:[],outputs:[_0],error:null,parent:null},Ns=k[n.Loop]["manual-flow-loop"],M0={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"manual-flow-loop-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},N0={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"manual-flow-loop-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:M0},L0={id:"manual-flow-loop-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:Ns.body.id,version:"1",entityType:n.ActionDescriptor},Nd={id:Ns.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the manual flow loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:N0,required:!0,index:0,parentRelationType:N.FixedArguments,parent:L0},j0={id:"manual-flow-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:Ns.body.id,version:"1",entityType:n.ActionDescriptor},U0={id:"manual-flow-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:1,parentRelationType:N.DynamicArgument,parent:j0},$0={id:"manual-flow-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:Ns.body.id,version:"1",entityType:n.ActionDescriptor},g0={id:"manual-flow-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:$0},oo={id:Ns.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the manual flow loop.",inputs:[Nd,U0],outputs:[g0],error:null,parent:null},G0=k[n.Loop]["string-loop"],F0={id:"iterate-over-string-loop-string-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-string-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},x0={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-string-loop-string-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ae,asType:!1,parent:F0},k0={id:"iterate-over-string-loop-string-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.String,version:"1",entityType:n.ActionDescriptor},Z0={id:G0.inputs.string.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Texts",description:"The text to iterate over the characters of",defaultValue:null,required:!0,dataType:x0,index:0,parent:k0,parentRelationType:N.FixedArguments},q0={id:"iterate-over-string-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.String,version:"1",entityType:n.ActionDescriptor},J0={id:G0.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:q0,parentRelationType:N.DynamicReturn},Ls={id:ee.String,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ee.String,description:"Iterates over a string of entities",inputs:[Z0],outputs:[J0],error:null,parent:null},cn=k[n.Loop]["string-loop"],S0={id:"iterate-over-string-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},W0={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-string-loop-body-current-value-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ae,asType:!1,parent:S0},z0={id:"iterate-over-string-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:cn.body.id,version:"1",entityType:n.ActionDescriptor},Ld={id:cn.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value in the string that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:W0,required:!0,index:1,parentRelationType:N.FixedArguments,parent:z0},Y0={id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},H0={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:Y0},K0={id:"iterate-over-string-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:cn.body.id,version:"1",entityType:n.ActionDescriptor},jd={id:cn.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the string loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:H0,required:!0,index:0,parentRelationType:N.FixedArguments,parent:K0},X0={id:"iterate-over-string-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:cn.body.id,version:"1",entityType:n.ActionDescriptor},Q0={id:"iterate-over-string-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:N.DynamicArgument,parent:X0},ev={id:"iterate-over-string-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:cn.body.id,version:"1",entityType:n.ActionDescriptor},tv={id:"iterate-over-string-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:ev},lo={id:cn.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[jd,Ld,Q0],outputs:[tv],error:null,parent:null},iv=k[n.Loop]["list-loop"],rv={id:"iterate-over-list-loop-list-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-list-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},nv={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-list-loop-list-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!0,entity:null,asType:!1,parent:rv},sv={id:"iterate-over-list-loop-list-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.List,version:"1",entityType:n.ActionDescriptor},av={id:iv.inputs.list.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List",description:"The list to iterate over",required:!0,defaultValue:null,dataType:nv,index:0,parent:sv,parentRelationType:N.FixedArguments},ov={id:"iterate-over-list-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.List,version:"1",entityType:n.ActionDescriptor},lv={id:iv.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",required:!1,defaultValue:null,dataType:null,index:0,parent:ov,parentRelationType:N.DynamicReturn},Or={id:ee.List,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ee.List,description:"Iterates over a list of entities",inputs:[av],outputs:[lv],error:null,parent:null},fn=k[n.Loop]["list-loop"],dv={id:"iterate-over-list-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},uv={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-list-loop-body-current-value-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:null,asType:!1,parent:dv},pv={id:"iterate-over-list-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:fn.body.id,version:"1",entityType:n.ActionDescriptor},uo={id:fn.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value in the list that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:uv,required:!0,index:1,parentRelationType:N.FixedArguments,parent:pv},cv={id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},fv={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:cv},yv={id:"iterate-over-list-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:fn.body.id,version:"1",entityType:n.ActionDescriptor},hv={id:fn.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the list loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:fv,required:!0,index:0,parentRelationType:N.FixedArguments,parent:yv},mv={id:"iterate-over-list-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:fn.body.id,version:"1",entityType:n.ActionDescriptor},vv={id:"iterate-over-list-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:N.DynamicArgument,parent:mv},Tv={id:"iterate-over-list-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:fn.body.id,version:"1",entityType:n.ActionDescriptor},Ev={id:"iterate-over-list-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:Tv},js={id:fn.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the list loop.",inputs:[hv,uo,vv],outputs:[Ev],error:null,parent:null},Iv=k[n.Loop]["object-keys-loop"],Av={id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-object-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},bv={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:wt,asType:!1,parent:Av},Rv={id:"iterate-over-object-keys-loop-object-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.ObjectKeys,version:"1",entityType:n.ActionDescriptor},Dv={id:Iv.inputs.object.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Object",description:"The object to iterate over",required:!0,defaultValue:null,dataType:bv,index:0,parent:Rv,parentRelationType:N.FixedArguments},Ov={id:"iterate-over-object-keys-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.ObjectKeys,version:"1",entityType:n.ActionDescriptor},Pv={id:Iv.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:Ov,parentRelationType:N.DynamicReturn},Sn={id:ee.ObjectKeys,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ee.ObjectKeys,description:"Iterates over a object of entities",inputs:[Dv],outputs:[Pv],error:null,parent:null},yn=k[n.Loop]["object-keys-loop"],wv={id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},Cv={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ae,asType:!1,parent:wv},Vv={id:"iterate-over-object-keys-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:yn.body.id,version:"1",entityType:n.ActionDescriptor},Ud={id:yn.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value in the object-keys that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:Cv,required:!0,index:1,parentRelationType:N.FixedArguments,parent:Vv},Bv={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},_v={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:Bv},Mv={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:yn.body.id,version:"1",entityType:n.ActionDescriptor},Nv={id:yn.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the object-keys loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:_v,required:!0,index:0,parentRelationType:N.FixedArguments,parent:Mv},Lv={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:yn.body.id,version:"1",entityType:n.ActionDescriptor},jv={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:N.DynamicArgument,parent:Lv},Uv={id:"iterate-over-object-keys-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:yn.body.id,version:"1",entityType:n.ActionDescriptor},$v={id:"iterate-over-object-keys-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:Uv},$d={id:yn.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the object-keys loop.",inputs:[Nv,Ud,jv],outputs:[$v],error:null,parent:null},gv=k[n.Loop]["object-values-loop"],Gv={id:"iterate-over-object-values-loop-object-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-object-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},Fv={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-object-values-loop-object-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:wt,asType:!1,parent:Gv},xv={id:"iterate-over-object-values-loop-object-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.ObjectValues,version:"1",entityType:n.ActionDescriptor},kv={id:gv.inputs.object.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Object",description:"The object to iterate over",required:!0,defaultValue:null,dataType:Fv,index:0,parent:xv,parentRelationType:N.FixedArguments},Zv={id:"iterate-over-object-values-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.ObjectValues,version:"1",entityType:n.ActionDescriptor},qv={id:gv.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:Zv,parentRelationType:N.DynamicReturn},Wn={id:ee.ObjectValues,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ee.ObjectValues,description:"Iterates over a object of entities",inputs:[kv],outputs:[qv],error:null,parent:null},hn=k[n.Loop]["object-values-loop"],Jv={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},Sv={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:null,entity:null,asType:null,staticEntities:null,interactiveEntities:null,actionEntities:!1,like:!1,inferred:!1,parent:Jv},Wv={id:"iterate-over-object-values-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:hn.body.id,version:"1",entityType:n.ActionDescriptor},gd={id:hn.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value in the object-values that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:Sv,required:!0,index:1,parentRelationType:N.FixedArguments,parent:Wv},zv={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},Yv={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:zv},Hv={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:hn.body.id,version:"1",entityType:n.ActionDescriptor},Kv={id:hn.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the object-values loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:Yv,required:!0,index:0,parentRelationType:N.FixedArguments,parent:Hv},Xv={id:"iterate-over-object-values-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:hn.body.id,version:"1",entityType:n.ActionDescriptor},Qv={id:"iterate-over-object-values-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:N.DynamicArgument,parent:Xv},eT={id:"iterate-over-object-values-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:hn.body.id,version:"1",entityType:n.ActionDescriptor},tT={id:"iterate-over-object-values-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:eT},Gd={id:hn.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the object-values loop.",inputs:[Kv,gd,Qv],outputs:[tT],error:null,parent:null},Fd=k[n.Loop]["counted-loop"],iT={id:"counted-loop-string-argument-declaration-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:Fd.inputs.number.id,version:"1",entityType:n.ValueDescriptor},rT={id:"counted-loop-string-argument-declaration-data-type-default-value-id",type:n.LiteralValue,name:L.Number,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:5,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:iT},nT={id:"counted-loop-string-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"counted-loop-string-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},sT={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"counted-loop-string-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:nT},aT={id:"counted-loop-string-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.Counted,version:"1",entityType:n.ActionDescriptor},oT={id:Fd.inputs.number.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Number of iterations",description:"The number of iterations to perform",required:!0,dataType:sT,defaultValue:rT,index:0,parent:aT,parentRelationType:N.FixedArguments},lT={id:"counted-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.Counted,version:"1",entityType:n.ActionDescriptor},dT={id:Fd.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:lT,parentRelationType:N.DynamicReturn},Us={id:ee.Counted,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ee.Counted,description:"Iterates a given number of times",inputs:[oT],outputs:[dT],error:null,parent:null},$s=k[n.Loop]["counted-loop"],uT={id:"counted-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"counted-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},pT={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"counted-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:uT},cT={id:"counted-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:$s.body.id,version:"1",entityType:n.ActionDescriptor},xd={id:$s.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the string loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:pT,required:!0,index:0,parentRelationType:N.FixedArguments,parent:cT},fT={id:"counted-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:$s.body.id,version:"1",entityType:n.ActionDescriptor},yT={id:"counted-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:1,parentRelationType:N.DynamicArgument,parent:fT},hT={id:"counted-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:$s.body.id,version:"1",entityType:n.ActionDescriptor},mT={id:"counted-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:hT},po={id:$s.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[xd,yT],outputs:[mT],error:null,parent:null},vT=[ao,Or,Ls,Sn,Wn,Us],TT=[oo,js,lo,$d,Gd,po],Pr=k[n.BuiltInBaseEntity][S.HTTP_ENDPOINT].properties,hi=k[n.BuiltInBaseEntity][S.HTTP_ENDPOINT].methods,ET={id:"endpointBuiltInCorsPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:Pr.cors.id},IT={id:"endpointBuiltInCorsPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:Pr.cors.id},AT={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"endpointBuiltInCorsPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:ae,asType:!1,parent:IT},bT={id:"endpointBuiltInBaseEntityRef",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:S.HTTP_ENDPOINT},RT={constant:!0,hidden:!0,required:!0,id:Pr.cors.id,name:"Allowed origins",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:AT,defaultValue:{id:"endpointBuiltInCorsPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:["*"],parent:ET,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},description:"The origins that are allowed to access this endpoint, use * for all origins, or http://example.com/* to be as specific as you need.",parent:bT},DT={id:"endpointBuiltInPathPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:Pr.path.id},OT={id:"endpointBuiltInPathPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:Pr.path.id},PT={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"endpointBuiltInPathPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:OT},wT={id:"endpointBuiltInBaseEntityRefTwo",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:S.HTTP_ENDPOINT},kd={constant:!0,id:Pr.path.id,hidden:!1,required:!0,name:"Path",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:1,dataType:PT,defaultValue:{id:"endpointBuiltInPathPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"/",parent:DT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},description:"Path to the endpoint, for example /api/users, or /api/users/{id}, or /api/users/{id}/:name. The path can contain parameters, which are defined by curly braces, and will be passed to the endpoint event as variables with the same name.",parent:wT},CT={id:"endpointBuiltInMethodPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:Pr.method.id},VT={id:"endpointBuiltInMethodPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"endpointBuiltInMethodProperty"},BT={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"endpointBuiltInMethodPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:nr,isList:!1,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:VT},_T={id:"endpointBuiltInBaseEntityRefThree",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:S.HTTP_ENDPOINT},Zd={constant:!0,hidden:!1,required:!0,id:Pr.method.id,name:"Method",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,index:2,implements:null,defaultValue:{id:"endpointBuiltInMethodPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:L.Enum,parent:CT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},abstract:!0,static:!0,dataType:BT,description:"The HTTP method that this endpoint will respond to, for example GET, POST, PUT, DELETE, etc.",parent:_T},MT={id:"endpointRequestHeadersVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointRequestHeadersArgumentDeclaration"},NT={id:"endpointRequestHeadersArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointRequestHeadersArgumentDeclaration"},LT={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"endpointRequestHeadersVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:wt,asType:!1,parent:NT},jT={id:"endpointRequestBodyArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointRequestBodyArgumentDeclaration"},UT={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"endpointRequestBodyVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:wt,parent:jT},$T={id:"endpointRequestQueryParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointRequestQueryParamsArgumentDeclaration"},gT={id:"endpointRequestQueryParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointRequestQueryParamsArgumentDeclaration"},GT={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"endpointRequestQueryParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:Zn,parent:gT},FT={id:"endpointPathParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointPathParamsArgumentDeclaration"},xT={id:"endpointPathParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointPathParamsArgumentDeclaration"},kT={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"endpointPathParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Zn,asType:!1,parent:xT},ZT={id:"endpointReachedTriggerActionDescriptorRef",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:hi.handler.id},qd={id:"endpointRequestHeadersArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:n.ValueDescriptor,name:"Request headers",dataType:LT,defaultValue:{id:"endpointRequestHeadersVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:MT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:0,parentRelationType:N.FixedArguments,parent:ZT},qT={id:"endpointReachedTriggerActionDescriptorRefTwo",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:hi.handler.id},Jd={id:"endpointPathParamsArgumentDeclaration",type:n.ValueDescriptor,description:"A standarized text, without spaces that is added at the end of the domain and routes the request to a specific resource within the target server. For example: /api/users/123, /api/users/123/:name, /api/users/123/:name/:age.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Path parameters",dataType:kT,defaultValue:{id:"endpointPathParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:[],parent:FT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:1,parentRelationType:N.FixedArguments,parent:qT},JT={id:"endpointReachedTriggerActionDescriptorRefThree",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:hi.handler.id},Sd={id:"endpointRequestQueryParamsArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A text with standarized format, without spaces that is added at the end of the URL path, after the ? character. It contains data that might be used to process the request. For example: /api/users?name=John&age=30",type:n.ValueDescriptor,name:"Request query params",dataType:GT,defaultValue:{id:"endpointRequestQueryParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:[],parent:$T,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:2,parentRelationType:N.FixedArguments,parent:JT},ST={id:"endpointReachedTriggerActionDescriptorRefFour",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:hi.handler.id},Wd={id:"endpointRequestBodyArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the request.",type:n.ValueDescriptor,name:"Request body",dataType:UT,defaultValue:null,index:3,required:!0,parentRelationType:N.FixedArguments,parent:ST},WT={id:"endpointResponseCodeReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:hi.handler.outputs.statusCode.id},zT={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:WT},YT={id:"endpointReturnStatementRef",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},HT={id:"endpointResponseCodeReturnDeclarationDefaultValueParentRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:hi.handler.outputs.statusCode.id},zd={id:hi.handler.outputs.statusCode.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A standarized number that represents the status of the response. 200 for OK, 404 for not found, 500 for server error, etc.",type:n.ValueDescriptor,name:"Response code",dataType:zT,defaultValue:{id:"endpointResponseCodeDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:200,parent:HT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:0,parentRelationType:N.FixedReturns,parent:YT},KT={id:"endpointResponseHeadersDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:hi.handler.outputs.headers.id},XT={id:"endpointResponseHeadersReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:hi.handler.outputs.headers.id},QT={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"endpointResponseHeadersDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:wt,asType:!1,parent:XT},eE={id:"endpointReturnStatementRefTwo",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},Yd={id:hi.handler.outputs.headers.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:n.ValueDescriptor,name:"Response headers",dataType:QT,defaultValue:{id:"endpointResponseHeadersDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:KT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!1,index:1,parentRelationType:N.FixedReturns,parent:eE},tE={id:"endpointResponseBodyReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:hi.handler.outputs.body.id},iE={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"endpointResponseBodyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:wt,parent:tE},rE={id:"endpointReturnStatementRefThree",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},Hd={id:hi.handler.outputs.body.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the response.",type:n.ValueDescriptor,name:"Response body",dataType:iE,defaultValue:null,required:!1,index:2,parentRelationType:N.FixedReturns,parent:rE},nE={id:"endpointBuiltInBaseEntityRefFour",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:S.HTTP_ENDPOINT},Kd={id:hi.handler.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Endpoint reached",description:"Fired when the endpoint is reached.",inputs:[qd,Jd,Sd,Wd],outputs:[zd,Yd,Hd],error:null,parent:nE},ni={id:S.HTTP_ENDPOINT,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"An HTTP endpoint that can be reached by a client from the internet.",name:S.HTTP_ENDPOINT,type:n.BuiltInBaseEntity,interactive:!1,abstract:!0,static:!0,properties:[RT,kd,Zd],abstractMethods:[Kd],extends:[],methods:[]},Bt=k[n.BuiltInBaseEntity].BUILT_IN_RELATIONAL_DATABASE_ENTITY,sE={id:"relational-database-built-in-base-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:Bt.properties.identifier.id,version:"1",entityType:n.Property},aE={id:"relational-database-built-in-base-entity-identifier-property-ref-id",type:n.GenericReference,entityId:Bt.properties.identifier.id,version:"1",entityType:n.Property},oE={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"relational-database-built-in-base-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:aE},zn={id:"relational-database-built-in-base-entity-ref-id",type:n.GenericReference,entityId:S.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},co={constant:!0,id:Bt.properties.identifier.id,hidden:!1,required:!0,name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:0,defaultValue:{id:"relational-database-built-in-base-entity-identifier-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:null,parent:sE,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:oE,description:"The name of the main database inside of the server instance where the data will be stored.",parent:zn},_w={id:"relational-database-built-in-base-entity-username-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-username-property-data-type-idd",version:"1",entityType:n.Property},lE={id:"relational-database-built-in-base-entity-username-property-ref-id",type:n.GenericReference,entityId:Bt.properties.username.id,version:"1",entityType:n.Property},dE={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"relational-database-built-in-base-entity-username-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:lE},fo={constant:!0,hidden:!1,required:!0,id:Bt.properties.username.id,name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:1,defaultValue:{id:"relational-database-built-in-base-entity-username-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"postgres",parent:{id:"relational-database-built-in-base-entity-username-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:Bt.properties.username.id,version:"1",entityType:n.Property},autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:dE,description:"The username that will be used to connect to the database.",parent:zn},Mw={id:"relational-database-built-in-base-entity-password-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-password-property-data-type-id",version:"1",entityType:n.Property},uE={id:"relational-database-built-in-base-entity-password-property-ref-id",type:n.GenericReference,entityId:Bt.properties.password.id,version:"1",entityType:n.Property},pE={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"relational-database-built-in-base-entity-password-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:uE},cE={id:"relational-database-built-in-base-entity-password-property-default-value-parent-ref-id",type:n.GenericReference,entityId:Bt.properties.password.id,version:"1",entityType:n.Property},yo={constant:!0,hidden:!1,required:!0,id:Bt.properties.password.id,name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:2,defaultValue:{id:"relational-database-built-in-base-entity-password-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"123456789",parent:cE,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:pE,description:"The password that will be used to connect to the database.",parent:zn},fE={id:"relational-database-built-in-base-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:Bt.properties.minSize.id,version:"1",entityType:n.Property},yE={id:"relational-database-built-in-base-entity-min-size-property-ref-id",type:n.GenericReference,entityId:Bt.properties.minSize.id,version:"1",entityType:n.Property},hE={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"relational-database-built-in-base-entity-min-size-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:yE},ho={constant:!0,hidden:!0,required:!0,id:Bt.properties.minSize.id,name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:3,defaultValue:{id:"relational-database-built-in-base-entity-min-size-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:6,parent:fE,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:hE,description:"The minimum size of the database in GB.",parent:zn},mE={id:"relational-database-built-in-base-entity-default-property-data-type-ref-id",type:n.GenericReference,entityId:Bt.properties.default.id,version:"1",entityType:n.Property},vE={id:"relational-database-built-in-base-entity-default-property-ref-id",type:n.GenericReference,entityId:Bt.properties.default.id,version:"1",entityType:n.Property},TE={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"relational-database-built-in-base-entity-default-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:rr,asType:!1,parent:vE},Xd={constant:!0,hidden:!0,required:!0,id:Bt.properties.default.id,name:"Default",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,defaultValue:{id:"relational-database-built-in-base-entity-default-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,value:!1,parent:mE,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:TE,description:"If true, this database will be the default database for the server instance and all the new entities.",parent:zn},EE={id:"relational-database-built-in-base-entity-autoscaling-property-ref-id",type:n.GenericReference,entityId:Bt.properties.autoscaling.id,version:"1",entityType:n.Property},IE={id:"relational-database-built-in-base-entity-autoscaling-property-data-type-ref-id",type:n.GenericReference,entityId:Bt.properties.autoscaling.id,version:"1",entityType:n.Property},AE={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"relational-database-built-in-base-entity-autoscaling-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:rr,asType:!1,parent:EE},bE={id:"relational-database-built-in-base-entity-autoscaling-property-parent-ref-id",type:n.GenericReference,entityId:S.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},Qd={constant:!0,hidden:!0,required:!0,id:Bt.properties.autoscaling.id,name:"Auto-scaling",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,defaultValue:{id:"relational-database-built-in-base-entity-autoscaling-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,value:!1,parent:IE,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:AE,description:"If true, this database will automatically scale up or down in memory size, based on the usage.",parent:bE},Dt={id:S.RELATIONAL_DATABASE,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"This entity provisions a relational database in the cloud.",name:S.RELATIONAL_DATABASE,type:n.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[co,fo,yo,ho,Xd,Qd],abstractMethods:[],methods:[],extends:[]},RE={type:n.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",version:"1",entityType:n.BuiltInBaseEntity,id:ci.DeletePersistedEntity},eu={type:n.FunctionDeclaration,id:ci.DeletePersistedEntity,name:ci.DeletePersistedEntity,description:"Permanently deletes the current copy of an entity from the database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,parent:RE,inputs:[],calls:[],implements:null,collapsed:!1,index:0,private:!1,x:0,y:0},DE=k[n.BuiltInBaseEntity][S.PERSISTED_ENTITY].properties,Nw={id:"persisted-built-in-base-entity-database-property-data-type-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-database-property-data-type-id",version:"1",entityType:n.DataType},OE={id:"persisted-built-in-base-entity-database-property-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-database-property-id",version:"1",entityType:n.Property},PE={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"persisted-built-in-base-entity-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Dt,asType:!0,parent:OE},wE={id:"persisted-built-in-base-entity-database-property-parent-ref-id",type:n.GenericReference,entityId:S.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},Yn={constant:!0,hidden:!0,required:!0,id:DE.database.id,name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:PE,description:"The database that the entity belongs to.",parent:wE},CE={id:"persisted-built-in-base-entity-primary-key-property-number-data-type-option-parent-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:n.DataType},VE={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-number-data-type-option-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parentRelationType:Pt.OrDataTypeGroup,parent:CE},BE={id:"persisted-built-in-base-entity-primary-key-property-string-data-type-option-parent-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:n.DataType},_E={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-string-data-type-option-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parentRelationType:Pt.OrDataTypeGroup,parent:BE},ME={id:"persisted-built-in-base-entity-primary-key-property-uuid-data-type-option-parent-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:n.DataType},NE={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-uuid-data-type-option-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:sr,asType:!1,parentRelationType:Pt.OrDataTypeGroup,parent:ME},LE={id:"persisted-built-in-base-entity-primary-key-property-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-id",version:"1",entityType:n.Property},jE={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,andChildrenGroup:null,orChildrenGroup:[NE,_E,VE],isList:!1,entity:null,asType:null,implementationChooseOne:!0,parent:LE},UE={id:"persisted-built-in-base-entity-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:S.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},Hn={constant:!1,hidden:!1,required:!0,id:DE.primaryKey.id,name:"Primary key",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!1,index:0,dataType:jE,description:"A property with a unique value for the entity, that can be used to identify the entity among other entities of the same type.",parent:UE},_t={id:S.PERSISTED_ENTITY,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"An entity that is permanently stored in the database and can be accessed at any point.",name:S.PERSISTED_ENTITY,type:n.BuiltInBaseEntity,abstract:!0,static:!1,interactive:!0,abstractMethods:[],properties:[Yn,Hn],methods:[eu],extends:[]},$E={type:n.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",version:"1",entityType:n.BuiltInBaseEntity,id:ci.SoftDeletePersistedEntity},Lw={type:n.FunctionDeclaration,id:ci.SoftDeletePersistedEntity,name:ci.SoftDeletePersistedEntity,description:"Designates the entity as deleted, but does not remove it from the database.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,parent:$E,inputs:[],calls:[],implements:null,collapsed:!1,index:0,private:!1,x:0,y:0},jw=k[n.BuiltInBaseEntity][S.CRON_JOB].methods,gE={id:"cron-job-triggered-function-declaration-blueprint-parent-ref-id",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:S.CRON_JOB},tu={id:jw.handler.id,name:"Scheduled job triggered",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ActionDescriptor,description:"Executed when the scheduled job is triggered",inputs:[],error:null,outputs:[],parent:gE},GE=k[n.BuiltInBaseEntity].BUILT_IN_CRON_JOB_ENTITY,Uw={id:"cron-job-built-in-base-entity-expression-property-data-type-ref",type:n.GenericReference,entityId:"cron-job-built-in-base-entity-expression-property-data-type",version:"1",entityType:n.DataType},FE={id:"cron-job-built-in-base-entity-expression-property-ref",type:n.GenericReference,entityId:GE.properties.expression.id,version:"1",entityType:n.Property},$w={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"cron-job-built-in-base-entity-expression-property-data-type",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:FE},xE={id:"cron-job-built-in-base-entity-ref",type:n.GenericReference,entityId:S.CRON_JOB,version:"1",entityType:n.BuiltInBaseEntity},kE={constant:!1,hidden:!1,required:!0,id:GE.properties.expression.id,name:"Cron expression",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:$w,description:"The cron-job expression that defines when the cron-job job should be triggered. The expression should be in the format of a cron-job expression.",parent:xE},mo={id:S.CRON_JOB,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"This entity represents a scheduled trigger. The action on this entity will be executed one the time set by the cron-job expression is reached.",name:S.CRON_JOB,type:n.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[kE],methods:[],abstractMethods:[tu],extends:[]},ZE={type:n.GenericReference,id:"execution-built-in-entity-abort-method-parent-ref-id",version:"1",entityType:n.BuiltInBaseEntity,entityId:"execution-built-in-entity-id"},iu={id:"execution-built-in-entity-abort-method-id",type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ci.AbortExecution,description:"Aborts the execution of the entity",inputs:[],calls:[],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:ZE},vo={id:S.EXECUTION,type:n.BuiltInBaseEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:S.EXECUTION,description:"A reference to an ongoing execution of any entity that can be called. Eg: Operations, custom trigger calls, etc.",static:!1,abstract:!1,interactive:!0,extends:[],properties:[],methods:[iu],abstractMethods:[]},qE=[ni,Dt,_t,mo,vo],gw=k[n.Condition]["not-empty"],JE={type:n.GenericReference,id:"not-empty-condition-ref",version:"1",entityType:n.ActionDescriptor,entityId:bi.NotEmpty},SE={id:gw.inputs.leftHand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Value",description:"The value to check if it is not empty",defaultValue:null,dataType:null,required:!1,parentRelationType:N.FixedArguments,index:0,parent:JE},mn={type:n.ActionDescriptor,id:bi.NotEmpty,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:bi.NotEmpty,description:"Checks if the value is not empty",parent:null,inputs:[SE],outputs:[],error:null},WE={[bi.NotEmpty]:mn},Kn=k[n.Condition]["more-than-or-equal"],zE={type:n.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-data-type-parent-ref",version:"1",entityType:n.ValueDescriptor,entityId:Kn.inputs.leftHand.id},YE={staticEntities:!1,interactiveEntities:!0,actionEntities:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,id:Kn.inputs.leftHand.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:zE},HE={type:n.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:yt.MoreThanOrEqual},KE={id:Kn.inputs.leftHand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First value",description:"The first value to compare",defaultValue:null,dataType:YE,required:!0,parentRelationType:N.FixedArguments,index:0,parent:HE},XE={type:n.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-data-type-parent-ref",version:"1",entityType:n.ValueDescriptor,entityId:Kn.inputs.rightHand.id},QE={staticEntities:!1,interactiveEntities:!0,actionEntities:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,id:Kn.inputs.rightHand.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:XE},eI={type:n.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:yt.MoreThanOrEqual},tI={id:Kn.inputs.rightHand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second value",description:"The second value to compare",defaultValue:null,dataType:QE,required:!0,parentRelationType:N.FixedArguments,index:1,parent:eI},Xn={type:n.ActionDescriptor,id:yt.MoreThanOrEqual,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:yt.MoreThanOrEqual,description:"Checks if the value is not empty",parent:null,inputs:[KE,tI],outputs:[],error:null},iI={[yt.MoreThanOrEqual]:Xn},rI={...WE,...iI},nI=Object.values(rI),To={type:n.ActionDescriptor,id:ir.PROJECT_PUBLICATION_COMPLETED,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ir.PROJECT_PUBLICATION_COMPLETED,description:"The event that is triggered when the project has completed its publication and all its code and resurces are now deployed and ready to be used by the users",parent:null,inputs:[],outputs:[],error:null},sI={[ir.PROJECT_PUBLICATION_COMPLETED]:To},aI=Object.values(sI),ru=k[n.ValueDescriptor][za.ActionOngoingProcessOutputValue],oI={type:n.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",version:"1",entityType:n.ValueDescriptor,entityId:ru.id},lI={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:ru.dataType.id,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vo,asType:!1,isList:!1,parent:oI},Eo={id:ru.id,type:n.ValueDescriptor,description:"A value that represents the ongoing process of the parent action",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Process",defaultValue:null,dataType:lI,required:!0,index:0,parent:null,parentRelationType:N.OngoingProcessExecution},dI=[Eo],uI=[...vf,...V0,...vT,...TT,...qE,...nI,...aI,...dI];var ze;(function(r){r.assertEqual=i=>i;function a(i){}r.assertIs=a;function e(i){throw new Error}r.assertNever=e,r.arrayToEnum=i=>{const s={};for(const l of i)s[l]=l;return s},r.getValidEnumValues=i=>{const s=r.objectKeys(i).filter(o=>typeof i[i[o]]!="number"),l={};for(const o of s)l[o]=i[o];return r.objectValues(l)},r.objectValues=i=>r.objectKeys(i).map(function(s){return i[s]}),r.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const s=[];for(const l in i)Object.prototype.hasOwnProperty.call(i,l)&&s.push(l);return s},r.find=(i,s)=>{for(const l of i)if(s(l))return l},r.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function t(i,s=" | "){return i.map(l=>typeof l=="string"?`'${l}'`:l).join(s)}r.joinValues=t,r.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(ze||(ze={}));var nu;(function(r){r.mergeShapes=(a,e)=>({...a,...e})})(nu||(nu={}));const H=ze.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),lr=r=>{switch(typeof r){case"undefined":return H.undefined;case"string":return H.string;case"number":return isNaN(r)?H.nan:H.number;case"boolean":return H.boolean;case"function":return H.function;case"bigint":return H.bigint;case"symbol":return H.symbol;case"object":return Array.isArray(r)?H.array:r===null?H.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?H.promise:typeof Map<"u"&&r instanceof Map?H.map:typeof Set<"u"&&r instanceof Set?H.set:typeof Date<"u"&&r instanceof Date?H.date:H.object;default:return H.unknown}},Z=ze.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Gw=r=>JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:");class si extends Error{get errors(){return this.issues}constructor(a){super(),this.issues=[],this.addIssue=t=>{this.issues=[...this.issues,t]},this.addIssues=(t=[])=>{this.issues=[...this.issues,...t]};const e=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,e):this.__proto__=e,this.name="ZodError",this.issues=a}format(a){const e=a||function(s){return s.message},t={_errors:[]},i=s=>{for(const l of s.issues)if(l.code==="invalid_union")l.unionErrors.map(i);else if(l.code==="invalid_return_type")i(l.returnTypeError);else if(l.code==="invalid_arguments")i(l.argumentsError);else if(l.path.length===0)t._errors.push(e(l));else{let o=t,d=0;for(;d<l.path.length;){const u=l.path[d];d===l.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(e(l))):o[u]=o[u]||{_errors:[]},o=o[u],d++}}};return i(this),t}static assert(a){if(!(a instanceof si))throw new Error(`Not a ZodError: ${a}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ze.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(a=e=>e.message){const e={},t=[];for(const i of this.issues)i.path.length>0?(e[i.path[0]]=e[i.path[0]]||[],e[i.path[0]].push(a(i))):t.push(a(i));return{formErrors:t,fieldErrors:e}}get formErrors(){return this.flatten()}}si.create=r=>new si(r);const Qn=(r,a)=>{let e;switch(r.code){case Z.invalid_type:r.received===H.undefined?e="Required":e=`Expected ${r.expected}, received ${r.received}`;break;case Z.invalid_literal:e=`Invalid literal value, expected ${JSON.stringify(r.expected,ze.jsonStringifyReplacer)}`;break;case Z.unrecognized_keys:e=`Unrecognized key(s) in object: ${ze.joinValues(r.keys,", ")}`;break;case Z.invalid_union:e="Invalid input";break;case Z.invalid_union_discriminator:e=`Invalid discriminator value. Expected ${ze.joinValues(r.options)}`;break;case Z.invalid_enum_value:e=`Invalid enum value. Expected ${ze.joinValues(r.options)}, received '${r.received}'`;break;case Z.invalid_arguments:e="Invalid function arguments";break;case Z.invalid_return_type:e="Invalid function return type";break;case Z.invalid_date:e="Invalid date";break;case Z.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(e=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(e=`${e} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?e=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?e=`Invalid input: must end with "${r.validation.endsWith}"`:ze.assertNever(r.validation):r.validation!=="regex"?e=`Invalid ${r.validation}`:e="Invalid";break;case Z.too_small:r.type==="array"?e=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?e=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?e=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?e=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:e="Invalid input";break;case Z.too_big:r.type==="array"?e=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?e=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?e=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?e=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?e=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:e="Invalid input";break;case Z.custom:e="Invalid input";break;case Z.invalid_intersection_types:e="Intersection results could not be merged";break;case Z.not_multiple_of:e=`Number must be a multiple of ${r.multipleOf}`;break;case Z.not_finite:e="Number must be finite";break;default:e=a.defaultError,ze.assertNever(r)}return{message:e}};let pI=Qn;function Fw(r){pI=r}function Io(){return pI}const Ao=r=>{const{data:a,path:e,errorMaps:t,issueData:i}=r,s=[...e,...i.path||[]],l={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let o="";const d=t.filter(u=>!!u).slice().reverse();for(const u of d)o=u(l,{data:a,defaultError:o}).message;return{...i,path:s,message:o}},xw=[];function z(r,a){const e=Io(),t=Ao({issueData:a,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,e,e===Qn?void 0:Qn].filter(i=>!!i)});r.common.issues.push(t)}class $t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(a,e){const t=[];for(const i of e){if(i.status==="aborted")return ye;i.status==="dirty"&&a.dirty(),t.push(i.value)}return{status:a.value,value:t}}static async mergeObjectAsync(a,e){const t=[];for(const i of e){const s=await i.key,l=await i.value;t.push({key:s,value:l})}return $t.mergeObjectSync(a,t)}static mergeObjectSync(a,e){const t={};for(const i of e){const{key:s,value:l}=i;if(s.status==="aborted"||l.status==="aborted")return ye;s.status==="dirty"&&a.dirty(),l.status==="dirty"&&a.dirty(),s.value!=="__proto__"&&(typeof l.value<"u"||i.alwaysSet)&&(t[s.value]=l.value)}return{status:a.value,value:t}}}const ye=Object.freeze({status:"aborted"}),es=r=>({status:"dirty",value:r}),zt=r=>({status:"valid",value:r}),su=r=>r.status==="aborted",au=r=>r.status==="dirty",vn=r=>r.status==="valid",gs=r=>typeof Promise<"u"&&r instanceof Promise;function bo(r,a,e,t){if(e==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof a=="function"?r!==a||!t:!a.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?t:e==="a"?t.call(r):t?t.value:a.get(r)}function cI(r,a,e,t,i){if(t==="m")throw new TypeError("Private method is not writable");if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof a=="function"?r!==a||!i:!a.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t==="a"?i.call(r,e):i?i.value=e:a.set(r,e),e}typeof SuppressedError=="function"&&SuppressedError;var ne;(function(r){r.errToObj=a=>typeof a=="string"?{message:a}:a||{},r.toString=a=>typeof a=="string"?a:a==null?void 0:a.message})(ne||(ne={}));var Gs,Fs;class Zi{constructor(a,e,t,i){this._cachedPath=[],this.parent=a,this.data=e,this._path=t,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const fI=(r,a)=>{if(vn(a))return{success:!0,data:a.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const e=new si(r.common.issues);return this._error=e,this._error}}};function Te(r){if(!r)return{};const{errorMap:a,invalid_type_error:e,required_error:t,description:i}=r;if(a&&(e||t))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return a?{errorMap:a,description:i}:{errorMap:(l,o)=>{var d,u;const{message:y}=r;return l.code==="invalid_enum_value"?{message:y??o.defaultError}:typeof o.data>"u"?{message:(d=y??t)!==null&&d!==void 0?d:o.defaultError}:l.code!=="invalid_type"?{message:o.defaultError}:{message:(u=y??e)!==null&&u!==void 0?u:o.defaultError}},description:i}}class Ge{get description(){return this._def.description}_getType(a){return lr(a.data)}_getOrReturnCtx(a,e){return e||{common:a.parent.common,data:a.data,parsedType:lr(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}_processInputParams(a){return{status:new $t,ctx:{common:a.parent.common,data:a.data,parsedType:lr(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}}_parseSync(a){const e=this._parse(a);if(gs(e))throw new Error("Synchronous parse encountered promise.");return e}_parseAsync(a){const e=this._parse(a);return Promise.resolve(e)}parse(a,e){const t=this.safeParse(a,e);if(t.success)return t.data;throw t.error}safeParse(a,e){var t;const i={common:{issues:[],async:(t=e==null?void 0:e.async)!==null&&t!==void 0?t:!1,contextualErrorMap:e==null?void 0:e.errorMap},path:(e==null?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:lr(a)},s=this._parseSync({data:a,path:i.path,parent:i});return fI(i,s)}"~validate"(a){var e,t;const i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:lr(a)};if(!this["~standard"].async)try{const s=this._parseSync({data:a,path:[],parent:i});return vn(s)?{value:s.value}:{issues:i.common.issues}}catch(s){!((t=(e=s==null?void 0:s.message)===null||e===void 0?void 0:e.toLowerCase())===null||t===void 0)&&t.includes("encountered")&&(this["~standard"].async=!0),i.common={issues:[],async:!0}}return this._parseAsync({data:a,path:[],parent:i}).then(s=>vn(s)?{value:s.value}:{issues:i.common.issues})}async parseAsync(a,e){const t=await this.safeParseAsync(a,e);if(t.success)return t.data;throw t.error}async safeParseAsync(a,e){const t={common:{issues:[],contextualErrorMap:e==null?void 0:e.errorMap,async:!0},path:(e==null?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:lr(a)},i=this._parse({data:a,path:t.path,parent:t}),s=await(gs(i)?i:Promise.resolve(i));return fI(t,s)}refine(a,e){const t=i=>typeof e=="string"||typeof e>"u"?{message:e}:typeof e=="function"?e(i):e;return this._refinement((i,s)=>{const l=a(i),o=()=>s.addIssue({code:Z.custom,...t(i)});return typeof Promise<"u"&&l instanceof Promise?l.then(d=>d?!0:(o(),!1)):l?!0:(o(),!1)})}refinement(a,e){return this._refinement((t,i)=>a(t)?!0:(i.addIssue(typeof e=="function"?e(t,i):e),!1))}_refinement(a){return new Mi({schema:this,typeName:ce.ZodEffects,effect:{type:"refinement",refinement:a}})}superRefine(a){return this._refinement(a)}constructor(a){this.spa=this.safeParseAsync,this._def=a,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return Ji.create(this,this._def)}nullable(){return Br.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return _i.create(this)}promise(){return ns.create(this,this._def)}or(a){return qs.create([this,a],this._def)}and(a){return Js.create(this,a,this._def)}transform(a){return new Mi({...Te(this._def),schema:this,typeName:ce.ZodEffects,effect:{type:"transform",transform:a}})}default(a){const e=typeof a=="function"?a:()=>a;return new Hs({...Te(this._def),innerType:this,defaultValue:e,typeName:ce.ZodDefault})}brand(){return new du({typeName:ce.ZodBranded,type:this,...Te(this._def)})}catch(a){const e=typeof a=="function"?a:()=>a;return new Ks({...Te(this._def),innerType:this,catchValue:e,typeName:ce.ZodCatch})}describe(a){const e=this.constructor;return new e({...this._def,description:a})}pipe(a){return Xs.create(this,a)}readonly(){return Qs.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const kw=/^c[^\s-]{8,}$/i,Zw=/^[0-9a-z]+$/,qw=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Jw=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Sw=/^[a-z0-9_-]{21}$/i,Ww=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,zw=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Yw=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Hw="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ou;const Kw=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Xw=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Qw=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,eC=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,tC=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,iC=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,yI="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",rC=new RegExp(`^${yI}$`);function hI(r){let a="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return r.precision?a=`${a}\\.\\d{${r.precision}}`:r.precision==null&&(a=`${a}(\\.\\d+)?`),a}function nC(r){return new RegExp(`^${hI(r)}$`)}function mI(r){let a=`${yI}T${hI(r)}`;const e=[];return e.push(r.local?"Z?":"Z"),r.offset&&e.push("([+-]\\d{2}:?\\d{2})"),a=`${a}(${e.join("|")})`,new RegExp(`^${a}$`)}function sC(r,a){return!!((a==="v4"||!a)&&Kw.test(r)||(a==="v6"||!a)&&Qw.test(r))}function aC(r,a){if(!Ww.test(r))return!1;try{const[e]=r.split("."),t=e.replace(/-/g,"+").replace(/_/g,"/").padEnd(e.length+(4-e.length%4)%4,"="),i=JSON.parse(atob(t));return!(typeof i!="object"||i===null||!i.typ||!i.alg||a&&i.alg!==a)}catch{return!1}}function oC(r,a){return!!((a==="v4"||!a)&&Xw.test(r)||(a==="v6"||!a)&&eC.test(r))}class Bi extends Ge{_parse(a){if(this._def.coerce&&(a.data=String(a.data)),this._getType(a)!==H.string){const s=this._getOrReturnCtx(a);return z(s,{code:Z.invalid_type,expected:H.string,received:s.parsedType}),ye}const t=new $t;let i;for(const s of this._def.checks)if(s.kind==="min")a.data.length<s.value&&(i=this._getOrReturnCtx(a,i),z(i,{code:Z.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),t.dirty());else if(s.kind==="max")a.data.length>s.value&&(i=this._getOrReturnCtx(a,i),z(i,{code:Z.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),t.dirty());else if(s.kind==="length"){const l=a.data.length>s.value,o=a.data.length<s.value;(l||o)&&(i=this._getOrReturnCtx(a,i),l?z(i,{code:Z.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):o&&z(i,{code:Z.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),t.dirty())}else if(s.kind==="email")Yw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"email",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="emoji")ou||(ou=new RegExp(Hw,"u")),ou.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"emoji",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="uuid")Jw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"uuid",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="nanoid")Sw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"nanoid",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="cuid")kw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"cuid",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="cuid2")Zw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"cuid2",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="ulid")qw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"ulid",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="url")try{new URL(a.data)}catch{i=this._getOrReturnCtx(a,i),z(i,{validation:"url",code:Z.invalid_string,message:s.message}),t.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"regex",code:Z.invalid_string,message:s.message}),t.dirty())):s.kind==="trim"?a.data=a.data.trim():s.kind==="includes"?a.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(a,i),z(i,{code:Z.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),t.dirty()):s.kind==="toLowerCase"?a.data=a.data.toLowerCase():s.kind==="toUpperCase"?a.data=a.data.toUpperCase():s.kind==="startsWith"?a.data.startsWith(s.value)||(i=this._getOrReturnCtx(a,i),z(i,{code:Z.invalid_string,validation:{startsWith:s.value},message:s.message}),t.dirty()):s.kind==="endsWith"?a.data.endsWith(s.value)||(i=this._getOrReturnCtx(a,i),z(i,{code:Z.invalid_string,validation:{endsWith:s.value},message:s.message}),t.dirty()):s.kind==="datetime"?mI(s).test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{code:Z.invalid_string,validation:"datetime",message:s.message}),t.dirty()):s.kind==="date"?rC.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{code:Z.invalid_string,validation:"date",message:s.message}),t.dirty()):s.kind==="time"?nC(s).test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{code:Z.invalid_string,validation:"time",message:s.message}),t.dirty()):s.kind==="duration"?zw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"duration",code:Z.invalid_string,message:s.message}),t.dirty()):s.kind==="ip"?sC(a.data,s.version)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"ip",code:Z.invalid_string,message:s.message}),t.dirty()):s.kind==="jwt"?aC(a.data,s.alg)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"jwt",code:Z.invalid_string,message:s.message}),t.dirty()):s.kind==="cidr"?oC(a.data,s.version)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"cidr",code:Z.invalid_string,message:s.message}),t.dirty()):s.kind==="base64"?tC.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"base64",code:Z.invalid_string,message:s.message}),t.dirty()):s.kind==="base64url"?iC.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"base64url",code:Z.invalid_string,message:s.message}),t.dirty()):ze.assertNever(s);return{status:t.value,value:a.data}}_regex(a,e,t){return this.refinement(i=>a.test(i),{validation:e,code:Z.invalid_string,...ne.errToObj(t)})}_addCheck(a){return new Bi({...this._def,checks:[...this._def.checks,a]})}email(a){return this._addCheck({kind:"email",...ne.errToObj(a)})}url(a){return this._addCheck({kind:"url",...ne.errToObj(a)})}emoji(a){return this._addCheck({kind:"emoji",...ne.errToObj(a)})}uuid(a){return this._addCheck({kind:"uuid",...ne.errToObj(a)})}nanoid(a){return this._addCheck({kind:"nanoid",...ne.errToObj(a)})}cuid(a){return this._addCheck({kind:"cuid",...ne.errToObj(a)})}cuid2(a){return this._addCheck({kind:"cuid2",...ne.errToObj(a)})}ulid(a){return this._addCheck({kind:"ulid",...ne.errToObj(a)})}base64(a){return this._addCheck({kind:"base64",...ne.errToObj(a)})}base64url(a){return this._addCheck({kind:"base64url",...ne.errToObj(a)})}jwt(a){return this._addCheck({kind:"jwt",...ne.errToObj(a)})}ip(a){return this._addCheck({kind:"ip",...ne.errToObj(a)})}cidr(a){return this._addCheck({kind:"cidr",...ne.errToObj(a)})}datetime(a){var e,t;return typeof a=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:a}):this._addCheck({kind:"datetime",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,offset:(e=a==null?void 0:a.offset)!==null&&e!==void 0?e:!1,local:(t=a==null?void 0:a.local)!==null&&t!==void 0?t:!1,...ne.errToObj(a==null?void 0:a.message)})}date(a){return this._addCheck({kind:"date",message:a})}time(a){return typeof a=="string"?this._addCheck({kind:"time",precision:null,message:a}):this._addCheck({kind:"time",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,...ne.errToObj(a==null?void 0:a.message)})}duration(a){return this._addCheck({kind:"duration",...ne.errToObj(a)})}regex(a,e){return this._addCheck({kind:"regex",regex:a,...ne.errToObj(e)})}includes(a,e){return this._addCheck({kind:"includes",value:a,position:e==null?void 0:e.position,...ne.errToObj(e==null?void 0:e.message)})}startsWith(a,e){return this._addCheck({kind:"startsWith",value:a,...ne.errToObj(e)})}endsWith(a,e){return this._addCheck({kind:"endsWith",value:a,...ne.errToObj(e)})}min(a,e){return this._addCheck({kind:"min",value:a,...ne.errToObj(e)})}max(a,e){return this._addCheck({kind:"max",value:a,...ne.errToObj(e)})}length(a,e){return this._addCheck({kind:"length",value:a,...ne.errToObj(e)})}nonempty(a){return this.min(1,ne.errToObj(a))}trim(){return new Bi({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Bi({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Bi({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(a=>a.kind==="datetime")}get isDate(){return!!this._def.checks.find(a=>a.kind==="date")}get isTime(){return!!this._def.checks.find(a=>a.kind==="time")}get isDuration(){return!!this._def.checks.find(a=>a.kind==="duration")}get isEmail(){return!!this._def.checks.find(a=>a.kind==="email")}get isURL(){return!!this._def.checks.find(a=>a.kind==="url")}get isEmoji(){return!!this._def.checks.find(a=>a.kind==="emoji")}get isUUID(){return!!this._def.checks.find(a=>a.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(a=>a.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(a=>a.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(a=>a.kind==="cuid2")}get isULID(){return!!this._def.checks.find(a=>a.kind==="ulid")}get isIP(){return!!this._def.checks.find(a=>a.kind==="ip")}get isCIDR(){return!!this._def.checks.find(a=>a.kind==="cidr")}get isBase64(){return!!this._def.checks.find(a=>a.kind==="base64")}get isBase64url(){return!!this._def.checks.find(a=>a.kind==="base64url")}get minLength(){let a=null;for(const e of this._def.checks)e.kind==="min"&&(a===null||e.value>a)&&(a=e.value);return a}get maxLength(){let a=null;for(const e of this._def.checks)e.kind==="max"&&(a===null||e.value<a)&&(a=e.value);return a}}Bi.create=r=>{var a;return new Bi({checks:[],typeName:ce.ZodString,coerce:(a=r==null?void 0:r.coerce)!==null&&a!==void 0?a:!1,...Te(r)})};function lC(r,a){const e=(r.toString().split(".")[1]||"").length,t=(a.toString().split(".")[1]||"").length,i=e>t?e:t,s=parseInt(r.toFixed(i).replace(".","")),l=parseInt(a.toFixed(i).replace(".",""));return s%l/Math.pow(10,i)}class wr extends Ge{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(a){if(this._def.coerce&&(a.data=Number(a.data)),this._getType(a)!==H.number){const s=this._getOrReturnCtx(a);return z(s,{code:Z.invalid_type,expected:H.number,received:s.parsedType}),ye}let t;const i=new $t;for(const s of this._def.checks)s.kind==="int"?ze.isInteger(a.data)||(t=this._getOrReturnCtx(a,t),z(t,{code:Z.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?a.data<s.value:a.data<=s.value)&&(t=this._getOrReturnCtx(a,t),z(t,{code:Z.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?a.data>s.value:a.data>=s.value)&&(t=this._getOrReturnCtx(a,t),z(t,{code:Z.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?lC(a.data,s.value)!==0&&(t=this._getOrReturnCtx(a,t),z(t,{code:Z.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(a.data)||(t=this._getOrReturnCtx(a,t),z(t,{code:Z.not_finite,message:s.message}),i.dirty()):ze.assertNever(s);return{status:i.value,value:a.data}}gte(a,e){return this.setLimit("min",a,!0,ne.toString(e))}gt(a,e){return this.setLimit("min",a,!1,ne.toString(e))}lte(a,e){return this.setLimit("max",a,!0,ne.toString(e))}lt(a,e){return this.setLimit("max",a,!1,ne.toString(e))}setLimit(a,e,t,i){return new wr({...this._def,checks:[...this._def.checks,{kind:a,value:e,inclusive:t,message:ne.toString(i)}]})}_addCheck(a){return new wr({...this._def,checks:[...this._def.checks,a]})}int(a){return this._addCheck({kind:"int",message:ne.toString(a)})}positive(a){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ne.toString(a)})}negative(a){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ne.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ne.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ne.toString(a)})}multipleOf(a,e){return this._addCheck({kind:"multipleOf",value:a,message:ne.toString(e)})}finite(a){return this._addCheck({kind:"finite",message:ne.toString(a)})}safe(a){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ne.toString(a)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ne.toString(a)})}get minValue(){let a=null;for(const e of this._def.checks)e.kind==="min"&&(a===null||e.value>a)&&(a=e.value);return a}get maxValue(){let a=null;for(const e of this._def.checks)e.kind==="max"&&(a===null||e.value<a)&&(a=e.value);return a}get isInt(){return!!this._def.checks.find(a=>a.kind==="int"||a.kind==="multipleOf"&&ze.isInteger(a.value))}get isFinite(){let a=null,e=null;for(const t of this._def.checks){if(t.kind==="finite"||t.kind==="int"||t.kind==="multipleOf")return!0;t.kind==="min"?(e===null||t.value>e)&&(e=t.value):t.kind==="max"&&(a===null||t.value<a)&&(a=t.value)}return Number.isFinite(e)&&Number.isFinite(a)}}wr.create=r=>new wr({checks:[],typeName:ce.ZodNumber,coerce:(r==null?void 0:r.coerce)||!1,...Te(r)});class Cr extends Ge{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(a){if(this._def.coerce)try{a.data=BigInt(a.data)}catch{return this._getInvalidInput(a)}if(this._getType(a)!==H.bigint)return this._getInvalidInput(a);let t;const i=new $t;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?a.data<s.value:a.data<=s.value)&&(t=this._getOrReturnCtx(a,t),z(t,{code:Z.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?a.data>s.value:a.data>=s.value)&&(t=this._getOrReturnCtx(a,t),z(t,{code:Z.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?a.data%s.value!==BigInt(0)&&(t=this._getOrReturnCtx(a,t),z(t,{code:Z.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):ze.assertNever(s);return{status:i.value,value:a.data}}_getInvalidInput(a){const e=this._getOrReturnCtx(a);return z(e,{code:Z.invalid_type,expected:H.bigint,received:e.parsedType}),ye}gte(a,e){return this.setLimit("min",a,!0,ne.toString(e))}gt(a,e){return this.setLimit("min",a,!1,ne.toString(e))}lte(a,e){return this.setLimit("max",a,!0,ne.toString(e))}lt(a,e){return this.setLimit("max",a,!1,ne.toString(e))}setLimit(a,e,t,i){return new Cr({...this._def,checks:[...this._def.checks,{kind:a,value:e,inclusive:t,message:ne.toString(i)}]})}_addCheck(a){return new Cr({...this._def,checks:[...this._def.checks,a]})}positive(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ne.toString(a)})}negative(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ne.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ne.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ne.toString(a)})}multipleOf(a,e){return this._addCheck({kind:"multipleOf",value:a,message:ne.toString(e)})}get minValue(){let a=null;for(const e of this._def.checks)e.kind==="min"&&(a===null||e.value>a)&&(a=e.value);return a}get maxValue(){let a=null;for(const e of this._def.checks)e.kind==="max"&&(a===null||e.value<a)&&(a=e.value);return a}}Cr.create=r=>{var a;return new Cr({checks:[],typeName:ce.ZodBigInt,coerce:(a=r==null?void 0:r.coerce)!==null&&a!==void 0?a:!1,...Te(r)})};class xs extends Ge{_parse(a){if(this._def.coerce&&(a.data=!!a.data),this._getType(a)!==H.boolean){const t=this._getOrReturnCtx(a);return z(t,{code:Z.invalid_type,expected:H.boolean,received:t.parsedType}),ye}return zt(a.data)}}xs.create=r=>new xs({typeName:ce.ZodBoolean,coerce:(r==null?void 0:r.coerce)||!1,...Te(r)});class Tn extends Ge{_parse(a){if(this._def.coerce&&(a.data=new Date(a.data)),this._getType(a)!==H.date){const s=this._getOrReturnCtx(a);return z(s,{code:Z.invalid_type,expected:H.date,received:s.parsedType}),ye}if(isNaN(a.data.getTime())){const s=this._getOrReturnCtx(a);return z(s,{code:Z.invalid_date}),ye}const t=new $t;let i;for(const s of this._def.checks)s.kind==="min"?a.data.getTime()<s.value&&(i=this._getOrReturnCtx(a,i),z(i,{code:Z.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),t.dirty()):s.kind==="max"?a.data.getTime()>s.value&&(i=this._getOrReturnCtx(a,i),z(i,{code:Z.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),t.dirty()):ze.assertNever(s);return{status:t.value,value:new Date(a.data.getTime())}}_addCheck(a){return new Tn({...this._def,checks:[...this._def.checks,a]})}min(a,e){return this._addCheck({kind:"min",value:a.getTime(),message:ne.toString(e)})}max(a,e){return this._addCheck({kind:"max",value:a.getTime(),message:ne.toString(e)})}get minDate(){let a=null;for(const e of this._def.checks)e.kind==="min"&&(a===null||e.value>a)&&(a=e.value);return a!=null?new Date(a):null}get maxDate(){let a=null;for(const e of this._def.checks)e.kind==="max"&&(a===null||e.value<a)&&(a=e.value);return a!=null?new Date(a):null}}Tn.create=r=>new Tn({checks:[],coerce:(r==null?void 0:r.coerce)||!1,typeName:ce.ZodDate,...Te(r)});class Ro extends Ge{_parse(a){if(this._getType(a)!==H.symbol){const t=this._getOrReturnCtx(a);return z(t,{code:Z.invalid_type,expected:H.symbol,received:t.parsedType}),ye}return zt(a.data)}}Ro.create=r=>new Ro({typeName:ce.ZodSymbol,...Te(r)});class ks extends Ge{_parse(a){if(this._getType(a)!==H.undefined){const t=this._getOrReturnCtx(a);return z(t,{code:Z.invalid_type,expected:H.undefined,received:t.parsedType}),ye}return zt(a.data)}}ks.create=r=>new ks({typeName:ce.ZodUndefined,...Te(r)});class Zs extends Ge{_parse(a){if(this._getType(a)!==H.null){const t=this._getOrReturnCtx(a);return z(t,{code:Z.invalid_type,expected:H.null,received:t.parsedType}),ye}return zt(a.data)}}Zs.create=r=>new Zs({typeName:ce.ZodNull,...Te(r)});class ts extends Ge{constructor(){super(...arguments),this._any=!0}_parse(a){return zt(a.data)}}ts.create=r=>new ts({typeName:ce.ZodAny,...Te(r)});class En extends Ge{constructor(){super(...arguments),this._unknown=!0}_parse(a){return zt(a.data)}}En.create=r=>new En({typeName:ce.ZodUnknown,...Te(r)});class dr extends Ge{_parse(a){const e=this._getOrReturnCtx(a);return z(e,{code:Z.invalid_type,expected:H.never,received:e.parsedType}),ye}}dr.create=r=>new dr({typeName:ce.ZodNever,...Te(r)});class Do extends Ge{_parse(a){if(this._getType(a)!==H.undefined){const t=this._getOrReturnCtx(a);return z(t,{code:Z.invalid_type,expected:H.void,received:t.parsedType}),ye}return zt(a.data)}}Do.create=r=>new Do({typeName:ce.ZodVoid,...Te(r)});class _i extends Ge{_parse(a){const{ctx:e,status:t}=this._processInputParams(a),i=this._def;if(e.parsedType!==H.array)return z(e,{code:Z.invalid_type,expected:H.array,received:e.parsedType}),ye;if(i.exactLength!==null){const l=e.data.length>i.exactLength.value,o=e.data.length<i.exactLength.value;(l||o)&&(z(e,{code:l?Z.too_big:Z.too_small,minimum:o?i.exactLength.value:void 0,maximum:l?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),t.dirty())}if(i.minLength!==null&&e.data.length<i.minLength.value&&(z(e,{code:Z.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),t.dirty()),i.maxLength!==null&&e.data.length>i.maxLength.value&&(z(e,{code:Z.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),t.dirty()),e.common.async)return Promise.all([...e.data].map((l,o)=>i.type._parseAsync(new Zi(e,l,e.path,o)))).then(l=>$t.mergeArray(t,l));const s=[...e.data].map((l,o)=>i.type._parseSync(new Zi(e,l,e.path,o)));return $t.mergeArray(t,s)}get element(){return this._def.type}min(a,e){return new _i({...this._def,minLength:{value:a,message:ne.toString(e)}})}max(a,e){return new _i({...this._def,maxLength:{value:a,message:ne.toString(e)}})}length(a,e){return new _i({...this._def,exactLength:{value:a,message:ne.toString(e)}})}nonempty(a){return this.min(1,a)}}_i.create=(r,a)=>new _i({type:r,minLength:null,maxLength:null,exactLength:null,typeName:ce.ZodArray,...Te(a)});function is(r){if(r instanceof Et){const a={};for(const e in r.shape){const t=r.shape[e];a[e]=Ji.create(is(t))}return new Et({...r._def,shape:()=>a})}else return r instanceof _i?new _i({...r._def,type:is(r.element)}):r instanceof Ji?Ji.create(is(r.unwrap())):r instanceof Br?Br.create(is(r.unwrap())):r instanceof qi?qi.create(r.items.map(a=>is(a))):r}class Et extends Ge{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const a=this._def.shape(),e=ze.objectKeys(a);return this._cached={shape:a,keys:e}}_parse(a){if(this._getType(a)!==H.object){const u=this._getOrReturnCtx(a);return z(u,{code:Z.invalid_type,expected:H.object,received:u.parsedType}),ye}const{status:t,ctx:i}=this._processInputParams(a),{shape:s,keys:l}=this._getCached(),o=[];if(!(this._def.catchall instanceof dr&&this._def.unknownKeys==="strip"))for(const u in i.data)l.includes(u)||o.push(u);const d=[];for(const u of l){const y=s[u],c=i.data[u];d.push({key:{status:"valid",value:u},value:y._parse(new Zi(i,c,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof dr){const u=this._def.unknownKeys;if(u==="passthrough")for(const y of o)d.push({key:{status:"valid",value:y},value:{status:"valid",value:i.data[y]}});else if(u==="strict")o.length>0&&(z(i,{code:Z.unrecognized_keys,keys:o}),t.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const y of o){const c=i.data[y];d.push({key:{status:"valid",value:y},value:u._parse(new Zi(i,c,i.path,y)),alwaysSet:y in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const u=[];for(const y of d){const c=await y.key,E=await y.value;u.push({key:c,value:E,alwaysSet:y.alwaysSet})}return u}).then(u=>$t.mergeObjectSync(t,u)):$t.mergeObjectSync(t,d)}get shape(){return this._def.shape()}strict(a){return ne.errToObj,new Et({...this._def,unknownKeys:"strict",...a!==void 0?{errorMap:(e,t)=>{var i,s,l,o;const d=(l=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,e,t).message)!==null&&l!==void 0?l:t.defaultError;return e.code==="unrecognized_keys"?{message:(o=ne.errToObj(a).message)!==null&&o!==void 0?o:d}:{message:d}}}:{}})}strip(){return new Et({...this._def,unknownKeys:"strip"})}passthrough(){return new Et({...this._def,unknownKeys:"passthrough"})}extend(a){return new Et({...this._def,shape:()=>({...this._def.shape(),...a})})}merge(a){return new Et({unknownKeys:a._def.unknownKeys,catchall:a._def.catchall,shape:()=>({...this._def.shape(),...a._def.shape()}),typeName:ce.ZodObject})}setKey(a,e){return this.augment({[a]:e})}catchall(a){return new Et({...this._def,catchall:a})}pick(a){const e={};return ze.objectKeys(a).forEach(t=>{a[t]&&this.shape[t]&&(e[t]=this.shape[t])}),new Et({...this._def,shape:()=>e})}omit(a){const e={};return ze.objectKeys(this.shape).forEach(t=>{a[t]||(e[t]=this.shape[t])}),new Et({...this._def,shape:()=>e})}deepPartial(){return is(this)}partial(a){const e={};return ze.objectKeys(this.shape).forEach(t=>{const i=this.shape[t];a&&!a[t]?e[t]=i:e[t]=i.optional()}),new Et({...this._def,shape:()=>e})}required(a){const e={};return ze.objectKeys(this.shape).forEach(t=>{if(a&&!a[t])e[t]=this.shape[t];else{let s=this.shape[t];for(;s instanceof Ji;)s=s._def.innerType;e[t]=s}}),new Et({...this._def,shape:()=>e})}keyof(){return vI(ze.objectKeys(this.shape))}}Et.create=(r,a)=>new Et({shape:()=>r,unknownKeys:"strip",catchall:dr.create(),typeName:ce.ZodObject,...Te(a)}),Et.strictCreate=(r,a)=>new Et({shape:()=>r,unknownKeys:"strict",catchall:dr.create(),typeName:ce.ZodObject,...Te(a)}),Et.lazycreate=(r,a)=>new Et({shape:r,unknownKeys:"strip",catchall:dr.create(),typeName:ce.ZodObject,...Te(a)});class qs extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a),t=this._def.options;function i(s){for(const o of s)if(o.result.status==="valid")return o.result;for(const o of s)if(o.result.status==="dirty")return e.common.issues.push(...o.ctx.common.issues),o.result;const l=s.map(o=>new si(o.ctx.common.issues));return z(e,{code:Z.invalid_union,unionErrors:l}),ye}if(e.common.async)return Promise.all(t.map(async s=>{const l={...e,common:{...e.common,issues:[]},parent:null};return{result:await s._parseAsync({data:e.data,path:e.path,parent:l}),ctx:l}})).then(i);{let s;const l=[];for(const d of t){const u={...e,common:{...e.common,issues:[]},parent:null},y=d._parseSync({data:e.data,path:e.path,parent:u});if(y.status==="valid")return y;y.status==="dirty"&&!s&&(s={result:y,ctx:u}),u.common.issues.length&&l.push(u.common.issues)}if(s)return e.common.issues.push(...s.ctx.common.issues),s.result;const o=l.map(d=>new si(d));return z(e,{code:Z.invalid_union,unionErrors:o}),ye}}get options(){return this._def.options}}qs.create=(r,a)=>new qs({options:r,typeName:ce.ZodUnion,...Te(a)});const ur=r=>r instanceof Ws?ur(r.schema):r instanceof Mi?ur(r.innerType()):r instanceof zs?[r.value]:r instanceof Vr?r.options:r instanceof Ys?ze.objectValues(r.enum):r instanceof Hs?ur(r._def.innerType):r instanceof ks?[void 0]:r instanceof Zs?[null]:r instanceof Ji?[void 0,...ur(r.unwrap())]:r instanceof Br?[null,...ur(r.unwrap())]:r instanceof du||r instanceof Qs?ur(r.unwrap()):r instanceof Ks?ur(r._def.innerType):[];class Oo extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a);if(e.parsedType!==H.object)return z(e,{code:Z.invalid_type,expected:H.object,received:e.parsedType}),ye;const t=this.discriminator,i=e.data[t],s=this.optionsMap.get(i);return s?e.common.async?s._parseAsync({data:e.data,path:e.path,parent:e}):s._parseSync({data:e.data,path:e.path,parent:e}):(z(e,{code:Z.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[t]}),ye)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(a,e,t){const i=new Map;for(const s of e){const l=ur(s.shape[a]);if(!l.length)throw new Error(`A discriminator value for key \`${a}\` could not be extracted from all schema options`);for(const o of l){if(i.has(o))throw new Error(`Discriminator property ${String(a)} has duplicate value ${String(o)}`);i.set(o,s)}}return new Oo({typeName:ce.ZodDiscriminatedUnion,discriminator:a,options:e,optionsMap:i,...Te(t)})}}function lu(r,a){const e=lr(r),t=lr(a);if(r===a)return{valid:!0,data:r};if(e===H.object&&t===H.object){const i=ze.objectKeys(a),s=ze.objectKeys(r).filter(o=>i.indexOf(o)!==-1),l={...r,...a};for(const o of s){const d=lu(r[o],a[o]);if(!d.valid)return{valid:!1};l[o]=d.data}return{valid:!0,data:l}}else if(e===H.array&&t===H.array){if(r.length!==a.length)return{valid:!1};const i=[];for(let s=0;s<r.length;s++){const l=r[s],o=a[s],d=lu(l,o);if(!d.valid)return{valid:!1};i.push(d.data)}return{valid:!0,data:i}}else return e===H.date&&t===H.date&&+r==+a?{valid:!0,data:r}:{valid:!1}}class Js extends Ge{_parse(a){const{status:e,ctx:t}=this._processInputParams(a),i=(s,l)=>{if(su(s)||su(l))return ye;const o=lu(s.value,l.value);return o.valid?((au(s)||au(l))&&e.dirty(),{status:e.value,value:o.data}):(z(t,{code:Z.invalid_intersection_types}),ye)};return t.common.async?Promise.all([this._def.left._parseAsync({data:t.data,path:t.path,parent:t}),this._def.right._parseAsync({data:t.data,path:t.path,parent:t})]).then(([s,l])=>i(s,l)):i(this._def.left._parseSync({data:t.data,path:t.path,parent:t}),this._def.right._parseSync({data:t.data,path:t.path,parent:t}))}}Js.create=(r,a,e)=>new Js({left:r,right:a,typeName:ce.ZodIntersection,...Te(e)});class qi extends Ge{_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.parsedType!==H.array)return z(t,{code:Z.invalid_type,expected:H.array,received:t.parsedType}),ye;if(t.data.length<this._def.items.length)return z(t,{code:Z.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ye;!this._def.rest&&t.data.length>this._def.items.length&&(z(t,{code:Z.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),e.dirty());const s=[...t.data].map((l,o)=>{const d=this._def.items[o]||this._def.rest;return d?d._parse(new Zi(t,l,t.path,o)):null}).filter(l=>!!l);return t.common.async?Promise.all(s).then(l=>$t.mergeArray(e,l)):$t.mergeArray(e,s)}get items(){return this._def.items}rest(a){return new qi({...this._def,rest:a})}}qi.create=(r,a)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new qi({items:r,typeName:ce.ZodTuple,rest:null,...Te(a)})};class Ss extends Ge{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.parsedType!==H.object)return z(t,{code:Z.invalid_type,expected:H.object,received:t.parsedType}),ye;const i=[],s=this._def.keyType,l=this._def.valueType;for(const o in t.data)i.push({key:s._parse(new Zi(t,o,t.path,o)),value:l._parse(new Zi(t,t.data[o],t.path,o)),alwaysSet:o in t.data});return t.common.async?$t.mergeObjectAsync(e,i):$t.mergeObjectSync(e,i)}get element(){return this._def.valueType}static create(a,e,t){return e instanceof Ge?new Ss({keyType:a,valueType:e,typeName:ce.ZodRecord,...Te(t)}):new Ss({keyType:Bi.create(),valueType:a,typeName:ce.ZodRecord,...Te(e)})}}class Po extends Ge{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.parsedType!==H.map)return z(t,{code:Z.invalid_type,expected:H.map,received:t.parsedType}),ye;const i=this._def.keyType,s=this._def.valueType,l=[...t.data.entries()].map(([o,d],u)=>({key:i._parse(new Zi(t,o,t.path,[u,"key"])),value:s._parse(new Zi(t,d,t.path,[u,"value"]))}));if(t.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const d of l){const u=await d.key,y=await d.value;if(u.status==="aborted"||y.status==="aborted")return ye;(u.status==="dirty"||y.status==="dirty")&&e.dirty(),o.set(u.value,y.value)}return{status:e.value,value:o}})}else{const o=new Map;for(const d of l){const u=d.key,y=d.value;if(u.status==="aborted"||y.status==="aborted")return ye;(u.status==="dirty"||y.status==="dirty")&&e.dirty(),o.set(u.value,y.value)}return{status:e.value,value:o}}}}Po.create=(r,a,e)=>new Po({valueType:a,keyType:r,typeName:ce.ZodMap,...Te(e)});class In extends Ge{_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.parsedType!==H.set)return z(t,{code:Z.invalid_type,expected:H.set,received:t.parsedType}),ye;const i=this._def;i.minSize!==null&&t.data.size<i.minSize.value&&(z(t,{code:Z.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),e.dirty()),i.maxSize!==null&&t.data.size>i.maxSize.value&&(z(t,{code:Z.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),e.dirty());const s=this._def.valueType;function l(d){const u=new Set;for(const y of d){if(y.status==="aborted")return ye;y.status==="dirty"&&e.dirty(),u.add(y.value)}return{status:e.value,value:u}}const o=[...t.data.values()].map((d,u)=>s._parse(new Zi(t,d,t.path,u)));return t.common.async?Promise.all(o).then(d=>l(d)):l(o)}min(a,e){return new In({...this._def,minSize:{value:a,message:ne.toString(e)}})}max(a,e){return new In({...this._def,maxSize:{value:a,message:ne.toString(e)}})}size(a,e){return this.min(a,e).max(a,e)}nonempty(a){return this.min(1,a)}}In.create=(r,a)=>new In({valueType:r,minSize:null,maxSize:null,typeName:ce.ZodSet,...Te(a)});class rs extends Ge{constructor(){super(...arguments),this.validate=this.implement}_parse(a){const{ctx:e}=this._processInputParams(a);if(e.parsedType!==H.function)return z(e,{code:Z.invalid_type,expected:H.function,received:e.parsedType}),ye;function t(o,d){return Ao({data:o,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,Io(),Qn].filter(u=>!!u),issueData:{code:Z.invalid_arguments,argumentsError:d}})}function i(o,d){return Ao({data:o,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,Io(),Qn].filter(u=>!!u),issueData:{code:Z.invalid_return_type,returnTypeError:d}})}const s={errorMap:e.common.contextualErrorMap},l=e.data;if(this._def.returns instanceof ns){const o=this;return zt(async function(...d){const u=new si([]),y=await o._def.args.parseAsync(d,s).catch(I=>{throw u.addIssue(t(d,I)),u}),c=await Reflect.apply(l,this,y);return await o._def.returns._def.type.parseAsync(c,s).catch(I=>{throw u.addIssue(i(c,I)),u})})}else{const o=this;return zt(function(...d){const u=o._def.args.safeParse(d,s);if(!u.success)throw new si([t(d,u.error)]);const y=Reflect.apply(l,this,u.data),c=o._def.returns.safeParse(y,s);if(!c.success)throw new si([i(y,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...a){return new rs({...this._def,args:qi.create(a).rest(En.create())})}returns(a){return new rs({...this._def,returns:a})}implement(a){return this.parse(a)}strictImplement(a){return this.parse(a)}static create(a,e,t){return new rs({args:a||qi.create([]).rest(En.create()),returns:e||En.create(),typeName:ce.ZodFunction,...Te(t)})}}class Ws extends Ge{get schema(){return this._def.getter()}_parse(a){const{ctx:e}=this._processInputParams(a);return this._def.getter()._parse({data:e.data,path:e.path,parent:e})}}Ws.create=(r,a)=>new Ws({getter:r,typeName:ce.ZodLazy,...Te(a)});class zs extends Ge{_parse(a){if(a.data!==this._def.value){const e=this._getOrReturnCtx(a);return z(e,{received:e.data,code:Z.invalid_literal,expected:this._def.value}),ye}return{status:"valid",value:a.data}}get value(){return this._def.value}}zs.create=(r,a)=>new zs({value:r,typeName:ce.ZodLiteral,...Te(a)});function vI(r,a){return new Vr({values:r,typeName:ce.ZodEnum,...Te(a)})}class Vr extends Ge{constructor(){super(...arguments),Gs.set(this,void 0)}_parse(a){if(typeof a.data!="string"){const e=this._getOrReturnCtx(a),t=this._def.values;return z(e,{expected:ze.joinValues(t),received:e.parsedType,code:Z.invalid_type}),ye}if(bo(this,Gs,"f")||cI(this,Gs,new Set(this._def.values),"f"),!bo(this,Gs,"f").has(a.data)){const e=this._getOrReturnCtx(a),t=this._def.values;return z(e,{received:e.data,code:Z.invalid_enum_value,options:t}),ye}return zt(a.data)}get options(){return this._def.values}get enum(){const a={};for(const e of this._def.values)a[e]=e;return a}get Values(){const a={};for(const e of this._def.values)a[e]=e;return a}get Enum(){const a={};for(const e of this._def.values)a[e]=e;return a}extract(a,e=this._def){return Vr.create(a,{...this._def,...e})}exclude(a,e=this._def){return Vr.create(this.options.filter(t=>!a.includes(t)),{...this._def,...e})}}Gs=new WeakMap,Vr.create=vI;class Ys extends Ge{constructor(){super(...arguments),Fs.set(this,void 0)}_parse(a){const e=ze.getValidEnumValues(this._def.values),t=this._getOrReturnCtx(a);if(t.parsedType!==H.string&&t.parsedType!==H.number){const i=ze.objectValues(e);return z(t,{expected:ze.joinValues(i),received:t.parsedType,code:Z.invalid_type}),ye}if(bo(this,Fs,"f")||cI(this,Fs,new Set(ze.getValidEnumValues(this._def.values)),"f"),!bo(this,Fs,"f").has(a.data)){const i=ze.objectValues(e);return z(t,{received:t.data,code:Z.invalid_enum_value,options:i}),ye}return zt(a.data)}get enum(){return this._def.values}}Fs=new WeakMap,Ys.create=(r,a)=>new Ys({values:r,typeName:ce.ZodNativeEnum,...Te(a)});class ns extends Ge{unwrap(){return this._def.type}_parse(a){const{ctx:e}=this._processInputParams(a);if(e.parsedType!==H.promise&&e.common.async===!1)return z(e,{code:Z.invalid_type,expected:H.promise,received:e.parsedType}),ye;const t=e.parsedType===H.promise?e.data:Promise.resolve(e.data);return zt(t.then(i=>this._def.type.parseAsync(i,{path:e.path,errorMap:e.common.contextualErrorMap})))}}ns.create=(r,a)=>new ns({type:r,typeName:ce.ZodPromise,...Te(a)});class Mi extends Ge{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ce.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(a){const{status:e,ctx:t}=this._processInputParams(a),i=this._def.effect||null,s={addIssue:l=>{z(t,l),l.fatal?e.abort():e.dirty()},get path(){return t.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){const l=i.transform(t.data,s);if(t.common.async)return Promise.resolve(l).then(async o=>{if(e.value==="aborted")return ye;const d=await this._def.schema._parseAsync({data:o,path:t.path,parent:t});return d.status==="aborted"?ye:d.status==="dirty"||e.value==="dirty"?es(d.value):d});{if(e.value==="aborted")return ye;const o=this._def.schema._parseSync({data:l,path:t.path,parent:t});return o.status==="aborted"?ye:o.status==="dirty"||e.value==="dirty"?es(o.value):o}}if(i.type==="refinement"){const l=o=>{const d=i.refinement(o,s);if(t.common.async)return Promise.resolve(d);if(d instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(t.common.async===!1){const o=this._def.schema._parseSync({data:t.data,path:t.path,parent:t});return o.status==="aborted"?ye:(o.status==="dirty"&&e.dirty(),l(o.value),{status:e.value,value:o.value})}else return this._def.schema._parseAsync({data:t.data,path:t.path,parent:t}).then(o=>o.status==="aborted"?ye:(o.status==="dirty"&&e.dirty(),l(o.value).then(()=>({status:e.value,value:o.value}))))}if(i.type==="transform")if(t.common.async===!1){const l=this._def.schema._parseSync({data:t.data,path:t.path,parent:t});if(!vn(l))return l;const o=i.transform(l.value,s);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:e.value,value:o}}else return this._def.schema._parseAsync({data:t.data,path:t.path,parent:t}).then(l=>vn(l)?Promise.resolve(i.transform(l.value,s)).then(o=>({status:e.value,value:o})):l);ze.assertNever(i)}}Mi.create=(r,a,e)=>new Mi({schema:r,typeName:ce.ZodEffects,effect:a,...Te(e)}),Mi.createWithPreprocess=(r,a,e)=>new Mi({schema:a,effect:{type:"preprocess",transform:r},typeName:ce.ZodEffects,...Te(e)});class Ji extends Ge{_parse(a){return this._getType(a)===H.undefined?zt(void 0):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}Ji.create=(r,a)=>new Ji({innerType:r,typeName:ce.ZodOptional,...Te(a)});class Br extends Ge{_parse(a){return this._getType(a)===H.null?zt(null):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}Br.create=(r,a)=>new Br({innerType:r,typeName:ce.ZodNullable,...Te(a)});class Hs extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a);let t=e.data;return e.parsedType===H.undefined&&(t=this._def.defaultValue()),this._def.innerType._parse({data:t,path:e.path,parent:e})}removeDefault(){return this._def.innerType}}Hs.create=(r,a)=>new Hs({innerType:r,typeName:ce.ZodDefault,defaultValue:typeof a.default=="function"?a.default:()=>a.default,...Te(a)});class Ks extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a),t={...e,common:{...e.common,issues:[]}},i=this._def.innerType._parse({data:t.data,path:t.path,parent:{...t}});return gs(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new si(t.common.issues)},input:t.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new si(t.common.issues)},input:t.data})}}removeCatch(){return this._def.innerType}}Ks.create=(r,a)=>new Ks({innerType:r,typeName:ce.ZodCatch,catchValue:typeof a.catch=="function"?a.catch:()=>a.catch,...Te(a)});class wo extends Ge{_parse(a){if(this._getType(a)!==H.nan){const t=this._getOrReturnCtx(a);return z(t,{code:Z.invalid_type,expected:H.nan,received:t.parsedType}),ye}return{status:"valid",value:a.data}}}wo.create=r=>new wo({typeName:ce.ZodNaN,...Te(r)});const dC=Symbol("zod_brand");class du extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a),t=e.data;return this._def.type._parse({data:t,path:e.path,parent:e})}unwrap(){return this._def.type}}class Xs extends Ge{_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:t.data,path:t.path,parent:t});return s.status==="aborted"?ye:s.status==="dirty"?(e.dirty(),es(s.value)):this._def.out._parseAsync({data:s.value,path:t.path,parent:t})})();{const i=this._def.in._parseSync({data:t.data,path:t.path,parent:t});return i.status==="aborted"?ye:i.status==="dirty"?(e.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:t.path,parent:t})}}static create(a,e){return new Xs({in:a,out:e,typeName:ce.ZodPipeline})}}class Qs extends Ge{_parse(a){const e=this._def.innerType._parse(a),t=i=>(vn(i)&&(i.value=Object.freeze(i.value)),i);return gs(e)?e.then(i=>t(i)):t(e)}unwrap(){return this._def.innerType}}Qs.create=(r,a)=>new Qs({innerType:r,typeName:ce.ZodReadonly,...Te(a)});function TI(r,a={},e){return r?ts.create().superRefine((t,i)=>{var s,l;if(!r(t)){const o=typeof a=="function"?a(t):typeof a=="string"?{message:a}:a,d=(l=(s=o.fatal)!==null&&s!==void 0?s:e)!==null&&l!==void 0?l:!0,u=typeof o=="string"?{message:o}:o;i.addIssue({code:"custom",...u,fatal:d})}}):ts.create()}const uC={object:Et.lazycreate};var ce;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline",r.ZodReadonly="ZodReadonly"})(ce||(ce={}));const pC=(r,a={message:`Input not instance of ${r.name}`})=>TI(e=>e instanceof r,a),Co=Bi.create,uu=wr.create,cC=wo.create,fC=Cr.create,pu=xs.create,EI=Tn.create,yC=Ro.create,hC=ks.create,II=Zs.create,mC=ts.create,Vo=En.create,vC=dr.create,TC=Do.create,EC=_i.create,AI=Et.create,IC=Et.strictCreate,AC=qs.create,bC=Oo.create,RC=Js.create,DC=qi.create,bI=Ss.create,OC=Po.create,PC=In.create,wC=rs.create,CC=Ws.create,VC=zs.create,RI=Vr.create,BC=Ys.create,_C=ns.create,DI=Mi.create,MC=Ji.create,NC=Br.create,LC=Mi.createWithPreprocess,jC=Xs.create;var v=Object.freeze({__proto__:null,defaultErrorMap:Qn,setErrorMap:Fw,getErrorMap:Io,makeIssue:Ao,EMPTY_PATH:xw,addIssueToContext:z,ParseStatus:$t,INVALID:ye,DIRTY:es,OK:zt,isAborted:su,isDirty:au,isValid:vn,isAsync:gs,get util(){return ze},get objectUtil(){return nu},ZodParsedType:H,getParsedType:lr,ZodType:Ge,datetimeRegex:mI,ZodString:Bi,ZodNumber:wr,ZodBigInt:Cr,ZodBoolean:xs,ZodDate:Tn,ZodSymbol:Ro,ZodUndefined:ks,ZodNull:Zs,ZodAny:ts,ZodUnknown:En,ZodNever:dr,ZodVoid:Do,ZodArray:_i,ZodObject:Et,ZodUnion:qs,ZodDiscriminatedUnion:Oo,ZodIntersection:Js,ZodTuple:qi,ZodRecord:Ss,ZodMap:Po,ZodSet:In,ZodFunction:rs,ZodLazy:Ws,ZodLiteral:zs,ZodEnum:Vr,ZodNativeEnum:Ys,ZodPromise:ns,ZodEffects:Mi,ZodTransformer:Mi,ZodOptional:Ji,ZodNullable:Br,ZodDefault:Hs,ZodCatch:Ks,ZodNaN:wo,BRAND:dC,ZodBranded:du,ZodPipeline:Xs,ZodReadonly:Qs,custom:TI,Schema:Ge,ZodSchema:Ge,late:uC,get ZodFirstPartyTypeKind(){return ce},coerce:{string:r=>Bi.create({...r,coerce:!0}),number:r=>wr.create({...r,coerce:!0}),boolean:r=>xs.create({...r,coerce:!0}),bigint:r=>Cr.create({...r,coerce:!0}),date:r=>Tn.create({...r,coerce:!0})},any:mC,array:EC,bigint:fC,boolean:pu,date:EI,discriminatedUnion:bC,effect:DI,enum:RI,function:wC,instanceof:pC,intersection:RC,lazy:CC,literal:VC,map:OC,nan:cC,nativeEnum:BC,never:vC,null:II,nullable:NC,number:uu,object:AI,oboolean:()=>pu().optional(),onumber:()=>uu().optional(),optional:MC,ostring:()=>Co().optional(),pipeline:jC,preprocess:LC,promise:_C,record:bI,set:PC,strictObject:IC,string:Co,symbol:yC,transformer:DI,tuple:DC,undefined:hC,union:AC,unknown:Vo,void:TC,NEVER:ye,ZodIssueCode:Z,quotelessJson:Gw,ZodError:si});function OI(r){var i,s,l;if(!(r!=null&&r.dataType))return Vo();const a=!r.required,e=r.dataType.isList||!1;let t=Vo();if(((i=r.dataType.entity)==null?void 0:i.type)===n.PrimitiveEntity)switch(r.dataType.entity.name){case L.String:t=Co();break;case L.KeyValue:t=bI(Vo());break;case L.Number:t=uu();break;case L.Boolean:t=pu();break;case L.Date:t=EI();break;case L.Enum:{const o=r.dataType.options||[];if(o.length===0)throw new Error(`Enum property ${r.name} has no options`);t=RI(o);break}case L.Null:t=II();break;case L.UUID:t=Co().uuid();break}else if(((s=r.dataType.entity)==null?void 0:s.type)===n.DefinitionEntity)t=PI(r.dataType.entity);else throw new Error(`Unsupported data type validation: ${(l=r.dataType.entity)==null?void 0:l.type}`);return a&&(t=t.nullable()),e&&(t=t.array()),t}function PI(r){const a=AI({});for(const e of r.properties){const t=OI(e);a.shape[e.name]=t}return a}function wI(r){const a=r.rangeStart;return new Date(a.getTime()+Math.random()*(Date.now()-a.getTime()))}function CI(r){const a=r.rangeEnd;return new Date(Math.random()*a.getTime())}function VI(r){const a=r.rangeStart,e=r.rangeEnd;return new Date(a.getTime()+Math.random()*(e.getTime()-a.getTime()))}function BI(r){return r.rangeStart&&r.rangeEnd?VI(r):r.rangeStart?wI(r):r.rangeEnd?CI(r):new Date}var UC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _I(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var MI={},Bo={},_o={};Object.defineProperty(_o,"__esModule",{value:!0}),_o.default=gC;let Mo;const $C=new Uint8Array(16);function gC(){if(!Mo&&(Mo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Mo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Mo($C)}var _r={},An={},No={};Object.defineProperty(No,"__esModule",{value:!0}),No.default=void 0;var GC=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;No.default=GC,Object.defineProperty(An,"__esModule",{value:!0}),An.default=void 0;var FC=xC(No);function xC(r){return r&&r.__esModule?r:{default:r}}function kC(r){return typeof r=="string"&&FC.default.test(r)}var ZC=kC;An.default=ZC,Object.defineProperty(_r,"__esModule",{value:!0}),_r.default=void 0,_r.unsafeStringify=NI;var qC=JC(An);function JC(r){return r&&r.__esModule?r:{default:r}}const jt=[];for(let r=0;r<256;++r)jt.push((r+256).toString(16).slice(1));function NI(r,a=0){return jt[r[a+0]]+jt[r[a+1]]+jt[r[a+2]]+jt[r[a+3]]+"-"+jt[r[a+4]]+jt[r[a+5]]+"-"+jt[r[a+6]]+jt[r[a+7]]+"-"+jt[r[a+8]]+jt[r[a+9]]+"-"+jt[r[a+10]]+jt[r[a+11]]+jt[r[a+12]]+jt[r[a+13]]+jt[r[a+14]]+jt[r[a+15]]}function SC(r,a=0){const e=NI(r,a);if(!(0,qC.default)(e))throw TypeError("Stringified UUID is invalid");return e}var WC=SC;_r.default=WC,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.default=void 0;var zC=HC(_o),YC=_r;function HC(r){return r&&r.__esModule?r:{default:r}}let LI,cu,fu=0,yu=0;function KC(r,a,e){let t=a&&e||0;const i=a||new Array(16);r=r||{};let s=r.node||LI,l=r.clockseq!==void 0?r.clockseq:cu;if(s==null||l==null){const E=r.random||(r.rng||zC.default)();s==null&&(s=LI=[E[0]|1,E[1],E[2],E[3],E[4],E[5]]),l==null&&(l=cu=(E[6]<<8|E[7])&16383)}let o=r.msecs!==void 0?r.msecs:Date.now(),d=r.nsecs!==void 0?r.nsecs:yu+1;const u=o-fu+(d-yu)/1e4;if(u<0&&r.clockseq===void 0&&(l=l+1&16383),(u<0||o>fu)&&r.nsecs===void 0&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");fu=o,yu=d,cu=l,o+=122192928e5;const y=((o&268435455)*1e4+d)%4294967296;i[t++]=y>>>24&255,i[t++]=y>>>16&255,i[t++]=y>>>8&255,i[t++]=y&255;const c=o/4294967296*1e4&268435455;i[t++]=c>>>8&255,i[t++]=c&255,i[t++]=c>>>24&15|16,i[t++]=c>>>16&255,i[t++]=l>>>8|128,i[t++]=l&255;for(let E=0;E<6;++E)i[t+E]=s[E];return a||(0,YC.unsafeStringify)(i)}var XC=KC;Bo.default=XC;var Lo={},Mr={},ea={};Object.defineProperty(ea,"__esModule",{value:!0}),ea.default=void 0;var QC=eV(An);function eV(r){return r&&r.__esModule?r:{default:r}}function tV(r){if(!(0,QC.default)(r))throw TypeError("Invalid UUID");let a;const e=new Uint8Array(16);return e[0]=(a=parseInt(r.slice(0,8),16))>>>24,e[1]=a>>>16&255,e[2]=a>>>8&255,e[3]=a&255,e[4]=(a=parseInt(r.slice(9,13),16))>>>8,e[5]=a&255,e[6]=(a=parseInt(r.slice(14,18),16))>>>8,e[7]=a&255,e[8]=(a=parseInt(r.slice(19,23),16))>>>8,e[9]=a&255,e[10]=(a=parseInt(r.slice(24,36),16))/1099511627776&255,e[11]=a/4294967296&255,e[12]=a>>>24&255,e[13]=a>>>16&255,e[14]=a>>>8&255,e[15]=a&255,e}var iV=tV;ea.default=iV,Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.URL=Mr.DNS=void 0,Mr.default=oV;var rV=_r,nV=sV(ea);function sV(r){return r&&r.__esModule?r:{default:r}}function aV(r){r=unescape(encodeURIComponent(r));const a=[];for(let e=0;e<r.length;++e)a.push(r.charCodeAt(e));return a}const jI="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Mr.DNS=jI;const UI="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Mr.URL=UI;function oV(r,a,e){function t(i,s,l,o){var d;if(typeof i=="string"&&(i=aV(i)),typeof s=="string"&&(s=(0,nV.default)(s)),((d=s)===null||d===void 0?void 0:d.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let u=new Uint8Array(16+i.length);if(u.set(s),u.set(i,s.length),u=e(u),u[6]=u[6]&15|a,u[8]=u[8]&63|128,l){o=o||0;for(let y=0;y<16;++y)l[o+y]=u[y];return l}return(0,rV.unsafeStringify)(u)}try{t.name=r}catch{}return t.DNS=jI,t.URL=UI,t}var jo={};Object.defineProperty(jo,"__esModule",{value:!0}),jo.default=void 0;function lV(r){if(typeof r=="string"){const a=unescape(encodeURIComponent(r));r=new Uint8Array(a.length);for(let e=0;e<a.length;++e)r[e]=a.charCodeAt(e)}return dV(uV(pV(r),r.length*8))}function dV(r){const a=[],e=r.length*32,t="0123456789abcdef";for(let i=0;i<e;i+=8){const s=r[i>>5]>>>i%32&255,l=parseInt(t.charAt(s>>>4&15)+t.charAt(s&15),16);a.push(l)}return a}function $I(r){return(r+64>>>9<<4)+14+1}function uV(r,a){r[a>>5]|=128<<a%32,r[$I(a)-1]=a;let e=1732584193,t=-271733879,i=-1732584194,s=271733878;for(let l=0;l<r.length;l+=16){const o=e,d=t,u=i,y=s;e=gt(e,t,i,s,r[l],7,-680876936),s=gt(s,e,t,i,r[l+1],12,-389564586),i=gt(i,s,e,t,r[l+2],17,606105819),t=gt(t,i,s,e,r[l+3],22,-1044525330),e=gt(e,t,i,s,r[l+4],7,-176418897),s=gt(s,e,t,i,r[l+5],12,1200080426),i=gt(i,s,e,t,r[l+6],17,-1473231341),t=gt(t,i,s,e,r[l+7],22,-45705983),e=gt(e,t,i,s,r[l+8],7,1770035416),s=gt(s,e,t,i,r[l+9],12,-1958414417),i=gt(i,s,e,t,r[l+10],17,-42063),t=gt(t,i,s,e,r[l+11],22,-1990404162),e=gt(e,t,i,s,r[l+12],7,1804603682),s=gt(s,e,t,i,r[l+13],12,-40341101),i=gt(i,s,e,t,r[l+14],17,-1502002290),t=gt(t,i,s,e,r[l+15],22,1236535329),e=Gt(e,t,i,s,r[l+1],5,-165796510),s=Gt(s,e,t,i,r[l+6],9,-1069501632),i=Gt(i,s,e,t,r[l+11],14,643717713),t=Gt(t,i,s,e,r[l],20,-373897302),e=Gt(e,t,i,s,r[l+5],5,-701558691),s=Gt(s,e,t,i,r[l+10],9,38016083),i=Gt(i,s,e,t,r[l+15],14,-660478335),t=Gt(t,i,s,e,r[l+4],20,-405537848),e=Gt(e,t,i,s,r[l+9],5,568446438),s=Gt(s,e,t,i,r[l+14],9,-1019803690),i=Gt(i,s,e,t,r[l+3],14,-187363961),t=Gt(t,i,s,e,r[l+8],20,1163531501),e=Gt(e,t,i,s,r[l+13],5,-1444681467),s=Gt(s,e,t,i,r[l+2],9,-51403784),i=Gt(i,s,e,t,r[l+7],14,1735328473),t=Gt(t,i,s,e,r[l+12],20,-1926607734),e=Ft(e,t,i,s,r[l+5],4,-378558),s=Ft(s,e,t,i,r[l+8],11,-2022574463),i=Ft(i,s,e,t,r[l+11],16,1839030562),t=Ft(t,i,s,e,r[l+14],23,-35309556),e=Ft(e,t,i,s,r[l+1],4,-1530992060),s=Ft(s,e,t,i,r[l+4],11,1272893353),i=Ft(i,s,e,t,r[l+7],16,-155497632),t=Ft(t,i,s,e,r[l+10],23,-1094730640),e=Ft(e,t,i,s,r[l+13],4,681279174),s=Ft(s,e,t,i,r[l],11,-358537222),i=Ft(i,s,e,t,r[l+3],16,-722521979),t=Ft(t,i,s,e,r[l+6],23,76029189),e=Ft(e,t,i,s,r[l+9],4,-640364487),s=Ft(s,e,t,i,r[l+12],11,-421815835),i=Ft(i,s,e,t,r[l+15],16,530742520),t=Ft(t,i,s,e,r[l+2],23,-995338651),e=xt(e,t,i,s,r[l],6,-198630844),s=xt(s,e,t,i,r[l+7],10,1126891415),i=xt(i,s,e,t,r[l+14],15,-1416354905),t=xt(t,i,s,e,r[l+5],21,-57434055),e=xt(e,t,i,s,r[l+12],6,1700485571),s=xt(s,e,t,i,r[l+3],10,-1894986606),i=xt(i,s,e,t,r[l+10],15,-1051523),t=xt(t,i,s,e,r[l+1],21,-2054922799),e=xt(e,t,i,s,r[l+8],6,1873313359),s=xt(s,e,t,i,r[l+15],10,-30611744),i=xt(i,s,e,t,r[l+6],15,-1560198380),t=xt(t,i,s,e,r[l+13],21,1309151649),e=xt(e,t,i,s,r[l+4],6,-145523070),s=xt(s,e,t,i,r[l+11],10,-1120210379),i=xt(i,s,e,t,r[l+2],15,718787259),t=xt(t,i,s,e,r[l+9],21,-343485551),e=Nr(e,o),t=Nr(t,d),i=Nr(i,u),s=Nr(s,y)}return[e,t,i,s]}function pV(r){if(r.length===0)return[];const a=r.length*8,e=new Uint32Array($I(a));for(let t=0;t<a;t+=8)e[t>>5]|=(r[t/8]&255)<<t%32;return e}function Nr(r,a){const e=(r&65535)+(a&65535);return(r>>16)+(a>>16)+(e>>16)<<16|e&65535}function cV(r,a){return r<<a|r>>>32-a}function Uo(r,a,e,t,i,s){return Nr(cV(Nr(Nr(a,r),Nr(t,s)),i),e)}function gt(r,a,e,t,i,s,l){return Uo(a&e|~a&t,r,a,i,s,l)}function Gt(r,a,e,t,i,s,l){return Uo(a&t|e&~t,r,a,i,s,l)}function Ft(r,a,e,t,i,s,l){return Uo(a^e^t,r,a,i,s,l)}function xt(r,a,e,t,i,s,l){return Uo(e^(a|~t),r,a,i,s,l)}var fV=lV;jo.default=fV,Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.default=void 0;var yV=gI(Mr),hV=gI(jo);function gI(r){return r&&r.__esModule?r:{default:r}}var mV=(0,yV.default)("v3",48,hV.default);Lo.default=mV;var $o={},go={};Object.defineProperty(go,"__esModule",{value:!0}),go.default=void 0;var vV={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};go.default=vV,Object.defineProperty($o,"__esModule",{value:!0}),$o.default=void 0;var GI=FI(go),TV=FI(_o),EV=_r;function FI(r){return r&&r.__esModule?r:{default:r}}function IV(r,a,e){if(GI.default.randomUUID&&!a&&!r)return GI.default.randomUUID();r=r||{};const t=r.random||(r.rng||TV.default)();if(t[6]=t[6]&15|64,t[8]=t[8]&63|128,a){e=e||0;for(let i=0;i<16;++i)a[e+i]=t[i];return a}return(0,EV.unsafeStringify)(t)}var AV=IV;$o.default=AV;var Go={},Fo={};Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.default=void 0;function bV(r,a,e,t){switch(r){case 0:return a&e^~a&t;case 1:return a^e^t;case 2:return a&e^a&t^e&t;case 3:return a^e^t}}function hu(r,a){return r<<a|r>>>32-a}function RV(r){const a=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){const l=unescape(encodeURIComponent(r));r=[];for(let o=0;o<l.length;++o)r.push(l.charCodeAt(o))}else Array.isArray(r)||(r=Array.prototype.slice.call(r));r.push(128);const t=r.length/4+2,i=Math.ceil(t/16),s=new Array(i);for(let l=0;l<i;++l){const o=new Uint32Array(16);for(let d=0;d<16;++d)o[d]=r[l*64+d*4]<<24|r[l*64+d*4+1]<<16|r[l*64+d*4+2]<<8|r[l*64+d*4+3];s[l]=o}s[i-1][14]=(r.length-1)*8/Math.pow(2,32),s[i-1][14]=Math.floor(s[i-1][14]),s[i-1][15]=(r.length-1)*8&4294967295;for(let l=0;l<i;++l){const o=new Uint32Array(80);for(let I=0;I<16;++I)o[I]=s[l][I];for(let I=16;I<80;++I)o[I]=hu(o[I-3]^o[I-8]^o[I-14]^o[I-16],1);let d=e[0],u=e[1],y=e[2],c=e[3],E=e[4];for(let I=0;I<80;++I){const O=Math.floor(I/20),P=hu(d,5)+bV(O,u,y,c)+E+a[O]+o[I]>>>0;E=c,c=y,y=hu(u,30)>>>0,u=d,d=P}e[0]=e[0]+d>>>0,e[1]=e[1]+u>>>0,e[2]=e[2]+y>>>0,e[3]=e[3]+c>>>0,e[4]=e[4]+E>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}var DV=RV;Fo.default=DV,Object.defineProperty(Go,"__esModule",{value:!0}),Go.default=void 0;var OV=xI(Mr),PV=xI(Fo);function xI(r){return r&&r.__esModule?r:{default:r}}var wV=(0,OV.default)("v5",80,PV.default);Go.default=wV;var xo={};Object.defineProperty(xo,"__esModule",{value:!0}),xo.default=void 0;var CV="00000000-0000-0000-0000-000000000000";xo.default=CV;var ko={};Object.defineProperty(ko,"__esModule",{value:!0}),ko.default=void 0;var VV=BV(An);function BV(r){return r&&r.__esModule?r:{default:r}}function _V(r){if(!(0,VV.default)(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}var MV=_V;ko.default=MV,function(r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(r,"v1",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(r,"v3",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(r,"v4",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(r,"v5",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(r,"validate",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(r,"version",{enumerable:!0,get:function(){return l.default}});var a=y(Bo),e=y(Lo),t=y($o),i=y(Go),s=y(xo),l=y(ko),o=y(An),d=y(_r),u=y(ea);function y(c){return c&&c.__esModule?c:{default:c}}}(MI);function mu(r,a){if(!r||!a||!r.length||!a.length)throw new Error("Bad alphabet");this.srcAlphabet=r,this.dstAlphabet=a}mu.prototype.convert=function(r){var a,e,t,i={},s=this.srcAlphabet.length,l=this.dstAlphabet.length,o=r.length,d=typeof r=="string"?"":[];if(!this.isValid(r))throw new Error('Number "'+r+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return r;for(a=0;a<o;a++)i[a]=this.srcAlphabet.indexOf(r[a]);do{for(e=0,t=0,a=0;a<o;a++)e=e*s+i[a],e>=l?(i[t++]=parseInt(e/l,10),e=e%l):t>0&&(i[t++]=0);o=t,d=this.dstAlphabet.slice(e,e+1).concat(d)}while(t!==0);return d},mu.prototype.isValid=function(r){for(var a=0;a<r.length;++a)if(this.srcAlphabet.indexOf(r[a])===-1)return!1;return!0};var NV=mu,LV=NV;function ta(r,a){var e=new LV(r,a);return function(t){return e.convert(t)}}ta.BIN="01",ta.OCT="01234567",ta.DEC="0123456789",ta.HEX="0123456789abcdef";var jV=ta;const{v4:vu,validate:UV}=MI,Zo=jV,Tu={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},$V={consistentLength:!0};let Eu;const kI=(r,a,e)=>{const t=a(r.toLowerCase().replace(/-/g,""));return!e||!e.consistentLength?t:t.padStart(e.shortIdLength,e.paddingChar)},ZI=(r,a)=>{const t=a(r).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[t[1],t[2],t[3],t[4],t[5]].join("-")},gV=r=>Math.ceil(Math.log(2**128)/Math.log(r));var GV=(()=>{const r=(a,e)=>{const t=a||Tu.flickrBase58,i={...$V,...e};if([...new Set(Array.from(t))].length!==t.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const s=gV(t.length),l={shortIdLength:s,consistentLength:i.consistentLength,paddingChar:t[0]},o=Zo(Zo.HEX,t),d=Zo(t,Zo.HEX),u=()=>kI(vu(),o,l),c={alphabet:t,fromUUID:E=>kI(E,o,l),maxLength:s,generate:u,new:u,toUUID:E=>ZI(E,d),uuid:vu,validate:(E,I=!1)=>{if(!E||typeof E!="string")return!1;const O=i.consistentLength?E.length===s:E.length<=s,P=E.split("").every(V=>t.includes(V));return I===!1?O&&P:O&&P&&UV(ZI(E,d))}};return Object.freeze(c),c};return r.constants=Tu,r.uuid=vu,r.generate=()=>(Eu||(Eu=r(Tu.flickrBase58).generate),Eu()),r})();const qo=_I(GV);function qI(){return qo().uuid()}function JI(r){return r.rangeStart+Math.random()}function SI(r){const a=r.rangeEnd;return Math.random()*a}function WI(r){const a=r.rangeStart,e=r.rangeEnd;return Math.random()*(e-a)+a}function zI(r){return r.rangeStart&&r.rangeEnd?WI(r):r.rangeStart?JI(r):r.rangeEnd?SI(r):Math.random()}function YI(r){const a=r.rangeStart;return Math.random().toString(36).substring(a)}function HI(r){const a=r.rangeEnd;return Math.random().toString(36).substring(0,a)}function KI(r){const a=r.rangeStart,e=r.rangeEnd;return Math.random().toString(36).substring(a,e)}function XI(r){return r.rangeStart&&r.rangeEnd?KI(r):r.rangeStart?YI(r):r.rangeEnd?HI(r):Math.random().toString(36)}function QI(r){return Math.random()>=.5}function FV(r){if(!r||!r.autogeneration)return null;switch(r.autogeneration.type){case vt.CurrentDateAndTime:if(r.name===L.Date)return new Date;case vt.Random:{if(r.name===L.Date)return BI(r.autogeneration);if(r.name===L.Number)return zI(r.autogeneration);if(r.name===L.String)return XI(r.autogeneration);if(r.name===L.Boolean)return QI(r.autogeneration)}case vt.Unique:if(r.name===L.UUID)return qI();default:throw new Error(`Generating a ${r.autogeneration.type} value for a ${r.name} is not supported`)}}const fe="e7eb5382-3d99-44fd-972a-b8b1e819f6be",eA="global-user-variable-id",Iu="last-executed-timestamp-variable-id",xV={id:"alternative-relational-database-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",version:"1",entityType:n.ValueDescriptor},kV={id:"alternative-relational-database-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",version:"1",entityType:n.Property},ZV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"alternative-relational-database-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:kV},Jo={id:"alternative-relational-database-entity-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-id",version:"1",entityType:n.DefinitionEntity},qV={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-identifier-property-id",name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:co,static:!0,index:0,defaultValue:{id:"alternative-relational-database-entity-identifier-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:null,parent:xV,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:ZV,description:"The name of the main database inside of the server instance where the data will be stored.",parent:Jo};n.GenericReference,n.ValueDescriptor;const JV={id:"alternative-relational-database-entity-username-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-username-property-id",version:"1",entityType:n.Property},SV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"alternative-relational-database-entity-username-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:JV},WV={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-username-property-id",name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:fo,static:!0,index:1,defaultValue:null,dataType:SV,description:"The username that will be used to connect to the database.",parent:Jo};n.GenericReference,n.ValueDescriptor;const zV={id:"alternative-relational-database-entity-password-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-password-property-id",version:"1",entityType:n.Property},YV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"alternative-relational-database-entity-password-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:zV},HV={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-password-property-id",name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:yo,static:!0,index:2,defaultValue:null,dataType:YV,description:"The password that will be used to connect to the database.",parent:Jo},KV={id:"alternative-relational-database-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",version:"1",entityType:n.ValueDescriptor},XV={id:"alternative-relational-database-entity-min-size-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",version:"1",entityType:n.Property},QV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"alternative-relational-database-entity-min-size-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:XV},eB={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:ho,static:!0,index:3,defaultValue:{id:"alternative-relational-database-entity-min-size-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:6,parent:KV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:QV,description:"The minimum size of the database in GB.",parent:Jo},tB={id:"alternative-relational-database-entity-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},Au={id:"alternative-relational-database-entity-id",type:n.DefinitionEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Alternative relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[qV,WV,HV,eB],methods:[],abstractMethods:[],extends:[],implements:[Dt],x:0,y:0,parent:tB},iB={id:"animal-prototype-database-property-ref-id",type:n.GenericReference,entityId:"animal-prototype-database-property-id",version:"1",entityType:n.Property},rB={id:"animal-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"animal-prototype-database-property-id",version:"1",entityType:n.Property},nB={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"animal-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Dt,asType:!1,parent:iB},sB={id:"animal-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:"1",entityType:n.DefinitionEntity},aB={constant:!1,hidden:!1,required:!0,id:"animal-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Yn,static:!0,index:0,defaultValue:{id:"animal-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:Au,autogeneration:null,parent:rB},dataType:nB,description:"The database that the entity belongs to.",parent:sB},oB={type:n.GenericReference,id:"291e4d4f-01d8-40a0-90dc-5f1ac6636e9b",version:"1",entityType:n.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},lB={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"c1930577-9e79-48a6-8905-be24611015c1",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:oB},dB={type:n.GenericReference,id:"animal-name-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970"},uB={type:n.GenericReference,id:"animal-name-default-value-parent-ref-id",version:"1",entityType:n.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},pB={type:n.LiteralValue,id:"animal-name-default-value-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Animal",name:L.String,valueAsTypeSingle:null,valueAsTypeList:null,autogeneration:null,parent:uB},cB={constant:!1,hidden:!1,required:!0,type:n.Property,id:"5cb617b0-92be-4dbe-a007-49093368d94f",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the animal",defaultValue:pB,implements:Hn,static:!1,private:!1,index:0,dataType:lB,abstract:!1,parent:dB},fB={type:n.GenericReference,id:"abc565de-4c83-4936-bc48-4013bef213b8",version:"1",entityType:n.Project,entityId:fe},yB={type:n.DefinitionEntity,id:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Animal",description:"A living creature that is not human",abstract:!1,static:!1,abstractMethods:[],properties:[aB,cB],methods:[],extends:[],implements:[_t],x:0,y:0,parent:fB},ia="base-table-entity",tA="base-table-entity-identifier-property-id";n.GenericReference,n.Property,n.GenericReference,n.Property;const hB={id:"base-table-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:tA,version:"1",entityType:n.Property},mB={id:"base-table-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-identifier-property-id",version:"1",entityType:n.Property},vB={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"base-table-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:sr,asType:!1,parent:mB},TB={id:"base-table-entity-identifier-property-parent-ref-id",type:n.GenericReference,entityId:ia,version:"1",entityType:n.DefinitionEntity};n.Property,n.LiteralValue,L.UUID,vt.Unique,n.GenericReference,n.Property;const EB={id:"base-table-entity-deleted-at-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-deleted-at-property-id",version:"1",entityType:n.Property},IB={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"base-table-entity-deleted-at-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fi,asType:!1,parent:EB},AB={id:"base-table-entity-deleted-at-property-parent-ref-id",type:n.GenericReference,entityId:ia,version:"1",entityType:n.DefinitionEntity},bB={constant:!1,hidden:!0,required:!0,id:"base-table-entity-deleted-at-property-id",name:"Deleted at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:IB,description:"The date and time when the entity was deleted.",parent:AB};n.GenericReference,n.Property;const RB={id:"base-table-entity-created-at-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-created-at-property-id",version:"1",entityType:n.Property},DB={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"base-table-entity-created-at-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fi,asType:!1,parent:RB},OB={id:"base-table-entity-created-at-property-parent-ref-id",type:n.GenericReference,entityId:ia,version:"1",entityType:n.DefinitionEntity},PB={constant:!1,hidden:!0,required:!0,id:"base-table-entity-created-at-property-id",name:"Created at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:DB,description:"The date and time when the entity was created.",parent:OB};n.GenericReference,n.Property;const wB={id:"base-table-entity-updated-at-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-updated-at-property-id",version:"1",entityType:n.Property},CB={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"base-table-entity-updated-at-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fi,asType:!1,parent:wB},VB={id:"base-table-entity-updated-at-property-parent-ref-id",type:n.GenericReference,entityId:ia,version:"1",entityType:n.DefinitionEntity},BB={constant:!1,hidden:!0,required:!0,id:"base-table-entity-updated-at-property-id",name:"Updated at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,implements:null,abstract:!0,static:!1,index:0,defaultValue:null,dataType:CB,description:"The date and time when the entity was last updated.",parent:VB},_B={id:"base-table-entity-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},mi={id:ia,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"An entity that is permanently stored in the database and can be accessed at any point.",name:"Base database table format",type:n.DefinitionEntity,abstract:!0,static:!1,abstractMethods:[],implements:[],properties:[bB,PB,BB],methods:[],extends:[],x:0,y:0,parent:_B},MB={id:"default-relational-database-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",version:"1",entityType:n.Property},NB={id:"default-relational-database-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",version:"1",entityType:n.Property},LB={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"default-relational-database-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:NB},ss={id:"default-relational-database-entity-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-id",version:"1",entityType:n.DefinitionEntity},jB={constant:!1,id:"default-relational-database-entity-identifier-property-id",hidden:!1,required:!0,name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:co,static:!0,index:0,defaultValue:{id:"default-relational-database-entity-identifier-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"main",parent:MB,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:LB,description:"The name of the main database inside of the server instance where the data will be stored.",parent:ss};n.GenericReference,n.Property;const UB={id:"default-relational-database-entity-username-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-username-property-id",version:"1",entityType:n.Property},$B={id:"default-relational-database-entity-username-property-default-value-parent-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-username-property-id",version:"1",entityType:n.Property},gB={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"default-relational-database-entity-username-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:UB},GB={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-username-property-id",name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:fo,defaultValue:{id:"default-relational-database-entity-username-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"root",parent:$B,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},static:!0,index:1,dataType:gB,description:"The username that will be used to connect to the database.",parent:ss};n.GenericReference,n.Property;const FB={id:"default-relational-database-entity-password-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-password-property-id",version:"1",entityType:n.Property},xB={id:"default-relational-database-entity-password-property-default-value-parent-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-password-property-id",version:"1",entityType:n.Property},kB={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"default-relational-database-entity-password-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:FB},ZB={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-password-property-id",name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:yo,static:!0,index:2,defaultValue:{id:"default-relational-database-entity-password-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"password",parent:xB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:kB,description:"The password that will be used to connect to the database.",parent:ss},qB={id:"default-relational-database-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",version:"1",entityType:n.Property},JB={id:"default-relational-database-entity-min-size-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",version:"1",entityType:n.Property},SB={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"default-relational-database-entity-min-size-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:JB},WB={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:ho,static:!0,index:3,defaultValue:{id:"default-relational-database-entity-min-size-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:6,parent:qB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:SB,description:"The minimum size of the database in GB.",parent:ss},zB={id:"default-relational-database-entity-default-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-default-property-id",version:"1",entityType:n.Property},YB={id:"default-relational-database-entity-default-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-default-property-id",version:"1",entityType:n.Property},HB={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"default-relational-database-entity-default-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:YB},KB={constant:!0,id:"default-relational-database-entity-default-property-id",hidden:!0,required:!0,name:"Default",description:"Whether this database is automatically picked by other entities as the default database.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Xd,static:!0,index:4,dataType:HB,defaultValue:{id:"default-relational-database-entity-default-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,value:!0,parent:zB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},parent:ss},XB={id:"default-relational-database-entity-autoscaling-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",version:"1",entityType:n.Property},QB={id:"default-relational-database-entity-autoscaling-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",version:"1",entityType:n.Property},e_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"default-relational-database-entity-autoscaling-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:QB},t_={constant:!1,id:"default-relational-database-entity-autoscaling-property-id",hidden:!1,required:!0,name:"Auto-scaling",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Qd,static:!0,index:5,defaultValue:{id:"default-relational-database-entity-autoscaling-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,value:!0,parent:XB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:e_,description:"If true, this database will automatically scale up or down in memory size, based on the usage.s",parent:ss},i_={id:"default-relational-database-entity-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},bu={id:"default-relational-database-entity-id",type:n.DefinitionEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[KB,t_,jB,GB,ZB,WB],methods:[],abstractMethods:[],extends:[],implements:[Dt],x:0,y:0,parent:i_},r_={id:"user-prototype-database-property-data-type-ref-id",type:n.GenericReference,entityId:"user-prototype-database-property-id",version:"1",entityType:n.Property},n_={id:"user-prototype-database-property-ref-id",type:n.GenericReference,entityId:"user-prototype-database-property-id",version:"1",entityType:n.Property},s_={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"user-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Dt,asType:!1,parent:n_},a_={id:"user-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",entityType:n.DefinitionEntity},o_={constant:!1,hidden:!1,required:!0,id:"user-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Yn,static:!0,index:0,defaultValue:{id:"user-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:bu,autogeneration:null,parent:r_},dataType:s_,description:"The database that the entity belongs to.",parent:a_},l_={type:n.GenericReference,id:"user-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},d_={id:"user-prototype-primary-key-property-data-type-ref-id",type:n.GenericReference,entityId:"user-prototype-primary-key-property-id",version:"1",entityType:n.Property},u_={id:"user-prototype-primary-key-property-ref-id",type:n.GenericReference,entityId:"user-prototype-primary-key-property-id",version:"1",entityType:n.Property},p_={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"user-prototype-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:sr,asType:!1,parent:u_},c_={id:"user-prototype-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",entityType:n.DefinitionEntity},f_={constant:!1,hidden:!1,required:!0,id:"user-prototype-primary-key-property-id",name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Hn,static:!1,index:1,defaultValue:{id:"user-prototype-primary-key-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.UUID,value:null,parent:d_,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:p_,description:"A property with a unique value for the entity, that can be used to identify the entity among other entities of the same type.",parent:c_},Ru={type:n.DefinitionEntity,id:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"User",description:"A user of the application",implements:[_t,mi],abstract:!1,static:!1,abstractMethods:[],extends:[],properties:[o_,f_],methods:[],x:0,y:0,parent:l_},y_={type:n.GenericReference,id:"person-date-of-birth-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:"person-date-of-birth-property-id"},h_={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"person-date-of-birth-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fi,isList:!1,asType:!1,parent:y_},m_={type:n.GenericReference,id:"person-date-of-birth-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},v_={constant:!1,hidden:!1,required:!0,type:n.Property,id:"person-date-of-birth-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Date of birth",description:"The date of birth of the person",implements:null,private:!1,static:!1,index:0,defaultValue:null,dataType:h_,abstract:!1,parent:m_},T_={type:n.GenericReference,id:"a2867827-2f8e-4c25-b18b-d91857d7f24e",version:"1",entityType:n.Property,entityId:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7"},E_={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"1d49f41b-17b9-4f48-87aa-3ce43498e5a9",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:T_},I_={type:n.GenericReference,id:"01cbe760-40a9-4f49-8e3d-194d2f57cb1e",version:"1",entityType:n.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},A_={constant:!1,hidden:!1,required:!0,type:n.Property,id:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the person",implements:null,private:!1,static:!1,index:0,defaultValue:null,dataType:E_,abstract:!1,parent:I_},b_={type:n.GenericReference,id:"3542b22a-3a2f-41c6-876e-24c885572498",version:"1",entityType:n.Project,entityId:fe},Yt={type:n.DefinitionEntity,id:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Person",description:"A entity to store more information about a person than the user entity does, to split the responsibilities and keep it the logic clean.",properties:[A_,v_],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[Ru],x:0,y:0,parent:b_},R_={type:n.GenericReference,id:"b59c80b7-b2e9-41e9-abcd-7c5652835efc",version:"1",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},D_={type:n.GenericReference,id:"1190b5a2-f25e-46db-884d-8a3dd1a44d94",version:"1",entityType:n.ReturnStatement,entityId:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e"},O_={type:n.GenericReference,id:"36c63126-7814-496f-a6cc-48662c2aabae",version:"1",entityType:n.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},P_={type:n.GenericReference,id:"c567e55d-ec12-4e4e-958e-f07522892b4b",version:"1",entityType:n.ReturnDeclaration,entityId:"9e070523-7e07-4100-8637-960a187f5f14"},w_={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"3973c5a1-f0d8-49a0-a9a9-a0009bf3f0d8",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,isList:!1,asType:!1,parent:P_},Du={constant:!0,isError:!1,id:"9e070523-7e07-4100-8637-960a187f5f14",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Output Account Owner",description:null,defaultValue:null,dataType:w_,implements:null,readsValue:O_,required:!0,index:0,parent:D_},C_={type:n.GenericReference,id:"567d923c-20da-4c1e-956d-962ea30c6d0b",version:"1",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},V_={type:n.GenericReference,id:"da85e620-59f3-42ab-88c8-b38d33c2c833",version:"1",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},B_={type:n.ReturnStatement,id:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Du],calledByError:[],calledByEntry:[C_],calledBySuccess:[],throws:null,x:0,y:0,parent:V_},__={type:n.GenericReference,id:"1c806bb7-4c25-4bad-963b-93dfbb7c8304",version:"1",entityType:n.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},M_={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"d90fcc18-642b-433c-8fcb-4094b9031cd5",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,isList:!1,asType:!1,parent:__},iA={constant:!0,id:"500dee3a-3435-4453-9699-0d053f646523",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New Account Owner",description:null,defaultValue:null,dataType:M_,implements:null,required:!0,writesValues:[Du],index:0,parent:R_},N_={type:n.GenericReference,id:"83dceb60-f3c4-4085-824c-85f2003bfd27",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},rA={type:n.FunctionDeclaration,id:"36f29f96-c001-4b9a-b49c-83eff406a060",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Change owner of bank account",description:null,implements:null,inputs:[iA],calls:[B_],index:0,collapsed:!1,private:!1,x:0,y:0,parent:N_},L_={type:n.GenericReference,id:"adbaf302-ffa9-49b6-a3c6-83f9a75068e3",version:"1",entityType:n.VariableDeclaration,entityId:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b"},j_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"79ee04aa-1ba4-4ae9-a406-ed45e5b03f7f",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,asType:!1,isList:!1,parent:L_},U_={type:n.GenericReference,id:"55e212d1-f0ec-4bb6-acbe-60f741367daf",version:"1",entityType:n.OutputMap,entityId:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4"},$_={type:n.GenericReference,id:"944e1171-3d9b-4559-9386-1d4974b15962",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},g_={constant:!0,required:!0,id:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b",type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Output Account Owner",description:null,defaultValue:null,dataType:j_,readsValue:U_,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:$_},G_={type:n.GenericReference,id:"b89ebc83-52cf-4447-a5ae-62241f713079",version:"1",entityType:n.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},F_={id:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Du,defaultValue:null,writesValues:[g_],index:0,parent:G_},x_={type:n.GenericReference,id:"c1b9e125-1aad-48b7-9687-95c57a6bc10d",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},k_={type:n.GenericReference,id:"d2deaa02-e164-4425-905c-6dee47eb4eac",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},Z_={type:n.GenericReference,id:"1109a655-ac62-4110-a933-42a72106f4f0",version:"1",entityType:n.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},q_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"7d9a1307-512e-42ec-9797-2f7229796b97",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,asType:!1,isList:!1,parent:Z_},J_={type:n.GenericReference,id:"bb61ebf7-57b3-4d14-905d-82ec907205b5",version:"1",entityType:n.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},S_={type:n.GenericReference,id:"6b8c7bf2-9fc8-4ea4-9ec0-f41679d513b1",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},W_={type:n.GenericReference,id:"6163d1a1-7a94-49b1-95bb-aecd8d6d335c",version:"1",entityType:n.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},z_={type:n.GenericReference,id:"1f900f62-4bd2-4246-94aa-b8f5aad384fd",version:"1",entityType:n.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},nA={id:"be8538be-e6f9-4b94-9314-a546003ebaa0",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:iA,name:null,description:null,readsValue:z_,defaultValue:null,index:0,parent:W_},Y_={constant:!0,required:!0,type:n.VariableDeclaration,id:"8bea6986-8da2-487b-905d-2fb962db6728",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Changed Account Owner",description:null,defaultValue:null,dataType:q_,readsValue:J_,writesValues:[nA],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:S_},H_={type:n.FunctionCall,id:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:rA,inputs:[nA],outputs:[F_],process:null,successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[x_],calledBySuccess:[],parent:k_,error:null,x:0,y:0},K_={type:n.GenericReference,id:"2d47aba1-a918-46a7-8db7-78809928654a",version:"1",entityType:n.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},X_={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"5583766c-e9a5-484c-8f43-f4b0a6a1876c",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,asType:!1,isList:!1,parent:K_},Q_={type:n.GenericReference,id:"3e2a81e4-55b2-49f5-94eb-39135e95c3d7",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},eM={constant:!0,id:"38f6b236-98ac-47b0-ab9c-d2f9610137b9",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"New Company Owner",defaultValue:null,dataType:X_,implements:null,required:!0,index:0,writesValues:[Y_],parent:Q_},tM={type:n.GenericReference,id:"30291b01-1b94-4d03-b434-dec122c2bc7d",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},iM={type:n.FunctionDeclaration,id:"15ee556d-681f-47de-a31f-16d4ba73cc4e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"Change Account Owner",inputs:[eM],collapsed:!0,calls:[H_],private:!1,index:0,implements:null,x:0,y:0,parent:tM},rM={type:n.GenericReference,id:"72c7ac0a-886e-4e10-b7ed-2f5a819a0233",version:"1",entityType:n.Property,entityId:"b8f4656a-2b77-43ab-af51-7c32ddede044"},nM={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"c09dd282-73f6-4077-a467-b66db20b9fc6",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:rM},sM={type:n.GenericReference,id:"8a950024-512c-4580-81db-a705410aeb99",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},aM={constant:!1,hidden:!1,required:!0,type:n.Property,id:"b8f4656a-2b77-43ab-af51-7c32ddede044",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Account number",description:null,private:!0,defaultValue:null,implements:Hn,static:!1,index:0,dataType:nM,abstract:!1,parent:sM},oM={type:n.GenericReference,id:"b6704b6c-c3bd-49d0-8ebc-82d03e726cbb",version:"1",entityType:n.Property,entityId:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea"},lM={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"c03e0b0a-88ab-401a-8833-4806738bdc37",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,isList:!1,asType:!1,parent:oM},dM={type:n.GenericReference,id:"1ef999a7-e9ed-406a-866e-e58277fc985b",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},uM={constant:!1,hidden:!1,required:!0,type:n.Property,id:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"Account Owner",index:1,defaultValue:null,dataType:lM,implements:null,static:!1,private:!0,abstract:!1,parent:dM},pM={type:n.GenericReference,id:"d41d7f41-98b8-4f67-be92-c349fdda5156",version:"1",entityType:n.Project,entityId:fe},as={type:n.DefinitionEntity,id:"506946aa-30da-48e6-918f-ffd9eac58813",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bank Account",description:null,abstract:!1,static:!1,abstractMethods:[],properties:[aM,uM],methods:[rA,iM],extends:[],implements:[_t,mi],x:0,y:0,parent:pM},ra="bitcoin-api-response-id",sA="time-property-id",aA="disclaimer-property-id",oA="chart-name-property-id",lA="bpi-property-id",So="bpi-entity-id",dA="usd-property-id",uA="gbp-property-id",pA="eur-property-id",os="currency-entity-id",cA="currency-code-property-id",fA="currency-symbol-property-id",yA="currency-rate-property-id",hA="currency-description-property-id",mA="currency-rate-number-property-id",cM={type:n.GenericReference,id:"code-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:cA},fM={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"code-property-data-type-id",type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:nr,isList:!1,asType:!1,options:["USD","GBP","EUR"],parent:cM},yM={type:n.GenericReference,id:"code-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:os},hM={constant:!1,hidden:!1,required:!0,type:n.Property,id:cA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"code",description:null,defaultValue:null,dataType:fM,index:0,implements:null,static:!1,private:!1,abstract:!1,parent:yM},mM={type:n.GenericReference,id:"symbol-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:fA},vM={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"symbol-property-data-type-id",type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:nr,isList:!1,asType:!1,options:["$","£","€"],parent:mM},TM={type:n.GenericReference,id:"symbol-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:os},EM={constant:!1,hidden:!1,required:!0,type:n.Property,id:fA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"symbol",description:null,index:0,defaultValue:null,dataType:vM,implements:null,static:!1,private:!1,abstract:!1,parent:TM},IM={type:n.GenericReference,id:"rate-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:yA},AM={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"rate-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:IM},bM={type:n.GenericReference,id:"rate-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:os},RM={constant:!1,hidden:!1,required:!0,type:n.Property,id:yA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"rate",description:null,index:0,defaultValue:null,dataType:AM,implements:null,static:!1,private:!1,abstract:!1,parent:bM},DM={type:n.GenericReference,id:"description-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:hA},OM={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"description-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:DM},PM={type:n.GenericReference,id:"description-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:os},wM={constant:!1,hidden:!1,required:!0,type:n.Property,id:hA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"description",description:null,defaultValue:null,dataType:OM,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:PM},CM={type:n.GenericReference,id:"rate-number-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:mA},VM={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"rate-number-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:CM},BM={type:n.GenericReference,id:"rate-number-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:os},_M={constant:!1,hidden:!1,required:!0,type:n.Property,id:mA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"rate_float",description:null,defaultValue:null,dataType:VM,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:BM},MM={type:n.GenericReference,id:"currency-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},Wo={type:n.DefinitionEntity,id:os,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Currency",description:"This entity describes a currency in the Bitcoin Price Index.",properties:[hM,EM,RM,wM,_M],static:!1,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:MM},NM={type:n.GenericReference,id:"usd-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:dA},LM={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"usd-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wo,isList:!1,asType:!1,parent:NM},jM={type:n.GenericReference,id:"usd-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:So},UM={constant:!1,hidden:!1,required:!0,id:dA,type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"USD",description:null,index:0,dataType:LM,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:jM},$M={type:n.GenericReference,id:"gbp-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:uA},gM={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"gbp-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wo,isList:!1,asType:!1,parent:$M},GM={type:n.GenericReference,id:"gbp-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:So},FM={constant:!1,hidden:!1,required:!0,id:uA,type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"GBP",description:null,index:0,dataType:gM,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:GM},xM={type:n.GenericReference,id:"eur-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:pA},kM={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"eur-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wo,isList:!1,asType:!1,parent:xM},ZM={type:n.GenericReference,id:"eur-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:So},qM={constant:!1,hidden:!1,required:!0,id:pA,type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"EUR",description:null,implements:null,static:!1,index:0,defaultValue:null,dataType:kM,private:!1,abstract:!1,parent:ZM},JM={type:n.GenericReference,id:"bpi-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},vA={type:n.DefinitionEntity,id:So,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"BPI",description:"The Bitcoin Price Index",properties:[UM,FM,qM],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:JM},SM={type:n.GenericReference,id:"time-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:sA},WM={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"time-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Zn,isList:!1,asType:!1,parent:SM},zM={type:n.GenericReference,id:"time-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},YM={constant:!1,hidden:!1,required:!0,type:n.Property,id:sA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"time",description:null,index:0,defaultValue:null,dataType:WM,implements:null,static:!1,private:!1,abstract:!1,parent:zM},HM={type:n.GenericReference,id:"disclaimer-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:aA},KM={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"disclaimer-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:HM},XM={type:n.GenericReference,id:"disclaimer-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},QM={constant:!1,hidden:!1,required:!0,type:n.Property,id:aA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"disclaimer",description:null,index:0,defaultValue:null,dataType:KM,implements:null,static:!1,private:!1,abstract:!1,parent:XM},eN={type:n.GenericReference,id:"chart-name-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:oA},tN={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"chart-name-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:eN},iN={type:n.GenericReference,id:"chart-name-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},rN={constant:!1,hidden:!1,required:!0,type:n.Property,id:oA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"chartName",description:null,index:0,defaultValue:null,dataType:tN,implements:null,static:!1,private:!1,abstract:!1,parent:iN},nN={type:n.GenericReference,id:"bpi-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:lA},sN={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"bpi-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vA,isList:!1,asType:!1,parent:nN},aN={type:n.GenericReference,id:"bpi-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},oN={constant:!1,hidden:!1,required:!0,type:n.Property,id:lA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"bpi",description:null,implements:null,index:0,defaultValue:null,dataType:sN,static:!1,private:!1,abstract:!1,parent:aN},lN={type:n.GenericReference,id:"bitcoin-api-response-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},TA={type:n.DefinitionEntity,id:ra,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bitcoin API Response type",description:"The type of the data structure response from the Bitcoin API call",properties:[YM,QM,rN,oN],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:lN},dN={type:n.GenericReference,id:"eefa0147-f873-484b-b4f3-9e6493aab183",version:"1",entityType:n.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},uN={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"b9f35112-dcb2-4b7c-8fb9-f196b3fa37f9",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,isList:!1,asType:!1,parent:dN},pN={type:n.GenericReference,id:"128770d6-5e3a-4aff-bca0-ad1f32ebefa8",version:"1",entityType:n.ReturnStatement,entityId:"e4e05975-c277-471a-b869-f0aed316045c"},cN={type:n.GenericReference,id:"0be84bf9-6421-42b9-980f-6a03f30cb809",version:"1",entityType:n.ReturnDeclaration,entityId:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},fN={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"43daa02a-237b-4b7c-a6e9-2b8c167f6e22",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,isList:!1,asType:!1,parent:cN},yN={type:n.GenericReference,id:"ad380383-4a47-43da-968e-75a2d603b230",version:"1",entityType:n.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},EA={constant:!0,isError:!1,id:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New Company Owner",description:"The new owner of the company",implements:null,defaultValue:null,dataType:fN,readsValue:yN,required:!0,index:0,parent:pN},hN={type:n.GenericReference,id:"4f24dc27-59a1-49bf-abcc-7d72b00926e4",version:"1",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},mN={constant:!0,id:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New Company Owner",description:null,implements:null,defaultValue:null,dataType:uN,writesValues:[EA],required:!0,index:0,parent:hN},vN={type:n.GenericReference,id:"5c9a02f0-d2cf-4efc-828e-467f33a74dd3",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},TN={type:n.GenericReference,id:"2ff8f3da-e0c5-4f0f-b688-2c051c588786",version:"1",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},EN={type:n.GenericReference,id:"195ae28c-159b-42de-80b1-2ebb8be3619f",version:"1",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},IN={type:n.ReturnStatement,id:"e4e05975-c277-471a-b869-f0aed316045c",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[EA],calledByError:[],calledByEntry:[TN],calledBySuccess:[],throws:null,x:0,y:0,parent:EN},AN={type:n.FunctionDeclaration,id:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Change owner of company",description:"Change the owner of the company to a new person",inputs:[mN],calls:[IN],index:0,collapsed:!1,implements:null,private:!1,x:0,y:0,parent:vN},bN={type:n.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},RN={type:n.GenericReference,id:"29c4e3e0-1b66-4075-b559-45b27c5cf356",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},DN={type:n.GenericReference,id:"b1289358-b185-455d-8f58-7791b15cd52a",version:"1",entityType:n.ReturnStatement,entityId:"9690cd1d-ea35-4e83-823d-0c7310265fee"},ON={type:n.GenericReference,id:"d847bb49-8789-4550-bb2d-e2d551993b28",version:"1",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},PN={type:n.GenericReference,id:"06535500-c37c-4915-8398-1d4e184fa5e7",version:"1",entityType:n.ReturnDeclaration,entityId:"e7a35277-a0c4-46d5-aca2-bddd0c26e931"},wN={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"d358dd91-35f7-4095-b728-3fb3c71dbc05",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:rr,asType:!1,isList:!1,parent:PN},Ou={constant:!0,isError:!1,id:"e7a35277-a0c4-46d5-aca2-bddd0c26e931",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is name registered",description:"Whether the company name is already registered",defaultValue:null,dataType:wN,implements:null,readsValue:ON,required:!0,index:0,parent:DN},CN={type:n.GenericReference,id:"gov-company-registry-return-statement-called-by-success-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},IA={type:n.ReturnStatement,id:"9690cd1d-ea35-4e83-823d-0c7310265fee",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Ou],calledByError:[],calledByEntry:[],calledBySuccess:[bN,CN],throws:null,x:0,y:0,parent:RN},VN={type:n.GenericReference,id:"b3126414-4c9b-495f-901e-59f5073c8d67",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},BN={type:n.GenericReference,id:"35115c48-618b-411b-a290-d746d22fdd10",version:"1",entityType:n.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},AA={id:"a0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:_d,name:null,description:null,readsValue:BN,defaultValue:null,parent:VN,index:2},_N={type:n.GenericReference,id:"14f46eae-04a5-47d1-9c7f-28fb09b84d1d",version:"1",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},MN={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"990bd5d1-07ea-4253-acc1-d03bedd22a38",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:rr,isList:!1,asType:!1,parent:_N},NN={type:n.GenericReference,id:"e4c3542a-8fb0-4b72-8d6e-3fdff812dd67",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},LN={type:n.GenericReference,id:"825f9f60-22a8-4cc6-9055-d7333f8e92f4",version:"1",entityType:n.OutputMap,entityId:"8f30d787-9459-4d8d-98a2-b46fbc2006d5"},jN={type:n.GenericReference,id:"is-company-name-registered-var-called-by-ref",version:"1",entityType:n.Operation,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},bA={constant:!0,required:!0,type:n.VariableDeclaration,id:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is name registered",description:"Whether the company name is registered with the government company registry",defaultValue:null,dataType:MN,readsValue:LN,writesValues:[Ou],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[jN],successCalls:[IA],errorCalls:[],internalCalls:[],x:0,y:0,parent:NN},UN={type:n.GenericReference,id:"1aba021e-48ef-44ac-93d0-eaecac5895da",version:"1",entityType:n.InputMap,entityId:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a"},$N={type:n.GenericReference,id:"dffae7e0-0a5c-4c14-8ed2-8d680b4c4c86",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},gN={type:n.InputMap,id:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:eo,name:null,description:null,readsValue:null,defaultValue:{id:"gov-http-request-url-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://api.publicapis.org/entries",name:L.String,valueAsTypeList:null,valueAsTypeSingle:null,parent:UN,autogeneration:null},index:1,parent:$N},GN={type:n.GenericReference,id:"64ae61f5-ace7-401b-926d-25f852daa60e",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},FN={id:"8f30d787-9459-4d8d-98a2-b46fbc2006d5",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:so,index:2,writesValues:[bA],parent:GN},xN={type:n.GenericReference,id:"62a1a086-caea-4270-9c9f-a1695503e745",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},kN={id:"48cf7654-8f3e-4fcd-abc6-740876c310a0",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Qa,name:null,description:null,readsValue:null,index:0,defaultValue:null,parent:xN},ZN={type:n.GenericReference,id:"b0c9c79f-f525-428d-99e7-087d3237ad62",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},qN={id:"2c1dc406-4b71-4023-87b2-abede3a111d2",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:to,index:3,readsValue:null,defaultValue:null,parent:ZN},JN={type:n.GenericReference,id:"9887d6c9-d75b-4c97-b722-e2e60945ea20",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},SN={id:"3fef94b2-0278-43ae-b0c5-bc7083f0a111",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:io,name:null,description:null,readsValue:null,index:4,defaultValue:null,parent:JN},WN={type:n.GenericReference,id:"561275b6-5056-45d8-bf7d-8abaa4645593",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},zN={id:"3efe20a7-4d63-411e-89ef-63e277f48d66",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:no,index:1,writesValues:[],parent:WN},YN={type:n.GenericReference,id:"3170ccc2-13de-4bfc-802a-a643be41cd42",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},HN={id:"40d34323-d7e6-440a-8016-67c05a3b66dd",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ro,index:0,writesValues:[],parent:YN},KN={type:n.GenericReference,id:"7432fa82-f574-4c54-a8fa-4cc4376da3d5",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},XN={type:n.GenericReference,id:"8f518502-9eea-462c-8753-8bc3bf3e29a9",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},QN={type:n.GenericReference,id:"123b8f18-79d9-4166-a5f6-78ec4b461680",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},eL={type:n.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},tL={type:n.GenericReference,id:"a375eedf-4811-41aa-a998-4897c69c46b9",version:"1",entityType:n.ReturnDeclaration,entityId:"024a9b77-c1cd-4b67-b3ba-1935046b590d"},iL={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"767cc5ed-20ec-4fd1-89b1-c8d19daa87d1",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wt,asType:!1,isList:!1,parent:tL},rL={type:n.GenericReference,id:"e64b0c23-129d-4d74-8ab4-eec60e1e5b9b",version:"1",entityType:n.ReturnStatement,entityId:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3"},RA={constant:!0,isError:!0,id:"024a9b77-c1cd-4b67-b3ba-1935046b590d",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"The error that occurred during the HTTP request to the government company registry",dataType:iL,defaultValue:null,implements:null,required:!0,readsValue:null,index:0,parent:rL},nL={type:n.ReturnStatement,id:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[],calledByError:[eL],calledByEntry:[],calledBySuccess:[],throws:RA,x:0,y:0,parent:QN},sL={type:n.GenericReference,id:"323814fb-9723-49ef-bbba-f882384f18e4",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},aL={id:"2f63f7ba-0ff0-458a-92bc-65d1dd4df8c3",type:n.OutputMap,declaration:Md,defaultValue:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,writesValues:[RA],index:0,parentRelationType:xn.Error,parent:sL},oL={type:n.Operation,id:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ms,inputs:[kN,gN,AA,qN,SN],outputs:[HN,zN,FN],process:null,calledByError:[],calledByEntry:[KN],calledBySuccess:[],successCalls:[IA,bA],errorCalls:[nL],error:aL,x:0,y:0,parent:XN},lL={type:n.GenericReference,id:"597b8aa2-f6f2-4f7d-bbb9-b703d02de96a",version:"1",entityType:n.InputMap,entityId:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a"},dL={type:n.GenericReference,id:"546d99b3-28c4-4186-93a0-ac53c1565e07",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},uL={id:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ha,name:null,description:null,readsValue:null,defaultValue:{id:"base-query-string-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"?name=",name:L.String,parent:lL,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:0,parent:dL},pL={type:n.GenericReference,id:"6a56fb22-82e1-47c9-bf85-41c4e5986c74",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},cL={type:n.GenericReference,id:"191c6a6d-9bcb-441e-bf98-de0da96f5f3a",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},fL={type:n.GenericReference,id:"d8fcbb76-dae2-40cf-847a-02364721b387",version:"1",entityType:n.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},yL={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"6a70c42b-024a-47c6-8a9d-af52be9c9b9a",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:fL},hL={type:n.GenericReference,id:"2282e2c0-ed9e-4c7b-86fc-1a364fa0fdb8",version:"1",entityType:n.OutputMap,entityId:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5"},mL={type:n.GenericReference,id:"assembled-query-string-called-by-ref",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},DA={constant:!0,required:!0,type:n.VariableDeclaration,id:"83e12ebb-c958-4dee-b750-8ab9930f0f4e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Query string",description:"The final, assembled query string that will be used in the HTTP request to the government company registry",defaultValue:null,dataType:yL,readsValue:hL,writesValues:[AA],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[mL],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:cL},vL={id:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[DA],declaration:Bs,index:0,parent:pL},TL={type:n.GenericReference,id:"a1b48e7c-0301-4747-b4dd-b5af79956f7f",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},EL={type:n.GenericReference,id:"487c9235-be95-4c96-b9b5-2714b374a277",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},IL={type:n.GenericReference,id:"f6471f4f-b269-46fa-80ec-885e87a449c2",entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69",version:"1",entityType:n.ArgumentDeclaration},AL={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},OA={id:"08f36e2b-bad2-425c-8129-93560bec8488",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Ka,name:null,description:null,readsValue:IL,defaultValue:null,index:1,parent:AL},bL={type:n.Operation,id:"8f2094c0-e27e-465e-9280-112da0de9019",declaration:_s,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[OA,uL],outputs:[vL],process:null,calledByError:[],calledByEntry:[TL],calledBySuccess:[],successCalls:[DA],errorCalls:[],error:null,x:0,y:0,parent:EL},RL={type:n.GenericReference,id:"c2e0e9b4-aa46-4974-bf8a-886b737b12fb",version:"1",entityType:n.ArgumentDeclaration,entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69"},DL={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"a4279518-3bf3-44b7-a2ac-65142ca37f1c",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:RL},OL={type:n.GenericReference,id:"dc273f24-164b-4943-82f9-589b237141e2",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},PA={constant:!0,id:"a4106e8e-ec4f-4633-a636-09ae73135f69",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company Name to check",description:"The name of the company to check in the government registry",dataType:DL,defaultValue:null,implements:null,required:!1,writesValues:[OA],index:0,parent:OL},PL={type:n.GenericReference,id:"2178a10c-1cc0-4dad-97c3-0941be6c9738",version:"1",entityType:n.Project,entityId:fe},wA={type:n.FunctionDeclaration,id:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Check Gov Company Registry availability",description:"Check whether the company name is already registered in the government company registry, or it is available for a new company to use.",inputs:[PA],calls:[bL,oL],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:PL},wL={type:n.GenericReference,id:"4d66c53c-f0f7-496a-9955-1e6c8533c5e0",version:"1",entityType:n.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},CL={type:n.GenericReference,id:"6fa0c8e0-d104-4b4d-a035-d4f6e0c49f09",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},VL={type:n.GenericReference,id:"146408d5-5336-4877-941a-777dd5871926",version:"1",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},BL={type:n.GenericReference,id:"34ae8f8c-548d-4654-984a-6f36affdaf49",version:"1",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},CA={id:"69b1215d-9ebf-4274-b9cb-d4a5888f5122",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:PA,name:null,description:null,readsValue:VL,defaultValue:null,index:0,parent:BL},_L={type:n.GenericReference,id:"07540a94-dda1-40b3-8452-f209bdc87b88",version:"1",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},ML={type:n.GenericReference,id:"eaddf12a-a995-429e-90a0-13bf06efeb28",version:"1",entityType:n.VariableDeclaration,entityId:"faaf3bf6-917d-40d7-aee6-5164f6646c4b"},NL={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"7fdaf943-3ffb-48e0-b766-b86cc24090cf",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:rr,asType:!1,isList:!1,parent:ML},LL={type:n.GenericReference,id:"030fb5c5-af4d-4c85-8cf0-e99edd50d2bd",version:"1",entityType:n.OutputMap,entityId:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},jL={type:n.GenericReference,id:"a8b618e9-c68c-48c1-8bd6-ef47c87d699e",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},UL={type:n.GenericReference,id:"is-company-name-valid-var-called-by-ref",version:"1",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},VA={constant:!0,required:!0,type:n.VariableDeclaration,id:"faaf3bf6-917d-40d7-aee6-5164f6646c4b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is name valid",description:"Whether the company name is valid",defaultValue:null,dataType:NL,readsValue:LL,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[UL],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:jL},$L={id:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ou,defaultValue:null,writesValues:[VA],index:0,parent:_L},gL={type:n.FunctionCall,id:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:wA,inputs:[CA],outputs:[$L],calledByError:[],calledByEntry:[],process:null,calledBySuccess:[wL],successCalls:[VA],errorCalls:[],error:null,x:0,y:0,parent:CL},GL={type:n.GenericReference,id:"9d0b87b4-bfed-4e02-9e84-6831c21feae2",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},FL={type:n.GenericReference,id:"74345f4f-e80d-48be-adff-d12fcea25bec",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},xL={type:n.GenericReference,id:"b39279ea-969a-4efb-a9ec-353bfd13db65",version:"1",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},kL={type:n.GenericReference,id:"549db613-f225-4c5b-9634-7d096717f0ff",version:"1",entityType:n.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},BA={id:"358e242c-7448-442e-ab8b-fd7fa119ea71",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:mn.inputs[0],name:null,description:null,readsValue:xL,defaultValue:null,index:0,parent:kL},ZL={type:n.Condition,id:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:mn,inputs:[BA],calledByError:[],calledByEntry:[GL],calledBySuccess:[],successCalls:[gL],errorCalls:[],x:0,y:0,parent:FL},qL={type:n.GenericReference,id:"43ba1e25-f805-488f-8ae8-c58bb6215b2f",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},JL={type:n.GenericReference,id:"eb091bed-507f-4a1e-93b5-7cd2fccfe002",version:"1",entityType:n.VariableDeclaration,entityId:"9c928995-0dd5-4f97-9962-56b343bc8a45"},SL={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"d64152ea-831f-4426-9506-a39bfa170513",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:as,asType:!1,isList:!1,parent:JL},WL={type:n.GenericReference,id:"7e79c29f-f7bd-441a-a77e-c627604dae94",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},zL={type:n.GenericReference,id:"8995ce5f-d5cf-4341-a8b1-5c046cc78b89",version:"1",entityType:n.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},YL={type:n.GenericReference,id:"new-company-bank-account-var-decl-1-called-by-ref",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},_A={constant:!0,required:!0,type:n.VariableDeclaration,id:"9c928995-0dd5-4f97-9962-56b343bc8a45",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New bank account",description:"The new entity value representing the new bank account of the company",defaultValue:null,dataType:SL,readsValue:zL,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[YL],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:WL},HL={type:n.GenericReference,id:"9a4887bf-d50d-43e4-bdd5-a5262f65f04b",version:"1",entityType:n.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},KL={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"ae148c06-3143-49e9-9614-c3aca3f6fa7b",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:as,asType:!1,isList:!1,parent:HL},XL={constant:!0,id:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New bank account",description:"The new bank account of the company",dataType:KL,implements:null,defaultValue:null,required:!0,index:1,writesValues:[_A],parent:qL},QL={type:n.GenericReference,id:"caec9cf8-3133-48d4-a390-114fa71b2933",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},ej={type:n.GenericReference,id:"cebcbad8-ca87-4c4b-be8a-312293d49892",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},tj={type:n.GenericReference,id:"7b8ccfe5-f9cd-4776-a19b-80c689bbe3df",version:"1",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},ij={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"2a6b4703-ac8d-4d25-8abd-48a115577fec",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:tj},rj={constant:!0,id:"c6cf620c-1eee-4919-8578-1a0b6c088551",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New company name",description:null,dataType:ij,implements:null,defaultValue:null,required:!0,index:0,writesValues:[BA,CA],parent:ej},nj={type:n.FunctionDeclaration,id:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company changed event",description:"The event that is triggered when a company is changed",collapsed:!1,inputs:[rj,XL],calls:[ZL,_A],index:1,private:!1,implements:null,x:0,y:0,parent:QL},sj={type:n.GenericReference,id:"employee-manager-property-data-type-entity-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},aj={type:n.GenericReference,id:"employee-manager-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:"employee-manager-property-id"},oj={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"employee-manager-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:sj,isList:!1,asType:!1,parent:aj},lj={type:n.GenericReference,id:"employee-manager-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},dj={constant:!1,required:!0,hidden:!1,type:n.Property,id:"employee-manager-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manager",description:"The manager of the employee",index:0,implements:null,private:!1,static:!1,defaultValue:null,dataType:oj,abstract:!1,parent:lj},uj={type:n.GenericReference,id:"employee-start-date-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:"employee-start-date-property-id"},pj={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"employee-start-date-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fi,isList:!1,asType:!1,parent:uj},cj={type:n.GenericReference,id:"employee-start-date-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},fj={constant:!1,hidden:!1,required:!0,type:n.Property,id:"employee-start-date-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Start date",description:"The date the employee started working in the company",index:0,private:!1,static:!1,defaultValue:null,implements:null,dataType:pj,abstract:!1,parent:cj},yj={type:n.GenericReference,id:"employee-department-property-ref-id",version:"1",entityType:n.Property,entityId:"employee-department-property-id"},hj={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"employee-department-property-data-type-id",type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:nr,isList:!1,asType:!1,options:["Human Resources","Finance","IT","Sales","Marketing","Customer Service","Logistics","Product"],parent:yj},mj={type:n.GenericReference,id:"employee-department-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},vj={constant:!1,hidden:!1,required:!0,type:n.Property,id:"employee-department-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Department",description:"The department the employee works in, from a list of departments in the company",index:0,defaultValue:null,implements:null,static:!1,private:!1,dataType:hj,abstract:!1,parent:mj},Tj={type:n.GenericReference,id:"employee-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},Di={type:n.DefinitionEntity,id:"employee-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee",description:"A entity that represents an employee in the company",properties:[vj,fj,dj],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[Yt],x:0,y:0,parent:Tj},Ej={type:n.GenericReference,id:"dec8fbfe-9124-41fd-9f1c-5b2f07cfd6ba",version:"1",entityType:n.Property,entityId:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd"},Ij={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"bc0b8979-6c43-4d47-a712-6742b89e3c00",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:Ej},Aj={type:n.GenericReference,id:"4f8c0a05-466e-4672-b4c4-6bd408c0be9a",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},bj={constant:!1,hidden:!1,required:!0,type:n.Property,id:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company Name",private:!1,static:!1,description:"The name of the company",index:0,defaultValue:null,implements:null,dataType:Ij,abstract:!1,parent:Aj},Rj={type:n.GenericReference,id:"95173fe0-a6e6-443c-94f3-f7c5cf171fcf",version:"1",entityType:n.Property,entityId:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3"},Dj={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"ddbb6f5c-0cf4-41fb-83b3-b6c47c0e338d",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:as,isList:!1,asType:!1,parent:Rj},Oj={type:n.GenericReference,id:"6a9a0b72-a05d-4169-b3f3-5afb01e8d0df",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},Pu={constant:!1,hidden:!1,required:!0,type:n.Property,id:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bank account",description:"The bank account of the company",index:1,implements:null,static:!1,private:!1,defaultValue:null,dataType:Dj,abstract:!1,parent:Oj},Pj={type:n.GenericReference,id:"62892cc6-d227-4088-90d3-ae7c15ed4af4",version:"1",entityType:n.Property,entityId:"19a31727-1fba-40a5-be25-18e0f149d5cb"},wj={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"1f7629df-dc29-4c89-8369-c6d043e97a9e",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,isList:!1,asType:!1,parent:Pj},Cj={type:n.GenericReference,id:"89384206-fd5a-4f0a-849c-f777473e5773",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},Vj={constant:!1,hidden:!1,required:!0,type:n.Property,id:"19a31727-1fba-40a5-be25-18e0f149d5cb",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company Owner",description:"The person that owns the company",index:2,static:!1,implements:null,defaultValue:null,dataType:wj,private:!0,abstract:!1,parent:Cj},Bj={type:n.GenericReference,id:"4d2ffb6c-5f38-436e-8339-fb9878ac2b5e",version:"1",entityType:n.Property,entityId:"f8310850-a87e-405c-b182-4f1d5fa49240"},_j={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"ad44250b-40c2-48f7-a480-381fa938f562",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,isList:!0,asType:!1,parent:Bj},Mj={type:n.GenericReference,id:"aa5d4eee-6fac-4e72-bf21-9c8750024541",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},Nj={constant:!1,hidden:!1,required:!0,type:n.Property,id:"f8310850-a87e-405c-b182-4f1d5fa49240",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employees",description:null,index:3,defaultValue:null,dataType:_j,implements:null,private:!0,static:!1,abstract:!1,parent:Mj},Lj={id:"company-prototype-primary-key-property-data-type-ref-id",type:n.GenericReference,entityId:"company-prototype-primary-key-property-id",version:"1",entityType:n.Property},jj={id:"company-prototype-primary-key-property-ref-id",type:n.GenericReference,entityId:"company-prototype-primary-key-property-id",version:"1",entityType:n.Property},Uj={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"company-prototype-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:sr,asType:!1,parent:jj},$j={id:"company-prototype-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:"1",entityType:n.DefinitionEntity},gj={constant:!1,hidden:!1,required:!0,id:"company-prototype-primary-key-property-id",name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Hn,static:!1,index:4,defaultValue:{id:"company-prototype-primary-key-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.UUID,value:null,parent:Lj,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:Uj,description:"A property with a unique value for the entity, that can be used to identify the entity among other entities of the same type.",parent:$j},Gj={type:n.GenericReference,id:"e3c03b6b-2ea0-4d99-865d-5e6a348672d0",version:"1",entityType:n.Project,entityId:fe},Oi={type:n.DefinitionEntity,id:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",description:null,properties:[bj,Pu,Vj,Nj,gj],static:!1,abstract:!1,abstractMethods:[],methods:[AN,nj],extends:[],implements:[_t,mi],x:0,y:0,parent:Gj},Fj={type:n.GenericReference,id:"ffcad334-138d-4b67-8fb3-5f0e6f5fefbd",version:"1",entityType:n.Project,entityId:fe},wu={type:n.FunctionDeclaration,id:"0f89260c-8c58-4639-8629-d9ea5ab40ba7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Show popup",description:null,inputs:[],calls:[],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:Fj};n.GenericReference,n.DataType;const xj={id:"cron-job-entity-expression-property-ref-id",type:n.GenericReference,entityId:"cron-job-entity-expression-property-id",version:"1",entityType:n.Property},kj={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"cron-job-entity-expression-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:xj},Zj={id:"cron-job-entity-ref-id",type:n.GenericReference,entityId:"cron-job-entity-id",version:"1",entityType:n.DefinitionEntity},qj={constant:!1,hidden:!1,required:!0,id:"cron-job-entity-expression-property-id",type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Cron expression",description:"The cron expression that defines when the cron job should be triggered",defaultValue:null,dataType:kj,implements:null,static:!0,private:!1,abstract:!1,index:0,parent:Zj},Jj={id:"cron-job-entity-trigger-show-popup-func-call-called-by-ref-one-id",type:n.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",version:"1",entityType:n.FunctionDeclaration},Sj={id:"cron-job-entity-trigger-show-popup-func-call-parent-ref-id",type:n.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",version:"1",entityType:n.FunctionDeclaration},Wj={id:"cron-job-entity-trigger-show-popup-func-call-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.FunctionCall,declaration:wu,inputs:[],outputs:[],process:null,successCalls:[],calledByError:[],calledByEntry:[Jj],calledBySuccess:[],errorCalls:[],error:null,x:0,y:0,parent:Sj},zj={id:"cron-job-entity-trigger-func-decl-parent-ref-id",type:n.GenericReference,entityId:"cron-job-entity-id",version:"1",entityType:n.DefinitionEntity},Yj={id:"cron-job-entity-trigger-func-decl-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.FunctionDeclaration,name:"Scheduled trigger",description:"The function that is called when the cron job is triggered",inputs:[],private:!1,implements:tu,calls:[Wj],collapsed:!1,index:0,x:0,y:0,parent:zj},Hj={id:"cron-job-entity-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},Kj={id:"cron-job-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DefinitionEntity,name:"Run at 12pm on Christmas day",description:"A cron job that runs at 12pm on Christmas day",properties:[qj],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[mo],methods:[Yj],x:0,y:0,parent:Hj},Xj={type:n.GenericReference,id:"52dbd85c-48b1-462a-8205-2437d6fb1cb4",version:"1",entityType:n.Project,entityId:fe},Qj={type:n.DefinitionEntity,id:"6f0908c2-09c6-4a8b-8f43-d2467fe6fb39",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Get bank all bank accounts",description:null,properties:[],static:!0,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[ni],x:0,y:0,parent:Xj},zo="f558fbf8-67de-4545-9804-6ae621e0b2d4",eU={id:"getCompanyByIdEndpointPathParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},tU={id:"getCompanyByIdEndpointPathParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},iU={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointPathParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:ae,asType:!1,parent:tU},rU={id:"getCompanyByIdEndpointReachedEntityEventRef",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},nU={id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},sU={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},aU={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointRequestHeadersVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:wt,asType:!1,parent:sU},oU={constant:!0,id:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:n.ArgumentDeclaration,writesValues:[],name:"Request headers",defaultValue:{id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:nU,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:aU,implements:qd,required:!0,index:0,parent:rU},lU={id:"getCompanyByIdEndpointReachedEntityEventRefTwo",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},dU={constant:!0,id:"getCompanyByIdEndpointPathParamsArgumentDeclaration",type:n.ArgumentDeclaration,description:"A standarized text, without spaces that is added at the end of the domain and routes the request to a specific resource within the target server. For example: /api/users/123, /api/users/123/:name, /api/users/123/:name/:age.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Path parameters",writesValues:[],defaultValue:{id:"getCompanyByIdEndpointPathParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:eU,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:iU,implements:Jd,required:!0,index:1,parent:lU},uU={id:"getCompanyByIdEndpointReachedEntityEventRefThree",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},pU={id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},cU={id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},fU={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointRequestQueryParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:ae,parent:cU},yU={constant:!0,id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A text with standarized format, without spaces that is added at the end of the URL path, after the ? character. It contains data that might be used to process the request. For example: /api/users?name=John&age=30",type:n.ArgumentDeclaration,writesValues:[],name:"Request query params",defaultValue:{id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:pU,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:fU,implements:Sd,required:!0,index:2,parent:uU},hU={id:"getCompanyByIdEndpointReachedEntityEventRefFour",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},mU={id:"getCompanyByIdEndpointRequestBodyArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestBodyArgumentDeclaration"},vU={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointRequestBodyVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:wt,parent:mU},TU={constant:!0,id:"getCompanyByIdEndpointRequestBodyArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the request.",type:n.ArgumentDeclaration,writesValues:[],name:"Request body",defaultValue:null,dataType:vU,implements:Wd,index:3,required:!0,parent:hU},EU={id:"getCompanyByIdEndpointResponseCodeReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseCodeReturnDeclaration"},IU={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:EU},AU={id:"getCompanyByIdEndpointReturnStatementRef",type:n.GenericReference,version:"1",entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},bU={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseCodeReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A standarized number that represents the status of the response. 200 for OK, 404 for not found, 500 for server error, etc.",type:n.ReturnDeclaration,name:"Response code",defaultValue:null,dataType:IU,implements:zd,readsValue:null,required:!0,index:0,parent:AU},RU={id:"getCompanyByIdEndpointResponseHeadersDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},DU={id:"getCompanyByIdEndpointResponseHeadersReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},OU={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointResponseHeadersDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:wt,asType:!1,parent:DU},PU={id:"getCompanyByIdEndpointReturnStatementRefTwo",type:n.GenericReference,version:"1",entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},wU={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseHeadersReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:n.ReturnDeclaration,name:"Response headers",defaultValue:{id:"getCompanyByIdEndpointResponseHeadersDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:RU,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:OU,implements:Yd,readsValue:null,required:!0,index:1,parent:PU},CU={id:"getCompanyByIdEndpointResponseBodyReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseBodyReturnDeclaration"},VU={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"getCompanyByIdEndpointResponseBodyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:wt,parent:CU},BU={id:"getCompanyByIdEndpointReturnStatementRefThree",type:n.GenericReference,version:"1",entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},_U={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseBodyReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the response.",type:n.ReturnDeclaration,name:"Response body",implements:Hd,defaultValue:null,dataType:VU,readsValue:null,required:!0,index:2,parent:BU},MU={id:"getCompanyByIdEndpointReturnStatementCallerRef",type:n.GenericReference,entityId:"getCompanyByIdEndpointReachedEntityEvent",version:"1",entityType:n.FunctionDeclaration},NU={id:"getCompanyByIdEndpointReachedEntityEventRefFive",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"};n.ReturnStatement;const LU={id:"endpointBuiltInBaseEntityRefFour",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:zo},jU={id:"getCompanyByIdEndpointReachedEntityEvent",name:"Endpoint reached",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.FunctionDeclaration,inputs:[oU,dU,yU,TU],description:"Fired when the endpoint is reached.",calls:[],collapsed:!1,implements:Kd,index:0,private:!1,x:0,y:0,parent:LU},UU={id:"getCompanyByIdEndpointPathPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointPathProperty"},$U={id:"getCompanyByIdEndpointPathPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointPathProperty"},gU={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"getCompanyByIdEndpointPathPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:$U},GU={id:"getCompanyByIdEndpointBaseEntityRefTwo",type:n.GenericReference,version:"1",entityType:n.DefinitionEntity,entityId:zo},FU={constant:!1,id:"getCompanyByIdEndpointPathProperty",hidden:!1,required:!0,name:"Path",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,static:!0,implements:kd,defaultValue:{id:"getCompanyByIdEndpointPathPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"/company/{id}",parent:UU,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:gU,index:1,description:"Path to the endpoint, for example /api/users, or /api/users/{id}, or /api/users/{id}/:name. The path can contain parameters, which are defined by curly braces, and will be passed to the endpoint event as variables with the same name.",parent:GU},xU={id:"getCompanyByIdEndpointMethodPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointMethodProperty"},kU={id:"getCompanyByIdEndpointMethodPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointMethodProperty"},ZU={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"getCompanyByIdEndpointMethodPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:nr,isList:!0,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:kU},qU={id:"getCompanyByIdEndpointBaseEntityRefThree",type:n.GenericReference,version:"1",entityType:n.DefinitionEntity,entityId:zo},JU={constant:!1,hidden:!1,required:!0,id:"getCompanyByIdEndpointMethodProperty",name:"Method",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,static:!0,implements:Zd,index:0,defaultValue:{id:"getCompanyByIdEndpointMethodPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:L.Enum,parent:xU,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:ZU,description:null,parent:qU},SU={type:n.GenericReference,id:"6a905153-8aa8-4424-bd7b-6415731a2725",version:"1",entityType:n.Project,entityId:fe},WU={type:n.DefinitionEntity,id:zo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Get given company data by id",description:null,properties:[FU,JU],methods:[jU],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[ni],x:0,y:0,parent:SU},zU={id:"plant-prototype-database-property-ref-id",type:n.GenericReference,entityId:"plant-prototype-database-property-id",version:"1",entityType:n.Property},YU={id:"plant-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"plant-prototype-database-property-id",version:"1",entityType:n.Property},HU={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"plant-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Dt,asType:!1,parent:zU},KU={id:"plant-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"plant-entity-id",version:"1",entityType:n.DefinitionEntity},XU={constant:!1,hidden:!1,required:!0,id:"plant-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Yn,static:!0,index:0,defaultValue:{id:"plant-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:Au,autogeneration:null,parent:YU},dataType:HU,description:"The database that the entity belongs to.",parent:KU},QU={type:n.GenericReference,id:"plant-name-property-ref-id",version:"1",entityType:n.Property,entityId:"plant-name-property-id"},e2={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"plant-name-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:QU},t2={type:n.GenericReference,id:"animal-name-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"plant-entity-id"},i2={constant:!1,hidden:!1,required:!0,type:n.Property,id:"plant-name-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the plant",defaultValue:null,implements:null,static:!1,private:!1,index:0,dataType:e2,abstract:!1,parent:t2},r2={type:n.GenericReference,id:"plant-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},n2={type:n.DefinitionEntity,id:"plant-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Plant",description:"A living creature that is not an animal",abstract:!1,static:!1,abstractMethods:[],properties:[XU,i2],methods:[],extends:[],implements:[_t],x:0,y:0,parent:r2},s2={id:"product-prototype-database-property-ref-id",type:n.GenericReference,entityId:"product-prototype-database-property-id",version:"1",entityType:n.Property},a2={id:"product-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"product-prototype-database-property-id",version:"1",entityType:n.Property},o2={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"product-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Dt,asType:!1,parent:s2},l2={id:"product-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",entityType:n.DefinitionEntity},d2={constant:!1,hidden:!1,required:!0,id:"product-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Yn,static:!0,index:0,defaultValue:{id:"product-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:bu,autogeneration:null,parent:a2},dataType:o2,description:"The database that the entity belongs to.",parent:l2},u2={type:n.GenericReference,id:"13a4045e-dcb0-4159-8d33-10a646078b5a",version:"1",entityType:n.Property,entityId:"d519c26a-15b8-40d8-ad09-13fa9342e9ba"},p2={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"7449779e-1d4e-409c-81c6-4b611336ed18",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:u2},c2={type:n.GenericReference,id:"0969562f-d836-406f-8b48-dd9d417fbe72",version:"1",entityType:n.DefinitionEntity,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c"},f2={constant:!1,hidden:!1,required:!0,type:n.Property,id:"d519c26a-15b8-40d8-ad09-13fa9342e9ba",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the product",index:0,implements:null,static:!1,private:!1,defaultValue:null,dataType:p2,abstract:!1,parent:c2},y2={type:n.GenericReference,id:"833a5425-7bd0-41dd-9e97-e018acce9592",version:"1",entityType:n.Project,entityId:fe},h2={id:"product-prototype-primary-key-property-data-type-ref-id",type:n.GenericReference,entityId:"product-prototype-primary-key-property-id",version:"1",entityType:n.Property},m2={id:"product-prototype-primary-key-property-ref-id",type:n.GenericReference,entityId:"product-prototype-primary-key-property-id",version:"1",entityType:n.Property},v2={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"product-prototype-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:sr,asType:!1,parent:m2},T2={id:"product-prototype-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",entityType:n.DefinitionEntity},E2={constant:!1,hidden:!1,required:!0,id:"product-prototype-primary-key-property-id",name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:"product-prototype-primary-key-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.UUID,value:null,parent:h2,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:v2,description:"A property with a unique value for the entity, that can be used to identify the entity among other entities of the same type.",parent:T2},I2={type:n.DefinitionEntity,id:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Product",description:"A product that can be sold",implements:[_t,mi],extends:[],abstract:!1,static:!1,abstractMethods:[],properties:[E2,d2,f2],methods:[],x:0,y:0,parent:y2},ls="project-loaded-event-id",pr="get-bitcoin-price-http-call-operation-id",MA="get-bitcoin-price-http-call-response-body-id",Yo="validate-bitcoin-price-response-operation-ids",A2={type:n.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:MA},b2={type:n.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Yo},NA={id:"validate-bitcoin-data-to-validate-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:pn.inputs[1],name:null,description:null,readsValue:A2,defaultValue:null,index:0,parent:b2},R2={type:n.GenericReference,id:"validate-bitcoin-type-to-match-input-map-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"validate-bitcoin-type-to-match-input-map-id"},D2={type:n.GenericReference,id:"validate-bitcoin-type-to-match-input-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Yo},O2={id:"validate-bitcoin-type-to-match-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:pn.inputs[0],name:null,description:null,readsValue:null,defaultValue:{id:"validate-bitcoin-type-to-match-input-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:TA,value:null,parent:R2,autogeneration:null},index:0,parent:D2},P2={type:n.GenericReference,id:"validate-bitcoin-validated-entity-output-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Yo},w2={id:"validate-bitcoin-validated-entity-output-map-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:pn.outputs[0],writesValues:[],index:0,parent:P2},C2={type:n.GenericReference,id:"validate-bitcoin-price-response-operation-parent-ref-id",version:"1",entityType:n.GlobalEvent,entityId:ls},V2={type:n.GenericReference,id:"validate-bitcoin-price-response-operation-called-by-ref-id",version:"1",entityType:n.Operation,entityId:pr},B2={type:n.Operation,id:Yo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:pn,inputs:[O2,NA],outputs:[w2],process:null,successCalls:[],errorCalls:[],error:null,x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[V2],parent:C2},_2={type:n.GenericReference,id:"96edb661-3f36-406c-8921-f1679dd796a3",version:"1",entityType:n.FunctionCall,entityId:pr},M2={id:"c93e1393-9b5e-4de2-b8da-7eae647d715a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Qa,name:null,description:null,readsValue:null,defaultValue:null,index:0,parent:_2},N2={type:n.GenericReference,id:"40312b28-71b8-4b01-a654-58b87191939d",version:"1",entityType:n.FunctionCall,entityId:pr},L2={type:n.GenericReference,id:"6ea96c7d-02a7-4971-82ad-2f32a0fec8b4",version:"1",entityType:n.InputMap,entityId:"9f21cbac-5a83-4983-8923-9224ffd3ba9f"},j2={id:"9f21cbac-5a83-4983-8923-9224ffd3ba9f",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:eo,name:null,description:null,readsValue:null,defaultValue:{id:"get-bitcoin-price-http-request-url-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://api.coindesk.com/v1/bpi/currentprice.json",name:L.String,parent:L2,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:1,parent:N2},U2={type:n.GenericReference,id:"2610bf4a-c8a2-4746-b6cc-eb15f7fa8e9c",version:"1",entityType:n.FunctionCall,entityId:pr},$2={id:"ffb3cd9d-c955-4104-bc7b-299120fe4ede",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:to,name:null,description:null,readsValue:null,defaultValue:null,index:2,parent:U2},g2={type:n.GenericReference,id:"bfd29a6a-671a-448c-9f2f-f8c7e4ad8349",version:"1",entityType:n.FunctionCall,entityId:pr},G2={id:"412bf1f3-1a8e-4665-a95f-82117540e34e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:io,name:null,description:null,readsValue:null,defaultValue:null,index:3,parent:g2},F2={type:n.GenericReference,id:"616a15f3-c224-4b11-b95c-63314edef409",version:"1",entityType:n.FunctionCall,entityId:pr},x2={id:"4dd4651c-02e4-45f1-b50f-824f3bcb1648",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:no,writesValues:[],index:1,parent:F2},k2={type:n.GenericReference,id:"28793b68-4d7e-4826-aee1-f201a3499faf",version:"1",entityType:n.FunctionCall,entityId:pr},Z2={id:"94fe9d35-4dd4-4729-a50c-5283ccd7e661",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:ro,writesValues:[],index:0,parent:k2},q2={type:n.GenericReference,id:"f13e04b2-49b4-4c69-85b8-cbbafafa3524",version:"1",entityType:n.FunctionCall,entityId:pr},J2={id:MA,type:n.OutputMap,defaultValue:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:so,writesValues:[NA],index:2,parent:q2},S2={type:n.GenericReference,id:"6148d6d0-caaa-45fc-b601-ff2493dfc60f",version:"1",entityType:n.GlobalEvent,entityId:ls},W2={type:n.GenericReference,id:"b115f084-807b-44b3-ae01-b69cc342f761",version:"1",entityType:n.GlobalEvent,entityId:ls},z2={type:n.Operation,id:pr,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ms,inputs:[M2,j2,$2,G2],outputs:[Z2,x2,J2],process:null,parent:W2,calledByError:[],calledByEntry:[S2],calledBySuccess:[],successCalls:[B2],errorCalls:[],error:null,x:0,y:0},Y2={type:n.GenericReference,id:"24e76019-3f94-475b-91ce-297f76bbc224",version:"1",entityType:n.GlobalEvent,entityId:ls},H2={type:n.GenericReference,id:"0eac8e29-cdf2-42f8-8ea7-ad76d4d79abe",version:"1",entityType:n.GlobalEvent,entityId:ls},K2={process:null,type:n.FunctionCall,id:"2d2e7593-bfbf-457c-a607-5fce18eef457",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:wu,inputs:[],outputs:[],calledByError:[],calledByEntry:[Y2],calledBySuccess:[],parent:H2,successCalls:[],errorCalls:[],error:null,x:0,y:0},X2={id:"793b5999-a9da-47fb-9665-0c17ebc6d5c9",type:n.GenericReference,version:"1",entityType:n.Project,entityId:fe},Q2={type:n.GlobalEvent,id:ls,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ir.PROJECT_PUBLICATION_COMPLETED,description:null,collapsed:!1,implements:To,parent:X2,inputs:[],calls:[K2,z2],x:0,y:0},vi="abort-execution-func-declaration-id",na="abort-execution-func-exec-var-declaration-id",Cu="abort-execution-func-small-wait-op-id",Vu="abort-execution-func-long-wait-op-id",LA="abort-execution-func-long-wait-process-output-id",jA="abort-execution-func-exec-var-instance-write-id",UA="abort-execution-func-long-wait-return-stmt-id",$A="abort-execution-func-small-wait-return-stmt-id",e$="abort-execution-func-exec-var-instance-abort-call-id",Bu="abort-execution-func-exec-var-instance-abort-internal-call-id",_u="abort-execution-func-exec-second-wait-op-id",t$={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},i$={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},r$={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"short-wait-return-statement-returned-hello-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:t$},n$={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:$A},s$={constant:!0,isError:!1,id:"short-wait-return-statement-returned-hello-string-id",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Return 1",description:"A random string that is returned by the function",defaultValue:{id:"short-wait-return-statement-returned-hello-string-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"Hello 2",autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:i$},dataType:r$,implements:null,readsValue:null,required:!0,index:0,parent:n$},a$={type:n.GenericReference,id:"short-wait-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:_u},o$={type:n.GenericReference,id:"short-wait-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},l$={type:n.ReturnStatement,id:$A,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[s$],calledByError:[],calledByEntry:[],calledBySuccess:[a$],throws:null,x:0,y:0,parent:o$},d$={type:n.GenericReference,id:"second-wait-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"second-wait-argument-map-id"},u$={type:n.GenericReference,id:"second-wait-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:_u},p$={id:"second-wait-argument-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:dn,name:null,description:null,readsValue:null,defaultValue:{id:"second-wait-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:2e3,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:L.Number,parent:d$},index:0,parent:u$},c$={type:n.GenericReference,id:"small-wait-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},f$={type:n.GenericReference,id:"small-wait-called-by-ref-one-id",version:"1",entityType:n.InternalCall,entityId:Bu},y$={id:_u,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Wt,inputs:[p$],outputs:[],process:null,successCalls:[l$],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[f$],error:null,parent:c$},h$={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-one-id",version:"1",entityType:n.VariableInstance,entityId:jA},m$={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-two-id",version:"1",entityType:n.Operation,entityId:Cu},v$={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-main-project-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},T$={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id-2",version:"1",entityType:n.VariableDeclaration,entityId:na},E$={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-internal-call-ref-one-id",version:"1",entityType:n.InternalCall,entityId:Bu},I$={id:e$,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:T$,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[E$],parent:v$},gA={id:Bu,type:n.InternalCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[],outputs:[],declaration:iu,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[h$,m$],successCalls:[y$],errorCalls:[],error:null,index:0,parent:I$},A$={type:n.GenericReference,id:"abort-exec-func-var-write-instance-main-project-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},b$={type:n.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-one-id",version:"1",entityType:n.VariableDeclaration,entityId:na},R$={type:n.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-two-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},D$={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:na},O$={type:n.GenericReference,id:"abort-exec-func-var-write-instance-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:LA},Mu={id:jA,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:D$,inputs:[],outputs:[],defaultValue:null,calledByError:[],calledByEntry:[R$],calledBySuccess:[b$],successCalls:[gA],errorCalls:[],x:0,y:0,readsValue:O$,writesValues:[],internalCalls:[],parent:A$},P$={type:n.GenericReference,id:"abort-exec-func-var-decl-datatype-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:na};n.GenericReference,n.DataType;const w$={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"abort-exec-func-var-decl-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:vo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:P$},C$={type:n.GenericReference,id:"abort-exec-func-var-decl-main-project-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},V$={type:n.GenericReference,id:"abort-exec-func-var-decl-called-by-ref-one-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},B$={constant:!0,required:!0,id:na,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Execution in progress",description:"A variable that holds an ongoing execution to abort it if needed",defaultValue:null,dataType:w$,inputs:[],outputs:[],calledByError:[],calledByEntry:[V$],calledBySuccess:[],successCalls:[Mu],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:C$},_$={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},M$={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},N$={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"long-wait-return-statement-returned-hello-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:_$},L$={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:UA},j$={constant:!0,isError:!1,id:"long-wait-return-statement-returned-hello-string-id",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Return 2",description:"A random string that is returned by the function",implements:null,defaultValue:{id:"long-wait-return-statement-returned-hello-string-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"Hello 1",autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:M$},dataType:N$,readsValue:null,required:!0,index:0,parent:L$},U$={type:n.GenericReference,id:"long-wait-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Vu},$$={type:n.GenericReference,id:"long-wait-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},g$={type:n.ReturnStatement,id:UA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[j$],calledByError:[],calledByEntry:[],calledBySuccess:[U$],throws:null,x:0,y:0,parent:$$},G$={type:n.GenericReference,id:"long-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"long-argument-map-id"},GA={type:n.GenericReference,id:"long-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Vu},F$={id:"long-argument-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:dn,name:null,description:null,readsValue:null,defaultValue:{id:"long-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:1500,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:L.Number,parent:G$},index:0,parent:GA},x$={type:n.GenericReference,id:"long-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},k$={type:n.GenericReference,id:"long-called-by-ref-one-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},Z$={id:LA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Eo,writesValues:[Mu],index:0,parent:GA},q$={id:Vu,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Wt,inputs:[F$],outputs:[],process:Z$,successCalls:[g$],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[k$],calledBySuccess:[],error:null,parent:x$},J$={type:n.GenericReference,id:"small-wait-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"small-wait-argument-map-id"},S$={type:n.GenericReference,id:"small-wait-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Cu},W$={id:"small-wait-argument-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:dn,name:null,description:null,readsValue:null,defaultValue:{id:"small-wait-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:500,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:L.Number,parent:J$},index:0,parent:S$},z$={type:n.GenericReference,id:"small-wait-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},Y$={type:n.GenericReference,id:"small-wait-called-by-ref-one-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},H$={id:Cu,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Wt,inputs:[W$],outputs:[],process:null,successCalls:[gA],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[Y$],calledBySuccess:[],error:null,parent:z$},K$={type:n.GenericReference,id:"abort-execution-func-decl-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},FA={id:vi,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Test aborting execution",description:"Executes a wait and then aborts the execution of that wait",inputs:[],calls:[H$,B$,Mu,q$],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:K$},X$={type:n.GenericReference,id:"call-execution-abort-func-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},Q$={id:"call-execution-abort-func-id",type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:FA,inputs:[],process:null,outputs:[],successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:X$},Ho="manual-hello-world-loop-func-decl-id",xA="manual-hello-world-loop-func-return-statement-id",Si="manual-hello-world-loop-id",sa="manual-hello-world-loop-body-id",Nu="manual-hello-world-loop-break-statement-id",aa="manual-hello-world-loop-current-iteration-number-output-map-id",Lu="manual-hello-world-loop-previous-iterations-results-output-map-id",ju="assembled-hello-world-text-output-id",e4="assembled-hello-world-list-output-id",oa="iteration-number-is-equal-or-greater-than-10-condition-id",Ko="join-hello-world-and-number-operation-id",Xo="append-string-to-list-operation-id",kA="hello-world-loop-output-map-id",t4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-parent-ref",version:"1",entityType:n.ReturnStatement,entityId:xA},i4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type-parent-ref",version:"1",entityType:n.ReturnDeclaration,entityId:"manual-hello-world-loop-function-declaration-output-declaration"},r4={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!0,asType:!1,parent:i4},n4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-reads-value-ref",version:"1",entityType:n.OutputMap,entityId:kA},ZA={constant:!0,isError:!1,id:"manual-hello-world-loop-function-declaration-output-declaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Results",description:null,defaultValue:null,dataType:r4,implements:null,readsValue:n4,required:!0,index:0,parent:t4},s4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-return-statement-called-by-ref",version:"1",entityType:n.Loop,entityId:Si},a4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref",version:"1",entityType:n.FunctionDeclaration,entityId:Ho},o4={type:n.ReturnStatement,id:xA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[ZA],calledByError:[],calledByEntry:[],calledBySuccess:[s4],parent:a4,throws:null,x:0,y:0},l4={type:n.GenericReference,id:"hello-world-loop-break-statement-ref-id",version:"1",entityType:n.BreakStatement,entityId:Nu},qA={constant:!0,isError:!1,id:"hello-world-loop-break-statement-output-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Iteration result",description:null,defaultValue:null,dataType:null,readsValue:null,implements:null,required:!0,index:0,parent:l4},d4={type:n.GenericReference,id:"hello-world-loop-break-statement-counter-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:aa},u4={type:n.GenericReference,id:"hello-world-loop-break-statement-counter-ref-id",version:"1",entityType:n.BreakStatement,entityId:Nu},JA={constant:!0,isError:!1,id:"hello-world-loop-break-statement-counter-output-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Iteration counter",description:null,implements:null,defaultValue:null,dataType:null,readsValue:d4,required:!0,index:1,parent:u4},p4={type:n.GenericReference,id:"hello-world-loop-break-statement-called-by-ref-id",version:"1",entityType:n.Condition,entityId:oa},c4={type:n.GenericReference,id:"hello-world-loop-break-statement-parent-ref-id",version:"1",entityType:n.Loop,entityId:Si},f4={type:n.BreakStatement,id:Nu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[qA,JA],calledByError:[],calledByEntry:[],calledBySuccess:[p4],parent:c4,throws:null,x:0,y:0};n.GenericReference,n.InputMap;const y4={type:n.GenericReference,id:"append-string-to-list-base-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Xo},h4={type:n.GenericReference,id:"base-string-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Lu},SA={id:"append-string-to-list-base-string-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Od,name:null,description:null,readsValue:h4,defaultValue:null,index:0,parent:y4},m4={type:n.GenericReference,id:"assembly-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Xo},v4={id:e4,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[qA],declaration:Bs,index:0,parent:m4},T4={type:n.GenericReference,id:"append-string-to-list-called-by-ref-id",version:"1",entityType:n.Condition,entityId:oa},E4={type:n.GenericReference,id:"latest-string-to-add-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:ju},I4={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:n.Operation,entityId:Xo},WA={id:"latest-string-to-add-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Pd,name:null,description:null,readsValue:E4,defaultValue:null,index:1,parent:I4},A4={type:n.GenericReference,id:"append-string-to-list-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Si},b4={type:n.Operation,id:Xo,declaration:Xa,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[SA,WA],outputs:[v4],calledByError:[],process:null,calledByEntry:[],calledBySuccess:[T4],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:A4},R4={type:n.GenericReference,id:"hello-world-loop-continue-statement-ref-id",version:"1",entityType:n.ContinueStatement,entityId:"hello-world-loop-continue-statement"},D4={type:n.GenericReference,id:"hello-world-loop-continue-statement-output-data-type-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"hello-world-loop-continue-statement-output-id"},O4={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"hello-world-loop-continue-statement-output-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:D4},P4={type:n.GenericReference,id:"hello-world-loop-continue-statement-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:ju},zA={constant:!0,isError:!1,id:"hello-world-loop-continue-statement-output-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Iteration result",description:null,defaultValue:null,implements:null,dataType:O4,readsValue:P4,required:!0,index:0,parent:R4},w4={type:n.GenericReference,id:"hello-world-loop-continue-statement-called-by-ref-id",version:"1",entityType:n.Condition,entityId:oa},C4={type:n.GenericReference,id:"hello-world-loop-continue-statement-parent-ref-id",version:"1",entityType:n.Loop,entityId:Si},V4={type:n.ContinueStatement,id:"hello-world-loop-continue-statement",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[zA],calledBySuccess:[],calledByError:[w4],calledByEntry:[],parent:C4,throws:null,x:0,y:0},B4={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:sa},_4={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-parent-ref-id",version:"1",entityType:n.Loop,entityId:Si},M4={type:n.GenericReference,id:"current-iteration-number-to-check-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:aa},YA={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-ref-two-id",version:"1",entityType:n.Condition,entityId:oa},N4={id:"current-iteration-number-to-check-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Xn.inputs[0],name:null,description:null,readsValue:M4,index:0,defaultValue:null,parent:YA},L4={type:n.GenericReference,id:"max-num-iterations-value-map-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"max-num-iterations-value-map-id"},j4={id:"max-num-iterations-value-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Xn.inputs[1],name:null,description:null,readsValue:null,index:1,defaultValue:{id:"max-num-iterations-value-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:10,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:L4},parent:YA},U4={type:n.Condition,id:oa,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Xn,inputs:[N4,j4],calledByError:[],calledByEntry:[B4],calledBySuccess:[],successCalls:[f4,b4],errorCalls:[V4],x:0,y:0,parent:_4},$4={type:n.GenericReference,id:"base-string-map-ref-id",version:"1",entityType:n.InputMap,entityId:"join-hello-world-and-number-base-string-map-id"},g4={type:n.GenericReference,id:"join-hello-world-and-number-base-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Ko},G4={id:"join-hello-world-and-number-base-string-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ha,name:null,description:null,readsValue:null,defaultValue:{id:"join-hello-world-and-number-base-string-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Hello world ",name:L.String,parent:$4,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:0,parent:g4},F4={type:n.GenericReference,id:"assembly-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Ko},x4={id:ju,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[WA,zA],declaration:Bs,index:0,parent:F4},k4={type:n.GenericReference,id:"join-hello-world-and-number-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:sa},Z4={type:n.GenericReference,id:"current-iteration-number-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:aa},q4={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:n.Operation,entityId:Ko},HA={id:"current-iteration-number-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Ka,name:null,description:null,readsValue:Z4,defaultValue:null,index:1,parent:q4},J4={type:n.GenericReference,id:"join-hello-world-and-number-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Si},S4={type:n.Operation,id:Ko,declaration:_s,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[G4,HA],outputs:[x4],process:null,calledByError:[],calledByEntry:[k4],calledBySuccess:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:J4},W4={id:"manual-hello-world-loop-iterations-results-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:Lu,version:"1",entityType:n.ArgumentDeclaration},z4={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"manual-hello-world-loop-iterations-results-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!0,entity:null,asType:!1,parent:W4},Y4={id:"manual-hello-world-loop-previous-iterations-results-output-map-parent-ref-id",type:n.GenericReference,entityId:sa,version:"1",entityType:n.FunctionDeclaration},H4={constant:!0,id:Lu,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Previous iterations results",description:"The results of the previous iterations of the loop.",required:!0,defaultValue:null,dataType:z4,implements:null,writesValues:[SA],index:1,parent:Y4},K4={id:"manual-hello-world-loop-current-iteration-number-output-map-parent-ref-id",type:n.GenericReference,entityId:sa,version:"1",entityType:n.FunctionDeclaration},X4={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:aa,version:"1",entityType:n.ArgumentDeclaration};n.DataType;const Q4={constant:!0,id:aa,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the loop. Starts at 1.",required:!0,implements:Nd,defaultValue:null,dataType:null,writesValues:[HA,JA],index:0,parent:K4},eg={id:"manual-flow-loop-body-parent-ref-id",type:n.GenericReference,entityId:Si,version:"1",entityType:n.Loop},tg={id:sa,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called multiple times, once for each iteration of the loop.",inputs:[Q4,H4],calls:[U4,S4],implements:oo,collapsed:!1,private:!1,index:0,x:0,y:0,parent:eg},ig={type:n.GenericReference,id:"hello-world-loop-iteration-result-inline-output-declaration-parent-ref-id",version:"1",entityType:n.Loop,entityId:Si},KA={id:"hello-world-loop-iteration-result-inline-output-declaration-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ValueDescriptor,name:"Iteration result",defaultValue:null,description:null,dataType:null,required:!0,parentRelationType:N.FixedReturns,index:0,parent:ig},rg={type:n.GenericReference,id:"hello-world-loop-break-statement-output-map-parent-ref-id",version:"1",entityType:n.Loop,entityId:Si},ng={type:n.OutputMap,id:kA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:KA,writesValues:[ZA],index:0,parent:rg},sg={id:"manual-hello-world-loop-parent-ref-id",type:n.GenericReference,entityId:Ho,version:"1",entityType:n.FunctionDeclaration},ag={id:"manual-hello-world-loop-called-by-ref-id",type:n.GenericReference,entityId:Ho,version:"1",entityType:n.FunctionDeclaration},og={id:Si,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ao,inputs:[],outputsDeclarations:[KA],outputs:[ng],body:tg,successCalls:[o4],errorCalls:[],process:null,error:null,calledByError:[],calledByEntry:[ag],calledBySuccess:[],x:0,y:0,parent:sg},lg={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},XA={type:n.FunctionDeclaration,id:Ho,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manual hello world loop",description:null,inputs:[],calls:[og],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:lg},dg={type:n.GenericReference,id:"call-hello-world-loop-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},ug={id:"call-hello-world-loop-id",type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:XA,inputs:[],outputs:[],process:null,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:dg},cr="company-dto-function-declaration-id",Uu="company-dto-func-declaration-argument-dcl-id",Wi="company-dto-function-company-variable-id",Lr="company-dto-function-company-dto-variable-id",ds="iterate-over-employee-list-loop-id",QA="iterate-over-employee-list-loop-employee-dto-output-map-id",$u="iterate-over-employee-list-loop-body-current-employee-argument-declaration-id",Qo="iterate-over-employee-list-loop-body-map-employee-dto-function-call-id",eb="iterate-over-employee-list-continue-statement-employee-dto-output-decl-id",tb="iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-id",ib="iterate-over-employee-list-continue-statement-id",el="iterate-over-employee-list-loop-body-id",rb="company-dto-func-declaration-return-statement-id",nb="company-dto-func-declaration-return-decl-id",sb="company-dto-func-declaration-company-variable-id-output-map-id",ab="company-dto-func-declaration-company-variable-employess-output-map-id",ob="company-dto-func-declaration-company-variable-name-output-map-id",pg="company-dto-func-declaration-company-dto-variable-input-map-id",cg="company-dto-func-declaration-company-dto-variable-employess-input-map-id",fg="company-dto-func-declaration-company-dto-variable-name-input-map-id",tl="company-dto-func-declaration-owner-variable-id",yg="company-dto-func-declaration-company-dto-variable-owner-input-map-id",lb="company-dto-func-declaration-company-variable-owner-output-map-id",db="company-dto-func-declaration-owner-variable-id-output-map-id",il="company-dto-func-declaration-bank-account-variable-id",hg="company-dto-func-declaration-company-dto-variable-bank-account-input-map-id",ub="company-dto-func-declaration-company-variable-bank-account-output-map-id",pb="company-dto-func-declaration-bank-account-variable-id-output-map-id",mg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-owner-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:db},vg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-owner-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Lr},cb={id:yg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"owner_id",description:null,defaultValue:null,index:5,readsValue:mg,parent:vg},Tg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:pb},Eg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Lr},fb={id:hg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"bank_account_id",description:null,defaultValue:null,index:4,readsValue:Tg,parent:Eg},Ig={type:n.GenericReference,id:"company-dto-func-company-dto-variable-name-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:ob},Ag={type:n.GenericReference,id:"company-dto-func-company-dto-variable-name-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Lr},yb={id:fg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"name",description:null,defaultValue:null,index:3,readsValue:Ig,parent:Ag},bg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-employess-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:QA},Rg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-employess-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Lr},hb={id:cg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"employees",description:null,defaultValue:null,index:2,readsValue:bg,parent:Rg},Dg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:sb},Og={type:n.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Lr},mb={id:pg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"id",description:"The ID of the company",defaultValue:null,index:1,readsValue:Dg,parent:Og},Pg={type:n.GenericReference,id:"company-dto-func-returned-company-dto-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:nb},wg={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"company-dto-func-returned-company-dto-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!1,parent:Pg},Cg={type:n.GenericReference,id:"company-dto-func-returned-company-dto-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:rb},Vg={type:n.GenericReference,id:"company-dto-func-returned-company-dto-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Lr},vb={constant:!0,isError:!1,id:nb,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",defaultValue:null,implements:null,dataType:wg,readsValue:Vg,required:!0,index:0,parent:Cg},Bg={type:n.GenericReference,id:"company-dto-func-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Lr},_g={type:n.GenericReference,id:"company-dto-func-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:cr},Tb={type:n.ReturnStatement,id:rb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[vb],calledByError:[],calledByEntry:[],calledBySuccess:[Bg],throws:null,x:0,y:0,parent:_g},Mg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:cr},Ng={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-one-id",version:"1",entityType:n.VariableDeclaration,entityId:il},Lg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-two-id",version:"1",entityType:n.VariableDeclaration,entityId:tl},jg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-three-id",version:"1",entityType:n.VariableDeclaration,entityId:ds},gu={constant:!0,required:!0,id:Lr,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",dataType:null,description:"A variable holding the data of a mapped company DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[Ng,Lg,jg],successCalls:[Tb],errorCalls:[],readsValue:null,writesValues:[vb],inputs:[mb,yb,fb,cb,hb],outputs:[],internalCalls:[],parent:Mg,x:0,y:0},bn="employee-dto-func-declaration-id",Gu="employee-dto-func-declaration-argument-dcl-id",Eb="employee-dto-func-declaration-return-statement-id",Ib="employee-dto-func-declaration-return-decl-id",Rn="employee-dto-func-declaration-employee-variable-id",Dn="employee-dto-func-declaration-employee-dto-variable-id",rl="employee-dto-func-declaration-manager-variable-id",Ab="employee-dto-func-declaration-employee-variable-id-output-map-id",bb="employee-dto-func-declaration-employee-variable-birth-date-output-map-id",Rb="employee-dto-func-declaration-employee-variable-department-output-map-id",Db="employee-dto-func-declaration-employee-variable-manager-output-map-id",Ob="employee-dto-func-declaration-manager-variable-id-output-map-id",Ug="employee-dto-func-declaration-employee-dto-variable-input-map-id",$g="employee-dto-func-declaration-employee-dto-variable-birth-date-input-map-id",gg="employee-dto-func-declaration-employee-dto-variable-department-input-map-id",Gg="employee-dto-func-declaration-employee-dto-variable-manager-input-map-id",Fg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Ob},xg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Dn},Pb={id:Gg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"manager_id",description:null,defaultValue:null,index:4,readsValue:Fg,parent:xg},kg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-department-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Rb},Zg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Dn},wb={id:gg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"department_name",description:null,defaultValue:null,index:3,readsValue:kg,parent:Zg},qg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:bb},Jg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Dn},Cb={id:$g,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"birth_date",description:null,defaultValue:null,index:2,readsValue:qg,parent:Jg},Sg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Ab},Wg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Dn},Vb={id:Ug,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:Sg,parent:Wg},zg={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:Ib},Yg={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"employee-dto-func-returned-employee-dto-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!1,parent:zg},Hg={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:Eb},Kg={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Dn},Bb={constant:!0,isError:!1,id:Ib,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",description:"Output the employee data in the format that it will be sent through an HTTP request.",defaultValue:null,dataType:Yg,implements:null,readsValue:Kg,required:!0,index:0,parent:Hg},Xg={type:n.GenericReference,id:"employee-dto-func-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Dn},Qg={type:n.GenericReference,id:"employee-dto-func-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:bn},_b={type:n.ReturnStatement,id:Eb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Bb],calledByError:[],calledByEntry:[],calledBySuccess:[Xg],throws:null,x:0,y:0,parent:Qg},eG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:bn},tG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:rl},iG={constant:!0,required:!0,id:Dn,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[tG],successCalls:[_b],errorCalls:[],readsValue:null,writesValues:[Bb],inputs:[Vb,Cb,wb,Pb],outputs:[],internalCalls:[],parent:eG,x:0,y:0},rG={type:n.GenericReference,id:"employee-dto-func-manager-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:rl},nG={id:Ob,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:mi.properties[0],index:0,writesValues:[Pb],parent:rG},sG={type:n.GenericReference,id:"employee-dto-func-manager-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:rl},aG={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"employee-dto-func-manager-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,asType:!1,isList:!1,parent:sG},oG={type:n.GenericReference,id:"employee-dto-func-manager-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Db},lG={type:n.GenericReference,id:"employee-dto-func-manager-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:bn};n.GenericReference,n.VariableDeclaration;const Mb={constant:!0,required:!0,id:rl,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manager",description:"A variable holding an inherited manager",defaultValue:null,dataType:aG,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[iG],errorCalls:[],readsValue:oG,writesValues:[],inputs:[],outputs:[nG],internalCalls:[],parent:lG,x:0,y:0},dG={type:n.GenericReference,id:"employee-dto-func-employee-variable-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Rn},uG={id:Db,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Di.properties[2],index:3,writesValues:[Mb],parent:dG},pG={type:n.GenericReference,id:"employee-dto-func-employee-variable-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Rn},cG={id:Rb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Di.properties[0],index:2,writesValues:[wb],parent:pG},fG={type:n.GenericReference,id:"employee-dto-func-employee-variable-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Rn},yG={id:bb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Yt.properties[1],index:1,writesValues:[Cb],parent:fG},hG={type:n.GenericReference,id:"employee-dto-func-employee-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Rn},mG={id:Ab,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:mi.properties[0],index:0,writesValues:[Vb],parent:hG},vG={type:n.GenericReference,id:"employee-dto-func-employee-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Rn},TG={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"employee-dto-func-employee-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,asType:!1,isList:!1,parent:vG},EG={type:n.GenericReference,id:"employee-dto-func-employee-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:bn},IG={type:n.GenericReference,id:"employee-dto-func-employee-variable-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:Gu},AG={type:n.GenericReference,id:"employee-dto-func-employee-variable-called-by-id",version:"1",entityType:n.FunctionDeclaration,entityId:bn},Nb={constant:!0,required:!0,id:Rn,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company employee",dataType:TG,description:"A variable holding a company employee",calledByError:[],defaultValue:null,calledByEntry:[AG],calledBySuccess:[],successCalls:[Mb],errorCalls:[],readsValue:IG,writesValues:[],inputs:[],outputs:[mG,yG,cG,uG],internalCalls:[],parent:EG,x:0,y:0},bG={type:n.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-data-type-parent-ref-id",entityId:Gu,version:"1",entityType:n.ArgumentDeclaration},RG={staticEntities:!1,interactiveEntities:!0,actionEntities:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"employee-dto-func-declaration-employee-input-declaration-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,asType:!1,isList:!1,like:!1,inferred:!1,parent:bG},DG={type:n.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-parent-ref-id",entityId:bn,version:"1",entityType:n.FunctionDeclaration},OG={constant:!0,type:n.ArgumentDeclaration,id:Gu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee",description:"The employee to create a DTO for",required:!0,implements:null,defaultValue:null,dataType:RG,index:0,writesValues:[Nb],parent:DG},PG={type:n.GenericReference,id:"employee-dto-function-declaration-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},Fu={type:n.FunctionDeclaration,id:bn,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",description:"Takes a employee and returns a DTO of that employee",index:null,inputs:[OG],calls:[Nb],implements:null,collapsed:!1,private:!1,x:0,y:0,parent:PG},wG={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:eb,version:"1",entityType:n.ReturnDeclaration},CG={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:wG},VG={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-reads-value-ref-id",type:n.GenericReference,entityId:tb,version:"1",entityType:n.OutputMap},BG={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-parent-ref-id",type:n.GenericReference,entityId:ib,version:"1",entityType:n.ContinueStatement},Lb={constant:!0,isError:!1,id:eb,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",description:"The DTO of the employee entity.",defaultValue:null,readsValue:VG,dataType:CG,implements:null,required:!0,index:0,parent:BG},_G={id:"iterate-over-employee-list-continue-statement-called-by-ref-id",type:n.GenericReference,entityId:Qo,version:"1",entityType:n.FunctionCall},MG={id:"iterate-over-employee-list-continue-statement-parent-ref-id",type:n.GenericReference,entityId:ds,version:"1",entityType:n.Loop},NG={id:ib,type:n.ContinueStatement,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,calledByError:[],calledByEntry:[],calledBySuccess:[_G],outputs:[Lb],throws:null,x:0,y:0,parent:MG},LG={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-parent-ref-id",type:n.GenericReference,entityId:Qo,version:"1",entityType:n.FunctionCall},jG={id:tb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:_b.outputs[0],writesValues:[Lb],index:0,parent:LG},UG={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-reads-value-ref-id",type:n.GenericReference,entityId:$u,version:"1",entityType:n.ArgumentDeclaration},$G={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-parent-ref-id",type:n.GenericReference,entityId:Qo,version:"1",entityType:n.FunctionCall},jb={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Fu.inputs[0],readsValue:UG,index:0,defaultValue:null,parent:$G},gG={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-called-by-ref-id",type:n.GenericReference,entityId:el,version:"1",entityType:n.FunctionDeclaration},GG={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-parent-ref-id",type:n.GenericReference,entityId:el,version:"1",entityType:n.FunctionDeclaration},FG={id:Qo,type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Fu,inputs:[jb],process:null,outputs:[jG],calledByError:[],calledByEntry:[gG],calledBySuccess:[],successCalls:[NG],errorCalls:[],error:null,x:0,y:0,parent:GG},xG={type:n.GenericReference,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-parent-ref-id",entityId:$u,version:"1",entityType:n.ArgumentDeclaration},kG={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,isList:!1,asType:!1,parent:xG},ZG={id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:el,version:"1",entityType:n.FunctionDeclaration},qG={constant:!0,id:$u,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current employee",description:"The current employee entity being processed.",defaultValue:null,dataType:kG,required:!0,implements:uo,index:0,writesValues:[jb],parent:ZG},JG={id:"iterate-over-employee-list-loop-body-parent-ref-id",type:n.GenericReference,entityId:ds,version:"1",entityType:n.Loop},SG={id:el,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[qG],calls:[FG],implements:js,collapsed:!1,private:!1,index:0,x:0,y:0,parent:JG},WG={id:"iterate-over-employee-list-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:ds,version:"1",entityType:n.Loop},zG={id:"iterate-over-employee-list-loop-iteration-list-input-map-reads-value-ref-id",type:n.GenericReference,entityId:ab,version:"1",entityType:n.OutputMap},Ub={id:"iterate-over-employee-list-loop-iteration-list-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Or.inputs[0],defaultValue:null,readsValue:zG,index:0,parent:WG},YG={id:"iterate-over-employee-list-loop-parent-ref-id",type:n.GenericReference,entityId:cr,version:"1",entityType:n.FunctionDeclaration},HG={id:"iterate-over-employee-list-loop-employee-dto-output-map-parent-ref-id",type:n.GenericReference,entityId:ds,version:"1",entityType:n.Loop},KG={id:QA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Or.outputs[0],writesValues:[hb],index:0,parent:HG},XG={type:n.GenericReference,id:"iterate-over-employee-list-loop-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wi},QG={id:ds,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Or,inputs:[Ub],successCalls:[gu],errorCalls:[],outputsDeclarations:[],outputs:[KG],body:SG,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[XG],error:null,x:0,y:0,parent:YG},eF={type:n.GenericReference,id:"company-dto-func-bank-account-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:il},tF={id:pb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:mi.properties[0],index:0,writesValues:[fb],parent:eF},iF={type:n.GenericReference,id:"company-dto-func-bank-account-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:il},rF={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"company-dto-func-bank-account-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,asType:!1,isList:!1,parent:iF},nF={type:n.GenericReference,id:"company-dto-func-bank-account-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:ub},sF={type:n.GenericReference,id:"company-dto-func-bank-account-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:cr};n.GenericReference,n.VariableDeclaration;const $b={constant:!0,required:!0,id:il,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bank account",description:"A variable holding an inherited bank account",defaultValue:null,dataType:rF,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[gu],errorCalls:[],readsValue:nF,writesValues:[],inputs:[],outputs:[tF],internalCalls:[],parent:sF,x:0,y:0},aF={type:n.GenericReference,id:"company-dto-func-owner-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:tl},oF={id:db,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:mi.properties[0],index:0,defaultValue:null,writesValues:[cb],parent:aF},lF={type:n.GenericReference,id:"company-dto-func-owner-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:tl},dF={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"company-dto-func-owner-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,asType:!1,isList:!1,parent:lF},uF={type:n.GenericReference,id:"company-dto-func-owner-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:lb},pF={type:n.GenericReference,id:"company-dto-func-owner-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:cr};n.GenericReference,n.VariableDeclaration;const gb={constant:!0,required:!0,id:tl,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Owner",dataType:dF,description:"A variable holding an inherited owner",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[gu],errorCalls:[],readsValue:uF,writesValues:[],inputs:[],outputs:[oF],internalCalls:[],parent:pF,x:0,y:0},cF={type:n.GenericReference,id:"company-dto-func-company-variable-owner-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wi},fF={id:lb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Oi.properties[2],index:4,writesValues:[gb],parent:cF},yF={type:n.GenericReference,id:"company-dto-func-company-variable-bank-account-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wi},hF={id:ub,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Oi.properties[2],index:3,writesValues:[$b],parent:yF},mF={type:n.GenericReference,id:"company-dto-func-company-variable-name-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wi},vF={id:ob,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Oi.properties[0],index:2,writesValues:[yb],parent:mF},TF={type:n.GenericReference,id:"company-dto-func-company-variable-employess-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wi},EF={id:ab,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Oi.properties[3],index:1,writesValues:[Ub],parent:TF},IF={type:n.GenericReference,id:"company-dto-func-company-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wi},AF={id:sb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:mi.properties[0],index:0,writesValues:[mb],parent:IF},bF={type:n.GenericReference,id:"company-dto-func-company-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wi},RF={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"company-dto-func-company-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,asType:!1,isList:!1,parent:bF},DF={type:n.GenericReference,id:"company-dto-func-company-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:cr},OF={type:n.GenericReference,id:"company-dto-func-company-variable-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:Uu},PF={type:n.GenericReference,id:"company-dto-func-company-variable-called-by-id",version:"1",entityType:n.FunctionDeclaration,entityId:cr},Gb={constant:!0,required:!0,id:Wi,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",dataType:RF,description:"A variable holding a company",defaultValue:null,calledByError:[],calledByEntry:[PF],calledBySuccess:[],successCalls:[$b,gb,QG],errorCalls:[],readsValue:OF,writesValues:[],inputs:[],outputs:[AF,EF,vF,hF,fF],internalCalls:[],parent:DF,x:0,y:0},wF={type:n.GenericReference,id:"company-dto-func-declaration-company-input-declaration-data-type-parent-ref-id",entityId:Uu,version:"1",entityType:n.ArgumentDeclaration},CF={staticEntities:!1,interactiveEntities:!0,actionEntities:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"company-dto-func-declaration-company-input-declaration-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,asType:!1,isList:!1,like:!1,inferred:!1,parent:wF},VF={type:n.GenericReference,id:"company-dto-func-declaration-company-input-declaration-parent-ref-id",entityId:cr,version:"1",entityType:n.FunctionDeclaration},BF={constant:!0,type:n.ArgumentDeclaration,id:Uu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",description:"The company to create a DTO for",defaultValue:null,required:!0,implements:null,dataType:CF,index:0,writesValues:[Gb],parent:VF},_F={type:n.GenericReference,id:"company-dto-function-declaration-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},xu={type:n.FunctionDeclaration,id:cr,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:"Takes a company and returns a DTO of that company",inputs:[BF],calls:[Gb],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:_F},la="exec-in-parallel-operation-call-id",da="exec-sequentially-operation-call-id",Ht="concurrency-and-wait-function-declaration-id",Fb="concurrency-and-wait-return-statement-id",xb="concurrency-and-wait-return-declaration-id",ku="exec-in-parallel-argument-map-id",kb="exec-sequentially-argument-map-id",Zu="wait-for-2-seconds-operation-id",Zb="wait-for-2-seconds-argument-map-id",qu="map-company-dto-function-call-id",qb="map-company-dto-function-call-company-dto-output-map-id",nl="company-dto-variable-one-id",Ju="company-dto-variable-one-instance-id",Jb="company-dto-variable-two-id",MF={type:n.GenericReference,id:"returned-company-dto-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:xb},NF={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"returned-company-dto-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,asType:!1,isList:!1,parent:MF},LF={type:n.GenericReference,id:"returned-company-dto-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:Fb},jF={type:n.GenericReference,id:"returned-company-dto-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Jb},Sb={constant:!0,isError:!1,id:xb,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",defaultValue:null,dataType:NF,implements:null,readsValue:jF,required:!0,index:0,parent:LF},UF={type:n.GenericReference,id:"concurrency-and-wait-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Zu},$F={type:n.GenericReference,id:"concurrency-and-wait-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},gF={type:n.ReturnStatement,id:Fb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Sb],calledByError:[],calledByEntry:[],calledBySuccess:[UF],throws:null,x:0,y:0,parent:$F},GF={type:n.GenericReference,id:"company-dto-variable-two-called-by-ref-id",version:"1",entityType:n.VariableInstance,entityId:Ju},FF={type:n.GenericReference,id:"company-dto-variable-two-reads-value-ref-id",version:"1",entityType:n.VariableInstance,entityId:Ju},xF={type:n.GenericReference,id:"company-dto-variable-two-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},Wb={constant:!0,required:!0,id:Jb,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:null,defaultValue:null,dataType:null,inputs:[],outputs:[],successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[GF],internalCalls:[],writesValues:[Sb],readsValue:FF,x:0,y:0,parent:xF},kF={type:n.GenericReference,id:"company-dto-variable-one-instance-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:nl},ZF={type:n.GenericReference,id:"company-dto-variable-one-instance-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:nl},qF={type:n.GenericReference,id:"company-dto-variable-one-instance-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},JF={type:n.GenericReference,id:"company-dto-variable-one-instance-declaration-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:nl},zb={id:Ju,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:JF,inputs:[],outputs:[],successCalls:[Wb],errorCalls:[],defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[kF],internalCalls:[],writesValues:[Wb],readsValue:ZF,x:0,y:0,parent:qF},SF={type:n.GenericReference,id:"company-dto-variable-one-called-by-ref-id",version:"1",entityType:n.FunctionCall,entityId:qu},WF={type:n.GenericReference,id:"company-dto-variable-one-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:qb},zF={type:n.GenericReference,id:"company-dto-variable-one-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},Yb={constant:!0,required:!0,id:nl,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:null,defaultValue:null,dataType:null,inputs:[],outputs:[],successCalls:[zb],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[SF],internalCalls:[],writesValues:[zb],readsValue:WF,x:0,y:0,parent:zF},Hb={type:n.GenericReference,id:"map-company-dto-function-call-company-input-map-parent-ref-id",version:"1",entityType:n.FunctionCall,entityId:qu},YF={id:"map-company-dto-function-call-company-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:xu.inputs[0],name:null,description:null,defaultValue:null,index:0,readsValue:null,parent:Hb},HF={id:qb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Tb.outputs[0],writesValues:[Yb],index:0,parent:Hb},KF={id:"map-company-dto-function-call-called-by-ref-id",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:Ht},XF={id:"map-company-dto-function-call-parent-ref-id",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:Ht},QF={id:qu,type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:xu,successCalls:[Yb],process:null,errorCalls:[],inputs:[YF],outputs:[HF],calledByError:[],calledByEntry:[KF],calledBySuccess:[],parent:XF,x:0,y:0,error:null},ex={type:n.GenericReference,id:"last-timestamp-variable-datatype-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Iu},tx={type:n.GenericReference,id:"last-timestamp-variable-default-value-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Iu},ix={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"last-timestamp-variable-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:Fi,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:ex},rx={type:n.GenericReference,id:"last-timestamp-variable-main-project-ref-id",version:"1",entityType:n.Project,entityId:fe},Su={constant:!0,required:!0,id:Iu,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Last registered current time",description:"A test variable that holds the last current date and time that was registered.",defaultValue:{id:"last-timestamp-variable-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Date,value:null,autogeneration:{type:vt.CurrentDateAndTime,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null,parent:tx},dataType:ix,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:rx},nx={type:n.GenericReference,id:"wait-for-2-seconds-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:Zb},sx={type:n.GenericReference,id:"wait-for-2-seconds-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Zu},ax={id:Zb,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:dn,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-2-seconds-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:2e3,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:L.Number,parent:nx},index:0,parent:sx},ox={type:n.GenericReference,id:"wait-for-2-seconds-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},lx={type:n.GenericReference,id:"wait-for-2-seconds-called-by-ref-one-id",version:"1",entityType:n.Operation,entityId:da},dx={type:n.GenericReference,id:"wait-for-2-seconds-called-by-ref-two-id",version:"1",entityType:n.Operation,entityId:la},Kb={id:Zu,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Vi,inputs:[ax],outputs:[],process:null,successCalls:[gF],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[lx,dx],error:null,parent:ox},ux={type:n.GenericReference,id:"wait-for-random-amount-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"wait-for-random-amount-input-map-id"},px={type:n.GenericReference,id:"wait-for-random-amount-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:"wait-for-random-amount-id"},cx={id:"wait-for-random-amount-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:dn,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-random-amount-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:{type:vt.Random,rangeStart:1e3,rangeEnd:4e3},name:L.Number,parent:ux},index:0,parent:px},fx={type:n.GenericReference,id:"wait-for-random-amount-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},us={id:"wait-for-random-amount-id",type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Vi,inputs:[cx],process:null,outputs:[],successCalls:[],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,parent:fx},Wu="list-of-functions-variable-id",yx={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-argument-parent-ref-id",version:"1",entityType:n.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},hx={id:"list-of-functions-variable-action-descriptor-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any input value",description:"Any input value that can be passed to the action",defaultValue:null,index:0,required:!1,dataType:null,parent:yx},mx={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-return-parent-ref-id",version:"1",entityType:n.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},vx={id:"list-of-functions-variable-action-descriptor-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any output value",description:"Any output value that can be returned to the action",defaultValue:null,index:0,required:!1,dataType:null,parent:mx},Tx={type:n.GenericReference,id:"list-of-functions-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wu},Ex={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-parent-ref-id",version:"1",entityType:n.DataType,entityId:"list-of-functions-variable-data-type-id"},Ix={id:"list-of-functions-variable-action-descriptor-id",type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[hx],error:null,outputs:[vx],parent:Ex},Ax={type:n.GenericReference,id:"list-of-functions-variable-data-type-default-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wu},bx={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"list-of-functions-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ix,asType:!1,isList:!0,parent:Tx},Rx={type:n.GenericReference,id:"list-of-functions-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht};n.GenericReference,n.InputMap;const Dx={type:n.GenericReference,id:"list-of-functions-variable-writes-value-one-ref-id",version:"1",entityType:n.InputMap,entityId:kb},Ox={type:n.GenericReference,id:"list-of-functions-variable-writes-value-two-ref-id",version:"1",entityType:n.InputMap,entityId:ku},Xb={constant:!0,required:!0,id:Wu,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List of functions to execute",description:"A list of functions to be executed in parallel",defaultValue:{id:"list-of-functions-variable-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.ActionDescriptor,value:null,valueAsTypeSingle:null,valueAsTypeList:[us,us,us,us,us],autogeneration:null,parent:Ax},dataType:bx,parent:Rx,readsValue:null,writesValues:[Dx,Ox],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],inputs:[],outputs:[],internalCalls:[],x:0,y:0},Px={type:n.GenericReference,id:"exec-in-parallel-return-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:la},wx={type:n.GenericReference,id:"exec-in-parallel-result-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},Cx={type:n.GenericReference,id:"exec-in-parallel-result-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:"exec-in-parallel-return-map-id"},Vx={type:n.GenericReference,id:"exec-in-parallel-result-variable-called-by-ref-id",version:"1",entityType:n.Operation,entityId:la},Qb={id:"exec-in-parallel-result-variable-id",type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Su,readsValue:Cx,writesValues:[],defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Vx],successCalls:[],errorCalls:[],internalCalls:[],parent:wx,x:0,y:0},Bx={id:"exec-in-parallel-return-map-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Cd,writesValues:[Qb],index:0,parent:Px},_x={type:n.GenericReference,id:"exec-in-parallel-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:la},Mx={id:ku,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:wd,name:null,description:null,readsValue:Xb,defaultValue:null,index:0,parent:_x},Nx={type:n.GenericReference,id:"exec-in-parallel-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},Lx={type:n.GenericReference,id:"exec-in-parallel-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},jx={process:null,id:la,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Vi,inputs:[Mx],outputs:[Bx],successCalls:[Kb,Qb],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[Lx],calledBySuccess:[],error:null,parent:Nx},Ux={type:n.GenericReference,id:"exec-sequentially-return-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:da},$x={type:n.GenericReference,id:"exec-sequentially-result-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},gx={type:n.GenericReference,id:"exec-sequentially-result-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:"exec-sequentially-return-map-id"},Gx={type:n.GenericReference,id:"exec-sequentially-result-variable-called-by-ref-id",version:"1",entityType:n.Operation,entityId:da},eR={id:"exec-sequentially-result-variable-id",type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Su,readsValue:gx,defaultValue:null,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Gx],successCalls:[],errorCalls:[],internalCalls:[],parent:$x,x:0,y:0},Fx={id:"exec-sequentially-return-map-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Bd,writesValues:[eR],index:0,parent:Ux},xx={type:n.GenericReference,id:"exec-sequentially-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:da},kx={id:kb,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Vd,name:null,description:null,readsValue:Xb,defaultValue:null,index:0,parent:xx},Zx={type:n.GenericReference,id:"exec-sequentially-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},qx={type:n.GenericReference,id:"exec-sequentially-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},Jx={id:da,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:or,inputs:[kx],process:null,outputs:[Fx],successCalls:[Kb,eR],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[qx],calledBySuccess:[],error:null,parent:Zx},Sx={type:n.GenericReference,id:"concurrency-and-wait-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},Wx={type:n.FunctionDeclaration,id:Ht,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Execute with concurrency and wait",description:"Executes a hardcoded list of actions in parallel and waits for some time before ending the logic with some unrelated data payload as the result.",inputs:[],calls:[Jx,jx,QF],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:Sx},zx={type:n.GenericReference,id:"3521f2c8-a5c0-419c-8808-4fc6a73d0b78",version:"1",entityType:n.ReturnDeclaration,entityId:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},Yx={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"ce8b9a30-afe9-4d4f-879f-1677efca2c47",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,isList:!1,asType:!1,parent:zx},Hx={type:n.GenericReference,id:"8ee66e38-b060-474e-a503-594063a8ec24",version:"1",entityType:n.ReturnStatement,entityId:"40a23a98-d3b2-42b1-9652-b33779ad15aa"},Kx={constant:!0,isError:!1,id:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Created company",description:"The new company that was created",defaultValue:null,implements:null,dataType:Yx,readsValue:null,required:!0,index:0,parent:Hx},Xx={type:n.GenericReference,id:"9cb3c1e4-7250-4be6-be2a-69c2dd366d6f",version:"1",entityType:n.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},Qx={type:n.GenericReference,id:"c065fcdd-e054-4f95-941c-7eaa65c35d04",version:"1",entityType:n.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},ek={type:n.ReturnStatement,id:"40a23a98-d3b2-42b1-9652-b33779ad15aa",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Kx],calledByError:[],calledByEntry:[Qx],calledBySuccess:[],throws:null,x:0,y:0,parent:Xx},tk={type:n.GenericReference,id:"312ef836-9e40-4d57-b177-03b7145ed074",version:"1",entityType:n.Project,entityId:fe},ik={type:n.FunctionDeclaration,id:"5059c093-eda2-4efc-b7b4-aaaadd4d44de",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Create new company",description:null,inputs:[],calls:[ek],index:null,implements:null,collapsed:!1,private:!1,x:0,y:0,parent:tk},zu="get-current-date-and-time-func-decl-id",tR="get-current-date-and-time-return-statement-id",Yu="get-current-date-and-time-return-declaration-id",rk="get-current-date-and-time-return-declaration-data-type-id",nk={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-value-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:Yu},sk={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:Yu},ak={staticEntities:!1,interactiveEntities:!0,actionEntities:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:rk,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fi,asType:!1,isList:!1,like:!1,inferred:!1,parent:sk},ok={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:tR};n.ReturnDeclaration,n.LiteralValue,L.Date,vt.CurrentDateAndTime;const lk={type:n.GenericReference,id:"get-current-date-and-time-return-statement-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:zu},dk={type:n.GenericReference,id:"get-current-date-and-time-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:zu};n.ReturnStatement;const uk={type:n.GenericReference,id:"concurrency-and-wait-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},pk={type:n.FunctionDeclaration,id:zu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Get current date and time",description:"Generates and returns the current date and time at the time of the execution",inputs:[],calls:[],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:uk},ck={type:n.GenericReference,id:"a2db26be-57f2-48e5-9769-cdbf0d95dc7c",version:"1",entityType:n.VariableDeclaration,entityId:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a"},fk={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"c3e9d5f0-204f-45f9-85f7-e1b56b468388",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:ck},yk={type:n.GenericReference,id:"692122c5-610a-4504-90dd-f5a5202d116c",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},hk={type:n.GenericReference,id:"do-math-func-return-one-called-by",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},mk={type:n.GenericReference,id:"6dceb501-be5b-4252-afb4-3c0d08abba33",version:"1",entityType:n.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},iR={constant:!0,required:!0,type:n.VariableDeclaration,id:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",dataType:fk,description:null,defaultValue:null,readsValue:mk,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[hk],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:yk},vk={type:n.GenericReference,id:"5440f523-af38-4981-8035-89d162fe8041",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Tk={type:n.GenericReference,id:"8c482c35-e674-4713-a1dd-63c3d13b611c",version:"1",entityType:n.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},Ek={type:n.GenericReference,id:"c0a299cd-5869-4930-8cf0-90e3ceb8a903",version:"1",entityType:n.VariableDeclaration,entityId:"46b2fe23-b417-4887-a35d-09b186679172"},Ik={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"51c0c1df-2ee3-41df-ae52-ac512d8cf795",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:Ek},Ak={type:n.GenericReference,id:"do-math-func-return-two-called-by",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},rR={constant:!0,required:!0,type:n.VariableDeclaration,id:"46b2fe23-b417-4887-a35d-09b186679172",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Total",description:null,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Ak],successCalls:[],errorCalls:[],dataType:Ik,readsValue:Tk,writesValues:[],internalCalls:[],parent:vk,x:0,y:0},nR="do-math-return-statement-id",Hu="do-math-return-declaration-id",bk={type:n.GenericReference,id:"do-math-func-var-to-return-one-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"do-math-func-var-to-return-one-id"},Rk={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"do-math-func-var-to-return-one-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:bk},Dk={type:n.GenericReference,id:"do-math-func-decl-ref-two-id",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Ok={type:n.GenericReference,id:"do-math-func-var-to-return-one-map-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:Hu},Pk={constant:!0,required:!0,type:n.VariableDeclaration,id:"do-math-func-var-to-return-one-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"Fixed result",defaultValue:null,dataType:Rk,readsValue:null,writesValues:[Ok],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:Dk},wk={type:n.GenericReference,id:"96ec244e-594b-45f7-802b-6dc3056920f6",version:"1",entityType:n.ReturnStatement,entityId:nR},Ck={type:n.GenericReference,id:"d120c0cc-9d13-4e45-90e2-4e1ee825ca46",version:"1",entityType:n.ReturnDeclaration,entityId:Hu},Vk={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"da91aa23-9985-49ac-a8bf-9d623ba1ba8f",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:Ck},Bk={constant:!0,isError:!1,id:Hu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Result",description:null,implements:null,defaultValue:null,dataType:Vk,readsValue:Pk,required:!0,index:0,parent:wk},_k={type:n.GenericReference,id:"57fd93e4-93a1-484e-82eb-4dd15d2d0e24",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Mk={type:n.GenericReference,id:"0a86e8d5-ab21-476e-a482-b928cbf351e3",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Nk={type:n.ReturnStatement,id:nR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Bk],calledByError:[],calledByEntry:[],calledBySuccess:[_k],parent:Mk,throws:null,x:0,y:0},sR={type:n.GenericReference,id:"6e4d776e-6af2-4321-b630-c78110fd677c",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Lk={type:n.GenericReference,id:"5b60955b-2486-40b6-bb24-ffd97ccd8902",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},jk={type:n.GenericReference,id:"1a49923f-bc6f-453f-a438-e74e5475c2a9",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Uk={type:n.GenericReference,id:"02bfde0a-b757-4072-9613-6e9c7c9a424a",version:"1",entityType:n.ArgumentDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},aR={id:"928953b0-0e3f-4d8c-ae5a-84620b4b8c68",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:yd,name:null,description:null,readsValue:Uk,defaultValue:null,index:0,parent:jk},$k={id:"64752080-ee0f-4cfe-9897-a0668f2b2aca",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:vd,writesValues:[iR,rR],index:0,parent:Lk},gk={type:n.GenericReference,id:"d235a7f6-07ff-4f35-98d2-8f42dd59cf9f",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Gk={id:"8827e8e9-9381-4ad7-8f61-5419c23c9136",type:n.GenericReference,version:"1",entityType:n.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},oR={id:"a5525249-0eb5-472b-97bc-5e4cc0d75aee",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:hd,name:null,description:null,readsValue:Gk,defaultValue:null,index:1,parent:gk},Fk={type:n.Operation,id:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e",declaration:Ya,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[aR,oR],outputs:[$k],calledByError:[],calledByEntry:[sR],calledBySuccess:[],process:null,successCalls:[Nk,iR,rR],errorCalls:[],parent:sR,error:null,x:0,y:0},xk={type:n.GenericReference,id:"a2c40226-2270-4963-a865-c777ba79c551",version:"1",entityType:n.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},kk={id:"f47731b3-f278-4ab5-aeb2-24519c1119fb",type:n.GenericReference,entityId:"72a338d8-0183-4ca2-8760-227517854595",version:"1",entityType:n.ArgumentDeclaration},lR={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"a350a9e9-25ee-477f-a83d-9e98ed2451662",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:kk},Zk={type:n.GenericReference,id:"5f5d8dd0-7f3b-40cd-9f84-83d976887eaf",version:"1",entityType:n.ArgumentDeclaration,entityId:"649bf0a4-6532-44aa-9818-a03d1c6564e9"},qk={type:n.GenericReference,id:"ca018d0f-a8b3-4c7e-a408-c8b372d04aff",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Jk={type:n.GenericReference,id:"do-math-func-var-called-by-ref",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},dR={constant:!0,required:!0,id:"72a338d8-0183-4ca2-8760-227517854595",type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Z",description:null,defaultValue:{id:"do-math-func-argument-two-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:1,name:L.Number,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:xk},dataType:lR,inputs:[],outputs:[],calledByError:[],calledByEntry:[Jk],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:Zk,writesValues:[oR],internalCalls:[],x:0,y:0,parent:qk},Sk={version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",type:n.GenericReference,id:"af0cf105-4075-425f-aecc-b25d3600fcc4"},Wk={constant:!0,id:"649bf0a4-6532-44aa-9818-a03d1c6564e9",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Z",description:"The number to add",defaultValue:null,dataType:lR,implements:null,writesValues:[dR],required:!0,index:1,parent:Sk},zk={type:n.GenericReference,id:"56953b5d-3e43-4dea-a62c-f3e868ba81bb",version:"1",entityType:n.Project,entityId:fe},Yk={id:"868defc8-5c95-48ed-942d-257e8b9b9b00",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Hk={type:n.GenericReference,id:"35167664-a793-49f1-9eaf-fb57eac30897",version:"1",entityType:n.VariableDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},Kk={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:n.GenericReference,entityId:"d8895765-f705-457e-85fa-25d130926769",version:"1",entityType:n.ArgumentDeclaration},Xk={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:Kk},Qk={constant:!0,id:"d8895765-f705-457e-85fa-25d130926769",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"N",dataType:Xk,description:"The number to add",implements:null,defaultValue:{id:"do-math-func-argument-one-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:5,name:L.Number,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:Hk},writesValues:[aR],required:!0,index:0,parent:Yk},e9={type:n.FunctionDeclaration,id:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Do math",description:"This function does math",inputs:[Qk,Wk],calls:[Fk,dR],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:zk},Kt="replace-bank-account-in-company-func-declaration-id",Ku="company-entity-to-modify-arg-declaration-id",Xu="account-number-to-create-arg-decl-id",ps="company-main-variable-id",cs="search-person-by-id-id",uR="new-bank-account-owner-arg-decl-id",pR="search-person-by-id-output-declaration-id",Qu="search-person-by-id-output-entity-map-id",ua="person-not-empty-condition-id",sl="create-new-bank-account-instance-operation-id",cR="create-new-bank-account-instance-operation-output-entity-map-id",fR="company-bank-account-output-map-id",ep="old-bank-account-var-declaration-id",yR="old-bank-account-var-instance-id",hR="company-variable-instance-id",tp="delete-bank-account-internal-call-id",pa="new-bank-account-data-variable-declaration-id",t9={type:n.GenericReference,id:"company-variable-instance-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},i9={type:n.GenericReference,id:"company-variable-instance-called-by-ref-id",version:"1",entityType:n.InternalCall,entityId:tp},r9={type:n.GenericReference,id:"company-variable-instance-declaration-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ps},n9={type:n.GenericReference,id:"bank-account-input-map-parent-ref-id",version:"1",entityType:n.VariableInstance,entityId:hR},s9={type:n.GenericReference,id:"bank-account-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:cR},mR={type:n.InputMap,id:"bank-account-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,readsValue:s9,declaration:Pu,name:null,description:null,index:0,defaultValue:null,parent:n9},a9={type:n.VariableInstance,id:hR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:r9,inputs:[mR],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[i9],successCalls:[],errorCalls:[],internalCalls:[],parent:t9,readsValue:null,writesValues:[],x:0,y:0},o9={type:n.GenericReference,id:"bank-account-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ps},l9={type:n.DataType,staticEntities:null,interactiveEntities:null,actionEntities:null,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"bank-account-variable-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:as,asType:!1,isList:!1,like:!1,inferred:!1,parent:o9},d9={type:n.GenericReference,id:"bank-account-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:fR},u9={type:n.GenericReference,id:"bank-account-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},p9={type:n.GenericReference,id:"bank-account-variable-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ps},c9={type:n.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-id",version:"1",entityType:n.Operation,entityId:sl};n.GenericReference,n.VariableInstance;const f9={type:n.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-two-id",version:"1",entityType:n.VariableDeclaration,entityId:ep},y9={type:n.GenericReference,id:"old-bank-account-variable-trigger-delete-decl-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ep},h9={type:n.GenericReference,id:"bank-account-variable-parent-ref-two-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},m9={type:n.GenericReference,id:"old-bank-account-variable-trigger-delete-internal-call-ref-id",version:"1",entityType:n.InternalCall,entityId:tp},v9={type:n.VariableInstance,id:yR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:y9,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],internalCalls:[m9],errorCalls:[],parent:h9,readsValue:null,writesValues:[],x:0,y:0},vR={process:null,type:n.InternalCall,id:tp,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:eu,index:0,successCalls:[a9],errorCalls:[],inputs:[],outputs:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[c9,f9],parent:v9},TR={constant:!0,required:!0,type:n.VariableDeclaration,id:ep,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Old bank account",description:"The existing bank account that needs to be replaced in the company entity",dataType:l9,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[p9],successCalls:[vR],internalCalls:[],errorCalls:[],parent:u9,readsValue:d9,writesValues:[],x:0,y:0},T9={type:n.GenericReference,id:"company-variable-declaration-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ps},E9={type:n.DataType,staticEntities:null,interactiveEntities:null,actionEntities:null,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"company-variable-declaration-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,asType:!1,isList:!1,like:!1,inferred:!1,parent:T9},I9={type:n.GenericReference,id:"company-variable-declaration-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:Ku},A9={type:n.GenericReference,id:"company-variable-declaration-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},b9={type:n.GenericReference,id:"company-variable-declaration-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},R9={type:n.GenericReference,id:"company-bank-account-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ps},D9={id:fR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:Pu,index:0,parent:R9,writesValues:[TR]},ER={constant:!0,required:!0,type:n.VariableDeclaration,id:ps,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",description:"The company entity that was passed as an argument to the parent function",defaultValue:null,dataType:E9,inputs:[],outputs:[D9],calledByError:[],calledByEntry:[b9],calledBySuccess:[],successCalls:[TR],errorCalls:[],parent:A9,internalCalls:[],readsValue:I9,writesValues:[],x:0,y:0},O9={type:n.GenericReference,id:"create-new-bank-account-account-owner-dynamic-input-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:pa},P9={id:"create-new-bank-account-account-owner-dynamic-input-map-reads-value-ref-id",type:n.GenericReference,version:"1",entityType:n.OutputMap,entityId:Qu},IR={id:"create-new-bank-account-account-owner-dynamic-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:null,name:"Account owner",description:null,readsValue:P9,index:1,defaultValue:null,parent:O9},w9={id:"create-new-bank-account-account-number-dynamic-input-map-reads-value-ref-id",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:Xu},C9={type:n.GenericReference,id:"create-new-bank-account-account-number-dynamic-input-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:pa},AR={id:"create-new-bank-account-account-number-dynamic-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:null,name:"Account number",description:null,readsValue:w9,defaultValue:null,index:0,parent:C9},bR={type:n.GenericReference,id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:sl},V9={id:"create-new-bank-account-instance-operation-entity-to-create-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:un.inputs[0],name:null,description:null,index:0,readsValue:null,defaultValue:{id:"create-new-bank-account-instance-operation-entity-to-create-input-map-default-value-id",type:n.LiteralValue,name:L.EntityTemplate,value:null,valueAsTypeSingle:as,valueAsTypeList:null,autogeneration:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,parent:{entityId:"create-new-bank-account-instance-operation-entity-to-create-input-map-id",entityType:n.InputMap,version:"1",id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",type:n.GenericReference}},parent:bR},B9={type:n.GenericReference,id:"create-new-bank-account-instance-operation-entity-data-input-map-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:pa},RR={id:"create-new-bank-account-instance-operation-entity-data-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:un.inputs[1],name:null,description:null,index:1,readsValue:B9,defaultValue:null,parent:bR},_9={type:n.GenericReference,id:"create-new-bank-account-instance-operation-output-entity-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:sl},M9={id:cR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:un.outputs[0],index:0,writesValues:[mR],parent:_9},N9={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:n.Condition,entityId:ua},L9={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:pa},j9={type:n.GenericReference,id:"create-new-bank-account-instance-operation-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},DR={process:null,id:sl,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:un,inputs:[V9,RR],error:null,outputs:[M9],successCalls:[vR],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[L9,N9],parent:j9,x:0,y:0},U9={type:n.GenericReference,id:"new-bank-account-data-variable-declaration-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},$9={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:n.Condition,entityId:ua},g9={constant:!0,required:!0,id:pa,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,inputs:[AR,IR],dataType:null,name:"New bank Account's data",description:null,readsValue:null,outputs:[],writesValues:[RR],successCalls:[DR],errorCalls:[],internalCalls:[],calledByError:[],calledBySuccess:[$9],calledByEntry:[],x:0,y:0,parent:U9},G9={id:"person-not-found-thrown-error-datatype-default-value-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-thrown-error-id",version:"1",entityType:n.ReturnDeclaration},F9={id:"person-not-found-thrown-error-datatype-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-thrown-error-id",version:"1",entityType:n.ReturnDeclaration},x9={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"person-not-found-thrown-error-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:F9},k9={id:"person-not-found-thrown-error-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-error-return-statement-id",version:"1",entityType:n.ReturnStatement},Z9={constant:!0,isError:!0,id:"person-not-found-thrown-error-id",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:x9,name:"Person not found error",description:"If the person entity was not found this error is outputted",defaultValue:{id:"person-not-found-thrown-error-datatype-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Person not found",name:L.String,parent:G9,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},parent:k9,implements:null,required:!0,index:0,readsValue:null},q9={id:"person-not-found-error-return-statement-called-by-ref-id",type:n.GenericReference,entityId:ua,version:"1",entityType:n.Condition},J9={id:"person-not-found-error-return-statement-parent-ref-id",type:n.GenericReference,entityId:Kt,version:"1",entityType:n.FunctionDeclaration},S9={id:"person-not-found-error-return-statement-id",type:n.ReturnStatement,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,throws:Z9,outputs:[],calledBySuccess:[],calledByError:[q9],calledByEntry:[],x:0,y:0,parent:J9},W9={type:n.GenericReference,id:"person-not-empty-condition-called-by-ref-id",version:"1",entityType:n.Search,entityId:cs},z9={type:n.GenericReference,id:"person-not-empty-condition-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},Y9={type:n.GenericReference,id:"person-entity-to-check-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Qu},H9={type:n.GenericReference,id:"person-not-empty-condition-ref-two-id",version:"1",entityType:n.Condition,entityId:ua},OR={id:"person-entity-to-check-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:mn.inputs[0],name:null,description:null,readsValue:Y9,index:0,defaultValue:null,parent:H9},K9={type:n.Condition,id:ua,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:mn,inputs:[OR],calledByError:[],calledByEntry:[],calledBySuccess:[W9],successCalls:[g9,DR],errorCalls:[S9],x:0,y:0,parent:z9},X9={type:n.GenericReference,id:"search-person-by-id-output-entity-declaration-datatype-parent-ref-id",version:"1",entityType:n.ValueDescriptor,entityId:pR},Q9={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"search-person-by-id-output-entity-declaration-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,asType:!1,entity:Yt,parent:X9},e8={type:n.GenericReference,id:"search-person-by-id-output-entity-declaration-parent-ref-id",version:"1",entityType:n.Search,entityId:cs},PR={id:pR,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,dataType:Q9,name:"Found person",description:"The person entity that was found",parent:e8,required:!0,index:0},t8={type:n.GenericReference,id:"search-person-by-id-output-entity-map-parent-ref-id",version:"1",entityType:n.Search,entityId:cs},i8={type:n.OutputMap,id:Qu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:PR,parent:t8,writesValues:[OR,IR],index:0},r8={id:"search-person-by-id-input-declaration-datatype-parent-ref-id",type:n.GenericReference,entityId:"search-person-by-id-input-declaration-id",version:"1",entityType:n.ArgumentDeclaration};n.DataType;const n8={type:n.GenericReference,id:"search-person-by-id-input-declaration-parent-ref-id",version:"1",entityType:n.Search,entityId:cs},wR={id:"search-person-by-id-input-declaration-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:null,defaultValue:null,name:"Person ID",description:"The unique identifier (ID) property of the person entity",parentRelationType:N.FixedArguments,index:0,required:!0,parent:n8},s8={type:n.GenericReference,id:"search-person-by-id-input-map-parent-ref-id",version:"1",entityType:n.Search,entityId:cs},a8={id:"search-person-by-id-input-map-reads-value-ref-id",type:n.GenericReference,entityId:uR,version:"1",entityType:n.ArgumentDeclaration},CR={type:n.InputMap,id:"search-person-by-id-input-map",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:wR,name:null,description:null,readsValue:a8,defaultValue:null,parent:s8,index:0},o8="SELECT * FROM Person WHERE id = your_id;",l8={type:n.GenericReference,id:"search-person-by-id-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},d8={type:n.GenericReference,id:"search-person-by-id-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},u8={type:n.Search,id:cs,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Search person by ID",description:"Searches for a person entity given the UUID",query:o8,inputsDeclarations:[wR],inputs:[CR],outputsDeclarations:[PR],outputs:[i8],calledByError:[],calledByEntry:[d8],calledBySuccess:[],error:null,successCalls:[K9],errorCalls:[],parent:l8,x:0,y:0};n.GenericReference,n.DataType;const p8={id:"account-number-to-create-arg-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:Xu,version:"1",entityType:n.ArgumentDeclaration},c8={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"account-number-to-create-arg-decl-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:p8},f8={version:"1",entityType:n.FunctionDeclaration,entityId:Kt,type:n.GenericReference,id:"account-number-to-create-arg-decl-parent-ref-id"},y8={constant:!0,id:Xu,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Account number",description:"The account number of the new bank account entity",defaultValue:null,dataType:c8,implements:null,writesValues:[AR],required:!0,index:1,parent:f8};n.GenericReference,n.DataType;const h8={id:"new-bank-account-owner-arg-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:"new-bank-account-owner-arg-decl-id",version:"1",entityType:n.ArgumentDeclaration},m8={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"new-bank-account-owner-arg-decl-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:sr,isList:!1,asType:!1,parent:h8},v8={version:"1",entityType:n.FunctionDeclaration,entityId:Kt,type:n.GenericReference,id:"new-bank-account-owner-arg-decl-parent-ref-id"},T8={constant:!0,id:uR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New account owner ID",description:"If it has changed, this is the new person entity, that owns of the bank account",defaultValue:null,dataType:m8,implements:null,writesValues:[CR],required:!1,index:1,parent:v8},E8={type:n.GenericReference,id:"replace-bank-account-in-company-parent-ref",version:"1",entityType:n.Project,entityId:fe},I8={type:n.GenericReference,id:"company-entity-to-modify-parent-ref",version:"1",entityType:n.FunctionDeclaration,entityId:Kt};n.GenericReference,n.DataType;const A8={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:n.GenericReference,entityId:Ku,version:"1",entityType:n.ArgumentDeclaration},b8={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"company-entity-to-modify-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:A8},R8={constant:!0,id:Ku,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",defaultValue:null,dataType:b8,implements:null,description:"The company to replace the bank account for",writesValues:[ER],required:!0,index:0,parent:I8},D8={type:n.FunctionDeclaration,id:Kt,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Replace bank account",description:"This action takes an existing company and data to create a new bank account entity. It then creates a bank account, deletes the old one, and updates the company with the new bank account",inputs:[R8,y8,T8],index:null,implements:null,calls:[u8,ER],collapsed:!1,private:!1,x:0,y:0,parent:E8},O8={type:n.GenericReference,id:"e0a937bd-3a85-4037-a973-916985b9f94b",version:"1",entityType:n.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},P8={type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,id:"6bedb217-f844-4332-af72-9626b2a32511",name:"Some library main function",description:null,inputs:[],calls:[],implements:null,collapsed:!0,index:null,private:!1,parent:O8,x:0,y:0},w8={type:n.GenericReference,id:"948e6869-ae5b-4914-bea0-b9f02ad6a014",version:"1",entityType:n.Project,entityId:fe},C8={type:n.InstalledProject,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,id:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6",name:"Third Party Installed Project",description:null,functions:[P8],events:[],implements:null,parent:w8,x:0,y:0},ip="global-counted-test-loop-id",VR="global-counted-test-loop-body-id",BR="global-counted-test-loop-body-current-iteration-value-argument-declaration-id",V8={type:n.GenericReference,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:BR,version:"1",entityType:n.ArgumentDeclaration},B8={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:V8},_8={id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:VR,version:"1",entityType:n.FunctionDeclaration},M8={constant:!0,id:BR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:B8,implements:xd,required:!0,index:0,writesValues:[],parent:_8},N8={id:"global-counted-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:ip,version:"1",entityType:n.Loop},L8={id:VR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[M8],calls:[],implements:po,collapsed:!1,private:!1,index:0,x:0,y:0,parent:N8},fs="random-company-employee-test-variable-id",rp="manager-global-variable-id",_R="global-user-instance-id",zi="employee-mapped-dto-variable-id",On="employee-mapped-dto-variable-instance-id",MR="random-employee-id-output-map-id",NR="random-employee-birth-date-output-map-id",LR="random-employee-department-output-map-id",jR="random-employee-manager-output-map-id",UR="manager-global-id-output-map-id",$R="global-user-instance-id-output-map-id",j8="employee-mapped-dto-requester-id-input-map-id",gR="employee-mapped-dto-now-timestamp-input-map-id",U8="employee-mapped-dto-id-input-map-id",$8="employee-mapped-dto-birth-date-input-map-id",g8="employee-mapped-dto-department-input-map-id",G8="employee-mapped-dto-manager-input-map-id",F8={id:"global-counted-test-loop-iteration-number-input-map-parent-ref-id",type:n.GenericReference,entityId:ip,version:"1",entityType:n.Loop};n.GenericReference,n.VariableDeclaration;const x8={id:"global-counted-test-loop-iteration-number-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Us.inputs[0],defaultValue:null,readsValue:null,index:0,parent:F8},k8={id:"global-counted-test-loop-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},Z8={id:"global-counted-test-loop-called-by-success-ref-id",type:n.GenericReference,entityId:On,version:"1",entityType:n.VariableDeclaration},GR={id:ip,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Us,inputs:[x8],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:L8,calledByError:[],calledByEntry:[],calledBySuccess:[Z8],error:null,x:0,y:0,parent:k8},np="global-object-keys-test-loop-id",FR="global-object-keys-test-loop-body-id",xR="global-object-keys-test-loop-body-current-iteration-value-argument-declaration-id",q8={type:n.GenericReference,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:xR,version:"1",entityType:n.ArgumentDeclaration},J8={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:q8},S8={id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:FR,version:"1",entityType:n.FunctionDeclaration},W8={constant:!0,id:xR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:J8,implements:Ud,required:!0,index:0,writesValues:[],parent:S8},z8={id:"global-object-keys-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:np,version:"1",entityType:n.Loop},Y8={id:FR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[W8],calls:[],implements:Sn,collapsed:!1,private:!1,index:0,x:0,y:0,parent:z8},H8={id:"global-object-keys-test-loop-iteration-object-input-map-parent-ref-id",type:n.GenericReference,entityId:np,version:"1",entityType:n.Loop},K8={id:"global-object-keys-test-loop-iteration-object-input-map-reads-value-ref-id",type:n.GenericReference,entityId:zi,version:"1",entityType:n.VariableDeclaration},kR={id:"global-object-keys-test-loop-iteration-object-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Sn.inputs[0],defaultValue:null,readsValue:K8,index:0,parent:H8},X8={id:"global-object-keys-test-loop-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},Q8={id:"global-object-keys-test-loop-called-by-success-ref-two-id",type:n.GenericReference,entityId:On,version:"1",entityType:n.VariableDeclaration},e6={id:"global-object-keys-test-loop-called-by-success-ref-one-id",type:n.GenericReference,entityId:zi,version:"1",entityType:n.VariableDeclaration},sp={id:np,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Sn,inputs:[kR],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:Y8,calledByError:[],calledByEntry:[],calledBySuccess:[e6,Q8],error:null,x:0,y:0,parent:X8},ap="global-object-values-test-loop-id",ZR="global-object-values-test-loop-body-id",qR="global-object-values-test-loop-body-current-iteration-value-argument-declaration-id",t6={type:n.GenericReference,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:qR,version:"1",entityType:n.ArgumentDeclaration},i6={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:t6},r6={id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ZR,version:"1",entityType:n.FunctionDeclaration},n6={constant:!0,id:qR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:i6,implements:gd,required:!0,index:0,writesValues:[],parent:r6},s6={id:"global-object-values-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:ap,version:"1",entityType:n.Loop},a6={id:ZR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[n6],calls:[],implements:Wn,collapsed:!1,private:!1,index:0,x:0,y:0,parent:s6},o6={id:"global-object-values-test-loop-iteration-object-input-map-parent-ref-id",type:n.GenericReference,entityId:ap,version:"1",entityType:n.Loop},l6={id:"global-object-values-test-loop-iteration-object-input-map-reads-value-ref-id",type:n.GenericReference,entityId:On,version:"1",entityType:n.VariableDeclaration},JR={id:"global-object-values-test-loop-iteration-object-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Wn.inputs[0],defaultValue:null,readsValue:l6,index:0,parent:o6},d6={id:"global-object-values-test-loop-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},u6={id:"global-object-values-test-loop-called-by-success-ref-id",type:n.GenericReference,entityId:On,version:"1",entityType:n.VariableInstance},SR={id:ap,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Wn,inputs:[JR],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:a6,calledByError:[],calledByEntry:[],calledBySuccess:[u6],error:null,x:0,y:0,parent:d6},op="global-test-iterate-over-string-loop-id",lp="global-test-iterate-over-string-loop-body-id",al="global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-id",WR="global-test-iterate-over-string-loop-iteration-list-input-map-id",p6={type:n.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:al,version:"1",entityType:n.ArgumentDeclaration},c6={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:p6},f6={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:lp,version:"1",entityType:n.FunctionDeclaration},y6={constant:!0,id:al,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current character",description:"The current character value being processed.",defaultValue:null,dataType:c6,implements:Ld,required:!0,index:1,writesValues:[],parent:f6},h6={type:n.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:al,version:"1",entityType:n.ArgumentDeclaration},m6={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:h6},v6={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:lp,version:"1",entityType:n.FunctionDeclaration},T6={constant:!0,id:al,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current character",description:"The current character value being processed.",defaultValue:null,dataType:m6,implements:jd,required:!0,index:0,writesValues:[],parent:v6},E6={id:"global-test-iterate-over-string-loop-body-parent-ref-id",type:n.GenericReference,entityId:op,version:"1",entityType:n.Loop},I6={id:lp,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[T6,y6],calls:[],implements:lo,collapsed:!1,private:!1,index:0,x:0,y:0,parent:E6},A6={id:"global-test-iterate-over-string-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:op,version:"1",entityType:n.Loop},b6={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-parent-ref-id",type:n.GenericReference,entityId:WR,version:"1",entityType:n.InputMap},R6={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-id",type:n.LiteralValue,name:L.String,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Hello",valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:{type:vt.Random,rangeStart:4,rangeEnd:5},parent:b6},D6={id:WR,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Ls.inputs[0],defaultValue:R6,readsValue:null,index:0,parent:A6},O6={id:"global-test-iterate-over-string-loop-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},P6={id:op,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ls,inputs:[D6],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:I6,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,x:0,y:0,parent:O6},dp="iterate-over-list-loop-id",zR="iterate-over-list-loop-body-id",YR="iterate-over-list-loop-body-current-iteration-value-argument-declaration-id",w6={type:n.GenericReference,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:YR,version:"1",entityType:n.ArgumentDeclaration},C6={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:w6},V6={id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:zR,version:"1",entityType:n.FunctionDeclaration},B6={constant:!0,id:YR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:C6,implements:uo,required:!0,index:0,writesValues:[],parent:V6},_6={id:"iterate-over-list-loop-body-parent-ref-id",type:n.GenericReference,entityId:dp,version:"1",entityType:n.Loop},M6={id:zR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[B6],calls:[],implements:js,collapsed:!1,private:!1,index:0,x:0,y:0,parent:_6},N6={id:"iterate-over-list-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:dp,version:"1",entityType:n.Loop},L6={id:"iterate-over-list-loop-iteration-list-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Or.inputs[0],defaultValue:null,readsValue:null,index:0,parent:N6},j6={id:"iterate-over-list-loop-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},U6={id:dp,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Or,inputs:[L6],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:M6,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,x:0,y:0,parent:j6},$6=`SELECT
|
|
1
|
+
(function(h,n){typeof exports=="object"&&typeof module<"u"?n(exports):typeof define=="function"&&define.amd?define(["exports"],n):(h=typeof globalThis<"u"?globalThis:h||self,n(h["@elyx-code/project-logic-tree"]={}))})(this,function(h){"use strict";var qW=Object.defineProperty;var JW=(h,n,S)=>n in h?qW(h,n,{enumerable:!0,configurable:!0,writable:!0,value:S}):h[n]=S;var f=(h,n,S)=>(JW(h,typeof n!="symbol"?n+"":n,S),S);var n=(r=>(r.DefinitionEntity="definition-entity",r.BuiltInBaseEntity="built-in-base-entity",r.Project="project",r.InstalledProject="installed-project",r.GlobalEvent="global-event",r.DataType="data-type",r.FunctionCall="function-call",r.FunctionDeclaration="function-declaration",r.ActionDescriptor="action-descriptor",r.ValueDescriptor="value-descriptor",r.ArgumentDeclaration="argument-declaration",r.InputMap="input-map",r.ReturnStatement="return-statement",r.BreakStatement="break-statement",r.ContinueStatement="continue-statement",r.ReturnDeclaration="return-declaration",r.OutputMap="output-map",r.PrimitiveEntity="primitive-entity",r.LiteralValue="literal-value",r.Property="property",r.Operation="operation",r.Condition="condition",r.VariableDeclaration="variable-declaration",r.VariableInstance="variable-instance",r.Search="search",r.Loop="loop",r.InternalCall="internal-call",r.GenericReference="generic-reference",r))(n||{}),S=(r=>(r.HTTP_ENDPOINT="BUILT_IN_HTTP_ENDPOINT_ENTITY",r.RELATIONAL_DATABASE="BUILT_IN_RELATIONAL_DATABASE_ENTITY",r.PERSISTED_ENTITY="BUILT_IN_PERSISTED_ENTITY_ENTITY",r.CRON_JOB="BUILT_IN_CRON_JOB_ENTITY",r.EXECUTION="BUILT_IN_EXECUTION_ENTITY",r.KEY_VALUE_PARAM="BUILT_IN_KEY_VALUE_PARAM_ENTITY",r))(S||{}),vt=(r=>(r.CurrentDateAndTime="current-date-and-time",r.Unique="unique",r.Random="random",r))(vt||{}),L=(r=>(r.EntityTemplate="entity-template",r.ActionDescriptor="action-descriptor",r.String="string",r.Number="number",r.Boolean="boolean",r.Null="null",r.Enum="enum",r.KeyValue="key-value",r.Date="date",r.UUID="uuid",r.File="file",r.Untyped="untyped",r))(L||{}),et=(r=>(r.Addition="addition",r.Subtraction="subtraction",r.Multiplication="multiplication",r.Division="division",r.Remainder="remainder",r.Exponentiation="exponentiation",r))(et||{}),Ie=(r=>(r.Join="string-join",r.Split="string-split",r.DeleteLast="string-delete-last",r.DeleteFirst="string-delete-first",r.DeleteIndex="string-delete-index",r.AddIndex="string-add-index",r.ReplaceFirst="string-replace-first",r.ReplaceLast="string-replace-last",r.ReplaceIndex="string-replace-index",r.ReplaceSingleMatch="string-replace-single-match",r.ReplaceAllMatches="string-replace-all-matches",r.GetIndex="string-get-index",r.GetFirst="string-get-first",r.GetLast="string-get-last",r.Append="string-append",r.Prepend="string-prepend",r))(Ie||{}),he=(r=>(r.Join="list-join",r.Split="list-split",r.DeleteLast="list-delete-last",r.DeleteFirst="list-delete-first",r.DeleteIndex="list-delete-index",r.AddIndex="list-add-index",r.ReplaceFirst="list-replace-first",r.ReplaceLast="list-replace-last",r.ReplaceIndex="list-replace-index",r.ReplaceSingleMatch="list-replace-single-match",r.ReplaceAllMatches="list-replace-all-matches",r.GetIndex="list-get-index",r.GetFirst="list-get-first",r.GetLast="list-get-last",r.Append="list-append",r.Prepend="list-prepend",r))(he||{}),Qe=(r=>(r.Parallel="parallel",r.Sequential="sequential",r.Wait="wait",r))(Qe||{}),tt=(r=>(r.CreateNewInstance="create-new-instance",r.Validate="validate",r))(tt||{}),Lt=(r=>(r.HttpRequest="base-http-request",r))(Lt||{}),yt=(r=>(r.Equal="equal",r.NotEqual="not-equal",r.And="and",r.Or="or",r.LessThan="less-than",r.MoreThan="more-than",r.LessThanOrEqual="less-than-or-equal",r.MoreThanOrEqual="more-than-or-equal",r))(yt||{}),bi=(r=>(r.Empty="empty",r.NotEmpty="not-empty",r))(bi||{}),ee=(r=>(r.ManualFlow="manual-flow-loop",r.Counted="counted-loop",r.List="list-loop",r.ObjectKeys="object-keys-loop",r.ObjectValues="object-values-loop",r.String="string-loop",r))(ee||{}),N=(r=>(r.FixedArguments="fixed-arguments",r.FixedReturns="fixed-returns",r.ReturnedError="returned-error",r.OngoingProcessExecution="ongoing-process-execution",r.DynamicArgument="dynamic-argument-types",r.DynamicReturn="dynamic-return-types",r))(N||{}),Pt=(r=>(r.OrDataTypeGroup="or-data-type-group",r.AndDataTypeGroup="and-data-type-group",r))(Pt||{}),ir=(r=>(r.PROJECT_PUBLICATION_COMPLETED="GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED",r))(ir||{}),ci=(r=>(r.DeletePersistedEntity="base-delete-persisted-entity",r.SoftDeletePersistedEntity="base-soft-delete-persisted-entity",r.AbortExecution="base-abort-execution",r))(ci||{}),xn=(r=>(r.Error="error",r.Task="task",r.Return="return",r))(xn||{});const Dr=[n.VariableDeclaration,n.VariableInstance,n.InputMap,n.ReturnDeclaration],Tt=[n.VariableDeclaration,n.VariableInstance,n.ArgumentDeclaration,n.OutputMap],af=[...Dr,...Tt,n.Property,n.ValueDescriptor],it=[n.VariableDeclaration,n.VariableInstance],Rw=[n.FunctionDeclaration,n.Condition,n.Loop,n.Operation,n.FunctionCall,n.Search,n.InternalCall,n.GlobalEvent,n.DefinitionEntity,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.VariableDeclaration,n.VariableInstance,n.LiteralValue,n.ActionDescriptor,n.ValueDescriptor,n.Property,n.DataType,n.InstalledProject,n.ArgumentDeclaration,n.InputMap,n.OutputMap,n.ReturnDeclaration],Dw=[n.FunctionDeclaration,n.Property,n.ArgumentDeclaration,n.ReturnDeclaration],of=[n.FunctionCall,n.VariableInstance,n.InputMap,n.OutputMap,n.InternalCall],Ow=[...of,n.Condition,n.Loop,n.Operation,n.Condition],kn=[n.GlobalEvent],pd=[n.Operation,n.FunctionCall,n.Search,n.VariableDeclaration,n.VariableInstance,n.Loop],lf=[...pd,n.InternalCall],Sa=[...pd,n.Condition],dt=[...Sa,n.InternalCall],at=[n.FunctionDeclaration,...kn],gi=[...dt,n.ReturnStatement,n.BreakStatement,n.ContinueStatement],cd=[...Sa,n.ReturnStatement,n.BreakStatement,n.ContinueStatement],Gi=[...dt,...at],df=[...Sa,...at],Pw=[...gi,...at],ww=[...cd,...at],ut=[...at,n.Loop],ot=[n.ReturnStatement,n.BreakStatement,n.ContinueStatement],Cw=[n.DefinitionEntity,n.BuiltInBaseEntity,n.Project,n.InstalledProject,n.GlobalEvent,n.DataType,n.FunctionCall,n.FunctionDeclaration,n.ActionDescriptor,n.ValueDescriptor,n.ArgumentDeclaration,n.InputMap,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.ReturnDeclaration,n.OutputMap,n.PrimitiveEntity,n.LiteralValue,n.Property,n.Operation,n.Condition,n.VariableDeclaration,n.VariableInstance,n.Search,n.Loop,n.InternalCall],Wa=[n.DefinitionEntity,n.GlobalEvent,n.FunctionDeclaration,n.FunctionCall,n.VariableDeclaration,n.VariableInstance,n.Operation,n.Condition,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.InstalledProject,n.Loop,n.Search],uf=[n.DefinitionEntity,n.FunctionDeclaration,n.ArgumentDeclaration,n.ReturnDeclaration,n.Property,n.VariableDeclaration,n.Search,n.Project,n.InstalledProject,n.ActionDescriptor,n.ValueDescriptor],fi=[n.BuiltInBaseEntity,n.PrimitiveEntity],pf=[n.DefinitionEntity,n.FunctionDeclaration,n.ArgumentDeclaration,n.ReturnDeclaration,n.Property,n.VariableDeclaration,n.GlobalEvent,n.Search,n.Project,n.InstalledProject,n.ActionDescriptor,n.ValueDescriptor,n.InputMap,n.OutputMap,n.FunctionCall,n.Operation,n.Condition,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.VariableInstance,n.LiteralValue,n.InternalCall];var za=(r=>(r.ActionOngoingProcessOutputValue="action-ongoing-process-output-value-descriptor-id",r))(za||{});const k={[n.PrimitiveEntity]:{[L.String]:{id:"8b5fbe15-4c2b-48c0-9fd8-e5efbe3978dc",properties:{}},[L.Boolean]:{id:"f596545d-1565-4faa-9969-d95fa5edfea4",properties:{}},[L.Number]:{id:"ecb84c29-6153-4b82-86a5-fce2b5f92002",properties:{}},[L.KeyValue]:{id:"b6f3c3c4-9c3d-4f9d-9e9e-1c0f6a3c8c6b",properties:{}},[L.Enum]:{id:"9542b8b4-2642-4eee-9db9-def7963a17a0",properties:{options:{id:"00ccfcae-2104-45ef-bf6c-50ddccd74286",dataType:{id:"7dd59b70-f97b-43a7-a051-fde1842ce5d6",defaultValue:{id:"enum-options-property-data-type-default-value-id"}}}}},[L.UUID]:{id:"4a6234aa-c0f6-4731-b4dd-750388029226",properties:{}},[L.Date]:{id:"dc58f38b-d574-4956-aac6-32ce9529b937",properties:{}},[L.Null]:{id:"7d698f34-5a89-4aab-846b-07ef3843b8c4",properties:{}},[L.Untyped]:{id:"4044a018-818e-49d7-bf9a-c3dd1fff2102",properties:{}}},[n.ValueDescriptor]:{"action-ongoing-process-output-value-descriptor-id":{id:"action-ongoing-process-output-value-descriptor-id",dataType:{id:"process-output-value-data-type-id"}}},[n.BuiltInBaseEntity]:{[S.KEY_VALUE_PARAM]:{id:S.KEY_VALUE_PARAM},[S.HTTP_ENDPOINT]:{id:S.HTTP_ENDPOINT,properties:{method:{id:"http-endpoint-built-in-method-property-id"},path:{id:"http-endpoint-built-in-path-property-id"},cors:{id:"http-endpoint-built-in-cors-property-id"}},methods:{handler:{id:"http-endpoint-built-in-handler-method-id",outputs:{statusCode:{id:"http-endpoint-built-in-handler-status-code-output-id"},body:{id:"http-endpoint-built-in-handler-body-output-id"},headers:{id:"http-endpoint-built-in-handler-headers-output-id"}}}}},[S.PERSISTED_ENTITY]:{id:S.PERSISTED_ENTITY,properties:{database:{id:"persisted-built-in-base-entity-database-property-id"},primaryKey:{id:"persisted-built-in-base-entity-primary-key-property-id"}}},[S.RELATIONAL_DATABASE]:{id:S.RELATIONAL_DATABASE,properties:{identifier:{id:"relational-database-built-in-base-entity-identifier-property-id"},username:{id:"relational-database-built-in-base-entity-username-property-id"},password:{id:"relational-database-built-in-base-entity-password-property-id"},minSize:{id:"relational-database-built-in-base-entity-min-size-property-id"},default:{id:"relational-database-built-in-base-entity-default-property-id"},autoscaling:{id:"relational-database-built-in-base-entity-autoscaling-property-id"}}},[S.CRON_JOB]:{id:S.CRON_JOB,properties:{expression:{id:"cron-job-built-in-base-entity-expression-property-id"}},methods:{handler:{id:"cron-job-built-in-base-entity-handler-method-id"}}}},[n.Operation]:{[Ie.Join]:{id:Ie.Join,inputs:{separator:{id:"join-strings-separator-input-id"},first:{id:"join-strings-first-string-input-id"},second:{id:"join-strings-second-string-input-id"},dynamicString:{id:"join-strings-dynamic-string-input-id"}},outputs:{result:{id:"join-strings-result-string-return-delaration-id"},error:{id:"join-strings-error-return-delaration-id"}}},[Ie.Split]:{id:Ie.Split,inputs:{stringValue:{id:"split-string-string-input-id"},indexLocation:{id:"split-string-index-input-id"}},outputs:{firstPartResult:{id:"split-string-first-part-result-string-return-delaration-id"},secondPartResult:{id:"split-string-second-part-result-string-return-delaration-id"},error:{id:"split-string-error-return-delaration-id"}}},[et.Addition]:{id:et.Addition,inputs:{firstSummand:{id:"number-addition-first-summand-number-input-id"},secondSummand:{id:"number-addition-second-summand-number-input-id"},dynamicSummand:{id:"number-addition-dynamic-summand-number-input-id"}},outputs:{result:{id:"number-addition-result-number-return-delaration-id",dataType:{id:"number-addition-result-number-data-type-id"}},error:{id:"number-addition-error-return-delaration-id"}}},[et.Subtraction]:{id:et.Subtraction,inputs:{minuend:{id:"number-subtraction-minuend-number-input-id"},subtrahend:{id:"number-subtraction-subtrahend-number-input-id"},dynamicSubtrahend:{id:"number-subtraction-dynamic-subtrahend-number-input-id"}},outputs:{result:{id:"number-subtraction-result-number-return-delaration-id",dataType:{id:"number-subtraction-result-number-data-type-id"}},error:{id:"number-subtraction-error-return-delaration-id"}}},[Lt.HttpRequest]:{id:Lt.HttpRequest,inputs:{url:{id:"http-request-url-input-id"},query:{id:"http-request-query-input-id"},method:{id:"http-request-method-input-id"},headers:{id:"http-request-headers-input-id"},body:{id:"http-request-body-string-input-id"}},outputs:{code:{id:"http-response-code-return-delaration-id"},body:{id:"http-response-body-return-delaration-id"},headers:{id:"http-response-headers-return-delaration-id"},error:{id:"http-request-error-return-delaration-id"}}},[tt.Validate]:{id:tt.Validate,inputs:{entityToMatch:{id:"validate-data-entity-to-match-input-id"},dataToValidate:{id:"validate-data-data-to-validate-input-id"}},outputs:{outputEntity:{id:"validate-data-output-entity-return-delaration-id"},error:{id:"validate-data-error-return-delaration-id"}}},[Qe.Parallel]:{id:Qe.Parallel,inputs:{listOfActions:{id:"parallel-execution-list-of-actions-input-id"}},outputs:{results:{id:"parallel-execution-results-output-id",dataType:{id:"parallel-execution-results-data-type-id"}},error:{id:"parallel-execution-error-output-id"}}}},[n.Loop]:{[ee.List]:{id:ee.List,inputs:{list:{id:"iterate-over-list-loop-list-input-id"}},outputs:{results:{id:"iterate-over-list-loop-output-id"}},body:{id:"iterate-over-list-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-list-loop-iteration-number-input-id"},currentValue:{id:"iterate-over-list-loop-current-value-input-id"}}}},[ee.String]:{id:ee.String,inputs:{string:{id:"iterate-over-string-loop-string-input-id"}},outputs:{results:{id:"iterate-over-string-loop-output-id"}},body:{id:"iterate-over-string-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-string-loop-iteration-number-input-id"},currentValue:{id:"iterate-over-string-loop-current-value-input-id"}}}},[ee.ObjectKeys]:{id:ee.ObjectKeys,inputs:{object:{id:"iterate-over-object-keys-loop-object-input-id"}},outputs:{results:{id:"iterate-over-object-keys-loop-output-id"}},body:{id:"iterate-over-object-keys-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-object-keys-loop-iteration-number-input-id"},currentValue:{id:"iterate-over-object-keys-loop-current-value-input-id"}}}},[ee.ObjectValues]:{id:ee.ObjectValues,inputs:{object:{id:"iterate-over-object-values-loop-object-input-id"}},outputs:{results:{id:"iterate-over-object-values-loop-output-id"}},body:{id:"iterate-over-object-values-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-object-values-loop-iteration-number-input-id"},currentValue:{id:"iterate-over-object-values-loop-current-value-input-id"}}}},[ee.ManualFlow]:{id:ee.ManualFlow,inputs:{},outputs:{results:{id:"manual-flow-loop-output-id"}},body:{id:"manual-flow-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-manual-flow-loop-iteration-number-input-id"}}}},[ee.Counted]:{id:ee.Counted,inputs:{number:{id:"counted-loop-number-input-id"}},outputs:{results:{id:"counted-loop-output-id"}},body:{id:"counted-loop-body-descriptor-id",inputs:{iterationNumber:{id:"counted-loop-iteration-number-input-id"}}}}},[n.Condition]:{[yt.MoreThanOrEqual]:{id:yt.MoreThanOrEqual,inputs:{leftHand:{id:"condition-more-than-or-equal-left-hand-input-id",dataType:{id:"condition-more-than-or-equal-left-hand-data-type-id"}},rightHand:{id:"condition-more-than-or-equal-right-hand-input-id",dataType:{id:"condition-more-than-or-equal-right-hand-data-type-id"}}}},[bi.NotEmpty]:{id:bi.NotEmpty,inputs:{leftHand:{id:"condition-not-empty-input-id"}}}},[n.GlobalEvent]:{[ir.PROJECT_PUBLICATION_COMPLETED]:{id:ir.PROJECT_PUBLICATION_COMPLETED}}},yi=k[n.PrimitiveEntity],ae={type:n.PrimitiveEntity,id:yi.string.id,description:"A string of characters.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},rr={type:n.PrimitiveEntity,id:yi.boolean.id,description:"A 'true' or 'false' value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},ve={type:n.PrimitiveEntity,id:yi.number.id,description:"A number value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},fd={type:n.PrimitiveEntity,id:yi.null.id,description:"An explicitly empty value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Null,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},wt={type:n.PrimitiveEntity,id:yi.untyped.id,description:"Data of any type that isn't known in advance.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Untyped,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},cf={id:"c2f52f01-8f2e-490e-8083-72289c8189c1",type:n.GenericReference,entityId:yi.enum.properties.options.id,version:"1",entityType:n.Property},ff={id:"4e803941-2e6a-4227-b803-b8877c0d7fee",type:n.GenericReference,entityId:"00ccfcae-2104-45ef-bf6c-50ddccd74286",version:"1",entityType:n.Property},yf={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:yi.enum.properties.options.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:ae,asType:!1,parent:ff},hf={id:"a2983c4c-0286-4ef1-8b5c-5a52904d3200",type:n.GenericReference,entityId:"9542b8b4-2642-4eee-9db9-def7963a17a0",version:"1",entityType:n.PrimitiveEntity},mf={constant:!1,hidden:!1,required:!0,id:yi.enum.properties.options.id,name:"Options",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:yi.enum.properties.options.dataType.defaultValue.id,type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,autogeneration:null,value:[],valueAsTypeList:null,valueAsTypeSingle:null,parent:cf},dataType:yf,description:"Options for the enum. Each option is a text value.",parent:hf},nr={type:n.PrimitiveEntity,id:yi.enum.id,description:"A set of text options to choose from.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Enum,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[mf],methods:[]},Fi={type:n.PrimitiveEntity,id:yi.date.id,description:"A date and time value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Date,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},sr={type:n.PrimitiveEntity,id:yi.uuid.id,description:"A unique identifier in the form of a 36-character string.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.UUID,static:!1,abstract:!1,abstractMethods:[],extends:[ae],properties:[],methods:[]},Zn={type:n.PrimitiveEntity,id:yi[L.KeyValue].id,description:"A complex data structure with any combination of properties with names and values.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},vf=[ae,rr,ve,fd,wt,nr,Fi,sr,Zn],xi=k[n.Operation][et.Addition],Tf={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:xi.inputs.firstSummand.id,version:"1",entityType:n.ValueDescriptor},Ef={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"number-addition-first-number-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:Tf},If={type:n.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:xi.inputs.secondSummand.id,version:"1",entityType:n.ValueDescriptor},Af={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:If},bf={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:xi.outputs.result.id,version:"1",entityType:n.ValueDescriptor},Rf={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:xi.outputs.result.dataType.id,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:bf},Df={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:et.Addition,version:"1",entityType:n.ActionDescriptor},yd={id:xi.inputs.firstSummand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Summand",description:"The first number to add",defaultValue:null,dataType:Ef,required:!0,parentRelationType:N.FixedArguments,index:0,parent:Df},Of={type:n.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:et.Addition,version:"1",entityType:n.ActionDescriptor},hd={id:xi.inputs.secondSummand.id,type:n.ValueDescriptor,description:"The second number to add",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Summand",defaultValue:null,dataType:Af,required:!0,parentRelationType:N.FixedArguments,index:1,parent:Of},md={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:et.Addition,version:"1",entityType:n.ActionDescriptor},vd={parentRelationType:N.FixedReturns,id:xi.outputs.result.id,type:n.ValueDescriptor,description:"The result number of the addition",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",defaultValue:null,dataType:Rf,required:!0,index:0,parent:md},Pf={type:n.GenericReference,id:"number-addition-operation-error-parent-ref",entityId:et.Addition,version:"1",entityType:n.ActionDescriptor},wf={parentRelationType:N.FixedReturns,id:xi.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Pf},Cf={type:n.GenericReference,id:"number-addition-operation-dynamic-summand-argument-type-parent-ref",entityId:xi.inputs.dynamicSummand.id,version:"1",entityType:n.ValueDescriptor},Vf={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"number-addition-operation-dynamic-summand-argument-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:Cf},Bf={parentRelationType:N.DynamicArgument,id:xi.inputs.dynamicSummand.id,type:n.ValueDescriptor,description:"A number to add",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Summand",defaultValue:null,dataType:Vf,required:!0,index:2,parent:md},Ya={id:et.Addition,type:n.ActionDescriptor,description:"Sum numbers",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:et.Addition,inputs:[yd,hd,Bf],error:wf,outputs:[vd],parent:null},ki=k[n.Operation][et.Subtraction],_f={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:ki.inputs.minuend.id,version:"1",entityType:n.ValueDescriptor},Mf={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"number-subtraction-first-number-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:_f},Nf={type:n.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:ki.inputs.subtrahend.id,version:"1",entityType:n.ValueDescriptor},Lf={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:Nf},jf={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:ki.outputs.result.id,version:"1",entityType:n.ValueDescriptor},Uf={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:ki.outputs.result.dataType.id,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:jf},Td={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:et.Subtraction,version:"1",entityType:n.ActionDescriptor},$f={id:ki.inputs.minuend.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Minuend",description:"Base number to substract from",defaultValue:null,dataType:Mf,required:!0,parentRelationType:N.FixedArguments,index:0,parent:Td},gf={type:n.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:et.Subtraction,version:"1",entityType:n.ActionDescriptor},Gf={id:ki.inputs.subtrahend.id,type:n.ValueDescriptor,description:"The second number to substract",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Subtrahend",defaultValue:null,dataType:Lf,required:!0,parentRelationType:N.FixedArguments,index:1,parent:gf},Ff={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:et.Subtraction,version:"1",entityType:n.ActionDescriptor},xf={parentRelationType:N.FixedReturns,id:ki.outputs.result.id,type:n.ValueDescriptor,description:"The result number of the subtraction",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",defaultValue:null,dataType:Uf,required:!0,index:0,parent:Ff},kf={type:n.GenericReference,id:"number-subtraction-operation-error-parent-ref",entityId:et.Subtraction,version:"1",entityType:n.ActionDescriptor},Zf={parentRelationType:N.FixedReturns,id:ki.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:kf},qf={type:n.GenericReference,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-parent-ref",entityId:ki.inputs.dynamicSubtrahend.id,version:"1",entityType:n.ValueDescriptor},Jf={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:qf},Sf={id:ki.inputs.dynamicSubtrahend.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Subtrahend",description:"A number to substract",defaultValue:null,dataType:Jf,required:!0,parentRelationType:N.DynamicArgument,index:2,parent:Td},Ed={id:et.Subtraction,type:n.ActionDescriptor,description:"Substract numbers",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:et.Subtraction,inputs:[$f,Gf,Sf],error:Zf,outputs:[xf],parent:null},Wf={[et.Addition]:Ya,[et.Subtraction]:Ed},Ri=k[n.Operation][Ie.Join],zf={type:n.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:Ri.inputs.first.id,version:"1",entityType:n.ValueDescriptor},Yf={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"join-strings-first-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:zf},Hf={type:n.GenericReference,id:"join-strings-second-string-argument-declaration",entityId:Ri.inputs.second.id,version:"1",entityType:n.ValueDescriptor},Kf={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"join-strings-second-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:Hf},Xf={type:n.GenericReference,id:"join-strings-result-string-return-delaration",entityId:Ri.outputs.result.id,version:"1",entityType:n.ValueDescriptor},Qf={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"join-strings-result-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:Xf},ey={type:n.GenericReference,id:"join-strings-operation-first-string-argument-parent-ref",entityId:Ie.Join,version:"1",entityType:n.ActionDescriptor},Ha={id:Ri.inputs.first.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text",description:"The first text to join to the second one. Its value will be at the beginning of the resulting text.",defaultValue:null,dataType:Yf,parentRelationType:N.FixedArguments,required:!0,index:1,parent:ey},ty={type:n.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:Ri.inputs.first.id,version:"1",entityType:n.ValueDescriptor},iy={type:n.GenericReference,id:"join-strings-separator-string-data-type-default-value-parent-ref",entityId:Ri.inputs.separator.id,version:"1",entityType:n.ValueDescriptor},ry={type:n.LiteralValue,id:"join-strings-separator-string-data-type-default-value-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"",valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:iy},ny={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"join-strings-separator-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:ty},sy={type:n.GenericReference,id:"join-strings-operation-separator-string-argument-parent-ref",entityId:Ie.Join,version:"1",entityType:n.ActionDescriptor},ay={id:Ri.inputs.separator.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Separator",description:"The text value that will be inserted between each of the values that are joined.",defaultValue:ry,dataType:ny,parentRelationType:N.FixedArguments,required:!1,index:0,parent:sy},oy={type:n.GenericReference,id:"join-strings-operation-second-string-argument-parent-ref",entityId:Ie.Join,version:"1",entityType:n.ActionDescriptor},Ka={id:Ri.inputs.second.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text",description:"The second text to join to the first one. Its value will be at the end of the resulting text.",defaultValue:null,dataType:Kf,parentRelationType:N.FixedArguments,required:!0,index:2,parent:oy},ly={type:n.GenericReference,id:"join-strings-operation-result-string-return-parent-ref",entityId:Ie.Join,version:"1",entityType:n.ActionDescriptor},Bs={parentRelationType:N.FixedReturns,id:Ri.outputs.result.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",description:"The resulting text value.",defaultValue:null,dataType:Qf,required:!0,index:0,parent:ly},dy={type:n.GenericReference,id:"join-strings-operation-error-parent-ref",entityId:Ie.Join,version:"1",entityType:n.ActionDescriptor},uy={parentRelationType:N.FixedReturns,id:Ri.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:dy},py={type:n.GenericReference,id:"join-strings-dynamic-string-argument-declaration",entityId:Ri.inputs.dynamicString.id,version:"1",entityType:n.ValueDescriptor},cy={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"join-strings-dynamic-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:py},fy={type:n.GenericReference,id:"join-strings-operation-dynamic-string-argument-parent-ref",entityId:Ie.Join,version:"1",entityType:n.ActionDescriptor},yy={id:Ri.inputs.dynamicString.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text",description:"Text to join to the previous ones. Its value will be at the end of the resulting text.",defaultValue:null,dataType:cy,parentRelationType:N.DynamicArgument,required:!0,index:3,parent:fy},_s={id:Ie.Join,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ie.Join,description:"Join text values together, to form a single resulting text value.",inputs:[ay,Ha,Ka,yy],outputs:[Bs],error:uy,parent:null},ar=k[n.Operation][Ie.Split],hy={type:n.GenericReference,id:"split-string-string-argument-declaration",entityId:ar.inputs.stringValue.id,version:"1",entityType:n.ValueDescriptor},my={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"split-string-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:hy},vy={type:n.GenericReference,id:"split-string-index-argument-declaration",entityId:ar.inputs.indexLocation.id,version:"1",entityType:n.ValueDescriptor},Ty={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"split-string-index-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:vy},Ey={type:n.GenericReference,id:"split-string-first-part-result-string-return-delaration",entityId:ar.outputs.firstPartResult.id,version:"1",entityType:n.ValueDescriptor},Iy={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"split-string-first-part-result-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:Ey},Ay={type:n.GenericReference,id:"split-string-second-part-result-string-return-delaration",entityId:ar.outputs.secondPartResult.id,version:"1",entityType:n.ValueDescriptor},by={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"split-string-second-part-result-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:Ay},Ry={type:n.GenericReference,id:"split-string-operation-string-argument-parent-ref",entityId:Ie.Join,version:"1",entityType:n.ActionDescriptor},Dy={id:ar.inputs.stringValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Text value",description:"The text value that will be split into two at the given index location.",defaultValue:null,dataType:my,parentRelationType:N.FixedArguments,required:!0,index:0,parent:Ry},Oy={type:n.GenericReference,id:"split-string-operation-index-argument-parent-ref",entityId:Ie.Join,version:"1",entityType:n.ActionDescriptor},Py={id:ar.inputs.indexLocation.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Index location",description:"The index location where the text will be split into two. The text at this index will be the beginning of the second text.",defaultValue:null,dataType:Ty,parentRelationType:N.FixedArguments,required:!0,index:1,parent:Oy},wy={type:n.GenericReference,id:"split-string-operation-second-part-result-string-return-parent-ref",entityId:Ie.Join,version:"1",entityType:n.ActionDescriptor},Vw={parentRelationType:N.FixedReturns,id:ar.outputs.secondPartResult.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second part",description:"The secont part of the resulting text value.",defaultValue:null,dataType:by,required:!0,index:1,parent:wy},Cy={type:n.GenericReference,id:"split-string-operation-first-part-result-string-return-parent-ref",entityId:Ie.Join,version:"1",entityType:n.ActionDescriptor},Vy={parentRelationType:N.FixedReturns,id:ar.outputs.firstPartResult.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First part",description:"The first part of the resulting text value.",defaultValue:null,dataType:Iy,required:!0,index:0,parent:Cy},By={type:n.GenericReference,id:"split-string-operation-error-parent-ref",entityId:Ie.Join,version:"1",entityType:n.ActionDescriptor},_y={parentRelationType:N.FixedReturns,id:ar.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:By},Id={id:Ie.Split,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Ie.Split,description:"Split a text into two, at the given index location.",inputs:[Dy,Py],outputs:[Vy],error:_y,parent:null},My={[Ie.Join]:_s,[Ie.Split]:Id};var Ny=(r=>(r.FirstInputList="join-list-first-list-argument-declaration",r.SecondInputList="join-list-second-list-argument-declaration",r))(Ny||{}),Ly=(r=>(r.ResultList="join-list-result-list-return-delaration",r.Error="join-list-error-return-delaration",r))(Ly||{});const jy={type:n.GenericReference,id:"join-list-operation-first-list-argument-ref",entityId:"join-list-first-list-argument-declaration",version:"1",entityType:n.ValueDescriptor},Uy={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"join-list-first-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:jy},$y={type:n.GenericReference,id:"join-list-operation-second-list-argument-ref",entityId:"join-list-second-list-argument-declaration",version:"1",entityType:n.ValueDescriptor},gy={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"join-list-second-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:$y},Gy={type:n.GenericReference,id:"join-list-operation-result-list-return-ref",entityId:"join-list-result-list-return-delaration",version:"1",entityType:n.ValueDescriptor},Fy={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"join-list-result-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!0,parent:Gy},xy={type:n.GenericReference,id:"join-list-operation-first-list-argument-parent-ref",entityId:he.Join,version:"1",entityType:n.ActionDescriptor},ky={id:"join-list-first-list-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First value",description:"The first list to join to the second one. Its values will be at the beginning of the resulting list.",defaultValue:null,dataType:Uy,parentRelationType:N.FixedArguments,required:!0,index:0,parent:xy},Zy={type:n.GenericReference,id:"join-list-operation-second-list-argument-parent-ref",entityId:he.Join,version:"1",entityType:n.ActionDescriptor},qy={id:"join-list-second-list-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second value",description:"The second list to join to the first one. Its values will be at the end of the resulting list.",defaultValue:null,dataType:gy,parentRelationType:N.FixedArguments,required:!0,index:1,parent:Zy},Jy={type:n.GenericReference,id:"join-list-operation-result-list-return-parent-ref",entityId:he.Join,version:"1",entityType:n.ActionDescriptor},Sy={parentRelationType:N.FixedReturns,id:"join-list-result-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",description:"The resulting list value.",defaultValue:null,dataType:Fy,required:!0,index:0,parent:Jy},Wy={type:n.GenericReference,id:"join-list-operation-error-parent-ref",entityId:he.Join,version:"1",entityType:n.ActionDescriptor},zy={parentRelationType:N.FixedReturns,id:"join-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Wy},Ad={id:he.Join,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:he.Join,description:"Join two lists together, to form a single resulting list value.",inputs:[ky,qy],error:zy,outputs:[Sy],parent:null};var Yy=(r=>(r.InputList="list-to-split-argument-declaration",r.SplitIndex="split-list-index-argument-declaration",r))(Yy||{}),Hy=(r=>(r.FirstOutputList="split-list-first-output-list-return-delaration",r.SecondOutputList="split-list-second-output-list-return-delaration",r.Error="split-list-error-return-delaration",r))(Hy||{});const Ky={type:n.GenericReference,id:"split-list-operation-input-list-argument-ref",entityId:"list-to-split-argument-declaration",version:"1",entityType:n.ValueDescriptor},Xy={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"split-list-operation-input-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!0,parent:Ky},Qy={type:n.GenericReference,id:"split-list-operation-split-index-argument-ref",entityId:"split-list-index-argument-declaration",version:"1",entityType:n.ValueDescriptor},eh={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"split-list-operation-split-index-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:Qy},bd={type:n.GenericReference,id:"split-list-operation-first-output-list-return-ref",entityId:"split-list-first-output-list-return-delaration",version:"1",entityType:n.ValueDescriptor},th={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"split-list-operation-first-output-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!0,parent:bd},ih={type:n.GenericReference,id:"split-list-operation-input-list-argument-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},rh={id:"list-to-split-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List to split",description:"The list to split at the given index",defaultValue:null,dataType:Xy,parentRelationType:N.FixedArguments,required:!0,index:0,parent:ih},nh={type:n.GenericReference,id:"split-list-operation-split-index-argument-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},sh={id:"split-list-index-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Split location",description:"The index at which to split the list. The value at this index will be the first value of the second list.",defaultValue:null,dataType:eh,parentRelationType:N.FixedArguments,required:!0,index:1,parent:nh},ah={type:n.GenericReference,id:"split-list-operation-first-output-list-return-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},oh={parentRelationType:N.FixedReturns,id:"split-list-first-output-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First list",description:"The list of values up to the split index",defaultValue:null,dataType:th,required:!0,index:0,parent:ah},lh={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"split-list-operation-second-output-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!0,parent:bd},dh={type:n.GenericReference,id:"split-list-operation-second-output-list-return-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},uh={parentRelationType:N.FixedReturns,id:"split-list-second-output-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second list",description:"The list of values up to the split index",defaultValue:null,dataType:lh,required:!0,index:0,parent:dh},ph={type:n.GenericReference,id:"split-list-operation-error-parent-ref",entityId:he.Split,version:"1",entityType:n.ActionDescriptor},ch={parentRelationType:N.FixedReturns,id:"split-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:ph},Rd={id:he.Split,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:he.Split,description:"Splits a given list at the given index, and returns two lists, one with the values up to the index, and the other with the values after the index",inputs:[rh,sh],outputs:[oh,uh],error:ch,parent:null};var fh=(r=>(r.InputList="get-last-in-list-input-list-argument-declaration",r))(fh||{}),yh=(r=>(r.OutputElement="get-last-in-list-output-element-return-delaration",r.Error="get-last-in-list-error-return-delaration",r))(yh||{});const hh={type:n.GenericReference,id:"get-last-in-list-operation-input-list-argument-ref",entityId:"get-last-in-list-input-list-argument-declaration",version:"1",entityType:n.ValueDescriptor},mh={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"get-last-in-list-input-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:hh},vh={type:n.GenericReference,id:"get-last-in-list-operation-output-element-return-ref",entityId:"get-last-in-list-output-element-return-delaration",version:"1",entityType:n.ValueDescriptor},Th={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"get-last-in-list-output-element-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!0,parent:vh},Eh={type:n.GenericReference,id:"get-last-in-list-operation-input-list-argument-parent-ref",entityId:he.GetLast,version:"1",entityType:n.ActionDescriptor},Ih={id:"get-last-in-list-input-list-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List",description:"The list to get the last element from.",defaultValue:null,dataType:mh,parentRelationType:N.FixedArguments,required:!0,index:0,parent:Eh},Ah={type:n.GenericReference,id:"get-last-in-list-operation-output-element-return-parent-ref",entityId:he.GetLast,version:"1",entityType:n.ActionDescriptor},bh={parentRelationType:N.FixedReturns,id:"get-last-in-list-output-element-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Last element",description:"The last element of the given list.",defaultValue:null,dataType:Th,required:!0,index:0,parent:Ah},Rh={type:n.GenericReference,id:"get-last-in-list-operation-error-parent-ref",entityId:he.GetLast,version:"1",entityType:n.ActionDescriptor},Dh={parentRelationType:N.FixedReturns,id:"get-last-in-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Rh},Dd={id:he.GetLast,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:he.GetLast,description:"Outputs the last element of a given list.",inputs:[Ih],outputs:[bh],error:Dh,parent:null};var Oh=(r=>(r.List="append-to-list-lsit-argument-declaration",r.ElementToAppend="append-to-list-element-to-append-argument-declaration",r))(Oh||{}),Ph=(r=>(r.ResultList="append-to-list-result-list-return-delaration",r.Error="append-to-list-error-return-delaration",r))(Ph||{});const wh={type:n.GenericReference,id:"append-to-list-operation-lsit-argument-ref",entityId:"append-to-list-lsit-argument-declaration",version:"1",entityType:n.ValueDescriptor},Ch={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"append-to-list-lsit-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:wh},Vh={type:n.GenericReference,id:"append-to-list-operation-second-list-argument-ref",entityId:"append-to-list-element-to-append-argument-declaration",version:"1",entityType:n.ValueDescriptor},Bh={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"append-to-list-second-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!0,parent:Vh},_h={type:n.GenericReference,id:"append-to-list-operation-result-list-return-ref",entityId:"append-to-list-result-list-return-delaration",version:"1",entityType:n.ValueDescriptor},Mh={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"append-to-list-result-list-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!0,parent:_h},Nh={type:n.GenericReference,id:"append-to-list-operation-lsit-argument-parent-ref",entityId:he.Append,version:"1",entityType:n.ActionDescriptor},Od={id:"append-to-list-lsit-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List value",description:"The list to which the element will be appended",defaultValue:null,dataType:Ch,parentRelationType:N.FixedArguments,required:!0,index:0,parent:Nh},Lh={type:n.GenericReference,id:"append-to-list-operation-second-list-argument-parent-ref",entityId:he.Append,version:"1",entityType:n.ActionDescriptor},Pd={id:"append-to-list-element-to-append-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Element",description:"The element that will be added at the end of the list",defaultValue:null,dataType:Bh,parentRelationType:N.FixedArguments,required:!0,index:1,parent:Lh},jh={type:n.GenericReference,id:"append-to-list-operation-result-list-return-parent-ref",entityId:he.Append,version:"1",entityType:n.ActionDescriptor},Uh={parentRelationType:N.FixedReturns,id:"append-to-list-result-list-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",description:"The resulting list value.",defaultValue:null,dataType:Mh,required:!0,index:0,parent:jh},$h={type:n.GenericReference,id:"append-to-list-operation-error-parent-ref",entityId:he.Append,version:"1",entityType:n.ActionDescriptor},gh={parentRelationType:N.FixedReturns,id:"append-to-list-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:$h},Xa={id:he.Append,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:he.Append,description:"Adds a given element to the end of a list value.",inputs:[Od,Pd],error:gh,outputs:[Uh],parent:null},Gh={[he.Join]:Ad,[he.Split]:Rd,[he.GetLast]:Dd,[he.Append]:Xa},qn=k[n.Operation][Qe.Parallel],Fh={id:"parallel-execution-list-of-functions-blueprint-dynamic-output-parent-ref",type:n.GenericReference,entityId:"parallel-execution-list-of-functions-blueprint-id",version:"1",entityType:n.ActionDescriptor},xh={id:"parallel-execution-list-of-functions-blueprint-dynamic-output-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any output value",description:"An output value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:Fh,parentRelationType:N.DynamicArgument},kh={id:"parallel-execution-list-of-functions-blueprint-dynamic-input-parent-ref",type:n.GenericReference,entityId:"parallel-execution-list-of-functions-blueprint-id",version:"1",entityType:n.ActionDescriptor},Zh={id:"parallel-execution-list-of-functions-blueprint-dynamic-input-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any input value",description:"An input value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:kh,parentRelationType:N.DynamicArgument},qh={id:"parallel-execution-list-of-functions-blueprint-parent-ref",type:n.GenericReference,entityId:"parallel-execution-list-of-functions-argument-data-type-id",version:"1",entityType:n.DataType},Jh={id:"parallel-execution-list-of-functions-blueprint-id",type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[Zh],outputs:[xh],error:null,parent:qh},Sh={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:qn.inputs.listOfActions.id,version:"1",entityType:n.ValueDescriptor},Wh={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"parallel-execution-list-of-functions-argument-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Jh,asType:!1,isList:!0,parent:Sh},zh={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:qn.outputs.results.id,version:"1",entityType:n.ValueDescriptor},Yh={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:qn.outputs.results.dataType.id,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!0,parent:zh},Hh={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:Qe.Parallel,version:"1",entityType:n.ActionDescriptor},wd={id:qn.inputs.listOfActions.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",dataType:Wh,defaultValue:null,required:!0,index:0,parent:Hh,parentRelationType:N.FixedArguments},Kh={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:Qe.Parallel,version:"1",entityType:n.ActionDescriptor},Cd={id:qn.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List of execution results",description:"Each execution result, in the same order as the input list of actions. One item on this list for each executed action.",dataType:Yh,defaultValue:null,required:!0,index:0,parent:Kh,parentRelationType:N.FixedReturns},Xh={type:n.GenericReference,id:"parallel-execution-operation-error-parent-ref",entityId:Qe.Parallel,version:"1",entityType:n.ActionDescriptor},Qh={id:qn.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Xh,parentRelationType:N.ReturnedError},Vi={id:Qe.Parallel,type:n.ActionDescriptor,description:"Execute a list of actions in parallel",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Qe.Parallel,inputs:[wd],outputs:[Cd],error:Qh,parent:null};var em=(r=>(r.MillisecondsNumber="wait-milliseconds-number-argument-declaration",r))(em||{}),tm=(r=>(r.Error="wait-operation-error-return-delaration",r))(tm||{});const im={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",version:"1",entityType:n.ValueDescriptor,entityId:"wait-milliseconds-number-argument-declaration"},rm={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"wait-milliseconds-number-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:im},nm={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",version:"1",entityType:n.ActionDescriptor,entityId:Qe.Wait},dn={id:"wait-milliseconds-number-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Milliseconds to wait",description:"The amount of milliseconds to wait before calling the next entity",defaultValue:null,dataType:rm,required:!0,index:0,parent:nm,parentRelationType:N.FixedArguments},sm={type:n.GenericReference,id:"wait-operation-error-parent-ref",entityId:Qe.Wait,version:"1",entityType:n.ActionDescriptor},am={id:"wait-operation-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:sm,parentRelationType:N.ReturnedError},Wt={id:Qe.Wait,type:n.ActionDescriptor,description:"Wait for the given amount of milliseconds before calling the next entity",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Qe.Wait,inputs:[dn],outputs:[],error:am,parent:null};var om=(r=>(r.ListOfFunctions="sequential-execution-list-of-functions-argument-declaration",r))(om||{}),lm=(r=>(r.ListOfExecutionResults="sequential-execution-result-return-delaration",r.Error="sequential-execution-error-return-delaration",r))(lm||{});const dm={id:"sequential-execution-list-of-functions-blueprint-dynamic-output-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any output value",description:"An output value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:null,parentRelationType:N.DynamicArgument},um={id:"sequential-execution-list-of-functions-blueprint-dynamic-input-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any input value",description:"An input value of any type, to be used in the action to be executed.",defaultValue:null,dataType:null,required:!1,index:0,parent:null,parentRelationType:N.DynamicArgument},pm={id:"sequential-execution-list-of-functions-blueprint-id",type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[um],outputs:[dm],error:null,parent:null},cm={type:n.GenericReference,id:"parallel-execution-list-of-functions-argument-declaration-id",entityId:"sequential-execution-list-of-functions-argument-declaration",version:"1",entityType:n.ValueDescriptor},fm={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"sequential-execution-list-of-functions-argument-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:pm,asType:!1,isList:!0,parent:cm},ym={type:n.GenericReference,id:"sequential-execution-list-of-execution-results-return-declaration-id",entityId:"sequential-execution-result-return-delaration",version:"1",entityType:n.ValueDescriptor},hm={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"sequential-execution-list-of-execution-results-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!0,parent:ym},mm={type:n.GenericReference,id:"parallel-execution-operation-list-of-functions-argument-parent-ref",entityId:Qe.Sequential,version:"1",entityType:n.ActionDescriptor},Vd={id:"sequential-execution-list-of-functions-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",defaultValue:null,dataType:fm,required:!0,index:0,parent:mm,parentRelationType:N.FixedArguments},vm={type:n.GenericReference,id:"parallel-execution-operation-list-of-execution-results-return-parent-ref",entityId:Qe.Sequential,version:"1",entityType:n.ActionDescriptor},Bd={id:"sequential-execution-result-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List of execution results",description:"Each execution result, in the same order as the input list of actions. One item on this list for each executed action.",defaultValue:null,dataType:hm,required:!0,index:0,parent:vm,parentRelationType:N.FixedReturns},Tm={type:n.GenericReference,id:"sequential-execution-operation-error-parent-ref",entityId:Qe.Sequential,version:"1",entityType:n.ActionDescriptor},Em={id:"sequential-execution-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Tm,parentRelationType:N.ReturnedError},or={id:Qe.Sequential,type:n.ActionDescriptor,description:"Execute a list of actions one after the other",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:Qe.Sequential,inputs:[Vd],outputs:[Bd],error:Em,parent:null},Im={[Qe.Parallel]:Vi,[Qe.Wait]:Wt,[Qe.Sequential]:or};var Am=(r=>(r.EntityToInstanciate="entity-to-instanciate-argument-declaration",r.NewEntityData="new-entity-data-argument-declaration",r))(Am||{}),bm=(r=>(r.Error="create-new-instance-error-return-delaration",r))(bm||{});const Rm={type:n.GenericReference,id:"new-entity-data-argument-declaration-parent-ref",entityId:tt.CreateNewInstance,version:"1",entityType:n.ActionDescriptor},Dm={type:n.GenericReference,id:"new-entity-data-argument-data-type-parent-ref",entityId:"new-entity-data-argument-declaration",version:"1",entityType:n.ValueDescriptor},Om={like:!1,staticEntities:!1,interactiveEntities:null,actionEntities:!1,inferred:!1,id:"new-entity-data-argument-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:Dm},Pm={id:"new-entity-data-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Data for new entity",description:"The data to be used to create the new entity, with all the required properties",dataType:Om,required:!0,defaultValue:null,parentRelationType:N.FixedArguments,index:1,parent:Rm},wm={type:n.GenericReference,id:"entity-to-instanciate-argument-declaration-ref",version:"1",entityType:n.ValueDescriptor,entityId:"entity-to-instanciate-argument-declaration"},Cm={like:!1,staticEntities:!1,interactiveEntities:!0,actionEntities:!1,inferred:!1,id:"entity-to-instanciate-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!0,parent:wm},Vm={type:n.GenericReference,id:"create-new-instance-operation-ref",version:"1",entityType:n.ActionDescriptor,entityId:tt.CreateNewInstance},Bm={id:"entity-to-instanciate-argument-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Entity to create a new copy of",description:"The entity of which a new copy will to be created",defaultValue:null,dataType:Cm,required:!0,parentRelationType:N.FixedArguments,index:0,parent:Vm},_m={type:n.GenericReference,id:"create-new-instance-output-entity-declaration-parent-ref",entityId:tt.CreateNewInstance,version:"1",entityType:n.ActionDescriptor},Mm={parentRelationType:N.FixedReturns,id:"create-new-instance-output-entity-declaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Created entity",description:"The entity that was created",defaultValue:null,dataType:null,parent:_m,required:!0,index:0},Nm={type:n.GenericReference,id:"create-new-instance-error-parent-ref",entityId:tt.CreateNewInstance,version:"1",entityType:n.ActionDescriptor},Lm={parentRelationType:N.FixedReturns,id:"create-new-instance-error-return-delaration",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Nm},un={id:tt.CreateNewInstance,type:n.ActionDescriptor,description:"Creates a new copy of a given entity, with the given values for each property, or default values if a value is not provided",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:tt.CreateNewInstance,inputs:[Bm,Pm],outputs:[Mm],error:Lm,parent:null},Jn=k[n.Operation][tt.Validate],jm={type:n.GenericReference,id:"validate-data-operation-data-to-validate-argument-declaration-ref",version:"1",entityType:n.ValueDescriptor,entityId:Jn.inputs.dataToValidate.id},Um={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:!1,inferred:!1,id:"validate-data-operation-data-to-validate-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:jm},$m={type:n.GenericReference,id:"validate-data-operation-data-to-validate-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:tt.Validate},gm={id:Jn.inputs.dataToValidate.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Data to validate",description:"The value to validate against the given entity type",defaultValue:null,dataType:Um,required:!0,parentRelationType:N.FixedArguments,index:0,parent:$m},Gm={type:n.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-declaration-ref",version:"1",entityType:n.ValueDescriptor,entityId:Jn.inputs.entityToMatch.id},Fm={like:!1,inferred:!1,id:"validate-data-operation-entity-to-match-type-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!0,staticEntities:null,interactiveEntities:!0,actionEntities:!1,parent:Gm},xm={type:n.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:tt.Validate},km={id:Jn.inputs.entityToMatch.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Entity to match",description:"The entity to match the data against",dataType:Fm,defaultValue:null,required:!0,index:0,parentRelationType:N.FixedArguments,parent:xm},Zm={type:n.GenericReference,id:"validate-data-operation-output-entity-declaration-parent-ref",entityId:tt.Validate,version:"1",entityType:n.ActionDescriptor},qm={id:Jn.outputs.outputEntity.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:null,name:"Output value",description:"A value with the type of the entity that was validated",defaultValue:null,parent:Zm,required:!0,index:0,parentRelationType:N.FixedReturns},Jm={type:n.GenericReference,id:"wait-operation-error-parent-ref",entityId:tt.Validate,version:"1",entityType:n.ActionDescriptor},Sm={id:Jn.outputs.error.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"An error that occurred during the operation.",dataType:null,defaultValue:null,required:!0,index:1,parent:Jm,parentRelationType:N.ReturnedError},pn={id:tt.Validate,type:n.ActionDescriptor,description:"Validates the given data to see if it matches the structure of a given type/entity",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:tt.Validate,inputs:[km,gm],outputs:[qm],error:Sm,parent:null},Wm={[tt.CreateNewInstance]:un,[tt.Validate]:pn},At=k[n.Operation]["base-http-request"],zm={type:n.GenericReference,id:"d87cf943-57e1-4d19-9f05-190fa8c8ebc4",version:"1",entityType:n.ValueDescriptor,entityId:At.inputs.url.id},Ym={id:"http-request-url-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://some-url.com",name:L.String,valueAsTypeSingle:null,valueAsTypeList:null,parent:zm,autogeneration:null},Hm={type:n.GenericReference,id:"aed50d73-eab5-42ce-b00e-7f5c45a9026f",entityId:At.inputs.url.id,version:"1",entityType:n.ValueDescriptor},Km={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:Hm},Xm={type:n.GenericReference,id:"c3145af6-3387-464a-8887-272e483c856d",entityId:At.inputs.query.id,version:"1",entityType:n.ValueDescriptor},Qm={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"2a5ba737-6335-4cc4-a2c0-16dca4052fac",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:Xm},e0={type:n.GenericReference,id:"075556b7-e468-48f7-8485-7159eaf389b2",version:"1",entityType:n.ValueDescriptor,entityId:At.inputs.method.id},t0={id:"http-request-method-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:L.Enum,valueAsTypeSingle:null,valueAsTypeList:null,parent:e0,autogeneration:null},i0={type:n.GenericReference,id:"aed647c8-a1b5-4cfc-9a3d-97887a567a80",entityId:At.inputs.method.id,version:"1",entityType:n.ValueDescriptor},r0={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"6df7ec2b-5dbd-44af-896b-17b314e88560",type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:nr,isList:!1,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:i0},n0={type:n.GenericReference,id:"77203dfa-d2f6-4804-9556-e1cce46228f3",entityId:At.inputs.headers.id,version:"1",entityType:n.ValueDescriptor},s0={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"2c8a2a07-69c6-40ad-b5c9-f0dc4d5955ce",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wt,asType:!1,isList:!1,parent:n0},a0={type:n.GenericReference,id:"03db68a0-7ab6-4c6a-85b6-f4b95ebb53ff",entityId:At.inputs.body.id,version:"1",entityType:n.ValueDescriptor},o0={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"0397876c-ed54-4ee9-85a4-04fd16dad973",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wt,asType:!1,isList:!1,parent:a0},l0={type:n.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",version:"1",entityType:n.ValueDescriptor,entityId:At.outputs.code.id},d0={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"45e6d0bc-0c0e-4059-a7a1-6bee925d73d0",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:l0},u0={type:n.GenericReference,id:"2baaa53a-9aef-4bd1-b06d-967c17b7b627",version:"1",entityType:n.ValueDescriptor,entityId:At.outputs.headers.id},p0={type:n.GenericReference,id:"69f34d6c-c686-4165-b6ff-70dae8e1778b",version:"1",entityType:n.ValueDescriptor,entityId:At.outputs.headers.id},c0={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wt,isList:!1,asType:!1,parent:p0},f0={type:n.GenericReference,id:"744334e0-5135-4214-85d0-809437cb620b",version:"1",entityType:n.ValueDescriptor,entityId:At.outputs.body.id},y0={type:n.GenericReference,id:"0e0e20df-1a46-432c-ba01-fd96508a6a61",version:"1",entityType:n.ValueDescriptor,entityId:At.outputs.body.id},h0={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"05fc1a5d-151a-479a-9c4e-4063f3456177",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wt,isList:!1,asType:!1,parent:y0},m0={type:n.GenericReference,id:"26911792-f707-4bf1-b6f7-03d04a84232c",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},Qa={id:At.inputs.method.id,type:n.ValueDescriptor,description:"A single word that represents the type of request you want to make. For example: GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD, TRACE, CONNECT, CUSTOM",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Method",defaultValue:t0,dataType:r0,required:!1,index:0,parentRelationType:N.FixedArguments,parent:m0},v0={type:n.GenericReference,id:"eee0c501-0ae6-4448-b914-aada76d63163",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},eo={id:At.inputs.url.id,type:n.ValueDescriptor,description:"The base domain, or address where the request is being sent to. For example: https://some-url.com",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"URL",dataType:Km,defaultValue:Ym,required:!1,index:1,parentRelationType:N.FixedArguments,parent:v0},T0={type:n.GenericReference,id:"670091a4-21b1-4223-ad4c-b6dada0aec49",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},_d={id:At.inputs.query.id,type:n.ValueDescriptor,description:"A text with standarized format, without spaces that is added at the end of the URL path, after the ? character. It contains data that might be used to process the request. For example: /api/users?name=John&age=30",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Query Params",defaultValue:null,dataType:Qm,required:!1,index:2,parentRelationType:N.FixedArguments,parent:T0},E0={type:n.GenericReference,id:"85aad3eb-22fe-45f9-b68c-1dc7061f41e0",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},to={id:At.inputs.headers.id,type:n.ValueDescriptor,description:"A set of any properties, with names and values that represent metadata about the request, such as the server, date, content type, and more, that you want to send alongside your request data.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Headers",defaultValue:null,dataType:s0,required:!1,index:3,parent:E0,parentRelationType:N.FixedArguments},I0={type:n.GenericReference,id:"c3e2a4af-9b84-4574-8b30-5044ffc51776",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},io={id:At.inputs.body.id,type:n.ValueDescriptor,description:"The main data payload of the request. This is the data that you want to send to the server. It could be anything, but it is usually a KeyValue data structure or a text value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Body",dataType:o0,defaultValue:null,required:!1,index:4,parentRelationType:N.FixedArguments,parent:I0},A0={type:n.GenericReference,id:"92e04dc7-2145-4a31-908e-03810f7235e8",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},ro={id:At.outputs.code.id,type:n.ValueDescriptor,description:'A standardized status code of the response. It is a 3-digit number that represents the response status. For example, 200 means "OK", 404 means "Not Found", and 500 means "Internal Server Error".',version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Code",defaultValue:null,dataType:d0,required:!0,index:0,parentRelationType:N.FixedReturns,parent:A0},b0={type:n.GenericReference,id:"86aca556-bbf1-4679-9909-31db61b288e2",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},no={parentRelationType:N.FixedReturns,id:At.outputs.headers.id,type:n.ValueDescriptor,description:"A set of any properties, with names and value that the server sent back to you. It represents metadata about the response, such as the server, date, content type, and more.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Headers",defaultValue:{id:"http-response-headers-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:{},name:L.KeyValue,parent:u0,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:c0,required:!0,index:1,parent:b0},R0={type:n.GenericReference,id:"ccf3d1be-04e4-4d03-99fd-5bc1e1919f90",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},so={id:At.outputs.body.id,type:n.ValueDescriptor,description:"The main data payload of the response. This is the data that the server sent back to you. It could be anything, but it is usually a KeyValue data structure or a text value.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Body",parentRelationType:N.FixedReturns,dataType:h0,defaultValue:{id:"http-response-body-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:{},name:L.KeyValue,parent:f0,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},required:!0,index:2,parent:R0},D0={type:n.GenericReference,id:"21487ffc-82b9-473d-bc19-6e7d7c480ed7",version:"1",entityType:n.ActionDescriptor,entityId:Lt.HttpRequest},O0={type:n.GenericReference,id:"ad69861b-32f7-4461-b7f7-aa84a82578d9",version:"1",entityType:n.ValueDescriptor,entityId:At.outputs.error.id},P0={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"5da68b15-57bc-40c1-b79f-a9075e0f22c1",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wt,isList:!1,asType:!1,parent:O0},Md={parentRelationType:N.ReturnedError,id:At.outputs.error.id,type:n.ValueDescriptor,description:"Http request error, if any. Contains a payload describing what went wrong.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",defaultValue:null,dataType:P0,required:!0,index:0,parent:D0},Ms={type:n.ActionDescriptor,id:Lt.HttpRequest,name:Lt.HttpRequest,description:"Make an HTTP request, out to the internet, to a given URL with the specified method, query parameters, headers, and body.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[Qa,eo,_d,to,io],outputs:[ro,no,so],error:Md,parent:null},w0={[Lt.HttpRequest]:Ms},C0={...My,...Wf,...Gh,...Im,...Wm,...w0},V0=Object.values(C0),Bw=k[n.Loop]["manual-flow-loop"],B0={id:"manual-flow-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.ManualFlow,version:"1",entityType:n.ActionDescriptor},_0={id:Bw.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:B0,parentRelationType:N.DynamicReturn},ao={id:ee.ManualFlow,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ee.ManualFlow,description:"A loop that is manually controlled by the continue and break statements. It runs until the break statement is called, and it can skip to the next iteration with the continue statement.",inputs:[],outputs:[_0],error:null,parent:null},Ns=k[n.Loop]["manual-flow-loop"],M0={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"manual-flow-loop-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},N0={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"manual-flow-loop-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:M0},L0={id:"manual-flow-loop-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:Ns.body.id,version:"1",entityType:n.ActionDescriptor},Nd={id:Ns.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the manual flow loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:N0,required:!0,index:0,parentRelationType:N.FixedArguments,parent:L0},j0={id:"manual-flow-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:Ns.body.id,version:"1",entityType:n.ActionDescriptor},U0={id:"manual-flow-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:1,parentRelationType:N.DynamicArgument,parent:j0},$0={id:"manual-flow-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:Ns.body.id,version:"1",entityType:n.ActionDescriptor},g0={id:"manual-flow-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:$0},oo={id:Ns.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the manual flow loop.",inputs:[Nd,U0],outputs:[g0],error:null,parent:null},G0=k[n.Loop]["string-loop"],F0={id:"iterate-over-string-loop-string-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-string-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},x0={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-string-loop-string-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ae,asType:!1,parent:F0},k0={id:"iterate-over-string-loop-string-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.String,version:"1",entityType:n.ActionDescriptor},Z0={id:G0.inputs.string.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Texts",description:"The text to iterate over the characters of",defaultValue:null,required:!0,dataType:x0,index:0,parent:k0,parentRelationType:N.FixedArguments},q0={id:"iterate-over-string-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.String,version:"1",entityType:n.ActionDescriptor},J0={id:G0.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:q0,parentRelationType:N.DynamicReturn},Ls={id:ee.String,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ee.String,description:"Iterates over a string of entities",inputs:[Z0],outputs:[J0],error:null,parent:null},cn=k[n.Loop]["string-loop"],S0={id:"iterate-over-string-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},W0={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-string-loop-body-current-value-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ae,asType:!1,parent:S0},z0={id:"iterate-over-string-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:cn.body.id,version:"1",entityType:n.ActionDescriptor},Ld={id:cn.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value in the string that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:W0,required:!0,index:1,parentRelationType:N.FixedArguments,parent:z0},Y0={id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},H0={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:Y0},K0={id:"iterate-over-string-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:cn.body.id,version:"1",entityType:n.ActionDescriptor},jd={id:cn.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the string loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:H0,required:!0,index:0,parentRelationType:N.FixedArguments,parent:K0},X0={id:"iterate-over-string-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:cn.body.id,version:"1",entityType:n.ActionDescriptor},Q0={id:"iterate-over-string-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:N.DynamicArgument,parent:X0},ev={id:"iterate-over-string-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:cn.body.id,version:"1",entityType:n.ActionDescriptor},tv={id:"iterate-over-string-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:ev},lo={id:cn.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[jd,Ld,Q0],outputs:[tv],error:null,parent:null},iv=k[n.Loop]["list-loop"],rv={id:"iterate-over-list-loop-list-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-list-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},nv={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-list-loop-list-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!0,entity:null,asType:!1,parent:rv},sv={id:"iterate-over-list-loop-list-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.List,version:"1",entityType:n.ActionDescriptor},av={id:iv.inputs.list.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List",description:"The list to iterate over",required:!0,defaultValue:null,dataType:nv,index:0,parent:sv,parentRelationType:N.FixedArguments},ov={id:"iterate-over-list-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.List,version:"1",entityType:n.ActionDescriptor},lv={id:iv.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",required:!1,defaultValue:null,dataType:null,index:0,parent:ov,parentRelationType:N.DynamicReturn},Or={id:ee.List,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ee.List,description:"Iterates over a list of entities",inputs:[av],outputs:[lv],error:null,parent:null},fn=k[n.Loop]["list-loop"],dv={id:"iterate-over-list-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},uv={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-list-loop-body-current-value-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:null,asType:!1,parent:dv},pv={id:"iterate-over-list-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:fn.body.id,version:"1",entityType:n.ActionDescriptor},uo={id:fn.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value in the list that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:uv,required:!0,index:1,parentRelationType:N.FixedArguments,parent:pv},cv={id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},fv={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:cv},yv={id:"iterate-over-list-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:fn.body.id,version:"1",entityType:n.ActionDescriptor},hv={id:fn.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the list loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:fv,required:!0,index:0,parentRelationType:N.FixedArguments,parent:yv},mv={id:"iterate-over-list-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:fn.body.id,version:"1",entityType:n.ActionDescriptor},vv={id:"iterate-over-list-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:N.DynamicArgument,parent:mv},Tv={id:"iterate-over-list-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:fn.body.id,version:"1",entityType:n.ActionDescriptor},Ev={id:"iterate-over-list-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:Tv},js={id:fn.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the list loop.",inputs:[hv,uo,vv],outputs:[Ev],error:null,parent:null},Iv=k[n.Loop]["object-keys-loop"],Av={id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-object-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},bv={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:wt,asType:!1,parent:Av},Rv={id:"iterate-over-object-keys-loop-object-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.ObjectKeys,version:"1",entityType:n.ActionDescriptor},Dv={id:Iv.inputs.object.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Object",description:"The object to iterate over",required:!0,defaultValue:null,dataType:bv,index:0,parent:Rv,parentRelationType:N.FixedArguments},Ov={id:"iterate-over-object-keys-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.ObjectKeys,version:"1",entityType:n.ActionDescriptor},Pv={id:Iv.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:Ov,parentRelationType:N.DynamicReturn},Sn={id:ee.ObjectKeys,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ee.ObjectKeys,description:"Iterates over a object of entities",inputs:[Dv],outputs:[Pv],error:null,parent:null},yn=k[n.Loop]["object-keys-loop"],wv={id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},Cv={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ae,asType:!1,parent:wv},Vv={id:"iterate-over-object-keys-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:yn.body.id,version:"1",entityType:n.ActionDescriptor},Ud={id:yn.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value in the object-keys that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:Cv,required:!0,index:1,parentRelationType:N.FixedArguments,parent:Vv},Bv={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},_v={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:Bv},Mv={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:yn.body.id,version:"1",entityType:n.ActionDescriptor},Nv={id:yn.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the object-keys loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:_v,required:!0,index:0,parentRelationType:N.FixedArguments,parent:Mv},Lv={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:yn.body.id,version:"1",entityType:n.ActionDescriptor},jv={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:N.DynamicArgument,parent:Lv},Uv={id:"iterate-over-object-keys-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:yn.body.id,version:"1",entityType:n.ActionDescriptor},$v={id:"iterate-over-object-keys-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:Uv},$d={id:yn.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the object-keys loop.",inputs:[Nv,Ud,jv],outputs:[$v],error:null,parent:null},gv=k[n.Loop]["object-values-loop"],Gv={id:"iterate-over-object-values-loop-object-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-object-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},Fv={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-object-values-loop-object-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:wt,asType:!1,parent:Gv},xv={id:"iterate-over-object-values-loop-object-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.ObjectValues,version:"1",entityType:n.ActionDescriptor},kv={id:gv.inputs.object.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Object",description:"The object to iterate over",required:!0,defaultValue:null,dataType:Fv,index:0,parent:xv,parentRelationType:N.FixedArguments},Zv={id:"iterate-over-object-values-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.ObjectValues,version:"1",entityType:n.ActionDescriptor},qv={id:gv.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:Zv,parentRelationType:N.DynamicReturn},Wn={id:ee.ObjectValues,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ee.ObjectValues,description:"Iterates over a object of entities",inputs:[kv],outputs:[qv],error:null,parent:null},hn=k[n.Loop]["object-values-loop"],Jv={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-body-current-value-declaration-id",version:"1",entityType:n.ValueDescriptor},Sv={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:null,entity:null,asType:null,staticEntities:null,interactiveEntities:null,actionEntities:!1,like:!1,inferred:!1,parent:Jv},Wv={id:"iterate-over-object-values-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:hn.body.id,version:"1",entityType:n.ActionDescriptor},gd={id:hn.body.inputs.currentValue.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value in the object-values that is being iterated over. This value is passed to the child actions.",defaultValue:null,dataType:Sv,required:!0,index:1,parentRelationType:N.FixedArguments,parent:Wv},zv={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},Yv={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:zv},Hv={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:hn.body.id,version:"1",entityType:n.ActionDescriptor},Kv={id:hn.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the object-values loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:Yv,required:!0,index:0,parentRelationType:N.FixedArguments,parent:Hv},Xv={id:"iterate-over-object-values-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:hn.body.id,version:"1",entityType:n.ActionDescriptor},Qv={id:"iterate-over-object-values-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:2,parentRelationType:N.DynamicArgument,parent:Xv},eT={id:"iterate-over-object-values-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:hn.body.id,version:"1",entityType:n.ActionDescriptor},tT={id:"iterate-over-object-values-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:eT},Gd={id:hn.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the object-values loop.",inputs:[Kv,gd,Qv],outputs:[tT],error:null,parent:null},Fd=k[n.Loop]["counted-loop"],iT={id:"counted-loop-string-argument-declaration-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:Fd.inputs.number.id,version:"1",entityType:n.ValueDescriptor},rT={id:"counted-loop-string-argument-declaration-data-type-default-value-id",type:n.LiteralValue,name:L.Number,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:5,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:iT},nT={id:"counted-loop-string-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"counted-loop-string-argument-declaration-id",version:"1",entityType:n.ValueDescriptor},sT={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"counted-loop-string-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:nT},aT={id:"counted-loop-string-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.Counted,version:"1",entityType:n.ActionDescriptor},oT={id:Fd.inputs.number.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Number of iterations",description:"The number of iterations to perform",required:!0,dataType:sT,defaultValue:rT,index:0,parent:aT,parentRelationType:N.FixedArguments},lT={id:"counted-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:ee.Counted,version:"1",entityType:n.ActionDescriptor},dT={id:Fd.outputs.results.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:lT,parentRelationType:N.DynamicReturn},Us={id:ee.Counted,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ee.Counted,description:"Iterates a given number of times",inputs:[oT],outputs:[dT],error:null,parent:null},$s=k[n.Loop]["counted-loop"],uT={id:"counted-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"counted-loop-body-current-iteration-number-declaration-id",version:"1",entityType:n.ValueDescriptor},pT={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"counted-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,entity:ve,asType:!1,parent:uT},cT={id:"counted-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:$s.body.id,version:"1",entityType:n.ActionDescriptor},xd={id:$s.body.inputs.iterationNumber.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the string loop. Keeps track of the number of iterations that have been executed.",defaultValue:null,dataType:pT,required:!0,index:0,parentRelationType:N.FixedArguments,parent:cT},fT={id:"counted-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:$s.body.id,version:"1",entityType:n.ActionDescriptor},yT={id:"counted-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",defaultValue:null,dataType:null,required:!1,index:1,parentRelationType:N.DynamicArgument,parent:fT},hT={id:"counted-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:$s.body.id,version:"1",entityType:n.ActionDescriptor},mT={id:"counted-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:N.DynamicReturn,parent:hT},po={id:$s.body.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[xd,yT],outputs:[mT],error:null,parent:null},vT=[ao,Or,Ls,Sn,Wn,Us],TT=[oo,js,lo,$d,Gd,po],Pr=k[n.BuiltInBaseEntity][S.HTTP_ENDPOINT].properties,hi=k[n.BuiltInBaseEntity][S.HTTP_ENDPOINT].methods,ET={id:"endpointBuiltInCorsPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:Pr.cors.id},IT={id:"endpointBuiltInCorsPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:Pr.cors.id},AT={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointBuiltInCorsPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:ae,asType:!1,parent:IT},bT={id:"endpointBuiltInBaseEntityRef",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:S.HTTP_ENDPOINT},RT={constant:!0,hidden:!0,required:!0,id:Pr.cors.id,name:"Allowed origins",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:AT,defaultValue:{id:"endpointBuiltInCorsPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:["*"],parent:ET,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},description:"The origins that are allowed to access this endpoint, use * for all origins, or http://example.com/* to be as specific as you need.",parent:bT},DT={id:"endpointBuiltInPathPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:Pr.path.id},OT={id:"endpointBuiltInPathPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:Pr.path.id},PT={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointBuiltInPathPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:OT},wT={id:"endpointBuiltInBaseEntityRefTwo",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:S.HTTP_ENDPOINT},kd={constant:!0,id:Pr.path.id,hidden:!1,required:!0,name:"Path",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:1,dataType:PT,defaultValue:{id:"endpointBuiltInPathPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"/",parent:DT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},description:"Path to the endpoint, for example /api/users, or /api/users/{id}, or /api/users/{id}/:name. The path can contain parameters, which are defined by curly braces, and will be passed to the endpoint event as variables with the same name.",parent:wT},CT={id:"endpointBuiltInMethodPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:Pr.method.id},VT={id:"endpointBuiltInMethodPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"endpointBuiltInMethodProperty"},BT={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointBuiltInMethodPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:nr,isList:!1,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:VT},_T={id:"endpointBuiltInBaseEntityRefThree",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:S.HTTP_ENDPOINT},Zd={constant:!0,hidden:!1,required:!0,id:Pr.method.id,name:"Method",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,index:2,implements:null,defaultValue:{id:"endpointBuiltInMethodPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:L.Enum,parent:CT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},abstract:!0,static:!0,dataType:BT,description:"The HTTP method that this endpoint will respond to, for example GET, POST, PUT, DELETE, etc.",parent:_T},MT={id:"endpointRequestHeadersVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointRequestHeadersArgumentDeclaration"},NT={id:"endpointRequestHeadersArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointRequestHeadersArgumentDeclaration"},LT={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointRequestHeadersVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:wt,asType:!1,parent:NT},jT={id:"endpointRequestBodyArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointRequestBodyArgumentDeclaration"},UT={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointRequestBodyVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:wt,parent:jT},$T={id:"endpointRequestQueryParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointRequestQueryParamsArgumentDeclaration"},gT={id:"endpointRequestQueryParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointRequestQueryParamsArgumentDeclaration"},GT={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointRequestQueryParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:Zn,parent:gT},FT={id:"endpointPathParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:"endpointPathParamsArgumentDeclaration"},xT={id:"endpointPathParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"endpointPathParamsArgumentDeclaration"},kT={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointPathParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:Zn,asType:!1,parent:xT},ZT={id:"endpointReachedTriggerActionDescriptorRef",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:hi.handler.id},qd={id:"endpointRequestHeadersArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:n.ValueDescriptor,name:"Request headers",dataType:LT,defaultValue:{id:"endpointRequestHeadersVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:MT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:0,parentRelationType:N.FixedArguments,parent:ZT},qT={id:"endpointReachedTriggerActionDescriptorRefTwo",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:hi.handler.id},Jd={id:"endpointPathParamsArgumentDeclaration",type:n.ValueDescriptor,description:"A standarized text, without spaces that is added at the end of the domain and routes the request to a specific resource within the target server. For example: /api/users/123, /api/users/123/:name, /api/users/123/:name/:age.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Path parameters",dataType:kT,defaultValue:{id:"endpointPathParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:[],parent:FT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:1,parentRelationType:N.FixedArguments,parent:qT},JT={id:"endpointReachedTriggerActionDescriptorRefThree",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:hi.handler.id},Sd={id:"endpointRequestQueryParamsArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A text with standarized format, without spaces that is added at the end of the URL path, after the ? character. It contains data that might be used to process the request. For example: /api/users?name=John&age=30",type:n.ValueDescriptor,name:"Request query params",dataType:GT,defaultValue:{id:"endpointRequestQueryParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:[],parent:$T,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:2,parentRelationType:N.FixedArguments,parent:JT},ST={id:"endpointReachedTriggerActionDescriptorRefFour",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:hi.handler.id},Wd={id:"endpointRequestBodyArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the request.",type:n.ValueDescriptor,name:"Request body",dataType:UT,defaultValue:null,index:3,required:!0,parentRelationType:N.FixedArguments,parent:ST},WT={id:"endpointResponseCodeReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:hi.handler.outputs.statusCode.id},zT={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:WT},YT={id:"endpointReturnStatementRef",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},HT={id:"endpointResponseCodeReturnDeclarationDefaultValueParentRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:hi.handler.outputs.statusCode.id},zd={id:hi.handler.outputs.statusCode.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A standarized number that represents the status of the response. 200 for OK, 404 for not found, 500 for server error, etc.",type:n.ValueDescriptor,name:"Response code",dataType:zT,defaultValue:{id:"endpointResponseCodeDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:200,parent:HT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!0,index:0,parentRelationType:N.FixedReturns,parent:YT},KT={id:"endpointResponseHeadersDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ValueDescriptor,entityId:hi.handler.outputs.headers.id},XT={id:"endpointResponseHeadersReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:hi.handler.outputs.headers.id},QT={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointResponseHeadersDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:wt,asType:!1,parent:XT},eE={id:"endpointReturnStatementRefTwo",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},Yd={id:hi.handler.outputs.headers.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:n.ValueDescriptor,name:"Response headers",dataType:QT,defaultValue:{id:"endpointResponseHeadersDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:KT,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},required:!1,index:1,parentRelationType:N.FixedReturns,parent:eE},tE={id:"endpointResponseBodyReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:hi.handler.outputs.body.id},iE={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"endpointResponseBodyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:wt,parent:tE},rE={id:"endpointReturnStatementRefThree",type:n.GenericReference,version:"1",entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},Hd={id:hi.handler.outputs.body.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the response.",type:n.ValueDescriptor,name:"Response body",dataType:iE,defaultValue:null,required:!1,index:2,parentRelationType:N.FixedReturns,parent:rE},nE={id:"endpointBuiltInBaseEntityRefFour",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:S.HTTP_ENDPOINT},Kd={id:hi.handler.id,type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Endpoint reached",description:"Fired when the endpoint is reached.",inputs:[qd,Jd,Sd,Wd],outputs:[zd,Yd,Hd],error:null,parent:nE},ni={id:S.HTTP_ENDPOINT,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"An HTTP endpoint that can be reached by a client from the internet.",name:S.HTTP_ENDPOINT,type:n.BuiltInBaseEntity,interactive:!1,abstract:!0,static:!0,properties:[RT,kd,Zd],abstractMethods:[Kd],extends:[],methods:[]},Bt=k[n.BuiltInBaseEntity].BUILT_IN_RELATIONAL_DATABASE_ENTITY,sE={id:"relational-database-built-in-base-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:Bt.properties.identifier.id,version:"1",entityType:n.Property},aE={id:"relational-database-built-in-base-entity-identifier-property-ref-id",type:n.GenericReference,entityId:Bt.properties.identifier.id,version:"1",entityType:n.Property},oE={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"relational-database-built-in-base-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:aE},zn={id:"relational-database-built-in-base-entity-ref-id",type:n.GenericReference,entityId:S.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},co={constant:!0,id:Bt.properties.identifier.id,hidden:!1,required:!0,name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:0,defaultValue:{id:"relational-database-built-in-base-entity-identifier-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:null,parent:sE,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:oE,description:"The name of the main database inside of the server instance where the data will be stored.",parent:zn},_w={id:"relational-database-built-in-base-entity-username-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-username-property-data-type-idd",version:"1",entityType:n.Property},lE={id:"relational-database-built-in-base-entity-username-property-ref-id",type:n.GenericReference,entityId:Bt.properties.username.id,version:"1",entityType:n.Property},dE={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"relational-database-built-in-base-entity-username-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:lE},fo={constant:!0,hidden:!1,required:!0,id:Bt.properties.username.id,name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:1,defaultValue:{id:"relational-database-built-in-base-entity-username-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"postgres",parent:{id:"relational-database-built-in-base-entity-username-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:Bt.properties.username.id,version:"1",entityType:n.Property},autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:dE,description:"The username that will be used to connect to the database.",parent:zn},Mw={id:"relational-database-built-in-base-entity-password-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-password-property-data-type-id",version:"1",entityType:n.Property},uE={id:"relational-database-built-in-base-entity-password-property-ref-id",type:n.GenericReference,entityId:Bt.properties.password.id,version:"1",entityType:n.Property},pE={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"relational-database-built-in-base-entity-password-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:uE},cE={id:"relational-database-built-in-base-entity-password-property-default-value-parent-ref-id",type:n.GenericReference,entityId:Bt.properties.password.id,version:"1",entityType:n.Property},yo={constant:!0,hidden:!1,required:!0,id:Bt.properties.password.id,name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:2,defaultValue:{id:"relational-database-built-in-base-entity-password-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"123456789",parent:cE,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:pE,description:"The password that will be used to connect to the database.",parent:zn},fE={id:"relational-database-built-in-base-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:Bt.properties.minSize.id,version:"1",entityType:n.Property},yE={id:"relational-database-built-in-base-entity-min-size-property-ref-id",type:n.GenericReference,entityId:Bt.properties.minSize.id,version:"1",entityType:n.Property},hE={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"relational-database-built-in-base-entity-min-size-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:yE},ho={constant:!0,hidden:!0,required:!0,id:Bt.properties.minSize.id,name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:3,defaultValue:{id:"relational-database-built-in-base-entity-min-size-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:6,parent:fE,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:hE,description:"The minimum size of the database in GB.",parent:zn},mE={id:"relational-database-built-in-base-entity-default-property-data-type-ref-id",type:n.GenericReference,entityId:Bt.properties.default.id,version:"1",entityType:n.Property},vE={id:"relational-database-built-in-base-entity-default-property-ref-id",type:n.GenericReference,entityId:Bt.properties.default.id,version:"1",entityType:n.Property},TE={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"relational-database-built-in-base-entity-default-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:rr,asType:!1,parent:vE},Xd={constant:!0,hidden:!0,required:!0,id:Bt.properties.default.id,name:"Default",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,defaultValue:{id:"relational-database-built-in-base-entity-default-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,value:!1,parent:mE,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:TE,description:"If true, this database will be the default database for the server instance and all the new entities.",parent:zn},EE={id:"relational-database-built-in-base-entity-autoscaling-property-ref-id",type:n.GenericReference,entityId:Bt.properties.autoscaling.id,version:"1",entityType:n.Property},IE={id:"relational-database-built-in-base-entity-autoscaling-property-data-type-ref-id",type:n.GenericReference,entityId:Bt.properties.autoscaling.id,version:"1",entityType:n.Property},AE={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"relational-database-built-in-base-entity-autoscaling-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:rr,asType:!1,parent:EE},bE={id:"relational-database-built-in-base-entity-autoscaling-property-parent-ref-id",type:n.GenericReference,entityId:S.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},Qd={constant:!0,hidden:!0,required:!0,id:Bt.properties.autoscaling.id,name:"Auto-scaling",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,defaultValue:{id:"relational-database-built-in-base-entity-autoscaling-property-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,value:!1,parent:IE,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:AE,description:"If true, this database will automatically scale up or down in memory size, based on the usage.",parent:bE},Dt={id:S.RELATIONAL_DATABASE,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"This entity provisions a relational database in the cloud.",name:S.RELATIONAL_DATABASE,type:n.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[co,fo,yo,ho,Xd,Qd],abstractMethods:[],methods:[],extends:[]},RE={type:n.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",version:"1",entityType:n.BuiltInBaseEntity,id:ci.DeletePersistedEntity},eu={type:n.FunctionDeclaration,id:ci.DeletePersistedEntity,name:ci.DeletePersistedEntity,description:"Permanently deletes the current copy of an entity from the database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,parent:RE,inputs:[],calls:[],implements:null,collapsed:!1,index:0,private:!1,x:0,y:0},DE=k[n.BuiltInBaseEntity][S.PERSISTED_ENTITY].properties,Nw={id:"persisted-built-in-base-entity-database-property-data-type-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-database-property-data-type-id",version:"1",entityType:n.DataType},OE={id:"persisted-built-in-base-entity-database-property-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-database-property-id",version:"1",entityType:n.Property},PE={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"persisted-built-in-base-entity-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Dt,asType:!0,parent:OE},wE={id:"persisted-built-in-base-entity-database-property-parent-ref-id",type:n.GenericReference,entityId:S.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},Yn={constant:!0,hidden:!0,required:!0,id:DE.database.id,name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:PE,description:"The database that the entity belongs to.",parent:wE},CE={id:"persisted-built-in-base-entity-primary-key-property-number-data-type-option-parent-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:n.DataType},VE={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-number-data-type-option-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parentRelationType:Pt.OrDataTypeGroup,parent:CE},BE={id:"persisted-built-in-base-entity-primary-key-property-string-data-type-option-parent-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:n.DataType},_E={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-string-data-type-option-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parentRelationType:Pt.OrDataTypeGroup,parent:BE},ME={id:"persisted-built-in-base-entity-primary-key-property-uuid-data-type-option-parent-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",entityType:n.DataType},NE={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-uuid-data-type-option-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:sr,asType:!1,parentRelationType:Pt.OrDataTypeGroup,parent:ME},LE={id:"persisted-built-in-base-entity-primary-key-property-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-id",version:"1",entityType:n.Property},jE={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,andChildrenGroup:null,orChildrenGroup:[NE,_E,VE],isList:!1,entity:null,asType:null,implementationChooseOne:!0,parent:LE},UE={id:"persisted-built-in-base-entity-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:S.PERSISTED_ENTITY,version:"1",entityType:n.BuiltInBaseEntity},Hn={constant:!1,hidden:!1,required:!0,id:DE.primaryKey.id,name:"Primary key",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!1,index:0,dataType:jE,description:"A property with a unique value for the entity, that can be used to identify the entity among other entities of the same type.",parent:UE},_t={id:S.PERSISTED_ENTITY,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"An entity that is permanently stored in the database and can be accessed at any point.",name:S.PERSISTED_ENTITY,type:n.BuiltInBaseEntity,abstract:!0,static:!1,interactive:!0,abstractMethods:[],properties:[Yn,Hn],methods:[eu],extends:[]},$E={type:n.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",version:"1",entityType:n.BuiltInBaseEntity,id:ci.SoftDeletePersistedEntity},Lw={type:n.FunctionDeclaration,id:ci.SoftDeletePersistedEntity,name:ci.SoftDeletePersistedEntity,description:"Designates the entity as deleted, but does not remove it from the database.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,parent:$E,inputs:[],calls:[],implements:null,collapsed:!1,index:0,private:!1,x:0,y:0},jw=k[n.BuiltInBaseEntity][S.CRON_JOB].methods,gE={id:"cron-job-triggered-function-declaration-blueprint-parent-ref-id",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:S.CRON_JOB},tu={id:jw.handler.id,name:"Scheduled job triggered",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ActionDescriptor,description:"Executed when the scheduled job is triggered",inputs:[],error:null,outputs:[],parent:gE},GE=k[n.BuiltInBaseEntity].BUILT_IN_CRON_JOB_ENTITY,Uw={id:"cron-job-built-in-base-entity-expression-property-data-type-ref",type:n.GenericReference,entityId:"cron-job-built-in-base-entity-expression-property-data-type",version:"1",entityType:n.DataType},FE={id:"cron-job-built-in-base-entity-expression-property-ref",type:n.GenericReference,entityId:GE.properties.expression.id,version:"1",entityType:n.Property},$w={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"cron-job-built-in-base-entity-expression-property-data-type",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:FE},xE={id:"cron-job-built-in-base-entity-ref",type:n.GenericReference,entityId:S.CRON_JOB,version:"1",entityType:n.BuiltInBaseEntity},kE={constant:!1,hidden:!1,required:!0,id:GE.properties.expression.id,name:"Cron expression",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:$w,description:"The cron-job expression that defines when the cron-job job should be triggered. The expression should be in the format of a cron-job expression.",parent:xE},mo={id:S.CRON_JOB,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"This entity represents a scheduled trigger. The action on this entity will be executed one the time set by the cron-job expression is reached.",name:S.CRON_JOB,type:n.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[kE],methods:[],abstractMethods:[tu],extends:[]},ZE={type:n.GenericReference,id:"execution-built-in-entity-abort-method-parent-ref-id",version:"1",entityType:n.BuiltInBaseEntity,entityId:"execution-built-in-entity-id"},iu={id:"execution-built-in-entity-abort-method-id",type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ci.AbortExecution,description:"Aborts the execution of the entity",inputs:[],calls:[],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:ZE},vo={id:S.EXECUTION,type:n.BuiltInBaseEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:S.EXECUTION,description:"A reference to an ongoing execution of any entity that can be called. Eg: Operations, custom trigger calls, etc.",static:!1,abstract:!1,interactive:!0,extends:[],properties:[],methods:[iu],abstractMethods:[]},qE=[ni,Dt,_t,mo,vo],gw=k[n.Condition]["not-empty"],JE={type:n.GenericReference,id:"not-empty-condition-ref",version:"1",entityType:n.ActionDescriptor,entityId:bi.NotEmpty},SE={id:gw.inputs.leftHand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Value",description:"The value to check if it is not empty",defaultValue:null,dataType:null,required:!1,parentRelationType:N.FixedArguments,index:0,parent:JE},mn={type:n.ActionDescriptor,id:bi.NotEmpty,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:bi.NotEmpty,description:"Checks if the value is not empty",parent:null,inputs:[SE],outputs:[],error:null},WE={[bi.NotEmpty]:mn},Kn=k[n.Condition]["more-than-or-equal"],zE={type:n.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-data-type-parent-ref",version:"1",entityType:n.ValueDescriptor,entityId:Kn.inputs.leftHand.id},YE={staticEntities:null,interactiveEntities:null,actionEntities:null,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,id:Kn.inputs.leftHand.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:zE},HE={type:n.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:yt.MoreThanOrEqual},KE={id:Kn.inputs.leftHand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"First value",description:"The first value to compare",defaultValue:null,dataType:YE,required:!0,parentRelationType:N.FixedArguments,index:0,parent:HE},XE={type:n.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-data-type-parent-ref",version:"1",entityType:n.ValueDescriptor,entityId:Kn.inputs.rightHand.id},QE={staticEntities:null,interactiveEntities:null,actionEntities:null,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,id:Kn.inputs.rightHand.dataType.id,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:XE},eI={type:n.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-parent-ref",version:"1",entityType:n.ActionDescriptor,entityId:yt.MoreThanOrEqual},tI={id:Kn.inputs.rightHand.id,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Second value",description:"The second value to compare",defaultValue:null,dataType:QE,required:!0,parentRelationType:N.FixedArguments,index:1,parent:eI},Xn={type:n.ActionDescriptor,id:yt.MoreThanOrEqual,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:yt.MoreThanOrEqual,description:"Checks if the value is not empty",parent:null,inputs:[KE,tI],outputs:[],error:null},iI={[yt.MoreThanOrEqual]:Xn},rI={...WE,...iI},nI=Object.values(rI),To={type:n.ActionDescriptor,id:ir.PROJECT_PUBLICATION_COMPLETED,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ir.PROJECT_PUBLICATION_COMPLETED,description:"The event that is triggered when the project has completed its publication and all its code and resurces are now deployed and ready to be used by the users",parent:null,inputs:[],outputs:[],error:null},sI={[ir.PROJECT_PUBLICATION_COMPLETED]:To},aI=Object.values(sI),ru=k[n.ValueDescriptor][za.ActionOngoingProcessOutputValue],oI={type:n.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",version:"1",entityType:n.ValueDescriptor,entityId:ru.id},lI={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:ru.dataType.id,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vo,asType:!1,isList:!1,parent:oI},Eo={id:ru.id,type:n.ValueDescriptor,description:"A value that represents the ongoing process of the parent action",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Process",defaultValue:null,dataType:lI,required:!0,index:0,parent:null,parentRelationType:N.OngoingProcessExecution},dI=[Eo],uI=[...vf,...V0,...vT,...TT,...qE,...nI,...aI,...dI];var ze;(function(r){r.assertEqual=i=>i;function a(i){}r.assertIs=a;function e(i){throw new Error}r.assertNever=e,r.arrayToEnum=i=>{const s={};for(const l of i)s[l]=l;return s},r.getValidEnumValues=i=>{const s=r.objectKeys(i).filter(o=>typeof i[i[o]]!="number"),l={};for(const o of s)l[o]=i[o];return r.objectValues(l)},r.objectValues=i=>r.objectKeys(i).map(function(s){return i[s]}),r.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const s=[];for(const l in i)Object.prototype.hasOwnProperty.call(i,l)&&s.push(l);return s},r.find=(i,s)=>{for(const l of i)if(s(l))return l},r.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function t(i,s=" | "){return i.map(l=>typeof l=="string"?`'${l}'`:l).join(s)}r.joinValues=t,r.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(ze||(ze={}));var nu;(function(r){r.mergeShapes=(a,e)=>({...a,...e})})(nu||(nu={}));const H=ze.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),lr=r=>{switch(typeof r){case"undefined":return H.undefined;case"string":return H.string;case"number":return isNaN(r)?H.nan:H.number;case"boolean":return H.boolean;case"function":return H.function;case"bigint":return H.bigint;case"symbol":return H.symbol;case"object":return Array.isArray(r)?H.array:r===null?H.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?H.promise:typeof Map<"u"&&r instanceof Map?H.map:typeof Set<"u"&&r instanceof Set?H.set:typeof Date<"u"&&r instanceof Date?H.date:H.object;default:return H.unknown}},Z=ze.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Gw=r=>JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:");class si extends Error{get errors(){return this.issues}constructor(a){super(),this.issues=[],this.addIssue=t=>{this.issues=[...this.issues,t]},this.addIssues=(t=[])=>{this.issues=[...this.issues,...t]};const e=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,e):this.__proto__=e,this.name="ZodError",this.issues=a}format(a){const e=a||function(s){return s.message},t={_errors:[]},i=s=>{for(const l of s.issues)if(l.code==="invalid_union")l.unionErrors.map(i);else if(l.code==="invalid_return_type")i(l.returnTypeError);else if(l.code==="invalid_arguments")i(l.argumentsError);else if(l.path.length===0)t._errors.push(e(l));else{let o=t,d=0;for(;d<l.path.length;){const u=l.path[d];d===l.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(e(l))):o[u]=o[u]||{_errors:[]},o=o[u],d++}}};return i(this),t}static assert(a){if(!(a instanceof si))throw new Error(`Not a ZodError: ${a}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ze.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(a=e=>e.message){const e={},t=[];for(const i of this.issues)i.path.length>0?(e[i.path[0]]=e[i.path[0]]||[],e[i.path[0]].push(a(i))):t.push(a(i));return{formErrors:t,fieldErrors:e}}get formErrors(){return this.flatten()}}si.create=r=>new si(r);const Qn=(r,a)=>{let e;switch(r.code){case Z.invalid_type:r.received===H.undefined?e="Required":e=`Expected ${r.expected}, received ${r.received}`;break;case Z.invalid_literal:e=`Invalid literal value, expected ${JSON.stringify(r.expected,ze.jsonStringifyReplacer)}`;break;case Z.unrecognized_keys:e=`Unrecognized key(s) in object: ${ze.joinValues(r.keys,", ")}`;break;case Z.invalid_union:e="Invalid input";break;case Z.invalid_union_discriminator:e=`Invalid discriminator value. Expected ${ze.joinValues(r.options)}`;break;case Z.invalid_enum_value:e=`Invalid enum value. Expected ${ze.joinValues(r.options)}, received '${r.received}'`;break;case Z.invalid_arguments:e="Invalid function arguments";break;case Z.invalid_return_type:e="Invalid function return type";break;case Z.invalid_date:e="Invalid date";break;case Z.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(e=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(e=`${e} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?e=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?e=`Invalid input: must end with "${r.validation.endsWith}"`:ze.assertNever(r.validation):r.validation!=="regex"?e=`Invalid ${r.validation}`:e="Invalid";break;case Z.too_small:r.type==="array"?e=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?e=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?e=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?e=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:e="Invalid input";break;case Z.too_big:r.type==="array"?e=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?e=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?e=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?e=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?e=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:e="Invalid input";break;case Z.custom:e="Invalid input";break;case Z.invalid_intersection_types:e="Intersection results could not be merged";break;case Z.not_multiple_of:e=`Number must be a multiple of ${r.multipleOf}`;break;case Z.not_finite:e="Number must be finite";break;default:e=a.defaultError,ze.assertNever(r)}return{message:e}};let pI=Qn;function Fw(r){pI=r}function Io(){return pI}const Ao=r=>{const{data:a,path:e,errorMaps:t,issueData:i}=r,s=[...e,...i.path||[]],l={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let o="";const d=t.filter(u=>!!u).slice().reverse();for(const u of d)o=u(l,{data:a,defaultError:o}).message;return{...i,path:s,message:o}},xw=[];function z(r,a){const e=Io(),t=Ao({issueData:a,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,e,e===Qn?void 0:Qn].filter(i=>!!i)});r.common.issues.push(t)}class $t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(a,e){const t=[];for(const i of e){if(i.status==="aborted")return ye;i.status==="dirty"&&a.dirty(),t.push(i.value)}return{status:a.value,value:t}}static async mergeObjectAsync(a,e){const t=[];for(const i of e){const s=await i.key,l=await i.value;t.push({key:s,value:l})}return $t.mergeObjectSync(a,t)}static mergeObjectSync(a,e){const t={};for(const i of e){const{key:s,value:l}=i;if(s.status==="aborted"||l.status==="aborted")return ye;s.status==="dirty"&&a.dirty(),l.status==="dirty"&&a.dirty(),s.value!=="__proto__"&&(typeof l.value<"u"||i.alwaysSet)&&(t[s.value]=l.value)}return{status:a.value,value:t}}}const ye=Object.freeze({status:"aborted"}),es=r=>({status:"dirty",value:r}),zt=r=>({status:"valid",value:r}),su=r=>r.status==="aborted",au=r=>r.status==="dirty",vn=r=>r.status==="valid",gs=r=>typeof Promise<"u"&&r instanceof Promise;function bo(r,a,e,t){if(e==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof a=="function"?r!==a||!t:!a.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?t:e==="a"?t.call(r):t?t.value:a.get(r)}function cI(r,a,e,t,i){if(t==="m")throw new TypeError("Private method is not writable");if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof a=="function"?r!==a||!i:!a.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t==="a"?i.call(r,e):i?i.value=e:a.set(r,e),e}typeof SuppressedError=="function"&&SuppressedError;var ne;(function(r){r.errToObj=a=>typeof a=="string"?{message:a}:a||{},r.toString=a=>typeof a=="string"?a:a==null?void 0:a.message})(ne||(ne={}));var Gs,Fs;class Zi{constructor(a,e,t,i){this._cachedPath=[],this.parent=a,this.data=e,this._path=t,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const fI=(r,a)=>{if(vn(a))return{success:!0,data:a.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const e=new si(r.common.issues);return this._error=e,this._error}}};function Te(r){if(!r)return{};const{errorMap:a,invalid_type_error:e,required_error:t,description:i}=r;if(a&&(e||t))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return a?{errorMap:a,description:i}:{errorMap:(l,o)=>{var d,u;const{message:y}=r;return l.code==="invalid_enum_value"?{message:y??o.defaultError}:typeof o.data>"u"?{message:(d=y??t)!==null&&d!==void 0?d:o.defaultError}:l.code!=="invalid_type"?{message:o.defaultError}:{message:(u=y??e)!==null&&u!==void 0?u:o.defaultError}},description:i}}class Ge{get description(){return this._def.description}_getType(a){return lr(a.data)}_getOrReturnCtx(a,e){return e||{common:a.parent.common,data:a.data,parsedType:lr(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}_processInputParams(a){return{status:new $t,ctx:{common:a.parent.common,data:a.data,parsedType:lr(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}}_parseSync(a){const e=this._parse(a);if(gs(e))throw new Error("Synchronous parse encountered promise.");return e}_parseAsync(a){const e=this._parse(a);return Promise.resolve(e)}parse(a,e){const t=this.safeParse(a,e);if(t.success)return t.data;throw t.error}safeParse(a,e){var t;const i={common:{issues:[],async:(t=e==null?void 0:e.async)!==null&&t!==void 0?t:!1,contextualErrorMap:e==null?void 0:e.errorMap},path:(e==null?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:lr(a)},s=this._parseSync({data:a,path:i.path,parent:i});return fI(i,s)}"~validate"(a){var e,t;const i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:lr(a)};if(!this["~standard"].async)try{const s=this._parseSync({data:a,path:[],parent:i});return vn(s)?{value:s.value}:{issues:i.common.issues}}catch(s){!((t=(e=s==null?void 0:s.message)===null||e===void 0?void 0:e.toLowerCase())===null||t===void 0)&&t.includes("encountered")&&(this["~standard"].async=!0),i.common={issues:[],async:!0}}return this._parseAsync({data:a,path:[],parent:i}).then(s=>vn(s)?{value:s.value}:{issues:i.common.issues})}async parseAsync(a,e){const t=await this.safeParseAsync(a,e);if(t.success)return t.data;throw t.error}async safeParseAsync(a,e){const t={common:{issues:[],contextualErrorMap:e==null?void 0:e.errorMap,async:!0},path:(e==null?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:lr(a)},i=this._parse({data:a,path:t.path,parent:t}),s=await(gs(i)?i:Promise.resolve(i));return fI(t,s)}refine(a,e){const t=i=>typeof e=="string"||typeof e>"u"?{message:e}:typeof e=="function"?e(i):e;return this._refinement((i,s)=>{const l=a(i),o=()=>s.addIssue({code:Z.custom,...t(i)});return typeof Promise<"u"&&l instanceof Promise?l.then(d=>d?!0:(o(),!1)):l?!0:(o(),!1)})}refinement(a,e){return this._refinement((t,i)=>a(t)?!0:(i.addIssue(typeof e=="function"?e(t,i):e),!1))}_refinement(a){return new Mi({schema:this,typeName:ce.ZodEffects,effect:{type:"refinement",refinement:a}})}superRefine(a){return this._refinement(a)}constructor(a){this.spa=this.safeParseAsync,this._def=a,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return Ji.create(this,this._def)}nullable(){return Br.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return _i.create(this)}promise(){return ns.create(this,this._def)}or(a){return qs.create([this,a],this._def)}and(a){return Js.create(this,a,this._def)}transform(a){return new Mi({...Te(this._def),schema:this,typeName:ce.ZodEffects,effect:{type:"transform",transform:a}})}default(a){const e=typeof a=="function"?a:()=>a;return new Hs({...Te(this._def),innerType:this,defaultValue:e,typeName:ce.ZodDefault})}brand(){return new du({typeName:ce.ZodBranded,type:this,...Te(this._def)})}catch(a){const e=typeof a=="function"?a:()=>a;return new Ks({...Te(this._def),innerType:this,catchValue:e,typeName:ce.ZodCatch})}describe(a){const e=this.constructor;return new e({...this._def,description:a})}pipe(a){return Xs.create(this,a)}readonly(){return Qs.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const kw=/^c[^\s-]{8,}$/i,Zw=/^[0-9a-z]+$/,qw=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Jw=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Sw=/^[a-z0-9_-]{21}$/i,Ww=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,zw=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Yw=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Hw="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ou;const Kw=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Xw=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Qw=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,eC=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,tC=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,iC=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,yI="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",rC=new RegExp(`^${yI}$`);function hI(r){let a="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return r.precision?a=`${a}\\.\\d{${r.precision}}`:r.precision==null&&(a=`${a}(\\.\\d+)?`),a}function nC(r){return new RegExp(`^${hI(r)}$`)}function mI(r){let a=`${yI}T${hI(r)}`;const e=[];return e.push(r.local?"Z?":"Z"),r.offset&&e.push("([+-]\\d{2}:?\\d{2})"),a=`${a}(${e.join("|")})`,new RegExp(`^${a}$`)}function sC(r,a){return!!((a==="v4"||!a)&&Kw.test(r)||(a==="v6"||!a)&&Qw.test(r))}function aC(r,a){if(!Ww.test(r))return!1;try{const[e]=r.split("."),t=e.replace(/-/g,"+").replace(/_/g,"/").padEnd(e.length+(4-e.length%4)%4,"="),i=JSON.parse(atob(t));return!(typeof i!="object"||i===null||!i.typ||!i.alg||a&&i.alg!==a)}catch{return!1}}function oC(r,a){return!!((a==="v4"||!a)&&Xw.test(r)||(a==="v6"||!a)&&eC.test(r))}class Bi extends Ge{_parse(a){if(this._def.coerce&&(a.data=String(a.data)),this._getType(a)!==H.string){const s=this._getOrReturnCtx(a);return z(s,{code:Z.invalid_type,expected:H.string,received:s.parsedType}),ye}const t=new $t;let i;for(const s of this._def.checks)if(s.kind==="min")a.data.length<s.value&&(i=this._getOrReturnCtx(a,i),z(i,{code:Z.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),t.dirty());else if(s.kind==="max")a.data.length>s.value&&(i=this._getOrReturnCtx(a,i),z(i,{code:Z.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),t.dirty());else if(s.kind==="length"){const l=a.data.length>s.value,o=a.data.length<s.value;(l||o)&&(i=this._getOrReturnCtx(a,i),l?z(i,{code:Z.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):o&&z(i,{code:Z.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),t.dirty())}else if(s.kind==="email")Yw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"email",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="emoji")ou||(ou=new RegExp(Hw,"u")),ou.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"emoji",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="uuid")Jw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"uuid",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="nanoid")Sw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"nanoid",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="cuid")kw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"cuid",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="cuid2")Zw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"cuid2",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="ulid")qw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"ulid",code:Z.invalid_string,message:s.message}),t.dirty());else if(s.kind==="url")try{new URL(a.data)}catch{i=this._getOrReturnCtx(a,i),z(i,{validation:"url",code:Z.invalid_string,message:s.message}),t.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"regex",code:Z.invalid_string,message:s.message}),t.dirty())):s.kind==="trim"?a.data=a.data.trim():s.kind==="includes"?a.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(a,i),z(i,{code:Z.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),t.dirty()):s.kind==="toLowerCase"?a.data=a.data.toLowerCase():s.kind==="toUpperCase"?a.data=a.data.toUpperCase():s.kind==="startsWith"?a.data.startsWith(s.value)||(i=this._getOrReturnCtx(a,i),z(i,{code:Z.invalid_string,validation:{startsWith:s.value},message:s.message}),t.dirty()):s.kind==="endsWith"?a.data.endsWith(s.value)||(i=this._getOrReturnCtx(a,i),z(i,{code:Z.invalid_string,validation:{endsWith:s.value},message:s.message}),t.dirty()):s.kind==="datetime"?mI(s).test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{code:Z.invalid_string,validation:"datetime",message:s.message}),t.dirty()):s.kind==="date"?rC.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{code:Z.invalid_string,validation:"date",message:s.message}),t.dirty()):s.kind==="time"?nC(s).test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{code:Z.invalid_string,validation:"time",message:s.message}),t.dirty()):s.kind==="duration"?zw.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"duration",code:Z.invalid_string,message:s.message}),t.dirty()):s.kind==="ip"?sC(a.data,s.version)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"ip",code:Z.invalid_string,message:s.message}),t.dirty()):s.kind==="jwt"?aC(a.data,s.alg)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"jwt",code:Z.invalid_string,message:s.message}),t.dirty()):s.kind==="cidr"?oC(a.data,s.version)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"cidr",code:Z.invalid_string,message:s.message}),t.dirty()):s.kind==="base64"?tC.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"base64",code:Z.invalid_string,message:s.message}),t.dirty()):s.kind==="base64url"?iC.test(a.data)||(i=this._getOrReturnCtx(a,i),z(i,{validation:"base64url",code:Z.invalid_string,message:s.message}),t.dirty()):ze.assertNever(s);return{status:t.value,value:a.data}}_regex(a,e,t){return this.refinement(i=>a.test(i),{validation:e,code:Z.invalid_string,...ne.errToObj(t)})}_addCheck(a){return new Bi({...this._def,checks:[...this._def.checks,a]})}email(a){return this._addCheck({kind:"email",...ne.errToObj(a)})}url(a){return this._addCheck({kind:"url",...ne.errToObj(a)})}emoji(a){return this._addCheck({kind:"emoji",...ne.errToObj(a)})}uuid(a){return this._addCheck({kind:"uuid",...ne.errToObj(a)})}nanoid(a){return this._addCheck({kind:"nanoid",...ne.errToObj(a)})}cuid(a){return this._addCheck({kind:"cuid",...ne.errToObj(a)})}cuid2(a){return this._addCheck({kind:"cuid2",...ne.errToObj(a)})}ulid(a){return this._addCheck({kind:"ulid",...ne.errToObj(a)})}base64(a){return this._addCheck({kind:"base64",...ne.errToObj(a)})}base64url(a){return this._addCheck({kind:"base64url",...ne.errToObj(a)})}jwt(a){return this._addCheck({kind:"jwt",...ne.errToObj(a)})}ip(a){return this._addCheck({kind:"ip",...ne.errToObj(a)})}cidr(a){return this._addCheck({kind:"cidr",...ne.errToObj(a)})}datetime(a){var e,t;return typeof a=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:a}):this._addCheck({kind:"datetime",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,offset:(e=a==null?void 0:a.offset)!==null&&e!==void 0?e:!1,local:(t=a==null?void 0:a.local)!==null&&t!==void 0?t:!1,...ne.errToObj(a==null?void 0:a.message)})}date(a){return this._addCheck({kind:"date",message:a})}time(a){return typeof a=="string"?this._addCheck({kind:"time",precision:null,message:a}):this._addCheck({kind:"time",precision:typeof(a==null?void 0:a.precision)>"u"?null:a==null?void 0:a.precision,...ne.errToObj(a==null?void 0:a.message)})}duration(a){return this._addCheck({kind:"duration",...ne.errToObj(a)})}regex(a,e){return this._addCheck({kind:"regex",regex:a,...ne.errToObj(e)})}includes(a,e){return this._addCheck({kind:"includes",value:a,position:e==null?void 0:e.position,...ne.errToObj(e==null?void 0:e.message)})}startsWith(a,e){return this._addCheck({kind:"startsWith",value:a,...ne.errToObj(e)})}endsWith(a,e){return this._addCheck({kind:"endsWith",value:a,...ne.errToObj(e)})}min(a,e){return this._addCheck({kind:"min",value:a,...ne.errToObj(e)})}max(a,e){return this._addCheck({kind:"max",value:a,...ne.errToObj(e)})}length(a,e){return this._addCheck({kind:"length",value:a,...ne.errToObj(e)})}nonempty(a){return this.min(1,ne.errToObj(a))}trim(){return new Bi({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Bi({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Bi({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(a=>a.kind==="datetime")}get isDate(){return!!this._def.checks.find(a=>a.kind==="date")}get isTime(){return!!this._def.checks.find(a=>a.kind==="time")}get isDuration(){return!!this._def.checks.find(a=>a.kind==="duration")}get isEmail(){return!!this._def.checks.find(a=>a.kind==="email")}get isURL(){return!!this._def.checks.find(a=>a.kind==="url")}get isEmoji(){return!!this._def.checks.find(a=>a.kind==="emoji")}get isUUID(){return!!this._def.checks.find(a=>a.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(a=>a.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(a=>a.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(a=>a.kind==="cuid2")}get isULID(){return!!this._def.checks.find(a=>a.kind==="ulid")}get isIP(){return!!this._def.checks.find(a=>a.kind==="ip")}get isCIDR(){return!!this._def.checks.find(a=>a.kind==="cidr")}get isBase64(){return!!this._def.checks.find(a=>a.kind==="base64")}get isBase64url(){return!!this._def.checks.find(a=>a.kind==="base64url")}get minLength(){let a=null;for(const e of this._def.checks)e.kind==="min"&&(a===null||e.value>a)&&(a=e.value);return a}get maxLength(){let a=null;for(const e of this._def.checks)e.kind==="max"&&(a===null||e.value<a)&&(a=e.value);return a}}Bi.create=r=>{var a;return new Bi({checks:[],typeName:ce.ZodString,coerce:(a=r==null?void 0:r.coerce)!==null&&a!==void 0?a:!1,...Te(r)})};function lC(r,a){const e=(r.toString().split(".")[1]||"").length,t=(a.toString().split(".")[1]||"").length,i=e>t?e:t,s=parseInt(r.toFixed(i).replace(".","")),l=parseInt(a.toFixed(i).replace(".",""));return s%l/Math.pow(10,i)}class wr extends Ge{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(a){if(this._def.coerce&&(a.data=Number(a.data)),this._getType(a)!==H.number){const s=this._getOrReturnCtx(a);return z(s,{code:Z.invalid_type,expected:H.number,received:s.parsedType}),ye}let t;const i=new $t;for(const s of this._def.checks)s.kind==="int"?ze.isInteger(a.data)||(t=this._getOrReturnCtx(a,t),z(t,{code:Z.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?a.data<s.value:a.data<=s.value)&&(t=this._getOrReturnCtx(a,t),z(t,{code:Z.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?a.data>s.value:a.data>=s.value)&&(t=this._getOrReturnCtx(a,t),z(t,{code:Z.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?lC(a.data,s.value)!==0&&(t=this._getOrReturnCtx(a,t),z(t,{code:Z.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(a.data)||(t=this._getOrReturnCtx(a,t),z(t,{code:Z.not_finite,message:s.message}),i.dirty()):ze.assertNever(s);return{status:i.value,value:a.data}}gte(a,e){return this.setLimit("min",a,!0,ne.toString(e))}gt(a,e){return this.setLimit("min",a,!1,ne.toString(e))}lte(a,e){return this.setLimit("max",a,!0,ne.toString(e))}lt(a,e){return this.setLimit("max",a,!1,ne.toString(e))}setLimit(a,e,t,i){return new wr({...this._def,checks:[...this._def.checks,{kind:a,value:e,inclusive:t,message:ne.toString(i)}]})}_addCheck(a){return new wr({...this._def,checks:[...this._def.checks,a]})}int(a){return this._addCheck({kind:"int",message:ne.toString(a)})}positive(a){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ne.toString(a)})}negative(a){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ne.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ne.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ne.toString(a)})}multipleOf(a,e){return this._addCheck({kind:"multipleOf",value:a,message:ne.toString(e)})}finite(a){return this._addCheck({kind:"finite",message:ne.toString(a)})}safe(a){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ne.toString(a)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ne.toString(a)})}get minValue(){let a=null;for(const e of this._def.checks)e.kind==="min"&&(a===null||e.value>a)&&(a=e.value);return a}get maxValue(){let a=null;for(const e of this._def.checks)e.kind==="max"&&(a===null||e.value<a)&&(a=e.value);return a}get isInt(){return!!this._def.checks.find(a=>a.kind==="int"||a.kind==="multipleOf"&&ze.isInteger(a.value))}get isFinite(){let a=null,e=null;for(const t of this._def.checks){if(t.kind==="finite"||t.kind==="int"||t.kind==="multipleOf")return!0;t.kind==="min"?(e===null||t.value>e)&&(e=t.value):t.kind==="max"&&(a===null||t.value<a)&&(a=t.value)}return Number.isFinite(e)&&Number.isFinite(a)}}wr.create=r=>new wr({checks:[],typeName:ce.ZodNumber,coerce:(r==null?void 0:r.coerce)||!1,...Te(r)});class Cr extends Ge{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(a){if(this._def.coerce)try{a.data=BigInt(a.data)}catch{return this._getInvalidInput(a)}if(this._getType(a)!==H.bigint)return this._getInvalidInput(a);let t;const i=new $t;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?a.data<s.value:a.data<=s.value)&&(t=this._getOrReturnCtx(a,t),z(t,{code:Z.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?a.data>s.value:a.data>=s.value)&&(t=this._getOrReturnCtx(a,t),z(t,{code:Z.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?a.data%s.value!==BigInt(0)&&(t=this._getOrReturnCtx(a,t),z(t,{code:Z.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):ze.assertNever(s);return{status:i.value,value:a.data}}_getInvalidInput(a){const e=this._getOrReturnCtx(a);return z(e,{code:Z.invalid_type,expected:H.bigint,received:e.parsedType}),ye}gte(a,e){return this.setLimit("min",a,!0,ne.toString(e))}gt(a,e){return this.setLimit("min",a,!1,ne.toString(e))}lte(a,e){return this.setLimit("max",a,!0,ne.toString(e))}lt(a,e){return this.setLimit("max",a,!1,ne.toString(e))}setLimit(a,e,t,i){return new Cr({...this._def,checks:[...this._def.checks,{kind:a,value:e,inclusive:t,message:ne.toString(i)}]})}_addCheck(a){return new Cr({...this._def,checks:[...this._def.checks,a]})}positive(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ne.toString(a)})}negative(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ne.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ne.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ne.toString(a)})}multipleOf(a,e){return this._addCheck({kind:"multipleOf",value:a,message:ne.toString(e)})}get minValue(){let a=null;for(const e of this._def.checks)e.kind==="min"&&(a===null||e.value>a)&&(a=e.value);return a}get maxValue(){let a=null;for(const e of this._def.checks)e.kind==="max"&&(a===null||e.value<a)&&(a=e.value);return a}}Cr.create=r=>{var a;return new Cr({checks:[],typeName:ce.ZodBigInt,coerce:(a=r==null?void 0:r.coerce)!==null&&a!==void 0?a:!1,...Te(r)})};class xs extends Ge{_parse(a){if(this._def.coerce&&(a.data=!!a.data),this._getType(a)!==H.boolean){const t=this._getOrReturnCtx(a);return z(t,{code:Z.invalid_type,expected:H.boolean,received:t.parsedType}),ye}return zt(a.data)}}xs.create=r=>new xs({typeName:ce.ZodBoolean,coerce:(r==null?void 0:r.coerce)||!1,...Te(r)});class Tn extends Ge{_parse(a){if(this._def.coerce&&(a.data=new Date(a.data)),this._getType(a)!==H.date){const s=this._getOrReturnCtx(a);return z(s,{code:Z.invalid_type,expected:H.date,received:s.parsedType}),ye}if(isNaN(a.data.getTime())){const s=this._getOrReturnCtx(a);return z(s,{code:Z.invalid_date}),ye}const t=new $t;let i;for(const s of this._def.checks)s.kind==="min"?a.data.getTime()<s.value&&(i=this._getOrReturnCtx(a,i),z(i,{code:Z.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),t.dirty()):s.kind==="max"?a.data.getTime()>s.value&&(i=this._getOrReturnCtx(a,i),z(i,{code:Z.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),t.dirty()):ze.assertNever(s);return{status:t.value,value:new Date(a.data.getTime())}}_addCheck(a){return new Tn({...this._def,checks:[...this._def.checks,a]})}min(a,e){return this._addCheck({kind:"min",value:a.getTime(),message:ne.toString(e)})}max(a,e){return this._addCheck({kind:"max",value:a.getTime(),message:ne.toString(e)})}get minDate(){let a=null;for(const e of this._def.checks)e.kind==="min"&&(a===null||e.value>a)&&(a=e.value);return a!=null?new Date(a):null}get maxDate(){let a=null;for(const e of this._def.checks)e.kind==="max"&&(a===null||e.value<a)&&(a=e.value);return a!=null?new Date(a):null}}Tn.create=r=>new Tn({checks:[],coerce:(r==null?void 0:r.coerce)||!1,typeName:ce.ZodDate,...Te(r)});class Ro extends Ge{_parse(a){if(this._getType(a)!==H.symbol){const t=this._getOrReturnCtx(a);return z(t,{code:Z.invalid_type,expected:H.symbol,received:t.parsedType}),ye}return zt(a.data)}}Ro.create=r=>new Ro({typeName:ce.ZodSymbol,...Te(r)});class ks extends Ge{_parse(a){if(this._getType(a)!==H.undefined){const t=this._getOrReturnCtx(a);return z(t,{code:Z.invalid_type,expected:H.undefined,received:t.parsedType}),ye}return zt(a.data)}}ks.create=r=>new ks({typeName:ce.ZodUndefined,...Te(r)});class Zs extends Ge{_parse(a){if(this._getType(a)!==H.null){const t=this._getOrReturnCtx(a);return z(t,{code:Z.invalid_type,expected:H.null,received:t.parsedType}),ye}return zt(a.data)}}Zs.create=r=>new Zs({typeName:ce.ZodNull,...Te(r)});class ts extends Ge{constructor(){super(...arguments),this._any=!0}_parse(a){return zt(a.data)}}ts.create=r=>new ts({typeName:ce.ZodAny,...Te(r)});class En extends Ge{constructor(){super(...arguments),this._unknown=!0}_parse(a){return zt(a.data)}}En.create=r=>new En({typeName:ce.ZodUnknown,...Te(r)});class dr extends Ge{_parse(a){const e=this._getOrReturnCtx(a);return z(e,{code:Z.invalid_type,expected:H.never,received:e.parsedType}),ye}}dr.create=r=>new dr({typeName:ce.ZodNever,...Te(r)});class Do extends Ge{_parse(a){if(this._getType(a)!==H.undefined){const t=this._getOrReturnCtx(a);return z(t,{code:Z.invalid_type,expected:H.void,received:t.parsedType}),ye}return zt(a.data)}}Do.create=r=>new Do({typeName:ce.ZodVoid,...Te(r)});class _i extends Ge{_parse(a){const{ctx:e,status:t}=this._processInputParams(a),i=this._def;if(e.parsedType!==H.array)return z(e,{code:Z.invalid_type,expected:H.array,received:e.parsedType}),ye;if(i.exactLength!==null){const l=e.data.length>i.exactLength.value,o=e.data.length<i.exactLength.value;(l||o)&&(z(e,{code:l?Z.too_big:Z.too_small,minimum:o?i.exactLength.value:void 0,maximum:l?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),t.dirty())}if(i.minLength!==null&&e.data.length<i.minLength.value&&(z(e,{code:Z.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),t.dirty()),i.maxLength!==null&&e.data.length>i.maxLength.value&&(z(e,{code:Z.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),t.dirty()),e.common.async)return Promise.all([...e.data].map((l,o)=>i.type._parseAsync(new Zi(e,l,e.path,o)))).then(l=>$t.mergeArray(t,l));const s=[...e.data].map((l,o)=>i.type._parseSync(new Zi(e,l,e.path,o)));return $t.mergeArray(t,s)}get element(){return this._def.type}min(a,e){return new _i({...this._def,minLength:{value:a,message:ne.toString(e)}})}max(a,e){return new _i({...this._def,maxLength:{value:a,message:ne.toString(e)}})}length(a,e){return new _i({...this._def,exactLength:{value:a,message:ne.toString(e)}})}nonempty(a){return this.min(1,a)}}_i.create=(r,a)=>new _i({type:r,minLength:null,maxLength:null,exactLength:null,typeName:ce.ZodArray,...Te(a)});function is(r){if(r instanceof Et){const a={};for(const e in r.shape){const t=r.shape[e];a[e]=Ji.create(is(t))}return new Et({...r._def,shape:()=>a})}else return r instanceof _i?new _i({...r._def,type:is(r.element)}):r instanceof Ji?Ji.create(is(r.unwrap())):r instanceof Br?Br.create(is(r.unwrap())):r instanceof qi?qi.create(r.items.map(a=>is(a))):r}class Et extends Ge{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const a=this._def.shape(),e=ze.objectKeys(a);return this._cached={shape:a,keys:e}}_parse(a){if(this._getType(a)!==H.object){const u=this._getOrReturnCtx(a);return z(u,{code:Z.invalid_type,expected:H.object,received:u.parsedType}),ye}const{status:t,ctx:i}=this._processInputParams(a),{shape:s,keys:l}=this._getCached(),o=[];if(!(this._def.catchall instanceof dr&&this._def.unknownKeys==="strip"))for(const u in i.data)l.includes(u)||o.push(u);const d=[];for(const u of l){const y=s[u],c=i.data[u];d.push({key:{status:"valid",value:u},value:y._parse(new Zi(i,c,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof dr){const u=this._def.unknownKeys;if(u==="passthrough")for(const y of o)d.push({key:{status:"valid",value:y},value:{status:"valid",value:i.data[y]}});else if(u==="strict")o.length>0&&(z(i,{code:Z.unrecognized_keys,keys:o}),t.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const y of o){const c=i.data[y];d.push({key:{status:"valid",value:y},value:u._parse(new Zi(i,c,i.path,y)),alwaysSet:y in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const u=[];for(const y of d){const c=await y.key,E=await y.value;u.push({key:c,value:E,alwaysSet:y.alwaysSet})}return u}).then(u=>$t.mergeObjectSync(t,u)):$t.mergeObjectSync(t,d)}get shape(){return this._def.shape()}strict(a){return ne.errToObj,new Et({...this._def,unknownKeys:"strict",...a!==void 0?{errorMap:(e,t)=>{var i,s,l,o;const d=(l=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,e,t).message)!==null&&l!==void 0?l:t.defaultError;return e.code==="unrecognized_keys"?{message:(o=ne.errToObj(a).message)!==null&&o!==void 0?o:d}:{message:d}}}:{}})}strip(){return new Et({...this._def,unknownKeys:"strip"})}passthrough(){return new Et({...this._def,unknownKeys:"passthrough"})}extend(a){return new Et({...this._def,shape:()=>({...this._def.shape(),...a})})}merge(a){return new Et({unknownKeys:a._def.unknownKeys,catchall:a._def.catchall,shape:()=>({...this._def.shape(),...a._def.shape()}),typeName:ce.ZodObject})}setKey(a,e){return this.augment({[a]:e})}catchall(a){return new Et({...this._def,catchall:a})}pick(a){const e={};return ze.objectKeys(a).forEach(t=>{a[t]&&this.shape[t]&&(e[t]=this.shape[t])}),new Et({...this._def,shape:()=>e})}omit(a){const e={};return ze.objectKeys(this.shape).forEach(t=>{a[t]||(e[t]=this.shape[t])}),new Et({...this._def,shape:()=>e})}deepPartial(){return is(this)}partial(a){const e={};return ze.objectKeys(this.shape).forEach(t=>{const i=this.shape[t];a&&!a[t]?e[t]=i:e[t]=i.optional()}),new Et({...this._def,shape:()=>e})}required(a){const e={};return ze.objectKeys(this.shape).forEach(t=>{if(a&&!a[t])e[t]=this.shape[t];else{let s=this.shape[t];for(;s instanceof Ji;)s=s._def.innerType;e[t]=s}}),new Et({...this._def,shape:()=>e})}keyof(){return vI(ze.objectKeys(this.shape))}}Et.create=(r,a)=>new Et({shape:()=>r,unknownKeys:"strip",catchall:dr.create(),typeName:ce.ZodObject,...Te(a)}),Et.strictCreate=(r,a)=>new Et({shape:()=>r,unknownKeys:"strict",catchall:dr.create(),typeName:ce.ZodObject,...Te(a)}),Et.lazycreate=(r,a)=>new Et({shape:r,unknownKeys:"strip",catchall:dr.create(),typeName:ce.ZodObject,...Te(a)});class qs extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a),t=this._def.options;function i(s){for(const o of s)if(o.result.status==="valid")return o.result;for(const o of s)if(o.result.status==="dirty")return e.common.issues.push(...o.ctx.common.issues),o.result;const l=s.map(o=>new si(o.ctx.common.issues));return z(e,{code:Z.invalid_union,unionErrors:l}),ye}if(e.common.async)return Promise.all(t.map(async s=>{const l={...e,common:{...e.common,issues:[]},parent:null};return{result:await s._parseAsync({data:e.data,path:e.path,parent:l}),ctx:l}})).then(i);{let s;const l=[];for(const d of t){const u={...e,common:{...e.common,issues:[]},parent:null},y=d._parseSync({data:e.data,path:e.path,parent:u});if(y.status==="valid")return y;y.status==="dirty"&&!s&&(s={result:y,ctx:u}),u.common.issues.length&&l.push(u.common.issues)}if(s)return e.common.issues.push(...s.ctx.common.issues),s.result;const o=l.map(d=>new si(d));return z(e,{code:Z.invalid_union,unionErrors:o}),ye}}get options(){return this._def.options}}qs.create=(r,a)=>new qs({options:r,typeName:ce.ZodUnion,...Te(a)});const ur=r=>r instanceof Ws?ur(r.schema):r instanceof Mi?ur(r.innerType()):r instanceof zs?[r.value]:r instanceof Vr?r.options:r instanceof Ys?ze.objectValues(r.enum):r instanceof Hs?ur(r._def.innerType):r instanceof ks?[void 0]:r instanceof Zs?[null]:r instanceof Ji?[void 0,...ur(r.unwrap())]:r instanceof Br?[null,...ur(r.unwrap())]:r instanceof du||r instanceof Qs?ur(r.unwrap()):r instanceof Ks?ur(r._def.innerType):[];class Oo extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a);if(e.parsedType!==H.object)return z(e,{code:Z.invalid_type,expected:H.object,received:e.parsedType}),ye;const t=this.discriminator,i=e.data[t],s=this.optionsMap.get(i);return s?e.common.async?s._parseAsync({data:e.data,path:e.path,parent:e}):s._parseSync({data:e.data,path:e.path,parent:e}):(z(e,{code:Z.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[t]}),ye)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(a,e,t){const i=new Map;for(const s of e){const l=ur(s.shape[a]);if(!l.length)throw new Error(`A discriminator value for key \`${a}\` could not be extracted from all schema options`);for(const o of l){if(i.has(o))throw new Error(`Discriminator property ${String(a)} has duplicate value ${String(o)}`);i.set(o,s)}}return new Oo({typeName:ce.ZodDiscriminatedUnion,discriminator:a,options:e,optionsMap:i,...Te(t)})}}function lu(r,a){const e=lr(r),t=lr(a);if(r===a)return{valid:!0,data:r};if(e===H.object&&t===H.object){const i=ze.objectKeys(a),s=ze.objectKeys(r).filter(o=>i.indexOf(o)!==-1),l={...r,...a};for(const o of s){const d=lu(r[o],a[o]);if(!d.valid)return{valid:!1};l[o]=d.data}return{valid:!0,data:l}}else if(e===H.array&&t===H.array){if(r.length!==a.length)return{valid:!1};const i=[];for(let s=0;s<r.length;s++){const l=r[s],o=a[s],d=lu(l,o);if(!d.valid)return{valid:!1};i.push(d.data)}return{valid:!0,data:i}}else return e===H.date&&t===H.date&&+r==+a?{valid:!0,data:r}:{valid:!1}}class Js extends Ge{_parse(a){const{status:e,ctx:t}=this._processInputParams(a),i=(s,l)=>{if(su(s)||su(l))return ye;const o=lu(s.value,l.value);return o.valid?((au(s)||au(l))&&e.dirty(),{status:e.value,value:o.data}):(z(t,{code:Z.invalid_intersection_types}),ye)};return t.common.async?Promise.all([this._def.left._parseAsync({data:t.data,path:t.path,parent:t}),this._def.right._parseAsync({data:t.data,path:t.path,parent:t})]).then(([s,l])=>i(s,l)):i(this._def.left._parseSync({data:t.data,path:t.path,parent:t}),this._def.right._parseSync({data:t.data,path:t.path,parent:t}))}}Js.create=(r,a,e)=>new Js({left:r,right:a,typeName:ce.ZodIntersection,...Te(e)});class qi extends Ge{_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.parsedType!==H.array)return z(t,{code:Z.invalid_type,expected:H.array,received:t.parsedType}),ye;if(t.data.length<this._def.items.length)return z(t,{code:Z.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ye;!this._def.rest&&t.data.length>this._def.items.length&&(z(t,{code:Z.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),e.dirty());const s=[...t.data].map((l,o)=>{const d=this._def.items[o]||this._def.rest;return d?d._parse(new Zi(t,l,t.path,o)):null}).filter(l=>!!l);return t.common.async?Promise.all(s).then(l=>$t.mergeArray(e,l)):$t.mergeArray(e,s)}get items(){return this._def.items}rest(a){return new qi({...this._def,rest:a})}}qi.create=(r,a)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new qi({items:r,typeName:ce.ZodTuple,rest:null,...Te(a)})};class Ss extends Ge{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.parsedType!==H.object)return z(t,{code:Z.invalid_type,expected:H.object,received:t.parsedType}),ye;const i=[],s=this._def.keyType,l=this._def.valueType;for(const o in t.data)i.push({key:s._parse(new Zi(t,o,t.path,o)),value:l._parse(new Zi(t,t.data[o],t.path,o)),alwaysSet:o in t.data});return t.common.async?$t.mergeObjectAsync(e,i):$t.mergeObjectSync(e,i)}get element(){return this._def.valueType}static create(a,e,t){return e instanceof Ge?new Ss({keyType:a,valueType:e,typeName:ce.ZodRecord,...Te(t)}):new Ss({keyType:Bi.create(),valueType:a,typeName:ce.ZodRecord,...Te(e)})}}class Po extends Ge{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.parsedType!==H.map)return z(t,{code:Z.invalid_type,expected:H.map,received:t.parsedType}),ye;const i=this._def.keyType,s=this._def.valueType,l=[...t.data.entries()].map(([o,d],u)=>({key:i._parse(new Zi(t,o,t.path,[u,"key"])),value:s._parse(new Zi(t,d,t.path,[u,"value"]))}));if(t.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const d of l){const u=await d.key,y=await d.value;if(u.status==="aborted"||y.status==="aborted")return ye;(u.status==="dirty"||y.status==="dirty")&&e.dirty(),o.set(u.value,y.value)}return{status:e.value,value:o}})}else{const o=new Map;for(const d of l){const u=d.key,y=d.value;if(u.status==="aborted"||y.status==="aborted")return ye;(u.status==="dirty"||y.status==="dirty")&&e.dirty(),o.set(u.value,y.value)}return{status:e.value,value:o}}}}Po.create=(r,a,e)=>new Po({valueType:a,keyType:r,typeName:ce.ZodMap,...Te(e)});class In extends Ge{_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.parsedType!==H.set)return z(t,{code:Z.invalid_type,expected:H.set,received:t.parsedType}),ye;const i=this._def;i.minSize!==null&&t.data.size<i.minSize.value&&(z(t,{code:Z.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),e.dirty()),i.maxSize!==null&&t.data.size>i.maxSize.value&&(z(t,{code:Z.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),e.dirty());const s=this._def.valueType;function l(d){const u=new Set;for(const y of d){if(y.status==="aborted")return ye;y.status==="dirty"&&e.dirty(),u.add(y.value)}return{status:e.value,value:u}}const o=[...t.data.values()].map((d,u)=>s._parse(new Zi(t,d,t.path,u)));return t.common.async?Promise.all(o).then(d=>l(d)):l(o)}min(a,e){return new In({...this._def,minSize:{value:a,message:ne.toString(e)}})}max(a,e){return new In({...this._def,maxSize:{value:a,message:ne.toString(e)}})}size(a,e){return this.min(a,e).max(a,e)}nonempty(a){return this.min(1,a)}}In.create=(r,a)=>new In({valueType:r,minSize:null,maxSize:null,typeName:ce.ZodSet,...Te(a)});class rs extends Ge{constructor(){super(...arguments),this.validate=this.implement}_parse(a){const{ctx:e}=this._processInputParams(a);if(e.parsedType!==H.function)return z(e,{code:Z.invalid_type,expected:H.function,received:e.parsedType}),ye;function t(o,d){return Ao({data:o,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,Io(),Qn].filter(u=>!!u),issueData:{code:Z.invalid_arguments,argumentsError:d}})}function i(o,d){return Ao({data:o,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,Io(),Qn].filter(u=>!!u),issueData:{code:Z.invalid_return_type,returnTypeError:d}})}const s={errorMap:e.common.contextualErrorMap},l=e.data;if(this._def.returns instanceof ns){const o=this;return zt(async function(...d){const u=new si([]),y=await o._def.args.parseAsync(d,s).catch(I=>{throw u.addIssue(t(d,I)),u}),c=await Reflect.apply(l,this,y);return await o._def.returns._def.type.parseAsync(c,s).catch(I=>{throw u.addIssue(i(c,I)),u})})}else{const o=this;return zt(function(...d){const u=o._def.args.safeParse(d,s);if(!u.success)throw new si([t(d,u.error)]);const y=Reflect.apply(l,this,u.data),c=o._def.returns.safeParse(y,s);if(!c.success)throw new si([i(y,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...a){return new rs({...this._def,args:qi.create(a).rest(En.create())})}returns(a){return new rs({...this._def,returns:a})}implement(a){return this.parse(a)}strictImplement(a){return this.parse(a)}static create(a,e,t){return new rs({args:a||qi.create([]).rest(En.create()),returns:e||En.create(),typeName:ce.ZodFunction,...Te(t)})}}class Ws extends Ge{get schema(){return this._def.getter()}_parse(a){const{ctx:e}=this._processInputParams(a);return this._def.getter()._parse({data:e.data,path:e.path,parent:e})}}Ws.create=(r,a)=>new Ws({getter:r,typeName:ce.ZodLazy,...Te(a)});class zs extends Ge{_parse(a){if(a.data!==this._def.value){const e=this._getOrReturnCtx(a);return z(e,{received:e.data,code:Z.invalid_literal,expected:this._def.value}),ye}return{status:"valid",value:a.data}}get value(){return this._def.value}}zs.create=(r,a)=>new zs({value:r,typeName:ce.ZodLiteral,...Te(a)});function vI(r,a){return new Vr({values:r,typeName:ce.ZodEnum,...Te(a)})}class Vr extends Ge{constructor(){super(...arguments),Gs.set(this,void 0)}_parse(a){if(typeof a.data!="string"){const e=this._getOrReturnCtx(a),t=this._def.values;return z(e,{expected:ze.joinValues(t),received:e.parsedType,code:Z.invalid_type}),ye}if(bo(this,Gs,"f")||cI(this,Gs,new Set(this._def.values),"f"),!bo(this,Gs,"f").has(a.data)){const e=this._getOrReturnCtx(a),t=this._def.values;return z(e,{received:e.data,code:Z.invalid_enum_value,options:t}),ye}return zt(a.data)}get options(){return this._def.values}get enum(){const a={};for(const e of this._def.values)a[e]=e;return a}get Values(){const a={};for(const e of this._def.values)a[e]=e;return a}get Enum(){const a={};for(const e of this._def.values)a[e]=e;return a}extract(a,e=this._def){return Vr.create(a,{...this._def,...e})}exclude(a,e=this._def){return Vr.create(this.options.filter(t=>!a.includes(t)),{...this._def,...e})}}Gs=new WeakMap,Vr.create=vI;class Ys extends Ge{constructor(){super(...arguments),Fs.set(this,void 0)}_parse(a){const e=ze.getValidEnumValues(this._def.values),t=this._getOrReturnCtx(a);if(t.parsedType!==H.string&&t.parsedType!==H.number){const i=ze.objectValues(e);return z(t,{expected:ze.joinValues(i),received:t.parsedType,code:Z.invalid_type}),ye}if(bo(this,Fs,"f")||cI(this,Fs,new Set(ze.getValidEnumValues(this._def.values)),"f"),!bo(this,Fs,"f").has(a.data)){const i=ze.objectValues(e);return z(t,{received:t.data,code:Z.invalid_enum_value,options:i}),ye}return zt(a.data)}get enum(){return this._def.values}}Fs=new WeakMap,Ys.create=(r,a)=>new Ys({values:r,typeName:ce.ZodNativeEnum,...Te(a)});class ns extends Ge{unwrap(){return this._def.type}_parse(a){const{ctx:e}=this._processInputParams(a);if(e.parsedType!==H.promise&&e.common.async===!1)return z(e,{code:Z.invalid_type,expected:H.promise,received:e.parsedType}),ye;const t=e.parsedType===H.promise?e.data:Promise.resolve(e.data);return zt(t.then(i=>this._def.type.parseAsync(i,{path:e.path,errorMap:e.common.contextualErrorMap})))}}ns.create=(r,a)=>new ns({type:r,typeName:ce.ZodPromise,...Te(a)});class Mi extends Ge{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ce.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(a){const{status:e,ctx:t}=this._processInputParams(a),i=this._def.effect||null,s={addIssue:l=>{z(t,l),l.fatal?e.abort():e.dirty()},get path(){return t.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){const l=i.transform(t.data,s);if(t.common.async)return Promise.resolve(l).then(async o=>{if(e.value==="aborted")return ye;const d=await this._def.schema._parseAsync({data:o,path:t.path,parent:t});return d.status==="aborted"?ye:d.status==="dirty"||e.value==="dirty"?es(d.value):d});{if(e.value==="aborted")return ye;const o=this._def.schema._parseSync({data:l,path:t.path,parent:t});return o.status==="aborted"?ye:o.status==="dirty"||e.value==="dirty"?es(o.value):o}}if(i.type==="refinement"){const l=o=>{const d=i.refinement(o,s);if(t.common.async)return Promise.resolve(d);if(d instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(t.common.async===!1){const o=this._def.schema._parseSync({data:t.data,path:t.path,parent:t});return o.status==="aborted"?ye:(o.status==="dirty"&&e.dirty(),l(o.value),{status:e.value,value:o.value})}else return this._def.schema._parseAsync({data:t.data,path:t.path,parent:t}).then(o=>o.status==="aborted"?ye:(o.status==="dirty"&&e.dirty(),l(o.value).then(()=>({status:e.value,value:o.value}))))}if(i.type==="transform")if(t.common.async===!1){const l=this._def.schema._parseSync({data:t.data,path:t.path,parent:t});if(!vn(l))return l;const o=i.transform(l.value,s);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:e.value,value:o}}else return this._def.schema._parseAsync({data:t.data,path:t.path,parent:t}).then(l=>vn(l)?Promise.resolve(i.transform(l.value,s)).then(o=>({status:e.value,value:o})):l);ze.assertNever(i)}}Mi.create=(r,a,e)=>new Mi({schema:r,typeName:ce.ZodEffects,effect:a,...Te(e)}),Mi.createWithPreprocess=(r,a,e)=>new Mi({schema:a,effect:{type:"preprocess",transform:r},typeName:ce.ZodEffects,...Te(e)});class Ji extends Ge{_parse(a){return this._getType(a)===H.undefined?zt(void 0):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}Ji.create=(r,a)=>new Ji({innerType:r,typeName:ce.ZodOptional,...Te(a)});class Br extends Ge{_parse(a){return this._getType(a)===H.null?zt(null):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}Br.create=(r,a)=>new Br({innerType:r,typeName:ce.ZodNullable,...Te(a)});class Hs extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a);let t=e.data;return e.parsedType===H.undefined&&(t=this._def.defaultValue()),this._def.innerType._parse({data:t,path:e.path,parent:e})}removeDefault(){return this._def.innerType}}Hs.create=(r,a)=>new Hs({innerType:r,typeName:ce.ZodDefault,defaultValue:typeof a.default=="function"?a.default:()=>a.default,...Te(a)});class Ks extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a),t={...e,common:{...e.common,issues:[]}},i=this._def.innerType._parse({data:t.data,path:t.path,parent:{...t}});return gs(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new si(t.common.issues)},input:t.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new si(t.common.issues)},input:t.data})}}removeCatch(){return this._def.innerType}}Ks.create=(r,a)=>new Ks({innerType:r,typeName:ce.ZodCatch,catchValue:typeof a.catch=="function"?a.catch:()=>a.catch,...Te(a)});class wo extends Ge{_parse(a){if(this._getType(a)!==H.nan){const t=this._getOrReturnCtx(a);return z(t,{code:Z.invalid_type,expected:H.nan,received:t.parsedType}),ye}return{status:"valid",value:a.data}}}wo.create=r=>new wo({typeName:ce.ZodNaN,...Te(r)});const dC=Symbol("zod_brand");class du extends Ge{_parse(a){const{ctx:e}=this._processInputParams(a),t=e.data;return this._def.type._parse({data:t,path:e.path,parent:e})}unwrap(){return this._def.type}}class Xs extends Ge{_parse(a){const{status:e,ctx:t}=this._processInputParams(a);if(t.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:t.data,path:t.path,parent:t});return s.status==="aborted"?ye:s.status==="dirty"?(e.dirty(),es(s.value)):this._def.out._parseAsync({data:s.value,path:t.path,parent:t})})();{const i=this._def.in._parseSync({data:t.data,path:t.path,parent:t});return i.status==="aborted"?ye:i.status==="dirty"?(e.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:t.path,parent:t})}}static create(a,e){return new Xs({in:a,out:e,typeName:ce.ZodPipeline})}}class Qs extends Ge{_parse(a){const e=this._def.innerType._parse(a),t=i=>(vn(i)&&(i.value=Object.freeze(i.value)),i);return gs(e)?e.then(i=>t(i)):t(e)}unwrap(){return this._def.innerType}}Qs.create=(r,a)=>new Qs({innerType:r,typeName:ce.ZodReadonly,...Te(a)});function TI(r,a={},e){return r?ts.create().superRefine((t,i)=>{var s,l;if(!r(t)){const o=typeof a=="function"?a(t):typeof a=="string"?{message:a}:a,d=(l=(s=o.fatal)!==null&&s!==void 0?s:e)!==null&&l!==void 0?l:!0,u=typeof o=="string"?{message:o}:o;i.addIssue({code:"custom",...u,fatal:d})}}):ts.create()}const uC={object:Et.lazycreate};var ce;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline",r.ZodReadonly="ZodReadonly"})(ce||(ce={}));const pC=(r,a={message:`Input not instance of ${r.name}`})=>TI(e=>e instanceof r,a),Co=Bi.create,uu=wr.create,cC=wo.create,fC=Cr.create,pu=xs.create,EI=Tn.create,yC=Ro.create,hC=ks.create,II=Zs.create,mC=ts.create,Vo=En.create,vC=dr.create,TC=Do.create,EC=_i.create,AI=Et.create,IC=Et.strictCreate,AC=qs.create,bC=Oo.create,RC=Js.create,DC=qi.create,bI=Ss.create,OC=Po.create,PC=In.create,wC=rs.create,CC=Ws.create,VC=zs.create,RI=Vr.create,BC=Ys.create,_C=ns.create,DI=Mi.create,MC=Ji.create,NC=Br.create,LC=Mi.createWithPreprocess,jC=Xs.create;var v=Object.freeze({__proto__:null,defaultErrorMap:Qn,setErrorMap:Fw,getErrorMap:Io,makeIssue:Ao,EMPTY_PATH:xw,addIssueToContext:z,ParseStatus:$t,INVALID:ye,DIRTY:es,OK:zt,isAborted:su,isDirty:au,isValid:vn,isAsync:gs,get util(){return ze},get objectUtil(){return nu},ZodParsedType:H,getParsedType:lr,ZodType:Ge,datetimeRegex:mI,ZodString:Bi,ZodNumber:wr,ZodBigInt:Cr,ZodBoolean:xs,ZodDate:Tn,ZodSymbol:Ro,ZodUndefined:ks,ZodNull:Zs,ZodAny:ts,ZodUnknown:En,ZodNever:dr,ZodVoid:Do,ZodArray:_i,ZodObject:Et,ZodUnion:qs,ZodDiscriminatedUnion:Oo,ZodIntersection:Js,ZodTuple:qi,ZodRecord:Ss,ZodMap:Po,ZodSet:In,ZodFunction:rs,ZodLazy:Ws,ZodLiteral:zs,ZodEnum:Vr,ZodNativeEnum:Ys,ZodPromise:ns,ZodEffects:Mi,ZodTransformer:Mi,ZodOptional:Ji,ZodNullable:Br,ZodDefault:Hs,ZodCatch:Ks,ZodNaN:wo,BRAND:dC,ZodBranded:du,ZodPipeline:Xs,ZodReadonly:Qs,custom:TI,Schema:Ge,ZodSchema:Ge,late:uC,get ZodFirstPartyTypeKind(){return ce},coerce:{string:r=>Bi.create({...r,coerce:!0}),number:r=>wr.create({...r,coerce:!0}),boolean:r=>xs.create({...r,coerce:!0}),bigint:r=>Cr.create({...r,coerce:!0}),date:r=>Tn.create({...r,coerce:!0})},any:mC,array:EC,bigint:fC,boolean:pu,date:EI,discriminatedUnion:bC,effect:DI,enum:RI,function:wC,instanceof:pC,intersection:RC,lazy:CC,literal:VC,map:OC,nan:cC,nativeEnum:BC,never:vC,null:II,nullable:NC,number:uu,object:AI,oboolean:()=>pu().optional(),onumber:()=>uu().optional(),optional:MC,ostring:()=>Co().optional(),pipeline:jC,preprocess:LC,promise:_C,record:bI,set:PC,strictObject:IC,string:Co,symbol:yC,transformer:DI,tuple:DC,undefined:hC,union:AC,unknown:Vo,void:TC,NEVER:ye,ZodIssueCode:Z,quotelessJson:Gw,ZodError:si});function OI(r){var i,s,l;if(!(r!=null&&r.dataType))return Vo();const a=!r.required,e=r.dataType.isList||!1;let t=Vo();if(((i=r.dataType.entity)==null?void 0:i.type)===n.PrimitiveEntity)switch(r.dataType.entity.name){case L.String:t=Co();break;case L.KeyValue:t=bI(Vo());break;case L.Number:t=uu();break;case L.Boolean:t=pu();break;case L.Date:t=EI();break;case L.Enum:{const o=r.dataType.options||[];if(o.length===0)throw new Error(`Enum property ${r.name} has no options`);t=RI(o);break}case L.Null:t=II();break;case L.UUID:t=Co().uuid();break}else if(((s=r.dataType.entity)==null?void 0:s.type)===n.DefinitionEntity)t=PI(r.dataType.entity);else throw new Error(`Unsupported data type validation: ${(l=r.dataType.entity)==null?void 0:l.type}`);return a&&(t=t.nullable()),e&&(t=t.array()),t}function PI(r){const a=AI({});for(const e of r.properties){const t=OI(e);a.shape[e.name]=t}return a}function wI(r){const a=r.rangeStart;return new Date(a.getTime()+Math.random()*(Date.now()-a.getTime()))}function CI(r){const a=r.rangeEnd;return new Date(Math.random()*a.getTime())}function VI(r){const a=r.rangeStart,e=r.rangeEnd;return new Date(a.getTime()+Math.random()*(e.getTime()-a.getTime()))}function BI(r){return r.rangeStart&&r.rangeEnd?VI(r):r.rangeStart?wI(r):r.rangeEnd?CI(r):new Date}var UC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _I(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var MI={},Bo={},_o={};Object.defineProperty(_o,"__esModule",{value:!0}),_o.default=gC;let Mo;const $C=new Uint8Array(16);function gC(){if(!Mo&&(Mo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Mo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Mo($C)}var _r={},An={},No={};Object.defineProperty(No,"__esModule",{value:!0}),No.default=void 0;var GC=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;No.default=GC,Object.defineProperty(An,"__esModule",{value:!0}),An.default=void 0;var FC=xC(No);function xC(r){return r&&r.__esModule?r:{default:r}}function kC(r){return typeof r=="string"&&FC.default.test(r)}var ZC=kC;An.default=ZC,Object.defineProperty(_r,"__esModule",{value:!0}),_r.default=void 0,_r.unsafeStringify=NI;var qC=JC(An);function JC(r){return r&&r.__esModule?r:{default:r}}const jt=[];for(let r=0;r<256;++r)jt.push((r+256).toString(16).slice(1));function NI(r,a=0){return jt[r[a+0]]+jt[r[a+1]]+jt[r[a+2]]+jt[r[a+3]]+"-"+jt[r[a+4]]+jt[r[a+5]]+"-"+jt[r[a+6]]+jt[r[a+7]]+"-"+jt[r[a+8]]+jt[r[a+9]]+"-"+jt[r[a+10]]+jt[r[a+11]]+jt[r[a+12]]+jt[r[a+13]]+jt[r[a+14]]+jt[r[a+15]]}function SC(r,a=0){const e=NI(r,a);if(!(0,qC.default)(e))throw TypeError("Stringified UUID is invalid");return e}var WC=SC;_r.default=WC,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.default=void 0;var zC=HC(_o),YC=_r;function HC(r){return r&&r.__esModule?r:{default:r}}let LI,cu,fu=0,yu=0;function KC(r,a,e){let t=a&&e||0;const i=a||new Array(16);r=r||{};let s=r.node||LI,l=r.clockseq!==void 0?r.clockseq:cu;if(s==null||l==null){const E=r.random||(r.rng||zC.default)();s==null&&(s=LI=[E[0]|1,E[1],E[2],E[3],E[4],E[5]]),l==null&&(l=cu=(E[6]<<8|E[7])&16383)}let o=r.msecs!==void 0?r.msecs:Date.now(),d=r.nsecs!==void 0?r.nsecs:yu+1;const u=o-fu+(d-yu)/1e4;if(u<0&&r.clockseq===void 0&&(l=l+1&16383),(u<0||o>fu)&&r.nsecs===void 0&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");fu=o,yu=d,cu=l,o+=122192928e5;const y=((o&268435455)*1e4+d)%4294967296;i[t++]=y>>>24&255,i[t++]=y>>>16&255,i[t++]=y>>>8&255,i[t++]=y&255;const c=o/4294967296*1e4&268435455;i[t++]=c>>>8&255,i[t++]=c&255,i[t++]=c>>>24&15|16,i[t++]=c>>>16&255,i[t++]=l>>>8|128,i[t++]=l&255;for(let E=0;E<6;++E)i[t+E]=s[E];return a||(0,YC.unsafeStringify)(i)}var XC=KC;Bo.default=XC;var Lo={},Mr={},ea={};Object.defineProperty(ea,"__esModule",{value:!0}),ea.default=void 0;var QC=eV(An);function eV(r){return r&&r.__esModule?r:{default:r}}function tV(r){if(!(0,QC.default)(r))throw TypeError("Invalid UUID");let a;const e=new Uint8Array(16);return e[0]=(a=parseInt(r.slice(0,8),16))>>>24,e[1]=a>>>16&255,e[2]=a>>>8&255,e[3]=a&255,e[4]=(a=parseInt(r.slice(9,13),16))>>>8,e[5]=a&255,e[6]=(a=parseInt(r.slice(14,18),16))>>>8,e[7]=a&255,e[8]=(a=parseInt(r.slice(19,23),16))>>>8,e[9]=a&255,e[10]=(a=parseInt(r.slice(24,36),16))/1099511627776&255,e[11]=a/4294967296&255,e[12]=a>>>24&255,e[13]=a>>>16&255,e[14]=a>>>8&255,e[15]=a&255,e}var iV=tV;ea.default=iV,Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.URL=Mr.DNS=void 0,Mr.default=oV;var rV=_r,nV=sV(ea);function sV(r){return r&&r.__esModule?r:{default:r}}function aV(r){r=unescape(encodeURIComponent(r));const a=[];for(let e=0;e<r.length;++e)a.push(r.charCodeAt(e));return a}const jI="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Mr.DNS=jI;const UI="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Mr.URL=UI;function oV(r,a,e){function t(i,s,l,o){var d;if(typeof i=="string"&&(i=aV(i)),typeof s=="string"&&(s=(0,nV.default)(s)),((d=s)===null||d===void 0?void 0:d.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let u=new Uint8Array(16+i.length);if(u.set(s),u.set(i,s.length),u=e(u),u[6]=u[6]&15|a,u[8]=u[8]&63|128,l){o=o||0;for(let y=0;y<16;++y)l[o+y]=u[y];return l}return(0,rV.unsafeStringify)(u)}try{t.name=r}catch{}return t.DNS=jI,t.URL=UI,t}var jo={};Object.defineProperty(jo,"__esModule",{value:!0}),jo.default=void 0;function lV(r){if(typeof r=="string"){const a=unescape(encodeURIComponent(r));r=new Uint8Array(a.length);for(let e=0;e<a.length;++e)r[e]=a.charCodeAt(e)}return dV(uV(pV(r),r.length*8))}function dV(r){const a=[],e=r.length*32,t="0123456789abcdef";for(let i=0;i<e;i+=8){const s=r[i>>5]>>>i%32&255,l=parseInt(t.charAt(s>>>4&15)+t.charAt(s&15),16);a.push(l)}return a}function $I(r){return(r+64>>>9<<4)+14+1}function uV(r,a){r[a>>5]|=128<<a%32,r[$I(a)-1]=a;let e=1732584193,t=-271733879,i=-1732584194,s=271733878;for(let l=0;l<r.length;l+=16){const o=e,d=t,u=i,y=s;e=gt(e,t,i,s,r[l],7,-680876936),s=gt(s,e,t,i,r[l+1],12,-389564586),i=gt(i,s,e,t,r[l+2],17,606105819),t=gt(t,i,s,e,r[l+3],22,-1044525330),e=gt(e,t,i,s,r[l+4],7,-176418897),s=gt(s,e,t,i,r[l+5],12,1200080426),i=gt(i,s,e,t,r[l+6],17,-1473231341),t=gt(t,i,s,e,r[l+7],22,-45705983),e=gt(e,t,i,s,r[l+8],7,1770035416),s=gt(s,e,t,i,r[l+9],12,-1958414417),i=gt(i,s,e,t,r[l+10],17,-42063),t=gt(t,i,s,e,r[l+11],22,-1990404162),e=gt(e,t,i,s,r[l+12],7,1804603682),s=gt(s,e,t,i,r[l+13],12,-40341101),i=gt(i,s,e,t,r[l+14],17,-1502002290),t=gt(t,i,s,e,r[l+15],22,1236535329),e=Gt(e,t,i,s,r[l+1],5,-165796510),s=Gt(s,e,t,i,r[l+6],9,-1069501632),i=Gt(i,s,e,t,r[l+11],14,643717713),t=Gt(t,i,s,e,r[l],20,-373897302),e=Gt(e,t,i,s,r[l+5],5,-701558691),s=Gt(s,e,t,i,r[l+10],9,38016083),i=Gt(i,s,e,t,r[l+15],14,-660478335),t=Gt(t,i,s,e,r[l+4],20,-405537848),e=Gt(e,t,i,s,r[l+9],5,568446438),s=Gt(s,e,t,i,r[l+14],9,-1019803690),i=Gt(i,s,e,t,r[l+3],14,-187363961),t=Gt(t,i,s,e,r[l+8],20,1163531501),e=Gt(e,t,i,s,r[l+13],5,-1444681467),s=Gt(s,e,t,i,r[l+2],9,-51403784),i=Gt(i,s,e,t,r[l+7],14,1735328473),t=Gt(t,i,s,e,r[l+12],20,-1926607734),e=Ft(e,t,i,s,r[l+5],4,-378558),s=Ft(s,e,t,i,r[l+8],11,-2022574463),i=Ft(i,s,e,t,r[l+11],16,1839030562),t=Ft(t,i,s,e,r[l+14],23,-35309556),e=Ft(e,t,i,s,r[l+1],4,-1530992060),s=Ft(s,e,t,i,r[l+4],11,1272893353),i=Ft(i,s,e,t,r[l+7],16,-155497632),t=Ft(t,i,s,e,r[l+10],23,-1094730640),e=Ft(e,t,i,s,r[l+13],4,681279174),s=Ft(s,e,t,i,r[l],11,-358537222),i=Ft(i,s,e,t,r[l+3],16,-722521979),t=Ft(t,i,s,e,r[l+6],23,76029189),e=Ft(e,t,i,s,r[l+9],4,-640364487),s=Ft(s,e,t,i,r[l+12],11,-421815835),i=Ft(i,s,e,t,r[l+15],16,530742520),t=Ft(t,i,s,e,r[l+2],23,-995338651),e=xt(e,t,i,s,r[l],6,-198630844),s=xt(s,e,t,i,r[l+7],10,1126891415),i=xt(i,s,e,t,r[l+14],15,-1416354905),t=xt(t,i,s,e,r[l+5],21,-57434055),e=xt(e,t,i,s,r[l+12],6,1700485571),s=xt(s,e,t,i,r[l+3],10,-1894986606),i=xt(i,s,e,t,r[l+10],15,-1051523),t=xt(t,i,s,e,r[l+1],21,-2054922799),e=xt(e,t,i,s,r[l+8],6,1873313359),s=xt(s,e,t,i,r[l+15],10,-30611744),i=xt(i,s,e,t,r[l+6],15,-1560198380),t=xt(t,i,s,e,r[l+13],21,1309151649),e=xt(e,t,i,s,r[l+4],6,-145523070),s=xt(s,e,t,i,r[l+11],10,-1120210379),i=xt(i,s,e,t,r[l+2],15,718787259),t=xt(t,i,s,e,r[l+9],21,-343485551),e=Nr(e,o),t=Nr(t,d),i=Nr(i,u),s=Nr(s,y)}return[e,t,i,s]}function pV(r){if(r.length===0)return[];const a=r.length*8,e=new Uint32Array($I(a));for(let t=0;t<a;t+=8)e[t>>5]|=(r[t/8]&255)<<t%32;return e}function Nr(r,a){const e=(r&65535)+(a&65535);return(r>>16)+(a>>16)+(e>>16)<<16|e&65535}function cV(r,a){return r<<a|r>>>32-a}function Uo(r,a,e,t,i,s){return Nr(cV(Nr(Nr(a,r),Nr(t,s)),i),e)}function gt(r,a,e,t,i,s,l){return Uo(a&e|~a&t,r,a,i,s,l)}function Gt(r,a,e,t,i,s,l){return Uo(a&t|e&~t,r,a,i,s,l)}function Ft(r,a,e,t,i,s,l){return Uo(a^e^t,r,a,i,s,l)}function xt(r,a,e,t,i,s,l){return Uo(e^(a|~t),r,a,i,s,l)}var fV=lV;jo.default=fV,Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.default=void 0;var yV=gI(Mr),hV=gI(jo);function gI(r){return r&&r.__esModule?r:{default:r}}var mV=(0,yV.default)("v3",48,hV.default);Lo.default=mV;var $o={},go={};Object.defineProperty(go,"__esModule",{value:!0}),go.default=void 0;var vV={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};go.default=vV,Object.defineProperty($o,"__esModule",{value:!0}),$o.default=void 0;var GI=FI(go),TV=FI(_o),EV=_r;function FI(r){return r&&r.__esModule?r:{default:r}}function IV(r,a,e){if(GI.default.randomUUID&&!a&&!r)return GI.default.randomUUID();r=r||{};const t=r.random||(r.rng||TV.default)();if(t[6]=t[6]&15|64,t[8]=t[8]&63|128,a){e=e||0;for(let i=0;i<16;++i)a[e+i]=t[i];return a}return(0,EV.unsafeStringify)(t)}var AV=IV;$o.default=AV;var Go={},Fo={};Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.default=void 0;function bV(r,a,e,t){switch(r){case 0:return a&e^~a&t;case 1:return a^e^t;case 2:return a&e^a&t^e&t;case 3:return a^e^t}}function hu(r,a){return r<<a|r>>>32-a}function RV(r){const a=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){const l=unescape(encodeURIComponent(r));r=[];for(let o=0;o<l.length;++o)r.push(l.charCodeAt(o))}else Array.isArray(r)||(r=Array.prototype.slice.call(r));r.push(128);const t=r.length/4+2,i=Math.ceil(t/16),s=new Array(i);for(let l=0;l<i;++l){const o=new Uint32Array(16);for(let d=0;d<16;++d)o[d]=r[l*64+d*4]<<24|r[l*64+d*4+1]<<16|r[l*64+d*4+2]<<8|r[l*64+d*4+3];s[l]=o}s[i-1][14]=(r.length-1)*8/Math.pow(2,32),s[i-1][14]=Math.floor(s[i-1][14]),s[i-1][15]=(r.length-1)*8&4294967295;for(let l=0;l<i;++l){const o=new Uint32Array(80);for(let I=0;I<16;++I)o[I]=s[l][I];for(let I=16;I<80;++I)o[I]=hu(o[I-3]^o[I-8]^o[I-14]^o[I-16],1);let d=e[0],u=e[1],y=e[2],c=e[3],E=e[4];for(let I=0;I<80;++I){const O=Math.floor(I/20),P=hu(d,5)+bV(O,u,y,c)+E+a[O]+o[I]>>>0;E=c,c=y,y=hu(u,30)>>>0,u=d,d=P}e[0]=e[0]+d>>>0,e[1]=e[1]+u>>>0,e[2]=e[2]+y>>>0,e[3]=e[3]+c>>>0,e[4]=e[4]+E>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}var DV=RV;Fo.default=DV,Object.defineProperty(Go,"__esModule",{value:!0}),Go.default=void 0;var OV=xI(Mr),PV=xI(Fo);function xI(r){return r&&r.__esModule?r:{default:r}}var wV=(0,OV.default)("v5",80,PV.default);Go.default=wV;var xo={};Object.defineProperty(xo,"__esModule",{value:!0}),xo.default=void 0;var CV="00000000-0000-0000-0000-000000000000";xo.default=CV;var ko={};Object.defineProperty(ko,"__esModule",{value:!0}),ko.default=void 0;var VV=BV(An);function BV(r){return r&&r.__esModule?r:{default:r}}function _V(r){if(!(0,VV.default)(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}var MV=_V;ko.default=MV,function(r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(r,"v1",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(r,"v3",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(r,"v4",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(r,"v5",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(r,"validate",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(r,"version",{enumerable:!0,get:function(){return l.default}});var a=y(Bo),e=y(Lo),t=y($o),i=y(Go),s=y(xo),l=y(ko),o=y(An),d=y(_r),u=y(ea);function y(c){return c&&c.__esModule?c:{default:c}}}(MI);function mu(r,a){if(!r||!a||!r.length||!a.length)throw new Error("Bad alphabet");this.srcAlphabet=r,this.dstAlphabet=a}mu.prototype.convert=function(r){var a,e,t,i={},s=this.srcAlphabet.length,l=this.dstAlphabet.length,o=r.length,d=typeof r=="string"?"":[];if(!this.isValid(r))throw new Error('Number "'+r+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return r;for(a=0;a<o;a++)i[a]=this.srcAlphabet.indexOf(r[a]);do{for(e=0,t=0,a=0;a<o;a++)e=e*s+i[a],e>=l?(i[t++]=parseInt(e/l,10),e=e%l):t>0&&(i[t++]=0);o=t,d=this.dstAlphabet.slice(e,e+1).concat(d)}while(t!==0);return d},mu.prototype.isValid=function(r){for(var a=0;a<r.length;++a)if(this.srcAlphabet.indexOf(r[a])===-1)return!1;return!0};var NV=mu,LV=NV;function ta(r,a){var e=new LV(r,a);return function(t){return e.convert(t)}}ta.BIN="01",ta.OCT="01234567",ta.DEC="0123456789",ta.HEX="0123456789abcdef";var jV=ta;const{v4:vu,validate:UV}=MI,Zo=jV,Tu={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},$V={consistentLength:!0};let Eu;const kI=(r,a,e)=>{const t=a(r.toLowerCase().replace(/-/g,""));return!e||!e.consistentLength?t:t.padStart(e.shortIdLength,e.paddingChar)},ZI=(r,a)=>{const t=a(r).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[t[1],t[2],t[3],t[4],t[5]].join("-")},gV=r=>Math.ceil(Math.log(2**128)/Math.log(r));var GV=(()=>{const r=(a,e)=>{const t=a||Tu.flickrBase58,i={...$V,...e};if([...new Set(Array.from(t))].length!==t.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const s=gV(t.length),l={shortIdLength:s,consistentLength:i.consistentLength,paddingChar:t[0]},o=Zo(Zo.HEX,t),d=Zo(t,Zo.HEX),u=()=>kI(vu(),o,l),c={alphabet:t,fromUUID:E=>kI(E,o,l),maxLength:s,generate:u,new:u,toUUID:E=>ZI(E,d),uuid:vu,validate:(E,I=!1)=>{if(!E||typeof E!="string")return!1;const O=i.consistentLength?E.length===s:E.length<=s,P=E.split("").every(V=>t.includes(V));return I===!1?O&&P:O&&P&&UV(ZI(E,d))}};return Object.freeze(c),c};return r.constants=Tu,r.uuid=vu,r.generate=()=>(Eu||(Eu=r(Tu.flickrBase58).generate),Eu()),r})();const qo=_I(GV);function qI(){return qo().uuid()}function JI(r){return r.rangeStart+Math.random()}function SI(r){const a=r.rangeEnd;return Math.random()*a}function WI(r){const a=r.rangeStart,e=r.rangeEnd;return Math.random()*(e-a)+a}function zI(r){return r.rangeStart&&r.rangeEnd?WI(r):r.rangeStart?JI(r):r.rangeEnd?SI(r):Math.random()}function YI(r){const a=r.rangeStart;return Math.random().toString(36).substring(a)}function HI(r){const a=r.rangeEnd;return Math.random().toString(36).substring(0,a)}function KI(r){const a=r.rangeStart,e=r.rangeEnd;return Math.random().toString(36).substring(a,e)}function XI(r){return r.rangeStart&&r.rangeEnd?KI(r):r.rangeStart?YI(r):r.rangeEnd?HI(r):Math.random().toString(36)}function QI(r){return Math.random()>=.5}function FV(r){if(!r||!r.autogeneration)return null;switch(r.autogeneration.type){case vt.CurrentDateAndTime:if(r.name===L.Date)return new Date;case vt.Random:{if(r.name===L.Date)return BI(r.autogeneration);if(r.name===L.Number)return zI(r.autogeneration);if(r.name===L.String)return XI(r.autogeneration);if(r.name===L.Boolean)return QI(r.autogeneration)}case vt.Unique:if(r.name===L.UUID)return qI();default:throw new Error(`Generating a ${r.autogeneration.type} value for a ${r.name} is not supported`)}}const fe="e7eb5382-3d99-44fd-972a-b8b1e819f6be",eA="global-user-variable-id",Iu="last-executed-timestamp-variable-id",xV={id:"alternative-relational-database-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",version:"1",entityType:n.ValueDescriptor},kV={id:"alternative-relational-database-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",version:"1",entityType:n.Property},ZV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"alternative-relational-database-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:kV},Jo={id:"alternative-relational-database-entity-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-id",version:"1",entityType:n.DefinitionEntity},qV={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-identifier-property-id",name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:co,static:!0,index:0,defaultValue:{id:"alternative-relational-database-entity-identifier-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:null,parent:xV,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:ZV,description:"The name of the main database inside of the server instance where the data will be stored.",parent:Jo};n.GenericReference,n.ValueDescriptor;const JV={id:"alternative-relational-database-entity-username-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-username-property-id",version:"1",entityType:n.Property},SV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"alternative-relational-database-entity-username-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:JV},WV={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-username-property-id",name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:fo,static:!0,index:1,defaultValue:null,dataType:SV,description:"The username that will be used to connect to the database.",parent:Jo};n.GenericReference,n.ValueDescriptor;const zV={id:"alternative-relational-database-entity-password-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-password-property-id",version:"1",entityType:n.Property},YV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"alternative-relational-database-entity-password-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:zV},HV={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-password-property-id",name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:yo,static:!0,index:2,defaultValue:null,dataType:YV,description:"The password that will be used to connect to the database.",parent:Jo},KV={id:"alternative-relational-database-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",version:"1",entityType:n.ValueDescriptor},XV={id:"alternative-relational-database-entity-min-size-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",version:"1",entityType:n.Property},QV={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"alternative-relational-database-entity-min-size-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:XV},eB={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:ho,static:!0,index:3,defaultValue:{id:"alternative-relational-database-entity-min-size-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:6,parent:KV,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:QV,description:"The minimum size of the database in GB.",parent:Jo},tB={id:"alternative-relational-database-entity-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},Au={id:"alternative-relational-database-entity-id",type:n.DefinitionEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Alternative relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[qV,WV,HV,eB],methods:[],abstractMethods:[],extends:[],implements:[Dt],x:0,y:0,parent:tB},iB={id:"animal-prototype-database-property-ref-id",type:n.GenericReference,entityId:"animal-prototype-database-property-id",version:"1",entityType:n.Property},rB={id:"animal-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"animal-prototype-database-property-id",version:"1",entityType:n.Property},nB={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"animal-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Dt,asType:!1,parent:iB},sB={id:"animal-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:"1",entityType:n.DefinitionEntity},aB={constant:!1,hidden:!1,required:!0,id:"animal-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Yn,static:!0,index:0,defaultValue:{id:"animal-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:Au,autogeneration:null,parent:rB},dataType:nB,description:"The database that the entity belongs to.",parent:sB},oB={type:n.GenericReference,id:"291e4d4f-01d8-40a0-90dc-5f1ac6636e9b",version:"1",entityType:n.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},lB={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"c1930577-9e79-48a6-8905-be24611015c1",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:oB},dB={type:n.GenericReference,id:"animal-name-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970"},uB={type:n.GenericReference,id:"animal-name-default-value-parent-ref-id",version:"1",entityType:n.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},pB={type:n.LiteralValue,id:"animal-name-default-value-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Animal",name:L.String,valueAsTypeSingle:null,valueAsTypeList:null,autogeneration:null,parent:uB},cB={constant:!1,hidden:!1,required:!0,type:n.Property,id:"5cb617b0-92be-4dbe-a007-49093368d94f",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the animal",defaultValue:pB,implements:Hn,static:!1,private:!1,index:0,dataType:lB,abstract:!1,parent:dB},fB={type:n.GenericReference,id:"abc565de-4c83-4936-bc48-4013bef213b8",version:"1",entityType:n.Project,entityId:fe},yB={type:n.DefinitionEntity,id:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Animal",description:"A living creature that is not human",abstract:!1,static:!1,abstractMethods:[],properties:[aB,cB],methods:[],extends:[],implements:[_t],x:0,y:0,parent:fB},ia="base-table-entity",tA="base-table-entity-identifier-property-id";n.GenericReference,n.Property,n.GenericReference,n.Property;const hB={id:"base-table-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:tA,version:"1",entityType:n.Property},mB={id:"base-table-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-identifier-property-id",version:"1",entityType:n.Property},vB={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"base-table-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:sr,asType:!1,parent:mB},TB={id:"base-table-entity-identifier-property-parent-ref-id",type:n.GenericReference,entityId:ia,version:"1",entityType:n.DefinitionEntity};n.Property,n.LiteralValue,L.UUID,vt.Unique,n.GenericReference,n.Property;const EB={id:"base-table-entity-deleted-at-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-deleted-at-property-id",version:"1",entityType:n.Property},IB={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"base-table-entity-deleted-at-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fi,asType:!1,parent:EB},AB={id:"base-table-entity-deleted-at-property-parent-ref-id",type:n.GenericReference,entityId:ia,version:"1",entityType:n.DefinitionEntity},bB={constant:!1,hidden:!0,required:!0,id:"base-table-entity-deleted-at-property-id",name:"Deleted at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:IB,description:"The date and time when the entity was deleted.",parent:AB};n.GenericReference,n.Property;const RB={id:"base-table-entity-created-at-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-created-at-property-id",version:"1",entityType:n.Property},DB={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"base-table-entity-created-at-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fi,asType:!1,parent:RB},OB={id:"base-table-entity-created-at-property-parent-ref-id",type:n.GenericReference,entityId:ia,version:"1",entityType:n.DefinitionEntity},PB={constant:!1,hidden:!0,required:!0,id:"base-table-entity-created-at-property-id",name:"Created at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:DB,description:"The date and time when the entity was created.",parent:OB};n.GenericReference,n.Property;const wB={id:"base-table-entity-updated-at-property-ref-id",type:n.GenericReference,entityId:"base-table-entity-updated-at-property-id",version:"1",entityType:n.Property},CB={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"base-table-entity-updated-at-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Fi,asType:!1,parent:wB},VB={id:"base-table-entity-updated-at-property-parent-ref-id",type:n.GenericReference,entityId:ia,version:"1",entityType:n.DefinitionEntity},BB={constant:!1,hidden:!0,required:!0,id:"base-table-entity-updated-at-property-id",name:"Updated at",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,implements:null,abstract:!0,static:!1,index:0,defaultValue:null,dataType:CB,description:"The date and time when the entity was last updated.",parent:VB},_B={id:"base-table-entity-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},mi={id:ia,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"An entity that is permanently stored in the database and can be accessed at any point.",name:"Base database table format",type:n.DefinitionEntity,abstract:!0,static:!1,abstractMethods:[],implements:[],properties:[bB,PB,BB],methods:[],extends:[],x:0,y:0,parent:_B},MB={id:"default-relational-database-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",version:"1",entityType:n.Property},NB={id:"default-relational-database-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",version:"1",entityType:n.Property},LB={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"default-relational-database-entity-identifier-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:NB},ss={id:"default-relational-database-entity-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-id",version:"1",entityType:n.DefinitionEntity},jB={constant:!1,id:"default-relational-database-entity-identifier-property-id",hidden:!1,required:!0,name:"Identifier name",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:co,static:!0,index:0,defaultValue:{id:"default-relational-database-entity-identifier-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"main",parent:MB,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:LB,description:"The name of the main database inside of the server instance where the data will be stored.",parent:ss};n.GenericReference,n.Property;const UB={id:"default-relational-database-entity-username-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-username-property-id",version:"1",entityType:n.Property},$B={id:"default-relational-database-entity-username-property-default-value-parent-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-username-property-id",version:"1",entityType:n.Property},gB={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"default-relational-database-entity-username-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:UB},GB={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-username-property-id",name:"Username",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:fo,defaultValue:{id:"default-relational-database-entity-username-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"root",parent:$B,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},static:!0,index:1,dataType:gB,description:"The username that will be used to connect to the database.",parent:ss};n.GenericReference,n.Property;const FB={id:"default-relational-database-entity-password-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-password-property-id",version:"1",entityType:n.Property},xB={id:"default-relational-database-entity-password-property-default-value-parent-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-password-property-id",version:"1",entityType:n.Property},kB={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"default-relational-database-entity-password-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:FB},ZB={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-password-property-id",name:"Password",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:yo,static:!0,index:2,defaultValue:{id:"default-relational-database-entity-password-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"password",parent:xB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:kB,description:"The password that will be used to connect to the database.",parent:ss},qB={id:"default-relational-database-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",version:"1",entityType:n.Property},JB={id:"default-relational-database-entity-min-size-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",version:"1",entityType:n.Property},SB={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"default-relational-database-entity-min-size-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:JB},WB={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:ho,static:!0,index:3,defaultValue:{id:"default-relational-database-entity-min-size-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:6,parent:qB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:SB,description:"The minimum size of the database in GB.",parent:ss},zB={id:"default-relational-database-entity-default-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-default-property-id",version:"1",entityType:n.Property},YB={id:"default-relational-database-entity-default-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-default-property-id",version:"1",entityType:n.Property},HB={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"default-relational-database-entity-default-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:YB},KB={constant:!0,id:"default-relational-database-entity-default-property-id",hidden:!0,required:!0,name:"Default",description:"Whether this database is automatically picked by other entities as the default database.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Xd,static:!0,index:4,dataType:HB,defaultValue:{id:"default-relational-database-entity-default-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,value:!0,parent:zB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},parent:ss},XB={id:"default-relational-database-entity-autoscaling-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",version:"1",entityType:n.Property},QB={id:"default-relational-database-entity-autoscaling-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",version:"1",entityType:n.Property},e_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"default-relational-database-entity-autoscaling-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ve,asType:!1,parent:QB},t_={constant:!1,id:"default-relational-database-entity-autoscaling-property-id",hidden:!1,required:!0,name:"Auto-scaling",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Qd,static:!0,index:5,defaultValue:{id:"default-relational-database-entity-autoscaling-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Boolean,value:!0,parent:XB,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:e_,description:"If true, this database will automatically scale up or down in memory size, based on the usage.s",parent:ss},i_={id:"default-relational-database-entity-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},bu={id:"default-relational-database-entity-id",type:n.DefinitionEntity,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[KB,t_,jB,GB,ZB,WB],methods:[],abstractMethods:[],extends:[],implements:[Dt],x:0,y:0,parent:i_},r_={id:"user-prototype-database-property-data-type-ref-id",type:n.GenericReference,entityId:"user-prototype-database-property-id",version:"1",entityType:n.Property},n_={id:"user-prototype-database-property-ref-id",type:n.GenericReference,entityId:"user-prototype-database-property-id",version:"1",entityType:n.Property},s_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"user-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Dt,asType:!1,parent:n_},a_={id:"user-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",entityType:n.DefinitionEntity},o_={constant:!1,hidden:!1,required:!0,id:"user-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Yn,static:!0,index:0,defaultValue:{id:"user-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:bu,autogeneration:null,parent:r_},dataType:s_,description:"The database that the entity belongs to.",parent:a_},l_={type:n.GenericReference,id:"user-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},d_={id:"user-prototype-primary-key-property-data-type-ref-id",type:n.GenericReference,entityId:"user-prototype-primary-key-property-id",version:"1",entityType:n.Property},u_={id:"user-prototype-primary-key-property-ref-id",type:n.GenericReference,entityId:"user-prototype-primary-key-property-id",version:"1",entityType:n.Property},p_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"user-prototype-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:sr,asType:!1,parent:u_},c_={id:"user-prototype-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",entityType:n.DefinitionEntity},f_={constant:!1,hidden:!1,required:!0,id:"user-prototype-primary-key-property-id",name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Hn,static:!1,index:1,defaultValue:{id:"user-prototype-primary-key-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.UUID,value:null,parent:d_,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:p_,description:"A property with a unique value for the entity, that can be used to identify the entity among other entities of the same type.",parent:c_},Ru={type:n.DefinitionEntity,id:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"User",description:"A user of the application",implements:[_t,mi],abstract:!1,static:!1,abstractMethods:[],extends:[],properties:[o_,f_],methods:[],x:0,y:0,parent:l_},y_={type:n.GenericReference,id:"person-date-of-birth-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:"person-date-of-birth-property-id"},h_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"person-date-of-birth-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fi,isList:!1,asType:!1,parent:y_},m_={type:n.GenericReference,id:"person-date-of-birth-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},v_={constant:!1,hidden:!1,required:!0,type:n.Property,id:"person-date-of-birth-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Date of birth",description:"The date of birth of the person",implements:null,private:!1,static:!1,index:0,defaultValue:null,dataType:h_,abstract:!1,parent:m_},T_={type:n.GenericReference,id:"a2867827-2f8e-4c25-b18b-d91857d7f24e",version:"1",entityType:n.Property,entityId:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7"},E_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"1d49f41b-17b9-4f48-87aa-3ce43498e5a9",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:T_},I_={type:n.GenericReference,id:"01cbe760-40a9-4f49-8e3d-194d2f57cb1e",version:"1",entityType:n.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},A_={constant:!1,hidden:!1,required:!0,type:n.Property,id:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the person",implements:null,private:!1,static:!1,index:0,defaultValue:null,dataType:E_,abstract:!1,parent:I_},b_={type:n.GenericReference,id:"3542b22a-3a2f-41c6-876e-24c885572498",version:"1",entityType:n.Project,entityId:fe},Yt={type:n.DefinitionEntity,id:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Person",description:"A entity to store more information about a person than the user entity does, to split the responsibilities and keep it the logic clean.",properties:[A_,v_],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[Ru],x:0,y:0,parent:b_},R_={type:n.GenericReference,id:"b59c80b7-b2e9-41e9-abcd-7c5652835efc",version:"1",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},D_={type:n.GenericReference,id:"1190b5a2-f25e-46db-884d-8a3dd1a44d94",version:"1",entityType:n.ReturnStatement,entityId:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e"},O_={type:n.GenericReference,id:"36c63126-7814-496f-a6cc-48662c2aabae",version:"1",entityType:n.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},P_={type:n.GenericReference,id:"c567e55d-ec12-4e4e-958e-f07522892b4b",version:"1",entityType:n.ReturnDeclaration,entityId:"9e070523-7e07-4100-8637-960a187f5f14"},w_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"3973c5a1-f0d8-49a0-a9a9-a0009bf3f0d8",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,isList:!1,asType:!1,parent:P_},Du={constant:!0,isError:!1,id:"9e070523-7e07-4100-8637-960a187f5f14",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Output Account Owner",description:null,defaultValue:null,dataType:w_,implements:null,readsValue:O_,required:!0,index:0,parent:D_},C_={type:n.GenericReference,id:"567d923c-20da-4c1e-956d-962ea30c6d0b",version:"1",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},V_={type:n.GenericReference,id:"da85e620-59f3-42ab-88c8-b38d33c2c833",version:"1",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},B_={type:n.ReturnStatement,id:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Du],calledByError:[],calledByEntry:[C_],calledBySuccess:[],throws:null,x:0,y:0,parent:V_},__={type:n.GenericReference,id:"1c806bb7-4c25-4bad-963b-93dfbb7c8304",version:"1",entityType:n.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},M_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"d90fcc18-642b-433c-8fcb-4094b9031cd5",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,isList:!1,asType:!1,parent:__},iA={constant:!0,id:"500dee3a-3435-4453-9699-0d053f646523",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New Account Owner",description:null,defaultValue:null,dataType:M_,implements:null,required:!0,writesValues:[Du],index:0,parent:R_},N_={type:n.GenericReference,id:"83dceb60-f3c4-4085-824c-85f2003bfd27",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},rA={type:n.FunctionDeclaration,id:"36f29f96-c001-4b9a-b49c-83eff406a060",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Change owner of bank account",description:null,implements:null,inputs:[iA],calls:[B_],index:0,collapsed:!1,private:!1,x:0,y:0,parent:N_},L_={type:n.GenericReference,id:"adbaf302-ffa9-49b6-a3c6-83f9a75068e3",version:"1",entityType:n.VariableDeclaration,entityId:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b"},j_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"79ee04aa-1ba4-4ae9-a406-ed45e5b03f7f",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,asType:!1,isList:!1,parent:L_},U_={type:n.GenericReference,id:"55e212d1-f0ec-4bb6-acbe-60f741367daf",version:"1",entityType:n.OutputMap,entityId:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4"},$_={type:n.GenericReference,id:"944e1171-3d9b-4559-9386-1d4974b15962",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},g_={constant:!0,required:!0,id:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b",type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Output Account Owner",description:null,defaultValue:null,dataType:j_,readsValue:U_,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:$_},G_={type:n.GenericReference,id:"b89ebc83-52cf-4447-a5ae-62241f713079",version:"1",entityType:n.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},F_={id:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Du,defaultValue:null,writesValues:[g_],index:0,parent:G_},x_={type:n.GenericReference,id:"c1b9e125-1aad-48b7-9687-95c57a6bc10d",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},k_={type:n.GenericReference,id:"d2deaa02-e164-4425-905c-6dee47eb4eac",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},Z_={type:n.GenericReference,id:"1109a655-ac62-4110-a933-42a72106f4f0",version:"1",entityType:n.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},q_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"7d9a1307-512e-42ec-9797-2f7229796b97",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,asType:!1,isList:!1,parent:Z_},J_={type:n.GenericReference,id:"bb61ebf7-57b3-4d14-905d-82ec907205b5",version:"1",entityType:n.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},S_={type:n.GenericReference,id:"6b8c7bf2-9fc8-4ea4-9ec0-f41679d513b1",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},W_={type:n.GenericReference,id:"6163d1a1-7a94-49b1-95bb-aecd8d6d335c",version:"1",entityType:n.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},z_={type:n.GenericReference,id:"1f900f62-4bd2-4246-94aa-b8f5aad384fd",version:"1",entityType:n.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},nA={id:"be8538be-e6f9-4b94-9314-a546003ebaa0",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:iA,name:null,description:null,readsValue:z_,defaultValue:null,index:0,parent:W_},Y_={constant:!0,required:!0,type:n.VariableDeclaration,id:"8bea6986-8da2-487b-905d-2fb962db6728",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Changed Account Owner",description:null,defaultValue:null,dataType:q_,readsValue:J_,writesValues:[nA],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:S_},H_={type:n.FunctionCall,id:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:rA,inputs:[nA],outputs:[F_],process:null,successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[x_],calledBySuccess:[],parent:k_,error:null,x:0,y:0},K_={type:n.GenericReference,id:"2d47aba1-a918-46a7-8db7-78809928654a",version:"1",entityType:n.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},X_={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"5583766c-e9a5-484c-8f43-f4b0a6a1876c",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,asType:!1,isList:!1,parent:K_},Q_={type:n.GenericReference,id:"3e2a81e4-55b2-49f5-94eb-39135e95c3d7",version:"1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},eM={constant:!0,id:"38f6b236-98ac-47b0-ab9c-d2f9610137b9",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"New Company Owner",defaultValue:null,dataType:X_,implements:null,required:!0,index:0,writesValues:[Y_],parent:Q_},tM={type:n.GenericReference,id:"30291b01-1b94-4d03-b434-dec122c2bc7d",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},iM={type:n.FunctionDeclaration,id:"15ee556d-681f-47de-a31f-16d4ba73cc4e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"Change Account Owner",inputs:[eM],collapsed:!0,calls:[H_],private:!1,index:0,implements:null,x:0,y:0,parent:tM},rM={type:n.GenericReference,id:"72c7ac0a-886e-4e10-b7ed-2f5a819a0233",version:"1",entityType:n.Property,entityId:"b8f4656a-2b77-43ab-af51-7c32ddede044"},nM={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"c09dd282-73f6-4077-a467-b66db20b9fc6",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:rM},sM={type:n.GenericReference,id:"8a950024-512c-4580-81db-a705410aeb99",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},aM={constant:!1,hidden:!1,required:!0,type:n.Property,id:"b8f4656a-2b77-43ab-af51-7c32ddede044",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Account number",description:null,private:!0,defaultValue:null,implements:Hn,static:!1,index:0,dataType:nM,abstract:!1,parent:sM},oM={type:n.GenericReference,id:"b6704b6c-c3bd-49d0-8ebc-82d03e726cbb",version:"1",entityType:n.Property,entityId:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea"},lM={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"c03e0b0a-88ab-401a-8833-4806738bdc37",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,isList:!1,asType:!1,parent:oM},dM={type:n.GenericReference,id:"1ef999a7-e9ed-406a-866e-e58277fc985b",version:"1",entityType:n.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},uM={constant:!1,hidden:!1,required:!0,type:n.Property,id:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"Account Owner",index:1,defaultValue:null,dataType:lM,implements:null,static:!1,private:!0,abstract:!1,parent:dM},pM={type:n.GenericReference,id:"d41d7f41-98b8-4f67-be92-c349fdda5156",version:"1",entityType:n.Project,entityId:fe},as={type:n.DefinitionEntity,id:"506946aa-30da-48e6-918f-ffd9eac58813",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bank Account",description:null,abstract:!1,static:!1,abstractMethods:[],properties:[aM,uM],methods:[rA,iM],extends:[],implements:[_t,mi],x:0,y:0,parent:pM},ra="bitcoin-api-response-id",sA="time-property-id",aA="disclaimer-property-id",oA="chart-name-property-id",lA="bpi-property-id",So="bpi-entity-id",dA="usd-property-id",uA="gbp-property-id",pA="eur-property-id",os="currency-entity-id",cA="currency-code-property-id",fA="currency-symbol-property-id",yA="currency-rate-property-id",hA="currency-description-property-id",mA="currency-rate-number-property-id",cM={type:n.GenericReference,id:"code-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:cA},fM={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"code-property-data-type-id",type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:nr,isList:!1,asType:!1,options:["USD","GBP","EUR"],parent:cM},yM={type:n.GenericReference,id:"code-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:os},hM={constant:!1,hidden:!1,required:!0,type:n.Property,id:cA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"code",description:null,defaultValue:null,dataType:fM,index:0,implements:null,static:!1,private:!1,abstract:!1,parent:yM},mM={type:n.GenericReference,id:"symbol-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:fA},vM={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"symbol-property-data-type-id",type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:nr,isList:!1,asType:!1,options:["$","£","€"],parent:mM},TM={type:n.GenericReference,id:"symbol-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:os},EM={constant:!1,hidden:!1,required:!0,type:n.Property,id:fA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"symbol",description:null,index:0,defaultValue:null,dataType:vM,implements:null,static:!1,private:!1,abstract:!1,parent:TM},IM={type:n.GenericReference,id:"rate-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:yA},AM={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"rate-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:IM},bM={type:n.GenericReference,id:"rate-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:os},RM={constant:!1,hidden:!1,required:!0,type:n.Property,id:yA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"rate",description:null,index:0,defaultValue:null,dataType:AM,implements:null,static:!1,private:!1,abstract:!1,parent:bM},DM={type:n.GenericReference,id:"description-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:hA},OM={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"description-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:DM},PM={type:n.GenericReference,id:"description-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:os},wM={constant:!1,hidden:!1,required:!0,type:n.Property,id:hA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"description",description:null,defaultValue:null,dataType:OM,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:PM},CM={type:n.GenericReference,id:"rate-number-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:mA},VM={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"rate-number-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:CM},BM={type:n.GenericReference,id:"rate-number-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:os},_M={constant:!1,hidden:!1,required:!0,type:n.Property,id:mA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"rate_float",description:null,defaultValue:null,dataType:VM,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:BM},MM={type:n.GenericReference,id:"currency-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},Wo={type:n.DefinitionEntity,id:os,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Currency",description:"This entity describes a currency in the Bitcoin Price Index.",properties:[hM,EM,RM,wM,_M],static:!1,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:MM},NM={type:n.GenericReference,id:"usd-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:dA},LM={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"usd-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wo,isList:!1,asType:!1,parent:NM},jM={type:n.GenericReference,id:"usd-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:So},UM={constant:!1,hidden:!1,required:!0,id:dA,type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"USD",description:null,index:0,dataType:LM,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:jM},$M={type:n.GenericReference,id:"gbp-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:uA},gM={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"gbp-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wo,isList:!1,asType:!1,parent:$M},GM={type:n.GenericReference,id:"gbp-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:So},FM={constant:!1,hidden:!1,required:!0,id:uA,type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"GBP",description:null,index:0,dataType:gM,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:GM},xM={type:n.GenericReference,id:"eur-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:pA},kM={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"eur-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Wo,isList:!1,asType:!1,parent:xM},ZM={type:n.GenericReference,id:"eur-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:So},qM={constant:!1,hidden:!1,required:!0,id:pA,type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"EUR",description:null,implements:null,static:!1,index:0,defaultValue:null,dataType:kM,private:!1,abstract:!1,parent:ZM},JM={type:n.GenericReference,id:"bpi-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},vA={type:n.DefinitionEntity,id:So,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"BPI",description:"The Bitcoin Price Index",properties:[UM,FM,qM],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:JM},SM={type:n.GenericReference,id:"time-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:sA},WM={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"time-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Zn,isList:!1,asType:!1,parent:SM},zM={type:n.GenericReference,id:"time-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},YM={constant:!1,hidden:!1,required:!0,type:n.Property,id:sA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"time",description:null,index:0,defaultValue:null,dataType:WM,implements:null,static:!1,private:!1,abstract:!1,parent:zM},HM={type:n.GenericReference,id:"disclaimer-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:aA},KM={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"disclaimer-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:HM},XM={type:n.GenericReference,id:"disclaimer-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},QM={constant:!1,hidden:!1,required:!0,type:n.Property,id:aA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"disclaimer",description:null,index:0,defaultValue:null,dataType:KM,implements:null,static:!1,private:!1,abstract:!1,parent:XM},eN={type:n.GenericReference,id:"chart-name-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:oA},tN={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"chart-name-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:eN},iN={type:n.GenericReference,id:"chart-name-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},rN={constant:!1,hidden:!1,required:!0,type:n.Property,id:oA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"chartName",description:null,index:0,defaultValue:null,dataType:tN,implements:null,static:!1,private:!1,abstract:!1,parent:iN},nN={type:n.GenericReference,id:"bpi-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:lA},sN={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"bpi-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:vA,isList:!1,asType:!1,parent:nN},aN={type:n.GenericReference,id:"bpi-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:ra},oN={constant:!1,hidden:!1,required:!0,type:n.Property,id:lA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"bpi",description:null,implements:null,index:0,defaultValue:null,dataType:sN,static:!1,private:!1,abstract:!1,parent:aN},lN={type:n.GenericReference,id:"bitcoin-api-response-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},TA={type:n.DefinitionEntity,id:ra,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bitcoin API Response type",description:"The type of the data structure response from the Bitcoin API call",properties:[YM,QM,rN,oN],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:lN},dN={type:n.GenericReference,id:"eefa0147-f873-484b-b4f3-9e6493aab183",version:"1",entityType:n.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},uN={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"b9f35112-dcb2-4b7c-8fb9-f196b3fa37f9",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,isList:!1,asType:!1,parent:dN},pN={type:n.GenericReference,id:"128770d6-5e3a-4aff-bca0-ad1f32ebefa8",version:"1",entityType:n.ReturnStatement,entityId:"e4e05975-c277-471a-b869-f0aed316045c"},cN={type:n.GenericReference,id:"0be84bf9-6421-42b9-980f-6a03f30cb809",version:"1",entityType:n.ReturnDeclaration,entityId:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},fN={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"43daa02a-237b-4b7c-a6e9-2b8c167f6e22",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,isList:!1,asType:!1,parent:cN},yN={type:n.GenericReference,id:"ad380383-4a47-43da-968e-75a2d603b230",version:"1",entityType:n.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},EA={constant:!0,isError:!1,id:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New Company Owner",description:"The new owner of the company",implements:null,defaultValue:null,dataType:fN,readsValue:yN,required:!0,index:0,parent:pN},hN={type:n.GenericReference,id:"4f24dc27-59a1-49bf-abcc-7d72b00926e4",version:"1",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},mN={constant:!0,id:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New Company Owner",description:null,implements:null,defaultValue:null,dataType:uN,writesValues:[EA],required:!0,index:0,parent:hN},vN={type:n.GenericReference,id:"5c9a02f0-d2cf-4efc-828e-467f33a74dd3",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},TN={type:n.GenericReference,id:"2ff8f3da-e0c5-4f0f-b688-2c051c588786",version:"1",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},EN={type:n.GenericReference,id:"195ae28c-159b-42de-80b1-2ebb8be3619f",version:"1",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},IN={type:n.ReturnStatement,id:"e4e05975-c277-471a-b869-f0aed316045c",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[EA],calledByError:[],calledByEntry:[TN],calledBySuccess:[],throws:null,x:0,y:0,parent:EN},AN={type:n.FunctionDeclaration,id:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Change owner of company",description:"Change the owner of the company to a new person",inputs:[mN],calls:[IN],index:0,collapsed:!1,implements:null,private:!1,x:0,y:0,parent:vN},bN={type:n.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},RN={type:n.GenericReference,id:"29c4e3e0-1b66-4075-b559-45b27c5cf356",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},DN={type:n.GenericReference,id:"b1289358-b185-455d-8f58-7791b15cd52a",version:"1",entityType:n.ReturnStatement,entityId:"9690cd1d-ea35-4e83-823d-0c7310265fee"},ON={type:n.GenericReference,id:"d847bb49-8789-4550-bb2d-e2d551993b28",version:"1",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},PN={type:n.GenericReference,id:"06535500-c37c-4915-8398-1d4e184fa5e7",version:"1",entityType:n.ReturnDeclaration,entityId:"e7a35277-a0c4-46d5-aca2-bddd0c26e931"},wN={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"d358dd91-35f7-4095-b728-3fb3c71dbc05",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:rr,asType:!1,isList:!1,parent:PN},Ou={constant:!0,isError:!1,id:"e7a35277-a0c4-46d5-aca2-bddd0c26e931",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is name registered",description:"Whether the company name is already registered",defaultValue:null,dataType:wN,implements:null,readsValue:ON,required:!0,index:0,parent:DN},CN={type:n.GenericReference,id:"gov-company-registry-return-statement-called-by-success-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},IA={type:n.ReturnStatement,id:"9690cd1d-ea35-4e83-823d-0c7310265fee",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Ou],calledByError:[],calledByEntry:[],calledBySuccess:[bN,CN],throws:null,x:0,y:0,parent:RN},VN={type:n.GenericReference,id:"b3126414-4c9b-495f-901e-59f5073c8d67",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},BN={type:n.GenericReference,id:"35115c48-618b-411b-a290-d746d22fdd10",version:"1",entityType:n.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},AA={id:"a0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:_d,name:null,description:null,readsValue:BN,defaultValue:null,parent:VN,index:2},_N={type:n.GenericReference,id:"14f46eae-04a5-47d1-9c7f-28fb09b84d1d",version:"1",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},MN={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"990bd5d1-07ea-4253-acc1-d03bedd22a38",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:rr,isList:!1,asType:!1,parent:_N},NN={type:n.GenericReference,id:"e4c3542a-8fb0-4b72-8d6e-3fdff812dd67",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},LN={type:n.GenericReference,id:"825f9f60-22a8-4cc6-9055-d7333f8e92f4",version:"1",entityType:n.OutputMap,entityId:"8f30d787-9459-4d8d-98a2-b46fbc2006d5"},jN={type:n.GenericReference,id:"is-company-name-registered-var-called-by-ref",version:"1",entityType:n.Operation,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},bA={constant:!0,required:!0,type:n.VariableDeclaration,id:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is name registered",description:"Whether the company name is registered with the government company registry",defaultValue:null,dataType:MN,readsValue:LN,writesValues:[Ou],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[jN],successCalls:[IA],errorCalls:[],internalCalls:[],x:0,y:0,parent:NN},UN={type:n.GenericReference,id:"1aba021e-48ef-44ac-93d0-eaecac5895da",version:"1",entityType:n.InputMap,entityId:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a"},$N={type:n.GenericReference,id:"dffae7e0-0a5c-4c14-8ed2-8d680b4c4c86",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},gN={type:n.InputMap,id:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:eo,name:null,description:null,readsValue:null,defaultValue:{id:"gov-http-request-url-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://api.publicapis.org/entries",name:L.String,valueAsTypeList:null,valueAsTypeSingle:null,parent:UN,autogeneration:null},index:1,parent:$N},GN={type:n.GenericReference,id:"64ae61f5-ace7-401b-926d-25f852daa60e",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},FN={id:"8f30d787-9459-4d8d-98a2-b46fbc2006d5",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:so,index:2,writesValues:[bA],parent:GN},xN={type:n.GenericReference,id:"62a1a086-caea-4270-9c9f-a1695503e745",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},kN={id:"48cf7654-8f3e-4fcd-abc6-740876c310a0",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Qa,name:null,description:null,readsValue:null,index:0,defaultValue:null,parent:xN},ZN={type:n.GenericReference,id:"b0c9c79f-f525-428d-99e7-087d3237ad62",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},qN={id:"2c1dc406-4b71-4023-87b2-abede3a111d2",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:to,index:3,readsValue:null,defaultValue:null,parent:ZN},JN={type:n.GenericReference,id:"9887d6c9-d75b-4c97-b722-e2e60945ea20",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},SN={id:"3fef94b2-0278-43ae-b0c5-bc7083f0a111",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:io,name:null,description:null,readsValue:null,index:4,defaultValue:null,parent:JN},WN={type:n.GenericReference,id:"561275b6-5056-45d8-bf7d-8abaa4645593",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},zN={id:"3efe20a7-4d63-411e-89ef-63e277f48d66",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:no,index:1,writesValues:[],parent:WN},YN={type:n.GenericReference,id:"3170ccc2-13de-4bfc-802a-a643be41cd42",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},HN={id:"40d34323-d7e6-440a-8016-67c05a3b66dd",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:ro,index:0,writesValues:[],parent:YN},KN={type:n.GenericReference,id:"7432fa82-f574-4c54-a8fa-4cc4376da3d5",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},XN={type:n.GenericReference,id:"8f518502-9eea-462c-8753-8bc3bf3e29a9",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},QN={type:n.GenericReference,id:"123b8f18-79d9-4166-a5f6-78ec4b461680",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},eL={type:n.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},tL={type:n.GenericReference,id:"a375eedf-4811-41aa-a998-4897c69c46b9",version:"1",entityType:n.ReturnDeclaration,entityId:"024a9b77-c1cd-4b67-b3ba-1935046b590d"},iL={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"767cc5ed-20ec-4fd1-89b1-c8d19daa87d1",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:wt,asType:!1,isList:!1,parent:tL},rL={type:n.GenericReference,id:"e64b0c23-129d-4d74-8ab4-eec60e1e5b9b",version:"1",entityType:n.ReturnStatement,entityId:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3"},RA={constant:!0,isError:!0,id:"024a9b77-c1cd-4b67-b3ba-1935046b590d",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Error",description:"The error that occurred during the HTTP request to the government company registry",dataType:iL,defaultValue:null,implements:null,required:!0,readsValue:null,index:0,parent:rL},nL={type:n.ReturnStatement,id:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[],calledByError:[eL],calledByEntry:[],calledBySuccess:[],throws:RA,x:0,y:0,parent:QN},sL={type:n.GenericReference,id:"323814fb-9723-49ef-bbba-f882384f18e4",version:"1",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},aL={id:"2f63f7ba-0ff0-458a-92bc-65d1dd4df8c3",type:n.OutputMap,declaration:Md,defaultValue:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,writesValues:[RA],index:0,parentRelationType:xn.Error,parent:sL},oL={type:n.Operation,id:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ms,inputs:[kN,gN,AA,qN,SN],outputs:[HN,zN,FN],process:null,calledByError:[],calledByEntry:[KN],calledBySuccess:[],successCalls:[IA,bA],errorCalls:[nL],error:aL,x:0,y:0,parent:XN},lL={type:n.GenericReference,id:"597b8aa2-f6f2-4f7d-bbb9-b703d02de96a",version:"1",entityType:n.InputMap,entityId:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a"},dL={type:n.GenericReference,id:"546d99b3-28c4-4186-93a0-ac53c1565e07",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},uL={id:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ha,name:null,description:null,readsValue:null,defaultValue:{id:"base-query-string-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"?name=",name:L.String,parent:lL,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:0,parent:dL},pL={type:n.GenericReference,id:"6a56fb22-82e1-47c9-bf85-41c4e5986c74",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},cL={type:n.GenericReference,id:"191c6a6d-9bcb-441e-bf98-de0da96f5f3a",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},fL={type:n.GenericReference,id:"d8fcbb76-dae2-40cf-847a-02364721b387",version:"1",entityType:n.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},yL={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"6a70c42b-024a-47c6-8a9d-af52be9c9b9a",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:fL},hL={type:n.GenericReference,id:"2282e2c0-ed9e-4c7b-86fc-1a364fa0fdb8",version:"1",entityType:n.OutputMap,entityId:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5"},mL={type:n.GenericReference,id:"assembled-query-string-called-by-ref",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},DA={constant:!0,required:!0,type:n.VariableDeclaration,id:"83e12ebb-c958-4dee-b750-8ab9930f0f4e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Query string",description:"The final, assembled query string that will be used in the HTTP request to the government company registry",defaultValue:null,dataType:yL,readsValue:hL,writesValues:[AA],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[mL],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:cL},vL={id:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[DA],declaration:Bs,index:0,parent:pL},TL={type:n.GenericReference,id:"a1b48e7c-0301-4747-b4dd-b5af79956f7f",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},EL={type:n.GenericReference,id:"487c9235-be95-4c96-b9b5-2714b374a277",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},IL={type:n.GenericReference,id:"f6471f4f-b269-46fa-80ec-885e87a449c2",entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69",version:"1",entityType:n.ArgumentDeclaration},AL={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},OA={id:"08f36e2b-bad2-425c-8129-93560bec8488",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Ka,name:null,description:null,readsValue:IL,defaultValue:null,index:1,parent:AL},bL={type:n.Operation,id:"8f2094c0-e27e-465e-9280-112da0de9019",declaration:_s,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[OA,uL],outputs:[vL],process:null,calledByError:[],calledByEntry:[TL],calledBySuccess:[],successCalls:[DA],errorCalls:[],error:null,x:0,y:0,parent:EL},RL={type:n.GenericReference,id:"c2e0e9b4-aa46-4974-bf8a-886b737b12fb",version:"1",entityType:n.ArgumentDeclaration,entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69"},DL={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"a4279518-3bf3-44b7-a2ac-65142ca37f1c",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:RL},OL={type:n.GenericReference,id:"dc273f24-164b-4943-82f9-589b237141e2",version:"1",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},PA={constant:!0,id:"a4106e8e-ec4f-4633-a636-09ae73135f69",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company Name to check",description:"The name of the company to check in the government registry",dataType:DL,defaultValue:null,implements:null,required:!1,writesValues:[OA],index:0,parent:OL},PL={type:n.GenericReference,id:"2178a10c-1cc0-4dad-97c3-0941be6c9738",version:"1",entityType:n.Project,entityId:fe},wA={type:n.FunctionDeclaration,id:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Check Gov Company Registry availability",description:"Check whether the company name is already registered in the government company registry, or it is available for a new company to use.",inputs:[PA],calls:[bL,oL],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:PL},wL={type:n.GenericReference,id:"4d66c53c-f0f7-496a-9955-1e6c8533c5e0",version:"1",entityType:n.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},CL={type:n.GenericReference,id:"6fa0c8e0-d104-4b4d-a035-d4f6e0c49f09",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},VL={type:n.GenericReference,id:"146408d5-5336-4877-941a-777dd5871926",version:"1",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},BL={type:n.GenericReference,id:"34ae8f8c-548d-4654-984a-6f36affdaf49",version:"1",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},CA={id:"69b1215d-9ebf-4274-b9cb-d4a5888f5122",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:PA,name:null,description:null,readsValue:VL,defaultValue:null,index:0,parent:BL},_L={type:n.GenericReference,id:"07540a94-dda1-40b3-8452-f209bdc87b88",version:"1",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},ML={type:n.GenericReference,id:"eaddf12a-a995-429e-90a0-13bf06efeb28",version:"1",entityType:n.VariableDeclaration,entityId:"faaf3bf6-917d-40d7-aee6-5164f6646c4b"},NL={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"7fdaf943-3ffb-48e0-b766-b86cc24090cf",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:rr,asType:!1,isList:!1,parent:ML},LL={type:n.GenericReference,id:"030fb5c5-af4d-4c85-8cf0-e99edd50d2bd",version:"1",entityType:n.OutputMap,entityId:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},jL={type:n.GenericReference,id:"a8b618e9-c68c-48c1-8bd6-ef47c87d699e",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},UL={type:n.GenericReference,id:"is-company-name-valid-var-called-by-ref",version:"1",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},VA={constant:!0,required:!0,type:n.VariableDeclaration,id:"faaf3bf6-917d-40d7-aee6-5164f6646c4b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is name valid",description:"Whether the company name is valid",defaultValue:null,dataType:NL,readsValue:LL,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[UL],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:jL},$L={id:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ou,defaultValue:null,writesValues:[VA],index:0,parent:_L},gL={type:n.FunctionCall,id:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:wA,inputs:[CA],outputs:[$L],calledByError:[],calledByEntry:[],process:null,calledBySuccess:[wL],successCalls:[VA],errorCalls:[],error:null,x:0,y:0,parent:CL},GL={type:n.GenericReference,id:"9d0b87b4-bfed-4e02-9e84-6831c21feae2",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},FL={type:n.GenericReference,id:"74345f4f-e80d-48be-adff-d12fcea25bec",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},xL={type:n.GenericReference,id:"b39279ea-969a-4efb-a9ec-353bfd13db65",version:"1",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},kL={type:n.GenericReference,id:"549db613-f225-4c5b-9634-7d096717f0ff",version:"1",entityType:n.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},BA={id:"358e242c-7448-442e-ab8b-fd7fa119ea71",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:mn.inputs[0],name:null,description:null,readsValue:xL,defaultValue:null,index:0,parent:kL},ZL={type:n.Condition,id:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:mn,inputs:[BA],calledByError:[],calledByEntry:[GL],calledBySuccess:[],successCalls:[gL],errorCalls:[],x:0,y:0,parent:FL},qL={type:n.GenericReference,id:"43ba1e25-f805-488f-8ae8-c58bb6215b2f",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},JL={type:n.GenericReference,id:"eb091bed-507f-4a1e-93b5-7cd2fccfe002",version:"1",entityType:n.VariableDeclaration,entityId:"9c928995-0dd5-4f97-9962-56b343bc8a45"},SL={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"d64152ea-831f-4426-9506-a39bfa170513",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:as,asType:!1,isList:!1,parent:JL},WL={type:n.GenericReference,id:"7e79c29f-f7bd-441a-a77e-c627604dae94",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},zL={type:n.GenericReference,id:"8995ce5f-d5cf-4341-a8b1-5c046cc78b89",version:"1",entityType:n.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},YL={type:n.GenericReference,id:"new-company-bank-account-var-decl-1-called-by-ref",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},_A={constant:!0,required:!0,type:n.VariableDeclaration,id:"9c928995-0dd5-4f97-9962-56b343bc8a45",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New bank account",description:"The new entity value representing the new bank account of the company",defaultValue:null,dataType:SL,readsValue:zL,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[YL],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:WL},HL={type:n.GenericReference,id:"9a4887bf-d50d-43e4-bdd5-a5262f65f04b",version:"1",entityType:n.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},KL={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"ae148c06-3143-49e9-9614-c3aca3f6fa7b",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:as,asType:!1,isList:!1,parent:HL},XL={constant:!0,id:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New bank account",description:"The new bank account of the company",dataType:KL,implements:null,defaultValue:null,required:!0,index:1,writesValues:[_A],parent:qL},QL={type:n.GenericReference,id:"caec9cf8-3133-48d4-a390-114fa71b2933",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},ej={type:n.GenericReference,id:"cebcbad8-ca87-4c4b-be8a-312293d49892",version:"1",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},tj={type:n.GenericReference,id:"7b8ccfe5-f9cd-4776-a19b-80c689bbe3df",version:"1",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},ij={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"2a6b4703-ac8d-4d25-8abd-48a115577fec",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:tj},rj={constant:!0,id:"c6cf620c-1eee-4919-8578-1a0b6c088551",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New company name",description:null,dataType:ij,implements:null,defaultValue:null,required:!0,index:0,writesValues:[BA,CA],parent:ej},nj={type:n.FunctionDeclaration,id:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company changed event",description:"The event that is triggered when a company is changed",collapsed:!1,inputs:[rj,XL],calls:[ZL,_A],index:1,private:!1,implements:null,x:0,y:0,parent:QL},sj={type:n.GenericReference,id:"employee-manager-property-data-type-entity-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},aj={type:n.GenericReference,id:"employee-manager-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:"employee-manager-property-id"},oj={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"employee-manager-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:sj,isList:!1,asType:!1,parent:aj},lj={type:n.GenericReference,id:"employee-manager-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},dj={constant:!1,required:!0,hidden:!1,type:n.Property,id:"employee-manager-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manager",description:"The manager of the employee",index:0,implements:null,private:!1,static:!1,defaultValue:null,dataType:oj,abstract:!1,parent:lj},uj={type:n.GenericReference,id:"employee-start-date-property-data-type-parent-ref-id",version:"1",entityType:n.Property,entityId:"employee-start-date-property-id"},pj={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"employee-start-date-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fi,isList:!1,asType:!1,parent:uj},cj={type:n.GenericReference,id:"employee-start-date-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},fj={constant:!1,hidden:!1,required:!0,type:n.Property,id:"employee-start-date-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Start date",description:"The date the employee started working in the company",index:0,private:!1,static:!1,defaultValue:null,implements:null,dataType:pj,abstract:!1,parent:cj},yj={type:n.GenericReference,id:"employee-department-property-ref-id",version:"1",entityType:n.Property,entityId:"employee-department-property-id"},hj={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"employee-department-property-data-type-id",type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:nr,isList:!1,asType:!1,options:["Human Resources","Finance","IT","Sales","Marketing","Customer Service","Logistics","Product"],parent:yj},mj={type:n.GenericReference,id:"employee-department-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"employee-entity-id"},vj={constant:!1,hidden:!1,required:!0,type:n.Property,id:"employee-department-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Department",description:"The department the employee works in, from a list of departments in the company",index:0,defaultValue:null,implements:null,static:!1,private:!1,dataType:hj,abstract:!1,parent:mj},Tj={type:n.GenericReference,id:"employee-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},Di={type:n.DefinitionEntity,id:"employee-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee",description:"A entity that represents an employee in the company",properties:[vj,fj,dj],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[Yt],x:0,y:0,parent:Tj},Ej={type:n.GenericReference,id:"dec8fbfe-9124-41fd-9f1c-5b2f07cfd6ba",version:"1",entityType:n.Property,entityId:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd"},Ij={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"bc0b8979-6c43-4d47-a712-6742b89e3c00",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:Ej},Aj={type:n.GenericReference,id:"4f8c0a05-466e-4672-b4c4-6bd408c0be9a",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},bj={constant:!1,hidden:!1,required:!0,type:n.Property,id:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company Name",private:!1,static:!1,description:"The name of the company",index:0,defaultValue:null,implements:null,dataType:Ij,abstract:!1,parent:Aj},Rj={type:n.GenericReference,id:"95173fe0-a6e6-443c-94f3-f7c5cf171fcf",version:"1",entityType:n.Property,entityId:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3"},Dj={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"ddbb6f5c-0cf4-41fb-83b3-b6c47c0e338d",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:as,isList:!1,asType:!1,parent:Rj},Oj={type:n.GenericReference,id:"6a9a0b72-a05d-4169-b3f3-5afb01e8d0df",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},Pu={constant:!1,hidden:!1,required:!0,type:n.Property,id:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bank account",description:"The bank account of the company",index:1,implements:null,static:!1,private:!1,defaultValue:null,dataType:Dj,abstract:!1,parent:Oj},Pj={type:n.GenericReference,id:"62892cc6-d227-4088-90d3-ae7c15ed4af4",version:"1",entityType:n.Property,entityId:"19a31727-1fba-40a5-be25-18e0f149d5cb"},wj={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"1f7629df-dc29-4c89-8369-c6d043e97a9e",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Yt,isList:!1,asType:!1,parent:Pj},Cj={type:n.GenericReference,id:"89384206-fd5a-4f0a-849c-f777473e5773",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},Vj={constant:!1,hidden:!1,required:!0,type:n.Property,id:"19a31727-1fba-40a5-be25-18e0f149d5cb",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company Owner",description:"The person that owns the company",index:2,static:!1,implements:null,defaultValue:null,dataType:wj,private:!0,abstract:!1,parent:Cj},Bj={type:n.GenericReference,id:"4d2ffb6c-5f38-436e-8339-fb9878ac2b5e",version:"1",entityType:n.Property,entityId:"f8310850-a87e-405c-b182-4f1d5fa49240"},_j={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"ad44250b-40c2-48f7-a480-381fa938f562",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,isList:!0,asType:!1,parent:Bj},Mj={type:n.GenericReference,id:"aa5d4eee-6fac-4e72-bf21-9c8750024541",version:"1",entityType:n.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},Nj={constant:!1,hidden:!1,required:!0,type:n.Property,id:"f8310850-a87e-405c-b182-4f1d5fa49240",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employees",description:null,index:3,defaultValue:null,dataType:_j,implements:null,private:!0,static:!1,abstract:!1,parent:Mj},Lj={id:"company-prototype-primary-key-property-data-type-ref-id",type:n.GenericReference,entityId:"company-prototype-primary-key-property-id",version:"1",entityType:n.Property},jj={id:"company-prototype-primary-key-property-ref-id",type:n.GenericReference,entityId:"company-prototype-primary-key-property-id",version:"1",entityType:n.Property},Uj={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"company-prototype-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:sr,asType:!1,parent:jj},$j={id:"company-prototype-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:"1",entityType:n.DefinitionEntity},gj={constant:!1,hidden:!1,required:!0,id:"company-prototype-primary-key-property-id",name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Hn,static:!1,index:4,defaultValue:{id:"company-prototype-primary-key-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.UUID,value:null,parent:Lj,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:Uj,description:"A property with a unique value for the entity, that can be used to identify the entity among other entities of the same type.",parent:$j},Gj={type:n.GenericReference,id:"e3c03b6b-2ea0-4d99-865d-5e6a348672d0",version:"1",entityType:n.Project,entityId:fe},Oi={type:n.DefinitionEntity,id:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",description:null,properties:[bj,Pu,Vj,Nj,gj],static:!1,abstract:!1,abstractMethods:[],methods:[AN,nj],extends:[],implements:[_t,mi],x:0,y:0,parent:Gj},Fj={type:n.GenericReference,id:"ffcad334-138d-4b67-8fb3-5f0e6f5fefbd",version:"1",entityType:n.Project,entityId:fe},wu={type:n.FunctionDeclaration,id:"0f89260c-8c58-4639-8629-d9ea5ab40ba7",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Show popup",description:null,inputs:[],calls:[],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:Fj};n.GenericReference,n.DataType;const xj={id:"cron-job-entity-expression-property-ref-id",type:n.GenericReference,entityId:"cron-job-entity-expression-property-id",version:"1",entityType:n.Property},kj={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"cron-job-entity-expression-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:xj},Zj={id:"cron-job-entity-ref-id",type:n.GenericReference,entityId:"cron-job-entity-id",version:"1",entityType:n.DefinitionEntity},qj={constant:!1,hidden:!1,required:!0,id:"cron-job-entity-expression-property-id",type:n.Property,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Cron expression",description:"The cron expression that defines when the cron job should be triggered",defaultValue:null,dataType:kj,implements:null,static:!0,private:!1,abstract:!1,index:0,parent:Zj},Jj={id:"cron-job-entity-trigger-show-popup-func-call-called-by-ref-one-id",type:n.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",version:"1",entityType:n.FunctionDeclaration},Sj={id:"cron-job-entity-trigger-show-popup-func-call-parent-ref-id",type:n.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",version:"1",entityType:n.FunctionDeclaration},Wj={id:"cron-job-entity-trigger-show-popup-func-call-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.FunctionCall,declaration:wu,inputs:[],outputs:[],process:null,successCalls:[],calledByError:[],calledByEntry:[Jj],calledBySuccess:[],errorCalls:[],error:null,x:0,y:0,parent:Sj},zj={id:"cron-job-entity-trigger-func-decl-parent-ref-id",type:n.GenericReference,entityId:"cron-job-entity-id",version:"1",entityType:n.DefinitionEntity},Yj={id:"cron-job-entity-trigger-func-decl-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.FunctionDeclaration,name:"Scheduled trigger",description:"The function that is called when the cron job is triggered",inputs:[],private:!1,implements:tu,calls:[Wj],collapsed:!1,index:0,x:0,y:0,parent:zj},Hj={id:"cron-job-entity-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},Kj={id:"cron-job-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DefinitionEntity,name:"Run at 12pm on Christmas day",description:"A cron job that runs at 12pm on Christmas day",properties:[qj],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[mo],methods:[Yj],x:0,y:0,parent:Hj},Xj={type:n.GenericReference,id:"52dbd85c-48b1-462a-8205-2437d6fb1cb4",version:"1",entityType:n.Project,entityId:fe},Qj={type:n.DefinitionEntity,id:"6f0908c2-09c6-4a8b-8f43-d2467fe6fb39",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Get bank all bank accounts",description:null,properties:[],static:!0,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[ni],x:0,y:0,parent:Xj},zo="f558fbf8-67de-4545-9804-6ae621e0b2d4",eU={id:"getCompanyByIdEndpointPathParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},tU={id:"getCompanyByIdEndpointPathParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},iU={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointPathParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:ae,asType:!1,parent:tU},rU={id:"getCompanyByIdEndpointReachedEntityEventRef",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},nU={id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},sU={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},aU={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointRequestHeadersVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:wt,asType:!1,parent:sU},oU={constant:!0,id:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:n.ArgumentDeclaration,writesValues:[],name:"Request headers",defaultValue:{id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:nU,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:aU,implements:qd,required:!0,index:0,parent:rU},lU={id:"getCompanyByIdEndpointReachedEntityEventRefTwo",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},dU={constant:!0,id:"getCompanyByIdEndpointPathParamsArgumentDeclaration",type:n.ArgumentDeclaration,description:"A standarized text, without spaces that is added at the end of the domain and routes the request to a specific resource within the target server. For example: /api/users/123, /api/users/123/:name, /api/users/123/:name/:age.",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Path parameters",writesValues:[],defaultValue:{id:"getCompanyByIdEndpointPathParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:eU,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:iU,implements:Jd,required:!0,index:1,parent:lU},uU={id:"getCompanyByIdEndpointReachedEntityEventRefThree",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},pU={id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},cU={id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},fU={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointRequestQueryParamsVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:ae,parent:cU},yU={constant:!0,id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A text with standarized format, without spaces that is added at the end of the URL path, after the ? character. It contains data that might be used to process the request. For example: /api/users?name=John&age=30",type:n.ArgumentDeclaration,writesValues:[],name:"Request query params",defaultValue:{id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:pU,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:fU,implements:Sd,required:!0,index:2,parent:uU},hU={id:"getCompanyByIdEndpointReachedEntityEventRefFour",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},mU={id:"getCompanyByIdEndpointRequestBodyArgumentDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestBodyArgumentDeclaration"},vU={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointRequestBodyVariableDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:wt,parent:mU},TU={constant:!0,id:"getCompanyByIdEndpointRequestBodyArgumentDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the request.",type:n.ArgumentDeclaration,writesValues:[],name:"Request body",defaultValue:null,dataType:vU,implements:Wd,index:3,required:!0,parent:hU},EU={id:"getCompanyByIdEndpointResponseCodeReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseCodeReturnDeclaration"},IU={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:EU},AU={id:"getCompanyByIdEndpointReturnStatementRef",type:n.GenericReference,version:"1",entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},bU={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseCodeReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A standarized number that represents the status of the response. 200 for OK, 404 for not found, 500 for server error, etc.",type:n.ReturnDeclaration,name:"Response code",defaultValue:null,dataType:IU,implements:zd,readsValue:null,required:!0,index:0,parent:AU},RU={id:"getCompanyByIdEndpointResponseHeadersDataTypeRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},DU={id:"getCompanyByIdEndpointResponseHeadersReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},OU={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointResponseHeadersDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:wt,asType:!1,parent:DU},PU={id:"getCompanyByIdEndpointReturnStatementRefTwo",type:n.GenericReference,version:"1",entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},wU={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseHeadersReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:n.ReturnDeclaration,name:"Response headers",defaultValue:{id:"getCompanyByIdEndpointResponseHeadersDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.KeyValue,value:{},parent:RU,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null},dataType:OU,implements:Yd,readsValue:null,required:!0,index:1,parent:PU},CU={id:"getCompanyByIdEndpointResponseBodyReturnDeclarationRef",type:n.GenericReference,version:"1",entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseBodyReturnDeclaration"},VU={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointResponseBodyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:wt,parent:CU},BU={id:"getCompanyByIdEndpointReturnStatementRefThree",type:n.GenericReference,version:"1",entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},_U={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseBodyReturnDeclaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:"The main data payload of the response.",type:n.ReturnDeclaration,name:"Response body",implements:Hd,defaultValue:null,dataType:VU,readsValue:null,required:!0,index:2,parent:BU},MU={id:"getCompanyByIdEndpointReturnStatementCallerRef",type:n.GenericReference,entityId:"getCompanyByIdEndpointReachedEntityEvent",version:"1",entityType:n.FunctionDeclaration},NU={id:"getCompanyByIdEndpointReachedEntityEventRefFive",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"};n.ReturnStatement;const LU={id:"endpointBuiltInBaseEntityRefFour",type:n.GenericReference,version:"1",entityType:n.BuiltInBaseEntity,entityId:zo},jU={id:"getCompanyByIdEndpointReachedEntityEvent",name:"Endpoint reached",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.FunctionDeclaration,inputs:[oU,dU,yU,TU],description:"Fired when the endpoint is reached.",calls:[],collapsed:!1,implements:Kd,index:0,private:!1,x:0,y:0,parent:LU},UU={id:"getCompanyByIdEndpointPathPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointPathProperty"},$U={id:"getCompanyByIdEndpointPathPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointPathProperty"},gU={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointPathPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ae,asType:!1,parent:$U},GU={id:"getCompanyByIdEndpointBaseEntityRefTwo",type:n.GenericReference,version:"1",entityType:n.DefinitionEntity,entityId:zo},FU={constant:!1,id:"getCompanyByIdEndpointPathProperty",hidden:!1,required:!0,name:"Path",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,static:!0,implements:kd,defaultValue:{id:"getCompanyByIdEndpointPathPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"/company/{id}",parent:UU,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:gU,index:1,description:"Path to the endpoint, for example /api/users, or /api/users/{id}, or /api/users/{id}/:name. The path can contain parameters, which are defined by curly braces, and will be passed to the endpoint event as variables with the same name.",parent:GU},xU={id:"getCompanyByIdEndpointMethodPropertyDataTypeRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointMethodProperty"},kU={id:"getCompanyByIdEndpointMethodPropertyRef",type:n.GenericReference,version:"1",entityType:n.Property,entityId:"getCompanyByIdEndpointMethodProperty"},ZU={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"getCompanyByIdEndpointMethodPropertyDataType",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:nr,isList:!0,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:kU},qU={id:"getCompanyByIdEndpointBaseEntityRefThree",type:n.GenericReference,version:"1",entityType:n.DefinitionEntity,entityId:zo},JU={constant:!1,hidden:!1,required:!0,id:"getCompanyByIdEndpointMethodProperty",name:"Method",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,static:!0,implements:Zd,index:0,defaultValue:{id:"getCompanyByIdEndpointMethodPropertyDataTypeDefaultValueId",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"GET",name:L.Enum,parent:xU,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},dataType:ZU,description:null,parent:qU},SU={type:n.GenericReference,id:"6a905153-8aa8-4424-bd7b-6415731a2725",version:"1",entityType:n.Project,entityId:fe},WU={type:n.DefinitionEntity,id:zo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Get given company data by id",description:null,properties:[FU,JU],methods:[jU],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[ni],x:0,y:0,parent:SU},zU={id:"plant-prototype-database-property-ref-id",type:n.GenericReference,entityId:"plant-prototype-database-property-id",version:"1",entityType:n.Property},YU={id:"plant-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"plant-prototype-database-property-id",version:"1",entityType:n.Property},HU={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"plant-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Dt,asType:!1,parent:zU},KU={id:"plant-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"plant-entity-id",version:"1",entityType:n.DefinitionEntity},XU={constant:!1,hidden:!1,required:!0,id:"plant-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Yn,static:!0,index:0,defaultValue:{id:"plant-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:Au,autogeneration:null,parent:YU},dataType:HU,description:"The database that the entity belongs to.",parent:KU},QU={type:n.GenericReference,id:"plant-name-property-ref-id",version:"1",entityType:n.Property,entityId:"plant-name-property-id"},e$={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"plant-name-property-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:QU},t$={type:n.GenericReference,id:"animal-name-property-parent-ref-id",version:"1",entityType:n.DefinitionEntity,entityId:"plant-entity-id"},i$={constant:!1,hidden:!1,required:!0,type:n.Property,id:"plant-name-property-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the plant",defaultValue:null,implements:null,static:!1,private:!1,index:0,dataType:e$,abstract:!1,parent:t$},r$={type:n.GenericReference,id:"plant-prototype-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},n$={type:n.DefinitionEntity,id:"plant-entity-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Plant",description:"A living creature that is not an animal",abstract:!1,static:!1,abstractMethods:[],properties:[XU,i$],methods:[],extends:[],implements:[_t],x:0,y:0,parent:r$},s$={id:"product-prototype-database-property-ref-id",type:n.GenericReference,entityId:"product-prototype-database-property-id",version:"1",entityType:n.Property},a$={id:"product-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"product-prototype-database-property-id",version:"1",entityType:n.Property},o$={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"product-prototype-database-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Dt,asType:!1,parent:s$},l$={id:"product-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",entityType:n.DefinitionEntity},d$={constant:!1,hidden:!1,required:!0,id:"product-prototype-database-property-id",name:"Database",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:Yn,static:!0,index:0,defaultValue:{id:"product-prototype-database-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:bu,autogeneration:null,parent:a$},dataType:o$,description:"The database that the entity belongs to.",parent:l$},u$={type:n.GenericReference,id:"13a4045e-dcb0-4159-8d33-10a646078b5a",version:"1",entityType:n.Property,entityId:"d519c26a-15b8-40d8-ad09-13fa9342e9ba"},p$={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"7449779e-1d4e-409c-81c6-4b611336ed18",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:u$},c$={type:n.GenericReference,id:"0969562f-d836-406f-8b48-dd9d417fbe72",version:"1",entityType:n.DefinitionEntity,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c"},f$={constant:!1,hidden:!1,required:!0,type:n.Property,id:"d519c26a-15b8-40d8-ad09-13fa9342e9ba",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Name",description:"The name of the product",index:0,implements:null,static:!1,private:!1,defaultValue:null,dataType:p$,abstract:!1,parent:c$},y$={type:n.GenericReference,id:"833a5425-7bd0-41dd-9e97-e018acce9592",version:"1",entityType:n.Project,entityId:fe},h$={id:"product-prototype-primary-key-property-data-type-ref-id",type:n.GenericReference,entityId:"product-prototype-primary-key-property-id",version:"1",entityType:n.Property},m$={id:"product-prototype-primary-key-property-ref-id",type:n.GenericReference,entityId:"product-prototype-primary-key-property-id",version:"1",entityType:n.Property},v$={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"product-prototype-primary-key-property-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:sr,asType:!1,parent:m$},T$={id:"product-prototype-primary-key-property-parent-ref-id",type:n.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",entityType:n.DefinitionEntity},E$={constant:!1,hidden:!1,required:!0,id:"product-prototype-primary-key-property-id",name:"Identifier",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:"product-prototype-primary-key-property-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.UUID,value:null,parent:h$,autogeneration:{type:vt.Unique,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null},dataType:v$,description:"A property with a unique value for the entity, that can be used to identify the entity among other entities of the same type.",parent:T$},I$={type:n.DefinitionEntity,id:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Product",description:"A product that can be sold",implements:[_t,mi],extends:[],abstract:!1,static:!1,abstractMethods:[],properties:[E$,d$,f$],methods:[],x:0,y:0,parent:y$},ls="project-loaded-event-id",pr="get-bitcoin-price-http-call-operation-id",MA="get-bitcoin-price-http-call-response-body-id",Yo="validate-bitcoin-price-response-operation-ids",A$={type:n.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:MA},b$={type:n.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Yo},NA={id:"validate-bitcoin-data-to-validate-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:pn.inputs[1],name:null,description:null,readsValue:A$,defaultValue:null,index:0,parent:b$},R$={type:n.GenericReference,id:"validate-bitcoin-type-to-match-input-map-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"validate-bitcoin-type-to-match-input-map-id"},D$={type:n.GenericReference,id:"validate-bitcoin-type-to-match-input-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Yo},O$={id:"validate-bitcoin-type-to-match-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:pn.inputs[0],name:null,description:null,readsValue:null,defaultValue:{id:"validate-bitcoin-type-to-match-input-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.EntityTemplate,valueAsTypeList:null,valueAsTypeSingle:TA,value:null,parent:R$,autogeneration:null},index:0,parent:D$},P$={type:n.GenericReference,id:"validate-bitcoin-validated-entity-output-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Yo},w$={id:"validate-bitcoin-validated-entity-output-map-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:pn.outputs[0],writesValues:[],index:0,parent:P$},C$={type:n.GenericReference,id:"validate-bitcoin-price-response-operation-parent-ref-id",version:"1",entityType:n.GlobalEvent,entityId:ls},V$={type:n.GenericReference,id:"validate-bitcoin-price-response-operation-called-by-ref-id",version:"1",entityType:n.Operation,entityId:pr},B$={type:n.Operation,id:Yo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:pn,inputs:[O$,NA],outputs:[w$],process:null,successCalls:[],errorCalls:[],error:null,x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[V$],parent:C$},_$={type:n.GenericReference,id:"96edb661-3f36-406c-8921-f1679dd796a3",version:"1",entityType:n.FunctionCall,entityId:pr},M$={id:"c93e1393-9b5e-4de2-b8da-7eae647d715a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Qa,name:null,description:null,readsValue:null,defaultValue:null,index:0,parent:_$},N$={type:n.GenericReference,id:"40312b28-71b8-4b01-a654-58b87191939d",version:"1",entityType:n.FunctionCall,entityId:pr},L$={type:n.GenericReference,id:"6ea96c7d-02a7-4971-82ad-2f32a0fec8b4",version:"1",entityType:n.InputMap,entityId:"9f21cbac-5a83-4983-8923-9224ffd3ba9f"},j$={id:"9f21cbac-5a83-4983-8923-9224ffd3ba9f",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:eo,name:null,description:null,readsValue:null,defaultValue:{id:"get-bitcoin-price-http-request-url-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"https://api.coindesk.com/v1/bpi/currentprice.json",name:L.String,parent:L$,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:1,parent:N$},U$={type:n.GenericReference,id:"2610bf4a-c8a2-4746-b6cc-eb15f7fa8e9c",version:"1",entityType:n.FunctionCall,entityId:pr},$$={id:"ffb3cd9d-c955-4104-bc7b-299120fe4ede",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:to,name:null,description:null,readsValue:null,defaultValue:null,index:2,parent:U$},g$={type:n.GenericReference,id:"bfd29a6a-671a-448c-9f2f-f8c7e4ad8349",version:"1",entityType:n.FunctionCall,entityId:pr},G$={id:"412bf1f3-1a8e-4665-a95f-82117540e34e",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:io,name:null,description:null,readsValue:null,defaultValue:null,index:3,parent:g$},F$={type:n.GenericReference,id:"616a15f3-c224-4b11-b95c-63314edef409",version:"1",entityType:n.FunctionCall,entityId:pr},x$={id:"4dd4651c-02e4-45f1-b50f-824f3bcb1648",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:no,writesValues:[],index:1,parent:F$},k$={type:n.GenericReference,id:"28793b68-4d7e-4826-aee1-f201a3499faf",version:"1",entityType:n.FunctionCall,entityId:pr},Z$={id:"94fe9d35-4dd4-4729-a50c-5283ccd7e661",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:ro,writesValues:[],index:0,parent:k$},q$={type:n.GenericReference,id:"f13e04b2-49b4-4c69-85b8-cbbafafa3524",version:"1",entityType:n.FunctionCall,entityId:pr},J$={id:MA,type:n.OutputMap,defaultValue:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:so,writesValues:[NA],index:2,parent:q$},S$={type:n.GenericReference,id:"6148d6d0-caaa-45fc-b601-ff2493dfc60f",version:"1",entityType:n.GlobalEvent,entityId:ls},W$={type:n.GenericReference,id:"b115f084-807b-44b3-ae01-b69cc342f761",version:"1",entityType:n.GlobalEvent,entityId:ls},z$={type:n.Operation,id:pr,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ms,inputs:[M$,j$,$$,G$],outputs:[Z$,x$,J$],process:null,parent:W$,calledByError:[],calledByEntry:[S$],calledBySuccess:[],successCalls:[B$],errorCalls:[],error:null,x:0,y:0},Y$={type:n.GenericReference,id:"24e76019-3f94-475b-91ce-297f76bbc224",version:"1",entityType:n.GlobalEvent,entityId:ls},H$={type:n.GenericReference,id:"0eac8e29-cdf2-42f8-8ea7-ad76d4d79abe",version:"1",entityType:n.GlobalEvent,entityId:ls},K$={process:null,type:n.FunctionCall,id:"2d2e7593-bfbf-457c-a607-5fce18eef457",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:wu,inputs:[],outputs:[],calledByError:[],calledByEntry:[Y$],calledBySuccess:[],parent:H$,successCalls:[],errorCalls:[],error:null,x:0,y:0},X$={id:"793b5999-a9da-47fb-9665-0c17ebc6d5c9",type:n.GenericReference,version:"1",entityType:n.Project,entityId:fe},Q$={type:n.GlobalEvent,id:ls,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:ir.PROJECT_PUBLICATION_COMPLETED,description:null,collapsed:!1,implements:To,parent:X$,inputs:[],calls:[K$,z$],x:0,y:0},vi="abort-execution-func-declaration-id",na="abort-execution-func-exec-var-declaration-id",Cu="abort-execution-func-small-wait-op-id",Vu="abort-execution-func-long-wait-op-id",LA="abort-execution-func-long-wait-process-output-id",jA="abort-execution-func-exec-var-instance-write-id",UA="abort-execution-func-long-wait-return-stmt-id",$A="abort-execution-func-small-wait-return-stmt-id",e2="abort-execution-func-exec-var-instance-abort-call-id",Bu="abort-execution-func-exec-var-instance-abort-internal-call-id",_u="abort-execution-func-exec-second-wait-op-id",t2={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},i2={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},r2={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"short-wait-return-statement-returned-hello-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:t2},n2={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:$A},s2={constant:!0,isError:!1,id:"short-wait-return-statement-returned-hello-string-id",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Return 1",description:"A random string that is returned by the function",defaultValue:{id:"short-wait-return-statement-returned-hello-string-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"Hello 2",autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:i2},dataType:r2,implements:null,readsValue:null,required:!0,index:0,parent:n2},a2={type:n.GenericReference,id:"short-wait-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:_u},o2={type:n.GenericReference,id:"short-wait-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},l2={type:n.ReturnStatement,id:$A,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[s2],calledByError:[],calledByEntry:[],calledBySuccess:[a2],throws:null,x:0,y:0,parent:o2},d2={type:n.GenericReference,id:"second-wait-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"second-wait-argument-map-id"},u2={type:n.GenericReference,id:"second-wait-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:_u},p2={id:"second-wait-argument-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:dn,name:null,description:null,readsValue:null,defaultValue:{id:"second-wait-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:2e3,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:L.Number,parent:d2},index:0,parent:u2},c2={type:n.GenericReference,id:"small-wait-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},f2={type:n.GenericReference,id:"small-wait-called-by-ref-one-id",version:"1",entityType:n.InternalCall,entityId:Bu},y2={id:_u,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Wt,inputs:[p2],outputs:[],process:null,successCalls:[l2],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[f2],error:null,parent:c2},h2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-one-id",version:"1",entityType:n.VariableInstance,entityId:jA},m2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-two-id",version:"1",entityType:n.Operation,entityId:Cu},v2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-main-project-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},T2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id-2",version:"1",entityType:n.VariableDeclaration,entityId:na},E2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-internal-call-ref-one-id",version:"1",entityType:n.InternalCall,entityId:Bu},I2={id:e2,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:T2,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[E2],parent:v2},gA={id:Bu,type:n.InternalCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[],outputs:[],declaration:iu,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[h2,m2],successCalls:[y2],errorCalls:[],error:null,index:0,parent:I2},A2={type:n.GenericReference,id:"abort-exec-func-var-write-instance-main-project-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},b2={type:n.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-one-id",version:"1",entityType:n.VariableDeclaration,entityId:na},R2={type:n.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-two-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},D2={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:na},O2={type:n.GenericReference,id:"abort-exec-func-var-write-instance-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:LA},Mu={id:jA,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:D2,inputs:[],outputs:[],defaultValue:null,calledByError:[],calledByEntry:[R2],calledBySuccess:[b2],successCalls:[gA],errorCalls:[],x:0,y:0,readsValue:O2,writesValues:[],internalCalls:[],parent:A2},P2={type:n.GenericReference,id:"abort-exec-func-var-decl-datatype-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:na};n.GenericReference,n.DataType;const w2={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"abort-exec-func-var-decl-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:vo,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:P2},C2={type:n.GenericReference,id:"abort-exec-func-var-decl-main-project-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},V2={type:n.GenericReference,id:"abort-exec-func-var-decl-called-by-ref-one-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},B2={constant:!0,required:!0,id:na,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Execution in progress",description:"A variable that holds an ongoing execution to abort it if needed",defaultValue:null,dataType:w2,inputs:[],outputs:[],calledByError:[],calledByEntry:[V2],calledBySuccess:[],successCalls:[Mu],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:C2},_2={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},M2={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},N2={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"long-wait-return-statement-returned-hello-string-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,asType:!1,isList:!1,parent:_2},L2={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:UA},j2={constant:!0,isError:!1,id:"long-wait-return-statement-returned-hello-string-id",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Return 2",description:"A random string that is returned by the function",implements:null,defaultValue:{id:"long-wait-return-statement-returned-hello-string-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.String,value:"Hello 1",autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:M2},dataType:N2,readsValue:null,required:!0,index:0,parent:L2},U2={type:n.GenericReference,id:"long-wait-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Vu},$2={type:n.GenericReference,id:"long-wait-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},g2={type:n.ReturnStatement,id:UA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[j2],calledByError:[],calledByEntry:[],calledBySuccess:[U2],throws:null,x:0,y:0,parent:$2},G2={type:n.GenericReference,id:"long-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"long-argument-map-id"},GA={type:n.GenericReference,id:"long-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Vu},F2={id:"long-argument-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:dn,name:null,description:null,readsValue:null,defaultValue:{id:"long-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:1500,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:L.Number,parent:G2},index:0,parent:GA},x2={type:n.GenericReference,id:"long-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},k2={type:n.GenericReference,id:"long-called-by-ref-one-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},Z2={id:LA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Eo,writesValues:[Mu],index:0,parent:GA},q2={id:Vu,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Wt,inputs:[F2],outputs:[],process:Z2,successCalls:[g2],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[k2],calledBySuccess:[],error:null,parent:x2},J2={type:n.GenericReference,id:"small-wait-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"small-wait-argument-map-id"},S2={type:n.GenericReference,id:"small-wait-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Cu},W2={id:"small-wait-argument-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:dn,name:null,description:null,readsValue:null,defaultValue:{id:"small-wait-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:500,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:L.Number,parent:J2},index:0,parent:S2},z2={type:n.GenericReference,id:"small-wait-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},Y2={type:n.GenericReference,id:"small-wait-called-by-ref-one-id",version:"1",entityType:n.FunctionDeclaration,entityId:vi},H2={id:Cu,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Wt,inputs:[W2],outputs:[],process:null,successCalls:[gA],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[Y2],calledBySuccess:[],error:null,parent:z2},K2={type:n.GenericReference,id:"abort-execution-func-decl-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},FA={id:vi,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Test aborting execution",description:"Executes a wait and then aborts the execution of that wait",inputs:[],calls:[H2,B2,Mu,q2],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:K2},X2={type:n.GenericReference,id:"call-execution-abort-func-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},Q2={id:"call-execution-abort-func-id",type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:FA,inputs:[],process:null,outputs:[],successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:X2},Ho="manual-hello-world-loop-func-decl-id",xA="manual-hello-world-loop-func-return-statement-id",Si="manual-hello-world-loop-id",sa="manual-hello-world-loop-body-id",Nu="manual-hello-world-loop-break-statement-id",aa="manual-hello-world-loop-current-iteration-number-output-map-id",Lu="manual-hello-world-loop-previous-iterations-results-output-map-id",ju="assembled-hello-world-text-output-id",e4="assembled-hello-world-list-output-id",oa="iteration-number-is-equal-or-greater-than-10-condition-id",Ko="join-hello-world-and-number-operation-id",Xo="append-string-to-list-operation-id",kA="hello-world-loop-output-map-id",t4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-parent-ref",version:"1",entityType:n.ReturnStatement,entityId:xA},i4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type-parent-ref",version:"1",entityType:n.ReturnDeclaration,entityId:"manual-hello-world-loop-function-declaration-output-declaration"},r4={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!0,asType:!1,parent:i4},n4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-reads-value-ref",version:"1",entityType:n.OutputMap,entityId:kA},ZA={constant:!0,isError:!1,id:"manual-hello-world-loop-function-declaration-output-declaration",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Results",description:null,defaultValue:null,dataType:r4,implements:null,readsValue:n4,required:!0,index:0,parent:t4},s4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-return-statement-called-by-ref",version:"1",entityType:n.Loop,entityId:Si},a4={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref",version:"1",entityType:n.FunctionDeclaration,entityId:Ho},o4={type:n.ReturnStatement,id:xA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[ZA],calledByError:[],calledByEntry:[],calledBySuccess:[s4],parent:a4,throws:null,x:0,y:0},l4={type:n.GenericReference,id:"hello-world-loop-break-statement-ref-id",version:"1",entityType:n.BreakStatement,entityId:Nu},qA={constant:!0,isError:!1,id:"hello-world-loop-break-statement-output-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Iteration result",description:null,defaultValue:null,dataType:null,readsValue:null,implements:null,required:!0,index:0,parent:l4},d4={type:n.GenericReference,id:"hello-world-loop-break-statement-counter-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:aa},u4={type:n.GenericReference,id:"hello-world-loop-break-statement-counter-ref-id",version:"1",entityType:n.BreakStatement,entityId:Nu},JA={constant:!0,isError:!1,id:"hello-world-loop-break-statement-counter-output-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Iteration counter",description:null,implements:null,defaultValue:null,dataType:null,readsValue:d4,required:!0,index:1,parent:u4},p4={type:n.GenericReference,id:"hello-world-loop-break-statement-called-by-ref-id",version:"1",entityType:n.Condition,entityId:oa},c4={type:n.GenericReference,id:"hello-world-loop-break-statement-parent-ref-id",version:"1",entityType:n.Loop,entityId:Si},f4={type:n.BreakStatement,id:Nu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[qA,JA],calledByError:[],calledByEntry:[],calledBySuccess:[p4],parent:c4,throws:null,x:0,y:0};n.GenericReference,n.InputMap;const y4={type:n.GenericReference,id:"append-string-to-list-base-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Xo},h4={type:n.GenericReference,id:"base-string-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Lu},SA={id:"append-string-to-list-base-string-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Od,name:null,description:null,readsValue:h4,defaultValue:null,index:0,parent:y4},m4={type:n.GenericReference,id:"assembly-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Xo},v4={id:e4,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[qA],declaration:Bs,index:0,parent:m4},T4={type:n.GenericReference,id:"append-string-to-list-called-by-ref-id",version:"1",entityType:n.Condition,entityId:oa},E4={type:n.GenericReference,id:"latest-string-to-add-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:ju},I4={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:n.Operation,entityId:Xo},WA={id:"latest-string-to-add-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Pd,name:null,description:null,readsValue:E4,defaultValue:null,index:1,parent:I4},A4={type:n.GenericReference,id:"append-string-to-list-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Si},b4={type:n.Operation,id:Xo,declaration:Xa,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[SA,WA],outputs:[v4],calledByError:[],process:null,calledByEntry:[],calledBySuccess:[T4],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:A4},R4={type:n.GenericReference,id:"hello-world-loop-continue-statement-ref-id",version:"1",entityType:n.ContinueStatement,entityId:"hello-world-loop-continue-statement"},D4={type:n.GenericReference,id:"hello-world-loop-continue-statement-output-data-type-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:"hello-world-loop-continue-statement-output-id"},O4={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"hello-world-loop-continue-statement-output-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:D4},P4={type:n.GenericReference,id:"hello-world-loop-continue-statement-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:ju},zA={constant:!0,isError:!1,id:"hello-world-loop-continue-statement-output-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Iteration result",description:null,defaultValue:null,implements:null,dataType:O4,readsValue:P4,required:!0,index:0,parent:R4},w4={type:n.GenericReference,id:"hello-world-loop-continue-statement-called-by-ref-id",version:"1",entityType:n.Condition,entityId:oa},C4={type:n.GenericReference,id:"hello-world-loop-continue-statement-parent-ref-id",version:"1",entityType:n.Loop,entityId:Si},V4={type:n.ContinueStatement,id:"hello-world-loop-continue-statement",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[zA],calledBySuccess:[],calledByError:[w4],calledByEntry:[],parent:C4,throws:null,x:0,y:0},B4={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:sa},_4={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-parent-ref-id",version:"1",entityType:n.Loop,entityId:Si},M4={type:n.GenericReference,id:"current-iteration-number-to-check-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:aa},YA={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-ref-two-id",version:"1",entityType:n.Condition,entityId:oa},N4={id:"current-iteration-number-to-check-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Xn.inputs[0],name:null,description:null,readsValue:M4,index:0,defaultValue:null,parent:YA},L4={type:n.GenericReference,id:"max-num-iterations-value-map-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"max-num-iterations-value-map-id"},j4={id:"max-num-iterations-value-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Xn.inputs[1],name:null,description:null,readsValue:null,index:1,defaultValue:{id:"max-num-iterations-value-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Number,value:10,autogeneration:null,valueAsTypeList:null,valueAsTypeSingle:null,parent:L4},parent:YA},U4={type:n.Condition,id:oa,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Xn,inputs:[N4,j4],calledByError:[],calledByEntry:[B4],calledBySuccess:[],successCalls:[f4,b4],errorCalls:[V4],x:0,y:0,parent:_4},$4={type:n.GenericReference,id:"base-string-map-ref-id",version:"1",entityType:n.InputMap,entityId:"join-hello-world-and-number-base-string-map-id"},g4={type:n.GenericReference,id:"join-hello-world-and-number-base-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Ko},G4={id:"join-hello-world-and-number-base-string-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ha,name:null,description:null,readsValue:null,defaultValue:{id:"join-hello-world-and-number-base-string-map-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Hello world ",name:L.String,parent:$4,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},index:0,parent:g4},F4={type:n.GenericReference,id:"assembly-string-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Ko},x4={id:ju,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,writesValues:[WA,zA],declaration:Bs,index:0,parent:F4},k4={type:n.GenericReference,id:"join-hello-world-and-number-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:sa},Z4={type:n.GenericReference,id:"current-iteration-number-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:aa},q4={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",version:"1",entityType:n.Operation,entityId:Ko},HA={id:"current-iteration-number-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:Ka,name:null,description:null,readsValue:Z4,defaultValue:null,index:1,parent:q4},J4={type:n.GenericReference,id:"join-hello-world-and-number-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Si},S4={type:n.Operation,id:Ko,declaration:_s,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[G4,HA],outputs:[x4],process:null,calledByError:[],calledByEntry:[k4],calledBySuccess:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:J4},W4={id:"manual-hello-world-loop-iterations-results-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:Lu,version:"1",entityType:n.ArgumentDeclaration},z4={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"manual-hello-world-loop-iterations-results-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!0,entity:null,asType:!1,parent:W4},Y4={id:"manual-hello-world-loop-previous-iterations-results-output-map-parent-ref-id",type:n.GenericReference,entityId:sa,version:"1",entityType:n.FunctionDeclaration},H4={constant:!0,id:Lu,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Previous iterations results",description:"The results of the previous iterations of the loop.",required:!0,defaultValue:null,dataType:z4,implements:null,writesValues:[SA],index:1,parent:Y4},K4={id:"manual-hello-world-loop-current-iteration-number-output-map-parent-ref-id",type:n.GenericReference,entityId:sa,version:"1",entityType:n.FunctionDeclaration},X4={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:aa,version:"1",entityType:n.ArgumentDeclaration};n.DataType;const Q4={constant:!0,id:aa,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current iteration number",description:"The number of the current iteration of the loop. Starts at 1.",required:!0,implements:Nd,defaultValue:null,dataType:null,writesValues:[HA,JA],index:0,parent:K4},eg={id:"manual-flow-loop-body-parent-ref-id",type:n.GenericReference,entityId:Si,version:"1",entityType:n.Loop},tg={id:sa,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called multiple times, once for each iteration of the loop.",inputs:[Q4,H4],calls:[U4,S4],implements:oo,collapsed:!1,private:!1,index:0,x:0,y:0,parent:eg},ig={type:n.GenericReference,id:"hello-world-loop-iteration-result-inline-output-declaration-parent-ref-id",version:"1",entityType:n.Loop,entityId:Si},KA={id:"hello-world-loop-iteration-result-inline-output-declaration-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ValueDescriptor,name:"Iteration result",defaultValue:null,description:null,dataType:null,required:!0,parentRelationType:N.FixedReturns,index:0,parent:ig},rg={type:n.GenericReference,id:"hello-world-loop-break-statement-output-map-parent-ref-id",version:"1",entityType:n.Loop,entityId:Si},ng={type:n.OutputMap,id:kA,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:KA,writesValues:[ZA],index:0,parent:rg},sg={id:"manual-hello-world-loop-parent-ref-id",type:n.GenericReference,entityId:Ho,version:"1",entityType:n.FunctionDeclaration},ag={id:"manual-hello-world-loop-called-by-ref-id",type:n.GenericReference,entityId:Ho,version:"1",entityType:n.FunctionDeclaration},og={id:Si,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:ao,inputs:[],outputsDeclarations:[KA],outputs:[ng],body:tg,successCalls:[o4],errorCalls:[],process:null,error:null,calledByError:[],calledByEntry:[ag],calledBySuccess:[],x:0,y:0,parent:sg},lg={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},XA={type:n.FunctionDeclaration,id:Ho,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manual hello world loop",description:null,inputs:[],calls:[og],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:lg},dg={type:n.GenericReference,id:"call-hello-world-loop-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},ug={id:"call-hello-world-loop-id",type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:XA,inputs:[],outputs:[],process:null,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:dg},cr="company-dto-function-declaration-id",Uu="company-dto-func-declaration-argument-dcl-id",Wi="company-dto-function-company-variable-id",Lr="company-dto-function-company-dto-variable-id",ds="iterate-over-employee-list-loop-id",QA="iterate-over-employee-list-loop-employee-dto-output-map-id",$u="iterate-over-employee-list-loop-body-current-employee-argument-declaration-id",Qo="iterate-over-employee-list-loop-body-map-employee-dto-function-call-id",eb="iterate-over-employee-list-continue-statement-employee-dto-output-decl-id",tb="iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-id",ib="iterate-over-employee-list-continue-statement-id",el="iterate-over-employee-list-loop-body-id",rb="company-dto-func-declaration-return-statement-id",nb="company-dto-func-declaration-return-decl-id",sb="company-dto-func-declaration-company-variable-id-output-map-id",ab="company-dto-func-declaration-company-variable-employess-output-map-id",ob="company-dto-func-declaration-company-variable-name-output-map-id",pg="company-dto-func-declaration-company-dto-variable-input-map-id",cg="company-dto-func-declaration-company-dto-variable-employess-input-map-id",fg="company-dto-func-declaration-company-dto-variable-name-input-map-id",tl="company-dto-func-declaration-owner-variable-id",yg="company-dto-func-declaration-company-dto-variable-owner-input-map-id",lb="company-dto-func-declaration-company-variable-owner-output-map-id",db="company-dto-func-declaration-owner-variable-id-output-map-id",il="company-dto-func-declaration-bank-account-variable-id",hg="company-dto-func-declaration-company-dto-variable-bank-account-input-map-id",ub="company-dto-func-declaration-company-variable-bank-account-output-map-id",pb="company-dto-func-declaration-bank-account-variable-id-output-map-id",mg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-owner-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:db},vg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-owner-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Lr},cb={id:yg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"owner_id",description:null,defaultValue:null,index:5,readsValue:mg,parent:vg},Tg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:pb},Eg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Lr},fb={id:hg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"bank_account_id",description:null,defaultValue:null,index:4,readsValue:Tg,parent:Eg},Ig={type:n.GenericReference,id:"company-dto-func-company-dto-variable-name-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:ob},Ag={type:n.GenericReference,id:"company-dto-func-company-dto-variable-name-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Lr},yb={id:fg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"name",description:null,defaultValue:null,index:3,readsValue:Ig,parent:Ag},bg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-employess-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:QA},Rg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-employess-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Lr},hb={id:cg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"employees",description:null,defaultValue:null,index:2,readsValue:bg,parent:Rg},Dg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:sb},Og={type:n.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Lr},mb={id:pg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"id",description:"The ID of the company",defaultValue:null,index:1,readsValue:Dg,parent:Og},Pg={type:n.GenericReference,id:"company-dto-func-returned-company-dto-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:nb},wg={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"company-dto-func-returned-company-dto-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!1,parent:Pg},Cg={type:n.GenericReference,id:"company-dto-func-returned-company-dto-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:rb},Vg={type:n.GenericReference,id:"company-dto-func-returned-company-dto-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Lr},vb={constant:!0,isError:!1,id:nb,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",defaultValue:null,implements:null,dataType:wg,readsValue:Vg,required:!0,index:0,parent:Cg},Bg={type:n.GenericReference,id:"company-dto-func-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Lr},_g={type:n.GenericReference,id:"company-dto-func-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:cr},Tb={type:n.ReturnStatement,id:rb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[vb],calledByError:[],calledByEntry:[],calledBySuccess:[Bg],throws:null,x:0,y:0,parent:_g},Mg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:cr},Ng={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-one-id",version:"1",entityType:n.VariableDeclaration,entityId:il},Lg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-two-id",version:"1",entityType:n.VariableDeclaration,entityId:tl},jg={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-three-id",version:"1",entityType:n.VariableDeclaration,entityId:ds},gu={constant:!0,required:!0,id:Lr,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",dataType:null,description:"A variable holding the data of a mapped company DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[Ng,Lg,jg],successCalls:[Tb],errorCalls:[],readsValue:null,writesValues:[vb],inputs:[mb,yb,fb,cb,hb],outputs:[],internalCalls:[],parent:Mg,x:0,y:0},bn="employee-dto-func-declaration-id",Gu="employee-dto-func-declaration-argument-dcl-id",Eb="employee-dto-func-declaration-return-statement-id",Ib="employee-dto-func-declaration-return-decl-id",Rn="employee-dto-func-declaration-employee-variable-id",Dn="employee-dto-func-declaration-employee-dto-variable-id",rl="employee-dto-func-declaration-manager-variable-id",Ab="employee-dto-func-declaration-employee-variable-id-output-map-id",bb="employee-dto-func-declaration-employee-variable-birth-date-output-map-id",Rb="employee-dto-func-declaration-employee-variable-department-output-map-id",Db="employee-dto-func-declaration-employee-variable-manager-output-map-id",Ob="employee-dto-func-declaration-manager-variable-id-output-map-id",Ug="employee-dto-func-declaration-employee-dto-variable-input-map-id",$g="employee-dto-func-declaration-employee-dto-variable-birth-date-input-map-id",gg="employee-dto-func-declaration-employee-dto-variable-department-input-map-id",Gg="employee-dto-func-declaration-employee-dto-variable-manager-input-map-id",Fg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Ob},xg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Dn},Pb={id:Gg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"manager_id",description:null,defaultValue:null,index:4,readsValue:Fg,parent:xg},kg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-department-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Rb},Zg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Dn},wb={id:gg,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"department_name",description:null,defaultValue:null,index:3,readsValue:kg,parent:Zg},qg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:bb},Jg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Dn},Cb={id:$g,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"birth_date",description:null,defaultValue:null,index:2,readsValue:qg,parent:Jg},Sg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Ab},Wg={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Dn},Vb={id:Ug,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:Sg,parent:Wg},zg={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:Ib},Yg={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"employee-dto-func-returned-employee-dto-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,asType:!1,isList:!1,parent:zg},Hg={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:Eb},Kg={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Dn},Bb={constant:!0,isError:!1,id:Ib,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",description:"Output the employee data in the format that it will be sent through an HTTP request.",defaultValue:null,dataType:Yg,implements:null,readsValue:Kg,required:!0,index:0,parent:Hg},Xg={type:n.GenericReference,id:"employee-dto-func-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Dn},Qg={type:n.GenericReference,id:"employee-dto-func-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:bn},_b={type:n.ReturnStatement,id:Eb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Bb],calledByError:[],calledByEntry:[],calledBySuccess:[Xg],throws:null,x:0,y:0,parent:Qg},eG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:bn},tG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:rl},iG={constant:!0,required:!0,id:Dn,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[tG],successCalls:[_b],errorCalls:[],readsValue:null,writesValues:[Bb],inputs:[Vb,Cb,wb,Pb],outputs:[],internalCalls:[],parent:eG,x:0,y:0},rG={type:n.GenericReference,id:"employee-dto-func-manager-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:rl},nG={id:Ob,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:mi.properties[0],index:0,writesValues:[Pb],parent:rG},sG={type:n.GenericReference,id:"employee-dto-func-manager-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:rl},aG={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"employee-dto-func-manager-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,asType:!1,isList:!1,parent:sG},oG={type:n.GenericReference,id:"employee-dto-func-manager-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Db},lG={type:n.GenericReference,id:"employee-dto-func-manager-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:bn};n.GenericReference,n.VariableDeclaration;const Mb={constant:!0,required:!0,id:rl,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manager",description:"A variable holding an inherited manager",defaultValue:null,dataType:aG,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[iG],errorCalls:[],readsValue:oG,writesValues:[],inputs:[],outputs:[nG],internalCalls:[],parent:lG,x:0,y:0},dG={type:n.GenericReference,id:"employee-dto-func-employee-variable-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Rn},uG={id:Db,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Di.properties[2],index:3,writesValues:[Mb],parent:dG},pG={type:n.GenericReference,id:"employee-dto-func-employee-variable-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Rn},cG={id:Rb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Di.properties[0],index:2,writesValues:[wb],parent:pG},fG={type:n.GenericReference,id:"employee-dto-func-employee-variable-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Rn},yG={id:bb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Yt.properties[1],index:1,writesValues:[Cb],parent:fG},hG={type:n.GenericReference,id:"employee-dto-func-employee-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Rn},mG={id:Ab,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:mi.properties[0],index:0,writesValues:[Vb],parent:hG},vG={type:n.GenericReference,id:"employee-dto-func-employee-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Rn},TG={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"employee-dto-func-employee-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,asType:!1,isList:!1,parent:vG},EG={type:n.GenericReference,id:"employee-dto-func-employee-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:bn},IG={type:n.GenericReference,id:"employee-dto-func-employee-variable-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:Gu},AG={type:n.GenericReference,id:"employee-dto-func-employee-variable-called-by-id",version:"1",entityType:n.FunctionDeclaration,entityId:bn},Nb={constant:!0,required:!0,id:Rn,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company employee",dataType:TG,description:"A variable holding a company employee",calledByError:[],defaultValue:null,calledByEntry:[AG],calledBySuccess:[],successCalls:[Mb],errorCalls:[],readsValue:IG,writesValues:[],inputs:[],outputs:[mG,yG,cG,uG],internalCalls:[],parent:EG,x:0,y:0},bG={type:n.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-data-type-parent-ref-id",entityId:Gu,version:"1",entityType:n.ArgumentDeclaration},RG={staticEntities:null,interactiveEntities:null,actionEntities:null,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"employee-dto-func-declaration-employee-input-declaration-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,asType:!1,isList:!1,like:!1,inferred:!1,parent:bG},DG={type:n.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-parent-ref-id",entityId:bn,version:"1",entityType:n.FunctionDeclaration},OG={constant:!0,type:n.ArgumentDeclaration,id:Gu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee",description:"The employee to create a DTO for",required:!0,implements:null,defaultValue:null,dataType:RG,index:0,writesValues:[Nb],parent:DG},PG={type:n.GenericReference,id:"employee-dto-function-declaration-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},Fu={type:n.FunctionDeclaration,id:bn,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",description:"Takes a employee and returns a DTO of that employee",index:null,inputs:[OG],calls:[Nb],implements:null,collapsed:!1,private:!1,x:0,y:0,parent:PG},wG={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:eb,version:"1",entityType:n.ReturnDeclaration},CG={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:wG},VG={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-reads-value-ref-id",type:n.GenericReference,entityId:tb,version:"1",entityType:n.OutputMap},BG={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-parent-ref-id",type:n.GenericReference,entityId:ib,version:"1",entityType:n.ContinueStatement},Lb={constant:!0,isError:!1,id:eb,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",description:"The DTO of the employee entity.",defaultValue:null,readsValue:VG,dataType:CG,implements:null,required:!0,index:0,parent:BG},_G={id:"iterate-over-employee-list-continue-statement-called-by-ref-id",type:n.GenericReference,entityId:Qo,version:"1",entityType:n.FunctionCall},MG={id:"iterate-over-employee-list-continue-statement-parent-ref-id",type:n.GenericReference,entityId:ds,version:"1",entityType:n.Loop},NG={id:ib,type:n.ContinueStatement,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,calledByError:[],calledByEntry:[],calledBySuccess:[_G],outputs:[Lb],throws:null,x:0,y:0,parent:MG},LG={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-parent-ref-id",type:n.GenericReference,entityId:Qo,version:"1",entityType:n.FunctionCall},jG={id:tb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:_b.outputs[0],writesValues:[Lb],index:0,parent:LG},UG={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-reads-value-ref-id",type:n.GenericReference,entityId:$u,version:"1",entityType:n.ArgumentDeclaration},$G={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-parent-ref-id",type:n.GenericReference,entityId:Qo,version:"1",entityType:n.FunctionCall},jb={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Fu.inputs[0],readsValue:UG,index:0,defaultValue:null,parent:$G},gG={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-called-by-ref-id",type:n.GenericReference,entityId:el,version:"1",entityType:n.FunctionDeclaration},GG={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-parent-ref-id",type:n.GenericReference,entityId:el,version:"1",entityType:n.FunctionDeclaration},FG={id:Qo,type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Fu,inputs:[jb],process:null,outputs:[jG],calledByError:[],calledByEntry:[gG],calledBySuccess:[],successCalls:[NG],errorCalls:[],error:null,x:0,y:0,parent:GG},xG={type:n.GenericReference,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-parent-ref-id",entityId:$u,version:"1",entityType:n.ArgumentDeclaration},kG={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,isList:!1,asType:!1,parent:xG},ZG={id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:el,version:"1",entityType:n.FunctionDeclaration},qG={constant:!0,id:$u,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current employee",description:"The current employee entity being processed.",defaultValue:null,dataType:kG,required:!0,implements:uo,index:0,writesValues:[jb],parent:ZG},JG={id:"iterate-over-employee-list-loop-body-parent-ref-id",type:n.GenericReference,entityId:ds,version:"1",entityType:n.Loop},SG={id:el,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[qG],calls:[FG],implements:js,collapsed:!1,private:!1,index:0,x:0,y:0,parent:JG},WG={id:"iterate-over-employee-list-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:ds,version:"1",entityType:n.Loop},zG={id:"iterate-over-employee-list-loop-iteration-list-input-map-reads-value-ref-id",type:n.GenericReference,entityId:ab,version:"1",entityType:n.OutputMap},Ub={id:"iterate-over-employee-list-loop-iteration-list-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Or.inputs[0],defaultValue:null,readsValue:zG,index:0,parent:WG},YG={id:"iterate-over-employee-list-loop-parent-ref-id",type:n.GenericReference,entityId:cr,version:"1",entityType:n.FunctionDeclaration},HG={id:"iterate-over-employee-list-loop-employee-dto-output-map-parent-ref-id",type:n.GenericReference,entityId:ds,version:"1",entityType:n.Loop},KG={id:QA,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Or.outputs[0],writesValues:[hb],index:0,parent:HG},XG={type:n.GenericReference,id:"iterate-over-employee-list-loop-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wi},QG={id:ds,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Or,inputs:[Ub],successCalls:[gu],errorCalls:[],outputsDeclarations:[],outputs:[KG],body:SG,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[XG],error:null,x:0,y:0,parent:YG},eF={type:n.GenericReference,id:"company-dto-func-bank-account-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:il},tF={id:pb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:mi.properties[0],index:0,writesValues:[fb],parent:eF},iF={type:n.GenericReference,id:"company-dto-func-bank-account-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:il},rF={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"company-dto-func-bank-account-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,asType:!1,isList:!1,parent:iF},nF={type:n.GenericReference,id:"company-dto-func-bank-account-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:ub},sF={type:n.GenericReference,id:"company-dto-func-bank-account-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:cr};n.GenericReference,n.VariableDeclaration;const $b={constant:!0,required:!0,id:il,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Bank account",description:"A variable holding an inherited bank account",defaultValue:null,dataType:rF,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[gu],errorCalls:[],readsValue:nF,writesValues:[],inputs:[],outputs:[tF],internalCalls:[],parent:sF,x:0,y:0},aF={type:n.GenericReference,id:"company-dto-func-owner-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:tl},oF={id:db,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:mi.properties[0],index:0,defaultValue:null,writesValues:[cb],parent:aF},lF={type:n.GenericReference,id:"company-dto-func-owner-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:tl},dF={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"company-dto-func-owner-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,asType:!1,isList:!1,parent:lF},uF={type:n.GenericReference,id:"company-dto-func-owner-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:lb},pF={type:n.GenericReference,id:"company-dto-func-owner-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:cr};n.GenericReference,n.VariableDeclaration;const gb={constant:!0,required:!0,id:tl,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Owner",dataType:dF,description:"A variable holding an inherited owner",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[gu],errorCalls:[],readsValue:uF,writesValues:[],inputs:[],outputs:[oF],internalCalls:[],parent:pF,x:0,y:0},cF={type:n.GenericReference,id:"company-dto-func-company-variable-owner-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wi},fF={id:lb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Oi.properties[2],index:4,writesValues:[gb],parent:cF},yF={type:n.GenericReference,id:"company-dto-func-company-variable-bank-account-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wi},hF={id:ub,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Oi.properties[2],index:3,writesValues:[$b],parent:yF},mF={type:n.GenericReference,id:"company-dto-func-company-variable-name-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wi},vF={id:ob,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Oi.properties[0],index:2,writesValues:[yb],parent:mF},TF={type:n.GenericReference,id:"company-dto-func-company-variable-employess-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wi},EF={id:ab,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Oi.properties[3],index:1,writesValues:[Ub],parent:TF},IF={type:n.GenericReference,id:"company-dto-func-company-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wi},AF={id:sb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:mi.properties[0],index:0,writesValues:[mb],parent:IF},bF={type:n.GenericReference,id:"company-dto-func-company-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wi},RF={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"company-dto-func-company-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,asType:!1,isList:!1,parent:bF},DF={type:n.GenericReference,id:"company-dto-func-company-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:cr},OF={type:n.GenericReference,id:"company-dto-func-company-variable-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:Uu},PF={type:n.GenericReference,id:"company-dto-func-company-variable-called-by-id",version:"1",entityType:n.FunctionDeclaration,entityId:cr},Gb={constant:!0,required:!0,id:Wi,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",dataType:RF,description:"A variable holding a company",defaultValue:null,calledByError:[],calledByEntry:[PF],calledBySuccess:[],successCalls:[$b,gb,QG],errorCalls:[],readsValue:OF,writesValues:[],inputs:[],outputs:[AF,EF,vF,hF,fF],internalCalls:[],parent:DF,x:0,y:0},wF={type:n.GenericReference,id:"company-dto-func-declaration-company-input-declaration-data-type-parent-ref-id",entityId:Uu,version:"1",entityType:n.ArgumentDeclaration},CF={staticEntities:null,interactiveEntities:null,actionEntities:null,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"company-dto-func-declaration-company-input-declaration-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,asType:!1,isList:!1,like:!1,inferred:!1,parent:wF},VF={type:n.GenericReference,id:"company-dto-func-declaration-company-input-declaration-parent-ref-id",entityId:cr,version:"1",entityType:n.FunctionDeclaration},BF={constant:!0,type:n.ArgumentDeclaration,id:Uu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",description:"The company to create a DTO for",defaultValue:null,required:!0,implements:null,dataType:CF,index:0,writesValues:[Gb],parent:VF},_F={type:n.GenericReference,id:"company-dto-function-declaration-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},xu={type:n.FunctionDeclaration,id:cr,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:"Takes a company and returns a DTO of that company",inputs:[BF],calls:[Gb],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:_F},la="exec-in-parallel-operation-call-id",da="exec-sequentially-operation-call-id",Ht="concurrency-and-wait-function-declaration-id",Fb="concurrency-and-wait-return-statement-id",xb="concurrency-and-wait-return-declaration-id",ku="exec-in-parallel-argument-map-id",kb="exec-sequentially-argument-map-id",Zu="wait-for-2-seconds-operation-id",Zb="wait-for-2-seconds-argument-map-id",qu="map-company-dto-function-call-id",qb="map-company-dto-function-call-company-dto-output-map-id",nl="company-dto-variable-one-id",Ju="company-dto-variable-one-instance-id",Jb="company-dto-variable-two-id",MF={type:n.GenericReference,id:"returned-company-dto-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:xb},NF={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"returned-company-dto-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,asType:!1,isList:!1,parent:MF},LF={type:n.GenericReference,id:"returned-company-dto-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:Fb},jF={type:n.GenericReference,id:"returned-company-dto-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Jb},Sb={constant:!0,isError:!1,id:xb,type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",defaultValue:null,dataType:NF,implements:null,readsValue:jF,required:!0,index:0,parent:LF},UF={type:n.GenericReference,id:"concurrency-and-wait-return-statement-called-by-ref-id",version:"1",entityType:n.Operation,entityId:Zu},$F={type:n.GenericReference,id:"concurrency-and-wait-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},gF={type:n.ReturnStatement,id:Fb,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Sb],calledByError:[],calledByEntry:[],calledBySuccess:[UF],throws:null,x:0,y:0,parent:$F},GF={type:n.GenericReference,id:"company-dto-variable-two-called-by-ref-id",version:"1",entityType:n.VariableInstance,entityId:Ju},FF={type:n.GenericReference,id:"company-dto-variable-two-reads-value-ref-id",version:"1",entityType:n.VariableInstance,entityId:Ju},xF={type:n.GenericReference,id:"company-dto-variable-two-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},Wb={constant:!0,required:!0,id:Jb,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:null,defaultValue:null,dataType:null,inputs:[],outputs:[],successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[GF],internalCalls:[],writesValues:[Sb],readsValue:FF,x:0,y:0,parent:xF},kF={type:n.GenericReference,id:"company-dto-variable-one-instance-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:nl},ZF={type:n.GenericReference,id:"company-dto-variable-one-instance-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:nl},qF={type:n.GenericReference,id:"company-dto-variable-one-instance-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},JF={type:n.GenericReference,id:"company-dto-variable-one-instance-declaration-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:nl},zb={id:Ju,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:JF,inputs:[],outputs:[],successCalls:[Wb],errorCalls:[],defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[kF],internalCalls:[],writesValues:[Wb],readsValue:ZF,x:0,y:0,parent:qF},SF={type:n.GenericReference,id:"company-dto-variable-one-called-by-ref-id",version:"1",entityType:n.FunctionCall,entityId:qu},WF={type:n.GenericReference,id:"company-dto-variable-one-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:qb},zF={type:n.GenericReference,id:"company-dto-variable-one-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},Yb={constant:!0,required:!0,id:nl,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company DTO",description:null,defaultValue:null,dataType:null,inputs:[],outputs:[],successCalls:[zb],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[SF],internalCalls:[],writesValues:[zb],readsValue:WF,x:0,y:0,parent:zF},Hb={type:n.GenericReference,id:"map-company-dto-function-call-company-input-map-parent-ref-id",version:"1",entityType:n.FunctionCall,entityId:qu},YF={id:"map-company-dto-function-call-company-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:xu.inputs[0],name:null,description:null,defaultValue:null,index:0,readsValue:null,parent:Hb},HF={id:qb,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Tb.outputs[0],writesValues:[Yb],index:0,parent:Hb},KF={id:"map-company-dto-function-call-called-by-ref-id",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:Ht},XF={id:"map-company-dto-function-call-parent-ref-id",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:Ht},QF={id:qu,type:n.FunctionCall,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:xu,successCalls:[Yb],process:null,errorCalls:[],inputs:[YF],outputs:[HF],calledByError:[],calledByEntry:[KF],calledBySuccess:[],parent:XF,x:0,y:0,error:null},ex={type:n.GenericReference,id:"last-timestamp-variable-datatype-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Iu},tx={type:n.GenericReference,id:"last-timestamp-variable-default-value-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Iu},ix={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"last-timestamp-variable-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:Fi,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:ex},rx={type:n.GenericReference,id:"last-timestamp-variable-main-project-ref-id",version:"1",entityType:n.Project,entityId:fe},Su={constant:!0,required:!0,id:Iu,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Last registered current time",description:"A test variable that holds the last current date and time that was registered.",defaultValue:{id:"last-timestamp-variable-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.Date,value:null,autogeneration:{type:vt.CurrentDateAndTime,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null,parent:tx},dataType:ix,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:rx},nx={type:n.GenericReference,id:"wait-for-2-seconds-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:Zb},sx={type:n.GenericReference,id:"wait-for-2-seconds-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:Zu},ax={id:Zb,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:dn,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-2-seconds-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:2e3,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,name:L.Number,parent:nx},index:0,parent:sx},ox={type:n.GenericReference,id:"wait-for-2-seconds-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},lx={type:n.GenericReference,id:"wait-for-2-seconds-called-by-ref-one-id",version:"1",entityType:n.Operation,entityId:da},dx={type:n.GenericReference,id:"wait-for-2-seconds-called-by-ref-two-id",version:"1",entityType:n.Operation,entityId:la},Kb={id:Zu,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Vi,inputs:[ax],outputs:[],process:null,successCalls:[gF],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[lx,dx],error:null,parent:ox},ux={type:n.GenericReference,id:"wait-for-random-amount-argument-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:"wait-for-random-amount-input-map-id"},px={type:n.GenericReference,id:"wait-for-random-amount-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:"wait-for-random-amount-id"},cx={id:"wait-for-random-amount-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:dn,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-random-amount-argument-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:{type:vt.Random,rangeStart:1e3,rangeEnd:4e3},name:L.Number,parent:ux},index:0,parent:px},fx={type:n.GenericReference,id:"wait-for-random-amount-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},us={id:"wait-for-random-amount-id",type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Vi,inputs:[cx],process:null,outputs:[],successCalls:[],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,parent:fx},Wu="list-of-functions-variable-id",yx={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-argument-parent-ref-id",version:"1",entityType:n.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},hx={id:"list-of-functions-variable-action-descriptor-dynamic-argument-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any input value",description:"Any input value that can be passed to the action",defaultValue:null,index:0,required:!1,dataType:null,parent:yx},mx={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-return-parent-ref-id",version:"1",entityType:n.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},vx={id:"list-of-functions-variable-action-descriptor-dynamic-return-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Any output value",description:"Any output value that can be returned to the action",defaultValue:null,index:0,required:!1,dataType:null,parent:mx},Tx={type:n.GenericReference,id:"list-of-functions-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wu},Ex={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-parent-ref-id",version:"1",entityType:n.DataType,entityId:"list-of-functions-variable-data-type-id"},Ix={id:"list-of-functions-variable-action-descriptor-id",type:n.ActionDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[hx],error:null,outputs:[vx],parent:Ex},Ax={type:n.GenericReference,id:"list-of-functions-variable-data-type-default-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:Wu},bx={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"list-of-functions-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Ix,asType:!1,isList:!0,parent:Tx},Rx={type:n.GenericReference,id:"list-of-functions-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht};n.GenericReference,n.InputMap;const Dx={type:n.GenericReference,id:"list-of-functions-variable-writes-value-one-ref-id",version:"1",entityType:n.InputMap,entityId:kb},Ox={type:n.GenericReference,id:"list-of-functions-variable-writes-value-two-ref-id",version:"1",entityType:n.InputMap,entityId:ku},Xb={constant:!0,required:!0,id:Wu,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"List of functions to execute",description:"A list of functions to be executed in parallel",defaultValue:{id:"list-of-functions-variable-data-type-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:L.ActionDescriptor,value:null,valueAsTypeSingle:null,valueAsTypeList:[us,us,us,us,us],autogeneration:null,parent:Ax},dataType:bx,parent:Rx,readsValue:null,writesValues:[Dx,Ox],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],inputs:[],outputs:[],internalCalls:[],x:0,y:0},Px={type:n.GenericReference,id:"exec-in-parallel-return-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:la},wx={type:n.GenericReference,id:"exec-in-parallel-result-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},Cx={type:n.GenericReference,id:"exec-in-parallel-result-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:"exec-in-parallel-return-map-id"},Vx={type:n.GenericReference,id:"exec-in-parallel-result-variable-called-by-ref-id",version:"1",entityType:n.Operation,entityId:la},Qb={id:"exec-in-parallel-result-variable-id",type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Su,readsValue:Cx,writesValues:[],defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Vx],successCalls:[],errorCalls:[],internalCalls:[],parent:wx,x:0,y:0},Bx={id:"exec-in-parallel-return-map-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Cd,writesValues:[Qb],index:0,parent:Px},_x={type:n.GenericReference,id:"exec-in-parallel-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:la},Mx={id:ku,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:wd,name:null,description:null,readsValue:Xb,defaultValue:null,index:0,parent:_x},Nx={type:n.GenericReference,id:"exec-in-parallel-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},Lx={type:n.GenericReference,id:"exec-in-parallel-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},jx={process:null,id:la,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Vi,inputs:[Mx],outputs:[Bx],successCalls:[Kb,Qb],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[Lx],calledBySuccess:[],error:null,parent:Nx},Ux={type:n.GenericReference,id:"exec-sequentially-return-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:da},$x={type:n.GenericReference,id:"exec-sequentially-result-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},gx={type:n.GenericReference,id:"exec-sequentially-result-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:"exec-sequentially-return-map-id"},Gx={type:n.GenericReference,id:"exec-sequentially-result-variable-called-by-ref-id",version:"1",entityType:n.Operation,entityId:da},eR={id:"exec-sequentially-result-variable-id",type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Su,readsValue:gx,defaultValue:null,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Gx],successCalls:[],errorCalls:[],internalCalls:[],parent:$x,x:0,y:0},Fx={id:"exec-sequentially-return-map-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Bd,writesValues:[eR],index:0,parent:Ux},xx={type:n.GenericReference,id:"exec-sequentially-argument-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:da},kx={id:kb,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Vd,name:null,description:null,readsValue:Xb,defaultValue:null,index:0,parent:xx},Zx={type:n.GenericReference,id:"exec-sequentially-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},qx={type:n.GenericReference,id:"exec-sequentially-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Ht},Jx={id:da,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:or,inputs:[kx],process:null,outputs:[Fx],successCalls:[Kb,eR],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[qx],calledBySuccess:[],error:null,parent:Zx},Sx={type:n.GenericReference,id:"concurrency-and-wait-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},Wx={type:n.FunctionDeclaration,id:Ht,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Execute with concurrency and wait",description:"Executes a hardcoded list of actions in parallel and waits for some time before ending the logic with some unrelated data payload as the result.",inputs:[],calls:[Jx,jx,QF],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:Sx},zx={type:n.GenericReference,id:"3521f2c8-a5c0-419c-8808-4fc6a73d0b78",version:"1",entityType:n.ReturnDeclaration,entityId:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},Yx={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"ce8b9a30-afe9-4d4f-879f-1677efca2c47",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,isList:!1,asType:!1,parent:zx},Hx={type:n.GenericReference,id:"8ee66e38-b060-474e-a503-594063a8ec24",version:"1",entityType:n.ReturnStatement,entityId:"40a23a98-d3b2-42b1-9652-b33779ad15aa"},Kx={constant:!0,isError:!1,id:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Created company",description:"The new company that was created",defaultValue:null,implements:null,dataType:Yx,readsValue:null,required:!0,index:0,parent:Hx},Xx={type:n.GenericReference,id:"9cb3c1e4-7250-4be6-be2a-69c2dd366d6f",version:"1",entityType:n.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},Qx={type:n.GenericReference,id:"c065fcdd-e054-4f95-941c-7eaa65c35d04",version:"1",entityType:n.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},ek={type:n.ReturnStatement,id:"40a23a98-d3b2-42b1-9652-b33779ad15aa",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Kx],calledByError:[],calledByEntry:[Qx],calledBySuccess:[],throws:null,x:0,y:0,parent:Xx},tk={type:n.GenericReference,id:"312ef836-9e40-4d57-b177-03b7145ed074",version:"1",entityType:n.Project,entityId:fe},ik={type:n.FunctionDeclaration,id:"5059c093-eda2-4efc-b7b4-aaaadd4d44de",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Create new company",description:null,inputs:[],calls:[ek],index:null,implements:null,collapsed:!1,private:!1,x:0,y:0,parent:tk},zu="get-current-date-and-time-func-decl-id",tR="get-current-date-and-time-return-statement-id",Yu="get-current-date-and-time-return-declaration-id",rk="get-current-date-and-time-return-declaration-data-type-id",nk={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-value-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:Yu},sk={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-parent-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:Yu},ak={staticEntities:null,interactiveEntities:null,actionEntities:null,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:rk,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Fi,asType:!1,isList:!1,like:!1,inferred:!1,parent:sk},ok={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-parent-ref-id",version:"1",entityType:n.ReturnStatement,entityId:tR};n.ReturnDeclaration,n.LiteralValue,L.Date,vt.CurrentDateAndTime;const lk={type:n.GenericReference,id:"get-current-date-and-time-return-statement-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:zu},dk={type:n.GenericReference,id:"get-current-date-and-time-return-statement-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:zu};n.ReturnStatement;const uk={type:n.GenericReference,id:"concurrency-and-wait-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},pk={type:n.FunctionDeclaration,id:zu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Get current date and time",description:"Generates and returns the current date and time at the time of the execution",inputs:[],calls:[],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:uk},ck={type:n.GenericReference,id:"a2db26be-57f2-48e5-9769-cdbf0d95dc7c",version:"1",entityType:n.VariableDeclaration,entityId:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a"},fk={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"c3e9d5f0-204f-45f9-85f7-e1b56b468388",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:ck},yk={type:n.GenericReference,id:"692122c5-610a-4504-90dd-f5a5202d116c",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},hk={type:n.GenericReference,id:"do-math-func-return-one-called-by",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},mk={type:n.GenericReference,id:"6dceb501-be5b-4252-afb4-3c0d08abba33",version:"1",entityType:n.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},iR={constant:!0,required:!0,type:n.VariableDeclaration,id:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Result",dataType:fk,description:null,defaultValue:null,readsValue:mk,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[hk],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:yk},vk={type:n.GenericReference,id:"5440f523-af38-4981-8035-89d162fe8041",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Tk={type:n.GenericReference,id:"8c482c35-e674-4713-a1dd-63c3d13b611c",version:"1",entityType:n.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},Ek={type:n.GenericReference,id:"c0a299cd-5869-4930-8cf0-90e3ceb8a903",version:"1",entityType:n.VariableDeclaration,entityId:"46b2fe23-b417-4887-a35d-09b186679172"},Ik={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"51c0c1df-2ee3-41df-ae52-ac512d8cf795",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:Ek},Ak={type:n.GenericReference,id:"do-math-func-return-two-called-by",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},rR={constant:!0,required:!0,type:n.VariableDeclaration,id:"46b2fe23-b417-4887-a35d-09b186679172",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Total",description:null,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Ak],successCalls:[],errorCalls:[],dataType:Ik,readsValue:Tk,writesValues:[],internalCalls:[],parent:vk,x:0,y:0},nR="do-math-return-statement-id",Hu="do-math-return-declaration-id",bk={type:n.GenericReference,id:"do-math-func-var-to-return-one-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"do-math-func-var-to-return-one-id"},Rk={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"do-math-func-var-to-return-one-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,asType:!1,isList:!1,parent:bk},Dk={type:n.GenericReference,id:"do-math-func-decl-ref-two-id",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Ok={type:n.GenericReference,id:"do-math-func-var-to-return-one-map-ref-id",version:"1",entityType:n.ReturnDeclaration,entityId:Hu},Pk={constant:!0,required:!0,type:n.VariableDeclaration,id:"do-math-func-var-to-return-one-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,description:null,name:"Fixed result",defaultValue:null,dataType:Rk,readsValue:null,writesValues:[Ok],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:Dk},wk={type:n.GenericReference,id:"96ec244e-594b-45f7-802b-6dc3056920f6",version:"1",entityType:n.ReturnStatement,entityId:nR},Ck={type:n.GenericReference,id:"d120c0cc-9d13-4e45-90e2-4e1ee825ca46",version:"1",entityType:n.ReturnDeclaration,entityId:Hu},Vk={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"da91aa23-9985-49ac-a8bf-9d623ba1ba8f",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:Ck},Bk={constant:!0,isError:!1,id:Hu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:"Result",description:null,implements:null,defaultValue:null,dataType:Vk,readsValue:Pk,required:!0,index:0,parent:wk},_k={type:n.GenericReference,id:"57fd93e4-93a1-484e-82eb-4dd15d2d0e24",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Mk={type:n.GenericReference,id:"0a86e8d5-ab21-476e-a482-b928cbf351e3",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Nk={type:n.ReturnStatement,id:nR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,outputs:[Bk],calledByError:[],calledByEntry:[],calledBySuccess:[_k],parent:Mk,throws:null,x:0,y:0},sR={type:n.GenericReference,id:"6e4d776e-6af2-4321-b630-c78110fd677c",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Lk={type:n.GenericReference,id:"5b60955b-2486-40b6-bb24-ffd97ccd8902",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},jk={type:n.GenericReference,id:"1a49923f-bc6f-453f-a438-e74e5475c2a9",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Uk={type:n.GenericReference,id:"02bfde0a-b757-4072-9613-6e9c7c9a424a",version:"1",entityType:n.ArgumentDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},aR={id:"928953b0-0e3f-4d8c-ae5a-84620b4b8c68",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:yd,name:null,description:null,readsValue:Uk,defaultValue:null,index:0,parent:jk},$k={id:"64752080-ee0f-4cfe-9897-a0668f2b2aca",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:vd,writesValues:[iR,rR],index:0,parent:Lk},gk={type:n.GenericReference,id:"d235a7f6-07ff-4f35-98d2-8f42dd59cf9f",version:"1",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Gk={id:"8827e8e9-9381-4ad7-8f61-5419c23c9136",type:n.GenericReference,version:"1",entityType:n.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},oR={id:"a5525249-0eb5-472b-97bc-5e4cc0d75aee",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:hd,name:null,description:null,readsValue:Gk,defaultValue:null,index:1,parent:gk},Fk={type:n.Operation,id:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e",declaration:Ya,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,inputs:[aR,oR],outputs:[$k],calledByError:[],calledByEntry:[sR],calledBySuccess:[],process:null,successCalls:[Nk,iR,rR],errorCalls:[],parent:sR,error:null,x:0,y:0},xk={type:n.GenericReference,id:"a2c40226-2270-4963-a865-c777ba79c551",version:"1",entityType:n.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},kk={id:"f47731b3-f278-4ab5-aeb2-24519c1119fb",type:n.GenericReference,entityId:"72a338d8-0183-4ca2-8760-227517854595",version:"1",entityType:n.ArgumentDeclaration},lR={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"a350a9e9-25ee-477f-a83d-9e98ed2451662",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:kk},Zk={type:n.GenericReference,id:"5f5d8dd0-7f3b-40cd-9f84-83d976887eaf",version:"1",entityType:n.ArgumentDeclaration,entityId:"649bf0a4-6532-44aa-9818-a03d1c6564e9"},qk={type:n.GenericReference,id:"ca018d0f-a8b3-4c7e-a408-c8b372d04aff",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Jk={type:n.GenericReference,id:"do-math-func-var-called-by-ref",version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},dR={constant:!0,required:!0,id:"72a338d8-0183-4ca2-8760-227517854595",type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Z",description:null,defaultValue:{id:"do-math-func-argument-two-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:1,name:L.Number,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:xk},dataType:lR,inputs:[],outputs:[],calledByError:[],calledByEntry:[Jk],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:Zk,writesValues:[oR],internalCalls:[],x:0,y:0,parent:qk},Sk={version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",type:n.GenericReference,id:"af0cf105-4075-425f-aecc-b25d3600fcc4"},Wk={constant:!0,id:"649bf0a4-6532-44aa-9818-a03d1c6564e9",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Z",description:"The number to add",defaultValue:null,dataType:lR,implements:null,writesValues:[dR],required:!0,index:1,parent:Sk},zk={type:n.GenericReference,id:"56953b5d-3e43-4dea-a62c-f3e868ba81bb",version:"1",entityType:n.Project,entityId:fe},Yk={id:"868defc8-5c95-48ed-942d-257e8b9b9b00",type:n.GenericReference,version:"1",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Hk={type:n.GenericReference,id:"35167664-a793-49f1-9eaf-fb57eac30897",version:"1",entityType:n.VariableDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},Kk={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:n.GenericReference,entityId:"d8895765-f705-457e-85fa-25d130926769",version:"1",entityType:n.ArgumentDeclaration},Xk={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:Kk},Qk={constant:!0,id:"d8895765-f705-457e-85fa-25d130926769",type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"N",dataType:Xk,description:"The number to add",implements:null,defaultValue:{id:"do-math-func-argument-one-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:5,name:L.Number,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null,parent:Hk},writesValues:[aR],required:!0,index:0,parent:Yk},e9={type:n.FunctionDeclaration,id:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Do math",description:"This function does math",inputs:[Qk,Wk],calls:[Fk,dR],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:zk},Kt="replace-bank-account-in-company-func-declaration-id",Ku="company-entity-to-modify-arg-declaration-id",Xu="account-number-to-create-arg-decl-id",ps="company-main-variable-id",cs="search-person-by-id-id",uR="new-bank-account-owner-arg-decl-id",pR="search-person-by-id-output-declaration-id",Qu="search-person-by-id-output-entity-map-id",ua="person-not-empty-condition-id",sl="create-new-bank-account-instance-operation-id",cR="create-new-bank-account-instance-operation-output-entity-map-id",fR="company-bank-account-output-map-id",ep="old-bank-account-var-declaration-id",yR="old-bank-account-var-instance-id",hR="company-variable-instance-id",tp="delete-bank-account-internal-call-id",pa="new-bank-account-data-variable-declaration-id",t9={type:n.GenericReference,id:"company-variable-instance-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},i9={type:n.GenericReference,id:"company-variable-instance-called-by-ref-id",version:"1",entityType:n.InternalCall,entityId:tp},r9={type:n.GenericReference,id:"company-variable-instance-declaration-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ps},n9={type:n.GenericReference,id:"bank-account-input-map-parent-ref-id",version:"1",entityType:n.VariableInstance,entityId:hR},s9={type:n.GenericReference,id:"bank-account-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:cR},mR={type:n.InputMap,id:"bank-account-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,readsValue:s9,declaration:Pu,name:null,description:null,index:0,defaultValue:null,parent:n9},a9={type:n.VariableInstance,id:hR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:r9,inputs:[mR],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[i9],successCalls:[],errorCalls:[],internalCalls:[],parent:t9,readsValue:null,writesValues:[],x:0,y:0},o9={type:n.GenericReference,id:"bank-account-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ps},l9={type:n.DataType,staticEntities:null,interactiveEntities:null,actionEntities:null,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"bank-account-variable-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:as,asType:!1,isList:!1,like:!1,inferred:!1,parent:o9},d9={type:n.GenericReference,id:"bank-account-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:fR},u9={type:n.GenericReference,id:"bank-account-variable-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},p9={type:n.GenericReference,id:"bank-account-variable-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ps},c9={type:n.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-id",version:"1",entityType:n.Operation,entityId:sl};n.GenericReference,n.VariableInstance;const f9={type:n.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-two-id",version:"1",entityType:n.VariableDeclaration,entityId:ep},y9={type:n.GenericReference,id:"old-bank-account-variable-trigger-delete-decl-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ep},h9={type:n.GenericReference,id:"bank-account-variable-parent-ref-two-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},m9={type:n.GenericReference,id:"old-bank-account-variable-trigger-delete-internal-call-ref-id",version:"1",entityType:n.InternalCall,entityId:tp},v9={type:n.VariableInstance,id:yR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:y9,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],internalCalls:[m9],errorCalls:[],parent:h9,readsValue:null,writesValues:[],x:0,y:0},vR={process:null,type:n.InternalCall,id:tp,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:eu,index:0,successCalls:[a9],errorCalls:[],inputs:[],outputs:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[c9,f9],parent:v9},TR={constant:!0,required:!0,type:n.VariableDeclaration,id:ep,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Old bank account",description:"The existing bank account that needs to be replaced in the company entity",dataType:l9,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[p9],successCalls:[vR],internalCalls:[],errorCalls:[],parent:u9,readsValue:d9,writesValues:[],x:0,y:0},T9={type:n.GenericReference,id:"company-variable-declaration-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ps},E9={type:n.DataType,staticEntities:null,interactiveEntities:null,actionEntities:null,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,id:"company-variable-declaration-data-type-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Oi,asType:!1,isList:!1,like:!1,inferred:!1,parent:T9},I9={type:n.GenericReference,id:"company-variable-declaration-reads-value-ref-id",version:"1",entityType:n.ArgumentDeclaration,entityId:Ku},A9={type:n.GenericReference,id:"company-variable-declaration-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},b9={type:n.GenericReference,id:"company-variable-declaration-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},R9={type:n.GenericReference,id:"company-bank-account-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:ps},D9={id:fR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:Pu,index:0,parent:R9,writesValues:[TR]},ER={constant:!0,required:!0,type:n.VariableDeclaration,id:ps,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",description:"The company entity that was passed as an argument to the parent function",defaultValue:null,dataType:E9,inputs:[],outputs:[D9],calledByError:[],calledByEntry:[b9],calledBySuccess:[],successCalls:[TR],errorCalls:[],parent:A9,internalCalls:[],readsValue:I9,writesValues:[],x:0,y:0},O9={type:n.GenericReference,id:"create-new-bank-account-account-owner-dynamic-input-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:pa},P9={id:"create-new-bank-account-account-owner-dynamic-input-map-reads-value-ref-id",type:n.GenericReference,version:"1",entityType:n.OutputMap,entityId:Qu},IR={id:"create-new-bank-account-account-owner-dynamic-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:null,name:"Account owner",description:null,readsValue:P9,index:1,defaultValue:null,parent:O9},w9={id:"create-new-bank-account-account-number-dynamic-input-map-reads-value-ref-id",type:n.GenericReference,version:"1",entityType:n.ArgumentDeclaration,entityId:Xu},C9={type:n.GenericReference,id:"create-new-bank-account-account-number-dynamic-input-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:pa},AR={id:"create-new-bank-account-account-number-dynamic-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:null,name:"Account number",description:null,readsValue:w9,defaultValue:null,index:0,parent:C9},bR={type:n.GenericReference,id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:sl},V9={id:"create-new-bank-account-instance-operation-entity-to-create-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:un.inputs[0],name:null,description:null,index:0,readsValue:null,defaultValue:{id:"create-new-bank-account-instance-operation-entity-to-create-input-map-default-value-id",type:n.LiteralValue,name:L.EntityTemplate,value:null,valueAsTypeSingle:as,valueAsTypeList:null,autogeneration:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,parent:{entityId:"create-new-bank-account-instance-operation-entity-to-create-input-map-id",entityType:n.InputMap,version:"1",id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",type:n.GenericReference}},parent:bR},B9={type:n.GenericReference,id:"create-new-bank-account-instance-operation-entity-data-input-map-reads-value-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:pa},RR={id:"create-new-bank-account-instance-operation-entity-data-input-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:un.inputs[1],name:null,description:null,index:1,readsValue:B9,defaultValue:null,parent:bR},_9={type:n.GenericReference,id:"create-new-bank-account-instance-operation-output-entity-map-parent-ref-id",version:"1",entityType:n.Operation,entityId:sl},M9={id:cR,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.OutputMap,defaultValue:null,declaration:un.outputs[0],index:0,writesValues:[mR],parent:_9},N9={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:n.Condition,entityId:ua},L9={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:pa},j9={type:n.GenericReference,id:"create-new-bank-account-instance-operation-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},DR={process:null,id:sl,type:n.Operation,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:un,inputs:[V9,RR],error:null,outputs:[M9],successCalls:[vR],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[L9,N9],parent:j9,x:0,y:0},U9={type:n.GenericReference,id:"new-bank-account-data-variable-declaration-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},$9={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",version:"1",entityType:n.Condition,entityId:ua},g9={constant:!0,required:!0,id:pa,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,inputs:[AR,IR],dataType:null,name:"New bank Account's data",description:null,readsValue:null,outputs:[],writesValues:[RR],successCalls:[DR],errorCalls:[],internalCalls:[],calledByError:[],calledBySuccess:[$9],calledByEntry:[],x:0,y:0,parent:U9},G9={id:"person-not-found-thrown-error-datatype-default-value-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-thrown-error-id",version:"1",entityType:n.ReturnDeclaration},F9={id:"person-not-found-thrown-error-datatype-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-thrown-error-id",version:"1",entityType:n.ReturnDeclaration},x9={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"person-not-found-thrown-error-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:F9},k9={id:"person-not-found-thrown-error-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-error-return-statement-id",version:"1",entityType:n.ReturnStatement},Z9={constant:!0,isError:!0,id:"person-not-found-thrown-error-id",type:n.ReturnDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:x9,name:"Person not found error",description:"If the person entity was not found this error is outputted",defaultValue:{id:"person-not-found-thrown-error-datatype-default-value-id",type:n.LiteralValue,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Person not found",name:L.String,parent:G9,valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:null},parent:k9,implements:null,required:!0,index:0,readsValue:null},q9={id:"person-not-found-error-return-statement-called-by-ref-id",type:n.GenericReference,entityId:ua,version:"1",entityType:n.Condition},J9={id:"person-not-found-error-return-statement-parent-ref-id",type:n.GenericReference,entityId:Kt,version:"1",entityType:n.FunctionDeclaration},S9={id:"person-not-found-error-return-statement-id",type:n.ReturnStatement,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,throws:Z9,outputs:[],calledBySuccess:[],calledByError:[q9],calledByEntry:[],x:0,y:0,parent:J9},W9={type:n.GenericReference,id:"person-not-empty-condition-called-by-ref-id",version:"1",entityType:n.Search,entityId:cs},z9={type:n.GenericReference,id:"person-not-empty-condition-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},Y9={type:n.GenericReference,id:"person-entity-to-check-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:Qu},H9={type:n.GenericReference,id:"person-not-empty-condition-ref-two-id",version:"1",entityType:n.Condition,entityId:ua},OR={id:"person-entity-to-check-map-id",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,type:n.InputMap,declaration:mn.inputs[0],name:null,description:null,readsValue:Y9,index:0,defaultValue:null,parent:H9},K9={type:n.Condition,id:ua,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:mn,inputs:[OR],calledByError:[],calledByEntry:[],calledBySuccess:[W9],successCalls:[g9,DR],errorCalls:[S9],x:0,y:0,parent:z9},X9={type:n.GenericReference,id:"search-person-by-id-output-entity-declaration-datatype-parent-ref-id",version:"1",entityType:n.ValueDescriptor,entityId:pR},Q9={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"search-person-by-id-output-entity-declaration-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,isList:!1,asType:!1,entity:Yt,parent:X9},e8={type:n.GenericReference,id:"search-person-by-id-output-entity-declaration-parent-ref-id",version:"1",entityType:n.Search,entityId:cs},PR={id:pR,type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,dataType:Q9,name:"Found person",description:"The person entity that was found",parent:e8,required:!0,index:0},t8={type:n.GenericReference,id:"search-person-by-id-output-entity-map-parent-ref-id",version:"1",entityType:n.Search,entityId:cs},i8={type:n.OutputMap,id:Qu,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:PR,parent:t8,writesValues:[OR,IR],index:0},r8={id:"search-person-by-id-input-declaration-datatype-parent-ref-id",type:n.GenericReference,entityId:"search-person-by-id-input-declaration-id",version:"1",entityType:n.ArgumentDeclaration};n.DataType;const n8={type:n.GenericReference,id:"search-person-by-id-input-declaration-parent-ref-id",version:"1",entityType:n.Search,entityId:cs},wR={id:"search-person-by-id-input-declaration-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,dataType:null,defaultValue:null,name:"Person ID",description:"The unique identifier (ID) property of the person entity",parentRelationType:N.FixedArguments,index:0,required:!0,parent:n8},s8={type:n.GenericReference,id:"search-person-by-id-input-map-parent-ref-id",version:"1",entityType:n.Search,entityId:cs},a8={id:"search-person-by-id-input-map-reads-value-ref-id",type:n.GenericReference,entityId:uR,version:"1",entityType:n.ArgumentDeclaration},CR={type:n.InputMap,id:"search-person-by-id-input-map",version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:wR,name:null,description:null,readsValue:a8,defaultValue:null,parent:s8,index:0},o8="SELECT * FROM Person WHERE id = your_id;",l8={type:n.GenericReference,id:"search-person-by-id-parent-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},d8={type:n.GenericReference,id:"search-person-by-id-called-by-ref-id",version:"1",entityType:n.FunctionDeclaration,entityId:Kt},u8={type:n.Search,id:cs,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Search person by ID",description:"Searches for a person entity given the UUID",query:o8,inputsDeclarations:[wR],inputs:[CR],outputsDeclarations:[PR],outputs:[i8],calledByError:[],calledByEntry:[d8],calledBySuccess:[],error:null,successCalls:[K9],errorCalls:[],parent:l8,x:0,y:0};n.GenericReference,n.DataType;const p8={id:"account-number-to-create-arg-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:Xu,version:"1",entityType:n.ArgumentDeclaration},c8={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"account-number-to-create-arg-decl-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ae,isList:!1,asType:!1,parent:p8},f8={version:"1",entityType:n.FunctionDeclaration,entityId:Kt,type:n.GenericReference,id:"account-number-to-create-arg-decl-parent-ref-id"},y8={constant:!0,id:Xu,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Account number",description:"The account number of the new bank account entity",defaultValue:null,dataType:c8,implements:null,writesValues:[AR],required:!0,index:1,parent:f8};n.GenericReference,n.DataType;const h8={id:"new-bank-account-owner-arg-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:"new-bank-account-owner-arg-decl-id",version:"1",entityType:n.ArgumentDeclaration},m8={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"new-bank-account-owner-arg-decl-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:sr,isList:!1,asType:!1,parent:h8},v8={version:"1",entityType:n.FunctionDeclaration,entityId:Kt,type:n.GenericReference,id:"new-bank-account-owner-arg-decl-parent-ref-id"},T8={constant:!0,id:uR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"New account owner ID",description:"If it has changed, this is the new person entity, that owns of the bank account",defaultValue:null,dataType:m8,implements:null,writesValues:[CR],required:!1,index:1,parent:v8},E8={type:n.GenericReference,id:"replace-bank-account-in-company-parent-ref",version:"1",entityType:n.Project,entityId:fe},I8={type:n.GenericReference,id:"company-entity-to-modify-parent-ref",version:"1",entityType:n.FunctionDeclaration,entityId:Kt};n.GenericReference,n.DataType;const A8={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:n.GenericReference,entityId:Ku,version:"1",entityType:n.ArgumentDeclaration},b8={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"company-entity-to-modify-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:ve,isList:!1,asType:!1,parent:A8},R8={constant:!0,id:Ku,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company",defaultValue:null,dataType:b8,implements:null,description:"The company to replace the bank account for",writesValues:[ER],required:!0,index:0,parent:I8},D8={type:n.FunctionDeclaration,id:Kt,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Replace bank account",description:"This action takes an existing company and data to create a new bank account entity. It then creates a bank account, deletes the old one, and updates the company with the new bank account",inputs:[R8,y8,T8],index:null,implements:null,calls:[u8,ER],collapsed:!1,private:!1,x:0,y:0,parent:E8},O8={type:n.GenericReference,id:"e0a937bd-3a85-4037-a973-916985b9f94b",version:"1",entityType:n.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},P8={type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,id:"6bedb217-f844-4332-af72-9626b2a32511",name:"Some library main function",description:null,inputs:[],calls:[],implements:null,collapsed:!0,index:null,private:!1,parent:O8,x:0,y:0},w8={type:n.GenericReference,id:"948e6869-ae5b-4914-bea0-b9f02ad6a014",version:"1",entityType:n.Project,entityId:fe},C8={type:n.InstalledProject,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,id:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6",name:"Third Party Installed Project",description:null,functions:[P8],events:[],implements:null,parent:w8,x:0,y:0},ip="global-counted-test-loop-id",VR="global-counted-test-loop-body-id",BR="global-counted-test-loop-body-current-iteration-value-argument-declaration-id",V8={type:n.GenericReference,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:BR,version:"1",entityType:n.ArgumentDeclaration},B8={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:V8},_8={id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:VR,version:"1",entityType:n.FunctionDeclaration},M8={constant:!0,id:BR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:B8,implements:xd,required:!0,index:0,writesValues:[],parent:_8},N8={id:"global-counted-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:ip,version:"1",entityType:n.Loop},L8={id:VR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[M8],calls:[],implements:po,collapsed:!1,private:!1,index:0,x:0,y:0,parent:N8},fs="random-company-employee-test-variable-id",rp="manager-global-variable-id",_R="global-user-instance-id",zi="employee-mapped-dto-variable-id",On="employee-mapped-dto-variable-instance-id",MR="random-employee-id-output-map-id",NR="random-employee-birth-date-output-map-id",LR="random-employee-department-output-map-id",jR="random-employee-manager-output-map-id",UR="manager-global-id-output-map-id",$R="global-user-instance-id-output-map-id",j8="employee-mapped-dto-requester-id-input-map-id",gR="employee-mapped-dto-now-timestamp-input-map-id",U8="employee-mapped-dto-id-input-map-id",$8="employee-mapped-dto-birth-date-input-map-id",g8="employee-mapped-dto-department-input-map-id",G8="employee-mapped-dto-manager-input-map-id",F8={id:"global-counted-test-loop-iteration-number-input-map-parent-ref-id",type:n.GenericReference,entityId:ip,version:"1",entityType:n.Loop};n.GenericReference,n.VariableDeclaration;const x8={id:"global-counted-test-loop-iteration-number-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Us.inputs[0],defaultValue:null,readsValue:null,index:0,parent:F8},k8={id:"global-counted-test-loop-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},Z8={id:"global-counted-test-loop-called-by-success-ref-id",type:n.GenericReference,entityId:On,version:"1",entityType:n.VariableDeclaration},GR={id:ip,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Us,inputs:[x8],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:L8,calledByError:[],calledByEntry:[],calledBySuccess:[Z8],error:null,x:0,y:0,parent:k8},np="global-object-keys-test-loop-id",FR="global-object-keys-test-loop-body-id",xR="global-object-keys-test-loop-body-current-iteration-value-argument-declaration-id",q8={type:n.GenericReference,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:xR,version:"1",entityType:n.ArgumentDeclaration},J8={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:q8},S8={id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:FR,version:"1",entityType:n.FunctionDeclaration},W8={constant:!0,id:xR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:J8,implements:Ud,required:!0,index:0,writesValues:[],parent:S8},z8={id:"global-object-keys-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:np,version:"1",entityType:n.Loop},Y8={id:FR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[W8],calls:[],implements:Sn,collapsed:!1,private:!1,index:0,x:0,y:0,parent:z8},H8={id:"global-object-keys-test-loop-iteration-object-input-map-parent-ref-id",type:n.GenericReference,entityId:np,version:"1",entityType:n.Loop},K8={id:"global-object-keys-test-loop-iteration-object-input-map-reads-value-ref-id",type:n.GenericReference,entityId:zi,version:"1",entityType:n.VariableDeclaration},kR={id:"global-object-keys-test-loop-iteration-object-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Sn.inputs[0],defaultValue:null,readsValue:K8,index:0,parent:H8},X8={id:"global-object-keys-test-loop-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},Q8={id:"global-object-keys-test-loop-called-by-success-ref-two-id",type:n.GenericReference,entityId:On,version:"1",entityType:n.VariableDeclaration},e6={id:"global-object-keys-test-loop-called-by-success-ref-one-id",type:n.GenericReference,entityId:zi,version:"1",entityType:n.VariableDeclaration},sp={id:np,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Sn,inputs:[kR],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:Y8,calledByError:[],calledByEntry:[],calledBySuccess:[e6,Q8],error:null,x:0,y:0,parent:X8},ap="global-object-values-test-loop-id",ZR="global-object-values-test-loop-body-id",qR="global-object-values-test-loop-body-current-iteration-value-argument-declaration-id",t6={type:n.GenericReference,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:qR,version:"1",entityType:n.ArgumentDeclaration},i6={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:t6},r6={id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:ZR,version:"1",entityType:n.FunctionDeclaration},n6={constant:!0,id:qR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:i6,implements:gd,required:!0,index:0,writesValues:[],parent:r6},s6={id:"global-object-values-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:ap,version:"1",entityType:n.Loop},a6={id:ZR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[n6],calls:[],implements:Wn,collapsed:!1,private:!1,index:0,x:0,y:0,parent:s6},o6={id:"global-object-values-test-loop-iteration-object-input-map-parent-ref-id",type:n.GenericReference,entityId:ap,version:"1",entityType:n.Loop},l6={id:"global-object-values-test-loop-iteration-object-input-map-reads-value-ref-id",type:n.GenericReference,entityId:On,version:"1",entityType:n.VariableDeclaration},JR={id:"global-object-values-test-loop-iteration-object-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Wn.inputs[0],defaultValue:null,readsValue:l6,index:0,parent:o6},d6={id:"global-object-values-test-loop-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},u6={id:"global-object-values-test-loop-called-by-success-ref-id",type:n.GenericReference,entityId:On,version:"1",entityType:n.VariableInstance},SR={id:ap,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Wn,inputs:[JR],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:a6,calledByError:[],calledByEntry:[],calledBySuccess:[u6],error:null,x:0,y:0,parent:d6},op="global-test-iterate-over-string-loop-id",lp="global-test-iterate-over-string-loop-body-id",al="global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-id",WR="global-test-iterate-over-string-loop-iteration-list-input-map-id",p6={type:n.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:al,version:"1",entityType:n.ArgumentDeclaration},c6={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:p6},f6={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:lp,version:"1",entityType:n.FunctionDeclaration},y6={constant:!0,id:al,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current character",description:"The current character value being processed.",defaultValue:null,dataType:c6,implements:Ld,required:!0,index:1,writesValues:[],parent:f6},h6={type:n.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:al,version:"1",entityType:n.ArgumentDeclaration},m6={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:h6},v6={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:lp,version:"1",entityType:n.FunctionDeclaration},T6={constant:!0,id:al,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current character",description:"The current character value being processed.",defaultValue:null,dataType:m6,implements:jd,required:!0,index:0,writesValues:[],parent:v6},E6={id:"global-test-iterate-over-string-loop-body-parent-ref-id",type:n.GenericReference,entityId:op,version:"1",entityType:n.Loop},I6={id:lp,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[T6,y6],calls:[],implements:lo,collapsed:!1,private:!1,index:0,x:0,y:0,parent:E6},A6={id:"global-test-iterate-over-string-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:op,version:"1",entityType:n.Loop},b6={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-parent-ref-id",type:n.GenericReference,entityId:WR,version:"1",entityType:n.InputMap},R6={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-id",type:n.LiteralValue,name:L.String,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:"Hello",valueAsTypeList:null,valueAsTypeSingle:null,autogeneration:{type:vt.Random,rangeStart:4,rangeEnd:5},parent:b6},D6={id:WR,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Ls.inputs[0],defaultValue:R6,readsValue:null,index:0,parent:A6},O6={id:"global-test-iterate-over-string-loop-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},P6={id:op,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Ls,inputs:[D6],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:I6,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,x:0,y:0,parent:O6},dp="iterate-over-list-loop-id",zR="iterate-over-list-loop-body-id",YR="iterate-over-list-loop-body-current-iteration-value-argument-declaration-id",w6={type:n.GenericReference,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:YR,version:"1",entityType:n.ArgumentDeclaration},C6={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:null,isList:!1,asType:!1,parent:w6},V6={id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:zR,version:"1",entityType:n.FunctionDeclaration},B6={constant:!0,id:YR,type:n.ArgumentDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:C6,implements:uo,required:!0,index:0,writesValues:[],parent:V6},_6={id:"iterate-over-list-loop-body-parent-ref-id",type:n.GenericReference,entityId:dp,version:"1",entityType:n.Loop},M6={id:zR,type:n.FunctionDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[B6],calls:[],implements:js,collapsed:!1,private:!1,index:0,x:0,y:0,parent:_6},N6={id:"iterate-over-list-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:dp,version:"1",entityType:n.Loop},L6={id:"iterate-over-list-loop-iteration-list-input-map-id",type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:null,description:null,declaration:Or.inputs[0],defaultValue:null,readsValue:null,index:0,parent:N6},j6={id:"iterate-over-list-loop-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},U6={id:dp,type:n.Loop,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:Or,inputs:[L6],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:M6,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,x:0,y:0,parent:j6},$6=`SELECT
|
|
2
2
|
Employee.identifier AS EmployeeID,
|
|
3
3
|
Employee.startDate AS startDate,
|
|
4
4
|
User.identifier AS userID,
|
|
@@ -21,7 +21,7 @@ WHERE
|
|
|
21
21
|
AND Employee.manager IS NOT NULL
|
|
22
22
|
OR (Employee.manager = User.identifier AND User.identifier IS NOT NULL)
|
|
23
23
|
ORDER BY Employee.startDate DESC, Employee.department ASC
|
|
24
|
-
LIMIT 10 OFFSET 0;`,g6={id:"find-companies-with-multiple-employees-and-bank-account-search-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},G6={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-parent-ref-id",type:n.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",version:"1",entityType:n.Search},HR={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"companies",description:"List of companies with multiple employees and an existing bank account",defaultValue:null,dataType:null,required:!0,parentRelationType:N.FixedReturns,index:0,parent:G6},F6={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-parent-ref-id",type:n.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",version:"1",entityType:n.Search},x6={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:HR,writesValues:[],index:0,parent:F6},k6={id:"find-companies-with-multiple-employees-and-bank-account",type:n.Search,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Find companies with multiple employees and a bank account",description:"This search statement finds companies with multiple employees and an existing bank account",inputsDeclarations:[],outputsDeclarations:[HR],inputs:[],outputs:[x6],query:$6,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:g6},Z6={type:n.GenericReference,id:"employee-mapped-dto-manager-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:UR},q6={type:n.GenericReference,id:"employee-mapped-dto-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:zi},KR={id:G8,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"manager_id",description:null,defaultValue:null,index:4,readsValue:Z6,parent:q6},J6={type:n.GenericReference,id:"employee-mapped-dto-department-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:LR},S6={type:n.GenericReference,id:"employee-mapped-dto-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:zi},XR={id:g8,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"department_name",description:null,defaultValue:null,index:3,readsValue:J6,parent:S6},W6={type:n.GenericReference,id:"employee-mapped-dto-birth-date-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:NR},z6={type:n.GenericReference,id:"employee-mapped-dto-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:zi},QR={id:$8,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"birth_date",description:null,defaultValue:null,index:2,readsValue:W6,parent:z6},Y6={type:n.GenericReference,id:"employee-mapped-dto-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:MR},H6={type:n.GenericReference,id:"employee-mapped-dto-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:zi},eD={id:U8,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:Y6,parent:H6},K6={type:n.GenericReference,id:"employee-mapped-dto-requester-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:$R},X6={type:n.GenericReference,id:"employee-mapped-dto-requester-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:zi},tD={id:j8,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"requester_id",description:"The ID of the current user making the request",defaultValue:null,index:0,readsValue:K6,parent:X6},Q6={type:n.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:rp},e3={id:UR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:mi.properties[0],defaultValue:null,index:0,writesValues:[KR],parent:Q6},t3={type:n.GenericReference,id:"manager-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:rp},i3={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"manager-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,asType:!1,isList:!1,parent:t3},r3={type:n.GenericReference,id:"manager-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:jR},n3={type:n.GenericReference,id:"manager-variable-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},iD={constant:!0,required:!0,id:rp,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manager",dataType:i3,description:"A variable holding an inherited manager for testing purposes",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:r3,writesValues:[],inputs:[],outputs:[e3],internalCalls:[],parent:n3,x:0,y:0},s3={type:n.GenericReference,id:"random-company-employee-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:fs},a3={id:jR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Di.properties[2],index:3,writesValues:[iD],parent:s3},o3={type:n.GenericReference,id:"random-company-employee-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:fs},l3={id:LR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Di.properties[0],index:2,writesValues:[XR],parent:o3},d3={type:n.GenericReference,id:"random-company-employee-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:fs},u3={id:NR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Yt.properties[1],index:1,writesValues:[QR],parent:d3},p3={type:n.GenericReference,id:"random-company-employee-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:fs},c3={id:MR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:mi.properties[0],index:0,writesValues:[eD],parent:p3},f3={type:n.GenericReference,id:"random-company-employee-test-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:fs},y3={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"random-company-employee-test-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,asType:!1,isList:!1,parent:f3},h3={type:n.GenericReference,id:"random-company-employee-test-variable-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},m3={constant:!0,required:!0,id:fs,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company employee",dataType:y3,description:"A variable holding a random company employee for testing purposes",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[c3,u3,l3,a3],internalCalls:[],parent:h3,x:0,y:0},v3={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:gR},T3={type:n.LiteralValue,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-id",name:L.Date,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,valueAsTypeList:null,valueAsTypeSingle:null,value:null,autogeneration:{type:vt.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:v3},E3={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-parent-ref-id",version:"1",entityType:n.VariableInstance,entityId:On},I3={id:gR,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"now",description:"The current timestamp when the operation is executed",defaultValue:T3,index:5,readsValue:null,parent:E3},A3={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-decl-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:zi},b3={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-called-by-success-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:zi},R3={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},D3={id:On,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:A3,calledByError:[],calledByEntry:[],calledBySuccess:[b3],successCalls:[sp,SR,GR],errorCalls:[],readsValue:null,writesValues:[JR],inputs:[I3],outputs:[],internalCalls:[],parent:R3,x:0,y:0},O3={type:n.GenericReference,id:"employee-mapped-dto-variable-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},P3={constant:!0,required:!0,id:zi,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[sp,D3],errorCalls:[],readsValue:null,writesValues:[kR],inputs:[tD,eD,QR,XR,KR],outputs:[],internalCalls:[],parent:O3,x:0,y:0},w3={type:n.GenericReference,id:"0e63e617-f9d3-42e8-bde0-1bb0b1df7034",version:"1",entityType:n.VariableDeclaration,entityId:eA},C3={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"e75645ce-d3df-4f07-a897-ae9ef4d917fd",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:Ru,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:w3},V3={type:n.GenericReference,id:"e92a8ff5-3fef-4e0c-8d8f-92c930b2890b",version:"1",entityType:n.Project,entityId:fe},rD={constant:!0,required:!0,id:eA,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current user",description:"The user that is currently logged in",defaultValue:null,dataType:C3,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:V3},B3={type:n.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableInstance,entityId:_R},_3={id:$R,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:mi.properties[0],index:0,writesValues:[tD],parent:B3},M3={type:n.GenericReference,id:"global-user-instance-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},N3={id:_R,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:rD,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[_3],internalCalls:[],parent:M3,x:0,y:0},L3={type:n.GenericReference,id:"is-test-environment-variable-dcl-datatype-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"is-test-environment-variable-dcl-id"},j3={type:n.GenericReference,id:"is-test-environment-variable-dcl-datatype-default-value-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"is-test-environment-variable-dcl-id"},U3={like:!1,staticEntities:!1,interactiveEntities:!1,actionEntities:!1,inferred:!1,id:"is-test-environment-variable-dcl-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:rr,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:L3},$3={type:n.GenericReference,id:"is-test-environment-variable-dcl-main-project-ref-id",version:"1",entityType:n.Project,entityId:fe},nD={constant:!0,required:!0,id:"is-test-environment-variable-dcl-id",type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is test envrioment",description:"Indicates whether the current environment is a test environment or not.",defaultValue:{id:"is-test-environment-variable-dcl-datatype-default-value-id",name:L.Boolean,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,type:n.LiteralValue,autogeneration:{type:vt.Random,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null,parent:j3},dataType:U3,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:$3},g3={type:n.GenericReference,id:"is-test-environment-variable-instance-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},G3={id:"is-test-environment-variable-instance-id",type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:nD,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[],internalCalls:[],parent:g3,x:0,y:0},up={type:n.Project,id:fe,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Mocked project to compile",description:"This project is used to test all sorts of features and edge cases. It is not meant to be used in production. Or to have any functionality that makes sense",projects:[C8],entities:[bu,mi,Ru,Yt,I2,Di,Wo,vA,TA,as,Qj,Oi,WU,Au,yB,n2,Kj],functions:[Wx,FA,Fu,ik,pk,XA,xu,wu,D8,wA,e9],events:[Q2],variableDeclarations:[nD,rD,Su,m3,iD,P3],variableInstances:[G3,N3],conditions:[],operations:[us],functionCalls:[Q$,ug],loops:[U6,sp,SR,P6,GR],searches:[k6]};var sD={exports:{}};(function(r,a){(function(e,t){r.exports=t()})(UC,function(){var e=1e3,t=6e4,i=36e5,s="millisecond",l="second",o="minute",d="hour",u="day",y="week",c="month",E="quarter",I="year",O="date",P="Invalid Date",V=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(me){var ie=["th","st","nd","rd"],Y=me%100;return"["+me+(ie[(Y-20)%10]||ie[Y]||ie[0])+"]"}},B=function(me,ie,Y){var ue=String(me);return!ue||ue.length>=ie?me:""+Array(ie+1-ue.length).join(Y)+me},G={s:B,z:function(me){var ie=-me.utcOffset(),Y=Math.abs(ie),ue=Math.floor(Y/60),te=Y%60;return(ie<=0?"+":"-")+B(ue,2,"0")+":"+B(te,2,"0")},m:function me(ie,Y){if(ie.date()<Y.date())return-me(Y,ie);var ue=12*(Y.year()-ie.year())+(Y.month()-ie.month()),te=ie.clone().add(ue,c),$e=Y-te<0,ge=ie.clone().add(ue+($e?-1:1),c);return+(-(ue+(Y-te)/($e?te-ge:ge-te))||0)},a:function(me){return me<0?Math.ceil(me)||0:Math.floor(me)},p:function(me){return{M:c,y:I,w:y,d:u,D:O,h:d,m:o,s:l,ms:s,Q:E}[me]||String(me||"").toLowerCase().replace(/s$/,"")},u:function(me){return me===void 0}},q="en",W={};W[q]=g;var X="$isDayjsObject",pe=function(me){return me instanceof ri||!(!me||!me[X])},Ee=function me(ie,Y,ue){var te;if(!ie)return q;if(typeof ie=="string"){var $e=ie.toLowerCase();W[$e]&&(te=$e),Y&&(W[$e]=Y,te=$e);var ge=ie.split("-");if(!te&&ge.length>1)return me(ge[0])}else{var ft=ie.name;W[ft]=ie,te=ft}return!ue&&te&&(q=te),te||!ue&&q},Q=function(me,ie){if(pe(me))return me.clone();var Y=typeof ie=="object"?ie:{};return Y.date=me,Y.args=arguments,new ri(Y)},le=G;le.l=Ee,le.i=pe,le.w=function(me,ie){return Q(me,{locale:ie.$L,utc:ie.$u,x:ie.$x,$offset:ie.$offset})};var ri=function(){function me(Y){this.$L=Ee(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[X]=!0}var ie=me.prototype;return ie.parse=function(Y){this.$d=function(ue){var te=ue.date,$e=ue.utc;if(te===null)return new Date(NaN);if(le.u(te))return new Date;if(te instanceof Date)return new Date(te);if(typeof te=="string"&&!/Z$/i.test(te)){var ge=te.match(V);if(ge){var ft=ge[2]-1||0,Rt=(ge[7]||"0").substring(0,3);return $e?new Date(Date.UTC(ge[1],ft,ge[3]||1,ge[4]||0,ge[5]||0,ge[6]||0,Rt)):new Date(ge[1],ft,ge[3]||1,ge[4]||0,ge[5]||0,ge[6]||0,Rt)}}return new Date(te)}(Y),this.init()},ie.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},ie.$utils=function(){return le},ie.isValid=function(){return this.$d.toString()!==P},ie.isSame=function(Y,ue){var te=Q(Y);return this.startOf(ue)<=te&&te<=this.endOf(ue)},ie.isAfter=function(Y,ue){return Q(Y)<this.startOf(ue)},ie.isBefore=function(Y,ue){return this.endOf(ue)<Q(Y)},ie.$g=function(Y,ue,te){return le.u(Y)?this[ue]:this.set(te,Y)},ie.unix=function(){return Math.floor(this.valueOf()/1e3)},ie.valueOf=function(){return this.$d.getTime()},ie.startOf=function(Y,ue){var te=this,$e=!!le.u(ue)||ue,ge=le.p(Y),ft=function(Fn,pi){var ln=le.w(te.$u?Date.UTC(te.$y,pi,Fn):new Date(te.$y,pi,Fn),te);return $e?ln:ln.endOf(u)},Rt=function(Fn,pi){return le.w(te.toDate()[Fn].apply(te.toDate("s"),($e?[0,0,0,0]:[23,59,59,999]).slice(pi)),te)},Nt=this.$W,St=this.$M,Ci=this.$D,Vs="set"+(this.$u?"UTC":"");switch(ge){case I:return $e?ft(1,0):ft(31,11);case c:return $e?ft(1,St):ft(0,St+1);case y:var Gn=this.$locale().weekStart||0,qa=(Nt<Gn?Nt+7:Nt)-Gn;return ft($e?Ci-qa:Ci+(6-qa),St);case u:case O:return Rt(Vs+"Hours",0);case d:return Rt(Vs+"Minutes",1);case o:return Rt(Vs+"Seconds",2);case l:return Rt(Vs+"Milliseconds",3);default:return this.clone()}},ie.endOf=function(Y){return this.startOf(Y,!1)},ie.$set=function(Y,ue){var te,$e=le.p(Y),ge="set"+(this.$u?"UTC":""),ft=(te={},te[u]=ge+"Date",te[O]=ge+"Date",te[c]=ge+"Month",te[I]=ge+"FullYear",te[d]=ge+"Hours",te[o]=ge+"Minutes",te[l]=ge+"Seconds",te[s]=ge+"Milliseconds",te)[$e],Rt=$e===u?this.$D+(ue-this.$W):ue;if($e===c||$e===I){var Nt=this.clone().set(O,1);Nt.$d[ft](Rt),Nt.init(),this.$d=Nt.set(O,Math.min(this.$D,Nt.daysInMonth())).$d}else ft&&this.$d[ft](Rt);return this.init(),this},ie.set=function(Y,ue){return this.clone().$set(Y,ue)},ie.get=function(Y){return this[le.p(Y)]()},ie.add=function(Y,ue){var te,$e=this;Y=Number(Y);var ge=le.p(ue),ft=function(St){var Ci=Q($e);return le.w(Ci.date(Ci.date()+Math.round(St*Y)),$e)};if(ge===c)return this.set(c,this.$M+Y);if(ge===I)return this.set(I,this.$y+Y);if(ge===u)return ft(1);if(ge===y)return ft(7);var Rt=(te={},te[o]=t,te[d]=i,te[l]=e,te)[ge]||1,Nt=this.$d.getTime()+Y*Rt;return le.w(Nt,this)},ie.subtract=function(Y,ue){return this.add(-1*Y,ue)},ie.format=function(Y){var ue=this,te=this.$locale();if(!this.isValid())return te.invalidDate||P;var $e=Y||"YYYY-MM-DDTHH:mm:ssZ",ge=le.z(this),ft=this.$H,Rt=this.$m,Nt=this.$M,St=te.weekdays,Ci=te.months,Vs=te.meridiem,Gn=function(pi,ln,Ja,ud){return pi&&(pi[ln]||pi(ue,$e))||Ja[ln].slice(0,ud)},qa=function(pi){return le.s(ft%12||12,pi,"0")},Fn=Vs||function(pi,ln,Ja){var ud=pi<12?"AM":"PM";return Ja?ud.toLowerCase():ud};return $e.replace(M,function(pi,ln){return ln||function(Ja){switch(Ja){case"YY":return String(ue.$y).slice(-2);case"YYYY":return le.s(ue.$y,4,"0");case"M":return Nt+1;case"MM":return le.s(Nt+1,2,"0");case"MMM":return Gn(te.monthsShort,Nt,Ci,3);case"MMMM":return Gn(Ci,Nt);case"D":return ue.$D;case"DD":return le.s(ue.$D,2,"0");case"d":return String(ue.$W);case"dd":return Gn(te.weekdaysMin,ue.$W,St,2);case"ddd":return Gn(te.weekdaysShort,ue.$W,St,3);case"dddd":return St[ue.$W];case"H":return String(ft);case"HH":return le.s(ft,2,"0");case"h":return qa(1);case"hh":return qa(2);case"a":return Fn(ft,Rt,!0);case"A":return Fn(ft,Rt,!1);case"m":return String(Rt);case"mm":return le.s(Rt,2,"0");case"s":return String(ue.$s);case"ss":return le.s(ue.$s,2,"0");case"SSS":return le.s(ue.$ms,3,"0");case"Z":return ge}return null}(pi)||ge.replace(":","")})},ie.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ie.diff=function(Y,ue,te){var $e,ge=this,ft=le.p(ue),Rt=Q(Y),Nt=(Rt.utcOffset()-this.utcOffset())*t,St=this-Rt,Ci=function(){return le.m(ge,Rt)};switch(ft){case I:$e=Ci()/12;break;case c:$e=Ci();break;case E:$e=Ci()/3;break;case y:$e=(St-Nt)/6048e5;break;case u:$e=(St-Nt)/864e5;break;case d:$e=St/i;break;case o:$e=St/t;break;case l:$e=St/e;break;default:$e=St}return te?$e:le.a($e)},ie.daysInMonth=function(){return this.endOf(c).$D},ie.$locale=function(){return W[this.$L]},ie.locale=function(Y,ue){if(!Y)return this.$L;var te=this.clone(),$e=Ee(Y,ue,!0);return $e&&(te.$L=$e),te},ie.clone=function(){return le.w(this.$d,this)},ie.toDate=function(){return new Date(this.valueOf())},ie.toJSON=function(){return this.isValid()?this.toISOString():null},ie.toISOString=function(){return this.$d.toISOString()},ie.toString=function(){return this.$d.toUTCString()},me}(),tr=ri.prototype;return Q.prototype=tr,[["$ms",s],["$s",l],["$m",o],["$H",d],["$W",u],["$M",c],["$y",I],["$D",O]].forEach(function(me){tr[me[1]]=function(ie){return this.$g(ie,me[0],me[1])}}),Q.extend=function(me,ie){return me.$i||(me(ie,ri,Q),me.$i=!0),Q},Q.locale=Ee,Q.isDayjs=pe,Q.unix=function(me){return Q(1e3*me)},Q.en=W[q],Q.Ls=W,Q.p={},Q})})(sD);var F3=sD.exports;const T=_I(F3);var D=(r=>(r.Error="error",r.Warning="warning",r))(D||{}),$=(r=>(r.InvalidObjectStructure="invalid-object-structure",r.NameNotUniqueInScope="name-not-unique-in-scope",r.EmptyName="empty-name",r.MissingCaller="missing-caller",r.PropertyOverwritesOtherSiblingWithSameName="property-overwrites-other-sibling-with-same-name",r.PropertyOverwritesOtherSiblingWithSameImplementation="property-overwrites-other-sibling-with-same-name",r.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName="property-overwrites-other-implemented-entitys-property-with-same-name",r.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation="property-overwrites-other-implemented-entitys-property-with-same-name",r.PropertyOverwritesOtherExtendedEntitysPropertyWithSameImplementation="property-overwrites-other-extended-entitys-property-with-same-name",r.PropertyOverwritesOtherExtendedEntitysPropertyWithSameName="property-overwrites-other-extended-entitys-property-with-same-name",r.PropertyOverwritesBasePropertyWithSameName="property-overwrites-base-property-with-same-name",r.PropertyOverwritesBasePropertyWithSameImplementation="property-overwrites-base-property-with-same-name",r.MethodOverwritesOtherSiblingWithSameName="method-overwrites-other-sibling-with-same-name",r.MethodOverwritesOtherSiblingWithSameImplementation="method-overwrites-other-sibling-with-same-name",r.MethodOverwritesOtherImplementedEntitysMethodWithSameName="method-overwrites-other-implemented-entitys-method-with-same-name",r.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation="method-overwrites-other-implemented-entitys-method-with-same-name",r.MethodOverwritesOtherExtendedEntitysMethodWithSameImplementation="method-overwrites-other-extended-entitys-method-with-same-name",r.MethodOverwritesOtherExtendedEntitysMethodWithSameName="method-overwrites-other-extended-entitys-method-with-same-name",r.MethodOverwritesBaseMethodWithSameName="method-overwrites-base-method-with-same-name",r.MethodOverwritesBaseMethodWithSameImplementation="method-overwrites-base-method-with-same-name",r.LoopBodyFunctionOverwrite="loop-body-function-overwrite",r.NoOverlapWithImplementedSignature="no-overlap-with-implemented-signature",r.ReaderWriterIncompatibleDataType="reader-writer-incompatible-data-type",r.UnreachableEntity="unreachable-entity",r.InternalCallParentMissingDataType="internal-call-parent-missing-data-type",r.InternalCallParentDeclarationEntityInvalidType="internal-call-parent-declaration-entity-invalid-type",r.InternalCallDeclarationNotFoundInParentDatatypeEntity="internal-call-declaration-not-found-in-parent-datatype-entity",r.InternalCallDeclarationIsNotFunctionDeclaration="internal-call-declaration-is-not-function-declaration",r.InternalCallDeclarationNotInParentDatatypeEntity="internal-call-declaration-not-in-parent-datatype-entity",r))($||{}),R=(r=>(r.RootReference="root-reference",r.ReferencedEntityNotFound="referenced-entity-not-found",r.EntityIdNotUnique="entity-id-not-unique",r.BuiltInEntityGenerated="built-in-entity-generated",r.BuiltInEntityUpdated="built-in-entity-updated",r.BuiltInEntityDeleted="built-in-entity-deleted",r.UnknownEntityType="unknown-entity-type",r.MissingTypeProperty="missing-type-property",r.MissingIdProperty="missing-id-property",r.BuiltInEntityParent="built-in-entity-parent",r.InvalidBuiltInEntityReference="invalid-built-in-entity-reference",r.RecommendedImplementAbstractEntityAction="recommended-implement-abstract-entity-action",r.RecommendedImplementOperationAction="recommended-implement-operation-action",r.RecommendedImplementFunctionCallAction="recommended-implement-function-call-action",r.RecommendedImplementVariableDeclarationAction="recommended-implement-variable-declaration-action",r.RecommendedImplementVariableInstanceAction="recommended-implement-variable-instance-action",r.RecommendedImplementConditionAction="recommended-implement-condition-action",r.InvalidReferenceObjectStructure="invalid-reference-object-structure",r.ContainsSingleButShouldBeReferenceList="contains-single-but-should-be-reference-list",r.ContainsListButShouldReferenceSingle="contains-list-but-should-reference-single",r.InvalidParentReference="invalid-parent-reference",r.InvalidImplementsReference="invalid-implements-reference",r.InvalidExtendsReference="invalid-extends-reference",r.InvalidGenerationActionPayload="invalid-generation-action-payload",r.InvalidReference="invalid-reference",r.InvalidInternalCallParentRelation="invalid-internal-call-parent-relation",r.InvalidUpdateEntityOperation="invalid-update-entity-operation",r.NewEntityWouldOverriteExisting="new-entity-would-overrite-existing",r.InvalidDownstreamPropertyOverride="invalid-downstream-property-override",r.UnrecognizedProperty="unrecognized-property",r.SelfReference="self-reference",r.DuplicateReference="duplicate-reference",r.CallerWithIncompatibleScope="caller-with-incompatible-scope",r.InvalidFunctionDeclarationForFunctionCall="invalid-function-declaration-for-function-call",r.InvalidInputMapDeclaration="invalid-input-map-declaration",r.InvalidActionDescriptorForOperation="invalid-action-descriptor-for-operation",r.InvalidActionDescriptorForCondition="invalid-action-descriptor-for-condition",r.InvalidActionDescriptorForLoop="invalid-action-descriptor-for-loop",r.InvalidInmutablePropertyOverride="invalid-inmutable-property-override",r.OutputOverwrite="output-overwrite",r.InputOverwrite="input-overwrite",r.IncompatibleScope="incompatible-scope",r.InvalidParentUpdate="invalid-parent-update",r.NonInteractiveEntityReferenced="non-interactive-entity-referenced",r.InvalidParentRelationType="invalid-parent-relation-type",r))(R||{}),F=(r=>(r.NoPrimaryKeyProperty="no-primary-key-property",r.ScopeWithoutLogic="scope-without-logic",r.AbstractEntityImplements="abstract-entity-implements",r.ImplementsIncompatibleEntities="implements-incompatible-entities",r.ExtendsIncompatibleEntities="extends-incompatible-entities",r.NonAbstractExtendingAbstractEntity="non-abstract-extending-abstract-entity",r.AbstractExtendingNonAbstractEntity="abstract-extending-non-abstract-entity",r.NonStaticExtendingStaticEntity="non-static-extending-static-entity",r.StaticExtendingNonStaticEntity="static-extending-non-static-entity",r.StaticImplementingNonStaticEntity="static-implementing-non-static-entity",r.NonStaticImplementingStaticEntity="non-static-implementing-static-entity",r.ImplementingNonAbstractEntity="implementing-non-abstract-entity",r.ExtendingNonInteractiveEntity="extending-non-interactive-entity",r.AbstractEntityWithNonAbstractMethods="abstract-entity-with-non-abstract-methods",r.AbstractEntityWithNonAbstractProperties="abstract-entity-with-non-abstract-properties",r.StaticEntityWithNonStaticProperties="static-entity-with-non-static-properties",r.NonStaticPropertyInStaticEntity="non-static-property-in-static-entity",r.AbstractPropertyInNonAbstractEntity="abstract-property-in-non-abstract-entity",r.AbstractMethodInNonAbstractEntity="abstract-method-in-non-abstract-entity",r.IncorrectEntityImplementation="incorrect-entity-implementation",r.IncorrectMethodImplementation="incorrect-method-implementation",r.IncorrectPropertyImplementation="incorrect-property-implementation",r.PropertyImplementsNonAbstact="property-implements-non-abstract",r.NonStaticPropertyImplementsStatic="non-static-property-implements-static",r.StaticPropertyImplementsNonStatic="static-property-implements-non-static",r.PropertyImplementsIncompatibleType="property-implements-incompatible-type",r.MissingPropertyImplementation="missing-property-implementation",r.MissingMethodImplementation="missing-method-implementation",r.NoProperties="no-properties",r.ReadingFromIncompatibleType="reading-from-incompatible-type",r.WritingToIncompatibleType="writing-to-incompatible-type",r.InvalidPropertiesCombination="invalid-properties-combination",r.DisconnectedCallableEntity="disconnected-callable-entity",r.VariableReadsValueAndInternalCall="variable-reads-value-and-internal-call",r.VariableWritesValuesAndInternalCall="variable-writes-values-and-internal-call",r.VariableHasInputsAndInternalCall="variable-has-inputs-and-internal-calls",r.VariableHasOutputsAndInternalCall="variable-has-outputs-and-internal-call",r.VariableIsCalledAndHasInternalCall="variable-is-called-and-has-internal-call",r.VariableCallsOthersAndHasInternalCall="variable-calls-others-and-has-internal-call",r))(F||{});class w{constructor(a){f(this,"id");f(this,"message");f(this,"issue");f(this,"severity");f(this,"code");this.id=a.id,this.message=a.message,this.issue=a.issue,this.severity=a.severity,this.code=a.code}toEntityError(a){return this.code in $?new Ye({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:a}):null}}class Ye{constructor(a){f(this,"id");f(this,"message");f(this,"issue");f(this,"severity");f(this,"code");f(this,"entity");f(this,"firstRelationship");f(this,"secondRelationship");this.id=a.id,this.message=a.message,this.issue=a.issue,this.severity=a.severity,this.code=a.code,this.entity=a.entity,this.firstRelationship=a.firstRelationship,this.secondRelationship=a.secondRelationship}clone(){return new Ye({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:this.entity,firstRelationship:this.firstRelationship,secondRelationship:this.secondRelationship})}}function x3(r){const a=new Set;return r.filter(e=>a.has(e.id)?!1:(a.add(e.id),!0))}function de(r){const a=r.entity.errors.find(t=>t.id===r.id);return a?{new:!1,error:a}:{new:!0,error:new Ye(r)}}function k3(r,a){const e=new Map;return r.forEach(t=>{e.set(t.id,t)}),a.forEach(t=>{e.set(t.id,t)}),Array.from(e.values())}function Ke(r,a){const e=[];return a.forEach(t=>{const i=r.find(s=>s.id===t.id);i?e.push(i):e.push(t)}),e}const ca=v.union([v.string(),v.number(),v.boolean(),v.date()]),aD=v.enum([vt.CurrentDateAndTime,vt.Random,vt.Unique]),ol=v.object({type:aD,rangeStart:ca.nullable(),rangeEnd:ca.nullable()}),fa=ol.extend({type:v.literal(vt.Random),rangeStart:ca,rangeEnd:ca}),pp=ol.extend({type:v.literal(vt.Unique),rangeStart:v.null(),rangeEnd:v.null()}),oD=ol.extend({type:v.literal(vt.CurrentDateAndTime),rangeStart:v.null(),rangeEnd:v.null()}),ll=fa.extend({rangeStart:v.number().nullable(),rangeEnd:v.number().nullable()}),lD=ll.extend({rangeStart:v.number(),rangeEnd:v.null()}),dD=ll.extend({rangeStart:v.null(),rangeEnd:v.number()}),uD=ll.extend({rangeStart:v.number(),rangeEnd:v.number()}),dl=fa.extend({rangeStart:v.number().nullable(),rangeEnd:v.number().nullable()}),pD=dl.extend({rangeStart:v.number(),rangeEnd:v.null()}),cD=dl.extend({rangeStart:v.null(),rangeEnd:v.number()}),fD=dl.extend({rangeStart:v.number(),rangeEnd:v.number()}),ul=fa.extend({rangeStart:v.date().nullable(),rangeEnd:v.date().nullable()}),yD=ul.extend({rangeStart:v.date(),rangeEnd:v.null()}),hD=ul.extend({rangeStart:v.null(),rangeEnd:v.date()}),mD=ul.extend({rangeStart:v.date(),rangeEnd:v.date()}),cp=fa.extend({rangeStart:v.null(),rangeEnd:v.null()}),fp=v.union([pD,cD,fD]),yp=v.union([lD,dD,uD]),hp=v.union([yD,hD,mD,oD]),mp=v.union([fp,yp,hp,pp,cp]);function ya(){return v.union([v.object({type:v.literal(n.ValueDescriptor)}),v.record(v.string(),v.any())])}function vD(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.ValueDescriptor)})}function vp(){return v.object({id:v.string(),type:v.literal(n.ValueDescriptor),name:v.string(),required:v.boolean()})}function Z3(){return vp().merge(v.object({version:v.number(),index:v.number()}))}function q3(){return vp().merge(v.object({}))}function J3(){return v.object({dataType:Vn(),parent:wn()})}function S3(){return Z3().merge(J3())}function pl(){return v.union([v.object({type:v.literal(n.PrimitiveEntity)}),v.record(v.string(),v.any())])}function cl(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.PrimitiveEntity)})}function fl(){return v.object({id:v.string(),type:v.literal(n.PrimitiveEntity),name:v.string(),description:v.string().nullable(),static:v.boolean(),abstract:v.boolean()})}function W3(){return fl().merge(v.object({version:v.number()}))}function z3(){return fl().merge(v.object({}))}function Y3(){return v.object({properties:v.array(Pn()),methods:v.array(Ti()),abstractMethods:v.array(Yi()),extends:v.array(v.union([pl(),ys()]))})}function H3(){return W3().merge(Y3())}function Pn(){return v.union([v.object({type:v.literal(n.Property)}),v.record(v.string(),v.any())])}function TD(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.Property)})}function Tp(){return v.object({id:v.string(),type:v.literal(n.Property),name:v.string(),description:v.string().nullable(),private:v.boolean(),static:v.boolean(),required:v.boolean(),abstract:v.boolean()})}function K3(){return Tp().merge(v.object({version:v.number(),index:v.number()}))}function X3(){return Tp().merge(v.object({}))}function Q3(){return v.object({dataType:Vn(),implements:Pn().nullable(),parent:v.union([Mn(),cl(),yl()])})}function e5(){return K3().merge(Q3())}function t5(){return v.enum([S.CRON_JOB,S.EXECUTION,S.HTTP_ENDPOINT,S.PERSISTED_ENTITY,S.RELATIONAL_DATABASE])}function ys(){return v.union([v.object({type:v.literal(n.BuiltInBaseEntity)}),v.record(v.string(),v.any())])}function yl(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.BuiltInBaseEntity)})}function Ep(){return v.object({id:v.string(),version:v.number(),type:v.literal(n.BuiltInBaseEntity),name:t5(),description:v.string().nullable(),abstract:v.boolean(),static:v.boolean()})}function i5(){return Ep()}function r5(){return Ep().merge(v.object({}))}function n5(){return v.object({properties:v.array(Pn()),methods:v.array(Ti()),abstractMethods:v.array(Yi()),extends:v.array(v.union([ys(),pl()]))})}function s5(){return i5().merge(n5())}function Yi(){return v.union([v.object({type:v.literal(n.ActionDescriptor)}),v.record(v.string(),v.any())])}function wn(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.ActionDescriptor)})}function hl(){return v.object({id:v.string(),type:v.literal(n.ActionDescriptor),name:v.string(),description:v.string().nullable()})}function a5(){return hl().merge(v.object({version:v.number()}))}function o5(){return hl().merge(v.object({}))}function l5(){return v.object({inputs:v.array(ya()),outputs:v.array(ya()),parent:v.union([ai(),Mn(),yl(),cl()]).nullable()})}function ED(){return a5().merge(l5())}function hs(){return v.union([v.object({type:v.literal(n.Loop)}),v.record(v.string(),v.any())])}function Hi(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.Loop)})}function ID(){return v.object({id:v.string(),type:v.literal(n.Loop)})}function d5(){return ID().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function u5(){return ID().merge(v.object({declaration:v.union([v.string(),Ti()])}))}function p5(){return v.object({calledBySuccess:v.array(rt()),calledByError:v.array(rt()),calledByEntry:v.array(Ot()),declaration:Yi(),inputs:v.array(Ni()),outputs:v.array(Xt()),outputsDeclarations:v.array(ya()),successCalls:v.array(Ct()),errorCalls:v.array(Ct()),error:Xt(),body:Ti(),parent:v.union([mr(),ai()]),breakStatements:v.array(Es()),continueStatements:v.array(ms())})}function c5(){return d5().merge(p5())}function ms(){return v.union([v.object({type:v.literal(n.ContinueStatement)}),v.record(v.string(),v.any())])}function vs(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.ContinueStatement)})}function Ip(){return v.object({id:v.string(),type:v.literal(n.ContinueStatement)})}function f5(){return Ip().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function y5(){return Ip().merge(v.object({}))}function h5(){return v.object({calledBySuccess:v.array(rt()),calledByError:v.array(rt()),calledByEntry:v.array(Ot()),outputs:v.array(fr()),throws:v.optional(fr()),parent:Hi()})}function m5(){return f5().merge(h5())}function Cn(){return v.union([v.object({type:v.literal(n.ReturnStatement)}),v.record(v.string(),v.any())])}function Ts(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.ReturnStatement)})}function Ap(){return v.object({id:v.string(),type:v.literal(n.ReturnStatement)})}function v5(){return Ap().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function T5(){return Ap().merge(v.object({}))}function E5(){return v.object({calledBySuccess:v.array(rt()),calledByError:v.array(rt()),calledByEntry:v.array(Ot()),outputs:v.array(fr()),throws:v.optional(fr()),parent:mr()})}function I5(){return v5().merge(E5())}function fr(){return v.union([v.object({type:v.literal(n.ReturnDeclaration)}),v.record(v.string(),v.any())])}function AD(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.ReturnDeclaration)})}function bp(){return v.object({id:v.string(),type:v.literal(n.ReturnDeclaration),name:v.string(),description:v.string().nullable(),isError:v.boolean()})}function A5(){return bp().merge(v.object({version:v.number(),index:v.number()}))}function b5(){return bp().merge(v.object({}))}function R5(){return v.object({dataType:Vn().nullable(),readsValue:Ia().nullable(),parent:v.union([Ts(),wn(),yr(),vs()])})}function D5(){return A5().merge(R5())}function Es(){return v.union([v.object({type:v.literal(n.BreakStatement)}),v.record(v.string(),v.any())])}function yr(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.BreakStatement)})}function Rp(){return v.object({id:v.string(),type:v.literal(n.BreakStatement)})}function O5(){return Rp().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function P5(){return Rp().merge(v.object({}))}function w5(){return v.object({calledBySuccess:v.array(rt()),calledByError:v.array(rt()),calledByEntry:v.array(Ot()),outputs:v.array(fr()),throws:v.optional(fr()),parent:Hi()})}function C5(){return O5().merge(w5())}function Xt(){return v.union([v.object({type:v.literal(n.OutputMap)}),v.record(v.string(),v.any())])}function Dp(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.OutputMap)})}function Op(){return v.object({id:v.string(),type:v.literal(n.OutputMap)})}function V5(){return Op().merge(v.object({version:v.number(),index:v.number()}))}function B5(){return Op().merge(v.object({}))}function _5(){return v.object({writesValues:v.array(hr()),declaration:v.union([fr(),Pn()]),parent:v.union([rt(),Hi(),yr()])})}function M5(){return V5().merge(_5())}function Is(){return v.union([v.object({type:v.literal(n.FunctionCall)}),v.record(v.string(),v.any())])}function ha(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.FunctionCall)})}function Pp(){return v.object({id:v.string(),type:v.literal(n.FunctionCall)})}function N5(){return Pp().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function L5(){return Pp().merge(v.object({}))}function j5(){return v.object({successCalls:v.array(Ct()),errorCalls:v.array(Ct()),calledBySuccess:v.array(rt()),calledByError:v.array(rt()),calledByEntry:v.array(Ot()),writesValues:v.array(hr()),declaration:Ti(),inputs:v.array(Ni()),outputs:v.array(Xt()),error:v.optional(Xt()),parent:v.union([mr(),ai()])})}function U5(){return N5().merge(j5())}function $5(){return v.enum([yt.Equal,yt.NotEqual,yt.MoreThan,yt.MoreThanOrEqual,yt.LessThan,yt.LessThanOrEqual,yt.And,yt.Or,bi.Empty,bi.NotEmpty])}function ma(){return v.union([v.object({type:v.literal(n.Condition)}),v.record(v.string(),v.any())])}function ml(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.Condition)})}function wp(){return v.object({id:v.string(),type:v.literal(n.Condition)})}function g5(){return wp().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function G5(){return wp().merge(v.object({}))}function F5(){return v.object({successCalls:v.array(Ct()),errorCalls:v.array(Ct()),calledBySuccess:v.array(rt()),calledByError:v.array(rt()),calledByEntry:v.array(Ot()),leftValue:Ni(),rightValue:Ni().nullable(),operator:$5(),parent:v.union([mr(),ai()])})}function x5(){return g5().merge(F5())}function va(){return v.union([v.object({type:v.literal(n.Search)}),v.record(v.string(),v.any())])}function Ta(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.Search)})}function Cp(){return v.object({id:v.string(),type:v.literal(n.Search),name:v.string(),query:v.any(),description:v.string().nullable()})}function k5(){return Cp().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function Z5(){return Cp().merge(v.object({}))}function q5(){return v.object({successCalls:v.array(Ct()),errorCalls:v.array(Ct()),calledBySuccess:v.array(rt()),calledByError:v.array(rt()),calledByEntry:v.array(Ot()),inputsDeclarations:v.array(_n()),inputs:v.array(Ni()),outputsDeclarations:v.array(ya()),outputs:v.array(Xt()),parent:v.union([mr(),ai()]),error:Xt().nullable()})}function J5(){return k5().merge(q5())}function Ea(){return v.union([v.object({type:v.literal(n.InternalCall)}),v.record(v.string(),v.any())])}function Vp(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.InternalCall)})}function Bp(){return v.object({id:v.string(),type:v.literal(n.InternalCall),index:v.number()})}function S5(){return Bp().merge(v.object({version:v.number(),index:v.number()}))}function W5(){return Bp().merge(v.object({declaration:v.union([v.string(),Ti()])}))}function z5(){return v.object({successCalls:v.array(Ct()),errorCalls:v.array(Ct()),calledBySuccess:v.array(rt()),calledByError:v.array(rt()),calledByEntry:v.array(Ot()),writesValues:v.array(hr()),declaration:Ti(),inputs:v.array(Ni()),outputs:v.array(Xt()),parent:jr(),error:v.optional(Xt())})}function Y5(){return S5().merge(z5())}function Ni(){return v.union([v.object({type:v.literal(n.InputMap)}),v.record(v.string(),v.any())])}function vl(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.InputMap)})}function _p(){return v.object({id:v.string(),type:v.literal(n.InputMap),name:v.string().nullable().optional(),description:v.string().nullable().optional()})}function H5(){return _p().merge(v.object({version:v.number(),index:v.number()}))}function K5(){return _p().merge(v.object({}))}function X5(){return v.object({defaultValue:Mp().nullable(),declaration:v.union([_n(),Pn()]).nullable(),readsValue:Ia().nullable(),parent:v.union([rt(),vl(),Hi(),yr()])})}function Q5(){return H5().merge(X5())}function As(){return v.union([v.object({type:v.literal(n.Operation)}),v.record(v.string(),v.any())])}function bs(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.Operation)})}function Tl(){return v.object({id:v.string(),type:v.literal(n.Operation)})}function eZ(){return Tl().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function tZ(){return Tl().merge(v.object({}))}function iZ(){return Tl().merge(v.object({successCalls:v.array(Ct()),errorCalls:v.array(Ct()),calledBySuccess:v.array(rt()),calledByError:v.array(rt()),calledByEntry:v.array(Ot()),writesValues:v.array(hr()),declaration:Yi(),inputs:v.array(Ni()),outputs:v.array(Xt()),error:v.array(Xt()),parent:v.union([mr(),ai()])}))}function rZ(){return eZ().merge(iZ())}function El(){return v.union([v.string(),v.number(),v.boolean(),v.null(),v.date()])}function bD(){return v.record(v.string(),El())}function nZ(){return v.array(v.union([El(),bD()]))}function RD(){return v.union([El(),bD(),nZ()])}function DD(){return v.union([El(),RD()])}function OD(){return v.enum([L.String,L.Number,L.Boolean,L.Null,L.Date,L.KeyValue,L.Enum,L.File,L.UUID,L.EntityTemplate,L.ActionDescriptor])}function PD(){return v.union([Mn(),bs(),Aa()])}function sZ(){return v.object({id:v.string(),name:OD(),type:v.literal(n.LiteralValue),value:DD(),autogeneration:mp.nullable()})}function aZ(){return sZ().merge(v.object({}))}function Li(){return v.object({id:v.string(),version:v.number(),name:OD(),type:v.literal(n.LiteralValue),value:DD(),valueAsTypeList:v.array(PD()).nullable(),valueAsTypeSingle:PD().nullable(),autogeneration:mp.nullable(),parent:v.union([Np(),vl()])})}function oZ(){return Li().extend({name:v.literal(L.String),value:v.string(),autogeneration:fp.nullable()})}function lZ(){return Li().extend({name:v.literal(L.Number),value:v.number(),autogeneration:yp.nullable()})}function dZ(){return Li().extend({name:v.literal(L.Boolean),value:v.boolean(),autogeneration:cp.nullable()})}function uZ(){return Li().extend({name:v.literal(L.Null),value:v.null(),autogeneration:v.null()})}function pZ(){return Li().extend({name:v.literal(L.Date),value:v.date(),autogeneration:hp.nullable()})}function cZ(){return Li().extend({name:v.literal(L.KeyValue),value:RD(),autogeneration:v.null()})}function fZ(){return Li().extend({name:v.literal(L.Enum),value:v.string(),autogeneration:v.null()})}function yZ(){return Li().extend({name:v.literal(L.File),value:v.string(),autogeneration:v.null()})}function hZ(){return Li().extend({name:v.literal(L.UUID),value:v.string(),autogeneration:pp.nullable()})}function mZ(){return Li().extend({name:v.literal(L.EntityTemplate),value:Mn(),autogeneration:v.null()})}function vZ(){return Li().extend({name:v.literal(L.ActionDescriptor),value:Aa(),autogeneration:v.null()})}function Mp(){return v.union([oZ(),lZ(),dZ(),uZ(),pZ(),cZ(),fZ(),yZ(),hZ(),mZ(),vZ()])}function Vn(){return v.union([v.object({type:v.literal(n.DataType)}),v.record(v.string(),v.any())])}function Np(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.DataType)})}function Lp(){return v.object({id:v.string(),type:v.literal(n.DataType),isNullable:v.boolean(),isList:v.boolean(),constant:v.boolean(),asType:v.boolean(),options:v.array(v.string()).optional()})}function TZ(){return Lp().merge(v.object({version:v.number()}))}function EZ(){return Lp().merge(v.object({}))}function IZ(){return v.object({defaultValue:Mp().nullable(),entity:v.union([Rs(),ys(),pl(),Yi()]).nullable(),parent:v.union([TD(),VD(),vD()])})}function AZ(){return TZ().merge(IZ())}function jp(){return v.union([v.object({type:v.literal(n.VariableDeclaration)}),v.record(v.string(),v.any())])}function bZ(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.VariableDeclaration)})}function Up(){return v.object({id:v.string(),type:v.literal(n.VariableDeclaration),name:v.string(),description:v.string().nullable()})}function RZ(){return Up().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function DZ(){return Up().merge(v.object({}))}function OZ(){return v.object({dataType:Vn().nullable(),readsValue:Ia().nullable(),writesValues:v.array(hr()),inputs:v.array(Ni()),outputs:v.array(Xt()),successCalls:v.array(Ct()),errorCalls:v.array(Ct()),internalCalls:v.array(Ea()),calledBySuccess:v.array(rt()),calledByError:v.array(rt()),calledByEntry:v.array(Ot()),parent:v.union([mr(),ai()])})}function PZ(){return RZ().merge(OZ())}function wD(){return v.union([v.object({type:v.literal(n.VariableInstance)}),v.record(v.string(),v.any())])}function wZ(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.VariableInstance)})}function $p(){return v.object({id:v.string(),type:v.literal(n.VariableInstance)})}function CZ(){return $p().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function VZ(){return $p().merge(v.object({}))}function BZ(){return v.object({declaration:jp(),dataType:Vn().nullable(),readsValue:Ia().nullable(),writesValues:v.array(hr()),inputs:v.array(Ni()),outputs:v.array(Xt()),successCalls:v.array(Ct()),errorCalls:v.array(Ct()),internalCalls:v.array(Ea()),calledBySuccess:v.array(rt()),calledByError:v.array(rt()),calledByEntry:v.array(Ot()),parent:v.union([mr(),ai()])})}function _Z(){return CZ().merge(BZ())}function gp(){return v.union([v.object({type:v.literal(n.InstalledProject)}),v.record(v.string(),v.any())])}function Il(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.InstalledProject)})}function MZ(){return v.object({id:v.string(),type:v.literal(n.InstalledProject)})}function NZ(){return v.object({version:v.number(),x:v.number(),y:v.number()})}function LZ(){return v.object({})}function jZ(){return v.object({implements:ai(),description:v.string().nullable(),functions:v.array(Ti()),events:v.array(Gp()),parent:ai()})}function UZ(){return NZ().merge(jZ())}function Gp(){return v.union([v.object({type:v.literal(n.GlobalEvent)}),v.record(v.string(),v.any())])}function $Z(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.GlobalEvent)})}function Al(){return v.object({id:v.string(),type:v.literal(n.GlobalEvent),name:v.string(),collapsed:v.boolean()})}function gZ(){return Al().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function GZ(){return Al().merge(v.object({}))}function FZ(){return Al().merge(v.object({returnStatements:v.array(Cn()),implements:v.array(ED()),inputs:v.array(_n()),calls:v.array(Ct()),parent:v.union([ai(),Il()])}))}function xZ(){return gZ().merge(FZ())}function Bn(){return v.union([jp(),wD()])}function jr(){return v.union([bZ(),wZ()])}function hr(){return v.union([Bn(),Ni(),fr()])}function CD(){return v.union([jr(),vl(),AD()])}function Ia(){return v.union([Bn(),_n(),Xt(),As(),Ea(),Is()])}function kZ(){return v.union([jr(),Fp(),Dp(),bs(),Vp(),ha()])}function ZZ(){return v.union([_n(),Xt(),hr()])}function VD(){return v.union([Fp(),Dp(),CD()])}function bl(){return Gp()}function Rl(){return $Z()}function Dl(){return v.union([As(),Is(),ma(),va(),Bn(),Ea(),hs()])}function rt(){return v.union([bs(),ha(),ml(),Ta(),jr(),Vp(),Hi()])}function Ol(){return v.union([As(),Is(),ma(),va(),Bn(),hs()])}function Pl(){return v.union([bs(),ha(),ml(),Ta(),jr(),Hi()])}function BD(){return v.union([Dl(),Cn(),Es(),ms()])}function Ct(){return v.union([rt(),Ts(),yr(),vs()])}function _D(){return v.union([Ol(),Cn(),Es(),ms()])}function MD(){return v.union([Pl(),Ts(),yr(),vs()])}function Ur(){return v.union([Ti(),bl()])}function Ot(){return v.union([Aa(),Rl()])}function qZ(){return v.union([Dl(),Ur()])}function JZ(){return v.union([rt(),Ot()])}function SZ(){return v.union([Ol(),Ur()])}function WZ(){return v.union([Pl(),Ot()])}function zZ(){return v.union([BD(),Ur()])}function YZ(){return v.union([Ct(),Ot()])}function HZ(){return v.union([_D(),Ur()])}function KZ(){return v.union([MD(),Ot()])}function XZ(){return v.union([Ur(),hs()])}function mr(){return v.union([Ot(),Hi()])}function QZ(){return v.union([Dl(),Ur()])}function e7(){return v.union([rt(),Ot()])}function t7(){return v.union([Ol(),Ur()])}function i7(){return v.union([Pl(),Ot()])}function r7(){return v.union([Cn(),Es(),ms()])}function n7(){return v.union([Ts(),yr(),vs()])}function s7(){return v.union([ys(),v7(),gp(),Rs(),Ti(),bl(),Bn(),Ni(),Xt(),ma(),As(),Is(),fr(),_n(),pl(),Vn(),Pn(),Yi(),Cn(),ms(),Es(),hs(),va(),Yi(),Yi(),ya(),Ea()])}function a7(){return v.union([yl(),ai(),Il(),Mn(),Aa(),Rl(),jr(),vl(),Dp(),ml(),bs(),ha(),AD(),Fp(),cl(),Np(),TD(),wn(),Ts(),vs(),yr(),Hi(),Ta(),wn(),wn(),vD(),Vp()])}function o7(){return v.union([gp(),Rs(),Ti(),bl(),Bn(),ma(),As(),Is(),Cn(),ms(),Es(),hs(),va()])}function l7(){return v.union([Il(),Mn(),Aa(),Rl(),jr(),ml(),bs(),ha(),Ts(),vs(),yr(),Hi(),Ta()])}function _n(){return v.union([v.object({type:v.literal(n.ArgumentDeclaration)}),v.record(v.string(),v.any())])}function Fp(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.ArgumentDeclaration)})}function xp(){return v.object({id:v.string(),type:v.literal(n.ArgumentDeclaration)})}function d7(){return xp().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function u7(){return xp().merge(v.object({}))}function p7(){return v.object({dataType:Vn().nullable(),writesValues:v.array(hr()),parent:v.union([Ot(),wn(),wn(),Ta(),yr()])})}function c7(){return d7().merge(p7())}function Ti(){return v.union([v.object({type:v.literal(n.FunctionDeclaration)}),v.record(v.string(),v.any())])}function Aa(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.FunctionDeclaration)})}function kp(){return v.object({id:v.string(),type:v.literal(n.FunctionDeclaration),name:v.string(),description:v.string().nullable()})}function f7(){return kp().merge(v.object({version:v.number(),x:v.number(),y:v.number(),index:v.number().nullable()}))}function y7(){return kp()}function h7(){return v.object({inputs:v.array(_n()),implements:Yi().nullable(),returnStatements:v.array(Cn()),parent:v.union([ai(),Il(),Mn(),Hi(),yl(),cl()])})}function m7(){return f7().merge(h7())}function v7(){return v.union([v.object({type:v.literal(n.Project)}),v.record(v.string(),v.any())])}function ai(){return v.object({entityType:v.literal(n.Project),entityId:v.string(),id:v.string(),type:v.literal(n.GenericReference)})}function Zp(){return v.object({id:v.string(),type:v.literal(n.Project),name:v.string(),description:v.string().nullable()})}function T7(){return Zp().merge(v.object({version:v.number()}))}function E7(){return Zp()}function I7(){return v.object({entities:v.array(Rs()),functions:v.array(Ti()),events:v.array(Gp()),projects:v.array(gp()),variableDeclarations:v.array(jp()),variableInstances:v.array(wD()),conditions:v.array(ma()),operations:v.array(As()),functionCalls:v.array(Is()),loops:v.array(hs()),searches:v.array(va())})}function A7(){return T7().merge(I7())}function Rs(){return v.union([v.object({type:v.literal(n.DefinitionEntity)}),v.record(v.string(),v.any())])}function Mn(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.DefinitionEntity)})}function qp(){return v.object({id:v.string(),type:v.literal(n.DefinitionEntity),name:v.string(),description:v.string().nullable(),static:v.boolean(),abstract:v.boolean()})}function b7(){return qp().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function R7(){return qp().merge(v.object({}))}function D7(){return v.union([ai(),Np()])}function O7(){return v.object({properties:v.array(Pn()),methods:v.array(Ti()),abstractMethods:v.array(Yi()),extends:v.array(v.union([Rs(),ys()])),implements:v.array(v.union([Rs(),ys()])),parent:D7()})}function P7(){return b7().merge(O7())}function w7(r){return r instanceof Error&&r.name==="ZodError"&&"issues"in r&&Array.isArray(r.issues)}var C7=class extends Error{constructor(a,e){super(a,e);f(this,"name");f(this,"details");this.name="ZodValidationError",this.details=V7(e)}toString(){return this.message}};function V7(r){if(r){const a=r.cause;if(w7(a))return a.issues}return[]}function B7(r){return r.length!==0}var _7=/[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*/u;function M7(r){return r.length===1?r[0].toString():r.reduce((a,e)=>{if(typeof e=="number")return a+"["+e.toString()+"]";if(e.includes('"'))return a+'["'+N7(e)+'"]';if(!_7.test(e))return a+'["'+e+'"]';const t=a.length===0?"":".";return a+t+e},"")}function N7(r){return r.replace(/"/g,'\\"')}var L7="; ",j7=99,ND="Validation error",U7=": ",$7=", or ";function g7(r={}){const{issueSeparator:a=L7,unionSeparator:e=$7,prefixSeparator:t=U7,prefix:i=ND,includePath:s=!0,maxIssuesInMessage:l=j7}=r;return o=>{const d=o.slice(0,l).map(u=>wl({issue:u,issueSeparator:a,unionSeparator:e,includePath:s})).join(a);return G7(d,i,t)}}function wl(r){const{issue:a,issueSeparator:e,unionSeparator:t,includePath:i}=r;if(a.code===Z.invalid_union)return a.unionErrors.reduce((s,l)=>{const o=l.issues.map(d=>wl({issue:d,issueSeparator:e,unionSeparator:t,includePath:i})).join(e);return s.includes(o)||s.push(o),s},[]).join(t);if(a.code===Z.invalid_arguments)return[a.message,...a.argumentsError.issues.map(s=>wl({issue:s,issueSeparator:e,unionSeparator:t,includePath:i}))].join(e);if(a.code===Z.invalid_return_type)return[a.message,...a.returnTypeError.issues.map(s=>wl({issue:s,issueSeparator:e,unionSeparator:t,includePath:i}))].join(e);if(i&&B7(a.path)){if(a.path.length===1){const s=a.path[0];if(typeof s=="number")return`${a.message} at index ${s}`}return`${a.message} at "${M7(a.path)}"`}return a.message}function G7(r,a,e){return a!==null?r.length>0?[a,r].join(e):a:r.length>0?r:ND}function F7(r,a={}){const t=x7(a)([r]);return new C7(t,{cause:new si([r])})}function x7(r){return"messageBuilder"in r?r.messageBuilder:g7(r)}var LD="1.13.7",jD=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},Cl=Array.prototype,Jp=Object.prototype,UD=typeof Symbol<"u"?Symbol.prototype:null,k7=Cl.push,ba=Cl.slice,Ra=Jp.toString,Z7=Jp.hasOwnProperty,$D=typeof ArrayBuffer<"u",q7=typeof DataView<"u",J7=Array.isArray,gD=Object.keys,GD=Object.create,FD=$D&&ArrayBuffer.isView,S7=isNaN,W7=isFinite,xD=!{toString:null}.propertyIsEnumerable("toString"),kD=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],z7=Math.pow(2,53)-1;function oi(r,a){return a=a==null?r.length-1:+a,function(){for(var e=Math.max(arguments.length-a,0),t=Array(e),i=0;i<e;i++)t[i]=arguments[i+a];switch(a){case 0:return r.call(this,t);case 1:return r.call(this,arguments[0],t);case 2:return r.call(this,arguments[0],arguments[1],t)}var s=Array(a+1);for(i=0;i<a;i++)s[i]=arguments[i];return s[a]=t,r.apply(this,s)}}function $r(r){var a=typeof r;return a==="function"||a==="object"&&!!r}function Y7(r){return r===null}function ZD(r){return r===void 0}function qD(r){return r===!0||r===!1||Ra.call(r)==="[object Boolean]"}function H7(r){return!!(r&&r.nodeType===1)}function kt(r){var a="[object "+r+"]";return function(e){return Ra.call(e)===a}}const Sp=kt("String"),JD=kt("Number"),K7=kt("Date"),X7=kt("RegExp"),Q7=kt("Error"),SD=kt("Symbol"),WD=kt("ArrayBuffer");var zD=kt("Function"),eq=jD.document&&jD.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof eq!="function"&&(zD=function(r){return typeof r=="function"||!1});const Qt=zD,YD=kt("Object");var HD=q7&&(!/\[native code\]/.test(String(DataView))||YD(new DataView(new ArrayBuffer(8)))),Wp=typeof Map<"u"&&YD(new Map),tq=kt("DataView");function iq(r){return r!=null&&Qt(r.getInt8)&&WD(r.buffer)}const Vl=HD?iq:tq,Nn=J7||kt("Array");function gr(r,a){return r!=null&&Z7.call(r,a)}var zp=kt("Arguments");(function(){zp(arguments)||(zp=function(r){return gr(r,"callee")})})();const Yp=zp;function rq(r){return!SD(r)&&W7(r)&&!isNaN(parseFloat(r))}function KD(r){return JD(r)&&S7(r)}function XD(r){return function(){return r}}function QD(r){return function(a){var e=r(a);return typeof e=="number"&&e>=0&&e<=z7}}function eO(r){return function(a){return a==null?void 0:a[r]}}const Bl=eO("byteLength"),nq=QD(Bl);var sq=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function aq(r){return FD?FD(r)&&!Vl(r):nq(r)&&sq.test(Ra.call(r))}const tO=$D?aq:XD(!1),li=eO("length");function oq(r){for(var a={},e=r.length,t=0;t<e;++t)a[r[t]]=!0;return{contains:function(i){return a[i]===!0},push:function(i){return a[i]=!0,r.push(i)}}}function iO(r,a){a=oq(a);var e=kD.length,t=r.constructor,i=Qt(t)&&t.prototype||Jp,s="constructor";for(gr(r,s)&&!a.contains(s)&&a.push(s);e--;)s=kD[e],s in r&&r[s]!==i[s]&&!a.contains(s)&&a.push(s)}function Mt(r){if(!$r(r))return[];if(gD)return gD(r);var a=[];for(var e in r)gr(r,e)&&a.push(e);return xD&&iO(r,a),a}function Da(r){if(r==null)return!0;var a=li(r);return typeof a=="number"&&(Nn(r)||Sp(r)||Yp(r))?a===0:li(Mt(r))===0}function rO(r,a){var e=Mt(a),t=e.length;if(r==null)return!t;for(var i=Object(r),s=0;s<t;s++){var l=e[s];if(a[l]!==i[l]||!(l in i))return!1}return!0}function Xe(r){if(r instanceof Xe)return r;if(!(this instanceof Xe))return new Xe(r);this._wrapped=r}Xe.VERSION=LD,Xe.prototype.value=function(){return this._wrapped},Xe.prototype.valueOf=Xe.prototype.toJSON=Xe.prototype.value,Xe.prototype.toString=function(){return String(this._wrapped)};function nO(r){return new Uint8Array(r.buffer||r,r.byteOffset||0,Bl(r))}var sO="[object DataView]";function Hp(r,a,e,t){if(r===a)return r!==0||1/r===1/a;if(r==null||a==null)return!1;if(r!==r)return a!==a;var i=typeof r;return i!=="function"&&i!=="object"&&typeof a!="object"?!1:aO(r,a,e,t)}function aO(r,a,e,t){r instanceof Xe&&(r=r._wrapped),a instanceof Xe&&(a=a._wrapped);var i=Ra.call(r);if(i!==Ra.call(a))return!1;if(HD&&i=="[object Object]"&&Vl(r)){if(!Vl(a))return!1;i=sO}switch(i){case"[object RegExp]":case"[object String]":return""+r==""+a;case"[object Number]":return+r!=+r?+a!=+a:+r==0?1/+r===1/a:+r==+a;case"[object Date]":case"[object Boolean]":return+r==+a;case"[object Symbol]":return UD.valueOf.call(r)===UD.valueOf.call(a);case"[object ArrayBuffer]":case sO:return aO(nO(r),nO(a),e,t)}var s=i==="[object Array]";if(!s&&tO(r)){var l=Bl(r);if(l!==Bl(a))return!1;if(r.buffer===a.buffer&&r.byteOffset===a.byteOffset)return!0;s=!0}if(!s){if(typeof r!="object"||typeof a!="object")return!1;var o=r.constructor,d=a.constructor;if(o!==d&&!(Qt(o)&&o instanceof o&&Qt(d)&&d instanceof d)&&"constructor"in r&&"constructor"in a)return!1}e=e||[],t=t||[];for(var u=e.length;u--;)if(e[u]===r)return t[u]===a;if(e.push(r),t.push(a),s){if(u=r.length,u!==a.length)return!1;for(;u--;)if(!Hp(r[u],a[u],e,t))return!1}else{var y=Mt(r),c;if(u=y.length,Mt(a).length!==u)return!1;for(;u--;)if(c=y[u],!(gr(a,c)&&Hp(r[c],a[c],e,t)))return!1}return e.pop(),t.pop(),!0}function lq(r,a){return Hp(r,a)}function Oa(r){if(!$r(r))return[];var a=[];for(var e in r)a.push(e);return xD&&iO(r,a),a}function Kp(r){var a=li(r);return function(e){if(e==null)return!1;var t=Oa(e);if(li(t))return!1;for(var i=0;i<a;i++)if(!Qt(e[r[i]]))return!1;return r!==dO||!Qt(e[Xp])}}var Xp="forEach",oO="has",Qp=["clear","delete"],lO=["get",oO,"set"],dq=Qp.concat(Xp,lO),dO=Qp.concat(lO),uq=["add"].concat(Qp,Xp,oO);const pq=Wp?Kp(dq):kt("Map"),cq=Wp?Kp(dO):kt("WeakMap"),fq=Wp?Kp(uq):kt("Set"),yq=kt("WeakSet");function Ds(r){for(var a=Mt(r),e=a.length,t=Array(e),i=0;i<e;i++)t[i]=r[a[i]];return t}function hq(r){for(var a=Mt(r),e=a.length,t=Array(e),i=0;i<e;i++)t[i]=[a[i],r[a[i]]];return t}function uO(r){for(var a={},e=Mt(r),t=0,i=e.length;t<i;t++)a[r[e[t]]]=e[t];return a}function ec(r){var a=[];for(var e in r)Qt(r[e])&&a.push(e);return a.sort()}function tc(r,a){return function(e){var t=arguments.length;if(a&&(e=Object(e)),t<2||e==null)return e;for(var i=1;i<t;i++)for(var s=arguments[i],l=r(s),o=l.length,d=0;d<o;d++){var u=l[d];(!a||e[u]===void 0)&&(e[u]=s[u])}return e}}const pO=tc(Oa),_l=tc(Mt),cO=tc(Oa,!0);function mq(){return function(){}}function fO(r){if(!$r(r))return{};if(GD)return GD(r);var a=mq();a.prototype=r;var e=new a;return a.prototype=null,e}function vq(r,a){var e=fO(r);return a&&_l(e,a),e}function Tq(r){return $r(r)?Nn(r)?r.slice():pO({},r):r}function Eq(r,a){return a(r),r}function yO(r){return Nn(r)?r:[r]}Xe.toPath=yO;function Pa(r){return Xe.toPath(r)}function ic(r,a){for(var e=a.length,t=0;t<e;t++){if(r==null)return;r=r[a[t]]}return e?r:void 0}function hO(r,a,e){var t=ic(r,Pa(a));return ZD(t)?e:t}function Iq(r,a){a=Pa(a);for(var e=a.length,t=0;t<e;t++){var i=a[t];if(!gr(r,i))return!1;r=r[i]}return!!e}function rc(r){return r}function wa(r){return r=_l({},r),function(a){return rO(a,r)}}function nc(r){return r=Pa(r),function(a){return ic(a,r)}}function Ca(r,a,e){if(a===void 0)return r;switch(e??3){case 1:return function(t){return r.call(a,t)};case 3:return function(t,i,s){return r.call(a,t,i,s)};case 4:return function(t,i,s,l){return r.call(a,t,i,s,l)}}return function(){return r.apply(a,arguments)}}function mO(r,a,e){return r==null?rc:Qt(r)?Ca(r,a,e):$r(r)&&!Nn(r)?wa(r):nc(r)}function sc(r,a){return mO(r,a,1/0)}Xe.iteratee=sc;function di(r,a,e){return Xe.iteratee!==sc?Xe.iteratee(r,a):mO(r,a,e)}function Aq(r,a,e){a=di(a,e);for(var t=Mt(r),i=t.length,s={},l=0;l<i;l++){var o=t[l];s[o]=a(r[o],o,r)}return s}function vO(){}function bq(r){return r==null?vO:function(a){return hO(r,a)}}function Rq(r,a,e){var t=Array(Math.max(0,r));a=Ca(a,e,1);for(var i=0;i<r;i++)t[i]=a(i);return t}function ac(r,a){return a==null&&(a=r,r=0),r+Math.floor(Math.random()*(a-r+1))}const Va=Date.now||function(){return new Date().getTime()};function TO(r){var a=function(s){return r[s]},e="(?:"+Mt(r).join("|")+")",t=RegExp(e),i=RegExp(e,"g");return function(s){return s=s==null?"":""+s,t.test(s)?s.replace(i,a):s}}const EO={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Dq=TO(EO),Oq=uO(EO),Pq=TO(Oq),wq=Xe.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var oc=/(.)^/,Cq={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Vq=/\\|'|\r|\n|\u2028|\u2029/g;function Bq(r){return"\\"+Cq[r]}var _q=/^\s*(\w|\$)+\s*$/;function Mq(r,a,e){!a&&e&&(a=e),a=cO({},a,Xe.templateSettings);var t=RegExp([(a.escape||oc).source,(a.interpolate||oc).source,(a.evaluate||oc).source].join("|")+"|$","g"),i=0,s="__p+='";r.replace(t,function(u,y,c,E,I){return s+=r.slice(i,I).replace(Vq,Bq),i=I+u.length,y?s+=`'+
|
|
24
|
+
LIMIT 10 OFFSET 0;`,g6={id:"find-companies-with-multiple-employees-and-bank-account-search-parent-ref-id",type:n.GenericReference,entityId:fe,version:"1",entityType:n.Project},G6={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-parent-ref-id",type:n.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",version:"1",entityType:n.Search},HR={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-id",type:n.ValueDescriptor,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"companies",description:"List of companies with multiple employees and an existing bank account",defaultValue:null,dataType:null,required:!0,parentRelationType:N.FixedReturns,index:0,parent:G6},F6={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-parent-ref-id",type:n.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",version:"1",entityType:n.Search},x6={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-id",type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:HR,writesValues:[],index:0,parent:F6},k6={id:"find-companies-with-multiple-employees-and-bank-account",type:n.Search,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Find companies with multiple employees and a bank account",description:"This search statement finds companies with multiple employees and an existing bank account",inputsDeclarations:[],outputsDeclarations:[HR],inputs:[],outputs:[x6],query:$6,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:g6},Z6={type:n.GenericReference,id:"employee-mapped-dto-manager-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:UR},q6={type:n.GenericReference,id:"employee-mapped-dto-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:zi},KR={id:G8,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"manager_id",description:null,defaultValue:null,index:4,readsValue:Z6,parent:q6},J6={type:n.GenericReference,id:"employee-mapped-dto-department-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:LR},S6={type:n.GenericReference,id:"employee-mapped-dto-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:zi},XR={id:g8,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"department_name",description:null,defaultValue:null,index:3,readsValue:J6,parent:S6},W6={type:n.GenericReference,id:"employee-mapped-dto-birth-date-input-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:NR},z6={type:n.GenericReference,id:"employee-mapped-dto-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:zi},QR={id:$8,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"birth_date",description:null,defaultValue:null,index:2,readsValue:W6,parent:z6},Y6={type:n.GenericReference,id:"employee-mapped-dto-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:MR},H6={type:n.GenericReference,id:"employee-mapped-dto-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:zi},eD={id:U8,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:Y6,parent:H6},K6={type:n.GenericReference,id:"employee-mapped-dto-requester-id-output-map-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:$R},X6={type:n.GenericReference,id:"employee-mapped-dto-requester-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:zi},tD={id:j8,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"requester_id",description:"The ID of the current user making the request",defaultValue:null,index:0,readsValue:K6,parent:X6},Q6={type:n.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:rp},e3={id:UR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:mi.properties[0],defaultValue:null,index:0,writesValues:[KR],parent:Q6},t3={type:n.GenericReference,id:"manager-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:rp},i3={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"manager-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,asType:!1,isList:!1,parent:t3},r3={type:n.GenericReference,id:"manager-variable-reads-value-ref-id",version:"1",entityType:n.OutputMap,entityId:jR},n3={type:n.GenericReference,id:"manager-variable-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},iD={constant:!0,required:!0,id:rp,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Manager",dataType:i3,description:"A variable holding an inherited manager for testing purposes",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:r3,writesValues:[],inputs:[],outputs:[e3],internalCalls:[],parent:n3,x:0,y:0},s3={type:n.GenericReference,id:"random-company-employee-manager-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:fs},a3={id:jR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Di.properties[2],index:3,writesValues:[iD],parent:s3},o3={type:n.GenericReference,id:"random-company-employee-department-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:fs},l3={id:LR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Di.properties[0],index:2,writesValues:[XR],parent:o3},d3={type:n.GenericReference,id:"random-company-employee-birth-date-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:fs},u3={id:NR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:Yt.properties[1],index:1,writesValues:[QR],parent:d3},p3={type:n.GenericReference,id:"random-company-employee-id-output-map-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:fs},c3={id:MR,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:mi.properties[0],index:0,writesValues:[eD],parent:p3},f3={type:n.GenericReference,id:"random-company-employee-test-variable-data-type-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:fs},y3={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"random-company-employee-test-variable-data-type-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,entity:Di,asType:!1,isList:!1,parent:f3},h3={type:n.GenericReference,id:"random-company-employee-test-variable-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},m3={constant:!0,required:!0,id:fs,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Company employee",dataType:y3,description:"A variable holding a random company employee for testing purposes",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[c3,u3,l3,a3],internalCalls:[],parent:h3,x:0,y:0},v3={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-parent-ref-id",version:"1",entityType:n.InputMap,entityId:gR},T3={type:n.LiteralValue,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-id",name:L.Date,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,valueAsTypeList:null,valueAsTypeSingle:null,value:null,autogeneration:{type:vt.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:v3},E3={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-parent-ref-id",version:"1",entityType:n.VariableInstance,entityId:On},I3={id:gR,type:n.InputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,declaration:null,name:"now",description:"The current timestamp when the operation is executed",defaultValue:T3,index:5,readsValue:null,parent:E3},A3={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-decl-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:zi},b3={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-called-by-success-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:zi},R3={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},D3={id:On,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:A3,calledByError:[],calledByEntry:[],calledBySuccess:[b3],successCalls:[sp,SR,GR],errorCalls:[],readsValue:null,writesValues:[JR],inputs:[I3],outputs:[],internalCalls:[],parent:R3,x:0,y:0},O3={type:n.GenericReference,id:"employee-mapped-dto-variable-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},P3={constant:!0,required:!0,id:zi,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[sp,D3],errorCalls:[],readsValue:null,writesValues:[kR],inputs:[tD,eD,QR,XR,KR],outputs:[],internalCalls:[],parent:O3,x:0,y:0},w3={type:n.GenericReference,id:"0e63e617-f9d3-42e8-bde0-1bb0b1df7034",version:"1",entityType:n.VariableDeclaration,entityId:eA},C3={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"e75645ce-d3df-4f07-a897-ae9ef4d917fd",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:Ru,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:w3},V3={type:n.GenericReference,id:"e92a8ff5-3fef-4e0c-8d8f-92c930b2890b",version:"1",entityType:n.Project,entityId:fe},rD={constant:!0,required:!0,id:eA,type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Current user",description:"The user that is currently logged in",defaultValue:null,dataType:C3,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:V3},B3={type:n.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",version:"1",entityType:n.VariableInstance,entityId:_R},_3={id:$R,type:n.OutputMap,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:mi.properties[0],index:0,writesValues:[tD],parent:B3},M3={type:n.GenericReference,id:"global-user-instance-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},N3={id:_R,type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:rD,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[_3],internalCalls:[],parent:M3,x:0,y:0},L3={type:n.GenericReference,id:"is-test-environment-variable-dcl-datatype-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"is-test-environment-variable-dcl-id"},j3={type:n.GenericReference,id:"is-test-environment-variable-dcl-datatype-default-value-parent-ref-id",version:"1",entityType:n.VariableDeclaration,entityId:"is-test-environment-variable-dcl-id"},U3={like:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,inferred:!1,id:"is-test-environment-variable-dcl-datatype-id",type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,andChildrenGroup:null,orChildrenGroup:null,entity:rr,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,asType:!1,isList:!1,parent:L3},$3={type:n.GenericReference,id:"is-test-environment-variable-dcl-main-project-ref-id",version:"1",entityType:n.Project,entityId:fe},nD={constant:!0,required:!0,id:"is-test-environment-variable-dcl-id",type:n.VariableDeclaration,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Is test envrioment",description:"Indicates whether the current environment is a test environment or not.",defaultValue:{id:"is-test-environment-variable-dcl-datatype-default-value-id",name:L.Boolean,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,value:null,type:n.LiteralValue,autogeneration:{type:vt.Random,rangeStart:null,rangeEnd:null},valueAsTypeList:null,valueAsTypeSingle:null,parent:j3},dataType:U3,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:$3},g3={type:n.GenericReference,id:"is-test-environment-variable-instance-parent-ref-id",version:"1",entityType:n.Project,entityId:fe},G3={id:"is-test-environment-variable-instance-id",type:n.VariableInstance,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,defaultValue:null,declaration:nD,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[],internalCalls:[],parent:g3,x:0,y:0},up={type:n.Project,id:fe,version:"1",createdAt:"2024-01-01T00:00:00.000Z",author:"1",previousVersion:null,deleted:!1,name:"Mocked project to compile",description:"This project is used to test all sorts of features and edge cases. It is not meant to be used in production. Or to have any functionality that makes sense",projects:[C8],entities:[bu,mi,Ru,Yt,I$,Di,Wo,vA,TA,as,Qj,Oi,WU,Au,yB,n$,Kj],functions:[Wx,FA,Fu,ik,pk,XA,xu,wu,D8,wA,e9],events:[Q$],variableDeclarations:[nD,rD,Su,m3,iD,P3],variableInstances:[G3,N3],conditions:[],operations:[us],functionCalls:[Q2,ug],loops:[U6,sp,SR,P6,GR],searches:[k6]};var sD={exports:{}};(function(r,a){(function(e,t){r.exports=t()})(UC,function(){var e=1e3,t=6e4,i=36e5,s="millisecond",l="second",o="minute",d="hour",u="day",y="week",c="month",E="quarter",I="year",O="date",P="Invalid Date",V=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(me){var ie=["th","st","nd","rd"],Y=me%100;return"["+me+(ie[(Y-20)%10]||ie[Y]||ie[0])+"]"}},B=function(me,ie,Y){var ue=String(me);return!ue||ue.length>=ie?me:""+Array(ie+1-ue.length).join(Y)+me},G={s:B,z:function(me){var ie=-me.utcOffset(),Y=Math.abs(ie),ue=Math.floor(Y/60),te=Y%60;return(ie<=0?"+":"-")+B(ue,2,"0")+":"+B(te,2,"0")},m:function me(ie,Y){if(ie.date()<Y.date())return-me(Y,ie);var ue=12*(Y.year()-ie.year())+(Y.month()-ie.month()),te=ie.clone().add(ue,c),$e=Y-te<0,ge=ie.clone().add(ue+($e?-1:1),c);return+(-(ue+(Y-te)/($e?te-ge:ge-te))||0)},a:function(me){return me<0?Math.ceil(me)||0:Math.floor(me)},p:function(me){return{M:c,y:I,w:y,d:u,D:O,h:d,m:o,s:l,ms:s,Q:E}[me]||String(me||"").toLowerCase().replace(/s$/,"")},u:function(me){return me===void 0}},q="en",W={};W[q]=g;var X="$isDayjsObject",pe=function(me){return me instanceof ri||!(!me||!me[X])},Ee=function me(ie,Y,ue){var te;if(!ie)return q;if(typeof ie=="string"){var $e=ie.toLowerCase();W[$e]&&(te=$e),Y&&(W[$e]=Y,te=$e);var ge=ie.split("-");if(!te&&ge.length>1)return me(ge[0])}else{var ft=ie.name;W[ft]=ie,te=ft}return!ue&&te&&(q=te),te||!ue&&q},Q=function(me,ie){if(pe(me))return me.clone();var Y=typeof ie=="object"?ie:{};return Y.date=me,Y.args=arguments,new ri(Y)},le=G;le.l=Ee,le.i=pe,le.w=function(me,ie){return Q(me,{locale:ie.$L,utc:ie.$u,x:ie.$x,$offset:ie.$offset})};var ri=function(){function me(Y){this.$L=Ee(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[X]=!0}var ie=me.prototype;return ie.parse=function(Y){this.$d=function(ue){var te=ue.date,$e=ue.utc;if(te===null)return new Date(NaN);if(le.u(te))return new Date;if(te instanceof Date)return new Date(te);if(typeof te=="string"&&!/Z$/i.test(te)){var ge=te.match(V);if(ge){var ft=ge[2]-1||0,Rt=(ge[7]||"0").substring(0,3);return $e?new Date(Date.UTC(ge[1],ft,ge[3]||1,ge[4]||0,ge[5]||0,ge[6]||0,Rt)):new Date(ge[1],ft,ge[3]||1,ge[4]||0,ge[5]||0,ge[6]||0,Rt)}}return new Date(te)}(Y),this.init()},ie.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},ie.$utils=function(){return le},ie.isValid=function(){return this.$d.toString()!==P},ie.isSame=function(Y,ue){var te=Q(Y);return this.startOf(ue)<=te&&te<=this.endOf(ue)},ie.isAfter=function(Y,ue){return Q(Y)<this.startOf(ue)},ie.isBefore=function(Y,ue){return this.endOf(ue)<Q(Y)},ie.$g=function(Y,ue,te){return le.u(Y)?this[ue]:this.set(te,Y)},ie.unix=function(){return Math.floor(this.valueOf()/1e3)},ie.valueOf=function(){return this.$d.getTime()},ie.startOf=function(Y,ue){var te=this,$e=!!le.u(ue)||ue,ge=le.p(Y),ft=function(Fn,pi){var ln=le.w(te.$u?Date.UTC(te.$y,pi,Fn):new Date(te.$y,pi,Fn),te);return $e?ln:ln.endOf(u)},Rt=function(Fn,pi){return le.w(te.toDate()[Fn].apply(te.toDate("s"),($e?[0,0,0,0]:[23,59,59,999]).slice(pi)),te)},Nt=this.$W,St=this.$M,Ci=this.$D,Vs="set"+(this.$u?"UTC":"");switch(ge){case I:return $e?ft(1,0):ft(31,11);case c:return $e?ft(1,St):ft(0,St+1);case y:var Gn=this.$locale().weekStart||0,qa=(Nt<Gn?Nt+7:Nt)-Gn;return ft($e?Ci-qa:Ci+(6-qa),St);case u:case O:return Rt(Vs+"Hours",0);case d:return Rt(Vs+"Minutes",1);case o:return Rt(Vs+"Seconds",2);case l:return Rt(Vs+"Milliseconds",3);default:return this.clone()}},ie.endOf=function(Y){return this.startOf(Y,!1)},ie.$set=function(Y,ue){var te,$e=le.p(Y),ge="set"+(this.$u?"UTC":""),ft=(te={},te[u]=ge+"Date",te[O]=ge+"Date",te[c]=ge+"Month",te[I]=ge+"FullYear",te[d]=ge+"Hours",te[o]=ge+"Minutes",te[l]=ge+"Seconds",te[s]=ge+"Milliseconds",te)[$e],Rt=$e===u?this.$D+(ue-this.$W):ue;if($e===c||$e===I){var Nt=this.clone().set(O,1);Nt.$d[ft](Rt),Nt.init(),this.$d=Nt.set(O,Math.min(this.$D,Nt.daysInMonth())).$d}else ft&&this.$d[ft](Rt);return this.init(),this},ie.set=function(Y,ue){return this.clone().$set(Y,ue)},ie.get=function(Y){return this[le.p(Y)]()},ie.add=function(Y,ue){var te,$e=this;Y=Number(Y);var ge=le.p(ue),ft=function(St){var Ci=Q($e);return le.w(Ci.date(Ci.date()+Math.round(St*Y)),$e)};if(ge===c)return this.set(c,this.$M+Y);if(ge===I)return this.set(I,this.$y+Y);if(ge===u)return ft(1);if(ge===y)return ft(7);var Rt=(te={},te[o]=t,te[d]=i,te[l]=e,te)[ge]||1,Nt=this.$d.getTime()+Y*Rt;return le.w(Nt,this)},ie.subtract=function(Y,ue){return this.add(-1*Y,ue)},ie.format=function(Y){var ue=this,te=this.$locale();if(!this.isValid())return te.invalidDate||P;var $e=Y||"YYYY-MM-DDTHH:mm:ssZ",ge=le.z(this),ft=this.$H,Rt=this.$m,Nt=this.$M,St=te.weekdays,Ci=te.months,Vs=te.meridiem,Gn=function(pi,ln,Ja,ud){return pi&&(pi[ln]||pi(ue,$e))||Ja[ln].slice(0,ud)},qa=function(pi){return le.s(ft%12||12,pi,"0")},Fn=Vs||function(pi,ln,Ja){var ud=pi<12?"AM":"PM";return Ja?ud.toLowerCase():ud};return $e.replace(M,function(pi,ln){return ln||function(Ja){switch(Ja){case"YY":return String(ue.$y).slice(-2);case"YYYY":return le.s(ue.$y,4,"0");case"M":return Nt+1;case"MM":return le.s(Nt+1,2,"0");case"MMM":return Gn(te.monthsShort,Nt,Ci,3);case"MMMM":return Gn(Ci,Nt);case"D":return ue.$D;case"DD":return le.s(ue.$D,2,"0");case"d":return String(ue.$W);case"dd":return Gn(te.weekdaysMin,ue.$W,St,2);case"ddd":return Gn(te.weekdaysShort,ue.$W,St,3);case"dddd":return St[ue.$W];case"H":return String(ft);case"HH":return le.s(ft,2,"0");case"h":return qa(1);case"hh":return qa(2);case"a":return Fn(ft,Rt,!0);case"A":return Fn(ft,Rt,!1);case"m":return String(Rt);case"mm":return le.s(Rt,2,"0");case"s":return String(ue.$s);case"ss":return le.s(ue.$s,2,"0");case"SSS":return le.s(ue.$ms,3,"0");case"Z":return ge}return null}(pi)||ge.replace(":","")})},ie.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ie.diff=function(Y,ue,te){var $e,ge=this,ft=le.p(ue),Rt=Q(Y),Nt=(Rt.utcOffset()-this.utcOffset())*t,St=this-Rt,Ci=function(){return le.m(ge,Rt)};switch(ft){case I:$e=Ci()/12;break;case c:$e=Ci();break;case E:$e=Ci()/3;break;case y:$e=(St-Nt)/6048e5;break;case u:$e=(St-Nt)/864e5;break;case d:$e=St/i;break;case o:$e=St/t;break;case l:$e=St/e;break;default:$e=St}return te?$e:le.a($e)},ie.daysInMonth=function(){return this.endOf(c).$D},ie.$locale=function(){return W[this.$L]},ie.locale=function(Y,ue){if(!Y)return this.$L;var te=this.clone(),$e=Ee(Y,ue,!0);return $e&&(te.$L=$e),te},ie.clone=function(){return le.w(this.$d,this)},ie.toDate=function(){return new Date(this.valueOf())},ie.toJSON=function(){return this.isValid()?this.toISOString():null},ie.toISOString=function(){return this.$d.toISOString()},ie.toString=function(){return this.$d.toUTCString()},me}(),tr=ri.prototype;return Q.prototype=tr,[["$ms",s],["$s",l],["$m",o],["$H",d],["$W",u],["$M",c],["$y",I],["$D",O]].forEach(function(me){tr[me[1]]=function(ie){return this.$g(ie,me[0],me[1])}}),Q.extend=function(me,ie){return me.$i||(me(ie,ri,Q),me.$i=!0),Q},Q.locale=Ee,Q.isDayjs=pe,Q.unix=function(me){return Q(1e3*me)},Q.en=W[q],Q.Ls=W,Q.p={},Q})})(sD);var F3=sD.exports;const T=_I(F3);var D=(r=>(r.Error="error",r.Warning="warning",r))(D||{}),$=(r=>(r.InvalidObjectStructure="invalid-object-structure",r.NameNotUniqueInScope="name-not-unique-in-scope",r.EmptyName="empty-name",r.MissingCaller="missing-caller",r.PropertyOverwritesOtherSiblingWithSameName="property-overwrites-other-sibling-with-same-name",r.PropertyOverwritesOtherSiblingWithSameImplementation="property-overwrites-other-sibling-with-same-name",r.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName="property-overwrites-other-implemented-entitys-property-with-same-name",r.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation="property-overwrites-other-implemented-entitys-property-with-same-name",r.PropertyOverwritesOtherExtendedEntitysPropertyWithSameImplementation="property-overwrites-other-extended-entitys-property-with-same-name",r.PropertyOverwritesOtherExtendedEntitysPropertyWithSameName="property-overwrites-other-extended-entitys-property-with-same-name",r.PropertyOverwritesBasePropertyWithSameName="property-overwrites-base-property-with-same-name",r.PropertyOverwritesBasePropertyWithSameImplementation="property-overwrites-base-property-with-same-name",r.MethodOverwritesOtherSiblingWithSameName="method-overwrites-other-sibling-with-same-name",r.MethodOverwritesOtherSiblingWithSameImplementation="method-overwrites-other-sibling-with-same-name",r.MethodOverwritesOtherImplementedEntitysMethodWithSameName="method-overwrites-other-implemented-entitys-method-with-same-name",r.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation="method-overwrites-other-implemented-entitys-method-with-same-name",r.MethodOverwritesOtherExtendedEntitysMethodWithSameImplementation="method-overwrites-other-extended-entitys-method-with-same-name",r.MethodOverwritesOtherExtendedEntitysMethodWithSameName="method-overwrites-other-extended-entitys-method-with-same-name",r.MethodOverwritesBaseMethodWithSameName="method-overwrites-base-method-with-same-name",r.MethodOverwritesBaseMethodWithSameImplementation="method-overwrites-base-method-with-same-name",r.LoopBodyFunctionOverwrite="loop-body-function-overwrite",r.NoOverlapWithImplementedSignature="no-overlap-with-implemented-signature",r.ReaderWriterIncompatibleDataType="reader-writer-incompatible-data-type",r.UnreachableEntity="unreachable-entity",r.InternalCallParentMissingDataType="internal-call-parent-missing-data-type",r.InternalCallParentDeclarationEntityInvalidType="internal-call-parent-declaration-entity-invalid-type",r.InternalCallDeclarationNotFoundInParentDatatypeEntity="internal-call-declaration-not-found-in-parent-datatype-entity",r.InternalCallDeclarationIsNotFunctionDeclaration="internal-call-declaration-is-not-function-declaration",r.InternalCallDeclarationNotInParentDatatypeEntity="internal-call-declaration-not-in-parent-datatype-entity",r))($||{}),R=(r=>(r.RootReference="root-reference",r.ReferencedEntityNotFound="referenced-entity-not-found",r.EntityIdNotUnique="entity-id-not-unique",r.BuiltInEntityGenerated="built-in-entity-generated",r.BuiltInEntityUpdated="built-in-entity-updated",r.BuiltInEntityDeleted="built-in-entity-deleted",r.UnknownEntityType="unknown-entity-type",r.MissingTypeProperty="missing-type-property",r.MissingIdProperty="missing-id-property",r.BuiltInEntityParent="built-in-entity-parent",r.InvalidBuiltInEntityReference="invalid-built-in-entity-reference",r.RecommendedImplementAbstractEntityAction="recommended-implement-abstract-entity-action",r.RecommendedImplementOperationAction="recommended-implement-operation-action",r.RecommendedImplementFunctionCallAction="recommended-implement-function-call-action",r.RecommendedImplementVariableDeclarationAction="recommended-implement-variable-declaration-action",r.RecommendedImplementVariableInstanceAction="recommended-implement-variable-instance-action",r.RecommendedImplementConditionAction="recommended-implement-condition-action",r.InvalidReferenceObjectStructure="invalid-reference-object-structure",r.ContainsSingleButShouldBeReferenceList="contains-single-but-should-be-reference-list",r.ContainsListButShouldReferenceSingle="contains-list-but-should-reference-single",r.InvalidParentReference="invalid-parent-reference",r.InvalidImplementsReference="invalid-implements-reference",r.InvalidExtendsReference="invalid-extends-reference",r.InvalidGenerationActionPayload="invalid-generation-action-payload",r.InvalidReference="invalid-reference",r.InvalidInternalCallParentRelation="invalid-internal-call-parent-relation",r.InvalidUpdateEntityOperation="invalid-update-entity-operation",r.NewEntityWouldOverriteExisting="new-entity-would-overrite-existing",r.InvalidDownstreamPropertyOverride="invalid-downstream-property-override",r.UnrecognizedProperty="unrecognized-property",r.SelfReference="self-reference",r.DuplicateReference="duplicate-reference",r.CallerWithIncompatibleScope="caller-with-incompatible-scope",r.InvalidFunctionDeclarationForFunctionCall="invalid-function-declaration-for-function-call",r.InvalidInputMapDeclaration="invalid-input-map-declaration",r.InvalidActionDescriptorForOperation="invalid-action-descriptor-for-operation",r.InvalidActionDescriptorForCondition="invalid-action-descriptor-for-condition",r.InvalidActionDescriptorForLoop="invalid-action-descriptor-for-loop",r.InvalidInmutablePropertyOverride="invalid-inmutable-property-override",r.OutputOverwrite="output-overwrite",r.InputOverwrite="input-overwrite",r.IncompatibleScope="incompatible-scope",r.InvalidParentUpdate="invalid-parent-update",r.NonInteractiveEntityReferenced="non-interactive-entity-referenced",r.InvalidParentRelationType="invalid-parent-relation-type",r))(R||{}),F=(r=>(r.NoPrimaryKeyProperty="no-primary-key-property",r.ScopeWithoutLogic="scope-without-logic",r.AbstractEntityImplements="abstract-entity-implements",r.ImplementsIncompatibleEntities="implements-incompatible-entities",r.ExtendsIncompatibleEntities="extends-incompatible-entities",r.NonAbstractExtendingAbstractEntity="non-abstract-extending-abstract-entity",r.AbstractExtendingNonAbstractEntity="abstract-extending-non-abstract-entity",r.NonStaticExtendingStaticEntity="non-static-extending-static-entity",r.StaticExtendingNonStaticEntity="static-extending-non-static-entity",r.StaticImplementingNonStaticEntity="static-implementing-non-static-entity",r.NonStaticImplementingStaticEntity="non-static-implementing-static-entity",r.ImplementingNonAbstractEntity="implementing-non-abstract-entity",r.ExtendingNonInteractiveEntity="extending-non-interactive-entity",r.AbstractEntityWithNonAbstractMethods="abstract-entity-with-non-abstract-methods",r.AbstractEntityWithNonAbstractProperties="abstract-entity-with-non-abstract-properties",r.StaticEntityWithNonStaticProperties="static-entity-with-non-static-properties",r.NonStaticPropertyInStaticEntity="non-static-property-in-static-entity",r.AbstractPropertyInNonAbstractEntity="abstract-property-in-non-abstract-entity",r.AbstractMethodInNonAbstractEntity="abstract-method-in-non-abstract-entity",r.IncorrectEntityImplementation="incorrect-entity-implementation",r.IncorrectMethodImplementation="incorrect-method-implementation",r.IncorrectPropertyImplementation="incorrect-property-implementation",r.PropertyImplementsNonAbstact="property-implements-non-abstract",r.NonStaticPropertyImplementsStatic="non-static-property-implements-static",r.StaticPropertyImplementsNonStatic="static-property-implements-non-static",r.PropertyImplementsIncompatibleType="property-implements-incompatible-type",r.MissingPropertyImplementation="missing-property-implementation",r.MissingMethodImplementation="missing-method-implementation",r.NoProperties="no-properties",r.ReadingFromIncompatibleType="reading-from-incompatible-type",r.WritingToIncompatibleType="writing-to-incompatible-type",r.InvalidPropertiesCombination="invalid-properties-combination",r.DisconnectedCallableEntity="disconnected-callable-entity",r.VariableReadsValueAndInternalCall="variable-reads-value-and-internal-call",r.VariableWritesValuesAndInternalCall="variable-writes-values-and-internal-call",r.VariableHasInputsAndInternalCall="variable-has-inputs-and-internal-calls",r.VariableHasOutputsAndInternalCall="variable-has-outputs-and-internal-call",r.VariableIsCalledAndHasInternalCall="variable-is-called-and-has-internal-call",r.VariableCallsOthersAndHasInternalCall="variable-calls-others-and-has-internal-call",r))(F||{});class w{constructor(a){f(this,"id");f(this,"message");f(this,"issue");f(this,"severity");f(this,"code");this.id=a.id,this.message=a.message,this.issue=a.issue,this.severity=a.severity,this.code=a.code}toEntityError(a){return this.code in $?new Ye({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:a}):null}}class Ye{constructor(a){f(this,"id");f(this,"message");f(this,"issue");f(this,"severity");f(this,"code");f(this,"entity");f(this,"firstRelationship");f(this,"secondRelationship");this.id=a.id,this.message=a.message,this.issue=a.issue,this.severity=a.severity,this.code=a.code,this.entity=a.entity,this.firstRelationship=a.firstRelationship,this.secondRelationship=a.secondRelationship}clone(){return new Ye({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:this.entity,firstRelationship:this.firstRelationship,secondRelationship:this.secondRelationship})}}function x3(r){const a=new Set;return r.filter(e=>a.has(e.id)?!1:(a.add(e.id),!0))}function de(r){const a=r.entity.errors.find(t=>t.id===r.id);return a?{new:!1,error:a}:{new:!0,error:new Ye(r)}}function k3(r,a){const e=new Map;return r.forEach(t=>{e.set(t.id,t)}),a.forEach(t=>{e.set(t.id,t)}),Array.from(e.values())}function Ke(r,a){const e=[];return a.forEach(t=>{const i=r.find(s=>s.id===t.id);i?e.push(i):e.push(t)}),e}const ca=v.union([v.string(),v.number(),v.boolean(),v.date()]),aD=v.enum([vt.CurrentDateAndTime,vt.Random,vt.Unique]),ol=v.object({type:aD,rangeStart:ca.nullable(),rangeEnd:ca.nullable()}),fa=ol.extend({type:v.literal(vt.Random),rangeStart:ca,rangeEnd:ca}),pp=ol.extend({type:v.literal(vt.Unique),rangeStart:v.null(),rangeEnd:v.null()}),oD=ol.extend({type:v.literal(vt.CurrentDateAndTime),rangeStart:v.null(),rangeEnd:v.null()}),ll=fa.extend({rangeStart:v.number().nullable(),rangeEnd:v.number().nullable()}),lD=ll.extend({rangeStart:v.number(),rangeEnd:v.null()}),dD=ll.extend({rangeStart:v.null(),rangeEnd:v.number()}),uD=ll.extend({rangeStart:v.number(),rangeEnd:v.number()}),dl=fa.extend({rangeStart:v.number().nullable(),rangeEnd:v.number().nullable()}),pD=dl.extend({rangeStart:v.number(),rangeEnd:v.null()}),cD=dl.extend({rangeStart:v.null(),rangeEnd:v.number()}),fD=dl.extend({rangeStart:v.number(),rangeEnd:v.number()}),ul=fa.extend({rangeStart:v.date().nullable(),rangeEnd:v.date().nullable()}),yD=ul.extend({rangeStart:v.date(),rangeEnd:v.null()}),hD=ul.extend({rangeStart:v.null(),rangeEnd:v.date()}),mD=ul.extend({rangeStart:v.date(),rangeEnd:v.date()}),cp=fa.extend({rangeStart:v.null(),rangeEnd:v.null()}),fp=v.union([pD,cD,fD]),yp=v.union([lD,dD,uD]),hp=v.union([yD,hD,mD,oD]),mp=v.union([fp,yp,hp,pp,cp]);function ya(){return v.union([v.object({type:v.literal(n.ValueDescriptor)}),v.record(v.string(),v.any())])}function vD(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.ValueDescriptor)})}function vp(){return v.object({id:v.string(),type:v.literal(n.ValueDescriptor),name:v.string(),required:v.boolean()})}function Z3(){return vp().merge(v.object({version:v.number(),index:v.number()}))}function q3(){return vp().merge(v.object({}))}function J3(){return v.object({dataType:Vn(),parent:wn()})}function S3(){return Z3().merge(J3())}function pl(){return v.union([v.object({type:v.literal(n.PrimitiveEntity)}),v.record(v.string(),v.any())])}function cl(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.PrimitiveEntity)})}function fl(){return v.object({id:v.string(),type:v.literal(n.PrimitiveEntity),name:v.string(),description:v.string().nullable(),static:v.boolean(),abstract:v.boolean()})}function W3(){return fl().merge(v.object({version:v.number()}))}function z3(){return fl().merge(v.object({}))}function Y3(){return v.object({properties:v.array(Pn()),methods:v.array(Ti()),abstractMethods:v.array(Yi()),extends:v.array(v.union([pl(),ys()]))})}function H3(){return W3().merge(Y3())}function Pn(){return v.union([v.object({type:v.literal(n.Property)}),v.record(v.string(),v.any())])}function TD(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.Property)})}function Tp(){return v.object({id:v.string(),type:v.literal(n.Property),name:v.string(),description:v.string().nullable(),private:v.boolean(),static:v.boolean(),required:v.boolean(),abstract:v.boolean()})}function K3(){return Tp().merge(v.object({version:v.number(),index:v.number()}))}function X3(){return Tp().merge(v.object({}))}function Q3(){return v.object({dataType:Vn(),implements:Pn().nullable(),parent:v.union([Mn(),cl(),yl()])})}function e5(){return K3().merge(Q3())}function t5(){return v.enum([S.CRON_JOB,S.EXECUTION,S.HTTP_ENDPOINT,S.PERSISTED_ENTITY,S.RELATIONAL_DATABASE])}function ys(){return v.union([v.object({type:v.literal(n.BuiltInBaseEntity)}),v.record(v.string(),v.any())])}function yl(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.BuiltInBaseEntity)})}function Ep(){return v.object({id:v.string(),version:v.number(),type:v.literal(n.BuiltInBaseEntity),name:t5(),description:v.string().nullable(),abstract:v.boolean(),static:v.boolean()})}function i5(){return Ep()}function r5(){return Ep().merge(v.object({}))}function n5(){return v.object({properties:v.array(Pn()),methods:v.array(Ti()),abstractMethods:v.array(Yi()),extends:v.array(v.union([ys(),pl()]))})}function s5(){return i5().merge(n5())}function Yi(){return v.union([v.object({type:v.literal(n.ActionDescriptor)}),v.record(v.string(),v.any())])}function wn(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.ActionDescriptor)})}function hl(){return v.object({id:v.string(),type:v.literal(n.ActionDescriptor),name:v.string(),description:v.string().nullable()})}function a5(){return hl().merge(v.object({version:v.number()}))}function o5(){return hl().merge(v.object({}))}function l5(){return v.object({inputs:v.array(ya()),outputs:v.array(ya()),parent:v.union([ai(),Mn(),yl(),cl()]).nullable()})}function ED(){return a5().merge(l5())}function hs(){return v.union([v.object({type:v.literal(n.Loop)}),v.record(v.string(),v.any())])}function Hi(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.Loop)})}function ID(){return v.object({id:v.string(),type:v.literal(n.Loop)})}function d5(){return ID().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function u5(){return ID().merge(v.object({declaration:v.union([v.string(),Ti()])}))}function p5(){return v.object({calledBySuccess:v.array(rt()),calledByError:v.array(rt()),calledByEntry:v.array(Ot()),declaration:Yi(),inputs:v.array(Ni()),outputs:v.array(Xt()),outputsDeclarations:v.array(ya()),successCalls:v.array(Ct()),errorCalls:v.array(Ct()),error:Xt(),body:Ti(),parent:v.union([mr(),ai()]),breakStatements:v.array(Es()),continueStatements:v.array(ms())})}function c5(){return d5().merge(p5())}function ms(){return v.union([v.object({type:v.literal(n.ContinueStatement)}),v.record(v.string(),v.any())])}function vs(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.ContinueStatement)})}function Ip(){return v.object({id:v.string(),type:v.literal(n.ContinueStatement)})}function f5(){return Ip().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function y5(){return Ip().merge(v.object({}))}function h5(){return v.object({calledBySuccess:v.array(rt()),calledByError:v.array(rt()),calledByEntry:v.array(Ot()),outputs:v.array(fr()),throws:v.optional(fr()),parent:Hi()})}function m5(){return f5().merge(h5())}function Cn(){return v.union([v.object({type:v.literal(n.ReturnStatement)}),v.record(v.string(),v.any())])}function Ts(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.ReturnStatement)})}function Ap(){return v.object({id:v.string(),type:v.literal(n.ReturnStatement)})}function v5(){return Ap().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function T5(){return Ap().merge(v.object({}))}function E5(){return v.object({calledBySuccess:v.array(rt()),calledByError:v.array(rt()),calledByEntry:v.array(Ot()),outputs:v.array(fr()),throws:v.optional(fr()),parent:mr()})}function I5(){return v5().merge(E5())}function fr(){return v.union([v.object({type:v.literal(n.ReturnDeclaration)}),v.record(v.string(),v.any())])}function AD(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.ReturnDeclaration)})}function bp(){return v.object({id:v.string(),type:v.literal(n.ReturnDeclaration),name:v.string(),description:v.string().nullable(),isError:v.boolean()})}function A5(){return bp().merge(v.object({version:v.number(),index:v.number()}))}function b5(){return bp().merge(v.object({}))}function R5(){return v.object({dataType:Vn().nullable(),readsValue:Ia().nullable(),parent:v.union([Ts(),wn(),yr(),vs()])})}function D5(){return A5().merge(R5())}function Es(){return v.union([v.object({type:v.literal(n.BreakStatement)}),v.record(v.string(),v.any())])}function yr(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.BreakStatement)})}function Rp(){return v.object({id:v.string(),type:v.literal(n.BreakStatement)})}function O5(){return Rp().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function P5(){return Rp().merge(v.object({}))}function w5(){return v.object({calledBySuccess:v.array(rt()),calledByError:v.array(rt()),calledByEntry:v.array(Ot()),outputs:v.array(fr()),throws:v.optional(fr()),parent:Hi()})}function C5(){return O5().merge(w5())}function Xt(){return v.union([v.object({type:v.literal(n.OutputMap)}),v.record(v.string(),v.any())])}function Dp(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.OutputMap)})}function Op(){return v.object({id:v.string(),type:v.literal(n.OutputMap)})}function V5(){return Op().merge(v.object({version:v.number(),index:v.number()}))}function B5(){return Op().merge(v.object({}))}function _5(){return v.object({writesValues:v.array(hr()),declaration:v.union([fr(),Pn()]),parent:v.union([rt(),Hi(),yr()])})}function M5(){return V5().merge(_5())}function Is(){return v.union([v.object({type:v.literal(n.FunctionCall)}),v.record(v.string(),v.any())])}function ha(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.FunctionCall)})}function Pp(){return v.object({id:v.string(),type:v.literal(n.FunctionCall)})}function N5(){return Pp().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function L5(){return Pp().merge(v.object({}))}function j5(){return v.object({successCalls:v.array(Ct()),errorCalls:v.array(Ct()),calledBySuccess:v.array(rt()),calledByError:v.array(rt()),calledByEntry:v.array(Ot()),writesValues:v.array(hr()),declaration:Ti(),inputs:v.array(Ni()),outputs:v.array(Xt()),error:v.optional(Xt()),parent:v.union([mr(),ai()])})}function U5(){return N5().merge(j5())}function $5(){return v.enum([yt.Equal,yt.NotEqual,yt.MoreThan,yt.MoreThanOrEqual,yt.LessThan,yt.LessThanOrEqual,yt.And,yt.Or,bi.Empty,bi.NotEmpty])}function ma(){return v.union([v.object({type:v.literal(n.Condition)}),v.record(v.string(),v.any())])}function ml(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.Condition)})}function wp(){return v.object({id:v.string(),type:v.literal(n.Condition)})}function g5(){return wp().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function G5(){return wp().merge(v.object({}))}function F5(){return v.object({successCalls:v.array(Ct()),errorCalls:v.array(Ct()),calledBySuccess:v.array(rt()),calledByError:v.array(rt()),calledByEntry:v.array(Ot()),leftValue:Ni(),rightValue:Ni().nullable(),operator:$5(),parent:v.union([mr(),ai()])})}function x5(){return g5().merge(F5())}function va(){return v.union([v.object({type:v.literal(n.Search)}),v.record(v.string(),v.any())])}function Ta(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.Search)})}function Cp(){return v.object({id:v.string(),type:v.literal(n.Search),name:v.string(),query:v.any(),description:v.string().nullable()})}function k5(){return Cp().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function Z5(){return Cp().merge(v.object({}))}function q5(){return v.object({successCalls:v.array(Ct()),errorCalls:v.array(Ct()),calledBySuccess:v.array(rt()),calledByError:v.array(rt()),calledByEntry:v.array(Ot()),inputsDeclarations:v.array(_n()),inputs:v.array(Ni()),outputsDeclarations:v.array(ya()),outputs:v.array(Xt()),parent:v.union([mr(),ai()]),error:Xt().nullable()})}function J5(){return k5().merge(q5())}function Ea(){return v.union([v.object({type:v.literal(n.InternalCall)}),v.record(v.string(),v.any())])}function Vp(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.InternalCall)})}function Bp(){return v.object({id:v.string(),type:v.literal(n.InternalCall),index:v.number()})}function S5(){return Bp().merge(v.object({version:v.number(),index:v.number()}))}function W5(){return Bp().merge(v.object({declaration:v.union([v.string(),Ti()])}))}function z5(){return v.object({successCalls:v.array(Ct()),errorCalls:v.array(Ct()),calledBySuccess:v.array(rt()),calledByError:v.array(rt()),calledByEntry:v.array(Ot()),writesValues:v.array(hr()),declaration:Ti(),inputs:v.array(Ni()),outputs:v.array(Xt()),parent:jr(),error:v.optional(Xt())})}function Y5(){return S5().merge(z5())}function Ni(){return v.union([v.object({type:v.literal(n.InputMap)}),v.record(v.string(),v.any())])}function vl(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.InputMap)})}function _p(){return v.object({id:v.string(),type:v.literal(n.InputMap),name:v.string().nullable().optional(),description:v.string().nullable().optional()})}function H5(){return _p().merge(v.object({version:v.number(),index:v.number()}))}function K5(){return _p().merge(v.object({}))}function X5(){return v.object({defaultValue:Mp().nullable(),declaration:v.union([_n(),Pn()]).nullable(),readsValue:Ia().nullable(),parent:v.union([rt(),vl(),Hi(),yr()])})}function Q5(){return H5().merge(X5())}function As(){return v.union([v.object({type:v.literal(n.Operation)}),v.record(v.string(),v.any())])}function bs(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.Operation)})}function Tl(){return v.object({id:v.string(),type:v.literal(n.Operation)})}function eZ(){return Tl().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function tZ(){return Tl().merge(v.object({}))}function iZ(){return Tl().merge(v.object({successCalls:v.array(Ct()),errorCalls:v.array(Ct()),calledBySuccess:v.array(rt()),calledByError:v.array(rt()),calledByEntry:v.array(Ot()),writesValues:v.array(hr()),declaration:Yi(),inputs:v.array(Ni()),outputs:v.array(Xt()),error:v.array(Xt()),parent:v.union([mr(),ai()])}))}function rZ(){return eZ().merge(iZ())}function El(){return v.union([v.string(),v.number(),v.boolean(),v.null(),v.date()])}function bD(){return v.record(v.string(),El())}function nZ(){return v.array(v.union([El(),bD()]))}function RD(){return v.union([El(),bD(),nZ()])}function DD(){return v.union([El(),RD()])}function OD(){return v.enum([L.String,L.Number,L.Boolean,L.Null,L.Date,L.KeyValue,L.Enum,L.File,L.UUID,L.EntityTemplate,L.ActionDescriptor])}function PD(){return v.union([Mn(),bs(),Aa()])}function sZ(){return v.object({id:v.string(),name:OD(),type:v.literal(n.LiteralValue),value:DD(),autogeneration:mp.nullable()})}function aZ(){return sZ().merge(v.object({}))}function Li(){return v.object({id:v.string(),version:v.number(),name:OD(),type:v.literal(n.LiteralValue),value:DD(),valueAsTypeList:v.array(PD()).nullable(),valueAsTypeSingle:PD().nullable(),autogeneration:mp.nullable(),parent:v.union([Np(),vl()])})}function oZ(){return Li().extend({name:v.literal(L.String),value:v.string(),autogeneration:fp.nullable()})}function lZ(){return Li().extend({name:v.literal(L.Number),value:v.number(),autogeneration:yp.nullable()})}function dZ(){return Li().extend({name:v.literal(L.Boolean),value:v.boolean(),autogeneration:cp.nullable()})}function uZ(){return Li().extend({name:v.literal(L.Null),value:v.null(),autogeneration:v.null()})}function pZ(){return Li().extend({name:v.literal(L.Date),value:v.date(),autogeneration:hp.nullable()})}function cZ(){return Li().extend({name:v.literal(L.KeyValue),value:RD(),autogeneration:v.null()})}function fZ(){return Li().extend({name:v.literal(L.Enum),value:v.string(),autogeneration:v.null()})}function yZ(){return Li().extend({name:v.literal(L.File),value:v.string(),autogeneration:v.null()})}function hZ(){return Li().extend({name:v.literal(L.UUID),value:v.string(),autogeneration:pp.nullable()})}function mZ(){return Li().extend({name:v.literal(L.EntityTemplate),value:Mn(),autogeneration:v.null()})}function vZ(){return Li().extend({name:v.literal(L.ActionDescriptor),value:Aa(),autogeneration:v.null()})}function Mp(){return v.union([oZ(),lZ(),dZ(),uZ(),pZ(),cZ(),fZ(),yZ(),hZ(),mZ(),vZ()])}function Vn(){return v.union([v.object({type:v.literal(n.DataType)}),v.record(v.string(),v.any())])}function Np(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.DataType)})}function Lp(){return v.object({id:v.string(),type:v.literal(n.DataType),isNullable:v.boolean(),isList:v.boolean(),constant:v.boolean(),asType:v.boolean(),options:v.array(v.string()).optional()})}function TZ(){return Lp().merge(v.object({version:v.number()}))}function EZ(){return Lp().merge(v.object({}))}function IZ(){return v.object({defaultValue:Mp().nullable(),entity:v.union([Rs(),ys(),pl(),Yi()]).nullable(),parent:v.union([TD(),VD(),vD()])})}function AZ(){return TZ().merge(IZ())}function jp(){return v.union([v.object({type:v.literal(n.VariableDeclaration)}),v.record(v.string(),v.any())])}function bZ(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.VariableDeclaration)})}function Up(){return v.object({id:v.string(),type:v.literal(n.VariableDeclaration),name:v.string(),description:v.string().nullable()})}function RZ(){return Up().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function DZ(){return Up().merge(v.object({}))}function OZ(){return v.object({dataType:Vn().nullable(),readsValue:Ia().nullable(),writesValues:v.array(hr()),inputs:v.array(Ni()),outputs:v.array(Xt()),successCalls:v.array(Ct()),errorCalls:v.array(Ct()),internalCalls:v.array(Ea()),calledBySuccess:v.array(rt()),calledByError:v.array(rt()),calledByEntry:v.array(Ot()),parent:v.union([mr(),ai()])})}function PZ(){return RZ().merge(OZ())}function wD(){return v.union([v.object({type:v.literal(n.VariableInstance)}),v.record(v.string(),v.any())])}function wZ(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.VariableInstance)})}function $p(){return v.object({id:v.string(),type:v.literal(n.VariableInstance)})}function CZ(){return $p().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function VZ(){return $p().merge(v.object({}))}function BZ(){return v.object({declaration:jp(),dataType:Vn().nullable(),readsValue:Ia().nullable(),writesValues:v.array(hr()),inputs:v.array(Ni()),outputs:v.array(Xt()),successCalls:v.array(Ct()),errorCalls:v.array(Ct()),internalCalls:v.array(Ea()),calledBySuccess:v.array(rt()),calledByError:v.array(rt()),calledByEntry:v.array(Ot()),parent:v.union([mr(),ai()])})}function _Z(){return CZ().merge(BZ())}function gp(){return v.union([v.object({type:v.literal(n.InstalledProject)}),v.record(v.string(),v.any())])}function Il(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.InstalledProject)})}function MZ(){return v.object({id:v.string(),type:v.literal(n.InstalledProject)})}function NZ(){return v.object({version:v.number(),x:v.number(),y:v.number()})}function LZ(){return v.object({})}function jZ(){return v.object({implements:ai(),description:v.string().nullable(),functions:v.array(Ti()),events:v.array(Gp()),parent:ai()})}function UZ(){return NZ().merge(jZ())}function Gp(){return v.union([v.object({type:v.literal(n.GlobalEvent)}),v.record(v.string(),v.any())])}function $Z(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.GlobalEvent)})}function Al(){return v.object({id:v.string(),type:v.literal(n.GlobalEvent),name:v.string(),collapsed:v.boolean()})}function gZ(){return Al().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function GZ(){return Al().merge(v.object({}))}function FZ(){return Al().merge(v.object({returnStatements:v.array(Cn()),implements:v.array(ED()),inputs:v.array(_n()),calls:v.array(Ct()),parent:v.union([ai(),Il()])}))}function xZ(){return gZ().merge(FZ())}function Bn(){return v.union([jp(),wD()])}function jr(){return v.union([bZ(),wZ()])}function hr(){return v.union([Bn(),Ni(),fr()])}function CD(){return v.union([jr(),vl(),AD()])}function Ia(){return v.union([Bn(),_n(),Xt(),As(),Ea(),Is()])}function kZ(){return v.union([jr(),Fp(),Dp(),bs(),Vp(),ha()])}function ZZ(){return v.union([_n(),Xt(),hr()])}function VD(){return v.union([Fp(),Dp(),CD()])}function bl(){return Gp()}function Rl(){return $Z()}function Dl(){return v.union([As(),Is(),ma(),va(),Bn(),Ea(),hs()])}function rt(){return v.union([bs(),ha(),ml(),Ta(),jr(),Vp(),Hi()])}function Ol(){return v.union([As(),Is(),ma(),va(),Bn(),hs()])}function Pl(){return v.union([bs(),ha(),ml(),Ta(),jr(),Hi()])}function BD(){return v.union([Dl(),Cn(),Es(),ms()])}function Ct(){return v.union([rt(),Ts(),yr(),vs()])}function _D(){return v.union([Ol(),Cn(),Es(),ms()])}function MD(){return v.union([Pl(),Ts(),yr(),vs()])}function Ur(){return v.union([Ti(),bl()])}function Ot(){return v.union([Aa(),Rl()])}function qZ(){return v.union([Dl(),Ur()])}function JZ(){return v.union([rt(),Ot()])}function SZ(){return v.union([Ol(),Ur()])}function WZ(){return v.union([Pl(),Ot()])}function zZ(){return v.union([BD(),Ur()])}function YZ(){return v.union([Ct(),Ot()])}function HZ(){return v.union([_D(),Ur()])}function KZ(){return v.union([MD(),Ot()])}function XZ(){return v.union([Ur(),hs()])}function mr(){return v.union([Ot(),Hi()])}function QZ(){return v.union([Dl(),Ur()])}function e7(){return v.union([rt(),Ot()])}function t7(){return v.union([Ol(),Ur()])}function i7(){return v.union([Pl(),Ot()])}function r7(){return v.union([Cn(),Es(),ms()])}function n7(){return v.union([Ts(),yr(),vs()])}function s7(){return v.union([ys(),v7(),gp(),Rs(),Ti(),bl(),Bn(),Ni(),Xt(),ma(),As(),Is(),fr(),_n(),pl(),Vn(),Pn(),Yi(),Cn(),ms(),Es(),hs(),va(),Yi(),Yi(),ya(),Ea()])}function a7(){return v.union([yl(),ai(),Il(),Mn(),Aa(),Rl(),jr(),vl(),Dp(),ml(),bs(),ha(),AD(),Fp(),cl(),Np(),TD(),wn(),Ts(),vs(),yr(),Hi(),Ta(),wn(),wn(),vD(),Vp()])}function o7(){return v.union([gp(),Rs(),Ti(),bl(),Bn(),ma(),As(),Is(),Cn(),ms(),Es(),hs(),va()])}function l7(){return v.union([Il(),Mn(),Aa(),Rl(),jr(),ml(),bs(),ha(),Ts(),vs(),yr(),Hi(),Ta()])}function _n(){return v.union([v.object({type:v.literal(n.ArgumentDeclaration)}),v.record(v.string(),v.any())])}function Fp(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.ArgumentDeclaration)})}function xp(){return v.object({id:v.string(),type:v.literal(n.ArgumentDeclaration)})}function d7(){return xp().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function u7(){return xp().merge(v.object({}))}function p7(){return v.object({dataType:Vn().nullable(),writesValues:v.array(hr()),parent:v.union([Ot(),wn(),wn(),Ta(),yr()])})}function c7(){return d7().merge(p7())}function Ti(){return v.union([v.object({type:v.literal(n.FunctionDeclaration)}),v.record(v.string(),v.any())])}function Aa(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.FunctionDeclaration)})}function kp(){return v.object({id:v.string(),type:v.literal(n.FunctionDeclaration),name:v.string(),description:v.string().nullable()})}function f7(){return kp().merge(v.object({version:v.number(),x:v.number(),y:v.number(),index:v.number().nullable()}))}function y7(){return kp()}function h7(){return v.object({inputs:v.array(_n()),implements:Yi().nullable(),returnStatements:v.array(Cn()),parent:v.union([ai(),Il(),Mn(),Hi(),yl(),cl()])})}function m7(){return f7().merge(h7())}function v7(){return v.union([v.object({type:v.literal(n.Project)}),v.record(v.string(),v.any())])}function ai(){return v.object({entityType:v.literal(n.Project),entityId:v.string(),id:v.string(),type:v.literal(n.GenericReference)})}function Zp(){return v.object({id:v.string(),type:v.literal(n.Project),name:v.string(),description:v.string().nullable()})}function T7(){return Zp().merge(v.object({version:v.number()}))}function E7(){return Zp()}function I7(){return v.object({entities:v.array(Rs()),functions:v.array(Ti()),events:v.array(Gp()),projects:v.array(gp()),variableDeclarations:v.array(jp()),variableInstances:v.array(wD()),conditions:v.array(ma()),operations:v.array(As()),functionCalls:v.array(Is()),loops:v.array(hs()),searches:v.array(va())})}function A7(){return T7().merge(I7())}function Rs(){return v.union([v.object({type:v.literal(n.DefinitionEntity)}),v.record(v.string(),v.any())])}function Mn(){return v.object({id:v.string(),type:v.literal(n.GenericReference),entityId:v.string(),entityType:v.literal(n.DefinitionEntity)})}function qp(){return v.object({id:v.string(),type:v.literal(n.DefinitionEntity),name:v.string(),description:v.string().nullable(),static:v.boolean(),abstract:v.boolean()})}function b7(){return qp().merge(v.object({version:v.number(),x:v.number(),y:v.number()}))}function R7(){return qp().merge(v.object({}))}function D7(){return v.union([ai(),Np()])}function O7(){return v.object({properties:v.array(Pn()),methods:v.array(Ti()),abstractMethods:v.array(Yi()),extends:v.array(v.union([Rs(),ys()])),implements:v.array(v.union([Rs(),ys()])),parent:D7()})}function P7(){return b7().merge(O7())}function w7(r){return r instanceof Error&&r.name==="ZodError"&&"issues"in r&&Array.isArray(r.issues)}var C7=class extends Error{constructor(a,e){super(a,e);f(this,"name");f(this,"details");this.name="ZodValidationError",this.details=V7(e)}toString(){return this.message}};function V7(r){if(r){const a=r.cause;if(w7(a))return a.issues}return[]}function B7(r){return r.length!==0}var _7=/[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*/u;function M7(r){return r.length===1?r[0].toString():r.reduce((a,e)=>{if(typeof e=="number")return a+"["+e.toString()+"]";if(e.includes('"'))return a+'["'+N7(e)+'"]';if(!_7.test(e))return a+'["'+e+'"]';const t=a.length===0?"":".";return a+t+e},"")}function N7(r){return r.replace(/"/g,'\\"')}var L7="; ",j7=99,ND="Validation error",U7=": ",$7=", or ";function g7(r={}){const{issueSeparator:a=L7,unionSeparator:e=$7,prefixSeparator:t=U7,prefix:i=ND,includePath:s=!0,maxIssuesInMessage:l=j7}=r;return o=>{const d=o.slice(0,l).map(u=>wl({issue:u,issueSeparator:a,unionSeparator:e,includePath:s})).join(a);return G7(d,i,t)}}function wl(r){const{issue:a,issueSeparator:e,unionSeparator:t,includePath:i}=r;if(a.code===Z.invalid_union)return a.unionErrors.reduce((s,l)=>{const o=l.issues.map(d=>wl({issue:d,issueSeparator:e,unionSeparator:t,includePath:i})).join(e);return s.includes(o)||s.push(o),s},[]).join(t);if(a.code===Z.invalid_arguments)return[a.message,...a.argumentsError.issues.map(s=>wl({issue:s,issueSeparator:e,unionSeparator:t,includePath:i}))].join(e);if(a.code===Z.invalid_return_type)return[a.message,...a.returnTypeError.issues.map(s=>wl({issue:s,issueSeparator:e,unionSeparator:t,includePath:i}))].join(e);if(i&&B7(a.path)){if(a.path.length===1){const s=a.path[0];if(typeof s=="number")return`${a.message} at index ${s}`}return`${a.message} at "${M7(a.path)}"`}return a.message}function G7(r,a,e){return a!==null?r.length>0?[a,r].join(e):a:r.length>0?r:ND}function F7(r,a={}){const t=x7(a)([r]);return new C7(t,{cause:new si([r])})}function x7(r){return"messageBuilder"in r?r.messageBuilder:g7(r)}var LD="1.13.7",jD=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},Cl=Array.prototype,Jp=Object.prototype,UD=typeof Symbol<"u"?Symbol.prototype:null,k7=Cl.push,ba=Cl.slice,Ra=Jp.toString,Z7=Jp.hasOwnProperty,$D=typeof ArrayBuffer<"u",q7=typeof DataView<"u",J7=Array.isArray,gD=Object.keys,GD=Object.create,FD=$D&&ArrayBuffer.isView,S7=isNaN,W7=isFinite,xD=!{toString:null}.propertyIsEnumerable("toString"),kD=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],z7=Math.pow(2,53)-1;function oi(r,a){return a=a==null?r.length-1:+a,function(){for(var e=Math.max(arguments.length-a,0),t=Array(e),i=0;i<e;i++)t[i]=arguments[i+a];switch(a){case 0:return r.call(this,t);case 1:return r.call(this,arguments[0],t);case 2:return r.call(this,arguments[0],arguments[1],t)}var s=Array(a+1);for(i=0;i<a;i++)s[i]=arguments[i];return s[a]=t,r.apply(this,s)}}function $r(r){var a=typeof r;return a==="function"||a==="object"&&!!r}function Y7(r){return r===null}function ZD(r){return r===void 0}function qD(r){return r===!0||r===!1||Ra.call(r)==="[object Boolean]"}function H7(r){return!!(r&&r.nodeType===1)}function kt(r){var a="[object "+r+"]";return function(e){return Ra.call(e)===a}}const Sp=kt("String"),JD=kt("Number"),K7=kt("Date"),X7=kt("RegExp"),Q7=kt("Error"),SD=kt("Symbol"),WD=kt("ArrayBuffer");var zD=kt("Function"),eq=jD.document&&jD.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof eq!="function"&&(zD=function(r){return typeof r=="function"||!1});const Qt=zD,YD=kt("Object");var HD=q7&&(!/\[native code\]/.test(String(DataView))||YD(new DataView(new ArrayBuffer(8)))),Wp=typeof Map<"u"&&YD(new Map),tq=kt("DataView");function iq(r){return r!=null&&Qt(r.getInt8)&&WD(r.buffer)}const Vl=HD?iq:tq,Nn=J7||kt("Array");function gr(r,a){return r!=null&&Z7.call(r,a)}var zp=kt("Arguments");(function(){zp(arguments)||(zp=function(r){return gr(r,"callee")})})();const Yp=zp;function rq(r){return!SD(r)&&W7(r)&&!isNaN(parseFloat(r))}function KD(r){return JD(r)&&S7(r)}function XD(r){return function(){return r}}function QD(r){return function(a){var e=r(a);return typeof e=="number"&&e>=0&&e<=z7}}function eO(r){return function(a){return a==null?void 0:a[r]}}const Bl=eO("byteLength"),nq=QD(Bl);var sq=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function aq(r){return FD?FD(r)&&!Vl(r):nq(r)&&sq.test(Ra.call(r))}const tO=$D?aq:XD(!1),li=eO("length");function oq(r){for(var a={},e=r.length,t=0;t<e;++t)a[r[t]]=!0;return{contains:function(i){return a[i]===!0},push:function(i){return a[i]=!0,r.push(i)}}}function iO(r,a){a=oq(a);var e=kD.length,t=r.constructor,i=Qt(t)&&t.prototype||Jp,s="constructor";for(gr(r,s)&&!a.contains(s)&&a.push(s);e--;)s=kD[e],s in r&&r[s]!==i[s]&&!a.contains(s)&&a.push(s)}function Mt(r){if(!$r(r))return[];if(gD)return gD(r);var a=[];for(var e in r)gr(r,e)&&a.push(e);return xD&&iO(r,a),a}function Da(r){if(r==null)return!0;var a=li(r);return typeof a=="number"&&(Nn(r)||Sp(r)||Yp(r))?a===0:li(Mt(r))===0}function rO(r,a){var e=Mt(a),t=e.length;if(r==null)return!t;for(var i=Object(r),s=0;s<t;s++){var l=e[s];if(a[l]!==i[l]||!(l in i))return!1}return!0}function Xe(r){if(r instanceof Xe)return r;if(!(this instanceof Xe))return new Xe(r);this._wrapped=r}Xe.VERSION=LD,Xe.prototype.value=function(){return this._wrapped},Xe.prototype.valueOf=Xe.prototype.toJSON=Xe.prototype.value,Xe.prototype.toString=function(){return String(this._wrapped)};function nO(r){return new Uint8Array(r.buffer||r,r.byteOffset||0,Bl(r))}var sO="[object DataView]";function Hp(r,a,e,t){if(r===a)return r!==0||1/r===1/a;if(r==null||a==null)return!1;if(r!==r)return a!==a;var i=typeof r;return i!=="function"&&i!=="object"&&typeof a!="object"?!1:aO(r,a,e,t)}function aO(r,a,e,t){r instanceof Xe&&(r=r._wrapped),a instanceof Xe&&(a=a._wrapped);var i=Ra.call(r);if(i!==Ra.call(a))return!1;if(HD&&i=="[object Object]"&&Vl(r)){if(!Vl(a))return!1;i=sO}switch(i){case"[object RegExp]":case"[object String]":return""+r==""+a;case"[object Number]":return+r!=+r?+a!=+a:+r==0?1/+r===1/a:+r==+a;case"[object Date]":case"[object Boolean]":return+r==+a;case"[object Symbol]":return UD.valueOf.call(r)===UD.valueOf.call(a);case"[object ArrayBuffer]":case sO:return aO(nO(r),nO(a),e,t)}var s=i==="[object Array]";if(!s&&tO(r)){var l=Bl(r);if(l!==Bl(a))return!1;if(r.buffer===a.buffer&&r.byteOffset===a.byteOffset)return!0;s=!0}if(!s){if(typeof r!="object"||typeof a!="object")return!1;var o=r.constructor,d=a.constructor;if(o!==d&&!(Qt(o)&&o instanceof o&&Qt(d)&&d instanceof d)&&"constructor"in r&&"constructor"in a)return!1}e=e||[],t=t||[];for(var u=e.length;u--;)if(e[u]===r)return t[u]===a;if(e.push(r),t.push(a),s){if(u=r.length,u!==a.length)return!1;for(;u--;)if(!Hp(r[u],a[u],e,t))return!1}else{var y=Mt(r),c;if(u=y.length,Mt(a).length!==u)return!1;for(;u--;)if(c=y[u],!(gr(a,c)&&Hp(r[c],a[c],e,t)))return!1}return e.pop(),t.pop(),!0}function lq(r,a){return Hp(r,a)}function Oa(r){if(!$r(r))return[];var a=[];for(var e in r)a.push(e);return xD&&iO(r,a),a}function Kp(r){var a=li(r);return function(e){if(e==null)return!1;var t=Oa(e);if(li(t))return!1;for(var i=0;i<a;i++)if(!Qt(e[r[i]]))return!1;return r!==dO||!Qt(e[Xp])}}var Xp="forEach",oO="has",Qp=["clear","delete"],lO=["get",oO,"set"],dq=Qp.concat(Xp,lO),dO=Qp.concat(lO),uq=["add"].concat(Qp,Xp,oO);const pq=Wp?Kp(dq):kt("Map"),cq=Wp?Kp(dO):kt("WeakMap"),fq=Wp?Kp(uq):kt("Set"),yq=kt("WeakSet");function Ds(r){for(var a=Mt(r),e=a.length,t=Array(e),i=0;i<e;i++)t[i]=r[a[i]];return t}function hq(r){for(var a=Mt(r),e=a.length,t=Array(e),i=0;i<e;i++)t[i]=[a[i],r[a[i]]];return t}function uO(r){for(var a={},e=Mt(r),t=0,i=e.length;t<i;t++)a[r[e[t]]]=e[t];return a}function ec(r){var a=[];for(var e in r)Qt(r[e])&&a.push(e);return a.sort()}function tc(r,a){return function(e){var t=arguments.length;if(a&&(e=Object(e)),t<2||e==null)return e;for(var i=1;i<t;i++)for(var s=arguments[i],l=r(s),o=l.length,d=0;d<o;d++){var u=l[d];(!a||e[u]===void 0)&&(e[u]=s[u])}return e}}const pO=tc(Oa),_l=tc(Mt),cO=tc(Oa,!0);function mq(){return function(){}}function fO(r){if(!$r(r))return{};if(GD)return GD(r);var a=mq();a.prototype=r;var e=new a;return a.prototype=null,e}function vq(r,a){var e=fO(r);return a&&_l(e,a),e}function Tq(r){return $r(r)?Nn(r)?r.slice():pO({},r):r}function Eq(r,a){return a(r),r}function yO(r){return Nn(r)?r:[r]}Xe.toPath=yO;function Pa(r){return Xe.toPath(r)}function ic(r,a){for(var e=a.length,t=0;t<e;t++){if(r==null)return;r=r[a[t]]}return e?r:void 0}function hO(r,a,e){var t=ic(r,Pa(a));return ZD(t)?e:t}function Iq(r,a){a=Pa(a);for(var e=a.length,t=0;t<e;t++){var i=a[t];if(!gr(r,i))return!1;r=r[i]}return!!e}function rc(r){return r}function wa(r){return r=_l({},r),function(a){return rO(a,r)}}function nc(r){return r=Pa(r),function(a){return ic(a,r)}}function Ca(r,a,e){if(a===void 0)return r;switch(e??3){case 1:return function(t){return r.call(a,t)};case 3:return function(t,i,s){return r.call(a,t,i,s)};case 4:return function(t,i,s,l){return r.call(a,t,i,s,l)}}return function(){return r.apply(a,arguments)}}function mO(r,a,e){return r==null?rc:Qt(r)?Ca(r,a,e):$r(r)&&!Nn(r)?wa(r):nc(r)}function sc(r,a){return mO(r,a,1/0)}Xe.iteratee=sc;function di(r,a,e){return Xe.iteratee!==sc?Xe.iteratee(r,a):mO(r,a,e)}function Aq(r,a,e){a=di(a,e);for(var t=Mt(r),i=t.length,s={},l=0;l<i;l++){var o=t[l];s[o]=a(r[o],o,r)}return s}function vO(){}function bq(r){return r==null?vO:function(a){return hO(r,a)}}function Rq(r,a,e){var t=Array(Math.max(0,r));a=Ca(a,e,1);for(var i=0;i<r;i++)t[i]=a(i);return t}function ac(r,a){return a==null&&(a=r,r=0),r+Math.floor(Math.random()*(a-r+1))}const Va=Date.now||function(){return new Date().getTime()};function TO(r){var a=function(s){return r[s]},e="(?:"+Mt(r).join("|")+")",t=RegExp(e),i=RegExp(e,"g");return function(s){return s=s==null?"":""+s,t.test(s)?s.replace(i,a):s}}const EO={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Dq=TO(EO),Oq=uO(EO),Pq=TO(Oq),wq=Xe.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var oc=/(.)^/,Cq={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Vq=/\\|'|\r|\n|\u2028|\u2029/g;function Bq(r){return"\\"+Cq[r]}var _q=/^\s*(\w|\$)+\s*$/;function Mq(r,a,e){!a&&e&&(a=e),a=cO({},a,Xe.templateSettings);var t=RegExp([(a.escape||oc).source,(a.interpolate||oc).source,(a.evaluate||oc).source].join("|")+"|$","g"),i=0,s="__p+='";r.replace(t,function(u,y,c,E,I){return s+=r.slice(i,I).replace(Vq,Bq),i=I+u.length,y?s+=`'+
|
|
25
25
|
((__t=(`+y+`))==null?'':_.escape(__t))+
|
|
26
26
|
'`:c?s+=`'+
|
|
27
27
|
((__t=(`+c+`))==null?'':__t)+
|
|
@@ -33,7 +33,7 @@ __p+='`),u}),s+=`';
|
|
|
33
33
|
`,l="obj";s=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
|
|
34
34
|
`+s+`return __p;
|
|
35
35
|
`;var o;try{o=new Function(l,"_",s)}catch(u){throw u.source=s,u}var d=function(u){return o.call(this,u,Xe)};return d.source="function("+l+`){
|
|
36
|
-
`+s+"}",d}function Nq(r,a,e){a=Pa(a);var t=a.length;if(!t)return Qt(e)?e.call(r):e;for(var i=0;i<t;i++){var s=r==null?void 0:r[a[i]];s===void 0&&(s=e,i=t),r=Qt(s)?s.call(r):s}return r}var Lq=0;function jq(r){var a=++Lq+"";return r?r+a:a}function Uq(r){var a=Xe(r);return a._chain=!0,a}function IO(r,a,e,t,i){if(!(t instanceof a))return r.apply(e,i);var s=fO(r.prototype),l=r.apply(s,i);return $r(l)?l:s}var Os=oi(function(r,a){var e=Os.placeholder,t=function(){for(var i=0,s=a.length,l=Array(s),o=0;o<s;o++)l[o]=a[o]===e?arguments[i++]:a[o];for(;i<arguments.length;)l.push(arguments[i++]);return IO(r,t,this,this,l)};return t});Os.placeholder=Xe;const AO=oi(function(r,a,e){if(!Qt(r))throw new TypeError("Bind must be called on a function");var t=oi(function(i){return IO(r,t,a,this,e.concat(i))});return t}),Ei=QD(li);function Ln(r,a,e,t){if(t=t||[],!a&&a!==0)a=1/0;else if(a<=0)return t.concat(r);for(var i=t.length,s=0,l=li(r);s<l;s++){var o=r[s];if(Ei(o)&&(Nn(o)||Yp(o)))if(a>1)Ln(o,a-1,e,t),i=t.length;else for(var d=0,u=o.length;d<u;)t[i++]=o[d++];else e||(t[i++]=o)}return t}const $q=oi(function(r,a){a=Ln(a,!1,!1);var e=a.length;if(e<1)throw new Error("bindAll must be passed function names");for(;e--;){var t=a[e];r[t]=AO(r[t],r)}return r});function gq(r,a){var e=function(t){var i=e.cache,s=""+(a?a.apply(this,arguments):t);return gr(i,s)||(i[s]=r.apply(this,arguments)),i[s]};return e.cache={},e}const bO=oi(function(r,a,e){return setTimeout(function(){return r.apply(null,e)},a)}),Gq=Os(bO,Xe,1);function Fq(r,a,e){var t,i,s,l,o=0;e||(e={});var d=function(){o=e.leading===!1?0:Va(),t=null,l=r.apply(i,s),t||(i=s=null)},u=function(){var y=Va();!o&&e.leading===!1&&(o=y);var c=a-(y-o);return i=this,s=arguments,c<=0||c>a?(t&&(clearTimeout(t),t=null),o=y,l=r.apply(i,s),t||(i=s=null)):!t&&e.trailing!==!1&&(t=setTimeout(d,c)),l};return u.cancel=function(){clearTimeout(t),o=0,t=i=s=null},u}function xq(r,a,e){var t,i,s,l,o,d=function(){var y=Va()-i;a>y?t=setTimeout(d,a-y):(t=null,e||(l=r.apply(o,s)),t||(s=o=null))},u=oi(function(y){return o=this,s=y,i=Va(),t||(t=setTimeout(d,a),e&&(l=r.apply(o,s))),l});return u.cancel=function(){clearTimeout(t),t=s=o=null},u}function kq(r,a){return Os(a,r)}function lc(r){return function(){return!r.apply(this,arguments)}}function Zq(){var r=arguments,a=r.length-1;return function(){for(var e=a,t=r[a].apply(this,arguments);e--;)t=r[e].call(this,t);return t}}function qq(r,a){return function(){if(--r<1)return a.apply(this,arguments)}}function RO(r,a){var e;return function(){return--r>0&&(e=a.apply(this,arguments)),r<=1&&(a=null),e}}const Jq=Os(RO,2);function DO(r,a,e){a=di(a,e);for(var t=Mt(r),i,s=0,l=t.length;s<l;s++)if(i=t[s],a(r[i],i,r))return i}function OO(r){return function(a,e,t){e=di(e,t);for(var i=li(a),s=r>0?0:i-1;s>=0&&s<i;s+=r)if(e(a[s],s,a))return s;return-1}}const dc=OO(1),PO=OO(-1);function wO(r,a,e,t){e=di(e,t,1);for(var i=e(a),s=0,l=li(r);s<l;){var o=Math.floor((s+l)/2);e(r[o])<i?s=o+1:l=o}return s}function CO(r,a,e){return function(t,i,s){var l=0,o=li(t);if(typeof s=="number")r>0?l=s>=0?s:Math.max(s+o,l):o=s>=0?Math.min(s+1,o):s+o+1;else if(e&&s&&o)return s=e(t,i),t[s]===i?s:-1;if(i!==i)return s=a(ba.call(t,l,o),KD),s>=0?s+l:-1;for(s=r>0?l:o-1;s>=0&&s<o;s+=r)if(t[s]===i)return s;return-1}}const VO=CO(1,dc,wO),Sq=CO(-1,PO);function uc(r,a,e){var t=Ei(r)?dc:DO,i=t(r,a,e);if(i!==void 0&&i!==-1)return r[i]}function Wq(r,a){return uc(r,wa(a))}function vr(r,a,e){a=Ca(a,e);var t,i;if(Ei(r))for(t=0,i=r.length;t<i;t++)a(r[t],t,r);else{var s=Mt(r);for(t=0,i=s.length;t<i;t++)a(r[s[t]],s[t],r)}return r}function jn(r,a,e){a=di(a,e);for(var t=!Ei(r)&&Mt(r),i=(t||r).length,s=Array(i),l=0;l<i;l++){var o=t?t[l]:l;s[l]=a(r[o],o,r)}return s}function BO(r){var a=function(e,t,i,s){var l=!Ei(e)&&Mt(e),o=(l||e).length,d=r>0?0:o-1;for(s||(i=e[l?l[d]:d],d+=r);d>=0&&d<o;d+=r){var u=l?l[d]:d;i=t(i,e[u],u,e)}return i};return function(e,t,i,s){var l=arguments.length>=3;return a(e,Ca(t,s,4),i,l)}}const pc=BO(1),_O=BO(-1);function Ps(r,a,e){var t=[];return a=di(a,e),vr(r,function(i,s,l){a(i,s,l)&&t.push(i)}),t}function zq(r,a,e){return Ps(r,lc(di(a)),e)}function MO(r,a,e){a=di(a,e);for(var t=!Ei(r)&&Mt(r),i=(t||r).length,s=0;s<i;s++){var l=t?t[s]:s;if(!a(r[l],l,r))return!1}return!0}function NO(r,a,e){a=di(a,e);for(var t=!Ei(r)&&Mt(r),i=(t||r).length,s=0;s<i;s++){var l=t?t[s]:s;if(a(r[l],l,r))return!0}return!1}function Tr(r,a,e,t){return Ei(r)||(r=Ds(r)),(typeof e!="number"||t)&&(e=0),VO(r,a,e)>=0}const Yq=oi(function(r,a,e){var t,i;return Qt(a)?i=a:(a=Pa(a),t=a.slice(0,-1),a=a[a.length-1]),jn(r,function(s){var l=i;if(!l){if(t&&t.length&&(s=ic(s,t)),s==null)return;l=s[a]}return l==null?l:l.apply(s,e)})});function cc(r,a){return jn(r,nc(a))}function Hq(r,a){return Ps(r,wa(a))}function LO(r,a,e){var t=-1/0,i=-1/0,s,l;if(a==null||typeof a=="number"&&typeof r[0]!="object"&&r!=null){r=Ei(r)?r:Ds(r);for(var o=0,d=r.length;o<d;o++)s=r[o],s!=null&&s>t&&(t=s)}else a=di(a,e),vr(r,function(u,y,c){l=a(u,y,c),(l>i||l===-1/0&&t===-1/0)&&(t=u,i=l)});return t}function Kq(r,a,e){var t=1/0,i=1/0,s,l;if(a==null||typeof a=="number"&&typeof r[0]!="object"&&r!=null){r=Ei(r)?r:Ds(r);for(var o=0,d=r.length;o<d;o++)s=r[o],s!=null&&s<t&&(t=s)}else a=di(a,e),vr(r,function(u,y,c){l=a(u,y,c),(l<i||l===1/0&&t===1/0)&&(t=u,i=l)});return t}var Xq=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function jO(r){return r?Nn(r)?ba.call(r):Sp(r)?r.match(Xq):Ei(r)?jn(r,rc):Ds(r):[]}function UO(r,a,e){if(a==null||e)return Ei(r)||(r=Ds(r)),r[ac(r.length-1)];var t=jO(r),i=li(t);a=Math.max(Math.min(a,i),0);for(var s=i-1,l=0;l<a;l++){var o=ac(l,s),d=t[l];t[l]=t[o],t[o]=d}return t.slice(0,a)}function Qq(r){return UO(r,1/0)}function eJ(r,a,e){var t=0;return a=di(a,e),cc(jn(r,function(i,s,l){return{value:i,index:t++,criteria:a(i,s,l)}}).sort(function(i,s){var l=i.criteria,o=s.criteria;if(l!==o){if(l>o||l===void 0)return 1;if(l<o||o===void 0)return-1}return i.index-s.index}),"value")}function Ml(r,a){return function(e,t,i){var s=a?[[],[]]:{};return t=di(t,i),vr(e,function(l,o){var d=t(l,o,e);r(s,l,d)}),s}}const tJ=Ml(function(r,a,e){gr(r,e)?r[e].push(a):r[e]=[a]}),iJ=Ml(function(r,a,e){r[e]=a}),rJ=Ml(function(r,a,e){gr(r,e)?r[e]++:r[e]=1}),nJ=Ml(function(r,a,e){r[e?0:1].push(a)},!0);function sJ(r){return r==null?0:Ei(r)?r.length:Mt(r).length}function aJ(r,a,e){return a in e}const $O=oi(function(r,a){var e={},t=a[0];if(r==null)return e;Qt(t)?(a.length>1&&(t=Ca(t,a[1])),a=Oa(r)):(t=aJ,a=Ln(a,!1,!1),r=Object(r));for(var i=0,s=a.length;i<s;i++){var l=a[i],o=r[l];t(o,l,r)&&(e[l]=o)}return e}),oJ=oi(function(r,a){var e=a[0],t;return Qt(e)?(e=lc(e),a.length>1&&(t=a[1])):(a=jn(Ln(a,!1,!1),String),e=function(i,s){return!Tr(a,s)}),$O(r,e,t)});function gO(r,a,e){return ba.call(r,0,Math.max(0,r.length-(a==null||e?1:a)))}function fc(r,a,e){return r==null||r.length<1?a==null||e?void 0:[]:a==null||e?r[0]:gO(r,r.length-a)}function Nl(r,a,e){return ba.call(r,a==null||e?1:a)}function lJ(r,a,e){return r==null||r.length<1?a==null||e?void 0:[]:a==null||e?r[r.length-1]:Nl(r,Math.max(0,r.length-a))}function dJ(r){return Ps(r,Boolean)}function uJ(r,a){return Ln(r,a,!1)}const GO=oi(function(r,a){return a=Ln(a,!0,!0),Ps(r,function(e){return!Tr(a,e)})}),pJ=oi(function(r,a){return GO(r,a)});function yc(r,a,e,t){qD(a)||(t=e,e=a,a=!1),e!=null&&(e=di(e,t));for(var i=[],s=[],l=0,o=li(r);l<o;l++){var d=r[l],u=e?e(d,l,r):d;a&&!e?((!l||s!==u)&&i.push(d),s=u):e?Tr(s,u)||(s.push(u),i.push(d)):Tr(i,d)||i.push(d)}return i}const cJ=oi(function(r){return yc(Ln(r,!0,!0))});function fJ(r){for(var a=[],e=arguments.length,t=0,i=li(r);t<i;t++){var s=r[t];if(!Tr(a,s)){var l;for(l=1;l<e&&Tr(arguments[l],s);l++);l===e&&a.push(s)}}return a}function hc(r){for(var a=r&&LO(r,li).length||0,e=Array(a),t=0;t<a;t++)e[t]=cc(r,t);return e}const yJ=oi(hc);function hJ(r,a){for(var e={},t=0,i=li(r);t<i;t++)a?e[r[t]]=a[t]:e[r[t][0]]=r[t][1];return e}function mJ(r,a,e){a==null&&(a=r||0,r=0),e||(e=a<r?-1:1);for(var t=Math.max(Math.ceil((a-r)/e),0),i=Array(t),s=0;s<t;s++,r+=e)i[s]=r;return i}function vJ(r,a){if(a==null||a<1)return[];for(var e=[],t=0,i=r.length;t<i;)e.push(ba.call(r,t,t+=a));return e}function mc(r,a){return r._chain?Xe(a).chain():a}function FO(r){return vr(ec(r),function(a){var e=Xe[a]=r[a];Xe.prototype[a]=function(){var t=[this._wrapped];return k7.apply(t,arguments),mc(this,e.apply(Xe,t))}}),Xe}vr(["pop","push","reverse","shift","sort","splice","unshift"],function(r){var a=Cl[r];Xe.prototype[r]=function(){var e=this._wrapped;return e!=null&&(a.apply(e,arguments),(r==="shift"||r==="splice")&&e.length===0&&delete e[0]),mc(this,e)}}),vr(["concat","join","slice"],function(r){var a=Cl[r];Xe.prototype[r]=function(){var e=this._wrapped;return e!=null&&(e=a.apply(e,arguments)),mc(this,e)}});var xO=FO(Object.freeze(Object.defineProperty({__proto__:null,VERSION:LD,after:qq,all:MO,allKeys:Oa,any:NO,assign:_l,before:RO,bind:AO,bindAll:$q,chain:Uq,chunk:vJ,clone:Tq,collect:jn,compact:dJ,compose:Zq,constant:XD,contains:Tr,countBy:rJ,create:vq,debounce:xq,default:Xe,defaults:cO,defer:Gq,delay:bO,detect:uc,difference:GO,drop:Nl,each:vr,escape:Dq,every:MO,extend:pO,extendOwn:_l,filter:Ps,find:uc,findIndex:dc,findKey:DO,findLastIndex:PO,findWhere:Wq,first:fc,flatten:uJ,foldl:pc,foldr:_O,forEach:vr,functions:ec,get:hO,groupBy:tJ,has:Iq,head:fc,identity:rc,include:Tr,includes:Tr,indexBy:iJ,indexOf:VO,initial:gO,inject:pc,intersection:fJ,invert:uO,invoke:Yq,isArguments:Yp,isArray:Nn,isArrayBuffer:WD,isBoolean:qD,isDataView:Vl,isDate:K7,isElement:H7,isEmpty:Da,isEqual:lq,isError:Q7,isFinite:rq,isFunction:Qt,isMap:pq,isMatch:rO,isNaN:KD,isNull:Y7,isNumber:JD,isObject:$r,isRegExp:X7,isSet:fq,isString:Sp,isSymbol:SD,isTypedArray:tO,isUndefined:ZD,isWeakMap:cq,isWeakSet:yq,iteratee:sc,keys:Mt,last:lJ,lastIndexOf:Sq,map:jn,mapObject:Aq,matcher:wa,matches:wa,max:LO,memoize:gq,methods:ec,min:Kq,mixin:FO,negate:lc,noop:vO,now:Va,object:hJ,omit:oJ,once:Jq,pairs:hq,partial:Os,partition:nJ,pick:$O,pluck:cc,property:nc,propertyOf:bq,random:ac,range:mJ,reduce:pc,reduceRight:_O,reject:zq,rest:Nl,restArguments:oi,result:Nq,sample:UO,select:Ps,shuffle:Qq,size:sJ,some:NO,sortBy:eJ,sortedIndex:wO,tail:Nl,take:fc,tap:Eq,template:Mq,templateSettings:wq,throttle:Fq,times:Rq,toArray:jO,toPath:yO,transpose:hc,unescape:Pq,union:cJ,uniq:yc,unique:yc,uniqueId:jq,unzip:hc,values:Ds,where:Hq,without:pJ,wrap:kq,zip:yJ},Symbol.toStringTag,{value:"Module"})));xO._=xO;function Zt(r){return r.charAt(0).toUpperCase()+r.slice(1)}function Ll(r){return r.charAt(0).toLowerCase()+r.slice(1)}function kO(r,a){if(r.type!==n.Property||a.type!==n.Property)throw new Error(`Expected property entities for comparison. But got ${r.type} and ${a.type}.`);return r===a||r.id===a.id?!0:r.name!==a.name||r.static!==a.static||r.abstract!==a.abstract?!1:wi(r.dataType,a.dataType).compatible}function ZO(r,a){if(r.type!==n.DefinitionEntity||a.type!==n.DefinitionEntity)throw new Error(`Expected definition entities for comparison. But got ${r.type} and ${a.type}.`);if(r===a||r.id===a.id)return!0;if(r.properties.length!==a.properties.length)return!1;let e=[...a.properties];const t=[];for(let i=0;i<r.properties.length;i++){const s=r.properties[i];e.find(o=>{const d=kO(s,o);return d&&(e=e.filter(u=>u.id!==o.id)),d})||t.push(s)}return!(t.length>0)}var Pi=(r=>(r.BothUnconstrained="both-unconstrained",r.AConstraintBUnconstrained="a-constraint-b-unconstrained",r.BConstraintAUnconstrained="b-constraint-a-unconstrained",r.Same="same",r.AIsListBIsNot="a-is-list-b-is-not",r.BIsListAIsNot="b-is-list-a-is-not",r.AIsNullableBIsNot="a-is-nullable-b-is-not",r.BIsNullableAIsNot="b-is-nullable-a-is-not",r.AIsTemplateBIsNot="a-is-template-b-is-not",r.BIsTemplateAIsNot="b-is-template-a-is-not",r.BothUntyped="both-untyped",r.AIsUntypedBIsNot="a-is-untyped-b-is-not",r.BIsUntypedAIsNot="b-is-untyped-a-is-not",r.TypeEntityMismatch="type-entity-mismatch",r.SameDefinitionEntities="same-definition-entities",r.CompatibleDefinitionEntities="compatible-definition-entities",r.IncompatibleDefinitionEntities="incompatible-definition-entities",r.SamePrimitiveEntities="same-primitive-entities",r.IncompatiblePrimitiveEntities="incompatible-primitive-entities",r.SameBuiltInBaseEntities="same-built-in-base-entities",r.IncompatibleBuiltInBaseEntities="incompatible-built-in-base-entities",r.CheckUnknown="check-unknown",r))(Pi||{});function wi(r,a){var e,t,i,s,l,o,d,u,y,c,E;if(r&&r.type!==n.DataType||a&&a.type!==n.DataType)throw new Error(`Expected data-type entities for comparison. But got ${r==null?void 0:r.type} and ${a==null?void 0:a.type}.`);if(r===null&&a===null)return{compatible:!0,type:"both-unconstrained"};if(r===null)return{compatible:!0,type:"a-constraint-b-unconstrained"};if(a===null)return{compatible:!0,type:"b-constraint-a-unconstrained"};if(r===a)return{compatible:!0,type:"same"};if(r.id===a.id)return{compatible:!0,type:"same"};if(r.isList!==a.isList)return{compatible:!1,type:r.isList?"a-is-list-b-is-not":"b-is-list-a-is-not"};if(r.asType!==a.asType)return{compatible:!1,type:r.asType?"a-is-template-b-is-not":"b-is-template-a-is-not"};if(!r.entity&&a.entity)return{compatible:!0,type:"a-is-untyped-b-is-not"};if(r.entity&&!a.entity)return{compatible:!0,type:"b-is-untyped-a-is-not"};if(!r.entity&&!a.entity)return{compatible:!0,type:"both-untyped"};if(((e=r.entity)==null?void 0:e.type)!==((t=a.entity)==null?void 0:t.type))return{compatible:!1,type:"type-entity-mismatch"};if(((i=r.entity)==null?void 0:i.type)===n.DefinitionEntity){if(((s=r.entity)==null?void 0:s.id)===((l=a.entity)==null?void 0:l.id))return{compatible:!0,type:"same-definition-entities"};const I=ZO(r.entity,a.entity);return{compatible:I,type:I?"compatible-definition-entities":"incompatible-definition-entities"}}return((o=r.entity)==null?void 0:o.type)===n.PrimitiveEntity?((d=r.entity)==null?void 0:d.id)===((u=a.entity)==null?void 0:u.id)?{compatible:!0,type:"same-primitive-entities"}:{compatible:!1,type:"incompatible-primitive-entities"}:((y=r.entity)==null?void 0:y.type)===n.BuiltInBaseEntity?((c=r.entity)==null?void 0:c.id)===((E=a.entity)==null?void 0:E.id)?{compatible:!0,type:"same-built-in-base-entities"}:{compatible:!1,type:"incompatible-built-in-base-entities"}:{compatible:!1,type:"check-unknown"}}function TJ(r,a){const e=r.project.builtInBaseEntities.find(s=>s.id===S.EXECUTION),t={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,isList:!1,isNullable:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,constant:!1,defaultValue:null,parent:null},i=C(t,r.project);return i.inferred=!0,a==null||a.add(i,b.Added),i.metaSync(t,a),i.setParent(r,a),i.entity=e,i}function qO(r,a=null){return r.dataType?r.dataType:null}function vc(r,a=null){var t;const e=(t=r.declaration)==null?void 0:t.getDataType(a);return e&&e.isResolved?e:r.readsValue?ji(r.readsValue,a):null}function Tc(r,a=null){return r.dataType&&!r.dataType.inferred&&r.dataType.isResolved?r.dataType:r.readsValue?ji(r.readsValue,a):null}function JO(r,a=null){return ji(r.declaration,a)}function SO(r,a=null){return r.dataType&&!r.dataType.inferred?r.dataType:r.dataType&&r.dataType.inferred||!r.dataType?(r.inferDataTypeAndSyncInstancesInputsAndOutputs(a),r.dataType):null}function Ec(r,a=null){var e;return((e=r.declaration)==null?void 0:e.dataType)||null}function WO(r,a=null){return(r==null?void 0:r.dataType)||null}function zO(r,a=null){return(r==null?void 0:r.dataType)||null}function ji(r,a=null){switch(r.type){case n.VariableDeclaration:return SO(r,a);case n.ArgumentDeclaration:return qO(r,a);case n.ReturnDeclaration:return Tc(r,a);case n.VariableInstance:return JO(r,a);case n.InputMap:return vc(r,a);case n.OutputMap:return Ec(r,a);case n.Property:return WO(r,a);case n.ValueDescriptor:return zO(r,a);default:throw new Error(`Cannot infer data type from entity of type ${r.type}.`)}}function jl(r,a=null){switch(r.type){case n.ArgumentDeclaration:return r.getDataType(a);case n.InputMap:return r.getDataType(a);case n.VariableDeclaration:return r.getDataType(a);case n.VariableInstance:return r.getDataType(a);case n.OutputMap:return r.getDataType(a);case n.ReturnDeclaration:return r.getDataType(a);case n.Property:return r.getDataType(a);case n.ValueDescriptor:return r.getDataType(a);default:return null}}function _(r){if(r){let a=null;return typeof r=="string"?a=r:r.entityId?a=r.entityId:r.type!==n.GenericReference&&(a=r.id),a}return null}function Un(r){return r.declaration||r}function EJ(r){return r.type===n.VariableDeclaration?r.parent===r.project?"global-declaration":"local-declaration":r.declaration.parent===r.project?"global-instance":"local-instance"}function Ic(r,a){const e=[];if(r.type===n.Project)e.push(...r.variableDeclarations);else{const i=ti(Je(r)).filter(s=>s.type===n.VariableDeclaration);e.push(...i),r.parent&&(ut.includes(r.parent.type)||r.parent.type===n.Project)&&e.push(...Ic(r.parent))}return e}function IJ(r){return r.split(/[\s-]+/).filter(t=>t.length>0).map((t,i)=>i===0?t.toLowerCase():t[0].toUpperCase()+t.slice(1).toLowerCase()).join("")}function AJ(r){return r.split(/[\s-]+/).filter(t=>t.length>0).map(t=>t[0].toUpperCase()+t.slice(1).toLowerCase()).join("")}function YO(r){var a;return(a=r.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g))==null?void 0:a.map(e=>e.toLowerCase()).join("-")}function Ul(r){return YO(r).toLowerCase()}function $l(r){var a,e;if(!r)return"Any data type";if(!r.entity){const t=r.isList;if(!((a=r.andChildrenGroup)!=null&&a.length)&&!((e=r.orChildrenGroup)!=null&&e.length))return t?"List of an any data type":"Any data type";let i="",s=!1,l=!1;return(r.andChildrenGroup||[]).forEach(o=>{const d=$l(o),u=Ll(d);s&&(i+=" and "),o.isGroup?i+="("+u+")":s?i+=u:i+=d,s=!0,l=!0}),(r.orChildrenGroup||[]).forEach(o=>{const d=$l(o),u=Ll(d);s&&(l&&(i+=","),i+=" or "),o.isGroup?i+="("+u+")":s?i+=u:i+=d,s=!0}),i}if(r.entity.type===n.PrimitiveEntity){let t=r.entity.name;switch(r.entity.name){case L.String:t="Text";break;case L.KeyValue:t="Data structure";break}return r.isList?`List of ${t}s`:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}else if(r.entity.type===n.DefinitionEntity){const t=x(r.entity,r.project);return r.isList?`List of ${t} entities`:t.slice(0,1).toUpperCase()+t.slice(1)}else if(r.entity.type===n.BuiltInBaseEntity){const t=KO(r.entity);return r.isList?`List of ${t} entities`:t.slice(0,1).toUpperCase()+t.slice(1)}else return r.isList?`List of ${r.entity.name} entities`:`${r.entity.name.slice(0,1).toUpperCase()+r.entity.name.slice(1)} entity`}function bJ(r){if(!r)return"Any data type";const a=r.getDataType(null);return $l(a)}function gl(r){switch(r.declaration.id){case yt.Equal:return"is equal to";case yt.NotEqual:return"is not equal to";case yt.MoreThan:return"is greater than";case yt.MoreThanOrEqual:return"is greater than or equal to";case yt.LessThan:return"is less than";case yt.LessThanOrEqual:return"is less than or equal to";case yt.And:return"and";case yt.Or:return"or";case bi.Empty:return"is empty";case bi.NotEmpty:return"is not empty"}}function HO(r){return r.includes(S.HTTP_ENDPOINT)?"HTTP endpoint":r.includes(S.PERSISTED_ENTITY)?"Persisted entity":r.includes(S.CRON_JOB)?"Scheduled execution":r.includes(S.RELATIONAL_DATABASE)?"Relational database":"Entity"}function KO(r){switch(r.name){case S.HTTP_ENDPOINT:return"HTTP endpoint";case S.PERSISTED_ENTITY:return"Persisted entity";case S.CRON_JOB:return"Scheduled execution";case S.RELATIONAL_DATABASE:return"Relational database"}return"Entity"}function RJ(r){const a=tw(r);if(!a){const e=ef(r);return e.includes(S.HTTP_ENDPOINT)?"HTTP endpoint":e.includes(S.PERSISTED_ENTITY)?"Persisted entity":e.includes(S.CRON_JOB)?"Scheduled execution":e.includes(S.RELATIONAL_DATABASE)?"Relational database":x(r,r.project)+" entity"}return x(a,r.project)+" entity"}function XO(r){let a="Find ";return r.outputsDeclarations.forEach((e,t)=>{const i=jl(e,null),s=Ll(i&&i.entity?x(i.entity,r.project):"unstructured data");t===0?a+=`${s} `:t===r.outputsDeclarations.length-1?a+=`and ${s} `:a+=`, ${s} `}),a}function QO(r){switch(r.name){case L.String:return"Text";case L.Number:return"Number";case L.Boolean:return"Boolean";case L.KeyValue:return"Data structure";case L.UUID:return"Unique identifier";case L.Date:return"Date";case L.EntityTemplate:return"Entity as template";case L.Enum:return"Enumeration";case L.File:return"File";case L.Null:return"Empty";case L.ActionDescriptor:return"Action descriptor";case L.Untyped:return"Untyped";default:return r.name}}function e1(r){switch(r.id){case ee.List:return"Loop over list items";case ee.ManualFlow:return"Manual flow control loop";case ee.ObjectKeys:return"Loop over object keys";case ee.ObjectValues:return"Loop over object values";case ee.Counted:return"Loop given number of times";case ee.String:return"Loop over text characters";case et.Addition:return"Sum numbers";case et.Subtraction:return"Subtract numbers";case et.Multiplication:return"Multiply numbers";case et.Division:return"Divide numbers";case et.Remainder:return"Get remainder of numbers";case et.Exponentiation:return"Get exponent of numbers";case Ie.AddIndex:return"Add at index position";case Ie.DeleteFirst:return"Delete first character";case Ie.DeleteLast:return"Delete last character";case Ie.DeleteIndex:return"Delete at index position";case Ie.Join:return"Join texts";case Ie.ReplaceAllMatches:return"Replace all matches";case Ie.ReplaceFirst:return"Replace first match";case Ie.ReplaceLast:return"Replace last match";case Ie.Split:return"Split text";case Ie.ReplaceIndex:return"Replace at index position";case Ie.ReplaceSingleMatch:return"Replace single match";case Ie.GetFirst:return"Get first character";case Ie.GetLast:return"Get last character";case Ie.GetIndex:return"Get at index position";case Ie.Append:return"Add at the end";case Ie.Prepend:return"Add at the start";case Qe.Wait:return"Wait";case Qe.Parallel:return"Run in parallel";case Qe.Sequential:return"Run in sequence";case Lt.HttpRequest:return"HTTP request";case tt.CreateNewInstance:return"Create new copy of entity";case he.AddIndex:return"Add item at index position";case he.DeleteFirst:return"Delete first item";case he.DeleteLast:return"Delete last item";case he.DeleteIndex:return"Delete item at index position";case he.Join:return"Join lists";case he.ReplaceAllMatches:return"Replace all matches";case he.ReplaceFirst:return"Replace first match";case he.ReplaceLast:return"Replace last match";case he.Split:return"Split list";case he.ReplaceIndex:return"Replace at index position";case he.ReplaceSingleMatch:return"Replace single match";case he.GetFirst:return"Get first item";case he.GetLast:return"Get last item";case he.GetIndex:return"Get item at index position";case he.Append:return"Add item at the end";case he.Prepend:return"Add item at the start";case ir.PROJECT_PUBLICATION_COMPLETED:return"Project publication completed";default:return(r.name.slice(0,1).toUpperCase()+r.name.slice(1)).replaceAll("-"," ")}}function x(r,a){var e;if(n.FunctionDeclaration===r.type){const t=r.name;if(Object.values(ci).includes(t))switch(t){case ci.AbortExecution:return"Abort execution";case ci.DeletePersistedEntity:return"Delete persisted entity";case ci.SoftDeletePersistedEntity:return"Soft delete persisted entity";default:return Zt(r.type).replaceAll("-"," ")}return t}if(n.BuiltInBaseEntity===r.type)return HO([r.name]);if(uf.includes(r.type)&&r.type!==n.ActionDescriptor)return r.name;switch(r.type){case n.Search:return XO(r);case n.GlobalEvent:return r.implements?x(r.implements,a):Zt(r.type).replaceAll("-"," ");case n.Operation:case n.InternalCall:case n.Loop:const t=Ai(r.declaration,a);return x(t,a);case n.ActionDescriptor:return e1(r);case n.BreakStatement:const i=Ai(r.parent,a);return`Stop loop ${x(i,a)}`;case n.ContinueStatement:const s=Ai(r.parent,a);return`Execute next iteration of ${x(s,a)}`;case n.FunctionCall:return Ai(r.declaration,a).name;case n.Condition:{const o=r;if((e=r.inputs)!=null&&e.length){const d=x(o.inputs[0],o.project);if(o.inputs[1]){const u=o.inputs[1].declaration.name;return`If ${d} ${gl(o)} ${u}`}return`If ${d} ${gl(o)}`}else return`If ${gl(o)}`}case n.ReturnStatement:{const o=Ai(r.parent,a);return`Output of ${x(o,a)}`}case n.InputMap:if(r.declaration){const o=Ai(r.declaration,a);return x(o,a)||""}else return r.name||"";case n.VariableInstance:{const o=Ai(r.declaration,a);return x(o,a)||""}case n.OutputMap:if(r.declaration){const o=Ai(r.declaration,a);return(o==null?void 0:o.name)||""}else return"";case n.PrimitiveEntity:case n.LiteralValue:return QO(r);default:return Zt(r.type).replaceAll("-"," ")}}function Ac(r,a){const e=[];r.name||e.push(new w({id:`${r.id}--${$.EmptyName}`,message:`Entity with id "${r.id}" and type "${r.type}" has an empty name. Please provide a 'name' string.`,severity:D.Error,code:$.EmptyName,issue:null}));const t=a.entities.filter(i=>i.name===r.name);return t.length&&e.push(new w({id:`${r.id}--${$.NameNotUniqueInScope}`,message:`Entity with id "${r.id}" and type "${r.type}" has a name "${r.name}" that is not unique in the project. Entity with id "${t[0].id}" has the same name.
|
|
36
|
+
`+s+"}",d}function Nq(r,a,e){a=Pa(a);var t=a.length;if(!t)return Qt(e)?e.call(r):e;for(var i=0;i<t;i++){var s=r==null?void 0:r[a[i]];s===void 0&&(s=e,i=t),r=Qt(s)?s.call(r):s}return r}var Lq=0;function jq(r){var a=++Lq+"";return r?r+a:a}function Uq(r){var a=Xe(r);return a._chain=!0,a}function IO(r,a,e,t,i){if(!(t instanceof a))return r.apply(e,i);var s=fO(r.prototype),l=r.apply(s,i);return $r(l)?l:s}var Os=oi(function(r,a){var e=Os.placeholder,t=function(){for(var i=0,s=a.length,l=Array(s),o=0;o<s;o++)l[o]=a[o]===e?arguments[i++]:a[o];for(;i<arguments.length;)l.push(arguments[i++]);return IO(r,t,this,this,l)};return t});Os.placeholder=Xe;const AO=oi(function(r,a,e){if(!Qt(r))throw new TypeError("Bind must be called on a function");var t=oi(function(i){return IO(r,t,a,this,e.concat(i))});return t}),Ei=QD(li);function Ln(r,a,e,t){if(t=t||[],!a&&a!==0)a=1/0;else if(a<=0)return t.concat(r);for(var i=t.length,s=0,l=li(r);s<l;s++){var o=r[s];if(Ei(o)&&(Nn(o)||Yp(o)))if(a>1)Ln(o,a-1,e,t),i=t.length;else for(var d=0,u=o.length;d<u;)t[i++]=o[d++];else e||(t[i++]=o)}return t}const $q=oi(function(r,a){a=Ln(a,!1,!1);var e=a.length;if(e<1)throw new Error("bindAll must be passed function names");for(;e--;){var t=a[e];r[t]=AO(r[t],r)}return r});function gq(r,a){var e=function(t){var i=e.cache,s=""+(a?a.apply(this,arguments):t);return gr(i,s)||(i[s]=r.apply(this,arguments)),i[s]};return e.cache={},e}const bO=oi(function(r,a,e){return setTimeout(function(){return r.apply(null,e)},a)}),Gq=Os(bO,Xe,1);function Fq(r,a,e){var t,i,s,l,o=0;e||(e={});var d=function(){o=e.leading===!1?0:Va(),t=null,l=r.apply(i,s),t||(i=s=null)},u=function(){var y=Va();!o&&e.leading===!1&&(o=y);var c=a-(y-o);return i=this,s=arguments,c<=0||c>a?(t&&(clearTimeout(t),t=null),o=y,l=r.apply(i,s),t||(i=s=null)):!t&&e.trailing!==!1&&(t=setTimeout(d,c)),l};return u.cancel=function(){clearTimeout(t),o=0,t=i=s=null},u}function xq(r,a,e){var t,i,s,l,o,d=function(){var y=Va()-i;a>y?t=setTimeout(d,a-y):(t=null,e||(l=r.apply(o,s)),t||(s=o=null))},u=oi(function(y){return o=this,s=y,i=Va(),t||(t=setTimeout(d,a),e&&(l=r.apply(o,s))),l});return u.cancel=function(){clearTimeout(t),t=s=o=null},u}function kq(r,a){return Os(a,r)}function lc(r){return function(){return!r.apply(this,arguments)}}function Zq(){var r=arguments,a=r.length-1;return function(){for(var e=a,t=r[a].apply(this,arguments);e--;)t=r[e].call(this,t);return t}}function qq(r,a){return function(){if(--r<1)return a.apply(this,arguments)}}function RO(r,a){var e;return function(){return--r>0&&(e=a.apply(this,arguments)),r<=1&&(a=null),e}}const Jq=Os(RO,2);function DO(r,a,e){a=di(a,e);for(var t=Mt(r),i,s=0,l=t.length;s<l;s++)if(i=t[s],a(r[i],i,r))return i}function OO(r){return function(a,e,t){e=di(e,t);for(var i=li(a),s=r>0?0:i-1;s>=0&&s<i;s+=r)if(e(a[s],s,a))return s;return-1}}const dc=OO(1),PO=OO(-1);function wO(r,a,e,t){e=di(e,t,1);for(var i=e(a),s=0,l=li(r);s<l;){var o=Math.floor((s+l)/2);e(r[o])<i?s=o+1:l=o}return s}function CO(r,a,e){return function(t,i,s){var l=0,o=li(t);if(typeof s=="number")r>0?l=s>=0?s:Math.max(s+o,l):o=s>=0?Math.min(s+1,o):s+o+1;else if(e&&s&&o)return s=e(t,i),t[s]===i?s:-1;if(i!==i)return s=a(ba.call(t,l,o),KD),s>=0?s+l:-1;for(s=r>0?l:o-1;s>=0&&s<o;s+=r)if(t[s]===i)return s;return-1}}const VO=CO(1,dc,wO),Sq=CO(-1,PO);function uc(r,a,e){var t=Ei(r)?dc:DO,i=t(r,a,e);if(i!==void 0&&i!==-1)return r[i]}function Wq(r,a){return uc(r,wa(a))}function vr(r,a,e){a=Ca(a,e);var t,i;if(Ei(r))for(t=0,i=r.length;t<i;t++)a(r[t],t,r);else{var s=Mt(r);for(t=0,i=s.length;t<i;t++)a(r[s[t]],s[t],r)}return r}function jn(r,a,e){a=di(a,e);for(var t=!Ei(r)&&Mt(r),i=(t||r).length,s=Array(i),l=0;l<i;l++){var o=t?t[l]:l;s[l]=a(r[o],o,r)}return s}function BO(r){var a=function(e,t,i,s){var l=!Ei(e)&&Mt(e),o=(l||e).length,d=r>0?0:o-1;for(s||(i=e[l?l[d]:d],d+=r);d>=0&&d<o;d+=r){var u=l?l[d]:d;i=t(i,e[u],u,e)}return i};return function(e,t,i,s){var l=arguments.length>=3;return a(e,Ca(t,s,4),i,l)}}const pc=BO(1),_O=BO(-1);function Ps(r,a,e){var t=[];return a=di(a,e),vr(r,function(i,s,l){a(i,s,l)&&t.push(i)}),t}function zq(r,a,e){return Ps(r,lc(di(a)),e)}function MO(r,a,e){a=di(a,e);for(var t=!Ei(r)&&Mt(r),i=(t||r).length,s=0;s<i;s++){var l=t?t[s]:s;if(!a(r[l],l,r))return!1}return!0}function NO(r,a,e){a=di(a,e);for(var t=!Ei(r)&&Mt(r),i=(t||r).length,s=0;s<i;s++){var l=t?t[s]:s;if(a(r[l],l,r))return!0}return!1}function Tr(r,a,e,t){return Ei(r)||(r=Ds(r)),(typeof e!="number"||t)&&(e=0),VO(r,a,e)>=0}const Yq=oi(function(r,a,e){var t,i;return Qt(a)?i=a:(a=Pa(a),t=a.slice(0,-1),a=a[a.length-1]),jn(r,function(s){var l=i;if(!l){if(t&&t.length&&(s=ic(s,t)),s==null)return;l=s[a]}return l==null?l:l.apply(s,e)})});function cc(r,a){return jn(r,nc(a))}function Hq(r,a){return Ps(r,wa(a))}function LO(r,a,e){var t=-1/0,i=-1/0,s,l;if(a==null||typeof a=="number"&&typeof r[0]!="object"&&r!=null){r=Ei(r)?r:Ds(r);for(var o=0,d=r.length;o<d;o++)s=r[o],s!=null&&s>t&&(t=s)}else a=di(a,e),vr(r,function(u,y,c){l=a(u,y,c),(l>i||l===-1/0&&t===-1/0)&&(t=u,i=l)});return t}function Kq(r,a,e){var t=1/0,i=1/0,s,l;if(a==null||typeof a=="number"&&typeof r[0]!="object"&&r!=null){r=Ei(r)?r:Ds(r);for(var o=0,d=r.length;o<d;o++)s=r[o],s!=null&&s<t&&(t=s)}else a=di(a,e),vr(r,function(u,y,c){l=a(u,y,c),(l<i||l===1/0&&t===1/0)&&(t=u,i=l)});return t}var Xq=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function jO(r){return r?Nn(r)?ba.call(r):Sp(r)?r.match(Xq):Ei(r)?jn(r,rc):Ds(r):[]}function UO(r,a,e){if(a==null||e)return Ei(r)||(r=Ds(r)),r[ac(r.length-1)];var t=jO(r),i=li(t);a=Math.max(Math.min(a,i),0);for(var s=i-1,l=0;l<a;l++){var o=ac(l,s),d=t[l];t[l]=t[o],t[o]=d}return t.slice(0,a)}function Qq(r){return UO(r,1/0)}function eJ(r,a,e){var t=0;return a=di(a,e),cc(jn(r,function(i,s,l){return{value:i,index:t++,criteria:a(i,s,l)}}).sort(function(i,s){var l=i.criteria,o=s.criteria;if(l!==o){if(l>o||l===void 0)return 1;if(l<o||o===void 0)return-1}return i.index-s.index}),"value")}function Ml(r,a){return function(e,t,i){var s=a?[[],[]]:{};return t=di(t,i),vr(e,function(l,o){var d=t(l,o,e);r(s,l,d)}),s}}const tJ=Ml(function(r,a,e){gr(r,e)?r[e].push(a):r[e]=[a]}),iJ=Ml(function(r,a,e){r[e]=a}),rJ=Ml(function(r,a,e){gr(r,e)?r[e]++:r[e]=1}),nJ=Ml(function(r,a,e){r[e?0:1].push(a)},!0);function sJ(r){return r==null?0:Ei(r)?r.length:Mt(r).length}function aJ(r,a,e){return a in e}const $O=oi(function(r,a){var e={},t=a[0];if(r==null)return e;Qt(t)?(a.length>1&&(t=Ca(t,a[1])),a=Oa(r)):(t=aJ,a=Ln(a,!1,!1),r=Object(r));for(var i=0,s=a.length;i<s;i++){var l=a[i],o=r[l];t(o,l,r)&&(e[l]=o)}return e}),oJ=oi(function(r,a){var e=a[0],t;return Qt(e)?(e=lc(e),a.length>1&&(t=a[1])):(a=jn(Ln(a,!1,!1),String),e=function(i,s){return!Tr(a,s)}),$O(r,e,t)});function gO(r,a,e){return ba.call(r,0,Math.max(0,r.length-(a==null||e?1:a)))}function fc(r,a,e){return r==null||r.length<1?a==null||e?void 0:[]:a==null||e?r[0]:gO(r,r.length-a)}function Nl(r,a,e){return ba.call(r,a==null||e?1:a)}function lJ(r,a,e){return r==null||r.length<1?a==null||e?void 0:[]:a==null||e?r[r.length-1]:Nl(r,Math.max(0,r.length-a))}function dJ(r){return Ps(r,Boolean)}function uJ(r,a){return Ln(r,a,!1)}const GO=oi(function(r,a){return a=Ln(a,!0,!0),Ps(r,function(e){return!Tr(a,e)})}),pJ=oi(function(r,a){return GO(r,a)});function yc(r,a,e,t){qD(a)||(t=e,e=a,a=!1),e!=null&&(e=di(e,t));for(var i=[],s=[],l=0,o=li(r);l<o;l++){var d=r[l],u=e?e(d,l,r):d;a&&!e?((!l||s!==u)&&i.push(d),s=u):e?Tr(s,u)||(s.push(u),i.push(d)):Tr(i,d)||i.push(d)}return i}const cJ=oi(function(r){return yc(Ln(r,!0,!0))});function fJ(r){for(var a=[],e=arguments.length,t=0,i=li(r);t<i;t++){var s=r[t];if(!Tr(a,s)){var l;for(l=1;l<e&&Tr(arguments[l],s);l++);l===e&&a.push(s)}}return a}function hc(r){for(var a=r&&LO(r,li).length||0,e=Array(a),t=0;t<a;t++)e[t]=cc(r,t);return e}const yJ=oi(hc);function hJ(r,a){for(var e={},t=0,i=li(r);t<i;t++)a?e[r[t]]=a[t]:e[r[t][0]]=r[t][1];return e}function mJ(r,a,e){a==null&&(a=r||0,r=0),e||(e=a<r?-1:1);for(var t=Math.max(Math.ceil((a-r)/e),0),i=Array(t),s=0;s<t;s++,r+=e)i[s]=r;return i}function vJ(r,a){if(a==null||a<1)return[];for(var e=[],t=0,i=r.length;t<i;)e.push(ba.call(r,t,t+=a));return e}function mc(r,a){return r._chain?Xe(a).chain():a}function FO(r){return vr(ec(r),function(a){var e=Xe[a]=r[a];Xe.prototype[a]=function(){var t=[this._wrapped];return k7.apply(t,arguments),mc(this,e.apply(Xe,t))}}),Xe}vr(["pop","push","reverse","shift","sort","splice","unshift"],function(r){var a=Cl[r];Xe.prototype[r]=function(){var e=this._wrapped;return e!=null&&(a.apply(e,arguments),(r==="shift"||r==="splice")&&e.length===0&&delete e[0]),mc(this,e)}}),vr(["concat","join","slice"],function(r){var a=Cl[r];Xe.prototype[r]=function(){var e=this._wrapped;return e!=null&&(e=a.apply(e,arguments)),mc(this,e)}});var xO=FO(Object.freeze(Object.defineProperty({__proto__:null,VERSION:LD,after:qq,all:MO,allKeys:Oa,any:NO,assign:_l,before:RO,bind:AO,bindAll:$q,chain:Uq,chunk:vJ,clone:Tq,collect:jn,compact:dJ,compose:Zq,constant:XD,contains:Tr,countBy:rJ,create:vq,debounce:xq,default:Xe,defaults:cO,defer:Gq,delay:bO,detect:uc,difference:GO,drop:Nl,each:vr,escape:Dq,every:MO,extend:pO,extendOwn:_l,filter:Ps,find:uc,findIndex:dc,findKey:DO,findLastIndex:PO,findWhere:Wq,first:fc,flatten:uJ,foldl:pc,foldr:_O,forEach:vr,functions:ec,get:hO,groupBy:tJ,has:Iq,head:fc,identity:rc,include:Tr,includes:Tr,indexBy:iJ,indexOf:VO,initial:gO,inject:pc,intersection:fJ,invert:uO,invoke:Yq,isArguments:Yp,isArray:Nn,isArrayBuffer:WD,isBoolean:qD,isDataView:Vl,isDate:K7,isElement:H7,isEmpty:Da,isEqual:lq,isError:Q7,isFinite:rq,isFunction:Qt,isMap:pq,isMatch:rO,isNaN:KD,isNull:Y7,isNumber:JD,isObject:$r,isRegExp:X7,isSet:fq,isString:Sp,isSymbol:SD,isTypedArray:tO,isUndefined:ZD,isWeakMap:cq,isWeakSet:yq,iteratee:sc,keys:Mt,last:lJ,lastIndexOf:Sq,map:jn,mapObject:Aq,matcher:wa,matches:wa,max:LO,memoize:gq,methods:ec,min:Kq,mixin:FO,negate:lc,noop:vO,now:Va,object:hJ,omit:oJ,once:Jq,pairs:hq,partial:Os,partition:nJ,pick:$O,pluck:cc,property:nc,propertyOf:bq,random:ac,range:mJ,reduce:pc,reduceRight:_O,reject:zq,rest:Nl,restArguments:oi,result:Nq,sample:UO,select:Ps,shuffle:Qq,size:sJ,some:NO,sortBy:eJ,sortedIndex:wO,tail:Nl,take:fc,tap:Eq,template:Mq,templateSettings:wq,throttle:Fq,times:Rq,toArray:jO,toPath:yO,transpose:hc,unescape:Pq,union:cJ,uniq:yc,unique:yc,uniqueId:jq,unzip:hc,values:Ds,where:Hq,without:pJ,wrap:kq,zip:yJ},Symbol.toStringTag,{value:"Module"})));xO._=xO;function Zt(r){return r.charAt(0).toUpperCase()+r.slice(1)}function Ll(r){return r.charAt(0).toLowerCase()+r.slice(1)}function kO(r,a){if(r.type!==n.Property||a.type!==n.Property)throw new Error(`Expected property entities for comparison. But got ${r.type} and ${a.type}.`);return r===a||r.id===a.id?!0:r.name!==a.name||r.static!==a.static||r.abstract!==a.abstract?!1:wi(r.dataType,a.dataType).compatible}function ZO(r,a){if(r.type!==n.DefinitionEntity||a.type!==n.DefinitionEntity)throw new Error(`Expected definition entities for comparison. But got ${r.type} and ${a.type}.`);if(r===a||r.id===a.id)return!0;if(r.properties.length!==a.properties.length)return!1;let e=[...a.properties];const t=[];for(let i=0;i<r.properties.length;i++){const s=r.properties[i];e.find(o=>{const d=kO(s,o);return d&&(e=e.filter(u=>u.id!==o.id)),d})||t.push(s)}return!(t.length>0)}var Pi=(r=>(r.BothUnconstrained="both-unconstrained",r.AConstraintBUnconstrained="a-constraint-b-unconstrained",r.BConstraintAUnconstrained="b-constraint-a-unconstrained",r.Same="same",r.AIsListBIsNot="a-is-list-b-is-not",r.BIsListAIsNot="b-is-list-a-is-not",r.AIsNullableBIsNot="a-is-nullable-b-is-not",r.BIsNullableAIsNot="b-is-nullable-a-is-not",r.AIsTemplateBIsNot="a-is-template-b-is-not",r.BIsTemplateAIsNot="b-is-template-a-is-not",r.BothUntyped="both-untyped",r.AIsUntypedBIsNot="a-is-untyped-b-is-not",r.BIsUntypedAIsNot="b-is-untyped-a-is-not",r.TypeEntityMismatch="type-entity-mismatch",r.SameDefinitionEntities="same-definition-entities",r.CompatibleDefinitionEntities="compatible-definition-entities",r.IncompatibleDefinitionEntities="incompatible-definition-entities",r.SamePrimitiveEntities="same-primitive-entities",r.IncompatiblePrimitiveEntities="incompatible-primitive-entities",r.SameBuiltInBaseEntities="same-built-in-base-entities",r.IncompatibleBuiltInBaseEntities="incompatible-built-in-base-entities",r.CheckUnknown="check-unknown",r))(Pi||{});function wi(r,a){var e,t,i,s,l,o,d,u,y,c,E;if(r&&r.type!==n.DataType||a&&a.type!==n.DataType)throw new Error(`Expected data-type entities for comparison. But got ${r==null?void 0:r.type} and ${a==null?void 0:a.type}.`);if(r===null&&a===null)return{compatible:!0,type:"both-unconstrained"};if(r===null)return{compatible:!0,type:"a-constraint-b-unconstrained"};if(a===null)return{compatible:!0,type:"b-constraint-a-unconstrained"};if(r===a)return{compatible:!0,type:"same"};if(r.id===a.id)return{compatible:!0,type:"same"};if(r.isList!==a.isList)return{compatible:!1,type:r.isList?"a-is-list-b-is-not":"b-is-list-a-is-not"};if(r.asType!==a.asType)return{compatible:!1,type:r.asType?"a-is-template-b-is-not":"b-is-template-a-is-not"};if(!r.entity&&a.entity)return{compatible:!0,type:"a-is-untyped-b-is-not"};if(r.entity&&!a.entity)return{compatible:!0,type:"b-is-untyped-a-is-not"};if(!r.entity&&!a.entity)return{compatible:!0,type:"both-untyped"};if(((e=r.entity)==null?void 0:e.type)!==((t=a.entity)==null?void 0:t.type))return{compatible:!1,type:"type-entity-mismatch"};if(((i=r.entity)==null?void 0:i.type)===n.DefinitionEntity){if(((s=r.entity)==null?void 0:s.id)===((l=a.entity)==null?void 0:l.id))return{compatible:!0,type:"same-definition-entities"};const I=ZO(r.entity,a.entity);return{compatible:I,type:I?"compatible-definition-entities":"incompatible-definition-entities"}}return((o=r.entity)==null?void 0:o.type)===n.PrimitiveEntity?((d=r.entity)==null?void 0:d.id)===((u=a.entity)==null?void 0:u.id)?{compatible:!0,type:"same-primitive-entities"}:{compatible:!1,type:"incompatible-primitive-entities"}:((y=r.entity)==null?void 0:y.type)===n.BuiltInBaseEntity?((c=r.entity)==null?void 0:c.id)===((E=a.entity)==null?void 0:E.id)?{compatible:!0,type:"same-built-in-base-entities"}:{compatible:!1,type:"incompatible-built-in-base-entities"}:{compatible:!1,type:"check-unknown"}}function TJ(r,a){const e=r.project.builtInBaseEntities.find(s=>s.id===S.EXECUTION),t={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,isList:!1,isNullable:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,constant:!1,defaultValue:null,parent:null},i=C(t,r.project);return i.inferred=!0,a==null||a.add(i,b.Added),i.metaSync(t,a),i.setParent(r,a),i.entity=e,i}function qO(r,a=null){return r.dataType?r.dataType:null}function vc(r,a=null){var t;const e=(t=r.declaration)==null?void 0:t.getDataType(a);return e&&e.isResolved?e:r.readsValue?ji(r.readsValue,a):null}function Tc(r,a=null){return r.dataType&&!r.dataType.inferred&&r.dataType.isResolved?r.dataType:r.readsValue?ji(r.readsValue,a):null}function JO(r,a=null){return ji(r.declaration,a)}function SO(r,a=null){return r.dataType&&!r.dataType.inferred?r.dataType:r.dataType&&r.dataType.inferred||!r.dataType?(r.inferDataTypeAndSyncInstancesInputsAndOutputs(a),r.dataType):null}function Ec(r,a=null){var e;return((e=r.declaration)==null?void 0:e.dataType)||null}function WO(r,a=null){return(r==null?void 0:r.dataType)||null}function zO(r,a=null){return(r==null?void 0:r.dataType)||null}function ji(r,a=null){switch(r.type){case n.VariableDeclaration:return SO(r,a);case n.ArgumentDeclaration:return qO(r,a);case n.ReturnDeclaration:return Tc(r,a);case n.VariableInstance:return JO(r,a);case n.InputMap:return vc(r,a);case n.OutputMap:return Ec(r,a);case n.Property:return WO(r,a);case n.ValueDescriptor:return zO(r,a);default:throw new Error(`Cannot infer data type from entity of type ${r.type}.`)}}function jl(r,a=null){switch(r.type){case n.ArgumentDeclaration:return r.getDataType(a);case n.InputMap:return r.getDataType(a);case n.VariableDeclaration:return r.getDataType(a);case n.VariableInstance:return r.getDataType(a);case n.OutputMap:return r.getDataType(a);case n.ReturnDeclaration:return r.getDataType(a);case n.Property:return r.getDataType(a);case n.ValueDescriptor:return r.getDataType(a);default:return null}}function _(r){if(r){let a=null;return typeof r=="string"?a=r:r.entityId?a=r.entityId:r.type!==n.GenericReference&&(a=r.id),a}return null}function Un(r){return r.declaration||r}function EJ(r){return r.type===n.VariableDeclaration?r.parent===r.project?"global-declaration":"local-declaration":r.declaration.parent===r.project?"global-instance":"local-instance"}function Ic(r,a){const e=[];if(r.type===n.Project)e.push(...r.variableDeclarations);else{const i=ti(Je(r)).filter(s=>s.type===n.VariableDeclaration);e.push(...i),r.parent&&(ut.includes(r.parent.type)||r.parent.type===n.Project)&&e.push(...Ic(r.parent))}return e}function IJ(r){return r.split(/[\s-]+/).filter(t=>t.length>0).map((t,i)=>i===0?t.toLowerCase():t[0].toUpperCase()+t.slice(1).toLowerCase()).join("")}function AJ(r){return r.split(/[\s-]+/).filter(t=>t.length>0).map(t=>t[0].toUpperCase()+t.slice(1).toLowerCase()).join("")}function YO(r){var a;return(a=r.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g))==null?void 0:a.map(e=>e.toLowerCase()).join("-")}function Ul(r){return YO(r).toLowerCase()}function $l(r){var e,t,i,s;if(!r)return"Any data type";let a="";if(r.interactiveEntities===!1?a+=` but only definition nodes ${r.asType?"as template ":""}that don't include non-interactive built-in functionality`:r.interactiveEntities===!0&&(a+=` but only definition nodes ${r.asType?"as template ":""}that extend or implement interactive built-in functionality`),r.staticEntities===!1?a?a+=" and that aren't a single global copy instance":a+=` but only definition nodes ${r.asType?"as template ":""}that aren't a single global copy instance`:r.staticEntities===!0&&(a?a+=" and that are a single global copy instance":a+=` but only definition nodes ${r.asType?"as template ":""}that are a single global copy instance`),r.actionEntities===!1?a?a+=" excluding executable/action nodes":a+=` excluding executable/action nodes ${r.asType?"templates ":""}`:r.actionEntities===!0&&(a?a+=" and not executable/action nodes":a+=" but not executable/action nodes"),r.entity&&(a=""),r.asType&&!a&&!((e=r.andChildrenGroup)!=null&&e.length)&&!((t=r.orChildrenGroup)!=null&&t.length)&&(a=" as template"),!r.entity){const l=r.isList;if(!((i=r.andChildrenGroup)!=null&&i.length)&&!((s=r.orChildrenGroup)!=null&&s.length))return l?`List of an any data type${a}`:`Any data type${a}`;let o="",d=!1,u=!1;return(r.andChildrenGroup||[]).forEach(y=>{const c=$l(y),E=Ll(c);d&&(o+=" and "),y.isGroup?o+="("+E+")":d?o+=E:o+=c,d=!0,u=!0}),(r.orChildrenGroup||[]).forEach(y=>{const c=$l(y),E=Ll(c);d&&(u&&(o+=","),o+=" or "),y.isGroup?o+="("+E+")":d?o+=E:o+=c,d=!0}),o}if(r.entity.type===n.PrimitiveEntity){let l=r.entity.name;switch(r.entity.name){case L.String:l="Text";break;case L.KeyValue:l="Data structure";break}return r.isList?`List of ${l}s${a}`:`${l.slice(0,1).toUpperCase()}${l.slice(1)}${a}`}else if(r.entity.type===n.DefinitionEntity){const l=x(r.entity,r.project);return r.isList?`List of ${l} entities${a}`:l.slice(0,1).toUpperCase()+l.slice(1)+a}else if(r.entity.type===n.BuiltInBaseEntity){const l=KO(r.entity);return r.isList?`List of ${l} entities${a}`:l.slice(0,1).toUpperCase()+l.slice(1)+a}else return r.isList?`List of ${r.entity.name} entities${a}`:`${r.entity.name.slice(0,1).toUpperCase()+r.entity.name.slice(1)} entity${a}`}function bJ(r){if(!r)return"Any data type";const a=r.getDataType(null);return $l(a)}function gl(r){switch(r.declaration.id){case yt.Equal:return"is equal to";case yt.NotEqual:return"is not equal to";case yt.MoreThan:return"is greater than";case yt.MoreThanOrEqual:return"is greater than or equal to";case yt.LessThan:return"is less than";case yt.LessThanOrEqual:return"is less than or equal to";case yt.And:return"and";case yt.Or:return"or";case bi.Empty:return"is empty";case bi.NotEmpty:return"is not empty"}}function HO(r){return r.includes(S.HTTP_ENDPOINT)?"HTTP endpoint":r.includes(S.PERSISTED_ENTITY)?"Persisted entity":r.includes(S.CRON_JOB)?"Scheduled execution":r.includes(S.RELATIONAL_DATABASE)?"Relational database":"Entity"}function KO(r){switch(r.name){case S.HTTP_ENDPOINT:return"HTTP endpoint";case S.PERSISTED_ENTITY:return"Persisted entity";case S.CRON_JOB:return"Scheduled execution";case S.RELATIONAL_DATABASE:return"Relational database"}return"Entity"}function RJ(r){const a=tw(r);if(!a){const e=ef(r);return e.includes(S.HTTP_ENDPOINT)?"HTTP endpoint":e.includes(S.PERSISTED_ENTITY)?"Persisted entity":e.includes(S.CRON_JOB)?"Scheduled execution":e.includes(S.RELATIONAL_DATABASE)?"Relational database":x(r,r.project)+" entity"}return x(a,r.project)+" entity"}function XO(r){let a="Find ";return r.outputsDeclarations.forEach((e,t)=>{const i=jl(e,null),s=Ll(i&&i.entity?x(i.entity,r.project):"unstructured data");t===0?a+=`${s} `:t===r.outputsDeclarations.length-1?a+=`and ${s} `:a+=`, ${s} `}),a}function QO(r){switch(r.name){case L.String:return"Text";case L.Number:return"Number";case L.Boolean:return"Boolean";case L.KeyValue:return"Data structure";case L.UUID:return"Unique identifier";case L.Date:return"Date";case L.EntityTemplate:return"Entity as template";case L.Enum:return"Enumeration";case L.File:return"File";case L.Null:return"Empty";case L.ActionDescriptor:return"Action descriptor";case L.Untyped:return"Untyped";default:return r.name}}function e1(r){switch(r.id){case ee.List:return"Loop over list items";case ee.ManualFlow:return"Manual flow control loop";case ee.ObjectKeys:return"Loop over object keys";case ee.ObjectValues:return"Loop over object values";case ee.Counted:return"Loop given number of times";case ee.String:return"Loop over text characters";case et.Addition:return"Sum numbers";case et.Subtraction:return"Subtract numbers";case et.Multiplication:return"Multiply numbers";case et.Division:return"Divide numbers";case et.Remainder:return"Get remainder of numbers";case et.Exponentiation:return"Get exponent of numbers";case Ie.AddIndex:return"Add at index position";case Ie.DeleteFirst:return"Delete first character";case Ie.DeleteLast:return"Delete last character";case Ie.DeleteIndex:return"Delete at index position";case Ie.Join:return"Join texts";case Ie.ReplaceAllMatches:return"Replace all matches";case Ie.ReplaceFirst:return"Replace first match";case Ie.ReplaceLast:return"Replace last match";case Ie.Split:return"Split text";case Ie.ReplaceIndex:return"Replace at index position";case Ie.ReplaceSingleMatch:return"Replace single match";case Ie.GetFirst:return"Get first character";case Ie.GetLast:return"Get last character";case Ie.GetIndex:return"Get at index position";case Ie.Append:return"Add at the end";case Ie.Prepend:return"Add at the start";case Qe.Wait:return"Wait";case Qe.Parallel:return"Run in parallel";case Qe.Sequential:return"Run in sequence";case Lt.HttpRequest:return"HTTP request";case tt.CreateNewInstance:return"Create new copy of entity";case he.AddIndex:return"Add item at index position";case he.DeleteFirst:return"Delete first item";case he.DeleteLast:return"Delete last item";case he.DeleteIndex:return"Delete item at index position";case he.Join:return"Join lists";case he.ReplaceAllMatches:return"Replace all matches";case he.ReplaceFirst:return"Replace first match";case he.ReplaceLast:return"Replace last match";case he.Split:return"Split list";case he.ReplaceIndex:return"Replace at index position";case he.ReplaceSingleMatch:return"Replace single match";case he.GetFirst:return"Get first item";case he.GetLast:return"Get last item";case he.GetIndex:return"Get item at index position";case he.Append:return"Add item at the end";case he.Prepend:return"Add item at the start";case ir.PROJECT_PUBLICATION_COMPLETED:return"Project publication completed";default:return(r.name.slice(0,1).toUpperCase()+r.name.slice(1)).replaceAll("-"," ")}}function x(r,a){var e;if(n.FunctionDeclaration===r.type){const t=r.name;if(Object.values(ci).includes(t))switch(t){case ci.AbortExecution:return"Abort execution";case ci.DeletePersistedEntity:return"Delete persisted entity";case ci.SoftDeletePersistedEntity:return"Soft delete persisted entity";default:return Zt(r.type).replaceAll("-"," ")}return t}if(n.BuiltInBaseEntity===r.type)return HO([r.name]);if(uf.includes(r.type)&&r.type!==n.ActionDescriptor)return r.name;switch(r.type){case n.Search:return XO(r);case n.GlobalEvent:return r.implements?x(r.implements,a):Zt(r.type).replaceAll("-"," ");case n.Operation:case n.InternalCall:case n.Loop:const t=Ai(r.declaration,a);return x(t,a);case n.ActionDescriptor:return e1(r);case n.BreakStatement:const i=Ai(r.parent,a);return`Stop loop ${x(i,a)}`;case n.ContinueStatement:const s=Ai(r.parent,a);return`Execute next iteration of ${x(s,a)}`;case n.FunctionCall:return Ai(r.declaration,a).name;case n.Condition:{const o=r;if((e=r.inputs)!=null&&e.length){const d=x(o.inputs[0],o.project);if(o.inputs[1]){const u=o.inputs[1].declaration.name;return`If ${d} ${gl(o)} ${u}`}return`If ${d} ${gl(o)}`}else return`If ${gl(o)}`}case n.ReturnStatement:{const o=Ai(r.parent,a);return`Output of ${x(o,a)}`}case n.InputMap:if(r.declaration){const o=Ai(r.declaration,a);return x(o,a)||""}else return r.name||"";case n.VariableInstance:{const o=Ai(r.declaration,a);return x(o,a)||""}case n.OutputMap:if(r.declaration){const o=Ai(r.declaration,a);return(o==null?void 0:o.name)||""}else return"";case n.PrimitiveEntity:case n.LiteralValue:return QO(r);default:return Zt(r.type).replaceAll("-"," ")}}function Ac(r,a){const e=[];r.name||e.push(new w({id:`${r.id}--${$.EmptyName}`,message:`Entity with id "${r.id}" and type "${r.type}" has an empty name. Please provide a 'name' string.`,severity:D.Error,code:$.EmptyName,issue:null}));const t=a.entities.filter(i=>i.name===r.name);return t.length&&e.push(new w({id:`${r.id}--${$.NameNotUniqueInScope}`,message:`Entity with id "${r.id}" and type "${r.type}" has a name "${r.name}" that is not unique in the project. Entity with id "${t[0].id}" has the same name.
|
|
37
37
|
Please provide a unique 'name' string.`,severity:D.Error,code:$.NameNotUniqueInScope,issue:null})),e}function bc(r,a){const e=[];r.name||e.push(new w({id:`${r.id}--${$.EmptyName}`,message:`Entity with id "${r.id}" and type "${r.type}" has an empty name. Please provide a 'name' string.`,severity:D.Error,code:$.EmptyName,issue:null}));const t=r.parent?_(r.parent):null;let i=a;t&&(i=a.get(t));const s=[];i.type===n.DefinitionEntity?s.push(...i.methods.map(o=>o)):i.type===n.Project?s.push(...i.functions.map(o=>o)):i.type===n.Loop?i.body&&s.push(i.body):i.type===n.InstalledProject&&s.push(...i.functions.map(o=>o));const l=s.filter(o=>o.name===r.name);return l.length&&e.push(new w({id:`${r.id}--${$.NameNotUniqueInScope}`,message:`Entity with id "${r.id}" and type "${r.type}" has a name "${r.name}" that is not unique in ${i.type===n.Project?"the globally declared project scope":"its parent entity"}. Entity with id "${l[0].id}" has the same name.
|
|
38
38
|
Please provide a unique 'name' string.`,severity:D.Error,code:$.NameNotUniqueInScope,issue:null})),e}function Rc(r,a){const e=[];r.name||e.push(new w({id:`${r.id}--${$.EmptyName}`,message:`Entity with id "${r.id}" and type "${r.type}" has an empty name. Please provide a 'name' string.`,severity:D.Error,code:$.EmptyName,issue:null}));const t=r.parent&&Ai(r.parent,a)||a;if(!t)e.push(new w({id:`${r.id}--parent-reference--${R.ReferencedEntityNotFound}`,message:`The entity with id '${r.parent}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,severity:D.Error,code:R.ReferencedEntityNotFound,issue:null}));else{const s=Ic(t).filter(l=>l.name===r.name);s.length&&e.push(new w({id:`${r.id}--${$.NameNotUniqueInScope}`,message:`Entity with id "${r.id}" and type "${r.type}" has a name "${r.name}" that is not unique in its scope or higher scopes. Entity with id "${s[0].id}" has the same name.
|
|
39
39
|
Please provide a unique 'name' string.`,severity:D.Error,code:$.NameNotUniqueInScope,issue:null}))}return e}function Dc(r,a){const e=[];r.name||e.push(new w({id:`${r.id}--${$.EmptyName}`,message:`Entity with id "${r.id}" and type "${r.type}" has an empty name. Please provide a 'name' string.`,severity:D.Error,code:$.EmptyName,issue:null}));const t=_(r.parent);if(!t)e.push(new w({id:`${r.id}--parent-reference--${R.InvalidReferenceObjectStructure}`,message:`Reference object at 'parent' property for entity with id "${r.id}" and type "${r.type}" is not a valid reference. A reference needs to be a 'id' string of an existing entity in the project.`,severity:D.Error,code:R.InvalidReferenceObjectStructure,issue:null}));else{const i=a.get(t);if(!i)e.push(new w({id:`${r.id}--parent-reference--${R.ReferencedEntityNotFound}`,message:`The entity with id '${t}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,severity:D.Error,code:R.ReferencedEntityNotFound,issue:null}));else{const l=i.properties.filter(o=>o.name===r.name);l.length&&e.push(new w({id:`${r.id}--${$.NameNotUniqueInScope}`,message:`Entity with id "${r.id}" and type "${r.type}" has a name "${r.name}" that is not unique among all properties in the parent entity. Entity with id "${l[0].id}" has the same name.
|
|
@@ -91,7 +91,7 @@ ${rn}`,s.push(new w({id:`${e.id}--${R.NonInteractiveEntityReferenced}`,code:R.No
|
|
|
91
91
|
You can inspect the existing 'entity' field with the 'describe_entity' action. Like so:
|
|
92
92
|
${Qi({describe_entity:d.entity.id})}
|
|
93
93
|
Alternatively you can update the parent data-type entity with 'update' action to remove the existing value of the field.`,issue:null}))}return s.push(...l.errors,...pt(i)),{errors:s,modifiedData:i}}syncOperationInstance(e,t){return{updated:[],added:[],removed:[],affected:[],self:e}}inferInputMapDataType(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"infer-input-map-data-type"))){const i=vc(e);return t==null||t.attemptAutoclose("infer-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:i}}inferOutputMapDataType(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"infer-output-map-data-type"))){const i=Ec(e);return t==null||t.attemptAutoclose("infer-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:i}}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new w({id:`${this.id}--${R.InvalidParentUpdate}`,code:R.InvalidParentUpdate,severity:D.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
|
|
94
|
-
This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`,issue:null})),{errors:t,modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-dependents"))){const t=[],i=[],s=[],l=[];return Object.values(this.detachedDependents).forEach(o=>{const d=o.entity.afterAllChildrenInitialized(e);t.push(...d.updated),i.push(...d.added),s.push(...d.removed),l.push(...d.affected)}),e==null||e.attemptAutoclose("sync-dependents",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}onDetachedDependencyRemoved(e,t,i){const s=[],l=[],o=[],d=[];return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}onDetachedDependencyRestored(e,t,i){const s=[],l=[],o=[],d=[];return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}subscribeToDependencies(){return this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=m.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new we(this,this.project);return e.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,e):new Map([[this.version,e]]),e.inputs=this.inputs,e.outputs=this.outputs,e.error=this.error,e.parent=this.parent,this}recursiveCaptureUpstreamVersions(e){const t=[],i=[],s=[],l=[];if(this.parent&&this.parent.type!==n.BuiltInBaseEntity&&this.parent.type!==n.PrimitiveEntity){this.parent.increaseVersion(e);const o=this.parent.recursiveCaptureUpstreamVersions(e);t.push(this.parent,...o.updated),i.push(...o.added),s.push(...o.removed)}return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}async restoreVersion(e){var d;const t=[],i=[],s=[],l=[];if(this.version===e)return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this};if(!this.knownVersions){const u=new Map;for(const[y,c]of this.knownVersions||new Map){if(u.set(y,c),c.activeVersion=!1,c.knownVersions)for(const[E,I]of c.knownVersions)u.set(E,I);c.knownVersions=null}}let o=(d=this.knownVersions)==null?void 0:d.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new we(u,this.project)}return this.metaSync(o.toShallowJSON(),null),this.inputs=o.inputs,this.outputs=o.outputs,this.error=o.error,this.parent=o.parent,{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}hydrateAncestors(){const e=[],t=[],i=[],s=[];if(this.initialData.parent){const l=_(this.initialData.parent),o=this.project.get(l);if(o)this.setParent(o,null),e.push(o);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${l}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}afterAllChildrenInitialized(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"after-all-children-initialized"))){const t=[],i=[],s=[],l=[];return this.initialized=!0,this.captureVersion(),e==null||e.attemptAutoclose("after-all-children-initialized",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}addSelfToProject(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-self-to-project"))){const t=[this],i=[],s=[],l=[];return this.parent?(this.parent.type===n.DefinitionEntity?(this.parent.addAbstractMethod(this),t.push(this.parent)):this.parent.type===n.DataType&&(this.parent.setEntity(this),t.push(this.parent)),this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}):(this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this})}setParent(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-parent"))){var i;return((i=this.parent)==null?void 0:i.id)!==(e==null?void 0:e.id)&&(this.parent=e,t&&(t==null||t.add(this,b.Updated),t==null||t.attemptAutoclose("set-parent",this.id))),this}initChildren(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.inputs=this.initialData.inputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.outputs=this.initialData.outputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.initialData.error&&(this.error=C(this.initialData.error,this.project),this.error.setParent(this,null),this.error.initChildren(e)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this)}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"meta-sync"))){const i=ct(this,e),s=this.toMeta();return this.name=e.name!==void 0?e.name:s.name,this.description=e.description!==void 0?e.description:s.description,super.metaSync(e),e.deleted===!0&&!s.deleted?t==null||t.add(this,b.Removed):e.deleted===!1&&s.deleted?t==null||t.add(this,b.Added):i&&(t==null||t.add(this,b.Updated)),t==null||t.attemptAutoclose("meta-sync",this.id),this}async APILoad(e=U,...t){return await we.repository.APILoad(this.id,...t),this}async APICreate(e=U,...t){return await we.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=U,...t){return await we.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=U,...t){return await we.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=U,...t){return await we.repository.APIClone(this.id,...t),this}async APILoadVersion(e=U,t,...i){return await we.repository.APILoadVersion(this.id,t,...i)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-entity"))){const i=[],s=[],l=[],o=[];if(t!=null&&t.hasRemoved(this.id))return t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(s.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},t),Object.values(this.detachedDependents).forEach(d=>{const{updated:u,removed:y,added:c}=d.entity.onDetachedDependencyRemoved(this,d.field,t);i.push(...u),s.push(...y),l.push(...c)}),this.inputs.forEach(d=>{const u=d.remove({ignoreUpstream:!0},t);i.push(...u.updated),s.push(...u.removed)}),this.outputs.forEach(d=>{const u=d.remove({ignoreUpstream:!0},t);i.push(...u.updated),s.push(...u.removed)}),this.error){const d=this.error.remove({ignoreUpstream:!0},t);i.push(...d.updated),s.push(...d.removed)}return t==null||t.attemptAutoclose("remove-entity",this.id),{added:p(l),updated:p(i),removed:p(s),affected:p(o),self:this}}restore({}={},e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"restore-entity"))){const t=[],i=[],s=[],l=[];if(e!=null&&e.hasAdded(this.id))return e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},e),Object.values(this.detachedDependents).forEach(o=>{const{updated:d,removed:u,added:y}=o.entity.onDetachedDependencyRestored(this,o.field,e);i.push(...d),s.push(...u),t.push(...y)}),this.inputs.forEach(o=>{const d=o.restore({},e);i.push(...d.updated)}),this.outputs.forEach(o=>{const d=o.restore({},e);i.push(...d.updated)}),this.error){const o=this.error.restore({},e);i.push(...o.updated)}return e==null||e.attemptAutoclose("restore-entity",this.id),{added:p(t),updated:p(i),removed:p(s),affected:p(l),self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.inputs.flatMap(i=>i.toFlat(e)),...this.outputs.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.inputs.flatMap(i=>i.toFlatIds(e)),...this.outputs.flatMap(i=>i.toFlatIds(e))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,type:this.type,name:this.name}}toJSON(e=new Set){var t,i;return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,error:((t=this.error)==null?void 0:t.toJSON())||null,inputs:this.inputs.map(s=>s.toJSON()),outputs:this.outputs.map(s=>s.toJSON()),parent:((i=this.parent)==null?void 0:i.toReference())||null})}toJSONClone(e=J){var i,s,l,o,d,u,y;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||ht(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(s=e.seenEntities)!=null&&s.has(t)||(l=e.seenEntities)!=null&&l.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(d=e.seenEntities)==null||d.add(this.id),{id:t,version:m.UUID.uuid(),createdAt:e.timestamp||T().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,error:((u=this.error)==null?void 0:u.toJSONClone({...e,newId:null}))||null,inputs:this.inputs.map(c=>c.toJSONClone({...e,newId:null})),outputs:this.outputs.map(c=>c.toJSONClone({...e,newId:null})),parent:((y=this.parent)==null?void 0:y.toReference({seenEntityMaps:e.seenEntityMaps}))||null})}toReference(e=J){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=J){var i,s,l;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,error:((s=this.error)==null?void 0:s.toReference(e))||null,inputs:this.inputs.map(o=>o.toReference(e)),outputs:this.outputs.map(o=>o.toReference(e)),parent:((l=this.parent)==null?void 0:l.toReference(e))||null}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.inputs.flatMap(i=>i.toFlatJSON(e)),...this.outputs.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){var e;return{id:this.id,name:this.name,description:this.description,type:this.type,parent:((e=this.parent)==null?void 0:e.id)||void 0}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.inputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.outputs.flatMap(i=>i.toFlatGenerationTarget(e))])}asFunctionDeclarationTransfer(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"implement-as-function-declaration"))){var d;const i=e||m.UUID.uuid(),s=m.UUID.uuid(),l=this.inputs.map((u,y)=>{var E;const c={id:m.UUID.uuid(),type:n.GenericReference,version:s,entityType:n.FunctionDeclaration,entityId:i};return{id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.ArgumentDeclaration,name:u.name,required:u.required,implements:u.toJSON(),constant:!0,writesValues:[],defaultValue:null,description:u.description,index:y,dataType:((E=u.dataType)==null?void 0:E.toJSONClone({timestamp:(t==null?void 0:t.timestamp)||T().toISOString()}))||null,parent:c}}),o=[];if(this.outputs.length){const u=this.outputs.map((I,O)=>{var V;const P={id:m.UUID.uuid(),type:n.GenericReference,entityId:i,version:s,entityType:n.ReturnStatement};return{id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:I.name,description:I.description,readsValue:null,constant:!0,required:I.required,defaultValue:null,implements:I.toJSON(),isError:!1,index:O,dataType:((V=I.dataType)==null?void 0:V.toJSONClone())||null,parent:P}}),y={id:m.UUID.uuid(),type:n.GenericReference,version:s,entityType:n.FunctionDeclaration,entityId:i},c={id:m.UUID.uuid(),type:n.GenericReference,version:s,entityType:n.FunctionDeclaration,entityId:i},E={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.ReturnStatement,outputs:u,throws:null,calledBySuccess:[],calledByError:[],calledByEntry:[c],parent:y,x:0,y:0};o.push(E)}return t==null||t.attemptAutoclose("implement-as-function-declaration",this.id),{id:i,version:s,createdAt:(t==null?void 0:t.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.FunctionDeclaration,name:this.name,description:this.description,inputs:l,calls:o,collapsed:!1,private:!1,implements:this.toJSON(),index:0,parent:((d=this.parent)==null?void 0:d.toReference())||null,x:0,y:0}}implementAsGlobalEvent(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"implement-as-global-event")),t,i){const s=t||this.project,l=i||m.UUID.uuid(),o=m.UUID.uuid(),d={id:l,version:o,createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.GlobalEvent,name:this.name,description:this.description,inputs:[],calls:[],collapsed:!1,implements:this.toJSON(),parent:(s==null?void 0:s.toReference())||null,x:0,y:0},u=C(d,this.project);if(u.setParent(s,e),u.initChildren(e),e==null||e.add(u,b.Added),u.hydrateAncestors(),u.addSelfToProject(e),this.inputs.map((y,c)=>{var V;const E={id:m.UUID.uuid(),type:n.GenericReference,version:o,entityType:n.GlobalEvent,entityId:l},I={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.ArgumentDeclaration,name:y.name,required:y.required,implements:y.toJSON(),constant:!0,writesValues:[],defaultValue:null,description:y.description,index:c,dataType:null,parent:E},O=C(I,this.project);O.setParent(u,e),O.initChildren(e),e==null||e.add(O,b.Added),O.hydrateAncestors(),O.addSelfToProject(e);const P=((V=y.dataType)==null?void 0:V.clone(e,O))||null;P&&(e==null||e.add(P,b.Added)),O.setDataType(P)}),this.outputs.length){const y=m.UUID.uuid(),c=m.UUID.uuid(),E={id:m.UUID.uuid(),type:n.GenericReference,version:o,entityType:n.GlobalEvent,entityId:l},I={id:m.UUID.uuid(),type:n.GenericReference,version:o,entityType:n.GlobalEvent,entityId:l},O={id:y,version:c,createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.ReturnStatement,outputs:[],throws:null,calledBySuccess:[],calledByError:[],calledByEntry:[I],parent:E,x:0,y:0},P=C(O,this.project);P.setParent(u,e),P.initChildren(e),e==null||e.add(P,b.Added),P.hydrateAncestors(),P.addSelfToProject(e),this.outputs.map((V,M)=>{var W;const g={id:m.UUID.uuid(),type:n.GenericReference,entityId:y,version:c,entityType:n.ReturnStatement},B={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:V.name,description:V.description,readsValue:null,constant:!0,required:V.required,defaultValue:null,implements:V.toJSON(),isError:!1,index:M,dataType:null,parent:g},G=C(B,this.project);G.setParent(P,e),G.initChildren(e),e==null||e.add(G,b.Added),G.hydrateAncestors(),G.addSelfToProject(e);const q=((W=V.dataType)==null?void 0:W.clone(e,G))||null;q&&(e==null||e.add(q,b.Added)),G.setDataType(q)})}return e==null||e.attemptAutoclose("implement-as-function-declaration",this.id),u}implementAsFunctionDeclaration(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"implement-as-function-declaration")),t,i){const s=t||this.project,l=i||m.UUID.uuid(),o=m.UUID.uuid(),d={id:l,version:o,createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.FunctionDeclaration,name:this.name,description:this.description,inputs:[],calls:[],collapsed:!1,private:!1,implements:this.toJSON(),index:0,parent:(s==null?void 0:s.toReference())||null,x:0,y:0},u=C(d,this.project);if(u.hydrateAncestors(),u.setParent(s,e),e==null||e.add(u,b.Added),u.addSelfToProject(e),u.initChildren(e),this.inputs.map((y,c)=>{var M,g;const E={id:m.UUID.uuid(),type:n.GenericReference,version:o,entityType:n.FunctionDeclaration,entityId:l},I={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.ArgumentDeclaration,name:y.name,required:y.required,implements:y.toJSON(),constant:!0,writesValues:[],defaultValue:null,description:y.description,index:c,dataType:null,parent:E},O=C(I,this.project);O.setParent(u,e),O.initChildren(e),e==null||e.add(O,b.Added),O.hydrateAncestors(),O.addSelfToProject(e);const P=((M=y.dataType)==null?void 0:M.clone(e,O))||null;P&&(e==null||e.add(P,b.Added)),O.setDataType(P);const V=((g=y.defaultValue)==null?void 0:g.clone(e,O))||null;V&&(e==null||e.add(V,b.Added)),O.setDataType(P)}),this.outputs.length){const y=m.UUID.uuid(),c=m.UUID.uuid(),E={id:m.UUID.uuid(),type:n.GenericReference,version:o,entityType:n.FunctionDeclaration,entityId:l},I={id:m.UUID.uuid(),type:n.GenericReference,version:o,entityType:n.FunctionDeclaration,entityId:l},O={id:y,version:c,createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.ReturnStatement,outputs:[],throws:null,calledBySuccess:[],calledByError:[],calledByEntry:[I],parent:E,x:0,y:0},P=C(O,this.project);P.hydrateAncestors(),P.setParent(u,e),P.addSelfToProject(e),e==null||e.add(P,b.Added),P.initChildren(e)}return e==null||e.attemptAutoclose("implement-as-function-declaration",this.id),u}implementAsLoop(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"implement-as-loop")),t,i){const s=t||this.project,l=i||m.UUID.uuid(),o=m.UUID.uuid(),d={id:l,version:o,createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.Loop,declaration:this.toJSON(),inputs:[],outputs:[],error:null,process:null,successCalls:[],errorCalls:[],calledByEntry:[],calledByError:[],calledBySuccess:[],outputsDeclarations:[],body:null,x:0,y:0,parent:s.toReference()},u=C(d,this.project);return u.setParent(s,e),u.initChildren(e),e==null||e.add(u,b.Added),u.hydrateAncestors(),u.addSelfToProject(e),u.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("implement-as-loop",this.id),u}implementAsOperation(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"implement-as-operation")),t,i){const s=t||this.project,l=i||m.UUID.uuid(),o=m.UUID.uuid(),d={id:l,version:o,createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.Operation,declaration:this.toJSON(),inputs:[],outputs:[],error:null,process:null,successCalls:[],errorCalls:[],calledByEntry:[],calledByError:[],calledBySuccess:[],x:0,y:0,parent:s.toReference()},u=C(d,this.project);return u.setParent(s,e),u.initChildren(e),e==null||e.add(u,b.Added),u.hydrateAncestors(),u.addSelfToProject(e),u.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("implement-as-operation",this.id),u}implementAsCondition(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"implement-as-condition")),t,i){const s=t||this.project,l=i||m.UUID.uuid(),o=m.UUID.uuid(),d={id:l,version:o,createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.Condition,declaration:this.toJSON(),inputs:[],successCalls:[],errorCalls:[],calledByEntry:[],calledByError:[],calledBySuccess:[],x:0,y:0,parent:s.toReference()},u=C(d,this.project);return u.setParent(s,e),u.initChildren(e),e==null||e.add(u,b.Added),u.hydrateAncestors(),u.addSelfToProject(e),u.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("implement-as-condition",this.id),u}clearErrors(){var e;return this.errors=[],this.inputs.forEach(t=>t.clearErrors()),this.outputs.forEach(t=>t.clearErrors()),(e=this.error)==null||e.clearErrors(),this}validate(){const e=m1(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.inputs.flatMap(t=>t.getErrors()),...this.outputs.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"clone-entity")),t=null,i=null,s=!0){var P,V;if(Array.from(new Set([...Ui(),...this.project.getAllBuiltInIds()])).includes(this.id))return this;let o=mt(t,this);const d=this.toJSON(),u=i||m.UUID.uuid();d.inputs=[],d.outputs=[],d.error=null;const y=u.split("-id"),c=y[y.length-1||0]||u;d.id=u,d.version=m.UUID.uuid(),d.createdAt=(e==null?void 0:e.timestamp)||T().toISOString(),d.author=(e==null?void 0:e.author)||"1",d.previousVersion=null,d.deleted=!1;const E=nt(d,o);e==null||e.add(E,b.Added),t?E.setParent(t,null):this.parent&&E.setParent(this.parent,null),s&&E.subscribe(),E.initChildren(e);const I=(P=this.inputs)==null?void 0:P.map((M,g)=>M.clone(e,E,c+"-argument-value-descriptor-"+g+"-id",s));E.inputs=I;const O=(V=this.outputs)==null?void 0:V.map((M,g)=>M.clone(e,E,c+"-return-value-descriptor-"+g+"-id",s));return E.outputs=O,this.error&&(E.error=this.error.clone(e,E,c+"-error-action-descriptor-id",s)),e==null||e.attemptAutoclose("clone-entity",this.id),E}addInput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-input"))){return this.inputs.find(i=>i.id===e.id)||(this.inputs.push(e),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("add-input",this.id),this}removeInput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-input"))){return this.inputs.find(i=>i.id===e.id)&&(this.inputs=this.inputs.filter(i=>i.id!==e.id),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("remove-input",this.id),this}addOutput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-output"))){return this.outputs.find(i=>i.id===e.id)||(this.outputs.push(e),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("add-output",this.id),this}removeOutput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-output"))){return this.outputs.find(i=>i.id===e.id)&&(this.outputs=this.outputs.filter(i=>i.id!==e.id),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("remove-output",this.id),this}};f(we,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...i)=>null}),f(we,"type",n.ActionDescriptor),f(we,"USER_MANAGED_PARENT_TYPES",[n.DefinitionEntity,n.DataType]),f(we,"PARENT_TYPES",[...we.USER_MANAGED_PARENT_TYPES,n.PrimitiveEntity,n.BuiltInBaseEntity]),f(we,"MUTABLE_BASE_PROPERTIES",["name","description"]),f(we,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(we,"BASE_PROPERTIES",[...we.MUTABLE_BASE_PROPERTIES,...we.INMUTABLE_BASE_PROPERTIES]),f(we,"MUTABLE_META_PROPERTIES",[...we.MUTABLE_BASE_PROPERTIES]),f(we,"INMUTABLE_META_PROPERTIES",[...we.INMUTABLE_BASE_PROPERTIES]),f(we,"META_PROPERTIES",[...we.MUTABLE_META_PROPERTIES,...we.INMUTABLE_META_PROPERTIES]),f(we,"MUTABLE_UPSTREAM_PROPERTIES",[]),f(we,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),f(we,"UPSTREAM_PROPERTIES",[...we.MUTABLE_UPSTREAM_PROPERTIES,...we.INMUTABLE_UPSTREAM_PROPERTIES]),f(we,"MUTABLE_DOWNSTREAM_PROPERTIES",["inputs","outputs"]),f(we,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(we,"DOWNSTREAM_PROPERTIES",[...we.MUTABLE_DOWNSTREAM_PROPERTIES,...we.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(we,"PROPERTIES",[...we.META_PROPERTIES,...we.UPSTREAM_PROPERTIES,...we.DOWNSTREAM_PROPERTIES]);let Se=we;var T1=(r=>(r.Parent="parent",r))(T1||{});const oe=class oe extends lt{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"x");f(this,"y");f(this,"type",n.Loop);f(this,"declaration");f(this,"inputs",[]);f(this,"outputs",[]);f(this,"process",null);f(this,"successCalls",[]);f(this,"errorCalls",[]);f(this,"error",null);f(this,"outputsDeclarations",[]);f(this,"body");f(this,"calledBySuccess",[]);f(this,"calledByError",[]);f(this,"calledByEntry",[]);f(this,"parent");f(this,"detachedChildren",[]);f(this,"currentIterationNumberArgumentDeclaration");f(this,"currentValueArgumentDeclaration",null);f(this,"errors",[]);f(this,"project");f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);this.initialData=e,this.project=t,this.id=e.id,this.x=e.x,this.y=e.y}static new(e=null){return{id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:(e==null?void 0:e.author)||m.sessionAuthor,previousVersion:null,deleted:!1,type:n.Loop,declaration:null,inputs:[],outputs:[],outputsDeclarations:[],process:null,error:null,body:null,parent:null,calledByEntry:[],calledBySuccess:[],calledByError:[],errorCalls:[],successCalls:[],x:0,y:0}}static fromGenerationTarget(e,t){let i=t;if(e.parent){const E=_(e.parent);i=t.get(E)}const s=_(e.declaration),l=t.get(s),o=e.calledByEntry.map(E=>{const I=_(E);return t.get(I)}),d=e.calledBySuccess.map(E=>{const I=_(E);return t.get(I)}),u=e.calledByError.map(E=>{const I=_(E);return t.get(I)}),y={id:e.id,version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.Loop,declaration:l,calledByEntry:o,calledBySuccess:d,calledByError:u,process:null,errorCalls:[],successCalls:[],inputs:[],outputs:[],body:null,outputsDeclarations:[],error:null,x:0,y:0,parent:i},c=C(y,t);return c.setParent(i,null),c.initChildren(null),c}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const s=[],l=bt(i,{parent:{list:!1,types:[...ut,n.Project],optional:!0},declaration:{list:!1,types:[n.ActionDescriptor]}},t);return i=l.modifiedData,s.push(...l.errors,...pt(i)),e.declaration?t.get(e.declaration)?t.conditionDeclarations.find(u=>u.id===e.declaration)||s.push(new w({id:`${e.id}--${R.InvalidImplementsReference}`,code:R.InvalidImplementsReference,severity:D.Error,message:`Entity of type '${e.type}' with id '${e.id}' has an 'declaration' property that isn't pointing to an action descriptor reserved for '${n.Condition}' entities.
|
|
94
|
+
This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`,issue:null})),{errors:t,modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-dependents"))){const t=[],i=[],s=[],l=[];return Object.values(this.detachedDependents).forEach(o=>{const d=o.entity.afterAllChildrenInitialized(e);t.push(...d.updated),i.push(...d.added),s.push(...d.removed),l.push(...d.affected)}),e==null||e.attemptAutoclose("sync-dependents",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}onDetachedDependencyRemoved(e,t,i){const s=[],l=[],o=[],d=[];return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}onDetachedDependencyRestored(e,t,i){const s=[],l=[],o=[],d=[];return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}subscribeToDependencies(){return this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=m.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new we(this,this.project);return e.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,e):new Map([[this.version,e]]),e.inputs=this.inputs,e.outputs=this.outputs,e.error=this.error,e.parent=this.parent,this}recursiveCaptureUpstreamVersions(e){const t=[],i=[],s=[],l=[];if(this.parent&&this.parent.type!==n.BuiltInBaseEntity&&this.parent.type!==n.PrimitiveEntity){this.parent.increaseVersion(e);const o=this.parent.recursiveCaptureUpstreamVersions(e);t.push(this.parent,...o.updated),i.push(...o.added),s.push(...o.removed)}return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}async restoreVersion(e){var d;const t=[],i=[],s=[],l=[];if(this.version===e)return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this};if(!this.knownVersions){const u=new Map;for(const[y,c]of this.knownVersions||new Map){if(u.set(y,c),c.activeVersion=!1,c.knownVersions)for(const[E,I]of c.knownVersions)u.set(E,I);c.knownVersions=null}}let o=(d=this.knownVersions)==null?void 0:d.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new we(u,this.project)}return this.metaSync(o.toShallowJSON(),null),this.inputs=o.inputs,this.outputs=o.outputs,this.error=o.error,this.parent=o.parent,{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}hydrateAncestors(){const e=[],t=[],i=[],s=[];if(this.initialData.parent){const l=_(this.initialData.parent),o=this.project.get(l);if(o)this.setParent(o,null),e.push(o);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${l}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}afterAllChildrenInitialized(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"after-all-children-initialized"))){const t=[],i=[],s=[],l=[];return this.initialized=!0,this.captureVersion(),e==null||e.attemptAutoclose("after-all-children-initialized",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}addSelfToProject(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-self-to-project"))){const t=[this],i=[],s=[],l=[];return this.parent?(this.parent.type===n.DefinitionEntity?(this.parent.addAbstractMethod(this),t.push(this.parent)):this.parent.type===n.DataType&&(this.parent.setEntity(this),t.push(this.parent)),this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}):(this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this})}setParent(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-parent"))){var i;return((i=this.parent)==null?void 0:i.id)!==(e==null?void 0:e.id)&&(this.parent=e,t&&(t==null||t.add(this,b.Updated),t==null||t.attemptAutoclose("set-parent",this.id))),this}initChildren(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.inputs=this.initialData.inputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.outputs=this.initialData.outputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.initialData.error&&(this.error=C(this.initialData.error,this.project),this.error.setParent(this,null),this.error.initChildren(e)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this)}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"meta-sync"))){const i=ct(this,e),s=this.toMeta();return this.name=e.name!==void 0?e.name:s.name,this.description=e.description!==void 0?e.description:s.description,super.metaSync(e),e.deleted===!0&&!s.deleted?t==null||t.add(this,b.Removed):e.deleted===!1&&s.deleted?t==null||t.add(this,b.Added):i&&(t==null||t.add(this,b.Updated)),t==null||t.attemptAutoclose("meta-sync",this.id),this}async APILoad(e=U,...t){return await we.repository.APILoad(this.id,...t),this}async APICreate(e=U,...t){return await we.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=U,...t){return await we.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=U,...t){return await we.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=U,...t){return await we.repository.APIClone(this.id,...t),this}async APILoadVersion(e=U,t,...i){return await we.repository.APILoadVersion(this.id,t,...i)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-entity"))){const i=[],s=[],l=[],o=[];if(t!=null&&t.hasRemoved(this.id))return t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(s.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},t),Object.values(this.detachedDependents).forEach(d=>{const{updated:u,removed:y,added:c}=d.entity.onDetachedDependencyRemoved(this,d.field,t);i.push(...u),s.push(...y),l.push(...c)}),this.inputs.forEach(d=>{const u=d.remove({ignoreUpstream:!0},t);i.push(...u.updated),s.push(...u.removed)}),this.outputs.forEach(d=>{const u=d.remove({ignoreUpstream:!0},t);i.push(...u.updated),s.push(...u.removed)}),this.error){const d=this.error.remove({ignoreUpstream:!0},t);i.push(...d.updated),s.push(...d.removed)}return t==null||t.attemptAutoclose("remove-entity",this.id),{added:p(l),updated:p(i),removed:p(s),affected:p(o),self:this}}restore({}={},e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"restore-entity"))){const t=[],i=[],s=[],l=[];if(e!=null&&e.hasAdded(this.id))return e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},e),Object.values(this.detachedDependents).forEach(o=>{const{updated:d,removed:u,added:y}=o.entity.onDetachedDependencyRestored(this,o.field,e);i.push(...d),s.push(...u),t.push(...y)}),this.inputs.forEach(o=>{const d=o.restore({},e);i.push(...d.updated)}),this.outputs.forEach(o=>{const d=o.restore({},e);i.push(...d.updated)}),this.error){const o=this.error.restore({},e);i.push(...o.updated)}return e==null||e.attemptAutoclose("restore-entity",this.id),{added:p(t),updated:p(i),removed:p(s),affected:p(l),self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.inputs.flatMap(i=>i.toFlat(e)),...this.outputs.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.inputs.flatMap(i=>i.toFlatIds(e)),...this.outputs.flatMap(i=>i.toFlatIds(e))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,type:this.type,name:this.name}}toJSON(e=new Set){var t,i;return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,error:((t=this.error)==null?void 0:t.toJSON())||null,inputs:this.inputs.map(s=>s.toJSON()),outputs:this.outputs.map(s=>s.toJSON()),parent:((i=this.parent)==null?void 0:i.toReference())||null})}toJSONClone(e=J){var i,s,l,o,d,u,y;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||ht(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(s=e.seenEntities)!=null&&s.has(t)||(l=e.seenEntities)!=null&&l.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(d=e.seenEntities)==null||d.add(this.id),{id:t,version:m.UUID.uuid(),createdAt:e.timestamp||T().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,error:((u=this.error)==null?void 0:u.toJSONClone({...e,newId:null}))||null,inputs:this.inputs.map(c=>c.toJSONClone({...e,newId:null})),outputs:this.outputs.map(c=>c.toJSONClone({...e,newId:null})),parent:((y=this.parent)==null?void 0:y.toReference({seenEntityMaps:e.seenEntityMaps}))||null})}toReference(e=J){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=J){var i,s,l;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,error:((s=this.error)==null?void 0:s.toReference(e))||null,inputs:this.inputs.map(o=>o.toReference(e)),outputs:this.outputs.map(o=>o.toReference(e)),parent:((l=this.parent)==null?void 0:l.toReference(e))||null}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.inputs.flatMap(i=>i.toFlatJSON(e)),...this.outputs.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){var e;return{id:this.id,name:this.name,description:this.description,type:this.type,parent:((e=this.parent)==null?void 0:e.id)||void 0}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.inputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.outputs.flatMap(i=>i.toFlatGenerationTarget(e))])}asFunctionDeclarationTransfer(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"implement-as-function-declaration"))){var d;const i=e||m.UUID.uuid(),s=m.UUID.uuid(),l=this.inputs.map((u,y)=>{var E;const c={id:m.UUID.uuid(),type:n.GenericReference,version:s,entityType:n.FunctionDeclaration,entityId:i};return{id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.ArgumentDeclaration,name:u.name,required:u.required,implements:u.toJSON(),constant:!0,writesValues:[],defaultValue:null,description:u.description,index:y,dataType:((E=u.dataType)==null?void 0:E.toJSONClone({timestamp:(t==null?void 0:t.timestamp)||T().toISOString()}))||null,parent:c}}),o=[];if(this.outputs.length){const u=this.outputs.map((I,O)=>{var V;const P={id:m.UUID.uuid(),type:n.GenericReference,entityId:i,version:s,entityType:n.ReturnStatement};return{id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:I.name,description:I.description,readsValue:null,constant:!0,required:I.required,defaultValue:null,implements:I.toJSON(),isError:!1,index:O,dataType:((V=I.dataType)==null?void 0:V.toJSONClone())||null,parent:P}}),y={id:m.UUID.uuid(),type:n.GenericReference,version:s,entityType:n.FunctionDeclaration,entityId:i},c={id:m.UUID.uuid(),type:n.GenericReference,version:s,entityType:n.FunctionDeclaration,entityId:i},E={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.ReturnStatement,outputs:u,throws:null,calledBySuccess:[],calledByError:[],calledByEntry:[c],parent:y,x:0,y:0};o.push(E)}return t==null||t.attemptAutoclose("implement-as-function-declaration",this.id),{id:i,version:s,createdAt:(t==null?void 0:t.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.FunctionDeclaration,name:this.name,description:this.description,inputs:l,calls:o,collapsed:!1,private:!1,implements:this.toJSON(),index:0,parent:((d=this.parent)==null?void 0:d.toReference())||null,x:0,y:0}}implementAsGlobalEvent(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"implement-as-global-event")),t,i){const s=t||this.project,l=i||m.UUID.uuid(),o=m.UUID.uuid(),d={id:l,version:o,createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.GlobalEvent,name:this.name,description:this.description,inputs:[],calls:[],collapsed:!1,implements:this.toJSON(),parent:(s==null?void 0:s.toReference())||null,x:0,y:0},u=C(d,this.project);if(u.setParent(s,e),u.initChildren(e),e==null||e.add(u,b.Added),u.hydrateAncestors(),u.addSelfToProject(e),this.inputs.map((y,c)=>{var V;const E={id:m.UUID.uuid(),type:n.GenericReference,version:o,entityType:n.GlobalEvent,entityId:l},I={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.ArgumentDeclaration,name:y.name,required:y.required,implements:y.toJSON(),constant:!0,writesValues:[],defaultValue:null,description:y.description,index:c,dataType:null,parent:E},O=C(I,this.project);O.setParent(u,e),O.initChildren(e),e==null||e.add(O,b.Added),O.hydrateAncestors(),O.addSelfToProject(e);const P=((V=y.dataType)==null?void 0:V.clone(e,O))||null;P&&(e==null||e.add(P,b.Added)),O.setDataType(P)}),this.outputs.length){const y=m.UUID.uuid(),c=m.UUID.uuid(),E={id:m.UUID.uuid(),type:n.GenericReference,version:o,entityType:n.GlobalEvent,entityId:l},I={id:m.UUID.uuid(),type:n.GenericReference,version:o,entityType:n.GlobalEvent,entityId:l},O={id:y,version:c,createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.ReturnStatement,outputs:[],throws:null,calledBySuccess:[],calledByError:[],calledByEntry:[I],parent:E,x:0,y:0},P=C(O,this.project);P.setParent(u,e),P.initChildren(e),e==null||e.add(P,b.Added),P.hydrateAncestors(),P.addSelfToProject(e),this.outputs.map((V,M)=>{var W;const g={id:m.UUID.uuid(),type:n.GenericReference,entityId:y,version:c,entityType:n.ReturnStatement},B={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.ReturnDeclaration,name:V.name,description:V.description,readsValue:null,constant:!0,required:V.required,defaultValue:null,implements:V.toJSON(),isError:!1,index:M,dataType:null,parent:g},G=C(B,this.project);G.setParent(P,e),G.initChildren(e),e==null||e.add(G,b.Added),G.hydrateAncestors(),G.addSelfToProject(e);const q=((W=V.dataType)==null?void 0:W.clone(e,G))||null;q&&(e==null||e.add(q,b.Added)),G.setDataType(q)})}return e==null||e.attemptAutoclose("implement-as-function-declaration",this.id),u}implementAsFunctionDeclaration(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"implement-as-function-declaration")),t,i){const s=t||this.project,l=i||m.UUID.uuid(),o=m.UUID.uuid(),d={id:l,version:o,createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.FunctionDeclaration,name:this.name,description:this.description,inputs:[],calls:[],collapsed:!1,private:!1,implements:this.toJSON(),index:0,parent:(s==null?void 0:s.toReference())||null,x:0,y:0},u=C(d,this.project);if(u.hydrateAncestors(),u.setParent(s,e),e==null||e.add(u,b.Added),u.addSelfToProject(e),u.initChildren(e),this.inputs.map((y,c)=>{var M,g;const E={id:m.UUID.uuid(),type:n.GenericReference,version:o,entityType:n.FunctionDeclaration,entityId:l},I={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.ArgumentDeclaration,name:y.name,required:y.required,implements:y.toJSON(),constant:!0,writesValues:[],defaultValue:null,description:y.description,index:c,dataType:null,parent:E},O=C(I,this.project);O.setParent(u,e),O.initChildren(e),e==null||e.add(O,b.Added),O.hydrateAncestors(),O.addSelfToProject(e);const P=((M=y.dataType)==null?void 0:M.clone(e,O))||null;P&&(e==null||e.add(P,b.Added)),O.setDataType(P);const V=((g=y.defaultValue)==null?void 0:g.clone(e,O))||null;V&&(e==null||e.add(V,b.Added)),O.setDataType(P)}),this.outputs.length){const y=m.UUID.uuid(),c=m.UUID.uuid(),E={id:m.UUID.uuid(),type:n.GenericReference,version:o,entityType:n.FunctionDeclaration,entityId:l},I={id:m.UUID.uuid(),type:n.GenericReference,version:o,entityType:n.FunctionDeclaration,entityId:l},O={id:y,version:c,createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.ReturnStatement,outputs:[],throws:null,calledBySuccess:[],calledByError:[],calledByEntry:[I],parent:E,x:0,y:0},P=C(O,this.project);P.hydrateAncestors(),P.setParent(u,e),P.addSelfToProject(e),e==null||e.add(P,b.Added),P.initChildren(e)}return e==null||e.attemptAutoclose("implement-as-function-declaration",this.id),u}implementAsLoop(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"implement-as-loop")),t,i){const s=t||this.project,l=i||m.UUID.uuid(),o=m.UUID.uuid(),d={id:l,version:o,createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.Loop,declaration:this.toJSON(),inputs:[],outputs:[],error:null,process:null,successCalls:[],errorCalls:[],calledByEntry:[],calledByError:[],calledBySuccess:[],outputsDeclarations:[],body:null,x:0,y:0,parent:s.toReference()},u=C(d,this.project);return u.hydrateAncestors(),u.setParent(s,e),e==null||e.add(u,b.Added),u.addSelfToProject(e),u.initChildren(e),s===this.project&&this.project.addLoop(u),e==null||e.attemptAutoclose("implement-as-loop",this.id),u}implementAsOperation(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"implement-as-operation")),t,i){const s=t||this.project,l=i||m.UUID.uuid(),o=m.UUID.uuid(),d={id:l,version:o,createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.Operation,declaration:this.toJSON(),inputs:[],outputs:[],error:null,process:null,successCalls:[],errorCalls:[],calledByEntry:[],calledByError:[],calledBySuccess:[],x:0,y:0,parent:s.toReference()},u=C(d,this.project);return u.hydrateAncestors(),u.setParent(s,e),e==null||e.add(u,b.Added),u.addSelfToProject(e),u.initChildren(e),s===this.project&&this.project.addOperation(u),e==null||e.attemptAutoclose("implement-as-operation",this.id),u}implementAsCondition(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"implement-as-condition")),t,i){const s=t||this.project,l=i||m.UUID.uuid(),o=m.UUID.uuid(),d={id:l,version:o,createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.Condition,declaration:this.toJSON(),inputs:[],successCalls:[],errorCalls:[],calledByEntry:[],calledByError:[],calledBySuccess:[],x:0,y:0,parent:s.toReference()},u=C(d,this.project);return u.hydrateAncestors(),u.setParent(s,e),e==null||e.add(u,b.Added),u.addSelfToProject(e),u.initChildren(e),s===this.project&&this.project.addCondition(u),e==null||e.attemptAutoclose("implement-as-condition",this.id),u}clearErrors(){var e;return this.errors=[],this.inputs.forEach(t=>t.clearErrors()),this.outputs.forEach(t=>t.clearErrors()),(e=this.error)==null||e.clearErrors(),this}validate(){const e=m1(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.inputs.flatMap(t=>t.getErrors()),...this.outputs.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"clone-entity")),t=null,i=null,s=!0){var P,V;if(Array.from(new Set([...Ui(),...this.project.getAllBuiltInIds()])).includes(this.id))return this;let o=mt(t,this);const d=this.toJSON(),u=i||m.UUID.uuid();d.inputs=[],d.outputs=[],d.error=null;const y=u.split("-id"),c=y[y.length-1||0]||u;d.id=u,d.version=m.UUID.uuid(),d.createdAt=(e==null?void 0:e.timestamp)||T().toISOString(),d.author=(e==null?void 0:e.author)||"1",d.previousVersion=null,d.deleted=!1;const E=nt(d,o);e==null||e.add(E,b.Added),t?E.setParent(t,null):this.parent&&E.setParent(this.parent,null),s&&E.subscribe(),E.initChildren(e);const I=(P=this.inputs)==null?void 0:P.map((M,g)=>M.clone(e,E,c+"-argument-value-descriptor-"+g+"-id",s));E.inputs=I;const O=(V=this.outputs)==null?void 0:V.map((M,g)=>M.clone(e,E,c+"-return-value-descriptor-"+g+"-id",s));return E.outputs=O,this.error&&(E.error=this.error.clone(e,E,c+"-error-action-descriptor-id",s)),e==null||e.attemptAutoclose("clone-entity",this.id),E}addInput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-input"))){return this.inputs.find(i=>i.id===e.id)||(this.inputs.push(e),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("add-input",this.id),this}removeInput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-input"))){return this.inputs.find(i=>i.id===e.id)&&(this.inputs=this.inputs.filter(i=>i.id!==e.id),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("remove-input",this.id),this}addOutput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-output"))){return this.outputs.find(i=>i.id===e.id)||(this.outputs.push(e),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("add-output",this.id),this}removeOutput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-output"))){return this.outputs.find(i=>i.id===e.id)&&(this.outputs=this.outputs.filter(i=>i.id!==e.id),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("remove-output",this.id),this}};f(we,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...i)=>null}),f(we,"type",n.ActionDescriptor),f(we,"USER_MANAGED_PARENT_TYPES",[n.DefinitionEntity,n.DataType]),f(we,"PARENT_TYPES",[...we.USER_MANAGED_PARENT_TYPES,n.PrimitiveEntity,n.BuiltInBaseEntity]),f(we,"MUTABLE_BASE_PROPERTIES",["name","description"]),f(we,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(we,"BASE_PROPERTIES",[...we.MUTABLE_BASE_PROPERTIES,...we.INMUTABLE_BASE_PROPERTIES]),f(we,"MUTABLE_META_PROPERTIES",[...we.MUTABLE_BASE_PROPERTIES]),f(we,"INMUTABLE_META_PROPERTIES",[...we.INMUTABLE_BASE_PROPERTIES]),f(we,"META_PROPERTIES",[...we.MUTABLE_META_PROPERTIES,...we.INMUTABLE_META_PROPERTIES]),f(we,"MUTABLE_UPSTREAM_PROPERTIES",[]),f(we,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),f(we,"UPSTREAM_PROPERTIES",[...we.MUTABLE_UPSTREAM_PROPERTIES,...we.INMUTABLE_UPSTREAM_PROPERTIES]),f(we,"MUTABLE_DOWNSTREAM_PROPERTIES",["inputs","outputs"]),f(we,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(we,"DOWNSTREAM_PROPERTIES",[...we.MUTABLE_DOWNSTREAM_PROPERTIES,...we.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(we,"PROPERTIES",[...we.META_PROPERTIES,...we.UPSTREAM_PROPERTIES,...we.DOWNSTREAM_PROPERTIES]);let Se=we;var T1=(r=>(r.Parent="parent",r))(T1||{});const oe=class oe extends lt{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"x");f(this,"y");f(this,"type",n.Loop);f(this,"declaration");f(this,"inputs",[]);f(this,"outputs",[]);f(this,"process",null);f(this,"successCalls",[]);f(this,"errorCalls",[]);f(this,"error",null);f(this,"outputsDeclarations",[]);f(this,"body");f(this,"calledBySuccess",[]);f(this,"calledByError",[]);f(this,"calledByEntry",[]);f(this,"parent");f(this,"detachedChildren",[]);f(this,"currentIterationNumberArgumentDeclaration");f(this,"currentValueArgumentDeclaration",null);f(this,"errors",[]);f(this,"project");f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);this.initialData=e,this.project=t,this.id=e.id,this.x=e.x,this.y=e.y}static new(e=null){return{id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:(e==null?void 0:e.author)||m.sessionAuthor,previousVersion:null,deleted:!1,type:n.Loop,declaration:null,inputs:[],outputs:[],outputsDeclarations:[],process:null,error:null,body:null,parent:null,calledByEntry:[],calledBySuccess:[],calledByError:[],errorCalls:[],successCalls:[],x:0,y:0}}static fromGenerationTarget(e,t){let i=t;if(e.parent){const E=_(e.parent);i=t.get(E)}const s=_(e.declaration),l=t.get(s),o=e.calledByEntry.map(E=>{const I=_(E);return t.get(I)}),d=e.calledBySuccess.map(E=>{const I=_(E);return t.get(I)}),u=e.calledByError.map(E=>{const I=_(E);return t.get(I)}),y={id:e.id,version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.Loop,declaration:l,calledByEntry:o,calledBySuccess:d,calledByError:u,process:null,errorCalls:[],successCalls:[],inputs:[],outputs:[],body:null,outputsDeclarations:[],error:null,x:0,y:0,parent:i},c=C(y,t);return c.setParent(i,null),c.initChildren(null),c}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const s=[],l=bt(i,{parent:{list:!1,types:[...ut,n.Project],optional:!0},declaration:{list:!1,types:[n.ActionDescriptor]}},t);return i=l.modifiedData,s.push(...l.errors,...pt(i)),e.declaration?t.get(e.declaration)?t.conditionDeclarations.find(u=>u.id===e.declaration)||s.push(new w({id:`${e.id}--${R.InvalidImplementsReference}`,code:R.InvalidImplementsReference,severity:D.Error,message:`Entity of type '${e.type}' with id '${e.id}' has an 'declaration' property that isn't pointing to an action descriptor reserved for '${n.Condition}' entities.
|
|
95
95
|
${Sl(t)}`,issue:null})):s.push(new w({id:`${e.id}--${R.ReferencedEntityNotFound}`,code:R.ReferencedEntityNotFound,severity:D.Error,message:`Entity of type '${e.type}' with id '${e.id}' has an 'declaration' property that isn't found in the project. The 'declaration' property must point to one of the built-in action descriptors reserved for '${n.Condition}' entities.
|
|
96
96
|
${Sl(t)}`,issue:null})):s.push(new w({id:`${e.id}--${$.InvalidObjectStructure}`,code:$.InvalidObjectStructure,severity:D.Error,message:`Entity of type '${e.type}' with id '${e.id}' is missing the 'declaration' property. This property is required for a '${e.type}' entity and must point to one of the built-in action descriptors reserved for '${n.Condition}' entities.
|
|
97
97
|
${Sl(t)}`,issue:null})),{errors:s,modifiedData:i}}static fromReturnDeclarationToBodyArgumentDeclarationName(e){return`Previous iteration results of '${x(e,e.project)}'`}static fromBodyArgumentDeclarationToReturnDeclarationName(e){const t=e.name.replace("Previous iteration results of '","");return t.slice(0,t.length-1)}static fromReturnDeclarationToLoopOutputDeclarationName(e){return`Result list of '${x(e,e.project)}'`}static fromLoopOutputDeclarationToReturnDeclarationName(e){const t=e.name.replace("Result list of '","");return t.slice(0,t.length-1)}static fromLoopOutputDeclarationToBodyArgumentDeclarationName(e){return e.name.replace("Result list of '","Previous iteration results of '")}static fromBodyArgumentDeclarationToLoopOutputDeclarationName(e){return e.name.replace("Previous iteration results of '","Result list of '")}get continueStatements(){const e=[];return Object.values(this.detachedDependents).forEach(t=>{t.field===Vc.Parent&&t.entity.type===n.ContinueStatement&&!e.includes(t.entity)&&e.push(t.entity)}),e}get breakStatements(){const e=[];return Object.values(this.detachedDependents).forEach(t=>{t.field===_c.Parent&&t.entity.type===n.BreakStatement&&!e.includes(t.entity)&&e.push(t.entity)}),e}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new w({id:`${this.id}--${R.InvalidParentUpdate}`,code:R.InvalidParentUpdate,severity:D.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
|
|
@@ -402,7 +402,7 @@ All global 'function-declaration' entity ids are:
|
|
|
402
402
|
The project currently has no global 'function-declaration' entities that can be called as 'function-call' entities.`;s.push(new w({id:`${i.id}--${R.InvalidReference}`,code:R.InvalidReference,severity:D.Error,message:`Entity of type "${n.FunctionCall}" with id "${i.id}", has an invalid reference at the 'declaration' property. The 'declaration' property must be a valid reference to an 'function-declaration' entity.
|
|
403
403
|
References can either be an ID string or an object with exacly four properties: 'id', 'entityId', 'entityType', 'type'.${d}`,issue:null}))}return{errors:s,modifiedData:i}}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new w({id:`${this.id}--${R.InvalidParentUpdate}`,code:R.InvalidParentUpdate,severity:D.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
|
|
404
404
|
If an entity is called by another, they must be in the same scope, which means they have the same parent.
|
|
405
|
-
You shouldn't have to manually update a 'parent' property. The equivalent result is to change its callers, the value writters of its inputs, or the value readers of its outputs.`,issue:null})),{errors:t,modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-dependents"))){const t=[],i=[],s=[],l=[];return Object.values(this.detachedDependents).forEach(o=>{const d=o.entity.afterAllChildrenInitialized(e);t.push(...d.updated),i.push(...d.added),s.push(...d.removed),l.push(...d.affected)}),e==null||e.attemptAutoclose("sync-dependents",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}onDetachedDependencyRemoved(e,t,i){const s=[],l=[],o=[],d=[];if(t==="declaration"){const{updated:u,added:y,removed:c}=this.remove({ignoreUpstream:!1},i);s.push(...u),l.push(...y),o.push(...c)}if(t==="parent"){const{updated:u,added:y,removed:c}=this.remove({ignoreUpstream:!1},i);s.push(...u),l.push(...y),o.push(...c)}return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}onDetachedDependencyRestored(e,t,i){const s=[],l=[],o=[],d=[];if(t==="declaration"){const{updated:u,added:y,removed:c}=this.restore({},i);s.push(...u),l.push(...y),o.push(...c)}if(t==="parent"){const{updated:u,added:y,removed:c}=this.restore({},i);s.push(...u),l.push(...y),o.push(...c)}return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}subscribeToDependencies(){var e;return(e=this.parent)==null||e.subscribeDependents([{entity:this,field:"parent"}]),this.declaration.subscribeDependents([{entity:this,field:"declaration"}]),this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=m.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new qe(this,this.project);return e.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,e):new Map([[this.version,e]]),e.inputs=this.inputs,e.outputs=this.outputs,e.error=this.error,e.successCalls=this.successCalls,e.errorCalls=this.errorCalls,e.process=this.process,e.declaration=this.declaration,e.calledBySuccess=this.calledBySuccess,e.calledByError=this.calledByError,e.calledByEntry=this.calledByEntry,e.parent=this.parent,this}recursiveCaptureUpstreamVersions(e){const t=[],i=[],s=[],l=[];if(this.parent){this.parent.increaseVersion(e);const o=this.parent.recursiveCaptureUpstreamVersions(e);t.push(this.parent,...o.updated),i.push(...o.added),s.push(...o.removed)}return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}async restoreVersion(e){var d;const t=[],i=[],s=[],l=[];if(this.version===e)return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this};if(!this.knownVersions){const u=new Map;for(const[y,c]of this.knownVersions||new Map){if(u.set(y,c),c.activeVersion=!1,c.knownVersions)for(const[E,I]of c.knownVersions)u.set(E,I);c.knownVersions=null}}let o=(d=this.knownVersions)==null?void 0:d.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new qe(u,this.project)}return this.metaSync(o.toShallowJSON(),null),this.inputs=o.inputs,this.outputs=o.outputs,this.error=o.error,this.successCalls=o.successCalls,this.errorCalls=o.errorCalls,this.process=o.process,this.declaration=o.declaration,this.calledBySuccess=o.calledBySuccess,this.calledByError=o.calledByError,this.calledByEntry=o.calledByEntry,this.parent=o.parent,{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}hydrateAncestors(){const e=[],t=[],i=[],s=[];if(this.initialData.parent){const l=_(this.initialData.parent),o=this.project.get(l);if(o)this.setParent(o,null),e.push(o);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${l}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);if(this.initialData.declaration){const l=_(this.initialData.declaration),o=this.project.get(l);o&&(this.setDeclaration(o),e.push(o))}return this.initialData.calledByEntry.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addEntryCaller(d,null),d.addCall(this,null),e.push(d))}),this.initialData.calledBySuccess.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addSuccessCaller(d,null),d.addSuccessCall(this,null),e.push(d))}),this.initialData.calledByError.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addErrorCaller(d,null),d.addErrorCall(this,null),e.push(d))}),{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}afterAllChildrenInitialized(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"after-all-children-initialized"))){const t=[],i=[],s=[],l=[];this.initialized=!0;const{updated:o,added:d,removed:u}=this.syncMissingFixedInputs(e),{updated:y,added:c,removed:E}=this.syncMissingFixedOutputs(e);return t.push(...o,...y),i.push(...d,...c),s.push(...u,...E),this.captureVersion(),e==null||e.attemptAutoclose("after-all-children-initialized",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}addSelfToProject(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-self-to-project"))){var o;const t=[this],i=[],s=[],l=[];return this.parent===this.project&&this.project.addFunctionCall(this),(o=this.process)==null||o.writesValues.forEach(d=>{d.setValueWriter(this.process,e),t.push(d)}),this.successCalls.forEach(d=>{d.addSuccessCaller(this,e),t.push(d)}),this.errorCalls.forEach(d=>{d.addErrorCaller(this,e),t.push(d)}),this.calledBySuccess.forEach(d=>{d.addSuccessCall(this,e),t.push(d)}),this.calledByError.forEach(d=>{d.addErrorCall(this,e),t.push(d)}),this.calledByEntry.forEach(d=>{d.addCall(this,e),t.push(d)}),this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-input"))){const i=this.inputs.findIndex(s=>s.id===e.id);return i>-1&&(this.inputs.splice(i,1),t&&(t==null||t.add(this,b.Affected))),t==null||t.attemptAutoclose("remove-input",this.id),this}addInput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-input"))){return this.inputs.includes(e)?(t==null||t.attemptAutoclose("add-input",this.id),this):(this.inputs.push(e),t==null||t.add(this,b.Affected),t==null||t.attemptAutoclose("add-input",this.id),this)}addOutput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-output"))){return this.outputs.includes(e)?(t==null||t.attemptAutoclose("add-output",this.id),this):(this.outputs.push(e),t==null||t.add(this,b.Affected),t==null||t.attemptAutoclose("add-output",this.id),this)}removeOutput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-output"))){const i=this.outputs.findIndex(s=>s.id===e.id);return i>-1&&(this.outputs.splice(i,1),t&&(t==null||t.add(this,b.Affected))),t==null||t.attemptAutoclose("remove-output",this.id),this}addValueReader(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-value-reader"))){var i;return this.process&&!this.process.writesValues.includes(e)&&((i=this.process)==null||i.addValueReader(e,t),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("add-value-reader",this.id),this}removeValueReader(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-value-reader"))){var i;return this.process&&this.process.writesValues.includes(e)&&((i=this.process)==null||i.removeValueReader(e,t),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("remove-value-reader",this.id),this}addSuccessCaller(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-success-caller")),i=!1){return this.calledBySuccess.find(s=>s.id===e.id)||(this.calledBySuccess.push(e),t==null||t.add(this,b.Updated),i&&K(this,t)),t==null||t.attemptAutoclose("add-success-caller",this.id),this}addErrorCaller(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-error-caller")),i=!1){return this.calledByError.find(s=>s.id===e.id)||(this.calledByError.push(e),t==null||t.add(this,b.Updated),i&&K(this,t)),t==null||t.attemptAutoclose("add-error-caller",this.id),this}addEntryCaller(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-entry-caller")),i=!1){return this.calledByEntry.find(s=>s.id===e.id)||(this.calledByEntry.push(e),t==null||t.add(this,b.Updated),i&&K(this,t)),t==null||t.attemptAutoclose("add-entry-caller",this.id),this}addErrorCall(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-error-call")),i=!1){return this.errorCalls.find(s=>s.id===e.id)||(this.errorCalls.push(e),i&&K(this,t),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("add-error-call",this.id),this}addSuccessCall(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-success-call")),i=!1){return this.successCalls.find(s=>s.id===e.id)||(this.successCalls.push(e),i&&K(this,t),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("add-success-call",this.id),this}removeCall(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-call")),i=!1){const s=this.successCalls.findIndex(o=>o.id===e.id);s>-1&&(this.successCalls.splice(s,1),t==null||t.add(this,b.Affected));const l=this.errorCalls.findIndex(o=>o.id===e.id);return l>-1&&(this.errorCalls.splice(l,1),t==null||t.add(this,b.Affected)),i&&K(this,t),t==null||t.attemptAutoclose("remove-call",this.id),this}removeCaller(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-caller")),i=!1){return this.calledBySuccess=this.calledBySuccess.filter(s=>s.id!==e.id?!0:(t==null||t.add(this,b.Updated),t==null||t.add(s,b.Affected),!1)),this.calledByError=this.calledByError.filter(s=>s.id!==e.id?!0:(t==null||t.add(this,b.Updated),t==null||t.add(s,b.Affected),!1)),this.calledByEntry=this.calledByEntry.filter(s=>s.id!==e.id?!0:(t==null||t.add(this,b.Updated),t==null||t.add(s,b.Affected),!1)),i&&K(this,t),t==null||t.attemptAutoclose("remove-caller",this.id),this}setParent(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-parent"))){var i;return((i=this.parent)==null?void 0:i.id)!==(e==null?void 0:e.id)&&(this.parent=e,t&&(t==null||t.add(this,b.Updated),t==null||t.attemptAutoclose("set-parent",this.id))),this}setDeclaration(e){return this.declaration=e,this}initChildren(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"init-children"))){if(this.initialized||this.startedInitialization)return this;if(this.startedInitialization=!0,this.initialData.declaration.type===n.FunctionDeclaration){const t=C(this.initialData.declaration,this.project);this.declaration=t}else{const t=_(this.initialData.declaration),i=this.project.get(t);this.declaration=i}return this.successCalls=this.initialData.successCalls.map(t=>{const i=C(t,this.project);if(i.addSuccessCaller(this),[n.BreakStatement,n.ContinueStatement].includes(i.type))i.setParent(this.parent.parent,null),i.initChildren(e);else if(i.type===n.ReturnStatement){const s=It(this,this.project);i.setParent(s,null),i.initChildren(e)}else i.type!==n.InternalCall&&(i.setParent(this.parent,null),i.initChildren(e));return i}),this.errorCalls=this.initialData.errorCalls.map(t=>{const i=C(t,this.project);if(i.addErrorCaller(this),[n.BreakStatement,n.ContinueStatement].includes(i.type))i.setParent(this.parent.parent,null),i.initChildren(e);else if(i.type===n.ReturnStatement){const s=It(this,this.project);i.setParent(s,null),i.initChildren(e)}else i.type!==n.InternalCall&&(i.setParent(this.parent,null),i.initChildren(e));return i}),this.inputs=this.initialData.inputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.initialData.process&&(this.process=C(this.initialData.process,this.project),this.process.setParent(this,null),this.process.initChildren(e)),this.initialData.error&&(this.error=C(this.initialData.error,this.project),this.error.setParent(this,null),this.error.initChildren(e)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"meta-sync"))){const i=ct(this,e),s=this.toMeta();return this.x=e.x||s.x,this.y=e.y||s.y,super.metaSync(e),e.deleted===!0&&!s.deleted?t==null||t.add(this,b.Removed):e.deleted===!1&&s.deleted?t==null||t.add(this,b.Added):i&&(t==null||t.add(this,b.Updated)),t==null||t.attemptAutoclose("meta-sync",this.id),this}async APILoad(e=U,...t){return await qe.repository.APILoad(this.id,...t),this}async APICreate(e=U,...t){return await qe.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=U,...t){return await qe.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=U,...t){return await qe.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=U,...t){return await qe.repository.APIClone(this.id,...t),this}async APILoadVersion(e=U,t,...i){return await qe.repository.APILoadVersion(this.id,t,...i)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-entity"))){var d;const i=[],s=[],l=[],o=[];if(t!=null&&t.hasRemoved(this.id))return t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(s.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},t),Object.values(this.detachedDependents).forEach(u=>{const{updated:y,removed:c,added:E}=u.entity.onDetachedDependencyRemoved(this,u.field,t);i.push(...y),s.push(...c),l.push(...E)}),this.process){const{updated:u,removed:y}=(d=this.process)==null?void 0:d.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}if(this.inputs.forEach(u=>{const{updated:y,removed:c}=u.remove({ignoreUpstream:!0},t);i.push(...y),s.push(...c)}),this.outputs.forEach(u=>{const{updated:y,removed:c}=u.remove({ignoreUpstream:!0},t);i.push(...y),s.push(...c)}),this.error){const{updated:u,removed:y}=this.error.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}return this.successCalls.forEach(u=>{i.push(u),u.removeCaller(this,t)}),this.errorCalls.forEach(u=>{i.push(u),u.removeCaller(this,t)}),e||this.calledBy.forEach(u=>{i.push(u),u.removeCall(this,t)}),t==null||t.attemptAutoclose("remove-entity",this.id),{added:p(l),updated:p(i),removed:p(s),affected:p(o),self:this}}restore({}={},e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"restore-entity"))){const t=[],i=[],s=[],l=[];if(e!=null&&e.hasAdded(this.id))return e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},e),Object.values(this.detachedDependents).forEach(o=>{const{updated:d,removed:u,added:y}=o.entity.onDetachedDependencyRestored(this,o.field,e);i.push(...d),s.push(...u),t.push(...y)}),this.process){const{updated:o}=this.process.restore({},e);i.push(...o)}return this.inputs.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),this.outputs.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),this.successCalls.forEach(o=>{i.push(o),o.addSuccessCaller(this,e)}),this.errorCalls.forEach(o=>{i.push(o),o.addErrorCaller(this,e)}),this.calledBySuccess.forEach(o=>{i.push(o),o.addSuccessCall(this,e)}),this.calledByError.forEach(o=>{i.push(o),o.addErrorCall(this,e)}),this.calledByEntry.forEach(o=>{i.push(o),o.addCall(this,e)}),e==null||e.attemptAutoclose("restore-entity",this.id),{added:p(t),updated:p(i),removed:p(s),affected:p(l),self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.successCalls.flatMap(i=>i.toFlat(e)),...this.errorCalls.flatMap(i=>i.toFlat(e)),...this.inputs.flatMap(i=>i.toFlat(e)),...this.outputs.flatMap(i=>i.toFlat(e)),...this.process?this.process.toFlat(e):[],...this.error?this.error.toFlat(e):[],...this.calledBy.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.successCalls.flatMap(i=>i.toFlatIds(e)),...this.errorCalls.flatMap(i=>i.toFlatIds(e)),...this.inputs.flatMap(i=>i.toFlatIds(e)),...this.outputs.flatMap(i=>i.toFlatIds(e))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,x:this.x,y:this.y,type:this.type}}toJSON(e=new Set){var t,i;return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,successCalls:this.successCalls.map(s=>s.toJSON(e)),errorCalls:this.errorCalls.map(s=>s.toJSON(e)),calledBySuccess:this.calledBySuccess.map(s=>s.toReference()),calledByError:this.calledByError.map(s=>s.toReference()),calledByEntry:this.calledByEntry.map(s=>s.toReference()),process:(t=this.process)==null?void 0:t.toJSON(e),declaration:this.declaration.toJSON(e),inputs:this.inputs.map(s=>s.toJSON(e)),outputs:this.outputs.map(s=>s.toJSON(e)),parent:this.parent.toReference(),error:(i=this.error)==null?void 0:i.toJSON(e)})}toJSONClone(e=J){var i,s,l,o,d,u,y;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||ht(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(s=e.seenEntities)!=null&&s.has(t)||(l=e.seenEntities)!=null&&l.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(d=e.seenEntities)==null||d.add(this.id),{id:t,version:m.UUID.uuid(),createdAt:e.timestamp||T().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,successCalls:this.successCalls.map(c=>c.toJSONClone({...e,newId:null})),errorCalls:this.errorCalls.map(c=>c.toJSONClone({...e,newId:null})),calledBySuccess:this.calledBySuccess.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),calledByError:this.calledByError.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),calledByEntry:this.calledByEntry.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),process:(u=this.process)==null?void 0:u.toJSONClone({...e,newId:null}),declaration:this.declaration.toJSONClone({...e,newId:null}),inputs:this.inputs.map(c=>c.toJSONClone({...e,newId:null})),outputs:this.outputs.map(c=>c.toJSONClone({...e,newId:null})),error:(y=this.error)==null?void 0:y.toJSONClone({...e,newId:null}),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=J){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=J){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,process:this.process?this.process.toReference(e):null,inputs:this.inputs.map(s=>s.toReference(e)),outputs:this.outputs.map(s=>s.toReference(e)),declaration:this.declaration.toReference(e),successCalls:this.successCalls.map(s=>s.toReference(e)),errorCalls:this.errorCalls.map(s=>s.toReference(e)),calledBySuccess:this.calledBySuccess.map(s=>s.toReference(e)),calledByError:this.calledByError.map(s=>s.toReference(e)),calledByEntry:this.calledByEntry.map(s=>s.toReference(e)),error:this.error?this.error.toReference(e):null,parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.successCalls.flatMap(i=>i.toFlatJSON(e)),...this.errorCalls.flatMap(i=>i.toFlatJSON(e)),...this.inputs.flatMap(i=>i.toFlatJSON(e)),...this.outputs.flatMap(i=>i.toFlatJSON(e)),...this.process?this.process.toFlatJSON(e):[],...this.error?this.error.toFlatJSON(e):[]])}toGenerationTarget(){const e=this.parent.type===n.Project?void 0:this.parent.id;return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,calledByEntry:this.calledByEntry.map(t=>t.id),calledBySuccess:this.calledBySuccess.map(t=>t.id),calledByError:this.calledByError.map(t=>t.id),declaration:this.declaration.id,parent:e}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.successCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.errorCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.inputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.outputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.process?this.process.toFlatGenerationTarget(e):[],...this.error?this.error.toFlatGenerationTarget(e):[]])}clearErrors(){var e,t;return this.errors=[],this.inputs.forEach(i=>i.clearErrors()),this.outputs.forEach(i=>i.clearErrors()),this.successCalls.forEach(i=>i.clearErrors()),this.errorCalls.forEach(i=>i.clearErrors()),(e=this.process)==null||e.clearErrors(),(t=this.error)==null||t.clearErrors(),this}validate(){const e=X1(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.inputs.flatMap(t=>t.getErrors()),...this.outputs.flatMap(t=>t.getErrors()),...this.error?this.error.getErrors():[],...this.process?this.process.getErrors():[]]}getShallowErrors(){return this.errors}clone(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"clone-entity")),t=null,i=null,s=!0){var O,P;let l=mt(t,this);const o=this.toJSON(),d=i||m.UUID.uuid();o.inputs=[];const u=d.split("-id"),y=u[u.length-1||0]||d;o.id=d,o.version=m.UUID.uuid(),o.createdAt=(e==null?void 0:e.timestamp)||T().toISOString(),o.author=(e==null?void 0:e.author)||"1",o.previousVersion=null,o.deleted=!1;const c=nt(o,l);t?c.setParent(t,null):c.setParent(this.parent,null),s&&c.subscribe(),c.initChildren(e),e==null||e.add(c,b.Added);const E=(O=this.inputs)==null?void 0:O.map((V,M)=>V.clone(e,c,y+"-input-map-"+M+"-id",s));c.inputs=E;const I=(P=this.outputs)==null?void 0:P.map((V,M)=>V.clone(e,c,y+"-output-map-"+M+"-id",s));return c.outputs=I,this.error&&(c.error=this.error.clone(e,c,y+"-error-map-id",s)),this.process&&(c.process=this.process.clone(e,c,y+"-process-id",s)),e==null||e.attemptAutoclose("clone-entity",this.id),c}removeUnrecognizedInputs(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-unrecognized-inputs"))){const t=[],i=[],s=[],l=[];return this.inputs.forEach(o=>{if(!this.declaration.inputs.find(u=>{var y;return u.id===((y=o.declaration)==null?void 0:y.id)})){const u=o.remove({ignoreUpstream:!1},e);s.push(...u.removed),t.push(...u.updated)}}),e==null||e.attemptAutoclose("remove-unrecognized-inputs",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}removeUnrecognizedOutputs(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-unrecognized-outputs"))){const t=[],i=[],s=[],l=[];return this.outputs.forEach(o=>{if(!this.declaration.getUniqueReturnDeclarations().find(u=>{var y;return u.id===((y=o.declaration)==null?void 0:y.id)})){const u=o.remove({ignoreUpstream:!1},e);s.push(...u.removed),t.push(...u.updated)}}),e==null||e.attemptAutoclose("remove-unrecognized-outputs",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}syncMissingFixedInputs(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-missing-fixed-inputs"))){const t=[],i=[],s=[],l=[],o=this.declaration.inputs.filter(c=>!this.inputs.find(E=>E.declaration.id===c.id));this.inputs.sort((c,E)=>c.index-E.index),o.forEach(c=>{this.inputs.forEach(O=>{O.index>=c.index&&O.metaSync({index:O.index+1},e)});const E={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.InputMap,declaration:c.toJSON(),readsValue:null,defaultValue:null,index:c.index,name:null,description:null,parent:this.toReference()},I=C(E,this.project);I.setParent(this,e),I.initChildren(e),e==null||e.add(I,b.Added),I.addSelfToProject(e),i.push(I)}),this.inputs.sort((c,E)=>c.index-E.index);const{updated:d,added:u,removed:y}=this.removeUnrecognizedInputs(e);return t.push(...d),i.push(...u),s.push(...y),e==null||e.attemptAutoclose("sync-missing-fixed-inputs",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}syncMissingFixedOutputs(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-missing-fixed-outputs"))){const t=[],i=[],s=[],l=[],o=[];this.outputs=this.initialData.outputs.map(E=>{const I=C(E,this.project);return o.push(I.index),I.setParent(this,null),I.initChildren(e),I});const d=this.declaration.getUniqueReturnDeclarations().filter(E=>!this.outputs.find(I=>I.declaration.id===E.id));this.outputs.sort((E,I)=>E.index-I.index),d.forEach((E,I)=>{this.outputs.forEach(M=>{M.index>=E.index&&M.index++});const O=o.includes(E.index)?this.outputs.length-1+I:E.index,P={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.OutputMap,declaration:E.toJSON(),defaultValue:null,writesValues:[],index:O,parent:this.toReference()},V=C(P,this.project);V.setParent(this,e),V.initChildren(e),e==null||e.add(V,b.Added),V.addSelfToProject(e)}),this.outputs.sort((E,I)=>E.index-I.index);const{updated:u,added:y,removed:c}=this.removeUnrecognizedOutputs(e);return t.push(...u),i.push(...y),s.push(...c),e==null||e.attemptAutoclose("sync-missing-fixed-outputs",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}};f(qe,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...i)=>null}),f(qe,"type",n.FunctionCall),f(qe,"USER_MANAGED_PARENT_TYPES",[...ut,n.Project]),f(qe,"PARENT_TYPES",[...qe.USER_MANAGED_PARENT_TYPES]),f(qe,"MUTABLE_BASE_PROPERTIES",[]),f(qe,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(qe,"BASE_PROPERTIES",[...qe.MUTABLE_BASE_PROPERTIES,...qe.INMUTABLE_BASE_PROPERTIES]),f(qe,"MUTABLE_META_PROPERTIES",["x","y"]),f(qe,"INMUTABLE_META_PROPERTIES",[...qe.INMUTABLE_BASE_PROPERTIES]),f(qe,"META_PROPERTIES",[...qe.MUTABLE_META_PROPERTIES,...qe.INMUTABLE_META_PROPERTIES]),f(qe,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),f(qe,"INMUTABLE_UPSTREAM_PROPERTIES",["declaration","parent"]),f(qe,"UPSTREAM_PROPERTIES",[...qe.MUTABLE_UPSTREAM_PROPERTIES,...qe.INMUTABLE_UPSTREAM_PROPERTIES]),f(qe,"MUTABLE_DOWNSTREAM_PROPERTIES",["successCalls","errorCalls","writesValues","inputs","outputs","error"]),f(qe,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(qe,"DOWNSTREAM_PROPERTIES",[...qe.MUTABLE_DOWNSTREAM_PROPERTIES,...qe.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(qe,"PROPERTIES",[...qe.META_PROPERTIES,...qe.UPSTREAM_PROPERTIES,...qe.DOWNSTREAM_PROPERTIES]);let nn=qe;function qc(r){return r&&typeof r.then=="function"}class zl{constructor(a){f(this,"order",[]);f(this,"flatRecord",{});f(this,"allBuiltInEntityIds",Ui());f(this,"onGoingVisits",{});this.flatten(a),this.orderEntities()}flatten(a){const e=new Set(Ui()),t=p(j(a,e,{ignoreBuiltInBaseEntities:!0})),i=new Set;for(const s of t)this.flatRecord[s.id]=s,i.add(s.id);this.order=Array.from(i)}moveEntityAfterDependencies(a){const{upstream:e}=Ql(a,this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds});for(const t of Object.keys(e)){const i=this.order.indexOf(t),s=this.order.indexOf(a.id);if(i>s)return this.order.splice(s,1),this.order.splice(i,0,a.id),!0}return!1}orderEntities(){let a=!1;for(let e=0;e<this.order.length;e++){const t=this.order[e],i=this.flatRecord[t];if(this.moveEntityAfterDependencies(i)){a=!0;break}}a&&this.orderEntities()}getUpstreamOngoingDependenciesVisits(a,e){const{upstream:t}=Ql(this.flatRecord[a],this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds}),i={};return Object.entries(this.onGoingVisits[e]||{}).forEach(([s,l])=>{Object.keys(t).includes(s)&&(i[s]=l)}),i}getDownstreamOngoingDependenciesVisits(a,e){const t=Object.keys(this.onGoingVisits[e]||{}),i=new Set(t.flatMap(l=>Object.keys(Ql(this.flatRecord[l],this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds}).downstream))),s={};return Array.from(i).forEach(l=>{l===a&&(s[l]=this.onGoingVisits[e][l])}),s}async settlePromises(a,e){const t=Object.values(a);t.length&&await Promise.all(t),Object.keys(a).forEach(i=>{delete this.onGoingVisits[e][i]})}visit(a){const e=this.order;for(const t of e)a(this.flatRecord[t],this.flatRecord);return this}reverseVisit(a){const e=this.order.slice().reverse();for(const t of e)a(this.flatRecord[t],this.flatRecord);return this}async visitAsync(a){const e=this.order,t=Math.random().toString(36).substring(7);this.onGoingVisits[t]={};for(const i of e){const s=this.getUpstreamOngoingDependenciesVisits(i,t);Object.keys(s).length&&await this.settlePromises(s,t);const l=a(this.flatRecord[i],this.flatRecord);qc(l)&&(this.onGoingVisits[t][i]=l)}return await this.settlePromises(this.onGoingVisits[t],t),this.onGoingVisits[t]={},this}async reverseVisitAsync(a){const e=this.order.slice().reverse(),t=Math.random().toString(36).substring(7);this.onGoingVisits[t]={};for(const i of e){const s=this.getDownstreamOngoingDependenciesVisits(i,t);Object.keys(s).length&&await this.settlePromises(s,t);const l=a(this.flatRecord[i],this.flatRecord);qc(l)&&(this.onGoingVisits[t][i]=l)}return await this.settlePromises(this.onGoingVisits[t],t),this.onGoingVisits[t]={},this}}function eP(r,a){switch(r.id){case k["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id:{const e=r.project.entities.filter(d=>!!d.implements.find(u=>u.id===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id));if(e.find(d=>!!d.properties.find(u=>{var y;return u.implements&&u.implements.id===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id&&((y=u.getDefaultValue())==null?void 0:y.value)===!0}))){const u=e[0].properties.find(c=>c.implements&&c.implements.id===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id),y=u==null?void 0:u.defaultValue;if(y)y.value=!0;else if(u!=null&&u.dataType){const c={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.LiteralValue,name:L.EntityTemplate,autogeneration:null,value:!0,valueAsTypeSingle:null,valueAsTypeList:null,parent:u==null?void 0:u.dataType.toReference()},E=C(c,r.project);return E.setParent(u==null?void 0:u.dataType,a),E.initChildren(a),a==null||a.add(E,b.Added),E.addSelfToProject(a),{newEntities:[E]}}return{newEntities:[]}}const i=r.project.get(k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id),s=Yl(i,"Main database",a);if(s.errors.length>0)return{newEntities:[]};const l=s.properties.find(d=>d.implements&&d.implements.id===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id),o=l==null?void 0:l.defaultValue;if(o)o.value=!0;else if(l!=null&&l.dataType){const d={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.LiteralValue,name:L.EntityTemplate,autogeneration:null,value:!0,valueAsTypeSingle:null,valueAsTypeList:null,parent:l==null?void 0:l.dataType.toReference()},u=C(d,r.project);u.setParent(l==null?void 0:l.dataType,a),u.initChildren(a),a==null||a.add(u,b.Added),u.addSelfToProject(a)}return{newEntities:[s]}}}return{newEntities:[]}}function tP(r,a){const e=[],t=[],i=[],s=[];return r.implements.filter(o=>o.type===n.BuiltInBaseEntity).forEach(o=>{var d;switch(o.id){case k["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id:{let y=r.project.entities.filter(I=>I.implements.find(O=>O.id===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id)).find(I=>!!I.properties.find(O=>{var P;return O.implements&&O.implements.id===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id&&((P=O.getDefaultValue())==null?void 0:P.value)===!0}));if(!y){y=r.project.getBuiltIn(k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id).implement("Relational database",a);const O=y.properties.find(P=>{var V;return((V=P.implements)==null?void 0:V.id)===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id});(d=O==null?void 0:O.defaultValue)==null||d.metaSync({value:!0},a),t.push(y)}const c=r.properties.find(I=>I.implements&&I.implements.id===k["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.properties.database.id),E=c==null?void 0:c.defaultValue;if(c&&!E){const I={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.LiteralValue,name:L.EntityTemplate,autogeneration:null,value:null,valueAsTypeSingle:y,valueAsTypeList:null,parent:c==null?void 0:c.toReference()},O=C(I,r.project);O.hydrateAncestors(),O.setParent(c,a),O.addSelfToProject(a),O.initChildren(a),a==null||a.add(O,b.Added),t.push(O);return}else E&&E.setValueAsTypeSingle(y,a);return}}}),{self:r,updated:p(e),added:p(t),removed:p(i),affected:p(s)}}function Yl(r,a,e,t){const i=t||m.UUID.uuid(),s=m.UUID.uuid(),l={id:i,version:s,createdAt:(e==null?void 0:e.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:a,type:n.DefinitionEntity,description:null,static:r.static,abstract:!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[r.toJSON()],x:0,y:0,parent:r.project.toReference()};eP(r,e);const o=C(l,r.project);return o.hydrateAncestors(),e==null||e.add(o,b.Added),o.addSelfToProject(e),o.addImplementation(r),o.setParent(r.project,e),o.initChildren(e),tP(o,e),o}function Jc(r,a){return a.entities.find(i=>{const s=i.properties,l=s.map(c=>c.name),o=r.every(c=>l.includes(c)),d=l.filter(c=>!r.includes(c)),u=s.every(c=>!d.includes(c.name)||!c.required);return o&&u})||null}function iP(r,a,e,t=Pt.OrDataTypeGroup){const i=[],s=[],l=[],o=[],u={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,entity:r.toJSON(),isList:!1,asType:null,andChildrenGroup:null,orChildrenGroup:null,staticEntities:!1,interactiveEntities:!0,actionEntities:!1,like:!0,inferred:!1,parentRelationType:t,parent:a.toReference()},y=C(u,r.project);return s.push(y),y.setParent(a,e),y.initChildren(e),e==null||e.add(y,b.Added),y.setEntity(r),y.addSelfToProject(e),{updated:p(i),added:p(s),removed:p(l),affected:p(o),self:y}}function Sc(r,a,e,t,i){var u,y,c,E,I,O,P,V;const s=[],l=[],o=[],d=[];switch(typeof r){case"string":let M=!1;const g=new Date(r);if(g instanceof Date&&!isNaN(g.valueOf())&&(M=!0),M){const B=a.project.getBuiltIn(k[n.PrimitiveEntity][L.Date].id);a.setEntity(B);break}else{const B=a.project.getBuiltIn(k[n.PrimitiveEntity][L.String].id);a.setEntity(B);break}case"number":a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.Number].id));break;case"boolean":a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.Boolean].id));break;case"object":if(r===null){a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.Null].id));break}else if(Array.isArray(r))if(a.metaSync({isList:!0},t),r.length>0){const B=r.slice(0,5).filter(q=>q!==void 0);if(B.every(q=>typeof q==typeof B[0])&&(typeof B[0]!="object"||B[0]===null))switch(typeof B[0]){case"string":a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.String].id));break;case"number":a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.Number].id));break;case"boolean":a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.Boolean].id));break;case"object":a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.Null].id));break}else{const q=[];let W=!1;B.forEach(pe=>{var Ee,Q,le,ri;if(Array.isArray(pe)&&(W=!0),typeof pe=="object"&&!Array.isArray(pe)&&pe!==null){const tr=Hl(pe,a.project,{...e,id:m.UUID.uuid()},t,i);tr.hasCreated&&q.push((Ee=tr.changeSet)==null?void 0:Ee.self),s.push(...(Q=tr.changeSet)==null?void 0:Q.updated),l.push(...(le=tr.changeSet)==null?void 0:le.added),o.push(...(ri=tr.changeSet)==null?void 0:ri.removed)}});const X=p(q);if(!X.length&&!W){B.forEach(pe=>{const Ee={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,entity:null,isList:!1,asType:null,andChildrenGroup:null,orChildrenGroup:null,staticEntities:!1,interactiveEntities:!0,actionEntities:!1,like:!0,inferred:!1,parentRelationType:Pt.OrDataTypeGroup,parent:a.toReference()},Q=C(Ee,a.project);switch(Q.setParent(a,t),Q.initChildren(t),t==null||t.add(Q,b.Added),Q.addSelfToProject(t),typeof pe){case"string":Q.setEntity(Q.project.getBuiltIn(k[n.PrimitiveEntity][L.String].id));break;case"number":Q.setEntity(Q.project.getBuiltIn(k[n.PrimitiveEntity][L.Number].id));break;case"boolean":Q.setEntity(Q.project.getBuiltIn(k[n.PrimitiveEntity][L.Boolean].id));break;case"object":Q.setEntity(Q.project.getBuiltIn(k[n.PrimitiveEntity][L.Null].id));break}});break}else X.length===1&&!W?a.setEntity(X[0]):B.forEach(pe=>{if(typeof pe=="object"&&!Array.isArray(pe)&&pe!==null){const Ee=Jc(Object.keys(pe),a.project);if(Ee){const Q=iP(Ee||X[0],a,t,Pt.OrDataTypeGroup);s.push(...Q.updated),l.push(...Q.added),o.push(...Q.removed)}}else{const Ee={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,entity:null,isList:Array.isArray(pe),asType:null,andChildrenGroup:null,orChildrenGroup:null,staticEntities:!1,interactiveEntities:!0,actionEntities:!1,like:!0,inferred:!1,parentRelationType:Pt.OrDataTypeGroup,parent:a.toReference()},Q=C(Ee,a.project);Q.setParent(a,t),Q.initChildren(t),t==null||t.add(Q,b.Added),Q.addSelfToProject(t);const le=Sc(pe,Q,{...e,id:m.UUID.uuid()},t,i);s.push(...le.updated),l.push(...le.added),o.push(...le.removed)}})}}else{const B=Hl(r[0],a.project,{...e},t,i);a.setEntity((u=B.changeSet)==null?void 0:u.self),s.push(...(y=B.changeSet)==null?void 0:y.updated),l.push(...(c=B.changeSet)==null?void 0:c.added),o.push(...(E=B.changeSet)==null?void 0:E.removed);break}else{const B=Hl(r,a.project,{...e},t,i);a.setEntity((I=B.changeSet)==null?void 0:I.self),s.push(...(O=B.changeSet)==null?void 0:O.updated),l.push(...(P=B.changeSet)==null?void 0:P.added),o.push(...(V=B.changeSet)==null?void 0:V.removed);break}}return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:a}}function Hl(r,a,e,t,i){const s=[],l=[],o=[],d=[],u=Object.keys(r),y=Jc(u,a);if(y)return{hasCreated:!1,changeSet:{updated:[],added:[],removed:[],affected:[],self:y}};const c=i?e.name+" of "+i.name:e.name,I={id:e.id||m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:c,type:n.DefinitionEntity,description:e.description||null,static:e.static||!1,abstract:e.abstract||!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[],x:0,y:0,parent:a.toReference()},O=C(I,a);return O.setParent(a,t),O.initChildren(t),t==null||t.add(O,b.Added),O.addSelfToProject(t),l.push(O),u.forEach((P,V)=>{const g={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:P,type:n.Property,description:null,static:!1,abstract:!1,defaultValue:null,constant:!1,dataType:null,implements:null,index:V,hidden:!1,private:!1,required:!0,parent:O.toReference()},B=C(g,a);B.setParent(O,t),B.initChildren(t),t==null||t.add(B,b.Added),B.addSelfToProject(t),l.push(B);const G=r[P],W={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,entity:null,isList:!1,asType:null,andChildrenGroup:null,orChildrenGroup:null,staticEntities:!1,interactiveEntities:!0,actionEntities:!1,like:!0,inferred:!1,parent:B.toReference()},X=C(W,a);X.setParent(B,t),X.initChildren(t),t==null||t.add(X,b.Added),X.addSelfToProject(t),l.push(X);const pe=Sc(G,X,{...e,name:P,id:m.UUID.uuid()},t,i||O);s.push(...pe.updated),l.push(...pe.added),o.push(...pe.removed)}),{hasCreated:!0,changeSet:{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:O}}}function br(r,a,e,t){const i=[];return!r.length||!a.length?{errors:i,overlap:!1}:(r.length>a.length?r.forEach(s=>{const l=a.find(d=>d.name===s.name),o=a.find(d=>{var u,y;return!!s.implements&&((u=d.implements)==null?void 0:u.id)===((y=s.implements)==null?void 0:y.id)});if(l){const d=new Ye({id:s.id+"--"+l.id+"--"+t,message:`Entity of type ${s.type} named "${s.name}" with id "${s.id}" overrides a base ${l.type} ${l.name} with id "${l.id}" that has the same name`,issue:null,severity:D.Error,code:t,entity:s,firstRelationship:l});i.push(d)}if(o){const d=new Ye({id:s.id+"--"+o.id+"--"+e,message:`Entity of type ${s.type} named "${s.name}" with id "${s.id}" overrides a base ${o.type} ${o.name} with id "${o.id}" that implements the same base descriptor`,issue:null,severity:D.Error,code:e,entity:s,firstRelationship:o});i.push(d)}}):a.forEach(s=>{var d;const l=r.find(u=>u.name===s.name),o=r.find(u=>{var y,c;return!!u.implements&&((y=u.implements)==null?void 0:y.id)===((c=s.implements)==null?void 0:c.id)});if(l){const u=new Ye({id:l.id+"--"+s.id+"--"+t,message:`Entity of type ${l.type} named "${l.name}" with id "${l.id}" overrides a base entity ${s.name} with id "${s.id}" that has the same name`,issue:null,severity:D.Error,code:t,entity:l,firstRelationship:s});i.push(u)}if(o){const u=new Ye({id:o.id+"--"+s.id+"--"+e,message:`Entity of type ${o.type} named "${o.name}" with id "${o.id}" overrides a base entity ${s.name} with id "${s.id}" that implements the same base ${(d=o==null?void 0:o.implements)==null?void 0:d.type}`,issue:null,severity:D.Error,code:e,entity:o,firstRelationship:s});i.push(u)}}),{errors:i,overlap:!!i.length})}function TS(r,a){return r.abstract||(r.properties.forEach(t=>{t.abstract||t.metaSync({abstract:!0},a)}),Object.values(r.detachedDependents).forEach(t=>{t.field===Bc.Entity&&t.entity.remove({ignoreUpstream:!1},a)}),r.metaSync({abstract:!0},a)),r}function ES(r,a){return r.abstract&&(r.properties.forEach(t=>{t.abstract&&t.metaSync({abstract:!1},a)}),Object.values(r.detachedDependents).forEach(t=>{(t.field===sd.Implements||t.field===sd.Extends)&&t.entity.onDetachedDependencyRemoved(r,t.field,a)}),r.metaSync({abstract:!1},a)),r}function IS(r,a){return r.static||(r.properties.forEach(t=>{t.static||t.metaSync({static:!0},a)}),r.metaSync({static:!0},a)),r}function AS(r,a){return r.static&&(r.properties.forEach(t=>{t.static&&t.metaSync({static:!1},a)}),r.metaSync({static:!1},a)),r}var rP=(r=>(r.StringValueMustNotHaveSpaces="string-value-must-not-have-spaces",r.StringValueMustNotHaveDashes="string-value-must-not-have-dashes",r))(rP||{});function nP(r,a){const e=[],t=a;if(!t)return{errors:e,override:a};if(typeof t!="string")return{errors:[],override:a};if(t.includes(" ")){const i=new Ye({id:r.id+"--string-value-must-not-have-spaces",message:`Entity of type ${r.type} with id "${r.id}" has an invalid value "${a}". The value cannot contain spaces.`,issue:null,severity:D.Error,code:"string-value-must-not-have-spaces",entity:r});e.push(i)}return{errors:e,override:t.replace(/\s/g,"-")}}function sP(r,a){const e=[],t=a;if(!t)return{errors:e,override:a};if(typeof t!="string")return{errors:[],override:a};if(t.includes(" ")){const i=new Ye({id:r.id+"--string-value-must-not-have-spaces",message:`Entity of type ${r.type} with id "${r.id}" has an invalid value "${a}". The value cannot contain spaces or dashes.`,issue:null,severity:D.Error,code:"string-value-must-not-have-spaces",entity:r});e.push(i)}if(t.includes("-")){const i=new Ye({id:r.id+"--string-value-must-not-have-dashes",message:`Entity of type ${r.type} with id "${r.id}" has an invalid value "${a}". The value cannot contain spaces or dashes.`,issue:null,severity:D.Error,code:"string-value-must-not-have-dashes",entity:r});e.push(i)}return{errors:e,override:t.replace(/\s|-/g,"_")}}function ws(r,a){const e=$n(r);if(e.length===0)return{list:[],last:null};let t=null;return{list:e.flatMap(s=>{if(s===a)return t=s,[s];const l=ws(s,a);return l.last&&(t=l.last),[s,...l.list]}),last:t}}function Wc(r){const a=r.calledBy;if(a.length===0)return r.project;const e=a.reduce((t,i)=>{const s=Jt(i,r.project);return!s||s.type===n.Project?t:t.type===n.Project||ws(s,t).last?s:(ws(t,s).last,t)},r.project);return e.type===n.FunctionDeclaration&&e.parent.type===n.Loop?e.parent:e}function K(r,a){var i,s;let e=Wc(r);if(r.type===n.InternalCall)(i=r.parent)==null||i.setParent(e,a),(s=r.parent)==null||s.addSelfToProject(a);else if((r.type===n.ContinueStatement||r.type===n.BreakStatement)&&e.type!==n.Loop){r.remove({ignoreUpstream:!1},a);return}else if(r.type===n.ReturnStatement&&!ut.includes(e.type)){r.remove({ignoreUpstream:!1},a);return}else r.setParent(e,a),r.addSelfToProject(a);if(ot.includes(r.type))return;Je(r).forEach(l=>{var d,u;const o=Wc(l);if(l.type===n.InternalCall)(d=l.parent)==null||d.setParent(o,a),(u=l.parent)==null||u.addSelfToProject(a);else if((l.type===n.ContinueStatement||l.type===n.BreakStatement)&&o.type!==n.Loop){l.remove({ignoreUpstream:!1},a);return}else if(l.type===n.ReturnStatement&&!ut.includes(o.type)){l.remove({ignoreUpstream:!1},a);return}else l.setParent(o,a),l.addSelfToProject(a)})}function aP(r,a,e=new Set){const t=sn(r),i=sn(a),s=t.filter(d=>!i.includes(d)),l=t.filter(d=>i.includes(d)),o=s.reduce((d,u)=>e.has(u.id)?d:(e.add(u.id),p([...d,...aP(u,a,e)])),[]);return p([...l,...o])}function Ma(r,a){const e=ws(r,a);return e.last===a&&e.list.length>0&&e.list[0]!==a}function bS(r,a){return!!ws(r,a).last}function RS(r){if(at.includes(r.type))return r;if([...gi,n.VariableDeclaration].includes(r.type)){const a=r.parent;return at.includes(a.type)?a:null}return null}function zc(r,a){if(!r||!a)throw new Error("Both entities must be defined to find a common ancestor");if(r===a)return r;const e=r.parent;if(e){if(e===a)return a;if(e.type===n.Project)return null}else return null;const t=a.parent;if(t){if(t===r)return r;if(t.type===n.Project)return null}else return null;return zc(e,t)}function Vt(r){if(Wa.includes(r.type)){if(r.type===n.FunctionDeclaration){const a=r.parent;if(a.type===n.DefinitionEntity)return a;if(a.type===n.Loop)return a}return r}else{const a=r.parent;return a?Vt(a):null}}function Kl(r,a){const e=Na(r,a);if(!e)return null;if(Wa.includes(e.type)){if(e.type===n.FunctionDeclaration){const t=Na(e.parent,a);if(t){if(t.type===n.DefinitionEntity)return t;if(t.type===n.Loop)return t}}return e}else{const t=e.parent?Na(e.parent,a):null;return t?Kl(t,a):null}}function oP(r){if(!r)return null;if(gi.includes(r.type))return r;const a=r.parent;return a?oP(a):null}function lP(r){if(!r)return null;if(dt.includes(r.type))return r;const a=r.parent;return a?lP(a):null}function dP(r){if(!r)return null;if(Gi.includes(r.type))return r;const a=r.parent;return a?dP(a):null}function DS(r){return r.type===n.VariableDeclaration?[r]:dt.includes(r.type)?[...r.inputs,...r.outputs||[]]:ot.includes(r.type)?r.outputs:kn.includes(r.type)||r.type===n.FunctionDeclaration?r.inputs:[]}function OS(r){const a=sn(r),e=[],t=[];df.includes(r.type)&&e.push(...Yc(r));const i=a.filter(s=>{const l=e.includes(s);return l?!1:gi.includes(s.type)&&!l?(t.push(s),!1):!0});return e.sort((s,l)=>Ma(l,s)?-1:0),t.sort((s,l)=>Ma(l,s)?-1:0),[...e,...t,...i]}function uP(r){return[...r].sort((a,e)=>Ma(e,a)?-1:0)}function PS(r){const a=uP(r),e=[];return a.forEach(t=>{const i=e[e.length-1];if(i){const s=i[i.length-1];Ma(t,s)?e.push([t]):i.push(t)}else e.push([t])}),e}function ti(r){const a=r.map(e=>Vt(e));return p(a)}function Yc(r){return dt.includes(r.type)?[...ti(r.successCalls),...ti(r.errorCalls)]:at.includes(r.type)?ti(r.calls):[]}function wS(r,a){return Yc(r).includes(a)}function Hc(r){return r.writesValues||[]}function CS(r,a){return Hc(r).includes(a)}function pP(r){var a;return it.includes((a=r==null?void 0:r.readsValue)==null?void 0:a.type)?r.readsValue:null}function VS(r){return r.writesValues}function cP(r=[]){return r.map(pP).filter(a=>!!a)}function Xl(r=[]){return r.map(a=>a.writesValues).flat().filter(a=>it.includes(a.type))}function fP(r=[]){return r.map(a=>a.readsValue).filter(a=>!!a&&it.includes(a.type))}function yP(r){return it.includes(r.type)?r:null}function hP(r){return r.writesValues.map(yP).filter(a=>!!a)}function mP(r=[]){return r.reduce((a,e)=>e.type===n.OutputMap?[...a,...hP(e)]:a,[])}function Je(r){return dt.includes(r.type)?[...er(ti(r.successCalls)),...er(ti(r.errorCalls))]:at.includes(r.type)?er(ti(r.calls)):[]}function BS(r){return dt.includes(r.type)?[...er(ti(r.successCalls)),...er(ti(r.errorCalls))]:at.includes(r.type)?er(ti(r.calls)):[]}function vP(r,a=new Set){return r.writesValues.filter(t=>it.includes(t.type)&&!a.has(t.id)).reduce((t,i)=>a.has(i.id)?t:[...t,...He(i,a)],[])}function TP(r,a=new Set){var t;return(((t=r.readsValue)==null?void 0:t.writesValues)||[]).filter(i=>it.includes(i.type)&&!a.has(i.id)).reduce((i,s)=>a.has(s.id)?i:[...i,...He(s,a)],[])}function He(r,a=new Set){if(a.has(r.id))return[];if(r.type===n.ReturnStatement)return fP(r.outputs).reduce((t,i)=>[...t,...He(i,a)],[]);if(r.type===n.FunctionCall||r.type===n.Operation||r.type===n.Condition)return[...Je(r).reduce((s,l)=>{const o=Vt(l);return[...s,...He(o||l,a)]},[]),...cP(r.inputs),...mP(r.outputs)].reduce((s,l)=>[...s,...He(l,a)],[]);if(kn.includes(r.type)){const e=Xl(r.inputs),i=Je(r).reduce((s,l)=>{const o=Vt(l);return[...s,...He(o||l,a)]},[]);return e.push(...i),e.reduce((s,l)=>[...s,...He(l,a)],[])}if(r.type===n.FunctionDeclaration){const e=[...Xl(r.inputs)],i=Je(r).reduce((s,l)=>{const o=Vt(l);return[...s,...He(o||l,a)]},[]);return e.push(...i),e.reduce((s,l)=>[...s,...He(l)],[])}if(it.includes(r.type)){a.add(r.id);const t=Je(r).reduce((i,s)=>{const l=Vt(s);return[...i,...He(l||s,a)]},[]);return[r,...t,...TP(r,a),...vP(r,a)]}return[]}function ui(r,a=new Set){return a.has(r.id)?[]:(a.add(r.id),[...sn(r).reduce((i,s)=>[...i,s,...ui(s,a)],[])])}function er(r){return r.reduce((a,e)=>e.type===n.ReturnStatement||e.type===n.ContinueStatement||e.type===n.BreakStatement?[...a,e]:[...a,e,...Je(e)],[])}function EP(r){const a=r.entities||[],e=[...a,...r.functions||[],...r.events||[],...r.projects||[]],t=a.reduce((d,u)=>[...d,...u.properties],[]),i=a.reduce((d,u)=>[...d,...u.methods],[]),s=i.reduce((d,u)=>[...d,...Xl(u.inputs),...er(ti(u.calls)),...u.returnStatements],[]),l=r.functions.reduce((d,u)=>[...d,...er(ti(u.calls)),...u.returnStatements],[]),o=r.events.reduce((d,u)=>[...d,...er(ti(u.calls)),...u.returnStatements],[]);return[...e,...t,...i,...s,...l,...o]}function IP(r,a){return a.filter(t=>{if(!t)return!1;switch(t.type){case n.FunctionCall:return t.inputs.find(i=>i.id===r.id)!==void 0||t.outputs.find(i=>i.id===r.id)!==void 0;case n.Condition:return t.successCalls.find(i=>i.id===r.id)!==void 0||t.errorCalls.find(i=>i.id===r.id)!==void 0||t.inputs.find(i=>i.id===r.id)!==void 0;case n.Operation:return t.outputs.find(i=>i.id===r.id)!==void 0;case n.VariableDeclaration:return dt.includes(r.type)?zP(r).find(s=>{var l;return((l=s.readsValue)==null?void 0:l.id)===t.id})!==void 0:!1;case n.DefinitionEntity:return t.properties.find(i=>i.id===r.id)!==void 0||t.methods.find(i=>i.id===r.id)!==void 0;case n.FunctionDeclaration:return t.inputs.find(i=>i.id===r.id)!==void 0||(t.returnStatements.map(i=>i.outputs).flat()||[]).find(i=>i.id===r.id)!==void 0;default:return!1}})}function _S(r){const a=EP(r.project);return IP(r,a)}function Na(r,a){return r?typeof r=="string"?a[r]:r.type===n.GenericReference?a[r.entityId]:a[r.id]?a[r.id]:null:null}function Ql(r,a={},e={ignoreBuiltInBaseEntities:!1,allBuiltInEntityIds:[]}){if(e.ignoreBuiltInBaseEntities&&(fi.includes(r.type)||(e.allBuiltInEntityIds||[]).includes(r.id)))return{upstream:{},downstream:{}};const t=r,i=r,s=r,l=r,o=r,d=r,u=r,y=r,c=r,E=r,I=r,O=r,P=r,V=[...P.readsValue?[P.readsValue]:[],...P.declaration?[P.declaration]:[],...(O.calledByEntry||[]).flatMap(G=>G),...(O.calledBySuccess||[]).flatMap(G=>G),...(O.calledByError||[]).flatMap(G=>G),...(s.extends||[]).flatMap(G=>G),...E.parent?[E.parent]:[]];Array.isArray(s.implements)?V.push(...s.implements.flatMap(G=>G)):c.implements&&V.push(c.implements),o.valueAsTypeList&&Array.isArray(o.valueAsTypeList)&&V.push(...o.valueAsTypeList.flatMap(G=>G)),o.valueAsTypeSingle&&V.push(o.valueAsTypeSingle);const M=[...(t.inputs||[]).flatMap(G=>G),...(I.inputsDeclarations||[]).flatMap(G=>G),...(t.outputs||[]).flatMap(G=>G),...(I.outputsDeclarations||[]).flatMap(G=>G),...(P.internalCalls||[]).flatMap(G=>G),...P.writesValues||[],...O.dataType?[O.dataType]:[],...d.body?[d.body]:[],...O.defaultValue?[O.defaultValue]:[],...(O.successCalls||[]).flatMap(G=>G),...(O.errorCalls||[]).flatMap(G=>G),...(s.properties||[]).flatMap(G=>G),...(s.methods||[]).flatMap(G=>G),...(s.abstractMethods||[]).flatMap(G=>G),...u.error?[u.error]:[],...u.process?[u.process]:[],...E.throws?[E.throws]:[],...(i.andChildrenGroup||[]).flatMap(G=>G),...(i.orChildrenGroup||[]).flatMap(G=>G),...(y.entities||[]).flatMap(G=>G),...(y.functions||[]).flatMap(G=>G),...(y.functionCalls||[]).flatMap(G=>G),...(y.events||[]).flatMap(G=>G),...(y.conditions||[]).flatMap(G=>G),...(y.operations||[]).flatMap(G=>G),...(y.loops||[]).flatMap(G=>G),...(y.variableDeclarations||[]).flatMap(G=>G),...(y.variableInstances||[]).flatMap(G=>G),...(y.searches||[]).flatMap(G=>G),...(y.projects||[]).flatMap(G=>G),...(l.calls||[]).flatMap(G=>G)];r.type===n.DataType&&(i.entity&&a[_(i.entity)]&&a[_(i.entity)].parent&&_(a[_(i.entity)].parent)===r.id?M.push(i.entity):i.entity&&V.push(i.entity));const g={},B={};return V.forEach(G=>{const q=_(G);if(q&&e.ignoreBuiltInBaseEntities&&(fi.includes(G.type)||(e.allBuiltInEntityIds||[]).includes(q)))return;const W=G.version;q&&(g[q]=W)}),M.forEach(G=>{const q=_(G);if(q&&e.ignoreBuiltInBaseEntities&&(fi.includes(G.type)||(e.allBuiltInEntityIds||[]).includes(q)))return;const W=G.version;q&&(B[q]=W)}),{upstream:g,downstream:B}}function MS(r,a){const e=[];if(gi.includes(r.type)){Ii(r).forEach(s=>{const l=Kl(s,a);l&&e.push(l)});const i=[...r.inputs||[],...r.outputs||[]].map(s=>{const l=Na(s,a);return l?HP(l,a):null}).filter(s=>s!==null);e.push(...p(i))}if(it.includes(r.type)){const t=ed(r);t&&e.push(t)}return p(e)}function $n(r){const a=[];if(gi.includes(r.type)){r.calledBy.forEach(i=>{const s=Vt(i);s&&a.push(s)});const t=[...r.inputs||[],...r.outputs||[]].map(i=>ed(i)).filter(i=>i!==null);a.push(...p(t))}if(it.includes(r.type)){const e=ed(r);e&&a.push(e)}return p(a)}function Ii(r){return[...r.calledByEntry||[],...r.calledByError||[],...r.calledBySuccess||[]].filter(a=>a.type!==n.GenericReference)}function AP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.ActionDescriptor)throw new Error("Entity must be an action descriptor to be flattened");return[r,...r.inputs.flatMap(t=>j(t,a,e)),...r.outputs.flatMap(t=>j(t,a,e)),...r.error?j(r.error,a,e):[],...r.parent?j(r.parent,a,e):[]]}function bP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.ArgumentDeclaration)throw new Error("Entity must be an argument declaration to be flattened");return[r,...r.defaultValue?j(r.defaultValue,a):[],...r.writesValues.flatMap(t=>j(t,a,e)),...r.dataType?j(r.dataType,a,e):[],...r.parent?j(r.parent,a,e):[]]}function RP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.BreakStatement)throw new Error("Entity must be a break statement to be flattened");return[r,...r.outputs.flatMap(t=>j(t,a,e)),...r.throws?j(r.throws,a,e):[],...(Ii(r)||[]).flatMap(t=>j(t,a,e)),...r.parent?j(r.parent,a,e):[]]}function DP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.BuiltInBaseEntity)throw new Error("Entity must be a built-in base entity to be flattened");return[r,...(r.properties||[]).flatMap(t=>j(t,a,e)),...(r.methods||[]).flatMap(t=>j(t,a,e)),...(r.abstractMethods||[]).flatMap(t=>j(t,a,e)),...(r.extends||[]).flatMap(t=>j(t,a,e))]}function OP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.Condition)throw new Error("Entity must be a condition to be flattened");return[r,...(r.inputs||[]).flatMap(t=>j(t,a,e)),...(r.successCalls||[]).flatMap(t=>j(t,a,e)),...(r.errorCalls||[]).flatMap(t=>j(t,a,e)),...(Ii(r)||[]).flatMap(t=>j(t,a,e)),...r.parent?j(r.parent,a,e):[]]}function PP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.ContinueStatement)throw new Error("Entity must be a continue statement to be flattened");return[r,...r.outputs.flatMap(t=>j(t,a,e)),...r.throws?j(r.throws,a,e):[],...(Ii(r)||[]).flatMap(t=>j(t,a,e)),...r.parent?j(r.parent,a,e):[]]}function wP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.DefinitionEntity)throw new Error("Entity must be a definition entity to be flattened");return[r,...(r.extends||[]).flatMap(t=>j(t,a,e)),...(r.implements||[]).flatMap(t=>j(t,a,e)),...(r.properties||[]).flatMap(t=>j(t,a,e)),...(r.methods||[]).flatMap(t=>j(t,a,e)),...(r.abstractMethods||[]).flatMap(t=>j(t,a,e)),...r.parent?j(r.parent,a,e):[]]}function CP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.DataType)throw new Error("Entity must be a data type to be flattened");return[r,...(r.andChildrenGroup||[]).flatMap(t=>j(t,a,e)),...(r.orChildrenGroup||[]).flatMap(t=>j(t,a,e)),...r.entity?j(r.entity,a,e):[],...r.parent?j(r.parent,a,e):[]]}function VP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.FunctionCall)throw new Error("Entity must be a function call to be flattened");return[r,...(r.inputs||[]).flatMap(t=>j(t,a,e)),...(r.outputs||[]).flatMap(t=>j(t,a,e)),...r.error?j(r.error,a,e):[],...r.process?j(r.process,a,e):[],...(Ii(r)||[]).flatMap(t=>j(t,a,e)),...(r.successCalls||[]).flatMap(t=>j(t,a,e)),...(r.errorCalls||[]).flatMap(t=>j(t,a,e)),...r.parent?j(r.parent,a,e):[]]}function BP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.FunctionDeclaration)throw new Error("Entity must be a function declaration to be flattened");return[r,...(r.inputs||[]).flatMap(t=>j(t,a,e)),...(r.calls||[]).flatMap(t=>j(t,a,e)),...r.implements?j(r.implements,a,e):[],...r.parent?j(r.parent,a,e):[]]}function _P(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.GlobalEvent)throw new Error("Entity must be a global event to be flattened");return[r,...(r.inputs||[]).flatMap(t=>j(t,a,e)),...(r.calls||[]).flatMap(t=>j(t,a,e)),...r.implements?j(r.implements,a,e):[],...r.parent?j(r.parent,a,e):[]]}function MP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.InputMap)throw new Error("Entity must be an input map to be flattened");return[r,...r.readsValue?j(r.readsValue,a,e):[],...r.declaration?j(r.declaration,a,e):[],...r.defaultValue?j(r.defaultValue,a,e):[],...r.parent?j(r.parent,a,e):[]]}function NP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.InstalledProject)throw new Error("Entity must be an installed project to be flattened");return[r,...(r.functions||[]).flatMap(t=>j(t,a,e)),...(r.events||[]).flatMap(t=>j(t,a,e)),...r.parent?j(r.parent,a,e):[]]}function LP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.InternalCall)throw new Error("Entity must be an internal call to be flattened");return[r,...(r.successCalls||[]).flatMap(t=>j(t,a,e)),...(r.errorCalls||[]).flatMap(t=>j(t,a,e)),...(r.inputs||[]).flatMap(t=>j(t,a,e)),...(r.outputs||[]).flatMap(t=>j(t,a,e)),...(Ii(r)||[]).flatMap(t=>j(t,a,e)),...r.error?j(r.error,a,e):[],...r.process?j(r.process,a,e):[],...r.parent?j(r.parent,a,e):[]]}function jP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.LiteralValue)throw new Error("Entity must be a literal value to be flattened");return[r,...r.valueAsTypeSingle?j(r.valueAsTypeSingle,a,e):[],...r.valueAsTypeList&&Array.isArray(r.valueAsTypeList)?r.valueAsTypeList.flatMap(t=>j(t,a,e)):[],...r.parent?j(r.parent,a,e):[]]}function UP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.Loop)throw new Error("Entity must be a loop to be flattened");return[r,...(r.inputs||[]).flatMap(t=>j(t,a,e)),...(r.outputs||[]).flatMap(t=>j(t,a,e)),...(r.successCalls||[]).flatMap(t=>j(t,a,e)),...(r.errorCalls||[]).flatMap(t=>j(t,a,e)),...r.error?j(r.error,a,e):[],...r.process?j(r.process,a,e):[],...r.body?j(r.body,a,e):[],...(Ii(r)||[]).flatMap(t=>j(t,a,e)),...r.parent?j(r.parent,a,e):[]]}function $P(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.Operation)throw new Error("Entity must be an operation to be flattened");return[r,...(r.successCalls||[]).flatMap(t=>j(t,a,e)),...(r.errorCalls||[]).flatMap(t=>j(t,a,e)),...(r.inputs||[]).flatMap(t=>j(t,a,e)),...(r.outputs||[]).flatMap(t=>j(t,a,e)),...r.error?j(r.error,a,e):[],...r.process?j(r.process,a,e):[],...(Ii(r)||[]).flatMap(t=>j(t,a,e)),...r.parent?j(r.parent,a,e):[]]}function gP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.OutputMap)throw new Error("Entity must be an output map to be flattened");return[r,...(r.writesValues||[]).flatMap(t=>j(t,a,e)),...r.declaration?j(r.declaration,a,e):[],...r.defaultValue?j(r.defaultValue,a,e):[],...r.parent?j(r.parent,a,e):[]]}function GP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.PrimitiveEntity)throw new Error("Entity must be a primitive entity to be flattened");return[r,...(r.properties||[]).flatMap(t=>j(t,a,e)),...(r.methods||[]).flatMap(t=>j(t,a,e)),...(r.abstractMethods||[]).flatMap(t=>j(t,a,e))]}function FP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.Project)throw new Error("Entity must be a project to be flattened");return[r,...(r.entities||[]).flatMap(t=>j(t,a,e)),...(r.functions||[]).flatMap(t=>j(t,a,e)),...(r.events||[]).flatMap(t=>j(t,a,e)),...(r.projects||[]).flatMap(t=>j(t,a,e)),...(r.variableDeclarations||[]).flatMap(t=>j(t,a,e)),...(r.variableInstances||[]).flatMap(t=>j(t,a,e)),...(r.operations||[]).flatMap(t=>j(t,a,e)),...(r.conditions||[]).flatMap(t=>j(t,a,e)),...(r.functionCalls||[]).flatMap(t=>j(t,a,e)),...(r.projects||[]).flatMap(t=>j(t,a,e)),...(r.loops||[]).flatMap(t=>j(t,a,e)),...(r.searches||[]).flatMap(t=>j(t,a,e))]}function xP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.Property)throw new Error("Entity must be a property to be flattened");return[r,...r.defaultValue?j(r.defaultValue,a,e):[],...r.dataType?j(r.dataType,a,e):[],...r.parent?j(r.parent,a,e):[]]}function kP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.ReturnDeclaration)throw new Error("Entity must be a return declaration to be flattened");return[r,...r.readsValue?j(r.readsValue,a,e):[],...r.defaultValue?j(r.defaultValue,a,e):[],...r.dataType?j(r.dataType,a,e):[],...r.parent?j(r.parent,a,e):[]]}function ZP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.ReturnStatement)throw new Error("Entity must be a return statement to be flattened");return[r,...(r.outputs||[]).flatMap(t=>j(t,a,e)),...r.throws?j(r.throws,a,e):[],...(Ii(r)||[]).flatMap(t=>j(t,a,e)),...r.parent?j(r.parent,a,e):[]]}function qP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.Search)throw new Error("Entity must be a search to be flattened");return[r,...(r.successCalls||[]).flatMap(t=>j(t,a,e)),...(r.errorCalls||[]).flatMap(t=>j(t,a,e)),...(r.inputsDeclarations||[]).flatMap(t=>j(t,a,e)),...(r.inputs||[]).flatMap(t=>j(t,a,e)),...(r.outputsDeclarations||[]).flatMap(t=>j(t,a,e)),...(r.outputs||[]).flatMap(t=>j(t,a,e)),...r.error?j(r.error,a,e):[],...(Ii(r)||[]).flatMap(t=>j(t,a,e)),...r.parent?j(r.parent,a,e):[]]}function JP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.ValueDescriptor)throw new Error("Entity must be a value descriptor to be flattened");return[r,...r.defaultValue?j(r.defaultValue,a,e):[],...r.dataType?j(r.dataType,a,e):[],...r.parent?j(r.parent,a,e):[]]}function SP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.VariableDeclaration)throw new Error("Entity must be a variable declaration to be flattened");return[r,...(r.successCalls||[]).flatMap(t=>j(t,a,e)),...(r.errorCalls||[]).flatMap(t=>j(t,a,e)),...(r.inputs||[]).flatMap(t=>j(t,a,e)),...(r.outputs||[]).flatMap(t=>j(t,a,e)),...(r.internalCalls||[]).flatMap(t=>j(t,a,e)),...(r.writesValues||[]).flatMap(t=>j(t,a,e)),...r.readsValue?j(r.readsValue,a,e):[],...r.defaultValue?j(r.defaultValue,a,e):[],...(Ii(r)||[]).flatMap(t=>j(t,a,e)),...r.dataType?j(r.dataType,a,e):[],...r.parent?j(r.parent,a,e):[]]}function WP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.VariableInstance)throw new Error("Entity must be a variable instance to be flattened");return[r,...(r.successCalls||[]).flatMap(t=>j(t,a,e)),...(r.errorCalls||[]).flatMap(t=>j(t,a,e)),...(r.inputs||[]).flatMap(t=>j(t,a,e)),...(r.outputs||[]).flatMap(t=>j(t,a,e)),...(r.internalCalls||[]).flatMap(t=>j(t,a,e)),...(r.writesValues||[]).flatMap(t=>j(t,a,e)),...r.readsValue?j(r.readsValue,a,e):[],...r.defaultValue?j(r.defaultValue,a,e):[],...(Ii(r)||[]).flatMap(t=>j(t,a,e)),...r.declaration?j(r.declaration,a,e):[],...r.parent?j(r.parent,a,e):[]]}function Ui(){const r=new Set,a=uI.flatMap(e=>j(e,r)).map(e=>e.id);if(!a.includes("http-request-error-return-delaration-id"))throw new Error("Built-in base entities must be included in the list");return a}function j(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(!r)throw new Error("Entity must be defined to be flattened");if(r.type===n.GenericReference)return[];if(e.ignoreBuiltInBaseEntities&&(fi.includes(r.type)||Ui().includes(r.id)))return[];if(a.has(r.id))return[];switch(r.type){case n.FunctionCall:return VP(r,a,e);case n.Operation:return $P(r,a,e);case n.Condition:return OP(r,a,e);case n.Loop:return UP(r,a,e);case n.Search:return qP(r,a,e);case n.GlobalEvent:return _P(r,a,e);case n.ReturnStatement:return ZP(r,a,e);case n.ContinueStatement:return PP(r,a,e);case n.BreakStatement:return RP(r,a,e);case n.VariableDeclaration:return SP(r,a,e);case n.DefinitionEntity:return wP(r,a,e);case n.FunctionDeclaration:return BP(r,a,e);case n.Project:return FP(r,a,e);case n.ActionDescriptor:return AP(r,a,e);case n.ArgumentDeclaration:return bP(r,a,e);case n.ReturnDeclaration:return kP(r,a,e);case n.ValueDescriptor:return JP(r,a,e);case n.InputMap:return MP(r,a,e);case n.OutputMap:return gP(r,a,e);case n.DataType:return CP(r,a,e);case n.InstalledProject:return NP(r,a,e);case n.InternalCall:return LP(r,a,e);case n.LiteralValue:return jP(r,a,e);case n.Property:return xP(r,a,e);case n.VariableInstance:return WP(r,a,e);case n.BuiltInBaseEntity:return e.ignoreBuiltInBaseEntities?[]:DP(r,a,e);case n.PrimitiveEntity:return e.ignoreBuiltInBaseEntities?[]:GP(r,a,e)}return[]}function Kc(r){return r.type===n.FunctionCall||r.type===n.InternalCall||[n.Operation,n.Condition,n.Loop].includes(r.type)?r.declaration.inputs:r.type===n.FunctionDeclaration||kn.includes(r.type)?r.inputs:r.type===n.Search?r.inputsDeclarations:[]}function NS(r,a){return a.type===n.Condition?a.inputs.find(e=>e.declaration.id===r.id):a.type===n.FunctionCall||a.type===n.Operation?a.inputs.find(e=>e.declaration.id===r.id):null}function zP(r){return dt.includes(r.type)?r.inputs:[]}function YP(r){var a;return r.type===n.FunctionCall?((a=r.declaration.returnStatements[0])==null?void 0:a.outputs)||[]:[n.Operation,n.Condition,n.Loop].includes(r.type)?r.declaration.outputs:r.type===n.Search?r.outputsDeclarations:ot.includes(r.type)?r.outputs:[]}function LS(r,a){return a.type===n.Condition?null:a.type===n.FunctionCall||a.type===n.Operation?a.outputs.find(e=>e.declaration.id===r.id):null}function jS(r){return r.type===n.Condition?[]:dt.includes(r.type)?r.outputs:[]}function ed(r){const a=r.readsValue;return a?Vt(a):null}function HP(r,a){const e=r.readsValue;return e?Kl(e,a):null}function KP(r){const a=r.internalCalls||[];return p(ti(p(a.flatMap(e=>[...e.successCalls,...e.errorCalls]))))}function Cs(r){const a=Hc(r),e=[];return a.forEach(t=>{if(it.includes(t.type))e.push(t);else if(Dr.includes(t.type)){const i=t.parent;e.push(i)}}),e}function p(r){const a=new Set;return r.filter(e=>!e||a.has(e.id)?!1:(a.add(e.id),!0))}function sn(r,a=!1){const e=[];if(r.type===n.Project&&e.push(...(r==null?void 0:r.entities)||[],...(r==null?void 0:r.functions)||[],...(r==null?void 0:r.variableDeclarations)||[],...(r==null?void 0:r.variableInstances)||[],...(r==null?void 0:r.searches)||[],...(r==null?void 0:r.loops)||[],...(r==null?void 0:r.operations)||[],...(r==null?void 0:r.conditions)||[],...(r==null?void 0:r.functionCalls)||[],...(r==null?void 0:r.events)||[],...(r==null?void 0:r.projects)||[]),ut.includes(r.type)&&e.push(...(r==null?void 0:r.detachedChildren)||[]),r.type===n.DefinitionEntity){const t=[...r.suggestedMethods,...r.methods].flatMap(i=>i.collapsed&&a?[]:sn(i));e.push(...t)}if(r.type===n.Condition){const t=r.successCalls.map(s=>Vt(s)),i=r.errorCalls.map(s=>Vt(s));e.push(...t,...i)}if(kn.includes(r.type)){if(r.collapsed&&a)return[];const t=r.inputs.map(s=>Cs(s)).flat(),i=r.calls.map(s=>Vt(s));e.push(...p(t),...i)}if(dt.includes(r.type)&&r.type!==n.Condition&&r.type!==n.Loop){const t=r==null?void 0:r.outputs.map(l=>Cs(l)).flat(),i=r.successCalls.map(l=>Vt(l)),s=r.errorCalls.map(l=>Vt(l));e.push(...p(t),...i,...s)}if(it.includes(r.type)){const t=Cs(r),i=KP(r);e.push(...t,...i)}if(r.type===n.Loop){const t=r.outputs.map(l=>Cs(l)).flat();if(r.body){const l=sn(r.body,a);e.push(...l)}const i=r.errorCalls.map(l=>Vt(l)),s=r.successCalls.map(l=>Vt(l));e.push(...p(t),...s,...i)}if(r.type===n.FunctionDeclaration){if(r.collapsed&&a)return[];const t=r.inputs.map(s=>Cs(s)).flat(),i=r.calls.map(s=>Vt(s));e.push(...p(t),...i)}return p(e)}function XP(r,a=!1){const e=sn(r,a),t=[...e,...e.reduce((i,s)=>[...i,...XP(s,a)],[])];return p(t)}function QP(r){const a=$n(r),e=[...a,...a.reduce((t,i)=>[...t,...QP(i)],[])];return p(e)}function La(r){return r.implements.reduce((a,e)=>e.type===n.DefinitionEntity?[...a,n.DefinitionEntity,...La(e),...ja(e)]:[...a,e.name],[])}function ja(r){return r.extends.reduce((a,e)=>e.type===n.DefinitionEntity?[...a,n.DefinitionEntity,...ja(e),...La(e)]:[...a,e.name],[])}function Xc(r){return r.extends.reduce((a,e)=>e.type===n.DefinitionEntity?[...a,e,...Xc(e),...Qc(e)]:[...a,e],[])}function Qc(r){return r.implements.reduce((a,e)=>e.type===n.DefinitionEntity?[...a,e,...Qc(e),...Xc(e)]:[...a,e],[])}function ef(r){return[...ja(r),...La(r)].filter((e,t,i)=>i.indexOf(e)===t)}function ew(r){return r.implements.length===0&&r.extends.length===0?null:r.implements.find(t=>t.type===n.BuiltInBaseEntity&&t.name===S.PERSISTED_ENTITY)?r:[...r.implements,...r.extends].reduce((t,i)=>{if(i.type===n.DefinitionEntity){const s=ew(i);if(s)return s}return t},null)}function US(r){const a=r.extends.find(e=>e.type===n.BuiltInBaseEntity);return a&&a.type===n.BuiltInBaseEntity?a:null}function $S(r){const a=r.implements.find(e=>e.type===n.BuiltInBaseEntity);return a&&a.type===n.BuiltInBaseEntity?a:null}function tw(r){const a=r.extends.find(e=>e.type===n.DefinitionEntity);return a&&a.type===n.DefinitionEntity?a:null}function qt(r){if(r.type===n.BuiltInBaseEntity)return[r];const a=[...r.implements,...r.extends].reduce((e,t)=>t.type===n.BuiltInBaseEntity?[...e,t]:t.type===n.DefinitionEntity?[...e,...qt(t)]:e,[]);return p(a)}function Ua(r){return r.type===n.PrimitiveEntity?!0:r.type===n.BuiltInBaseEntity?r.interactive:!qt(r).find(t=>!t.interactive)}function gS(r){return r.parent===r.project&&r.project.variableDeclarations.includes(r)}function tf(r){return r.parent!==r.project?!1:n.VariableDeclaration===r.type?r.project.variableDeclarations.includes(r):n.VariableInstance===r.type?r.project.variableInstances.includes(r):n.FunctionCall===r.type?r.project.functionCalls.includes(r):n.Condition===r.type?r.project.conditions.includes(r):n.Operation===r.type?r.project.operations.includes(r):n.Loop===r.type?r.project.loops.includes(r):n.Search===r.type?r.project.searches.includes(r):!1}function iw(r){if([...at,n.DefinitionEntity,n.InstalledProject,n.Project].includes(r.type)||tf(r))return!1;const a=$n(r);return a.length===0?!0:a.some(e=>iw(e))}function rf(r){return[...at,n.DefinitionEntity,n.InstalledProject,n.Project].includes(r.type)||tf(r)?!1:$n(r).length===0}function rw(r,a=0){if(rf(r)){const e=$n(r);return e.length===0?r:e.map(i=>rw(i,a+1)).reduce((i,s)=>i?s&&s.x<i.x?s:i:s,null)}return null}function nw(r){const a=[];if(rf(r))a.push(r);else return[];return $n(r).forEach(t=>{a.push(...nw(t))}),a}function sw(r){return r.type===n.FunctionDeclaration&&r.parent!==r.project&&!![n.DefinitionEntity,n.Loop,n.InstalledProject].includes(r.parent.type)}function GS(r,a){const e=new Map;return r.forEach(t=>{e.set(t.id,t)}),a.forEach(t=>{e.set(t.id,t)}),Array.from(e.values())}function $a(r){switch(r){case n.DefinitionEntity:return on;case n.FunctionDeclaration:return xr;case n.VariableDeclaration:return Yr;case n.VariableInstance:return zr;case n.FunctionCall:return nn;case n.Operation:return Zr;case n.Condition:return Wr;case n.ReturnStatement:return Fr;case n.Loop:return Sr;case n.Search:return Hr;case n.InputMap:return Ki;case n.OutputMap:return Xi;case n.ArgumentDeclaration:return Er;case n.ReturnDeclaration:return ei;case n.Property:return Gr;case n.InstalledProject:return Kr;case n.Project:return m;case n.DataType:return kr;case n.GlobalEvent:return qr;case n.InternalCall:return Xr;case n.ValueDescriptor:return Ir;case n.BuiltInBaseEntity:return $i;case n.PrimitiveEntity:return ii;case n.ActionDescriptor:return Se;case n.LiteralValue:return Qr;case n.ContinueStatement:return Ut;case n.BreakStatement:return Jr;default:return null}}function Jt(r,a){const e=r!=null&&r.parent?_(r==null?void 0:r.parent):null;let t=e?a.get(e):null;if(r.type===n.ReturnStatement)return It(r,a);if(r.type===n.FunctionDeclaration&&(t==null?void 0:t.type)===n.Loop)return t;if(ut.includes(r.type))return r;if(fi.includes(r.type))return null;const i=r.parent;if(!i)return null;if(i.type===n.GenericReference){const s=_(i);if(!s)return null;const l=a.get(s);return l?Jt(l,a):null}else return i===a?a:Jt(i,a)}function It(r,a){const e=r!=null&&r.parent?_(r==null?void 0:r.parent):null;let t=e?a.get(e):null;if(r.type===n.FunctionDeclaration&&(t==null?void 0:t.type)===n.Loop)return It(t.parent,a);if(at.includes(r.type))return r;if(fi.includes(r.type))return null;const i=r.parent;if(!i)return null;if(i.type===n.GenericReference){const s=_(i);if(!s)return null;const l=a.get(s);return l?It(l,a):null}else return i===a?a:It(i,a)}function nf(r,a){if(fi.includes(r.type)||a.getBuiltIn(r.id))return null;const e=Ai(r.parent,a);return e?e===a?ut.includes(r.type)?r:null:e.type===n.DefinitionEntity?r:nf(e,a):null}function td(r,a,e){if(r===a||a===e||r===e)return!1;const t=Jt(a.parent,e);return t===r?!0:td(t,a,e)}var id=(r=>(r.SameBothLocal="same-both-local",r.AInB="a-in-b",r.BInA="b-in-a",r.ParallelInCommonParent="parallel-in-common-parent",r.ParallelInProject="parallel-in-project",r.AIsGlobalBIsNot="a-is-global-b-is-not",r.BIsGlobalAIsNot="b-is-global-a-is-not",r.SameBothGlobal="same-both-global",r))(id||{});function ga(r,a,e){const t=Jt(r,e),i=Jt(a,e);if(!t)throw new Error("Could not find scope owner for the entity: "+r.id);if(!i)throw new Error("Could not find scope owner for the entity: "+a.id);if(t===i&&t.type!==n.Project)return{compatible:!0,type:"same-both-local",commonAncestorScope:t};if(t===i&&t.type===n.Project)return{compatible:!0,type:"same-both-global",commonAncestorScope:t};if(t.type===n.Project&&i.type!==n.Project)return{compatible:!1,type:"a-is-global-b-is-not",commonAncestorScope:t};if(t.type!==n.Project&&i.type===n.Project)return{compatible:!1,type:"b-is-global-a-is-not",commonAncestorScope:i};if(td(t,i,e))return{compatible:!0,type:"b-in-a",commonAncestorScope:t};if(td(i,t,e))return{compatible:!0,type:"a-in-b",commonAncestorScope:i};const o=zc(t,i);return o===e?{compatible:!1,type:"parallel-in-project",commonAncestorScope:o}:o?{compatible:!1,type:"parallel-in-common-parent",commonAncestorScope:Jt(o,e)}:{compatible:!1,type:"parallel-in-project",commonAncestorScope:e}}function aw(r,a,e){const t=ga(r,a,e);if(!t.compatible||t.type!=="same-both-local")return null;if(r===a)return r;let i=Jt(r.parent,e);if(i){if(i===a)return a;if(i.type===n.Project)return r}else return r;for(;i;){if(i){if(i===a)return a;if(i.type===n.Project)return r}else return r;i=Jt(i.parent,e)}let s=Jt(a.parent,e);if(s){if(s===r)return r;if(s.type===n.Project)return a}else return a;for(;s;){if(s){if(s===r)return r;if(s.type===n.Project)return a}else return a;s=Jt(s.parent,e)}return null}function ow(r){return r.length===0?null:r.length===1?r[0]:r.reduce((e,t)=>{const i=aw(e,t,t.project);return!i||i===t?e:t},r[0])}function Ai(r,a){if(!r)return null;let e;return typeof r=="string"?e=r:r.type===n.GenericReference?e=_(r):e=r.id,e===a.id?a:a.get(e)}function an(r){if(!r)return null;if(fi.includes(r.type))return r;if(r.type===n.Project)return null;if(r.project.getBuiltIn(r.id))return r;const a=r.parent;return!a||a.type===n.Project?null:an(a)}function Ga(r){const a=[];function e(s,l){return a.some(o=>o.blockedByCaller===s&&o.blockedByCalling===l)}function t(s,l){e(s,l)||a.push({blockedByCaller:s,blockedByCalling:l})}const i=nf(r,r.project);return r.calledBySuccess.forEach(s=>{[...s.successCalls||[]].forEach(d=>{ot.includes(d.type)&&d!==r&&(Je(r).find(c=>c===d)||t(s,d))});let o;if(dt.includes(s.type)&&(o=s),o){const d=Ga(o);d.reachable||Je(r).find(c=>c===s)||d.blocks.forEach(c=>{t(s,c.blockedByCalling)})}}),r.calledByError.forEach(s=>{[...s.errorCalls||[]].forEach(d=>{ot.includes(d.type)&&d!==r&&(Je(r).find(c=>c===d)||t(s,d))});let o;if(dt.includes(s.type)&&(o=s),o){const d=Ga(o);d.reachable||Je(r).find(c=>c===s)||d.blocks.forEach(c=>{t(s,c.blockedByCalling)})}}),r.calledByEntry.forEach(s=>{if([...s.calls||[]].forEach(d=>{ot.includes(d.type)&&d!==r&&(Je(r).find(c=>c===d)||t(s,d))}),s===i)return;let o;if(s.type===n.FunctionDeclaration){const d=Vt(s);if(d.type===n.DefinitionEntity)return;d.type===n.Loop&&(o=d)}if(o){const d=Ga(o);d.reachable||d.blocks.forEach(u=>{t(s,u.blockedByCalling)})}}),{reachable:a.length===0,entryPoint:i,blocks:a}}function FS(r){return Wa.includes(r.type)?r.type===n.FunctionDeclaration?!sw(r):!0:!1}function xS(r){if(n.ActionDescriptor===r.type){if(r.project.operationDeclarations.find(s=>s.id===r.id))return n.Operation;if(r.project.globalEventActionDescriptors.find(s=>s.id===r.id))return n.GlobalEvent;if(r.project.loopDeclarations.find(s=>s.id===r.id))return n.Loop;if(r.project.conditionDeclarations.find(s=>s.id===r.id))return n.Condition}return r.type}function rd(r,a){return r.type===n.BuiltInBaseEntity?r.name===a:!!ja(r).includes(a)}function kS(r,a){return r.type===n.BuiltInBaseEntity?r.name===a:!!La(r).includes(a)}function Fa(r,a){return r.type===n.BuiltInBaseEntity?r.name===a:!!ef(r).includes(a)}function ZS(r){const a=[];return r.entities.forEach(e=>{if(rd(e,S.PERSISTED_ENTITY)){a.push(e);return}}),p(a)}function qS(r){const a=[];return r.entities.forEach(e=>{if(rd(e,S.RELATIONAL_DATABASE)){a.push(e);return}}),p(a)}function JS(r){return r.type!==n.DefinitionEntity||r.abstract||!rd(r,S.PERSISTED_ENTITY)?null:(r==null?void 0:r.properties.find(e=>{var t;return((t=e.implements)==null?void 0:t.id)===k[n.BuiltInBaseEntity][S.PERSISTED_ENTITY].properties.primaryKey.id&&!e.abstract}))||null}function SS(r){if(r.type!==n.DefinitionEntity)return[];if(r.abstract)return[];if(!Fa(r,S.PERSISTED_ENTITY))return r.id==="a2d0ec83-72ce-4f54-b059-a39e018fa86c"&&console.log("Entity does not have persisted base entity",r),[];const a=[],e=r.properties.filter(t=>{var i;return((i=t.implements)==null?void 0:i.id)!==k[n.BuiltInBaseEntity][S.PERSISTED_ENTITY].properties.database.id&&!t.abstract});return a.push(...e),a}function WS(r){var e;if(!r||r.type!==n.DefinitionEntity||!Fa(r,S.PERSISTED_ENTITY))return null;const a=r.properties.find(t=>{var i;return((i=t.implements)==null?void 0:i.id)===k[n.BuiltInBaseEntity][S.PERSISTED_ENTITY].properties.database.id});return(e=a==null?void 0:a.getDefaultValue())==null?void 0:e.valueAsTypeSingle}function mt(r,a){var t;if(!pf.includes(a.type)||!r)return a.project||null;let e=a.project;return r.type===n.Project?e=r:((t=a.project)==null?void 0:t.id)!==r.project.id&&(e=r.project),e}function zS(r){switch(r){case n.Project:return m;case n.InstalledProject:return Kr;case n.DefinitionEntity:return on;case n.FunctionDeclaration:return xr;case n.GlobalEvent:return qr;case n.VariableInstance:return zr;case n.VariableDeclaration:return Yr;case n.InputMap:return Ki;case n.OutputMap:return Xi;case n.Condition:return Wr;case n.Operation:return Zr;case n.FunctionCall:return nn;case n.ReturnDeclaration:return ei;case n.ArgumentDeclaration:return Er;case n.PrimitiveEntity:return ii;case n.DataType:return kr;case n.Property:return Gr;case n.ActionDescriptor:return Se;case n.ReturnStatement:return Fr;case n.ContinueStatement:return Ut;case n.BreakStatement:return Jr;case n.Loop:return Sr;case n.Search:return Hr;case n.ValueDescriptor:return Ir;case n.InternalCall:return Xr;case n.LiteralValue:return Qr}return null}function YS(r){const a={added:{},updated:{},removed:{},affected:[],seenEntities:[],self:r==null?void 0:r.self};return r==null||r.added.forEach(e=>{a.added[e.id]=e}),r==null||r.updated.forEach(e=>{a.updated[e.id]=e}),r==null||r.removed.forEach(e=>{a.removed[e.id]=e}),a.affected=Array.from(new Set(r==null?void 0:r.affected.map(e=>e.id))),a}function ct(r,a){const e=$a(r.type);return e?!e.MUTABLE_META_PROPERTIES.every(i=>{const s=r[i],l=a[i];return l===void 0||s===l?!0:Array.isArray(s)&&Array.isArray(l)?s.length!==l.length?!1:s.every((o,d)=>o===l[d]):!1}):!1}function nd(r,a={}){if(r.type===n.Project)return[];if(!r.parent)return[];const e=_(r.parent);if(!e)return[];const t=a[e];return t?[t.id,...nd(t,a)]:[]}function HS(r){const a=[],e=new Set;return[...r.listAdded,...r.listUpdated,...r.listAffected].forEach(t=>{const i=Vt(t);!i||e.has(i.id)||(e.add(i.id),a.push(i))}),p(a)}function lw(r){const a=P7(),e=r.toJSON();a.safeParse(e).success;const i=r.implements.flatMap(y=>KS(r,y)),s=r.extends.flatMap(y=>XS(r,y)),l=eW(r),o=QS(r);r.methods.flatMap(y=>y.validate());const d=[...i,...s,...l,...o];return Ke(r.errors,d)}function dw(r,a){const e=a.properties.filter(s=>s.abstract),t=[];let i=[...r.properties];return e.forEach(s=>{const l=i.find(o=>{var d;return((d=o.implements)==null?void 0:d.id)===s.id});l?i=i.filter(o=>o.id!==l.id):t.push(s)}),t}function uw(r,a){const e=a.abstractMethods,t=[];let i=[...r.methods];return e.forEach(s=>{const l=i.find(o=>{var d;return((d=o.implements)==null?void 0:d.id)===s.id});l?i=i.filter(o=>o.id!==l.id):t.push(s)}),t}function KS(r,a){const e=[];if(!a.abstract){const y=de({id:r.id+"--"+F.ImplementingNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is implementing a non-abstract entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.ImplementingNonAbstractEntity,entity:r});return e.push(y.error),e}const t=a.properties.filter(y=>y.abstract),i=[];let s=[...r.properties];t.forEach(y=>{const c=s.find(E=>{var I;return((I=E.implements)==null?void 0:I.id)===y.id});c?s=s.filter(E=>E.id!==c.id):i.push(y)}),i.length&&i.forEach(y=>{const c=de({id:r.id+"--"+F.MissingPropertyImplementation+"--"+y.id,message:`Property "${y.name}" with id "${y.id}" of entity "${a.name}" with id "${a.id}" is not implemented when entity "${r.name}" with id "${r.id}" implements it`,issue:null,severity:D.Error,code:F.MissingPropertyImplementation,entity:r});e.push(c.error)});const l=[];let o=[...r.methods];a.abstractMethods.forEach(y=>{const c=o.find(E=>{var I;return((I=E.implements)==null?void 0:I.id)===y.id});c?o=o.filter(E=>E.id!==c.id):l.push(y)}),l.length&&l.forEach(y=>{const c=de({id:r.id+"--"+F.MissingMethodImplementation+"--"+y.id,message:`Method "${y.name}" with id "${y.id}" of entity "${a.name}" with id "${a.id}" is not implemented when entity "${r.name}" with id "${r.id}" implements it`,issue:null,severity:D.Error,code:F.MissingMethodImplementation,entity:r});e.push(c.error)});const d=[];a.properties.forEach(y=>{const c=s.find(E=>E.name===y.name);c&&d.push([c,y])}),d.length&&d.forEach(([y])=>{const c=de({id:r.id+"--"+$.PropertyOverwritesOtherSiblingWithSameName+"--"+y.id,message:`Property "${y.name}" with id "${y.id}" of entity "${r.name}" with id "${r.id}" overwrites the property with the same name from the base entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:$.PropertyOverwritesOtherSiblingWithSameName,entity:r});e.push(c.error)});const u=[];return a.methods.forEach(y=>{const c=o.find(E=>E.name===y.name);c&&u.push([c,y])}),u.length&&u.forEach(([y])=>{const c=de({id:r.id+"--"+$.MethodOverwritesOtherSiblingWithSameName+"--"+y.id,message:`Method "${y.name}" with id "${y.id}" of entity "${r.name}" with id "${r.id}" overwrites the method with the same name from the base entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:$.MethodOverwritesOtherSiblingWithSameName,entity:r});e.push(c.error)}),e}function XS(r,a){const e=[],t=[];if(!r.abstract&&a.abstract){const s=de({id:r.id+"--"+a.id+"--"+F.NonAbstractExtendingAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is not-abstract but is extending an abstract entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.NonAbstractExtendingAbstractEntity,entity:r,firstRelationship:a});return e.push(s.error),e}if(r.abstract&&!a.abstract){const s=de({id:r.id+"--"+a.id+"--"+F.AbstractExtendingNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is abstract but is extending an non-abstract entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.AbstractExtendingNonAbstractEntity,entity:r,firstRelationship:a});return e.push(s.error),e}r.properties.forEach(s=>{var o;const l=a.properties.find(d=>d.name===s.name);((o=s.implements)==null?void 0:o.id)!==(l==null?void 0:l.id)&&l&&t.push(s)}),t.length&&t.forEach(s=>{const l=de({id:r.id+"--"+$.PropertyOverwritesOtherSiblingWithSameName,message:`Property "${s.name}" with id "${s.id}" of entity "${r.name}" with id "${r.id}" overwrites the property with the same name from the extended entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:$.PropertyOverwritesOtherSiblingWithSameName,entity:r});e.push(l.error)});const i=[];return r.methods.forEach(s=>{var o;const l=a.methods.find(d=>d.name===s.name);((o=s.implements)==null?void 0:o.id)!==(l==null?void 0:l.id)&&l&&i.push(s)}),i.length&&i.forEach(s=>{const l=de({id:r.id+"--"+$.MethodOverwritesOtherSiblingWithSameName,message:`Method "${s.name}" with id "${s.id}" of entity "${r.name}" with id "${r.id}" overwrites the method with the same name from the extended entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:$.MethodOverwritesOtherSiblingWithSameName,entity:r});e.push(l.error)}),e}function QS(r){const a=[];if(!r.properties.length){const e=de({id:r.id+"--"+F.NoProperties,message:"No properties implemented",issue:null,severity:D.Warning,code:F.NoProperties,entity:r});a.push(e.error)}return r.properties.forEach(e=>{e.validate()}),a}function eW(r){const a=[];if(r.abstract){if(r.methods.length){const e=de({id:r.id+"--"+F.AbstractEntityWithNonAbstractMethods,message:`Entity "${r.name}" with id "${r.id}" is marked as abstract but has non-abstract methods`,issue:null,severity:D.Error,code:F.AbstractEntityWithNonAbstractMethods,entity:r});a.push(e.error)}if(r.properties.some(e=>!e.abstract)){const e=de({id:r.id+"--"+F.AbstractEntityWithNonAbstractProperties,message:`Entity "${r.name}" with id "${r.id}" is marked as abstract but has non-abstract properties`,issue:null,severity:D.Error,code:F.AbstractEntityWithNonAbstractProperties,entity:r});a.push(e.error),r.properties.forEach(t=>{if(!t.abstract){const i=de({id:r.id+"--"+F.StaticEntityWithNonStaticProperties+"--"+t.id,message:`Property "${t.name}" with id "${t.id}" of entity "${r.name}" with id "${r.id}" is not marked as abstract but the entity is marked as abstract`,issue:null,severity:D.Error,code:F.StaticEntityWithNonStaticProperties,entity:r});a.push(i.error)}})}}else{if(r.abstractMethods.length){const e=de({id:r.id+"--"+F.AbstractPropertyInNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is not marked as abstract but has abstract methods`,issue:null,severity:D.Error,code:F.AbstractPropertyInNonAbstractEntity,entity:r});a.push(e.error)}if(r.properties.some(e=>e.abstract)){const e=de({id:r.id+"--"+F.AbstractMethodInNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is not marked as abstract but has abstract properties`,issue:null,severity:D.Error,code:F.AbstractMethodInNonAbstractEntity,entity:r});a.push(e.error),r.properties.forEach(t=>{if(t.abstract){const i=de({id:r.id+"--"+F.AbstractMethodInNonAbstractEntity+"--"+t.id,message:`Property "${t.name}" with id "${t.id}" of entity "${r.name}" with id "${r.id}" is marked as abstract but the entity is not marked as abstract`,issue:null,severity:D.Error,code:F.AbstractMethodInNonAbstractEntity,entity:r});a.push(i.error)}})}}if(r.static&&r.properties.some(e=>!e.static)){const e=de({id:r.id+"--"+F.StaticEntityWithNonStaticProperties,message:`Entity "${r.name}" with id "${r.id}" is marked as static but has non-static properties`,issue:null,severity:D.Error,code:F.StaticEntityWithNonStaticProperties,entity:r});a.push(e.error),r.properties.forEach(t=>{if(!t.static){const i=de({id:r.id+"--"+F.NonStaticPropertyInStaticEntity+"--"+t.id,message:`Property "${t.name}" with id "${t.id}" of entity "${r.name}" with id "${r.id}" is not marked as static but the entity is marked as static`,issue:null,severity:D.Error,code:F.NonStaticPropertyInStaticEntity,entity:r});a.push(i.error)}})}return a}function tW(r,a){const e=[],t=qt(a);if(!a.abstract){const l=new Ye({id:r.id+"--"+a.id+"--"+F.ImplementingNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is implementing a non-abstract built-in entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.ImplementingNonAbstractEntity,entity:r,firstRelationship:a});e.push(l)}const i=r.implements.filter(l=>l.id!==a.id);if(r.abstract){const l=new Ye({id:r.id+"--"+a.id+"--"+F.AbstractEntityImplements,message:`Entity "${r.name}" with id "${r.id}" is marked as abstract and cannot implement built-in entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.AbstractEntityImplements,entity:r,firstRelationship:a});e.push(l)}if(r.static&&!a.static){const l=new Ye({id:r.id+"--"+a.id+"--"+F.StaticImplementingNonStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is marked as static and cannot implement non-static built-in entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.StaticImplementingNonStaticEntity,entity:r,firstRelationship:a});e.push(l)}if(!r.static&&a.static){const l=new Ye({id:r.id+"--"+a.id+"--"+F.NonStaticImplementingStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is not marked as static and cannot implement static built-in entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.NonStaticImplementingStaticEntity,entity:r,firstRelationship:a});e.push(l)}return i.length&&i.forEach(l=>{if(l.type===n.BuiltInBaseEntity){const o=t.filter(d=>d.id!==l.id);o.length&&o.forEach(d=>{if(d.id!==l.id){const u=new Ye({id:r.id+"--"+d.id+"--"+l.id+"--"+F.ImplementsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${d.name}" with id "${d.id}" but also implements entity "${l.name}" with id "${l.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ImplementsIncompatibleEntities,entity:r,firstRelationship:d,secondRelationship:l});e.push(u)}})}else{qt(l).forEach(y=>{const c=t.filter(E=>E.id!==y.id);c.length&&c.forEach(E=>{if(E.id!==y.id){const I=new Ye({id:r.id+"--"+E.id+"--"+y.id+"--"+F.ImplementsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${E.name}" with id "${E.id}" but also implements entity "${y.name}" with id "${y.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ImplementsIncompatibleEntities,entity:r,firstRelationship:E,secondRelationship:y});e.push(I)}})});const d=br(a.ownDeclaredProperties,l.ownDeclaredProperties,$.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation,$.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName);e.push(...d.errors);const u=br(a.abstractMethods,[...l.abstractMethods,...l.methods],$.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation,$.MethodOverwritesOtherImplementedEntitysMethodWithSameName);e.push(...u.errors)}}),p(r.extends.flatMap(l=>qt(l))).forEach(l=>{if(!t.find(o=>o.id===l.id)){const o=new Ye({id:r.id+"--"+a.id+"--"+l.id+"--"+F.ExtendsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${a.name}" with id "${a.id}" but also extends entity "${l.name}" with id "${l.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ExtendsIncompatibleEntities,entity:r,firstRelationship:a,secondRelationship:l});e.push(o)}}),e}function iW(r,a,e=!1){const t=[],i=qt(a);if(!r.abstract&&a.abstract){const y=de({id:r.id+"--"+a.id+"--"+F.NonAbstractExtendingAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is not-abstract but is extending an abstract entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.NonAbstractExtendingAbstractEntity,entity:r,firstRelationship:a});t.push(y.error)}if(r.abstract&&!a.abstract){const y=de({id:r.id+"--"+a.id+"--"+F.AbstractExtendingNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is abstract but is extending an non-abstract entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.AbstractExtendingNonAbstractEntity,entity:r,firstRelationship:a});t.push(y.error)}if(!r.static&&a.static){const y=de({id:r.id+"--"+a.id+"--"+F.NonStaticExtendingStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is not static but is extending a static entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.NonStaticExtendingStaticEntity,entity:r,firstRelationship:a});t.push(y.error)}if(r.static&&!a.static){const y=de({id:r.id+"--"+a.id+"--"+F.StaticExtendingNonStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is static but is extending an non-static entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.StaticExtendingNonStaticEntity,entity:r,firstRelationship:a});t.push(y.error)}if(!Ua(a)){const y=de({id:r.id+"--"+a.id+"--"+F.ExtendingNonInteractiveEntity,message:`Entity "${r.name}" with id "${r.id}" is extending an non-interactive entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.ExtendingNonInteractiveEntity,entity:r,firstRelationship:a});t.push(y.error)}const l=r.extends.filter(y=>y.id!==a.id);l.length&&l.forEach(y=>{if(y.type===n.BuiltInBaseEntity){const c=i.filter(E=>E.id!==y.id);c.length&&c.forEach(E=>{if(E.id!==y.id){const I=de({id:r.id+"--"+E.id+"--"+y.id+"--"+F.ExtendsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is extending built-in entity "${E.name}" with id "${E.id}" but also extends entity "${y.name}" with id "${y.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ExtendsIncompatibleEntities,entity:r,firstRelationship:E,secondRelationship:y});t.push(I.error)}})}else{qt(y).forEach(M=>{const g=i.filter(B=>B.id!==M.id);g.length&&g.forEach(B=>{if(B.id!==M.id){const G=new Ye({id:r.id+"--"+B.id+"--"+M.id+"--"+F.ImplementsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is extending built-in entity "${B.name}" with id "${B.id}" but also extends or implements entity "${M.name}" with id "${M.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ImplementsIncompatibleEntities,entity:r,firstRelationship:B,secondRelationship:M});t.push(G)}})});const E=!!qt(y).find(M=>M.id===a.id);let I=[...y.properties];E&&(I=I.filter(M=>!a.properties.find(g=>{var B;return g.id===M.id||g.name===M.name||g.id===((B=M.implements)==null?void 0:B.id)})));let O=[...y.methods];E&&(O=O.filter(M=>!a.methods.find(g=>{var B;return g.id===M.id||g.name===M.name||g.id===((B=M.implements)==null?void 0:B.id)})));const P=br(a.ownDeclaredProperties,I,$.PropertyOverwritesOtherExtendedEntitysPropertyWithSameImplementation,$.PropertyOverwritesOtherExtendedEntitysPropertyWithSameName);t.push(...P.errors);const V=br(a.abstractMethods,O,$.MethodOverwritesOtherExtendedEntitysMethodWithSameImplementation,$.MethodOverwritesOtherExtendedEntitysMethodWithSameName);t.push(...V.errors)}}),e&&console.log("self.implements.length",r.implements.length),r.implements.length&&r.implements.forEach(y=>{if(y.type===n.BuiltInBaseEntity){const c=i.filter(E=>E.id!==y.id);c.length&&c.forEach(E=>{if(E.id!==y.id){const I=new Ye({id:r.id+"--"+E.id+"--"+y.id+"--"+F.ImplementsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${E.name}" with id "${E.id}" but also implements entity "${y.name}" with id "${y.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ImplementsIncompatibleEntities,entity:r,firstRelationship:E,secondRelationship:y});t.push(I)}})}else{qt(y).forEach(O=>{const P=i.filter(V=>V.id!==O.id);P.length&&P.forEach(V=>{if(V.id!==O.id){const M=new Ye({id:r.id+"--"+V.id+"--"+O.id+"--"+F.ImplementsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${V.name}" with id "${V.id}" but also implements entity "${O.name}" with id "${O.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ImplementsIncompatibleEntities,entity:r,firstRelationship:V,secondRelationship:O});t.push(M)}})});const E=br(a.ownDeclaredProperties,y.ownDeclaredProperties,$.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation,$.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName);t.push(...E.errors);const I=br(a.abstractMethods,[...y.abstractMethods,...y.methods],$.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation,$.MethodOverwritesOtherImplementedEntitysMethodWithSameName);t.push(...I.errors)}});const o=br(r.ownDeclaredProperties,a.ownDeclaredProperties,$.PropertyOverwritesOtherSiblingWithSameImplementation,$.PropertyOverwritesOtherSiblingWithSameName);t.push(...o.errors);const d=br(a.methods,a.abstractMethods,$.MethodOverwritesOtherSiblingWithSameImplementation,$.MethodOverwritesOtherSiblingWithSameName);return t.push(...d.errors),p(r.extends.flatMap(y=>qt(y))).forEach(y=>{if(!i.find(c=>c.id===y.id)){const c=new Ye({id:r.id+"--"+a.id+"--"+y.id+"--"+F.ImplementsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is extending built-in entity "${a.name}" with id "${a.id}" but also extends entity "${y.name}" with id "${y.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ImplementsIncompatibleEntities,entity:r,firstRelationship:a,secondRelationship:y});t.push(c)}}),t}function rW(r){const a=[];return r.implements.forEach(e=>{if(!e.static){const t=new Ye({id:r.id+"--"+e.id+"--"+F.StaticImplementingNonStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is static but implements entity "${e.name}" with id "${e.id}" which is non-static`,issue:null,severity:D.Error,code:F.StaticImplementingNonStaticEntity,entity:r,firstRelationship:e});a.push(t)}}),r.extends.forEach(e=>{if(!e.static){const t=new Ye({id:r.id+"--"+e.id+"--"+F.StaticExtendingNonStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is static but extends entity "${e.name}" with id "${e.id}" which is non-static`,issue:null,severity:D.Error,code:F.StaticExtendingNonStaticEntity,entity:r,firstRelationship:e});a.push(t)}}),a}function nW(r){const a=[];if(r.implements.length){const e=new Ye({id:r.id+"--"+F.AbstractEntityImplements,message:`Entity "${r.name}" with id "${r.id}" cannot be marked as abstract because it implements other entities`,issue:null,severity:D.Error,code:F.AbstractEntityImplements,entity:r});a.push(e)}return r.extends.forEach(e=>{if(!e.abstract){const t=new Ye({id:r.id+"--"+e.id+"--"+F.AbstractExtendingNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is abstract but extends entity "${e.name}" with id "${e.id}" which is non-abstract`,issue:null,severity:D.Error,code:F.AbstractExtendingNonAbstractEntity,entity:r,firstRelationship:e});a.push(t)}}),a}function sW(r){const a=[];return r.extends.forEach(e=>{if(e.static){const t=new Ye({id:r.id+"--"+e.id+"--"+F.NonStaticExtendingStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is non-static but extends entity "${e.name}" with id "${e.id}" which is static`,issue:null,severity:D.Error,code:F.NonStaticExtendingStaticEntity,entity:r,firstRelationship:e});a.push(t)}}),a}function aW(r){const a=[];return r.extends.forEach(e=>{if(e.abstract){const t=new Ye({id:r.id+"--"+e.id+"--"+F.NonAbstractExtendingAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is non-abstract but extends entity "${e.name}" with id "${e.id}" which is abstract`,issue:null,severity:D.Error,code:F.NonAbstractExtendingAbstractEntity,entity:r,firstRelationship:e});a.push(t)}}),a}const oW=Object.freeze(Object.defineProperty({__proto__:null,getBaseMethodsNotImplemented:uw,getBasePropertiesNotImplemented:dw,validate:lw,validateCanBecomeAbstract:nW,validateCanBecomeNonAbstract:aW,validateCanBecomeNonStatic:sW,validateCanBecomeStatic:rW,validateCanExtendEntity:iW,validateCanImplementEntity:tW},Symbol.toStringTag,{value:"Module"}));function lW(r,a){const e=[];if(r.parent)if(r.id===r.parent)e.push(new w({id:`${r.id}--${r.parent}--${R.SelfReference}`,code:R.SelfReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to itself at 'parent'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,issue:null}));else{const t=a.get(r.parent);t?[n.Project,n.DataType].includes(t.type)||e.push(new w({id:`${r.id}--${r.parent}--${R.InvalidParentReference}`,code:R.InvalidParentReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a parent reference that isn't pointing to an entity of type 'project' or 'data-type'.`,issue:null})):e.push(new w({id:`${r.id}--${r.parent}--${R.ReferencedEntityNotFound}`,code:R.ReferencedEntityNotFound,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${r.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}return r.implements&&Array.isArray(r.implements)?r.implements.forEach(t=>{if(r.id===t){e.push(new w({id:`${r.id}--${t}--${R.SelfReference}`,code:R.SelfReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to itself at one of the 'implements' references. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,issue:null}));return}const i=a.get(t);i?[n.DefinitionEntity,n.BuiltInBaseEntity].includes(i.type)?i.abstract||e.push(new w({id:`${r.id}--${t}--${R.InvalidImplementsReference}`,code:R.InvalidImplementsReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'implements' reference that isn't pointing to an abstract entity.`,issue:null})):e.push(new w({id:`${r.id}--${t}--${R.InvalidImplementsReference}`,code:R.InvalidImplementsReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'implements' reference that isn't pointing to an entity of type 'definition-entity' or 'built-in-base-entity'.`,issue:null})):e.push(new w({id:`${r.id}--${t}--${R.ReferencedEntityNotFound}`,code:R.ReferencedEntityNotFound,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${t}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}):e.push(new w({id:`${r.id}--${$.InvalidObjectStructure}`,code:$.InvalidObjectStructure,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'implements' property that isn't an array.`,issue:null})),r.extends&&Array.isArray(r.extends)&&r.extends.forEach(t=>{const i=a.get(t);i?[n.DefinitionEntity,n.BuiltInBaseEntity].includes(i.type)?i.abstract&&e.push(new w({id:`${r.id}--${t}--${R.InvalidExtendsReference}`,code:R.InvalidExtendsReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'extends' reference that isn't pointing to a non-abstract entity. Did you want to use the property 'implements', which holds a list of references to absract entities, instead?`,issue:null})):e.push(new w({id:`${r.id}--${t}--${R.InvalidExtendsReference}`,code:R.InvalidExtendsReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'extends' reference that isn't pointing to an entity of type 'definition-entity' or 'built-in-base-entity'.`,issue:null})):e.push(new w({id:`${r.id}--${t}--${R.ReferencedEntityNotFound}`,code:R.ReferencedEntityNotFound,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${t}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}),e}var sd=(r=>(r.Extends="extends",r.Implements="implements",r))(sd||{});const Ue=class Ue extends lt{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"name");f(this,"description",null);f(this,"x");f(this,"y");f(this,"static");f(this,"abstract");f(this,"type",n.DefinitionEntity);f(this,"properties",[]);f(this,"methods",[]);f(this,"abstractMethods",[]);f(this,"extends",[]);f(this,"implements",[]);f(this,"project");f(this,"errors",[]);f(this,"parent");f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);f(this,"suggestedProperties",[]);f(this,"suggestedMethods",[]);this.initialData=e,this.project=t,this.id=e.id,this.name=e.name,this.description=e.description,this.x=e.x,this.y=e.y,this.static=e.static,this.abstract=e.abstract}static new(e=null){return{id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:(e==null?void 0:e.author)||m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DefinitionEntity,name:"",description:"",static:!1,abstract:!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[],x:0,y:0,parent:null}}static fromGenerationTarget(e,t){let i=t;if(e.parent){const u=_(e.parent);i=t.get(u)}const s=[];e.implements&&e.implements.forEach(u=>{s.push(t.get(u)||t.getBuiltIn(u))});const l=[];e.extends&&e.extends.forEach(u=>{l.push(t.get(u)||t.getBuiltIn(u))});const o={id:e.id,version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:e.name,type:n.DefinitionEntity,description:e.description,static:e.static,abstract:e.abstract,properties:[],methods:[],abstractMethods:[],extends:l,implements:s,x:0,y:0,parent:i},d=C(o,t);return d.setParent(i,null),d.initChildren(null),d}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const s=[],l=lW(i,t),o=Ac(i,t);s.push(...l,...o,...pt(i));const d=i.parent?t.get(i.parent):null;if(d&&d.type===n.DataType){const u=d;u.entity&&s.push(new w({id:`${e.id}--${R.NewEntityWouldOverriteExisting}`,code:R.NewEntityWouldOverriteExisting,severity:D.Error,message:`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${u.id}' because it already has an 'entity' child. Data type entities can only have one 'entity' as children.
|
|
405
|
+
You shouldn't have to manually update a 'parent' property. The equivalent result is to change its callers, the value writters of its inputs, or the value readers of its outputs.`,issue:null})),{errors:t,modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-dependents"))){const t=[],i=[],s=[],l=[];return Object.values(this.detachedDependents).forEach(o=>{const d=o.entity.afterAllChildrenInitialized(e);t.push(...d.updated),i.push(...d.added),s.push(...d.removed),l.push(...d.affected)}),e==null||e.attemptAutoclose("sync-dependents",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}onDetachedDependencyRemoved(e,t,i){const s=[],l=[],o=[],d=[];if(t==="declaration"){const{updated:u,added:y,removed:c}=this.remove({ignoreUpstream:!1},i);s.push(...u),l.push(...y),o.push(...c)}if(t==="parent"){const{updated:u,added:y,removed:c}=this.remove({ignoreUpstream:!1},i);s.push(...u),l.push(...y),o.push(...c)}return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}onDetachedDependencyRestored(e,t,i){const s=[],l=[],o=[],d=[];if(t==="declaration"){const{updated:u,added:y,removed:c}=this.restore({},i);s.push(...u),l.push(...y),o.push(...c)}if(t==="parent"){const{updated:u,added:y,removed:c}=this.restore({},i);s.push(...u),l.push(...y),o.push(...c)}return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}subscribeToDependencies(){var e;return(e=this.parent)==null||e.subscribeDependents([{entity:this,field:"parent"}]),this.declaration.subscribeDependents([{entity:this,field:"declaration"}]),this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=m.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new qe(this,this.project);return e.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,e):new Map([[this.version,e]]),e.inputs=this.inputs,e.outputs=this.outputs,e.error=this.error,e.successCalls=this.successCalls,e.errorCalls=this.errorCalls,e.process=this.process,e.declaration=this.declaration,e.calledBySuccess=this.calledBySuccess,e.calledByError=this.calledByError,e.calledByEntry=this.calledByEntry,e.parent=this.parent,this}recursiveCaptureUpstreamVersions(e){const t=[],i=[],s=[],l=[];if(this.parent){this.parent.increaseVersion(e);const o=this.parent.recursiveCaptureUpstreamVersions(e);t.push(this.parent,...o.updated),i.push(...o.added),s.push(...o.removed)}return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}async restoreVersion(e){var d;const t=[],i=[],s=[],l=[];if(this.version===e)return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this};if(!this.knownVersions){const u=new Map;for(const[y,c]of this.knownVersions||new Map){if(u.set(y,c),c.activeVersion=!1,c.knownVersions)for(const[E,I]of c.knownVersions)u.set(E,I);c.knownVersions=null}}let o=(d=this.knownVersions)==null?void 0:d.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new qe(u,this.project)}return this.metaSync(o.toShallowJSON(),null),this.inputs=o.inputs,this.outputs=o.outputs,this.error=o.error,this.successCalls=o.successCalls,this.errorCalls=o.errorCalls,this.process=o.process,this.declaration=o.declaration,this.calledBySuccess=o.calledBySuccess,this.calledByError=o.calledByError,this.calledByEntry=o.calledByEntry,this.parent=o.parent,{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}hydrateAncestors(){const e=[],t=[],i=[],s=[];if(this.initialData.parent){const l=_(this.initialData.parent),o=this.project.get(l);if(o)this.setParent(o,null),e.push(o);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${l}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);if(this.initialData.declaration){const l=_(this.initialData.declaration),o=this.project.get(l);o&&(this.setDeclaration(o),e.push(o))}return this.initialData.calledByEntry.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addEntryCaller(d,null),d.addCall(this,null),e.push(d))}),this.initialData.calledBySuccess.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addSuccessCaller(d,null),d.addSuccessCall(this,null),e.push(d))}),this.initialData.calledByError.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addErrorCaller(d,null),d.addErrorCall(this,null),e.push(d))}),{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}afterAllChildrenInitialized(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"after-all-children-initialized"))){const t=[],i=[],s=[],l=[];this.initialized=!0;const{updated:o,added:d,removed:u}=this.syncMissingFixedInputs(e),{updated:y,added:c,removed:E}=this.syncMissingFixedOutputs(e);return t.push(...o,...y),i.push(...d,...c),s.push(...u,...E),this.captureVersion(),e==null||e.attemptAutoclose("after-all-children-initialized",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}addSelfToProject(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-self-to-project"))){var o;const t=[this],i=[],s=[],l=[];return this.parent===this.project&&this.project.addFunctionCall(this),(o=this.process)==null||o.writesValues.forEach(d=>{d.setValueWriter(this.process,e),t.push(d)}),this.successCalls.forEach(d=>{d.addSuccessCaller(this,e),t.push(d)}),this.errorCalls.forEach(d=>{d.addErrorCaller(this,e),t.push(d)}),this.calledBySuccess.forEach(d=>{d.addSuccessCall(this,e),t.push(d)}),this.calledByError.forEach(d=>{d.addErrorCall(this,e),t.push(d)}),this.calledByEntry.forEach(d=>{d.addCall(this,e),t.push(d)}),this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-input"))){const i=this.inputs.findIndex(s=>s.id===e.id);return i>-1&&(this.inputs.splice(i,1),t&&(t==null||t.add(this,b.Affected))),t==null||t.attemptAutoclose("remove-input",this.id),this}addInput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-input"))){return this.inputs.includes(e)?(t==null||t.attemptAutoclose("add-input",this.id),this):(this.inputs.push(e),t==null||t.add(this,b.Affected),t==null||t.attemptAutoclose("add-input",this.id),this)}addOutput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-output"))){return this.outputs.includes(e)?(t==null||t.attemptAutoclose("add-output",this.id),this):(this.outputs.push(e),t==null||t.add(this,b.Affected),t==null||t.attemptAutoclose("add-output",this.id),this)}removeOutput(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-output"))){const i=this.outputs.findIndex(s=>s.id===e.id);return i>-1&&(this.outputs.splice(i,1),t&&(t==null||t.add(this,b.Affected))),t==null||t.attemptAutoclose("remove-output",this.id),this}addValueReader(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-value-reader"))){var i;return this.process&&!this.process.writesValues.includes(e)&&((i=this.process)==null||i.addValueReader(e,t),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("add-value-reader",this.id),this}removeValueReader(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-value-reader"))){var i;return this.process&&this.process.writesValues.includes(e)&&((i=this.process)==null||i.removeValueReader(e,t),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("remove-value-reader",this.id),this}addSuccessCaller(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-success-caller")),i=!1){return this.calledBySuccess.find(s=>s.id===e.id)||(this.calledBySuccess.push(e),t==null||t.add(this,b.Updated),i&&K(this,t)),t==null||t.attemptAutoclose("add-success-caller",this.id),this}addErrorCaller(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-error-caller")),i=!1){return this.calledByError.find(s=>s.id===e.id)||(this.calledByError.push(e),t==null||t.add(this,b.Updated),i&&K(this,t)),t==null||t.attemptAutoclose("add-error-caller",this.id),this}addEntryCaller(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-entry-caller")),i=!1){return this.calledByEntry.find(s=>s.id===e.id)||(this.calledByEntry.push(e),t==null||t.add(this,b.Updated),i&&K(this,t)),t==null||t.attemptAutoclose("add-entry-caller",this.id),this}addErrorCall(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-error-call")),i=!1){return this.errorCalls.find(s=>s.id===e.id)||(this.errorCalls.push(e),i&&K(this,t),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("add-error-call",this.id),this}addSuccessCall(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-success-call")),i=!1){return this.successCalls.find(s=>s.id===e.id)||(this.successCalls.push(e),i&&K(this,t),t==null||t.add(this,b.Affected)),t==null||t.attemptAutoclose("add-success-call",this.id),this}removeCall(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-call")),i=!1){const s=this.successCalls.findIndex(o=>o.id===e.id);s>-1&&(this.successCalls.splice(s,1),t==null||t.add(this,b.Affected));const l=this.errorCalls.findIndex(o=>o.id===e.id);return l>-1&&(this.errorCalls.splice(l,1),t==null||t.add(this,b.Affected)),i&&K(this,t),t==null||t.attemptAutoclose("remove-call",this.id),this}removeCaller(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-caller")),i=!1){return this.calledBySuccess=this.calledBySuccess.filter(s=>s.id!==e.id?!0:(t==null||t.add(this,b.Updated),t==null||t.add(s,b.Affected),!1)),this.calledByError=this.calledByError.filter(s=>s.id!==e.id?!0:(t==null||t.add(this,b.Updated),t==null||t.add(s,b.Affected),!1)),this.calledByEntry=this.calledByEntry.filter(s=>s.id!==e.id?!0:(t==null||t.add(this,b.Updated),t==null||t.add(s,b.Affected),!1)),i&&K(this,t),t==null||t.attemptAutoclose("remove-caller",this.id),this}setParent(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-parent"))){var i;return((i=this.parent)==null?void 0:i.id)!==(e==null?void 0:e.id)&&(this.parent=e,t&&(t==null||t.add(this,b.Updated),t==null||t.attemptAutoclose("set-parent",this.id))),this}setDeclaration(e){return this.declaration=e,this}initChildren(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"init-children"))){if(this.initialized||this.startedInitialization)return this;if(this.startedInitialization=!0,this.initialData.declaration.type===n.FunctionDeclaration){const t=C(this.initialData.declaration,this.project);this.declaration=t}else{const t=_(this.initialData.declaration),i=this.project.get(t);this.declaration=i}return this.successCalls=this.initialData.successCalls.map(t=>{const i=C(t,this.project);if(i.addSuccessCaller(this),[n.BreakStatement,n.ContinueStatement].includes(i.type))i.setParent(this.parent.parent,null),i.initChildren(e);else if(i.type===n.ReturnStatement){const s=It(this,this.project);i.setParent(s,null),i.initChildren(e)}else i.type!==n.InternalCall&&(i.setParent(this.parent,null),i.initChildren(e));return i}),this.errorCalls=this.initialData.errorCalls.map(t=>{const i=C(t,this.project);if(i.addErrorCaller(this),[n.BreakStatement,n.ContinueStatement].includes(i.type))i.setParent(this.parent.parent,null),i.initChildren(e);else if(i.type===n.ReturnStatement){const s=It(this,this.project);i.setParent(s,null),i.initChildren(e)}else i.type!==n.InternalCall&&(i.setParent(this.parent,null),i.initChildren(e));return i}),this.inputs=this.initialData.inputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.initialData.process&&(this.process=C(this.initialData.process,this.project),this.process.setParent(this,null),this.process.initChildren(e)),this.initialData.error&&(this.error=C(this.initialData.error,this.project),this.error.setParent(this,null),this.error.initChildren(e)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"meta-sync"))){const i=ct(this,e),s=this.toMeta();return this.x=e.x||s.x,this.y=e.y||s.y,super.metaSync(e),e.deleted===!0&&!s.deleted?t==null||t.add(this,b.Removed):e.deleted===!1&&s.deleted?t==null||t.add(this,b.Added):i&&(t==null||t.add(this,b.Updated)),t==null||t.attemptAutoclose("meta-sync",this.id),this}async APILoad(e=U,...t){return await qe.repository.APILoad(this.id,...t),this}async APICreate(e=U,...t){return await qe.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=U,...t){return await qe.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=U,...t){return await qe.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=U,...t){return await qe.repository.APIClone(this.id,...t),this}async APILoadVersion(e=U,t,...i){return await qe.repository.APILoadVersion(this.id,t,...i)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-entity"))){var d;const i=[],s=[],l=[],o=[];if(t!=null&&t.hasRemoved(this.id))return t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(s.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},t),Object.values(this.detachedDependents).forEach(u=>{const{updated:y,removed:c,added:E}=u.entity.onDetachedDependencyRemoved(this,u.field,t);i.push(...y),s.push(...c),l.push(...E)}),this.process){const{updated:u,removed:y}=(d=this.process)==null?void 0:d.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}if(this.inputs.forEach(u=>{const{updated:y,removed:c}=u.remove({ignoreUpstream:!0},t);i.push(...y),s.push(...c)}),this.outputs.forEach(u=>{const{updated:y,removed:c}=u.remove({ignoreUpstream:!0},t);i.push(...y),s.push(...c)}),this.error){const{updated:u,removed:y}=this.error.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}return this.successCalls.forEach(u=>{i.push(u),u.removeCaller(this,t)}),this.errorCalls.forEach(u=>{i.push(u),u.removeCaller(this,t)}),e||this.calledBy.forEach(u=>{i.push(u),u.removeCall(this,t)}),t==null||t.attemptAutoclose("remove-entity",this.id),{added:p(l),updated:p(i),removed:p(s),affected:p(o),self:this}}restore({}={},e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"restore-entity"))){const t=[],i=[],s=[],l=[];if(e!=null&&e.hasAdded(this.id))return e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},e),Object.values(this.detachedDependents).forEach(o=>{const{updated:d,removed:u,added:y}=o.entity.onDetachedDependencyRestored(this,o.field,e);i.push(...d),s.push(...u),t.push(...y)}),this.process){const{updated:o}=this.process.restore({},e);i.push(...o)}return this.inputs.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),this.outputs.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),this.successCalls.forEach(o=>{i.push(o),o.addSuccessCaller(this,e)}),this.errorCalls.forEach(o=>{i.push(o),o.addErrorCaller(this,e)}),this.calledBySuccess.forEach(o=>{i.push(o),o.addSuccessCall(this,e)}),this.calledByError.forEach(o=>{i.push(o),o.addErrorCall(this,e)}),this.calledByEntry.forEach(o=>{i.push(o),o.addCall(this,e)}),e==null||e.attemptAutoclose("restore-entity",this.id),{added:p(t),updated:p(i),removed:p(s),affected:p(l),self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.successCalls.flatMap(i=>i.toFlat(e)),...this.errorCalls.flatMap(i=>i.toFlat(e)),...this.inputs.flatMap(i=>i.toFlat(e)),...this.outputs.flatMap(i=>i.toFlat(e)),...this.process?this.process.toFlat(e):[],...this.error?this.error.toFlat(e):[],...this.calledBy.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.successCalls.flatMap(i=>i.toFlatIds(e)),...this.errorCalls.flatMap(i=>i.toFlatIds(e)),...this.inputs.flatMap(i=>i.toFlatIds(e)),...this.outputs.flatMap(i=>i.toFlatIds(e))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,x:this.x,y:this.y,type:this.type}}toJSON(e=new Set){var t,i;return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,successCalls:this.successCalls.map(s=>s.toJSON(e)),errorCalls:this.errorCalls.map(s=>s.toJSON(e)),calledBySuccess:this.calledBySuccess.map(s=>s.toReference()),calledByError:this.calledByError.map(s=>s.toReference()),calledByEntry:this.calledByEntry.map(s=>s.toReference()),process:(t=this.process)==null?void 0:t.toJSON(e),declaration:this.declaration.toJSON(e),inputs:this.inputs.map(s=>s.toJSON(e)),outputs:this.outputs.map(s=>s.toJSON(e)),parent:this.parent.toReference(),error:(i=this.error)==null?void 0:i.toJSON(e)})}toJSONClone(e=J){var i,s,l,o,d,u,y;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||ht(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(s=e.seenEntities)!=null&&s.has(t)||(l=e.seenEntities)!=null&&l.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(d=e.seenEntities)==null||d.add(this.id),{id:t,version:m.UUID.uuid(),createdAt:e.timestamp||T().toISOString(),previousVersion:null,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,successCalls:this.successCalls.map(c=>c.toJSONClone({...e,newId:null})),errorCalls:this.errorCalls.map(c=>c.toJSONClone({...e,newId:null})),calledBySuccess:this.calledBySuccess.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),calledByError:this.calledByError.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),calledByEntry:this.calledByEntry.map(c=>c.toReference({seenEntityMaps:e.seenEntityMaps})),process:(u=this.process)==null?void 0:u.toJSONClone({...e,newId:null}),declaration:this.declaration.toJSONClone({...e,newId:null}),inputs:this.inputs.map(c=>c.toJSONClone({...e,newId:null})),outputs:this.outputs.map(c=>c.toJSONClone({...e,newId:null})),error:(y=this.error)==null?void 0:y.toJSONClone({...e,newId:null}),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=J){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=J){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,x:this.x,y:this.y,process:this.process?this.process.toReference(e):null,inputs:this.inputs.map(s=>s.toReference(e)),outputs:this.outputs.map(s=>s.toReference(e)),declaration:this.declaration.toReference(e),successCalls:this.successCalls.map(s=>s.toReference(e)),errorCalls:this.errorCalls.map(s=>s.toReference(e)),calledBySuccess:this.calledBySuccess.map(s=>s.toReference(e)),calledByError:this.calledByError.map(s=>s.toReference(e)),calledByEntry:this.calledByEntry.map(s=>s.toReference(e)),error:this.error?this.error.toReference(e):null,parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.successCalls.flatMap(i=>i.toFlatJSON(e)),...this.errorCalls.flatMap(i=>i.toFlatJSON(e)),...this.inputs.flatMap(i=>i.toFlatJSON(e)),...this.outputs.flatMap(i=>i.toFlatJSON(e)),...this.process?this.process.toFlatJSON(e):[],...this.error?this.error.toFlatJSON(e):[]])}toGenerationTarget(){const e=this.parent.type===n.Project?void 0:this.parent.id;return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,calledByEntry:this.calledByEntry.map(t=>t.id),calledBySuccess:this.calledBySuccess.map(t=>t.id),calledByError:this.calledByError.map(t=>t.id),declaration:this.declaration.id,parent:e}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.successCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.errorCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.inputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.outputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.process?this.process.toFlatGenerationTarget(e):[],...this.error?this.error.toFlatGenerationTarget(e):[]])}clearErrors(){var e,t;return this.errors=[],this.inputs.forEach(i=>i.clearErrors()),this.outputs.forEach(i=>i.clearErrors()),this.successCalls.forEach(i=>i.clearErrors()),this.errorCalls.forEach(i=>i.clearErrors()),(e=this.process)==null||e.clearErrors(),(t=this.error)==null||t.clearErrors(),this}validate(){const e=X1(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.inputs.flatMap(t=>t.getErrors()),...this.outputs.flatMap(t=>t.getErrors()),...this.error?this.error.getErrors():[],...this.process?this.process.getErrors():[]]}getShallowErrors(){return this.errors}clone(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"clone-entity")),t=null,i=null,s=!0){var O,P;let l=mt(t,this);const o=this.toJSON(),d=i||m.UUID.uuid();o.inputs=[];const u=d.split("-id"),y=u[u.length-1||0]||d;o.id=d,o.version=m.UUID.uuid(),o.createdAt=(e==null?void 0:e.timestamp)||T().toISOString(),o.author=(e==null?void 0:e.author)||"1",o.previousVersion=null,o.deleted=!1;const c=nt(o,l);t?c.setParent(t,null):c.setParent(this.parent,null),s&&c.subscribe(),c.initChildren(e),e==null||e.add(c,b.Added);const E=(O=this.inputs)==null?void 0:O.map((V,M)=>V.clone(e,c,y+"-input-map-"+M+"-id",s));c.inputs=E;const I=(P=this.outputs)==null?void 0:P.map((V,M)=>V.clone(e,c,y+"-output-map-"+M+"-id",s));return c.outputs=I,this.error&&(c.error=this.error.clone(e,c,y+"-error-map-id",s)),this.process&&(c.process=this.process.clone(e,c,y+"-process-id",s)),e==null||e.attemptAutoclose("clone-entity",this.id),c}removeUnrecognizedInputs(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-unrecognized-inputs"))){const t=[],i=[],s=[],l=[];return this.inputs.forEach(o=>{if(!this.declaration.inputs.find(u=>{var y;return u.id===((y=o.declaration)==null?void 0:y.id)})){const u=o.remove({ignoreUpstream:!1},e);s.push(...u.removed),t.push(...u.updated)}}),e==null||e.attemptAutoclose("remove-unrecognized-inputs",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}removeUnrecognizedOutputs(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-unrecognized-outputs"))){const t=[],i=[],s=[],l=[];return this.outputs.forEach(o=>{if(!this.declaration.getUniqueReturnDeclarations().find(u=>{var y;return u.id===((y=o.declaration)==null?void 0:y.id)})){const u=o.remove({ignoreUpstream:!1},e);s.push(...u.removed),t.push(...u.updated)}}),e==null||e.attemptAutoclose("remove-unrecognized-outputs",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}syncMissingFixedInputs(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-missing-fixed-inputs"))){const t=[],i=[],s=[],l=[],o=this.declaration.inputs.filter(c=>!this.inputs.find(E=>E.declaration.id===c.id));this.inputs.sort((c,E)=>c.index-E.index),o.forEach(c=>{this.inputs.forEach(O=>{O.index>=c.index&&O.metaSync({index:O.index+1},e)});const E={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.InputMap,declaration:c.toJSON(),readsValue:null,defaultValue:null,index:c.index,name:null,description:null,parent:this.toReference()},I=C(E,this.project);I.setParent(this,e),I.initChildren(e),e==null||e.add(I,b.Added),I.addSelfToProject(e),i.push(I)}),this.inputs.sort((c,E)=>c.index-E.index);const{updated:d,added:u,removed:y}=this.removeUnrecognizedInputs(e);return t.push(...d),i.push(...u),s.push(...y),e==null||e.attemptAutoclose("sync-missing-fixed-inputs",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}syncMissingFixedOutputs(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-missing-fixed-outputs"))){const t=[],i=[],s=[],l=[],o=[];this.outputs=this.initialData.outputs.map(E=>{const I=C(E,this.project);return o.push(I.index),I.setParent(this,null),I.initChildren(e),I});const d=this.declaration.getUniqueReturnDeclarations().filter(E=>!this.outputs.find(I=>I.declaration.id===E.id));this.outputs.sort((E,I)=>E.index-I.index),d.forEach((E,I)=>{this.outputs.forEach(M=>{M.index>=E.index&&M.index++});const O=o.includes(E.index)?this.outputs.length-1+I:E.index,P={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.OutputMap,declaration:E.toJSON(),defaultValue:null,writesValues:[],index:O,parent:this.toReference()},V=C(P,this.project);V.setParent(this,e),V.initChildren(e),e==null||e.add(V,b.Added),V.addSelfToProject(e)}),this.outputs.sort((E,I)=>E.index-I.index);const{updated:u,added:y,removed:c}=this.removeUnrecognizedOutputs(e);return t.push(...u),i.push(...y),s.push(...c),e==null||e.attemptAutoclose("sync-missing-fixed-outputs",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}};f(qe,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...i)=>null}),f(qe,"type",n.FunctionCall),f(qe,"USER_MANAGED_PARENT_TYPES",[...ut,n.Project]),f(qe,"PARENT_TYPES",[...qe.USER_MANAGED_PARENT_TYPES]),f(qe,"MUTABLE_BASE_PROPERTIES",[]),f(qe,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(qe,"BASE_PROPERTIES",[...qe.MUTABLE_BASE_PROPERTIES,...qe.INMUTABLE_BASE_PROPERTIES]),f(qe,"MUTABLE_META_PROPERTIES",["x","y"]),f(qe,"INMUTABLE_META_PROPERTIES",[...qe.INMUTABLE_BASE_PROPERTIES]),f(qe,"META_PROPERTIES",[...qe.MUTABLE_META_PROPERTIES,...qe.INMUTABLE_META_PROPERTIES]),f(qe,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),f(qe,"INMUTABLE_UPSTREAM_PROPERTIES",["declaration","parent"]),f(qe,"UPSTREAM_PROPERTIES",[...qe.MUTABLE_UPSTREAM_PROPERTIES,...qe.INMUTABLE_UPSTREAM_PROPERTIES]),f(qe,"MUTABLE_DOWNSTREAM_PROPERTIES",["successCalls","errorCalls","writesValues","inputs","outputs","error"]),f(qe,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(qe,"DOWNSTREAM_PROPERTIES",[...qe.MUTABLE_DOWNSTREAM_PROPERTIES,...qe.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(qe,"PROPERTIES",[...qe.META_PROPERTIES,...qe.UPSTREAM_PROPERTIES,...qe.DOWNSTREAM_PROPERTIES]);let nn=qe;function qc(r){return r&&typeof r.then=="function"}class zl{constructor(a){f(this,"order",[]);f(this,"flatRecord",{});f(this,"allBuiltInEntityIds",Ui());f(this,"onGoingVisits",{});this.flatten(a),this.orderEntities()}flatten(a){const e=new Set(Ui()),t=p(j(a,e,{ignoreBuiltInBaseEntities:!0})),i=new Set;for(const s of t)this.flatRecord[s.id]=s,i.add(s.id);this.order=Array.from(i)}moveEntityAfterDependencies(a){const{upstream:e}=Ql(a,this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds});for(const t of Object.keys(e)){const i=this.order.indexOf(t),s=this.order.indexOf(a.id);if(i>s)return this.order.splice(s,1),this.order.splice(i,0,a.id),!0}return!1}orderEntities(){let a=!1;for(let e=0;e<this.order.length;e++){const t=this.order[e],i=this.flatRecord[t];if(this.moveEntityAfterDependencies(i)){a=!0;break}}a&&this.orderEntities()}getUpstreamOngoingDependenciesVisits(a,e){const{upstream:t}=Ql(this.flatRecord[a],this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds}),i={};return Object.entries(this.onGoingVisits[e]||{}).forEach(([s,l])=>{Object.keys(t).includes(s)&&(i[s]=l)}),i}getDownstreamOngoingDependenciesVisits(a,e){const t=Object.keys(this.onGoingVisits[e]||{}),i=new Set(t.flatMap(l=>Object.keys(Ql(this.flatRecord[l],this.flatRecord,{ignoreBuiltInBaseEntities:!0,allBuiltInEntityIds:this.allBuiltInEntityIds}).downstream))),s={};return Array.from(i).forEach(l=>{l===a&&(s[l]=this.onGoingVisits[e][l])}),s}async settlePromises(a,e){const t=Object.values(a);t.length&&await Promise.all(t),Object.keys(a).forEach(i=>{delete this.onGoingVisits[e][i]})}visit(a){const e=this.order;for(const t of e)a(this.flatRecord[t],this.flatRecord);return this}reverseVisit(a){const e=this.order.slice().reverse();for(const t of e)a(this.flatRecord[t],this.flatRecord);return this}async visitAsync(a){const e=this.order,t=Math.random().toString(36).substring(7);this.onGoingVisits[t]={};for(const i of e){const s=this.getUpstreamOngoingDependenciesVisits(i,t);Object.keys(s).length&&await this.settlePromises(s,t);const l=a(this.flatRecord[i],this.flatRecord);qc(l)&&(this.onGoingVisits[t][i]=l)}return await this.settlePromises(this.onGoingVisits[t],t),this.onGoingVisits[t]={},this}async reverseVisitAsync(a){const e=this.order.slice().reverse(),t=Math.random().toString(36).substring(7);this.onGoingVisits[t]={};for(const i of e){const s=this.getDownstreamOngoingDependenciesVisits(i,t);Object.keys(s).length&&await this.settlePromises(s,t);const l=a(this.flatRecord[i],this.flatRecord);qc(l)&&(this.onGoingVisits[t][i]=l)}return await this.settlePromises(this.onGoingVisits[t],t),this.onGoingVisits[t]={},this}}function eP(r,a){switch(r.id){case k["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id:{const e=r.project.entities.filter(d=>!!d.implements.find(u=>u.id===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id));if(e.find(d=>!!d.properties.find(u=>{var y;return u.implements&&u.implements.id===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id&&((y=u.getDefaultValue())==null?void 0:y.value)===!0}))){const u=e[0].properties.find(c=>c.implements&&c.implements.id===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id),y=u==null?void 0:u.defaultValue;if(y)y.value=!0;else if(u!=null&&u.dataType){const c={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.LiteralValue,name:L.EntityTemplate,autogeneration:null,value:!0,valueAsTypeSingle:null,valueAsTypeList:null,parent:u==null?void 0:u.dataType.toReference()},E=C(c,r.project);return E.setParent(u==null?void 0:u.dataType,a),E.initChildren(a),a==null||a.add(E,b.Added),E.addSelfToProject(a),{newEntities:[E]}}return{newEntities:[]}}const i=r.project.get(k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id),s=Yl(i,"Main database",a);if(s.errors.length>0)return{newEntities:[]};const l=s.properties.find(d=>d.implements&&d.implements.id===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id),o=l==null?void 0:l.defaultValue;if(o)o.value=!0;else if(l!=null&&l.dataType){const d={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.LiteralValue,name:L.EntityTemplate,autogeneration:null,value:!0,valueAsTypeSingle:null,valueAsTypeList:null,parent:l==null?void 0:l.dataType.toReference()},u=C(d,r.project);u.setParent(l==null?void 0:l.dataType,a),u.initChildren(a),a==null||a.add(u,b.Added),u.addSelfToProject(a)}return{newEntities:[s]}}}return{newEntities:[]}}function tP(r,a){const e=[],t=[],i=[],s=[];return r.implements.filter(o=>o.type===n.BuiltInBaseEntity).forEach(o=>{var d;switch(o.id){case k["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id:{let y=r.project.entities.filter(I=>I.implements.find(O=>O.id===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id)).find(I=>!!I.properties.find(O=>{var P;return O.implements&&O.implements.id===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id&&((P=O.getDefaultValue())==null?void 0:P.value)===!0}));if(!y){y=r.project.getBuiltIn(k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id).implement("Relational database",a);const O=y.properties.find(P=>{var V;return((V=P.implements)==null?void 0:V.id)===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id});(d=O==null?void 0:O.defaultValue)==null||d.metaSync({value:!0},a),t.push(y)}const c=r.properties.find(I=>I.implements&&I.implements.id===k["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.properties.database.id),E=c==null?void 0:c.defaultValue;if(c&&!E){const I={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(a==null?void 0:a.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.LiteralValue,name:L.EntityTemplate,autogeneration:null,value:null,valueAsTypeSingle:y,valueAsTypeList:null,parent:c==null?void 0:c.toReference()},O=C(I,r.project);O.hydrateAncestors(),O.setParent(c,a),O.addSelfToProject(a),O.initChildren(a),a==null||a.add(O,b.Added),t.push(O);return}else E&&E.setValueAsTypeSingle(y,a);return}}}),{self:r,updated:p(e),added:p(t),removed:p(i),affected:p(s)}}function Yl(r,a,e,t){const i=t||m.UUID.uuid(),s=m.UUID.uuid(),l={id:i,version:s,createdAt:(e==null?void 0:e.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:a,type:n.DefinitionEntity,description:null,static:r.static,abstract:!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[r.toJSON()],x:0,y:0,parent:r.project.toReference()};eP(r,e);const o=C(l,r.project);return o.hydrateAncestors(),e==null||e.add(o,b.Added),o.addSelfToProject(e),o.addImplementation(r),o.setParent(r.project,e),o.initChildren(e),tP(o,e),o}function Jc(r,a){return a.entities.find(i=>{const s=i.properties,l=s.map(c=>c.name),o=r.every(c=>l.includes(c)),d=l.filter(c=>!r.includes(c)),u=s.every(c=>!d.includes(c.name)||!c.required);return o&&u})||null}function iP(r,a,e,t=Pt.OrDataTypeGroup){const i=[],s=[],l=[],o=[],u={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,entity:r.toJSON(),isList:!1,asType:null,andChildrenGroup:null,orChildrenGroup:null,staticEntities:null,interactiveEntities:null,actionEntities:null,like:!0,inferred:!1,parentRelationType:t,parent:a.toReference()},y=C(u,r.project);return s.push(y),y.setParent(a,e),y.initChildren(e),e==null||e.add(y,b.Added),y.setEntity(r),y.addSelfToProject(e),{updated:p(i),added:p(s),removed:p(l),affected:p(o),self:y}}function Sc(r,a,e,t,i){var u,y,c,E,I,O,P,V;const s=[],l=[],o=[],d=[];switch(typeof r){case"string":let M=!1;const g=new Date(r);if(g instanceof Date&&!isNaN(g.valueOf())&&(M=!0),M){const B=a.project.getBuiltIn(k[n.PrimitiveEntity][L.Date].id);a.setEntity(B);break}else{const B=a.project.getBuiltIn(k[n.PrimitiveEntity][L.String].id);a.setEntity(B);break}case"number":a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.Number].id));break;case"boolean":a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.Boolean].id));break;case"object":if(r===null){a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.Null].id));break}else if(Array.isArray(r))if(a.metaSync({isList:!0},t),r.length>0){const B=r.slice(0,5).filter(q=>q!==void 0);if(B.every(q=>typeof q==typeof B[0])&&(typeof B[0]!="object"||B[0]===null))switch(typeof B[0]){case"string":a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.String].id));break;case"number":a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.Number].id));break;case"boolean":a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.Boolean].id));break;case"object":a.setEntity(a.project.getBuiltIn(k[n.PrimitiveEntity][L.Null].id));break}else{const q=[];let W=!1;B.forEach(pe=>{var Ee,Q,le,ri;if(Array.isArray(pe)&&(W=!0),typeof pe=="object"&&!Array.isArray(pe)&&pe!==null){const tr=Hl(pe,a.project,{...e,id:m.UUID.uuid()},t,i);tr.hasCreated&&q.push((Ee=tr.changeSet)==null?void 0:Ee.self),s.push(...(Q=tr.changeSet)==null?void 0:Q.updated),l.push(...(le=tr.changeSet)==null?void 0:le.added),o.push(...(ri=tr.changeSet)==null?void 0:ri.removed)}});const X=p(q);if(!X.length&&!W){B.forEach(pe=>{const Ee={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,entity:null,isList:!1,asType:null,andChildrenGroup:null,orChildrenGroup:null,staticEntities:!1,interactiveEntities:!0,actionEntities:!1,like:!0,inferred:!1,parentRelationType:Pt.OrDataTypeGroup,parent:a.toReference()},Q=C(Ee,a.project);switch(Q.setParent(a,t),Q.initChildren(t),t==null||t.add(Q,b.Added),Q.addSelfToProject(t),typeof pe){case"string":Q.setEntity(Q.project.getBuiltIn(k[n.PrimitiveEntity][L.String].id));break;case"number":Q.setEntity(Q.project.getBuiltIn(k[n.PrimitiveEntity][L.Number].id));break;case"boolean":Q.setEntity(Q.project.getBuiltIn(k[n.PrimitiveEntity][L.Boolean].id));break;case"object":Q.setEntity(Q.project.getBuiltIn(k[n.PrimitiveEntity][L.Null].id));break}});break}else X.length===1&&!W?a.setEntity(X[0]):B.forEach(pe=>{if(typeof pe=="object"&&!Array.isArray(pe)&&pe!==null){const Ee=Jc(Object.keys(pe),a.project);if(Ee){const Q=iP(Ee||X[0],a,t,Pt.OrDataTypeGroup);s.push(...Q.updated),l.push(...Q.added),o.push(...Q.removed)}}else{const Ee={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,options:null,implementationChooseOne:!1,entity:null,isList:Array.isArray(pe),asType:null,andChildrenGroup:null,orChildrenGroup:null,staticEntities:!1,interactiveEntities:!0,actionEntities:!1,like:!0,inferred:!1,parentRelationType:Pt.OrDataTypeGroup,parent:a.toReference()},Q=C(Ee,a.project);Q.setParent(a,t),Q.initChildren(t),t==null||t.add(Q,b.Added),Q.addSelfToProject(t);const le=Sc(pe,Q,{...e,id:m.UUID.uuid()},t,i);s.push(...le.updated),l.push(...le.added),o.push(...le.removed)}})}}else{const B=Hl(r[0],a.project,{...e},t,i);a.setEntity((u=B.changeSet)==null?void 0:u.self),s.push(...(y=B.changeSet)==null?void 0:y.updated),l.push(...(c=B.changeSet)==null?void 0:c.added),o.push(...(E=B.changeSet)==null?void 0:E.removed);break}else{const B=Hl(r,a.project,{...e},t,i);a.setEntity((I=B.changeSet)==null?void 0:I.self),s.push(...(O=B.changeSet)==null?void 0:O.updated),l.push(...(P=B.changeSet)==null?void 0:P.added),o.push(...(V=B.changeSet)==null?void 0:V.removed);break}}return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:a}}function Hl(r,a,e,t,i){const s=[],l=[],o=[],d=[],u=Object.keys(r),y=Jc(u,a);if(y)return{hasCreated:!1,changeSet:{updated:[],added:[],removed:[],affected:[],self:y}};const c=i?e.name+" of "+i.name:e.name,I={id:e.id||m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:c,type:n.DefinitionEntity,description:e.description||null,static:e.static||!1,abstract:e.abstract||!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[],x:0,y:0,parent:a.toReference()},O=C(I,a);return O.setParent(a,t),O.initChildren(t),t==null||t.add(O,b.Added),O.addSelfToProject(t),l.push(O),u.forEach((P,V)=>{const g={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:P,type:n.Property,description:null,static:!1,abstract:!1,defaultValue:null,constant:!1,dataType:null,implements:null,index:V,hidden:!1,private:!1,required:!0,parent:O.toReference()},B=C(g,a);B.setParent(O,t),B.initChildren(t),t==null||t.add(B,b.Added),B.addSelfToProject(t),l.push(B);const G=r[P],W={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,entity:null,isList:!1,asType:null,andChildrenGroup:null,orChildrenGroup:null,staticEntities:!1,interactiveEntities:!0,actionEntities:!1,like:!0,inferred:!1,parent:B.toReference()},X=C(W,a);X.setParent(B,t),X.initChildren(t),t==null||t.add(X,b.Added),X.addSelfToProject(t),l.push(X);const pe=Sc(G,X,{...e,name:P,id:m.UUID.uuid()},t,i||O);s.push(...pe.updated),l.push(...pe.added),o.push(...pe.removed)}),{hasCreated:!0,changeSet:{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:O}}}function br(r,a,e,t){const i=[];return!r.length||!a.length?{errors:i,overlap:!1}:(r.length>a.length?r.forEach(s=>{const l=a.find(d=>d.name===s.name),o=a.find(d=>{var u,y;return!!s.implements&&((u=d.implements)==null?void 0:u.id)===((y=s.implements)==null?void 0:y.id)});if(l){const d=new Ye({id:s.id+"--"+l.id+"--"+t,message:`Entity of type ${s.type} named "${s.name}" with id "${s.id}" overrides a base ${l.type} ${l.name} with id "${l.id}" that has the same name`,issue:null,severity:D.Error,code:t,entity:s,firstRelationship:l});i.push(d)}if(o){const d=new Ye({id:s.id+"--"+o.id+"--"+e,message:`Entity of type ${s.type} named "${s.name}" with id "${s.id}" overrides a base ${o.type} ${o.name} with id "${o.id}" that implements the same base descriptor`,issue:null,severity:D.Error,code:e,entity:s,firstRelationship:o});i.push(d)}}):a.forEach(s=>{var d;const l=r.find(u=>u.name===s.name),o=r.find(u=>{var y,c;return!!u.implements&&((y=u.implements)==null?void 0:y.id)===((c=s.implements)==null?void 0:c.id)});if(l){const u=new Ye({id:l.id+"--"+s.id+"--"+t,message:`Entity of type ${l.type} named "${l.name}" with id "${l.id}" overrides a base entity ${s.name} with id "${s.id}" that has the same name`,issue:null,severity:D.Error,code:t,entity:l,firstRelationship:s});i.push(u)}if(o){const u=new Ye({id:o.id+"--"+s.id+"--"+e,message:`Entity of type ${o.type} named "${o.name}" with id "${o.id}" overrides a base entity ${s.name} with id "${s.id}" that implements the same base ${(d=o==null?void 0:o.implements)==null?void 0:d.type}`,issue:null,severity:D.Error,code:e,entity:o,firstRelationship:s});i.push(u)}}),{errors:i,overlap:!!i.length})}function TS(r,a){return r.abstract||(r.properties.forEach(t=>{t.abstract||t.metaSync({abstract:!0},a)}),Object.values(r.detachedDependents).forEach(t=>{t.field===Bc.Entity&&t.entity.remove({ignoreUpstream:!1},a)}),r.metaSync({abstract:!0},a)),r}function ES(r,a){return r.abstract&&(r.properties.forEach(t=>{t.abstract&&t.metaSync({abstract:!1},a)}),Object.values(r.detachedDependents).forEach(t=>{(t.field===sd.Implements||t.field===sd.Extends)&&t.entity.onDetachedDependencyRemoved(r,t.field,a)}),r.metaSync({abstract:!1},a)),r}function IS(r,a){return r.static||(r.properties.forEach(t=>{t.static||t.metaSync({static:!0},a)}),r.metaSync({static:!0},a)),r}function AS(r,a){return r.static&&(r.properties.forEach(t=>{t.static&&t.metaSync({static:!1},a)}),r.metaSync({static:!1},a)),r}var rP=(r=>(r.StringValueMustNotHaveSpaces="string-value-must-not-have-spaces",r.StringValueMustNotHaveDashes="string-value-must-not-have-dashes",r))(rP||{});function nP(r,a){const e=[],t=a;if(!t)return{errors:e,override:a};if(typeof t!="string")return{errors:[],override:a};if(t.includes(" ")){const i=new Ye({id:r.id+"--string-value-must-not-have-spaces",message:`Entity of type ${r.type} with id "${r.id}" has an invalid value "${a}". The value cannot contain spaces.`,issue:null,severity:D.Error,code:"string-value-must-not-have-spaces",entity:r});e.push(i)}return{errors:e,override:t.replace(/\s/g,"-")}}function sP(r,a){const e=[],t=a;if(!t)return{errors:e,override:a};if(typeof t!="string")return{errors:[],override:a};if(t.includes(" ")){const i=new Ye({id:r.id+"--string-value-must-not-have-spaces",message:`Entity of type ${r.type} with id "${r.id}" has an invalid value "${a}". The value cannot contain spaces or dashes.`,issue:null,severity:D.Error,code:"string-value-must-not-have-spaces",entity:r});e.push(i)}if(t.includes("-")){const i=new Ye({id:r.id+"--string-value-must-not-have-dashes",message:`Entity of type ${r.type} with id "${r.id}" has an invalid value "${a}". The value cannot contain spaces or dashes.`,issue:null,severity:D.Error,code:"string-value-must-not-have-dashes",entity:r});e.push(i)}return{errors:e,override:t.replace(/\s|-/g,"_")}}function ws(r,a){const e=$n(r);if(e.length===0)return{list:[],last:null};let t=null;return{list:e.flatMap(s=>{if(s===a)return t=s,[s];const l=ws(s,a);return l.last&&(t=l.last),[s,...l.list]}),last:t}}function Wc(r){const a=r.calledBy;if(a.length===0)return r.project;const e=a.reduce((t,i)=>{const s=Jt(i,r.project);return!s||s.type===n.Project?t:t.type===n.Project||ws(s,t).last?s:(ws(t,s).last,t)},r.project);return e.type===n.FunctionDeclaration&&e.parent.type===n.Loop?e.parent:e}function K(r,a){var i,s;let e=Wc(r);if(r.type===n.InternalCall)(i=r.parent)==null||i.setParent(e,a),(s=r.parent)==null||s.addSelfToProject(a);else if((r.type===n.ContinueStatement||r.type===n.BreakStatement)&&e.type!==n.Loop){r.remove({ignoreUpstream:!1},a);return}else if(r.type===n.ReturnStatement&&!ut.includes(e.type)){r.remove({ignoreUpstream:!1},a);return}else r.setParent(e,a),r.addSelfToProject(a);if(ot.includes(r.type))return;Je(r).forEach(l=>{var d,u;const o=Wc(l);if(l.type===n.InternalCall)(d=l.parent)==null||d.setParent(o,a),(u=l.parent)==null||u.addSelfToProject(a);else if((l.type===n.ContinueStatement||l.type===n.BreakStatement)&&o.type!==n.Loop){l.remove({ignoreUpstream:!1},a);return}else if(l.type===n.ReturnStatement&&!ut.includes(o.type)){l.remove({ignoreUpstream:!1},a);return}else l.setParent(o,a),l.addSelfToProject(a)})}function aP(r,a,e=new Set){const t=sn(r),i=sn(a),s=t.filter(d=>!i.includes(d)),l=t.filter(d=>i.includes(d)),o=s.reduce((d,u)=>e.has(u.id)?d:(e.add(u.id),p([...d,...aP(u,a,e)])),[]);return p([...l,...o])}function Ma(r,a){const e=ws(r,a);return e.last===a&&e.list.length>0&&e.list[0]!==a}function bS(r,a){return!!ws(r,a).last}function RS(r){if(at.includes(r.type))return r;if([...gi,n.VariableDeclaration].includes(r.type)){const a=r.parent;return at.includes(a.type)?a:null}return null}function zc(r,a){if(!r||!a)throw new Error("Both entities must be defined to find a common ancestor");if(r===a)return r;const e=r.parent;if(e){if(e===a)return a;if(e.type===n.Project)return null}else return null;const t=a.parent;if(t){if(t===r)return r;if(t.type===n.Project)return null}else return null;return zc(e,t)}function Vt(r){if(Wa.includes(r.type)){if(r.type===n.FunctionDeclaration){const a=r.parent;if(a.type===n.DefinitionEntity)return a;if(a.type===n.Loop)return a}return r}else{const a=r.parent;return a?Vt(a):null}}function Kl(r,a){const e=Na(r,a);if(!e)return null;if(Wa.includes(e.type)){if(e.type===n.FunctionDeclaration){const t=Na(e.parent,a);if(t){if(t.type===n.DefinitionEntity)return t;if(t.type===n.Loop)return t}}return e}else{const t=e.parent?Na(e.parent,a):null;return t?Kl(t,a):null}}function oP(r){if(!r)return null;if(gi.includes(r.type))return r;const a=r.parent;return a?oP(a):null}function lP(r){if(!r)return null;if(dt.includes(r.type))return r;const a=r.parent;return a?lP(a):null}function dP(r){if(!r)return null;if(Gi.includes(r.type))return r;const a=r.parent;return a?dP(a):null}function DS(r){return r.type===n.VariableDeclaration?[r]:dt.includes(r.type)?[...r.inputs,...r.outputs||[]]:ot.includes(r.type)?r.outputs:kn.includes(r.type)||r.type===n.FunctionDeclaration?r.inputs:[]}function OS(r){const a=sn(r),e=[],t=[];df.includes(r.type)&&e.push(...Yc(r));const i=a.filter(s=>{const l=e.includes(s);return l?!1:gi.includes(s.type)&&!l?(t.push(s),!1):!0});return e.sort((s,l)=>Ma(l,s)?-1:0),t.sort((s,l)=>Ma(l,s)?-1:0),[...e,...t,...i]}function uP(r){return[...r].sort((a,e)=>Ma(e,a)?-1:0)}function PS(r){const a=uP(r),e=[];return a.forEach(t=>{const i=e[e.length-1];if(i){const s=i[i.length-1];Ma(t,s)?e.push([t]):i.push(t)}else e.push([t])}),e}function ti(r){const a=r.map(e=>Vt(e));return p(a)}function Yc(r){return dt.includes(r.type)?[...ti(r.successCalls),...ti(r.errorCalls)]:at.includes(r.type)?ti(r.calls):[]}function wS(r,a){return Yc(r).includes(a)}function Hc(r){return r.writesValues||[]}function CS(r,a){return Hc(r).includes(a)}function pP(r){var a;return it.includes((a=r==null?void 0:r.readsValue)==null?void 0:a.type)?r.readsValue:null}function VS(r){return r.writesValues}function cP(r=[]){return r.map(pP).filter(a=>!!a)}function Xl(r=[]){return r.map(a=>a.writesValues).flat().filter(a=>it.includes(a.type))}function fP(r=[]){return r.map(a=>a.readsValue).filter(a=>!!a&&it.includes(a.type))}function yP(r){return it.includes(r.type)?r:null}function hP(r){return r.writesValues.map(yP).filter(a=>!!a)}function mP(r=[]){return r.reduce((a,e)=>e.type===n.OutputMap?[...a,...hP(e)]:a,[])}function Je(r){return dt.includes(r.type)?[...er(ti(r.successCalls)),...er(ti(r.errorCalls))]:at.includes(r.type)?er(ti(r.calls)):[]}function BS(r){return dt.includes(r.type)?[...er(ti(r.successCalls)),...er(ti(r.errorCalls))]:at.includes(r.type)?er(ti(r.calls)):[]}function vP(r,a=new Set){return r.writesValues.filter(t=>it.includes(t.type)&&!a.has(t.id)).reduce((t,i)=>a.has(i.id)?t:[...t,...He(i,a)],[])}function TP(r,a=new Set){var t;return(((t=r.readsValue)==null?void 0:t.writesValues)||[]).filter(i=>it.includes(i.type)&&!a.has(i.id)).reduce((i,s)=>a.has(s.id)?i:[...i,...He(s,a)],[])}function He(r,a=new Set){if(a.has(r.id))return[];if(r.type===n.ReturnStatement)return fP(r.outputs).reduce((t,i)=>[...t,...He(i,a)],[]);if(r.type===n.FunctionCall||r.type===n.Operation||r.type===n.Condition)return[...Je(r).reduce((s,l)=>{const o=Vt(l);return[...s,...He(o||l,a)]},[]),...cP(r.inputs),...mP(r.outputs)].reduce((s,l)=>[...s,...He(l,a)],[]);if(kn.includes(r.type)){const e=Xl(r.inputs),i=Je(r).reduce((s,l)=>{const o=Vt(l);return[...s,...He(o||l,a)]},[]);return e.push(...i),e.reduce((s,l)=>[...s,...He(l,a)],[])}if(r.type===n.FunctionDeclaration){const e=[...Xl(r.inputs)],i=Je(r).reduce((s,l)=>{const o=Vt(l);return[...s,...He(o||l,a)]},[]);return e.push(...i),e.reduce((s,l)=>[...s,...He(l)],[])}if(it.includes(r.type)){a.add(r.id);const t=Je(r).reduce((i,s)=>{const l=Vt(s);return[...i,...He(l||s,a)]},[]);return[r,...t,...TP(r,a),...vP(r,a)]}return[]}function ui(r,a=new Set){return a.has(r.id)?[]:(a.add(r.id),[...sn(r).reduce((i,s)=>[...i,s,...ui(s,a)],[])])}function er(r){return r.reduce((a,e)=>e.type===n.ReturnStatement||e.type===n.ContinueStatement||e.type===n.BreakStatement?[...a,e]:[...a,e,...Je(e)],[])}function EP(r){const a=r.entities||[],e=[...a,...r.functions||[],...r.events||[],...r.projects||[]],t=a.reduce((d,u)=>[...d,...u.properties],[]),i=a.reduce((d,u)=>[...d,...u.methods],[]),s=i.reduce((d,u)=>[...d,...Xl(u.inputs),...er(ti(u.calls)),...u.returnStatements],[]),l=r.functions.reduce((d,u)=>[...d,...er(ti(u.calls)),...u.returnStatements],[]),o=r.events.reduce((d,u)=>[...d,...er(ti(u.calls)),...u.returnStatements],[]);return[...e,...t,...i,...s,...l,...o]}function IP(r,a){return a.filter(t=>{if(!t)return!1;switch(t.type){case n.FunctionCall:return t.inputs.find(i=>i.id===r.id)!==void 0||t.outputs.find(i=>i.id===r.id)!==void 0;case n.Condition:return t.successCalls.find(i=>i.id===r.id)!==void 0||t.errorCalls.find(i=>i.id===r.id)!==void 0||t.inputs.find(i=>i.id===r.id)!==void 0;case n.Operation:return t.outputs.find(i=>i.id===r.id)!==void 0;case n.VariableDeclaration:return dt.includes(r.type)?zP(r).find(s=>{var l;return((l=s.readsValue)==null?void 0:l.id)===t.id})!==void 0:!1;case n.DefinitionEntity:return t.properties.find(i=>i.id===r.id)!==void 0||t.methods.find(i=>i.id===r.id)!==void 0;case n.FunctionDeclaration:return t.inputs.find(i=>i.id===r.id)!==void 0||(t.returnStatements.map(i=>i.outputs).flat()||[]).find(i=>i.id===r.id)!==void 0;default:return!1}})}function _S(r){const a=EP(r.project);return IP(r,a)}function Na(r,a){return r?typeof r=="string"?a[r]:r.type===n.GenericReference?a[r.entityId]:a[r.id]?a[r.id]:null:null}function Ql(r,a={},e={ignoreBuiltInBaseEntities:!1,allBuiltInEntityIds:[]}){if(e.ignoreBuiltInBaseEntities&&(fi.includes(r.type)||(e.allBuiltInEntityIds||[]).includes(r.id)))return{upstream:{},downstream:{}};const t=r,i=r,s=r,l=r,o=r,d=r,u=r,y=r,c=r,E=r,I=r,O=r,P=r,V=[...P.readsValue?[P.readsValue]:[],...P.declaration?[P.declaration]:[],...(O.calledByEntry||[]).flatMap(G=>G),...(O.calledBySuccess||[]).flatMap(G=>G),...(O.calledByError||[]).flatMap(G=>G),...(s.extends||[]).flatMap(G=>G),...E.parent?[E.parent]:[]];Array.isArray(s.implements)?V.push(...s.implements.flatMap(G=>G)):c.implements&&V.push(c.implements),o.valueAsTypeList&&Array.isArray(o.valueAsTypeList)&&V.push(...o.valueAsTypeList.flatMap(G=>G)),o.valueAsTypeSingle&&V.push(o.valueAsTypeSingle);const M=[...(t.inputs||[]).flatMap(G=>G),...(I.inputsDeclarations||[]).flatMap(G=>G),...(t.outputs||[]).flatMap(G=>G),...(I.outputsDeclarations||[]).flatMap(G=>G),...(P.internalCalls||[]).flatMap(G=>G),...P.writesValues||[],...O.dataType?[O.dataType]:[],...d.body?[d.body]:[],...O.defaultValue?[O.defaultValue]:[],...(O.successCalls||[]).flatMap(G=>G),...(O.errorCalls||[]).flatMap(G=>G),...(s.properties||[]).flatMap(G=>G),...(s.methods||[]).flatMap(G=>G),...(s.abstractMethods||[]).flatMap(G=>G),...u.error?[u.error]:[],...u.process?[u.process]:[],...E.throws?[E.throws]:[],...(i.andChildrenGroup||[]).flatMap(G=>G),...(i.orChildrenGroup||[]).flatMap(G=>G),...(y.entities||[]).flatMap(G=>G),...(y.functions||[]).flatMap(G=>G),...(y.functionCalls||[]).flatMap(G=>G),...(y.events||[]).flatMap(G=>G),...(y.conditions||[]).flatMap(G=>G),...(y.operations||[]).flatMap(G=>G),...(y.loops||[]).flatMap(G=>G),...(y.variableDeclarations||[]).flatMap(G=>G),...(y.variableInstances||[]).flatMap(G=>G),...(y.searches||[]).flatMap(G=>G),...(y.projects||[]).flatMap(G=>G),...(l.calls||[]).flatMap(G=>G)];r.type===n.DataType&&(i.entity&&a[_(i.entity)]&&a[_(i.entity)].parent&&_(a[_(i.entity)].parent)===r.id?M.push(i.entity):i.entity&&V.push(i.entity));const g={},B={};return V.forEach(G=>{const q=_(G);if(q&&e.ignoreBuiltInBaseEntities&&(fi.includes(G.type)||(e.allBuiltInEntityIds||[]).includes(q)))return;const W=G.version;q&&(g[q]=W)}),M.forEach(G=>{const q=_(G);if(q&&e.ignoreBuiltInBaseEntities&&(fi.includes(G.type)||(e.allBuiltInEntityIds||[]).includes(q)))return;const W=G.version;q&&(B[q]=W)}),{upstream:g,downstream:B}}function MS(r,a){const e=[];if(gi.includes(r.type)){Ii(r).forEach(s=>{const l=Kl(s,a);l&&e.push(l)});const i=[...r.inputs||[],...r.outputs||[]].map(s=>{const l=Na(s,a);return l?HP(l,a):null}).filter(s=>s!==null);e.push(...p(i))}if(it.includes(r.type)){const t=ed(r);t&&e.push(t)}return p(e)}function $n(r){const a=[];if(gi.includes(r.type)){r.calledBy.forEach(i=>{const s=Vt(i);s&&a.push(s)});const t=[...r.inputs||[],...r.outputs||[]].map(i=>ed(i)).filter(i=>i!==null);a.push(...p(t))}if(it.includes(r.type)){const e=ed(r);e&&a.push(e)}return p(a)}function Ii(r){return[...r.calledByEntry||[],...r.calledByError||[],...r.calledBySuccess||[]].filter(a=>a.type!==n.GenericReference)}function AP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.ActionDescriptor)throw new Error("Entity must be an action descriptor to be flattened");return[r,...r.inputs.flatMap(t=>j(t,a,e)),...r.outputs.flatMap(t=>j(t,a,e)),...r.error?j(r.error,a,e):[],...r.parent?j(r.parent,a,e):[]]}function bP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.ArgumentDeclaration)throw new Error("Entity must be an argument declaration to be flattened");return[r,...r.defaultValue?j(r.defaultValue,a):[],...r.writesValues.flatMap(t=>j(t,a,e)),...r.dataType?j(r.dataType,a,e):[],...r.parent?j(r.parent,a,e):[]]}function RP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.BreakStatement)throw new Error("Entity must be a break statement to be flattened");return[r,...r.outputs.flatMap(t=>j(t,a,e)),...r.throws?j(r.throws,a,e):[],...(Ii(r)||[]).flatMap(t=>j(t,a,e)),...r.parent?j(r.parent,a,e):[]]}function DP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.BuiltInBaseEntity)throw new Error("Entity must be a built-in base entity to be flattened");return[r,...(r.properties||[]).flatMap(t=>j(t,a,e)),...(r.methods||[]).flatMap(t=>j(t,a,e)),...(r.abstractMethods||[]).flatMap(t=>j(t,a,e)),...(r.extends||[]).flatMap(t=>j(t,a,e))]}function OP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.Condition)throw new Error("Entity must be a condition to be flattened");return[r,...(r.inputs||[]).flatMap(t=>j(t,a,e)),...(r.successCalls||[]).flatMap(t=>j(t,a,e)),...(r.errorCalls||[]).flatMap(t=>j(t,a,e)),...(Ii(r)||[]).flatMap(t=>j(t,a,e)),...r.parent?j(r.parent,a,e):[]]}function PP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.ContinueStatement)throw new Error("Entity must be a continue statement to be flattened");return[r,...r.outputs.flatMap(t=>j(t,a,e)),...r.throws?j(r.throws,a,e):[],...(Ii(r)||[]).flatMap(t=>j(t,a,e)),...r.parent?j(r.parent,a,e):[]]}function wP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.DefinitionEntity)throw new Error("Entity must be a definition entity to be flattened");return[r,...(r.extends||[]).flatMap(t=>j(t,a,e)),...(r.implements||[]).flatMap(t=>j(t,a,e)),...(r.properties||[]).flatMap(t=>j(t,a,e)),...(r.methods||[]).flatMap(t=>j(t,a,e)),...(r.abstractMethods||[]).flatMap(t=>j(t,a,e)),...r.parent?j(r.parent,a,e):[]]}function CP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.DataType)throw new Error("Entity must be a data type to be flattened");return[r,...(r.andChildrenGroup||[]).flatMap(t=>j(t,a,e)),...(r.orChildrenGroup||[]).flatMap(t=>j(t,a,e)),...r.entity?j(r.entity,a,e):[],...r.parent?j(r.parent,a,e):[]]}function VP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.FunctionCall)throw new Error("Entity must be a function call to be flattened");return[r,...(r.inputs||[]).flatMap(t=>j(t,a,e)),...(r.outputs||[]).flatMap(t=>j(t,a,e)),...r.error?j(r.error,a,e):[],...r.process?j(r.process,a,e):[],...(Ii(r)||[]).flatMap(t=>j(t,a,e)),...(r.successCalls||[]).flatMap(t=>j(t,a,e)),...(r.errorCalls||[]).flatMap(t=>j(t,a,e)),...r.parent?j(r.parent,a,e):[]]}function BP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.FunctionDeclaration)throw new Error("Entity must be a function declaration to be flattened");return[r,...(r.inputs||[]).flatMap(t=>j(t,a,e)),...(r.calls||[]).flatMap(t=>j(t,a,e)),...r.implements?j(r.implements,a,e):[],...r.parent?j(r.parent,a,e):[]]}function _P(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.GlobalEvent)throw new Error("Entity must be a global event to be flattened");return[r,...(r.inputs||[]).flatMap(t=>j(t,a,e)),...(r.calls||[]).flatMap(t=>j(t,a,e)),...r.implements?j(r.implements,a,e):[],...r.parent?j(r.parent,a,e):[]]}function MP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.InputMap)throw new Error("Entity must be an input map to be flattened");return[r,...r.readsValue?j(r.readsValue,a,e):[],...r.declaration?j(r.declaration,a,e):[],...r.defaultValue?j(r.defaultValue,a,e):[],...r.parent?j(r.parent,a,e):[]]}function NP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.InstalledProject)throw new Error("Entity must be an installed project to be flattened");return[r,...(r.functions||[]).flatMap(t=>j(t,a,e)),...(r.events||[]).flatMap(t=>j(t,a,e)),...r.parent?j(r.parent,a,e):[]]}function LP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.InternalCall)throw new Error("Entity must be an internal call to be flattened");return[r,...(r.successCalls||[]).flatMap(t=>j(t,a,e)),...(r.errorCalls||[]).flatMap(t=>j(t,a,e)),...(r.inputs||[]).flatMap(t=>j(t,a,e)),...(r.outputs||[]).flatMap(t=>j(t,a,e)),...(Ii(r)||[]).flatMap(t=>j(t,a,e)),...r.error?j(r.error,a,e):[],...r.process?j(r.process,a,e):[],...r.parent?j(r.parent,a,e):[]]}function jP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.LiteralValue)throw new Error("Entity must be a literal value to be flattened");return[r,...r.valueAsTypeSingle?j(r.valueAsTypeSingle,a,e):[],...r.valueAsTypeList&&Array.isArray(r.valueAsTypeList)?r.valueAsTypeList.flatMap(t=>j(t,a,e)):[],...r.parent?j(r.parent,a,e):[]]}function UP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.Loop)throw new Error("Entity must be a loop to be flattened");return[r,...(r.inputs||[]).flatMap(t=>j(t,a,e)),...(r.outputs||[]).flatMap(t=>j(t,a,e)),...(r.successCalls||[]).flatMap(t=>j(t,a,e)),...(r.errorCalls||[]).flatMap(t=>j(t,a,e)),...r.error?j(r.error,a,e):[],...r.process?j(r.process,a,e):[],...r.body?j(r.body,a,e):[],...(Ii(r)||[]).flatMap(t=>j(t,a,e)),...r.parent?j(r.parent,a,e):[]]}function $P(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.Operation)throw new Error("Entity must be an operation to be flattened");return[r,...(r.successCalls||[]).flatMap(t=>j(t,a,e)),...(r.errorCalls||[]).flatMap(t=>j(t,a,e)),...(r.inputs||[]).flatMap(t=>j(t,a,e)),...(r.outputs||[]).flatMap(t=>j(t,a,e)),...r.error?j(r.error,a,e):[],...r.process?j(r.process,a,e):[],...(Ii(r)||[]).flatMap(t=>j(t,a,e)),...r.parent?j(r.parent,a,e):[]]}function gP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.OutputMap)throw new Error("Entity must be an output map to be flattened");return[r,...(r.writesValues||[]).flatMap(t=>j(t,a,e)),...r.declaration?j(r.declaration,a,e):[],...r.defaultValue?j(r.defaultValue,a,e):[],...r.parent?j(r.parent,a,e):[]]}function GP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.PrimitiveEntity)throw new Error("Entity must be a primitive entity to be flattened");return[r,...(r.properties||[]).flatMap(t=>j(t,a,e)),...(r.methods||[]).flatMap(t=>j(t,a,e)),...(r.abstractMethods||[]).flatMap(t=>j(t,a,e))]}function FP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.Project)throw new Error("Entity must be a project to be flattened");return[r,...(r.entities||[]).flatMap(t=>j(t,a,e)),...(r.functions||[]).flatMap(t=>j(t,a,e)),...(r.events||[]).flatMap(t=>j(t,a,e)),...(r.projects||[]).flatMap(t=>j(t,a,e)),...(r.variableDeclarations||[]).flatMap(t=>j(t,a,e)),...(r.variableInstances||[]).flatMap(t=>j(t,a,e)),...(r.operations||[]).flatMap(t=>j(t,a,e)),...(r.conditions||[]).flatMap(t=>j(t,a,e)),...(r.functionCalls||[]).flatMap(t=>j(t,a,e)),...(r.projects||[]).flatMap(t=>j(t,a,e)),...(r.loops||[]).flatMap(t=>j(t,a,e)),...(r.searches||[]).flatMap(t=>j(t,a,e))]}function xP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.Property)throw new Error("Entity must be a property to be flattened");return[r,...r.defaultValue?j(r.defaultValue,a,e):[],...r.dataType?j(r.dataType,a,e):[],...r.parent?j(r.parent,a,e):[]]}function kP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.ReturnDeclaration)throw new Error("Entity must be a return declaration to be flattened");return[r,...r.readsValue?j(r.readsValue,a,e):[],...r.defaultValue?j(r.defaultValue,a,e):[],...r.dataType?j(r.dataType,a,e):[],...r.parent?j(r.parent,a,e):[]]}function ZP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.ReturnStatement)throw new Error("Entity must be a return statement to be flattened");return[r,...(r.outputs||[]).flatMap(t=>j(t,a,e)),...r.throws?j(r.throws,a,e):[],...(Ii(r)||[]).flatMap(t=>j(t,a,e)),...r.parent?j(r.parent,a,e):[]]}function qP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.Search)throw new Error("Entity must be a search to be flattened");return[r,...(r.successCalls||[]).flatMap(t=>j(t,a,e)),...(r.errorCalls||[]).flatMap(t=>j(t,a,e)),...(r.inputsDeclarations||[]).flatMap(t=>j(t,a,e)),...(r.inputs||[]).flatMap(t=>j(t,a,e)),...(r.outputsDeclarations||[]).flatMap(t=>j(t,a,e)),...(r.outputs||[]).flatMap(t=>j(t,a,e)),...r.error?j(r.error,a,e):[],...(Ii(r)||[]).flatMap(t=>j(t,a,e)),...r.parent?j(r.parent,a,e):[]]}function JP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.ValueDescriptor)throw new Error("Entity must be a value descriptor to be flattened");return[r,...r.defaultValue?j(r.defaultValue,a,e):[],...r.dataType?j(r.dataType,a,e):[],...r.parent?j(r.parent,a,e):[]]}function SP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.VariableDeclaration)throw new Error("Entity must be a variable declaration to be flattened");return[r,...(r.successCalls||[]).flatMap(t=>j(t,a,e)),...(r.errorCalls||[]).flatMap(t=>j(t,a,e)),...(r.inputs||[]).flatMap(t=>j(t,a,e)),...(r.outputs||[]).flatMap(t=>j(t,a,e)),...(r.internalCalls||[]).flatMap(t=>j(t,a,e)),...(r.writesValues||[]).flatMap(t=>j(t,a,e)),...r.readsValue?j(r.readsValue,a,e):[],...r.defaultValue?j(r.defaultValue,a,e):[],...(Ii(r)||[]).flatMap(t=>j(t,a,e)),...r.dataType?j(r.dataType,a,e):[],...r.parent?j(r.parent,a,e):[]]}function WP(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(a.has(r.id))return[];if(a.add(r.id),r.type!==n.VariableInstance)throw new Error("Entity must be a variable instance to be flattened");return[r,...(r.successCalls||[]).flatMap(t=>j(t,a,e)),...(r.errorCalls||[]).flatMap(t=>j(t,a,e)),...(r.inputs||[]).flatMap(t=>j(t,a,e)),...(r.outputs||[]).flatMap(t=>j(t,a,e)),...(r.internalCalls||[]).flatMap(t=>j(t,a,e)),...(r.writesValues||[]).flatMap(t=>j(t,a,e)),...r.readsValue?j(r.readsValue,a,e):[],...r.defaultValue?j(r.defaultValue,a,e):[],...(Ii(r)||[]).flatMap(t=>j(t,a,e)),...r.declaration?j(r.declaration,a,e):[],...r.parent?j(r.parent,a,e):[]]}function Ui(){const r=new Set,a=uI.flatMap(e=>j(e,r)).map(e=>e.id);if(!a.includes("http-request-error-return-delaration-id"))throw new Error("Built-in base entities must be included in the list");return a}function j(r,a=new Set,e={ignoreBuiltInBaseEntities:!1}){if(!r)throw new Error("Entity must be defined to be flattened");if(r.type===n.GenericReference)return[];if(e.ignoreBuiltInBaseEntities&&(fi.includes(r.type)||Ui().includes(r.id)))return[];if(a.has(r.id))return[];switch(r.type){case n.FunctionCall:return VP(r,a,e);case n.Operation:return $P(r,a,e);case n.Condition:return OP(r,a,e);case n.Loop:return UP(r,a,e);case n.Search:return qP(r,a,e);case n.GlobalEvent:return _P(r,a,e);case n.ReturnStatement:return ZP(r,a,e);case n.ContinueStatement:return PP(r,a,e);case n.BreakStatement:return RP(r,a,e);case n.VariableDeclaration:return SP(r,a,e);case n.DefinitionEntity:return wP(r,a,e);case n.FunctionDeclaration:return BP(r,a,e);case n.Project:return FP(r,a,e);case n.ActionDescriptor:return AP(r,a,e);case n.ArgumentDeclaration:return bP(r,a,e);case n.ReturnDeclaration:return kP(r,a,e);case n.ValueDescriptor:return JP(r,a,e);case n.InputMap:return MP(r,a,e);case n.OutputMap:return gP(r,a,e);case n.DataType:return CP(r,a,e);case n.InstalledProject:return NP(r,a,e);case n.InternalCall:return LP(r,a,e);case n.LiteralValue:return jP(r,a,e);case n.Property:return xP(r,a,e);case n.VariableInstance:return WP(r,a,e);case n.BuiltInBaseEntity:return e.ignoreBuiltInBaseEntities?[]:DP(r,a,e);case n.PrimitiveEntity:return e.ignoreBuiltInBaseEntities?[]:GP(r,a,e)}return[]}function Kc(r){return r.type===n.FunctionCall||r.type===n.InternalCall||[n.Operation,n.Condition,n.Loop].includes(r.type)?r.declaration.inputs:r.type===n.FunctionDeclaration||kn.includes(r.type)?r.inputs:r.type===n.Search?r.inputsDeclarations:[]}function NS(r,a){return a.type===n.Condition?a.inputs.find(e=>e.declaration.id===r.id):a.type===n.FunctionCall||a.type===n.Operation?a.inputs.find(e=>e.declaration.id===r.id):null}function zP(r){return dt.includes(r.type)?r.inputs:[]}function YP(r){var a;return r.type===n.FunctionCall?((a=r.declaration.returnStatements[0])==null?void 0:a.outputs)||[]:[n.Operation,n.Condition,n.Loop].includes(r.type)?r.declaration.outputs:r.type===n.Search?r.outputsDeclarations:ot.includes(r.type)?r.outputs:[]}function LS(r,a){return a.type===n.Condition?null:a.type===n.FunctionCall||a.type===n.Operation?a.outputs.find(e=>e.declaration.id===r.id):null}function jS(r){return r.type===n.Condition?[]:dt.includes(r.type)?r.outputs:[]}function ed(r){const a=r.readsValue;return a?Vt(a):null}function HP(r,a){const e=r.readsValue;return e?Kl(e,a):null}function KP(r){const a=r.internalCalls||[];return p(ti(p(a.flatMap(e=>[...e.successCalls,...e.errorCalls]))))}function Cs(r){const a=Hc(r),e=[];return a.forEach(t=>{if(it.includes(t.type))e.push(t);else if(Dr.includes(t.type)){const i=t.parent;e.push(i)}}),e}function p(r){const a=new Set;return r.filter(e=>!e||a.has(e.id)?!1:(a.add(e.id),!0))}function sn(r,a=!1){const e=[];if(r.type===n.Project&&e.push(...(r==null?void 0:r.entities)||[],...(r==null?void 0:r.functions)||[],...(r==null?void 0:r.variableDeclarations)||[],...(r==null?void 0:r.variableInstances)||[],...(r==null?void 0:r.searches)||[],...(r==null?void 0:r.loops)||[],...(r==null?void 0:r.operations)||[],...(r==null?void 0:r.conditions)||[],...(r==null?void 0:r.functionCalls)||[],...(r==null?void 0:r.events)||[],...(r==null?void 0:r.projects)||[]),ut.includes(r.type)&&e.push(...(r==null?void 0:r.detachedChildren)||[]),r.type===n.DefinitionEntity){const t=[...r.suggestedMethods,...r.methods].flatMap(i=>i.collapsed&&a?[]:sn(i));e.push(...t)}if(r.type===n.Condition){const t=r.successCalls.map(s=>Vt(s)),i=r.errorCalls.map(s=>Vt(s));e.push(...t,...i)}if(kn.includes(r.type)){if(r.collapsed&&a)return[];const t=r.inputs.map(s=>Cs(s)).flat(),i=r.calls.map(s=>Vt(s));e.push(...p(t),...i)}if(dt.includes(r.type)&&r.type!==n.Condition&&r.type!==n.Loop){const t=r==null?void 0:r.outputs.map(l=>Cs(l)).flat(),i=r.successCalls.map(l=>Vt(l)),s=r.errorCalls.map(l=>Vt(l));e.push(...p(t),...i,...s)}if(it.includes(r.type)){const t=Cs(r),i=KP(r);e.push(...t,...i)}if(r.type===n.Loop){const t=r.outputs.map(l=>Cs(l)).flat();if(r.body){const l=sn(r.body,a);e.push(...l)}const i=r.errorCalls.map(l=>Vt(l)),s=r.successCalls.map(l=>Vt(l));e.push(...p(t),...s,...i)}if(r.type===n.FunctionDeclaration){if(r.collapsed&&a)return[];const t=r.inputs.map(s=>Cs(s)).flat(),i=r.calls.map(s=>Vt(s));e.push(...p(t),...i)}return p(e)}function XP(r,a=!1){const e=sn(r,a),t=[...e,...e.reduce((i,s)=>[...i,...XP(s,a)],[])];return p(t)}function QP(r){const a=$n(r),e=[...a,...a.reduce((t,i)=>[...t,...QP(i)],[])];return p(e)}function La(r){return r.implements.reduce((a,e)=>e.type===n.DefinitionEntity?[...a,n.DefinitionEntity,...La(e),...ja(e)]:[...a,e.name],[])}function ja(r){return r.extends.reduce((a,e)=>e.type===n.DefinitionEntity?[...a,n.DefinitionEntity,...ja(e),...La(e)]:[...a,e.name],[])}function Xc(r){return r.extends.reduce((a,e)=>e.type===n.DefinitionEntity?[...a,e,...Xc(e),...Qc(e)]:[...a,e],[])}function Qc(r){return r.implements.reduce((a,e)=>e.type===n.DefinitionEntity?[...a,e,...Qc(e),...Xc(e)]:[...a,e],[])}function ef(r){return[...ja(r),...La(r)].filter((e,t,i)=>i.indexOf(e)===t)}function ew(r){return r.implements.length===0&&r.extends.length===0?null:r.implements.find(t=>t.type===n.BuiltInBaseEntity&&t.name===S.PERSISTED_ENTITY)?r:[...r.implements,...r.extends].reduce((t,i)=>{if(i.type===n.DefinitionEntity){const s=ew(i);if(s)return s}return t},null)}function US(r){const a=r.extends.find(e=>e.type===n.BuiltInBaseEntity);return a&&a.type===n.BuiltInBaseEntity?a:null}function $S(r){const a=r.implements.find(e=>e.type===n.BuiltInBaseEntity);return a&&a.type===n.BuiltInBaseEntity?a:null}function tw(r){const a=r.extends.find(e=>e.type===n.DefinitionEntity);return a&&a.type===n.DefinitionEntity?a:null}function qt(r){if(r.type===n.BuiltInBaseEntity)return[r];const a=[...r.implements,...r.extends].reduce((e,t)=>t.type===n.BuiltInBaseEntity?[...e,t]:t.type===n.DefinitionEntity?[...e,...qt(t)]:e,[]);return p(a)}function Ua(r){return r.type===n.PrimitiveEntity?!0:r.type===n.BuiltInBaseEntity?r.interactive:!qt(r).find(t=>!t.interactive)}function gS(r){return r.parent===r.project&&r.project.variableDeclarations.includes(r)}function tf(r){return r.parent!==r.project?!1:n.VariableDeclaration===r.type?r.project.variableDeclarations.includes(r):n.VariableInstance===r.type?r.project.variableInstances.includes(r):n.FunctionCall===r.type?r.project.functionCalls.includes(r):n.Condition===r.type?r.project.conditions.includes(r):n.Operation===r.type?r.project.operations.includes(r):n.Loop===r.type?r.project.loops.includes(r):n.Search===r.type?r.project.searches.includes(r):!1}function iw(r){if([...at,n.DefinitionEntity,n.InstalledProject,n.Project].includes(r.type)||tf(r))return!1;const a=$n(r);return a.length===0?!0:a.some(e=>iw(e))}function rf(r){return[...at,n.DefinitionEntity,n.InstalledProject,n.Project].includes(r.type)||tf(r)?!1:$n(r).length===0}function rw(r,a=0){if(rf(r)){const e=$n(r);return e.length===0?r:e.map(i=>rw(i,a+1)).reduce((i,s)=>i?s&&s.x<i.x?s:i:s,null)}return null}function nw(r){const a=[];if(rf(r))a.push(r);else return[];return $n(r).forEach(t=>{a.push(...nw(t))}),a}function sw(r){return r.type===n.FunctionDeclaration&&r.parent!==r.project&&!![n.DefinitionEntity,n.Loop,n.InstalledProject].includes(r.parent.type)}function GS(r,a){const e=new Map;return r.forEach(t=>{e.set(t.id,t)}),a.forEach(t=>{e.set(t.id,t)}),Array.from(e.values())}function $a(r){switch(r){case n.DefinitionEntity:return on;case n.FunctionDeclaration:return xr;case n.VariableDeclaration:return Yr;case n.VariableInstance:return zr;case n.FunctionCall:return nn;case n.Operation:return Zr;case n.Condition:return Wr;case n.ReturnStatement:return Fr;case n.Loop:return Sr;case n.Search:return Hr;case n.InputMap:return Ki;case n.OutputMap:return Xi;case n.ArgumentDeclaration:return Er;case n.ReturnDeclaration:return ei;case n.Property:return Gr;case n.InstalledProject:return Kr;case n.Project:return m;case n.DataType:return kr;case n.GlobalEvent:return qr;case n.InternalCall:return Xr;case n.ValueDescriptor:return Ir;case n.BuiltInBaseEntity:return $i;case n.PrimitiveEntity:return ii;case n.ActionDescriptor:return Se;case n.LiteralValue:return Qr;case n.ContinueStatement:return Ut;case n.BreakStatement:return Jr;default:return null}}function Jt(r,a){const e=r!=null&&r.parent?_(r==null?void 0:r.parent):null;let t=e?a.get(e):null;if(r.type===n.ReturnStatement)return It(r,a);if(r.type===n.FunctionDeclaration&&(t==null?void 0:t.type)===n.Loop)return t;if(ut.includes(r.type))return r;if(fi.includes(r.type))return null;const i=r.parent;if(!i)return null;if(i.type===n.GenericReference){const s=_(i);if(!s)return null;const l=a.get(s);return l?Jt(l,a):null}else return i===a?a:Jt(i,a)}function It(r,a){const e=r!=null&&r.parent?_(r==null?void 0:r.parent):null;let t=e?a.get(e):null;if(r.type===n.FunctionDeclaration&&(t==null?void 0:t.type)===n.Loop)return It(t.parent,a);if(at.includes(r.type))return r;if(fi.includes(r.type))return null;const i=r.parent;if(!i)return null;if(i.type===n.GenericReference){const s=_(i);if(!s)return null;const l=a.get(s);return l?It(l,a):null}else return i===a?a:It(i,a)}function nf(r,a){if(fi.includes(r.type)||a.getBuiltIn(r.id))return null;const e=Ai(r.parent,a);return e?e===a?ut.includes(r.type)?r:null:e.type===n.DefinitionEntity?r:nf(e,a):null}function td(r,a,e){if(r===a||a===e||r===e)return!1;const t=Jt(a.parent,e);return t===r?!0:td(t,a,e)}var id=(r=>(r.SameBothLocal="same-both-local",r.AInB="a-in-b",r.BInA="b-in-a",r.ParallelInCommonParent="parallel-in-common-parent",r.ParallelInProject="parallel-in-project",r.AIsGlobalBIsNot="a-is-global-b-is-not",r.BIsGlobalAIsNot="b-is-global-a-is-not",r.SameBothGlobal="same-both-global",r))(id||{});function ga(r,a,e){const t=Jt(r,e),i=Jt(a,e);if(!t)throw new Error("Could not find scope owner for the entity: "+r.id);if(!i)throw new Error("Could not find scope owner for the entity: "+a.id);if(t===i&&t.type!==n.Project)return{compatible:!0,type:"same-both-local",commonAncestorScope:t};if(t===i&&t.type===n.Project)return{compatible:!0,type:"same-both-global",commonAncestorScope:t};if(t.type===n.Project&&i.type!==n.Project)return{compatible:!1,type:"a-is-global-b-is-not",commonAncestorScope:t};if(t.type!==n.Project&&i.type===n.Project)return{compatible:!1,type:"b-is-global-a-is-not",commonAncestorScope:i};if(td(t,i,e))return{compatible:!0,type:"b-in-a",commonAncestorScope:t};if(td(i,t,e))return{compatible:!0,type:"a-in-b",commonAncestorScope:i};const o=zc(t,i);return o===e?{compatible:!1,type:"parallel-in-project",commonAncestorScope:o}:o?{compatible:!1,type:"parallel-in-common-parent",commonAncestorScope:Jt(o,e)}:{compatible:!1,type:"parallel-in-project",commonAncestorScope:e}}function aw(r,a,e){const t=ga(r,a,e);if(!t.compatible||t.type!=="same-both-local")return null;if(r===a)return r;let i=Jt(r.parent,e);if(i){if(i===a)return a;if(i.type===n.Project)return r}else return r;for(;i;){if(i){if(i===a)return a;if(i.type===n.Project)return r}else return r;i=Jt(i.parent,e)}let s=Jt(a.parent,e);if(s){if(s===r)return r;if(s.type===n.Project)return a}else return a;for(;s;){if(s){if(s===r)return r;if(s.type===n.Project)return a}else return a;s=Jt(s.parent,e)}return null}function ow(r){return r.length===0?null:r.length===1?r[0]:r.reduce((e,t)=>{const i=aw(e,t,t.project);return!i||i===t?e:t},r[0])}function Ai(r,a){if(!r)return null;let e;return typeof r=="string"?e=r:r.type===n.GenericReference?e=_(r):e=r.id,e===a.id?a:a.get(e)}function an(r){if(!r)return null;if(fi.includes(r.type))return r;if(r.type===n.Project)return null;if(r.project.getBuiltIn(r.id))return r;const a=r.parent;return!a||a.type===n.Project?null:an(a)}function Ga(r){const a=[];function e(s,l){return a.some(o=>o.blockedByCaller===s&&o.blockedByCalling===l)}function t(s,l){e(s,l)||a.push({blockedByCaller:s,blockedByCalling:l})}const i=nf(r,r.project);return r.calledBySuccess.forEach(s=>{[...s.successCalls||[]].forEach(d=>{ot.includes(d.type)&&d!==r&&(Je(r).find(c=>c===d)||t(s,d))});let o;if(dt.includes(s.type)&&(o=s),o){const d=Ga(o);d.reachable||Je(r).find(c=>c===s)||d.blocks.forEach(c=>{t(s,c.blockedByCalling)})}}),r.calledByError.forEach(s=>{[...s.errorCalls||[]].forEach(d=>{ot.includes(d.type)&&d!==r&&(Je(r).find(c=>c===d)||t(s,d))});let o;if(dt.includes(s.type)&&(o=s),o){const d=Ga(o);d.reachable||Je(r).find(c=>c===s)||d.blocks.forEach(c=>{t(s,c.blockedByCalling)})}}),r.calledByEntry.forEach(s=>{if([...s.calls||[]].forEach(d=>{ot.includes(d.type)&&d!==r&&(Je(r).find(c=>c===d)||t(s,d))}),s===i)return;let o;if(s.type===n.FunctionDeclaration){const d=Vt(s);if(d.type===n.DefinitionEntity)return;d.type===n.Loop&&(o=d)}if(o){const d=Ga(o);d.reachable||d.blocks.forEach(u=>{t(s,u.blockedByCalling)})}}),{reachable:a.length===0,entryPoint:i,blocks:a}}function FS(r){return Wa.includes(r.type)?r.type===n.FunctionDeclaration?!sw(r):!0:!1}function xS(r){if(n.ActionDescriptor===r.type){if(r.project.operationDeclarations.find(s=>s.id===r.id))return n.Operation;if(r.project.globalEventActionDescriptors.find(s=>s.id===r.id))return n.GlobalEvent;if(r.project.loopDeclarations.find(s=>s.id===r.id))return n.Loop;if(r.project.conditionDeclarations.find(s=>s.id===r.id))return n.Condition}return r.type}function rd(r,a){return r.type===n.BuiltInBaseEntity?r.name===a:!!ja(r).includes(a)}function kS(r,a){return r.type===n.BuiltInBaseEntity?r.name===a:!!La(r).includes(a)}function Fa(r,a){return r.type===n.BuiltInBaseEntity?r.name===a:!!ef(r).includes(a)}function ZS(r){const a=[];return r.entities.forEach(e=>{if(rd(e,S.PERSISTED_ENTITY)){a.push(e);return}}),p(a)}function qS(r){const a=[];return r.entities.forEach(e=>{if(rd(e,S.RELATIONAL_DATABASE)){a.push(e);return}}),p(a)}function JS(r){return r.type!==n.DefinitionEntity||r.abstract||!rd(r,S.PERSISTED_ENTITY)?null:(r==null?void 0:r.properties.find(e=>{var t;return((t=e.implements)==null?void 0:t.id)===k[n.BuiltInBaseEntity][S.PERSISTED_ENTITY].properties.primaryKey.id&&!e.abstract}))||null}function SS(r){if(r.type!==n.DefinitionEntity)return[];if(r.abstract)return[];if(!Fa(r,S.PERSISTED_ENTITY))return r.id==="a2d0ec83-72ce-4f54-b059-a39e018fa86c"&&console.log("Entity does not have persisted base entity",r),[];const a=[],e=r.properties.filter(t=>{var i;return((i=t.implements)==null?void 0:i.id)!==k[n.BuiltInBaseEntity][S.PERSISTED_ENTITY].properties.database.id&&!t.abstract});return a.push(...e),a}function WS(r){var e;if(!r||r.type!==n.DefinitionEntity||!Fa(r,S.PERSISTED_ENTITY))return null;const a=r.properties.find(t=>{var i;return((i=t.implements)==null?void 0:i.id)===k[n.BuiltInBaseEntity][S.PERSISTED_ENTITY].properties.database.id});return(e=a==null?void 0:a.getDefaultValue())==null?void 0:e.valueAsTypeSingle}function mt(r,a){var t;if(!pf.includes(a.type)||!r)return a.project||null;let e=a.project;return r.type===n.Project?e=r:((t=a.project)==null?void 0:t.id)!==r.project.id&&(e=r.project),e}function zS(r){switch(r){case n.Project:return m;case n.InstalledProject:return Kr;case n.DefinitionEntity:return on;case n.FunctionDeclaration:return xr;case n.GlobalEvent:return qr;case n.VariableInstance:return zr;case n.VariableDeclaration:return Yr;case n.InputMap:return Ki;case n.OutputMap:return Xi;case n.Condition:return Wr;case n.Operation:return Zr;case n.FunctionCall:return nn;case n.ReturnDeclaration:return ei;case n.ArgumentDeclaration:return Er;case n.PrimitiveEntity:return ii;case n.DataType:return kr;case n.Property:return Gr;case n.ActionDescriptor:return Se;case n.ReturnStatement:return Fr;case n.ContinueStatement:return Ut;case n.BreakStatement:return Jr;case n.Loop:return Sr;case n.Search:return Hr;case n.ValueDescriptor:return Ir;case n.InternalCall:return Xr;case n.LiteralValue:return Qr}return null}function YS(r){const a={added:{},updated:{},removed:{},affected:[],seenEntities:[],self:r==null?void 0:r.self};return r==null||r.added.forEach(e=>{a.added[e.id]=e}),r==null||r.updated.forEach(e=>{a.updated[e.id]=e}),r==null||r.removed.forEach(e=>{a.removed[e.id]=e}),a.affected=Array.from(new Set(r==null?void 0:r.affected.map(e=>e.id))),a}function ct(r,a){const e=$a(r.type);return e?!e.MUTABLE_META_PROPERTIES.every(i=>{const s=r[i],l=a[i];return l===void 0||s===l?!0:Array.isArray(s)&&Array.isArray(l)?s.length!==l.length?!1:s.every((o,d)=>o===l[d]):!1}):!1}function nd(r,a={}){if(r.type===n.Project)return[];if(!r.parent)return[];const e=_(r.parent);if(!e)return[];const t=a[e];return t?[t.id,...nd(t,a)]:[]}function HS(r){const a=[],e=new Set;return[...r.listAdded,...r.listUpdated,...r.listAffected].forEach(t=>{const i=Vt(t);!i||e.has(i.id)||(e.add(i.id),a.push(i))}),p(a)}function lw(r){const a=P7(),e=r.toJSON();a.safeParse(e).success;const i=r.implements.flatMap(y=>KS(r,y)),s=r.extends.flatMap(y=>XS(r,y)),l=eW(r),o=QS(r);r.methods.flatMap(y=>y.validate());const d=[...i,...s,...l,...o];return Ke(r.errors,d)}function dw(r,a){const e=a.properties.filter(s=>s.abstract),t=[];let i=[...r.properties];return e.forEach(s=>{const l=i.find(o=>{var d;return((d=o.implements)==null?void 0:d.id)===s.id});l?i=i.filter(o=>o.id!==l.id):t.push(s)}),t}function uw(r,a){const e=a.abstractMethods,t=[];let i=[...r.methods];return e.forEach(s=>{const l=i.find(o=>{var d;return((d=o.implements)==null?void 0:d.id)===s.id});l?i=i.filter(o=>o.id!==l.id):t.push(s)}),t}function KS(r,a){const e=[];if(!a.abstract){const y=de({id:r.id+"--"+F.ImplementingNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is implementing a non-abstract entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.ImplementingNonAbstractEntity,entity:r});return e.push(y.error),e}const t=a.properties.filter(y=>y.abstract),i=[];let s=[...r.properties];t.forEach(y=>{const c=s.find(E=>{var I;return((I=E.implements)==null?void 0:I.id)===y.id});c?s=s.filter(E=>E.id!==c.id):i.push(y)}),i.length&&i.forEach(y=>{const c=de({id:r.id+"--"+F.MissingPropertyImplementation+"--"+y.id,message:`Property "${y.name}" with id "${y.id}" of entity "${a.name}" with id "${a.id}" is not implemented when entity "${r.name}" with id "${r.id}" implements it`,issue:null,severity:D.Error,code:F.MissingPropertyImplementation,entity:r});e.push(c.error)});const l=[];let o=[...r.methods];a.abstractMethods.forEach(y=>{const c=o.find(E=>{var I;return((I=E.implements)==null?void 0:I.id)===y.id});c?o=o.filter(E=>E.id!==c.id):l.push(y)}),l.length&&l.forEach(y=>{const c=de({id:r.id+"--"+F.MissingMethodImplementation+"--"+y.id,message:`Method "${y.name}" with id "${y.id}" of entity "${a.name}" with id "${a.id}" is not implemented when entity "${r.name}" with id "${r.id}" implements it`,issue:null,severity:D.Error,code:F.MissingMethodImplementation,entity:r});e.push(c.error)});const d=[];a.properties.forEach(y=>{const c=s.find(E=>E.name===y.name);c&&d.push([c,y])}),d.length&&d.forEach(([y])=>{const c=de({id:r.id+"--"+$.PropertyOverwritesOtherSiblingWithSameName+"--"+y.id,message:`Property "${y.name}" with id "${y.id}" of entity "${r.name}" with id "${r.id}" overwrites the property with the same name from the base entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:$.PropertyOverwritesOtherSiblingWithSameName,entity:r});e.push(c.error)});const u=[];return a.methods.forEach(y=>{const c=o.find(E=>E.name===y.name);c&&u.push([c,y])}),u.length&&u.forEach(([y])=>{const c=de({id:r.id+"--"+$.MethodOverwritesOtherSiblingWithSameName+"--"+y.id,message:`Method "${y.name}" with id "${y.id}" of entity "${r.name}" with id "${r.id}" overwrites the method with the same name from the base entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:$.MethodOverwritesOtherSiblingWithSameName,entity:r});e.push(c.error)}),e}function XS(r,a){const e=[],t=[];if(!r.abstract&&a.abstract){const s=de({id:r.id+"--"+a.id+"--"+F.NonAbstractExtendingAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is not-abstract but is extending an abstract entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.NonAbstractExtendingAbstractEntity,entity:r,firstRelationship:a});return e.push(s.error),e}if(r.abstract&&!a.abstract){const s=de({id:r.id+"--"+a.id+"--"+F.AbstractExtendingNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is abstract but is extending an non-abstract entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.AbstractExtendingNonAbstractEntity,entity:r,firstRelationship:a});return e.push(s.error),e}r.properties.forEach(s=>{var o;const l=a.properties.find(d=>d.name===s.name);((o=s.implements)==null?void 0:o.id)!==(l==null?void 0:l.id)&&l&&t.push(s)}),t.length&&t.forEach(s=>{const l=de({id:r.id+"--"+$.PropertyOverwritesOtherSiblingWithSameName,message:`Property "${s.name}" with id "${s.id}" of entity "${r.name}" with id "${r.id}" overwrites the property with the same name from the extended entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:$.PropertyOverwritesOtherSiblingWithSameName,entity:r});e.push(l.error)});const i=[];return r.methods.forEach(s=>{var o;const l=a.methods.find(d=>d.name===s.name);((o=s.implements)==null?void 0:o.id)!==(l==null?void 0:l.id)&&l&&i.push(s)}),i.length&&i.forEach(s=>{const l=de({id:r.id+"--"+$.MethodOverwritesOtherSiblingWithSameName,message:`Method "${s.name}" with id "${s.id}" of entity "${r.name}" with id "${r.id}" overwrites the method with the same name from the extended entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:$.MethodOverwritesOtherSiblingWithSameName,entity:r});e.push(l.error)}),e}function QS(r){const a=[];if(!r.properties.length){const e=de({id:r.id+"--"+F.NoProperties,message:"No properties implemented",issue:null,severity:D.Warning,code:F.NoProperties,entity:r});a.push(e.error)}return r.properties.forEach(e=>{e.validate()}),a}function eW(r){const a=[];if(r.abstract){if(r.methods.length){const e=de({id:r.id+"--"+F.AbstractEntityWithNonAbstractMethods,message:`Entity "${r.name}" with id "${r.id}" is marked as abstract but has non-abstract methods`,issue:null,severity:D.Error,code:F.AbstractEntityWithNonAbstractMethods,entity:r});a.push(e.error)}if(r.properties.some(e=>!e.abstract)){const e=de({id:r.id+"--"+F.AbstractEntityWithNonAbstractProperties,message:`Entity "${r.name}" with id "${r.id}" is marked as abstract but has non-abstract properties`,issue:null,severity:D.Error,code:F.AbstractEntityWithNonAbstractProperties,entity:r});a.push(e.error),r.properties.forEach(t=>{if(!t.abstract){const i=de({id:r.id+"--"+F.StaticEntityWithNonStaticProperties+"--"+t.id,message:`Property "${t.name}" with id "${t.id}" of entity "${r.name}" with id "${r.id}" is not marked as abstract but the entity is marked as abstract`,issue:null,severity:D.Error,code:F.StaticEntityWithNonStaticProperties,entity:r});a.push(i.error)}})}}else{if(r.abstractMethods.length){const e=de({id:r.id+"--"+F.AbstractPropertyInNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is not marked as abstract but has abstract methods`,issue:null,severity:D.Error,code:F.AbstractPropertyInNonAbstractEntity,entity:r});a.push(e.error)}if(r.properties.some(e=>e.abstract)){const e=de({id:r.id+"--"+F.AbstractMethodInNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is not marked as abstract but has abstract properties`,issue:null,severity:D.Error,code:F.AbstractMethodInNonAbstractEntity,entity:r});a.push(e.error),r.properties.forEach(t=>{if(t.abstract){const i=de({id:r.id+"--"+F.AbstractMethodInNonAbstractEntity+"--"+t.id,message:`Property "${t.name}" with id "${t.id}" of entity "${r.name}" with id "${r.id}" is marked as abstract but the entity is not marked as abstract`,issue:null,severity:D.Error,code:F.AbstractMethodInNonAbstractEntity,entity:r});a.push(i.error)}})}}if(r.static&&r.properties.some(e=>!e.static)){const e=de({id:r.id+"--"+F.StaticEntityWithNonStaticProperties,message:`Entity "${r.name}" with id "${r.id}" is marked as static but has non-static properties`,issue:null,severity:D.Error,code:F.StaticEntityWithNonStaticProperties,entity:r});a.push(e.error),r.properties.forEach(t=>{if(!t.static){const i=de({id:r.id+"--"+F.NonStaticPropertyInStaticEntity+"--"+t.id,message:`Property "${t.name}" with id "${t.id}" of entity "${r.name}" with id "${r.id}" is not marked as static but the entity is marked as static`,issue:null,severity:D.Error,code:F.NonStaticPropertyInStaticEntity,entity:r});a.push(i.error)}})}return a}function tW(r,a){const e=[],t=qt(a);if(!a.abstract){const l=new Ye({id:r.id+"--"+a.id+"--"+F.ImplementingNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is implementing a non-abstract built-in entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.ImplementingNonAbstractEntity,entity:r,firstRelationship:a});e.push(l)}const i=r.implements.filter(l=>l.id!==a.id);if(r.abstract){const l=new Ye({id:r.id+"--"+a.id+"--"+F.AbstractEntityImplements,message:`Entity "${r.name}" with id "${r.id}" is marked as abstract and cannot implement built-in entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.AbstractEntityImplements,entity:r,firstRelationship:a});e.push(l)}if(r.static&&!a.static){const l=new Ye({id:r.id+"--"+a.id+"--"+F.StaticImplementingNonStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is marked as static and cannot implement non-static built-in entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.StaticImplementingNonStaticEntity,entity:r,firstRelationship:a});e.push(l)}if(!r.static&&a.static){const l=new Ye({id:r.id+"--"+a.id+"--"+F.NonStaticImplementingStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is not marked as static and cannot implement static built-in entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.NonStaticImplementingStaticEntity,entity:r,firstRelationship:a});e.push(l)}return i.length&&i.forEach(l=>{if(l.type===n.BuiltInBaseEntity){const o=t.filter(d=>d.id!==l.id);o.length&&o.forEach(d=>{if(d.id!==l.id){const u=new Ye({id:r.id+"--"+d.id+"--"+l.id+"--"+F.ImplementsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${d.name}" with id "${d.id}" but also implements entity "${l.name}" with id "${l.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ImplementsIncompatibleEntities,entity:r,firstRelationship:d,secondRelationship:l});e.push(u)}})}else{qt(l).forEach(y=>{const c=t.filter(E=>E.id!==y.id);c.length&&c.forEach(E=>{if(E.id!==y.id){const I=new Ye({id:r.id+"--"+E.id+"--"+y.id+"--"+F.ImplementsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${E.name}" with id "${E.id}" but also implements entity "${y.name}" with id "${y.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ImplementsIncompatibleEntities,entity:r,firstRelationship:E,secondRelationship:y});e.push(I)}})});const d=br(a.ownDeclaredProperties,l.ownDeclaredProperties,$.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation,$.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName);e.push(...d.errors);const u=br(a.abstractMethods,[...l.abstractMethods,...l.methods],$.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation,$.MethodOverwritesOtherImplementedEntitysMethodWithSameName);e.push(...u.errors)}}),p(r.extends.flatMap(l=>qt(l))).forEach(l=>{if(!t.find(o=>o.id===l.id)){const o=new Ye({id:r.id+"--"+a.id+"--"+l.id+"--"+F.ExtendsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${a.name}" with id "${a.id}" but also extends entity "${l.name}" with id "${l.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ExtendsIncompatibleEntities,entity:r,firstRelationship:a,secondRelationship:l});e.push(o)}}),e}function iW(r,a,e=!1){const t=[],i=qt(a);if(!r.abstract&&a.abstract){const y=de({id:r.id+"--"+a.id+"--"+F.NonAbstractExtendingAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is not-abstract but is extending an abstract entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.NonAbstractExtendingAbstractEntity,entity:r,firstRelationship:a});t.push(y.error)}if(r.abstract&&!a.abstract){const y=de({id:r.id+"--"+a.id+"--"+F.AbstractExtendingNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is abstract but is extending an non-abstract entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.AbstractExtendingNonAbstractEntity,entity:r,firstRelationship:a});t.push(y.error)}if(!r.static&&a.static){const y=de({id:r.id+"--"+a.id+"--"+F.NonStaticExtendingStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is not static but is extending a static entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.NonStaticExtendingStaticEntity,entity:r,firstRelationship:a});t.push(y.error)}if(r.static&&!a.static){const y=de({id:r.id+"--"+a.id+"--"+F.StaticExtendingNonStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is static but is extending an non-static entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.StaticExtendingNonStaticEntity,entity:r,firstRelationship:a});t.push(y.error)}if(!Ua(a)){const y=de({id:r.id+"--"+a.id+"--"+F.ExtendingNonInteractiveEntity,message:`Entity "${r.name}" with id "${r.id}" is extending an non-interactive entity "${a.name}" with id "${a.id}"`,issue:null,severity:D.Error,code:F.ExtendingNonInteractiveEntity,entity:r,firstRelationship:a});t.push(y.error)}const l=r.extends.filter(y=>y.id!==a.id);l.length&&l.forEach(y=>{if(y.type===n.BuiltInBaseEntity){const c=i.filter(E=>E.id!==y.id);c.length&&c.forEach(E=>{if(E.id!==y.id){const I=de({id:r.id+"--"+E.id+"--"+y.id+"--"+F.ExtendsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is extending built-in entity "${E.name}" with id "${E.id}" but also extends entity "${y.name}" with id "${y.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ExtendsIncompatibleEntities,entity:r,firstRelationship:E,secondRelationship:y});t.push(I.error)}})}else{qt(y).forEach(M=>{const g=i.filter(B=>B.id!==M.id);g.length&&g.forEach(B=>{if(B.id!==M.id){const G=new Ye({id:r.id+"--"+B.id+"--"+M.id+"--"+F.ImplementsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is extending built-in entity "${B.name}" with id "${B.id}" but also extends or implements entity "${M.name}" with id "${M.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ImplementsIncompatibleEntities,entity:r,firstRelationship:B,secondRelationship:M});t.push(G)}})});const E=!!qt(y).find(M=>M.id===a.id);let I=[...y.properties];E&&(I=I.filter(M=>!a.properties.find(g=>{var B;return g.id===M.id||g.name===M.name||g.id===((B=M.implements)==null?void 0:B.id)})));let O=[...y.methods];E&&(O=O.filter(M=>!a.methods.find(g=>{var B;return g.id===M.id||g.name===M.name||g.id===((B=M.implements)==null?void 0:B.id)})));const P=br(a.ownDeclaredProperties,I,$.PropertyOverwritesOtherExtendedEntitysPropertyWithSameImplementation,$.PropertyOverwritesOtherExtendedEntitysPropertyWithSameName);t.push(...P.errors);const V=br(a.abstractMethods,O,$.MethodOverwritesOtherExtendedEntitysMethodWithSameImplementation,$.MethodOverwritesOtherExtendedEntitysMethodWithSameName);t.push(...V.errors)}}),e&&console.log("self.implements.length",r.implements.length),r.implements.length&&r.implements.forEach(y=>{if(y.type===n.BuiltInBaseEntity){const c=i.filter(E=>E.id!==y.id);c.length&&c.forEach(E=>{if(E.id!==y.id){const I=new Ye({id:r.id+"--"+E.id+"--"+y.id+"--"+F.ImplementsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${E.name}" with id "${E.id}" but also implements entity "${y.name}" with id "${y.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ImplementsIncompatibleEntities,entity:r,firstRelationship:E,secondRelationship:y});t.push(I)}})}else{qt(y).forEach(O=>{const P=i.filter(V=>V.id!==O.id);P.length&&P.forEach(V=>{if(V.id!==O.id){const M=new Ye({id:r.id+"--"+V.id+"--"+O.id+"--"+F.ImplementsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${V.name}" with id "${V.id}" but also implements entity "${O.name}" with id "${O.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ImplementsIncompatibleEntities,entity:r,firstRelationship:V,secondRelationship:O});t.push(M)}})});const E=br(a.ownDeclaredProperties,y.ownDeclaredProperties,$.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation,$.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName);t.push(...E.errors);const I=br(a.abstractMethods,[...y.abstractMethods,...y.methods],$.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation,$.MethodOverwritesOtherImplementedEntitysMethodWithSameName);t.push(...I.errors)}});const o=br(r.ownDeclaredProperties,a.ownDeclaredProperties,$.PropertyOverwritesOtherSiblingWithSameImplementation,$.PropertyOverwritesOtherSiblingWithSameName);t.push(...o.errors);const d=br(a.methods,a.abstractMethods,$.MethodOverwritesOtherSiblingWithSameImplementation,$.MethodOverwritesOtherSiblingWithSameName);return t.push(...d.errors),p(r.extends.flatMap(y=>qt(y))).forEach(y=>{if(!i.find(c=>c.id===y.id)){const c=new Ye({id:r.id+"--"+a.id+"--"+y.id+"--"+F.ImplementsIncompatibleEntities,message:`Entity "${r.name}" with id "${r.id}" is extending built-in entity "${a.name}" with id "${a.id}" but also extends entity "${y.name}" with id "${y.id}" which is incompatible`,issue:null,severity:D.Error,code:F.ImplementsIncompatibleEntities,entity:r,firstRelationship:a,secondRelationship:y});t.push(c)}}),t}function rW(r){const a=[];return r.implements.forEach(e=>{if(!e.static){const t=new Ye({id:r.id+"--"+e.id+"--"+F.StaticImplementingNonStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is static but implements entity "${e.name}" with id "${e.id}" which is non-static`,issue:null,severity:D.Error,code:F.StaticImplementingNonStaticEntity,entity:r,firstRelationship:e});a.push(t)}}),r.extends.forEach(e=>{if(!e.static){const t=new Ye({id:r.id+"--"+e.id+"--"+F.StaticExtendingNonStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is static but extends entity "${e.name}" with id "${e.id}" which is non-static`,issue:null,severity:D.Error,code:F.StaticExtendingNonStaticEntity,entity:r,firstRelationship:e});a.push(t)}}),a}function nW(r){const a=[];if(r.implements.length){const e=new Ye({id:r.id+"--"+F.AbstractEntityImplements,message:`Entity "${r.name}" with id "${r.id}" cannot be marked as abstract because it implements other entities`,issue:null,severity:D.Error,code:F.AbstractEntityImplements,entity:r});a.push(e)}return r.extends.forEach(e=>{if(!e.abstract){const t=new Ye({id:r.id+"--"+e.id+"--"+F.AbstractExtendingNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is abstract but extends entity "${e.name}" with id "${e.id}" which is non-abstract`,issue:null,severity:D.Error,code:F.AbstractExtendingNonAbstractEntity,entity:r,firstRelationship:e});a.push(t)}}),a}function sW(r){const a=[];return r.extends.forEach(e=>{if(e.static){const t=new Ye({id:r.id+"--"+e.id+"--"+F.NonStaticExtendingStaticEntity,message:`Entity "${r.name}" with id "${r.id}" is non-static but extends entity "${e.name}" with id "${e.id}" which is static`,issue:null,severity:D.Error,code:F.NonStaticExtendingStaticEntity,entity:r,firstRelationship:e});a.push(t)}}),a}function aW(r){const a=[];return r.extends.forEach(e=>{if(e.abstract){const t=new Ye({id:r.id+"--"+e.id+"--"+F.NonAbstractExtendingAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is non-abstract but extends entity "${e.name}" with id "${e.id}" which is abstract`,issue:null,severity:D.Error,code:F.NonAbstractExtendingAbstractEntity,entity:r,firstRelationship:e});a.push(t)}}),a}const oW=Object.freeze(Object.defineProperty({__proto__:null,getBaseMethodsNotImplemented:uw,getBasePropertiesNotImplemented:dw,validate:lw,validateCanBecomeAbstract:nW,validateCanBecomeNonAbstract:aW,validateCanBecomeNonStatic:sW,validateCanBecomeStatic:rW,validateCanExtendEntity:iW,validateCanImplementEntity:tW},Symbol.toStringTag,{value:"Module"}));function lW(r,a){const e=[];if(r.parent)if(r.id===r.parent)e.push(new w({id:`${r.id}--${r.parent}--${R.SelfReference}`,code:R.SelfReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to itself at 'parent'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,issue:null}));else{const t=a.get(r.parent);t?[n.Project,n.DataType].includes(t.type)||e.push(new w({id:`${r.id}--${r.parent}--${R.InvalidParentReference}`,code:R.InvalidParentReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a parent reference that isn't pointing to an entity of type 'project' or 'data-type'.`,issue:null})):e.push(new w({id:`${r.id}--${r.parent}--${R.ReferencedEntityNotFound}`,code:R.ReferencedEntityNotFound,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${r.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}return r.implements&&Array.isArray(r.implements)?r.implements.forEach(t=>{if(r.id===t){e.push(new w({id:`${r.id}--${t}--${R.SelfReference}`,code:R.SelfReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to itself at one of the 'implements' references. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,issue:null}));return}const i=a.get(t);i?[n.DefinitionEntity,n.BuiltInBaseEntity].includes(i.type)?i.abstract||e.push(new w({id:`${r.id}--${t}--${R.InvalidImplementsReference}`,code:R.InvalidImplementsReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'implements' reference that isn't pointing to an abstract entity.`,issue:null})):e.push(new w({id:`${r.id}--${t}--${R.InvalidImplementsReference}`,code:R.InvalidImplementsReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'implements' reference that isn't pointing to an entity of type 'definition-entity' or 'built-in-base-entity'.`,issue:null})):e.push(new w({id:`${r.id}--${t}--${R.ReferencedEntityNotFound}`,code:R.ReferencedEntityNotFound,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${t}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}):e.push(new w({id:`${r.id}--${$.InvalidObjectStructure}`,code:$.InvalidObjectStructure,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'implements' property that isn't an array.`,issue:null})),r.extends&&Array.isArray(r.extends)&&r.extends.forEach(t=>{const i=a.get(t);i?[n.DefinitionEntity,n.BuiltInBaseEntity].includes(i.type)?i.abstract&&e.push(new w({id:`${r.id}--${t}--${R.InvalidExtendsReference}`,code:R.InvalidExtendsReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'extends' reference that isn't pointing to a non-abstract entity. Did you want to use the property 'implements', which holds a list of references to absract entities, instead?`,issue:null})):e.push(new w({id:`${r.id}--${t}--${R.InvalidExtendsReference}`,code:R.InvalidExtendsReference,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'extends' reference that isn't pointing to an entity of type 'definition-entity' or 'built-in-base-entity'.`,issue:null})):e.push(new w({id:`${r.id}--${t}--${R.ReferencedEntityNotFound}`,code:R.ReferencedEntityNotFound,severity:D.Error,message:`Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${t}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}),e}var sd=(r=>(r.Extends="extends",r.Implements="implements",r))(sd||{});const Ue=class Ue extends lt{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"name");f(this,"description",null);f(this,"x");f(this,"y");f(this,"static");f(this,"abstract");f(this,"type",n.DefinitionEntity);f(this,"properties",[]);f(this,"methods",[]);f(this,"abstractMethods",[]);f(this,"extends",[]);f(this,"implements",[]);f(this,"project");f(this,"errors",[]);f(this,"parent");f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);f(this,"suggestedProperties",[]);f(this,"suggestedMethods",[]);this.initialData=e,this.project=t,this.id=e.id,this.name=e.name,this.description=e.description,this.x=e.x,this.y=e.y,this.static=e.static,this.abstract=e.abstract}static new(e=null){return{id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:(e==null?void 0:e.author)||m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DefinitionEntity,name:"",description:"",static:!1,abstract:!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[],x:0,y:0,parent:null}}static fromGenerationTarget(e,t){let i=t;if(e.parent){const u=_(e.parent);i=t.get(u)}const s=[];e.implements&&e.implements.forEach(u=>{s.push(t.get(u)||t.getBuiltIn(u))});const l=[];e.extends&&e.extends.forEach(u=>{l.push(t.get(u)||t.getBuiltIn(u))});const o={id:e.id,version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:e.name,type:n.DefinitionEntity,description:e.description,static:e.static,abstract:e.abstract,properties:[],methods:[],abstractMethods:[],extends:l,implements:s,x:0,y:0,parent:i},d=C(o,t);return d.setParent(i,null),d.initChildren(null),d}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const s=[],l=lW(i,t),o=Ac(i,t);s.push(...l,...o,...pt(i));const d=i.parent?t.get(i.parent):null;if(d&&d.type===n.DataType){const u=d;u.entity&&s.push(new w({id:`${e.id}--${R.NewEntityWouldOverriteExisting}`,code:R.NewEntityWouldOverriteExisting,severity:D.Error,message:`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${u.id}' because it already has an 'entity' child. Data type entities can only have one 'entity' as children.
|
|
406
406
|
You can inspect the existing 'entity' field with the 'describe_entity' action. Like so:
|
|
407
407
|
${Qi({describe_entity:u.entity.id})}
|
|
408
408
|
Alternatively you can update the parent data-type entity with 'update' action to remove the existing value of the field.`,issue:null}))}return{errors:s,modifiedData:i}}get interactive(){return this.implements.length?this.implements.every(e=>e.interactive):!0}get allBasePropertiesFromExtendedAndImplementedEntities(){return p([...this.extends.reduce((e,t)=>[...[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(s=>!s.abstract),...e],[]),...this.implements.reduce((e,t)=>[...[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(s=>!s.abstract),...e],[])])}get allBaseMethodsFromExtendedAndImplementedEntities(){return p([...this.extends.reduce((e,t)=>t.type!==n.DefinitionEntity?[]:[...[...t.ownDeclaredMethods,...t.allBaseMethodsFromExtendedAndImplementedEntities].filter(s=>s.type!==n.ActionDescriptor),...e],[]),...this.implements.reduce((e,t)=>t.type!==n.DefinitionEntity?t.abstractMethods:[...[...t.ownDeclaredMethods,...t.allBaseMethodsFromExtendedAndImplementedEntities].filter(s=>s.type!==n.ActionDescriptor),...e],[])])}get extendedPropertiesFromOriginalParents(){return p(this.extends.reduce((e,t)=>{const i=[...t.ownDeclaredProperties,...t.extendedPropertiesFromOriginalParents].filter(s=>!s.abstract);return[...e,...i]},[]))}get implementedPropertiesFromOriginalParents(){return p([...this.extends.reduce((e,t)=>{const i=t.implementedPropertiesFromOriginalParents,s=[...t.ownDeclaredProperties].filter(l=>!!l.abstract&&!i.find(o=>o.name===l.name));return[...i,...s,...e]},[]),...this.implements.reduce((e,t)=>{const i=t.implementedPropertiesFromOriginalParents,s=[...t.ownDeclaredProperties].filter(l=>!!l.abstract&&!i.find(o=>o.name===l.name));return[...i,...s,...e]},[])].filter(e=>!!e.abstract))}get extendedMethodsFromOriginalParents(){return p(this.extends.reduce((e,t)=>{if(t.type!==n.DefinitionEntity)return[];const i=[...t.ownDeclaredMethods,...t.extendedMethodsFromOriginalParents].filter(s=>s.type!==n.ActionDescriptor);return[...e,...i]},[]))}get implementedMethodsFromOriginalParents(){return p([...this.extends.reduce((e,t)=>{const i=t.type===n.DefinitionEntity?t.methods:[],s=[...t.abstractMethods].filter(l=>!i.find(o=>o.name===l.name));return[...i,...s,...e]},[]),...this.implements.reduce((e,t)=>[...t.abstractMethods,...e],[])].filter(e=>e.type===n.ActionDescriptor))}get extendedProperties(){return this.properties.filter(e=>e.isExtendedProperty)}get ownDeclaredProperties(){return this.properties.filter(e=>!e.isExtendedProperty)}get extendedMethods(){return this.methods.filter(e=>e.isExtendedMethod)}get ownDeclaredMethods(){return this.methods.filter(e=>!e.isExtendedMethod)}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new w({id:`${this.id}--${R.InvalidParentUpdate}`,code:R.InvalidParentUpdate,severity:D.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on an '${this.type}', must be the root project as it is a globally declared entity.`,issue:null})),{errors:t,modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-dependents"))){const t=[],i=[],s=[],l=[];return Object.values(this.detachedDependents).forEach(o=>{const d=o.entity.afterAllChildrenInitialized(e);t.push(...d.updated),i.push(...d.added),s.push(...d.removed),l.push(...d.affected)}),e==null||e.attemptAutoclose("sync-dependents",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}onDetachedDependencyRemoved(e,t,i){const s=[],l=[],o=[],d=[];return t==="implements"&&this.removeImplementation(e),t==="extends"&&this.removeExtension(e),{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}onDetachedDependencyRestored(e,t,i){const s=[],l=[],o=[],d=[];return t==="implements"&&this.addImplementation(e),t==="extends"&&this.addExtension(e),{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}subscribeToDependencies(){return this.implements.forEach(e=>{fi.includes(e.type)||e.subscribeDependents([{entity:this,field:"implements"}])}),this.extends.forEach(e=>{fi.includes(e.type)||e.subscribeDependents([{entity:this,field:"extends"}])}),this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=m.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new Ue(this,this.project);return e.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,e):new Map([[this.version,e]]),e.properties=this.properties,e.methods=this.methods,e.abstractMethods=this.abstractMethods,e.extends=this.extends,e.implements=this.implements,e.parent=this.parent,this}recursiveCaptureUpstreamVersions(e){const t=[],i=[],s=[],l=[];if(this.parent){this.parent.increaseVersion(e);const o=this.parent.recursiveCaptureUpstreamVersions(e);t.push(this.parent,...o.updated),i.push(...o.added),s.push(...o.removed)}return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}async restoreVersion(e){var d;const t=[],i=[],s=[],l=[];if(this.version===e)return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this};if(!this.knownVersions){const u=new Map;for(const[y,c]of this.knownVersions||new Map){if(u.set(y,c),c.activeVersion=!1,c.knownVersions)for(const[E,I]of c.knownVersions)u.set(E,I);c.knownVersions=null}}let o=(d=this.knownVersions)==null?void 0:d.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new Ue(u,this.project)}return this.metaSync(o.toShallowJSON(),null),this.properties=o.properties,this.methods=o.methods,this.abstractMethods=o.abstractMethods,this.extends=o.extends,this.implements=o.implements,this.parent=o.parent,{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}hydrateAncestors(){const e=[],t=[],i=[],s=[];if(this.initialData.parent){const l=_(this.initialData.parent),o=this.project.get(l);if(o)this.setParent(o,null),e.push(o);else throw new Error(`${this.type} with id '${this.id}' has a 'parent' reference '${l}' that isn't found in the project`)}else throw new Error(`${this.type} with id '${this.id}' must have a 'parent'`);return this.initialData.extends.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addExtension(d),d.type!==n.BuiltInBaseEntity&&e.push(d))}),this.initialData.implements.forEach(l=>{const o=_(l),d=this.project.get(o);d&&(this.addImplementation(d),d.type!==n.BuiltInBaseEntity&&e.push(d))}),{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}afterAllChildrenInitialized(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"after-all-children-initialized"))){const t=[],i=[],s=[],l=[];this.initialized=!0;const{updated:o,added:d,removed:u,affected:y}=this.syncImplementationProperties(e);t.push(...o),i.push(...d),s.push(...u),l.push(...y);const{updated:c,added:E,removed:I,affected:O}=this.addExtendedProperties(e);t.push(...c),i.push(...E),s.push(...I),l.push(...O);const{updated:P,added:V,removed:M}=this.removeUnrecognizedProperties(e);t.push(...P),i.push(...V),s.push(...M);const{updated:g,added:B,removed:G,affected:q}=this.syncImplementationMethods(e);t.push(...g),i.push(...B),s.push(...G),l.push(...q);const{updated:W,added:X,removed:pe}=this.removeUnrecognizedMethods(e);return t.push(...W),i.push(...X),s.push(...pe),this.addSuggestions(),this.captureVersion(),e==null||e.attemptAutoclose("after-all-children-initialized",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}addSelfToProject(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-self-to-project"))){const t=[this],i=[],s=[],l=[];if(this.parent.type===n.DataType){const o=this.parent;o.entity=this,t.push(o)}else this.project.addDefinitionEntity(this);return this.subscribe(),this.subscribeToDependencies(),e==null||e.attemptAutoclose("add-self-to-project",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}setParent(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"set-parent"))){var i;return((i=this.parent)==null?void 0:i.id)!==(e==null?void 0:e.id)&&(this.parent=e,t&&(t==null||t.add(this,b.Updated),t==null||t.attemptAutoclose("set-parent",this.id))),this}addExtension(e){return this.extends.includes(e)||this.extends.push(e),this}removeExtension(e){return this.extends=this.extends.filter(t=>t.id!==e.id),this}addImplementation(e){return this.implements.includes(e)||this.implements.push(e),this}removeImplementation(e){return this.implements=this.implements.filter(t=>t.id!==e.id),this}removeProperty(e){return this.properties=this.properties.filter(t=>t.id!==e.id),this}addMethod(e){return this.methods.includes(e)||(this.methods.push(e),this.suggestedMethods=this.suggestedMethods.filter(t=>t.name!==e.name)),this}removeMethod(e){return this.methods=this.methods.filter(t=>t.id!==e.id),this}addProperty(e){return this.properties.includes(e)||(this.properties.push(e),this.suggestedProperties=this.suggestedProperties.filter(t=>t.name!==e.name)),this}addSuggestedProperty(e){return this.suggestedProperties.includes(e)||this.suggestedProperties.push(e),this}addSuggestedMethod(e){return this.suggestedMethods.includes(e)||this.suggestedMethods.push(e),this}removeSuggestedProperty(e){return this.suggestedProperties=this.suggestedProperties.filter(t=>t.id!==e.id),this}removeSuggestedMethod(e){return this.suggestedMethods=this.suggestedMethods.filter(t=>t.id!==e.id),this}addAbstractMethod(e){return this.abstractMethods.includes(e)||this.abstractMethods.push(e),this}removeAbstractMethod(e){return this.abstractMethods=this.abstractMethods.filter(t=>t.id!==e.id),this}initChildren(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.properties=this.initialData.properties.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.methods=this.initialData.methods.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.abstractMethods=this.initialData.abstractMethods.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(e),i}),this.extends=this.initialData.extends.map(t=>C(t,this.project)),this.implements=this.initialData.implements.map(t=>C(t,this.project)),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this)}removeUnrecognizedProperties(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-unrecognized-properties"))){const t=[],i=[],s=[],l=[];let o=[...this.properties];o=o.filter(u=>u.parent.id===this.id),o=o.filter(u=>!u.isExtendedProperty);const d=this.implementedPropertiesFromOriginalParents;return o=o.filter(u=>this.interactive&&!u.implements?!1:!d.find(y=>{var c;return y.id===((c=u.implements)==null?void 0:c.id)})),o.forEach(u=>{const y=u.remove({ignoreUpstream:!1},e);s.push(...y.removed),t.push(...y.updated)}),e==null||e.attemptAutoclose("remove-unrecognized-properties",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}removeUnrecognizedMethods(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-unrecognized-methods"))){const t=[],i=[],s=[],l=[];let o=[...this.methods];o=o.filter(u=>u.parent.id===this.id),o=o.filter(u=>!u.isExtendedMethod);const d=this.implementedMethodsFromOriginalParents;return o=o.filter(u=>this.interactive&&!u.implements?!1:!d.find(y=>{var c;return y.id===((c=u.implements)==null?void 0:c.id)})),o.forEach(u=>{const y=u.remove({ignoreUpstream:!1},e);s.push(...y.removed),t.push(...y.updated)}),e==null||e.attemptAutoclose("remove-unrecognized-methods",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}syncImplementationMethods(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-implementation-methods"))){const t=[],i=[],s=[],l=[],o=this.methods,d=this.implementedMethodsFromOriginalParents,u=[...this.allBaseMethodsFromExtendedAndImplementedEntities,...o];return d.filter(c=>!u.find(I=>{var O;return((O=I.implements)==null?void 0:O.id)===c.id})).forEach(c=>{if(this.methods.find(P=>{var V;return((V=P.implements)==null?void 0:V.id)===c.id}))return;const I=this.methods.find(P=>{var G,q;if(P.name===c.name&&!P.implements)return!0;const V=Fa(this,S.CRON_JOB),M=Fa(this,S.HTTP_ENDPOINT),g=((G=P.implements)==null?void 0:G.id)===k["built-in-base-entity"].BUILT_IN_HTTP_ENDPOINT_ENTITY.methods.handler.id,B=((q=P.implements)==null?void 0:q.id)===k["built-in-base-entity"].BUILT_IN_CRON_JOB_ENTITY.methods.handler.id;return!!(V&&!B&&!M&&g||M&&!g&&!V&&B)});if(I&&I.type===n.FunctionDeclaration){I.setImplements(c),I.metaSync({name:c.name},e),e==null||e.add(I,b.Updated),e==null||e.add(this,b.Updated);return}const O=c.implementAsFunctionDeclaration(e,this);i.push(O),e==null||e.add(O,b.Added),this.addMethod(O)}),e==null||e.attemptAutoclose("sync-implementation-methods",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}syncImplementationProperties(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-implementation-properties"))){const t=[],i=[],s=[],l=[],o=this.properties,d=this.implementedPropertiesFromOriginalParents,u=[...this.allBasePropertiesFromExtendedAndImplementedEntities,...o];return d.filter(c=>!u.find(I=>{var O;return((O=I.implements)==null?void 0:O.id)===c.id})).forEach(c=>{if(this.properties.find(P=>{var V;return((V=P.implements)==null?void 0:V.id)===c.id}))return;const I=this.properties.find(P=>P.name===c.name&&!!P.abstract&&!P.implements);if(I){I.implements=c,I.abstract=!1;return}const O=c.clone(e,this,m.UUID.uuid());O.initChildren(e),i.push(O),e==null||e.add(O,b.Added),O.setImplements(c,e),O.metaSync({abstract:!1},e),this.addProperty(O)}),e==null||e.attemptAutoclose("sync-implementation-properties",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}addExtendedProperties(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"add-extended-properties"))){const t=[],i=[],s=[],l=[],o=this.properties,d=this.extendedPropertiesFromOriginalParents,u=d.filter(c=>d.find(I=>{var O;return((O=I.implements)==null?void 0:O.id)===c.id})?!1:!c.abstract),y=new Set(o.map(c=>c.name));return u.forEach(c=>{if(y.has(c.name))return;y.add(c.name);const E=c.clone(e,this,m.UUID.uuid());E.initChildren(e),i.push(E),e==null||e.add(E,b.Added),this.addProperty(E)}),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}addSuggestions(){return this.implements.forEach(e=>{dw(this,e).forEach(s=>{const l=s.toJSON();l.id=`_suggestion--parent--${this.id}--${s.id}`;const o=C(l,this.project);o.suggestion=!0,o.setParent(this,null),o.initChildren(null),this.addSuggestedProperty(o)}),uw(this,e).forEach(s=>{const l=`_suggestion--parent--${this.id}--${s.id}`,o=s.implementAsFunctionDeclaration(null,this,l),d=C(o,this.project);if(d.suggestion=!0,d.setParent(this,null),d.initChildren(null),this.methods=this.methods.filter(u=>u.id!==l),d.inputs.forEach(u=>{u.suggestion=!0}),d.returnStatements.length){const u=d.returnStatements[0];u.suggestion=!0,u.outputs.forEach(y=>{y.suggestion=!0})}this.addSuggestedMethod(d)})}),this}subscribe(){return this.activeVersion=!0,this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}metaSync(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"meta-sync"))){const i=ct(this,e),s=this.toMeta();return this.name=e.name!==void 0?e.name:s.name,this.description=e.description!==void 0?e.description:s.description,this.x=e.x||s.x,this.y=e.y||s.y,this.static=e.static!==void 0?e.static:this.static,this.abstract=e.abstract!==void 0?e.abstract:this.abstract,super.metaSync(e),e.deleted===!0&&!s.deleted?t==null||t.add(this,b.Removed):e.deleted===!1&&s.deleted?t==null||t.add(this,b.Added):i&&(t==null||t.add(this,b.Updated)),t==null||t.attemptAutoclose("meta-sync",this.id),this}async APILoad(e=U,...t){return await Ue.repository.APILoad(this.id,...t),this}async APICreate(e=U,...t){return await Ue.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=U,...t){return await Ue.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=U,...t){return await Ue.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=U,...t){return await Ue.repository.APIClone(this.id,...t),this}async APILoadVersion(e=U,t,...i){return await Ue.repository.APILoadVersion(this.id,t,...i)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"remove-entity"))){const i=[],s=[],l=[],o=[];if(t!=null&&t.hasRemoved(this.id))return t==null||t.attemptAutoclose("remove-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this};if(s.push(this),this.unsubscribe(),this.project.subscribeDeletedInstance(this),this.metaSync({deleted:!0},t),Object.values(this.detachedDependents).forEach(d=>{const{updated:u,removed:y,added:c}=d.entity.onDetachedDependencyRemoved(this,d.field,t);i.push(...u),s.push(...y),l.push(...c)}),this.properties.forEach(d=>{const{updated:u,removed:y}=d.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.methods.forEach(d=>{const{updated:u,removed:y}=d.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.abstractMethods.forEach(d=>{const{updated:u,removed:y}=d.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.suggestedProperties.forEach(d=>{const{updated:u,removed:y}=d.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),this.suggestedMethods.forEach(d=>{const{updated:u,removed:y}=d.remove({ignoreUpstream:!0},t);i.push(...u),s.push(...y)}),!e){if(this.parent.type===n.Project)this.parent.removeDefinitionEntity(this);else if(this.parent.type===n.DataType){const d=this.parent.setEntity(null);i.push(d)}}return t==null||t.attemptAutoclose("remove-entity",this.id),{added:p(l),updated:p(i),removed:p(s),affected:p(o),self:this}}restore({}={},e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"restore-entity"))){const t=[],i=[],s=[],l=[];return e!=null&&e.hasAdded(this.id)?(e==null||e.attemptAutoclose("restore-entity",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(this.subscribe(),this.project.unsubscribeDeletedInstance(this),this.metaSync({deleted:!1},e),Object.values(this.detachedDependents).forEach(o=>{const{updated:d,removed:u,added:y}=o.entity.onDetachedDependencyRestored(this,o.field,e);i.push(...d),s.push(...u),t.push(...y)}),this.properties.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),this.methods.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),this.abstractMethods.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),this.suggestedProperties.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),this.suggestedMethods.forEach(o=>{const{updated:d}=o.restore({},e);i.push(...d)}),e==null||e.attemptAutoclose("restore-entity",this.id),{added:p(t),updated:p(i),removed:p(s),affected:p(l),self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.extends.flatMap(i=>i.toFlat(e)),...this.implements.flatMap(i=>i.toFlat(e)),...this.properties.flatMap(i=>i.toFlat(e)),...this.methods.flatMap(i=>i.toFlat(e)),...this.abstractMethods.flatMap(i=>i.toFlat(e)),...this.parent.toFlat(e)])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.extends.flatMap(i=>i.toFlatIds(e)),...this.implements.flatMap(i=>i.toFlatIds(e)),...this.properties.flatMap(i=>i.toFlatIds(e)),...this.methods.flatMap(i=>i.toFlatIds(e)),...this.abstractMethods.flatMap(i=>i.toFlatIds(e)),...this.parent.toFlatIds(e)])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,static:this.static,abstract:this.abstract,x:this.x,y:this.y,type:this.type,name:this.name}}toJSON(e=new Set){return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(t=>t.toJSON(e)),methods:this.methods.map(t=>t.toJSON(e)),abstractMethods:this.abstractMethods.map(t=>t.toJSON(e)),implements:this.implements.map(t=>t.toJSON(e)),extends:this.extends.map(t=>t.toJSON(e)),parent:this.parent.toReference()})}toJSONClone(e=J){var i,s,l,o,d;let t;return(i=e.seenEntityMaps)!=null&&i.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||ht(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(s=e.seenEntities)!=null&&s.has(t)||(l=e.seenEntities)!=null&&l.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(d=e.seenEntities)==null||d.add(this.id),{id:t,version:m.UUID.uuid(),createdAt:e.timestamp||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,type:this.type,name:this.name,description:this.description,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(u=>u.toJSONClone({...e,newId:null})),methods:this.methods.map(u=>u.toJSONClone({...e,newId:null})),abstractMethods:this.abstractMethods.map(u=>u.toJSONClone({...e,newId:null})),implements:this.implements.map(u=>u.type===n.BuiltInBaseEntity?u.toJSON():u.toJSONClone({...e,newId:null})),extends:this.extends.map(u=>u.type===n.BuiltInBaseEntity?u.toJSON():u.toJSONClone({...e,newId:null})),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=J){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=J){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,name:this.name,description:this.description,type:this.type,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(s=>s.toReference(e)),methods:this.methods.map(s=>s.toReference(e)),abstractMethods:this.abstractMethods.map(s=>s.toReference(e)),implements:this.implements.map(s=>s.toReference(e)),extends:this.extends.map(s=>s.toReference(e)),parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(i=>i.toFlatJSON(e)),...this.methods.flatMap(i=>i.toFlatJSON(e)),...this.abstractMethods.flatMap(i=>i.toFlatJSON(e)),...this.implements.flatMap(i=>i.toFlatJSON(e)),...this.extends.flatMap(i=>i.toFlatJSON(e)),...this.parent.toFlatJSON(e)])}toGenerationTarget(){const e=this.parent.type===n.Project?void 0:this.parent.id;return{id:this.id,name:this.name,description:this.description,type:this.type,static:this.static,abstract:this.abstract,extends:this.extends.map(t=>t.id),implements:this.implements.map(t=>t.id),parent:e}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(i=>i.toFlatGenerationTarget(e)),...this.methods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.implements.filter(i=>i.type===n.DefinitionEntity).flatMap(i=>i.toFlatGenerationTarget(e)),...this.implements.filter(i=>i.type===n.DefinitionEntity).flatMap(i=>i.toFlatGenerationTarget(e)),...this.parent.toFlatGenerationTarget(e)])}clearErrors(){return this.errors=[],this.properties.forEach(e=>e.clearErrors()),this.methods.forEach(e=>e.clearErrors()),this.abstractMethods.forEach(e=>e.clearErrors()),this}validate(){return this.errors=lw(this),{success:!0,error:null,data:null}}getErrors(){return[...this.errors,...this.properties.flatMap(t=>t.getErrors()),...this.methods.flatMap(t=>t.getErrors()),...this.abstractMethods.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(e=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"clone-entity")),t=null,i=null,s=!0){var P,V,M;let l=mt(t,this);const o=this.toJSON(),d=i||m.UUID.uuid();o.properties=[],o.methods=[],o.abstractMethods=[];const u=d.split("-id"),y=u[u.length-1||0]||d;o.id=d,o.version=m.UUID.uuid(),o.createdAt=(e==null?void 0:e.timestamp)||T().toISOString(),o.author=(e==null?void 0:e.author)||"1",o.previousVersion=null,o.deleted=!1;const c=nt(o,l);t&&c.setParent(t,null),s&&c.subscribe(),c.initChildren(e),e==null||e.add(c,b.Added);const E=(P=this.properties)==null?void 0:P.map(g=>g.clone(e,c,m.UUID.uuid(),s));c.properties=E;const I=(V=this.methods)==null?void 0:V.map((g,B)=>g.clone(e,c,y+"-method-"+B+"-id",s));c.methods=I;const O=(M=this.abstractMethods)==null?void 0:M.map((g,B)=>g.clone(e,c,y+"-abstract-method-"+B+"-id",s));return c.abstractMethods=O,e==null||e.attemptAutoclose("clone-entity",this.id),c}getFunctionDeclaration(e){return this.methods.find(t=>t.id===e)}implement(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"implement-definition-entity")),i){const s=Yl(this,e,t,i);return t==null||t.attemptAutoclose("implement-definition-entity",this.id),s}getAllInteractiveMethods(){const e=this.implements.filter(i=>i.type===n.DefinitionEntity||i.type===n.BuiltInBaseEntity&&i.interactive);return p([...this.methods,...this.extends.flatMap(i=>i.getAllInteractiveMethods()),...e.flatMap(i=>i.getAllInteractiveMethods())])}inferFromInputs(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"infer-definition-entity-from-inputs"))){const i=[],s=[],l=[],o=[];if(this.parent.type!==n.DataType||!this.parent.inferred)return t==null||t.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:[],updated:[],removed:[],affected:[],self:this};const d=[];e.forEach(c=>{d.find(I=>x(I,this.project)===x(c,this.project))||d.push(c)});const u=this.properties.filter(c=>!c.dataType);d.forEach(c=>{var M,g;const E=u.find(B=>x(B,this.project)===x(c,this.project));if(!E)return;const O=Un(c.parent).getMasterInputWithValueWritterFromAllInstances(c),P=ji(O,t),V=P==null?void 0:P.clone(t,E,m.UUID.uuid(),!0);if(V){const B=(M=E.dataType)==null?void 0:M.merge(V,t);E.dataType&&(B==null?void 0:B.self.id)!==E.dataType.id&&E.dataType.remove({ignoreUpstream:!1},t),V.id!==((g=B==null?void 0:B.self)==null?void 0:g.id)&&V.remove({ignoreUpstream:!1},t),B!=null&&B.self&&(B.self.metaSync({inferred:!0,like:!0},t),t==null||t.add(B.self,b.Added),E.setDataType(B.self),t==null||t.add(E,b.Updated))}c.setDeclaration(E),t==null||t.add(c,b.Updated)});const y=[];return d.forEach(c=>{if(!c.declaration){y.push(c);return}}),y.length===0?(t==null||t.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:[],updated:[],removed:[],affected:[],self:this}):(y.forEach(c=>{var B,G,q,W;const E=this.properties.find(X=>x(X,this.project)===x(c,this.project));if(E){if(c.setDeclaration(E),!E.getDataType(t)){const pe=Un(c.parent).getMasterInputWithValueWritterFromAllInstances(c),Ee=ji(pe),Q=Ee==null?void 0:Ee.clone(t,E,m.UUID.uuid(),!0);if(Q){const le=(B=E.dataType)==null?void 0:B.merge(Q,t);E.dataType&&(le==null?void 0:le.self.id)!==E.dataType.id&&E.dataType.remove({ignoreUpstream:!1},t),Q.id!==((G=le==null?void 0:le.self)==null?void 0:G.id)&&Q.remove({ignoreUpstream:!1},t),le!=null&&le.self&&(le.self.metaSync({inferred:!0,like:!0},t),t==null||t.add(le.self,b.Added),E.setDataType(le.self),t==null||t.add(E,b.Updated))}}return}const I={id:m.UUID.uuid(),type:n.Property,version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:x(c,this.project),description:c.description,defaultValue:null,static:!0,abstract:!1,private:!1,hidden:!1,required:!1,constant:!0,index:c.index,implements:null,dataType:null,parent:this.toReference()},O=C(I,this.project);O.setParent(this,t),O.initChildren(t),t==null||t.add(O,b.Added);const V=Un(c.parent).getMasterInputWithValueWritterFromAllInstances(c),M=ji(V),g=M==null?void 0:M.clone(t,O,m.UUID.uuid(),!0);if(g){const X=(q=O.dataType)==null?void 0:q.merge(g,t);O.dataType&&(X==null?void 0:X.self.id)!==O.dataType.id&&O.dataType.remove({ignoreUpstream:!1},t),g.id!==((W=X==null?void 0:X.self)==null?void 0:W.id)&&g.remove({ignoreUpstream:!1},t),X!=null&&X.self&&(X.self.metaSync({inferred:!0,like:!0},t),t==null||t.add(X.self,b.Added),O.setDataType(X.self),t==null||t.add(O,b.Updated))}return this.addProperty(O),c.setDeclaration(O),t==null||t.add(c,b.Updated),O}),t==null||t.attemptAutoclose("infer-definition-entity-from-inputs",this.id),{added:p(i),updated:p(s),removed:p(l),affected:p(o),self:this})}};f(Ue,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...i)=>null}),f(Ue,"type",n.DefinitionEntity),f(Ue,"USER_MANAGED_PARENT_TYPES",[n.Project,n.DataType]),f(Ue,"PARENT_TYPES",[...Ue.USER_MANAGED_PARENT_TYPES]),f(Ue,"MUTABLE_BASE_PROPERTIES",["name","description","static","abstract"]),f(Ue,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(Ue,"BASE_PROPERTIES",[...Ue.MUTABLE_BASE_PROPERTIES,...Ue.INMUTABLE_BASE_PROPERTIES]),f(Ue,"MUTABLE_META_PROPERTIES",[...Ue.MUTABLE_BASE_PROPERTIES,"x","y"]),f(Ue,"INMUTABLE_META_PROPERTIES",[...Ue.INMUTABLE_BASE_PROPERTIES]),f(Ue,"META_PROPERTIES",[...Ue.MUTABLE_META_PROPERTIES,...Ue.INMUTABLE_META_PROPERTIES]),f(Ue,"MUTABLE_UPSTREAM_PROPERTIES",["extends","implements"]),f(Ue,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),f(Ue,"UPSTREAM_PROPERTIES",[...Ue.MUTABLE_UPSTREAM_PROPERTIES,...Ue.INMUTABLE_UPSTREAM_PROPERTIES]),f(Ue,"MUTABLE_DOWNSTREAM_PROPERTIES",["properties","methods","abstractMethods"]),f(Ue,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(Ue,"DOWNSTREAM_PROPERTIES",[...Ue.MUTABLE_DOWNSTREAM_PROPERTIES,...Ue.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(Ue,"PROPERTIES",[...Ue.META_PROPERTIES,...Ue.UPSTREAM_PROPERTIES,...Ue.DOWNSTREAM_PROPERTIES]);let on=Ue;function dW(r){const a=s5(),e=r.toJSON();a.safeParse(e).success;const i=[];return Ke(r.errors,i)}const Za=class Za extends lt{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"version");f(this,"name");f(this,"description",null);f(this,"type",n.BuiltInBaseEntity);f(this,"abstract",!1);f(this,"static");f(this,"properties",[]);f(this,"methods",[]);f(this,"abstractMethods",[]);f(this,"extends",[]);f(this,"interactive",!1);f(this,"errors",[]);f(this,"project");this.initialData=this.initialData||e,this.project=this.project||t,this.id=this.id||e.id,this.version=this.version||e.version,this.name=this.name||e.name,this.static=this.static||e.static,this.interactive=this.interactive||e.interactive,this.abstract=e.abstract,this.properties=this.initialData.properties.map(i=>{const s=C(i,this.project);return s.setParent(this,null),s.initChildren(null),s}),this.methods=this.initialData.methods.map(i=>{const s=C(i,this.project);return s.setParent(this,null),s.initChildren(null),s}),this.abstractMethods=this.initialData.abstractMethods.map(i=>{const s=C(i,this.project);return s.setParent(this,null),s.initChildren(null),s}),this.extends=this.initialData.extends.map(i=>C(i,this.project))}get allBasePropertiesFromExtendedAndImplementedEntities(){return p(this.extends.reduce((e,t)=>{const i=[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(s=>!s.abstract);return[...e,...i]},[]))}get extendedPropertiesFromOriginalParents(){return p(this.extends.reduce((e,t)=>{const i=[...t.ownDeclaredProperties,...t.extendedPropertiesFromOriginalParents].filter(s=>!s.abstract);return[...e,...i]},[]))}get implementedPropertiesFromOriginalParents(){return p([...this.extends.reduce((e,t)=>{const i=t.implementedPropertiesFromOriginalParents,s=[...t.ownDeclaredProperties].filter(l=>!!l.abstract&&!i.find(o=>o.name===l.name));return[...i,...s,...e]},[])])}get extendedProperties(){return this.properties.filter(e=>e.isExtendedProperty)}get ownDeclaredProperties(){return this.properties.filter(e=>!e.isExtendedProperty)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}async APILoad(e=U,...t){return await Za.repository.APILoad(this.id,...t),this}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.properties.flatMap(i=>i.toFlat(e)),...this.methods.flatMap(i=>i.toFlat(e)),...this.abstractMethods.flatMap(i=>i.toFlat(e)),...this.extends.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.properties.flatMap(i=>i.toFlatIds(e)),...this.methods.flatMap(i=>i.toFlatIds(e)),...this.abstractMethods.flatMap(i=>i.toFlatIds(e)),...this.extends.flatMap(i=>i.toFlatIds(e))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,interactive:this.interactive,abstract:this.abstract,static:this.static,type:this.type,name:this.name}}toJSON(e=new Set){return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,interactive:this.interactive,properties:this.properties.map(t=>t.toJSON(e)),methods:this.methods.map(t=>t.toJSON(e)),abstractMethods:this.abstractMethods.map(t=>t.toJSON(e)),extends:this.extends.map(t=>t.toJSON(e))})}toReference(e=J){return{id:this.id+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:this.id,version:this.version,entityType:this.type}}toShallowJSON(e=J){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,interactive:this.interactive,properties:this.properties.map(t=>t.toReference()),methods:this.methods.map(t=>t.toReference()),abstractMethods:this.abstractMethods.map(t=>t.toReference()),extends:this.extends.map(t=>t.toReference())}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(i=>i.toFlatJSON(e)),...this.methods.flatMap(i=>i.toFlatJSON(e)),...this.abstractMethods.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,interactive:this.interactive,extends:this.extends.map(e=>e.id)}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(i=>i.toFlatGenerationTarget(e)),...this.methods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.properties.forEach(e=>e.clearErrors()),this.methods.forEach(e=>e.clearErrors()),this.abstractMethods.forEach(e=>e.clearErrors()),this}validate(){const e=dW(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.properties.flatMap(t=>t.getErrors()),...this.methods.flatMap(t=>t.getErrors()),...this.abstractMethods.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}implement(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),null,!0,"implement-built-in-base-entity")),i){const s=Yl(this,e,t,i);return t==null||t.attemptAutoclose("implement-built-in-base-entity",this.id),s}getAllInteractiveMethods(){const e=[];return this.interactive&&(e.push(...this.methods),this.extends.filter(i=>i.type===n.BuiltInBaseEntity&&i.interactive||i.type===n.PrimitiveEntity).forEach(i=>{i instanceof Za&&e.push(...i.getAllInteractiveMethods())})),p(e)}};f(Za,"repository",{APILoad:async(e,...t)=>null});let $i=Za;function uW(r){const a=H3(),e=r.toJSON();a.safeParse(e).success;const i=[];return Ke(r.errors,i)}const dd=class dd extends lt{constructor(e,t){super(e);f(this,"initialData");f(this,"id");f(this,"name");f(this,"description",null);f(this,"type",n.PrimitiveEntity);f(this,"static");f(this,"abstract");f(this,"properties",[]);f(this,"methods",[]);f(this,"abstractMethods",[]);f(this,"extends",[]);f(this,"errors",[]);f(this,"project");this.initialData=e,this.project=t,this.id=e.id,this.name=e.name,this.static=e.static,this.abstract=e.abstract,this.properties=this.initialData.properties.map(i=>{const s=C(i,this.project);return s.setParent(this,null),s.initChildren(null),s}),this.methods=this.initialData.methods.map(i=>{const s=C(i,this.project);return s.parent=this,s}),this.abstractMethods=this.initialData.abstractMethods.map(i=>{const s=C(i,this.project);return s.parent=this,s})}get allBasePropertiesFromExtendedAndImplementedEntities(){return p(this.extends.reduce((e,t)=>{const i=[...t.ownDeclaredProperties,...t.allBasePropertiesFromExtendedAndImplementedEntities].filter(s=>!s.abstract);return[...e,...i]},[]))}get extendedPropertiesFromOriginalParents(){return p(this.extends.reduce((e,t)=>{const i=[...t.ownDeclaredProperties,...t.extendedPropertiesFromOriginalParents].filter(s=>!s.abstract);return[...e,...i]},[]))}get implementedPropertiesFromOriginalParents(){return p([...this.extends.reduce((e,t)=>{const i=t.implementedPropertiesFromOriginalParents,s=[...t.ownDeclaredProperties].filter(l=>!!l.abstract&&!i.find(o=>o.name===l.name));return[...i,...s,...e]},[])])}get extendedProperties(){return this.properties.filter(e=>e.isExtendedProperty)}get ownDeclaredProperties(){return this.properties.filter(e=>!e.isExtendedProperty)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}async APILoad(e=U,...t){return await dd.repository.APILoad(this.id,...t),this}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.properties.flatMap(i=>i.toFlat(e)),...this.methods.flatMap(i=>i.toFlat(e)),...this.abstractMethods.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.properties.flatMap(i=>i.toFlatIds(e)),...this.methods.flatMap(i=>i.toFlatIds(e)),...this.abstractMethods.flatMap(i=>i.toFlatIds(e))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,static:this.static,abstract:this.abstract,type:this.type,name:this.name}}toJSON(e=new Set){return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,properties:this.properties.map(t=>t.toJSON(e)),methods:this.methods.map(t=>t.toJSON(e)),abstractMethods:this.abstractMethods.map(t=>t.toJSON(e)),extends:this.extends.map(t=>t.toJSON(e))})}toReference(e=J){return{id:this.id+"--"+m.UUID.uuid()+"--ref",type:n.GenericReference,entityId:this.id,version:this.version,entityType:this.type}}toShallowJSON(e=J){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,properties:this.properties.map(t=>t.toReference()),methods:this.methods.map(t=>t.toReference()),abstractMethods:this.abstractMethods.map(t=>t.toReference()),extends:this.extends.map(t=>t.toReference())}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(i=>i.toFlatJSON(e)),...this.methods.flatMap(i=>i.toFlatJSON(e)),...this.abstractMethods.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,extends:this.extends.map(e=>e.id)}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(i=>i.toFlatGenerationTarget(e)),...this.methods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.properties.forEach(e=>e.clearErrors()),this.methods.forEach(e=>e.clearErrors()),this.abstractMethods.forEach(e=>e.clearErrors()),this}validate(){const e=uW(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.properties.flatMap(t=>t.getErrors()),...this.methods.flatMap(t=>t.getErrors()),...this.abstractMethods.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}getAllInteractiveMethods(){const e=[];return e.push(...this.methods),this.extends.filter(i=>i.type===n.BuiltInBaseEntity&&i.interactive||i.type===n.PrimitiveEntity).forEach(i=>{i instanceof $i&&e.push(...i.getAllInteractiveMethods())}),p(e)}};f(dd,"repository",{APILoad:async(e,...t)=>null});let ii=dd;function nt(r,a){if(!r)throw new Error("Entity is null");const e=a.get(r.id);switch(r.type){case n.LiteralValue:return e||new Qr(r,a);case n.DefinitionEntity:return e||new on(r,a);case n.PrimitiveEntity:return e||new ii(r,a);case n.FunctionDeclaration:return e||new xr(r,a);case n.GlobalEvent:return e||new qr(r,a);case n.DataType:return e||new kr(r,a);case n.Property:return e||new Gr(r,a);case n.FunctionCall:return e||new nn(r,a);case n.Condition:return e||new Wr(r,a);case n.Operation:return e||new Zr(r,a);case n.VariableDeclaration:return e||new Yr(r,a);case n.VariableInstance:return e||new zr(r,a);case n.OutputMap:return e||new Xi(r,a);case n.ReturnDeclaration:return e||new ei(r,a);case n.ArgumentDeclaration:return e||new Er(r,a);case n.InputMap:return e||new Ki(r,a);case n.Project:return e||new m(r);case n.InstalledProject:return e||new Kr(r,a);case n.ActionDescriptor:return e||new Se(r,a);case n.ReturnStatement:return e||new Fr(r,a);case n.Loop:return e||new Sr(r,a);case n.Search:return e||new Hr(r,a);case n.ValueDescriptor:return e||new Ir(r,a);case n.BuiltInBaseEntity:return e||new $i(r,a);case n.InternalCall:return e||new Xr(r,a);case n.ContinueStatement:return e||new Ut(r,a);case n.BreakStatement:return e||new Jr(r,a);case n.GenericReference:return a.get(r.entityId);default:throw new Error("Invalid entity type: "+r.type)}}function C(r,a){if(!r)throw new Error("Entity is null");const e=nt(r,a);return e.subscribe(),e}function pW(r,a){if(!r)throw new Error("Entity is null");switch(r.type){case n.LiteralValue:return Qr.fromGenerationTarget(r,a);case n.DefinitionEntity:return on.fromGenerationTarget(r,a);case n.FunctionDeclaration:return xr.fromGenerationTarget(r,a);case n.GlobalEvent:return qr.fromGenerationTarget(r,a);case n.DataType:return kr.fromGenerationTarget(r,a);case n.Property:return Gr.fromGenerationTarget(r,a);case n.FunctionCall:return nn.fromGenerationTarget(r,a);case n.Condition:return Wr.fromGenerationTarget(r,a);case n.Operation:return Zr.fromGenerationTarget(r,a);case n.VariableDeclaration:return Yr.fromGenerationTarget(r,a);case n.VariableInstance:return zr.fromGenerationTarget(r,a);case n.OutputMap:return Xi.fromGenerationTarget(r,a);case n.ReturnDeclaration:return ei.fromGenerationTarget(r,a);case n.ArgumentDeclaration:return Er.fromGenerationTarget(r,a);case n.InputMap:return Ki.fromGenerationTarget(r,a);case n.InstalledProject:return Kr.fromGenerationTarget(r,a);case n.ReturnStatement:return Fr.fromGenerationTarget(r,a);case n.Loop:return Sr.fromGenerationTarget(r,a);case n.Search:return Hr.fromGenerationTarget(r,a);case n.ActionDescriptor:return Se.fromGenerationTarget(r,a);case n.ValueDescriptor:return Ir.fromGenerationTarget(r,a);case n.InternalCall:return Xr.fromGenerationTarget(r,a);case n.ContinueStatement:return Ut.fromGenerationTarget(r,a);case n.BreakStatement:return Jr.fromGenerationTarget(r,a);default:throw new Error("Invalid entity type: "+r.type)}}const J={seenEntityMaps:new Map,seenEntities:new Set,timestamp:T().toISOString()};class pw{constructor(){f(this,"initialData")}}const U={cascade:!1},cw={APILoad:async(r,...a)=>null},cW={APICreate:async(r,...a)=>r,APIUpdate:async(r,...a)=>r,APIDelete:async(r,...a)=>r,APIClone:async(r,...a)=>{},APILoadVersion:async(r,a,...e)=>null,...cw};class fW{}class yW extends pw{}class hW{}class mW{}class vW{}class sf{}class TW extends sf{}class EW extends sf{}class IW{}class Rr{static initReadsValue(a){if(a.initialData.readsValue&&a.initialData.readsValue.type!==n.GenericReference)a.readsValue=C(a.initialData.readsValue,a.project);else if(a.initialData.readsValue&&a.initialData.readsValue.type===n.GenericReference){const e=Ai(a.initialData.readsValue,a.project);e&&(a.readsValue=e)}if(a.readsValue){if(it.includes(a.readsValue.type)){let e=a.parent;ut.includes(e.type)||(e=e.parent);const t=a.type===n.InputMap&&a.parent.type===n.Loop;t&&(e=a.parent.parent),a.readsValue.setParent(e,null),a.readsValue.initChildren(null),!t&&e.detachedChildren.includes(a)?e.replaceDetachedChild(a,a.readsValue):t||e.subscribeDetachedChild(a.readsValue)}a.readsValue.addValueReader(a,null)}return a.readsValue}static hydrateReadsValue(a){if(a.initialData.readsValue&&a.initialData.readsValue.type!==n.GenericReference)a.readsValue=C(a.initialData.readsValue,a.project);else if(a.initialData.readsValue&&a.initialData.readsValue.type===n.GenericReference){const e=Ai(a.initialData.readsValue,a.project);e&&(a.readsValue=e)}if(a.readsValue){if(it.includes(a.readsValue.type)){let e=a.parent;ut.includes(e.type)||(e=e.parent);const t=a.type===n.InputMap&&a.parent.type===n.Loop;t&&(e=a.parent.parent),a.readsValue.setParent(e,null),!t&&e.detachedChildren.includes(a)?e.replaceDetachedChild(a,a.readsValue):t||e.subscribeDetachedChild(a.readsValue)}a.readsValue.addValueReader(a,null)}return a.readsValue}}class xa{static initWritesValues(a,e){const t=a.initialData.writesValues.reduce((s,l)=>{if(l.type===n.GenericReference||a.writesValues.some(d=>d.id===l.id))return s;const o=C(l,a.project);return o.setValueWriter(a,null),it.includes(o.type)&&(o.setParent(e,null),o.initChildren(null)),[...s,o]},[]),i=[...a.writesValues];return a.writesValues=p([...i,...t]),a.writesValues}}class AW{}const re=class re extends lt{constructor(e){super(e);f(this,"initialData");f(this,"id");f(this,"type",n.Project);f(this,"name",null);f(this,"description",null);f(this,"x");f(this,"y");f(this,"entities",[]);f(this,"projects",[]);f(this,"functions",[]);f(this,"events",[]);f(this,"variableDeclarations",[]);f(this,"variableInstances",[]);f(this,"conditions",[]);f(this,"operations",[]);f(this,"functionCalls",[]);f(this,"loops",[]);f(this,"searches",[]);f(this,"primitives",[]);f(this,"builtInBaseEntities",[]);f(this,"operationDeclarations",[]);f(this,"globalEventActionDescriptors",[]);f(this,"loopDeclarations",[]);f(this,"loopDeclarationsBodies",[]);f(this,"conditionDeclarations",[]);f(this,"valueDescriptors",[]);f(this,"dataTypes",[]);f(this,"project");f(this,"instances",{});f(this,"builtInInstances",{});f(this,"deletedInstances",{});f(this,"errors",[]);f(this,"references",[]);f(this,"history",[]);f(this,"detachedDependents",{});f(this,"knownVersions",null);f(this,"activeVersion",!1);f(this,"initialized",!1);f(this,"startedInitialization",!1);f(this,"onCloseChangeSetCallback",null);this.initialData=e,this.id=e.id,this.name=e.name,this.description=e.description,this.x=0,this.y=0,this.instances[this.id]=this;try{(!re.UUID||re.UUID.isBackup)&&(re.UUID=qo==null?void 0:qo()),re.UUID||(re.UUID={isBackup:!0,uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:t=>t})}catch(t){console.error("Error initializing UUID module",t),re.UUID={isBackup:!0,uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:i=>i}}}static injectUUIDModule(e){re.UUID=e}static new(e=null){return{id:re.UUID.uuid(),version:re.UUID.uuid(),createdAt:(e==null?void 0:e.timestamp)||T().toISOString(),author:(e==null?void 0:e.author)||re.sessionAuthor,previousVersion:null,deleted:!1,type:n.Project,name:"",description:"",entities:[],functions:[],events:[],projects:[],variableDeclarations:[],variableInstances:[],conditions:[],operations:[],functionCalls:[],loops:[],searches:[]}}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const s=[];return s.push(...pt(i)),{errors:s,modifiedData:i}}async closePendingChangeSets(){const e=this.history.find(t=>t.dirty&&!t.open);e&&await this.closeChangeSet(e)}async onCloseChangeSet(e){this.onCloseChangeSetCallback=e,await this.closePendingChangeSets()}async closeChangeSet(e){const t=this.history.findIndex(l=>l.id===e.id),i=this.history.slice(0,t),s=i[i.length-1];if(!(s!=null&&s.dirty)&&this.onCloseChangeSetCallback){(await this.onCloseChangeSetCallback(e)).success&&(e.dirty=!1,this.closePendingChangeSets());return}}toLatestChangeSet(e,t,i,s=!1,l="here-this"){if(!this.history.length)return new A(this,e,t,i,s,l);const o=this.history[this.history.length-1];return o.open?o:this.addChangeSet(new A(this,e,t,i,s,l))}addChangeSet(e){if(!this.history.length)return this.history.push(e),e;const t=this.history.find(l=>l.id===(e==null?void 0:e.id));if(t)return t;const i=this.history.find(l=>l.open);if(i)throw console.warn("Previous still open: ",i),console.warn("New change set: ",e),new Error(`There is already an open change-set with id '${i.id}'.`);const s=this.history.findIndex(l=>T(e==null?void 0:e.timestamp).isBefore(T(l==null?void 0:l.timestamp)));return s===-1?this.history.push(e):this.history.splice(s,0,e),e}discardChangeSet(e){const t=this.history.findIndex(i=>i.id===(e==null?void 0:e.id));return t!==-1&&this.history.splice(t,1),this}undo(){const e=[],t=[],i=[],s=[];return{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}redo(){const e=[],t=[],i=[],s=[];return{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}async inject(...e){return await Promise.all(e.map(t=>new Promise(async i=>{await t.init(this),i(null)}))),this}validateGeneratedUpdate(e){return{errors:[],modifiedData:e}}subscribeDependents(e){return e.forEach(t=>{this.detachedDependents[t.entity.id]||(this.detachedDependents[t.entity.id]=t)}),this}syncDependents(e=this.project.addChangeSet(new A(this.project,re.sessionAuthor,T().toISOString(),this,!0,"sync-dependents"))){const t=[],i=[],s=[],l=[];return Object.values(this.detachedDependents).forEach(o=>{const d=o.entity.afterAllChildrenInitialized(e);t.push(...d.updated),i.push(...d.added),s.push(...d.removed),l.push(...d.affected)}),e==null||e.attemptAutoclose("sync-dependents",this.id),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}onDetachedDependencyRemoved(e,t,i){const s=[],l=[],o=[],d=[];return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}onDetachedDependencyRestored(e,t,i){const s=[],l=[],o=[],d=[];return{updated:p(s),added:p(l),removed:p(o),affected:p(d),self:this}}subscribeToDependencies(){return this}increaseVersion(e){if(e&&!T(e).isValid())throw new Error(`The shared timestamp '${e}' is not a valid ISO 8601 date string.`);return e&&T(e).isSame(T(this.createdAt))?this:(this.previousVersion=this.version,this.version=re.UUID.uuid(),this.createdAt=T(e).toISOString()||T().toISOString(),this)}captureVersion(){var t;const e=((t=this.knownVersions)==null?void 0:t.get(this.version))||new re(this);return e.metaSync(this.toMeta(),null),this.knownVersions=this.knownVersions?this.knownVersions.set(this.version,e):new Map([[this.version,e]]),e.entities=this.entities,e.projects=this.projects,e.functions=this.functions,e.events=this.events,e.variableDeclarations=this.variableDeclarations,e.variableInstances=this.variableInstances,e.conditions=this.conditions,e.operations=this.operations,e.functionCalls=this.functionCalls,e.loops=this.loops,e.searches=this.searches,this}recursiveCaptureUpstreamVersions(e){const t=[],i=[],s=[],l=[];return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}async restoreVersion(e){var d;const t=[],i=[],s=[],l=[];if(this.version===e)return{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this};if(!this.knownVersions){const u=new Map;for(const[y,c]of this.knownVersions||new Map){if(u.set(y,c),c.activeVersion=!1,c.knownVersions)for(const[E,I]of c.knownVersions)u.set(E,I);c.knownVersions=null}}let o=(d=this.knownVersions)==null?void 0:d.get(e);if(!o){const u=await this.APILoadVersion({},e);if(!u)throw new Error(`Version with id '${e}' for entity with id '${this.id}' not found.`);o=new re(u)}return this.metaSync(o.toShallowJSON(),null),this.entities=o.entities,this.projects=o.projects,this.functions=o.functions,this.events=o.events,this.variableDeclarations=o.variableDeclarations,this.variableInstances=o.variableInstances,this.conditions=o.conditions,this.operations=o.operations,this.functionCalls=o.functionCalls,this.loops=o.loops,this.searches=o.searches,{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}hydrateAncestors(){const e=[],t=[],i=[],s=[];return{updated:p(e),added:p(t),removed:p(i),affected:p(s),self:this}}afterAllChildrenInitialized(e=null){const t=[],i=[],s=[],l=[];return this.initialized=!0,this.validate(),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}addSelfToProject(e){const t=[],i=[],s=[],l=[];return this.subscribe(),this.subscribeToDependencies(),{updated:p(t),added:p(i),removed:p(s),affected:p(l),self:this}}get instancesList(){return Object.values(this.instances)}isOperationDeclaration(e){return this.operationDeclarations.includes(e)}isGlobalEventActionDescriptor(e){return this.globalEventActionDescriptors.includes(e)}isLoopDeclaration(e){return this.loopDeclarations.includes(e)}isConditionDeclaration(e){return this.conditionDeclarations.includes(e)}initChildren(e=this.project.addChangeSet(new A(this.project,re.sessionAuthor,T().toISOString(),this,!0,"init-children"))){return this.initialized||this.startedInitialization?this:(this.startedInitialization=!0,this.entities=this.initialData.entities.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.projects=this.initialData.projects.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.variableDeclarations=this.initialData.variableDeclarations.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.variableInstances=this.initialData.variableInstances.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.conditions=this.initialData.conditions.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.operations=this.initialData.operations.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.functions=this.initialData.functions.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.events=this.initialData.events.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.functionCalls=this.initialData.functionCalls.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.loops=this.initialData.loops.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.searches=this.initialData.searches.map(t=>{const i=C(t,this);return i.setParent(this,null),i.initChildren(e),i}),this.attachOrphanReferences(),this.subscribeToDependencies(),this.afterAllChildrenInitialized(e),e==null||e.attemptAutoclose("init-children",this.id),this)}subscribeInstance(e){return(!this.instances[e.id]||this.instances[e.id]!==e)&&(this.instances[e.id]=e),this}subscribeDeletedInstance(e){return(!this.deletedInstances[e.id]||this.deletedInstances[e.id]!==e)&&(this.deletedInstances[e.id]=e),this}subscribeBuiltInInstance(e){return(!this.builtInInstances[e.id]||this.builtInInstances[e.id]!==e)&&(this.builtInInstances[e.id]=e),this}subscribe(){return this}unsubscribe(){return this}unsubscribeInstance(e){return delete this.instances[e.id],this}unsubscribeDeletedInstance(e){return delete this.deletedInstances[e.id],this}findSubscribedBuiltInInstance(e){return this.builtInInstances[e.id]||null}get(e){return this.instances[e]||this.builtInInstances[e]||null}getDeleted(e){return this.deletedInstances[e]||null}getManaged(e){return this.getBuiltIn(e)?null:this.instances[e]||null}getBuiltIn(e){return this.builtInInstances[e]||null}findSubscribedInstanceFromReference(e){return this.instances[e.entityId]||null}findSubscribedBuiltInInstanceFromReference(e){return this.builtInInstances[e.entityId]||null}metaSync(e,t=this.project.addChangeSet(new A(this.project,re.sessionAuthor,T().toISOString(),this,!0,"meta-sync"))){const i=ct(this,e),s=this.toMeta();return this.name=e.name!==void 0?e.name:s.name,this.description=e.description!==void 0?e.description:s.description,this.x=e.x||s.x,this.y=e.y||s.y,super.metaSync(e),e.deleted===!0&&!s.deleted?t==null||t.add(this,b.Removed):e.deleted===!1&&s.deleted?t==null||t.add(this,b.Added):i&&(t==null||t.add(this,b.Updated)),t==null||t.attemptAutoclose("meta-sync",this.id),this}async APILoad(e=U,...t){return await re.repository.APILoad(this.id,...t),this}async APICreate(e=U,...t){return await re.repository.APICreate(this.toShallowJSON(),...t),this}async APIUpdate(e=U,...t){return await re.repository.APIUpdate(this.toShallowJSON(),...t),this}async APIDelete(e=U,...t){return await re.repository.APIDelete(this.toShallowJSON(),...t),this}async APIClone(e=U,...t){return await re.repository.APIClone(this.id,...t),this}async APILoadVersion(e=U,t,...i){return await re.repository.APILoadVersion(this.id,t,...i)}remove({ignoreUpstream:e}={ignoreUpstream:!1},t=this.project.addChangeSet(new A(this.project,re.sessionAuthor,T().toISOString(),this,!0,"remove-entity"))){return{added:[],updated:[],removed:[],affected:[],self:this}}restore({}={},e=this.project.addChangeSet(new A(this.project,re.sessionAuthor,T().toISOString(),this,!0,"restore-entity"))){return{added:[],updated:[],removed:[],affected:[],self:this}}getAllBuiltInIds(){const e=new Set;return[...this.primitives.flatMap(t=>t.toFlatIds(e)),...this.builtInBaseEntities.flatMap(t=>t.toFlatIds(e)),...this.operationDeclarations.flatMap(t=>t.toFlatIds(e)),...this.globalEventActionDescriptors.flatMap(t=>t.toFlatIds(e)),...this.loopDeclarations.flatMap(t=>t.toFlatIds(e)),...this.conditionDeclarations.flatMap(t=>t.toFlatIds(e)),...this.valueDescriptors.flatMap(t=>t.toFlatIds(e)),...this.dataTypes.flatMap(t=>t.toFlatIds(e))]}getAllBuiltIn(){const e=new Set;return[...this.primitives.flatMap(t=>t.toFlat(e)),...this.builtInBaseEntities.flatMap(t=>t.toFlat(e)),...this.operationDeclarations.flatMap(t=>t.toFlat(e)),...this.globalEventActionDescriptors.flatMap(t=>t.toFlat(e)),...this.loopDeclarations.flatMap(t=>t.toFlat(e)),...this.conditionDeclarations.flatMap(t=>t.toFlat(e)),...this.valueDescriptors.flatMap(t=>t.toFlat(e)),...this.dataTypes.flatMap(t=>t.toFlat(e))]}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.entities.flatMap(i=>i.toFlat(e)),...this.functions.flatMap(i=>i.toFlat(e)),...this.events.flatMap(i=>i.toFlat(e)),...this.projects.flatMap(i=>i.toFlat(e)),...this.variableDeclarations.flatMap(i=>i.toFlat(e)),...this.variableInstances.flatMap(i=>i.toFlat(e)),...this.conditions.flatMap(i=>i.toFlat(e)),...this.operations.flatMap(i=>i.toFlat(e)),...this.functionCalls.flatMap(i=>i.toFlat(e)),...this.loops.flatMap(i=>i.toFlat(e)),...this.searches.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.entities.flatMap(i=>i.toFlatIds(e)),...this.functions.flatMap(i=>i.toFlatIds(e)),...this.events.flatMap(i=>i.toFlatIds(e)),...this.projects.flatMap(i=>i.toFlatIds(e)),...this.variableDeclarations.flatMap(i=>i.toFlatIds(e)),...this.variableInstances.flatMap(i=>i.toFlatIds(e)),...this.conditions.flatMap(i=>i.toFlatIds(e)),...this.operations.flatMap(i=>i.toFlatIds(e)),...this.functionCalls.flatMap(i=>i.toFlatIds(e)),...this.loops.flatMap(i=>i.toFlatIds(e)),...this.searches.flatMap(i=>i.toFlatIds(e))])}toMeta(){return{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,description:this.description,type:this.type,name:this.name}}toJSON(e=new Set){return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,entities:this.entities.map(t=>t.toJSON(e)),variableDeclarations:this.variableDeclarations.map(t=>t.toJSON(e)),variableInstances:this.variableInstances.map(t=>t.toJSON(e)),conditions:this.conditions.map(t=>t.toJSON(e)),operations:this.operations.map(t=>t.toJSON(e)),loops:this.loops.map(t=>t.toJSON(e)),searches:this.searches.map(t=>t.toJSON(e)),functions:this.functions.map(t=>t.toJSON(e)),events:this.events.map(t=>t.toJSON(e)),projects:this.projects.map(t=>t.toJSON(e)),functionCalls:this.functionCalls.map(t=>t.toJSON(e))})}toJSONClone(e={uuidStrategy:"uuid"}){const t=new Map,i=new Set,s=this.getAllBuiltInIds();return Object.keys(this.instances).forEach(l=>{if(s.includes(l)){t.set(l,l);return}t.set(l,re.UUID.uuid())}),i.add(this.id),{id:t.get(this.id),version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,entities:this.entities.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),projects:this.projects.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),variableDeclarations:this.variableDeclarations.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),variableInstances:this.variableInstances.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),conditions:this.conditions.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),operations:this.operations.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),functions:this.functions.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),events:this.events.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),functionCalls:this.functionCalls.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),loops:this.loops.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null})),searches:this.searches.map(l=>l.toJSONClone({...e,seenEntityMaps:t,seenEntities:i,newId:null}))}}toReference(e=J){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+re.UUID.uuid()+"--ref",type:n.GenericReference,entityId:t,version:this.version,entityType:this.type}}toShallowJSON(e=J){var i;let t=this.id;return(i=e.seenEntityMaps)!=null&&i.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,version:this.version,createdAt:this.createdAt,previousVersion:this.previousVersion,author:this.author,deleted:this.deleted,type:this.type,name:this.name,description:this.description,entities:this.entities.map(s=>s.toReference(e)),functions:this.functions.map(s=>s.toReference(e)),events:this.events.map(s=>s.toReference(e)),projects:this.projects.map(s=>s.toReference(e)),variableDeclarations:this.variableDeclarations.map(s=>s.toReference(e)),variableInstances:this.variableInstances.map(s=>s.toReference(e)),conditions:this.conditions.map(s=>s.toReference(e)),operations:this.operations.map(s=>s.toReference(e)),functionCalls:this.functionCalls.map(s=>s.toReference(e)),loops:this.loops.map(s=>s.toReference(e)),searches:this.searches.map(s=>s.toReference(e))}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.entities.flatMap(i=>i.toFlatJSON(e)),...this.functions.flatMap(i=>i.toFlatJSON(e)),...this.events.flatMap(i=>i.toFlatJSON(e)),...this.projects.flatMap(i=>i.toFlatJSON(e)),...this.variableDeclarations.flatMap(i=>i.toFlatJSON(e)),...this.variableInstances.flatMap(i=>i.toFlatJSON(e)),...this.conditions.flatMap(i=>i.toFlatJSON(e)),...this.operations.flatMap(i=>i.toFlatJSON(e)),...this.functionCalls.flatMap(i=>i.toFlatJSON(e)),...this.loops.flatMap(i=>i.toFlatJSON(e)),...this.searches.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[...this.entities.flatMap(i=>i.toFlatGenerationTarget(e)),...this.functions.flatMap(i=>i.toFlatGenerationTarget(e)),...this.events.flatMap(i=>i.toFlatGenerationTarget(e)),...this.projects.flatMap(i=>i.toFlatGenerationTarget(e)),...this.variableDeclarations.flatMap(i=>i.toFlatGenerationTarget(e)),...this.variableInstances.flatMap(i=>i.toFlatGenerationTarget(e)),...this.conditions.flatMap(i=>i.toFlatGenerationTarget(e)),...this.operations.flatMap(i=>i.toFlatGenerationTarget(e)),...this.functionCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.loops.flatMap(i=>i.toFlatGenerationTarget(e)),...this.searches.flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.entities.forEach(e=>e.clearErrors()),this.projects.forEach(e=>e.clearErrors()),this.functions.forEach(e=>e.clearErrors()),this.events.forEach(e=>e.clearErrors()),this.variableDeclarations.forEach(e=>e.clearErrors()),this.variableInstances.forEach(e=>e.clearErrors()),this.conditions.forEach(e=>e.clearErrors()),this.operations.forEach(e=>e.clearErrors()),this.functionCalls.forEach(e=>e.clearErrors()),this.loops.forEach(e=>e.clearErrors()),this.searches.forEach(e=>e.clearErrors()),this}validate(){const e=A7(),t=this.toJSON();return e.safeParse(t),this.validateChildren(),{success:!0,error:null,data:t}}validateChildren(){this.entities.forEach(e=>e.validate()),this.projects.forEach(e=>e.validate()),this.functions.forEach(e=>e.validate()),this.events.forEach(e=>e.validate()),this.variableDeclarations.forEach(e=>e.validate()),this.variableInstances.forEach(e=>e.validate()),this.conditions.forEach(e=>e.validate()),this.operations.forEach(e=>e.validate()),this.functionCalls.forEach(e=>e.validate()),this.loops.forEach(e=>e.validate()),this.searches.forEach(e=>e.validate())}getErrors(){return[...this.errors,...this.entities.flatMap(t=>t.getErrors()),...this.projects.flatMap(t=>t.getErrors()),...this.functions.flatMap(t=>t.getErrors()),...this.events.flatMap(t=>t.getErrors()),...this.variableDeclarations.flatMap(t=>t.getErrors()),...this.variableInstances.flatMap(t=>t.getErrors()),...this.conditions.flatMap(t=>t.getErrors()),...this.operations.flatMap(t=>t.getErrors()),...this.functionCalls.flatMap(t=>t.getErrors()),...this.loops.flatMap(t=>t.getErrors()),...this.searches.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(){return this}getDefinitionEntity(e){return this.entities.find(t=>t.id===e)||null}addDefinitionEntityFromTransfer(e){const t=C(e,this);return this.addDefinitionEntity(t),t}addDefinitionEntity(e){return this.entities.includes(e)||this.entities.push(e),e}addFunctionDeclarationFromTransfer(e){const t=C(e,this);return this.addFunctionDeclaration(t),t}addFunctionDeclaration(e){return this.functions.includes(e)||this.functions.push(e),e}addFunctionCallFromTransfer(e){const t=C(e,this);return this.addFunctionCall(t),t}addFunctionCall(e){return this.functionCalls.includes(e)||this.functionCalls.push(e),e}addVariableDeclarationFromTransfer(e){const t=C(e,this);return this.addVariableDeclaration(t),t}addVariableDeclaration(e){return this.variableDeclarations.includes(e)||this.variableDeclarations.push(e),e}addVariableInstanceFromTransfer(e){const t=C(e,this);return this.addVariableInstance(t),t}addVariableInstance(e){return this.variableInstances.includes(e)||this.variableInstances.push(e),e}addInstalledProjectFromTransfer(e){const t=C(e,this);return this.addInstalledProject(t),this}addInstalledProject(e){return this.projects.includes(e)||this.projects.push(e),this}addGlobalEventFromTransfer(e){const t=C(e,this);return this.addGlobalEvent(t),this}addGlobalEvent(e){return this.events.includes(e)||this.events.push(e),this}addConditionFromTransfer(e){const t=C(e,this);return this.addCondition(t),this}addCondition(e){return this.conditions.includes(e)||this.conditions.push(e),this}addOperationFromTransfer(e){const t=C(e,this);return this.addOperation(t),this}addOperation(e){return this.operations.includes(e)||this.operations.push(e),this}addLoopFromTransfer(e){const t=C(e,this);return this.addLoop(t),this}addLoop(e){return this.loops.includes(e)||this.loops.push(e),this}addSearchFromTransfer(e){const t=C(e,this);return this.addSearch(t),this}addSearch(e){return this.searches.includes(e)||this.searches.push(e),this}removeDefinitionEntity(e){const t=this.entities.findIndex(i=>i.id===e.id);if(t>-1){const i=this.entities[t];return this.entities.splice(t,1),i}return null}removeFunctionDeclaration(e){const t=this.functions.findIndex(i=>i.id===e.id);if(t>-1){const i=this.functions[t];return this.functions.splice(t,1),i}return null}removeExternalProject(e){const t=this.projects.findIndex(i=>i.id===e.id);if(t>-1){const i=this.projects[t];return this.projects.splice(t,1),i}return null}removeGlobalEvent(e){const t=this.events.findIndex(i=>i.id===e.id);if(t>-1){const i=this.events[t];return this.events.splice(t,1),i}return null}removeTopLevelVariableDeclaration(e){if(e.type!==n.VariableDeclaration)return null;const t=this.variableDeclarations.findIndex(i=>i.id===e.id);if(t>-1){const i=this.variableDeclarations[t];return this.variableDeclarations.splice(t,1),i}return null}getEntryPoints(){return[...this.functions,...this.events,...this.entities.flatMap(t=>t.methods)]}getTerminationStatements(){return[...this.getEntryPoints().reduce((t,i)=>{const s=Je(i);return[...t,...s.filter(l=>l.type===n.ReturnStatement||l.type===n.ContinueStatement||l.type===n.BreakStatement)]},[])]}getFunctionDeclaration(e){return this.functions.find(t=>t.id===e)||null}getConditions(){return[...this.conditions,...this.getEntryPoints().reduce((t,i)=>{const s=Je(i);return[...t,...s.filter(l=>l.type===n.Condition)]},[]),...this.functionCalls.reduce((t,i)=>{const s=Je(i);return[...t,...s.filter(l=>l.type===n.Condition)]},[]),...this.operations.reduce((t,i)=>{const s=Je(i);return[...t,...s.filter(l=>l.type===n.Condition)]},[]),...this.loops.reduce((t,i)=>{const s=Je(i);return[...t,...s.filter(l=>l.type===n.Condition)]},[]),...this.searches.reduce((t,i)=>{const s=Je(i);return[...t,...s.filter(l=>l.type===n.Condition)]},[])]}getOperations(){return[...this.operations,...this.getEntryPoints().reduce((t,i)=>{const s=Je(i);return[...t,...s.filter(l=>l.type===n.Operation)]},[]),...this.functionCalls.reduce((t,i)=>{const s=Je(i);return[...t,...s.filter(l=>l.type===n.Operation)]},[]),...this.conditions.reduce((t,i)=>{const s=Je(i);return[...t,...s.filter(l=>l.type===n.Operation)]},[]),...this.loops.reduce((t,i)=>{const s=Je(i);return[...t,...s.filter(l=>l.type===n.Operation)]},[]),...this.searches.reduce((t,i)=>{const s=Je(i);return[...t,...s.filter(l=>l.type===n.Operation)]},[])]}getFunctionCalls(){return[...this.functionCalls,...this.getEntryPoints().reduce((t,i)=>{const s=Je(i);return[...t,...s.filter(l=>l.type===n.FunctionCall)]},[]),...this.conditions.reduce((t,i)=>{const s=Je(i);return[...t,...s.filter(l=>l.type===n.FunctionCall)]},[]),...this.operations.reduce((t,i)=>{const s=Je(i);return[...t,...s.filter(l=>l.type===n.FunctionCall)]},[]),...this.loops.reduce((t,i)=>{const s=Je(i);return[...t,...s.filter(l=>l.type===n.FunctionCall)]},[]),...this.searches.reduce((t,i)=>{const s=Je(i);return[...t,...s.filter(l=>l.type===n.FunctionCall)]},[])]}getVariables(){return[...this.variableDeclarations,...this.getEntryPoints().reduce((t,i)=>{const s=He(i);return[...t,...s]},[]),...this.functionCalls.reduce((t,i)=>{const s=He(i);return[...t,...s]},[]),...this.conditions.reduce((t,i)=>{const s=He(i);return[...t,...s]},[]),...this.operations.reduce((t,i)=>{const s=He(i);return[...t,...s]},[]),...this.loops.reduce((t,i)=>{const s=He(i);return[...t,...s]},[]),...this.searches.reduce((t,i)=>{const s=He(i);return[...t,...s]},[])]}getVariableInstances(){return[...this.variableInstances,...this.getEntryPoints().reduce((t,i)=>{const l=He(i).filter(o=>o.type===n.VariableInstance);return[...t,...l]},[]),...this.functionCalls.reduce((t,i)=>{const l=He(i).filter(o=>o.type===n.VariableInstance);return[...t,...l]},[]),...this.conditions.reduce((t,i)=>{const l=He(i).filter(o=>o.type===n.VariableInstance);return[...t,...l]},[]),...this.operations.reduce((t,i)=>{const l=He(i).filter(o=>o.type===n.VariableInstance);return[...t,...l]},[]),...this.loops.reduce((t,i)=>{const l=He(i).filter(o=>o.type===n.VariableInstance);return[...t,...l]},[]),...this.searches.reduce((t,i)=>{const l=He(i).filter(o=>o.type===n.VariableInstance);return[...t,...l]},[])]}getVariableDeclarations(){return p([...this.variableDeclarations,...this.getEntryPoints().reduce((t,i)=>{const l=He(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...l]},[]),...this.functionCalls.reduce((t,i)=>{const l=He(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...l]},[]),...this.conditions.reduce((t,i)=>{const l=He(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...l]},[]),...this.operations.reduce((t,i)=>{const l=He(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...l]},[]),...this.loops.reduce((t,i)=>{const l=He(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...l]},[]),...this.searches.reduce((t,i)=>{const l=He(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...l]},[])])}getLoops(){return[...this.loops,...this.getEntryPoints().reduce((t,i)=>{const s=Je(i);return[...t,...s.filter(l=>l.type===n.Loop)]},[]),...this.functionCalls.reduce((t,i)=>{const s=Je(i);return[...t,...s.filter(l=>l.type===n.Loop)]},[]),...this.conditions.reduce((t,i)=>{const s=Je(i);return[...t,...s.filter(l=>l.type===n.Loop)]},[]),...this.operations.reduce((t,i)=>{const s=Je(i);return[...t,...s.filter(l=>l.type===n.Loop)]},[]),...this.searches.reduce((t,i)=>{const s=Je(i);return[...t,...s.filter(l=>l.type===n.Loop)]},[])]}getSearches(){return[...this.searches,...this.getEntryPoints().reduce((t,i)=>{const s=Je(i);return[...t,...s.filter(l=>l.type===n.Search)]},[]),...this.functionCalls.reduce((t,i)=>{const s=Je(i);return[...t,...s.filter(l=>l.type===n.Search)]},[]),...this.conditions.reduce((t,i)=>{const s=Je(i);return[...t,...s.filter(l=>l.type===n.Search)]},[]),...this.operations.reduce((t,i)=>{const s=Je(i);return[...t,...s.filter(l=>l.type===n.Search)]},[]),...this.loops.reduce((t,i)=>{const s=Je(i);return[...t,...s.filter(l=>l.type===n.Search)]},[])]}attachOrphanReferences(){const e=this.getVariableInstances(),t=this.getVariableDeclarations();return e.forEach(i=>{if(!i.declaration){const s=i.initialData,l=s.declaration.entityId||s.declaration.id,o=t.find(d=>d.id===l);o&&i.setDeclaration(o)}}),this}getBuiltInPersistedEntity(){return this.builtInBaseEntities.find(e=>e.name===S.PERSISTED_ENTITY)||null}};f(re,"sessionAuthor","1"),f(re,"UUID",{isBackup:!0,uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:e=>e}),f(re,"repository",{APICreate:async(e,...t)=>e,APIUpdate:async(e,...t)=>e,APIDelete:async(e,...t)=>e,APIClone:async(e,...t)=>{},APILoad:async(e,...t)=>null,APILoadVersion:async(e,t,...i)=>null}),f(re,"type",n.Project),f(re,"USER_MANAGED_PARENT_TYPES",[]),f(re,"PARENT_TYPES",[...re.USER_MANAGED_PARENT_TYPES]),f(re,"MUTABLE_BASE_PROPERTIES",["name","description"]),f(re,"INMUTABLE_BASE_PROPERTIES",["id","type","version","createdAt","author","previousVersion"]),f(re,"BASE_PROPERTIES",[...re.MUTABLE_BASE_PROPERTIES,...re.INMUTABLE_BASE_PROPERTIES]),f(re,"MUTABLE_META_PROPERTIES",[...re.MUTABLE_BASE_PROPERTIES,"x","y"]),f(re,"INMUTABLE_META_PROPERTIES",[...re.INMUTABLE_BASE_PROPERTIES]),f(re,"META_PROPERTIES",[...re.MUTABLE_META_PROPERTIES,...re.INMUTABLE_META_PROPERTIES]),f(re,"MUTABLE_UPSTREAM_PROPERTIES",[]),f(re,"INMUTABLE_UPSTREAM_PROPERTIES",["primitives","builtInBaseEntities","operationDeclarations","globalEventActionDescriptors","loopDeclarations","builtInInstances"]),f(re,"UPSTREAM_PROPERTIES",[...re.MUTABLE_UPSTREAM_PROPERTIES,...re.INMUTABLE_UPSTREAM_PROPERTIES]),f(re,"MUTABLE_DOWNSTREAM_PROPERTIES",["entities","projects","functions","events","variableDeclarations","variableInstances","conditions","operations","functionCalls","loops","searches"]),f(re,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),f(re,"DOWNSTREAM_PROPERTIES",[...re.MUTABLE_DOWNSTREAM_PROPERTIES,...re.INMUTABLE_DOWNSTREAM_PROPERTIES]),f(re,"PROPERTIES",[...re.META_PROPERTIES,...re.UPSTREAM_PROPERTIES,...re.DOWNSTREAM_PROPERTIES]);let m=re;var fw=(r=>(r.PersistChangeSet="persist-change-set",r.CreateSingle="create-single",r.CreateBulk="create-bulk",r.CreateSingleNested="create-single-nested",r.CreateBulkNested="create-bulk-nested",r.Update="update",r.Clone="clone",r.Delete="delete",r.Load="load",r.LoadNested="load-nested",r.LoadVersion="load-version",r))(fw||{});class yw extends Se{constructor(e){super(Vi,e);f(this,"id",Qe.Parallel);f(this,"name",Qe.Parallel);f(this,"description","Execute a list of actions one after the other");f(this,"version","1");f(this,"autoexecutable",!0);f(this,"initialData",Vi);f(this,"type",n.ActionDescriptor);f(this,"inputs",[]);f(this,"outputs",[]);f(this,"error",null);f(this,"project");this.project=e,this.inputs=Vi.inputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(null),i}),this.outputs=Vi.outputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(null),i}),this.error=Vi.error?C(Vi.error,this.project):null}}class hw extends Se{constructor(e){super(Wt,e);f(this,"id",Wt.id);f(this,"name",Wt.name);f(this,"description",Wt.description);f(this,"version",Wt.version);f(this,"autoexecutable",!1);f(this,"initialData",Wt);f(this,"type",n.ActionDescriptor);f(this,"inputs",[]);f(this,"outputs",[]);f(this,"error",null);f(this,"project");this.project=e,this.inputs=Wt.inputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(null),i}),this.outputs=Wt.outputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(null),i}),this.error=Wt.error?C(Wt.error,this.project):null}}class mw extends Se{constructor(e){super(or,e);f(this,"id",Qe.Sequential);f(this,"name",Qe.Sequential);f(this,"description","Execute a list of actions one after the other");f(this,"version","1");f(this,"autoexecutable",!0);f(this,"initialData",or);f(this,"type",n.ActionDescriptor);f(this,"inputs",[]);f(this,"outputs",[]);f(this,"error",null);f(this,"project");this.project=e,this.inputs=or.inputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(null),i}),this.outputs=or.outputs.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(null),i}),this.error=or.error?C(or.error,this.project):null}}class bW extends Se{constructor(a){super(Ms,a)}}class RW extends Se{constructor(a){super(un,a)}}class DW extends Se{constructor(e){super(pn,e);f(this,"autoexecutable",!0)}getEntityToMatchInputMap(e){return e.inputs.find(t=>{var i;return((i=t.declaration)==null?void 0:i.id)===k.operation[tt.Validate].inputs.entityToMatch.id})||null}getDataToValidateInputMap(e){return e.inputs.find(t=>{var i;return((i=t.declaration)==null?void 0:i.id)===k.operation[tt.Validate].inputs.dataToValidate.id})||null}getOutputDataOutputMap(e){return e.outputs.find(t=>{var i;return((i=t.declaration)==null?void 0:i.id)===k.operation[tt.Validate].outputs.outputEntity.id})||null}getEntityToMatch(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"get-entity-to-match-validate-data"))){let i=null;if(e.readsValue){const l=e.readsValue.getDataType(t);l&&l.entity&&l.entity.type===n.DefinitionEntity&&(i=l.entity)}const s=e.getDefaultValue();return!i&&s&&s.valueAsTypeSingle&&!Array.isArray(s.valueAsTypeSingle)&&s.valueAsTypeSingle.type===n.DefinitionEntity&&(i=s.valueAsTypeSingle),i}syncOperationInstance(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-operation-instance-validate-data"))){const i=[],s=[],l=[],o=[],d=this.getEntityToMatchInputMap(e);if(d){const{added:c,updated:E,removed:I,affected:O}=this.syncEntityToMatchInputMapDataType(d,t);i.push(...E),s.push(...c),l.push(...I),o.push(...O)}const u=this.getDataToValidateInputMap(e);if(u){const{added:c,updated:E,removed:I,affected:O}=this.syncDataToValidateInputMapDataType(u,t);i.push(...E),s.push(...c),l.push(...I),o.push(...O)}const y=this.getOutputDataOutputMap(e);if(y){const{added:c,updated:E,removed:I,affected:O}=this.syncOutputDataOutputMapDataType(y,t);i.push(...E),s.push(...c),l.push(...I),o.push(...O)}return t==null||t.attemptAutoclose("sync-operation-instance-validate-data",this.id),{updated:p(i),added:p(s),removed:p(l),affected:p(o),self:e}}syncEntityToMatchInputMapDataType(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-entity-to-match-input-map-data-type"))){var u,y,c;const i=[],s=[],l=[],o=[];if(((u=e.declaration)==null?void 0:u.id)!==k.operation[tt.Validate].inputs.entityToMatch.id)return t==null||t.attemptAutoclose("sync-entity-to-match-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!e.dataType){const E={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:(t==null?void 0:t.author)||m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!0,entity:null,like:!0,inferred:!0,parent:e.toReference()},I=C(E,e.project);I.setParent(e,t),I.initChildren(t),t==null||t.add(I,b.Added),i.push(I),e.setDataType(I)}(y=e.dataType)==null||y.metaSync({inferred:!0,like:!1,asType:!0},t);const d=this.getEntityToMatch(e,t);return(c=e.dataType)==null||c.setEntity(d),e.dataType&&s.push(e.dataType),t==null||t.attemptAutoclose("sync-entity-to-match-input-map-data-type",this.id),{updated:p(s),added:p(i),removed:p(l),affected:p(o),self:e.dataType}}syncDataToValidateInputMapDataType(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-data-to-validate-input-map-data-type"))){var c,E,I;const i=[],s=[],l=[],o=[];if(((c=e.declaration)==null?void 0:c.id)!==k.operation[tt.Validate].inputs.dataToValidate.id)return t==null||t.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const d=this.getEntityToMatchInputMap(e.parent);if(!d)return t==null||t.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!this.getEntityToMatch(d,t))return t==null||t.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!e.dataType){const O={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:(t==null?void 0:t.author)||m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,isList:!1,andChildrenGroup:null,orChildrenGroup:null,staticEntities:null,interactiveEntities:null,actionEntities:null,asType:!1,entity:null,like:!0,inferred:!0,parent:e.toReference()},P=C(O,e.project);P.setParent(e,t),P.initChildren(t),t==null||t.add(P,b.Added),i.push(P),e.setDataType(P)}(E=e.dataType)==null||E.metaSync({inferred:!0,like:!0,asType:!1},t);const y=this.getEntityToMatch(d,t);return(I=e.dataType)==null||I.setEntity(y),e.dataType&&s.push(e.dataType),t==null||t.attemptAutoclose("sync-data-to-validate-input-map-data-type",this.id),{updated:p(s),added:p(i),removed:p(l),affected:p(o),self:e.dataType}}syncOutputDataOutputMapDataType(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"sync-output-data-output-map-data-type"))){var c,E,I;const i=[],s=[],l=[],o=[];if(((c=e.declaration)==null?void 0:c.id)!==k.operation[tt.Validate].outputs.outputEntity.id)return t==null||t.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};const d=this.getEntityToMatchInputMap(e.parent);if(!d)return t==null||t.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!this.getEntityToMatch(d,t))return t==null||t.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:[],added:[],removed:[],affected:[],self:null};if(!e.dataType){const O={id:m.UUID.uuid(),version:m.UUID.uuid(),createdAt:(t==null?void 0:t.timestamp)||new Date().toISOString(),author:(t==null?void 0:t.author)||m.sessionAuthor,previousVersion:null,deleted:!1,type:n.DataType,parentRelationType:null,options:null,implementationChooseOne:!1,staticEntities:null,interactiveEntities:null,actionEntities:null,isList:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,like:!0,inferred:!0,parent:e.toReference()},P=C(O,e.project);P.setParent(e,t),P.initChildren(t),t==null||t.add(P,b.Added),i.push(P),e.setDataType(P)}(E=e.dataType)==null||E.metaSync({inferred:!0,like:!0,asType:!1},t);const y=this.getEntityToMatch(d,t);return(I=e.dataType)==null||I.setEntity(y),e.dataType&&s.push(e.dataType),t==null||t.attemptAutoclose("sync-output-data-output-map-data-type",this.id),{updated:p(s),added:p(i),removed:p(l),affected:p(o),self:e.dataType}}inferInputMapDataType(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"infer-input-map-data-type-validate-data"))){var s,l;if(((s=e.declaration)==null?void 0:s.id)===k.operation[tt.Validate].inputs.dataToValidate.id){const{added:o,updated:d,removed:u,affected:y}=this.syncDataToValidateInputMapDataType(e,t);return t==null||t.attemptAutoclose("infer-input-map-data-type",this.id),{updated:p(d),added:p(o),removed:p(u),affected:p(y),self:e.dataType}}const i=(l=e.declaration)==null?void 0:l.getDataType(t);if(i&&i.isResolved)return t==null||t.attemptAutoclose("infer-input-map-data-type-validate-data",this.id),{updated:[],added:[],removed:[],affected:[],self:i};if(e.readsValue){const o=ji(e.readsValue,t);return t==null||t.attemptAutoclose("infer-input-map-data-type-validate-data",this.id),{updated:[],added:[],removed:[],affected:[],self:o}}return t==null||t.attemptAutoclose("infer-input-map-data-type-validate-data",this.id),{updated:[],added:[],removed:[],affected:[],self:null}}inferOutputMapDataType(e,t=this.project.addChangeSet(new A(this.project,m.sessionAuthor,T().toISOString(),this,!0,"infer-output-map-data-type-validate-data"))){var i;if(((i=e.declaration)==null?void 0:i.id)===k.operation[tt.Validate].outputs.outputEntity.id){const{added:s,updated:l,removed:o,affected:d}=this.syncOutputDataOutputMapDataType(e,t);return t==null||t.attemptAutoclose("infer-output-map-data-type-validate-data",this.id),{updated:p(l),added:p(s),removed:p(o),affected:p(d),self:e.dataType}}return{updated:[],added:[],removed:[],affected:[],self:null}}}class OW extends Se{constructor(a){super(Ad,a)}}class PW extends Se{constructor(a){super(Rd,a)}}class wW extends Se{constructor(a){super(Dd,a)}}class CW extends Se{constructor(a){super(Xa,a)}}class VW extends Se{constructor(a){super(Ya,a)}}class BW extends Se{constructor(a){super(_s,a)}}function _W(r){const a=[new mw(r),new yw(r),new hw(r),new bW(r),new RW(r),new DW(r),new CW(r),new OW(r),new wW(r),new PW(r),new VW(r),new BW(r),new Se(Id,r),new Se(Ed,r)];return a.forEach(e=>{e.initChildren(null),r.subscribeBuiltInInstance(e)}),r.operationDeclarations=a,a}class vw extends $i{constructor(e){super(_t,e);f(this,"initialData");f(this,"id",S.PERSISTED_ENTITY);f(this,"version","1");f(this,"name",S.PERSISTED_ENTITY);f(this,"description",_t.description);f(this,"type",n.BuiltInBaseEntity);f(this,"abstract",_t.abstract);f(this,"static",_t.static);f(this,"properties",[]);f(this,"methods",[]);f(this,"abstractMethods",[]);f(this,"extends",[]);f(this,"errors",[]);f(this,"project");this.initialData=_t,this.project=e,this.id=_t.id,this.version=_t.version,this.name=_t.name,this.static=_t.static,this.abstract=_t.abstract,this.properties=this.initialData.properties.map(t=>{const i=C(t,this.project);return i.setParent(this,null),i.initChildren(null),i}),this.methods=this.initialData.methods.map(t=>{const i=C(t,this.project);return i.parent=this,i}),this.abstractMethods=this.initialData.abstractMethods.map(t=>{const i=C(t,this.project);return i.parent=this,i}),this.extends=this.initialData.extends.map(t=>C(t,this.project))}}var Tw=(r=>(r.StatusCodeMustBeNumber="status-code-must-be-number",r.StatusCodeMustBeBetween100And599="status-code-must-be-between-100-and-599",r))(Tw||{});function Ew(r,a){const e=[];if(typeof a!="number"){const t=new Ye({id:r.id+"--status-code-must-be-number",message:`Entity of type ${r.type} with id "${r.id}" has an invalid value "${a}". The value must be a number.`,issue:null,severity:D.Error,code:"status-code-must-be-number",entity:r});return e.push(t),{errors:e,override:a}}if(a<100){const t=new Ye({id:r.id+"--status-code-must-be-between-100-and-599",message:`Entity of type ${r.type} with id "${r.id}" has an invalid value "${a}". The value must be a number between 100 and 599.`,issue:null,severity:D.Error,code:"status-code-must-be-between-100-and-599",entity:r});e.push(t)}if(a>599){const t=new Ye({id:r.id+"--status-code-must-be-between-100-and-599",message:`Entity of type ${r.type} with id "${r.id}" has an invalid value "${a}". The value must be a number between 100 and 599.`,issue:null,severity:D.Error,code:"status-code-must-be-between-100-and-599",entity:r});e.push(t)}return{errors:e,override:a}}class Iw extends $i{constructor(e){super(ni,e);f(this,"initialData");f(this,"id",S.PERSISTED_ENTITY);f(this,"version","1");f(this,"name",S.PERSISTED_ENTITY);f(this,"description",ni.description);f(this,"type",n.BuiltInBaseEntity);f(this,"abstract",ni.abstract);f(this,"static",ni.static);f(this,"properties",[]);f(this,"methods",[]);f(this,"abstractMethods",[]);f(this,"extends",[]);f(this,"errors",[]);f(this,"project");this.initialData=ni,this.project=e,this.id=ni.id,this.version=ni.version,this.name=ni.name,this.static=ni.static,this.abstract=ni.abstract,this.properties=this.initialData.properties.map(l=>{const o=C(l,this.project);return o.setParent(this,null),o.initChildren(null),o}),this.methods=this.initialData.methods.map(l=>{const o=C(l,this.project);return o.parent=this,o}),this.abstractMethods=this.initialData.abstractMethods.map(l=>{const o=C(l,this.project);return o.parent=this,o}),this.extends=this.initialData.extends.map(l=>C(l,this.project));const t=this.properties.find(l=>l.id===k["built-in-base-entity"].BUILT_IN_HTTP_ENDPOINT_ENTITY.properties.path.id);if(!t)throw new Error("Path property not found in endpoint entity");t._codeNativeValueValidation=(l,o)=>nP(l,o);const i=this.abstractMethods.find(l=>l.id===k["built-in-base-entity"].BUILT_IN_HTTP_ENDPOINT_ENTITY.methods.handler.id);if(!i)throw new Error("Handler method not found in endpoint entity");const s=i.outputs.find(l=>l.id===k["built-in-base-entity"].BUILT_IN_HTTP_ENDPOINT_ENTITY.methods.handler.outputs.statusCode.id);if(!s)throw new Error("Status code output not found in handler method");s.codeNativeValueValidation=(l,o)=>Ew(l,o)}}const MW="test_primitive_entities_export";class NW extends $i{constructor(e){super(Dt,e);f(this,"initialData");f(this,"id",S.PERSISTED_ENTITY);f(this,"version","1");f(this,"name",S.PERSISTED_ENTITY);f(this,"description",Dt.description);f(this,"type",n.BuiltInBaseEntity);f(this,"abstract",Dt.abstract);f(this,"static",Dt.static);f(this,"properties",[]);f(this,"methods",[]);f(this,"abstractMethods",[]);f(this,"extends",[]);f(this,"errors",[]);f(this,"project");this.initialData=Dt,this.project=e,this.id=Dt.id,this.version=Dt.version,this.name=Dt.name,this.static=Dt.static,this.abstract=Dt.abstract,this.properties=this.initialData.properties.map(i=>{const s=C(i,this.project);return s.setParent(this,null),s.initChildren(null),s}),this.methods=this.initialData.methods.map(i=>{const s=C(i,this.project);return s.parent=this,s}),this.abstractMethods=this.initialData.abstractMethods.map(i=>{const s=C(i,this.project);return s.parent=this,s}),this.extends=this.initialData.extends.map(i=>C(i,this.project));const t=this.properties.find(i=>i.id===k["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.identifier.id);if(!t)throw new Error("Path property not found in endpoint entity");t._codeNativeValueValidation=(i,s)=>sP(i,s)}}function LW(r){const a=[new vw(r),new Iw(r),new NW(r),new $i(Dt,r),new $i(mo,r)];return a.forEach(e=>{r.subscribeBuiltInInstance(e)}),r.builtInBaseEntities=a,a}function jW(r){const a=[new ii(ae,r),new ii(rr,r),new ii(ve,r),new ii(fd,r),new ii(wt,r),new ii(nr,r),new ii(Fi,r),new ii(sr,r),new ii(Zn,r)];return a.forEach(e=>{r.subscribeBuiltInInstance(e)}),r.primitives=a,a}function UW(r){const a=[new Se(To,r)];return a.forEach(e=>{e.initChildren(null),r.subscribeBuiltInInstance(e)}),r.globalEventActionDescriptors=a,a}function $W(r){const a=[new Se(Us,r),new Se(Or,r),new Se(Ls,r),new Se(Sn,r),new Se(Wn,r),new Se(ao,r)];a.forEach(t=>{t.initChildren(null),r.subscribeBuiltInInstance(t)}),r.loopDeclarations=a;const e=[new Se(po,r),new Se(js,r),new Se(lo,r),new Se($d,r),new Se(Gd,r),new Se(oo,r)];return e.forEach(t=>{t.initChildren(null),r.subscribeBuiltInInstance(t)}),r.loopDeclarationsBodies=e,a}function gW(r){const a=[new Ir(Eo,r)];return a.forEach(e=>{e.initChildren(null),r.subscribeBuiltInInstance(e)}),r.valueDescriptors=a,a}function GW(r){const a=[new Se(mn,r),new Se(Xn,r)];return a.forEach(e=>{e.initChildren(null),r.subscribeBuiltInInstance(e)}),r.conditionDeclarations=a,a}const gn={},ad={},ka={empty:!1,enrich:!0,mock:!1,ignoreCache:!1,onFetch:async()=>null,manuallyInit:!1};function Aw(r,{enrich:a}={enrich:!0}){const e=r.project,t=r.record,i=new zl(e),s=new Set;t[e.id]=e,s.add(e.id);const l=T().toISOString();Object.values(t).forEach(u=>{!u||i.allBuiltInEntityIds.includes(u.id)||s.add(u.id)}),i.order=Array.from(s),i.flatRecord=t,i.orderEntities();const o=od(r.project);o.instances[e.id]=o;const d=a?o.addChangeSet(new A(o,m.sessionAuthor,l,o,!0,"project-init-from-fetch-result")):null;return i.visit(u=>{if(u.id===o.id)return;const y=C(u,o);y.hydrateAncestors(),y.addSelfToProject(null)}),a?(i.visit(u=>{const y=o.get(u.id);y&&y.afterAllChildrenInitialized(d)}),o.afterAllChildrenInitialized(d)):ld(o,l).forEach(y=>{y.remove({ignoreUpstream:!0},null)}),o.instancesList.forEach(u=>{u.previousVersion=null}),d==null||d.attemptAutoclose("project-init-from-fetch-result",o.id),o}async function FW(r,a=ka){const e={...ka,...a};if(e.empty)return{data:{project:{id:r.id,type:n.Project,version:m.UUID.uuid(),createdAt:T().toISOString(),author:m.sessionAuthor,previousVersion:null,deleted:!1,name:null,description:null,projects:[],entities:[],operations:[],functions:[],variableDeclarations:[],variableInstances:[],functionCalls:[],conditions:[],loops:[],searches:[],events:[]},record:{}}};if(e.mock){const i={...up};return i.id=r.id,{data:{project:i,record:{}}}}return console.log("Fetching project from external API"),new Promise(async i=>{try{if(e.onFetch){const s=await e.onFetch(r.id);if(s){i({data:s});return}}else i({data:null})}catch(s){console.error("Error fetching project: ",s),i({data:null})}})}function od(r){const a=new m(r);return jW(a),LW(a),_W(a),UW(a),$W(a),gW(a),GW(a),Array.from(new Set([...a.getAllBuiltInIds(),...Ui()])).forEach(t=>{if(!a.builtInInstances[t]&&a.instances[t])a.builtInInstances[t]=a.instances[t],delete a.instances[t];else if(!a.builtInInstances[t])throw new Error(`Built in entity was not properly initialized: ${t}`)}),a}function ld(r,a){return r.instancesList.filter(t=>T(t.createdAt).isAfter(T(a)||!!t.previousVersion))}function xW(r,{enrich:a}={enrich:!0}){const e=new Map,t=Array.from(new Set([...r.getAllBuiltInIds(),...Ui()]));Object.keys(r.instances).forEach(u=>{if(t.includes(u)){e.set(u,u);return}const y=r.get(u);if(!nd(y,{...r.instances,...r.builtInInstances}).every(I=>!t.includes(I))){e.set(u,u);return}e.set(u,m.UUID.uuid())});const i=T().toISOString(),s=r.toShallowJSON({seenEntityMaps:e});s.previousVersion=null,s.createdAt=i,s.version=m.UUID.uuid();const l=od(s),o=a?l.addChangeSet(new A(l,m.sessionAuthor,i,l,!0,"project-clone")):null,d=new zl(r);return d.visit(u=>{const y=u.toShallowJSON({seenEntityMaps:e});u.type===n.ValueDescriptor&&u.name==="Iteration result"&&(console.log("Og entity shallow copy: ",y),console.log("Og entity full: ",u)),y.previousVersion=null,y.createdAt=i,y.version=m.UUID.uuid();const c=C(y,l);c.hydrateAncestors(),c.addSelfToProject(o),o==null||o.add(c,b.Added)}),a?(d.visit(u=>{const y=l.get(e.get(u.id));y&&y.afterAllChildrenInitialized(o)}),l.afterAllChildrenInitialized(o)):ld(l,i).forEach(y=>{y.remove({ignoreUpstream:!0},null)}),l.instancesList.forEach(u=>{u.previousVersion=null}),o==null||o.attemptAutoclose("project-clone",l.id),l}function bw(r,{enrich:a}={enrich:!0}){const e=od(r),t=T().toISOString(),i=a?e.addChangeSet(new A(e,m.sessionAuthor,t,e,!0,"project-init")):null;i&&(i.type=Cc.Automatic);const s=new zl(r);return s.visit(l=>{const o=C(l,e);o.hydrateAncestors(),o.addSelfToProject(i)}),a?(s.visit(l=>{const o=e.get(l.id);o&&o.afterAllChildrenInitialized(i)}),e.afterAllChildrenInitialized(i)):ld(e,t).forEach(o=>{o.remove({ignoreUpstream:!0},null)}),i==null||i.attemptAutoclose("project-init",e.id),e}async function kW(r,a=ka){const e={...ka,...a};if(r.id&&gn[r.id]&&!e.ignoreCache)return gn[r.id];if(r.id&&ad[r.id]&&!e.ignoreCache)return await ad[r.id],gn[r.id];const t=FW(r,e);r.id&&(ad[r.id]=t);const i=await t;if(i.data){let s;return e.mock?s=bw(up,{enrich:!!e.enrich}):i.data instanceof m?s=i.data:s=Aw(i.data,{enrich:!!e.enrich}),gn[r.id]=s,r.id&&delete ad[r.id],s}return null}function ZW(r){return gn[r.id]&&delete gn[r.id],null}h.AI_VALUE_CONNECTION_GENERATION_ACTION_EXPLANATION=xc,h.ALL_BUILT_IN_BASE_ENTITIES=qE,h.ALL_BUILT_IN_CONDITION_ENTITIES=nI,h.ALL_BUILT_IN_GLOBAL_EVENT_ENTITIES=aI,h.ALL_BUILT_IN_LOOP_BODY_ENTITIES=TT,h.ALL_BUILT_IN_LOOP_ENTITIES=vT,h.ALL_BUILT_IN_OPERATION_ENTITIES=V0,h.ALL_BUILT_IN_PRIMITIVE_ENTITIES=vf,h.ALL_BUILT_IN_TOP_LEVEL_ENTITIES=uI,h.ALL_BUILT_IN_VALUE_DESCRIPTORS=dI,h.ActionDescriptorState=Se,h.ActionInputMapState=KJ,h.ActionOutputMapState=eS,h.AppendToListOperationInputIds=Oh,h.AppendToListOperationOutputIds=Ph,h.ArgumentDeclarationDependencyField=j1,h.ArgumentDeclarationState=Er,h.BREAK_AND_CONTINUE_STATEMENTS_RETURN_DECLARATIONS_EXPLANATION=$c,h.BUILT_IN_BASE_ENTITY_IDS=k,h.BUILT_IN_ENTITY_TYPES=fi,h.BaseCanvasDraggableState=hW,h.BaseEntityNames=S,h.BaseState=yW,h.BaseValueDescriptorIds=za,h.BreakStatementDependencyField=_c,h.BreakStatementState=Jr,h.BuiltInBaseEntityState=$i,h.CACHED_PROJECTS_BY_ID=gn,h.CALLABLE_ENTITIES_EXPLANATION=lS,h.CALLABLE_TYPES=gi,h.CALLER_ENTITIES_EXPLANATION=k1,h.CALLER_TYPES=Gi,h.CALLS_UPDATE_EXPLANATION=tn,h.COMPARISON_CONDITIONS=iI,h.CONDITIONS=rI,h.CUSTOM_ENTITY_OPERATIONS=Wm,h.CallableEntityClass=vW,h.CallerEntityClass=sf,h.ChangeSet=A,h.ChangeSetChangeCaptureType=Cc,h.ChangeSetEntityChangeType=b,h.ChildEntityState=mW,h.CommonStringValidationErrorCodes=rP,h.ComparisonOperatorTypes=yt,h.ConditionDependencyField=I1,h.ConditionState=Wr,h.ContinueStatementDependencyField=Vc,h.ContinueStatementState=Ut,h.CreateNewInputIds=Am,h.CreateNewOutputIds=bm,h.DRAGGABLE_CALLABLE_TYPES=cd,h.DRAGGABLE_CALLER_TYPES=df,h.DRAGGABLE_ELEMENT_TYPES=Wa,h.DRAGGABLE_EXECUTABLE_TYPES=ww,h.DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES=Sa,h.DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES_WITH_OUTPUTS=pd,h.DataTypeCompatibilityTypes=Pi,h.DataTypeDependencyField=Bc,h.DataTypeParentChildRelation=Pt,h.DataTypeState=kr,h.DefinitionEntityDependencyField=sd,h.DefinitionEntityState=on,h.EDITABLE_PERSISTANCE_REPOSITORY_DEFAULTS=cW,h.ENTITIES_WITH_VALLUES_EXPLANATION=Zl,h.ENTITY_PERSISTANCE_OPTIONS_DEFAULTS=U,h.ENTITY_RECUSION_OPTIONS_DEFAULTS=J,h.ENTITY_TYPES=Cw,h.ENTITY_WITH_DECLARATION_TYPES=Ow,h.ENTITY_WITH_LOGIC_SCOPE_TYPES=ut,h.ENTITY_WITH_NAMES_TYPES=uf,h.ENTITY_WITH_PARENT_TYPES=Rw,h.ENTITY_WITH_USER_MANAGED_DECLARATION_TYPES=of,h.ENTITY_WITH_USER_MANAGED_SINGLE_IMPLEMENTS_TYPES=Dw,h.ENTITY_WITH_VALUE_TYPES=af,h.ENTRY_POINT_ENTITIES_EXPLANATION=Ba,h.ENTRY_POINT_TYPES=at,h.EVENT_TYPES=kn,h.EXECUTABLE_TYPES=Pw,h.EXECUTION_OPERATIONS=Im,h.EndpointEntity=Iw,h.EntityAction=fw,h.EntityError=Ye,h.EntityErrorSeverity=D,h.EntityGenerationError=w,h.EntityGenerationErrorCode=R,h.EntityInstanceErrorCode=F,h.EntityOperations=tt,h.EntityType=n,h.EntityWithLogicScopeClass=AW,h.EntityWithValueClass=IW,h.EntryPointEntityClass=TW,h.ExecutionOperations=Qe,h.ExecutionTerminationType=v1,h.FunctionCallDependencyField=Q1,h.FunctionCallState=nn,h.FunctionDeclarationDependencyField=u1,h.FunctionDeclarationState=xr,h.GET_PROJECT_OPTIONS_DEFAULTS=ka,h.GLOBAL_EVENT_DECLARATIONS=sI,h.GetLastInListOperationInputIds=fh,h.GetLastInListOperationOutputIds=yh,h.GlobalEventNames=ir,h.GlobalEventState=qr,h.HTTPOperations=Lt,h.HTTPStatucCodeValidationErrorCodes=Tw,h.HTTP_OPERATIONS=w0,h.InputMapDependencyField=_1,h.InputMapState=Ki,h.InstalledProjectState=Kr,h.InternalCallDependencyField=V1,h.InternalCallState=Xr,h.JoinListOperationInputIds=Ny,h.JoinListOperationOutputIds=Ly,h.LIST_OPERATIONS=Gh,h.ListOperations=he,h.LiteralValueDependencyField=$1,h.LiteralValueState=Qr,h.LoopDependencyField=T1,h.LoopState=Sr,h.LoopTypes=ee,h.NON_INTERACTIVE_BASE_ENTITIES_EXPLANATION=rn,h.NUMBER_OPERATIONS=Wf,h.NumberOperations=et,h.OPERATION_DECLARATIONS=C0,h.OperationDependencyField=f1,h.OperationState=Zr,h.OutputMapDependencyField=N1,h.OutputMapParentChildRelation=xn,h.OutputMapState=Xi,h.PARENT_AUTO_CALCULATION_FROM_CALLER_EXPLANATION=ql,h.PASS_THROUGH_CALLABLE_ENTITIES_EXPLANATION=en,h.PASS_THROUGH_CALLABLE_TYPES=dt,h.PASS_THROUGH_CALLABLE_TYPES_WITH_OUTPUTS=lf,h.PROPERTY_NOT_VALUE_READER_WRITTER_EXPLANATION=Fc,h.ParallelExecutionOperation=yw,h.PassThroughCallableEntityClass=EW,h.PersistedEntity=vw,h.PersistedEntityMethods=ci,h.PrimitiveEntityState=ii,h.PrimitiveTypes=L,h.ProjectState=m,h.PropertyDependencyField=n1,h.PropertyState=Gr,h.READ_ONLY_ENTITY_PERSISTANCE_REPOSITORY=cw,h.RETURN_STATEMENT_RETURN_DECLARATIONS_EXPLANATION=dS,h.ReturnDeclarationDependencyField=a1,h.ReturnDeclarationState=ei,h.ReturnStatementDependencyField=Gl,h.ReturnStatementState=Fr,h.STANDALONE_CONDITIONS=WE,h.STRING_OPERATIONS=My,h.ScopeCompatibilityType=id,h.SearchDependencyField=O1,h.SearchState=Hr,h.SequentialExecutionOperation=mw,h.SequentialExecutionOperationInputIds=om,h.SequentialExecutionOperationOutputIds=lm,h.SharedEntityErrorCode=$,h.SharedStateFunctionality=pw,h.SplitListOperationInputIds=Yy,h.SplitListOperationOutputIds=Hy,h.StandaloneOperatorTypes=bi,h.StringOperations=Ie,h.TERMINATION_TYPES=ot,h.Traverser=zl,h.USER_MANAGED_ENTITY_TYPES=pf,h.UserManagedEntityStateTemplate=fW,h.VALUE_READING_ENTITIES_EXPLANATION=Gc,h.VALUE_READING_TYPES=Dr,h.VALUE_WRITING_ENTITIES_EXPLANATION=Z1,h.VALUE_WRITING_TYPES=Tt,h.VARIABLE_DATA_TYPE_INFERRANCE_EXPLANATION=gc,h.VARIABLE_TYPES=it,h.ValueAutogenerationType=vt,h.ValueDescriptorDependencyField=G1,h.ValueDescriptorParentChildRelation=N,h.ValueDescriptorState=Ir,h.ValueReadingEntityClass=Rr,h.ValueWritingEntityClass=xa,h.VariableDeclarationDependencyField=R1,h.VariableDeclarationState=Yr,h.VariableInputMapState=HJ,h.VariableInstanceDependencyField=Nc,h.VariableInstanceState=zr,h.VariableOutputMapState=QJ,h.WaitOperation=hw,h.WaitOperationInputIds=em,h.WaitOperationOutputIds=tm,h.actionDescriptorValidation=kJ,h.appendToListOperation=Xa,h.appendToListOperationElementToAppendArgument=Pd,h.appendToListOperationElementToAppendArgumentParentRef=Lh,h.appendToListOperationElementToAppendArgumentRef=Vh,h.appendToListOperationError=gh,h.appendToListOperationErrorParentRef=$h,h.appendToListOperationListArgument=Od,h.appendToListOperationListArgumentParentRef=Nh,h.appendToListOperationListArgumentRef=wh,h.appendToListOperationListDataType=Ch,h.appendToListOperationResultListDataType=Mh,h.appendToListOperationResultListReturn=Uh,h.appendToListOperationResultListReturnParentRef=jh,h.appendToListOperationResultListReturnRef=_h,h.appendToListOperationSecondListDataType=Bh,h.applyNewScope=K,h.argumentDeclarationValidation=tS,h.asGenerationActionExample=Qi,h.booleanPrototype=rr,h.breakStatementValidation=GJ,h.calculateNewParentBasedOnCallers=Wc,h.capitalizeFirstLetter=Zt,h.changeSetJSONRecordToUniqueIds=wJ,h.checkAreDataTypesCompatible=wi,h.checkAreDefinitionEntitiesCompatibleAsDataType=ZO,h.checkArePropertiesCompatibleAsDataType=kO,h.checkExtendsBaseEntity=rd,h.checkHasBaseEntity=Fa,h.checkHasMetadataChanged=ct,h.checkImplementationsOverlap=br,h.checkImplementsBaseEntity=kS,h.checkIsBranchDependentButNotDirectlyOnBranch=Ma,h.checkIsBranchDependentOnBranch=bS,h.checkIsCallableEntityReachable=Ga,h.checkIsCanvasEntity=FS,h.checkIsDetachedBranch=iw,h.checkIsDetachedBranchShallow=rf,h.checkIsGlobalVariable=gS,h.checkIsGloballyDeclared=tf,h.checkIsMethod=sw,h.checkIsNestedScope=td,h.checkScopeCompatibility=ga,h.cloneProject=xW,h.conditionValidation=ZJ,h.continueStatementValidation=BJ,h.convertToAbstract=TS,h.convertToNonAbstract=ES,h.convertToNonStatic=AS,h.convertToStatic=IS,h.countedLoopActionDescriptor=Us,h.countedLoopActionDescriptorDynamicReturnDeclaration=dT,h.countedLoopActionDescriptorDynamicReturnDeclarationParentRef=lT,h.countedLoopActionDescriptorStringArgumentDeclaration=oT,h.countedLoopActionDescriptorStringArgumentDeclarationDataType=sT,h.countedLoopActionDescriptorStringArgumentDeclarationDataTypeDefaultValue=rT,h.countedLoopActionDescriptorStringArgumentDeclarationDataTypeDefaultValueParentRef=iT,h.countedLoopActionDescriptorStringArgumentDeclarationDataTypeParentRef=nT,h.countedLoopActionDescriptorStringArgumentDeclarationParentRef=aT,h.countedLoopBodyActionDescriptor=po,h.countedLoopBodyActionDescriptorAnyDynamicArgument=yT,h.countedLoopBodyActionDescriptorAnyDynamicArgumentParentRef=fT,h.countedLoopBodyActionDescriptorAnyDynamicReturn=mT,h.countedLoopBodyActionDescriptorAnyDynamicReturnParentRef=hT,h.countedLoopBodyActionDescriptorIterationNumberArgumentDeclaration=xd,h.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=pT,h.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=uT,h.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=cT,h.createDefinitionEntityFromJSONObject=Hl,h.createEntityError=de,h.createNestedDataTypeForEntity=iP,h.createNewInstanceOperation=un,h.createNewInstanceOperationEntityToInstanciateArgument=Bm,h.createNewInstanceOperationEntityToInstanciateArgumentRef=wm,h.createNewInstanceOperationEntityToInstanciateDataType=Cm,h.createNewInstanceOperationError=Lm,h.createNewInstanceOperationErrorParentRef=Nm,h.createNewInstanceOperationNewEntityDataArgument=Pm,h.createNewInstanceOperationNewEntityDataArgumentDataType=Om,h.createNewInstanceOperationNewEntityDataArgumentDataTypeParentRef=Dm,h.createNewInstanceOperationNewEntityDataArgumentParentRef=Rm,h.createNewInstanceOperationOutputEntityDeclaration=Mm,h.createNewInstanceOperationOutputEntityDeclarationParentRef=_m,h.createNewInstanceOperationRef=Vm,h.createSemanticId=t1,h.createStateFromGenerationTargetType=pW,h.createStateFromType=nt,h.createStateFromTypeAndSubscribe=C,h.cronJobBuiltInBaseEntity=mo,h.cronJobBuiltInBaseEntityExpressionProperty=kE,h.cronJobBuiltInBaseEntityExpressionPropertyDataTypeRef=Uw,h.cronJobBuiltInBaseEntityExpressionPropertyRef=FE,h.cronJobBuiltInBaseEntityRef=xE,h.cronJobTriggeredFunctionDeclarationBlueprint=tu,h.cronJobTriggeredFunctionDeclarationBlueprintParentRef=gE,h.dataTypeCompatibilityToErrorExplanation=K1,h.dataTypeValidation=LJ,h.datePrototype=Fi,h.dateValueAutogenerationSchema=hp,h.definitionEntityToZodSchema=PI,h.definitionEntityValidation=oW,h.deletePersistedEntityMethod=eu,h.deletePersistedEntityMethodParentRef=RE,h.deleteRootProject=ZW,h.endpointBuiltInBaseEntity=ni,h.endpointBuiltInBaseEntityRef=bT,h.endpointBuiltInBaseEntityRefFour=nE,h.endpointBuiltInBaseEntityRefThree=_T,h.endpointBuiltInBaseEntityRefTwo=wT,h.endpointBuiltInCorsProperty=RT,h.endpointBuiltInCorsPropertyDataType=AT,h.endpointBuiltInCorsPropertyDataTypeRef=ET,h.endpointBuiltInCorsPropertyRef=IT,h.endpointBuiltInMethodProperty=Zd,h.endpointBuiltInMethodPropertyDataType=BT,h.endpointBuiltInMethodPropertyDataTypeRef=CT,h.endpointBuiltInMethodPropertyRef=VT,h.endpointBuiltInPathProperty=kd,h.endpointBuiltInPathPropertyDataType=PT,h.endpointBuiltInPathPropertyDataTypeRef=DT,h.endpointBuiltInPathPropertyRef=OT,h.endpointPathParamsArgumentDeclaration=Jd,h.endpointPathParamsArgumentDeclarationRef=xT,h.endpointPathParamsVariableDataType=kT,h.endpointPathParamsVariableDataTypeRef=FT,h.endpointReachedTriggerActionDescriptor=Kd,h.endpointReachedTriggerActionDescriptorRef=ZT,h.endpointReachedTriggerActionDescriptorRefFour=ST,h.endpointReachedTriggerActionDescriptorRefThree=JT,h.endpointReachedTriggerActionDescriptorRefTwo=qT,h.endpointRequestBodyArgumentDeclaration=Wd,h.endpointRequestBodyArgumentDeclarationRef=jT,h.endpointRequestBodyVariableDataType=UT,h.endpointRequestHeadersArgumentDeclaration=qd,h.endpointRequestHeadersArgumentDeclarationRef=NT,h.endpointRequestHeadersVariableDataType=LT,h.endpointRequestHeadersVariableDataTypeRef=MT,h.endpointRequestQueryParamsArgumentDeclaration=Sd,h.endpointRequestQueryParamsArgumentDeclarationRef=gT,h.endpointRequestQueryParamsVariableDataType=GT,h.endpointRequestQueryParamsVariableDataTypeRef=$T,h.endpointResponseBodyDataType=iE,h.endpointResponseBodyReturnDeclaration=Hd,h.endpointResponseBodyReturnDeclarationRef=tE,h.endpointResponseCodeDataType=zT,h.endpointResponseCodeReturnDeclaration=zd,h.endpointResponseCodeReturnDeclarationDefaultValueParentRef=HT,h.endpointResponseCodeReturnDeclarationRef=WT,h.endpointResponseHeadersDataType=QT,h.endpointResponseHeadersDataTypeRef=KT,h.endpointResponseHeadersReturnDeclaration=Yd,h.endpointResponseHeadersReturnDeclarationRef=XT,h.endpointReturnStatementRef=YT,h.endpointReturnStatementRefThree=rE,h.endpointReturnStatementRefTwo=eE,h.enrichFromKnownEntities=Na,h.enumOptionsProperty=mf,h.enumOptionsPropertyDataType=yf,h.enumOptionsPropertyDataTypeRef=cf,h.enumOptionsPropertyRef=ff,h.enumPrototype=nr,h.enumPrototypeRef=hf,h.executionBuiltInBaseEntity=vo,h.executionBuiltInEntityAbortMethod=iu,h.executionBuiltInEntityAbortMethodParentRef=ZE,h.filterOutDuplicateEntities=p,h.filterOutDuplicateErrors=x3,h.findEntityFromKeys=Jc,h.findReferenceToSelfInList=IP,h.findReferencesToSelfInProject=_S,h.flattenActionDescriptor=AP,h.flattenArgumentDeclaration=bP,h.flattenBreakStatement=RP,h.flattenBuiltInBaseEntity=DP,h.flattenCalls=er,h.flattenCanvasAncestorsUntil=ws,h.flattenCondition=OP,h.flattenContinueStatement=PP,h.flattenDataType=CP,h.flattenDefinitionEntity=wP,h.flattenDefinitionEntityExtensionAndImplementationTypes=ef,h.flattenDefinitionEntityExtensionTypes=ja,h.flattenDefinitionEntityExtensions=Xc,h.flattenDefinitionEntityImplementations=Qc,h.flattenDefinitionEntityImplementionTypes=La,h.flattenDerivedCanvasEntities=ui,h.flattenDetachedBranch=nw,h.flattenElementCalls=Je,h.flattenElementCallsOnTheSameScope=BS,h.flattenEntity=j,h.flattenFunctionCall=VP,h.flattenFunctionDeclaration=BP,h.flattenGlobalEvent=_P,h.flattenInputMap=MP,h.flattenInstalledProject=NP,h.flattenInternalCall=LP,h.flattenLiteralValue=jP,h.flattenLoop=UP,h.flattenOperation=$P,h.flattenOutputMap=gP,h.flattenPrimitiveEntity=GP,h.flattenProject=FP,h.flattenProjectElements=EP,h.flattenProperty=xP,h.flattenRelatedCanvasElementsOnTheLeft=QP,h.flattenRelatedCanvasElementsOnTheRight=XP,h.flattenReturnDeclaration=kP,h.flattenReturnStatement=ZP,h.flattenSearch=qP,h.flattenValueDescriptor=JP,h.flattenVariableDeclaration=SP,h.flattenVariableInstance=WP,h.flattenVariableReads=TP,h.flattenVariableWrites=vP,h.flattenVariables=He,h.fromChangeSetToRecordChangeSet=YS,h.fromZodParseToEntityGenerationErrors=Lc,h.functionCallValidation=vS,h.functionDeclarationValidation=NJ,h.generate=FV,h.generateActionExample=uS,h.generateExecutionDataType=TJ,h.generateIdFromStrategy=ht,h.generateMutablePropertiesExplanation=Fl,h.generateRandomBoolean=QI,h.generateRandomDate=BI,h.generateRandomDateAfter=wI,h.generateRandomDateBefore=CI,h.generateRandomDateBetweenRange=VI,h.generateRandomNumber=zI,h.generateRandomNumberAfter=JI,h.generateRandomNumberBefore=SI,h.generateRandomNumberBetweenRange=WI,h.generateRandomText=XI,h.generateRandomTextAfter=YI,h.generateRandomTextBefore=HI,h.generateRandomTextBetweenRange=KI,h.generateUniqueUUID=qI,h.getAllActionDescriptorsForConditions=Wl,h.getAllActionDescriptorsForGlobalEvents=Jl,h.getAllActionDescriptorsForLoops=Sl,h.getAllActionDescriptorsForOperations=yS,h.getAllBuiltInEntityIds=Ui,h.getAllGloballyDeclaredFunctionDeclarationsExplanation=z1,h.getBaseBuiltInEntities=qt,h.getBaseSchemaBasedOnType=F1,h.getBuiltInEntityOwner=an,h.getCallableEntityReferenceSchema=Ct,h.getCallableEntityTypeSchema=BD,h.getCalledBy=Ii,h.getCallerEntityReferenceSchema=JZ,h.getCallerEntityTypeSchema=qZ,h.getCalls=Yc,h.getCanvasEntitiesDerivedFromInternalCalls=KP,h.getCanvasEntitiesDerivedFromWrites=Cs,h.getCanvasEntityDerivedFromValueReadingEntity=ed,h.getCanvasEntityDerivedFromValueReadingEntityFromTransfer=HP,h.getCanvasEntityReferenceSchema=l7,h.getCanvasEntityTypeSchema=o7,h.getChildrenEntityWithValues=DS,h.getColumnProperties=SS,h.getCommonAncestor=zc,h.getCommonChildren=aP,h.getDatabaseEntities=qS,h.getDatabaseEntity=WS,h.getDeclaration=Un,h.getDeepestScope=ow,h.getDraggableCallableEntityReferenceSchema=MD,h.getDraggableCallableEntityTypeSchema=_D,h.getDraggableCallerEntityReferenceSchema=WZ,h.getDraggableCallerEntityTypeSchema=SZ,h.getDraggableExecutableEntityReferenceSchema=KZ,h.getDraggableExecutableEntityTypeSchema=HZ,h.getDraggablePassThroughCallableEntityReferenceSchema=Pl,h.getDraggablePassThroughCallableEntityTypeSchema=Ol,h.getDraggablePlayableEntityReferenceSchema=i7,h.getDraggablePlayableEntityTypeSchema=t7,h.getEntitiesCreatedSinceInitialization=ld,h.getEntityArgumentDeclarations=Kc,h.getEntityInputMaps=zP,h.getEntityOutputMaps=jS,h.getEntityReferenceSchema=a7,h.getEntityReturnDeclarations=YP,h.getEntityTypeSchema=s7,h.getEntityWithLogicScopeReferenceSchema=mr,h.getEntityWithLogicScopeTypeSchema=XZ,h.getEntityWithValueReferenceSchema=VD,h.getEntityWithValueTypeSchema=ZZ,h.getEntryPointEntityReferenceSchema=Ot,h.getEntryPointEntityTypeSchema=Ur,h.getEventEntityReferenceSchema=Rl,h.getEventEntityTypeSchema=bl,h.getExecutableEntityReferenceSchema=YZ,h.getExecutableEntityTypeSchema=zZ,h.getExtendedBuiltInEntity=US,h.getExtendedDefinitionEntity=tw,h.getFirstNonLoopScopeOwner=It,h.getGenerationTargetSchemaBasedOnType=x1,h.getHeadIfPartOfDetachedBranch=rw,h.getHighestScope=aw,h.getImplementedBuiltInEntity=$S,h.getIsInteractive=Ua,h.getLastInListOperation=Dd,h.getLastInListOperationError=Dh,h.getLastInListOperationErrorParentRef=Rh,h.getLastInListOperationInputListArgument=Ih,h.getLastInListOperationInputListArgumentParentRef=Eh,h.getLastInListOperationInputListArgumentRef=hh,h.getLastInListOperationInputListDataType=mh,h.getLastInListOperationOutputElementDataType=Th,h.getLastInListOperationOutputElementReturn=bh,h.getLastInListOperationOutputElementReturnParentRef=Ah,h.getLastInListOperationOutputElementReturnRef=vh,h.getLinkedEntitiesFromArgumentDeclaration=VS,h.getLowestPersistedEntityImplementation=ew,h.getParentCallableEntity=oP,h.getParentCallerEntity=dP,h.getParentCanvasEntities=ti,h.getParentCanvasEntity=Vt,h.getParentCanvasEntityFromTransfer=Kl,h.getParentEntryPoint=RS,h.getParentPassthroughCallableEntity=lP,h.getPassThroughCallableEntityReferenceSchema=rt,h.getPassThroughCallableEntityTypeSchema=Dl,h.getPeristedEntities=ZS,h.getPlayableEntityReferenceSchema=e7,h.getPlayableEntityTypeSchema=QZ,h.getProject=kW,h.getPrototypeByType=$a,h.getRecusriveParentsIds=nd,h.getReferenceEntityId=_,h.getReferencedEntitiesStateOrErrors=kl,h.getReferencedEntityStateOrErrors=jc,h.getReferencedIds=Ql,h.getRelatedCanvasElementsOnTheLeft=$n,h.getRelatedCanvasElementsOnTheLeftFromTransfer=MS,h.getRelatedCanvasElementsOnTheRight=sn,h.getRootEntryPointScopeOwner=nf,h.getScopeOwner=Jt,h.getStateClassFromType=zS,h.getTerminationReferenceSchema=n7,h.getTerminationTypeSchema=r7,h.getTouchedCanvasEntitiesFromChangeSet=HS,h.getUsedArgFromDeclaration=NS,h.getUsedReturnFromDeclaration=LS,h.getValueReadingEntityReferenceSchema=CD,h.getValueReadingEntityTypeSchema=hr,h.getValueWritingEntityReferenceSchema=kZ,h.getValueWritingEntityTypeSchema=Ia,h.getVariableFromInputMapping=pP,h.getVariableFromReturnVariablePointer=yP,h.getVariableReferenceSchema=jr,h.getVariableTypeSchema=Bn,h.getVariablesFromArgumentDeclarations=Xl,h.getVariablesFromInputMaps=cP,h.getVariablesFromOutputMapping=hP,h.getVariablesFromOutputMaps=mP,h.getVariablesFromReturnDeclarations=fP,h.getVariablesInSameOrHigherScope=Ic,h.getWrites=Hc,h.globalEventValidation=gJ,h.groupCallsBasedOnParallelizableExecution=PS,h.handleAfterEntityImplementationSideEffects=tP,h.handleBeforeEntityImplementationSideEffects=eP,h.httpRequestBodyArgument=io,h.httpRequestBodyArgumentRef=a0,h.httpRequestBodyDataType=o0,h.httpRequestHeadersArgument=to,h.httpRequestHeadersArgumentRef=n0,h.httpRequestHeadersDataType=s0,h.httpRequestMethodArgument=Qa,h.httpRequestMethodArgumentRef=i0,h.httpRequestMethodDataType=r0,h.httpRequestMethodDataTypeRef=e0,h.httpRequestOperation=Ms,h.httpRequestOperationErrorValueDescriptor=Md,h.httpRequestOperationErrorValueDescriptorDatatype=P0,h.httpRequestOperationErrorValueDescriptorRef=O0,h.httpRequestOperationRef=A0,h.httpRequestOperationRefEight=R0,h.httpRequestOperationRefFive=E0,h.httpRequestOperationRefFour=T0,h.httpRequestOperationRefNine=D0,h.httpRequestOperationRefSeven=b0,h.httpRequestOperationRefSix=I0,h.httpRequestOperationRefThree=v0,h.httpRequestOperationRefTwo=m0,h.httpRequestQueryParamsArgument=_d,h.httpRequestQueryParamsArgumentRef=Xm,h.httpRequestQueryParamsDataType=Qm,h.httpRequestVariableURLArgument=eo,h.httpRequestVariableURLArgumentRef=Hm,h.httpRequestVariableURLDataType=Km,h.httpRequestVariableURLDataTypeRef=zm,h.httpResponseBodyReturnDataType=h0,h.httpResponseBodyReturnDataTypeRef=f0,h.httpResponseBodyReturnReturn=so,h.httpResponseBodyReturnReturnRef=y0,h.httpResponseCodeDataType=d0,h.httpResponseCodeReturn=ro,h.httpResponseCodeReturnRef=l0,h.httpResponseHeadersDataType=c0,h.httpResponseHeadersDataTypeRef=u0,h.httpResponseHeadersReturn=no,h.httpResponseHeadersReturnRef=p0,h.httpStatusCodeValueValidation=Ew,h.implement=Yl,h.inferArgumentDeclarationDataType=qO,h.inferDataType=ji,h.inferInputMapDataType=vc,h.inferOutputMapDataType=Ec,h.inferPropertyDataType=WO,h.inferReturnDeclarationDataType=Tc,h.inferValueDescriptorDataType=zO,h.inferVariableDeclarationDataType=SO,h.inferVariableInstanceDataType=JO,h.initBaseProjectEntity=od,h.initProject=bw,h.initProjectFromFetchResult=Aw,h.inputMapValidation=YJ,h.installedProjectValidation=WJ,h.internalCallValidation=zJ,h.isPromise=qc,h.iterateOverListActionDescriptorListArgumentDeclaration=av,h.iterateOverListActionDescriptorListArgumentDeclarationDataType=nv,h.iterateOverListActionDescriptorListArgumentDeclarationDataTypeParentRef=rv,h.iterateOverListActionDescriptorListArgumentDeclarationParentRef=sv,h.iterateOverListLoopActionDescriptor=Or,h.iterateOverListLoopActionDescriptorDynamicReturnDeclaration=lv,h.iterateOverListLoopActionDescriptorDynamicReturnDeclarationParentRef=ov,h.iterateOverListLoopBodyActionDescriptor=js,h.iterateOverListLoopBodyActionDescriptorAnyDynamicArgument=vv,h.iterateOverListLoopBodyActionDescriptorAnyDynamicArgumentParentRef=mv,h.iterateOverListLoopBodyActionDescriptorAnyDynamicReturn=Ev,h.iterateOverListLoopBodyActionDescriptorAnyDynamicReturnParentRef=Tv,h.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclaration=uo,h.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=uv,h.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=dv,h.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=pv,h.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclaration=hv,h.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=fv,h.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=cv,h.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=yv,h.iterateOverObjectKeysActionDescriptorObjectArgumentDeclaration=Dv,h.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationDataType=bv,h.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationDataTypeParentRef=Av,h.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationParentRef=Rv,h.iterateOverObjectKeysLoopActionDescriptor=Sn,h.iterateOverObjectKeysLoopActionDescriptorDynamicReturnDeclaration=Pv,h.iterateOverObjectKeysLoopActionDescriptorDynamicReturnDeclarationParentRef=Ov,h.iterateOverObjectKeysLoopBodyActionDescriptor=$d,h.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicArgument=jv,h.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicArgumentParentRef=Lv,h.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicReturn=$v,h.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicReturnParentRef=Uv,h.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclaration=Ud,h.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=Cv,h.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=wv,h.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=Vv,h.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclaration=Nv,h.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=_v,h.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=Bv,h.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=Mv,h.iterateOverObjectValuesActionDescriptorObjectArgumentDeclaration=kv,h.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationDataType=Fv,h.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationDataTypeParentRef=Gv,h.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationParentRef=xv,h.iterateOverObjectValuesLoopActionDescriptor=Wn,h.iterateOverObjectValuesLoopActionDescriptorDynamicReturnDeclaration=qv,h.iterateOverObjectValuesLoopActionDescriptorDynamicReturnDeclarationParentRef=Zv,h.iterateOverObjectValuesLoopBodyActionDescriptor=Gd,h.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicArgument=Qv,h.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicArgumentParentRef=Xv,h.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicReturn=tT,h.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicReturnParentRef=eT,h.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclaration=gd,h.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=Sv,h.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=Jv,h.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=Wv,h.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclaration=Kv,h.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=Yv,h.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=zv,h.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=Hv,h.iterateOverStringActionDescriptorDynamicReturnDeclaration=J0,h.iterateOverStringActionDescriptorDynamicReturnDeclarationParentRef=q0,h.iterateOverStringActionDescriptorStringArgumentDeclaration=Z0,h.iterateOverStringActionDescriptorStringArgumentDeclarationDataType=x0,h.iterateOverStringActionDescriptorStringArgumentDeclarationDataTypeParentRef=F0,h.iterateOverStringActionDescriptorStringArgumentDeclarationParentRef=k0,h.iterateOverStringLoopActionDescriptor=Ls,h.iterateOverStringLoopBodyActionDescriptor=lo,h.iterateOverStringLoopBodyActionDescriptorAnyDynamicArgument=Q0,h.iterateOverStringLoopBodyActionDescriptorAnyDynamicArgumentParentRef=X0,h.iterateOverStringLoopBodyActionDescriptorAnyDynamicReturn=tv,h.iterateOverStringLoopBodyActionDescriptorAnyDynamicReturnParentRef=ev,h.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclaration=Ld,h.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=W0,h.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=S0,h.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=z0,h.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclaration=jd,h.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=H0,h.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=Y0,h.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=K0,h.joinListOperation=Ad,h.joinListOperationError=zy,h.joinListOperationErrorParentRef=Wy,h.joinListOperationFirstListArgument=ky,h.joinListOperationFirstListArgumentParentRef=xy,h.joinListOperationFirstListArgumentRef=jy,h.joinListOperationFirstListDataType=Uy,h.joinListOperationResultListDataType=Fy,h.joinListOperationResultListReturn=Sy,h.joinListOperationResultListReturnParentRef=Jy,h.joinListOperationResultListReturnRef=Gy,h.joinListOperationSecondListArgument=qy,h.joinListOperationSecondListArgumentParentRef=Zy,h.joinListOperationSecondListArgumentRef=$y,h.joinListOperationSecondListDataType=gy,h.joinListWithLastSeparator=se,h.joinStringsOperation=_s,h.joinStringsOperationDynamicStringArgument=yy,h.joinStringsOperationDynamicStringArgumentParentRef=fy,h.joinStringsOperationDynamicStringArgumentRef=py,h.joinStringsOperationDynamicStringDataType=cy,h.joinStringsOperationError=uy,h.joinStringsOperationErrorParentRef=dy,h.joinStringsOperationFirstStringArgument=Ha,h.joinStringsOperationFirstStringArgumentParentRef=ey,h.joinStringsOperationFirstStringArgumentRef=zf,h.joinStringsOperationFirstStringDataType=Yf,h.joinStringsOperationResultStringDataType=Qf,h.joinStringsOperationResultStringReturn=Bs,h.joinStringsOperationResultStringReturnParentRef=ly,h.joinStringsOperationResultStringReturnRef=Xf,h.joinStringsOperationSecondStringArgument=Ka,h.joinStringsOperationSecondStringArgumentParentRef=oy,h.joinStringsOperationSecondStringArgumentRef=Hf,h.joinStringsOperationSecondStringDataType=Kf,h.joinStringsOperationSeparatorStringArgument=ay,h.joinStringsOperationSeparatorStringArgumentParentRef=sy,h.joinStringsOperationSeparatorStringArgumentRef=ty,h.joinStringsOperationSeparatorStringDataType=ny,h.joinStringsOperationSeparatorStringDataTypeDefaultValue=ry,h.joinStringsOperationSeparatorStringDataTypeDefaultValueParentRef=iy,h.keyValuePrototype=Zn,h.literalValudValidation=iS,h.loopValidation=xJ,h.lowercaseFirstLetter=Ll,h.manualFlowActionDescriptorDeclarationArgumentDeclaration=Nd,h.manualFlowActionDescriptorDeclarationArgumentDeclarationDataType=N0,h.manualFlowActionDescriptorDeclarationArgumentDeclarationDataTypeParentRef=M0,h.manualFlowActionDescriptorDeclarationArgumentDeclarationParentRef=L0,h.manualFlowLoopActionDescriptor=ao,h.manualFlowLoopActionDescriptorDynamicReturnDeclaration=_0,h.manualFlowLoopActionDescriptorDynamicReturnDeclarationParentRef=B0,h.manualFlowLoopBodyActionDescriptor=oo,h.manualFlowLoopBodyActionDescriptorAnyDynamicArgument=U0,h.manualFlowLoopBodyActionDescriptorAnyDynamicArgumentParentRef=j0,h.manualFlowLoopBodyActionDescriptorAnyDynamicReturn=g0,h.manualFlowLoopBodyActionDescriptorAnyDynamicReturnParentRef=$0,h.mapActionDescriptorToTypeItRepresents=xS,h.mergeEntityErrorsList=k3,h.mergeListOfEntities=GS,h.methodDefaultValue=t0,h.mockClientProject=up,h.moreThanOrEqualCondition=Xn,h.moreThanOrEqualConditionLeftHandArgument=KE,h.moreThanOrEqualConditionLeftHandArgumentDataType=YE,h.moreThanOrEqualConditionLeftHandArgumentDataTypeParentRef=zE,h.moreThanOrEqualConditionLeftHandArgumentParentRef=HE,h.moreThanOrEqualConditionRightHandArgument=tI,h.moreThanOrEqualConditionRightHandArgumentDataType=QE,h.moreThanOrEqualConditionRightHandArgumentDataTypeParentRef=XE,h.moreThanOrEqualConditionRightHandArgumentParentRef=eI,h.noSpacesOrDashesValueValidation=sP,h.noSpacesValueValidation=nP,h.notEmptyCondition=mn,h.notEmptyConditionArgument=SE,h.notEmptyConditionRef=JE,h.nullPrototype=fd,h.numberAdditionOperation=Ya,h.numberAdditionOperationDynamicSummandArgument=Bf,h.numberAdditionOperationDynamicSummandArgumentType=Vf,h.numberAdditionOperationDynamicSummandArgumentTypeParentRef=Cf,h.numberAdditionOperationError=wf,h.numberAdditionOperationErrorParentRef=Pf,h.numberAdditionOperationFirstNumberArgument=yd,h.numberAdditionOperationFirstNumberArgumentRef=Tf,h.numberAdditionOperationFirstNumberDataType=Ef,h.numberAdditionOperationRef=Df,h.numberAdditionOperationRefThree=md,h.numberAdditionOperationRefTwo=Of,h.numberAdditionOperationResultNumberDataType=Rf,h.numberAdditionOperationResultNumberReturn=vd,h.numberAdditionOperationResultNumberReturnRef=bf,h.numberAdditionOperationSecondNumberArgument=hd,h.numberAdditionOperationSecondNumberArgumentRef=If,h.numberAdditionOperationSecondNumberDataType=Af,h.numberPrototype=ve,h.numberSubtractionOperation=Ed,h.numberSubtractionOperationDynamicSubtrahendArgument=Sf,h.numberSubtractionOperationDynamicSubtrahendArgumentType=Jf,h.numberSubtractionOperationDynamicSubtrahendArgumentTypeParentRef=qf,h.numberSubtractionOperationError=Zf,h.numberSubtractionOperationErrorParentRef=kf,h.numberSubtractionOperationFirstNumberArgument=$f,h.numberSubtractionOperationFirstNumberArgumentRef=_f,h.numberSubtractionOperationFirstNumberDataType=Mf,h.numberSubtractionOperationRef=Td,h.numberSubtractionOperationRefThree=Ff,h.numberSubtractionOperationRefTwo=gf,h.numberSubtractionOperationResultNumberDataType=Uf,h.numberSubtractionOperationResultNumberReturn=xf,h.numberSubtractionOperationResultNumberReturnRef=jf,h.numberSubtractionOperationSecondNumberArgument=Gf,h.numberSubtractionOperationSecondNumberArgumentRef=Nf,h.numberSubtractionOperationSecondNumberDataType=Lf,h.numberValueAutogenerationSchema=yp,h.operationValidation=$J,h.outputMapValidation=XJ,h.parallelExecutionOperation=Vi,h.parallelExecutionOperationError=Qh,h.parallelExecutionOperationErrorParentRef=Xh,h.parallelExecutionOperationListOfExecutionResultsDataType=Yh,h.parallelExecutionOperationListOfExecutionResultsReturn=Cd,h.parallelExecutionOperationListOfExecutionResultsReturnRef=zh,h.parallelExecutionOperationListOfFunctionsArgument=wd,h.parallelExecutionOperationListOfFunctionsArgumentDatatype=Wh,h.parallelExecutionOperationListOfFunctionsArgumentRef=Sh,h.parallelExecutionOperationListOfFunctionsBlueprint=Jh,h.parallelExecutionOperationListOfFunctionsBlueprintDynamicInput=Zh,h.parallelExecutionOperationListOfFunctionsBlueprintDynamicInputParentRef=kh,h.parallelExecutionOperationListOfFunctionsBlueprintDynamicOutput=xh,h.parallelExecutionOperationListOfFunctionsBlueprintDynamicOutputParentRef=Fh,h.parallelExecutionOperationListOfFunctionsBlueprintParentRef=qh,h.parallelExecutionOperationRef=Hh,h.parallelExecutionOperationRefThree=Kh,h.persistedBuiltInBaseEntity=_t,h.persistedBuiltInBaseEntityDatabaseProperty=Yn,h.persistedBuiltInBaseEntityDatabasePropertyDataType=PE,h.persistedBuiltInBaseEntityDatabasePropertyDataTypeRef=Nw,h.persistedBuiltInBaseEntityDatabasePropertyParentRef=wE,h.persistedBuiltInBaseEntityDatabasePropertyRef=OE,h.persistedBuiltInBaseEntityPrimaryKeyProperty=Hn,h.persistedBuiltInBaseEntityPrimaryKeyPropertyDataType=jE,h.persistedBuiltInBaseEntityPrimaryKeyPropertyNumberDataTypeOption=VE,h.persistedBuiltInBaseEntityPrimaryKeyPropertyNumberDataTypeOptionParentRef=CE,h.persistedBuiltInBaseEntityPrimaryKeyPropertyParentRef=UE,h.persistedBuiltInBaseEntityPrimaryKeyPropertyRef=LE,h.persistedBuiltInBaseEntityPrimaryKeyPropertyStringDataTypeOption=_E,h.persistedBuiltInBaseEntityPrimaryKeyPropertyStringDataTypeOptionParentRef=BE,h.persistedBuiltInBaseEntityPrimaryKeyPropertyUUIDDataTypeOption=NE,h.persistedBuiltInBaseEntityPrimaryKeyPropertyUUIDDataTypeOptionParentRef=ME,h.processOutputGlobalValueDescriptorDataType=lI,h.processOutputGlobalValueDescriptorReturn=Eo,h.processOutputGlobalValueDescriptorReturnRef=oI,h.projectPublicationCompletedGlobalEvent=To,h.propertyToZodSchema=OI,h.propertyValidation=OJ,h.relationalDatabaseBuiltInBaseEntity=Dt,h.relationalDatabaseBuiltInBaseEntityAutoscalingProperty=Qd,h.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyDataType=AE,h.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyDataTypeRef=IE,h.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyParentRef=bE,h.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyRef=EE,h.relationalDatabaseBuiltInBaseEntityDefaultProperty=Xd,h.relationalDatabaseBuiltInBaseEntityDefaultPropertyDataType=TE,h.relationalDatabaseBuiltInBaseEntityDefaultPropertyDataTypeRef=mE,h.relationalDatabaseBuiltInBaseEntityDefaultPropertyRef=vE,h.relationalDatabaseBuiltInBaseEntityIdentifierProperty=co,h.relationalDatabaseBuiltInBaseEntityIdentifierPropertyDataType=oE,h.relationalDatabaseBuiltInBaseEntityIdentifierPropertyDataTypeRef=sE,h.relationalDatabaseBuiltInBaseEntityIdentifierPropertyRef=aE,h.relationalDatabaseBuiltInBaseEntityMinSizeProperty=ho,h.relationalDatabaseBuiltInBaseEntityMinSizePropertyDataType=hE,h.relationalDatabaseBuiltInBaseEntityMinSizePropertyDataTypeRef=fE,h.relationalDatabaseBuiltInBaseEntityMinSizePropertyRef=yE,h.relationalDatabaseBuiltInBaseEntityPasswordProperty=yo,h.relationalDatabaseBuiltInBaseEntityPasswordPropertyDataType=pE,h.relationalDatabaseBuiltInBaseEntityPasswordPropertyDataTypeRef=Mw,h.relationalDatabaseBuiltInBaseEntityPasswordPropertyDefaultValueParentRef=cE,h.relationalDatabaseBuiltInBaseEntityPasswordPropertyRef=uE,h.relationalDatabaseBuiltInBaseEntityRef=zn,h.relationalDatabaseBuiltInBaseEntityUsernameProperty=fo,h.relationalDatabaseBuiltInBaseEntityUsernamePropertyDataType=dE,h.relationalDatabaseBuiltInBaseEntityUsernamePropertyDataTypeRef=_w,h.relationalDatabaseBuiltInBaseEntityUsernamePropertyRef=lE,h.resolveActionDescriptorName=e1,h.resolveBaseEntityName=HO,h.resolveBuiltInBaseEntityDataTypeLabel=KO,h.resolveClonedEntityProject=mt,h.resolveConditionOperatorLabel=gl,h.resolveDataType=jl,h.resolveDataTypeEntityOrNestedChildrenFromLiteralValue=Sc,h.resolveDataTypeLabel=$l,h.resolveDefinitionEntityDataTypeLabel=RJ,h.resolveEntityDataTypeLabel=bJ,h.resolveEntityName=x,h.resolveFirstCallsSecond=wS,h.resolveFirstWritesSecond=CS,h.resolvePrimaryKeyProperty=JS,h.resolvePrimitiveEntityName=QO,h.resolveSearchName=XO,h.resolveVariableScope=EJ,h.returnDeclarationValidation=CJ,h.returnStatementValidation=VJ,h.searchValidation=SJ,h.sequentialExecutionOperation=or,h.sequentialExecutionOperationError=Em,h.sequentialExecutionOperationErrorParentRef=Tm,h.sequentialExecutionOperationListOfExecutionResultsDataType=hm,h.sequentialExecutionOperationListOfExecutionResultsReturn=Bd,h.sequentialExecutionOperationListOfExecutionResultsReturnParentRef=vm,h.sequentialExecutionOperationListOfExecutionResultsReturnRef=ym,h.sequentialExecutionOperationListOfFunctionsArgument=Vd,h.sequentialExecutionOperationListOfFunctionsArgumentDatatype=fm,h.sequentialExecutionOperationListOfFunctionsArgumentParentRef=mm,h.sequentialExecutionOperationListOfFunctionsArgumentRef=cm,h.sequentialExecutionOperationListOfFunctionsBlueprint=pm,h.sequentialExecutionOperationListOfFunctionsBlueprintDynamicInput=um,h.sequentialExecutionOperationListOfFunctionsBlueprintDynamicOutput=dm,h.softDeletePersistedEntityMethod=Lw,h.softDeletePersistedEntityMethodParentRef=$E,h.sortCallsBasedOnExecutionDependencies=uP,h.sortChildrenEntitiesBasedOnExecutionDependencies=OS,h.splitListOperation=Rd,h.splitListOperationError=ch,h.splitListOperationErrorParentRef=ph,h.splitListOperationFirstOutputListDataType=th,h.splitListOperationFirstOutputListReturn=oh,h.splitListOperationFirstOutputListReturnParentRef=ah,h.splitListOperationFirstOutputListReturnRef=bd,h.splitListOperationInputListArgument=rh,h.splitListOperationInputListArgumentParentRef=ih,h.splitListOperationInputListArgumentRef=Ky,h.splitListOperationInputListDataType=Xy,h.splitListOperationSecondOutputListDataType=lh,h.splitListOperationSecondOutputListReturn=uh,h.splitListOperationSecondOutputListReturnParentRef=dh,h.splitListOperationSplitIndexArgument=sh,h.splitListOperationSplitIndexArgumentParentRef=nh,h.splitListOperationSplitIndexArgumentRef=Qy,h.splitListOperationSplitIndexDataType=eh,h.splitStringOperation=Id,h.splitStringOperationError=_y,h.splitStringOperationErrorParentRef=By,h.splitStringOperationFirstPartResultStringDataType=Iy,h.splitStringOperationFirstPartResultStringReturn=Vy,h.splitStringOperationFirstPartResultStringReturnParentRef=Cy,h.splitStringOperationFirstPartResultStringReturnRef=Ey,h.splitStringOperationIndexArgument=Py,h.splitStringOperationIndexArgumentParentRef=Oy,h.splitStringOperationIndexArgumentRef=vy,h.splitStringOperationIndexDataType=Ty,h.splitStringOperationSecondPartResultStringDataType=by,h.splitStringOperationSecondPartResultStringReturn=Vw,h.splitStringOperationSecondPartResultStringReturnParentRef=wy,h.splitStringOperationSecondPartResultStringReturnRef=Ay,h.splitStringOperationStringArgument=Dy,h.splitStringOperationStringArgumentParentRef=Ry,h.splitStringOperationStringArgumentRef=hy,h.splitStringOperationStringDataType=my,h.stringPrototype=ae,h.stringValueAutogenerationSchema=fp,h.suggestNewIdForEntity=wc,h.test_primitive_entities_export=MW,h.toCamelCase=IJ,h.toEntityState=Ai,h.toKebabCase=YO,h.toLowerCaseKebabCase=Ul,h.toPascalCase=AJ,h.untypedDataPrototype=wt,h.updateErrorsList=Ke,h.urlDefaultValue=Ym,h.uuidPrototype=sr,h.validateArgumentDeclarationName=Oc,h.validateCalledByErrorIdInAction=cS,h.validateCalledByIdInAction=pS,h.validateCallers=W1,h.validateConditionEntityDeclaration=hS,h.validateDataOperation=pn,h.validateDataOperationDataToValidateArgument=gm,h.validateDataOperationDataToValidateArgumentParentRef=$m,h.validateDataOperationDataToValidateArgumentRef=jm,h.validateDataOperationDataToValidateDataType=Um,h.validateDataOperationEntityToMatchTypeArgument=km,h.validateDataOperationEntityToMatchTypeArgumentParentRef=xm,h.validateDataOperationEntityToMatchTypeArgumentRef=Gm,h.validateDataOperationEntityToMatchTypeDataType=Fm,h.validateDataOperationError=Sm,h.validateDataOperationErrorParentRef=Jm,h.validateDataOperationOutputEntityDeclaration=qm,h.validateDataOperationOutputEntityDeclarationParentRef=Zm,h.validateDefinitionEntityName=Ac,h.validateEntryCaller=S1,h.validateErrorCaller=J1,h.validateFunctionCallDeclaration=Y1,h.validateFunctionDeclarationName=bc,h.validateGeneratedEntityParentIsNotBuiltInEntity=oS,h.validateGeneration=sS,h.validateGenerationTarget=pt,h.validateGenerationUpdate=aS,h.validateLoopEntityDeclaration=mS,h.validateName=DJ,h.validateOperationEntityDeclaration=H1,h.validatePropertyName=Dc,h.validateReachability=Ar,h.validateReadsValueInActionPayload=fS,h.validateReferenceObject=xl,h.validateReferenceToOne=Uc,h.validateReferences=bt,h.validateReturnDeclarationName=Pc,h.validateSuccessCaller=q1,h.validateValueReaderGenerationUpdate=_a,h.validateValueWritter=kc,h.validateVariableDeclarationName=Rc,h.validateVariableInternalCallUse=Zc,h.valueAutogenerationCurrentDateAndTimeSchema=oD,h.valueAutogenerationGenericSchema=ol,h.valueAutogenerationOptions=mp,h.valueAutogenerationOptionsSchema=aD,h.valueAutogenerationRandomBooleanSchema=cp,h.valueAutogenerationRandomDateBetweenSchema=mD,h.valueAutogenerationRandomDateFromSchema=yD,h.valueAutogenerationRandomDateSchema=ul,h.valueAutogenerationRandomDateUntilSchema=hD,h.valueAutogenerationRandomNumberBetweenSchema=uD,h.valueAutogenerationRandomNumberFromSchema=lD,h.valueAutogenerationRandomNumberSchema=ll,h.valueAutogenerationRandomNumberUntilSchema=dD,h.valueAutogenerationRandomSchema=fa,h.valueAutogenerationRandomTextBetweenSchema=fD,h.valueAutogenerationRandomTextFromSchema=pD,h.valueAutogenerationRandomTextSchema=dl,h.valueAutogenerationRandomTextUntilSchema=cD,h.valueAutogenerationRangeValueTypesSchema=ca,h.valueAutogenerationUniqueSchema=pp,h.valueDescriptorValidation=nS,h.variableDeclarationValidation=qJ,h.variableInstanceValidation=JJ,h.waitOperation=Wt,h.waitOperationMillisecondsNumberArgument=dn,h.waitOperationMillisecondsNumberArgumentRef=im,h.waitOperationMillisecondsNumberDataType=rm,h.waitOperationOperationError=am,h.waitOperationOperationErrorParentRef=sm,h.waitOperationRef=nm,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});
|