@elyx-code/project-logic-tree 0.0.6128 → 0.0.6130
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/definitions/types/event.d.ts +4 -0
- package/dist/index.js +21 -6
- package/dist/index.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(d,i){typeof exports=="object"&&typeof module<"u"?i(exports):typeof define=="function"&&define.amd?define(["exports"],i):(d=typeof globalThis<"u"?globalThis:d||self,i(d["@elyx-code/project-logic-tree"]={}))})(this,function(d){"use strict";var AJ=Object.defineProperty;var SJ=(d,i,U)=>i in d?AJ(d,i,{enumerable:!0,configurable:!0,writable:!0,value:U}):d[i]=U;var c=(d,i,U)=>(SJ(d,typeof i!="symbol"?i+"":i,U),U);var i=(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))(i||{}),U=(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))(U||{}),ze=(r=>(r.CurrentDateAndTime="current-date-and-time",r.Unique="unique",r.Random="random",r))(ze||{}),C=(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))(C||{}),Ge=(r=>(r.Addition="addition",r.Subtraction="subtraction",r.Multiplication="multiplication",r.Division="division",r.Remainder="remainder",r.Exponentiation="exponentiation",r))(Ge||{}),re=(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))(re||{}),X=(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))(X||{}),Ve=(r=>(r.Parallel="parallel",r.Sequential="sequential",r.Wait="wait",r))(Ve||{}),Ne=(r=>(r.CreateNewInstance="create-new-instance",r.Validate="validate",r))(Ne||{}),dt=(r=>(r.HttpRequest="base-http-request",r))(dt||{}),qe=(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))(qe||{}),Jt=(r=>(r.Empty="empty",r.NotEmpty="not-empty",r))(Jt||{}),k=(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))(k||{}),P=(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))(P||{}),et=(r=>(r.OrDataTypeGroup="or-data-type-group",r.AndDataTypeGroup="and-data-type-group",r))(et||{}),Dn=(r=>(r.PROJECT_PUBLICATION_COMPLETED="GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED",r))(Dn||{}),Gt=(r=>(r.DeletePersistedEntity="base-delete-persisted-entity",r.SoftDeletePersistedEntity="base-soft-delete-persisted-entity",r.AbortExecution="base-abort-execution",r))(Gt||{}),ri=(r=>(r.Error="error",r.Task="task",r.Return="return",r))(ri||{});const An=[i.VariableDeclaration,i.VariableInstance,i.InputMap,i.ReturnDeclaration],Ze=[i.VariableDeclaration,i.VariableInstance,i.ArgumentDeclaration,i.OutputMap],hp=[...An,...Ze],Fe=[i.VariableDeclaration,i.VariableInstance],fp=[i.FunctionDeclaration,i.Condition,i.Loop,i.Operation,i.FunctionCall,i.Search,i.InternalCall,i.GlobalEvent,i.DefinitionEntity,i.ReturnStatement,i.BreakStatement,i.ContinueStatement,i.VariableDeclaration,i.VariableInstance,i.LiteralValue,i.ActionDescriptor,i.ValueDescriptor,i.Property,i.DataType,i.InstalledProject,i.ArgumentDeclaration,i.InputMap,i.OutputMap,i.ReturnDeclaration],mp=[i.FunctionDeclaration,i.Property,i.ArgumentDeclaration,i.ReturnDeclaration],gl=[i.FunctionCall,i.VariableInstance,i.InputMap,i.OutputMap,i.InternalCall],FO=[...gl,i.Condition,i.Loop,i.Operation,i.Condition],ii=[i.GlobalEvent],Je=[i.Operation,i.FunctionCall,i.Condition,i.Search,i.VariableDeclaration,i.VariableInstance,i.InternalCall,i.Loop],bl=[i.Operation,i.FunctionCall,i.Condition,i.Search,i.VariableDeclaration,i.VariableInstance,i.Loop],We=[i.FunctionDeclaration,...ii],Xt=[...Je,i.ReturnStatement,i.BreakStatement,i.ContinueStatement],vl=[...bl,i.ReturnStatement,i.BreakStatement,i.ContinueStatement],on=[...Je,...We],Tp=[...bl,...We],UO=[...Xt,...We],xO=[...vl,...We],pt=[...We,i.Loop],xe=[i.ReturnStatement,i.BreakStatement,i.ContinueStatement],jO=[i.DefinitionEntity,i.BuiltInBaseEntity,i.Project,i.InstalledProject,i.GlobalEvent,i.DataType,i.FunctionCall,i.FunctionDeclaration,i.ActionDescriptor,i.ValueDescriptor,i.ArgumentDeclaration,i.InputMap,i.ReturnStatement,i.BreakStatement,i.ContinueStatement,i.ReturnDeclaration,i.OutputMap,i.PrimitiveEntity,i.LiteralValue,i.Property,i.Operation,i.Condition,i.VariableDeclaration,i.VariableInstance,i.Search,i.Loop,i.InternalCall],ss=[i.DefinitionEntity,i.GlobalEvent,i.FunctionDeclaration,i.FunctionCall,i.VariableDeclaration,i.VariableInstance,i.Operation,i.Condition,i.ReturnStatement,i.BreakStatement,i.ContinueStatement,i.InstalledProject,i.Loop,i.Search],Ep=[i.DefinitionEntity,i.FunctionDeclaration,i.ArgumentDeclaration,i.ReturnDeclaration,i.Property,i.VariableDeclaration,i.Search,i.Project,i.InstalledProject,i.ActionDescriptor,i.ValueDescriptor],Jn=[i.BuiltInBaseEntity,i.PrimitiveEntity],Rp=[i.DefinitionEntity,i.FunctionDeclaration,i.ArgumentDeclaration,i.ReturnDeclaration,i.Property,i.VariableDeclaration,i.GlobalEvent,i.Search,i.Project,i.InstalledProject,i.ActionDescriptor,i.ValueDescriptor,i.InputMap,i.OutputMap,i.FunctionCall,i.Operation,i.Condition,i.ReturnStatement,i.BreakStatement,i.ContinueStatement,i.VariableInstance,i.LiteralValue,i.InternalCall];var os=(r=>(r.ActionOngoingProcessOutputValue="action-ongoing-process-output-value-descriptor-id",r))(os||{});const _={[i.PrimitiveEntity]:{[C.String]:{id:"8b5fbe15-4c2b-48c0-9fd8-e5efbe3978dc",properties:{}},[C.Boolean]:{id:"f596545d-1565-4faa-9969-d95fa5edfea4",properties:{}},[C.Number]:{id:"ecb84c29-6153-4b82-86a5-fce2b5f92002",properties:{}},[C.KeyValue]:{id:"b6f3c3c4-9c3d-4f9d-9e9e-1c0f6a3c8c6b",properties:{}},[C.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"}}}}},[C.UUID]:{id:"4a6234aa-c0f6-4731-b4dd-750388029226",properties:{}},[C.Date]:{id:"dc58f38b-d574-4956-aac6-32ce9529b937",properties:{}},[C.Null]:{id:"7d698f34-5a89-4aab-846b-07ef3843b8c4",properties:{}},[C.Untyped]:{id:"4044a018-818e-49d7-bf9a-c3dd1fff2102",properties:{}}},[i.ValueDescriptor]:{"action-ongoing-process-output-value-descriptor-id":{id:"action-ongoing-process-output-value-descriptor-id",dataType:{id:"process-output-value-data-type-id"}}},[i.BuiltInBaseEntity]:{[U.KEY_VALUE_PARAM]:{id:U.KEY_VALUE_PARAM},[U.HTTP_ENDPOINT]:{id:U.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"}}},[U.PERSISTED_ENTITY]:{id:U.PERSISTED_ENTITY,properties:{database:{id:"persisted-built-in-base-entity-database-property-id"},primaryKey:{id:"persisted-built-in-base-entity-primary-key-property-id"}}},[U.RELATIONAL_DATABASE]:{id:U.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"}}},[U.CRON_JOB]:{id:U.CRON_JOB,properties:{expression:{id:"cron-job-built-in-base-entity-expression-property-id"}}}},[i.Operation]:{[re.Join]:{id:re.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"}}},[re.Split]:{id:re.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"}}},[Ge.Addition]:{id:Ge.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"}}},[Ge.Subtraction]:{id:Ge.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"}}},[dt.HttpRequest]:{id:dt.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"}}},[Ne.Validate]:{id:Ne.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"}}},[Ve.Parallel]:{id:Ve.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"}}}},[i.Loop]:{[k.List]:{id:k.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"}}}},[k.String]:{id:k.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"}}}},[k.ObjectKeys]:{id:k.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"}}}},[k.ObjectValues]:{id:k.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"}}}},[k.ManualFlow]:{id:k.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"}}}},[k.Counted]:{id:k.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"}}}}},[i.Condition]:{[qe.MoreThanOrEqual]:{id:qe.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"}}}},[Jt.NotEmpty]:{id:Jt.NotEmpty,inputs:{leftHand:{id:"condition-not-empty-input-id"}}}},[i.GlobalEvent]:{[Dn.PROJECT_PUBLICATION_COMPLETED]:{id:Dn.PROJECT_PUBLICATION_COMPLETED}}},$t=_[i.PrimitiveEntity],J={type:i.PrimitiveEntity,id:$t.string.id,description:"A string of characters.",version:1,name:C.String,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Sn={type:i.PrimitiveEntity,id:$t.boolean.id,description:"A 'true' or 'false' value.",version:1,name:C.Boolean,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},ee={type:i.PrimitiveEntity,id:$t.number.id,description:"A number value.",version:1,name:C.Number,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},gp={type:i.PrimitiveEntity,id:$t.null.id,description:"An explicitly empty value.",version:1,name:C.Null,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},it={type:i.PrimitiveEntity,id:$t.untyped.id,description:"Data of any type that isn't known in advance.",version:1,name:C.Untyped,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},bp={id:"c2f52f01-8f2e-490e-8083-72289c8189c1",type:i.GenericReference,entityId:$t.enum.properties.options.id,entityType:i.Property},vp={id:"4e803941-2e6a-4227-b803-b8877c0d7fee",type:i.GenericReference,entityId:"00ccfcae-2104-45ef-bf6c-50ddccd74286",entityType:i.Property},Ip={like:!1,inferred:!1,id:$t.enum.properties.options.dataType.id,version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:J,asType:!1,parent:vp},Dp={id:"a2983c4c-0286-4ef1-8b5c-5a52904d3200",type:i.GenericReference,entityId:"9542b8b4-2642-4eee-9db9-def7963a17a0",entityType:i.PrimitiveEntity},Ap={constant:!1,hidden:!1,required:!0,id:$t.enum.properties.options.id,name:"Options",version:1,type:i.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:$t.enum.properties.options.dataType.defaultValue.id,type:i.LiteralValue,version:1,name:C.KeyValue,autogeneration:null,value:[],valueAsType:null,parent:bp},dataType:Ip,description:"Options for the enum. Each option is a text value.",parent:Dp},On={type:i.PrimitiveEntity,id:$t.enum.id,description:"A set of text options to choose from.",version:1,name:C.Enum,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[Ap],methods:[]},ln={type:i.PrimitiveEntity,id:$t.date.id,description:"A date and time value.",version:1,name:C.Date,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Pn={type:i.PrimitiveEntity,id:$t.uuid.id,description:"A unique identifier in the form of a 36-character string.",version:1,name:C.UUID,static:!1,abstract:!1,abstractMethods:[],extends:[J],properties:[],methods:[]},ai={type:i.PrimitiveEntity,id:$t[C.KeyValue].id,description:"A complex data structure with any combination of properties with names and values.",version:1,name:C.KeyValue,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Sp=[J,Sn,ee,gp,it,On,ln,Pn,ai],dn=_[i.Operation][Ge.Addition],Op={type:i.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:dn.inputs.firstSummand.id,entityType:i.ValueDescriptor},Pp={like:!1,inferred:!1,id:"number-addition-first-number-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,isList:!1,asType:!1,parent:Op},Cp={type:i.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:dn.inputs.secondSummand.id,entityType:i.ValueDescriptor},wp={like:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!1,parent:Cp},Bp={type:i.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:dn.outputs.result.id,entityType:i.ValueDescriptor},Mp={like:!1,inferred:!1,id:dn.outputs.result.dataType.id,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!1,parent:Bp},_p={type:i.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:Ge.Addition,entityType:i.ActionDescriptor},Il={id:dn.inputs.firstSummand.id,type:i.ValueDescriptor,version:1,name:"Summand",description:"The first number to add",defaultValue:null,dataType:Pp,required:!0,parentRelationType:P.FixedArguments,index:0,parent:_p},Vp={type:i.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:Ge.Addition,entityType:i.ActionDescriptor},Dl={id:dn.inputs.secondSummand.id,type:i.ValueDescriptor,description:"The second number to add",version:1,name:"Summand",defaultValue:null,dataType:wp,required:!0,parentRelationType:P.FixedArguments,index:1,parent:Vp},Al={type:i.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:Ge.Addition,entityType:i.ActionDescriptor},Sl={parentRelationType:P.FixedReturns,id:dn.outputs.result.id,type:i.ValueDescriptor,description:"The result number of the addition",version:1,name:"Result",defaultValue:null,dataType:Mp,required:!0,index:0,parent:Al},Np={type:i.GenericReference,id:"number-addition-operation-error-parent-ref",entityId:Ge.Addition,entityType:i.ActionDescriptor},Lp={parentRelationType:P.FixedReturns,id:dn.outputs.error.id,type:i.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Np},Gp={type:i.GenericReference,id:"number-addition-operation-dynamic-summand-argument-type-parent-ref",entityId:dn.inputs.dynamicSummand.id,entityType:i.ValueDescriptor},$p={like:!1,inferred:!1,id:"number-addition-operation-dynamic-summand-argument-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!1,parent:Gp},Fp={parentRelationType:P.DynamicArgument,id:dn.inputs.dynamicSummand.id,type:i.ValueDescriptor,description:"A number to add",version:1,name:"Summand",defaultValue:null,dataType:$p,required:!0,index:2,parent:Al},ls={id:Ge.Addition,type:i.ActionDescriptor,description:"Sum numbers",version:1,name:Ge.Addition,inputs:[Il,Dl,Fp],error:Lp,outputs:[Sl],parent:null},cn=_[i.Operation][Ge.Subtraction],Up={type:i.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:cn.inputs.minuend.id,entityType:i.ValueDescriptor},xp={like:!1,inferred:!1,id:"number-subtraction-first-number-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,isList:!1,asType:!1,parent:Up},jp={type:i.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:cn.inputs.subtrahend.id,entityType:i.ValueDescriptor},kp={like:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!1,parent:jp},qp={type:i.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:cn.outputs.result.id,entityType:i.ValueDescriptor},Jp={like:!1,inferred:!1,id:cn.outputs.result.dataType.id,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!1,parent:qp},Ol={type:i.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:Ge.Subtraction,entityType:i.ActionDescriptor},Wp={id:cn.inputs.minuend.id,type:i.ValueDescriptor,version:1,name:"Minuend",description:"Base number to substract from",defaultValue:null,dataType:xp,required:!0,parentRelationType:P.FixedArguments,index:0,parent:Ol},Yp={type:i.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:Ge.Subtraction,entityType:i.ActionDescriptor},Hp={id:cn.inputs.subtrahend.id,type:i.ValueDescriptor,description:"The second number to substract",version:1,name:"Subtrahend",defaultValue:null,dataType:kp,required:!0,parentRelationType:P.FixedArguments,index:1,parent:Yp},zp={type:i.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:Ge.Subtraction,entityType:i.ActionDescriptor},Zp={parentRelationType:P.FixedReturns,id:cn.outputs.result.id,type:i.ValueDescriptor,description:"The result number of the subtraction",version:1,name:"Result",defaultValue:null,dataType:Jp,required:!0,index:0,parent:zp},Kp={type:i.GenericReference,id:"number-subtraction-operation-error-parent-ref",entityId:Ge.Subtraction,entityType:i.ActionDescriptor},Xp={parentRelationType:P.FixedReturns,id:cn.outputs.error.id,type:i.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Kp},Qp={type:i.GenericReference,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-parent-ref",entityId:cn.inputs.dynamicSubtrahend.id,entityType:i.ValueDescriptor},ey={like:!1,inferred:!1,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!1,parent:Qp},ty={id:cn.inputs.dynamicSubtrahend.id,type:i.ValueDescriptor,version:1,name:"Subtrahend",description:"A number to substract",defaultValue:null,dataType:ey,required:!0,parentRelationType:P.DynamicArgument,index:2,parent:Ol},Pl={id:Ge.Subtraction,type:i.ActionDescriptor,description:"Substract numbers",version:1,name:Ge.Subtraction,inputs:[Wp,Hp,ty],error:Xp,outputs:[Zp],parent:null},ny={[Ge.Addition]:ls,[Ge.Subtraction]:Pl},Wt=_[i.Operation][re.Join],ry={type:i.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:Wt.inputs.first.id,entityType:i.ValueDescriptor},iy={like:!1,inferred:!1,id:"join-strings-first-string-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:ry},ay={type:i.GenericReference,id:"join-strings-second-string-argument-declaration",entityId:Wt.inputs.second.id,entityType:i.ValueDescriptor},sy={like:!1,inferred:!1,id:"join-strings-second-string-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:ay},oy={type:i.GenericReference,id:"join-strings-result-string-return-delaration",entityId:Wt.outputs.result.id,entityType:i.ValueDescriptor},ly={like:!1,inferred:!1,id:"join-strings-result-string-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:oy},dy={type:i.GenericReference,id:"join-strings-operation-first-string-argument-parent-ref",entityId:re.Join,entityType:i.ActionDescriptor},ds={id:Wt.inputs.first.id,type:i.ValueDescriptor,version: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:iy,parentRelationType:P.FixedArguments,required:!0,index:1,parent:dy},cy={type:i.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:Wt.inputs.first.id,entityType:i.ValueDescriptor},uy={type:i.GenericReference,id:"join-strings-separator-string-data-type-default-value-parent-ref",entityId:Wt.inputs.separator.id,entityType:i.ValueDescriptor},py={type:i.LiteralValue,id:"join-strings-separator-string-data-type-default-value-id",version:1,name:C.String,value:"",valueAsType:null,autogeneration:null,parent:uy},yy={like:!1,inferred:!1,id:"join-strings-separator-string-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:cy},hy={type:i.GenericReference,id:"join-strings-operation-separator-string-argument-parent-ref",entityId:re.Join,entityType:i.ActionDescriptor},fy={id:Wt.inputs.separator.id,type:i.ValueDescriptor,version:1,name:"Separator",description:"The text value that will be inserted between each of the values that are joined.",defaultValue:py,dataType:yy,parentRelationType:P.FixedArguments,required:!1,index:0,parent:hy},my={type:i.GenericReference,id:"join-strings-operation-second-string-argument-parent-ref",entityId:re.Join,entityType:i.ActionDescriptor},cs={id:Wt.inputs.second.id,type:i.ValueDescriptor,version: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:sy,parentRelationType:P.FixedArguments,required:!0,index:2,parent:my},Ty={type:i.GenericReference,id:"join-strings-operation-result-string-return-parent-ref",entityId:re.Join,entityType:i.ActionDescriptor},Zi={parentRelationType:P.FixedReturns,id:Wt.outputs.result.id,type:i.ValueDescriptor,version:1,name:"Result",description:"The resulting text value.",defaultValue:null,dataType:ly,required:!0,index:0,parent:Ty},Ey={type:i.GenericReference,id:"join-strings-operation-error-parent-ref",entityId:re.Join,entityType:i.ActionDescriptor},Ry={parentRelationType:P.FixedReturns,id:Wt.outputs.error.id,type:i.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Ey},gy={type:i.GenericReference,id:"join-strings-dynamic-string-argument-declaration",entityId:Wt.inputs.dynamicString.id,entityType:i.ValueDescriptor},by={like:!1,inferred:!1,id:"join-strings-dynamic-string-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:gy},vy={type:i.GenericReference,id:"join-strings-operation-dynamic-string-argument-parent-ref",entityId:re.Join,entityType:i.ActionDescriptor},Iy={id:Wt.inputs.dynamicString.id,type:i.ValueDescriptor,version: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:by,parentRelationType:P.DynamicArgument,required:!0,index:3,parent:vy},Ki={id:re.Join,type:i.ActionDescriptor,version:1,name:re.Join,description:"Join text values together, to form a single resulting text value.",inputs:[fy,ds,cs,Iy],outputs:[Zi],error:Ry,parent:null},Cn=_[i.Operation][re.Split],Dy={type:i.GenericReference,id:"split-string-string-argument-declaration",entityId:Cn.inputs.stringValue.id,entityType:i.ValueDescriptor},Ay={like:!1,inferred:!1,id:"split-string-string-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:Dy},Sy={type:i.GenericReference,id:"split-string-index-argument-declaration",entityId:Cn.inputs.indexLocation.id,entityType:i.ValueDescriptor},Oy={like:!1,inferred:!1,id:"split-string-index-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!1,parent:Sy},Py={type:i.GenericReference,id:"split-string-first-part-result-string-return-delaration",entityId:Cn.outputs.firstPartResult.id,entityType:i.ValueDescriptor},Cy={like:!1,inferred:!1,id:"split-string-first-part-result-string-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:Py},wy={type:i.GenericReference,id:"split-string-second-part-result-string-return-delaration",entityId:Cn.outputs.secondPartResult.id,entityType:i.ValueDescriptor},By={like:!1,inferred:!1,id:"split-string-second-part-result-string-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:wy},My={type:i.GenericReference,id:"split-string-operation-string-argument-parent-ref",entityId:re.Join,entityType:i.ActionDescriptor},_y={id:Cn.inputs.stringValue.id,type:i.ValueDescriptor,version:1,name:"Text value",description:"The text value that will be split into two at the given index location.",defaultValue:null,dataType:Ay,parentRelationType:P.FixedArguments,required:!0,index:0,parent:My},Vy={type:i.GenericReference,id:"split-string-operation-index-argument-parent-ref",entityId:re.Join,entityType:i.ActionDescriptor},Ny={id:Cn.inputs.indexLocation.id,type:i.ValueDescriptor,version: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:Oy,parentRelationType:P.FixedArguments,required:!0,index:1,parent:Vy},Ly={type:i.GenericReference,id:"split-string-operation-second-part-result-string-return-parent-ref",entityId:re.Join,entityType:i.ActionDescriptor},kO={parentRelationType:P.FixedReturns,id:Cn.outputs.secondPartResult.id,type:i.ValueDescriptor,version:1,name:"Second part",description:"The secont part of the resulting text value.",defaultValue:null,dataType:By,required:!0,index:1,parent:Ly},Gy={type:i.GenericReference,id:"split-string-operation-first-part-result-string-return-parent-ref",entityId:re.Join,entityType:i.ActionDescriptor},$y={parentRelationType:P.FixedReturns,id:Cn.outputs.firstPartResult.id,type:i.ValueDescriptor,version:1,name:"First part",description:"The first part of the resulting text value.",defaultValue:null,dataType:Cy,required:!0,index:0,parent:Gy},Fy={type:i.GenericReference,id:"split-string-operation-error-parent-ref",entityId:re.Join,entityType:i.ActionDescriptor},Uy={parentRelationType:P.FixedReturns,id:Cn.outputs.error.id,type:i.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Fy},Cl={id:re.Split,type:i.ActionDescriptor,version:1,name:re.Split,description:"Split a text into two, at the given index location.",inputs:[_y,Ny],outputs:[$y],error:Uy,parent:null},xy={[re.Join]:Ki,[re.Split]:Cl};var jy=(r=>(r.FirstInputList="join-list-first-list-argument-declaration",r.SecondInputList="join-list-second-list-argument-declaration",r))(jy||{}),ky=(r=>(r.ResultList="join-list-result-list-return-delaration",r.Error="join-list-error-return-delaration",r))(ky||{});const qy={type:i.GenericReference,id:"join-list-operation-first-list-argument-ref",entityId:"join-list-first-list-argument-declaration",entityType:i.ValueDescriptor},Jy={like:!1,inferred:!1,id:"join-list-first-list-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,parent:qy},Wy={type:i.GenericReference,id:"join-list-operation-second-list-argument-ref",entityId:"join-list-second-list-argument-declaration",entityType:i.ValueDescriptor},Yy={like:!1,inferred:!1,id:"join-list-second-list-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,parent:Wy},Hy={type:i.GenericReference,id:"join-list-operation-result-list-return-ref",entityId:"join-list-result-list-return-delaration",entityType:i.ValueDescriptor},zy={like:!1,inferred:!1,id:"join-list-result-list-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!0,parent:Hy},Zy={type:i.GenericReference,id:"join-list-operation-first-list-argument-parent-ref",entityId:X.Join,entityType:i.ActionDescriptor},Ky={id:"join-list-first-list-argument-declaration",type:i.ValueDescriptor,version: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:Jy,parentRelationType:P.FixedArguments,required:!0,index:0,parent:Zy},Xy={type:i.GenericReference,id:"join-list-operation-second-list-argument-parent-ref",entityId:X.Join,entityType:i.ActionDescriptor},Qy={id:"join-list-second-list-argument-declaration",type:i.ValueDescriptor,version: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:Yy,parentRelationType:P.FixedArguments,required:!0,index:1,parent:Xy},eh={type:i.GenericReference,id:"join-list-operation-result-list-return-parent-ref",entityId:X.Join,entityType:i.ActionDescriptor},th={parentRelationType:P.FixedReturns,id:"join-list-result-list-return-delaration",type:i.ValueDescriptor,version:1,name:"Result",description:"The resulting list value.",defaultValue:null,dataType:zy,required:!0,index:0,parent:eh},nh={type:i.GenericReference,id:"join-list-operation-error-parent-ref",entityId:X.Join,entityType:i.ActionDescriptor},rh={parentRelationType:P.FixedReturns,id:"join-list-error-return-delaration",type:i.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:nh},wl={id:X.Join,type:i.ActionDescriptor,version:1,name:X.Join,description:"Join two lists together, to form a single resulting list value.",inputs:[Ky,Qy],error:rh,outputs:[th],parent:null};var ih=(r=>(r.InputList="list-to-split-argument-declaration",r.SplitIndex="split-list-index-argument-declaration",r))(ih||{}),ah=(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))(ah||{});const sh={type:i.GenericReference,id:"split-list-operation-input-list-argument-ref",entityId:"list-to-split-argument-declaration",entityType:i.ValueDescriptor},oh={like:!1,inferred:!1,id:"split-list-operation-input-list-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!0,parent:sh},lh={type:i.GenericReference,id:"split-list-operation-split-index-argument-ref",entityId:"split-list-index-argument-declaration",entityType:i.ValueDescriptor},dh={like:!1,inferred:!1,id:"split-list-operation-split-index-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!1,parent:lh},Bl={type:i.GenericReference,id:"split-list-operation-first-output-list-return-ref",entityId:"split-list-first-output-list-return-delaration",entityType:i.ValueDescriptor},ch={like:!1,inferred:!1,id:"split-list-operation-first-output-list-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!0,parent:Bl},uh={type:i.GenericReference,id:"split-list-operation-input-list-argument-parent-ref",entityId:X.Split,entityType:i.ActionDescriptor},ph={id:"list-to-split-argument-declaration",type:i.ValueDescriptor,version:1,name:"List to split",description:"The list to split at the given index",defaultValue:null,dataType:oh,parentRelationType:P.FixedArguments,required:!0,index:0,parent:uh},yh={type:i.GenericReference,id:"split-list-operation-split-index-argument-parent-ref",entityId:X.Split,entityType:i.ActionDescriptor},hh={id:"split-list-index-argument-declaration",type:i.ValueDescriptor,version: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:dh,parentRelationType:P.FixedArguments,required:!0,index:1,parent:yh},fh={type:i.GenericReference,id:"split-list-operation-first-output-list-return-parent-ref",entityId:X.Split,entityType:i.ActionDescriptor},mh={parentRelationType:P.FixedReturns,id:"split-list-first-output-list-return-delaration",type:i.ValueDescriptor,version:1,name:"First list",description:"The list of values up to the split index",defaultValue:null,dataType:ch,required:!0,index:0,parent:fh},Th={like:!1,inferred:!1,id:"split-list-operation-second-output-list-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!0,parent:Bl},Eh={type:i.GenericReference,id:"split-list-operation-second-output-list-return-parent-ref",entityId:X.Split,entityType:i.ActionDescriptor},Rh={parentRelationType:P.FixedReturns,id:"split-list-second-output-list-return-delaration",type:i.ValueDescriptor,version:1,name:"Second list",description:"The list of values up to the split index",defaultValue:null,dataType:Th,required:!0,index:0,parent:Eh},gh={type:i.GenericReference,id:"split-list-operation-error-parent-ref",entityId:X.Split,entityType:i.ActionDescriptor},bh={parentRelationType:P.FixedReturns,id:"split-list-error-return-delaration",type:i.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:gh},Ml={id:X.Split,type:i.ActionDescriptor,version:1,name:X.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:[ph,hh],outputs:[mh,Rh],error:bh,parent:null};var vh=(r=>(r.InputList="get-last-in-list-input-list-argument-declaration",r))(vh||{}),Ih=(r=>(r.OutputElement="get-last-in-list-output-element-return-delaration",r.Error="get-last-in-list-error-return-delaration",r))(Ih||{});const Dh={type:i.GenericReference,id:"get-last-in-list-operation-input-list-argument-ref",entityId:"get-last-in-list-input-list-argument-declaration",entityType:i.ValueDescriptor},Ah={like:!1,inferred:!1,id:"get-last-in-list-input-list-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,parent:Dh},Sh={type:i.GenericReference,id:"get-last-in-list-operation-output-element-return-ref",entityId:"get-last-in-list-output-element-return-delaration",entityType:i.ValueDescriptor},Oh={like:!1,inferred:!1,id:"get-last-in-list-output-element-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!0,parent:Sh},Ph={type:i.GenericReference,id:"get-last-in-list-operation-input-list-argument-parent-ref",entityId:X.GetLast,entityType:i.ActionDescriptor},Ch={id:"get-last-in-list-input-list-argument-declaration",type:i.ValueDescriptor,version:1,name:"List",description:"The list to get the last element from.",defaultValue:null,dataType:Ah,parentRelationType:P.FixedArguments,required:!0,index:0,parent:Ph},wh={type:i.GenericReference,id:"get-last-in-list-operation-output-element-return-parent-ref",entityId:X.GetLast,entityType:i.ActionDescriptor},Bh={parentRelationType:P.FixedReturns,id:"get-last-in-list-output-element-return-delaration",type:i.ValueDescriptor,version:1,name:"Last element",description:"The last element of the given list.",defaultValue:null,dataType:Oh,required:!0,index:0,parent:wh},Mh={type:i.GenericReference,id:"get-last-in-list-operation-error-parent-ref",entityId:X.GetLast,entityType:i.ActionDescriptor},_h={parentRelationType:P.FixedReturns,id:"get-last-in-list-error-return-delaration",type:i.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Mh},_l={id:X.GetLast,type:i.ActionDescriptor,version:1,name:X.GetLast,description:"Outputs the last element of a given list.",inputs:[Ch],outputs:[Bh],error:_h,parent:null};var Vh=(r=>(r.List="append-to-list-lsit-argument-declaration",r.ElementToAppend="append-to-list-element-to-append-argument-declaration",r))(Vh||{}),Nh=(r=>(r.ResultList="append-to-list-result-list-return-delaration",r.Error="append-to-list-error-return-delaration",r))(Nh||{});const Lh={type:i.GenericReference,id:"append-to-list-operation-lsit-argument-ref",entityId:"append-to-list-lsit-argument-declaration",entityType:i.ValueDescriptor},Gh={like:!1,inferred:!1,id:"append-to-list-lsit-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,parent:Lh},$h={type:i.GenericReference,id:"append-to-list-operation-second-list-argument-ref",entityId:"append-to-list-element-to-append-argument-declaration",entityType:i.ValueDescriptor},Fh={like:!1,inferred:!1,id:"append-to-list-second-list-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,parent:$h},Uh={type:i.GenericReference,id:"append-to-list-operation-result-list-return-ref",entityId:"append-to-list-result-list-return-delaration",entityType:i.ValueDescriptor},xh={like:!1,inferred:!1,id:"append-to-list-result-list-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!0,parent:Uh},jh={type:i.GenericReference,id:"append-to-list-operation-lsit-argument-parent-ref",entityId:X.Append,entityType:i.ActionDescriptor},Vl={id:"append-to-list-lsit-argument-declaration",type:i.ValueDescriptor,version:1,name:"List value",description:"The list to which the element will be appended",defaultValue:null,dataType:Gh,parentRelationType:P.FixedArguments,required:!0,index:0,parent:jh},kh={type:i.GenericReference,id:"append-to-list-operation-second-list-argument-parent-ref",entityId:X.Append,entityType:i.ActionDescriptor},Nl={id:"append-to-list-element-to-append-argument-declaration",type:i.ValueDescriptor,version:1,name:"Element",description:"The element that will be added at the end of the list",defaultValue:null,dataType:Fh,parentRelationType:P.FixedArguments,required:!0,index:1,parent:kh},qh={type:i.GenericReference,id:"append-to-list-operation-result-list-return-parent-ref",entityId:X.Append,entityType:i.ActionDescriptor},Jh={parentRelationType:P.FixedReturns,id:"append-to-list-result-list-return-delaration",type:i.ValueDescriptor,version:1,name:"Result",description:"The resulting list value.",defaultValue:null,dataType:xh,required:!0,index:0,parent:qh},Wh={type:i.GenericReference,id:"append-to-list-operation-error-parent-ref",entityId:X.Append,entityType:i.ActionDescriptor},Yh={parentRelationType:P.FixedReturns,id:"append-to-list-error-return-delaration",type:i.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Wh},us={id:X.Append,type:i.ActionDescriptor,version:1,name:X.Append,description:"Adds a given element to the end of a list value.",inputs:[Vl,Nl],error:Yh,outputs:[Jh],parent:null},Hh={[X.Join]:wl,[X.Split]:Ml,[X.GetLast]:_l,[X.Append]:us},si=_[i.Operation][Ve.Parallel],zh={id:"parallel-execution-list-of-functions-blueprint-dynamic-output-id",type:i.ValueDescriptor,version: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:P.DynamicArgument},Zh={id:"parallel-execution-list-of-functions-blueprint-dynamic-input-id",type:i.ValueDescriptor,version: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:P.DynamicArgument},Kh={id:"parallel-execution-list-of-functions-blueprint-id",type:i.ActionDescriptor,version: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:[zh],error:null,parent:null},Xh={type:i.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:si.inputs.listOfActions.id,entityType:i.ValueDescriptor},Qh={like:!1,inferred:!1,id:"parallel-execution-list-of-functions-argument-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Kh,asType:!1,isList:!0,parent:Xh},ef={type:i.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:si.outputs.results.id,entityType:i.ValueDescriptor},tf={like:!1,inferred:!1,id:si.outputs.results.dataType.id,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!0,parent:ef},nf={type:i.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:Ve.Parallel,entityType:i.ActionDescriptor},Ll={id:si.inputs.listOfActions.id,type:i.ValueDescriptor,version:1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",dataType:Qh,defaultValue:null,required:!0,index:0,parent:nf,parentRelationType:P.FixedArguments},rf={type:i.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:Ve.Parallel,entityType:i.ActionDescriptor},Gl={id:si.outputs.results.id,type:i.ValueDescriptor,version: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:tf,defaultValue:null,required:!0,index:0,parent:rf,parentRelationType:P.FixedReturns},af={type:i.GenericReference,id:"parallel-execution-operation-error-parent-ref",entityId:Ve.Parallel,entityType:i.ActionDescriptor},sf={id:si.outputs.error.id,type:i.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:af,parentRelationType:P.ReturnedError},Qt={id:Ve.Parallel,type:i.ActionDescriptor,description:"Execute a list of actions in parallel",version:1,name:Ve.Parallel,inputs:[Ll],outputs:[Gl],error:sf,parent:null};var of=(r=>(r.MillisecondsNumber="wait-milliseconds-number-argument-declaration",r))(of||{}),lf=(r=>(r.Error="wait-operation-error-return-delaration",r))(lf||{});const df={type:i.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityType:i.ValueDescriptor,entityId:"wait-milliseconds-number-argument-declaration"},cf={like:!1,inferred:!1,id:"wait-milliseconds-number-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,isList:!1,asType:!1,parent:df},uf={type:i.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityType:i.ActionDescriptor,entityId:Ve.Wait},yr={id:"wait-milliseconds-number-argument-declaration",type:i.ValueDescriptor,version:1,name:"Milliseconds to wait",description:"The amount of milliseconds to wait before calling the next entity",defaultValue:null,dataType:cf,required:!0,index:0,parent:uf,parentRelationType:P.FixedArguments},pf={type:i.GenericReference,id:"wait-operation-error-parent-ref",entityId:Ve.Wait,entityType:i.ActionDescriptor},yf={id:"wait-operation-error-return-delaration",type:i.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:pf,parentRelationType:P.ReturnedError},Rt={id:Ve.Wait,type:i.ActionDescriptor,description:"Wait for the given amount of milliseconds before calling the next entity",version:1,name:Ve.Wait,inputs:[yr],outputs:[],error:yf,parent:null};var hf=(r=>(r.ListOfFunctions="sequential-execution-list-of-functions-argument-declaration",r))(hf||{}),ff=(r=>(r.ListOfExecutionResults="sequential-execution-result-return-delaration",r.Error="sequential-execution-error-return-delaration",r))(ff||{});const mf={id:"sequential-execution-list-of-functions-blueprint-dynamic-output-id",type:i.ValueDescriptor,version: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:P.DynamicArgument},Tf={id:"sequential-execution-list-of-functions-blueprint-dynamic-input-id",type:i.ValueDescriptor,version: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:P.DynamicArgument},Ef={id:"sequential-execution-list-of-functions-blueprint-id",type:i.ActionDescriptor,version:1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[Tf],outputs:[mf],error:null,parent:null},Rf={type:i.GenericReference,id:"parallel-execution-list-of-functions-argument-declaration-id",entityId:"sequential-execution-list-of-functions-argument-declaration",entityType:i.ValueDescriptor},gf={like:!1,inferred:!1,id:"sequential-execution-list-of-functions-argument-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ef,asType:!1,isList:!0,parent:Rf},bf={type:i.GenericReference,id:"sequential-execution-list-of-execution-results-return-declaration-id",entityId:"sequential-execution-result-return-delaration",entityType:i.ValueDescriptor},vf={like:!1,inferred:!1,id:"sequential-execution-list-of-execution-results-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!0,parent:bf},If={type:i.GenericReference,id:"parallel-execution-operation-list-of-functions-argument-parent-ref",entityId:Ve.Sequential,entityType:i.ActionDescriptor},$l={id:"sequential-execution-list-of-functions-argument-declaration",type:i.ValueDescriptor,version:1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",defaultValue:null,dataType:gf,required:!0,index:0,parent:If,parentRelationType:P.FixedArguments},Df={type:i.GenericReference,id:"parallel-execution-operation-list-of-execution-results-return-parent-ref",entityId:Ve.Sequential,entityType:i.ActionDescriptor},Fl={id:"sequential-execution-result-return-delaration",type:i.ValueDescriptor,version: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:vf,required:!0,index:0,parent:Df,parentRelationType:P.FixedReturns},Af={type:i.GenericReference,id:"sequential-execution-operation-error-parent-ref",entityId:Ve.Sequential,entityType:i.ActionDescriptor},Sf={id:"sequential-execution-error-return-delaration",type:i.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Af,parentRelationType:P.ReturnedError},wn={id:Ve.Sequential,type:i.ActionDescriptor,description:"Execute a list of actions one after the other",version:1,name:Ve.Sequential,inputs:[$l],outputs:[Fl],error:Sf,parent:null},Of={[Ve.Parallel]:Qt,[Ve.Wait]:Rt,[Ve.Sequential]:wn};var Pf=(r=>(r.EntityToInstanciate="entity-to-instanciate-argument-declaration",r.NewEntityData="new-entity-data-argument-declaration",r))(Pf||{}),Cf=(r=>(r.Error="create-new-instance-error-return-delaration",r))(Cf||{});const wf={type:i.GenericReference,id:"new-entity-data-argument-declaration-parent-ref",entityId:Ne.CreateNewInstance,entityType:i.ActionDescriptor},Bf={type:i.GenericReference,id:"new-entity-data-argument-data-type-parent-ref",entityId:"new-entity-data-argument-declaration",entityType:i.ValueDescriptor},Mf={like:!1,inferred:!1,id:"new-entity-data-argument-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,parent:Bf},_f={id:"new-entity-data-argument-declaration",type:i.ValueDescriptor,version:1,name:"Data for new entity",description:"The data to be used to create the new entity, with all the required properties",dataType:Mf,required:!0,defaultValue:null,parentRelationType:P.FixedArguments,index:1,parent:wf},Vf={type:i.GenericReference,id:"entity-to-instanciate-argument-declaration-ref",entityType:i.ValueDescriptor,entityId:"entity-to-instanciate-argument-declaration"},Nf={like:!1,inferred:!1,id:"entity-to-instanciate-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!0,parent:Vf},Lf={type:i.GenericReference,id:"create-new-instance-operation-ref",entityType:i.ActionDescriptor,entityId:Ne.CreateNewInstance},Gf={id:"entity-to-instanciate-argument-declaration",type:i.ValueDescriptor,version:1,name:"Entity to create a new copy of",description:"The entity of which a new copy will to be created",defaultValue:null,dataType:Nf,required:!0,parentRelationType:P.FixedArguments,index:0,parent:Lf},$f={type:i.GenericReference,id:"create-new-instance-output-entity-declaration-parent-ref",entityId:Ne.CreateNewInstance,entityType:i.ActionDescriptor},Ff={parentRelationType:P.FixedReturns,id:"create-new-instance-output-entity-declaration",type:i.ValueDescriptor,version:1,name:"Created entity",description:"The entity that was created",defaultValue:null,dataType:null,parent:$f,required:!0,index:0},Uf={type:i.GenericReference,id:"create-new-instance-error-parent-ref",entityId:Ne.CreateNewInstance,entityType:i.ActionDescriptor},xf={parentRelationType:P.FixedReturns,id:"create-new-instance-error-return-delaration",type:i.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Uf},hr={id:Ne.CreateNewInstance,type:i.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,name:Ne.CreateNewInstance,inputs:[Gf,_f],outputs:[Ff],error:xf,parent:null},oi=_[i.Operation][Ne.Validate],jf={type:i.GenericReference,id:"validate-data-operation-data-to-validate-argument-declaration-ref",entityType:i.ValueDescriptor,entityId:oi.inputs.dataToValidate.id},kf={like:!1,inferred:!1,id:"validate-data-operation-data-to-validate-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,parent:jf},qf={type:i.GenericReference,id:"validate-data-operation-data-to-validate-argument-parent-ref",entityType:i.ActionDescriptor,entityId:Ne.Validate},Jf={id:oi.inputs.dataToValidate.id,type:i.ValueDescriptor,version:1,name:"Data to validate",description:"The value to validate against the given entity type",defaultValue:null,dataType:kf,required:!0,parentRelationType:P.FixedArguments,index:0,parent:qf},Wf={type:i.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-declaration-ref",entityType:i.ValueDescriptor,entityId:oi.inputs.entityToMatch.id},Yf={like:!1,inferred:!1,id:"validate-data-operation-entity-to-match-type-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!0,parent:Wf},Hf={type:i.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-parent-ref",entityType:i.ActionDescriptor,entityId:Ne.Validate},zf={id:oi.inputs.entityToMatch.id,type:i.ValueDescriptor,version:1,name:"Entity to match",description:"The entity to match the data against",dataType:Yf,defaultValue:null,required:!0,index:0,parentRelationType:P.FixedArguments,parent:Hf},Zf={type:i.GenericReference,id:"validate-data-operation-output-entity-declaration-parent-ref",entityId:Ne.Validate,entityType:i.ActionDescriptor},Kf={id:oi.outputs.outputEntity.id,type:i.ValueDescriptor,version:1,dataType:null,name:"Output value",description:"A value with the type of the entity that was validated",defaultValue:null,parent:Zf,required:!0,index:0,parentRelationType:P.FixedReturns},Xf={type:i.GenericReference,id:"wait-operation-error-parent-ref",entityId:Ne.Validate,entityType:i.ActionDescriptor},Qf={id:oi.outputs.error.id,type:i.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,defaultValue:null,required:!0,index:1,parent:Xf,parentRelationType:P.ReturnedError},fr={id:Ne.Validate,type:i.ActionDescriptor,description:"Validates the given data to see if it matches the structure of a given type/entity",version:1,name:Ne.Validate,inputs:[zf,Jf],outputs:[Kf],error:Qf,parent:null},em={[Ne.CreateNewInstance]:hr,[Ne.Validate]:fr},Qe=_[i.Operation]["base-http-request"],tm={type:i.GenericReference,id:"d87cf943-57e1-4d19-9f05-190fa8c8ebc4",entityType:i.ValueDescriptor,entityId:Qe.inputs.url.id},nm={id:"http-request-url-default-value-id",type:i.LiteralValue,version:1,value:"https://some-url.com",name:C.String,valueAsType:null,parent:tm,autogeneration:null},rm={type:i.GenericReference,id:"aed50d73-eab5-42ce-b00e-7f5c45a9026f",entityId:Qe.inputs.url.id,entityType:i.ValueDescriptor},im={like:!1,inferred:!1,id:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:rm},am={type:i.GenericReference,id:"c3145af6-3387-464a-8887-272e483c856d",entityId:Qe.inputs.query.id,entityType:i.ValueDescriptor},sm={like:!1,inferred:!1,id:"2a5ba737-6335-4cc4-a2c0-16dca4052fac",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:am},om={type:i.GenericReference,id:"075556b7-e468-48f7-8485-7159eaf389b2",entityType:i.ValueDescriptor,entityId:Qe.inputs.method.id},lm={id:"http-request-method-default-value-id",type:i.LiteralValue,version:1,value:"GET",name:C.Enum,valueAsType:null,parent:om,autogeneration:null},dm={type:i.GenericReference,id:"aed647c8-a1b5-4cfc-9a3d-97887a567a80",entityId:Qe.inputs.method.id,entityType:i.ValueDescriptor},cm={like:!1,inferred:!1,id:"6df7ec2b-5dbd-44af-896b-17b314e88560",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:On,isList:!1,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:dm},um={type:i.GenericReference,id:"77203dfa-d2f6-4804-9556-e1cce46228f3",entityId:Qe.inputs.headers.id,entityType:i.ValueDescriptor},pm={like:!1,inferred:!1,id:"2c8a2a07-69c6-40ad-b5c9-f0dc4d5955ce",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:it,asType:!1,isList:!1,parent:um},ym={type:i.GenericReference,id:"03db68a0-7ab6-4c6a-85b6-f4b95ebb53ff",entityId:Qe.inputs.body.id,entityType:i.ValueDescriptor},hm={like:!1,inferred:!1,id:"0397876c-ed54-4ee9-85a4-04fd16dad973",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:it,asType:!1,isList:!1,parent:ym},fm={type:i.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",entityType:i.ValueDescriptor,entityId:Qe.outputs.code.id},mm={like:!1,inferred:!1,id:"45e6d0bc-0c0e-4059-a7a1-6bee925d73d0",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!1,parent:fm},Tm={type:i.GenericReference,id:"2baaa53a-9aef-4bd1-b06d-967c17b7b627",entityType:i.ValueDescriptor,entityId:Qe.outputs.headers.id},Em={type:i.GenericReference,id:"69f34d6c-c686-4165-b6ff-70dae8e1778b",entityType:i.ValueDescriptor,entityId:Qe.outputs.headers.id},Rm={like:!1,inferred:!1,id:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:it,isList:!1,asType:!1,parent:Em},gm={type:i.GenericReference,id:"744334e0-5135-4214-85d0-809437cb620b",entityType:i.ValueDescriptor,entityId:Qe.outputs.body.id},bm={type:i.GenericReference,id:"0e0e20df-1a46-432c-ba01-fd96508a6a61",entityType:i.ValueDescriptor,entityId:Qe.outputs.body.id},vm={like:!1,inferred:!1,id:"05fc1a5d-151a-479a-9c4e-4063f3456177",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:it,isList:!1,asType:!1,parent:bm},Im={type:i.GenericReference,id:"26911792-f707-4bf1-b6f7-03d04a84232c",entityType:i.ActionDescriptor,entityId:dt.HttpRequest},ps={id:Qe.inputs.method.id,type:i.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,name:"Method",defaultValue:lm,dataType:cm,required:!1,index:0,parentRelationType:P.FixedArguments,parent:Im},Dm={type:i.GenericReference,id:"eee0c501-0ae6-4448-b914-aada76d63163",entityType:i.ActionDescriptor,entityId:dt.HttpRequest},ys={id:Qe.inputs.url.id,type:i.ValueDescriptor,description:"The base domain, or address where the request is being sent to. For example: https://some-url.com",version:1,name:"URL",dataType:im,defaultValue:nm,required:!1,index:1,parentRelationType:P.FixedArguments,parent:Dm},Am={type:i.GenericReference,id:"670091a4-21b1-4223-ad4c-b6dada0aec49",entityType:i.ActionDescriptor,entityId:dt.HttpRequest},Ul={id:Qe.inputs.query.id,type:i.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,name:"Query Params",defaultValue:null,dataType:sm,required:!1,index:2,parentRelationType:P.FixedArguments,parent:Am},Sm={type:i.GenericReference,id:"85aad3eb-22fe-45f9-b68c-1dc7061f41e0",entityType:i.ActionDescriptor,entityId:dt.HttpRequest},hs={id:Qe.inputs.headers.id,type:i.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,name:"Headers",defaultValue:null,dataType:pm,required:!1,index:3,parent:Sm,parentRelationType:P.FixedArguments},Om={type:i.GenericReference,id:"c3e2a4af-9b84-4574-8b30-5044ffc51776",entityType:i.ActionDescriptor,entityId:dt.HttpRequest},fs={id:Qe.inputs.body.id,type:i.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,name:"Body",dataType:hm,defaultValue:null,required:!1,index:4,parentRelationType:P.FixedArguments,parent:Om},Pm={type:i.GenericReference,id:"92e04dc7-2145-4a31-908e-03810f7235e8",entityType:i.ActionDescriptor,entityId:dt.HttpRequest},ms={id:Qe.outputs.code.id,type:i.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,name:"Code",defaultValue:null,dataType:mm,required:!0,index:0,parentRelationType:P.FixedReturns,parent:Pm},Cm={type:i.GenericReference,id:"86aca556-bbf1-4679-9909-31db61b288e2",entityType:i.ActionDescriptor,entityId:dt.HttpRequest},Ts={parentRelationType:P.FixedReturns,id:Qe.outputs.headers.id,type:i.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,name:"Headers",defaultValue:{id:"http-response-headers-default-value-id",type:i.LiteralValue,version:1,value:{},name:C.KeyValue,parent:Tm,valueAsType:null,autogeneration:null},dataType:Rm,required:!0,index:1,parent:Cm},wm={type:i.GenericReference,id:"ccf3d1be-04e4-4d03-99fd-5bc1e1919f90",entityType:i.ActionDescriptor,entityId:dt.HttpRequest},Es={id:Qe.outputs.body.id,type:i.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,name:"Body",parentRelationType:P.FixedReturns,dataType:vm,defaultValue:{id:"http-response-body-default-value-id",type:i.LiteralValue,version:1,value:{},name:C.KeyValue,parent:gm,valueAsType:null,autogeneration:null},required:!0,index:2,parent:wm},Bm={type:i.GenericReference,id:"21487ffc-82b9-473d-bc19-6e7d7c480ed7",entityType:i.ActionDescriptor,entityId:dt.HttpRequest},Mm={type:i.GenericReference,id:"ad69861b-32f7-4461-b7f7-aa84a82578d9",entityType:i.ValueDescriptor,entityId:Qe.outputs.error.id},_m={like:!1,inferred:!1,id:"5da68b15-57bc-40c1-b79f-a9075e0f22c1",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:it,isList:!1,asType:!1,parent:Mm},xl={parentRelationType:P.ReturnedError,id:Qe.outputs.error.id,type:i.ValueDescriptor,description:"Http request error, if any. Contains a payload describing what went wrong.",version:1,name:"Error",defaultValue:null,dataType:_m,required:!0,index:0,parent:Bm},Xi={type:i.ActionDescriptor,id:dt.HttpRequest,name:dt.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,inputs:[ps,ys,Ul,hs,fs],outputs:[ms,Ts,Es],error:xl,parent:null},Vm={[dt.HttpRequest]:Xi},Nm={...xy,...ny,...Hh,...Of,...em,...Vm},Lm=Object.values(Nm),qO=_[i.Loop]["manual-flow-loop"],Gm={id:"manual-flow-loop-dynamic-return-declaration-parent-ref-id",type:i.GenericReference,entityId:k.ManualFlow,entityType:i.ActionDescriptor},$m={id:qO.outputs.results.id,type:i.ValueDescriptor,version:1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:Gm,parentRelationType:P.DynamicReturn},Rs={id:k.ManualFlow,type:i.ActionDescriptor,version:1,name:k.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:[$m],error:null,parent:null},Qi=_[i.Loop]["manual-flow-loop"],Fm={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"manual-flow-loop-current-iteration-number-declaration-id",entityType:i.ValueDescriptor},Um={like:!1,inferred:!1,id:"manual-flow-loop-current-iteration-number-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,entity:ee,asType:!1,parent:Fm},xm={id:"manual-flow-loop-current-iteration-number-declaration-parent-ref-id",type:i.GenericReference,entityId:Qi.body.id,entityType:i.ActionDescriptor},jl={id:Qi.body.inputs.iterationNumber.id,type:i.ValueDescriptor,version: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:Um,required:!0,index:0,parentRelationType:P.FixedArguments,parent:xm},jm={id:"manual-flow-loop-body-any-dynamic-argument-parent-ref-id",type:i.GenericReference,entityId:Qi.body.id,entityType:i.ActionDescriptor},km={id:"manual-flow-loop-body-any-dynamic-argument-id",type:i.ValueDescriptor,version: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:P.DynamicArgument,parent:jm},qm={id:"manual-flow-loop-body-any-dynamic-return-parent-ref-id",type:i.GenericReference,entityId:Qi.body.id,entityType:i.ActionDescriptor},Jm={id:"manual-flow-loop-body-any-dynamic-return-id",type:i.ValueDescriptor,version:1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:P.DynamicReturn,parent:qm},kl={id:Qi.body.id,type:i.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the manual flow loop.",inputs:[jl,km],outputs:[Jm],error:null,parent:null},Wm=_[i.Loop]["string-loop"],Ym={id:"iterate-over-string-loop-string-argument-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"iterate-over-string-loop-string-argument-declaration-id",entityType:i.ValueDescriptor},Hm={like:!1,inferred:!1,id:"iterate-over-string-loop-string-argument-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,entity:J,asType:!1,parent:Ym},zm={id:"iterate-over-string-loop-string-argument-declaration-parent-ref-id",type:i.GenericReference,entityId:k.String,entityType:i.ActionDescriptor},Zm={id:Wm.inputs.string.id,type:i.ValueDescriptor,version:1,name:"Texts",description:"The text to iterate over the characters of",defaultValue:null,required:!0,dataType:Hm,index:0,parent:zm,parentRelationType:P.FixedArguments},Km={id:"iterate-over-string-loop-dynamic-return-declaration-parent-ref-id",type:i.GenericReference,entityId:k.String,entityType:i.ActionDescriptor},Xm={id:Wm.outputs.results.id,type:i.ValueDescriptor,version:1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:Km,parentRelationType:P.DynamicReturn},ea={id:k.String,type:i.ActionDescriptor,version:1,name:k.String,description:"Iterates over a string of entities",inputs:[Zm],outputs:[Xm],error:null,parent:null},mr=_[i.Loop]["string-loop"],Qm={id:"iterate-over-string-loop-body-current-value-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"iterate-over-string-loop-body-current-value-declaration-id",entityType:i.ValueDescriptor},eT={like:!1,inferred:!1,id:"iterate-over-string-loop-body-current-value-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,entity:J,asType:!1,parent:Qm},tT={id:"iterate-over-string-loop-body-current-value-declaration-parent-ref-id",type:i.GenericReference,entityId:mr.body.id,entityType:i.ActionDescriptor},ql={id:mr.body.inputs.currentValue.id,type:i.ValueDescriptor,version: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:eT,required:!0,index:1,parentRelationType:P.FixedArguments,parent:tT},nT={id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"iterate-over-string-loop-body-current-iteration-number-declaration-id",entityType:i.ValueDescriptor},rT={like:!1,inferred:!1,id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,entity:ee,asType:!1,parent:nT},iT={id:"iterate-over-string-loop-body-current-iteration-number-declaration-parent-ref-id",type:i.GenericReference,entityId:mr.body.id,entityType:i.ActionDescriptor},Jl={id:mr.body.inputs.iterationNumber.id,type:i.ValueDescriptor,version: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:rT,required:!0,index:0,parentRelationType:P.FixedArguments,parent:iT},aT={id:"iterate-over-string-loop-body-any-dynamic-argument-parent-ref-id",type:i.GenericReference,entityId:mr.body.id,entityType:i.ActionDescriptor},sT={id:"iterate-over-string-loop-body-any-dynamic-argument-id",type:i.ValueDescriptor,version: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:P.DynamicArgument,parent:aT},oT={id:"iterate-over-string-loop-body-any-dynamic-return-parent-ref-id",type:i.GenericReference,entityId:mr.body.id,entityType:i.ActionDescriptor},lT={id:"iterate-over-string-loop-body-any-dynamic-return-id",type:i.ValueDescriptor,version:1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:P.DynamicReturn,parent:oT},Wl={id:mr.body.id,type:i.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[Jl,ql,sT],outputs:[lT],error:null,parent:null},dT=_[i.Loop]["list-loop"],cT={id:"iterate-over-list-loop-list-argument-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"iterate-over-list-loop-list-argument-declaration-id",entityType:i.ValueDescriptor},uT={like:!1,inferred:!1,id:"iterate-over-list-loop-list-argument-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!0,entity:null,asType:!1,parent:cT},pT={id:"iterate-over-list-loop-list-argument-declaration-parent-ref-id",type:i.GenericReference,entityId:k.List,entityType:i.ActionDescriptor},yT={id:dT.inputs.list.id,type:i.ValueDescriptor,version:1,name:"List",description:"The list to iterate over",required:!0,defaultValue:null,dataType:uT,index:0,parent:pT,parentRelationType:P.FixedArguments},hT={id:"iterate-over-list-loop-dynamic-return-declaration-parent-ref-id",type:i.GenericReference,entityId:k.List,entityType:i.ActionDescriptor},fT={id:dT.outputs.results.id,type:i.ValueDescriptor,version:1,name:"Ouput value",description:"An output value of the loop",required:!1,defaultValue:null,dataType:null,index:0,parent:hT,parentRelationType:P.DynamicReturn},Wn={id:k.List,type:i.ActionDescriptor,version:1,name:k.List,description:"Iterates over a list of entities",inputs:[yT],outputs:[fT],error:null,parent:null},Tr=_[i.Loop]["list-loop"],mT={id:"iterate-over-list-loop-body-current-value-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"iterate-over-list-loop-body-current-value-declaration-id",entityType:i.ValueDescriptor},TT={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-value-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,entity:null,asType:!1,parent:mT},ET={id:"iterate-over-list-loop-body-current-value-declaration-parent-ref-id",type:i.GenericReference,entityId:Tr.body.id,entityType:i.ActionDescriptor},gs={id:Tr.body.inputs.currentValue.id,type:i.ValueDescriptor,version: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:TT,required:!0,index:1,parentRelationType:P.FixedArguments,parent:ET},RT={id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"iterate-over-list-loop-body-current-iteration-number-declaration-id",entityType:i.ValueDescriptor},gT={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,entity:ee,asType:!1,parent:RT},bT={id:"iterate-over-list-loop-body-current-iteration-number-declaration-parent-ref-id",type:i.GenericReference,entityId:Tr.body.id,entityType:i.ActionDescriptor},vT={id:Tr.body.inputs.iterationNumber.id,type:i.ValueDescriptor,version: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:gT,required:!0,index:0,parentRelationType:P.FixedArguments,parent:bT},IT={id:"iterate-over-list-loop-body-any-dynamic-argument-parent-ref-id",type:i.GenericReference,entityId:Tr.body.id,entityType:i.ActionDescriptor},DT={id:"iterate-over-list-loop-body-any-dynamic-argument-id",type:i.ValueDescriptor,version: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:P.DynamicArgument,parent:IT},AT={id:"iterate-over-list-loop-body-any-dynamic-return-parent-ref-id",type:i.GenericReference,entityId:Tr.body.id,entityType:i.ActionDescriptor},ST={id:"iterate-over-list-loop-body-any-dynamic-return-id",type:i.ValueDescriptor,version:1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:P.DynamicReturn,parent:AT},bs={id:Tr.body.id,type:i.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the list loop.",inputs:[vT,gs,DT],outputs:[ST],error:null,parent:null},OT=_[i.Loop]["object-keys-loop"],PT={id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"iterate-over-object-keys-loop-object-argument-declaration-id",entityType:i.ValueDescriptor},CT={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,entity:it,asType:!1,parent:PT},wT={id:"iterate-over-object-keys-loop-object-argument-declaration-parent-ref-id",type:i.GenericReference,entityId:k.ObjectKeys,entityType:i.ActionDescriptor},BT={id:OT.inputs.object.id,type:i.ValueDescriptor,version:1,name:"Object",description:"The object to iterate over",required:!0,defaultValue:null,dataType:CT,index:0,parent:wT,parentRelationType:P.FixedArguments},MT={id:"iterate-over-object-keys-loop-dynamic-return-declaration-parent-ref-id",type:i.GenericReference,entityId:k.ObjectKeys,entityType:i.ActionDescriptor},_T={id:OT.outputs.results.id,type:i.ValueDescriptor,version:1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:MT,parentRelationType:P.DynamicReturn},li={id:k.ObjectKeys,type:i.ActionDescriptor,version:1,name:k.ObjectKeys,description:"Iterates over a object of entities",inputs:[BT],outputs:[_T],error:null,parent:null},Er=_[i.Loop]["object-keys-loop"],VT={id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-value-declaration-id",entityType:i.ValueDescriptor},NT={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,entity:J,asType:!1,parent:VT},LT={id:"iterate-over-object-keys-loop-body-current-value-declaration-parent-ref-id",type:i.GenericReference,entityId:Er.body.id,entityType:i.ActionDescriptor},Yl={id:Er.body.inputs.currentValue.id,type:i.ValueDescriptor,version: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:NT,required:!0,index:1,parentRelationType:P.FixedArguments,parent:LT},GT={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-id",entityType:i.ValueDescriptor},$T={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,entity:ee,asType:!1,parent:GT},FT={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-parent-ref-id",type:i.GenericReference,entityId:Er.body.id,entityType:i.ActionDescriptor},UT={id:Er.body.inputs.iterationNumber.id,type:i.ValueDescriptor,version: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:$T,required:!0,index:0,parentRelationType:P.FixedArguments,parent:FT},xT={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-parent-ref-id",type:i.GenericReference,entityId:Er.body.id,entityType:i.ActionDescriptor},jT={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-id",type:i.ValueDescriptor,version: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:P.DynamicArgument,parent:xT},kT={id:"iterate-over-object-keys-loop-body-any-dynamic-return-parent-ref-id",type:i.GenericReference,entityId:Er.body.id,entityType:i.ActionDescriptor},qT={id:"iterate-over-object-keys-loop-body-any-dynamic-return-id",type:i.ValueDescriptor,version:1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:P.DynamicReturn,parent:kT},JT={id:Er.body.id,type:i.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the object-keys loop.",inputs:[UT,Yl,jT],outputs:[qT],error:null,parent:null},WT=_[i.Loop]["object-values-loop"],YT={id:"iterate-over-object-values-loop-object-argument-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"iterate-over-object-values-loop-object-argument-declaration-id",entityType:i.ValueDescriptor},HT={like:!1,inferred:!1,id:"iterate-over-object-values-loop-object-argument-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,entity:it,asType:!1,parent:YT},zT={id:"iterate-over-object-values-loop-object-argument-declaration-parent-ref-id",type:i.GenericReference,entityId:k.ObjectValues,entityType:i.ActionDescriptor},ZT={id:WT.inputs.object.id,type:i.ValueDescriptor,version:1,name:"Object",description:"The object to iterate over",required:!0,defaultValue:null,dataType:HT,index:0,parent:zT,parentRelationType:P.FixedArguments},KT={id:"iterate-over-object-values-loop-dynamic-return-declaration-parent-ref-id",type:i.GenericReference,entityId:k.ObjectValues,entityType:i.ActionDescriptor},XT={id:WT.outputs.results.id,type:i.ValueDescriptor,version:1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:KT,parentRelationType:P.DynamicReturn},di={id:k.ObjectValues,type:i.ActionDescriptor,version:1,name:k.ObjectValues,description:"Iterates over a object of entities",inputs:[ZT],outputs:[XT],error:null,parent:null},Rr=_[i.Loop]["object-values-loop"],QT={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"iterate-over-object-values-loop-body-current-value-declaration-id",entityType:i.ValueDescriptor},eE={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:null,entity:null,asType:null,like:!1,inferred:!1,parent:QT},tE={id:"iterate-over-object-values-loop-body-current-value-declaration-parent-ref-id",type:i.GenericReference,entityId:Rr.body.id,entityType:i.ActionDescriptor},Hl={id:Rr.body.inputs.currentValue.id,type:i.ValueDescriptor,version: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:eE,required:!0,index:1,parentRelationType:P.FixedArguments,parent:tE},nE={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"iterate-over-object-values-loop-body-current-iteration-number-declaration-id",entityType:i.ValueDescriptor},rE={like:!1,inferred:!1,id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,entity:ee,asType:!1,parent:nE},iE={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-parent-ref-id",type:i.GenericReference,entityId:Rr.body.id,entityType:i.ActionDescriptor},aE={id:Rr.body.inputs.iterationNumber.id,type:i.ValueDescriptor,version: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:rE,required:!0,index:0,parentRelationType:P.FixedArguments,parent:iE},sE={id:"iterate-over-object-values-loop-body-any-dynamic-argument-parent-ref-id",type:i.GenericReference,entityId:Rr.body.id,entityType:i.ActionDescriptor},oE={id:"iterate-over-object-values-loop-body-any-dynamic-argument-id",type:i.ValueDescriptor,version: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:P.DynamicArgument,parent:sE},lE={id:"iterate-over-object-values-loop-body-any-dynamic-return-parent-ref-id",type:i.GenericReference,entityId:Rr.body.id,entityType:i.ActionDescriptor},dE={id:"iterate-over-object-values-loop-body-any-dynamic-return-id",type:i.ValueDescriptor,version:1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:P.DynamicReturn,parent:lE},cE={id:Rr.body.id,type:i.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the object-values loop.",inputs:[aE,Hl,oE],outputs:[dE],error:null,parent:null},zl=_[i.Loop]["counted-loop"],uE={id:"counted-loop-string-argument-declaration-data-type-default-value-parent-ref-id",type:i.GenericReference,entityId:zl.inputs.number.id,entityType:i.ValueDescriptor},pE={id:"counted-loop-string-argument-declaration-data-type-default-value-id",type:i.LiteralValue,name:C.Number,version:1,value:5,valueAsType:null,autogeneration:null,parent:uE},yE={id:"counted-loop-string-argument-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"counted-loop-string-argument-declaration-id",entityType:i.ValueDescriptor},hE={like:!1,inferred:!1,id:"counted-loop-string-argument-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,entity:ee,asType:!1,parent:yE},fE={id:"counted-loop-string-argument-declaration-parent-ref-id",type:i.GenericReference,entityId:k.Counted,entityType:i.ActionDescriptor},mE={id:zl.inputs.number.id,type:i.ValueDescriptor,version:1,name:"Number of iterations",description:"The number of iterations to perform",required:!0,dataType:hE,defaultValue:pE,index:0,parent:fE,parentRelationType:P.FixedArguments},TE={id:"counted-loop-dynamic-return-declaration-parent-ref-id",type:i.GenericReference,entityId:k.Counted,entityType:i.ActionDescriptor},EE={id:zl.outputs.results.id,type:i.ValueDescriptor,version:1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:TE,parentRelationType:P.DynamicReturn},ta={id:k.Counted,type:i.ActionDescriptor,version:1,name:k.Counted,description:"Iterates a given number of times",inputs:[mE],outputs:[EE],error:null,parent:null},na=_[i.Loop]["counted-loop"],RE={id:"counted-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"counted-loop-body-current-iteration-number-declaration-id",entityType:i.ValueDescriptor},gE={like:!1,inferred:!1,id:"counted-loop-body-current-iteration-number-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,entity:ee,asType:!1,parent:RE},bE={id:"counted-loop-body-current-iteration-number-declaration-parent-ref-id",type:i.GenericReference,entityId:na.body.id,entityType:i.ActionDescriptor},Zl={id:na.body.inputs.iterationNumber.id,type:i.ValueDescriptor,version: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:gE,required:!0,index:0,parentRelationType:P.FixedArguments,parent:bE},vE={id:"counted-loop-body-any-dynamic-argument-parent-ref-id",type:i.GenericReference,entityId:na.body.id,entityType:i.ActionDescriptor},IE={id:"counted-loop-body-any-dynamic-argument-id",type:i.ValueDescriptor,version: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:P.DynamicArgument,parent:vE},DE={id:"counted-loop-body-any-dynamic-return-parent-ref-id",type:i.GenericReference,entityId:na.body.id,entityType:i.ActionDescriptor},AE={id:"counted-loop-body-any-dynamic-return-id",type:i.ValueDescriptor,version:1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:P.DynamicReturn,parent:DE},Kl={id:na.body.id,type:i.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[Zl,IE],outputs:[AE],error:null,parent:null},SE=[Rs,Wn,ea,li,di,ta],Yn=_[i.BuiltInBaseEntity][U.HTTP_ENDPOINT].properties,OE={id:"endpointBuiltInCorsPropertyDataTypeRef",type:i.GenericReference,entityType:i.ValueDescriptor,entityId:Yn.cors.id},PE={id:"endpointBuiltInCorsPropertyRef",type:i.GenericReference,entityType:i.Property,entityId:Yn.cors.id},CE={like:!1,inferred:!1,id:"endpointBuiltInCorsPropertyDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:J,asType:!1,parent:PE},wE={id:"endpointBuiltInBaseEntityRef",type:i.GenericReference,entityType:i.BuiltInBaseEntity,entityId:U.HTTP_ENDPOINT},BE={constant:!1,hidden:!0,required:!0,id:Yn.cors.id,name:"Allowed origins",version:1,type:i.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:CE,defaultValue:{id:"endpointBuiltInCorsPropertyDataTypeDefaultValueId",type:i.LiteralValue,version:1,name:C.KeyValue,value:["*"],parent:OE,autogeneration:null,valueAsType: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:wE},ME={id:"endpointBuiltInPathPropertyDataTypeRef",type:i.GenericReference,entityType:i.ValueDescriptor,entityId:Yn.path.id},_E={id:"endpointBuiltInPathPropertyRef",type:i.GenericReference,entityType:i.Property,entityId:Yn.path.id},VE={like:!1,inferred:!1,id:"endpointBuiltInPathPropertyDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parent:_E},NE={id:"endpointBuiltInBaseEntityRefTwo",type:i.GenericReference,entityType:i.BuiltInBaseEntity,entityId:U.HTTP_ENDPOINT},Xl={constant:!1,id:Yn.path.id,hidden:!1,required:!0,name:"Path",version:1,type:i.Property,private:!1,abstract:!0,implements:null,static:!0,index:1,dataType:VE,defaultValue:{id:"endpointBuiltInPathPropertyDataTypeDefaultValueId",type:i.LiteralValue,version:1,name:C.String,value:"/",parent:ME,autogeneration:null,valueAsType: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:NE},LE={id:"endpointBuiltInMethodPropertyDataTypeRef",type:i.GenericReference,entityType:i.ValueDescriptor,entityId:Yn.method.id},GE={id:"endpointBuiltInMethodPropertyRef",type:i.GenericReference,entityType:i.Property,entityId:"endpointBuiltInMethodProperty"},$E={like:!1,inferred:!1,id:"endpointBuiltInMethodPropertyDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:On,isList:!0,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:GE},FE={id:"endpointBuiltInBaseEntityRefThree",type:i.GenericReference,entityType:i.BuiltInBaseEntity,entityId:U.HTTP_ENDPOINT},Ql={constant:!1,hidden:!1,required:!0,id:Yn.method.id,name:"Method",version:1,type:i.Property,private:!1,index:2,implements:null,defaultValue:{id:"endpointBuiltInMethodPropertyDataTypeDefaultValueId",type:i.LiteralValue,version:1,value:"GET",name:C.Enum,parent:LE,autogeneration:null,valueAsType:null},abstract:!0,static:!0,dataType:$E,description:"The HTTP method that this endpoint will respond to, for example GET, POST, PUT, DELETE, etc.",parent:FE},UE={id:"endpointRequestHeadersVariableDataTypeRef",type:i.GenericReference,entityType:i.ValueDescriptor,entityId:"endpointRequestHeadersArgumentDeclaration"},xE={id:"endpointRequestHeadersArgumentDeclarationRef",type:i.GenericReference,entityType:i.ArgumentDeclaration,entityId:"endpointRequestHeadersArgumentDeclaration"},jE={like:!1,inferred:!1,id:"endpointRequestHeadersVariableDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:it,asType:!1,parent:xE},kE={id:"endpointRequestBodyArgumentDeclarationRef",type:i.GenericReference,entityType:i.ArgumentDeclaration,entityId:"endpointRequestBodyArgumentDeclaration"},qE={like:!1,inferred:!1,id:"endpointRequestBodyVariableDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:it,parent:kE},JE={id:"endpointRequestQueryParamsVariableDataTypeRef",type:i.GenericReference,entityType:i.ValueDescriptor,entityId:"endpointRequestQueryParamsArgumentDeclaration"},WE={id:"endpointRequestQueryParamsArgumentDeclarationRef",type:i.GenericReference,entityType:i.ArgumentDeclaration,entityId:"endpointRequestQueryParamsArgumentDeclaration"},YE={like:!1,inferred:!1,id:"endpointRequestQueryParamsVariableDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:ai,parent:WE},HE={id:"endpointPathParamsVariableDataTypeRef",type:i.GenericReference,entityType:i.ValueDescriptor,entityId:"endpointPathParamsArgumentDeclaration"},zE={id:"endpointPathParamsArgumentDeclarationRef",type:i.GenericReference,entityType:i.ArgumentDeclaration,entityId:"endpointPathParamsArgumentDeclaration"},ZE={like:!1,inferred:!1,id:"endpointPathParamsVariableDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:ai,asType:!1,parent:zE},KE={id:"endpointReachedTriggerActionDescriptorRef",type:i.GenericReference,entityType:i.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},ed={id:"endpointRequestHeadersArgumentDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:i.ValueDescriptor,name:"Request headers",dataType:jE,defaultValue:{id:"endpointRequestHeadersVariableDataTypeDefaultValueId",type:i.LiteralValue,version:1,name:C.KeyValue,value:{},parent:UE,autogeneration:null,valueAsType:null},required:!0,index:0,parentRelationType:P.FixedArguments,parent:KE},XE={id:"endpointReachedTriggerActionDescriptorRefTwo",type:i.GenericReference,entityType:i.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},td={id:"endpointPathParamsArgumentDeclaration",type:i.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,name:"Path parameters",dataType:ZE,defaultValue:{id:"endpointPathParamsVariableDataTypeDefaultValueId",type:i.LiteralValue,version:1,name:C.KeyValue,value:[],parent:HE,autogeneration:null,valueAsType:null},required:!0,index:1,parentRelationType:P.FixedArguments,parent:XE},QE={id:"endpointReachedTriggerActionDescriptorRefThree",type:i.GenericReference,entityType:i.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},nd={id:"endpointRequestQueryParamsArgumentDeclaration",version: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:i.ValueDescriptor,name:"Request query params",dataType:YE,defaultValue:{id:"endpointRequestQueryParamsVariableDataTypeDefaultValueId",type:i.LiteralValue,version:1,name:C.KeyValue,value:[],parent:JE,autogeneration:null,valueAsType:null},required:!0,index:2,parentRelationType:P.FixedArguments,parent:QE},eR={id:"endpointReachedTriggerActionDescriptorRefFour",type:i.GenericReference,entityType:i.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},rd={id:"endpointRequestBodyArgumentDeclaration",version:1,description:"The main data payload of the request.",type:i.ValueDescriptor,name:"Request body",dataType:qE,defaultValue:null,index:3,required:!0,parentRelationType:P.FixedArguments,parent:eR},tR={id:"endpointResponseCodeReturnDeclarationRef",type:i.GenericReference,entityType:i.ReturnDeclaration,entityId:"endpointResponseCodeReturnDeclaration"},nR={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!1,parent:tR},rR={id:"endpointReturnStatementRef",type:i.GenericReference,entityType:i.ActionDescriptor,entityId:"endpointReturnStatement"},id={id:"endpointResponseCodeReturnDeclaration",version: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:i.ValueDescriptor,name:"Response code",dataType:nR,defaultValue:null,required:!0,index:0,parentRelationType:P.FixedReturns,parent:rR},iR={id:"endpointResponseHeadersDataTypeRef",type:i.GenericReference,entityType:i.ValueDescriptor,entityId:"endpointResponseHeadersReturnDeclaration"},aR={id:"endpointResponseHeadersReturnDeclarationRef",type:i.GenericReference,entityType:i.ReturnDeclaration,entityId:"endpointResponseHeadersReturnDeclaration"},sR={like:!1,inferred:!1,id:"endpointResponseHeadersDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:it,asType:!1,parent:aR},oR={id:"endpointReturnStatementRefTwo",type:i.GenericReference,entityType:i.ActionDescriptor,entityId:"endpointReturnStatement"},ad={id:"endpointResponseHeadersReturnDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:i.ValueDescriptor,name:"Response headers",dataType:sR,defaultValue:{id:"endpointResponseHeadersDataTypeDefaultValueId",type:i.LiteralValue,version:1,name:C.KeyValue,value:{},parent:iR,autogeneration:null,valueAsType:null},required:!1,index:1,parentRelationType:P.FixedReturns,parent:oR},lR={id:"endpointResponseBodyReturnDeclarationRef",type:i.GenericReference,entityType:i.ReturnDeclaration,entityId:"endpointResponseBodyReturnDeclaration"},dR={like:!1,inferred:!1,id:"endpointResponseBodyDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:it,parent:lR},cR={id:"endpointReturnStatementRefThree",type:i.GenericReference,entityType:i.ActionDescriptor,entityId:"endpointReturnStatement"},sd={id:"endpointResponseBodyReturnDeclaration",version:1,description:"The main data payload of the response.",type:i.ValueDescriptor,name:"Response body",dataType:dR,defaultValue:null,required:!1,index:2,parentRelationType:P.FixedReturns,parent:cR},uR={id:"endpointBuiltInBaseEntityRefFour",type:i.GenericReference,entityType:i.BuiltInBaseEntity,entityId:U.HTTP_ENDPOINT},od={id:"endpointReachedTriggerActionDescriptor",type:i.ActionDescriptor,version:1,name:"Endpoint reached",description:"Fired when the endpoint is reached.",inputs:[ed,td,nd,rd],outputs:[id,ad,sd],error:null,parent:uR},ra={id:U.HTTP_ENDPOINT,version:1,description:"An HTTP endpoint that can be reached by a client from the internet.",name:U.HTTP_ENDPOINT,type:i.BuiltInBaseEntity,interactive:!1,abstract:!0,static:!0,properties:[BE,Xl,Ql],abstractMethods:[od],extends:[],methods:[]},ct=_[i.BuiltInBaseEntity].BUILT_IN_RELATIONAL_DATABASE_ENTITY,pR={id:"relational-database-built-in-base-entity-identifier-property-data-type-ref-id",type:i.GenericReference,entityId:ct.properties.identifier.id,entityType:i.Property},yR={id:"relational-database-built-in-base-entity-identifier-property-ref-id",type:i.GenericReference,entityId:ct.properties.identifier.id,entityType:i.Property},hR={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-identifier-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parent:yR},ci={id:"relational-database-built-in-base-entity-ref-id",type:i.GenericReference,entityId:U.PERSISTED_ENTITY,entityType:i.BuiltInBaseEntity},vs={constant:!1,id:ct.properties.identifier.id,hidden:!1,required:!0,name:"Identifier name",version:1,type:i.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:i.LiteralValue,version:1,name:C.String,value:null,parent:pR,autogeneration:{type:ze.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},dataType:hR,description:"The name of the main database inside of the server instance where the data will be stored.",parent:ci},JO={id:"relational-database-built-in-base-entity-username-property-data-type-ref-id",type:i.GenericReference,entityId:"relational-database-built-in-base-entity-username-property-data-type-idd",entityType:i.Property},fR={id:"relational-database-built-in-base-entity-username-property-ref-id",type:i.GenericReference,entityId:ct.properties.username.id,entityType:i.Property},mR={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-username-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parent:fR},Is={constant:!1,hidden:!1,required:!0,id:ct.properties.username.id,name:"Username",version:1,type:i.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:i.LiteralValue,version:1,name:C.String,value:"postgres",parent:{id:"relational-database-built-in-base-entity-username-property-data-type-default-value-parent-ref-id",type:i.GenericReference,entityId:ct.properties.username.id,entityType:i.Property},autogeneration:null,valueAsType:null},dataType:mR,description:"The username that will be used to connect to the database.",parent:ci},WO={id:"relational-database-built-in-base-entity-password-property-data-type-ref-id",type:i.GenericReference,entityId:"relational-database-built-in-base-entity-password-property-data-type-id",entityType:i.Property},TR={id:"relational-database-built-in-base-entity-password-property-ref-id",type:i.GenericReference,entityId:ct.properties.password.id,entityType:i.Property},ER={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-password-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parent:TR},Ds={constant:!1,hidden:!1,required:!0,id:ct.properties.password.id,name:"Password",version:1,type:i.Property,private:!1,abstract:!0,static:!0,implements:null,index:2,defaultValue:null,dataType:ER,description:"The password that will be used to connect to the database.",parent:ci},RR={id:"relational-database-built-in-base-entity-min-size-property-data-type-ref-id",type:i.GenericReference,entityId:ct.properties.minSize.id,entityType:i.Property},gR={id:"relational-database-built-in-base-entity-min-size-property-ref-id",type:i.GenericReference,entityId:ct.properties.minSize.id,entityType:i.Property},bR={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-min-size-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ee,asType:!1,parent:gR},As={constant:!1,hidden:!0,required:!0,id:ct.properties.minSize.id,name:"Minimum GB size",version:1,type:i.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:i.LiteralValue,version:1,name:C.Number,value:6,parent:RR,autogeneration:null,valueAsType:null},dataType:bR,description:"The minimum size of the database in GB.",parent:ci},vR={id:"relational-database-built-in-base-entity-default-property-data-type-ref-id",type:i.GenericReference,entityId:ct.properties.default.id,entityType:i.Property},IR={id:"relational-database-built-in-base-entity-default-property-ref-id",type:i.GenericReference,entityId:ct.properties.default.id,entityType:i.Property},DR={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-default-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Sn,asType:!1,parent:IR},ld={constant:!1,hidden:!0,required:!0,id:ct.properties.default.id,name:"Default",version:1,type:i.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:i.LiteralValue,version:1,name:C.Boolean,value:!1,parent:vR,autogeneration:null,valueAsType:null},dataType:DR,description:"If true, this database will be the default database for the server instance and all the new entities.",parent:ci},AR={id:"relational-database-built-in-base-entity-autoscaling-property-ref-id",type:i.GenericReference,entityId:ct.properties.autoscaling.id,entityType:i.Property},SR={id:"relational-database-built-in-base-entity-autoscaling-property-data-type-ref-id",type:i.GenericReference,entityId:ct.properties.autoscaling.id,entityType:i.Property},OR={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-autoscaling-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Sn,asType:!1,parent:AR},PR={id:"relational-database-built-in-base-entity-autoscaling-property-parent-ref-id",type:i.GenericReference,entityId:U.PERSISTED_ENTITY,entityType:i.BuiltInBaseEntity},dd={constant:!1,hidden:!0,required:!0,id:ct.properties.autoscaling.id,name:"Auto-scaling",version:1,type:i.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:i.LiteralValue,version:1,name:C.Boolean,value:!1,parent:SR,autogeneration:null,valueAsType:null},dataType:OR,description:"If true, this database will automatically scale up or down in memory size, based on the usage.",parent:PR},un={id:U.RELATIONAL_DATABASE,version:1,description:"This entity provisions a relational database in the cloud.",name:U.RELATIONAL_DATABASE,type:i.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[vs,Is,Ds,As,ld,dd],abstractMethods:[],methods:[],extends:[]},CR={type:i.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",entityType:i.BuiltInBaseEntity,id:Gt.DeletePersistedEntity},cd={type:i.FunctionDeclaration,id:Gt.DeletePersistedEntity,name:Gt.DeletePersistedEntity,description:"Permanently deletes the current copy of an entity from the database",version:1,parent:CR,inputs:[],calls:[],implements:null,collapsed:!1,returnStatements:[],index:0,private:!1,x:0,y:0},wR=_[i.BuiltInBaseEntity][U.PERSISTED_ENTITY].properties,YO={id:"persisted-built-in-base-entity-database-property-data-type-ref-id",type:i.GenericReference,entityId:"persisted-built-in-base-entity-database-property-data-type-id",entityType:i.DataType},BR={id:"persisted-built-in-base-entity-database-property-ref-id",type:i.GenericReference,entityId:"persisted-built-in-base-entity-database-property-id",entityType:i.Property},MR={like:!1,inferred:!1,id:"persisted-built-in-base-entity-database-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:un,asType:!1,parent:BR},_R={id:"persisted-built-in-base-entity-database-property-parent-ref-id",type:i.GenericReference,entityId:U.PERSISTED_ENTITY,entityType:i.BuiltInBaseEntity},ui={constant:!1,hidden:!0,required:!0,id:wR.database.id,name:"Database",version:1,type:i.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:MR,description:"The database that the entity belongs to.",parent:_R},VR={id:"persisted-built-in-base-entity-primary-key-property-number-data-type-option-parent-ref-id",type:i.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",entityType:i.DataType},NR={like:!1,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-number-data-type-option-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ee,asType:!1,parentRelationType:et.OrDataTypeGroup,parent:VR},LR={id:"persisted-built-in-base-entity-primary-key-property-string-data-type-option-parent-ref-id",type:i.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",entityType:i.DataType},GR={like:!1,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-string-data-type-option-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parentRelationType:et.OrDataTypeGroup,parent:LR},$R={id:"persisted-built-in-base-entity-primary-key-property-uuid-data-type-option-parent-ref-id",type:i.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",entityType:i.DataType},FR={like:!1,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-uuid-data-type-option-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Pn,asType:!1,parentRelationType:et.OrDataTypeGroup,parent:$R},UR={id:"persisted-built-in-base-entity-primary-key-property-ref-id",type:i.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-id",entityType:i.Property},xR={like:!1,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:[FR,GR,NR],isList:!1,entity:null,asType:null,implementationChooseOne:!0,parent:UR},jR={id:"persisted-built-in-base-entity-primary-key-property-parent-ref-id",type:i.GenericReference,entityId:U.PERSISTED_ENTITY,entityType:i.BuiltInBaseEntity},pi={constant:!1,hidden:!1,required:!0,id:wR.primaryKey.id,name:"Primary key",version:1,type:i.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!1,index:0,dataType:xR,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:jR},st={id:U.PERSISTED_ENTITY,version:1,description:"An entity that is permanently stored in the database and can be accessed at any point.",name:U.PERSISTED_ENTITY,type:i.BuiltInBaseEntity,abstract:!0,static:!1,interactive:!0,abstractMethods:[],properties:[ui,pi],methods:[cd],extends:[]},kR={type:i.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",entityType:i.BuiltInBaseEntity,id:Gt.SoftDeletePersistedEntity},HO={type:i.FunctionDeclaration,id:Gt.SoftDeletePersistedEntity,name:Gt.SoftDeletePersistedEntity,description:"Designates the entity as deleted, but does not remove it from the database.",version:1,parent:kR,inputs:[],calls:[],implements:null,collapsed:!1,returnStatements:[],index:0,private:!1,x:0,y:0},qR={id:"cron-job-triggered-function-declaration-blueprint-parent-ref-id",type:i.GenericReference,entityType:i.BuiltInBaseEntity,entityId:U.HTTP_ENDPOINT},ud={id:"cron-job-triggered-function-declaration-blueprint-id",name:"Cron job triggered",version:1,type:i.ActionDescriptor,description:"Executed when the cron job is triggered",inputs:[],error:null,outputs:[],parent:qR},JR=_[i.BuiltInBaseEntity].BUILT_IN_CRON_JOB_ENTITY,zO={id:"cron-job-built-in-base-entity-expression-property-data-type-ref",type:i.GenericReference,entityId:"cron-job-built-in-base-entity-expression-property-data-type",entityType:i.DataType},WR={id:"cron-job-built-in-base-entity-expression-property-ref",type:i.GenericReference,entityId:JR.properties.expression.id,entityType:i.Property},ZO={like:!1,inferred:!1,id:"cron-job-built-in-base-entity-expression-property-data-type",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parent:WR},YR={id:"cron-job-built-in-base-entity-ref",type:i.GenericReference,entityId:U.CRON_JOB,entityType:i.BuiltInBaseEntity},HR={constant:!1,hidden:!1,required:!0,id:JR.properties.expression.id,name:"Cron expression",version:1,type:i.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:ZO,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:YR},Ss={id:U.CRON_JOB,version: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:U.CRON_JOB,type:i.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[HR],methods:[],abstractMethods:[ud],extends:[]},zR={type:i.GenericReference,id:"execution-built-in-entity-abort-method-parent-ref-id",entityType:i.BuiltInBaseEntity,entityId:"execution-built-in-entity-id"},pd={id:"execution-built-in-entity-abort-method-id",type:i.FunctionDeclaration,version:1,name:Gt.AbortExecution,description:"Aborts the execution of the entity",inputs:[],returnStatements:[],calls:[],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:zR},Os={id:U.EXECUTION,type:i.BuiltInBaseEntity,version:1,name:U.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:[pd],abstractMethods:[]},ZR=[ra,un,st,Ss,Os],KO=_[i.Condition]["not-empty"],KR={type:i.GenericReference,id:"not-empty-condition-ref",entityType:i.ActionDescriptor,entityId:Jt.NotEmpty},XR={id:KO.inputs.leftHand.id,type:i.ValueDescriptor,version:1,name:"Value",description:"The value to check if it is not empty",defaultValue:null,dataType:null,required:!0,parentRelationType:P.FixedArguments,index:0,parent:KR},gr={type:i.ActionDescriptor,id:Jt.NotEmpty,version:1,name:Jt.NotEmpty,description:"Checks if the value is not empty",parent:null,inputs:[XR],outputs:[],error:null},QR={[Jt.NotEmpty]:gr},yi=_[i.Condition]["more-than-or-equal"],eg={type:i.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-data-type-parent-ref",entityType:i.ValueDescriptor,entityId:yi.inputs.leftHand.id},tg={type:i.DataType,id:yi.inputs.leftHand.dataType.id,version:1,entity:ee,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:eg},ng={type:i.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-parent-ref",entityType:i.ActionDescriptor,entityId:qe.MoreThanOrEqual},rg={id:yi.inputs.leftHand.id,type:i.ValueDescriptor,version:1,name:"First value",description:"The first value to compare",defaultValue:null,dataType:tg,required:!0,parentRelationType:P.FixedArguments,index:0,parent:ng},ig={type:i.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-data-type-parent-ref",entityType:i.ValueDescriptor,entityId:yi.inputs.rightHand.id},ag={type:i.DataType,id:yi.inputs.rightHand.dataType.id,version:1,entity:ee,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:ig},sg={type:i.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-parent-ref",entityType:i.ActionDescriptor,entityId:qe.MoreThanOrEqual},og={id:yi.inputs.rightHand.id,type:i.ValueDescriptor,version:1,name:"Second value",description:"The second value to compare",defaultValue:null,dataType:ag,required:!0,parentRelationType:P.FixedArguments,index:1,parent:sg},hi={type:i.ActionDescriptor,id:qe.MoreThanOrEqual,version:1,name:qe.MoreThanOrEqual,description:"Checks if the value is not empty",parent:null,inputs:[rg,og],outputs:[],error:null},lg={[qe.MoreThanOrEqual]:hi},dg={...QR,...lg},cg=Object.values(dg),Ps={type:i.ActionDescriptor,id:Dn.PROJECT_PUBLICATION_COMPLETED,version:1,name:Dn.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},ug={[Dn.PROJECT_PUBLICATION_COMPLETED]:Ps},pg=Object.values(ug),yd=_[i.ValueDescriptor][os.ActionOngoingProcessOutputValue],yg={type:i.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",entityType:i.ValueDescriptor,entityId:yd.id},hg={like:!1,inferred:!1,id:yd.dataType.id,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Os,asType:!1,isList:!1,parent:yg},Cs={id:yd.id,type:i.ValueDescriptor,description:"A value that represents the ongoing process of the parent action",version:1,name:"Process",defaultValue:null,dataType:hg,required:!0,index:0,parent:null,parentRelationType:P.OngoingProcessExecution},fg=[Cs],mg=[...Sp,...Lm,...SE,...ZR,...cg,...pg,...fg];var le;(function(r){r.assertEqual=a=>a;function e(a){}r.assertIs=e;function t(a){throw new Error}r.assertNever=t,r.arrayToEnum=a=>{const s={};for(const o of a)s[o]=o;return s},r.getValidEnumValues=a=>{const s=r.objectKeys(a).filter(l=>typeof a[a[l]]!="number"),o={};for(const l of s)o[l]=a[l];return r.objectValues(o)},r.objectValues=a=>r.objectKeys(a).map(function(s){return a[s]}),r.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const s=[];for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&s.push(o);return s},r.find=(a,s)=>{for(const o of a)if(s(o))return o},r.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function n(a,s=" | "){return a.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}r.joinValues=n,r.jsonStringifyReplacer=(a,s)=>typeof s=="bigint"?s.toString():s})(le||(le={}));var hd;(function(r){r.mergeShapes=(e,t)=>({...e,...t})})(hd||(hd={}));const x=le.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Hn=r=>{switch(typeof r){case"undefined":return x.undefined;case"string":return x.string;case"number":return isNaN(r)?x.nan:x.number;case"boolean":return x.boolean;case"function":return x.function;case"bigint":return x.bigint;case"symbol":return x.symbol;case"object":return Array.isArray(r)?x.array:r===null?x.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?x.promise:typeof Map<"u"&&r instanceof Map?x.map:typeof Set<"u"&&r instanceof Set?x.set:typeof Date<"u"&&r instanceof Date?x.date:x.object;default:return x.unknown}},N=le.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"]),XO=r=>JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:");class wt extends Error{constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(s){return s.message},n={_errors:[]},a=s=>{for(const o of s.issues)if(o.code==="invalid_union")o.unionErrors.map(a);else if(o.code==="invalid_return_type")a(o.returnTypeError);else if(o.code==="invalid_arguments")a(o.argumentsError);else if(o.path.length===0)n._errors.push(t(o));else{let l=n,p=0;for(;p<o.path.length;){const u=o.path[p];p===o.path.length-1?(l[u]=l[u]||{_errors:[]},l[u]._errors.push(t(o))):l[u]=l[u]||{_errors:[]},l=l[u],p++}}};return a(this),n}static assert(e){if(!(e instanceof wt))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,le.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=t=>t.message){const t={},n=[];for(const a of this.issues)a.path.length>0?(t[a.path[0]]=t[a.path[0]]||[],t[a.path[0]].push(e(a))):n.push(e(a));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}wt.create=r=>new wt(r);const fi=(r,e)=>{let t;switch(r.code){case N.invalid_type:r.received===x.undefined?t="Required":t=`Expected ${r.expected}, received ${r.received}`;break;case N.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(r.expected,le.jsonStringifyReplacer)}`;break;case N.unrecognized_keys:t=`Unrecognized key(s) in object: ${le.joinValues(r.keys,", ")}`;break;case N.invalid_union:t="Invalid input";break;case N.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${le.joinValues(r.options)}`;break;case N.invalid_enum_value:t=`Invalid enum value. Expected ${le.joinValues(r.options)}, received '${r.received}'`;break;case N.invalid_arguments:t="Invalid function arguments";break;case N.invalid_return_type:t="Invalid function return type";break;case N.invalid_date:t="Invalid date";break;case N.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(t=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?t=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?t=`Invalid input: must end with "${r.validation.endsWith}"`:le.assertNever(r.validation):r.validation!=="regex"?t=`Invalid ${r.validation}`:t="Invalid";break;case N.too_small:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:t="Invalid input";break;case N.too_big:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?t=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:t="Invalid input";break;case N.custom:t="Invalid input";break;case N.invalid_intersection_types:t="Intersection results could not be merged";break;case N.not_multiple_of:t=`Number must be a multiple of ${r.multipleOf}`;break;case N.not_finite:t="Number must be finite";break;default:t=e.defaultError,le.assertNever(r)}return{message:t}};let Tg=fi;function QO(r){Tg=r}function ws(){return Tg}const Bs=r=>{const{data:e,path:t,errorMaps:n,issueData:a}=r,s=[...t,...a.path||[]],o={...a,path:s};if(a.message!==void 0)return{...a,path:s,message:a.message};let l="";const p=n.filter(u=>!!u).slice().reverse();for(const u of p)l=u(o,{data:e,defaultError:l}).message;return{...a,path:s,message:l}},eP=[];function F(r,e){const t=ws(),n=Bs({issueData:e,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,t,t===fi?void 0:fi].filter(a=>!!a)});r.common.issues.push(n)}class yt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const a of t){if(a.status==="aborted")return z;a.status==="dirty"&&e.dirty(),n.push(a.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const a of t){const s=await a.key,o=await a.value;n.push({key:s,value:o})}return yt.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const a of t){const{key:s,value:o}=a;if(s.status==="aborted"||o.status==="aborted")return z;s.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof o.value<"u"||a.alwaysSet)&&(n[s.value]=o.value)}return{status:e.value,value:n}}}const z=Object.freeze({status:"aborted"}),mi=r=>({status:"dirty",value:r}),gt=r=>({status:"valid",value:r}),fd=r=>r.status==="aborted",md=r=>r.status==="dirty",ia=r=>r.status==="valid",aa=r=>typeof Promise<"u"&&r instanceof Promise;function Ms(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)}function Eg(r,e,t,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!a:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(r,t):a?a.value=t:e.set(r,t),t}typeof SuppressedError=="function"&&SuppressedError;var W;(function(r){r.errToObj=e=>typeof e=="string"?{message:e}:e||{},r.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(W||(W={}));var sa,oa;class pn{constructor(e,t,n,a){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=a}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 Rg=(r,e)=>{if(ia(e))return{success:!0,data:e.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 t=new wt(r.common.issues);return this._error=t,this._error}}};function ne(r){if(!r)return{};const{errorMap:e,invalid_type_error:t,required_error:n,description:a}=r;if(e&&(t||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(o,l)=>{var p,u;const{message:h}=r;return o.code==="invalid_enum_value"?{message:h??l.defaultError}:typeof l.data>"u"?{message:(p=h??n)!==null&&p!==void 0?p:l.defaultError}:o.code!=="invalid_type"?{message:l.defaultError}:{message:(u=h??t)!==null&&u!==void 0?u:l.defaultError}},description:a}}class ie{constructor(e){this.spa=this.safeParseAsync,this._def=e,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)}get description(){return this._def.description}_getType(e){return Hn(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:Hn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new yt,ctx:{common:e.parent.common,data:e.data,parsedType:Hn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(aa(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const a={common:{issues:[],async:(n=t==null?void 0:t.async)!==null&&n!==void 0?n:!1,contextualErrorMap:t==null?void 0:t.errorMap},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Hn(e)},s=this._parseSync({data:e,path:a.path,parent:a});return Rg(a,s)}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:t==null?void 0:t.errorMap,async:!0},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Hn(e)},a=this._parse({data:e,path:n.path,parent:n}),s=await(aa(a)?a:Promise.resolve(a));return Rg(n,s)}refine(e,t){const n=a=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(a):t;return this._refinement((a,s)=>{const o=e(a),l=()=>s.addIssue({code:N.custom,...n(a)});return typeof Promise<"u"&&o instanceof Promise?o.then(p=>p?!0:(l(),!1)):o?!0:(l(),!1)})}refinement(e,t){return this._refinement((n,a)=>e(n)?!0:(a.addIssue(typeof t=="function"?t(n,a):t),!1))}_refinement(e){return new nn({schema:this,typeName:Y.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return hn.create(this,this._def)}nullable(){return Xn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return tn.create(this,this._def)}promise(){return gi.create(this,this._def)}or(e){return ua.create([this,e],this._def)}and(e){return pa.create(this,e,this._def)}transform(e){return new nn({...ne(this._def),schema:this,typeName:Y.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new Ta({...ne(this._def),innerType:this,defaultValue:t,typeName:Y.ZodDefault})}brand(){return new Rd({typeName:Y.ZodBranded,type:this,...ne(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new Ea({...ne(this._def),innerType:this,catchValue:t,typeName:Y.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return Ra.create(this,e)}readonly(){return ga.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const tP=/^c[^\s-]{8,}$/i,nP=/^[0-9a-z]+$/,rP=/^[0-9A-HJKMNP-TV-Z]{26}$/,iP=/^[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,aP=/^[a-z0-9_-]{21}$/i,sP=/^[-+]?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)?)??$/,oP=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,lP="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Td;const dP=/^(?:(?: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])$/,cP=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,uP=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,gg="((\\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])))",pP=new RegExp(`^${gg}$`);function bg(r){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return r.precision?e=`${e}\\.\\d{${r.precision}}`:r.precision==null&&(e=`${e}(\\.\\d+)?`),e}function yP(r){return new RegExp(`^${bg(r)}$`)}function vg(r){let e=`${gg}T${bg(r)}`;const t=[];return t.push(r.local?"Z?":"Z"),r.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function hP(r,e){return!!((e==="v4"||!e)&&dP.test(r)||(e==="v6"||!e)&&cP.test(r))}class en extends ie{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==x.string){const s=this._getOrReturnCtx(e);return F(s,{code:N.invalid_type,expected:x.string,received:s.parsedType}),z}const n=new yt;let a;for(const s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(a=this._getOrReturnCtx(e,a),F(a,{code:N.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")e.data.length>s.value&&(a=this._getOrReturnCtx(e,a),F(a,{code:N.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){const o=e.data.length>s.value,l=e.data.length<s.value;(o||l)&&(a=this._getOrReturnCtx(e,a),o?F(a,{code:N.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):l&&F(a,{code:N.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind==="email")oP.test(e.data)||(a=this._getOrReturnCtx(e,a),F(a,{validation:"email",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="emoji")Td||(Td=new RegExp(lP,"u")),Td.test(e.data)||(a=this._getOrReturnCtx(e,a),F(a,{validation:"emoji",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")iP.test(e.data)||(a=this._getOrReturnCtx(e,a),F(a,{validation:"uuid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="nanoid")aP.test(e.data)||(a=this._getOrReturnCtx(e,a),F(a,{validation:"nanoid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")tP.test(e.data)||(a=this._getOrReturnCtx(e,a),F(a,{validation:"cuid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")nP.test(e.data)||(a=this._getOrReturnCtx(e,a),F(a,{validation:"cuid2",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")rP.test(e.data)||(a=this._getOrReturnCtx(e,a),F(a,{validation:"ulid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),F(a,{validation:"url",code:N.invalid_string,message:s.message}),n.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),F(a,{validation:"regex",code:N.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(a=this._getOrReturnCtx(e,a),F(a,{code:N.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(a=this._getOrReturnCtx(e,a),F(a,{code:N.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(a=this._getOrReturnCtx(e,a),F(a,{code:N.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?vg(s).test(e.data)||(a=this._getOrReturnCtx(e,a),F(a,{code:N.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="date"?pP.test(e.data)||(a=this._getOrReturnCtx(e,a),F(a,{code:N.invalid_string,validation:"date",message:s.message}),n.dirty()):s.kind==="time"?yP(s).test(e.data)||(a=this._getOrReturnCtx(e,a),F(a,{code:N.invalid_string,validation:"time",message:s.message}),n.dirty()):s.kind==="duration"?sP.test(e.data)||(a=this._getOrReturnCtx(e,a),F(a,{validation:"duration",code:N.invalid_string,message:s.message}),n.dirty()):s.kind==="ip"?hP(e.data,s.version)||(a=this._getOrReturnCtx(e,a),F(a,{validation:"ip",code:N.invalid_string,message:s.message}),n.dirty()):s.kind==="base64"?uP.test(e.data)||(a=this._getOrReturnCtx(e,a),F(a,{validation:"base64",code:N.invalid_string,message:s.message}),n.dirty()):le.assertNever(s);return{status:n.value,value:e.data}}_regex(e,t,n){return this.refinement(a=>e.test(a),{validation:t,code:N.invalid_string,...W.errToObj(n)})}_addCheck(e){return new en({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...W.errToObj(e)})}url(e){return this._addCheck({kind:"url",...W.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...W.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...W.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...W.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...W.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...W.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...W.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...W.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...W.errToObj(e)})}datetime(e){var t,n;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(t=e==null?void 0:e.offset)!==null&&t!==void 0?t:!1,local:(n=e==null?void 0:e.local)!==null&&n!==void 0?n:!1,...W.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...W.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...W.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...W.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t==null?void 0:t.position,...W.errToObj(t==null?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...W.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...W.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...W.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...W.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...W.errToObj(t)})}nonempty(e){return this.min(1,W.errToObj(e))}trim(){return new en({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new en({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new en({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get minLength(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}en.create=r=>{var e;return new en({checks:[],typeName:Y.ZodString,coerce:(e=r==null?void 0:r.coerce)!==null&&e!==void 0?e:!1,...ne(r)})};function fP(r,e){const t=(r.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,a=t>n?t:n,s=parseInt(r.toFixed(a).replace(".","")),o=parseInt(e.toFixed(a).replace(".",""));return s%o/Math.pow(10,a)}class zn extends ie{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==x.number){const s=this._getOrReturnCtx(e);return F(s,{code:N.invalid_type,expected:x.number,received:s.parsedType}),z}let n;const a=new yt;for(const s of this._def.checks)s.kind==="int"?le.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),F(n,{code:N.invalid_type,expected:"integer",received:"float",message:s.message}),a.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),F(n,{code:N.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),F(n,{code:N.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="multipleOf"?fP(e.data,s.value)!==0&&(n=this._getOrReturnCtx(e,n),F(n,{code:N.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),F(n,{code:N.not_finite,message:s.message}),a.dirty()):le.assertNever(s);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,W.toString(t))}gt(e,t){return this.setLimit("min",e,!1,W.toString(t))}lte(e,t){return this.setLimit("max",e,!0,W.toString(t))}lt(e,t){return this.setLimit("max",e,!1,W.toString(t))}setLimit(e,t,n,a){return new zn({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:W.toString(a)}]})}_addCheck(e){return new zn({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:W.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:W.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:W.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:W.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:W.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:W.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:W.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:W.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:W.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&le.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(t===null||n.value>t)&&(t=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}zn.create=r=>new zn({checks:[],typeName:Y.ZodNumber,coerce:(r==null?void 0:r.coerce)||!1,...ne(r)});class Zn extends ie{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==x.bigint){const s=this._getOrReturnCtx(e);return F(s,{code:N.invalid_type,expected:x.bigint,received:s.parsedType}),z}let n;const a=new yt;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),F(n,{code:N.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),F(n,{code:N.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),F(n,{code:N.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):le.assertNever(s);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,W.toString(t))}gt(e,t){return this.setLimit("min",e,!1,W.toString(t))}lte(e,t){return this.setLimit("max",e,!0,W.toString(t))}lt(e,t){return this.setLimit("max",e,!1,W.toString(t))}setLimit(e,t,n,a){return new Zn({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:W.toString(a)}]})}_addCheck(e){return new Zn({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:W.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:W.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:W.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:W.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:W.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}Zn.create=r=>{var e;return new Zn({checks:[],typeName:Y.ZodBigInt,coerce:(e=r==null?void 0:r.coerce)!==null&&e!==void 0?e:!1,...ne(r)})};class la extends ie{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==x.boolean){const n=this._getOrReturnCtx(e);return F(n,{code:N.invalid_type,expected:x.boolean,received:n.parsedType}),z}return gt(e.data)}}la.create=r=>new la({typeName:Y.ZodBoolean,coerce:(r==null?void 0:r.coerce)||!1,...ne(r)});class br extends ie{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==x.date){const s=this._getOrReturnCtx(e);return F(s,{code:N.invalid_type,expected:x.date,received:s.parsedType}),z}if(isNaN(e.data.getTime())){const s=this._getOrReturnCtx(e);return F(s,{code:N.invalid_date}),z}const n=new yt;let a;for(const s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(a=this._getOrReturnCtx(e,a),F(a,{code:N.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(a=this._getOrReturnCtx(e,a),F(a,{code:N.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):le.assertNever(s);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new br({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:W.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:W.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e!=null?new Date(e):null}}br.create=r=>new br({checks:[],coerce:(r==null?void 0:r.coerce)||!1,typeName:Y.ZodDate,...ne(r)});class _s extends ie{_parse(e){if(this._getType(e)!==x.symbol){const n=this._getOrReturnCtx(e);return F(n,{code:N.invalid_type,expected:x.symbol,received:n.parsedType}),z}return gt(e.data)}}_s.create=r=>new _s({typeName:Y.ZodSymbol,...ne(r)});class da extends ie{_parse(e){if(this._getType(e)!==x.undefined){const n=this._getOrReturnCtx(e);return F(n,{code:N.invalid_type,expected:x.undefined,received:n.parsedType}),z}return gt(e.data)}}da.create=r=>new da({typeName:Y.ZodUndefined,...ne(r)});class ca extends ie{_parse(e){if(this._getType(e)!==x.null){const n=this._getOrReturnCtx(e);return F(n,{code:N.invalid_type,expected:x.null,received:n.parsedType}),z}return gt(e.data)}}ca.create=r=>new ca({typeName:Y.ZodNull,...ne(r)});class Ti extends ie{constructor(){super(...arguments),this._any=!0}_parse(e){return gt(e.data)}}Ti.create=r=>new Ti({typeName:Y.ZodAny,...ne(r)});class vr extends ie{constructor(){super(...arguments),this._unknown=!0}_parse(e){return gt(e.data)}}vr.create=r=>new vr({typeName:Y.ZodUnknown,...ne(r)});class Bn extends ie{_parse(e){const t=this._getOrReturnCtx(e);return F(t,{code:N.invalid_type,expected:x.never,received:t.parsedType}),z}}Bn.create=r=>new Bn({typeName:Y.ZodNever,...ne(r)});class Vs extends ie{_parse(e){if(this._getType(e)!==x.undefined){const n=this._getOrReturnCtx(e);return F(n,{code:N.invalid_type,expected:x.void,received:n.parsedType}),z}return gt(e.data)}}Vs.create=r=>new Vs({typeName:Y.ZodVoid,...ne(r)});class tn extends ie{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),a=this._def;if(t.parsedType!==x.array)return F(t,{code:N.invalid_type,expected:x.array,received:t.parsedType}),z;if(a.exactLength!==null){const o=t.data.length>a.exactLength.value,l=t.data.length<a.exactLength.value;(o||l)&&(F(t,{code:o?N.too_big:N.too_small,minimum:l?a.exactLength.value:void 0,maximum:o?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),n.dirty())}if(a.minLength!==null&&t.data.length<a.minLength.value&&(F(t,{code:N.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),n.dirty()),a.maxLength!==null&&t.data.length>a.maxLength.value&&(F(t,{code:N.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((o,l)=>a.type._parseAsync(new pn(t,o,t.path,l)))).then(o=>yt.mergeArray(n,o));const s=[...t.data].map((o,l)=>a.type._parseSync(new pn(t,o,t.path,l)));return yt.mergeArray(n,s)}get element(){return this._def.type}min(e,t){return new tn({...this._def,minLength:{value:e,message:W.toString(t)}})}max(e,t){return new tn({...this._def,maxLength:{value:e,message:W.toString(t)}})}length(e,t){return new tn({...this._def,exactLength:{value:e,message:W.toString(t)}})}nonempty(e){return this.min(1,e)}}tn.create=(r,e)=>new tn({type:r,minLength:null,maxLength:null,exactLength:null,typeName:Y.ZodArray,...ne(e)});function Ei(r){if(r instanceof Ke){const e={};for(const t in r.shape){const n=r.shape[t];e[t]=hn.create(Ei(n))}return new Ke({...r._def,shape:()=>e})}else return r instanceof tn?new tn({...r._def,type:Ei(r.element)}):r instanceof hn?hn.create(Ei(r.unwrap())):r instanceof Xn?Xn.create(Ei(r.unwrap())):r instanceof yn?yn.create(r.items.map(e=>Ei(e))):r}class Ke extends ie{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),t=le.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==x.object){const u=this._getOrReturnCtx(e);return F(u,{code:N.invalid_type,expected:x.object,received:u.parsedType}),z}const{status:n,ctx:a}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),l=[];if(!(this._def.catchall instanceof Bn&&this._def.unknownKeys==="strip"))for(const u in a.data)o.includes(u)||l.push(u);const p=[];for(const u of o){const h=s[u],f=a.data[u];p.push({key:{status:"valid",value:u},value:h._parse(new pn(a,f,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof Bn){const u=this._def.unknownKeys;if(u==="passthrough")for(const h of l)p.push({key:{status:"valid",value:h},value:{status:"valid",value:a.data[h]}});else if(u==="strict")l.length>0&&(F(a,{code:N.unrecognized_keys,keys:l}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const h of l){const f=a.data[h];p.push({key:{status:"valid",value:h},value:u._parse(new pn(a,f,a.path,h)),alwaysSet:h in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const u=[];for(const h of p){const f=await h.key,R=await h.value;u.push({key:f,value:R,alwaysSet:h.alwaysSet})}return u}).then(u=>yt.mergeObjectSync(n,u)):yt.mergeObjectSync(n,p)}get shape(){return this._def.shape()}strict(e){return W.errToObj,new Ke({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,n)=>{var a,s,o,l;const p=(o=(s=(a=this._def).errorMap)===null||s===void 0?void 0:s.call(a,t,n).message)!==null&&o!==void 0?o:n.defaultError;return t.code==="unrecognized_keys"?{message:(l=W.errToObj(e).message)!==null&&l!==void 0?l:p}:{message:p}}}:{}})}strip(){return new Ke({...this._def,unknownKeys:"strip"})}passthrough(){return new Ke({...this._def,unknownKeys:"passthrough"})}extend(e){return new Ke({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Ke({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Y.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Ke({...this._def,catchall:e})}pick(e){const t={};return le.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new Ke({...this._def,shape:()=>t})}omit(e){const t={};return le.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new Ke({...this._def,shape:()=>t})}deepPartial(){return Ei(this)}partial(e){const t={};return le.objectKeys(this.shape).forEach(n=>{const a=this.shape[n];e&&!e[n]?t[n]=a:t[n]=a.optional()}),new Ke({...this._def,shape:()=>t})}required(e){const t={};return le.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof hn;)s=s._def.innerType;t[n]=s}}),new Ke({...this._def,shape:()=>t})}keyof(){return Ig(le.objectKeys(this.shape))}}Ke.create=(r,e)=>new Ke({shape:()=>r,unknownKeys:"strip",catchall:Bn.create(),typeName:Y.ZodObject,...ne(e)}),Ke.strictCreate=(r,e)=>new Ke({shape:()=>r,unknownKeys:"strict",catchall:Bn.create(),typeName:Y.ZodObject,...ne(e)}),Ke.lazycreate=(r,e)=>new Ke({shape:r,unknownKeys:"strip",catchall:Bn.create(),typeName:Y.ZodObject,...ne(e)});class ua extends ie{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;function a(s){for(const l of s)if(l.result.status==="valid")return l.result;for(const l of s)if(l.result.status==="dirty")return t.common.issues.push(...l.ctx.common.issues),l.result;const o=s.map(l=>new wt(l.ctx.common.issues));return F(t,{code:N.invalid_union,unionErrors:o}),z}if(t.common.async)return Promise.all(n.map(async s=>{const o={...t,common:{...t.common,issues:[]},parent:null};return{result:await s._parseAsync({data:t.data,path:t.path,parent:o}),ctx:o}})).then(a);{let s;const o=[];for(const p of n){const u={...t,common:{...t.common,issues:[]},parent:null},h=p._parseSync({data:t.data,path:t.path,parent:u});if(h.status==="valid")return h;h.status==="dirty"&&!s&&(s={result:h,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(s)return t.common.issues.push(...s.ctx.common.issues),s.result;const l=o.map(p=>new wt(p));return F(t,{code:N.invalid_union,unionErrors:l}),z}}get options(){return this._def.options}}ua.create=(r,e)=>new ua({options:r,typeName:Y.ZodUnion,...ne(e)});const Mn=r=>r instanceof ha?Mn(r.schema):r instanceof nn?Mn(r.innerType()):r instanceof fa?[r.value]:r instanceof Kn?r.options:r instanceof ma?le.objectValues(r.enum):r instanceof Ta?Mn(r._def.innerType):r instanceof da?[void 0]:r instanceof ca?[null]:r instanceof hn?[void 0,...Mn(r.unwrap())]:r instanceof Xn?[null,...Mn(r.unwrap())]:r instanceof Rd||r instanceof ga?Mn(r.unwrap()):r instanceof Ea?Mn(r._def.innerType):[];class Ns extends ie{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==x.object)return F(t,{code:N.invalid_type,expected:x.object,received:t.parsedType}),z;const n=this.discriminator,a=t.data[n],s=this.optionsMap.get(a);return s?t.common.async?s._parseAsync({data:t.data,path:t.path,parent:t}):s._parseSync({data:t.data,path:t.path,parent:t}):(F(t,{code:N.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),z)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const a=new Map;for(const s of t){const o=Mn(s.shape[e]);if(!o.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const l of o){if(a.has(l))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(l)}`);a.set(l,s)}}return new Ns({typeName:Y.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:a,...ne(n)})}}function Ed(r,e){const t=Hn(r),n=Hn(e);if(r===e)return{valid:!0,data:r};if(t===x.object&&n===x.object){const a=le.objectKeys(e),s=le.objectKeys(r).filter(l=>a.indexOf(l)!==-1),o={...r,...e};for(const l of s){const p=Ed(r[l],e[l]);if(!p.valid)return{valid:!1};o[l]=p.data}return{valid:!0,data:o}}else if(t===x.array&&n===x.array){if(r.length!==e.length)return{valid:!1};const a=[];for(let s=0;s<r.length;s++){const o=r[s],l=e[s],p=Ed(o,l);if(!p.valid)return{valid:!1};a.push(p.data)}return{valid:!0,data:a}}else return t===x.date&&n===x.date&&+r==+e?{valid:!0,data:r}:{valid:!1}}class pa extends ie{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),a=(s,o)=>{if(fd(s)||fd(o))return z;const l=Ed(s.value,o.value);return l.valid?((md(s)||md(o))&&t.dirty(),{status:t.value,value:l.data}):(F(n,{code:N.invalid_intersection_types}),z)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,o])=>a(s,o)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}pa.create=(r,e,t)=>new pa({left:r,right:e,typeName:Y.ZodIntersection,...ne(t)});class yn extends ie{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==x.array)return F(n,{code:N.invalid_type,expected:x.array,received:n.parsedType}),z;if(n.data.length<this._def.items.length)return F(n,{code:N.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),z;!this._def.rest&&n.data.length>this._def.items.length&&(F(n,{code:N.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const s=[...n.data].map((o,l)=>{const p=this._def.items[l]||this._def.rest;return p?p._parse(new pn(n,o,n.path,l)):null}).filter(o=>!!o);return n.common.async?Promise.all(s).then(o=>yt.mergeArray(t,o)):yt.mergeArray(t,s)}get items(){return this._def.items}rest(e){return new yn({...this._def,rest:e})}}yn.create=(r,e)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new yn({items:r,typeName:Y.ZodTuple,rest:null,...ne(e)})};class ya extends ie{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==x.object)return F(n,{code:N.invalid_type,expected:x.object,received:n.parsedType}),z;const a=[],s=this._def.keyType,o=this._def.valueType;for(const l in n.data)a.push({key:s._parse(new pn(n,l,n.path,l)),value:o._parse(new pn(n,n.data[l],n.path,l)),alwaysSet:l in n.data});return n.common.async?yt.mergeObjectAsync(t,a):yt.mergeObjectSync(t,a)}get element(){return this._def.valueType}static create(e,t,n){return t instanceof ie?new ya({keyType:e,valueType:t,typeName:Y.ZodRecord,...ne(n)}):new ya({keyType:en.create(),valueType:e,typeName:Y.ZodRecord,...ne(t)})}}class Ls extends ie{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==x.map)return F(n,{code:N.invalid_type,expected:x.map,received:n.parsedType}),z;const a=this._def.keyType,s=this._def.valueType,o=[...n.data.entries()].map(([l,p],u)=>({key:a._parse(new pn(n,l,n.path,[u,"key"])),value:s._parse(new pn(n,p,n.path,[u,"value"]))}));if(n.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const p of o){const u=await p.key,h=await p.value;if(u.status==="aborted"||h.status==="aborted")return z;(u.status==="dirty"||h.status==="dirty")&&t.dirty(),l.set(u.value,h.value)}return{status:t.value,value:l}})}else{const l=new Map;for(const p of o){const u=p.key,h=p.value;if(u.status==="aborted"||h.status==="aborted")return z;(u.status==="dirty"||h.status==="dirty")&&t.dirty(),l.set(u.value,h.value)}return{status:t.value,value:l}}}}Ls.create=(r,e,t)=>new Ls({valueType:e,keyType:r,typeName:Y.ZodMap,...ne(t)});class Ir extends ie{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==x.set)return F(n,{code:N.invalid_type,expected:x.set,received:n.parsedType}),z;const a=this._def;a.minSize!==null&&n.data.size<a.minSize.value&&(F(n,{code:N.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),t.dirty()),a.maxSize!==null&&n.data.size>a.maxSize.value&&(F(n,{code:N.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),t.dirty());const s=this._def.valueType;function o(p){const u=new Set;for(const h of p){if(h.status==="aborted")return z;h.status==="dirty"&&t.dirty(),u.add(h.value)}return{status:t.value,value:u}}const l=[...n.data.values()].map((p,u)=>s._parse(new pn(n,p,n.path,u)));return n.common.async?Promise.all(l).then(p=>o(p)):o(l)}min(e,t){return new Ir({...this._def,minSize:{value:e,message:W.toString(t)}})}max(e,t){return new Ir({...this._def,maxSize:{value:e,message:W.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Ir.create=(r,e)=>new Ir({valueType:r,minSize:null,maxSize:null,typeName:Y.ZodSet,...ne(e)});class Ri extends ie{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==x.function)return F(t,{code:N.invalid_type,expected:x.function,received:t.parsedType}),z;function n(l,p){return Bs({data:l,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,ws(),fi].filter(u=>!!u),issueData:{code:N.invalid_arguments,argumentsError:p}})}function a(l,p){return Bs({data:l,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,ws(),fi].filter(u=>!!u),issueData:{code:N.invalid_return_type,returnTypeError:p}})}const s={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof gi){const l=this;return gt(async function(...p){const u=new wt([]),h=await l._def.args.parseAsync(p,s).catch(v=>{throw u.addIssue(n(p,v)),u}),f=await Reflect.apply(o,this,h);return await l._def.returns._def.type.parseAsync(f,s).catch(v=>{throw u.addIssue(a(f,v)),u})})}else{const l=this;return gt(function(...p){const u=l._def.args.safeParse(p,s);if(!u.success)throw new wt([n(p,u.error)]);const h=Reflect.apply(o,this,u.data),f=l._def.returns.safeParse(h,s);if(!f.success)throw new wt([a(h,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Ri({...this._def,args:yn.create(e).rest(vr.create())})}returns(e){return new Ri({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new Ri({args:e||yn.create([]).rest(vr.create()),returns:t||vr.create(),typeName:Y.ZodFunction,...ne(n)})}}class ha extends ie{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ha.create=(r,e)=>new ha({getter:r,typeName:Y.ZodLazy,...ne(e)});class fa extends ie{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return F(t,{received:t.data,code:N.invalid_literal,expected:this._def.value}),z}return{status:"valid",value:e.data}}get value(){return this._def.value}}fa.create=(r,e)=>new fa({value:r,typeName:Y.ZodLiteral,...ne(e)});function Ig(r,e){return new Kn({values:r,typeName:Y.ZodEnum,...ne(e)})}class Kn extends ie{constructor(){super(...arguments),sa.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),n=this._def.values;return F(t,{expected:le.joinValues(n),received:t.parsedType,code:N.invalid_type}),z}if(Ms(this,sa,"f")||Eg(this,sa,new Set(this._def.values),"f"),!Ms(this,sa,"f").has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return F(t,{received:t.data,code:N.invalid_enum_value,options:n}),z}return gt(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Kn.create(e,{...this._def,...t})}exclude(e,t=this._def){return Kn.create(this.options.filter(n=>!e.includes(n)),{...this._def,...t})}}sa=new WeakMap,Kn.create=Ig;class ma extends ie{constructor(){super(...arguments),oa.set(this,void 0)}_parse(e){const t=le.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==x.string&&n.parsedType!==x.number){const a=le.objectValues(t);return F(n,{expected:le.joinValues(a),received:n.parsedType,code:N.invalid_type}),z}if(Ms(this,oa,"f")||Eg(this,oa,new Set(le.getValidEnumValues(this._def.values)),"f"),!Ms(this,oa,"f").has(e.data)){const a=le.objectValues(t);return F(n,{received:n.data,code:N.invalid_enum_value,options:a}),z}return gt(e.data)}get enum(){return this._def.values}}oa=new WeakMap,ma.create=(r,e)=>new ma({values:r,typeName:Y.ZodNativeEnum,...ne(e)});class gi extends ie{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==x.promise&&t.common.async===!1)return F(t,{code:N.invalid_type,expected:x.promise,received:t.parsedType}),z;const n=t.parsedType===x.promise?t.data:Promise.resolve(t.data);return gt(n.then(a=>this._def.type.parseAsync(a,{path:t.path,errorMap:t.common.contextualErrorMap})))}}gi.create=(r,e)=>new gi({type:r,typeName:Y.ZodPromise,...ne(e)});class nn extends ie{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Y.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),a=this._def.effect||null,s={addIssue:o=>{F(n,o),o.fatal?t.abort():t.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),a.type==="preprocess"){const o=a.transform(n.data,s);if(n.common.async)return Promise.resolve(o).then(async l=>{if(t.value==="aborted")return z;const p=await this._def.schema._parseAsync({data:l,path:n.path,parent:n});return p.status==="aborted"?z:p.status==="dirty"||t.value==="dirty"?mi(p.value):p});{if(t.value==="aborted")return z;const l=this._def.schema._parseSync({data:o,path:n.path,parent:n});return l.status==="aborted"?z:l.status==="dirty"||t.value==="dirty"?mi(l.value):l}}if(a.type==="refinement"){const o=l=>{const p=a.refinement(l,s);if(n.common.async)return Promise.resolve(p);if(p instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(n.common.async===!1){const l=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return l.status==="aborted"?z:(l.status==="dirty"&&t.dirty(),o(l.value),{status:t.value,value:l.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(l=>l.status==="aborted"?z:(l.status==="dirty"&&t.dirty(),o(l.value).then(()=>({status:t.value,value:l.value}))))}if(a.type==="transform")if(n.common.async===!1){const o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!ia(o))return o;const l=a.transform(o.value,s);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:l}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>ia(o)?Promise.resolve(a.transform(o.value,s)).then(l=>({status:t.value,value:l})):o);le.assertNever(a)}}nn.create=(r,e,t)=>new nn({schema:r,typeName:Y.ZodEffects,effect:e,...ne(t)}),nn.createWithPreprocess=(r,e,t)=>new nn({schema:e,effect:{type:"preprocess",transform:r},typeName:Y.ZodEffects,...ne(t)});class hn extends ie{_parse(e){return this._getType(e)===x.undefined?gt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}hn.create=(r,e)=>new hn({innerType:r,typeName:Y.ZodOptional,...ne(e)});class Xn extends ie{_parse(e){return this._getType(e)===x.null?gt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Xn.create=(r,e)=>new Xn({innerType:r,typeName:Y.ZodNullable,...ne(e)});class Ta extends ie{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===x.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Ta.create=(r,e)=>new Ta({innerType:r,typeName:Y.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ne(e)});class Ea extends ie{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return aa(a)?a.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new wt(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new wt(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Ea.create=(r,e)=>new Ea({innerType:r,typeName:Y.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ne(e)});class Gs extends ie{_parse(e){if(this._getType(e)!==x.nan){const n=this._getOrReturnCtx(e);return F(n,{code:N.invalid_type,expected:x.nan,received:n.parsedType}),z}return{status:"valid",value:e.data}}}Gs.create=r=>new Gs({typeName:Y.ZodNaN,...ne(r)});const mP=Symbol("zod_brand");class Rd extends ie{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class Ra extends ie{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?z:s.status==="dirty"?(t.dirty(),mi(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{const a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?z:a.status==="dirty"?(t.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(e,t){return new Ra({in:e,out:t,typeName:Y.ZodPipeline})}}class ga extends ie{_parse(e){const t=this._def.innerType._parse(e),n=a=>(ia(a)&&(a.value=Object.freeze(a.value)),a);return aa(t)?t.then(a=>n(a)):n(t)}unwrap(){return this._def.innerType}}ga.create=(r,e)=>new ga({innerType:r,typeName:Y.ZodReadonly,...ne(e)});function Dg(r,e={},t){return r?Ti.create().superRefine((n,a)=>{var s,o;if(!r(n)){const l=typeof e=="function"?e(n):typeof e=="string"?{message:e}:e,p=(o=(s=l.fatal)!==null&&s!==void 0?s:t)!==null&&o!==void 0?o:!0,u=typeof l=="string"?{message:l}:l;a.addIssue({code:"custom",...u,fatal:p})}}):Ti.create()}const TP={object:Ke.lazycreate};var Y;(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"})(Y||(Y={}));const EP=(r,e={message:`Input not instance of ${r.name}`})=>Dg(t=>t instanceof r,e),$s=en.create,gd=zn.create,RP=Gs.create,gP=Zn.create,bd=la.create,Ag=br.create,bP=_s.create,vP=da.create,Sg=ca.create,IP=Ti.create,Fs=vr.create,DP=Bn.create,AP=Vs.create,SP=tn.create,Og=Ke.create,OP=Ke.strictCreate,PP=ua.create,CP=Ns.create,wP=pa.create,BP=yn.create,Pg=ya.create,MP=Ls.create,_P=Ir.create,VP=Ri.create,NP=ha.create,LP=fa.create,Cg=Kn.create,GP=ma.create,$P=gi.create,wg=nn.create,FP=hn.create,UP=Xn.create,xP=nn.createWithPreprocess,jP=Ra.create;var y=Object.freeze({__proto__:null,defaultErrorMap:fi,setErrorMap:QO,getErrorMap:ws,makeIssue:Bs,EMPTY_PATH:eP,addIssueToContext:F,ParseStatus:yt,INVALID:z,DIRTY:mi,OK:gt,isAborted:fd,isDirty:md,isValid:ia,isAsync:aa,get util(){return le},get objectUtil(){return hd},ZodParsedType:x,getParsedType:Hn,ZodType:ie,datetimeRegex:vg,ZodString:en,ZodNumber:zn,ZodBigInt:Zn,ZodBoolean:la,ZodDate:br,ZodSymbol:_s,ZodUndefined:da,ZodNull:ca,ZodAny:Ti,ZodUnknown:vr,ZodNever:Bn,ZodVoid:Vs,ZodArray:tn,ZodObject:Ke,ZodUnion:ua,ZodDiscriminatedUnion:Ns,ZodIntersection:pa,ZodTuple:yn,ZodRecord:ya,ZodMap:Ls,ZodSet:Ir,ZodFunction:Ri,ZodLazy:ha,ZodLiteral:fa,ZodEnum:Kn,ZodNativeEnum:ma,ZodPromise:gi,ZodEffects:nn,ZodTransformer:nn,ZodOptional:hn,ZodNullable:Xn,ZodDefault:Ta,ZodCatch:Ea,ZodNaN:Gs,BRAND:mP,ZodBranded:Rd,ZodPipeline:Ra,ZodReadonly:ga,custom:Dg,Schema:ie,ZodSchema:ie,late:TP,get ZodFirstPartyTypeKind(){return Y},coerce:{string:r=>en.create({...r,coerce:!0}),number:r=>zn.create({...r,coerce:!0}),boolean:r=>la.create({...r,coerce:!0}),bigint:r=>Zn.create({...r,coerce:!0}),date:r=>br.create({...r,coerce:!0})},any:IP,array:SP,bigint:gP,boolean:bd,date:Ag,discriminatedUnion:CP,effect:wg,enum:Cg,function:VP,instanceof:EP,intersection:wP,lazy:NP,literal:LP,map:MP,nan:RP,nativeEnum:GP,never:DP,null:Sg,nullable:UP,number:gd,object:Og,oboolean:()=>bd().optional(),onumber:()=>gd().optional(),optional:FP,ostring:()=>$s().optional(),pipeline:jP,preprocess:xP,promise:$P,record:Pg,set:_P,strictObject:OP,string:$s,symbol:bP,transformer:wg,tuple:BP,undefined:vP,union:PP,unknown:Fs,void:AP,NEVER:z,ZodIssueCode:N,quotelessJson:XO,ZodError:wt});function Bg(r){var a,s,o;if(!(r!=null&&r.dataType))return Fs();const e=!r.required,t=r.dataType.isList||!1;let n=Fs();if(((a=r.dataType.entity)==null?void 0:a.type)===i.PrimitiveEntity)switch(r.dataType.entity.name){case C.String:n=$s();break;case C.KeyValue:n=Pg(Fs());break;case C.Number:n=gd();break;case C.Boolean:n=bd();break;case C.Date:n=Ag();break;case C.Enum:{const l=r.dataType.options||[];if(l.length===0)throw new Error(`Enum property ${r.name} has no options`);n=Cg(l);break}case C.Null:n=Sg();break;case C.UUID:n=$s().uuid();break}else if(((s=r.dataType.entity)==null?void 0:s.type)===i.DefinitionEntity)n=Mg(r.dataType.entity);else throw new Error(`Unsupported data type validation: ${(o=r.dataType.entity)==null?void 0:o.type}`);return e&&(n=n.nullable()),t&&(n=n.array()),n}function Mg(r){const e=Og({});for(const t of r.properties){const n=Bg(t);e.shape[t.name]=n}return e}function _g(r){const e=r.rangeStart;return new Date(e.getTime()+Math.random()*(Date.now()-e.getTime()))}function Vg(r){const e=r.rangeEnd;return new Date(Math.random()*e.getTime())}function Ng(r){const e=r.rangeStart,t=r.rangeEnd;return new Date(e.getTime()+Math.random()*(t.getTime()-e.getTime()))}function Lg(r){return r.rangeStart&&r.rangeEnd?Ng(r):r.rangeStart?_g(r):r.rangeEnd?Vg(r):new Date}function kP(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Gg={},Us={},xs={};Object.defineProperty(xs,"__esModule",{value:!0}),xs.default=JP;let js;const qP=new Uint8Array(16);function JP(){if(!js&&(js=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!js))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return js(qP)}var Qn={},Dr={},ks={};Object.defineProperty(ks,"__esModule",{value:!0}),ks.default=void 0;var WP=/^(?:[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;ks.default=WP,Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.default=void 0;var YP=HP(ks);function HP(r){return r&&r.__esModule?r:{default:r}}function zP(r){return typeof r=="string"&&YP.default.test(r)}var ZP=zP;Dr.default=ZP,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.default=void 0,Qn.unsafeStringify=$g;var KP=XP(Dr);function XP(r){return r&&r.__esModule?r:{default:r}}const ut=[];for(let r=0;r<256;++r)ut.push((r+256).toString(16).slice(1));function $g(r,e=0){return ut[r[e+0]]+ut[r[e+1]]+ut[r[e+2]]+ut[r[e+3]]+"-"+ut[r[e+4]]+ut[r[e+5]]+"-"+ut[r[e+6]]+ut[r[e+7]]+"-"+ut[r[e+8]]+ut[r[e+9]]+"-"+ut[r[e+10]]+ut[r[e+11]]+ut[r[e+12]]+ut[r[e+13]]+ut[r[e+14]]+ut[r[e+15]]}function QP(r,e=0){const t=$g(r,e);if(!(0,KP.default)(t))throw TypeError("Stringified UUID is invalid");return t}var eC=QP;Qn.default=eC,Object.defineProperty(Us,"__esModule",{value:!0}),Us.default=void 0;var tC=rC(xs),nC=Qn;function rC(r){return r&&r.__esModule?r:{default:r}}let Fg,vd,Id=0,Dd=0;function iC(r,e,t){let n=e&&t||0;const a=e||new Array(16);r=r||{};let s=r.node||Fg,o=r.clockseq!==void 0?r.clockseq:vd;if(s==null||o==null){const R=r.random||(r.rng||tC.default)();s==null&&(s=Fg=[R[0]|1,R[1],R[2],R[3],R[4],R[5]]),o==null&&(o=vd=(R[6]<<8|R[7])&16383)}let l=r.msecs!==void 0?r.msecs:Date.now(),p=r.nsecs!==void 0?r.nsecs:Dd+1;const u=l-Id+(p-Dd)/1e4;if(u<0&&r.clockseq===void 0&&(o=o+1&16383),(u<0||l>Id)&&r.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Id=l,Dd=p,vd=o,l+=122192928e5;const h=((l&268435455)*1e4+p)%4294967296;a[n++]=h>>>24&255,a[n++]=h>>>16&255,a[n++]=h>>>8&255,a[n++]=h&255;const f=l/4294967296*1e4&268435455;a[n++]=f>>>8&255,a[n++]=f&255,a[n++]=f>>>24&15|16,a[n++]=f>>>16&255,a[n++]=o>>>8|128,a[n++]=o&255;for(let R=0;R<6;++R)a[n+R]=s[R];return e||(0,nC.unsafeStringify)(a)}var aC=iC;Us.default=aC;var qs={},er={},ba={};Object.defineProperty(ba,"__esModule",{value:!0}),ba.default=void 0;var sC=oC(Dr);function oC(r){return r&&r.__esModule?r:{default:r}}function lC(r){if(!(0,sC.default)(r))throw TypeError("Invalid UUID");let e;const t=new Uint8Array(16);return t[0]=(e=parseInt(r.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t[4]=(e=parseInt(r.slice(9,13),16))>>>8,t[5]=e&255,t[6]=(e=parseInt(r.slice(14,18),16))>>>8,t[7]=e&255,t[8]=(e=parseInt(r.slice(19,23),16))>>>8,t[9]=e&255,t[10]=(e=parseInt(r.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=e&255,t}var dC=lC;ba.default=dC,Object.defineProperty(er,"__esModule",{value:!0}),er.URL=er.DNS=void 0,er.default=hC;var cC=Qn,uC=pC(ba);function pC(r){return r&&r.__esModule?r:{default:r}}function yC(r){r=unescape(encodeURIComponent(r));const e=[];for(let t=0;t<r.length;++t)e.push(r.charCodeAt(t));return e}const Ug="6ba7b810-9dad-11d1-80b4-00c04fd430c8";er.DNS=Ug;const xg="6ba7b811-9dad-11d1-80b4-00c04fd430c8";er.URL=xg;function hC(r,e,t){function n(a,s,o,l){var p;if(typeof a=="string"&&(a=yC(a)),typeof s=="string"&&(s=(0,uC.default)(s)),((p=s)===null||p===void 0?void 0:p.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let u=new Uint8Array(16+a.length);if(u.set(s),u.set(a,s.length),u=t(u),u[6]=u[6]&15|e,u[8]=u[8]&63|128,o){l=l||0;for(let h=0;h<16;++h)o[l+h]=u[h];return o}return(0,cC.unsafeStringify)(u)}try{n.name=r}catch{}return n.DNS=Ug,n.URL=xg,n}var Js={};Object.defineProperty(Js,"__esModule",{value:!0}),Js.default=void 0;function fC(r){if(typeof r=="string"){const e=unescape(encodeURIComponent(r));r=new Uint8Array(e.length);for(let t=0;t<e.length;++t)r[t]=e.charCodeAt(t)}return mC(TC(EC(r),r.length*8))}function mC(r){const e=[],t=r.length*32,n="0123456789abcdef";for(let a=0;a<t;a+=8){const s=r[a>>5]>>>a%32&255,o=parseInt(n.charAt(s>>>4&15)+n.charAt(s&15),16);e.push(o)}return e}function jg(r){return(r+64>>>9<<4)+14+1}function TC(r,e){r[e>>5]|=128<<e%32,r[jg(e)-1]=e;let t=1732584193,n=-271733879,a=-1732584194,s=271733878;for(let o=0;o<r.length;o+=16){const l=t,p=n,u=a,h=s;t=ht(t,n,a,s,r[o],7,-680876936),s=ht(s,t,n,a,r[o+1],12,-389564586),a=ht(a,s,t,n,r[o+2],17,606105819),n=ht(n,a,s,t,r[o+3],22,-1044525330),t=ht(t,n,a,s,r[o+4],7,-176418897),s=ht(s,t,n,a,r[o+5],12,1200080426),a=ht(a,s,t,n,r[o+6],17,-1473231341),n=ht(n,a,s,t,r[o+7],22,-45705983),t=ht(t,n,a,s,r[o+8],7,1770035416),s=ht(s,t,n,a,r[o+9],12,-1958414417),a=ht(a,s,t,n,r[o+10],17,-42063),n=ht(n,a,s,t,r[o+11],22,-1990404162),t=ht(t,n,a,s,r[o+12],7,1804603682),s=ht(s,t,n,a,r[o+13],12,-40341101),a=ht(a,s,t,n,r[o+14],17,-1502002290),n=ht(n,a,s,t,r[o+15],22,1236535329),t=ft(t,n,a,s,r[o+1],5,-165796510),s=ft(s,t,n,a,r[o+6],9,-1069501632),a=ft(a,s,t,n,r[o+11],14,643717713),n=ft(n,a,s,t,r[o],20,-373897302),t=ft(t,n,a,s,r[o+5],5,-701558691),s=ft(s,t,n,a,r[o+10],9,38016083),a=ft(a,s,t,n,r[o+15],14,-660478335),n=ft(n,a,s,t,r[o+4],20,-405537848),t=ft(t,n,a,s,r[o+9],5,568446438),s=ft(s,t,n,a,r[o+14],9,-1019803690),a=ft(a,s,t,n,r[o+3],14,-187363961),n=ft(n,a,s,t,r[o+8],20,1163531501),t=ft(t,n,a,s,r[o+13],5,-1444681467),s=ft(s,t,n,a,r[o+2],9,-51403784),a=ft(a,s,t,n,r[o+7],14,1735328473),n=ft(n,a,s,t,r[o+12],20,-1926607734),t=mt(t,n,a,s,r[o+5],4,-378558),s=mt(s,t,n,a,r[o+8],11,-2022574463),a=mt(a,s,t,n,r[o+11],16,1839030562),n=mt(n,a,s,t,r[o+14],23,-35309556),t=mt(t,n,a,s,r[o+1],4,-1530992060),s=mt(s,t,n,a,r[o+4],11,1272893353),a=mt(a,s,t,n,r[o+7],16,-155497632),n=mt(n,a,s,t,r[o+10],23,-1094730640),t=mt(t,n,a,s,r[o+13],4,681279174),s=mt(s,t,n,a,r[o],11,-358537222),a=mt(a,s,t,n,r[o+3],16,-722521979),n=mt(n,a,s,t,r[o+6],23,76029189),t=mt(t,n,a,s,r[o+9],4,-640364487),s=mt(s,t,n,a,r[o+12],11,-421815835),a=mt(a,s,t,n,r[o+15],16,530742520),n=mt(n,a,s,t,r[o+2],23,-995338651),t=Tt(t,n,a,s,r[o],6,-198630844),s=Tt(s,t,n,a,r[o+7],10,1126891415),a=Tt(a,s,t,n,r[o+14],15,-1416354905),n=Tt(n,a,s,t,r[o+5],21,-57434055),t=Tt(t,n,a,s,r[o+12],6,1700485571),s=Tt(s,t,n,a,r[o+3],10,-1894986606),a=Tt(a,s,t,n,r[o+10],15,-1051523),n=Tt(n,a,s,t,r[o+1],21,-2054922799),t=Tt(t,n,a,s,r[o+8],6,1873313359),s=Tt(s,t,n,a,r[o+15],10,-30611744),a=Tt(a,s,t,n,r[o+6],15,-1560198380),n=Tt(n,a,s,t,r[o+13],21,1309151649),t=Tt(t,n,a,s,r[o+4],6,-145523070),s=Tt(s,t,n,a,r[o+11],10,-1120210379),a=Tt(a,s,t,n,r[o+2],15,718787259),n=Tt(n,a,s,t,r[o+9],21,-343485551),t=tr(t,l),n=tr(n,p),a=tr(a,u),s=tr(s,h)}return[t,n,a,s]}function EC(r){if(r.length===0)return[];const e=r.length*8,t=new Uint32Array(jg(e));for(let n=0;n<e;n+=8)t[n>>5]|=(r[n/8]&255)<<n%32;return t}function tr(r,e){const t=(r&65535)+(e&65535);return(r>>16)+(e>>16)+(t>>16)<<16|t&65535}function RC(r,e){return r<<e|r>>>32-e}function Ws(r,e,t,n,a,s){return tr(RC(tr(tr(e,r),tr(n,s)),a),t)}function ht(r,e,t,n,a,s,o){return Ws(e&t|~e&n,r,e,a,s,o)}function ft(r,e,t,n,a,s,o){return Ws(e&n|t&~n,r,e,a,s,o)}function mt(r,e,t,n,a,s,o){return Ws(e^t^n,r,e,a,s,o)}function Tt(r,e,t,n,a,s,o){return Ws(t^(e|~n),r,e,a,s,o)}var gC=fC;Js.default=gC,Object.defineProperty(qs,"__esModule",{value:!0}),qs.default=void 0;var bC=kg(er),vC=kg(Js);function kg(r){return r&&r.__esModule?r:{default:r}}var IC=(0,bC.default)("v3",48,vC.default);qs.default=IC;var Ys={},Hs={};Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.default=void 0;var DC={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};Hs.default=DC,Object.defineProperty(Ys,"__esModule",{value:!0}),Ys.default=void 0;var qg=Jg(Hs),AC=Jg(xs),SC=Qn;function Jg(r){return r&&r.__esModule?r:{default:r}}function OC(r,e,t){if(qg.default.randomUUID&&!e&&!r)return qg.default.randomUUID();r=r||{};const n=r.random||(r.rng||AC.default)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){t=t||0;for(let a=0;a<16;++a)e[t+a]=n[a];return e}return(0,SC.unsafeStringify)(n)}var PC=OC;Ys.default=PC;var zs={},Zs={};Object.defineProperty(Zs,"__esModule",{value:!0}),Zs.default=void 0;function CC(r,e,t,n){switch(r){case 0:return e&t^~e&n;case 1:return e^t^n;case 2:return e&t^e&n^t&n;case 3:return e^t^n}}function Ad(r,e){return r<<e|r>>>32-e}function wC(r){const e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){const o=unescape(encodeURIComponent(r));r=[];for(let l=0;l<o.length;++l)r.push(o.charCodeAt(l))}else Array.isArray(r)||(r=Array.prototype.slice.call(r));r.push(128);const n=r.length/4+2,a=Math.ceil(n/16),s=new Array(a);for(let o=0;o<a;++o){const l=new Uint32Array(16);for(let p=0;p<16;++p)l[p]=r[o*64+p*4]<<24|r[o*64+p*4+1]<<16|r[o*64+p*4+2]<<8|r[o*64+p*4+3];s[o]=l}s[a-1][14]=(r.length-1)*8/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=(r.length-1)*8&4294967295;for(let o=0;o<a;++o){const l=new Uint32Array(80);for(let v=0;v<16;++v)l[v]=s[o][v];for(let v=16;v<80;++v)l[v]=Ad(l[v-3]^l[v-8]^l[v-14]^l[v-16],1);let p=t[0],u=t[1],h=t[2],f=t[3],R=t[4];for(let v=0;v<80;++v){const I=Math.floor(v/20),D=Ad(p,5)+CC(I,u,h,f)+R+e[I]+l[v]>>>0;R=f,f=h,h=Ad(u,30)>>>0,u=p,p=D}t[0]=t[0]+p>>>0,t[1]=t[1]+u>>>0,t[2]=t[2]+h>>>0,t[3]=t[3]+f>>>0,t[4]=t[4]+R>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,t[0]&255,t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,t[1]&255,t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,t[2]&255,t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,t[3]&255,t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,t[4]&255]}var BC=wC;Zs.default=BC,Object.defineProperty(zs,"__esModule",{value:!0}),zs.default=void 0;var MC=Wg(er),_C=Wg(Zs);function Wg(r){return r&&r.__esModule?r:{default:r}}var VC=(0,MC.default)("v5",80,_C.default);zs.default=VC;var Ks={};Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.default=void 0;var NC="00000000-0000-0000-0000-000000000000";Ks.default=NC;var Xs={};Object.defineProperty(Xs,"__esModule",{value:!0}),Xs.default=void 0;var LC=GC(Dr);function GC(r){return r&&r.__esModule?r:{default:r}}function $C(r){if(!(0,LC.default)(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}var FC=$C;Xs.default=FC,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 p.default}}),Object.defineProperty(r,"v1",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(r,"v3",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(r,"v4",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(r,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(r,"validate",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(r,"version",{enumerable:!0,get:function(){return o.default}});var e=h(Us),t=h(qs),n=h(Ys),a=h(zs),s=h(Ks),o=h(Xs),l=h(Dr),p=h(Qn),u=h(ba);function h(f){return f&&f.__esModule?f:{default:f}}}(Gg);function Sd(r,e){if(!r||!e||!r.length||!e.length)throw new Error("Bad alphabet");this.srcAlphabet=r,this.dstAlphabet=e}Sd.prototype.convert=function(r){var e,t,n,a={},s=this.srcAlphabet.length,o=this.dstAlphabet.length,l=r.length,p=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(e=0;e<l;e++)a[e]=this.srcAlphabet.indexOf(r[e]);do{for(t=0,n=0,e=0;e<l;e++)t=t*s+a[e],t>=o?(a[n++]=parseInt(t/o,10),t=t%o):n>0&&(a[n++]=0);l=n,p=this.dstAlphabet.slice(t,t+1).concat(p)}while(n!==0);return p},Sd.prototype.isValid=function(r){for(var e=0;e<r.length;++e)if(this.srcAlphabet.indexOf(r[e])===-1)return!1;return!0};var UC=Sd,xC=UC;function va(r,e){var t=new xC(r,e);return function(n){return t.convert(n)}}va.BIN="01",va.OCT="01234567",va.DEC="0123456789",va.HEX="0123456789abcdef";var jC=va;const{v4:Od,validate:kC}=Gg,Qs=jC,Pd={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},qC={consistentLength:!0};let Cd;const Yg=(r,e,t)=>{const n=e(r.toLowerCase().replace(/-/g,""));return!t||!t.consistentLength?n:n.padStart(t.shortIdLength,t.paddingChar)},Hg=(r,e)=>{const n=e(r).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[n[1],n[2],n[3],n[4],n[5]].join("-")},JC=r=>Math.ceil(Math.log(2**128)/Math.log(r));var WC=(()=>{const r=(e,t)=>{const n=e||Pd.flickrBase58,a={...qC,...t};if([...new Set(Array.from(n))].length!==n.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const s=JC(n.length),o={shortIdLength:s,consistentLength:a.consistentLength,paddingChar:n[0]},l=Qs(Qs.HEX,n),p=Qs(n,Qs.HEX),u=()=>Yg(Od(),l,o),f={alphabet:n,fromUUID:R=>Yg(R,l,o),maxLength:s,generate:u,new:u,toUUID:R=>Hg(R,p),uuid:Od,validate:(R,v=!1)=>{if(!R||typeof R!="string")return!1;const I=a.consistentLength?R.length===s:R.length<=s,D=R.split("").every(S=>n.includes(S));return v===!1?I&&D:I&&D&&kC(Hg(R,p))}};return Object.freeze(f),f};return r.constants=Pd,r.uuid=Od,r.generate=()=>(Cd||(Cd=r(Pd.flickrBase58).generate),Cd()),r})();const eo=kP(WC);function zg(){return eo().uuid()}function Zg(r){return r.rangeStart+Math.random()}function Kg(r){const e=r.rangeEnd;return Math.random()*e}function Xg(r){const e=r.rangeStart,t=r.rangeEnd;return Math.random()*(t-e)+e}function Qg(r){return r.rangeStart&&r.rangeEnd?Xg(r):r.rangeStart?Zg(r):r.rangeEnd?Kg(r):Math.random()}function eb(r){const e=r.rangeStart;return Math.random().toString(36).substring(e)}function tb(r){const e=r.rangeEnd;return Math.random().toString(36).substring(0,e)}function nb(r){const e=r.rangeStart,t=r.rangeEnd;return Math.random().toString(36).substring(e,t)}function rb(r){return r.rangeStart&&r.rangeEnd?nb(r):r.rangeStart?eb(r):r.rangeEnd?tb(r):Math.random().toString(36)}function ib(r){return Math.random()>=.5}function YC(r){if(!r||!r.autogeneration)return null;switch(r.autogeneration.type){case ze.CurrentDateAndTime:if(r.name===C.Date)return new Date;case ze.Random:{if(r.name===C.Date)return Lg(r.autogeneration);if(r.name===C.Number)return Qg(r.autogeneration);if(r.name===C.String)return rb(r.autogeneration);if(r.name===C.Boolean)return ib(r.autogeneration)}case ze.Unique:if(r.name===C.UUID)return zg();default:throw new Error(`Generating a ${r.autogeneration.type} value for a ${r.name} is not supported`)}}const H="e7eb5382-3d99-44fd-972a-b8b1e819f6be",ab="global-user-variable-id",wd="last-executed-timestamp-variable-id",HC={id:"alternative-relational-database-entity-identifier-property-data-type-ref-id",type:i.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",entityType:i.ValueDescriptor},zC={id:"alternative-relational-database-entity-identifier-property-ref-id",type:i.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",entityType:i.Property},ZC={like:!1,inferred:!1,id:"alternative-relational-database-entity-identifier-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parent:zC},to={id:"alternative-relational-database-entity-ref-id",type:i.GenericReference,entityId:"alternative-relational-database-entity-id",entityType:i.DefinitionEntity},KC={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-identifier-property-id",name:"Identifier name",version:1,type:i.Property,private:!1,abstract:!1,implements:vs,static:!0,index:0,defaultValue:{id:"alternative-relational-database-entity-identifier-property-data-type-default-value-id",type:i.LiteralValue,version:1,name:C.String,value:null,parent:HC,autogeneration:{type:ze.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},dataType:ZC,description:"The name of the main database inside of the server instance where the data will be stored.",parent:to};i.GenericReference,i.ValueDescriptor;const XC={id:"alternative-relational-database-entity-username-property-ref-id",type:i.GenericReference,entityId:"alternative-relational-database-entity-username-property-id",entityType:i.Property},QC={like:!1,inferred:!1,id:"alternative-relational-database-entity-username-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parent:XC},ew={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-username-property-id",name:"Username",version:1,type:i.Property,private:!1,abstract:!1,implements:Is,static:!0,index:1,defaultValue:null,dataType:QC,description:"The username that will be used to connect to the database.",parent:to};i.GenericReference,i.ValueDescriptor;const tw={id:"alternative-relational-database-entity-password-property-ref-id",type:i.GenericReference,entityId:"alternative-relational-database-entity-password-property-id",entityType:i.Property},nw={like:!1,inferred:!1,id:"alternative-relational-database-entity-password-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parent:tw},rw={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-password-property-id",name:"Password",version:1,type:i.Property,private:!1,abstract:!1,implements:Ds,static:!0,index:2,defaultValue:null,dataType:nw,description:"The password that will be used to connect to the database.",parent:to},iw={id:"alternative-relational-database-entity-min-size-property-data-type-ref-id",type:i.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",entityType:i.ValueDescriptor},aw={id:"alternative-relational-database-entity-min-size-property-ref-id",type:i.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",entityType:i.Property},sw={like:!1,inferred:!1,id:"alternative-relational-database-entity-min-size-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ee,asType:!1,parent:aw},ow={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:1,type:i.Property,private:!1,abstract:!1,implements:As,static:!0,index:3,defaultValue:{id:"alternative-relational-database-entity-min-size-property-data-type-default-value-id",type:i.LiteralValue,version:1,name:C.Number,value:6,parent:iw,autogeneration:null,valueAsType:null},dataType:sw,description:"The minimum size of the database in GB.",parent:to},lw={id:"alternative-relational-database-entity-parent-ref-id",type:i.GenericReference,entityId:H,entityType:i.Project},Bd={id:"alternative-relational-database-entity-id",type:i.DefinitionEntity,version:1,name:"Alternative relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[KC,ew,rw,ow],methods:[],abstractMethods:[],extends:[],implements:[un],x:0,y:0,parent:lw},dw={id:"animal-prototype-database-property-ref-id",type:i.GenericReference,entityId:"animal-prototype-database-property-id",entityType:i.Property},cw={id:"animal-prototype-database-property-data-type-default-value-parent-ref-id",type:i.GenericReference,entityId:"animal-prototype-database-property-id",entityType:i.Property},uw={like:!1,inferred:!1,id:"animal-prototype-database-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:un,asType:!1,parent:dw},pw={id:"animal-prototype-database-property-parent-ref-id",type:i.GenericReference,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",entityType:i.DefinitionEntity},yw={constant:!1,hidden:!1,required:!0,id:"animal-prototype-database-property-id",name:"Database",version:1,type:i.Property,private:!1,abstract:!1,implements:ui,static:!0,index:0,defaultValue:{id:"animal-prototype-database-property-data-type-default-value-id",type:i.LiteralValue,version:1,value:null,name:C.EntityTemplate,valueAsType:Bd,autogeneration:null,parent:cw},dataType:uw,description:"The database that the entity belongs to.",parent:pw},hw={type:i.GenericReference,id:"291e4d4f-01d8-40a0-90dc-5f1ac6636e9b",entityType:i.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},fw={like:!1,inferred:!1,id:"c1930577-9e79-48a6-8905-be24611015c1",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:hw},mw={type:i.GenericReference,id:"animal-name-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970"},Tw={constant:!1,hidden:!1,required:!0,type:i.Property,id:"5cb617b0-92be-4dbe-a007-49093368d94f",version:1,name:"Name",description:"The name of the animal",defaultValue:null,implements:pi,static:!1,private:!1,index:0,dataType:fw,abstract:!1,parent:mw},Ew={type:i.GenericReference,id:"abc565de-4c83-4936-bc48-4013bef213b8",entityType:i.Project,entityId:H},Rw={type:i.DefinitionEntity,id:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:1,name:"Animal",description:"A living creature that is not human",abstract:!1,static:!1,abstractMethods:[],properties:[yw,Tw],methods:[],extends:[],implements:[st],x:0,y:0,parent:Ew},Ia="base-table-entity",sb="base-table-entity-identifier-property-id";i.GenericReference,i.Property,i.GenericReference,i.Property;const gw={id:"base-table-entity-identifier-property-data-type-ref-id",type:i.GenericReference,entityId:sb,entityType:i.Property},bw={id:"base-table-entity-identifier-property-ref-id",type:i.GenericReference,entityId:"base-table-entity-identifier-property-id",entityType:i.Property},vw={like:!1,inferred:!1,id:"base-table-entity-identifier-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Pn,asType:!1,parent:bw},Iw={id:"base-table-entity-identifier-property-parent-ref-id",type:i.GenericReference,entityId:Ia,entityType:i.DefinitionEntity};i.Property,i.LiteralValue,C.UUID,ze.Unique,i.GenericReference,i.Property;const Dw={id:"base-table-entity-deleted-at-property-ref-id",type:i.GenericReference,entityId:"base-table-entity-deleted-at-property-id",entityType:i.Property},Aw={like:!1,inferred:!1,id:"base-table-entity-deleted-at-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ln,asType:!1,parent:Dw},Sw={id:"base-table-entity-deleted-at-property-parent-ref-id",type:i.GenericReference,entityId:Ia,entityType:i.DefinitionEntity},Ow={constant:!1,hidden:!0,required:!0,id:"base-table-entity-deleted-at-property-id",name:"Deleted at",version:1,type:i.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:Aw,description:"The date and time when the entity was deleted.",parent:Sw};i.GenericReference,i.Property;const Pw={id:"base-table-entity-created-at-property-ref-id",type:i.GenericReference,entityId:"base-table-entity-created-at-property-id",entityType:i.Property},Cw={like:!1,inferred:!1,id:"base-table-entity-created-at-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ln,asType:!1,parent:Pw},ww={id:"base-table-entity-created-at-property-parent-ref-id",type:i.GenericReference,entityId:Ia,entityType:i.DefinitionEntity},Bw={constant:!1,hidden:!0,required:!0,id:"base-table-entity-created-at-property-id",name:"Created at",version:1,type:i.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:Cw,description:"The date and time when the entity was created.",parent:ww};i.GenericReference,i.Property;const Mw={id:"base-table-entity-updated-at-property-ref-id",type:i.GenericReference,entityId:"base-table-entity-updated-at-property-id",entityType:i.Property},_w={like:!1,inferred:!1,id:"base-table-entity-updated-at-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ln,asType:!1,parent:Mw},Vw={id:"base-table-entity-updated-at-property-parent-ref-id",type:i.GenericReference,entityId:Ia,entityType:i.DefinitionEntity},Nw={constant:!1,hidden:!0,required:!0,id:"base-table-entity-updated-at-property-id",name:"Updated at",version:1,type:i.Property,private:!1,implements:null,abstract:!0,static:!1,index:0,defaultValue:null,dataType:_w,description:"The date and time when the entity was last updated.",parent:Vw},Lw={id:"base-table-entity-parent-ref-id",type:i.GenericReference,entityId:H,entityType:i.Project},Ft={id:Ia,version:1,description:"An entity that is permanently stored in the database and can be accessed at any point.",name:"Base database table format",type:i.DefinitionEntity,abstract:!0,static:!1,abstractMethods:[],implements:[],properties:[Ow,Bw,Nw],methods:[],extends:[],x:0,y:0,parent:Lw},Gw={id:"default-relational-database-entity-identifier-property-data-type-ref-id",type:i.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",entityType:i.Property},$w={id:"default-relational-database-entity-identifier-property-ref-id",type:i.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",entityType:i.Property},Fw={like:!1,inferred:!1,id:"default-relational-database-entity-identifier-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parent:$w},bi={id:"default-relational-database-entity-ref-id",type:i.GenericReference,entityId:"default-relational-database-entity-id",entityType:i.DefinitionEntity},Uw={constant:!1,id:"default-relational-database-entity-identifier-property-id",hidden:!1,required:!0,name:"Identifier name",version:1,type:i.Property,private:!1,abstract:!1,implements:vs,static:!0,index:0,defaultValue:{id:"default-relational-database-entity-identifier-property-data-type-default-value-id",type:i.LiteralValue,version:1,name:C.String,value:"main",parent:Gw,autogeneration:{type:ze.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},dataType:Fw,description:"The name of the main database inside of the server instance where the data will be stored.",parent:bi};i.GenericReference,i.Property;const xw={id:"default-relational-database-entity-username-property-ref-id",type:i.GenericReference,entityId:"default-relational-database-entity-username-property-id",entityType:i.Property},jw={id:"default-relational-database-entity-username-property-default-value-parent-ref-id",type:i.GenericReference,entityId:"default-relational-database-entity-username-property-id",entityType:i.Property},kw={like:!1,inferred:!1,id:"default-relational-database-entity-username-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parent:xw},qw={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-username-property-id",name:"Username",version:1,type:i.Property,private:!1,abstract:!1,implements:Is,defaultValue:{id:"default-relational-database-entity-username-property-data-type-default-value-id",type:i.LiteralValue,version:1,name:C.String,value:"root",parent:jw,autogeneration:null,valueAsType:null},static:!0,index:1,dataType:kw,description:"The username that will be used to connect to the database.",parent:bi};i.GenericReference,i.Property;const Jw={id:"default-relational-database-entity-password-property-ref-id",type:i.GenericReference,entityId:"default-relational-database-entity-password-property-id",entityType:i.Property},Ww={id:"default-relational-database-entity-password-property-default-value-parent-ref-id",type:i.GenericReference,entityId:"default-relational-database-entity-password-property-id",entityType:i.Property},Yw={like:!1,inferred:!1,id:"default-relational-database-entity-password-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parent:Jw},Hw={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-password-property-id",name:"Password",version:1,type:i.Property,private:!1,abstract:!1,implements:Ds,static:!0,index:2,defaultValue:{id:"default-relational-database-entity-password-property-data-type-default-value-id",type:i.LiteralValue,version:1,name:C.String,value:"password",parent:Ww,autogeneration:null,valueAsType:null},dataType:Yw,description:"The password that will be used to connect to the database.",parent:bi},zw={id:"default-relational-database-entity-min-size-property-data-type-ref-id",type:i.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",entityType:i.Property},Zw={id:"default-relational-database-entity-min-size-property-ref-id",type:i.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",entityType:i.Property},Kw={like:!1,inferred:!1,id:"default-relational-database-entity-min-size-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ee,asType:!1,parent:Zw},Xw={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:1,type:i.Property,private:!1,abstract:!1,implements:As,static:!0,index:3,defaultValue:{id:"default-relational-database-entity-min-size-property-data-type-default-value-id",type:i.LiteralValue,version:1,name:C.Number,value:6,parent:zw,autogeneration:null,valueAsType:null},dataType:Kw,description:"The minimum size of the database in GB.",parent:bi},Qw={id:"default-relational-database-entity-default-property-data-type-ref-id",type:i.GenericReference,entityId:"default-relational-database-entity-default-property-id",entityType:i.Property},eB={id:"default-relational-database-entity-default-property-ref-id",type:i.GenericReference,entityId:"default-relational-database-entity-default-property-id",entityType:i.Property},tB={like:!1,inferred:!1,id:"default-relational-database-entity-default-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ee,asType:!1,parent:eB},nB={constant:!1,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,type:i.Property,private:!1,abstract:!1,implements:ld,static:!0,index:4,dataType:tB,defaultValue:{id:"default-relational-database-entity-default-property-data-type-default-value-id",type:i.LiteralValue,version:1,name:C.Boolean,value:!0,parent:Qw,autogeneration:null,valueAsType:null},parent:bi},rB={id:"default-relational-database-entity-autoscaling-property-data-type-ref-id",type:i.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",entityType:i.Property},iB={id:"default-relational-database-entity-autoscaling-property-ref-id",type:i.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",entityType:i.Property},aB={like:!1,inferred:!1,id:"default-relational-database-entity-autoscaling-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ee,asType:!1,parent:iB},sB={constant:!1,id:"default-relational-database-entity-autoscaling-property-id",hidden:!1,required:!0,name:"Auto-scaling",version:1,type:i.Property,private:!1,abstract:!1,implements:dd,static:!0,index:5,defaultValue:{id:"default-relational-database-entity-autoscaling-property-data-type-default-value-id",type:i.LiteralValue,version:1,name:C.Boolean,value:!0,parent:rB,autogeneration:null,valueAsType:null},dataType:aB,description:"If true, this database will automatically scale up or down in memory size, based on the usage.s",parent:bi},oB={id:"default-relational-database-entity-parent-ref-id",type:i.GenericReference,entityId:H,entityType:i.Project},Md={id:"default-relational-database-entity-id",type:i.DefinitionEntity,version:1,name:"Relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[nB,sB,Uw,qw,Hw,Xw],methods:[],abstractMethods:[],extends:[],implements:[un],x:0,y:0,parent:oB},lB={id:"user-prototype-database-property-data-type-ref-id",type:i.GenericReference,entityId:"user-prototype-database-property-id",entityType:i.Property},dB={id:"user-prototype-database-property-ref-id",type:i.GenericReference,entityId:"user-prototype-database-property-id",entityType:i.Property},cB={like:!1,inferred:!1,id:"user-prototype-database-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:un,asType:!1,parent:dB},uB={id:"user-prototype-database-property-parent-ref-id",type:i.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:i.DefinitionEntity},pB={constant:!1,hidden:!1,required:!0,id:"user-prototype-database-property-id",name:"Database",version:1,type:i.Property,private:!1,abstract:!1,implements:ui,static:!0,index:0,defaultValue:{id:"user-prototype-database-property-data-type-default-value-id",type:i.LiteralValue,version:1,value:null,name:C.EntityTemplate,valueAsType:Md,autogeneration:null,parent:lB},dataType:cB,description:"The database that the entity belongs to.",parent:uB},yB={type:i.GenericReference,id:"user-prototype-parent-ref-id",entityType:i.Project,entityId:H},hB={id:"user-prototype-primary-key-property-data-type-ref-id",type:i.GenericReference,entityId:"user-prototype-primary-key-property-id",entityType:i.Property},fB={id:"user-prototype-primary-key-property-ref-id",type:i.GenericReference,entityId:"user-prototype-primary-key-property-id",entityType:i.Property},mB={like:!1,inferred:!1,id:"user-prototype-primary-key-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Pn,asType:!1,parent:fB},TB={id:"user-prototype-primary-key-property-parent-ref-id",type:i.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:i.DefinitionEntity},EB={constant:!1,hidden:!1,required:!0,id:"user-prototype-primary-key-property-id",name:"Identifier",version:1,type:i.Property,private:!1,abstract:!1,implements:pi,static:!1,index:1,defaultValue:{id:"user-prototype-primary-key-property-data-type-default-value-id",type:i.LiteralValue,version:1,name:C.UUID,value:null,parent:hB,autogeneration:{type:ze.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},dataType:mB,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:TB},_d={type:i.DefinitionEntity,id:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:1,name:"User",description:"A user of the application",implements:[st,Ft],abstract:!1,static:!1,abstractMethods:[],extends:[],properties:[pB,EB],methods:[],x:0,y:0,parent:yB},RB={type:i.GenericReference,id:"person-date-of-birth-property-data-type-parent-ref-id",entityType:i.Property,entityId:"person-date-of-birth-property-id"},gB={like:!1,inferred:!1,id:"person-date-of-birth-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ln,isList:!1,asType:!1,parent:RB},bB={type:i.GenericReference,id:"person-date-of-birth-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},vB={constant:!1,hidden:!1,required:!0,type:i.Property,id:"person-date-of-birth-property-id",version:1,name:"Date of birth",description:"The date of birth of the person",implements:null,private:!1,static:!1,index:0,defaultValue:null,dataType:gB,abstract:!1,parent:bB},IB={type:i.GenericReference,id:"a2867827-2f8e-4c25-b18b-d91857d7f24e",entityType:i.Property,entityId:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7"},DB={like:!1,inferred:!1,id:"1d49f41b-17b9-4f48-87aa-3ce43498e5a9",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,isList:!1,asType:!1,parent:IB},AB={type:i.GenericReference,id:"01cbe760-40a9-4f49-8e3d-194d2f57cb1e",entityType:i.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},SB={constant:!1,hidden:!1,required:!0,type:i.Property,id:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7",version:1,name:"Name",description:"The name of the person",implements:null,private:!1,static:!1,index:0,defaultValue:null,dataType:DB,abstract:!1,parent:AB},OB={type:i.GenericReference,id:"3542b22a-3a2f-41c6-876e-24c885572498",entityType:i.Project,entityId:H},bt={type:i.DefinitionEntity,id:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416",version: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:[SB,vB],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[_d],x:0,y:0,parent:OB},PB={type:i.GenericReference,id:"b59c80b7-b2e9-41e9-abcd-7c5652835efc",entityType:i.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},CB={type:i.GenericReference,id:"1190b5a2-f25e-46db-884d-8a3dd1a44d94",entityType:i.ReturnStatement,entityId:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e"},wB={type:i.GenericReference,id:"36c63126-7814-496f-a6cc-48662c2aabae",entityType:i.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},BB={type:i.GenericReference,id:"c567e55d-ec12-4e4e-958e-f07522892b4b",entityType:i.ReturnDeclaration,entityId:"9e070523-7e07-4100-8637-960a187f5f14"},MB={like:!1,inferred:!1,id:"3973c5a1-f0d8-49a0-a9a9-a0009bf3f0d8",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:bt,isList:!1,asType:!1,parent:BB},Vd={constant:!0,isError:!1,id:"9e070523-7e07-4100-8637-960a187f5f14",type:i.ReturnDeclaration,version:1,name:"Output Account Owner",description:null,defaultValue:null,dataType:MB,implements:null,readsValue:wB,required:!0,index:0,parent:CB},_B={type:i.GenericReference,id:"567d923c-20da-4c1e-956d-962ea30c6d0b",entityType:i.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},VB={type:i.GenericReference,id:"da85e620-59f3-42ab-88c8-b38d33c2c833",entityType:i.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},ob={type:i.ReturnStatement,id:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e",version:1,outputs:[Vd],calledByError:[],calledByEntry:[_B],calledBySuccess:[],throws:null,x:0,y:0,parent:VB},NB={type:i.GenericReference,id:"1c806bb7-4c25-4bad-963b-93dfbb7c8304",entityType:i.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},LB={like:!1,inferred:!1,id:"d90fcc18-642b-433c-8fcb-4094b9031cd5",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:bt,isList:!1,asType:!1,parent:NB},lb={constant:!0,id:"500dee3a-3435-4453-9699-0d053f646523",type:i.ArgumentDeclaration,version:1,name:"New Account Owner",description:null,defaultValue:null,dataType:LB,implements:null,required:!0,writesValues:[Vd],index:0,parent:PB},GB={type:i.GenericReference,id:"83dceb60-f3c4-4085-824c-85f2003bfd27",entityType:i.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},db={type:i.FunctionDeclaration,id:"36f29f96-c001-4b9a-b49c-83eff406a060",version:1,name:"Change owner of bank account",description:null,implements:null,inputs:[lb],calls:[ob],returnStatements:[ob],index:0,collapsed:!1,private:!1,x:0,y:0,parent:GB},$B={type:i.GenericReference,id:"adbaf302-ffa9-49b6-a3c6-83f9a75068e3",entityType:i.VariableDeclaration,entityId:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b"},FB={like:!1,inferred:!1,id:"79ee04aa-1ba4-4ae9-a406-ed45e5b03f7f",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:bt,asType:!1,isList:!1,parent:$B},UB={type:i.GenericReference,id:"55e212d1-f0ec-4bb6-acbe-60f741367daf",entityType:i.OutputMap,entityId:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4"},xB={type:i.GenericReference,id:"944e1171-3d9b-4559-9386-1d4974b15962",entityType:i.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},jB={constant:!0,required:!0,id:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b",type:i.VariableDeclaration,version:1,name:"Output Account Owner",description:null,defaultValue:null,dataType:FB,readsValue:UB,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:xB},kB={type:i.GenericReference,id:"b89ebc83-52cf-4447-a5ae-62241f713079",entityType:i.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},qB={id:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4",type:i.OutputMap,version:1,declaration:Vd,defaultValue:null,writesValues:[jB],index:0,parent:kB},JB={type:i.GenericReference,id:"c1b9e125-1aad-48b7-9687-95c57a6bc10d",entityType:i.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},WB={type:i.GenericReference,id:"d2deaa02-e164-4425-905c-6dee47eb4eac",entityType:i.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},YB={type:i.GenericReference,id:"1109a655-ac62-4110-a933-42a72106f4f0",entityType:i.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},HB={like:!1,inferred:!1,id:"7d9a1307-512e-42ec-9797-2f7229796b97",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:bt,asType:!1,isList:!1,parent:YB},zB={type:i.GenericReference,id:"bb61ebf7-57b3-4d14-905d-82ec907205b5",entityType:i.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},ZB={type:i.GenericReference,id:"6b8c7bf2-9fc8-4ea4-9ec0-f41679d513b1",entityType:i.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},KB={type:i.GenericReference,id:"6163d1a1-7a94-49b1-95bb-aecd8d6d335c",entityType:i.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},XB={type:i.GenericReference,id:"1f900f62-4bd2-4246-94aa-b8f5aad384fd",entityType:i.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},cb={id:"be8538be-e6f9-4b94-9314-a546003ebaa0",type:i.InputMap,version:1,declaration:lb,name:null,description:null,readsValue:XB,defaultValue:null,index:0,parent:KB},QB={constant:!0,required:!0,type:i.VariableDeclaration,id:"8bea6986-8da2-487b-905d-2fb962db6728",version:1,name:"Changed Account Owner",description:null,defaultValue:null,dataType:HB,readsValue:zB,writesValues:[cb],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:ZB},eM={type:i.FunctionCall,id:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e",version:1,declaration:db,inputs:[cb],outputs:[qB],process:null,successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[JB],calledBySuccess:[],parent:WB,error:null,x:0,y:0},tM={type:i.GenericReference,id:"2d47aba1-a918-46a7-8db7-78809928654a",entityType:i.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},nM={like:!1,inferred:!1,id:"5583766c-e9a5-484c-8f43-f4b0a6a1876c",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:bt,asType:!1,isList:!1,parent:tM},rM={type:i.GenericReference,id:"3e2a81e4-55b2-49f5-94eb-39135e95c3d7",entityType:i.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},iM={constant:!0,id:"38f6b236-98ac-47b0-ab9c-d2f9610137b9",type:i.ArgumentDeclaration,version:1,description:null,name:"New Company Owner",defaultValue:null,dataType:nM,implements:null,required:!0,index:0,writesValues:[QB],parent:rM},aM={type:i.GenericReference,id:"30291b01-1b94-4d03-b434-dec122c2bc7d",entityType:i.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},sM={type:i.FunctionDeclaration,id:"15ee556d-681f-47de-a31f-16d4ba73cc4e",version:1,description:null,name:"Change Account Owner",inputs:[iM],collapsed:!0,returnStatements:[],calls:[eM],private:!1,index:0,implements:null,x:0,y:0,parent:aM},oM={type:i.GenericReference,id:"72c7ac0a-886e-4e10-b7ed-2f5a819a0233",entityType:i.Property,entityId:"b8f4656a-2b77-43ab-af51-7c32ddede044"},lM={like:!1,inferred:!1,id:"c09dd282-73f6-4077-a467-b66db20b9fc6",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,isList:!1,asType:!1,parent:oM},dM={type:i.GenericReference,id:"8a950024-512c-4580-81db-a705410aeb99",entityType:i.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},cM={constant:!1,hidden:!1,required:!0,type:i.Property,id:"b8f4656a-2b77-43ab-af51-7c32ddede044",version:1,name:"Account number",description:null,private:!0,defaultValue:null,implements:pi,static:!1,index:0,dataType:lM,abstract:!1,parent:dM},uM={type:i.GenericReference,id:"b6704b6c-c3bd-49d0-8ebc-82d03e726cbb",entityType:i.Property,entityId:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea"},pM={like:!1,inferred:!1,id:"c03e0b0a-88ab-401a-8833-4806738bdc37",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:bt,isList:!1,asType:!1,parent:uM},yM={type:i.GenericReference,id:"1ef999a7-e9ed-406a-866e-e58277fc985b",entityType:i.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},hM={constant:!1,hidden:!1,required:!0,type:i.Property,id:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea",version:1,description:null,name:"Account Owner",index:1,defaultValue:null,dataType:pM,implements:null,static:!1,private:!0,abstract:!1,parent:yM},fM={type:i.GenericReference,id:"d41d7f41-98b8-4f67-be92-c349fdda5156",entityType:i.Project,entityId:H},vi={type:i.DefinitionEntity,id:"506946aa-30da-48e6-918f-ffd9eac58813",version:1,name:"Bank Account",description:null,abstract:!1,static:!1,abstractMethods:[],properties:[cM,hM],methods:[db,sM],extends:[],implements:[st,Ft],x:0,y:0,parent:fM},Da="bitcoin-api-response-id",ub="time-property-id",pb="disclaimer-property-id",yb="chart-name-property-id",hb="bpi-property-id",no="bpi-entity-id",fb="usd-property-id",mb="gbp-property-id",Tb="eur-property-id",Ii="currency-entity-id",Eb="currency-code-property-id",Rb="currency-symbol-property-id",gb="currency-rate-property-id",bb="currency-description-property-id",vb="currency-rate-number-property-id",mM={type:i.GenericReference,id:"code-property-data-type-parent-ref-id",entityType:i.Property,entityId:Eb},TM={like:!1,inferred:!1,id:"code-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:On,isList:!1,asType:!1,options:["USD","GBP","EUR"],parent:mM},EM={type:i.GenericReference,id:"code-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:Ii},RM={constant:!1,hidden:!1,required:!0,type:i.Property,id:Eb,version:1,name:"code",description:null,defaultValue:null,dataType:TM,index:0,implements:null,static:!1,private:!1,abstract:!1,parent:EM},gM={type:i.GenericReference,id:"symbol-property-data-type-parent-ref-id",entityType:i.Property,entityId:Rb},bM={like:!1,inferred:!1,id:"symbol-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:On,isList:!1,asType:!1,options:["$","£","€"],parent:gM},vM={type:i.GenericReference,id:"symbol-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:Ii},IM={constant:!1,hidden:!1,required:!0,type:i.Property,id:Rb,version:1,name:"symbol",description:null,index:0,defaultValue:null,dataType:bM,implements:null,static:!1,private:!1,abstract:!1,parent:vM},DM={type:i.GenericReference,id:"rate-property-data-type-parent-ref-id",entityType:i.Property,entityId:gb},AM={like:!1,inferred:!1,id:"rate-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,isList:!1,asType:!1,parent:DM},SM={type:i.GenericReference,id:"rate-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:Ii},OM={constant:!1,hidden:!1,required:!0,type:i.Property,id:gb,version:1,name:"rate",description:null,index:0,defaultValue:null,dataType:AM,implements:null,static:!1,private:!1,abstract:!1,parent:SM},PM={type:i.GenericReference,id:"description-property-data-type-parent-ref-id",entityType:i.Property,entityId:bb},CM={like:!1,inferred:!1,id:"description-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,isList:!1,asType:!1,parent:PM},wM={type:i.GenericReference,id:"description-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:Ii},BM={constant:!1,hidden:!1,required:!0,type:i.Property,id:bb,version:1,name:"description",description:null,defaultValue:null,dataType:CM,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:wM},MM={type:i.GenericReference,id:"rate-number-property-data-type-parent-ref-id",entityType:i.Property,entityId:vb},_M={like:!1,inferred:!1,id:"rate-number-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,isList:!1,asType:!1,parent:MM},VM={type:i.GenericReference,id:"rate-number-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:Ii},NM={constant:!1,hidden:!1,required:!0,type:i.Property,id:vb,version:1,name:"rate_float",description:null,defaultValue:null,dataType:_M,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:VM},LM={type:i.GenericReference,id:"currency-prototype-parent-ref-id",entityType:i.Project,entityId:H},ro={type:i.DefinitionEntity,id:Ii,version:1,name:"Currency",description:"This entity describes a currency in the Bitcoin Price Index.",properties:[RM,IM,OM,BM,NM],static:!1,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:LM},GM={type:i.GenericReference,id:"usd-property-data-type-parent-ref-id",entityType:i.Property,entityId:fb},$M={like:!1,inferred:!1,id:"usd-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ro,isList:!1,asType:!1,parent:GM},FM={type:i.GenericReference,id:"usd-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:no},UM={constant:!1,hidden:!1,required:!0,id:fb,type:i.Property,version:1,name:"USD",description:null,index:0,dataType:$M,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:FM},xM={type:i.GenericReference,id:"gbp-property-data-type-parent-ref-id",entityType:i.Property,entityId:mb},jM={like:!1,inferred:!1,id:"gbp-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ro,isList:!1,asType:!1,parent:xM},kM={type:i.GenericReference,id:"gbp-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:no},qM={constant:!1,hidden:!1,required:!0,id:mb,type:i.Property,version:1,name:"GBP",description:null,index:0,dataType:jM,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:kM},JM={type:i.GenericReference,id:"eur-property-data-type-parent-ref-id",entityType:i.Property,entityId:Tb},WM={like:!1,inferred:!1,id:"eur-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ro,isList:!1,asType:!1,parent:JM},YM={type:i.GenericReference,id:"eur-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:no},HM={constant:!1,hidden:!1,required:!0,id:Tb,type:i.Property,version:1,name:"EUR",description:null,implements:null,static:!1,index:0,defaultValue:null,dataType:WM,private:!1,abstract:!1,parent:YM},zM={type:i.GenericReference,id:"bpi-prototype-parent-ref-id",entityType:i.Project,entityId:H},Ib={type:i.DefinitionEntity,id:no,version:1,name:"BPI",description:"The Bitcoin Price Index",properties:[UM,qM,HM],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:zM},ZM={type:i.GenericReference,id:"time-property-data-type-parent-ref-id",entityType:i.Property,entityId:ub},KM={like:!1,inferred:!1,id:"time-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ai,isList:!1,asType:!1,parent:ZM},XM={type:i.GenericReference,id:"time-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:Da},QM={constant:!1,hidden:!1,required:!0,type:i.Property,id:ub,version:1,name:"time",description:null,index:0,defaultValue:null,dataType:KM,implements:null,static:!1,private:!1,abstract:!1,parent:XM},e_={type:i.GenericReference,id:"disclaimer-property-data-type-parent-ref-id",entityType:i.Property,entityId:pb},t_={like:!1,inferred:!1,id:"disclaimer-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,isList:!1,asType:!1,parent:e_},n_={type:i.GenericReference,id:"disclaimer-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:Da},r_={constant:!1,hidden:!1,required:!0,type:i.Property,id:pb,version:1,name:"disclaimer",description:null,index:0,defaultValue:null,dataType:t_,implements:null,static:!1,private:!1,abstract:!1,parent:n_},i_={type:i.GenericReference,id:"chart-name-property-data-type-parent-ref-id",entityType:i.Property,entityId:yb},a_={like:!1,inferred:!1,id:"chart-name-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,isList:!1,asType:!1,parent:i_},s_={type:i.GenericReference,id:"chart-name-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:Da},o_={constant:!1,hidden:!1,required:!0,type:i.Property,id:yb,version:1,name:"chartName",description:null,index:0,defaultValue:null,dataType:a_,implements:null,static:!1,private:!1,abstract:!1,parent:s_},l_={type:i.GenericReference,id:"bpi-property-data-type-parent-ref-id",entityType:i.Property,entityId:hb},d_={like:!1,inferred:!1,id:"bpi-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ib,isList:!1,asType:!1,parent:l_},c_={type:i.GenericReference,id:"bpi-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:Da},u_={constant:!1,hidden:!1,required:!0,type:i.Property,id:hb,version:1,name:"bpi",description:null,implements:null,index:0,defaultValue:null,dataType:d_,static:!1,private:!1,abstract:!1,parent:c_},p_={type:i.GenericReference,id:"bitcoin-api-response-parent-ref-id",entityType:i.Project,entityId:H},Db={type:i.DefinitionEntity,id:Da,version:1,name:"Bitcoin API Response type",description:"The type of the data structure response from the Bitcoin API call",properties:[QM,r_,o_,u_],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:p_},y_={type:i.GenericReference,id:"eefa0147-f873-484b-b4f3-9e6493aab183",entityType:i.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},h_={like:!1,inferred:!1,id:"b9f35112-dcb2-4b7c-8fb9-f196b3fa37f9",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:bt,isList:!1,asType:!1,parent:y_},f_={type:i.GenericReference,id:"128770d6-5e3a-4aff-bca0-ad1f32ebefa8",entityType:i.ReturnStatement,entityId:"e4e05975-c277-471a-b869-f0aed316045c"},m_={type:i.GenericReference,id:"0be84bf9-6421-42b9-980f-6a03f30cb809",entityType:i.ReturnDeclaration,entityId:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},T_={like:!1,inferred:!1,id:"43daa02a-237b-4b7c-a6e9-2b8c167f6e22",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:bt,isList:!1,asType:!1,parent:m_},E_={type:i.GenericReference,id:"ad380383-4a47-43da-968e-75a2d603b230",entityType:i.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},Ab={constant:!0,isError:!1,id:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:i.ReturnDeclaration,version:1,name:"New Company Owner",description:"The new owner of the company",implements:null,defaultValue:null,dataType:T_,readsValue:E_,required:!0,index:0,parent:f_},R_={type:i.GenericReference,id:"4f24dc27-59a1-49bf-abcc-7d72b00926e4",entityType:i.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},g_={constant:!0,id:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",type:i.ArgumentDeclaration,version:1,name:"New Company Owner",description:null,implements:null,defaultValue:null,dataType:h_,writesValues:[Ab],required:!0,index:0,parent:R_},b_={type:i.GenericReference,id:"5c9a02f0-d2cf-4efc-828e-467f33a74dd3",entityType:i.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},v_={type:i.GenericReference,id:"2ff8f3da-e0c5-4f0f-b688-2c051c588786",entityType:i.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},I_={type:i.GenericReference,id:"195ae28c-159b-42de-80b1-2ebb8be3619f",entityType:i.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},Sb={type:i.ReturnStatement,id:"e4e05975-c277-471a-b869-f0aed316045c",version:1,outputs:[Ab],calledByError:[],calledByEntry:[v_],calledBySuccess:[],throws:null,x:0,y:0,parent:I_},D_={type:i.FunctionDeclaration,id:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4",version:1,name:"Change owner of company",description:"Change the owner of the company to a new person",inputs:[g_],calls:[Sb],index:0,collapsed:!1,implements:null,returnStatements:[Sb],private:!1,x:0,y:0,parent:b_},A_={type:i.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",entityType:i.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},S_={type:i.GenericReference,id:"29c4e3e0-1b66-4075-b559-45b27c5cf356",entityType:i.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},O_={type:i.GenericReference,id:"b1289358-b185-455d-8f58-7791b15cd52a",entityType:i.ReturnStatement,entityId:"9690cd1d-ea35-4e83-823d-0c7310265fee"},P_={type:i.GenericReference,id:"d847bb49-8789-4550-bb2d-e2d551993b28",entityType:i.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},C_={type:i.GenericReference,id:"06535500-c37c-4915-8398-1d4e184fa5e7",entityType:i.ReturnDeclaration,entityId:"e7a35277-a0c4-46d5-aca2-bddd0c26e931"},w_={like:!1,inferred:!1,id:"d358dd91-35f7-4095-b728-3fb3c71dbc05",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Sn,asType:!1,isList:!1,parent:C_},Nd={constant:!0,isError:!1,id:"e7a35277-a0c4-46d5-aca2-bddd0c26e931",type:i.ReturnDeclaration,version:1,name:"Is name registered",description:"Whether the company name is already registered",defaultValue:null,dataType:w_,implements:null,readsValue:P_,required:!0,index:0,parent:O_},B_={type:i.GenericReference,id:"gov-company-registry-return-statement-called-by-success-ref-id",entityType:i.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},Ld={type:i.ReturnStatement,id:"9690cd1d-ea35-4e83-823d-0c7310265fee",version:1,outputs:[Nd],calledByError:[],calledByEntry:[],calledBySuccess:[A_,B_],throws:null,x:0,y:0,parent:S_},M_={type:i.GenericReference,id:"b3126414-4c9b-495f-901e-59f5073c8d67",entityType:i.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},__={type:i.GenericReference,id:"35115c48-618b-411b-a290-d746d22fdd10",entityType:i.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},Ob={id:"a0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:i.InputMap,version:1,declaration:Ul,name:null,description:null,readsValue:__,defaultValue:null,parent:M_,index:2},V_={type:i.GenericReference,id:"14f46eae-04a5-47d1-9c7f-28fb09b84d1d",entityType:i.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},N_={like:!1,inferred:!1,id:"990bd5d1-07ea-4253-acc1-d03bedd22a38",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Sn,isList:!1,asType:!1,parent:V_},L_={type:i.GenericReference,id:"e4c3542a-8fb0-4b72-8d6e-3fdff812dd67",entityType:i.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},G_={type:i.GenericReference,id:"825f9f60-22a8-4cc6-9055-d7333f8e92f4",entityType:i.OutputMap,entityId:"8f30d787-9459-4d8d-98a2-b46fbc2006d5"},$_={type:i.GenericReference,id:"is-company-name-registered-var-called-by-ref",entityType:i.Operation,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},Pb={constant:!0,required:!0,type:i.VariableDeclaration,id:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a",version:1,name:"Is name registered",description:"Whether the company name is registered with the government company registry",defaultValue:null,dataType:N_,readsValue:G_,writesValues:[Nd],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[$_],successCalls:[Ld],errorCalls:[],internalCalls:[],x:0,y:0,parent:L_},F_={type:i.GenericReference,id:"1aba021e-48ef-44ac-93d0-eaecac5895da",entityType:i.InputMap,entityId:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a"},U_={type:i.GenericReference,id:"dffae7e0-0a5c-4c14-8ed2-8d680b4c4c86",entityType:i.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},x_={type:i.InputMap,id:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a",version:1,declaration:ys,name:null,description:null,readsValue:null,defaultValue:{id:"gov-http-request-url-argument-default-value-id",type:i.LiteralValue,version:1,value:"https://api.publicapis.org/entries",name:C.String,valueAsType:null,parent:F_,autogeneration:null},index:1,parent:U_},j_={type:i.GenericReference,id:"64ae61f5-ace7-401b-926d-25f852daa60e",entityType:i.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},k_={id:"8f30d787-9459-4d8d-98a2-b46fbc2006d5",type:i.OutputMap,version:1,defaultValue:null,declaration:Es,index:2,writesValues:[Pb],parent:j_},q_={type:i.GenericReference,id:"62a1a086-caea-4270-9c9f-a1695503e745",entityType:i.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},J_={id:"48cf7654-8f3e-4fcd-abc6-740876c310a0",type:i.InputMap,version:1,declaration:ps,name:null,description:null,readsValue:null,index:0,defaultValue:null,parent:q_},W_={type:i.GenericReference,id:"b0c9c79f-f525-428d-99e7-087d3237ad62",entityType:i.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},Y_={id:"2c1dc406-4b71-4023-87b2-abede3a111d2",type:i.InputMap,version:1,name:null,description:null,declaration:hs,index:3,readsValue:null,defaultValue:null,parent:W_},H_={type:i.GenericReference,id:"9887d6c9-d75b-4c97-b722-e2e60945ea20",entityType:i.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},z_={id:"3fef94b2-0278-43ae-b0c5-bc7083f0a111",type:i.InputMap,version:1,declaration:fs,name:null,description:null,readsValue:null,index:4,defaultValue:null,parent:H_},Z_={type:i.GenericReference,id:"561275b6-5056-45d8-bf7d-8abaa4645593",entityType:i.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},K_={id:"3efe20a7-4d63-411e-89ef-63e277f48d66",type:i.OutputMap,version:1,defaultValue:null,declaration:Ts,index:1,writesValues:[],parent:Z_},X_={type:i.GenericReference,id:"3170ccc2-13de-4bfc-802a-a643be41cd42",entityType:i.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},Q_={id:"40d34323-d7e6-440a-8016-67c05a3b66dd",type:i.OutputMap,version:1,defaultValue:null,declaration:ms,index:0,writesValues:[],parent:X_},eV={type:i.GenericReference,id:"7432fa82-f574-4c54-a8fa-4cc4376da3d5",entityType:i.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},tV={type:i.GenericReference,id:"8f518502-9eea-462c-8753-8bc3bf3e29a9",entityType:i.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},nV={type:i.GenericReference,id:"123b8f18-79d9-4166-a5f6-78ec4b461680",entityType:i.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},rV={type:i.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",entityType:i.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},iV={type:i.GenericReference,id:"a375eedf-4811-41aa-a998-4897c69c46b9",entityType:i.ReturnDeclaration,entityId:"024a9b77-c1cd-4b67-b3ba-1935046b590d"},aV={like:!1,inferred:!1,id:"767cc5ed-20ec-4fd1-89b1-c8d19daa87d1",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:it,asType:!1,isList:!1,parent:iV},sV={type:i.GenericReference,id:"e64b0c23-129d-4d74-8ab4-eec60e1e5b9b",entityType:i.ReturnStatement,entityId:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3"},Cb={constant:!0,isError:!0,id:"024a9b77-c1cd-4b67-b3ba-1935046b590d",type:i.ReturnDeclaration,version:1,name:"Error",description:"The error that occurred during the HTTP request to the government company registry",dataType:aV,defaultValue:null,implements:null,required:!0,readsValue:null,index:0,parent:sV},wb={type:i.ReturnStatement,id:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3",version:1,outputs:[],calledByError:[rV],calledByEntry:[],calledBySuccess:[],throws:Cb,x:0,y:0,parent:nV},oV={type:i.GenericReference,id:"323814fb-9723-49ef-bbba-f882384f18e4",entityType:i.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},lV={id:"2f63f7ba-0ff0-458a-92bc-65d1dd4df8c3",type:i.OutputMap,declaration:xl,defaultValue:null,version:1,writesValues:[Cb],index:0,parentRelationType:ri.Error,parent:oV},dV={type:i.Operation,id:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7",version:1,declaration:Xi,inputs:[J_,x_,Ob,Y_,z_],outputs:[Q_,K_,k_],process:null,calledByError:[],calledByEntry:[eV],calledBySuccess:[],successCalls:[Ld,Pb],errorCalls:[wb],error:lV,x:0,y:0,parent:tV},cV={type:i.GenericReference,id:"597b8aa2-f6f2-4f7d-bbb9-b703d02de96a",entityType:i.InputMap,entityId:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a"},uV={type:i.GenericReference,id:"546d99b3-28c4-4186-93a0-ac53c1565e07",entityType:i.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},pV={id:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:i.InputMap,version:1,declaration:ds,name:null,description:null,readsValue:null,defaultValue:{id:"base-query-string-map-default-value-id",type:i.LiteralValue,version:1,value:"?name=",name:C.String,parent:cV,valueAsType:null,autogeneration:null},index:0,parent:uV},yV={type:i.GenericReference,id:"6a56fb22-82e1-47c9-bf85-41c4e5986c74",entityType:i.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},hV={type:i.GenericReference,id:"191c6a6d-9bcb-441e-bf98-de0da96f5f3a",entityType:i.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},fV={type:i.GenericReference,id:"d8fcbb76-dae2-40cf-847a-02364721b387",entityType:i.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},mV={like:!1,inferred:!1,id:"6a70c42b-024a-47c6-8a9d-af52be9c9b9a",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,isList:!1,asType:!1,parent:fV},TV={type:i.GenericReference,id:"2282e2c0-ed9e-4c7b-86fc-1a364fa0fdb8",entityType:i.OutputMap,entityId:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5"},EV={type:i.GenericReference,id:"assembled-query-string-called-by-ref",entityType:i.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},Bb={constant:!0,required:!0,type:i.VariableDeclaration,id:"83e12ebb-c958-4dee-b750-8ab9930f0f4e",version: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:mV,readsValue:TV,writesValues:[Ob],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[EV],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:hV},RV={id:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5",type:i.OutputMap,version:1,defaultValue:null,writesValues:[Bb],declaration:Zi,index:0,parent:yV},gV={type:i.GenericReference,id:"a1b48e7c-0301-4747-b4dd-b5af79956f7f",entityType:i.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},bV={type:i.GenericReference,id:"487c9235-be95-4c96-b9b5-2714b374a277",entityType:i.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},vV={type:i.GenericReference,id:"f6471f4f-b269-46fa-80ec-885e87a449c2",entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69",entityType:i.ArgumentDeclaration},IV={type:i.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:i.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},Mb={id:"08f36e2b-bad2-425c-8129-93560bec8488",version:1,type:i.InputMap,declaration:cs,name:null,description:null,readsValue:vV,defaultValue:null,index:1,parent:IV},DV={type:i.Operation,id:"8f2094c0-e27e-465e-9280-112da0de9019",declaration:Ki,version:1,inputs:[Mb,pV],outputs:[RV],process:null,calledByError:[],calledByEntry:[gV],calledBySuccess:[],successCalls:[Bb],errorCalls:[],error:null,x:0,y:0,parent:bV},AV={type:i.GenericReference,id:"c2e0e9b4-aa46-4974-bf8a-886b737b12fb",entityType:i.ArgumentDeclaration,entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69"},SV={like:!1,inferred:!1,id:"a4279518-3bf3-44b7-a2ac-65142ca37f1c",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:AV},OV={type:i.GenericReference,id:"dc273f24-164b-4943-82f9-589b237141e2",entityType:i.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},_b={constant:!0,id:"a4106e8e-ec4f-4633-a636-09ae73135f69",type:i.ArgumentDeclaration,version:1,name:"Company Name to check",description:"The name of the company to check in the government registry",dataType:SV,defaultValue:null,implements:null,required:!1,writesValues:[Mb],index:0,parent:OV},PV={type:i.GenericReference,id:"2178a10c-1cc0-4dad-97c3-0941be6c9738",entityType:i.Project,entityId:H},Vb={type:i.FunctionDeclaration,id:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d",version: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:[_b],calls:[DV,dV],returnStatements:[Ld,wb],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:PV},CV={type:i.GenericReference,id:"4d66c53c-f0f7-496a-9955-1e6c8533c5e0",entityType:i.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},wV={type:i.GenericReference,id:"6fa0c8e0-d104-4b4d-a035-d4f6e0c49f09",entityType:i.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},BV={type:i.GenericReference,id:"146408d5-5336-4877-941a-777dd5871926",entityType:i.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},MV={type:i.GenericReference,id:"34ae8f8c-548d-4654-984a-6f36affdaf49",entityType:i.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},Nb={id:"69b1215d-9ebf-4274-b9cb-d4a5888f5122",version:1,type:i.InputMap,declaration:_b,name:null,description:null,readsValue:BV,defaultValue:null,index:0,parent:MV},_V={type:i.GenericReference,id:"07540a94-dda1-40b3-8452-f209bdc87b88",entityType:i.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},VV={type:i.GenericReference,id:"eaddf12a-a995-429e-90a0-13bf06efeb28",entityType:i.VariableDeclaration,entityId:"faaf3bf6-917d-40d7-aee6-5164f6646c4b"},NV={like:!1,inferred:!1,id:"7fdaf943-3ffb-48e0-b766-b86cc24090cf",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Sn,asType:!1,isList:!1,parent:VV},LV={type:i.GenericReference,id:"030fb5c5-af4d-4c85-8cf0-e99edd50d2bd",entityType:i.OutputMap,entityId:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},GV={type:i.GenericReference,id:"a8b618e9-c68c-48c1-8bd6-ef47c87d699e",entityType:i.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},$V={type:i.GenericReference,id:"is-company-name-valid-var-called-by-ref",entityType:i.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},Lb={constant:!0,required:!0,type:i.VariableDeclaration,id:"faaf3bf6-917d-40d7-aee6-5164f6646c4b",version:1,name:"Is name valid",description:"Whether the company name is valid",defaultValue:null,dataType:NV,readsValue:LV,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[$V],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:GV},FV={id:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:i.OutputMap,version:1,declaration:Nd,defaultValue:null,writesValues:[Lb],index:0,parent:_V},UV={type:i.FunctionCall,id:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",version:1,declaration:Vb,inputs:[Nb],outputs:[FV],calledByError:[],calledByEntry:[],process:null,calledBySuccess:[CV],successCalls:[Lb],errorCalls:[],error:null,x:0,y:0,parent:wV},xV={type:i.GenericReference,id:"9d0b87b4-bfed-4e02-9e84-6831c21feae2",entityType:i.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},jV={type:i.GenericReference,id:"74345f4f-e80d-48be-adff-d12fcea25bec",entityType:i.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},kV={type:i.GenericReference,id:"b39279ea-969a-4efb-a9ec-353bfd13db65",entityType:i.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},qV={type:i.GenericReference,id:"549db613-f225-4c5b-9634-7d096717f0ff",entityType:i.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},Gb={id:"358e242c-7448-442e-ab8b-fd7fa119ea71",version:1,type:i.InputMap,declaration:gr.inputs[0],name:null,description:null,readsValue:kV,defaultValue:null,index:0,parent:qV},JV={type:i.Condition,id:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b",version:1,declaration:gr,inputs:[Gb],calledByError:[],calledByEntry:[xV],calledBySuccess:[],successCalls:[UV],errorCalls:[],x:0,y:0,parent:jV},WV={type:i.GenericReference,id:"43ba1e25-f805-488f-8ae8-c58bb6215b2f",entityType:i.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},YV={type:i.GenericReference,id:"eb091bed-507f-4a1e-93b5-7cd2fccfe002",entityType:i.VariableDeclaration,entityId:"9c928995-0dd5-4f97-9962-56b343bc8a45"},HV={like:!1,inferred:!1,id:"d64152ea-831f-4426-9506-a39bfa170513",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:vi,asType:!1,isList:!1,parent:YV},zV={type:i.GenericReference,id:"7e79c29f-f7bd-441a-a77e-c627604dae94",entityType:i.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},ZV={type:i.GenericReference,id:"8995ce5f-d5cf-4341-a8b1-5c046cc78b89",entityType:i.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},KV={type:i.GenericReference,id:"new-company-bank-account-var-decl-1-called-by-ref",entityType:i.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},$b={constant:!0,required:!0,type:i.VariableDeclaration,id:"9c928995-0dd5-4f97-9962-56b343bc8a45",version:1,name:"New bank account",description:"The new entity value representing the new bank account of the company",defaultValue:null,dataType:HV,readsValue:ZV,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[KV],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:zV},XV={type:i.GenericReference,id:"9a4887bf-d50d-43e4-bdd5-a5262f65f04b",entityType:i.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},QV={like:!1,inferred:!1,id:"ae148c06-3143-49e9-9614-c3aca3f6fa7b",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:vi,asType:!1,isList:!1,parent:XV},eN={constant:!0,id:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071",type:i.ArgumentDeclaration,version:1,name:"New bank account",description:"The new bank account of the company",dataType:QV,implements:null,defaultValue:null,required:!0,index:1,writesValues:[$b],parent:WV},tN={type:i.GenericReference,id:"caec9cf8-3133-48d4-a390-114fa71b2933",entityType:i.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},nN={type:i.GenericReference,id:"cebcbad8-ca87-4c4b-be8a-312293d49892",entityType:i.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},rN={type:i.GenericReference,id:"7b8ccfe5-f9cd-4776-a19b-80c689bbe3df",entityType:i.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},iN={like:!1,inferred:!1,id:"2a6b4703-ac8d-4d25-8abd-48a115577fec",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:rN},aN={constant:!0,id:"c6cf620c-1eee-4919-8578-1a0b6c088551",type:i.ArgumentDeclaration,version:1,name:"New company name",description:null,dataType:iN,implements:null,defaultValue:null,required:!0,index:0,writesValues:[Gb,Nb],parent:nN},sN={type:i.FunctionDeclaration,id:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84",version:1,name:"Company changed event",description:"The event that is triggered when a company is changed",returnStatements:[],collapsed:!1,inputs:[aN,eN],calls:[JV,$b],index:1,private:!1,implements:null,x:0,y:0,parent:tN},oN={type:i.GenericReference,id:"employee-manager-property-data-type-entity-ref-id",entityType:i.DefinitionEntity,entityId:"employee-entity-id"},lN={type:i.GenericReference,id:"employee-manager-property-data-type-parent-ref-id",entityType:i.Property,entityId:"employee-manager-property-id"},dN={like:!1,inferred:!1,id:"employee-manager-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:oN,isList:!1,asType:!1,parent:lN},cN={type:i.GenericReference,id:"employee-manager-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:"employee-entity-id"},uN={constant:!1,required:!0,hidden:!1,type:i.Property,id:"employee-manager-property-id",version:1,name:"Manager",description:"The manager of the employee",index:0,implements:null,private:!1,static:!1,defaultValue:null,dataType:dN,abstract:!1,parent:cN},pN={type:i.GenericReference,id:"employee-start-date-property-data-type-parent-ref-id",entityType:i.Property,entityId:"employee-start-date-property-id"},yN={like:!1,inferred:!1,id:"employee-start-date-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ln,isList:!1,asType:!1,parent:pN},hN={type:i.GenericReference,id:"employee-start-date-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:"employee-entity-id"},fN={constant:!1,hidden:!1,required:!0,type:i.Property,id:"employee-start-date-property-id",version: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:yN,abstract:!1,parent:hN},mN={type:i.GenericReference,id:"employee-department-property-ref-id",entityType:i.Property,entityId:"employee-department-property-id"},TN={like:!1,inferred:!1,id:"employee-department-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:On,isList:!1,asType:!1,options:["Human Resources","Finance","IT","Sales","Marketing","Customer Service","Logistics","Product"],parent:mN},EN={type:i.GenericReference,id:"employee-department-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:"employee-entity-id"},RN={constant:!1,hidden:!1,required:!0,type:i.Property,id:"employee-department-property-id",version: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:TN,abstract:!1,parent:EN},gN={type:i.GenericReference,id:"employee-prototype-parent-ref-id",entityType:i.Project,entityId:H},Yt={type:i.DefinitionEntity,id:"employee-entity-id",version:1,name:"Employee",description:"A entity that represents an employee in the company",properties:[RN,fN,uN],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[bt],x:0,y:0,parent:gN},bN={type:i.GenericReference,id:"dec8fbfe-9124-41fd-9f1c-5b2f07cfd6ba",entityType:i.Property,entityId:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd"},vN={like:!1,inferred:!1,id:"bc0b8979-6c43-4d47-a712-6742b89e3c00",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,isList:!1,asType:!1,parent:bN},IN={type:i.GenericReference,id:"4f8c0a05-466e-4672-b4c4-6bd408c0be9a",entityType:i.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},DN={constant:!1,hidden:!1,required:!0,type:i.Property,id:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd",version:1,name:"Company Name",private:!1,static:!1,description:"The name of the company",index:0,defaultValue:null,implements:null,dataType:vN,abstract:!1,parent:IN},AN={type:i.GenericReference,id:"95173fe0-a6e6-443c-94f3-f7c5cf171fcf",entityType:i.Property,entityId:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3"},SN={like:!1,inferred:!1,id:"ddbb6f5c-0cf4-41fb-83b3-b6c47c0e338d",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:vi,isList:!1,asType:!1,parent:AN},ON={type:i.GenericReference,id:"6a9a0b72-a05d-4169-b3f3-5afb01e8d0df",entityType:i.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},Gd={constant:!1,hidden:!1,required:!0,type:i.Property,id:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3",version:1,name:"Bank account",description:"The bank account of the company",index:1,implements:null,static:!1,private:!1,defaultValue:null,dataType:SN,abstract:!1,parent:ON},PN={type:i.GenericReference,id:"62892cc6-d227-4088-90d3-ae7c15ed4af4",entityType:i.Property,entityId:"19a31727-1fba-40a5-be25-18e0f149d5cb"},CN={like:!1,inferred:!1,id:"1f7629df-dc29-4c89-8369-c6d043e97a9e",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:bt,isList:!1,asType:!1,parent:PN},wN={type:i.GenericReference,id:"89384206-fd5a-4f0a-849c-f777473e5773",entityType:i.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},BN={constant:!1,hidden:!1,required:!0,type:i.Property,id:"19a31727-1fba-40a5-be25-18e0f149d5cb",version:1,name:"Company Owner",description:"The person that owns the company",index:2,static:!1,implements:null,defaultValue:null,dataType:CN,private:!0,abstract:!1,parent:wN},MN={type:i.GenericReference,id:"4d2ffb6c-5f38-436e-8339-fb9878ac2b5e",entityType:i.Property,entityId:"f8310850-a87e-405c-b182-4f1d5fa49240"},_N={like:!1,inferred:!1,id:"ad44250b-40c2-48f7-a480-381fa938f562",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Yt,isList:!0,asType:!1,parent:MN},VN={type:i.GenericReference,id:"aa5d4eee-6fac-4e72-bf21-9c8750024541",entityType:i.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},NN={constant:!1,hidden:!1,required:!0,type:i.Property,id:"f8310850-a87e-405c-b182-4f1d5fa49240",version:1,name:"Employees",description:null,index:3,defaultValue:null,dataType:_N,implements:null,private:!0,static:!1,abstract:!1,parent:VN},LN={id:"company-prototype-primary-key-property-data-type-ref-id",type:i.GenericReference,entityId:"company-prototype-primary-key-property-id",entityType:i.Property},GN={id:"company-prototype-primary-key-property-ref-id",type:i.GenericReference,entityId:"company-prototype-primary-key-property-id",entityType:i.Property},$N={like:!1,inferred:!1,id:"company-prototype-primary-key-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Pn,asType:!1,parent:GN},FN={id:"company-prototype-primary-key-property-parent-ref-id",type:i.GenericReference,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",entityType:i.DefinitionEntity},UN={constant:!1,hidden:!1,required:!0,id:"company-prototype-primary-key-property-id",name:"Identifier",version:1,type:i.Property,private:!1,abstract:!1,implements:pi,static:!1,index:4,defaultValue:{id:"company-prototype-primary-key-property-data-type-default-value-id",type:i.LiteralValue,version:1,name:C.UUID,value:null,parent:LN,autogeneration:{type:ze.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},dataType:$N,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:FN},xN={type:i.GenericReference,id:"e3c03b6b-2ea0-4d99-865d-5e6a348672d0",entityType:i.Project,entityId:H},Ht={type:i.DefinitionEntity,id:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:1,name:"Company",description:null,properties:[DN,Gd,BN,NN,UN],static:!1,abstract:!1,abstractMethods:[],methods:[D_,sN],extends:[],implements:[st,Ft],x:0,y:0,parent:xN},jN={type:i.GenericReference,id:"ffcad334-138d-4b67-8fb3-5f0e6f5fefbd",entityType:i.Project,entityId:H},$d={type:i.FunctionDeclaration,id:"0f89260c-8c58-4639-8629-d9ea5ab40ba7",version:1,name:"Show popup",description:null,inputs:[],calls:[],returnStatements:[],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:jN};i.GenericReference,i.DataType;const kN={id:"cron-job-entity-expression-property-ref-id",type:i.GenericReference,entityId:"cron-job-entity-expression-property-id",entityType:i.Property},qN={like:!1,inferred:!1,id:"cron-job-entity-expression-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parent:kN},JN={id:"cron-job-entity-ref-id",type:i.GenericReference,entityId:"cron-job-entity-id",entityType:i.DefinitionEntity},WN={constant:!1,hidden:!1,required:!0,id:"cron-job-entity-expression-property-id",type:i.Property,version:1,name:"Cron expression",description:"The cron expression that defines when the cron job should be triggered",defaultValue:null,dataType:qN,implements:null,static:!0,private:!1,abstract:!1,index:0,parent:JN},YN={id:"cron-job-entity-trigger-show-popup-func-call-called-by-ref-one-id",type:i.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",entityType:i.FunctionDeclaration},HN={id:"cron-job-entity-trigger-show-popup-func-call-parent-ref-id",type:i.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",entityType:i.FunctionDeclaration},zN={id:"cron-job-entity-trigger-show-popup-func-call-id",version:1,type:i.FunctionCall,declaration:$d,inputs:[],outputs:[],process:null,successCalls:[],calledByError:[],calledByEntry:[YN],calledBySuccess:[],errorCalls:[],error:null,x:0,y:0,parent:HN},ZN={id:"cron-job-entity-trigger-func-decl-parent-ref-id",type:i.GenericReference,entityId:"cron-job-entity-id",entityType:i.DefinitionEntity},KN={id:"cron-job-entity-trigger-func-decl-id",version:1,type:i.FunctionDeclaration,name:"Scheduled trigger",description:"The function that is called when the cron job is triggered",inputs:[],private:!1,implements:ud,calls:[zN],collapsed:!1,returnStatements:[],index:0,x:0,y:0,parent:ZN},XN={id:"cron-job-entity-parent-ref-id",type:i.GenericReference,entityId:H,entityType:i.Project},QN={id:"cron-job-entity-id",version:1,type:i.DefinitionEntity,name:"Run at 12pm on Christmas day",description:"A cron job that runs at 12pm on Christmas day",properties:[WN],static:!0,abstract:!1,abstractMethods:[],extends:[Ss],implements:[],methods:[KN],x:0,y:0,parent:XN},eL={type:i.GenericReference,id:"52dbd85c-48b1-462a-8205-2437d6fb1cb4",entityType:i.Project,entityId:H},tL={type:i.DefinitionEntity,id:"6f0908c2-09c6-4a8b-8f43-d2467fe6fb39",version:1,name:"Get bank all bank accounts",description:null,properties:[],static:!0,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[ra],x:0,y:0,parent:eL},io="f558fbf8-67de-4545-9804-6ae621e0b2d4",nL={id:"getCompanyByIdEndpointPathParamsVariableDataTypeRef",type:i.GenericReference,entityType:i.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},rL={id:"getCompanyByIdEndpointPathParamsArgumentDeclarationRef",type:i.GenericReference,entityType:i.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},iL={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathParamsVariableDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:J,asType:!1,parent:rL},aL={id:"getCompanyByIdEndpointReachedEntityEventRef",type:i.GenericReference,entityType:i.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},sL={id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeRef",type:i.GenericReference,entityType:i.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},oL={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclarationRef",type:i.GenericReference,entityType:i.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},lL={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestHeadersVariableDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:it,asType:!1,parent:oL},dL={constant:!0,id:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:i.ArgumentDeclaration,writesValues:[],name:"Request headers",defaultValue:{id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeDefaultValueId",type:i.LiteralValue,version:1,name:C.KeyValue,value:{},parent:sL,autogeneration:null,valueAsType:null},dataType:lL,implements:ed,required:!0,index:0,parent:aL},cL={id:"getCompanyByIdEndpointReachedEntityEventRefTwo",type:i.GenericReference,entityType:i.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},uL={constant:!0,id:"getCompanyByIdEndpointPathParamsArgumentDeclaration",type:i.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,name:"Path parameters",writesValues:[],defaultValue:{id:"getCompanyByIdEndpointPathParamsVariableDataTypeDefaultValueId",type:i.LiteralValue,version:1,name:C.KeyValue,value:{},parent:nL,autogeneration:null,valueAsType:null},dataType:iL,implements:td,required:!0,index:1,parent:cL},pL={id:"getCompanyByIdEndpointReachedEntityEventRefThree",type:i.GenericReference,entityType:i.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},yL={id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeRef",type:i.GenericReference,entityType:i.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},hL={id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclarationRef",type:i.GenericReference,entityType:i.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},fL={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestQueryParamsVariableDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:J,parent:hL},mL={constant:!0,id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration",version: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:i.ArgumentDeclaration,writesValues:[],name:"Request query params",defaultValue:{id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeDefaultValueId",type:i.LiteralValue,version:1,name:C.KeyValue,value:{},parent:yL,autogeneration:null,valueAsType:null},dataType:fL,implements:nd,required:!0,index:2,parent:pL},TL={id:"getCompanyByIdEndpointReachedEntityEventRefFour",type:i.GenericReference,entityType:i.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},EL={id:"getCompanyByIdEndpointRequestBodyArgumentDeclarationRef",type:i.GenericReference,entityType:i.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestBodyArgumentDeclaration"},RL={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestBodyVariableDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:it,parent:EL},gL={constant:!0,id:"getCompanyByIdEndpointRequestBodyArgumentDeclaration",version:1,description:"The main data payload of the request.",type:i.ArgumentDeclaration,writesValues:[],name:"Request body",defaultValue:null,dataType:RL,implements:rd,index:3,required:!0,parent:TL},bL={id:"getCompanyByIdEndpointResponseCodeReturnDeclarationRef",type:i.GenericReference,entityType:i.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseCodeReturnDeclaration"},vL={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!1,parent:bL},IL={id:"getCompanyByIdEndpointReturnStatementRef",type:i.GenericReference,entityType:i.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},DL={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseCodeReturnDeclaration",version: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:i.ReturnDeclaration,name:"Response code",defaultValue:null,dataType:vL,implements:id,readsValue:null,required:!0,index:0,parent:IL},AL={id:"getCompanyByIdEndpointResponseHeadersDataTypeRef",type:i.GenericReference,entityType:i.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},SL={id:"getCompanyByIdEndpointResponseHeadersReturnDeclarationRef",type:i.GenericReference,entityType:i.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},OL={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseHeadersDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:it,asType:!1,parent:SL},PL={id:"getCompanyByIdEndpointReturnStatementRefTwo",type:i.GenericReference,entityType:i.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},CL={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseHeadersReturnDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:i.ReturnDeclaration,name:"Response headers",defaultValue:{id:"getCompanyByIdEndpointResponseHeadersDataTypeDefaultValueId",type:i.LiteralValue,version:1,name:C.KeyValue,value:{},parent:AL,autogeneration:null,valueAsType:null},dataType:OL,implements:ad,readsValue:null,required:!0,index:1,parent:PL},wL={id:"getCompanyByIdEndpointResponseBodyReturnDeclarationRef",type:i.GenericReference,entityType:i.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseBodyReturnDeclaration"},BL={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseBodyDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:it,parent:wL},ML={id:"getCompanyByIdEndpointReturnStatementRefThree",type:i.GenericReference,entityType:i.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},_L={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseBodyReturnDeclaration",version:1,description:"The main data payload of the response.",type:i.ReturnDeclaration,name:"Response body",implements:sd,defaultValue:null,dataType:BL,readsValue:null,required:!0,index:2,parent:ML},VL={id:"getCompanyByIdEndpointReturnStatementCallerRef",type:i.GenericReference,entityId:"getCompanyByIdEndpointReachedEntityEvent",entityType:i.FunctionDeclaration},NL={id:"getCompanyByIdEndpointReachedEntityEventRefFive",type:i.GenericReference,entityType:i.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},LL={id:"getCompanyByIdEndpointReturnStatement",type:i.ReturnStatement,version:1,outputs:[DL,CL,_L],calledByError:[],calledByEntry:[VL],calledBySuccess:[],throws:null,x:0,y:0,parent:NL},GL={id:"endpointBuiltInBaseEntityRefFour",type:i.GenericReference,entityType:i.BuiltInBaseEntity,entityId:io},$L={id:"getCompanyByIdEndpointReachedEntityEvent",name:"Endpoint reached",version:1,type:i.FunctionDeclaration,inputs:[dL,uL,mL,gL],returnStatements:[LL],description:"Fired when the endpoint is reached.",calls:[],collapsed:!1,implements:od,index:0,private:!1,x:0,y:0,parent:GL},FL={id:"getCompanyByIdEndpointPathPropertyDataTypeRef",type:i.GenericReference,entityType:i.Property,entityId:"getCompanyByIdEndpointPathProperty"},UL={id:"getCompanyByIdEndpointPathPropertyRef",type:i.GenericReference,entityType:i.Property,entityId:"getCompanyByIdEndpointPathProperty"},xL={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathPropertyDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parent:UL},jL={id:"getCompanyByIdEndpointBaseEntityRefTwo",type:i.GenericReference,entityType:i.DefinitionEntity,entityId:io},kL={constant:!1,id:"getCompanyByIdEndpointPathProperty",hidden:!1,required:!0,name:"Path",version:1,type:i.Property,private:!1,abstract:!1,static:!0,implements:Xl,defaultValue:{id:"getCompanyByIdEndpointPathPropertyDataTypeDefaultValueId",type:i.LiteralValue,version:1,name:C.String,value:"/company/{id}",parent:FL,valueAsType:null,autogeneration:null},dataType:xL,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:jL},qL={id:"getCompanyByIdEndpointMethodPropertyDataTypeRef",type:i.GenericReference,entityType:i.Property,entityId:"getCompanyByIdEndpointMethodProperty"},JL={id:"getCompanyByIdEndpointMethodPropertyRef",type:i.GenericReference,entityType:i.Property,entityId:"getCompanyByIdEndpointMethodProperty"},WL={like:!1,inferred:!1,id:"getCompanyByIdEndpointMethodPropertyDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:On,isList:!0,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:JL},YL={id:"getCompanyByIdEndpointBaseEntityRefThree",type:i.GenericReference,entityType:i.DefinitionEntity,entityId:io},HL={constant:!1,hidden:!1,required:!0,id:"getCompanyByIdEndpointMethodProperty",name:"Method",version:1,type:i.Property,private:!1,abstract:!1,static:!0,implements:Ql,index:0,defaultValue:{id:"getCompanyByIdEndpointMethodPropertyDataTypeDefaultValueId",type:i.LiteralValue,version:1,value:"GET",name:C.Enum,parent:qL,valueAsType:null,autogeneration:null},dataType:WL,description:null,parent:YL},zL={type:i.GenericReference,id:"6a905153-8aa8-4424-bd7b-6415731a2725",entityType:i.Project,entityId:H},ZL={type:i.DefinitionEntity,id:io,version:1,name:"Get given company data by id",description:null,properties:[kL,HL],methods:[$L],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[ra],x:0,y:0,parent:zL},KL={id:"plant-prototype-database-property-ref-id",type:i.GenericReference,entityId:"plant-prototype-database-property-id",entityType:i.Property},XL={id:"plant-prototype-database-property-data-type-default-value-parent-ref-id",type:i.GenericReference,entityId:"plant-prototype-database-property-id",entityType:i.Property},QL={like:!1,inferred:!1,id:"plant-prototype-database-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:un,asType:!1,parent:KL},e0={id:"plant-prototype-database-property-parent-ref-id",type:i.GenericReference,entityId:"plant-entity-id",entityType:i.DefinitionEntity},t0={constant:!1,hidden:!1,required:!0,id:"plant-prototype-database-property-id",name:"Database",version:1,type:i.Property,private:!1,abstract:!1,implements:ui,static:!0,index:0,defaultValue:{id:"plant-prototype-database-property-data-type-default-value-id",type:i.LiteralValue,version:1,value:null,name:C.EntityTemplate,valueAsType:Bd,autogeneration:null,parent:XL},dataType:QL,description:"The database that the entity belongs to.",parent:e0},n0={type:i.GenericReference,id:"plant-name-property-ref-id",entityType:i.Property,entityId:"plant-name-property-id"},r0={like:!1,inferred:!1,id:"plant-name-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:n0},i0={type:i.GenericReference,id:"animal-name-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:"plant-entity-id"},a0={constant:!1,hidden:!1,required:!0,type:i.Property,id:"plant-name-property-id",version:1,name:"Name",description:"The name of the plant",defaultValue:null,implements:null,static:!1,private:!1,index:0,dataType:r0,abstract:!1,parent:i0},s0={type:i.GenericReference,id:"plant-prototype-parent-ref-id",entityType:i.Project,entityId:H},o0={type:i.DefinitionEntity,id:"plant-entity-id",version:1,name:"Plant",description:"A living creature that is not an animal",abstract:!1,static:!1,abstractMethods:[],properties:[t0,a0],methods:[],extends:[],implements:[st],x:0,y:0,parent:s0},l0={id:"product-prototype-database-property-ref-id",type:i.GenericReference,entityId:"product-prototype-database-property-id",entityType:i.Property},d0={id:"product-prototype-database-property-data-type-default-value-parent-ref-id",type:i.GenericReference,entityId:"product-prototype-database-property-id",entityType:i.Property},c0={like:!1,inferred:!1,id:"product-prototype-database-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:un,asType:!1,parent:l0},u0={id:"product-prototype-database-property-parent-ref-id",type:i.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",entityType:i.DefinitionEntity},p0={constant:!1,hidden:!1,required:!0,id:"product-prototype-database-property-id",name:"Database",version:1,type:i.Property,private:!1,abstract:!1,implements:ui,static:!0,index:0,defaultValue:{id:"product-prototype-database-property-data-type-default-value-id",type:i.LiteralValue,version:1,value:null,name:C.EntityTemplate,valueAsType:Md,autogeneration:null,parent:d0},dataType:c0,description:"The database that the entity belongs to.",parent:u0},y0={type:i.GenericReference,id:"13a4045e-dcb0-4159-8d33-10a646078b5a",entityType:i.Property,entityId:"d519c26a-15b8-40d8-ad09-13fa9342e9ba"},h0={like:!1,inferred:!1,id:"7449779e-1d4e-409c-81c6-4b611336ed18",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,isList:!1,asType:!1,parent:y0},f0={type:i.GenericReference,id:"0969562f-d836-406f-8b48-dd9d417fbe72",entityType:i.DefinitionEntity,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c"},m0={constant:!1,hidden:!1,required:!0,type:i.Property,id:"d519c26a-15b8-40d8-ad09-13fa9342e9ba",version:1,name:"Name",description:"The name of the product",index:0,implements:null,static:!1,private:!1,defaultValue:null,dataType:h0,abstract:!1,parent:f0},T0={type:i.GenericReference,id:"833a5425-7bd0-41dd-9e97-e018acce9592",entityType:i.Project,entityId:H},E0={id:"product-prototype-primary-key-property-data-type-ref-id",type:i.GenericReference,entityId:"product-prototype-primary-key-property-id",entityType:i.Property},R0={id:"product-prototype-primary-key-property-ref-id",type:i.GenericReference,entityId:"product-prototype-primary-key-property-id",entityType:i.Property},g0={like:!1,inferred:!1,id:"product-prototype-primary-key-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Pn,asType:!1,parent:R0},b0={id:"product-prototype-primary-key-property-parent-ref-id",type:i.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",entityType:i.DefinitionEntity},v0={constant:!1,hidden:!1,required:!0,id:"product-prototype-primary-key-property-id",name:"Identifier",version:1,type:i.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:"product-prototype-primary-key-property-data-type-default-value-id",type:i.LiteralValue,version:1,name:C.UUID,value:null,parent:E0,autogeneration:{type:ze.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},dataType:g0,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:b0},I0={type:i.DefinitionEntity,id:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:1,name:"Product",description:"A product that can be sold",implements:[st,Ft],extends:[],abstract:!1,static:!1,abstractMethods:[],properties:[v0,p0,m0],methods:[],x:0,y:0,parent:T0},Di="project-loaded-event-id",_n="get-bitcoin-price-http-call-operation-id",Fb="get-bitcoin-price-http-call-response-body-id",ao="validate-bitcoin-price-response-operation-ids",D0={type:i.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-reads-value-ref-id",entityType:i.OutputMap,entityId:Fb},A0={type:i.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-parent-ref-id",entityType:i.Operation,entityId:ao},Ub={id:"validate-bitcoin-data-to-validate-input-map-id",type:i.InputMap,version:1,declaration:fr.inputs[1],name:null,description:null,readsValue:D0,defaultValue:null,index:0,parent:A0},S0={type:i.GenericReference,id:"validate-bitcoin-type-to-match-input-map-default-value-parent-ref-id",entityType:i.InputMap,entityId:"validate-bitcoin-type-to-match-input-map-id"},O0={type:i.GenericReference,id:"validate-bitcoin-type-to-match-input-map-parent-ref-id",entityType:i.Operation,entityId:ao},P0={id:"validate-bitcoin-type-to-match-input-map-id",type:i.InputMap,version:1,declaration:fr.inputs[0],name:null,description:null,readsValue:null,defaultValue:{id:"validate-bitcoin-type-to-match-input-map-default-value-id",type:i.LiteralValue,version:1,name:C.EntityTemplate,valueAsType:Db,value:null,parent:S0,autogeneration:null},index:0,parent:O0},C0={type:i.GenericReference,id:"validate-bitcoin-validated-entity-output-map-parent-ref-id",entityType:i.Operation,entityId:ao},w0={id:"validate-bitcoin-validated-entity-output-map-id",type:i.OutputMap,version:1,defaultValue:null,declaration:fr.outputs[0],writesValues:[],index:0,parent:C0},B0={type:i.GenericReference,id:"validate-bitcoin-price-response-operation-parent-ref-id",entityType:i.GlobalEvent,entityId:Di},M0={type:i.GenericReference,id:"validate-bitcoin-price-response-operation-called-by-ref-id",entityType:i.Operation,entityId:_n},_0={type:i.Operation,id:ao,version:1,declaration:fr,inputs:[P0,Ub],outputs:[w0],process:null,successCalls:[],errorCalls:[],error:null,x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[M0],parent:B0},V0={type:i.GenericReference,id:"96edb661-3f36-406c-8921-f1679dd796a3",entityType:i.FunctionCall,entityId:_n},N0={id:"c93e1393-9b5e-4de2-b8da-7eae647d715a",version:1,type:i.InputMap,declaration:ps,name:null,description:null,readsValue:null,defaultValue:null,index:0,parent:V0},L0={type:i.GenericReference,id:"40312b28-71b8-4b01-a654-58b87191939d",entityType:i.FunctionCall,entityId:_n},G0={type:i.GenericReference,id:"6ea96c7d-02a7-4971-82ad-2f32a0fec8b4",entityType:i.InputMap,entityId:"9f21cbac-5a83-4983-8923-9224ffd3ba9f"},$0={id:"9f21cbac-5a83-4983-8923-9224ffd3ba9f",version:1,type:i.InputMap,declaration:ys,name:null,description:null,readsValue:null,defaultValue:{id:"get-bitcoin-price-http-request-url-argument-default-value-id",type:i.LiteralValue,version:1,value:"https://api.coindesk.com/v1/bpi/currentprice.json",name:C.String,parent:G0,valueAsType:null,autogeneration:null},index:1,parent:L0},F0={type:i.GenericReference,id:"2610bf4a-c8a2-4746-b6cc-eb15f7fa8e9c",entityType:i.FunctionCall,entityId:_n},U0={id:"ffb3cd9d-c955-4104-bc7b-299120fe4ede",version:1,type:i.InputMap,declaration:hs,name:null,description:null,readsValue:null,defaultValue:null,index:2,parent:F0},x0={type:i.GenericReference,id:"bfd29a6a-671a-448c-9f2f-f8c7e4ad8349",entityType:i.FunctionCall,entityId:_n},j0={id:"412bf1f3-1a8e-4665-a95f-82117540e34e",version:1,type:i.InputMap,declaration:fs,name:null,description:null,readsValue:null,defaultValue:null,index:3,parent:x0},k0={type:i.GenericReference,id:"616a15f3-c224-4b11-b95c-63314edef409",entityType:i.FunctionCall,entityId:_n},q0={id:"4dd4651c-02e4-45f1-b50f-824f3bcb1648",version:1,type:i.OutputMap,defaultValue:null,declaration:Ts,writesValues:[],index:1,parent:k0},J0={type:i.GenericReference,id:"28793b68-4d7e-4826-aee1-f201a3499faf",entityType:i.FunctionCall,entityId:_n},W0={id:"94fe9d35-4dd4-4729-a50c-5283ccd7e661",version:1,type:i.OutputMap,defaultValue:null,declaration:ms,writesValues:[],index:0,parent:J0},Y0={type:i.GenericReference,id:"f13e04b2-49b4-4c69-85b8-cbbafafa3524",entityType:i.FunctionCall,entityId:_n},H0={id:Fb,type:i.OutputMap,defaultValue:null,version:1,declaration:Es,writesValues:[Ub],index:2,parent:Y0},z0={type:i.GenericReference,id:"6148d6d0-caaa-45fc-b601-ff2493dfc60f",entityType:i.GlobalEvent,entityId:Di},Z0={type:i.GenericReference,id:"b115f084-807b-44b3-ae01-b69cc342f761",entityType:i.GlobalEvent,entityId:Di},K0={type:i.Operation,id:_n,version:1,declaration:Xi,inputs:[N0,$0,U0,j0],outputs:[W0,q0,H0],process:null,parent:Z0,calledByError:[],calledByEntry:[z0],calledBySuccess:[],successCalls:[_0],errorCalls:[],error:null,x:0,y:0},X0={type:i.GenericReference,id:"24e76019-3f94-475b-91ce-297f76bbc224",entityType:i.GlobalEvent,entityId:Di},Q0={type:i.GenericReference,id:"0eac8e29-cdf2-42f8-8ea7-ad76d4d79abe",entityType:i.GlobalEvent,entityId:Di},e1={process:null,type:i.FunctionCall,id:"2d2e7593-bfbf-457c-a607-5fce18eef457",version:1,declaration:$d,inputs:[],outputs:[],calledByError:[],calledByEntry:[X0],calledBySuccess:[],parent:Q0,successCalls:[],errorCalls:[],error:null,x:0,y:0},t1={id:"793b5999-a9da-47fb-9665-0c17ebc6d5c9",type:i.GenericReference,entityType:i.Project,entityId:H},n1={type:i.GlobalEvent,id:Di,version:1,name:Dn.PROJECT_PUBLICATION_COMPLETED,returnStatements:[],collapsed:!1,implements:Ps,parent:t1,inputs:[],calls:[e1,K0],x:0,y:0},Ut="abort-execution-func-declaration-id",Aa="abort-execution-func-exec-var-declaration-id",Fd="abort-execution-func-small-wait-op-id",Ud="abort-execution-func-long-wait-op-id",xb="abort-execution-func-long-wait-process-output-id",jb="abort-execution-func-exec-var-instance-write-id",kb="abort-execution-func-long-wait-return-stmt-id",qb="abort-execution-func-small-wait-return-stmt-id",r1="abort-execution-func-exec-var-instance-abort-call-id",xd="abort-execution-func-exec-var-instance-abort-internal-call-id",jd="abort-execution-func-exec-second-wait-op-id",i1={type:i.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-parent-ref-id",entityType:i.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},a1={type:i.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",entityType:i.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},s1={like:!1,inferred:!1,id:"short-wait-return-statement-returned-hello-string-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:i1},o1={type:i.GenericReference,id:"short-wait-return-statement-returned-hello-string-parent-ref-id",entityType:i.ReturnStatement,entityId:qb},l1={constant:!0,isError:!1,id:"short-wait-return-statement-returned-hello-string-id",type:i.ReturnDeclaration,version: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:i.LiteralValue,version:1,name:C.String,value:"Hello 2",autogeneration:null,valueAsType:null,parent:a1},dataType:s1,implements:null,readsValue:null,required:!0,index:0,parent:o1},d1={type:i.GenericReference,id:"short-wait-return-statement-called-by-ref-id",entityType:i.Operation,entityId:jd},c1={type:i.GenericReference,id:"short-wait-return-statement-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Ut},Jb={type:i.ReturnStatement,id:qb,version:1,outputs:[l1],calledByError:[],calledByEntry:[],calledBySuccess:[d1],throws:null,x:0,y:0,parent:c1},u1={type:i.GenericReference,id:"second-wait-argument-default-value-parent-ref-id",entityType:i.InputMap,entityId:"second-wait-argument-map-id"},p1={type:i.GenericReference,id:"second-wait-argument-map-parent-ref-id",entityType:i.Operation,entityId:jd},y1={id:"second-wait-argument-map-id",type:i.InputMap,version:1,declaration:yr,name:null,description:null,readsValue:null,defaultValue:{id:"second-wait-argument-default-value-id",type:i.LiteralValue,version:1,value:2e3,valueAsType:null,autogeneration:null,name:C.Number,parent:u1},index:0,parent:p1},h1={type:i.GenericReference,id:"small-wait-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Ut},f1={type:i.GenericReference,id:"small-wait-called-by-ref-one-id",entityType:i.InternalCall,entityId:xd},m1={id:jd,type:i.Operation,version:1,declaration:Rt,inputs:[y1],outputs:[],process:null,successCalls:[Jb],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[f1],error:null,parent:h1},T1={type:i.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-one-id",entityType:i.VariableInstance,entityId:jb},E1={type:i.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-two-id",entityType:i.Operation,entityId:Fd},R1={type:i.GenericReference,id:"abort-exec-func-abort-call-var-instance-main-project-ref-id",entityType:i.FunctionDeclaration,entityId:Ut},g1={type:i.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id-2",entityType:i.VariableDeclaration,entityId:Aa},b1={type:i.GenericReference,id:"abort-exec-func-abort-call-var-instance-internal-call-ref-one-id",entityType:i.InternalCall,entityId:xd},v1={id:r1,type:i.VariableInstance,version:1,declaration:g1,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[b1],parent:R1},Wb={id:xd,type:i.InternalCall,version:1,inputs:[],outputs:[],declaration:pd,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[T1,E1],successCalls:[m1],errorCalls:[],error:null,index:0,parent:v1},I1={type:i.GenericReference,id:"abort-exec-func-var-write-instance-main-project-ref-id",entityType:i.FunctionDeclaration,entityId:Ut},D1={type:i.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-one-id",entityType:i.VariableDeclaration,entityId:Aa},A1={type:i.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-two-id",entityType:i.FunctionDeclaration,entityId:Ut},S1={type:i.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",entityType:i.VariableDeclaration,entityId:Aa},O1={type:i.GenericReference,id:"abort-exec-func-var-write-instance-reads-value-ref-id",entityType:i.OutputMap,entityId:xb},kd={id:jb,type:i.VariableInstance,version:1,declaration:S1,inputs:[],outputs:[],defaultValue:null,calledByError:[],calledByEntry:[A1],calledBySuccess:[D1],successCalls:[Wb],errorCalls:[],x:0,y:0,readsValue:O1,writesValues:[],internalCalls:[],parent:I1},P1={type:i.GenericReference,id:"abort-exec-func-var-decl-datatype-parent-ref-id",entityType:i.VariableDeclaration,entityId:Aa};i.GenericReference,i.DataType;const C1={like:!1,inferred:!1,id:"abort-exec-func-var-decl-datatype-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Os,version:1,asType:!1,isList:!1,parent:P1},w1={type:i.GenericReference,id:"abort-exec-func-var-decl-main-project-ref-id",entityType:i.FunctionDeclaration,entityId:Ut},B1={type:i.GenericReference,id:"abort-exec-func-var-decl-called-by-ref-one-id",entityType:i.FunctionDeclaration,entityId:Ut},M1={constant:!0,required:!0,id:Aa,type:i.VariableDeclaration,version:1,name:"Execution in progress",description:"A variable that holds an ongoing execution to abort it if needed",defaultValue:null,dataType:C1,inputs:[],outputs:[],calledByError:[],calledByEntry:[B1],calledBySuccess:[],successCalls:[kd],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:w1},_1={type:i.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-parent-ref-id",entityType:i.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},V1={type:i.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",entityType:i.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},N1={like:!1,inferred:!1,id:"long-wait-return-statement-returned-hello-string-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:_1},L1={type:i.GenericReference,id:"long-wait-return-statement-returned-hello-string-parent-ref-id",entityType:i.ReturnStatement,entityId:kb},G1={constant:!0,isError:!1,id:"long-wait-return-statement-returned-hello-string-id",type:i.ReturnDeclaration,version: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:i.LiteralValue,version:1,name:C.String,value:"Hello 1",autogeneration:null,valueAsType:null,parent:V1},dataType:N1,readsValue:null,required:!0,index:0,parent:L1},$1={type:i.GenericReference,id:"long-wait-return-statement-called-by-ref-id",entityType:i.Operation,entityId:Ud},F1={type:i.GenericReference,id:"long-wait-return-statement-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Ut},Yb={type:i.ReturnStatement,id:kb,version:1,outputs:[G1],calledByError:[],calledByEntry:[],calledBySuccess:[$1],throws:null,x:0,y:0,parent:F1},U1={type:i.GenericReference,id:"long-argument-default-value-parent-ref-id",entityType:i.InputMap,entityId:"long-argument-map-id"},Hb={type:i.GenericReference,id:"long-argument-map-parent-ref-id",entityType:i.Operation,entityId:Ud},x1={id:"long-argument-map-id",type:i.InputMap,version:1,declaration:yr,name:null,description:null,readsValue:null,defaultValue:{id:"long-argument-default-value-id",type:i.LiteralValue,version:1,value:1500,valueAsType:null,autogeneration:null,name:C.Number,parent:U1},index:0,parent:Hb},j1={type:i.GenericReference,id:"long-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Ut},k1={type:i.GenericReference,id:"long-called-by-ref-one-id",entityType:i.FunctionDeclaration,entityId:Ut},q1={id:xb,type:i.OutputMap,version:1,defaultValue:null,declaration:Cs,writesValues:[kd],index:0,parent:Hb},J1={id:Ud,type:i.Operation,version:1,declaration:Rt,inputs:[x1],outputs:[],process:q1,successCalls:[Yb],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[k1],calledBySuccess:[],error:null,parent:j1},W1={type:i.GenericReference,id:"small-wait-argument-default-value-parent-ref-id",entityType:i.InputMap,entityId:"small-wait-argument-map-id"},Y1={type:i.GenericReference,id:"small-wait-argument-map-parent-ref-id",entityType:i.Operation,entityId:Fd},H1={id:"small-wait-argument-map-id",type:i.InputMap,version:1,declaration:yr,name:null,description:null,readsValue:null,defaultValue:{id:"small-wait-argument-default-value-id",type:i.LiteralValue,version:1,value:500,valueAsType:null,autogeneration:null,name:C.Number,parent:W1},index:0,parent:Y1},z1={type:i.GenericReference,id:"small-wait-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Ut},Z1={type:i.GenericReference,id:"small-wait-called-by-ref-one-id",entityType:i.FunctionDeclaration,entityId:Ut},K1={id:Fd,type:i.Operation,version:1,declaration:Rt,inputs:[H1],outputs:[],process:null,successCalls:[Wb],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[Z1],calledBySuccess:[],error:null,parent:z1},X1={type:i.GenericReference,id:"abort-execution-func-decl-parent-ref-id",entityType:i.Project,entityId:H},zb={id:Ut,type:i.FunctionDeclaration,version:1,name:"Test aborting execution",description:"Executes a wait and then aborts the execution of that wait",inputs:[],returnStatements:[Yb,Jb],calls:[K1,M1,kd,J1],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:X1},Q1={type:i.GenericReference,id:"call-execution-abort-func-parent-ref-id",entityType:i.Project,entityId:H},eG={id:"call-execution-abort-func-id",type:i.FunctionCall,version:1,declaration:zb,inputs:[],process:null,outputs:[],successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:Q1},so="manual-hello-world-loop-func-decl-id",Zb="manual-hello-world-loop-func-return-statement-id",fn="manual-hello-world-loop-id",Sa="manual-hello-world-loop-body-id",qd="manual-hello-world-loop-break-statement-id",Oa="manual-hello-world-loop-current-iteration-number-output-map-id",Jd="manual-hello-world-loop-previous-iterations-results-output-map-id",Wd="assembled-hello-world-text-output-id",tG="assembled-hello-world-list-output-id",Pa="iteration-number-is-equal-or-greater-than-10-condition-id",oo="join-hello-world-and-number-operation-id",lo="append-string-to-list-operation-id",Kb="hello-world-loop-output-map-id",nG={type:i.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-parent-ref",entityType:i.ReturnStatement,entityId:Zb},rG={type:i.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type-parent-ref",entityType:i.ReturnDeclaration,entityId:"manual-hello-world-loop-function-declaration-output-declaration"},iG={like:!1,inferred:!1,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,isList:!0,asType:!1,parent:rG},aG={type:i.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-reads-value-ref",entityType:i.OutputMap,entityId:Kb},Xb={constant:!0,isError:!1,id:"manual-hello-world-loop-function-declaration-output-declaration",version:1,type:i.ReturnDeclaration,name:"Results",description:null,defaultValue:null,dataType:iG,implements:null,readsValue:aG,required:!0,index:0,parent:nG},sG={type:i.GenericReference,id:"manual-hello-world-loop-function-declaration-return-statement-called-by-ref",entityType:i.Loop,entityId:fn},oG={type:i.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref",entityType:i.FunctionDeclaration,entityId:so},Qb={type:i.ReturnStatement,id:Zb,version:1,outputs:[Xb],calledByError:[],calledByEntry:[],calledBySuccess:[sG],parent:oG,throws:null,x:0,y:0},lG={type:i.GenericReference,id:"hello-world-loop-break-statement-ref-id",entityType:i.BreakStatement,entityId:qd},ev={constant:!0,isError:!1,id:"hello-world-loop-break-statement-output-id",version:1,type:i.ReturnDeclaration,name:"Iteration result",description:null,defaultValue:null,dataType:null,readsValue:null,implements:null,required:!0,index:0,parent:lG},dG={type:i.GenericReference,id:"hello-world-loop-break-statement-counter-reads-value-ref-id",entityType:i.ArgumentDeclaration,entityId:Oa},cG={type:i.GenericReference,id:"hello-world-loop-break-statement-counter-ref-id",entityType:i.BreakStatement,entityId:qd},tv={constant:!0,isError:!1,id:"hello-world-loop-break-statement-counter-output-id",version:1,type:i.ReturnDeclaration,name:"Iteration counter",description:null,implements:null,defaultValue:null,dataType:null,readsValue:dG,required:!0,index:1,parent:cG},uG={type:i.GenericReference,id:"hello-world-loop-break-statement-called-by-ref-id",entityType:i.Condition,entityId:Pa},pG={type:i.GenericReference,id:"hello-world-loop-break-statement-parent-ref-id",entityType:i.Loop,entityId:fn},nv={type:i.BreakStatement,id:qd,version:1,outputs:[ev,tv],calledByError:[],calledByEntry:[],calledBySuccess:[uG],parent:pG,throws:null,x:0,y:0},yG={type:i.GenericReference,id:"hello-world-loop-continue-statement-ref-id",entityType:i.ContinueStatement,entityId:"hello-world-loop-continue-statement"},hG={type:i.GenericReference,id:"hello-world-loop-continue-statement-output-data-type-ref-id",entityType:i.ReturnDeclaration,entityId:"hello-world-loop-continue-statement-output-id"},fG={like:!1,inferred:!1,id:"hello-world-loop-continue-statement-output-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,parent:hG},mG={type:i.GenericReference,id:"hello-world-loop-continue-statement-reads-value-ref-id",entityType:i.OutputMap,entityId:Wd},rv={constant:!0,isError:!1,id:"hello-world-loop-continue-statement-output-id",version:1,type:i.ReturnDeclaration,name:"Iteration result",description:null,defaultValue:null,implements:null,dataType:fG,readsValue:mG,required:!0,index:0,parent:yG},TG={type:i.GenericReference,id:"hello-world-loop-continue-statement-called-by-ref-id",entityType:i.Condition,entityId:Pa},EG={type:i.GenericReference,id:"hello-world-loop-continue-statement-parent-ref-id",entityType:i.Loop,entityId:fn},iv={type:i.ContinueStatement,id:"hello-world-loop-continue-statement",version:1,outputs:[rv],calledBySuccess:[],calledByError:[TG],calledByEntry:[],parent:EG,throws:null,x:0,y:0};i.GenericReference,i.InputMap;const RG={type:i.GenericReference,id:"append-string-to-list-base-string-map-parent-ref-id",entityType:i.Operation,entityId:lo},gG={type:i.GenericReference,id:"base-string-map-reads-value-ref-id",entityType:i.OutputMap,entityId:Jd},av={id:"append-string-to-list-base-string-map-id",type:i.InputMap,version:1,declaration:Vl,name:null,description:null,readsValue:gG,defaultValue:null,index:0,parent:RG},bG={type:i.GenericReference,id:"assembly-string-map-parent-ref-id",entityType:i.Operation,entityId:lo},vG={id:tG,type:i.OutputMap,version:1,defaultValue:null,writesValues:[ev],declaration:Zi,index:0,parent:bG},IG={type:i.GenericReference,id:"append-string-to-list-called-by-ref-id",entityType:i.Condition,entityId:Pa},DG={type:i.GenericReference,id:"latest-string-to-add-input-map-reads-value-ref-id",entityType:i.OutputMap,entityId:Wd},AG={type:i.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:i.Operation,entityId:lo},sv={id:"latest-string-to-add-input-map-id",version:1,type:i.InputMap,declaration:Nl,name:null,description:null,readsValue:DG,defaultValue:null,index:1,parent:AG},SG={type:i.GenericReference,id:"append-string-to-list-parent-ref-id",entityType:i.FunctionDeclaration,entityId:fn},OG={type:i.Operation,id:lo,declaration:us,version:1,inputs:[av,sv],outputs:[vG],calledByError:[],process:null,calledByEntry:[],calledBySuccess:[IG],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:SG},PG={type:i.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-called-by-ref-id",entityType:i.FunctionDeclaration,entityId:Sa},CG={type:i.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-parent-ref-id",entityType:i.Loop,entityId:fn},wG={type:i.GenericReference,id:"current-iteration-number-to-check-map-reads-value-ref-id",entityType:i.OutputMap,entityId:Oa},ov={type:i.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-ref-two-id",entityType:i.Condition,entityId:Pa},BG={id:"current-iteration-number-to-check-map-id",version:1,type:i.InputMap,declaration:hi.inputs[0],name:null,description:null,readsValue:wG,index:0,defaultValue:null,parent:ov},MG={type:i.GenericReference,id:"max-num-iterations-value-map-default-value-parent-ref-id",entityType:i.InputMap,entityId:"max-num-iterations-value-map-id"},_G={id:"max-num-iterations-value-map-id",version:1,type:i.InputMap,declaration:hi.inputs[1],name:null,description:null,readsValue:null,index:1,defaultValue:{id:"max-num-iterations-value-map-default-value-id",type:i.LiteralValue,version:1,name:C.Number,value:10,autogeneration:null,valueAsType:null,parent:MG},parent:ov},VG={type:i.Condition,id:Pa,version:1,declaration:hi,inputs:[BG,_G],calledByError:[],calledByEntry:[PG],calledBySuccess:[],successCalls:[nv,OG],errorCalls:[iv],x:0,y:0,parent:CG},NG={type:i.GenericReference,id:"base-string-map-ref-id",entityType:i.InputMap,entityId:"join-hello-world-and-number-base-string-map-id"},LG={type:i.GenericReference,id:"join-hello-world-and-number-base-string-map-parent-ref-id",entityType:i.Operation,entityId:oo},GG={id:"join-hello-world-and-number-base-string-map-id",type:i.InputMap,version:1,declaration:ds,name:null,description:null,readsValue:null,defaultValue:{id:"join-hello-world-and-number-base-string-map-default-value-id",type:i.LiteralValue,version:1,value:"Hello world ",name:C.String,parent:NG,valueAsType:null,autogeneration:null},index:0,parent:LG},$G={type:i.GenericReference,id:"assembly-string-map-parent-ref-id",entityType:i.Operation,entityId:oo},FG={id:Wd,type:i.OutputMap,version:1,defaultValue:null,writesValues:[sv,rv],declaration:Zi,index:0,parent:$G},UG={type:i.GenericReference,id:"join-hello-world-and-number-called-by-ref-id",entityType:i.FunctionDeclaration,entityId:Sa},xG={type:i.GenericReference,id:"current-iteration-number-input-map-reads-value-ref-id",entityType:i.OutputMap,entityId:Oa},jG={type:i.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:i.Operation,entityId:oo},lv={id:"current-iteration-number-input-map-id",version:1,type:i.InputMap,declaration:cs,name:null,description:null,readsValue:xG,defaultValue:null,index:1,parent:jG},kG={type:i.GenericReference,id:"join-hello-world-and-number-parent-ref-id",entityType:i.FunctionDeclaration,entityId:fn},qG={type:i.Operation,id:oo,declaration:Ki,version:1,inputs:[GG,lv],outputs:[FG],process:null,calledByError:[],calledByEntry:[UG],calledBySuccess:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:kG},JG={id:"manual-hello-world-loop-iterations-results-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:Jd,entityType:i.ArgumentDeclaration},WG={like:!1,inferred:!1,id:"manual-hello-world-loop-iterations-results-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!0,entity:null,asType:!1,parent:JG},YG={id:"manual-hello-world-loop-previous-iterations-results-output-map-parent-ref-id",type:i.GenericReference,entityId:Sa,entityType:i.FunctionDeclaration},HG={constant:!0,id:Jd,type:i.ArgumentDeclaration,version:1,name:"Previous iterations results",description:"The results of the previous iterations of the loop.",required:!0,defaultValue:null,dataType:WG,implements:null,writesValues:[av],index:1,parent:YG},zG={id:"manual-hello-world-loop-current-iteration-number-output-map-parent-ref-id",type:i.GenericReference,entityId:Sa,entityType:i.FunctionDeclaration},ZG={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:Oa,entityType:i.ArgumentDeclaration};i.DataType;const KG={constant:!0,id:Oa,type:i.ArgumentDeclaration,version:1,name:"Current iteration number",description:"The number of the current iteration of the loop. Starts at 1.",required:!0,implements:jl,defaultValue:null,dataType:null,writesValues:[lv,tv],index:0,parent:zG},XG={id:"manual-flow-loop-body-parent-ref-id",type:i.GenericReference,entityId:fn,entityType:i.Loop},QG={id:Sa,type:i.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called multiple times, once for each iteration of the loop.",inputs:[KG,HG],calls:[VG,qG],implements:kl,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:XG},e$={type:i.GenericReference,id:"hello-world-loop-iteration-result-inline-output-declaration-parent-ref-id",entityType:i.Loop,entityId:fn},dv={id:"hello-world-loop-iteration-result-inline-output-declaration-id",version:1,type:i.ValueDescriptor,name:"Iteration result",defaultValue:null,description:null,dataType:null,required:!0,parentRelationType:P.FixedReturns,index:0,parent:e$},t$={type:i.GenericReference,id:"hello-world-loop-break-statement-output-map-parent-ref-id",entityType:i.Loop,entityId:fn},n$={type:i.OutputMap,id:Kb,version:1,defaultValue:null,declaration:dv,writesValues:[Xb],index:0,parent:t$},r$={id:"manual-hello-world-loop-parent-ref-id",type:i.GenericReference,entityId:so,entityType:i.FunctionDeclaration},i$={id:"manual-hello-world-loop-called-by-ref-id",type:i.GenericReference,entityId:so,entityType:i.FunctionDeclaration},a$={id:fn,type:i.Loop,version:1,declaration:Rs,inputs:[],outputsDeclarations:[dv],outputs:[n$],body:QG,successCalls:[Qb],errorCalls:[],process:null,error:null,calledByError:[],calledByEntry:[i$],calledBySuccess:[],breakStatements:[nv],continueStatements:[iv],x:0,y:0,parent:r$},s$={type:i.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref-id",entityType:i.Project,entityId:H},cv={type:i.FunctionDeclaration,id:so,version:1,name:"Manual hello world loop",description:null,inputs:[],calls:[a$],returnStatements:[Qb],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:s$},o$={type:i.GenericReference,id:"call-hello-world-loop-parent-ref-id",entityType:i.Project,entityId:H},l$={id:"call-hello-world-loop-id",type:i.FunctionCall,version:1,declaration:cv,inputs:[],outputs:[],process:null,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:o$},Vn="company-dto-function-declaration-id",Yd="company-dto-func-declaration-argument-dcl-id",mn="company-dto-function-company-variable-id",nr="company-dto-function-company-dto-variable-id",Ai="iterate-over-employee-list-loop-id",uv="iterate-over-employee-list-loop-employee-dto-output-map-id",Hd="iterate-over-employee-list-loop-body-current-employee-argument-declaration-id",co="iterate-over-employee-list-loop-body-map-employee-dto-function-call-id",pv="iterate-over-employee-list-continue-statement-employee-dto-output-decl-id",yv="iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-id",hv="iterate-over-employee-list-continue-statement-id",uo="iterate-over-employee-list-loop-body-id",fv="company-dto-func-declaration-return-statement-id",mv="company-dto-func-declaration-return-decl-id",Tv="company-dto-func-declaration-company-variable-id-output-map-id",Ev="company-dto-func-declaration-company-variable-employess-output-map-id",Rv="company-dto-func-declaration-company-variable-name-output-map-id",d$="company-dto-func-declaration-company-dto-variable-input-map-id",c$="company-dto-func-declaration-company-dto-variable-employess-input-map-id",u$="company-dto-func-declaration-company-dto-variable-name-input-map-id",po="company-dto-func-declaration-owner-variable-id",p$="company-dto-func-declaration-company-dto-variable-owner-input-map-id",gv="company-dto-func-declaration-company-variable-owner-output-map-id",bv="company-dto-func-declaration-owner-variable-id-output-map-id",yo="company-dto-func-declaration-bank-account-variable-id",y$="company-dto-func-declaration-company-dto-variable-bank-account-input-map-id",vv="company-dto-func-declaration-company-variable-bank-account-output-map-id",Iv="company-dto-func-declaration-bank-account-variable-id-output-map-id",h$={type:i.GenericReference,id:"company-dto-func-returned-company-dto-data-type-parent-ref-id",entityType:i.ReturnDeclaration,entityId:mv},f$={like:!1,inferred:!1,id:"company-dto-func-returned-company-dto-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!1,parent:h$},m$={type:i.GenericReference,id:"company-dto-func-returned-company-dto-parent-ref-id",entityType:i.ReturnStatement,entityId:fv},T$={type:i.GenericReference,id:"company-dto-func-returned-company-dto-reads-value-ref-id",entityType:i.VariableDeclaration,entityId:nr},Dv={constant:!0,isError:!1,id:mv,type:i.ReturnDeclaration,version: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:f$,readsValue:T$,required:!0,index:0,parent:m$},E$={type:i.GenericReference,id:"company-dto-func-return-statement-called-by-ref-id",entityType:i.Operation,entityId:nr},R$={type:i.GenericReference,id:"company-dto-func-return-statement-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Vn},zd={type:i.ReturnStatement,id:fv,version:1,outputs:[Dv],calledByError:[],calledByEntry:[],calledBySuccess:[E$],throws:null,x:0,y:0,parent:R$},g$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-owner-input-map-reads-value-ref-id",entityType:i.OutputMap,entityId:bv},b$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-owner-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:nr},Av={id:p$,type:i.InputMap,version:1,declaration:null,name:"owner_id",description:null,defaultValue:null,index:5,readsValue:g$,parent:b$},v$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-input-map-reads-value-ref-id",entityType:i.OutputMap,entityId:Iv},I$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:nr},Sv={id:y$,type:i.InputMap,version:1,declaration:null,name:"bank_account_id",description:null,defaultValue:null,index:4,readsValue:v$,parent:I$},D$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-name-input-map-reads-value-ref-id",entityType:i.OutputMap,entityId:Rv},A$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-name-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:nr},Ov={id:u$,type:i.InputMap,version:1,declaration:null,name:"name",description:null,defaultValue:null,index:3,readsValue:D$,parent:A$},S$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-employess-input-map-reads-value-ref-id",entityType:i.OutputMap,entityId:uv},O$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-employess-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:nr},Pv={id:c$,type:i.InputMap,version:1,declaration:null,name:"employees",description:null,defaultValue:null,index:2,readsValue:S$,parent:O$},P$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-reads-value-ref-id",entityType:i.OutputMap,entityId:Tv},C$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:nr},Cv={id:d$,type:i.InputMap,version:1,declaration:null,name:"id",description:"The ID of the company",defaultValue:null,index:1,readsValue:P$,parent:C$},w$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Vn},B$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-one-id",entityType:i.VariableDeclaration,entityId:yo},M$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-two-id",entityType:i.VariableDeclaration,entityId:po},_$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-three-id",entityType:i.VariableDeclaration,entityId:Ai},Zd={constant:!0,required:!0,id:nr,type:i.VariableDeclaration,version:1,name:"Company DTO",dataType:null,description:"A variable holding the data of a mapped company DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[B$,M$,_$],successCalls:[zd],errorCalls:[],readsValue:null,writesValues:[Dv],inputs:[Cv,Ov,Sv,Av,Pv],outputs:[],internalCalls:[],parent:w$,x:0,y:0},Ar="employee-dto-func-declaration-id",Kd="employee-dto-func-declaration-argument-dcl-id",wv="employee-dto-func-declaration-return-statement-id",Bv="employee-dto-func-declaration-return-decl-id",Sr="employee-dto-func-declaration-employee-variable-id",Or="employee-dto-func-declaration-employee-dto-variable-id",ho="employee-dto-func-declaration-manager-variable-id",Mv="employee-dto-func-declaration-employee-variable-id-output-map-id",_v="employee-dto-func-declaration-employee-variable-birth-date-output-map-id",Vv="employee-dto-func-declaration-employee-variable-department-output-map-id",Nv="employee-dto-func-declaration-employee-variable-manager-output-map-id",Lv="employee-dto-func-declaration-manager-variable-id-output-map-id",V$="employee-dto-func-declaration-employee-dto-variable-input-map-id",N$="employee-dto-func-declaration-employee-dto-variable-birth-date-input-map-id",L$="employee-dto-func-declaration-employee-dto-variable-department-input-map-id",G$="employee-dto-func-declaration-employee-dto-variable-manager-input-map-id",$$={type:i.GenericReference,id:"employee-dto-func-returned-employee-dto-data-type-parent-ref-id",entityType:i.ReturnDeclaration,entityId:Bv},F$={like:!1,inferred:!1,id:"employee-dto-func-returned-employee-dto-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!1,parent:$$},U$={type:i.GenericReference,id:"employee-dto-func-returned-employee-dto-parent-ref-id",entityType:i.ReturnStatement,entityId:wv},x$={type:i.GenericReference,id:"employee-dto-func-returned-employee-dto-reads-value-ref-id",entityType:i.VariableDeclaration,entityId:Or},Gv={constant:!0,isError:!1,id:Bv,type:i.ReturnDeclaration,version:1,name:"Employee DTO",description:"Output the employee data in the format that it will be sent through an HTTP request.",defaultValue:null,dataType:F$,implements:null,readsValue:x$,required:!0,index:0,parent:U$},j$={type:i.GenericReference,id:"employee-dto-func-return-statement-called-by-ref-id",entityType:i.Operation,entityId:Or},k$={type:i.GenericReference,id:"employee-dto-func-return-statement-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Ar},Xd={type:i.ReturnStatement,id:wv,version:1,outputs:[Gv],calledByError:[],calledByEntry:[],calledBySuccess:[j$],throws:null,x:0,y:0,parent:k$},q$={type:i.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-input-map-reads-value-ref-id",entityType:i.OutputMap,entityId:Lv},J$={type:i.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:Or},$v={id:G$,type:i.InputMap,version:1,declaration:null,name:"manager_id",description:null,defaultValue:null,index:4,readsValue:q$,parent:J$},W$={type:i.GenericReference,id:"employee-dto-func-employee-dto-variable-department-input-map-reads-value-ref-id",entityType:i.OutputMap,entityId:Vv},Y$={type:i.GenericReference,id:"employee-dto-func-employee-dto-variable-department-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:Or},Fv={id:L$,type:i.InputMap,version:1,declaration:null,name:"department_name",description:null,defaultValue:null,index:3,readsValue:W$,parent:Y$},H$={type:i.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-input-map-reads-value-ref-id",entityType:i.OutputMap,entityId:_v},z$={type:i.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:Or},Uv={id:N$,type:i.InputMap,version:1,declaration:null,name:"birth_date",description:null,defaultValue:null,index:2,readsValue:H$,parent:z$},Z$={type:i.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-reads-value-ref-id",entityType:i.OutputMap,entityId:Mv},K$={type:i.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:Or},xv={id:V$,type:i.InputMap,version:1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:Z$,parent:K$},X$={type:i.GenericReference,id:"employee-dto-func-employee-dto-variable-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Ar},Q$={type:i.GenericReference,id:"employee-dto-func-employee-dto-variable-called-by-ref-id",entityType:i.VariableDeclaration,entityId:ho},eF={constant:!0,required:!0,id:Or,type:i.VariableDeclaration,version:1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[Q$],successCalls:[Xd],errorCalls:[],readsValue:null,writesValues:[Gv],inputs:[xv,Uv,Fv,$v],outputs:[],internalCalls:[],parent:X$,x:0,y:0},tF={type:i.GenericReference,id:"employee-dto-func-manager-variable-id-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:ho},nF={id:Lv,type:i.OutputMap,version:1,defaultValue:null,declaration:Ft.properties[0],index:0,writesValues:[$v],parent:tF},rF={type:i.GenericReference,id:"employee-dto-func-manager-variable-data-type-parent-ref-id",entityType:i.VariableDeclaration,entityId:ho},iF={like:!1,inferred:!1,id:"employee-dto-func-manager-variable-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Yt,asType:!1,isList:!1,parent:rF},aF={type:i.GenericReference,id:"employee-dto-func-manager-variable-reads-value-ref-id",entityType:i.OutputMap,entityId:Nv},sF={type:i.GenericReference,id:"employee-dto-func-manager-variable-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Ar};i.GenericReference,i.VariableDeclaration;const jv={constant:!0,required:!0,id:ho,type:i.VariableDeclaration,version:1,name:"Manager",description:"A variable holding an inherited manager",defaultValue:null,dataType:iF,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[eF],errorCalls:[],readsValue:aF,writesValues:[],inputs:[],outputs:[nF],internalCalls:[],parent:sF,x:0,y:0},oF={type:i.GenericReference,id:"employee-dto-func-employee-variable-manager-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:Sr},lF={id:Nv,type:i.OutputMap,version:1,defaultValue:null,declaration:Yt.properties[2],index:3,writesValues:[jv],parent:oF},dF={type:i.GenericReference,id:"employee-dto-func-employee-variable-department-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:Sr},cF={id:Vv,type:i.OutputMap,version:1,defaultValue:null,declaration:Yt.properties[0],index:2,writesValues:[Fv],parent:dF},uF={type:i.GenericReference,id:"employee-dto-func-employee-variable-birth-date-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:Sr},pF={id:_v,type:i.OutputMap,version:1,defaultValue:null,declaration:bt.properties[1],index:1,writesValues:[Uv],parent:uF},yF={type:i.GenericReference,id:"employee-dto-func-employee-variable-id-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:Sr},hF={id:Mv,type:i.OutputMap,version:1,defaultValue:null,declaration:Ft.properties[0],index:0,writesValues:[xv],parent:yF},fF={type:i.GenericReference,id:"employee-dto-func-employee-variable-data-type-parent-ref-id",entityType:i.VariableDeclaration,entityId:Sr},mF={like:!1,inferred:!1,id:"employee-dto-func-employee-variable-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Yt,asType:!1,isList:!1,parent:fF},TF={type:i.GenericReference,id:"employee-dto-func-employee-variable-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Ar},EF={type:i.GenericReference,id:"employee-dto-func-employee-variable-reads-value-ref-id",entityType:i.ArgumentDeclaration,entityId:Kd},RF={type:i.GenericReference,id:"employee-dto-func-employee-variable-called-by-id",entityType:i.FunctionDeclaration,entityId:Ar},kv={constant:!0,required:!0,id:Sr,type:i.VariableDeclaration,version:1,name:"Company employee",dataType:mF,description:"A variable holding a company employee",calledByError:[],defaultValue:null,calledByEntry:[RF],calledBySuccess:[],successCalls:[jv],errorCalls:[],readsValue:EF,writesValues:[],inputs:[],outputs:[hF,pF,cF,lF],internalCalls:[],parent:TF,x:0,y:0},gF={type:i.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-data-type-parent-ref-id",entityId:Kd,entityType:i.ArgumentDeclaration},bF={type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"employee-dto-func-declaration-employee-input-declaration-data-type-id",version:1,entity:Yt,asType:!1,isList:!1,like:!1,inferred:!1,parent:gF},vF={type:i.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-parent-ref-id",entityId:Ar,entityType:i.FunctionDeclaration},IF={constant:!0,type:i.ArgumentDeclaration,id:Kd,version:1,name:"Employee",description:"The employee to create a DTO for",required:!0,implements:null,defaultValue:null,dataType:bF,index:0,writesValues:[kv],parent:vF},DF={type:i.GenericReference,id:"employee-dto-function-declaration-parent-ref-id",entityType:i.Project,entityId:H},Qd={type:i.FunctionDeclaration,id:Ar,version:1,name:"Employee DTO",description:"Takes a employee and returns a DTO of that employee",index:null,inputs:[IF],calls:[kv],implements:null,returnStatements:[Xd],collapsed:!1,private:!1,x:0,y:0,parent:DF},AF={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-parent-ref-id",type:i.GenericReference,entityId:pv,entityType:i.ReturnDeclaration},SF={like:!1,inferred:!1,id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,parent:AF},OF={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-reads-value-ref-id",type:i.GenericReference,entityId:yv,entityType:i.OutputMap},PF={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-parent-ref-id",type:i.GenericReference,entityId:hv,entityType:i.ContinueStatement},qv={constant:!0,isError:!1,id:pv,type:i.ReturnDeclaration,version:1,name:"Employee DTO",description:"The DTO of the employee entity.",defaultValue:null,readsValue:OF,dataType:SF,implements:null,required:!0,index:0,parent:PF},CF={id:"iterate-over-employee-list-continue-statement-called-by-ref-id",type:i.GenericReference,entityId:co,entityType:i.FunctionCall},wF={id:"iterate-over-employee-list-continue-statement-parent-ref-id",type:i.GenericReference,entityId:Ai,entityType:i.Loop},Jv={id:hv,type:i.ContinueStatement,version:1,calledByError:[],calledByEntry:[],calledBySuccess:[CF],outputs:[qv],throws:null,x:0,y:0,parent:wF},BF={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-parent-ref-id",type:i.GenericReference,entityId:co,entityType:i.FunctionCall},MF={id:yv,type:i.OutputMap,version:1,defaultValue:null,declaration:Xd.outputs[0],writesValues:[qv],index:0,parent:BF},_F={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-reads-value-ref-id",type:i.GenericReference,entityId:Hd,entityType:i.ArgumentDeclaration},VF={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-parent-ref-id",type:i.GenericReference,entityId:co,entityType:i.FunctionCall},Wv={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-id",type:i.InputMap,version:1,name:null,description:null,declaration:Qd.inputs[0],readsValue:_F,index:0,defaultValue:null,parent:VF},NF={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-called-by-ref-id",type:i.GenericReference,entityId:uo,entityType:i.FunctionDeclaration},LF={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-parent-ref-id",type:i.GenericReference,entityId:uo,entityType:i.FunctionDeclaration},GF={id:co,type:i.FunctionCall,version:1,declaration:Qd,inputs:[Wv],process:null,outputs:[MF],calledByError:[],calledByEntry:[NF],calledBySuccess:[],successCalls:[Jv],errorCalls:[],error:null,x:0,y:0,parent:LF},$F={type:i.GenericReference,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-parent-ref-id",entityId:Hd,entityType:i.ArgumentDeclaration},FF={like:!1,inferred:!1,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Yt,isList:!1,asType:!1,parent:$F},UF={id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-parent-ref-id",type:i.GenericReference,entityId:uo,entityType:i.FunctionDeclaration},xF={constant:!0,id:Hd,type:i.ArgumentDeclaration,version:1,name:"Current employee",description:"The current employee entity being processed.",defaultValue:null,dataType:FF,required:!0,implements:gs,index:0,writesValues:[Wv],parent:UF},jF={id:"iterate-over-employee-list-loop-body-parent-ref-id",type:i.GenericReference,entityId:Ai,entityType:i.Loop},kF={id:uo,type:i.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[xF],calls:[GF],implements:bs,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:jF},qF={id:"iterate-over-employee-list-loop-iteration-list-input-map-parent-ref-id",type:i.GenericReference,entityId:Ai,entityType:i.Loop},JF={id:"iterate-over-employee-list-loop-iteration-list-input-map-reads-value-ref-id",type:i.GenericReference,entityId:Ev,entityType:i.OutputMap},Yv={id:"iterate-over-employee-list-loop-iteration-list-input-map-id",type:i.InputMap,version:1,name:null,description:null,declaration:Wn.inputs[0],defaultValue:null,readsValue:JF,index:0,parent:qF},WF={id:"iterate-over-employee-list-loop-parent-ref-id",type:i.GenericReference,entityId:Vn,entityType:i.FunctionDeclaration},YF={id:"iterate-over-employee-list-loop-employee-dto-output-map-parent-ref-id",type:i.GenericReference,entityId:Ai,entityType:i.Loop},HF={id:uv,type:i.OutputMap,version:1,defaultValue:null,declaration:Wn.outputs[0],writesValues:[Pv],index:0,parent:YF},zF={type:i.GenericReference,id:"iterate-over-employee-list-loop-called-by-ref-id",entityType:i.VariableDeclaration,entityId:mn},ZF={id:Ai,type:i.Loop,version:1,declaration:Wn,inputs:[Yv],successCalls:[Zd],errorCalls:[],outputsDeclarations:[],outputs:[HF],body:kF,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[zF],breakStatements:[],continueStatements:[Jv],error:null,x:0,y:0,parent:WF},KF={type:i.GenericReference,id:"company-dto-func-bank-account-variable-id-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:yo},XF={id:Iv,type:i.OutputMap,version:1,defaultValue:null,declaration:Ft.properties[0],index:0,writesValues:[Sv],parent:KF},QF={type:i.GenericReference,id:"company-dto-func-bank-account-variable-data-type-parent-ref-id",entityType:i.VariableDeclaration,entityId:yo},eU={like:!1,inferred:!1,id:"company-dto-func-bank-account-variable-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ht,asType:!1,isList:!1,parent:QF},tU={type:i.GenericReference,id:"company-dto-func-bank-account-variable-reads-value-ref-id",entityType:i.OutputMap,entityId:vv},nU={type:i.GenericReference,id:"company-dto-func-bank-account-variable-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Vn};i.GenericReference,i.VariableDeclaration;const Hv={constant:!0,required:!0,id:yo,type:i.VariableDeclaration,version:1,name:"Bank account",description:"A variable holding an inherited bank account",defaultValue:null,dataType:eU,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[Zd],errorCalls:[],readsValue:tU,writesValues:[],inputs:[],outputs:[XF],internalCalls:[],parent:nU,x:0,y:0},rU={type:i.GenericReference,id:"company-dto-func-owner-variable-id-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:po},iU={id:bv,type:i.OutputMap,version:1,declaration:Ft.properties[0],index:0,defaultValue:null,writesValues:[Av],parent:rU},aU={type:i.GenericReference,id:"company-dto-func-owner-variable-data-type-parent-ref-id",entityType:i.VariableDeclaration,entityId:po},sU={like:!1,inferred:!1,id:"company-dto-func-owner-variable-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ht,asType:!1,isList:!1,parent:aU},oU={type:i.GenericReference,id:"company-dto-func-owner-variable-reads-value-ref-id",entityType:i.OutputMap,entityId:gv},lU={type:i.GenericReference,id:"company-dto-func-owner-variable-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Vn};i.GenericReference,i.VariableDeclaration;const zv={constant:!0,required:!0,id:po,type:i.VariableDeclaration,version:1,name:"Owner",dataType:sU,description:"A variable holding an inherited owner",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[Zd],errorCalls:[],readsValue:oU,writesValues:[],inputs:[],outputs:[iU],internalCalls:[],parent:lU,x:0,y:0},dU={type:i.GenericReference,id:"company-dto-func-company-variable-owner-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:mn},cU={id:gv,type:i.OutputMap,version:1,defaultValue:null,declaration:Ht.properties[2],index:4,writesValues:[zv],parent:dU},uU={type:i.GenericReference,id:"company-dto-func-company-variable-bank-account-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:mn},pU={id:vv,type:i.OutputMap,version:1,defaultValue:null,declaration:Ht.properties[2],index:3,writesValues:[Hv],parent:uU},yU={type:i.GenericReference,id:"company-dto-func-company-variable-name-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:mn},hU={id:Rv,type:i.OutputMap,version:1,defaultValue:null,declaration:Ht.properties[0],index:2,writesValues:[Ov],parent:yU},fU={type:i.GenericReference,id:"company-dto-func-company-variable-employess-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:mn},mU={id:Ev,type:i.OutputMap,version:1,defaultValue:null,declaration:Ht.properties[3],index:1,writesValues:[Yv],parent:fU},TU={type:i.GenericReference,id:"company-dto-func-company-variable-id-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:mn},EU={id:Tv,type:i.OutputMap,version:1,defaultValue:null,declaration:Ft.properties[0],index:0,writesValues:[Cv],parent:TU},RU={type:i.GenericReference,id:"company-dto-func-company-variable-data-type-parent-ref-id",entityType:i.VariableDeclaration,entityId:mn},gU={like:!1,inferred:!1,id:"company-dto-func-company-variable-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ht,asType:!1,isList:!1,parent:RU},bU={type:i.GenericReference,id:"company-dto-func-company-variable-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Vn},vU={type:i.GenericReference,id:"company-dto-func-company-variable-reads-value-ref-id",entityType:i.ArgumentDeclaration,entityId:Yd},IU={type:i.GenericReference,id:"company-dto-func-company-variable-called-by-id",entityType:i.FunctionDeclaration,entityId:Vn},Zv={constant:!0,required:!0,id:mn,type:i.VariableDeclaration,version:1,name:"Company",dataType:gU,description:"A variable holding a company",defaultValue:null,calledByError:[],calledByEntry:[IU],calledBySuccess:[],successCalls:[Hv,zv,ZF],errorCalls:[],readsValue:vU,writesValues:[],inputs:[],outputs:[EU,mU,hU,pU,cU],internalCalls:[],parent:bU,x:0,y:0},DU={type:i.GenericReference,id:"company-dto-func-declaration-company-input-declaration-data-type-parent-ref-id",entityId:Yd,entityType:i.ArgumentDeclaration},AU={type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"company-dto-func-declaration-company-input-declaration-data-type-id",version:1,entity:Ht,asType:!1,isList:!1,like:!1,inferred:!1,parent:DU},SU={type:i.GenericReference,id:"company-dto-func-declaration-company-input-declaration-parent-ref-id",entityId:Vn,entityType:i.FunctionDeclaration},OU={constant:!0,type:i.ArgumentDeclaration,id:Yd,version:1,name:"Company",description:"The company to create a DTO for",defaultValue:null,required:!0,implements:null,dataType:AU,index:0,writesValues:[Zv],parent:SU},PU={type:i.GenericReference,id:"company-dto-function-declaration-parent-ref-id",entityType:i.Project,entityId:H},ec={type:i.FunctionDeclaration,id:Vn,version:1,name:"Company DTO",description:"Takes a company and returns a DTO of that company",inputs:[OU],calls:[Zv],implements:null,index:null,returnStatements:[zd],collapsed:!1,private:!1,x:0,y:0,parent:PU},Ca="exec-in-parallel-operation-call-id",wa="exec-sequentially-operation-call-id",vt="concurrency-and-wait-function-declaration-id",Kv="concurrency-and-wait-return-statement-id",Xv="concurrency-and-wait-return-declaration-id",tc="exec-in-parallel-argument-map-id",Qv="exec-sequentially-argument-map-id",nc="wait-for-2-seconds-operation-id",eI="wait-for-2-seconds-argument-map-id",rc="map-company-dto-function-call-id",tI="map-company-dto-function-call-company-dto-output-map-id",fo="company-dto-variable-one-id",ic="company-dto-variable-one-instance-id",nI="company-dto-variable-two-id",CU={type:i.GenericReference,id:"returned-company-dto-data-type-parent-ref-id",entityType:i.ReturnDeclaration,entityId:Xv},wU={like:!1,inferred:!1,id:"returned-company-dto-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ht,asType:!1,isList:!1,parent:CU},BU={type:i.GenericReference,id:"returned-company-dto-parent-ref-id",entityType:i.ReturnStatement,entityId:Kv},MU={type:i.GenericReference,id:"returned-company-dto-reads-value-ref-id",entityType:i.VariableDeclaration,entityId:nI},rI={constant:!0,isError:!1,id:Xv,type:i.ReturnDeclaration,version:1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",defaultValue:null,dataType:wU,implements:null,readsValue:MU,required:!0,index:0,parent:BU},_U={type:i.GenericReference,id:"concurrency-and-wait-return-statement-called-by-ref-id",entityType:i.Operation,entityId:nc},VU={type:i.GenericReference,id:"concurrency-and-wait-return-statement-parent-ref-id",entityType:i.FunctionDeclaration,entityId:vt},iI={type:i.ReturnStatement,id:Kv,version:1,outputs:[rI],calledByError:[],calledByEntry:[],calledBySuccess:[_U],throws:null,x:0,y:0,parent:VU},NU={type:i.GenericReference,id:"company-dto-variable-two-called-by-ref-id",entityType:i.VariableInstance,entityId:ic},LU={type:i.GenericReference,id:"company-dto-variable-two-reads-value-ref-id",entityType:i.VariableInstance,entityId:ic},GU={type:i.GenericReference,id:"company-dto-variable-two-parent-ref-id",entityType:i.FunctionDeclaration,entityId:vt},aI={constant:!0,required:!0,id:nI,type:i.VariableDeclaration,version:1,name:"Company DTO",description:null,defaultValue:null,dataType:null,inputs:[],outputs:[],successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[NU],internalCalls:[],writesValues:[rI],readsValue:LU,x:0,y:0,parent:GU},$U={type:i.GenericReference,id:"company-dto-variable-one-instance-called-by-ref-id",entityType:i.VariableDeclaration,entityId:fo},FU={type:i.GenericReference,id:"company-dto-variable-one-instance-reads-value-ref-id",entityType:i.VariableDeclaration,entityId:fo},UU={type:i.GenericReference,id:"company-dto-variable-one-instance-parent-ref-id",entityType:i.FunctionDeclaration,entityId:vt},xU={type:i.GenericReference,id:"company-dto-variable-one-instance-declaration-ref-id",entityType:i.VariableDeclaration,entityId:fo},sI={id:ic,type:i.VariableInstance,version:1,declaration:xU,inputs:[],outputs:[],successCalls:[aI],errorCalls:[],defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[$U],internalCalls:[],writesValues:[aI],readsValue:FU,x:0,y:0,parent:UU},jU={type:i.GenericReference,id:"company-dto-variable-one-called-by-ref-id",entityType:i.FunctionCall,entityId:rc},kU={type:i.GenericReference,id:"company-dto-variable-one-reads-value-ref-id",entityType:i.OutputMap,entityId:tI},qU={type:i.GenericReference,id:"company-dto-variable-one-parent-ref-id",entityType:i.FunctionDeclaration,entityId:vt},oI={constant:!0,required:!0,id:fo,type:i.VariableDeclaration,version:1,name:"Company DTO",description:null,defaultValue:null,dataType:null,inputs:[],outputs:[],successCalls:[sI],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[jU],internalCalls:[],writesValues:[sI],readsValue:kU,x:0,y:0,parent:qU},lI={type:i.GenericReference,id:"map-company-dto-function-call-company-input-map-parent-ref-id",entityType:i.FunctionCall,entityId:rc},JU={id:"map-company-dto-function-call-company-input-map-id",type:i.InputMap,version:1,declaration:ec.inputs[0],name:null,description:null,defaultValue:null,index:0,readsValue:null,parent:lI},WU={id:tI,type:i.OutputMap,version:1,defaultValue:null,declaration:zd.outputs[0],writesValues:[oI],index:0,parent:lI},YU={id:"map-company-dto-function-call-called-by-ref-id",type:i.GenericReference,entityType:i.FunctionDeclaration,entityId:vt},HU={id:"map-company-dto-function-call-parent-ref-id",type:i.GenericReference,entityType:i.FunctionDeclaration,entityId:vt},zU={id:rc,type:i.FunctionCall,version:1,declaration:ec,successCalls:[oI],process:null,errorCalls:[],inputs:[JU],outputs:[WU],calledByError:[],calledByEntry:[YU],calledBySuccess:[],parent:HU,x:0,y:0,error:null},ZU={type:i.GenericReference,id:"last-timestamp-variable-datatype-parent-ref-id",entityType:i.VariableDeclaration,entityId:wd},KU={type:i.GenericReference,id:"last-timestamp-variable-default-value-parent-ref-id",entityType:i.VariableDeclaration,entityId:wd},XU={like:!1,inferred:!1,id:"last-timestamp-variable-datatype-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:ln,version:1,asType:!1,isList:!1,parent:ZU},QU={type:i.GenericReference,id:"last-timestamp-variable-main-project-ref-id",entityType:i.Project,entityId:H},ac={constant:!0,required:!0,id:wd,type:i.VariableDeclaration,version: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:i.LiteralValue,version:1,name:C.Date,value:null,autogeneration:{type:ze.CurrentDateAndTime,rangeStart:null,rangeEnd:null},valueAsType:null,parent:KU},dataType:XU,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:QU},e4={type:i.GenericReference,id:"wait-for-2-seconds-argument-default-value-parent-ref-id",entityType:i.InputMap,entityId:eI},t4={type:i.GenericReference,id:"wait-for-2-seconds-argument-map-parent-ref-id",entityType:i.Operation,entityId:nc},n4={id:eI,type:i.InputMap,version:1,declaration:yr,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-2-seconds-argument-default-value-id",type:i.LiteralValue,version:1,value:2e3,valueAsType:null,autogeneration:null,name:C.Number,parent:e4},index:0,parent:t4},r4={type:i.GenericReference,id:"wait-for-2-seconds-parent-ref-id",entityType:i.FunctionDeclaration,entityId:vt},i4={type:i.GenericReference,id:"wait-for-2-seconds-called-by-ref-one-id",entityType:i.Operation,entityId:wa},a4={type:i.GenericReference,id:"wait-for-2-seconds-called-by-ref-two-id",entityType:i.Operation,entityId:Ca},dI={id:nc,type:i.Operation,version:1,declaration:Qt,inputs:[n4],outputs:[],process:null,successCalls:[iI],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[i4,a4],error:null,parent:r4},s4={type:i.GenericReference,id:"wait-for-random-amount-argument-default-value-parent-ref-id",entityType:i.InputMap,entityId:"wait-for-random-amount-input-map-id"},o4={type:i.GenericReference,id:"wait-for-random-amount-argument-map-parent-ref-id",entityType:i.Operation,entityId:"wait-for-random-amount-id"},l4={id:"wait-for-random-amount-input-map-id",type:i.InputMap,version:1,declaration:yr,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-random-amount-argument-default-value-id",type:i.LiteralValue,version:1,value:null,valueAsType:null,autogeneration:{type:ze.Random,rangeStart:1e3,rangeEnd:4e3},name:C.Number,parent:s4},index:0,parent:o4},d4={type:i.GenericReference,id:"wait-for-random-amount-parent-ref-id",entityType:i.Project,entityId:H},Si={id:"wait-for-random-amount-id",type:i.Operation,version:1,declaration:Qt,inputs:[l4],process:null,outputs:[],successCalls:[],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,parent:d4},sc="list-of-functions-variable-id",c4={type:i.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-argument-parent-ref-id",entityType:i.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},u4={id:"list-of-functions-variable-action-descriptor-dynamic-argument-id",type:i.ValueDescriptor,version: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:c4},p4={type:i.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-return-parent-ref-id",entityType:i.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},y4={id:"list-of-functions-variable-action-descriptor-dynamic-return-id",type:i.ValueDescriptor,version: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:p4},h4={type:i.GenericReference,id:"list-of-functions-variable-data-type-parent-ref-id",entityType:i.VariableDeclaration,entityId:sc},f4={id:"list-of-functions-variable-action-descriptor-id",type:i.ActionDescriptor,version:1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[u4],error:null,outputs:[y4],parent:null},m4={type:i.GenericReference,id:"list-of-functions-variable-data-type-default-parent-ref-id",entityType:i.VariableDeclaration,entityId:sc},T4={like:!1,inferred:!1,id:"list-of-functions-variable-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:f4,asType:!1,isList:!0,parent:h4},E4={type:i.GenericReference,id:"list-of-functions-variable-parent-ref-id",entityType:i.FunctionDeclaration,entityId:vt};i.GenericReference,i.InputMap;const R4={type:i.GenericReference,id:"list-of-functions-variable-writes-value-one-ref-id",entityType:i.InputMap,entityId:Qv},g4={type:i.GenericReference,id:"list-of-functions-variable-writes-value-two-ref-id",entityType:i.InputMap,entityId:tc},cI={constant:!0,required:!0,id:sc,type:i.VariableDeclaration,version: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:i.LiteralValue,version:1,name:C.ActionDescriptor,value:null,valueAsType:[Si,Si,Si,Si,Si],autogeneration:null,parent:m4},dataType:T4,parent:E4,readsValue:null,writesValues:[R4,g4],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],inputs:[],outputs:[],internalCalls:[],x:0,y:0},b4={type:i.GenericReference,id:"exec-in-parallel-return-map-parent-ref-id",entityType:i.Operation,entityId:Ca},v4={type:i.GenericReference,id:"exec-in-parallel-result-variable-parent-ref-id",entityType:i.FunctionDeclaration,entityId:vt},I4={type:i.GenericReference,id:"exec-in-parallel-result-variable-reads-value-ref-id",entityType:i.OutputMap,entityId:"exec-in-parallel-return-map-id"},D4={type:i.GenericReference,id:"exec-in-parallel-result-variable-called-by-ref-id",entityType:i.Operation,entityId:Ca},uI={id:"exec-in-parallel-result-variable-id",type:i.VariableInstance,version:1,declaration:ac,readsValue:I4,writesValues:[],defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[D4],successCalls:[],errorCalls:[],internalCalls:[],parent:v4,x:0,y:0},A4={id:"exec-in-parallel-return-map-id",type:i.OutputMap,version:1,defaultValue:null,declaration:Gl,writesValues:[uI],index:0,parent:b4},S4={type:i.GenericReference,id:"exec-in-parallel-argument-map-parent-ref-id",entityType:i.Operation,entityId:Ca},O4={id:tc,type:i.InputMap,version:1,declaration:Ll,name:null,description:null,readsValue:cI,defaultValue:null,index:0,parent:S4},P4={type:i.GenericReference,id:"exec-in-parallel-parent-ref-id",entityType:i.FunctionDeclaration,entityId:vt},C4={type:i.GenericReference,id:"exec-in-parallel-called-by-ref-id",entityType:i.FunctionDeclaration,entityId:vt},w4={process:null,id:Ca,type:i.Operation,version:1,declaration:Qt,inputs:[O4],outputs:[A4],successCalls:[dI,uI],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[C4],calledBySuccess:[],error:null,parent:P4},B4={type:i.GenericReference,id:"exec-sequentially-return-map-parent-ref-id",entityType:i.Operation,entityId:wa},M4={type:i.GenericReference,id:"exec-sequentially-result-variable-parent-ref-id",entityType:i.FunctionDeclaration,entityId:vt},_4={type:i.GenericReference,id:"exec-sequentially-result-variable-reads-value-ref-id",entityType:i.OutputMap,entityId:"exec-sequentially-return-map-id"},V4={type:i.GenericReference,id:"exec-sequentially-result-variable-called-by-ref-id",entityType:i.Operation,entityId:wa},pI={id:"exec-sequentially-result-variable-id",type:i.VariableInstance,version:1,declaration:ac,readsValue:_4,defaultValue:null,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[V4],successCalls:[],errorCalls:[],internalCalls:[],parent:M4,x:0,y:0},N4={id:"exec-sequentially-return-map-id",type:i.OutputMap,version:1,defaultValue:null,declaration:Fl,writesValues:[pI],index:0,parent:B4},L4={type:i.GenericReference,id:"exec-sequentially-argument-map-parent-ref-id",entityType:i.Operation,entityId:wa},G4={id:Qv,type:i.InputMap,version:1,declaration:$l,name:null,description:null,readsValue:cI,defaultValue:null,index:0,parent:L4},$4={type:i.GenericReference,id:"exec-sequentially-parent-ref-id",entityType:i.FunctionDeclaration,entityId:vt},F4={type:i.GenericReference,id:"exec-sequentially-called-by-ref-id",entityType:i.FunctionDeclaration,entityId:vt},U4={id:wa,type:i.Operation,version:1,declaration:wn,inputs:[G4],process:null,outputs:[N4],successCalls:[dI,pI],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[F4],calledBySuccess:[],error:null,parent:$4},x4={type:i.GenericReference,id:"concurrency-and-wait-parent-ref-id",entityType:i.Project,entityId:H},j4={type:i.FunctionDeclaration,id:vt,version: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:[U4,w4,zU],returnStatements:[iI],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:x4},k4={type:i.GenericReference,id:"3521f2c8-a5c0-419c-8808-4fc6a73d0b78",entityType:i.ReturnDeclaration,entityId:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},q4={like:!1,inferred:!1,id:"ce8b9a30-afe9-4d4f-879f-1677efca2c47",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ht,isList:!1,asType:!1,parent:k4},J4={type:i.GenericReference,id:"8ee66e38-b060-474e-a503-594063a8ec24",entityType:i.ReturnStatement,entityId:"40a23a98-d3b2-42b1-9652-b33779ad15aa"},W4={constant:!0,isError:!1,id:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:i.ReturnDeclaration,version:1,name:"Created company",description:"The new company that was created",defaultValue:null,implements:null,dataType:q4,readsValue:null,required:!0,index:0,parent:J4},Y4={type:i.GenericReference,id:"9cb3c1e4-7250-4be6-be2a-69c2dd366d6f",entityType:i.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},H4={type:i.GenericReference,id:"c065fcdd-e054-4f95-941c-7eaa65c35d04",entityType:i.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},yI={type:i.ReturnStatement,id:"40a23a98-d3b2-42b1-9652-b33779ad15aa",version:1,outputs:[W4],calledByError:[],calledByEntry:[H4],calledBySuccess:[],throws:null,x:0,y:0,parent:Y4},z4={type:i.GenericReference,id:"312ef836-9e40-4d57-b177-03b7145ed074",entityType:i.Project,entityId:H},Z4={type:i.FunctionDeclaration,id:"5059c093-eda2-4efc-b7b4-aaaadd4d44de",version:1,name:"Create new company",description:null,inputs:[],calls:[yI],index:null,implements:null,returnStatements:[yI],collapsed:!1,private:!1,x:0,y:0,parent:z4},oc="get-current-date-and-time-func-decl-id",hI="get-current-date-and-time-return-statement-id",lc="get-current-date-and-time-return-declaration-id",K4="get-current-date-and-time-return-declaration-data-type-id",X4={type:i.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-value-parent-ref-id",entityType:i.ReturnDeclaration,entityId:lc},Q4={type:i.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-parent-ref-id",entityType:i.ReturnDeclaration,entityId:lc},ex={type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,id:K4,version:1,entity:ln,asType:!1,isList:!1,like:!1,inferred:!1,parent:Q4},tx={type:i.GenericReference,id:"get-current-date-and-time-return-declaration-parent-ref-id",entityType:i.ReturnStatement,entityId:hI};i.ReturnDeclaration,i.LiteralValue,C.Date,ze.CurrentDateAndTime;const nx={type:i.GenericReference,id:"get-current-date-and-time-return-statement-called-by-ref-id",entityType:i.FunctionDeclaration,entityId:oc},rx={type:i.GenericReference,id:"get-current-date-and-time-return-statement-parent-ref-id",entityType:i.FunctionDeclaration,entityId:oc};i.ReturnStatement;const ix={type:i.GenericReference,id:"concurrency-and-wait-parent-ref-id",entityType:i.Project,entityId:H},ax={type:i.FunctionDeclaration,id:oc,version:1,name:"Get current date and time",description:"Generates and returns the current date and time at the time of the execution",inputs:[],calls:[],returnStatements:[],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:ix},fI="do-math-return-statement-id",dc="do-math-return-declaration-id",sx={type:i.GenericReference,id:"do-math-func-var-to-return-one-ref-id",entityType:i.VariableDeclaration,entityId:"do-math-func-var-to-return-one-id"},ox={like:!1,inferred:!1,id:"do-math-func-var-to-return-one-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!1,parent:sx},lx={type:i.GenericReference,id:"do-math-func-decl-ref-two-id",entityType:i.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},dx={type:i.GenericReference,id:"do-math-func-var-to-return-one-map-ref-id",entityType:i.ReturnDeclaration,entityId:dc},cx={constant:!0,required:!0,type:i.VariableDeclaration,id:"do-math-func-var-to-return-one-id",version:1,description:null,name:"Fixed result",defaultValue:null,dataType:ox,readsValue:null,writesValues:[dx],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:lx},ux={type:i.GenericReference,id:"96ec244e-594b-45f7-802b-6dc3056920f6",entityType:i.ReturnStatement,entityId:fI},px={type:i.GenericReference,id:"d120c0cc-9d13-4e45-90e2-4e1ee825ca46",entityType:i.ReturnDeclaration,entityId:dc},yx={like:!1,inferred:!1,id:"da91aa23-9985-49ac-a8bf-9d623ba1ba8f",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,isList:!1,asType:!1,parent:px},hx={constant:!0,isError:!1,id:dc,version:1,type:i.ReturnDeclaration,name:"Result",description:null,implements:null,defaultValue:null,dataType:yx,readsValue:cx,required:!0,index:0,parent:ux},fx={type:i.GenericReference,id:"57fd93e4-93a1-484e-82eb-4dd15d2d0e24",entityType:i.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},mx={type:i.GenericReference,id:"0a86e8d5-ab21-476e-a482-b928cbf351e3",entityType:i.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},mI={type:i.ReturnStatement,id:fI,version:1,outputs:[hx],calledByError:[],calledByEntry:[],calledBySuccess:[fx],parent:mx,throws:null,x:0,y:0},Tx={type:i.GenericReference,id:"a2db26be-57f2-48e5-9769-cdbf0d95dc7c",entityType:i.VariableDeclaration,entityId:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a"},Ex={like:!1,inferred:!1,id:"c3e9d5f0-204f-45f9-85f7-e1b56b468388",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!1,parent:Tx},Rx={type:i.GenericReference,id:"692122c5-610a-4504-90dd-f5a5202d116c",entityType:i.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},gx={type:i.GenericReference,id:"do-math-func-return-one-called-by",entityType:i.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},bx={type:i.GenericReference,id:"6dceb501-be5b-4252-afb4-3c0d08abba33",entityType:i.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},TI={constant:!0,required:!0,type:i.VariableDeclaration,id:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a",version:1,name:"Result",dataType:Ex,description:null,defaultValue:null,readsValue:bx,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[gx],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:Rx},vx={type:i.GenericReference,id:"5440f523-af38-4981-8035-89d162fe8041",entityType:i.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Ix={type:i.GenericReference,id:"8c482c35-e674-4713-a1dd-63c3d13b611c",entityType:i.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},Dx={type:i.GenericReference,id:"c0a299cd-5869-4930-8cf0-90e3ceb8a903",entityType:i.VariableDeclaration,entityId:"46b2fe23-b417-4887-a35d-09b186679172"},Ax={like:!1,inferred:!1,id:"51c0c1df-2ee3-41df-ae52-ac512d8cf795",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,isList:!1,asType:!1,parent:Dx},Sx={type:i.GenericReference,id:"do-math-func-return-two-called-by",entityType:i.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},EI={constant:!0,required:!0,type:i.VariableDeclaration,id:"46b2fe23-b417-4887-a35d-09b186679172",version:1,name:"Total",description:null,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Sx],successCalls:[],errorCalls:[],dataType:Ax,readsValue:Ix,writesValues:[],internalCalls:[],parent:vx,x:0,y:0},RI={type:i.GenericReference,id:"6e4d776e-6af2-4321-b630-c78110fd677c",entityType:i.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Ox={type:i.GenericReference,id:"5b60955b-2486-40b6-bb24-ffd97ccd8902",entityType:i.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Px={type:i.GenericReference,id:"1a49923f-bc6f-453f-a438-e74e5475c2a9",entityType:i.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Cx={type:i.GenericReference,id:"02bfde0a-b757-4072-9613-6e9c7c9a424a",entityType:i.ArgumentDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},gI={id:"928953b0-0e3f-4d8c-ae5a-84620b4b8c68",version:1,type:i.InputMap,declaration:Il,name:null,description:null,readsValue:Cx,defaultValue:null,index:0,parent:Px},wx={id:"64752080-ee0f-4cfe-9897-a0668f2b2aca",type:i.OutputMap,version:1,defaultValue:null,declaration:Sl,writesValues:[TI,EI],index:0,parent:Ox},Bx={type:i.GenericReference,id:"d235a7f6-07ff-4f35-98d2-8f42dd59cf9f",entityType:i.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Mx={id:"8827e8e9-9381-4ad7-8f61-5419c23c9136",type:i.GenericReference,entityType:i.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},bI={id:"a5525249-0eb5-472b-97bc-5e4cc0d75aee",version:1,type:i.InputMap,declaration:Dl,name:null,description:null,readsValue:Mx,defaultValue:null,index:1,parent:Bx},_x={type:i.Operation,id:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e",declaration:ls,version:1,inputs:[gI,bI],outputs:[wx],calledByError:[],calledByEntry:[RI],calledBySuccess:[],process:null,successCalls:[mI,TI,EI],errorCalls:[],parent:RI,error:null,x:0,y:0},Vx={type:i.GenericReference,id:"a2c40226-2270-4963-a865-c777ba79c551",entityType:i.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},Nx={id:"f47731b3-f278-4ab5-aeb2-24519c1119fb",type:i.GenericReference,entityId:"72a338d8-0183-4ca2-8760-227517854595",entityType:i.ArgumentDeclaration},vI={like:!1,inferred:!1,id:"a350a9e9-25ee-477f-a83d-9e98ed2451662",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,isList:!1,asType:!1,parent:Nx},Lx={type:i.GenericReference,id:"5f5d8dd0-7f3b-40cd-9f84-83d976887eaf",entityType:i.ArgumentDeclaration,entityId:"649bf0a4-6532-44aa-9818-a03d1c6564e9"},Gx={type:i.GenericReference,id:"ca018d0f-a8b3-4c7e-a408-c8b372d04aff",entityType:i.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},$x={type:i.GenericReference,id:"do-math-func-var-called-by-ref",entityType:i.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},II={constant:!0,required:!0,id:"72a338d8-0183-4ca2-8760-227517854595",type:i.VariableDeclaration,version:1,name:"Z",description:null,defaultValue:{id:"do-math-func-argument-two-default-value-id",type:i.LiteralValue,version:1,value:1,name:C.Number,valueAsType:null,autogeneration:null,parent:Vx},dataType:vI,inputs:[],outputs:[],calledByError:[],calledByEntry:[$x],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:Lx,writesValues:[bI],internalCalls:[],x:0,y:0,parent:Gx},Fx={entityType:i.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",type:i.GenericReference,id:"af0cf105-4075-425f-aecc-b25d3600fcc4"},Ux={constant:!0,id:"649bf0a4-6532-44aa-9818-a03d1c6564e9",type:i.ArgumentDeclaration,version:1,name:"Z",description:"The number to add",defaultValue:null,dataType:vI,implements:null,writesValues:[II],required:!0,index:1,parent:Fx},xx={type:i.GenericReference,id:"56953b5d-3e43-4dea-a62c-f3e868ba81bb",entityType:i.Project,entityId:H},jx={id:"868defc8-5c95-48ed-942d-257e8b9b9b00",type:i.GenericReference,entityType:i.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},kx={type:i.GenericReference,id:"35167664-a793-49f1-9eaf-fb57eac30897",entityType:i.VariableDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},qx={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:i.GenericReference,entityId:"d8895765-f705-457e-85fa-25d130926769",entityType:i.ArgumentDeclaration},Jx={like:!1,inferred:!1,id:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,isList:!1,asType:!1,parent:qx},Wx={constant:!0,id:"d8895765-f705-457e-85fa-25d130926769",type:i.ArgumentDeclaration,version:1,name:"N",dataType:Jx,description:"The number to add",implements:null,defaultValue:{id:"do-math-func-argument-one-default-value-id",type:i.LiteralValue,version:1,value:5,name:C.Number,valueAsType:null,autogeneration:null,parent:kx},writesValues:[gI],required:!0,index:0,parent:jx},Yx={type:i.FunctionDeclaration,id:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",version:1,name:"Do math",description:"This function does math",inputs:[Wx,Ux],calls:[_x,II],implements:null,index:null,collapsed:!1,returnStatements:[mI],private:!1,x:0,y:0,parent:xx},It="replace-bank-account-in-company-func-declaration-id",cc="company-entity-to-modify-arg-declaration-id",uc="account-number-to-create-arg-decl-id",Oi="company-main-variable-id",Pi="search-person-by-id-id",DI="new-bank-account-owner-arg-decl-id",AI="search-person-by-id-output-declaration-id",pc="search-person-by-id-output-entity-map-id",Ba="person-not-empty-condition-id",mo="create-new-bank-account-instance-operation-id",SI="create-new-bank-account-instance-operation-output-entity-map-id",OI="company-bank-account-output-map-id",yc="old-bank-account-var-declaration-id",PI="old-bank-account-var-instance-id",CI="company-variable-instance-id",hc="delete-bank-account-internal-call-id",Ma="new-bank-account-data-variable-declaration-id",Hx={type:i.GenericReference,id:"company-variable-instance-parent-ref-id",entityType:i.FunctionDeclaration,entityId:It},zx={type:i.GenericReference,id:"company-variable-instance-called-by-ref-id",entityType:i.InternalCall,entityId:hc},Zx={type:i.GenericReference,id:"company-variable-instance-declaration-ref-id",entityType:i.VariableDeclaration,entityId:Oi},Kx={type:i.GenericReference,id:"bank-account-input-map-parent-ref-id",entityType:i.VariableInstance,entityId:CI},Xx={type:i.GenericReference,id:"bank-account-input-map-reads-value-ref-id",entityType:i.OutputMap,entityId:SI},wI={type:i.InputMap,id:"bank-account-input-map-id",version:1,readsValue:Xx,declaration:Gd,name:null,description:null,index:0,defaultValue:null,parent:Kx},Qx={type:i.VariableInstance,id:CI,version:1,defaultValue:null,declaration:Zx,inputs:[wI],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[zx],successCalls:[],errorCalls:[],internalCalls:[],parent:Hx,readsValue:null,writesValues:[],x:0,y:0},ej={type:i.GenericReference,id:"bank-account-variable-data-type-parent-ref-id",entityType:i.VariableDeclaration,entityId:Oi},tj={type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"bank-account-variable-data-type-id",version:1,entity:vi,asType:!1,isList:!1,like:!1,inferred:!1,parent:ej},nj={type:i.GenericReference,id:"bank-account-variable-reads-value-ref-id",entityType:i.OutputMap,entityId:OI},rj={type:i.GenericReference,id:"bank-account-variable-parent-ref-id",entityType:i.FunctionDeclaration,entityId:It},ij={type:i.GenericReference,id:"bank-account-variable-called-by-ref-id",entityType:i.VariableDeclaration,entityId:Oi},aj={type:i.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-id",entityType:i.Operation,entityId:mo};i.GenericReference,i.VariableInstance;const sj={type:i.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-two-id",entityType:i.VariableDeclaration,entityId:yc},oj={type:i.GenericReference,id:"old-bank-account-variable-trigger-delete-decl-ref-id",entityType:i.VariableDeclaration,entityId:yc},lj={type:i.GenericReference,id:"bank-account-variable-parent-ref-two-id",entityType:i.FunctionDeclaration,entityId:It},dj={type:i.GenericReference,id:"old-bank-account-variable-trigger-delete-internal-call-ref-id",entityType:i.InternalCall,entityId:hc},cj={type:i.VariableInstance,id:PI,version:1,defaultValue:null,declaration:oj,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],internalCalls:[dj],errorCalls:[],parent:lj,readsValue:null,writesValues:[],x:0,y:0},BI={process:null,type:i.InternalCall,id:hc,version:1,declaration:cd,index:0,successCalls:[Qx],errorCalls:[],inputs:[],outputs:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[aj,sj],parent:cj},MI={constant:!0,required:!0,type:i.VariableDeclaration,id:yc,version:1,name:"Old bank account",description:"The existing bank account that needs to be replaced in the company entity",dataType:tj,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[ij],successCalls:[BI],internalCalls:[],errorCalls:[],parent:rj,readsValue:nj,writesValues:[],x:0,y:0},uj={type:i.GenericReference,id:"company-variable-declaration-data-type-parent-ref-id",entityType:i.VariableDeclaration,entityId:Oi},pj={type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"company-variable-declaration-data-type-id",version:1,entity:Ht,asType:!1,isList:!1,like:!1,inferred:!1,parent:uj},yj={type:i.GenericReference,id:"company-variable-declaration-reads-value-ref-id",entityType:i.ArgumentDeclaration,entityId:cc},hj={type:i.GenericReference,id:"company-variable-declaration-parent-ref-id",entityType:i.FunctionDeclaration,entityId:It},fj={type:i.GenericReference,id:"company-variable-declaration-called-by-ref-id",entityType:i.FunctionDeclaration,entityId:It},mj={type:i.GenericReference,id:"company-bank-account-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:Oi},Tj={id:OI,version:1,type:i.OutputMap,defaultValue:null,declaration:Gd,index:0,parent:mj,writesValues:[MI]},_I={constant:!0,required:!0,type:i.VariableDeclaration,id:Oi,version:1,name:"Company",description:"The company entity that was passed as an argument to the parent function",defaultValue:null,dataType:pj,inputs:[],outputs:[Tj],calledByError:[],calledByEntry:[fj],calledBySuccess:[],successCalls:[MI],errorCalls:[],parent:hj,internalCalls:[],readsValue:yj,writesValues:[],x:0,y:0},Ej={type:i.GenericReference,id:"create-new-bank-account-account-owner-dynamic-input-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:Ma},Rj={id:"create-new-bank-account-account-owner-dynamic-input-map-reads-value-ref-id",type:i.GenericReference,entityType:i.OutputMap,entityId:pc},VI={id:"create-new-bank-account-account-owner-dynamic-input-map-id",version:1,type:i.InputMap,declaration:null,name:"Account owner",description:null,readsValue:Rj,index:1,defaultValue:null,parent:Ej},gj={id:"create-new-bank-account-account-number-dynamic-input-map-reads-value-ref-id",type:i.GenericReference,entityType:i.ArgumentDeclaration,entityId:uc},bj={type:i.GenericReference,id:"create-new-bank-account-account-number-dynamic-input-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:Ma},NI={id:"create-new-bank-account-account-number-dynamic-input-map-id",version:1,type:i.InputMap,declaration:null,name:"Account number",description:null,readsValue:gj,defaultValue:null,index:0,parent:bj},LI={type:i.GenericReference,id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",entityType:i.Operation,entityId:mo},vj={id:"create-new-bank-account-instance-operation-entity-to-create-input-map-id",version:1,type:i.InputMap,declaration:hr.inputs[0],name:null,description:null,index:0,readsValue:null,defaultValue:{type:i.LiteralValue,name:C.EntityTemplate,value:null,valueAsType:vi,autogeneration:null},parent:LI},Ij={type:i.GenericReference,id:"create-new-bank-account-instance-operation-entity-data-input-map-reads-value-ref-id",entityType:i.VariableDeclaration,entityId:Ma},GI={id:"create-new-bank-account-instance-operation-entity-data-input-map-id",version:1,type:i.InputMap,declaration:hr.inputs[1],name:null,description:null,index:1,readsValue:Ij,defaultValue:null,parent:LI},Dj={type:i.GenericReference,id:"create-new-bank-account-instance-operation-output-entity-map-parent-ref-id",entityType:i.Operation,entityId:mo},Aj={id:SI,version:1,type:i.OutputMap,defaultValue:null,declaration:hr.outputs[0],index:0,writesValues:[wI],parent:Dj},Sj={type:i.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",entityType:i.Condition,entityId:Ba},Oj={type:i.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",entityType:i.VariableDeclaration,entityId:Ma},Pj={type:i.GenericReference,id:"create-new-bank-account-instance-operation-parent-ref-id",entityType:i.FunctionDeclaration,entityId:It},$I={process:null,id:mo,type:i.Operation,version:1,declaration:hr,inputs:[vj,GI],error:null,outputs:[Aj],successCalls:[BI],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[Oj,Sj],parent:Pj,x:0,y:0},Cj={type:i.GenericReference,id:"new-bank-account-data-variable-declaration-parent-ref-id",entityType:i.FunctionDeclaration,entityId:It},wj={type:i.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",entityType:i.Condition,entityId:Ba},Bj={constant:!0,required:!0,id:Ma,type:i.VariableDeclaration,version:1,defaultValue:null,inputs:[NI,VI],dataType:null,name:"New bank Account's data",description:null,readsValue:null,outputs:[],writesValues:[GI],successCalls:[$I],errorCalls:[],internalCalls:[],calledByError:[],calledBySuccess:[wj],calledByEntry:[],x:0,y:0,parent:Cj},Mj={id:"person-not-found-thrown-error-datatype-default-value-parent-ref-id",type:i.GenericReference,entityId:"person-not-found-thrown-error-id",entityType:i.ReturnDeclaration},_j={id:"person-not-found-thrown-error-datatype-parent-ref-id",type:i.GenericReference,entityId:"person-not-found-thrown-error-id",entityType:i.ReturnDeclaration},Vj={like:!1,inferred:!1,id:"person-not-found-thrown-error-datatype-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,isList:!1,asType:!1,parent:_j},Nj={id:"person-not-found-thrown-error-parent-ref-id",type:i.GenericReference,entityId:"person-not-found-error-return-statement-id",entityType:i.ReturnStatement},Lj={constant:!0,isError:!0,id:"person-not-found-thrown-error-id",type:i.ReturnDeclaration,version:1,dataType:Vj,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:i.LiteralValue,version:1,value:"Person not found",name:C.String,parent:Mj,valueAsType:null,autogeneration:null},parent:Nj,implements:null,required:!0,index:0,readsValue:null},Gj={id:"person-not-found-error-return-statement-called-by-ref-id",type:i.GenericReference,entityId:Ba,entityType:i.Condition},$j={id:"person-not-found-error-return-statement-parent-ref-id",type:i.GenericReference,entityId:It,entityType:i.FunctionDeclaration},Fj={id:"person-not-found-error-return-statement-id",type:i.ReturnStatement,version:1,throws:Lj,outputs:[],calledBySuccess:[],calledByError:[Gj],calledByEntry:[],x:0,y:0,parent:$j},Uj={type:i.GenericReference,id:"person-not-empty-condition-called-by-ref-id",entityType:i.Search,entityId:Pi},xj={type:i.GenericReference,id:"person-not-empty-condition-parent-ref-id",entityType:i.FunctionDeclaration,entityId:It},jj={type:i.GenericReference,id:"person-entity-to-check-map-reads-value-ref-id",entityType:i.OutputMap,entityId:pc},kj={type:i.GenericReference,id:"person-not-empty-condition-ref-two-id",entityType:i.Condition,entityId:Ba},FI={id:"person-entity-to-check-map-id",version:1,type:i.InputMap,declaration:gr.inputs[0],name:null,description:null,readsValue:jj,index:0,defaultValue:null,parent:kj},qj={type:i.Condition,id:Ba,version:1,declaration:gr,inputs:[FI],calledByError:[],calledByEntry:[],calledBySuccess:[Uj],successCalls:[Bj,$I],errorCalls:[Fj],x:0,y:0,parent:xj},Jj={type:i.GenericReference,id:"search-person-by-id-output-entity-declaration-datatype-parent-ref-id",entityType:i.ValueDescriptor,entityId:AI},Wj={like:!1,inferred:!1,id:"search-person-by-id-output-entity-declaration-datatype-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,asType:!1,entity:bt,parent:Jj},Yj={type:i.GenericReference,id:"search-person-by-id-output-entity-declaration-parent-ref-id",entityType:i.Search,entityId:Pi},UI={id:AI,type:i.ValueDescriptor,version:1,defaultValue:null,dataType:Wj,name:"Found person",description:"The person entity that was found",parent:Yj,required:!0,index:0},Hj={type:i.GenericReference,id:"search-person-by-id-output-entity-map-parent-ref-id",entityType:i.Search,entityId:Pi},zj={type:i.OutputMap,id:pc,version:1,defaultValue:null,declaration:UI,parent:Hj,writesValues:[FI,VI],index:0},Zj={id:"search-person-by-id-input-declaration-datatype-parent-ref-id",type:i.GenericReference,entityId:"search-person-by-id-input-declaration-id",entityType:i.ArgumentDeclaration};i.DataType;const Kj={type:i.GenericReference,id:"search-person-by-id-input-declaration-parent-ref-id",entityType:i.Search,entityId:Pi},xI={id:"search-person-by-id-input-declaration-id",type:i.ValueDescriptor,version:1,dataType:null,defaultValue:null,name:"Person ID",description:"The unique identifier (ID) property of the person entity",parentRelationType:P.FixedArguments,index:0,required:!0,parent:Kj},Xj={type:i.GenericReference,id:"search-person-by-id-input-map-parent-ref-id",entityType:i.Search,entityId:Pi},Qj={id:"search-person-by-id-input-map-reads-value-ref-id",type:i.GenericReference,entityId:DI,entityType:i.ArgumentDeclaration},jI={type:i.InputMap,id:"search-person-by-id-input-map",version:1,declaration:xI,name:null,description:null,readsValue:Qj,defaultValue:null,parent:Xj,index:0},e8="SELECT * FROM Person WHERE id = your_id;",t8={type:i.GenericReference,id:"search-person-by-id-parent-ref-id",entityType:i.FunctionDeclaration,entityId:It},n8={type:i.GenericReference,id:"search-person-by-id-called-by-ref-id",entityType:i.FunctionDeclaration,entityId:It},r8={type:i.Search,id:Pi,version:1,name:"Search person by ID",description:"Searches for a person entity given the UUID",query:e8,inputsDeclarations:[xI],inputs:[jI],outputsDeclarations:[UI],outputs:[zj],calledByError:[],calledByEntry:[n8],calledBySuccess:[],error:null,successCalls:[qj],errorCalls:[],parent:t8,x:0,y:0};i.GenericReference,i.DataType;const i8={id:"account-number-to-create-arg-decl-data-type-parent-ref-id",type:i.GenericReference,entityId:uc,entityType:i.ArgumentDeclaration},a8={like:!1,inferred:!1,id:"account-number-to-create-arg-decl-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,isList:!1,asType:!1,parent:i8},s8={entityType:i.FunctionDeclaration,entityId:It,type:i.GenericReference,id:"account-number-to-create-arg-decl-parent-ref-id"},o8={constant:!0,id:uc,type:i.ArgumentDeclaration,version:1,name:"Account number",description:"The account number of the new bank account entity",defaultValue:null,dataType:a8,implements:null,writesValues:[NI],required:!0,index:1,parent:s8};i.GenericReference,i.DataType;const l8={id:"new-bank-account-owner-arg-decl-data-type-parent-ref-id",type:i.GenericReference,entityId:"new-bank-account-owner-arg-decl-id",entityType:i.ArgumentDeclaration},d8={like:!1,inferred:!1,id:"new-bank-account-owner-arg-decl-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Pn,isList:!1,asType:!1,parent:l8},c8={entityType:i.FunctionDeclaration,entityId:It,type:i.GenericReference,id:"new-bank-account-owner-arg-decl-parent-ref-id"},u8={constant:!0,id:DI,type:i.ArgumentDeclaration,version: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:d8,implements:null,writesValues:[jI],required:!1,index:1,parent:c8},p8={type:i.GenericReference,id:"replace-bank-account-in-company-parent-ref",entityType:i.Project,entityId:H},y8={type:i.GenericReference,id:"company-entity-to-modify-parent-ref",entityType:i.FunctionDeclaration,entityId:It};i.GenericReference,i.DataType;const h8={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:i.GenericReference,entityId:cc,entityType:i.ArgumentDeclaration},f8={like:!1,inferred:!1,id:"company-entity-to-modify-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,isList:!1,asType:!1,parent:h8},m8={constant:!0,id:cc,type:i.ArgumentDeclaration,version:1,name:"Company",defaultValue:null,dataType:f8,implements:null,description:"The company to replace the bank account for",writesValues:[_I],required:!0,index:0,parent:y8},T8={type:i.FunctionDeclaration,id:It,version: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:[m8,o8,u8],index:null,implements:null,calls:[r8,_I],collapsed:!1,returnStatements:[],private:!1,x:0,y:0,parent:p8},E8={type:i.GenericReference,id:"e0a937bd-3a85-4037-a973-916985b9f94b",entityType:i.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},R8={type:i.FunctionDeclaration,version:1,id:"6bedb217-f844-4332-af72-9626b2a32511",name:"Some library main function",description:null,inputs:[],calls:[],implements:null,collapsed:!0,index:null,returnStatements:[],private:!1,parent:E8,x:0,y:0},g8={type:i.GenericReference,id:"948e6869-ae5b-4914-bea0-b9f02ad6a014",entityType:i.Project,entityId:H},b8={type:i.GenericReference,id:"f3d6f2c6-1b3e-4e9d-8c9d-5b5b9f0b8d9c",entityType:i.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},v8={type:i.InstalledProject,version:1,id:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6",name:"Third Party Installed Project",description:null,functions:[R8],events:[],implements:b8,parent:g8,x:0,y:0},fc="global-counted-test-loop-id",kI="global-counted-test-loop-body-id",qI="global-counted-test-loop-body-current-iteration-value-argument-declaration-id",I8={type:i.GenericReference,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:qI,entityType:i.ArgumentDeclaration},D8={like:!1,inferred:!1,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,parent:I8},A8={id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:i.GenericReference,entityId:kI,entityType:i.FunctionDeclaration},S8={constant:!0,id:qI,type:i.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:D8,implements:Zl,required:!0,index:0,writesValues:[],parent:A8},O8={id:"global-counted-test-loop-body-parent-ref-id",type:i.GenericReference,entityId:fc,entityType:i.Loop},P8={id:kI,type:i.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[S8],calls:[],implements:Kl,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:O8},Ci="random-company-employee-test-variable-id",mc="manager-global-variable-id",JI="global-user-instance-id",Tn="employee-mapped-dto-variable-id",Pr="employee-mapped-dto-variable-instance-id",WI="random-employee-id-output-map-id",YI="random-employee-birth-date-output-map-id",HI="random-employee-department-output-map-id",zI="random-employee-manager-output-map-id",ZI="manager-global-id-output-map-id",KI="global-user-instance-id-output-map-id",C8="employee-mapped-dto-requester-id-input-map-id",XI="employee-mapped-dto-now-timestamp-input-map-id",w8="employee-mapped-dto-id-input-map-id",B8="employee-mapped-dto-birth-date-input-map-id",M8="employee-mapped-dto-department-input-map-id",_8="employee-mapped-dto-manager-input-map-id",V8={id:"global-counted-test-loop-iteration-number-input-map-parent-ref-id",type:i.GenericReference,entityId:fc,entityType:i.Loop};i.GenericReference,i.VariableDeclaration;const N8={id:"global-counted-test-loop-iteration-number-input-map-id",type:i.InputMap,version:1,name:null,description:null,declaration:ta.inputs[0],defaultValue:null,readsValue:null,index:0,parent:V8},L8={id:"global-counted-test-loop-parent-ref-id",type:i.GenericReference,entityId:H,entityType:i.Project},G8={id:"global-counted-test-loop-called-by-success-ref-id",type:i.GenericReference,entityId:Pr,entityType:i.VariableDeclaration},QI={id:fc,type:i.Loop,version:1,declaration:ta,inputs:[N8],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:P8,calledByError:[],calledByEntry:[],calledBySuccess:[G8],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:L8},Tc="global-object-keys-test-loop-id",eD="global-object-keys-test-loop-body-id",tD="global-object-keys-test-loop-body-current-iteration-value-argument-declaration-id",$8={type:i.GenericReference,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:tD,entityType:i.ArgumentDeclaration},F8={like:!1,inferred:!1,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,parent:$8},U8={id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:i.GenericReference,entityId:eD,entityType:i.FunctionDeclaration},x8={constant:!0,id:tD,type:i.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:F8,implements:Yl,required:!0,index:0,writesValues:[],parent:U8},j8={id:"global-object-keys-test-loop-body-parent-ref-id",type:i.GenericReference,entityId:Tc,entityType:i.Loop},k8={id:eD,type:i.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[x8],calls:[],implements:li,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:j8},q8={id:"global-object-keys-test-loop-iteration-object-input-map-parent-ref-id",type:i.GenericReference,entityId:Tc,entityType:i.Loop},J8={id:"global-object-keys-test-loop-iteration-object-input-map-reads-value-ref-id",type:i.GenericReference,entityId:Tn,entityType:i.VariableDeclaration},nD={id:"global-object-keys-test-loop-iteration-object-input-map-id",type:i.InputMap,version:1,name:null,description:null,declaration:li.inputs[0],defaultValue:null,readsValue:J8,index:0,parent:q8},W8={id:"global-object-keys-test-loop-parent-ref-id",type:i.GenericReference,entityId:H,entityType:i.Project},Y8={id:"global-object-keys-test-loop-called-by-success-ref-two-id",type:i.GenericReference,entityId:Pr,entityType:i.VariableDeclaration},H8={id:"global-object-keys-test-loop-called-by-success-ref-one-id",type:i.GenericReference,entityId:Tn,entityType:i.VariableDeclaration},Ec={id:Tc,type:i.Loop,version:1,declaration:li,inputs:[nD],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:k8,calledByError:[],calledByEntry:[],calledBySuccess:[H8,Y8],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:W8},Rc="global-object-values-test-loop-id",rD="global-object-values-test-loop-body-id",iD="global-object-values-test-loop-body-current-iteration-value-argument-declaration-id",z8={type:i.GenericReference,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:iD,entityType:i.ArgumentDeclaration},Z8={like:!1,inferred:!1,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,parent:z8},K8={id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:i.GenericReference,entityId:rD,entityType:i.FunctionDeclaration},X8={constant:!0,id:iD,type:i.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:Z8,implements:Hl,required:!0,index:0,writesValues:[],parent:K8},Q8={id:"global-object-values-test-loop-body-parent-ref-id",type:i.GenericReference,entityId:Rc,entityType:i.Loop},ek={id:rD,type:i.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[X8],calls:[],implements:di,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:Q8},tk={id:"global-object-values-test-loop-iteration-object-input-map-parent-ref-id",type:i.GenericReference,entityId:Rc,entityType:i.Loop},nk={id:"global-object-values-test-loop-iteration-object-input-map-reads-value-ref-id",type:i.GenericReference,entityId:Pr,entityType:i.VariableDeclaration},aD={id:"global-object-values-test-loop-iteration-object-input-map-id",type:i.InputMap,version:1,name:null,description:null,declaration:di.inputs[0],defaultValue:null,readsValue:nk,index:0,parent:tk},rk={id:"global-object-values-test-loop-parent-ref-id",type:i.GenericReference,entityId:H,entityType:i.Project},ik={id:"global-object-values-test-loop-called-by-success-ref-id",type:i.GenericReference,entityId:Pr,entityType:i.VariableInstance},sD={id:Rc,type:i.Loop,version:1,declaration:di,inputs:[aD],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:ek,calledByError:[],calledByEntry:[],calledBySuccess:[ik],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:rk},gc="global-test-iterate-over-string-loop-id",bc="global-test-iterate-over-string-loop-body-id",To="global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-id",oD="global-test-iterate-over-string-loop-iteration-list-input-map-id",ak={type:i.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:To,entityType:i.ArgumentDeclaration},sk={like:!1,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,parent:ak},ok={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:i.GenericReference,entityId:bc,entityType:i.FunctionDeclaration},lk={constant:!0,id:To,type:i.ArgumentDeclaration,version:1,name:"Current character",description:"The current character value being processed.",defaultValue:null,dataType:sk,implements:ql,required:!0,index:1,writesValues:[],parent:ok},dk={type:i.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:To,entityType:i.ArgumentDeclaration},ck={like:!1,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,parent:dk},uk={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:i.GenericReference,entityId:bc,entityType:i.FunctionDeclaration},pk={constant:!0,id:To,type:i.ArgumentDeclaration,version:1,name:"Current character",description:"The current character value being processed.",defaultValue:null,dataType:ck,implements:Jl,required:!0,index:0,writesValues:[],parent:uk},yk={id:"global-test-iterate-over-string-loop-body-parent-ref-id",type:i.GenericReference,entityId:gc,entityType:i.Loop},hk={id:bc,type:i.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[pk,lk],calls:[],implements:Wl,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:yk},fk={id:"global-test-iterate-over-string-loop-iteration-list-input-map-parent-ref-id",type:i.GenericReference,entityId:gc,entityType:i.Loop},mk={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-parent-ref-id",type:i.GenericReference,entityId:oD,entityType:i.InputMap},Tk={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-id",type:i.LiteralValue,name:C.String,version:1,value:"Hello",valueAsType:null,autogeneration:{type:ze.Random,rangeStart:4,rangeEnd:5},parent:mk},Ek={id:oD,type:i.InputMap,version:1,name:null,description:null,declaration:ea.inputs[0],defaultValue:Tk,readsValue:null,index:0,parent:fk},Rk={id:"global-test-iterate-over-string-loop-parent-ref-id",type:i.GenericReference,entityId:H,entityType:i.Project},gk={id:gc,type:i.Loop,version:1,declaration:ea,inputs:[Ek],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:hk,calledByError:[],calledByEntry:[],calledBySuccess:[],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:Rk},vc="iterate-over-list-loop-id",lD="iterate-over-list-loop-body-id",dD="iterate-over-list-loop-body-current-iteration-value-argument-declaration-id",bk={type:i.GenericReference,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:dD,entityType:i.ArgumentDeclaration},vk={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,parent:bk},Ik={id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:i.GenericReference,entityId:lD,entityType:i.FunctionDeclaration},Dk={constant:!0,id:dD,type:i.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:vk,implements:gs,required:!0,index:0,writesValues:[],parent:Ik},Ak={id:"iterate-over-list-loop-body-parent-ref-id",type:i.GenericReference,entityId:vc,entityType:i.Loop},Sk={id:lD,type:i.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[Dk],calls:[],implements:bs,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:Ak},Ok={id:"iterate-over-list-loop-iteration-list-input-map-parent-ref-id",type:i.GenericReference,entityId:vc,entityType:i.Loop},Pk={id:"iterate-over-list-loop-iteration-list-input-map-id",type:i.InputMap,version:1,name:null,description:null,declaration:Wn.inputs[0],defaultValue:null,readsValue:null,index:0,parent:Ok},Ck={id:"iterate-over-list-loop-parent-ref-id",type:i.GenericReference,entityId:H,entityType:i.Project},wk={id:vc,type:i.Loop,version:1,declaration:Wn,inputs:[Pk],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:Sk,calledByError:[],calledByEntry:[],calledBySuccess:[],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:Ck},Bk=`SELECT
|
|
1
|
+
(function(d,i){typeof exports=="object"&&typeof module<"u"?i(exports):typeof define=="function"&&define.amd?define(["exports"],i):(d=typeof globalThis<"u"?globalThis:d||self,i(d["@elyx-code/project-logic-tree"]={}))})(this,function(d){"use strict";var AJ=Object.defineProperty;var SJ=(d,i,U)=>i in d?AJ(d,i,{enumerable:!0,configurable:!0,writable:!0,value:U}):d[i]=U;var c=(d,i,U)=>(SJ(d,typeof i!="symbol"?i+"":i,U),U);var i=(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))(i||{}),U=(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))(U||{}),ze=(r=>(r.CurrentDateAndTime="current-date-and-time",r.Unique="unique",r.Random="random",r))(ze||{}),C=(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))(C||{}),Ge=(r=>(r.Addition="addition",r.Subtraction="subtraction",r.Multiplication="multiplication",r.Division="division",r.Remainder="remainder",r.Exponentiation="exponentiation",r))(Ge||{}),re=(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))(re||{}),X=(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))(X||{}),Ve=(r=>(r.Parallel="parallel",r.Sequential="sequential",r.Wait="wait",r))(Ve||{}),Ne=(r=>(r.CreateNewInstance="create-new-instance",r.Validate="validate",r))(Ne||{}),dt=(r=>(r.HttpRequest="base-http-request",r))(dt||{}),qe=(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))(qe||{}),Jt=(r=>(r.Empty="empty",r.NotEmpty="not-empty",r))(Jt||{}),k=(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))(k||{}),P=(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))(P||{}),et=(r=>(r.OrDataTypeGroup="or-data-type-group",r.AndDataTypeGroup="and-data-type-group",r))(et||{}),Dn=(r=>(r.PROJECT_PUBLICATION_COMPLETED="GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED",r))(Dn||{}),Gt=(r=>(r.DeletePersistedEntity="base-delete-persisted-entity",r.SoftDeletePersistedEntity="base-soft-delete-persisted-entity",r.AbortExecution="base-abort-execution",r))(Gt||{}),ri=(r=>(r.Error="error",r.Task="task",r.Return="return",r))(ri||{});const An=[i.VariableDeclaration,i.VariableInstance,i.InputMap,i.ReturnDeclaration],Ze=[i.VariableDeclaration,i.VariableInstance,i.ArgumentDeclaration,i.OutputMap],hp=[...An,...Ze],Fe=[i.VariableDeclaration,i.VariableInstance],fp=[i.FunctionDeclaration,i.Condition,i.Loop,i.Operation,i.FunctionCall,i.Search,i.InternalCall,i.GlobalEvent,i.DefinitionEntity,i.ReturnStatement,i.BreakStatement,i.ContinueStatement,i.VariableDeclaration,i.VariableInstance,i.LiteralValue,i.ActionDescriptor,i.ValueDescriptor,i.Property,i.DataType,i.InstalledProject,i.ArgumentDeclaration,i.InputMap,i.OutputMap,i.ReturnDeclaration],mp=[i.FunctionDeclaration,i.Property,i.ArgumentDeclaration,i.ReturnDeclaration],gl=[i.FunctionCall,i.VariableInstance,i.InputMap,i.OutputMap,i.InternalCall],FO=[...gl,i.Condition,i.Loop,i.Operation,i.Condition],ii=[i.GlobalEvent],Je=[i.Operation,i.FunctionCall,i.Condition,i.Search,i.VariableDeclaration,i.VariableInstance,i.InternalCall,i.Loop],bl=[i.Operation,i.FunctionCall,i.Condition,i.Search,i.VariableDeclaration,i.VariableInstance,i.Loop],We=[i.FunctionDeclaration,...ii],Xt=[...Je,i.ReturnStatement,i.BreakStatement,i.ContinueStatement],vl=[...bl,i.ReturnStatement,i.BreakStatement,i.ContinueStatement],on=[...Je,...We],Tp=[...bl,...We],UO=[...Xt,...We],xO=[...vl,...We],pt=[...We,i.Loop],xe=[i.ReturnStatement,i.BreakStatement,i.ContinueStatement],jO=[i.DefinitionEntity,i.BuiltInBaseEntity,i.Project,i.InstalledProject,i.GlobalEvent,i.DataType,i.FunctionCall,i.FunctionDeclaration,i.ActionDescriptor,i.ValueDescriptor,i.ArgumentDeclaration,i.InputMap,i.ReturnStatement,i.BreakStatement,i.ContinueStatement,i.ReturnDeclaration,i.OutputMap,i.PrimitiveEntity,i.LiteralValue,i.Property,i.Operation,i.Condition,i.VariableDeclaration,i.VariableInstance,i.Search,i.Loop,i.InternalCall],ss=[i.DefinitionEntity,i.GlobalEvent,i.FunctionDeclaration,i.FunctionCall,i.VariableDeclaration,i.VariableInstance,i.Operation,i.Condition,i.ReturnStatement,i.BreakStatement,i.ContinueStatement,i.InstalledProject,i.Loop,i.Search],Ep=[i.DefinitionEntity,i.FunctionDeclaration,i.ArgumentDeclaration,i.ReturnDeclaration,i.Property,i.VariableDeclaration,i.Search,i.Project,i.InstalledProject,i.ActionDescriptor,i.ValueDescriptor],Jn=[i.BuiltInBaseEntity,i.PrimitiveEntity],Rp=[i.DefinitionEntity,i.FunctionDeclaration,i.ArgumentDeclaration,i.ReturnDeclaration,i.Property,i.VariableDeclaration,i.GlobalEvent,i.Search,i.Project,i.InstalledProject,i.ActionDescriptor,i.ValueDescriptor,i.InputMap,i.OutputMap,i.FunctionCall,i.Operation,i.Condition,i.ReturnStatement,i.BreakStatement,i.ContinueStatement,i.VariableInstance,i.LiteralValue,i.InternalCall];var os=(r=>(r.ActionOngoingProcessOutputValue="action-ongoing-process-output-value-descriptor-id",r))(os||{});const _={[i.PrimitiveEntity]:{[C.String]:{id:"8b5fbe15-4c2b-48c0-9fd8-e5efbe3978dc",properties:{}},[C.Boolean]:{id:"f596545d-1565-4faa-9969-d95fa5edfea4",properties:{}},[C.Number]:{id:"ecb84c29-6153-4b82-86a5-fce2b5f92002",properties:{}},[C.KeyValue]:{id:"b6f3c3c4-9c3d-4f9d-9e9e-1c0f6a3c8c6b",properties:{}},[C.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"}}}}},[C.UUID]:{id:"4a6234aa-c0f6-4731-b4dd-750388029226",properties:{}},[C.Date]:{id:"dc58f38b-d574-4956-aac6-32ce9529b937",properties:{}},[C.Null]:{id:"7d698f34-5a89-4aab-846b-07ef3843b8c4",properties:{}},[C.Untyped]:{id:"4044a018-818e-49d7-bf9a-c3dd1fff2102",properties:{}}},[i.ValueDescriptor]:{"action-ongoing-process-output-value-descriptor-id":{id:"action-ongoing-process-output-value-descriptor-id",dataType:{id:"process-output-value-data-type-id"}}},[i.BuiltInBaseEntity]:{[U.KEY_VALUE_PARAM]:{id:U.KEY_VALUE_PARAM},[U.HTTP_ENDPOINT]:{id:U.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"}}},[U.PERSISTED_ENTITY]:{id:U.PERSISTED_ENTITY,properties:{database:{id:"persisted-built-in-base-entity-database-property-id"},primaryKey:{id:"persisted-built-in-base-entity-primary-key-property-id"}}},[U.RELATIONAL_DATABASE]:{id:U.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"}}},[U.CRON_JOB]:{id:U.CRON_JOB,properties:{expression:{id:"cron-job-built-in-base-entity-expression-property-id"}}}},[i.Operation]:{[re.Join]:{id:re.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"}}},[re.Split]:{id:re.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"}}},[Ge.Addition]:{id:Ge.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"}}},[Ge.Subtraction]:{id:Ge.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"}}},[dt.HttpRequest]:{id:dt.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"}}},[Ne.Validate]:{id:Ne.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"}}},[Ve.Parallel]:{id:Ve.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"}}}},[i.Loop]:{[k.List]:{id:k.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"}}}},[k.String]:{id:k.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"}}}},[k.ObjectKeys]:{id:k.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"}}}},[k.ObjectValues]:{id:k.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"}}}},[k.ManualFlow]:{id:k.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"}}}},[k.Counted]:{id:k.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"}}}}},[i.Condition]:{[qe.MoreThanOrEqual]:{id:qe.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"}}}},[Jt.NotEmpty]:{id:Jt.NotEmpty,inputs:{leftHand:{id:"condition-not-empty-input-id"}}}},[i.GlobalEvent]:{[Dn.PROJECT_PUBLICATION_COMPLETED]:{id:Dn.PROJECT_PUBLICATION_COMPLETED}}},$t=_[i.PrimitiveEntity],J={type:i.PrimitiveEntity,id:$t.string.id,description:"A string of characters.",version:1,name:C.String,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Sn={type:i.PrimitiveEntity,id:$t.boolean.id,description:"A 'true' or 'false' value.",version:1,name:C.Boolean,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},ee={type:i.PrimitiveEntity,id:$t.number.id,description:"A number value.",version:1,name:C.Number,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},gp={type:i.PrimitiveEntity,id:$t.null.id,description:"An explicitly empty value.",version:1,name:C.Null,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},it={type:i.PrimitiveEntity,id:$t.untyped.id,description:"Data of any type that isn't known in advance.",version:1,name:C.Untyped,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},bp={id:"c2f52f01-8f2e-490e-8083-72289c8189c1",type:i.GenericReference,entityId:$t.enum.properties.options.id,entityType:i.Property},vp={id:"4e803941-2e6a-4227-b803-b8877c0d7fee",type:i.GenericReference,entityId:"00ccfcae-2104-45ef-bf6c-50ddccd74286",entityType:i.Property},Ip={like:!1,inferred:!1,id:$t.enum.properties.options.dataType.id,version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:J,asType:!1,parent:vp},Dp={id:"a2983c4c-0286-4ef1-8b5c-5a52904d3200",type:i.GenericReference,entityId:"9542b8b4-2642-4eee-9db9-def7963a17a0",entityType:i.PrimitiveEntity},Ap={constant:!1,hidden:!1,required:!0,id:$t.enum.properties.options.id,name:"Options",version:1,type:i.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:$t.enum.properties.options.dataType.defaultValue.id,type:i.LiteralValue,version:1,name:C.KeyValue,autogeneration:null,value:[],valueAsType:null,parent:bp},dataType:Ip,description:"Options for the enum. Each option is a text value.",parent:Dp},On={type:i.PrimitiveEntity,id:$t.enum.id,description:"A set of text options to choose from.",version:1,name:C.Enum,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[Ap],methods:[]},ln={type:i.PrimitiveEntity,id:$t.date.id,description:"A date and time value.",version:1,name:C.Date,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Pn={type:i.PrimitiveEntity,id:$t.uuid.id,description:"A unique identifier in the form of a 36-character string.",version:1,name:C.UUID,static:!1,abstract:!1,abstractMethods:[],extends:[J],properties:[],methods:[]},ai={type:i.PrimitiveEntity,id:$t[C.KeyValue].id,description:"A complex data structure with any combination of properties with names and values.",version:1,name:C.KeyValue,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Sp=[J,Sn,ee,gp,it,On,ln,Pn,ai],dn=_[i.Operation][Ge.Addition],Op={type:i.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:dn.inputs.firstSummand.id,entityType:i.ValueDescriptor},Pp={like:!1,inferred:!1,id:"number-addition-first-number-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,isList:!1,asType:!1,parent:Op},Cp={type:i.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:dn.inputs.secondSummand.id,entityType:i.ValueDescriptor},wp={like:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!1,parent:Cp},Bp={type:i.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:dn.outputs.result.id,entityType:i.ValueDescriptor},Mp={like:!1,inferred:!1,id:dn.outputs.result.dataType.id,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!1,parent:Bp},_p={type:i.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:Ge.Addition,entityType:i.ActionDescriptor},Il={id:dn.inputs.firstSummand.id,type:i.ValueDescriptor,version:1,name:"Summand",description:"The first number to add",defaultValue:null,dataType:Pp,required:!0,parentRelationType:P.FixedArguments,index:0,parent:_p},Vp={type:i.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:Ge.Addition,entityType:i.ActionDescriptor},Dl={id:dn.inputs.secondSummand.id,type:i.ValueDescriptor,description:"The second number to add",version:1,name:"Summand",defaultValue:null,dataType:wp,required:!0,parentRelationType:P.FixedArguments,index:1,parent:Vp},Al={type:i.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:Ge.Addition,entityType:i.ActionDescriptor},Sl={parentRelationType:P.FixedReturns,id:dn.outputs.result.id,type:i.ValueDescriptor,description:"The result number of the addition",version:1,name:"Result",defaultValue:null,dataType:Mp,required:!0,index:0,parent:Al},Np={type:i.GenericReference,id:"number-addition-operation-error-parent-ref",entityId:Ge.Addition,entityType:i.ActionDescriptor},Lp={parentRelationType:P.FixedReturns,id:dn.outputs.error.id,type:i.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Np},Gp={type:i.GenericReference,id:"number-addition-operation-dynamic-summand-argument-type-parent-ref",entityId:dn.inputs.dynamicSummand.id,entityType:i.ValueDescriptor},$p={like:!1,inferred:!1,id:"number-addition-operation-dynamic-summand-argument-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!1,parent:Gp},Fp={parentRelationType:P.DynamicArgument,id:dn.inputs.dynamicSummand.id,type:i.ValueDescriptor,description:"A number to add",version:1,name:"Summand",defaultValue:null,dataType:$p,required:!0,index:2,parent:Al},ls={id:Ge.Addition,type:i.ActionDescriptor,description:"Sum numbers",version:1,name:Ge.Addition,inputs:[Il,Dl,Fp],error:Lp,outputs:[Sl],parent:null},cn=_[i.Operation][Ge.Subtraction],Up={type:i.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:cn.inputs.minuend.id,entityType:i.ValueDescriptor},xp={like:!1,inferred:!1,id:"number-subtraction-first-number-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,isList:!1,asType:!1,parent:Up},jp={type:i.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:cn.inputs.subtrahend.id,entityType:i.ValueDescriptor},kp={like:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!1,parent:jp},qp={type:i.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:cn.outputs.result.id,entityType:i.ValueDescriptor},Jp={like:!1,inferred:!1,id:cn.outputs.result.dataType.id,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!1,parent:qp},Ol={type:i.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:Ge.Subtraction,entityType:i.ActionDescriptor},Wp={id:cn.inputs.minuend.id,type:i.ValueDescriptor,version:1,name:"Minuend",description:"Base number to substract from",defaultValue:null,dataType:xp,required:!0,parentRelationType:P.FixedArguments,index:0,parent:Ol},Yp={type:i.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:Ge.Subtraction,entityType:i.ActionDescriptor},Hp={id:cn.inputs.subtrahend.id,type:i.ValueDescriptor,description:"The second number to substract",version:1,name:"Subtrahend",defaultValue:null,dataType:kp,required:!0,parentRelationType:P.FixedArguments,index:1,parent:Yp},zp={type:i.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:Ge.Subtraction,entityType:i.ActionDescriptor},Zp={parentRelationType:P.FixedReturns,id:cn.outputs.result.id,type:i.ValueDescriptor,description:"The result number of the subtraction",version:1,name:"Result",defaultValue:null,dataType:Jp,required:!0,index:0,parent:zp},Kp={type:i.GenericReference,id:"number-subtraction-operation-error-parent-ref",entityId:Ge.Subtraction,entityType:i.ActionDescriptor},Xp={parentRelationType:P.FixedReturns,id:cn.outputs.error.id,type:i.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Kp},Qp={type:i.GenericReference,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-parent-ref",entityId:cn.inputs.dynamicSubtrahend.id,entityType:i.ValueDescriptor},ey={like:!1,inferred:!1,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!1,parent:Qp},ty={id:cn.inputs.dynamicSubtrahend.id,type:i.ValueDescriptor,version:1,name:"Subtrahend",description:"A number to substract",defaultValue:null,dataType:ey,required:!0,parentRelationType:P.DynamicArgument,index:2,parent:Ol},Pl={id:Ge.Subtraction,type:i.ActionDescriptor,description:"Substract numbers",version:1,name:Ge.Subtraction,inputs:[Wp,Hp,ty],error:Xp,outputs:[Zp],parent:null},ny={[Ge.Addition]:ls,[Ge.Subtraction]:Pl},Wt=_[i.Operation][re.Join],ry={type:i.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:Wt.inputs.first.id,entityType:i.ValueDescriptor},iy={like:!1,inferred:!1,id:"join-strings-first-string-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:ry},ay={type:i.GenericReference,id:"join-strings-second-string-argument-declaration",entityId:Wt.inputs.second.id,entityType:i.ValueDescriptor},sy={like:!1,inferred:!1,id:"join-strings-second-string-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:ay},oy={type:i.GenericReference,id:"join-strings-result-string-return-delaration",entityId:Wt.outputs.result.id,entityType:i.ValueDescriptor},ly={like:!1,inferred:!1,id:"join-strings-result-string-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:oy},dy={type:i.GenericReference,id:"join-strings-operation-first-string-argument-parent-ref",entityId:re.Join,entityType:i.ActionDescriptor},ds={id:Wt.inputs.first.id,type:i.ValueDescriptor,version: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:iy,parentRelationType:P.FixedArguments,required:!0,index:1,parent:dy},cy={type:i.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:Wt.inputs.first.id,entityType:i.ValueDescriptor},uy={type:i.GenericReference,id:"join-strings-separator-string-data-type-default-value-parent-ref",entityId:Wt.inputs.separator.id,entityType:i.ValueDescriptor},py={type:i.LiteralValue,id:"join-strings-separator-string-data-type-default-value-id",version:1,name:C.String,value:"",valueAsType:null,autogeneration:null,parent:uy},yy={like:!1,inferred:!1,id:"join-strings-separator-string-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:cy},hy={type:i.GenericReference,id:"join-strings-operation-separator-string-argument-parent-ref",entityId:re.Join,entityType:i.ActionDescriptor},fy={id:Wt.inputs.separator.id,type:i.ValueDescriptor,version:1,name:"Separator",description:"The text value that will be inserted between each of the values that are joined.",defaultValue:py,dataType:yy,parentRelationType:P.FixedArguments,required:!1,index:0,parent:hy},my={type:i.GenericReference,id:"join-strings-operation-second-string-argument-parent-ref",entityId:re.Join,entityType:i.ActionDescriptor},cs={id:Wt.inputs.second.id,type:i.ValueDescriptor,version: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:sy,parentRelationType:P.FixedArguments,required:!0,index:2,parent:my},Ty={type:i.GenericReference,id:"join-strings-operation-result-string-return-parent-ref",entityId:re.Join,entityType:i.ActionDescriptor},Zi={parentRelationType:P.FixedReturns,id:Wt.outputs.result.id,type:i.ValueDescriptor,version:1,name:"Result",description:"The resulting text value.",defaultValue:null,dataType:ly,required:!0,index:0,parent:Ty},Ey={type:i.GenericReference,id:"join-strings-operation-error-parent-ref",entityId:re.Join,entityType:i.ActionDescriptor},Ry={parentRelationType:P.FixedReturns,id:Wt.outputs.error.id,type:i.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Ey},gy={type:i.GenericReference,id:"join-strings-dynamic-string-argument-declaration",entityId:Wt.inputs.dynamicString.id,entityType:i.ValueDescriptor},by={like:!1,inferred:!1,id:"join-strings-dynamic-string-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:gy},vy={type:i.GenericReference,id:"join-strings-operation-dynamic-string-argument-parent-ref",entityId:re.Join,entityType:i.ActionDescriptor},Iy={id:Wt.inputs.dynamicString.id,type:i.ValueDescriptor,version: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:by,parentRelationType:P.DynamicArgument,required:!0,index:3,parent:vy},Ki={id:re.Join,type:i.ActionDescriptor,version:1,name:re.Join,description:"Join text values together, to form a single resulting text value.",inputs:[fy,ds,cs,Iy],outputs:[Zi],error:Ry,parent:null},Cn=_[i.Operation][re.Split],Dy={type:i.GenericReference,id:"split-string-string-argument-declaration",entityId:Cn.inputs.stringValue.id,entityType:i.ValueDescriptor},Ay={like:!1,inferred:!1,id:"split-string-string-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:Dy},Sy={type:i.GenericReference,id:"split-string-index-argument-declaration",entityId:Cn.inputs.indexLocation.id,entityType:i.ValueDescriptor},Oy={like:!1,inferred:!1,id:"split-string-index-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!1,parent:Sy},Py={type:i.GenericReference,id:"split-string-first-part-result-string-return-delaration",entityId:Cn.outputs.firstPartResult.id,entityType:i.ValueDescriptor},Cy={like:!1,inferred:!1,id:"split-string-first-part-result-string-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:Py},wy={type:i.GenericReference,id:"split-string-second-part-result-string-return-delaration",entityId:Cn.outputs.secondPartResult.id,entityType:i.ValueDescriptor},By={like:!1,inferred:!1,id:"split-string-second-part-result-string-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:wy},My={type:i.GenericReference,id:"split-string-operation-string-argument-parent-ref",entityId:re.Join,entityType:i.ActionDescriptor},_y={id:Cn.inputs.stringValue.id,type:i.ValueDescriptor,version:1,name:"Text value",description:"The text value that will be split into two at the given index location.",defaultValue:null,dataType:Ay,parentRelationType:P.FixedArguments,required:!0,index:0,parent:My},Vy={type:i.GenericReference,id:"split-string-operation-index-argument-parent-ref",entityId:re.Join,entityType:i.ActionDescriptor},Ny={id:Cn.inputs.indexLocation.id,type:i.ValueDescriptor,version: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:Oy,parentRelationType:P.FixedArguments,required:!0,index:1,parent:Vy},Ly={type:i.GenericReference,id:"split-string-operation-second-part-result-string-return-parent-ref",entityId:re.Join,entityType:i.ActionDescriptor},kO={parentRelationType:P.FixedReturns,id:Cn.outputs.secondPartResult.id,type:i.ValueDescriptor,version:1,name:"Second part",description:"The secont part of the resulting text value.",defaultValue:null,dataType:By,required:!0,index:1,parent:Ly},Gy={type:i.GenericReference,id:"split-string-operation-first-part-result-string-return-parent-ref",entityId:re.Join,entityType:i.ActionDescriptor},$y={parentRelationType:P.FixedReturns,id:Cn.outputs.firstPartResult.id,type:i.ValueDescriptor,version:1,name:"First part",description:"The first part of the resulting text value.",defaultValue:null,dataType:Cy,required:!0,index:0,parent:Gy},Fy={type:i.GenericReference,id:"split-string-operation-error-parent-ref",entityId:re.Join,entityType:i.ActionDescriptor},Uy={parentRelationType:P.FixedReturns,id:Cn.outputs.error.id,type:i.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Fy},Cl={id:re.Split,type:i.ActionDescriptor,version:1,name:re.Split,description:"Split a text into two, at the given index location.",inputs:[_y,Ny],outputs:[$y],error:Uy,parent:null},xy={[re.Join]:Ki,[re.Split]:Cl};var jy=(r=>(r.FirstInputList="join-list-first-list-argument-declaration",r.SecondInputList="join-list-second-list-argument-declaration",r))(jy||{}),ky=(r=>(r.ResultList="join-list-result-list-return-delaration",r.Error="join-list-error-return-delaration",r))(ky||{});const qy={type:i.GenericReference,id:"join-list-operation-first-list-argument-ref",entityId:"join-list-first-list-argument-declaration",entityType:i.ValueDescriptor},Jy={like:!1,inferred:!1,id:"join-list-first-list-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,parent:qy},Wy={type:i.GenericReference,id:"join-list-operation-second-list-argument-ref",entityId:"join-list-second-list-argument-declaration",entityType:i.ValueDescriptor},Yy={like:!1,inferred:!1,id:"join-list-second-list-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,parent:Wy},Hy={type:i.GenericReference,id:"join-list-operation-result-list-return-ref",entityId:"join-list-result-list-return-delaration",entityType:i.ValueDescriptor},zy={like:!1,inferred:!1,id:"join-list-result-list-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!0,parent:Hy},Zy={type:i.GenericReference,id:"join-list-operation-first-list-argument-parent-ref",entityId:X.Join,entityType:i.ActionDescriptor},Ky={id:"join-list-first-list-argument-declaration",type:i.ValueDescriptor,version: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:Jy,parentRelationType:P.FixedArguments,required:!0,index:0,parent:Zy},Xy={type:i.GenericReference,id:"join-list-operation-second-list-argument-parent-ref",entityId:X.Join,entityType:i.ActionDescriptor},Qy={id:"join-list-second-list-argument-declaration",type:i.ValueDescriptor,version: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:Yy,parentRelationType:P.FixedArguments,required:!0,index:1,parent:Xy},eh={type:i.GenericReference,id:"join-list-operation-result-list-return-parent-ref",entityId:X.Join,entityType:i.ActionDescriptor},th={parentRelationType:P.FixedReturns,id:"join-list-result-list-return-delaration",type:i.ValueDescriptor,version:1,name:"Result",description:"The resulting list value.",defaultValue:null,dataType:zy,required:!0,index:0,parent:eh},nh={type:i.GenericReference,id:"join-list-operation-error-parent-ref",entityId:X.Join,entityType:i.ActionDescriptor},rh={parentRelationType:P.FixedReturns,id:"join-list-error-return-delaration",type:i.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:nh},wl={id:X.Join,type:i.ActionDescriptor,version:1,name:X.Join,description:"Join two lists together, to form a single resulting list value.",inputs:[Ky,Qy],error:rh,outputs:[th],parent:null};var ih=(r=>(r.InputList="list-to-split-argument-declaration",r.SplitIndex="split-list-index-argument-declaration",r))(ih||{}),ah=(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))(ah||{});const sh={type:i.GenericReference,id:"split-list-operation-input-list-argument-ref",entityId:"list-to-split-argument-declaration",entityType:i.ValueDescriptor},oh={like:!1,inferred:!1,id:"split-list-operation-input-list-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!0,parent:sh},lh={type:i.GenericReference,id:"split-list-operation-split-index-argument-ref",entityId:"split-list-index-argument-declaration",entityType:i.ValueDescriptor},dh={like:!1,inferred:!1,id:"split-list-operation-split-index-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!1,parent:lh},Bl={type:i.GenericReference,id:"split-list-operation-first-output-list-return-ref",entityId:"split-list-first-output-list-return-delaration",entityType:i.ValueDescriptor},ch={like:!1,inferred:!1,id:"split-list-operation-first-output-list-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!0,parent:Bl},uh={type:i.GenericReference,id:"split-list-operation-input-list-argument-parent-ref",entityId:X.Split,entityType:i.ActionDescriptor},ph={id:"list-to-split-argument-declaration",type:i.ValueDescriptor,version:1,name:"List to split",description:"The list to split at the given index",defaultValue:null,dataType:oh,parentRelationType:P.FixedArguments,required:!0,index:0,parent:uh},yh={type:i.GenericReference,id:"split-list-operation-split-index-argument-parent-ref",entityId:X.Split,entityType:i.ActionDescriptor},hh={id:"split-list-index-argument-declaration",type:i.ValueDescriptor,version: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:dh,parentRelationType:P.FixedArguments,required:!0,index:1,parent:yh},fh={type:i.GenericReference,id:"split-list-operation-first-output-list-return-parent-ref",entityId:X.Split,entityType:i.ActionDescriptor},mh={parentRelationType:P.FixedReturns,id:"split-list-first-output-list-return-delaration",type:i.ValueDescriptor,version:1,name:"First list",description:"The list of values up to the split index",defaultValue:null,dataType:ch,required:!0,index:0,parent:fh},Th={like:!1,inferred:!1,id:"split-list-operation-second-output-list-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!0,parent:Bl},Eh={type:i.GenericReference,id:"split-list-operation-second-output-list-return-parent-ref",entityId:X.Split,entityType:i.ActionDescriptor},Rh={parentRelationType:P.FixedReturns,id:"split-list-second-output-list-return-delaration",type:i.ValueDescriptor,version:1,name:"Second list",description:"The list of values up to the split index",defaultValue:null,dataType:Th,required:!0,index:0,parent:Eh},gh={type:i.GenericReference,id:"split-list-operation-error-parent-ref",entityId:X.Split,entityType:i.ActionDescriptor},bh={parentRelationType:P.FixedReturns,id:"split-list-error-return-delaration",type:i.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:gh},Ml={id:X.Split,type:i.ActionDescriptor,version:1,name:X.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:[ph,hh],outputs:[mh,Rh],error:bh,parent:null};var vh=(r=>(r.InputList="get-last-in-list-input-list-argument-declaration",r))(vh||{}),Ih=(r=>(r.OutputElement="get-last-in-list-output-element-return-delaration",r.Error="get-last-in-list-error-return-delaration",r))(Ih||{});const Dh={type:i.GenericReference,id:"get-last-in-list-operation-input-list-argument-ref",entityId:"get-last-in-list-input-list-argument-declaration",entityType:i.ValueDescriptor},Ah={like:!1,inferred:!1,id:"get-last-in-list-input-list-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,parent:Dh},Sh={type:i.GenericReference,id:"get-last-in-list-operation-output-element-return-ref",entityId:"get-last-in-list-output-element-return-delaration",entityType:i.ValueDescriptor},Oh={like:!1,inferred:!1,id:"get-last-in-list-output-element-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!0,parent:Sh},Ph={type:i.GenericReference,id:"get-last-in-list-operation-input-list-argument-parent-ref",entityId:X.GetLast,entityType:i.ActionDescriptor},Ch={id:"get-last-in-list-input-list-argument-declaration",type:i.ValueDescriptor,version:1,name:"List",description:"The list to get the last element from.",defaultValue:null,dataType:Ah,parentRelationType:P.FixedArguments,required:!0,index:0,parent:Ph},wh={type:i.GenericReference,id:"get-last-in-list-operation-output-element-return-parent-ref",entityId:X.GetLast,entityType:i.ActionDescriptor},Bh={parentRelationType:P.FixedReturns,id:"get-last-in-list-output-element-return-delaration",type:i.ValueDescriptor,version:1,name:"Last element",description:"The last element of the given list.",defaultValue:null,dataType:Oh,required:!0,index:0,parent:wh},Mh={type:i.GenericReference,id:"get-last-in-list-operation-error-parent-ref",entityId:X.GetLast,entityType:i.ActionDescriptor},_h={parentRelationType:P.FixedReturns,id:"get-last-in-list-error-return-delaration",type:i.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Mh},_l={id:X.GetLast,type:i.ActionDescriptor,version:1,name:X.GetLast,description:"Outputs the last element of a given list.",inputs:[Ch],outputs:[Bh],error:_h,parent:null};var Vh=(r=>(r.List="append-to-list-lsit-argument-declaration",r.ElementToAppend="append-to-list-element-to-append-argument-declaration",r))(Vh||{}),Nh=(r=>(r.ResultList="append-to-list-result-list-return-delaration",r.Error="append-to-list-error-return-delaration",r))(Nh||{});const Lh={type:i.GenericReference,id:"append-to-list-operation-lsit-argument-ref",entityId:"append-to-list-lsit-argument-declaration",entityType:i.ValueDescriptor},Gh={like:!1,inferred:!1,id:"append-to-list-lsit-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,parent:Lh},$h={type:i.GenericReference,id:"append-to-list-operation-second-list-argument-ref",entityId:"append-to-list-element-to-append-argument-declaration",entityType:i.ValueDescriptor},Fh={like:!1,inferred:!1,id:"append-to-list-second-list-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,parent:$h},Uh={type:i.GenericReference,id:"append-to-list-operation-result-list-return-ref",entityId:"append-to-list-result-list-return-delaration",entityType:i.ValueDescriptor},xh={like:!1,inferred:!1,id:"append-to-list-result-list-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!0,parent:Uh},jh={type:i.GenericReference,id:"append-to-list-operation-lsit-argument-parent-ref",entityId:X.Append,entityType:i.ActionDescriptor},Vl={id:"append-to-list-lsit-argument-declaration",type:i.ValueDescriptor,version:1,name:"List value",description:"The list to which the element will be appended",defaultValue:null,dataType:Gh,parentRelationType:P.FixedArguments,required:!0,index:0,parent:jh},kh={type:i.GenericReference,id:"append-to-list-operation-second-list-argument-parent-ref",entityId:X.Append,entityType:i.ActionDescriptor},Nl={id:"append-to-list-element-to-append-argument-declaration",type:i.ValueDescriptor,version:1,name:"Element",description:"The element that will be added at the end of the list",defaultValue:null,dataType:Fh,parentRelationType:P.FixedArguments,required:!0,index:1,parent:kh},qh={type:i.GenericReference,id:"append-to-list-operation-result-list-return-parent-ref",entityId:X.Append,entityType:i.ActionDescriptor},Jh={parentRelationType:P.FixedReturns,id:"append-to-list-result-list-return-delaration",type:i.ValueDescriptor,version:1,name:"Result",description:"The resulting list value.",defaultValue:null,dataType:xh,required:!0,index:0,parent:qh},Wh={type:i.GenericReference,id:"append-to-list-operation-error-parent-ref",entityId:X.Append,entityType:i.ActionDescriptor},Yh={parentRelationType:P.FixedReturns,id:"append-to-list-error-return-delaration",type:i.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Wh},us={id:X.Append,type:i.ActionDescriptor,version:1,name:X.Append,description:"Adds a given element to the end of a list value.",inputs:[Vl,Nl],error:Yh,outputs:[Jh],parent:null},Hh={[X.Join]:wl,[X.Split]:Ml,[X.GetLast]:_l,[X.Append]:us},si=_[i.Operation][Ve.Parallel],zh={id:"parallel-execution-list-of-functions-blueprint-dynamic-output-id",type:i.ValueDescriptor,version: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:P.DynamicArgument},Zh={id:"parallel-execution-list-of-functions-blueprint-dynamic-input-id",type:i.ValueDescriptor,version: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:P.DynamicArgument},Kh={id:"parallel-execution-list-of-functions-blueprint-id",type:i.ActionDescriptor,version: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:[zh],error:null,parent:null},Xh={type:i.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:si.inputs.listOfActions.id,entityType:i.ValueDescriptor},Qh={like:!1,inferred:!1,id:"parallel-execution-list-of-functions-argument-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Kh,asType:!1,isList:!0,parent:Xh},ef={type:i.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:si.outputs.results.id,entityType:i.ValueDescriptor},tf={like:!1,inferred:!1,id:si.outputs.results.dataType.id,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!0,parent:ef},nf={type:i.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:Ve.Parallel,entityType:i.ActionDescriptor},Ll={id:si.inputs.listOfActions.id,type:i.ValueDescriptor,version:1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",dataType:Qh,defaultValue:null,required:!0,index:0,parent:nf,parentRelationType:P.FixedArguments},rf={type:i.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:Ve.Parallel,entityType:i.ActionDescriptor},Gl={id:si.outputs.results.id,type:i.ValueDescriptor,version: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:tf,defaultValue:null,required:!0,index:0,parent:rf,parentRelationType:P.FixedReturns},af={type:i.GenericReference,id:"parallel-execution-operation-error-parent-ref",entityId:Ve.Parallel,entityType:i.ActionDescriptor},sf={id:si.outputs.error.id,type:i.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:af,parentRelationType:P.ReturnedError},Qt={id:Ve.Parallel,type:i.ActionDescriptor,description:"Execute a list of actions in parallel",version:1,name:Ve.Parallel,inputs:[Ll],outputs:[Gl],error:sf,parent:null};var of=(r=>(r.MillisecondsNumber="wait-milliseconds-number-argument-declaration",r))(of||{}),lf=(r=>(r.Error="wait-operation-error-return-delaration",r))(lf||{});const df={type:i.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityType:i.ValueDescriptor,entityId:"wait-milliseconds-number-argument-declaration"},cf={like:!1,inferred:!1,id:"wait-milliseconds-number-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,isList:!1,asType:!1,parent:df},uf={type:i.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityType:i.ActionDescriptor,entityId:Ve.Wait},yr={id:"wait-milliseconds-number-argument-declaration",type:i.ValueDescriptor,version:1,name:"Milliseconds to wait",description:"The amount of milliseconds to wait before calling the next entity",defaultValue:null,dataType:cf,required:!0,index:0,parent:uf,parentRelationType:P.FixedArguments},pf={type:i.GenericReference,id:"wait-operation-error-parent-ref",entityId:Ve.Wait,entityType:i.ActionDescriptor},yf={id:"wait-operation-error-return-delaration",type:i.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:pf,parentRelationType:P.ReturnedError},Rt={id:Ve.Wait,type:i.ActionDescriptor,description:"Wait for the given amount of milliseconds before calling the next entity",version:1,name:Ve.Wait,inputs:[yr],outputs:[],error:yf,parent:null};var hf=(r=>(r.ListOfFunctions="sequential-execution-list-of-functions-argument-declaration",r))(hf||{}),ff=(r=>(r.ListOfExecutionResults="sequential-execution-result-return-delaration",r.Error="sequential-execution-error-return-delaration",r))(ff||{});const mf={id:"sequential-execution-list-of-functions-blueprint-dynamic-output-id",type:i.ValueDescriptor,version: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:P.DynamicArgument},Tf={id:"sequential-execution-list-of-functions-blueprint-dynamic-input-id",type:i.ValueDescriptor,version: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:P.DynamicArgument},Ef={id:"sequential-execution-list-of-functions-blueprint-id",type:i.ActionDescriptor,version:1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[Tf],outputs:[mf],error:null,parent:null},Rf={type:i.GenericReference,id:"parallel-execution-list-of-functions-argument-declaration-id",entityId:"sequential-execution-list-of-functions-argument-declaration",entityType:i.ValueDescriptor},gf={like:!1,inferred:!1,id:"sequential-execution-list-of-functions-argument-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ef,asType:!1,isList:!0,parent:Rf},bf={type:i.GenericReference,id:"sequential-execution-list-of-execution-results-return-declaration-id",entityId:"sequential-execution-result-return-delaration",entityType:i.ValueDescriptor},vf={like:!1,inferred:!1,id:"sequential-execution-list-of-execution-results-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!0,parent:bf},If={type:i.GenericReference,id:"parallel-execution-operation-list-of-functions-argument-parent-ref",entityId:Ve.Sequential,entityType:i.ActionDescriptor},$l={id:"sequential-execution-list-of-functions-argument-declaration",type:i.ValueDescriptor,version:1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",defaultValue:null,dataType:gf,required:!0,index:0,parent:If,parentRelationType:P.FixedArguments},Df={type:i.GenericReference,id:"parallel-execution-operation-list-of-execution-results-return-parent-ref",entityId:Ve.Sequential,entityType:i.ActionDescriptor},Fl={id:"sequential-execution-result-return-delaration",type:i.ValueDescriptor,version: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:vf,required:!0,index:0,parent:Df,parentRelationType:P.FixedReturns},Af={type:i.GenericReference,id:"sequential-execution-operation-error-parent-ref",entityId:Ve.Sequential,entityType:i.ActionDescriptor},Sf={id:"sequential-execution-error-return-delaration",type:i.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Af,parentRelationType:P.ReturnedError},wn={id:Ve.Sequential,type:i.ActionDescriptor,description:"Execute a list of actions one after the other",version:1,name:Ve.Sequential,inputs:[$l],outputs:[Fl],error:Sf,parent:null},Of={[Ve.Parallel]:Qt,[Ve.Wait]:Rt,[Ve.Sequential]:wn};var Pf=(r=>(r.EntityToInstanciate="entity-to-instanciate-argument-declaration",r.NewEntityData="new-entity-data-argument-declaration",r))(Pf||{}),Cf=(r=>(r.Error="create-new-instance-error-return-delaration",r))(Cf||{});const wf={type:i.GenericReference,id:"new-entity-data-argument-declaration-parent-ref",entityId:Ne.CreateNewInstance,entityType:i.ActionDescriptor},Bf={type:i.GenericReference,id:"new-entity-data-argument-data-type-parent-ref",entityId:"new-entity-data-argument-declaration",entityType:i.ValueDescriptor},Mf={like:!1,inferred:!1,id:"new-entity-data-argument-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,parent:Bf},_f={id:"new-entity-data-argument-declaration",type:i.ValueDescriptor,version:1,name:"Data for new entity",description:"The data to be used to create the new entity, with all the required properties",dataType:Mf,required:!0,defaultValue:null,parentRelationType:P.FixedArguments,index:1,parent:wf},Vf={type:i.GenericReference,id:"entity-to-instanciate-argument-declaration-ref",entityType:i.ValueDescriptor,entityId:"entity-to-instanciate-argument-declaration"},Nf={like:!1,inferred:!1,id:"entity-to-instanciate-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!0,parent:Vf},Lf={type:i.GenericReference,id:"create-new-instance-operation-ref",entityType:i.ActionDescriptor,entityId:Ne.CreateNewInstance},Gf={id:"entity-to-instanciate-argument-declaration",type:i.ValueDescriptor,version:1,name:"Entity to create a new copy of",description:"The entity of which a new copy will to be created",defaultValue:null,dataType:Nf,required:!0,parentRelationType:P.FixedArguments,index:0,parent:Lf},$f={type:i.GenericReference,id:"create-new-instance-output-entity-declaration-parent-ref",entityId:Ne.CreateNewInstance,entityType:i.ActionDescriptor},Ff={parentRelationType:P.FixedReturns,id:"create-new-instance-output-entity-declaration",type:i.ValueDescriptor,version:1,name:"Created entity",description:"The entity that was created",defaultValue:null,dataType:null,parent:$f,required:!0,index:0},Uf={type:i.GenericReference,id:"create-new-instance-error-parent-ref",entityId:Ne.CreateNewInstance,entityType:i.ActionDescriptor},xf={parentRelationType:P.FixedReturns,id:"create-new-instance-error-return-delaration",type:i.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",defaultValue:null,dataType:null,required:!0,index:1,parent:Uf},hr={id:Ne.CreateNewInstance,type:i.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,name:Ne.CreateNewInstance,inputs:[Gf,_f],outputs:[Ff],error:xf,parent:null},oi=_[i.Operation][Ne.Validate],jf={type:i.GenericReference,id:"validate-data-operation-data-to-validate-argument-declaration-ref",entityType:i.ValueDescriptor,entityId:oi.inputs.dataToValidate.id},kf={like:!1,inferred:!1,id:"validate-data-operation-data-to-validate-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,parent:jf},qf={type:i.GenericReference,id:"validate-data-operation-data-to-validate-argument-parent-ref",entityType:i.ActionDescriptor,entityId:Ne.Validate},Jf={id:oi.inputs.dataToValidate.id,type:i.ValueDescriptor,version:1,name:"Data to validate",description:"The value to validate against the given entity type",defaultValue:null,dataType:kf,required:!0,parentRelationType:P.FixedArguments,index:0,parent:qf},Wf={type:i.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-declaration-ref",entityType:i.ValueDescriptor,entityId:oi.inputs.entityToMatch.id},Yf={like:!1,inferred:!1,id:"validate-data-operation-entity-to-match-type-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!0,parent:Wf},Hf={type:i.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-parent-ref",entityType:i.ActionDescriptor,entityId:Ne.Validate},zf={id:oi.inputs.entityToMatch.id,type:i.ValueDescriptor,version:1,name:"Entity to match",description:"The entity to match the data against",dataType:Yf,defaultValue:null,required:!0,index:0,parentRelationType:P.FixedArguments,parent:Hf},Zf={type:i.GenericReference,id:"validate-data-operation-output-entity-declaration-parent-ref",entityId:Ne.Validate,entityType:i.ActionDescriptor},Kf={id:oi.outputs.outputEntity.id,type:i.ValueDescriptor,version:1,dataType:null,name:"Output value",description:"A value with the type of the entity that was validated",defaultValue:null,parent:Zf,required:!0,index:0,parentRelationType:P.FixedReturns},Xf={type:i.GenericReference,id:"wait-operation-error-parent-ref",entityId:Ne.Validate,entityType:i.ActionDescriptor},Qf={id:oi.outputs.error.id,type:i.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,defaultValue:null,required:!0,index:1,parent:Xf,parentRelationType:P.ReturnedError},fr={id:Ne.Validate,type:i.ActionDescriptor,description:"Validates the given data to see if it matches the structure of a given type/entity",version:1,name:Ne.Validate,inputs:[zf,Jf],outputs:[Kf],error:Qf,parent:null},em={[Ne.CreateNewInstance]:hr,[Ne.Validate]:fr},Qe=_[i.Operation]["base-http-request"],tm={type:i.GenericReference,id:"d87cf943-57e1-4d19-9f05-190fa8c8ebc4",entityType:i.ValueDescriptor,entityId:Qe.inputs.url.id},nm={id:"http-request-url-default-value-id",type:i.LiteralValue,version:1,value:"https://some-url.com",name:C.String,valueAsType:null,parent:tm,autogeneration:null},rm={type:i.GenericReference,id:"aed50d73-eab5-42ce-b00e-7f5c45a9026f",entityId:Qe.inputs.url.id,entityType:i.ValueDescriptor},im={like:!1,inferred:!1,id:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:rm},am={type:i.GenericReference,id:"c3145af6-3387-464a-8887-272e483c856d",entityId:Qe.inputs.query.id,entityType:i.ValueDescriptor},sm={like:!1,inferred:!1,id:"2a5ba737-6335-4cc4-a2c0-16dca4052fac",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:am},om={type:i.GenericReference,id:"075556b7-e468-48f7-8485-7159eaf389b2",entityType:i.ValueDescriptor,entityId:Qe.inputs.method.id},lm={id:"http-request-method-default-value-id",type:i.LiteralValue,version:1,value:"GET",name:C.Enum,valueAsType:null,parent:om,autogeneration:null},dm={type:i.GenericReference,id:"aed647c8-a1b5-4cfc-9a3d-97887a567a80",entityId:Qe.inputs.method.id,entityType:i.ValueDescriptor},cm={like:!1,inferred:!1,id:"6df7ec2b-5dbd-44af-896b-17b314e88560",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:On,isList:!1,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:dm},um={type:i.GenericReference,id:"77203dfa-d2f6-4804-9556-e1cce46228f3",entityId:Qe.inputs.headers.id,entityType:i.ValueDescriptor},pm={like:!1,inferred:!1,id:"2c8a2a07-69c6-40ad-b5c9-f0dc4d5955ce",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:it,asType:!1,isList:!1,parent:um},ym={type:i.GenericReference,id:"03db68a0-7ab6-4c6a-85b6-f4b95ebb53ff",entityId:Qe.inputs.body.id,entityType:i.ValueDescriptor},hm={like:!1,inferred:!1,id:"0397876c-ed54-4ee9-85a4-04fd16dad973",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:it,asType:!1,isList:!1,parent:ym},fm={type:i.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",entityType:i.ValueDescriptor,entityId:Qe.outputs.code.id},mm={like:!1,inferred:!1,id:"45e6d0bc-0c0e-4059-a7a1-6bee925d73d0",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!1,parent:fm},Tm={type:i.GenericReference,id:"2baaa53a-9aef-4bd1-b06d-967c17b7b627",entityType:i.ValueDescriptor,entityId:Qe.outputs.headers.id},Em={type:i.GenericReference,id:"69f34d6c-c686-4165-b6ff-70dae8e1778b",entityType:i.ValueDescriptor,entityId:Qe.outputs.headers.id},Rm={like:!1,inferred:!1,id:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:it,isList:!1,asType:!1,parent:Em},gm={type:i.GenericReference,id:"744334e0-5135-4214-85d0-809437cb620b",entityType:i.ValueDescriptor,entityId:Qe.outputs.body.id},bm={type:i.GenericReference,id:"0e0e20df-1a46-432c-ba01-fd96508a6a61",entityType:i.ValueDescriptor,entityId:Qe.outputs.body.id},vm={like:!1,inferred:!1,id:"05fc1a5d-151a-479a-9c4e-4063f3456177",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:it,isList:!1,asType:!1,parent:bm},Im={type:i.GenericReference,id:"26911792-f707-4bf1-b6f7-03d04a84232c",entityType:i.ActionDescriptor,entityId:dt.HttpRequest},ps={id:Qe.inputs.method.id,type:i.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,name:"Method",defaultValue:lm,dataType:cm,required:!1,index:0,parentRelationType:P.FixedArguments,parent:Im},Dm={type:i.GenericReference,id:"eee0c501-0ae6-4448-b914-aada76d63163",entityType:i.ActionDescriptor,entityId:dt.HttpRequest},ys={id:Qe.inputs.url.id,type:i.ValueDescriptor,description:"The base domain, or address where the request is being sent to. For example: https://some-url.com",version:1,name:"URL",dataType:im,defaultValue:nm,required:!1,index:1,parentRelationType:P.FixedArguments,parent:Dm},Am={type:i.GenericReference,id:"670091a4-21b1-4223-ad4c-b6dada0aec49",entityType:i.ActionDescriptor,entityId:dt.HttpRequest},Ul={id:Qe.inputs.query.id,type:i.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,name:"Query Params",defaultValue:null,dataType:sm,required:!1,index:2,parentRelationType:P.FixedArguments,parent:Am},Sm={type:i.GenericReference,id:"85aad3eb-22fe-45f9-b68c-1dc7061f41e0",entityType:i.ActionDescriptor,entityId:dt.HttpRequest},hs={id:Qe.inputs.headers.id,type:i.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,name:"Headers",defaultValue:null,dataType:pm,required:!1,index:3,parent:Sm,parentRelationType:P.FixedArguments},Om={type:i.GenericReference,id:"c3e2a4af-9b84-4574-8b30-5044ffc51776",entityType:i.ActionDescriptor,entityId:dt.HttpRequest},fs={id:Qe.inputs.body.id,type:i.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,name:"Body",dataType:hm,defaultValue:null,required:!1,index:4,parentRelationType:P.FixedArguments,parent:Om},Pm={type:i.GenericReference,id:"92e04dc7-2145-4a31-908e-03810f7235e8",entityType:i.ActionDescriptor,entityId:dt.HttpRequest},ms={id:Qe.outputs.code.id,type:i.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,name:"Code",defaultValue:null,dataType:mm,required:!0,index:0,parentRelationType:P.FixedReturns,parent:Pm},Cm={type:i.GenericReference,id:"86aca556-bbf1-4679-9909-31db61b288e2",entityType:i.ActionDescriptor,entityId:dt.HttpRequest},Ts={parentRelationType:P.FixedReturns,id:Qe.outputs.headers.id,type:i.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,name:"Headers",defaultValue:{id:"http-response-headers-default-value-id",type:i.LiteralValue,version:1,value:{},name:C.KeyValue,parent:Tm,valueAsType:null,autogeneration:null},dataType:Rm,required:!0,index:1,parent:Cm},wm={type:i.GenericReference,id:"ccf3d1be-04e4-4d03-99fd-5bc1e1919f90",entityType:i.ActionDescriptor,entityId:dt.HttpRequest},Es={id:Qe.outputs.body.id,type:i.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,name:"Body",parentRelationType:P.FixedReturns,dataType:vm,defaultValue:{id:"http-response-body-default-value-id",type:i.LiteralValue,version:1,value:{},name:C.KeyValue,parent:gm,valueAsType:null,autogeneration:null},required:!0,index:2,parent:wm},Bm={type:i.GenericReference,id:"21487ffc-82b9-473d-bc19-6e7d7c480ed7",entityType:i.ActionDescriptor,entityId:dt.HttpRequest},Mm={type:i.GenericReference,id:"ad69861b-32f7-4461-b7f7-aa84a82578d9",entityType:i.ValueDescriptor,entityId:Qe.outputs.error.id},_m={like:!1,inferred:!1,id:"5da68b15-57bc-40c1-b79f-a9075e0f22c1",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:it,isList:!1,asType:!1,parent:Mm},xl={parentRelationType:P.ReturnedError,id:Qe.outputs.error.id,type:i.ValueDescriptor,description:"Http request error, if any. Contains a payload describing what went wrong.",version:1,name:"Error",defaultValue:null,dataType:_m,required:!0,index:0,parent:Bm},Xi={type:i.ActionDescriptor,id:dt.HttpRequest,name:dt.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,inputs:[ps,ys,Ul,hs,fs],outputs:[ms,Ts,Es],error:xl,parent:null},Vm={[dt.HttpRequest]:Xi},Nm={...xy,...ny,...Hh,...Of,...em,...Vm},Lm=Object.values(Nm),qO=_[i.Loop]["manual-flow-loop"],Gm={id:"manual-flow-loop-dynamic-return-declaration-parent-ref-id",type:i.GenericReference,entityId:k.ManualFlow,entityType:i.ActionDescriptor},$m={id:qO.outputs.results.id,type:i.ValueDescriptor,version:1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:Gm,parentRelationType:P.DynamicReturn},Rs={id:k.ManualFlow,type:i.ActionDescriptor,version:1,name:k.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:[$m],error:null,parent:null},Qi=_[i.Loop]["manual-flow-loop"],Fm={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"manual-flow-loop-current-iteration-number-declaration-id",entityType:i.ValueDescriptor},Um={like:!1,inferred:!1,id:"manual-flow-loop-current-iteration-number-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,entity:ee,asType:!1,parent:Fm},xm={id:"manual-flow-loop-current-iteration-number-declaration-parent-ref-id",type:i.GenericReference,entityId:Qi.body.id,entityType:i.ActionDescriptor},jl={id:Qi.body.inputs.iterationNumber.id,type:i.ValueDescriptor,version: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:Um,required:!0,index:0,parentRelationType:P.FixedArguments,parent:xm},jm={id:"manual-flow-loop-body-any-dynamic-argument-parent-ref-id",type:i.GenericReference,entityId:Qi.body.id,entityType:i.ActionDescriptor},km={id:"manual-flow-loop-body-any-dynamic-argument-id",type:i.ValueDescriptor,version: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:P.DynamicArgument,parent:jm},qm={id:"manual-flow-loop-body-any-dynamic-return-parent-ref-id",type:i.GenericReference,entityId:Qi.body.id,entityType:i.ActionDescriptor},Jm={id:"manual-flow-loop-body-any-dynamic-return-id",type:i.ValueDescriptor,version:1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:P.DynamicReturn,parent:qm},kl={id:Qi.body.id,type:i.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the manual flow loop.",inputs:[jl,km],outputs:[Jm],error:null,parent:null},Wm=_[i.Loop]["string-loop"],Ym={id:"iterate-over-string-loop-string-argument-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"iterate-over-string-loop-string-argument-declaration-id",entityType:i.ValueDescriptor},Hm={like:!1,inferred:!1,id:"iterate-over-string-loop-string-argument-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,entity:J,asType:!1,parent:Ym},zm={id:"iterate-over-string-loop-string-argument-declaration-parent-ref-id",type:i.GenericReference,entityId:k.String,entityType:i.ActionDescriptor},Zm={id:Wm.inputs.string.id,type:i.ValueDescriptor,version:1,name:"Texts",description:"The text to iterate over the characters of",defaultValue:null,required:!0,dataType:Hm,index:0,parent:zm,parentRelationType:P.FixedArguments},Km={id:"iterate-over-string-loop-dynamic-return-declaration-parent-ref-id",type:i.GenericReference,entityId:k.String,entityType:i.ActionDescriptor},Xm={id:Wm.outputs.results.id,type:i.ValueDescriptor,version:1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:Km,parentRelationType:P.DynamicReturn},ea={id:k.String,type:i.ActionDescriptor,version:1,name:k.String,description:"Iterates over a string of entities",inputs:[Zm],outputs:[Xm],error:null,parent:null},mr=_[i.Loop]["string-loop"],Qm={id:"iterate-over-string-loop-body-current-value-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"iterate-over-string-loop-body-current-value-declaration-id",entityType:i.ValueDescriptor},eT={like:!1,inferred:!1,id:"iterate-over-string-loop-body-current-value-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,entity:J,asType:!1,parent:Qm},tT={id:"iterate-over-string-loop-body-current-value-declaration-parent-ref-id",type:i.GenericReference,entityId:mr.body.id,entityType:i.ActionDescriptor},ql={id:mr.body.inputs.currentValue.id,type:i.ValueDescriptor,version: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:eT,required:!0,index:1,parentRelationType:P.FixedArguments,parent:tT},nT={id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"iterate-over-string-loop-body-current-iteration-number-declaration-id",entityType:i.ValueDescriptor},rT={like:!1,inferred:!1,id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,entity:ee,asType:!1,parent:nT},iT={id:"iterate-over-string-loop-body-current-iteration-number-declaration-parent-ref-id",type:i.GenericReference,entityId:mr.body.id,entityType:i.ActionDescriptor},Jl={id:mr.body.inputs.iterationNumber.id,type:i.ValueDescriptor,version: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:rT,required:!0,index:0,parentRelationType:P.FixedArguments,parent:iT},aT={id:"iterate-over-string-loop-body-any-dynamic-argument-parent-ref-id",type:i.GenericReference,entityId:mr.body.id,entityType:i.ActionDescriptor},sT={id:"iterate-over-string-loop-body-any-dynamic-argument-id",type:i.ValueDescriptor,version: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:P.DynamicArgument,parent:aT},oT={id:"iterate-over-string-loop-body-any-dynamic-return-parent-ref-id",type:i.GenericReference,entityId:mr.body.id,entityType:i.ActionDescriptor},lT={id:"iterate-over-string-loop-body-any-dynamic-return-id",type:i.ValueDescriptor,version:1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:P.DynamicReturn,parent:oT},Wl={id:mr.body.id,type:i.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[Jl,ql,sT],outputs:[lT],error:null,parent:null},dT=_[i.Loop]["list-loop"],cT={id:"iterate-over-list-loop-list-argument-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"iterate-over-list-loop-list-argument-declaration-id",entityType:i.ValueDescriptor},uT={like:!1,inferred:!1,id:"iterate-over-list-loop-list-argument-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!0,entity:null,asType:!1,parent:cT},pT={id:"iterate-over-list-loop-list-argument-declaration-parent-ref-id",type:i.GenericReference,entityId:k.List,entityType:i.ActionDescriptor},yT={id:dT.inputs.list.id,type:i.ValueDescriptor,version:1,name:"List",description:"The list to iterate over",required:!0,defaultValue:null,dataType:uT,index:0,parent:pT,parentRelationType:P.FixedArguments},hT={id:"iterate-over-list-loop-dynamic-return-declaration-parent-ref-id",type:i.GenericReference,entityId:k.List,entityType:i.ActionDescriptor},fT={id:dT.outputs.results.id,type:i.ValueDescriptor,version:1,name:"Ouput value",description:"An output value of the loop",required:!1,defaultValue:null,dataType:null,index:0,parent:hT,parentRelationType:P.DynamicReturn},Wn={id:k.List,type:i.ActionDescriptor,version:1,name:k.List,description:"Iterates over a list of entities",inputs:[yT],outputs:[fT],error:null,parent:null},Tr=_[i.Loop]["list-loop"],mT={id:"iterate-over-list-loop-body-current-value-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"iterate-over-list-loop-body-current-value-declaration-id",entityType:i.ValueDescriptor},TT={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-value-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,entity:null,asType:!1,parent:mT},ET={id:"iterate-over-list-loop-body-current-value-declaration-parent-ref-id",type:i.GenericReference,entityId:Tr.body.id,entityType:i.ActionDescriptor},gs={id:Tr.body.inputs.currentValue.id,type:i.ValueDescriptor,version: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:TT,required:!0,index:1,parentRelationType:P.FixedArguments,parent:ET},RT={id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"iterate-over-list-loop-body-current-iteration-number-declaration-id",entityType:i.ValueDescriptor},gT={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,entity:ee,asType:!1,parent:RT},bT={id:"iterate-over-list-loop-body-current-iteration-number-declaration-parent-ref-id",type:i.GenericReference,entityId:Tr.body.id,entityType:i.ActionDescriptor},vT={id:Tr.body.inputs.iterationNumber.id,type:i.ValueDescriptor,version: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:gT,required:!0,index:0,parentRelationType:P.FixedArguments,parent:bT},IT={id:"iterate-over-list-loop-body-any-dynamic-argument-parent-ref-id",type:i.GenericReference,entityId:Tr.body.id,entityType:i.ActionDescriptor},DT={id:"iterate-over-list-loop-body-any-dynamic-argument-id",type:i.ValueDescriptor,version: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:P.DynamicArgument,parent:IT},AT={id:"iterate-over-list-loop-body-any-dynamic-return-parent-ref-id",type:i.GenericReference,entityId:Tr.body.id,entityType:i.ActionDescriptor},ST={id:"iterate-over-list-loop-body-any-dynamic-return-id",type:i.ValueDescriptor,version:1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:P.DynamicReturn,parent:AT},bs={id:Tr.body.id,type:i.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the list loop.",inputs:[vT,gs,DT],outputs:[ST],error:null,parent:null},OT=_[i.Loop]["object-keys-loop"],PT={id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"iterate-over-object-keys-loop-object-argument-declaration-id",entityType:i.ValueDescriptor},CT={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,entity:it,asType:!1,parent:PT},wT={id:"iterate-over-object-keys-loop-object-argument-declaration-parent-ref-id",type:i.GenericReference,entityId:k.ObjectKeys,entityType:i.ActionDescriptor},BT={id:OT.inputs.object.id,type:i.ValueDescriptor,version:1,name:"Object",description:"The object to iterate over",required:!0,defaultValue:null,dataType:CT,index:0,parent:wT,parentRelationType:P.FixedArguments},MT={id:"iterate-over-object-keys-loop-dynamic-return-declaration-parent-ref-id",type:i.GenericReference,entityId:k.ObjectKeys,entityType:i.ActionDescriptor},_T={id:OT.outputs.results.id,type:i.ValueDescriptor,version:1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:MT,parentRelationType:P.DynamicReturn},li={id:k.ObjectKeys,type:i.ActionDescriptor,version:1,name:k.ObjectKeys,description:"Iterates over a object of entities",inputs:[BT],outputs:[_T],error:null,parent:null},Er=_[i.Loop]["object-keys-loop"],VT={id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-value-declaration-id",entityType:i.ValueDescriptor},NT={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,entity:J,asType:!1,parent:VT},LT={id:"iterate-over-object-keys-loop-body-current-value-declaration-parent-ref-id",type:i.GenericReference,entityId:Er.body.id,entityType:i.ActionDescriptor},Yl={id:Er.body.inputs.currentValue.id,type:i.ValueDescriptor,version: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:NT,required:!0,index:1,parentRelationType:P.FixedArguments,parent:LT},GT={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-id",entityType:i.ValueDescriptor},$T={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,entity:ee,asType:!1,parent:GT},FT={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-parent-ref-id",type:i.GenericReference,entityId:Er.body.id,entityType:i.ActionDescriptor},UT={id:Er.body.inputs.iterationNumber.id,type:i.ValueDescriptor,version: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:$T,required:!0,index:0,parentRelationType:P.FixedArguments,parent:FT},xT={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-parent-ref-id",type:i.GenericReference,entityId:Er.body.id,entityType:i.ActionDescriptor},jT={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-id",type:i.ValueDescriptor,version: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:P.DynamicArgument,parent:xT},kT={id:"iterate-over-object-keys-loop-body-any-dynamic-return-parent-ref-id",type:i.GenericReference,entityId:Er.body.id,entityType:i.ActionDescriptor},qT={id:"iterate-over-object-keys-loop-body-any-dynamic-return-id",type:i.ValueDescriptor,version:1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:P.DynamicReturn,parent:kT},JT={id:Er.body.id,type:i.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the object-keys loop.",inputs:[UT,Yl,jT],outputs:[qT],error:null,parent:null},WT=_[i.Loop]["object-values-loop"],YT={id:"iterate-over-object-values-loop-object-argument-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"iterate-over-object-values-loop-object-argument-declaration-id",entityType:i.ValueDescriptor},HT={like:!1,inferred:!1,id:"iterate-over-object-values-loop-object-argument-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,entity:it,asType:!1,parent:YT},zT={id:"iterate-over-object-values-loop-object-argument-declaration-parent-ref-id",type:i.GenericReference,entityId:k.ObjectValues,entityType:i.ActionDescriptor},ZT={id:WT.inputs.object.id,type:i.ValueDescriptor,version:1,name:"Object",description:"The object to iterate over",required:!0,defaultValue:null,dataType:HT,index:0,parent:zT,parentRelationType:P.FixedArguments},KT={id:"iterate-over-object-values-loop-dynamic-return-declaration-parent-ref-id",type:i.GenericReference,entityId:k.ObjectValues,entityType:i.ActionDescriptor},XT={id:WT.outputs.results.id,type:i.ValueDescriptor,version:1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:KT,parentRelationType:P.DynamicReturn},di={id:k.ObjectValues,type:i.ActionDescriptor,version:1,name:k.ObjectValues,description:"Iterates over a object of entities",inputs:[ZT],outputs:[XT],error:null,parent:null},Rr=_[i.Loop]["object-values-loop"],QT={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"iterate-over-object-values-loop-body-current-value-declaration-id",entityType:i.ValueDescriptor},eE={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:null,entity:null,asType:null,like:!1,inferred:!1,parent:QT},tE={id:"iterate-over-object-values-loop-body-current-value-declaration-parent-ref-id",type:i.GenericReference,entityId:Rr.body.id,entityType:i.ActionDescriptor},Hl={id:Rr.body.inputs.currentValue.id,type:i.ValueDescriptor,version: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:eE,required:!0,index:1,parentRelationType:P.FixedArguments,parent:tE},nE={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"iterate-over-object-values-loop-body-current-iteration-number-declaration-id",entityType:i.ValueDescriptor},rE={like:!1,inferred:!1,id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,entity:ee,asType:!1,parent:nE},iE={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-parent-ref-id",type:i.GenericReference,entityId:Rr.body.id,entityType:i.ActionDescriptor},aE={id:Rr.body.inputs.iterationNumber.id,type:i.ValueDescriptor,version: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:rE,required:!0,index:0,parentRelationType:P.FixedArguments,parent:iE},sE={id:"iterate-over-object-values-loop-body-any-dynamic-argument-parent-ref-id",type:i.GenericReference,entityId:Rr.body.id,entityType:i.ActionDescriptor},oE={id:"iterate-over-object-values-loop-body-any-dynamic-argument-id",type:i.ValueDescriptor,version: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:P.DynamicArgument,parent:sE},lE={id:"iterate-over-object-values-loop-body-any-dynamic-return-parent-ref-id",type:i.GenericReference,entityId:Rr.body.id,entityType:i.ActionDescriptor},dE={id:"iterate-over-object-values-loop-body-any-dynamic-return-id",type:i.ValueDescriptor,version:1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:P.DynamicReturn,parent:lE},cE={id:Rr.body.id,type:i.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the object-values loop.",inputs:[aE,Hl,oE],outputs:[dE],error:null,parent:null},zl=_[i.Loop]["counted-loop"],uE={id:"counted-loop-string-argument-declaration-data-type-default-value-parent-ref-id",type:i.GenericReference,entityId:zl.inputs.number.id,entityType:i.ValueDescriptor},pE={id:"counted-loop-string-argument-declaration-data-type-default-value-id",type:i.LiteralValue,name:C.Number,version:1,value:5,valueAsType:null,autogeneration:null,parent:uE},yE={id:"counted-loop-string-argument-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"counted-loop-string-argument-declaration-id",entityType:i.ValueDescriptor},hE={like:!1,inferred:!1,id:"counted-loop-string-argument-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,entity:ee,asType:!1,parent:yE},fE={id:"counted-loop-string-argument-declaration-parent-ref-id",type:i.GenericReference,entityId:k.Counted,entityType:i.ActionDescriptor},mE={id:zl.inputs.number.id,type:i.ValueDescriptor,version:1,name:"Number of iterations",description:"The number of iterations to perform",required:!0,dataType:hE,defaultValue:pE,index:0,parent:fE,parentRelationType:P.FixedArguments},TE={id:"counted-loop-dynamic-return-declaration-parent-ref-id",type:i.GenericReference,entityId:k.Counted,entityType:i.ActionDescriptor},EE={id:zl.outputs.results.id,type:i.ValueDescriptor,version:1,name:"Ouput value",description:"An output value of the loop",defaultValue:null,required:!1,dataType:null,index:0,parent:TE,parentRelationType:P.DynamicReturn},ta={id:k.Counted,type:i.ActionDescriptor,version:1,name:k.Counted,description:"Iterates a given number of times",inputs:[mE],outputs:[EE],error:null,parent:null},na=_[i.Loop]["counted-loop"],RE={id:"counted-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:"counted-loop-body-current-iteration-number-declaration-id",entityType:i.ValueDescriptor},gE={like:!1,inferred:!1,id:"counted-loop-body-current-iteration-number-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,entity:ee,asType:!1,parent:RE},bE={id:"counted-loop-body-current-iteration-number-declaration-parent-ref-id",type:i.GenericReference,entityId:na.body.id,entityType:i.ActionDescriptor},Zl={id:na.body.inputs.iterationNumber.id,type:i.ValueDescriptor,version: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:gE,required:!0,index:0,parentRelationType:P.FixedArguments,parent:bE},vE={id:"counted-loop-body-any-dynamic-argument-parent-ref-id",type:i.GenericReference,entityId:na.body.id,entityType:i.ActionDescriptor},IE={id:"counted-loop-body-any-dynamic-argument-id",type:i.ValueDescriptor,version: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:P.DynamicArgument,parent:vE},DE={id:"counted-loop-body-any-dynamic-return-parent-ref-id",type:i.GenericReference,entityId:na.body.id,entityType:i.ActionDescriptor},AE={id:"counted-loop-body-any-dynamic-return-id",type:i.ValueDescriptor,version:1,name:"Any value",description:"Values outputed by the loop's body.",defaultValue:null,dataType:null,required:!1,index:0,parentRelationType:P.DynamicReturn,parent:DE},Kl={id:na.body.id,type:i.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[Zl,IE],outputs:[AE],error:null,parent:null},SE=[Rs,Wn,ea,li,di,ta],Yn=_[i.BuiltInBaseEntity][U.HTTP_ENDPOINT].properties,OE={id:"endpointBuiltInCorsPropertyDataTypeRef",type:i.GenericReference,entityType:i.ValueDescriptor,entityId:Yn.cors.id},PE={id:"endpointBuiltInCorsPropertyRef",type:i.GenericReference,entityType:i.Property,entityId:Yn.cors.id},CE={like:!1,inferred:!1,id:"endpointBuiltInCorsPropertyDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:J,asType:!1,parent:PE},wE={id:"endpointBuiltInBaseEntityRef",type:i.GenericReference,entityType:i.BuiltInBaseEntity,entityId:U.HTTP_ENDPOINT},BE={constant:!1,hidden:!0,required:!0,id:Yn.cors.id,name:"Allowed origins",version:1,type:i.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:CE,defaultValue:{id:"endpointBuiltInCorsPropertyDataTypeDefaultValueId",type:i.LiteralValue,version:1,name:C.KeyValue,value:["*"],parent:OE,autogeneration:null,valueAsType: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:wE},ME={id:"endpointBuiltInPathPropertyDataTypeRef",type:i.GenericReference,entityType:i.ValueDescriptor,entityId:Yn.path.id},_E={id:"endpointBuiltInPathPropertyRef",type:i.GenericReference,entityType:i.Property,entityId:Yn.path.id},VE={like:!1,inferred:!1,id:"endpointBuiltInPathPropertyDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parent:_E},NE={id:"endpointBuiltInBaseEntityRefTwo",type:i.GenericReference,entityType:i.BuiltInBaseEntity,entityId:U.HTTP_ENDPOINT},Xl={constant:!1,id:Yn.path.id,hidden:!1,required:!0,name:"Path",version:1,type:i.Property,private:!1,abstract:!0,implements:null,static:!0,index:1,dataType:VE,defaultValue:{id:"endpointBuiltInPathPropertyDataTypeDefaultValueId",type:i.LiteralValue,version:1,name:C.String,value:"/",parent:ME,autogeneration:null,valueAsType: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:NE},LE={id:"endpointBuiltInMethodPropertyDataTypeRef",type:i.GenericReference,entityType:i.ValueDescriptor,entityId:Yn.method.id},GE={id:"endpointBuiltInMethodPropertyRef",type:i.GenericReference,entityType:i.Property,entityId:"endpointBuiltInMethodProperty"},$E={like:!1,inferred:!1,id:"endpointBuiltInMethodPropertyDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:On,isList:!0,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:GE},FE={id:"endpointBuiltInBaseEntityRefThree",type:i.GenericReference,entityType:i.BuiltInBaseEntity,entityId:U.HTTP_ENDPOINT},Ql={constant:!1,hidden:!1,required:!0,id:Yn.method.id,name:"Method",version:1,type:i.Property,private:!1,index:2,implements:null,defaultValue:{id:"endpointBuiltInMethodPropertyDataTypeDefaultValueId",type:i.LiteralValue,version:1,value:"GET",name:C.Enum,parent:LE,autogeneration:null,valueAsType:null},abstract:!0,static:!0,dataType:$E,description:"The HTTP method that this endpoint will respond to, for example GET, POST, PUT, DELETE, etc.",parent:FE},UE={id:"endpointRequestHeadersVariableDataTypeRef",type:i.GenericReference,entityType:i.ValueDescriptor,entityId:"endpointRequestHeadersArgumentDeclaration"},xE={id:"endpointRequestHeadersArgumentDeclarationRef",type:i.GenericReference,entityType:i.ArgumentDeclaration,entityId:"endpointRequestHeadersArgumentDeclaration"},jE={like:!1,inferred:!1,id:"endpointRequestHeadersVariableDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:it,asType:!1,parent:xE},kE={id:"endpointRequestBodyArgumentDeclarationRef",type:i.GenericReference,entityType:i.ArgumentDeclaration,entityId:"endpointRequestBodyArgumentDeclaration"},qE={like:!1,inferred:!1,id:"endpointRequestBodyVariableDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:it,parent:kE},JE={id:"endpointRequestQueryParamsVariableDataTypeRef",type:i.GenericReference,entityType:i.ValueDescriptor,entityId:"endpointRequestQueryParamsArgumentDeclaration"},WE={id:"endpointRequestQueryParamsArgumentDeclarationRef",type:i.GenericReference,entityType:i.ArgumentDeclaration,entityId:"endpointRequestQueryParamsArgumentDeclaration"},YE={like:!1,inferred:!1,id:"endpointRequestQueryParamsVariableDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:ai,parent:WE},HE={id:"endpointPathParamsVariableDataTypeRef",type:i.GenericReference,entityType:i.ValueDescriptor,entityId:"endpointPathParamsArgumentDeclaration"},zE={id:"endpointPathParamsArgumentDeclarationRef",type:i.GenericReference,entityType:i.ArgumentDeclaration,entityId:"endpointPathParamsArgumentDeclaration"},ZE={like:!1,inferred:!1,id:"endpointPathParamsVariableDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:ai,asType:!1,parent:zE},KE={id:"endpointReachedTriggerActionDescriptorRef",type:i.GenericReference,entityType:i.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},ed={id:"endpointRequestHeadersArgumentDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:i.ValueDescriptor,name:"Request headers",dataType:jE,defaultValue:{id:"endpointRequestHeadersVariableDataTypeDefaultValueId",type:i.LiteralValue,version:1,name:C.KeyValue,value:{},parent:UE,autogeneration:null,valueAsType:null},required:!0,index:0,parentRelationType:P.FixedArguments,parent:KE},XE={id:"endpointReachedTriggerActionDescriptorRefTwo",type:i.GenericReference,entityType:i.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},td={id:"endpointPathParamsArgumentDeclaration",type:i.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,name:"Path parameters",dataType:ZE,defaultValue:{id:"endpointPathParamsVariableDataTypeDefaultValueId",type:i.LiteralValue,version:1,name:C.KeyValue,value:[],parent:HE,autogeneration:null,valueAsType:null},required:!0,index:1,parentRelationType:P.FixedArguments,parent:XE},QE={id:"endpointReachedTriggerActionDescriptorRefThree",type:i.GenericReference,entityType:i.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},nd={id:"endpointRequestQueryParamsArgumentDeclaration",version: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:i.ValueDescriptor,name:"Request query params",dataType:YE,defaultValue:{id:"endpointRequestQueryParamsVariableDataTypeDefaultValueId",type:i.LiteralValue,version:1,name:C.KeyValue,value:[],parent:JE,autogeneration:null,valueAsType:null},required:!0,index:2,parentRelationType:P.FixedArguments,parent:QE},eR={id:"endpointReachedTriggerActionDescriptorRefFour",type:i.GenericReference,entityType:i.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},rd={id:"endpointRequestBodyArgumentDeclaration",version:1,description:"The main data payload of the request.",type:i.ValueDescriptor,name:"Request body",dataType:qE,defaultValue:null,index:3,required:!0,parentRelationType:P.FixedArguments,parent:eR},tR={id:"endpointResponseCodeReturnDeclarationRef",type:i.GenericReference,entityType:i.ReturnDeclaration,entityId:"endpointResponseCodeReturnDeclaration"},nR={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!1,parent:tR},rR={id:"endpointReturnStatementRef",type:i.GenericReference,entityType:i.ActionDescriptor,entityId:"endpointReturnStatement"},id={id:"endpointResponseCodeReturnDeclaration",version: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:i.ValueDescriptor,name:"Response code",dataType:nR,defaultValue:null,required:!0,index:0,parentRelationType:P.FixedReturns,parent:rR},iR={id:"endpointResponseHeadersDataTypeRef",type:i.GenericReference,entityType:i.ValueDescriptor,entityId:"endpointResponseHeadersReturnDeclaration"},aR={id:"endpointResponseHeadersReturnDeclarationRef",type:i.GenericReference,entityType:i.ReturnDeclaration,entityId:"endpointResponseHeadersReturnDeclaration"},sR={like:!1,inferred:!1,id:"endpointResponseHeadersDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:it,asType:!1,parent:aR},oR={id:"endpointReturnStatementRefTwo",type:i.GenericReference,entityType:i.ActionDescriptor,entityId:"endpointReturnStatement"},ad={id:"endpointResponseHeadersReturnDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:i.ValueDescriptor,name:"Response headers",dataType:sR,defaultValue:{id:"endpointResponseHeadersDataTypeDefaultValueId",type:i.LiteralValue,version:1,name:C.KeyValue,value:{},parent:iR,autogeneration:null,valueAsType:null},required:!1,index:1,parentRelationType:P.FixedReturns,parent:oR},lR={id:"endpointResponseBodyReturnDeclarationRef",type:i.GenericReference,entityType:i.ReturnDeclaration,entityId:"endpointResponseBodyReturnDeclaration"},dR={like:!1,inferred:!1,id:"endpointResponseBodyDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:it,parent:lR},cR={id:"endpointReturnStatementRefThree",type:i.GenericReference,entityType:i.ActionDescriptor,entityId:"endpointReturnStatement"},sd={id:"endpointResponseBodyReturnDeclaration",version:1,description:"The main data payload of the response.",type:i.ValueDescriptor,name:"Response body",dataType:dR,defaultValue:null,required:!1,index:2,parentRelationType:P.FixedReturns,parent:cR},uR={id:"endpointBuiltInBaseEntityRefFour",type:i.GenericReference,entityType:i.BuiltInBaseEntity,entityId:U.HTTP_ENDPOINT},od={id:"endpointReachedTriggerActionDescriptor",type:i.ActionDescriptor,version:1,name:"Endpoint reached",description:"Fired when the endpoint is reached.",inputs:[ed,td,nd,rd],outputs:[id,ad,sd],error:null,parent:uR},ra={id:U.HTTP_ENDPOINT,version:1,description:"An HTTP endpoint that can be reached by a client from the internet.",name:U.HTTP_ENDPOINT,type:i.BuiltInBaseEntity,interactive:!1,abstract:!0,static:!0,properties:[BE,Xl,Ql],abstractMethods:[od],extends:[],methods:[]},ct=_[i.BuiltInBaseEntity].BUILT_IN_RELATIONAL_DATABASE_ENTITY,pR={id:"relational-database-built-in-base-entity-identifier-property-data-type-ref-id",type:i.GenericReference,entityId:ct.properties.identifier.id,entityType:i.Property},yR={id:"relational-database-built-in-base-entity-identifier-property-ref-id",type:i.GenericReference,entityId:ct.properties.identifier.id,entityType:i.Property},hR={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-identifier-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parent:yR},ci={id:"relational-database-built-in-base-entity-ref-id",type:i.GenericReference,entityId:U.PERSISTED_ENTITY,entityType:i.BuiltInBaseEntity},vs={constant:!1,id:ct.properties.identifier.id,hidden:!1,required:!0,name:"Identifier name",version:1,type:i.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:i.LiteralValue,version:1,name:C.String,value:null,parent:pR,autogeneration:{type:ze.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},dataType:hR,description:"The name of the main database inside of the server instance where the data will be stored.",parent:ci},JO={id:"relational-database-built-in-base-entity-username-property-data-type-ref-id",type:i.GenericReference,entityId:"relational-database-built-in-base-entity-username-property-data-type-idd",entityType:i.Property},fR={id:"relational-database-built-in-base-entity-username-property-ref-id",type:i.GenericReference,entityId:ct.properties.username.id,entityType:i.Property},mR={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-username-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parent:fR},Is={constant:!1,hidden:!1,required:!0,id:ct.properties.username.id,name:"Username",version:1,type:i.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:i.LiteralValue,version:1,name:C.String,value:"postgres",parent:{id:"relational-database-built-in-base-entity-username-property-data-type-default-value-parent-ref-id",type:i.GenericReference,entityId:ct.properties.username.id,entityType:i.Property},autogeneration:null,valueAsType:null},dataType:mR,description:"The username that will be used to connect to the database.",parent:ci},WO={id:"relational-database-built-in-base-entity-password-property-data-type-ref-id",type:i.GenericReference,entityId:"relational-database-built-in-base-entity-password-property-data-type-id",entityType:i.Property},TR={id:"relational-database-built-in-base-entity-password-property-ref-id",type:i.GenericReference,entityId:ct.properties.password.id,entityType:i.Property},ER={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-password-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parent:TR},Ds={constant:!1,hidden:!1,required:!0,id:ct.properties.password.id,name:"Password",version:1,type:i.Property,private:!1,abstract:!0,static:!0,implements:null,index:2,defaultValue:null,dataType:ER,description:"The password that will be used to connect to the database.",parent:ci},RR={id:"relational-database-built-in-base-entity-min-size-property-data-type-ref-id",type:i.GenericReference,entityId:ct.properties.minSize.id,entityType:i.Property},gR={id:"relational-database-built-in-base-entity-min-size-property-ref-id",type:i.GenericReference,entityId:ct.properties.minSize.id,entityType:i.Property},bR={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-min-size-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ee,asType:!1,parent:gR},As={constant:!1,hidden:!0,required:!0,id:ct.properties.minSize.id,name:"Minimum GB size",version:1,type:i.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:i.LiteralValue,version:1,name:C.Number,value:6,parent:RR,autogeneration:null,valueAsType:null},dataType:bR,description:"The minimum size of the database in GB.",parent:ci},vR={id:"relational-database-built-in-base-entity-default-property-data-type-ref-id",type:i.GenericReference,entityId:ct.properties.default.id,entityType:i.Property},IR={id:"relational-database-built-in-base-entity-default-property-ref-id",type:i.GenericReference,entityId:ct.properties.default.id,entityType:i.Property},DR={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-default-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Sn,asType:!1,parent:IR},ld={constant:!1,hidden:!0,required:!0,id:ct.properties.default.id,name:"Default",version:1,type:i.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:i.LiteralValue,version:1,name:C.Boolean,value:!1,parent:vR,autogeneration:null,valueAsType:null},dataType:DR,description:"If true, this database will be the default database for the server instance and all the new entities.",parent:ci},AR={id:"relational-database-built-in-base-entity-autoscaling-property-ref-id",type:i.GenericReference,entityId:ct.properties.autoscaling.id,entityType:i.Property},SR={id:"relational-database-built-in-base-entity-autoscaling-property-data-type-ref-id",type:i.GenericReference,entityId:ct.properties.autoscaling.id,entityType:i.Property},OR={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-autoscaling-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Sn,asType:!1,parent:AR},PR={id:"relational-database-built-in-base-entity-autoscaling-property-parent-ref-id",type:i.GenericReference,entityId:U.PERSISTED_ENTITY,entityType:i.BuiltInBaseEntity},dd={constant:!1,hidden:!0,required:!0,id:ct.properties.autoscaling.id,name:"Auto-scaling",version:1,type:i.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:i.LiteralValue,version:1,name:C.Boolean,value:!1,parent:SR,autogeneration:null,valueAsType:null},dataType:OR,description:"If true, this database will automatically scale up or down in memory size, based on the usage.",parent:PR},un={id:U.RELATIONAL_DATABASE,version:1,description:"This entity provisions a relational database in the cloud.",name:U.RELATIONAL_DATABASE,type:i.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[vs,Is,Ds,As,ld,dd],abstractMethods:[],methods:[],extends:[]},CR={type:i.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",entityType:i.BuiltInBaseEntity,id:Gt.DeletePersistedEntity},cd={type:i.FunctionDeclaration,id:Gt.DeletePersistedEntity,name:Gt.DeletePersistedEntity,description:"Permanently deletes the current copy of an entity from the database",version:1,parent:CR,inputs:[],calls:[],implements:null,collapsed:!1,returnStatements:[],index:0,private:!1,x:0,y:0},wR=_[i.BuiltInBaseEntity][U.PERSISTED_ENTITY].properties,YO={id:"persisted-built-in-base-entity-database-property-data-type-ref-id",type:i.GenericReference,entityId:"persisted-built-in-base-entity-database-property-data-type-id",entityType:i.DataType},BR={id:"persisted-built-in-base-entity-database-property-ref-id",type:i.GenericReference,entityId:"persisted-built-in-base-entity-database-property-id",entityType:i.Property},MR={like:!1,inferred:!1,id:"persisted-built-in-base-entity-database-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:un,asType:!1,parent:BR},_R={id:"persisted-built-in-base-entity-database-property-parent-ref-id",type:i.GenericReference,entityId:U.PERSISTED_ENTITY,entityType:i.BuiltInBaseEntity},ui={constant:!1,hidden:!0,required:!0,id:wR.database.id,name:"Database",version:1,type:i.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:MR,description:"The database that the entity belongs to.",parent:_R},VR={id:"persisted-built-in-base-entity-primary-key-property-number-data-type-option-parent-ref-id",type:i.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",entityType:i.DataType},NR={like:!1,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-number-data-type-option-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ee,asType:!1,parentRelationType:et.OrDataTypeGroup,parent:VR},LR={id:"persisted-built-in-base-entity-primary-key-property-string-data-type-option-parent-ref-id",type:i.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",entityType:i.DataType},GR={like:!1,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-string-data-type-option-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parentRelationType:et.OrDataTypeGroup,parent:LR},$R={id:"persisted-built-in-base-entity-primary-key-property-uuid-data-type-option-parent-ref-id",type:i.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-data-type-id",entityType:i.DataType},FR={like:!1,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-uuid-data-type-option-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Pn,asType:!1,parentRelationType:et.OrDataTypeGroup,parent:$R},UR={id:"persisted-built-in-base-entity-primary-key-property-ref-id",type:i.GenericReference,entityId:"persisted-built-in-base-entity-primary-key-property-id",entityType:i.Property},xR={like:!1,inferred:!1,id:"persisted-built-in-base-entity-primary-key-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:[FR,GR,NR],isList:!1,entity:null,asType:null,implementationChooseOne:!0,parent:UR},jR={id:"persisted-built-in-base-entity-primary-key-property-parent-ref-id",type:i.GenericReference,entityId:U.PERSISTED_ENTITY,entityType:i.BuiltInBaseEntity},pi={constant:!1,hidden:!1,required:!0,id:wR.primaryKey.id,name:"Primary key",version:1,type:i.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!1,index:0,dataType:xR,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:jR},st={id:U.PERSISTED_ENTITY,version:1,description:"An entity that is permanently stored in the database and can be accessed at any point.",name:U.PERSISTED_ENTITY,type:i.BuiltInBaseEntity,abstract:!0,static:!1,interactive:!0,abstractMethods:[],properties:[ui,pi],methods:[cd],extends:[]},kR={type:i.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",entityType:i.BuiltInBaseEntity,id:Gt.SoftDeletePersistedEntity},HO={type:i.FunctionDeclaration,id:Gt.SoftDeletePersistedEntity,name:Gt.SoftDeletePersistedEntity,description:"Designates the entity as deleted, but does not remove it from the database.",version:1,parent:kR,inputs:[],calls:[],implements:null,collapsed:!1,returnStatements:[],index:0,private:!1,x:0,y:0},qR={id:"cron-job-triggered-function-declaration-blueprint-parent-ref-id",type:i.GenericReference,entityType:i.BuiltInBaseEntity,entityId:U.HTTP_ENDPOINT},ud={id:"cron-job-triggered-function-declaration-blueprint-id",name:"Cron job triggered",version:1,type:i.ActionDescriptor,description:"Executed when the cron job is triggered",inputs:[],error:null,outputs:[],parent:qR},JR=_[i.BuiltInBaseEntity].BUILT_IN_CRON_JOB_ENTITY,zO={id:"cron-job-built-in-base-entity-expression-property-data-type-ref",type:i.GenericReference,entityId:"cron-job-built-in-base-entity-expression-property-data-type",entityType:i.DataType},WR={id:"cron-job-built-in-base-entity-expression-property-ref",type:i.GenericReference,entityId:JR.properties.expression.id,entityType:i.Property},ZO={like:!1,inferred:!1,id:"cron-job-built-in-base-entity-expression-property-data-type",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parent:WR},YR={id:"cron-job-built-in-base-entity-ref",type:i.GenericReference,entityId:U.CRON_JOB,entityType:i.BuiltInBaseEntity},HR={constant:!1,hidden:!1,required:!0,id:JR.properties.expression.id,name:"Cron expression",version:1,type:i.Property,defaultValue:null,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:ZO,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:YR},Ss={id:U.CRON_JOB,version: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:U.CRON_JOB,type:i.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[HR],methods:[],abstractMethods:[ud],extends:[]},zR={type:i.GenericReference,id:"execution-built-in-entity-abort-method-parent-ref-id",entityType:i.BuiltInBaseEntity,entityId:"execution-built-in-entity-id"},pd={id:"execution-built-in-entity-abort-method-id",type:i.FunctionDeclaration,version:1,name:Gt.AbortExecution,description:"Aborts the execution of the entity",inputs:[],returnStatements:[],calls:[],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:zR},Os={id:U.EXECUTION,type:i.BuiltInBaseEntity,version:1,name:U.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:[pd],abstractMethods:[]},ZR=[ra,un,st,Ss,Os],KO=_[i.Condition]["not-empty"],KR={type:i.GenericReference,id:"not-empty-condition-ref",entityType:i.ActionDescriptor,entityId:Jt.NotEmpty},XR={id:KO.inputs.leftHand.id,type:i.ValueDescriptor,version:1,name:"Value",description:"The value to check if it is not empty",defaultValue:null,dataType:null,required:!0,parentRelationType:P.FixedArguments,index:0,parent:KR},gr={type:i.ActionDescriptor,id:Jt.NotEmpty,version:1,name:Jt.NotEmpty,description:"Checks if the value is not empty",parent:null,inputs:[XR],outputs:[],error:null},QR={[Jt.NotEmpty]:gr},yi=_[i.Condition]["more-than-or-equal"],eg={type:i.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-data-type-parent-ref",entityType:i.ValueDescriptor,entityId:yi.inputs.leftHand.id},tg={type:i.DataType,id:yi.inputs.leftHand.dataType.id,version:1,entity:ee,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:eg},ng={type:i.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-parent-ref",entityType:i.ActionDescriptor,entityId:qe.MoreThanOrEqual},rg={id:yi.inputs.leftHand.id,type:i.ValueDescriptor,version:1,name:"First value",description:"The first value to compare",defaultValue:null,dataType:tg,required:!0,parentRelationType:P.FixedArguments,index:0,parent:ng},ig={type:i.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-data-type-parent-ref",entityType:i.ValueDescriptor,entityId:yi.inputs.rightHand.id},ag={type:i.DataType,id:yi.inputs.rightHand.dataType.id,version:1,entity:ee,like:!1,isList:!1,inferred:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,parent:ig},sg={type:i.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-parent-ref",entityType:i.ActionDescriptor,entityId:qe.MoreThanOrEqual},og={id:yi.inputs.rightHand.id,type:i.ValueDescriptor,version:1,name:"Second value",description:"The second value to compare",defaultValue:null,dataType:ag,required:!0,parentRelationType:P.FixedArguments,index:1,parent:sg},hi={type:i.ActionDescriptor,id:qe.MoreThanOrEqual,version:1,name:qe.MoreThanOrEqual,description:"Checks if the value is not empty",parent:null,inputs:[rg,og],outputs:[],error:null},lg={[qe.MoreThanOrEqual]:hi},dg={...QR,...lg},cg=Object.values(dg),Ps={type:i.ActionDescriptor,id:Dn.PROJECT_PUBLICATION_COMPLETED,version:1,name:Dn.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},ug={[Dn.PROJECT_PUBLICATION_COMPLETED]:Ps},pg=Object.values(ug),yd=_[i.ValueDescriptor][os.ActionOngoingProcessOutputValue],yg={type:i.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",entityType:i.ValueDescriptor,entityId:yd.id},hg={like:!1,inferred:!1,id:yd.dataType.id,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Os,asType:!1,isList:!1,parent:yg},Cs={id:yd.id,type:i.ValueDescriptor,description:"A value that represents the ongoing process of the parent action",version:1,name:"Process",defaultValue:null,dataType:hg,required:!0,index:0,parent:null,parentRelationType:P.OngoingProcessExecution},fg=[Cs],mg=[...Sp,...Lm,...SE,...ZR,...cg,...pg,...fg];var le;(function(r){r.assertEqual=a=>a;function e(a){}r.assertIs=e;function t(a){throw new Error}r.assertNever=t,r.arrayToEnum=a=>{const s={};for(const o of a)s[o]=o;return s},r.getValidEnumValues=a=>{const s=r.objectKeys(a).filter(l=>typeof a[a[l]]!="number"),o={};for(const l of s)o[l]=a[l];return r.objectValues(o)},r.objectValues=a=>r.objectKeys(a).map(function(s){return a[s]}),r.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const s=[];for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&s.push(o);return s},r.find=(a,s)=>{for(const o of a)if(s(o))return o},r.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function n(a,s=" | "){return a.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}r.joinValues=n,r.jsonStringifyReplacer=(a,s)=>typeof s=="bigint"?s.toString():s})(le||(le={}));var hd;(function(r){r.mergeShapes=(e,t)=>({...e,...t})})(hd||(hd={}));const x=le.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Hn=r=>{switch(typeof r){case"undefined":return x.undefined;case"string":return x.string;case"number":return isNaN(r)?x.nan:x.number;case"boolean":return x.boolean;case"function":return x.function;case"bigint":return x.bigint;case"symbol":return x.symbol;case"object":return Array.isArray(r)?x.array:r===null?x.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?x.promise:typeof Map<"u"&&r instanceof Map?x.map:typeof Set<"u"&&r instanceof Set?x.set:typeof Date<"u"&&r instanceof Date?x.date:x.object;default:return x.unknown}},N=le.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"]),XO=r=>JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:");class wt extends Error{constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(s){return s.message},n={_errors:[]},a=s=>{for(const o of s.issues)if(o.code==="invalid_union")o.unionErrors.map(a);else if(o.code==="invalid_return_type")a(o.returnTypeError);else if(o.code==="invalid_arguments")a(o.argumentsError);else if(o.path.length===0)n._errors.push(t(o));else{let l=n,p=0;for(;p<o.path.length;){const u=o.path[p];p===o.path.length-1?(l[u]=l[u]||{_errors:[]},l[u]._errors.push(t(o))):l[u]=l[u]||{_errors:[]},l=l[u],p++}}};return a(this),n}static assert(e){if(!(e instanceof wt))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,le.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=t=>t.message){const t={},n=[];for(const a of this.issues)a.path.length>0?(t[a.path[0]]=t[a.path[0]]||[],t[a.path[0]].push(e(a))):n.push(e(a));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}wt.create=r=>new wt(r);const fi=(r,e)=>{let t;switch(r.code){case N.invalid_type:r.received===x.undefined?t="Required":t=`Expected ${r.expected}, received ${r.received}`;break;case N.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(r.expected,le.jsonStringifyReplacer)}`;break;case N.unrecognized_keys:t=`Unrecognized key(s) in object: ${le.joinValues(r.keys,", ")}`;break;case N.invalid_union:t="Invalid input";break;case N.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${le.joinValues(r.options)}`;break;case N.invalid_enum_value:t=`Invalid enum value. Expected ${le.joinValues(r.options)}, received '${r.received}'`;break;case N.invalid_arguments:t="Invalid function arguments";break;case N.invalid_return_type:t="Invalid function return type";break;case N.invalid_date:t="Invalid date";break;case N.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(t=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?t=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?t=`Invalid input: must end with "${r.validation.endsWith}"`:le.assertNever(r.validation):r.validation!=="regex"?t=`Invalid ${r.validation}`:t="Invalid";break;case N.too_small:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:t="Invalid input";break;case N.too_big:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?t=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:t="Invalid input";break;case N.custom:t="Invalid input";break;case N.invalid_intersection_types:t="Intersection results could not be merged";break;case N.not_multiple_of:t=`Number must be a multiple of ${r.multipleOf}`;break;case N.not_finite:t="Number must be finite";break;default:t=e.defaultError,le.assertNever(r)}return{message:t}};let Tg=fi;function QO(r){Tg=r}function ws(){return Tg}const Bs=r=>{const{data:e,path:t,errorMaps:n,issueData:a}=r,s=[...t,...a.path||[]],o={...a,path:s};if(a.message!==void 0)return{...a,path:s,message:a.message};let l="";const p=n.filter(u=>!!u).slice().reverse();for(const u of p)l=u(o,{data:e,defaultError:l}).message;return{...a,path:s,message:l}},eP=[];function F(r,e){const t=ws(),n=Bs({issueData:e,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,t,t===fi?void 0:fi].filter(a=>!!a)});r.common.issues.push(n)}class yt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const a of t){if(a.status==="aborted")return z;a.status==="dirty"&&e.dirty(),n.push(a.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const a of t){const s=await a.key,o=await a.value;n.push({key:s,value:o})}return yt.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const a of t){const{key:s,value:o}=a;if(s.status==="aborted"||o.status==="aborted")return z;s.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof o.value<"u"||a.alwaysSet)&&(n[s.value]=o.value)}return{status:e.value,value:n}}}const z=Object.freeze({status:"aborted"}),mi=r=>({status:"dirty",value:r}),gt=r=>({status:"valid",value:r}),fd=r=>r.status==="aborted",md=r=>r.status==="dirty",ia=r=>r.status==="valid",aa=r=>typeof Promise<"u"&&r instanceof Promise;function Ms(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)}function Eg(r,e,t,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!a:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(r,t):a?a.value=t:e.set(r,t),t}typeof SuppressedError=="function"&&SuppressedError;var W;(function(r){r.errToObj=e=>typeof e=="string"?{message:e}:e||{},r.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(W||(W={}));var sa,oa;class pn{constructor(e,t,n,a){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=a}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 Rg=(r,e)=>{if(ia(e))return{success:!0,data:e.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 t=new wt(r.common.issues);return this._error=t,this._error}}};function ne(r){if(!r)return{};const{errorMap:e,invalid_type_error:t,required_error:n,description:a}=r;if(e&&(t||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(o,l)=>{var p,u;const{message:h}=r;return o.code==="invalid_enum_value"?{message:h??l.defaultError}:typeof l.data>"u"?{message:(p=h??n)!==null&&p!==void 0?p:l.defaultError}:o.code!=="invalid_type"?{message:l.defaultError}:{message:(u=h??t)!==null&&u!==void 0?u:l.defaultError}},description:a}}class ie{constructor(e){this.spa=this.safeParseAsync,this._def=e,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)}get description(){return this._def.description}_getType(e){return Hn(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:Hn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new yt,ctx:{common:e.parent.common,data:e.data,parsedType:Hn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(aa(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const a={common:{issues:[],async:(n=t==null?void 0:t.async)!==null&&n!==void 0?n:!1,contextualErrorMap:t==null?void 0:t.errorMap},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Hn(e)},s=this._parseSync({data:e,path:a.path,parent:a});return Rg(a,s)}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:t==null?void 0:t.errorMap,async:!0},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Hn(e)},a=this._parse({data:e,path:n.path,parent:n}),s=await(aa(a)?a:Promise.resolve(a));return Rg(n,s)}refine(e,t){const n=a=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(a):t;return this._refinement((a,s)=>{const o=e(a),l=()=>s.addIssue({code:N.custom,...n(a)});return typeof Promise<"u"&&o instanceof Promise?o.then(p=>p?!0:(l(),!1)):o?!0:(l(),!1)})}refinement(e,t){return this._refinement((n,a)=>e(n)?!0:(a.addIssue(typeof t=="function"?t(n,a):t),!1))}_refinement(e){return new nn({schema:this,typeName:Y.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return hn.create(this,this._def)}nullable(){return Xn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return tn.create(this,this._def)}promise(){return gi.create(this,this._def)}or(e){return ua.create([this,e],this._def)}and(e){return pa.create(this,e,this._def)}transform(e){return new nn({...ne(this._def),schema:this,typeName:Y.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new Ta({...ne(this._def),innerType:this,defaultValue:t,typeName:Y.ZodDefault})}brand(){return new Rd({typeName:Y.ZodBranded,type:this,...ne(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new Ea({...ne(this._def),innerType:this,catchValue:t,typeName:Y.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return Ra.create(this,e)}readonly(){return ga.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const tP=/^c[^\s-]{8,}$/i,nP=/^[0-9a-z]+$/,rP=/^[0-9A-HJKMNP-TV-Z]{26}$/,iP=/^[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,aP=/^[a-z0-9_-]{21}$/i,sP=/^[-+]?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)?)??$/,oP=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,lP="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Td;const dP=/^(?:(?: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])$/,cP=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,uP=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,gg="((\\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])))",pP=new RegExp(`^${gg}$`);function bg(r){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return r.precision?e=`${e}\\.\\d{${r.precision}}`:r.precision==null&&(e=`${e}(\\.\\d+)?`),e}function yP(r){return new RegExp(`^${bg(r)}$`)}function vg(r){let e=`${gg}T${bg(r)}`;const t=[];return t.push(r.local?"Z?":"Z"),r.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function hP(r,e){return!!((e==="v4"||!e)&&dP.test(r)||(e==="v6"||!e)&&cP.test(r))}class en extends ie{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==x.string){const s=this._getOrReturnCtx(e);return F(s,{code:N.invalid_type,expected:x.string,received:s.parsedType}),z}const n=new yt;let a;for(const s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(a=this._getOrReturnCtx(e,a),F(a,{code:N.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")e.data.length>s.value&&(a=this._getOrReturnCtx(e,a),F(a,{code:N.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){const o=e.data.length>s.value,l=e.data.length<s.value;(o||l)&&(a=this._getOrReturnCtx(e,a),o?F(a,{code:N.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):l&&F(a,{code:N.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind==="email")oP.test(e.data)||(a=this._getOrReturnCtx(e,a),F(a,{validation:"email",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="emoji")Td||(Td=new RegExp(lP,"u")),Td.test(e.data)||(a=this._getOrReturnCtx(e,a),F(a,{validation:"emoji",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")iP.test(e.data)||(a=this._getOrReturnCtx(e,a),F(a,{validation:"uuid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="nanoid")aP.test(e.data)||(a=this._getOrReturnCtx(e,a),F(a,{validation:"nanoid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")tP.test(e.data)||(a=this._getOrReturnCtx(e,a),F(a,{validation:"cuid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")nP.test(e.data)||(a=this._getOrReturnCtx(e,a),F(a,{validation:"cuid2",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")rP.test(e.data)||(a=this._getOrReturnCtx(e,a),F(a,{validation:"ulid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),F(a,{validation:"url",code:N.invalid_string,message:s.message}),n.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),F(a,{validation:"regex",code:N.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(a=this._getOrReturnCtx(e,a),F(a,{code:N.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(a=this._getOrReturnCtx(e,a),F(a,{code:N.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(a=this._getOrReturnCtx(e,a),F(a,{code:N.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?vg(s).test(e.data)||(a=this._getOrReturnCtx(e,a),F(a,{code:N.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="date"?pP.test(e.data)||(a=this._getOrReturnCtx(e,a),F(a,{code:N.invalid_string,validation:"date",message:s.message}),n.dirty()):s.kind==="time"?yP(s).test(e.data)||(a=this._getOrReturnCtx(e,a),F(a,{code:N.invalid_string,validation:"time",message:s.message}),n.dirty()):s.kind==="duration"?sP.test(e.data)||(a=this._getOrReturnCtx(e,a),F(a,{validation:"duration",code:N.invalid_string,message:s.message}),n.dirty()):s.kind==="ip"?hP(e.data,s.version)||(a=this._getOrReturnCtx(e,a),F(a,{validation:"ip",code:N.invalid_string,message:s.message}),n.dirty()):s.kind==="base64"?uP.test(e.data)||(a=this._getOrReturnCtx(e,a),F(a,{validation:"base64",code:N.invalid_string,message:s.message}),n.dirty()):le.assertNever(s);return{status:n.value,value:e.data}}_regex(e,t,n){return this.refinement(a=>e.test(a),{validation:t,code:N.invalid_string,...W.errToObj(n)})}_addCheck(e){return new en({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...W.errToObj(e)})}url(e){return this._addCheck({kind:"url",...W.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...W.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...W.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...W.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...W.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...W.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...W.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...W.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...W.errToObj(e)})}datetime(e){var t,n;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(t=e==null?void 0:e.offset)!==null&&t!==void 0?t:!1,local:(n=e==null?void 0:e.local)!==null&&n!==void 0?n:!1,...W.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...W.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...W.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...W.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t==null?void 0:t.position,...W.errToObj(t==null?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...W.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...W.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...W.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...W.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...W.errToObj(t)})}nonempty(e){return this.min(1,W.errToObj(e))}trim(){return new en({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new en({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new en({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get minLength(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}en.create=r=>{var e;return new en({checks:[],typeName:Y.ZodString,coerce:(e=r==null?void 0:r.coerce)!==null&&e!==void 0?e:!1,...ne(r)})};function fP(r,e){const t=(r.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,a=t>n?t:n,s=parseInt(r.toFixed(a).replace(".","")),o=parseInt(e.toFixed(a).replace(".",""));return s%o/Math.pow(10,a)}class zn extends ie{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==x.number){const s=this._getOrReturnCtx(e);return F(s,{code:N.invalid_type,expected:x.number,received:s.parsedType}),z}let n;const a=new yt;for(const s of this._def.checks)s.kind==="int"?le.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),F(n,{code:N.invalid_type,expected:"integer",received:"float",message:s.message}),a.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),F(n,{code:N.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),F(n,{code:N.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="multipleOf"?fP(e.data,s.value)!==0&&(n=this._getOrReturnCtx(e,n),F(n,{code:N.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),F(n,{code:N.not_finite,message:s.message}),a.dirty()):le.assertNever(s);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,W.toString(t))}gt(e,t){return this.setLimit("min",e,!1,W.toString(t))}lte(e,t){return this.setLimit("max",e,!0,W.toString(t))}lt(e,t){return this.setLimit("max",e,!1,W.toString(t))}setLimit(e,t,n,a){return new zn({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:W.toString(a)}]})}_addCheck(e){return new zn({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:W.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:W.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:W.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:W.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:W.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:W.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:W.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:W.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:W.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&le.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(t===null||n.value>t)&&(t=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}zn.create=r=>new zn({checks:[],typeName:Y.ZodNumber,coerce:(r==null?void 0:r.coerce)||!1,...ne(r)});class Zn extends ie{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==x.bigint){const s=this._getOrReturnCtx(e);return F(s,{code:N.invalid_type,expected:x.bigint,received:s.parsedType}),z}let n;const a=new yt;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),F(n,{code:N.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),F(n,{code:N.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),F(n,{code:N.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):le.assertNever(s);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,W.toString(t))}gt(e,t){return this.setLimit("min",e,!1,W.toString(t))}lte(e,t){return this.setLimit("max",e,!0,W.toString(t))}lt(e,t){return this.setLimit("max",e,!1,W.toString(t))}setLimit(e,t,n,a){return new Zn({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:W.toString(a)}]})}_addCheck(e){return new Zn({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:W.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:W.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:W.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:W.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:W.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}Zn.create=r=>{var e;return new Zn({checks:[],typeName:Y.ZodBigInt,coerce:(e=r==null?void 0:r.coerce)!==null&&e!==void 0?e:!1,...ne(r)})};class la extends ie{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==x.boolean){const n=this._getOrReturnCtx(e);return F(n,{code:N.invalid_type,expected:x.boolean,received:n.parsedType}),z}return gt(e.data)}}la.create=r=>new la({typeName:Y.ZodBoolean,coerce:(r==null?void 0:r.coerce)||!1,...ne(r)});class br extends ie{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==x.date){const s=this._getOrReturnCtx(e);return F(s,{code:N.invalid_type,expected:x.date,received:s.parsedType}),z}if(isNaN(e.data.getTime())){const s=this._getOrReturnCtx(e);return F(s,{code:N.invalid_date}),z}const n=new yt;let a;for(const s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(a=this._getOrReturnCtx(e,a),F(a,{code:N.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(a=this._getOrReturnCtx(e,a),F(a,{code:N.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):le.assertNever(s);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new br({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:W.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:W.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e!=null?new Date(e):null}}br.create=r=>new br({checks:[],coerce:(r==null?void 0:r.coerce)||!1,typeName:Y.ZodDate,...ne(r)});class _s extends ie{_parse(e){if(this._getType(e)!==x.symbol){const n=this._getOrReturnCtx(e);return F(n,{code:N.invalid_type,expected:x.symbol,received:n.parsedType}),z}return gt(e.data)}}_s.create=r=>new _s({typeName:Y.ZodSymbol,...ne(r)});class da extends ie{_parse(e){if(this._getType(e)!==x.undefined){const n=this._getOrReturnCtx(e);return F(n,{code:N.invalid_type,expected:x.undefined,received:n.parsedType}),z}return gt(e.data)}}da.create=r=>new da({typeName:Y.ZodUndefined,...ne(r)});class ca extends ie{_parse(e){if(this._getType(e)!==x.null){const n=this._getOrReturnCtx(e);return F(n,{code:N.invalid_type,expected:x.null,received:n.parsedType}),z}return gt(e.data)}}ca.create=r=>new ca({typeName:Y.ZodNull,...ne(r)});class Ti extends ie{constructor(){super(...arguments),this._any=!0}_parse(e){return gt(e.data)}}Ti.create=r=>new Ti({typeName:Y.ZodAny,...ne(r)});class vr extends ie{constructor(){super(...arguments),this._unknown=!0}_parse(e){return gt(e.data)}}vr.create=r=>new vr({typeName:Y.ZodUnknown,...ne(r)});class Bn extends ie{_parse(e){const t=this._getOrReturnCtx(e);return F(t,{code:N.invalid_type,expected:x.never,received:t.parsedType}),z}}Bn.create=r=>new Bn({typeName:Y.ZodNever,...ne(r)});class Vs extends ie{_parse(e){if(this._getType(e)!==x.undefined){const n=this._getOrReturnCtx(e);return F(n,{code:N.invalid_type,expected:x.void,received:n.parsedType}),z}return gt(e.data)}}Vs.create=r=>new Vs({typeName:Y.ZodVoid,...ne(r)});class tn extends ie{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),a=this._def;if(t.parsedType!==x.array)return F(t,{code:N.invalid_type,expected:x.array,received:t.parsedType}),z;if(a.exactLength!==null){const o=t.data.length>a.exactLength.value,l=t.data.length<a.exactLength.value;(o||l)&&(F(t,{code:o?N.too_big:N.too_small,minimum:l?a.exactLength.value:void 0,maximum:o?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),n.dirty())}if(a.minLength!==null&&t.data.length<a.minLength.value&&(F(t,{code:N.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),n.dirty()),a.maxLength!==null&&t.data.length>a.maxLength.value&&(F(t,{code:N.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((o,l)=>a.type._parseAsync(new pn(t,o,t.path,l)))).then(o=>yt.mergeArray(n,o));const s=[...t.data].map((o,l)=>a.type._parseSync(new pn(t,o,t.path,l)));return yt.mergeArray(n,s)}get element(){return this._def.type}min(e,t){return new tn({...this._def,minLength:{value:e,message:W.toString(t)}})}max(e,t){return new tn({...this._def,maxLength:{value:e,message:W.toString(t)}})}length(e,t){return new tn({...this._def,exactLength:{value:e,message:W.toString(t)}})}nonempty(e){return this.min(1,e)}}tn.create=(r,e)=>new tn({type:r,minLength:null,maxLength:null,exactLength:null,typeName:Y.ZodArray,...ne(e)});function Ei(r){if(r instanceof Ke){const e={};for(const t in r.shape){const n=r.shape[t];e[t]=hn.create(Ei(n))}return new Ke({...r._def,shape:()=>e})}else return r instanceof tn?new tn({...r._def,type:Ei(r.element)}):r instanceof hn?hn.create(Ei(r.unwrap())):r instanceof Xn?Xn.create(Ei(r.unwrap())):r instanceof yn?yn.create(r.items.map(e=>Ei(e))):r}class Ke extends ie{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),t=le.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==x.object){const u=this._getOrReturnCtx(e);return F(u,{code:N.invalid_type,expected:x.object,received:u.parsedType}),z}const{status:n,ctx:a}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),l=[];if(!(this._def.catchall instanceof Bn&&this._def.unknownKeys==="strip"))for(const u in a.data)o.includes(u)||l.push(u);const p=[];for(const u of o){const h=s[u],f=a.data[u];p.push({key:{status:"valid",value:u},value:h._parse(new pn(a,f,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof Bn){const u=this._def.unknownKeys;if(u==="passthrough")for(const h of l)p.push({key:{status:"valid",value:h},value:{status:"valid",value:a.data[h]}});else if(u==="strict")l.length>0&&(F(a,{code:N.unrecognized_keys,keys:l}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const h of l){const f=a.data[h];p.push({key:{status:"valid",value:h},value:u._parse(new pn(a,f,a.path,h)),alwaysSet:h in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const u=[];for(const h of p){const f=await h.key,R=await h.value;u.push({key:f,value:R,alwaysSet:h.alwaysSet})}return u}).then(u=>yt.mergeObjectSync(n,u)):yt.mergeObjectSync(n,p)}get shape(){return this._def.shape()}strict(e){return W.errToObj,new Ke({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,n)=>{var a,s,o,l;const p=(o=(s=(a=this._def).errorMap)===null||s===void 0?void 0:s.call(a,t,n).message)!==null&&o!==void 0?o:n.defaultError;return t.code==="unrecognized_keys"?{message:(l=W.errToObj(e).message)!==null&&l!==void 0?l:p}:{message:p}}}:{}})}strip(){return new Ke({...this._def,unknownKeys:"strip"})}passthrough(){return new Ke({...this._def,unknownKeys:"passthrough"})}extend(e){return new Ke({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Ke({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Y.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Ke({...this._def,catchall:e})}pick(e){const t={};return le.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new Ke({...this._def,shape:()=>t})}omit(e){const t={};return le.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new Ke({...this._def,shape:()=>t})}deepPartial(){return Ei(this)}partial(e){const t={};return le.objectKeys(this.shape).forEach(n=>{const a=this.shape[n];e&&!e[n]?t[n]=a:t[n]=a.optional()}),new Ke({...this._def,shape:()=>t})}required(e){const t={};return le.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof hn;)s=s._def.innerType;t[n]=s}}),new Ke({...this._def,shape:()=>t})}keyof(){return Ig(le.objectKeys(this.shape))}}Ke.create=(r,e)=>new Ke({shape:()=>r,unknownKeys:"strip",catchall:Bn.create(),typeName:Y.ZodObject,...ne(e)}),Ke.strictCreate=(r,e)=>new Ke({shape:()=>r,unknownKeys:"strict",catchall:Bn.create(),typeName:Y.ZodObject,...ne(e)}),Ke.lazycreate=(r,e)=>new Ke({shape:r,unknownKeys:"strip",catchall:Bn.create(),typeName:Y.ZodObject,...ne(e)});class ua extends ie{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;function a(s){for(const l of s)if(l.result.status==="valid")return l.result;for(const l of s)if(l.result.status==="dirty")return t.common.issues.push(...l.ctx.common.issues),l.result;const o=s.map(l=>new wt(l.ctx.common.issues));return F(t,{code:N.invalid_union,unionErrors:o}),z}if(t.common.async)return Promise.all(n.map(async s=>{const o={...t,common:{...t.common,issues:[]},parent:null};return{result:await s._parseAsync({data:t.data,path:t.path,parent:o}),ctx:o}})).then(a);{let s;const o=[];for(const p of n){const u={...t,common:{...t.common,issues:[]},parent:null},h=p._parseSync({data:t.data,path:t.path,parent:u});if(h.status==="valid")return h;h.status==="dirty"&&!s&&(s={result:h,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(s)return t.common.issues.push(...s.ctx.common.issues),s.result;const l=o.map(p=>new wt(p));return F(t,{code:N.invalid_union,unionErrors:l}),z}}get options(){return this._def.options}}ua.create=(r,e)=>new ua({options:r,typeName:Y.ZodUnion,...ne(e)});const Mn=r=>r instanceof ha?Mn(r.schema):r instanceof nn?Mn(r.innerType()):r instanceof fa?[r.value]:r instanceof Kn?r.options:r instanceof ma?le.objectValues(r.enum):r instanceof Ta?Mn(r._def.innerType):r instanceof da?[void 0]:r instanceof ca?[null]:r instanceof hn?[void 0,...Mn(r.unwrap())]:r instanceof Xn?[null,...Mn(r.unwrap())]:r instanceof Rd||r instanceof ga?Mn(r.unwrap()):r instanceof Ea?Mn(r._def.innerType):[];class Ns extends ie{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==x.object)return F(t,{code:N.invalid_type,expected:x.object,received:t.parsedType}),z;const n=this.discriminator,a=t.data[n],s=this.optionsMap.get(a);return s?t.common.async?s._parseAsync({data:t.data,path:t.path,parent:t}):s._parseSync({data:t.data,path:t.path,parent:t}):(F(t,{code:N.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),z)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const a=new Map;for(const s of t){const o=Mn(s.shape[e]);if(!o.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const l of o){if(a.has(l))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(l)}`);a.set(l,s)}}return new Ns({typeName:Y.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:a,...ne(n)})}}function Ed(r,e){const t=Hn(r),n=Hn(e);if(r===e)return{valid:!0,data:r};if(t===x.object&&n===x.object){const a=le.objectKeys(e),s=le.objectKeys(r).filter(l=>a.indexOf(l)!==-1),o={...r,...e};for(const l of s){const p=Ed(r[l],e[l]);if(!p.valid)return{valid:!1};o[l]=p.data}return{valid:!0,data:o}}else if(t===x.array&&n===x.array){if(r.length!==e.length)return{valid:!1};const a=[];for(let s=0;s<r.length;s++){const o=r[s],l=e[s],p=Ed(o,l);if(!p.valid)return{valid:!1};a.push(p.data)}return{valid:!0,data:a}}else return t===x.date&&n===x.date&&+r==+e?{valid:!0,data:r}:{valid:!1}}class pa extends ie{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),a=(s,o)=>{if(fd(s)||fd(o))return z;const l=Ed(s.value,o.value);return l.valid?((md(s)||md(o))&&t.dirty(),{status:t.value,value:l.data}):(F(n,{code:N.invalid_intersection_types}),z)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,o])=>a(s,o)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}pa.create=(r,e,t)=>new pa({left:r,right:e,typeName:Y.ZodIntersection,...ne(t)});class yn extends ie{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==x.array)return F(n,{code:N.invalid_type,expected:x.array,received:n.parsedType}),z;if(n.data.length<this._def.items.length)return F(n,{code:N.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),z;!this._def.rest&&n.data.length>this._def.items.length&&(F(n,{code:N.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const s=[...n.data].map((o,l)=>{const p=this._def.items[l]||this._def.rest;return p?p._parse(new pn(n,o,n.path,l)):null}).filter(o=>!!o);return n.common.async?Promise.all(s).then(o=>yt.mergeArray(t,o)):yt.mergeArray(t,s)}get items(){return this._def.items}rest(e){return new yn({...this._def,rest:e})}}yn.create=(r,e)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new yn({items:r,typeName:Y.ZodTuple,rest:null,...ne(e)})};class ya extends ie{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==x.object)return F(n,{code:N.invalid_type,expected:x.object,received:n.parsedType}),z;const a=[],s=this._def.keyType,o=this._def.valueType;for(const l in n.data)a.push({key:s._parse(new pn(n,l,n.path,l)),value:o._parse(new pn(n,n.data[l],n.path,l)),alwaysSet:l in n.data});return n.common.async?yt.mergeObjectAsync(t,a):yt.mergeObjectSync(t,a)}get element(){return this._def.valueType}static create(e,t,n){return t instanceof ie?new ya({keyType:e,valueType:t,typeName:Y.ZodRecord,...ne(n)}):new ya({keyType:en.create(),valueType:e,typeName:Y.ZodRecord,...ne(t)})}}class Ls extends ie{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==x.map)return F(n,{code:N.invalid_type,expected:x.map,received:n.parsedType}),z;const a=this._def.keyType,s=this._def.valueType,o=[...n.data.entries()].map(([l,p],u)=>({key:a._parse(new pn(n,l,n.path,[u,"key"])),value:s._parse(new pn(n,p,n.path,[u,"value"]))}));if(n.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const p of o){const u=await p.key,h=await p.value;if(u.status==="aborted"||h.status==="aborted")return z;(u.status==="dirty"||h.status==="dirty")&&t.dirty(),l.set(u.value,h.value)}return{status:t.value,value:l}})}else{const l=new Map;for(const p of o){const u=p.key,h=p.value;if(u.status==="aborted"||h.status==="aborted")return z;(u.status==="dirty"||h.status==="dirty")&&t.dirty(),l.set(u.value,h.value)}return{status:t.value,value:l}}}}Ls.create=(r,e,t)=>new Ls({valueType:e,keyType:r,typeName:Y.ZodMap,...ne(t)});class Ir extends ie{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==x.set)return F(n,{code:N.invalid_type,expected:x.set,received:n.parsedType}),z;const a=this._def;a.minSize!==null&&n.data.size<a.minSize.value&&(F(n,{code:N.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),t.dirty()),a.maxSize!==null&&n.data.size>a.maxSize.value&&(F(n,{code:N.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),t.dirty());const s=this._def.valueType;function o(p){const u=new Set;for(const h of p){if(h.status==="aborted")return z;h.status==="dirty"&&t.dirty(),u.add(h.value)}return{status:t.value,value:u}}const l=[...n.data.values()].map((p,u)=>s._parse(new pn(n,p,n.path,u)));return n.common.async?Promise.all(l).then(p=>o(p)):o(l)}min(e,t){return new Ir({...this._def,minSize:{value:e,message:W.toString(t)}})}max(e,t){return new Ir({...this._def,maxSize:{value:e,message:W.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Ir.create=(r,e)=>new Ir({valueType:r,minSize:null,maxSize:null,typeName:Y.ZodSet,...ne(e)});class Ri extends ie{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==x.function)return F(t,{code:N.invalid_type,expected:x.function,received:t.parsedType}),z;function n(l,p){return Bs({data:l,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,ws(),fi].filter(u=>!!u),issueData:{code:N.invalid_arguments,argumentsError:p}})}function a(l,p){return Bs({data:l,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,ws(),fi].filter(u=>!!u),issueData:{code:N.invalid_return_type,returnTypeError:p}})}const s={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof gi){const l=this;return gt(async function(...p){const u=new wt([]),h=await l._def.args.parseAsync(p,s).catch(v=>{throw u.addIssue(n(p,v)),u}),f=await Reflect.apply(o,this,h);return await l._def.returns._def.type.parseAsync(f,s).catch(v=>{throw u.addIssue(a(f,v)),u})})}else{const l=this;return gt(function(...p){const u=l._def.args.safeParse(p,s);if(!u.success)throw new wt([n(p,u.error)]);const h=Reflect.apply(o,this,u.data),f=l._def.returns.safeParse(h,s);if(!f.success)throw new wt([a(h,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Ri({...this._def,args:yn.create(e).rest(vr.create())})}returns(e){return new Ri({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new Ri({args:e||yn.create([]).rest(vr.create()),returns:t||vr.create(),typeName:Y.ZodFunction,...ne(n)})}}class ha extends ie{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ha.create=(r,e)=>new ha({getter:r,typeName:Y.ZodLazy,...ne(e)});class fa extends ie{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return F(t,{received:t.data,code:N.invalid_literal,expected:this._def.value}),z}return{status:"valid",value:e.data}}get value(){return this._def.value}}fa.create=(r,e)=>new fa({value:r,typeName:Y.ZodLiteral,...ne(e)});function Ig(r,e){return new Kn({values:r,typeName:Y.ZodEnum,...ne(e)})}class Kn extends ie{constructor(){super(...arguments),sa.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),n=this._def.values;return F(t,{expected:le.joinValues(n),received:t.parsedType,code:N.invalid_type}),z}if(Ms(this,sa,"f")||Eg(this,sa,new Set(this._def.values),"f"),!Ms(this,sa,"f").has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return F(t,{received:t.data,code:N.invalid_enum_value,options:n}),z}return gt(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Kn.create(e,{...this._def,...t})}exclude(e,t=this._def){return Kn.create(this.options.filter(n=>!e.includes(n)),{...this._def,...t})}}sa=new WeakMap,Kn.create=Ig;class ma extends ie{constructor(){super(...arguments),oa.set(this,void 0)}_parse(e){const t=le.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==x.string&&n.parsedType!==x.number){const a=le.objectValues(t);return F(n,{expected:le.joinValues(a),received:n.parsedType,code:N.invalid_type}),z}if(Ms(this,oa,"f")||Eg(this,oa,new Set(le.getValidEnumValues(this._def.values)),"f"),!Ms(this,oa,"f").has(e.data)){const a=le.objectValues(t);return F(n,{received:n.data,code:N.invalid_enum_value,options:a}),z}return gt(e.data)}get enum(){return this._def.values}}oa=new WeakMap,ma.create=(r,e)=>new ma({values:r,typeName:Y.ZodNativeEnum,...ne(e)});class gi extends ie{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==x.promise&&t.common.async===!1)return F(t,{code:N.invalid_type,expected:x.promise,received:t.parsedType}),z;const n=t.parsedType===x.promise?t.data:Promise.resolve(t.data);return gt(n.then(a=>this._def.type.parseAsync(a,{path:t.path,errorMap:t.common.contextualErrorMap})))}}gi.create=(r,e)=>new gi({type:r,typeName:Y.ZodPromise,...ne(e)});class nn extends ie{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Y.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),a=this._def.effect||null,s={addIssue:o=>{F(n,o),o.fatal?t.abort():t.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),a.type==="preprocess"){const o=a.transform(n.data,s);if(n.common.async)return Promise.resolve(o).then(async l=>{if(t.value==="aborted")return z;const p=await this._def.schema._parseAsync({data:l,path:n.path,parent:n});return p.status==="aborted"?z:p.status==="dirty"||t.value==="dirty"?mi(p.value):p});{if(t.value==="aborted")return z;const l=this._def.schema._parseSync({data:o,path:n.path,parent:n});return l.status==="aborted"?z:l.status==="dirty"||t.value==="dirty"?mi(l.value):l}}if(a.type==="refinement"){const o=l=>{const p=a.refinement(l,s);if(n.common.async)return Promise.resolve(p);if(p instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(n.common.async===!1){const l=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return l.status==="aborted"?z:(l.status==="dirty"&&t.dirty(),o(l.value),{status:t.value,value:l.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(l=>l.status==="aborted"?z:(l.status==="dirty"&&t.dirty(),o(l.value).then(()=>({status:t.value,value:l.value}))))}if(a.type==="transform")if(n.common.async===!1){const o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!ia(o))return o;const l=a.transform(o.value,s);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:l}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>ia(o)?Promise.resolve(a.transform(o.value,s)).then(l=>({status:t.value,value:l})):o);le.assertNever(a)}}nn.create=(r,e,t)=>new nn({schema:r,typeName:Y.ZodEffects,effect:e,...ne(t)}),nn.createWithPreprocess=(r,e,t)=>new nn({schema:e,effect:{type:"preprocess",transform:r},typeName:Y.ZodEffects,...ne(t)});class hn extends ie{_parse(e){return this._getType(e)===x.undefined?gt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}hn.create=(r,e)=>new hn({innerType:r,typeName:Y.ZodOptional,...ne(e)});class Xn extends ie{_parse(e){return this._getType(e)===x.null?gt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Xn.create=(r,e)=>new Xn({innerType:r,typeName:Y.ZodNullable,...ne(e)});class Ta extends ie{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===x.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Ta.create=(r,e)=>new Ta({innerType:r,typeName:Y.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ne(e)});class Ea extends ie{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return aa(a)?a.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new wt(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new wt(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Ea.create=(r,e)=>new Ea({innerType:r,typeName:Y.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ne(e)});class Gs extends ie{_parse(e){if(this._getType(e)!==x.nan){const n=this._getOrReturnCtx(e);return F(n,{code:N.invalid_type,expected:x.nan,received:n.parsedType}),z}return{status:"valid",value:e.data}}}Gs.create=r=>new Gs({typeName:Y.ZodNaN,...ne(r)});const mP=Symbol("zod_brand");class Rd extends ie{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class Ra extends ie{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?z:s.status==="dirty"?(t.dirty(),mi(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{const a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?z:a.status==="dirty"?(t.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(e,t){return new Ra({in:e,out:t,typeName:Y.ZodPipeline})}}class ga extends ie{_parse(e){const t=this._def.innerType._parse(e),n=a=>(ia(a)&&(a.value=Object.freeze(a.value)),a);return aa(t)?t.then(a=>n(a)):n(t)}unwrap(){return this._def.innerType}}ga.create=(r,e)=>new ga({innerType:r,typeName:Y.ZodReadonly,...ne(e)});function Dg(r,e={},t){return r?Ti.create().superRefine((n,a)=>{var s,o;if(!r(n)){const l=typeof e=="function"?e(n):typeof e=="string"?{message:e}:e,p=(o=(s=l.fatal)!==null&&s!==void 0?s:t)!==null&&o!==void 0?o:!0,u=typeof l=="string"?{message:l}:l;a.addIssue({code:"custom",...u,fatal:p})}}):Ti.create()}const TP={object:Ke.lazycreate};var Y;(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"})(Y||(Y={}));const EP=(r,e={message:`Input not instance of ${r.name}`})=>Dg(t=>t instanceof r,e),$s=en.create,gd=zn.create,RP=Gs.create,gP=Zn.create,bd=la.create,Ag=br.create,bP=_s.create,vP=da.create,Sg=ca.create,IP=Ti.create,Fs=vr.create,DP=Bn.create,AP=Vs.create,SP=tn.create,Og=Ke.create,OP=Ke.strictCreate,PP=ua.create,CP=Ns.create,wP=pa.create,BP=yn.create,Pg=ya.create,MP=Ls.create,_P=Ir.create,VP=Ri.create,NP=ha.create,LP=fa.create,Cg=Kn.create,GP=ma.create,$P=gi.create,wg=nn.create,FP=hn.create,UP=Xn.create,xP=nn.createWithPreprocess,jP=Ra.create;var y=Object.freeze({__proto__:null,defaultErrorMap:fi,setErrorMap:QO,getErrorMap:ws,makeIssue:Bs,EMPTY_PATH:eP,addIssueToContext:F,ParseStatus:yt,INVALID:z,DIRTY:mi,OK:gt,isAborted:fd,isDirty:md,isValid:ia,isAsync:aa,get util(){return le},get objectUtil(){return hd},ZodParsedType:x,getParsedType:Hn,ZodType:ie,datetimeRegex:vg,ZodString:en,ZodNumber:zn,ZodBigInt:Zn,ZodBoolean:la,ZodDate:br,ZodSymbol:_s,ZodUndefined:da,ZodNull:ca,ZodAny:Ti,ZodUnknown:vr,ZodNever:Bn,ZodVoid:Vs,ZodArray:tn,ZodObject:Ke,ZodUnion:ua,ZodDiscriminatedUnion:Ns,ZodIntersection:pa,ZodTuple:yn,ZodRecord:ya,ZodMap:Ls,ZodSet:Ir,ZodFunction:Ri,ZodLazy:ha,ZodLiteral:fa,ZodEnum:Kn,ZodNativeEnum:ma,ZodPromise:gi,ZodEffects:nn,ZodTransformer:nn,ZodOptional:hn,ZodNullable:Xn,ZodDefault:Ta,ZodCatch:Ea,ZodNaN:Gs,BRAND:mP,ZodBranded:Rd,ZodPipeline:Ra,ZodReadonly:ga,custom:Dg,Schema:ie,ZodSchema:ie,late:TP,get ZodFirstPartyTypeKind(){return Y},coerce:{string:r=>en.create({...r,coerce:!0}),number:r=>zn.create({...r,coerce:!0}),boolean:r=>la.create({...r,coerce:!0}),bigint:r=>Zn.create({...r,coerce:!0}),date:r=>br.create({...r,coerce:!0})},any:IP,array:SP,bigint:gP,boolean:bd,date:Ag,discriminatedUnion:CP,effect:wg,enum:Cg,function:VP,instanceof:EP,intersection:wP,lazy:NP,literal:LP,map:MP,nan:RP,nativeEnum:GP,never:DP,null:Sg,nullable:UP,number:gd,object:Og,oboolean:()=>bd().optional(),onumber:()=>gd().optional(),optional:FP,ostring:()=>$s().optional(),pipeline:jP,preprocess:xP,promise:$P,record:Pg,set:_P,strictObject:OP,string:$s,symbol:bP,transformer:wg,tuple:BP,undefined:vP,union:PP,unknown:Fs,void:AP,NEVER:z,ZodIssueCode:N,quotelessJson:XO,ZodError:wt});function Bg(r){var a,s,o;if(!(r!=null&&r.dataType))return Fs();const e=!r.required,t=r.dataType.isList||!1;let n=Fs();if(((a=r.dataType.entity)==null?void 0:a.type)===i.PrimitiveEntity)switch(r.dataType.entity.name){case C.String:n=$s();break;case C.KeyValue:n=Pg(Fs());break;case C.Number:n=gd();break;case C.Boolean:n=bd();break;case C.Date:n=Ag();break;case C.Enum:{const l=r.dataType.options||[];if(l.length===0)throw new Error(`Enum property ${r.name} has no options`);n=Cg(l);break}case C.Null:n=Sg();break;case C.UUID:n=$s().uuid();break}else if(((s=r.dataType.entity)==null?void 0:s.type)===i.DefinitionEntity)n=Mg(r.dataType.entity);else throw new Error(`Unsupported data type validation: ${(o=r.dataType.entity)==null?void 0:o.type}`);return e&&(n=n.nullable()),t&&(n=n.array()),n}function Mg(r){const e=Og({});for(const t of r.properties){const n=Bg(t);e.shape[t.name]=n}return e}function _g(r){const e=r.rangeStart;return new Date(e.getTime()+Math.random()*(Date.now()-e.getTime()))}function Vg(r){const e=r.rangeEnd;return new Date(Math.random()*e.getTime())}function Ng(r){const e=r.rangeStart,t=r.rangeEnd;return new Date(e.getTime()+Math.random()*(t.getTime()-e.getTime()))}function Lg(r){return r.rangeStart&&r.rangeEnd?Ng(r):r.rangeStart?_g(r):r.rangeEnd?Vg(r):new Date}function kP(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Gg={},Us={},xs={};Object.defineProperty(xs,"__esModule",{value:!0}),xs.default=JP;let js;const qP=new Uint8Array(16);function JP(){if(!js&&(js=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!js))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return js(qP)}var Qn={},Dr={},ks={};Object.defineProperty(ks,"__esModule",{value:!0}),ks.default=void 0;var WP=/^(?:[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;ks.default=WP,Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.default=void 0;var YP=HP(ks);function HP(r){return r&&r.__esModule?r:{default:r}}function zP(r){return typeof r=="string"&&YP.default.test(r)}var ZP=zP;Dr.default=ZP,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.default=void 0,Qn.unsafeStringify=$g;var KP=XP(Dr);function XP(r){return r&&r.__esModule?r:{default:r}}const ut=[];for(let r=0;r<256;++r)ut.push((r+256).toString(16).slice(1));function $g(r,e=0){return ut[r[e+0]]+ut[r[e+1]]+ut[r[e+2]]+ut[r[e+3]]+"-"+ut[r[e+4]]+ut[r[e+5]]+"-"+ut[r[e+6]]+ut[r[e+7]]+"-"+ut[r[e+8]]+ut[r[e+9]]+"-"+ut[r[e+10]]+ut[r[e+11]]+ut[r[e+12]]+ut[r[e+13]]+ut[r[e+14]]+ut[r[e+15]]}function QP(r,e=0){const t=$g(r,e);if(!(0,KP.default)(t))throw TypeError("Stringified UUID is invalid");return t}var eC=QP;Qn.default=eC,Object.defineProperty(Us,"__esModule",{value:!0}),Us.default=void 0;var tC=rC(xs),nC=Qn;function rC(r){return r&&r.__esModule?r:{default:r}}let Fg,vd,Id=0,Dd=0;function iC(r,e,t){let n=e&&t||0;const a=e||new Array(16);r=r||{};let s=r.node||Fg,o=r.clockseq!==void 0?r.clockseq:vd;if(s==null||o==null){const R=r.random||(r.rng||tC.default)();s==null&&(s=Fg=[R[0]|1,R[1],R[2],R[3],R[4],R[5]]),o==null&&(o=vd=(R[6]<<8|R[7])&16383)}let l=r.msecs!==void 0?r.msecs:Date.now(),p=r.nsecs!==void 0?r.nsecs:Dd+1;const u=l-Id+(p-Dd)/1e4;if(u<0&&r.clockseq===void 0&&(o=o+1&16383),(u<0||l>Id)&&r.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Id=l,Dd=p,vd=o,l+=122192928e5;const h=((l&268435455)*1e4+p)%4294967296;a[n++]=h>>>24&255,a[n++]=h>>>16&255,a[n++]=h>>>8&255,a[n++]=h&255;const f=l/4294967296*1e4&268435455;a[n++]=f>>>8&255,a[n++]=f&255,a[n++]=f>>>24&15|16,a[n++]=f>>>16&255,a[n++]=o>>>8|128,a[n++]=o&255;for(let R=0;R<6;++R)a[n+R]=s[R];return e||(0,nC.unsafeStringify)(a)}var aC=iC;Us.default=aC;var qs={},er={},ba={};Object.defineProperty(ba,"__esModule",{value:!0}),ba.default=void 0;var sC=oC(Dr);function oC(r){return r&&r.__esModule?r:{default:r}}function lC(r){if(!(0,sC.default)(r))throw TypeError("Invalid UUID");let e;const t=new Uint8Array(16);return t[0]=(e=parseInt(r.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t[4]=(e=parseInt(r.slice(9,13),16))>>>8,t[5]=e&255,t[6]=(e=parseInt(r.slice(14,18),16))>>>8,t[7]=e&255,t[8]=(e=parseInt(r.slice(19,23),16))>>>8,t[9]=e&255,t[10]=(e=parseInt(r.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=e&255,t}var dC=lC;ba.default=dC,Object.defineProperty(er,"__esModule",{value:!0}),er.URL=er.DNS=void 0,er.default=hC;var cC=Qn,uC=pC(ba);function pC(r){return r&&r.__esModule?r:{default:r}}function yC(r){r=unescape(encodeURIComponent(r));const e=[];for(let t=0;t<r.length;++t)e.push(r.charCodeAt(t));return e}const Ug="6ba7b810-9dad-11d1-80b4-00c04fd430c8";er.DNS=Ug;const xg="6ba7b811-9dad-11d1-80b4-00c04fd430c8";er.URL=xg;function hC(r,e,t){function n(a,s,o,l){var p;if(typeof a=="string"&&(a=yC(a)),typeof s=="string"&&(s=(0,uC.default)(s)),((p=s)===null||p===void 0?void 0:p.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let u=new Uint8Array(16+a.length);if(u.set(s),u.set(a,s.length),u=t(u),u[6]=u[6]&15|e,u[8]=u[8]&63|128,o){l=l||0;for(let h=0;h<16;++h)o[l+h]=u[h];return o}return(0,cC.unsafeStringify)(u)}try{n.name=r}catch{}return n.DNS=Ug,n.URL=xg,n}var Js={};Object.defineProperty(Js,"__esModule",{value:!0}),Js.default=void 0;function fC(r){if(typeof r=="string"){const e=unescape(encodeURIComponent(r));r=new Uint8Array(e.length);for(let t=0;t<e.length;++t)r[t]=e.charCodeAt(t)}return mC(TC(EC(r),r.length*8))}function mC(r){const e=[],t=r.length*32,n="0123456789abcdef";for(let a=0;a<t;a+=8){const s=r[a>>5]>>>a%32&255,o=parseInt(n.charAt(s>>>4&15)+n.charAt(s&15),16);e.push(o)}return e}function jg(r){return(r+64>>>9<<4)+14+1}function TC(r,e){r[e>>5]|=128<<e%32,r[jg(e)-1]=e;let t=1732584193,n=-271733879,a=-1732584194,s=271733878;for(let o=0;o<r.length;o+=16){const l=t,p=n,u=a,h=s;t=ht(t,n,a,s,r[o],7,-680876936),s=ht(s,t,n,a,r[o+1],12,-389564586),a=ht(a,s,t,n,r[o+2],17,606105819),n=ht(n,a,s,t,r[o+3],22,-1044525330),t=ht(t,n,a,s,r[o+4],7,-176418897),s=ht(s,t,n,a,r[o+5],12,1200080426),a=ht(a,s,t,n,r[o+6],17,-1473231341),n=ht(n,a,s,t,r[o+7],22,-45705983),t=ht(t,n,a,s,r[o+8],7,1770035416),s=ht(s,t,n,a,r[o+9],12,-1958414417),a=ht(a,s,t,n,r[o+10],17,-42063),n=ht(n,a,s,t,r[o+11],22,-1990404162),t=ht(t,n,a,s,r[o+12],7,1804603682),s=ht(s,t,n,a,r[o+13],12,-40341101),a=ht(a,s,t,n,r[o+14],17,-1502002290),n=ht(n,a,s,t,r[o+15],22,1236535329),t=ft(t,n,a,s,r[o+1],5,-165796510),s=ft(s,t,n,a,r[o+6],9,-1069501632),a=ft(a,s,t,n,r[o+11],14,643717713),n=ft(n,a,s,t,r[o],20,-373897302),t=ft(t,n,a,s,r[o+5],5,-701558691),s=ft(s,t,n,a,r[o+10],9,38016083),a=ft(a,s,t,n,r[o+15],14,-660478335),n=ft(n,a,s,t,r[o+4],20,-405537848),t=ft(t,n,a,s,r[o+9],5,568446438),s=ft(s,t,n,a,r[o+14],9,-1019803690),a=ft(a,s,t,n,r[o+3],14,-187363961),n=ft(n,a,s,t,r[o+8],20,1163531501),t=ft(t,n,a,s,r[o+13],5,-1444681467),s=ft(s,t,n,a,r[o+2],9,-51403784),a=ft(a,s,t,n,r[o+7],14,1735328473),n=ft(n,a,s,t,r[o+12],20,-1926607734),t=mt(t,n,a,s,r[o+5],4,-378558),s=mt(s,t,n,a,r[o+8],11,-2022574463),a=mt(a,s,t,n,r[o+11],16,1839030562),n=mt(n,a,s,t,r[o+14],23,-35309556),t=mt(t,n,a,s,r[o+1],4,-1530992060),s=mt(s,t,n,a,r[o+4],11,1272893353),a=mt(a,s,t,n,r[o+7],16,-155497632),n=mt(n,a,s,t,r[o+10],23,-1094730640),t=mt(t,n,a,s,r[o+13],4,681279174),s=mt(s,t,n,a,r[o],11,-358537222),a=mt(a,s,t,n,r[o+3],16,-722521979),n=mt(n,a,s,t,r[o+6],23,76029189),t=mt(t,n,a,s,r[o+9],4,-640364487),s=mt(s,t,n,a,r[o+12],11,-421815835),a=mt(a,s,t,n,r[o+15],16,530742520),n=mt(n,a,s,t,r[o+2],23,-995338651),t=Tt(t,n,a,s,r[o],6,-198630844),s=Tt(s,t,n,a,r[o+7],10,1126891415),a=Tt(a,s,t,n,r[o+14],15,-1416354905),n=Tt(n,a,s,t,r[o+5],21,-57434055),t=Tt(t,n,a,s,r[o+12],6,1700485571),s=Tt(s,t,n,a,r[o+3],10,-1894986606),a=Tt(a,s,t,n,r[o+10],15,-1051523),n=Tt(n,a,s,t,r[o+1],21,-2054922799),t=Tt(t,n,a,s,r[o+8],6,1873313359),s=Tt(s,t,n,a,r[o+15],10,-30611744),a=Tt(a,s,t,n,r[o+6],15,-1560198380),n=Tt(n,a,s,t,r[o+13],21,1309151649),t=Tt(t,n,a,s,r[o+4],6,-145523070),s=Tt(s,t,n,a,r[o+11],10,-1120210379),a=Tt(a,s,t,n,r[o+2],15,718787259),n=Tt(n,a,s,t,r[o+9],21,-343485551),t=tr(t,l),n=tr(n,p),a=tr(a,u),s=tr(s,h)}return[t,n,a,s]}function EC(r){if(r.length===0)return[];const e=r.length*8,t=new Uint32Array(jg(e));for(let n=0;n<e;n+=8)t[n>>5]|=(r[n/8]&255)<<n%32;return t}function tr(r,e){const t=(r&65535)+(e&65535);return(r>>16)+(e>>16)+(t>>16)<<16|t&65535}function RC(r,e){return r<<e|r>>>32-e}function Ws(r,e,t,n,a,s){return tr(RC(tr(tr(e,r),tr(n,s)),a),t)}function ht(r,e,t,n,a,s,o){return Ws(e&t|~e&n,r,e,a,s,o)}function ft(r,e,t,n,a,s,o){return Ws(e&n|t&~n,r,e,a,s,o)}function mt(r,e,t,n,a,s,o){return Ws(e^t^n,r,e,a,s,o)}function Tt(r,e,t,n,a,s,o){return Ws(t^(e|~n),r,e,a,s,o)}var gC=fC;Js.default=gC,Object.defineProperty(qs,"__esModule",{value:!0}),qs.default=void 0;var bC=kg(er),vC=kg(Js);function kg(r){return r&&r.__esModule?r:{default:r}}var IC=(0,bC.default)("v3",48,vC.default);qs.default=IC;var Ys={},Hs={};Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.default=void 0;var DC={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};Hs.default=DC,Object.defineProperty(Ys,"__esModule",{value:!0}),Ys.default=void 0;var qg=Jg(Hs),AC=Jg(xs),SC=Qn;function Jg(r){return r&&r.__esModule?r:{default:r}}function OC(r,e,t){if(qg.default.randomUUID&&!e&&!r)return qg.default.randomUUID();r=r||{};const n=r.random||(r.rng||AC.default)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){t=t||0;for(let a=0;a<16;++a)e[t+a]=n[a];return e}return(0,SC.unsafeStringify)(n)}var PC=OC;Ys.default=PC;var zs={},Zs={};Object.defineProperty(Zs,"__esModule",{value:!0}),Zs.default=void 0;function CC(r,e,t,n){switch(r){case 0:return e&t^~e&n;case 1:return e^t^n;case 2:return e&t^e&n^t&n;case 3:return e^t^n}}function Ad(r,e){return r<<e|r>>>32-e}function wC(r){const e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){const o=unescape(encodeURIComponent(r));r=[];for(let l=0;l<o.length;++l)r.push(o.charCodeAt(l))}else Array.isArray(r)||(r=Array.prototype.slice.call(r));r.push(128);const n=r.length/4+2,a=Math.ceil(n/16),s=new Array(a);for(let o=0;o<a;++o){const l=new Uint32Array(16);for(let p=0;p<16;++p)l[p]=r[o*64+p*4]<<24|r[o*64+p*4+1]<<16|r[o*64+p*4+2]<<8|r[o*64+p*4+3];s[o]=l}s[a-1][14]=(r.length-1)*8/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=(r.length-1)*8&4294967295;for(let o=0;o<a;++o){const l=new Uint32Array(80);for(let v=0;v<16;++v)l[v]=s[o][v];for(let v=16;v<80;++v)l[v]=Ad(l[v-3]^l[v-8]^l[v-14]^l[v-16],1);let p=t[0],u=t[1],h=t[2],f=t[3],R=t[4];for(let v=0;v<80;++v){const I=Math.floor(v/20),D=Ad(p,5)+CC(I,u,h,f)+R+e[I]+l[v]>>>0;R=f,f=h,h=Ad(u,30)>>>0,u=p,p=D}t[0]=t[0]+p>>>0,t[1]=t[1]+u>>>0,t[2]=t[2]+h>>>0,t[3]=t[3]+f>>>0,t[4]=t[4]+R>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,t[0]&255,t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,t[1]&255,t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,t[2]&255,t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,t[3]&255,t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,t[4]&255]}var BC=wC;Zs.default=BC,Object.defineProperty(zs,"__esModule",{value:!0}),zs.default=void 0;var MC=Wg(er),_C=Wg(Zs);function Wg(r){return r&&r.__esModule?r:{default:r}}var VC=(0,MC.default)("v5",80,_C.default);zs.default=VC;var Ks={};Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.default=void 0;var NC="00000000-0000-0000-0000-000000000000";Ks.default=NC;var Xs={};Object.defineProperty(Xs,"__esModule",{value:!0}),Xs.default=void 0;var LC=GC(Dr);function GC(r){return r&&r.__esModule?r:{default:r}}function $C(r){if(!(0,LC.default)(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}var FC=$C;Xs.default=FC,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 p.default}}),Object.defineProperty(r,"v1",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(r,"v3",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(r,"v4",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(r,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(r,"validate",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(r,"version",{enumerable:!0,get:function(){return o.default}});var e=h(Us),t=h(qs),n=h(Ys),a=h(zs),s=h(Ks),o=h(Xs),l=h(Dr),p=h(Qn),u=h(ba);function h(f){return f&&f.__esModule?f:{default:f}}}(Gg);function Sd(r,e){if(!r||!e||!r.length||!e.length)throw new Error("Bad alphabet");this.srcAlphabet=r,this.dstAlphabet=e}Sd.prototype.convert=function(r){var e,t,n,a={},s=this.srcAlphabet.length,o=this.dstAlphabet.length,l=r.length,p=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(e=0;e<l;e++)a[e]=this.srcAlphabet.indexOf(r[e]);do{for(t=0,n=0,e=0;e<l;e++)t=t*s+a[e],t>=o?(a[n++]=parseInt(t/o,10),t=t%o):n>0&&(a[n++]=0);l=n,p=this.dstAlphabet.slice(t,t+1).concat(p)}while(n!==0);return p},Sd.prototype.isValid=function(r){for(var e=0;e<r.length;++e)if(this.srcAlphabet.indexOf(r[e])===-1)return!1;return!0};var UC=Sd,xC=UC;function va(r,e){var t=new xC(r,e);return function(n){return t.convert(n)}}va.BIN="01",va.OCT="01234567",va.DEC="0123456789",va.HEX="0123456789abcdef";var jC=va;const{v4:Od,validate:kC}=Gg,Qs=jC,Pd={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},qC={consistentLength:!0};let Cd;const Yg=(r,e,t)=>{const n=e(r.toLowerCase().replace(/-/g,""));return!t||!t.consistentLength?n:n.padStart(t.shortIdLength,t.paddingChar)},Hg=(r,e)=>{const n=e(r).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[n[1],n[2],n[3],n[4],n[5]].join("-")},JC=r=>Math.ceil(Math.log(2**128)/Math.log(r));var WC=(()=>{const r=(e,t)=>{const n=e||Pd.flickrBase58,a={...qC,...t};if([...new Set(Array.from(n))].length!==n.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const s=JC(n.length),o={shortIdLength:s,consistentLength:a.consistentLength,paddingChar:n[0]},l=Qs(Qs.HEX,n),p=Qs(n,Qs.HEX),u=()=>Yg(Od(),l,o),f={alphabet:n,fromUUID:R=>Yg(R,l,o),maxLength:s,generate:u,new:u,toUUID:R=>Hg(R,p),uuid:Od,validate:(R,v=!1)=>{if(!R||typeof R!="string")return!1;const I=a.consistentLength?R.length===s:R.length<=s,D=R.split("").every(S=>n.includes(S));return v===!1?I&&D:I&&D&&kC(Hg(R,p))}};return Object.freeze(f),f};return r.constants=Pd,r.uuid=Od,r.generate=()=>(Cd||(Cd=r(Pd.flickrBase58).generate),Cd()),r})();const eo=kP(WC);function zg(){return eo().uuid()}function Zg(r){return r.rangeStart+Math.random()}function Kg(r){const e=r.rangeEnd;return Math.random()*e}function Xg(r){const e=r.rangeStart,t=r.rangeEnd;return Math.random()*(t-e)+e}function Qg(r){return r.rangeStart&&r.rangeEnd?Xg(r):r.rangeStart?Zg(r):r.rangeEnd?Kg(r):Math.random()}function eb(r){const e=r.rangeStart;return Math.random().toString(36).substring(e)}function tb(r){const e=r.rangeEnd;return Math.random().toString(36).substring(0,e)}function nb(r){const e=r.rangeStart,t=r.rangeEnd;return Math.random().toString(36).substring(e,t)}function rb(r){return r.rangeStart&&r.rangeEnd?nb(r):r.rangeStart?eb(r):r.rangeEnd?tb(r):Math.random().toString(36)}function ib(r){return Math.random()>=.5}function YC(r){if(!r||!r.autogeneration)return null;switch(r.autogeneration.type){case ze.CurrentDateAndTime:if(r.name===C.Date)return new Date;case ze.Random:{if(r.name===C.Date)return Lg(r.autogeneration);if(r.name===C.Number)return Qg(r.autogeneration);if(r.name===C.String)return rb(r.autogeneration);if(r.name===C.Boolean)return ib(r.autogeneration)}case ze.Unique:if(r.name===C.UUID)return zg();default:throw new Error(`Generating a ${r.autogeneration.type} value for a ${r.name} is not supported`)}}const H="e7eb5382-3d99-44fd-972a-b8b1e819f6be",ab="global-user-variable-id",wd="last-executed-timestamp-variable-id",HC={id:"alternative-relational-database-entity-identifier-property-data-type-ref-id",type:i.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",entityType:i.ValueDescriptor},zC={id:"alternative-relational-database-entity-identifier-property-ref-id",type:i.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",entityType:i.Property},ZC={like:!1,inferred:!1,id:"alternative-relational-database-entity-identifier-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parent:zC},to={id:"alternative-relational-database-entity-ref-id",type:i.GenericReference,entityId:"alternative-relational-database-entity-id",entityType:i.DefinitionEntity},KC={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-identifier-property-id",name:"Identifier name",version:1,type:i.Property,private:!1,abstract:!1,implements:vs,static:!0,index:0,defaultValue:{id:"alternative-relational-database-entity-identifier-property-data-type-default-value-id",type:i.LiteralValue,version:1,name:C.String,value:null,parent:HC,autogeneration:{type:ze.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},dataType:ZC,description:"The name of the main database inside of the server instance where the data will be stored.",parent:to};i.GenericReference,i.ValueDescriptor;const XC={id:"alternative-relational-database-entity-username-property-ref-id",type:i.GenericReference,entityId:"alternative-relational-database-entity-username-property-id",entityType:i.Property},QC={like:!1,inferred:!1,id:"alternative-relational-database-entity-username-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parent:XC},ew={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-username-property-id",name:"Username",version:1,type:i.Property,private:!1,abstract:!1,implements:Is,static:!0,index:1,defaultValue:null,dataType:QC,description:"The username that will be used to connect to the database.",parent:to};i.GenericReference,i.ValueDescriptor;const tw={id:"alternative-relational-database-entity-password-property-ref-id",type:i.GenericReference,entityId:"alternative-relational-database-entity-password-property-id",entityType:i.Property},nw={like:!1,inferred:!1,id:"alternative-relational-database-entity-password-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parent:tw},rw={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-password-property-id",name:"Password",version:1,type:i.Property,private:!1,abstract:!1,implements:Ds,static:!0,index:2,defaultValue:null,dataType:nw,description:"The password that will be used to connect to the database.",parent:to},iw={id:"alternative-relational-database-entity-min-size-property-data-type-ref-id",type:i.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",entityType:i.ValueDescriptor},aw={id:"alternative-relational-database-entity-min-size-property-ref-id",type:i.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",entityType:i.Property},sw={like:!1,inferred:!1,id:"alternative-relational-database-entity-min-size-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ee,asType:!1,parent:aw},ow={constant:!1,hidden:!1,required:!0,id:"alternative-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:1,type:i.Property,private:!1,abstract:!1,implements:As,static:!0,index:3,defaultValue:{id:"alternative-relational-database-entity-min-size-property-data-type-default-value-id",type:i.LiteralValue,version:1,name:C.Number,value:6,parent:iw,autogeneration:null,valueAsType:null},dataType:sw,description:"The minimum size of the database in GB.",parent:to},lw={id:"alternative-relational-database-entity-parent-ref-id",type:i.GenericReference,entityId:H,entityType:i.Project},Bd={id:"alternative-relational-database-entity-id",type:i.DefinitionEntity,version:1,name:"Alternative relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[KC,ew,rw,ow],methods:[],abstractMethods:[],extends:[],implements:[un],x:0,y:0,parent:lw},dw={id:"animal-prototype-database-property-ref-id",type:i.GenericReference,entityId:"animal-prototype-database-property-id",entityType:i.Property},cw={id:"animal-prototype-database-property-data-type-default-value-parent-ref-id",type:i.GenericReference,entityId:"animal-prototype-database-property-id",entityType:i.Property},uw={like:!1,inferred:!1,id:"animal-prototype-database-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:un,asType:!1,parent:dw},pw={id:"animal-prototype-database-property-parent-ref-id",type:i.GenericReference,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",entityType:i.DefinitionEntity},yw={constant:!1,hidden:!1,required:!0,id:"animal-prototype-database-property-id",name:"Database",version:1,type:i.Property,private:!1,abstract:!1,implements:ui,static:!0,index:0,defaultValue:{id:"animal-prototype-database-property-data-type-default-value-id",type:i.LiteralValue,version:1,value:null,name:C.EntityTemplate,valueAsType:Bd,autogeneration:null,parent:cw},dataType:uw,description:"The database that the entity belongs to.",parent:pw},hw={type:i.GenericReference,id:"291e4d4f-01d8-40a0-90dc-5f1ac6636e9b",entityType:i.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},fw={like:!1,inferred:!1,id:"c1930577-9e79-48a6-8905-be24611015c1",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:hw},mw={type:i.GenericReference,id:"animal-name-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:"83eaa847-e62b-4192-84fb-3d8d6f5ea970"},Tw={constant:!1,hidden:!1,required:!0,type:i.Property,id:"5cb617b0-92be-4dbe-a007-49093368d94f",version:1,name:"Name",description:"The name of the animal",defaultValue:null,implements:pi,static:!1,private:!1,index:0,dataType:fw,abstract:!1,parent:mw},Ew={type:i.GenericReference,id:"abc565de-4c83-4936-bc48-4013bef213b8",entityType:i.Project,entityId:H},Rw={type:i.DefinitionEntity,id:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:1,name:"Animal",description:"A living creature that is not human",abstract:!1,static:!1,abstractMethods:[],properties:[yw,Tw],methods:[],extends:[],implements:[st],x:0,y:0,parent:Ew},Ia="base-table-entity",sb="base-table-entity-identifier-property-id";i.GenericReference,i.Property,i.GenericReference,i.Property;const gw={id:"base-table-entity-identifier-property-data-type-ref-id",type:i.GenericReference,entityId:sb,entityType:i.Property},bw={id:"base-table-entity-identifier-property-ref-id",type:i.GenericReference,entityId:"base-table-entity-identifier-property-id",entityType:i.Property},vw={like:!1,inferred:!1,id:"base-table-entity-identifier-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Pn,asType:!1,parent:bw},Iw={id:"base-table-entity-identifier-property-parent-ref-id",type:i.GenericReference,entityId:Ia,entityType:i.DefinitionEntity};i.Property,i.LiteralValue,C.UUID,ze.Unique,i.GenericReference,i.Property;const Dw={id:"base-table-entity-deleted-at-property-ref-id",type:i.GenericReference,entityId:"base-table-entity-deleted-at-property-id",entityType:i.Property},Aw={like:!1,inferred:!1,id:"base-table-entity-deleted-at-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ln,asType:!1,parent:Dw},Sw={id:"base-table-entity-deleted-at-property-parent-ref-id",type:i.GenericReference,entityId:Ia,entityType:i.DefinitionEntity},Ow={constant:!1,hidden:!0,required:!0,id:"base-table-entity-deleted-at-property-id",name:"Deleted at",version:1,type:i.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:Aw,description:"The date and time when the entity was deleted.",parent:Sw};i.GenericReference,i.Property;const Pw={id:"base-table-entity-created-at-property-ref-id",type:i.GenericReference,entityId:"base-table-entity-created-at-property-id",entityType:i.Property},Cw={like:!1,inferred:!1,id:"base-table-entity-created-at-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ln,asType:!1,parent:Pw},ww={id:"base-table-entity-created-at-property-parent-ref-id",type:i.GenericReference,entityId:Ia,entityType:i.DefinitionEntity},Bw={constant:!1,hidden:!0,required:!0,id:"base-table-entity-created-at-property-id",name:"Created at",version:1,type:i.Property,private:!1,abstract:!0,implements:null,static:!1,index:0,defaultValue:null,dataType:Cw,description:"The date and time when the entity was created.",parent:ww};i.GenericReference,i.Property;const Mw={id:"base-table-entity-updated-at-property-ref-id",type:i.GenericReference,entityId:"base-table-entity-updated-at-property-id",entityType:i.Property},_w={like:!1,inferred:!1,id:"base-table-entity-updated-at-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ln,asType:!1,parent:Mw},Vw={id:"base-table-entity-updated-at-property-parent-ref-id",type:i.GenericReference,entityId:Ia,entityType:i.DefinitionEntity},Nw={constant:!1,hidden:!0,required:!0,id:"base-table-entity-updated-at-property-id",name:"Updated at",version:1,type:i.Property,private:!1,implements:null,abstract:!0,static:!1,index:0,defaultValue:null,dataType:_w,description:"The date and time when the entity was last updated.",parent:Vw},Lw={id:"base-table-entity-parent-ref-id",type:i.GenericReference,entityId:H,entityType:i.Project},Ft={id:Ia,version:1,description:"An entity that is permanently stored in the database and can be accessed at any point.",name:"Base database table format",type:i.DefinitionEntity,abstract:!0,static:!1,abstractMethods:[],implements:[],properties:[Ow,Bw,Nw],methods:[],extends:[],x:0,y:0,parent:Lw},Gw={id:"default-relational-database-entity-identifier-property-data-type-ref-id",type:i.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",entityType:i.Property},$w={id:"default-relational-database-entity-identifier-property-ref-id",type:i.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",entityType:i.Property},Fw={like:!1,inferred:!1,id:"default-relational-database-entity-identifier-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parent:$w},bi={id:"default-relational-database-entity-ref-id",type:i.GenericReference,entityId:"default-relational-database-entity-id",entityType:i.DefinitionEntity},Uw={constant:!1,id:"default-relational-database-entity-identifier-property-id",hidden:!1,required:!0,name:"Identifier name",version:1,type:i.Property,private:!1,abstract:!1,implements:vs,static:!0,index:0,defaultValue:{id:"default-relational-database-entity-identifier-property-data-type-default-value-id",type:i.LiteralValue,version:1,name:C.String,value:"main",parent:Gw,autogeneration:{type:ze.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},dataType:Fw,description:"The name of the main database inside of the server instance where the data will be stored.",parent:bi};i.GenericReference,i.Property;const xw={id:"default-relational-database-entity-username-property-ref-id",type:i.GenericReference,entityId:"default-relational-database-entity-username-property-id",entityType:i.Property},jw={id:"default-relational-database-entity-username-property-default-value-parent-ref-id",type:i.GenericReference,entityId:"default-relational-database-entity-username-property-id",entityType:i.Property},kw={like:!1,inferred:!1,id:"default-relational-database-entity-username-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parent:xw},qw={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-username-property-id",name:"Username",version:1,type:i.Property,private:!1,abstract:!1,implements:Is,defaultValue:{id:"default-relational-database-entity-username-property-data-type-default-value-id",type:i.LiteralValue,version:1,name:C.String,value:"root",parent:jw,autogeneration:null,valueAsType:null},static:!0,index:1,dataType:kw,description:"The username that will be used to connect to the database.",parent:bi};i.GenericReference,i.Property;const Jw={id:"default-relational-database-entity-password-property-ref-id",type:i.GenericReference,entityId:"default-relational-database-entity-password-property-id",entityType:i.Property},Ww={id:"default-relational-database-entity-password-property-default-value-parent-ref-id",type:i.GenericReference,entityId:"default-relational-database-entity-password-property-id",entityType:i.Property},Yw={like:!1,inferred:!1,id:"default-relational-database-entity-password-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parent:Jw},Hw={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-password-property-id",name:"Password",version:1,type:i.Property,private:!1,abstract:!1,implements:Ds,static:!0,index:2,defaultValue:{id:"default-relational-database-entity-password-property-data-type-default-value-id",type:i.LiteralValue,version:1,name:C.String,value:"password",parent:Ww,autogeneration:null,valueAsType:null},dataType:Yw,description:"The password that will be used to connect to the database.",parent:bi},zw={id:"default-relational-database-entity-min-size-property-data-type-ref-id",type:i.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",entityType:i.Property},Zw={id:"default-relational-database-entity-min-size-property-ref-id",type:i.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",entityType:i.Property},Kw={like:!1,inferred:!1,id:"default-relational-database-entity-min-size-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ee,asType:!1,parent:Zw},Xw={constant:!1,hidden:!1,required:!0,id:"default-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:1,type:i.Property,private:!1,abstract:!1,implements:As,static:!0,index:3,defaultValue:{id:"default-relational-database-entity-min-size-property-data-type-default-value-id",type:i.LiteralValue,version:1,name:C.Number,value:6,parent:zw,autogeneration:null,valueAsType:null},dataType:Kw,description:"The minimum size of the database in GB.",parent:bi},Qw={id:"default-relational-database-entity-default-property-data-type-ref-id",type:i.GenericReference,entityId:"default-relational-database-entity-default-property-id",entityType:i.Property},eB={id:"default-relational-database-entity-default-property-ref-id",type:i.GenericReference,entityId:"default-relational-database-entity-default-property-id",entityType:i.Property},tB={like:!1,inferred:!1,id:"default-relational-database-entity-default-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ee,asType:!1,parent:eB},nB={constant:!1,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,type:i.Property,private:!1,abstract:!1,implements:ld,static:!0,index:4,dataType:tB,defaultValue:{id:"default-relational-database-entity-default-property-data-type-default-value-id",type:i.LiteralValue,version:1,name:C.Boolean,value:!0,parent:Qw,autogeneration:null,valueAsType:null},parent:bi},rB={id:"default-relational-database-entity-autoscaling-property-data-type-ref-id",type:i.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",entityType:i.Property},iB={id:"default-relational-database-entity-autoscaling-property-ref-id",type:i.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",entityType:i.Property},aB={like:!1,inferred:!1,id:"default-relational-database-entity-autoscaling-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:ee,asType:!1,parent:iB},sB={constant:!1,id:"default-relational-database-entity-autoscaling-property-id",hidden:!1,required:!0,name:"Auto-scaling",version:1,type:i.Property,private:!1,abstract:!1,implements:dd,static:!0,index:5,defaultValue:{id:"default-relational-database-entity-autoscaling-property-data-type-default-value-id",type:i.LiteralValue,version:1,name:C.Boolean,value:!0,parent:rB,autogeneration:null,valueAsType:null},dataType:aB,description:"If true, this database will automatically scale up or down in memory size, based on the usage.s",parent:bi},oB={id:"default-relational-database-entity-parent-ref-id",type:i.GenericReference,entityId:H,entityType:i.Project},Md={id:"default-relational-database-entity-id",type:i.DefinitionEntity,version:1,name:"Relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[nB,sB,Uw,qw,Hw,Xw],methods:[],abstractMethods:[],extends:[],implements:[un],x:0,y:0,parent:oB},lB={id:"user-prototype-database-property-data-type-ref-id",type:i.GenericReference,entityId:"user-prototype-database-property-id",entityType:i.Property},dB={id:"user-prototype-database-property-ref-id",type:i.GenericReference,entityId:"user-prototype-database-property-id",entityType:i.Property},cB={like:!1,inferred:!1,id:"user-prototype-database-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:un,asType:!1,parent:dB},uB={id:"user-prototype-database-property-parent-ref-id",type:i.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:i.DefinitionEntity},pB={constant:!1,hidden:!1,required:!0,id:"user-prototype-database-property-id",name:"Database",version:1,type:i.Property,private:!1,abstract:!1,implements:ui,static:!0,index:0,defaultValue:{id:"user-prototype-database-property-data-type-default-value-id",type:i.LiteralValue,version:1,value:null,name:C.EntityTemplate,valueAsType:Md,autogeneration:null,parent:lB},dataType:cB,description:"The database that the entity belongs to.",parent:uB},yB={type:i.GenericReference,id:"user-prototype-parent-ref-id",entityType:i.Project,entityId:H},hB={id:"user-prototype-primary-key-property-data-type-ref-id",type:i.GenericReference,entityId:"user-prototype-primary-key-property-id",entityType:i.Property},fB={id:"user-prototype-primary-key-property-ref-id",type:i.GenericReference,entityId:"user-prototype-primary-key-property-id",entityType:i.Property},mB={like:!1,inferred:!1,id:"user-prototype-primary-key-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Pn,asType:!1,parent:fB},TB={id:"user-prototype-primary-key-property-parent-ref-id",type:i.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:i.DefinitionEntity},EB={constant:!1,hidden:!1,required:!0,id:"user-prototype-primary-key-property-id",name:"Identifier",version:1,type:i.Property,private:!1,abstract:!1,implements:pi,static:!1,index:1,defaultValue:{id:"user-prototype-primary-key-property-data-type-default-value-id",type:i.LiteralValue,version:1,name:C.UUID,value:null,parent:hB,autogeneration:{type:ze.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},dataType:mB,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:TB},_d={type:i.DefinitionEntity,id:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:1,name:"User",description:"A user of the application",implements:[st,Ft],abstract:!1,static:!1,abstractMethods:[],extends:[],properties:[pB,EB],methods:[],x:0,y:0,parent:yB},RB={type:i.GenericReference,id:"person-date-of-birth-property-data-type-parent-ref-id",entityType:i.Property,entityId:"person-date-of-birth-property-id"},gB={like:!1,inferred:!1,id:"person-date-of-birth-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ln,isList:!1,asType:!1,parent:RB},bB={type:i.GenericReference,id:"person-date-of-birth-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},vB={constant:!1,hidden:!1,required:!0,type:i.Property,id:"person-date-of-birth-property-id",version:1,name:"Date of birth",description:"The date of birth of the person",implements:null,private:!1,static:!1,index:0,defaultValue:null,dataType:gB,abstract:!1,parent:bB},IB={type:i.GenericReference,id:"a2867827-2f8e-4c25-b18b-d91857d7f24e",entityType:i.Property,entityId:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7"},DB={like:!1,inferred:!1,id:"1d49f41b-17b9-4f48-87aa-3ce43498e5a9",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,isList:!1,asType:!1,parent:IB},AB={type:i.GenericReference,id:"01cbe760-40a9-4f49-8e3d-194d2f57cb1e",entityType:i.DefinitionEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},SB={constant:!1,hidden:!1,required:!0,type:i.Property,id:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7",version:1,name:"Name",description:"The name of the person",implements:null,private:!1,static:!1,index:0,defaultValue:null,dataType:DB,abstract:!1,parent:AB},OB={type:i.GenericReference,id:"3542b22a-3a2f-41c6-876e-24c885572498",entityType:i.Project,entityId:H},bt={type:i.DefinitionEntity,id:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416",version: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:[SB,vB],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[_d],x:0,y:0,parent:OB},PB={type:i.GenericReference,id:"b59c80b7-b2e9-41e9-abcd-7c5652835efc",entityType:i.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},CB={type:i.GenericReference,id:"1190b5a2-f25e-46db-884d-8a3dd1a44d94",entityType:i.ReturnStatement,entityId:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e"},wB={type:i.GenericReference,id:"36c63126-7814-496f-a6cc-48662c2aabae",entityType:i.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},BB={type:i.GenericReference,id:"c567e55d-ec12-4e4e-958e-f07522892b4b",entityType:i.ReturnDeclaration,entityId:"9e070523-7e07-4100-8637-960a187f5f14"},MB={like:!1,inferred:!1,id:"3973c5a1-f0d8-49a0-a9a9-a0009bf3f0d8",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:bt,isList:!1,asType:!1,parent:BB},Vd={constant:!0,isError:!1,id:"9e070523-7e07-4100-8637-960a187f5f14",type:i.ReturnDeclaration,version:1,name:"Output Account Owner",description:null,defaultValue:null,dataType:MB,implements:null,readsValue:wB,required:!0,index:0,parent:CB},_B={type:i.GenericReference,id:"567d923c-20da-4c1e-956d-962ea30c6d0b",entityType:i.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},VB={type:i.GenericReference,id:"da85e620-59f3-42ab-88c8-b38d33c2c833",entityType:i.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},ob={type:i.ReturnStatement,id:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e",version:1,outputs:[Vd],calledByError:[],calledByEntry:[_B],calledBySuccess:[],throws:null,x:0,y:0,parent:VB},NB={type:i.GenericReference,id:"1c806bb7-4c25-4bad-963b-93dfbb7c8304",entityType:i.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},LB={like:!1,inferred:!1,id:"d90fcc18-642b-433c-8fcb-4094b9031cd5",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:bt,isList:!1,asType:!1,parent:NB},lb={constant:!0,id:"500dee3a-3435-4453-9699-0d053f646523",type:i.ArgumentDeclaration,version:1,name:"New Account Owner",description:null,defaultValue:null,dataType:LB,implements:null,required:!0,writesValues:[Vd],index:0,parent:PB},GB={type:i.GenericReference,id:"83dceb60-f3c4-4085-824c-85f2003bfd27",entityType:i.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},db={type:i.FunctionDeclaration,id:"36f29f96-c001-4b9a-b49c-83eff406a060",version:1,name:"Change owner of bank account",description:null,implements:null,inputs:[lb],calls:[ob],returnStatements:[ob],index:0,collapsed:!1,private:!1,x:0,y:0,parent:GB},$B={type:i.GenericReference,id:"adbaf302-ffa9-49b6-a3c6-83f9a75068e3",entityType:i.VariableDeclaration,entityId:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b"},FB={like:!1,inferred:!1,id:"79ee04aa-1ba4-4ae9-a406-ed45e5b03f7f",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:bt,asType:!1,isList:!1,parent:$B},UB={type:i.GenericReference,id:"55e212d1-f0ec-4bb6-acbe-60f741367daf",entityType:i.OutputMap,entityId:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4"},xB={type:i.GenericReference,id:"944e1171-3d9b-4559-9386-1d4974b15962",entityType:i.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},jB={constant:!0,required:!0,id:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b",type:i.VariableDeclaration,version:1,name:"Output Account Owner",description:null,defaultValue:null,dataType:FB,readsValue:UB,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:xB},kB={type:i.GenericReference,id:"b89ebc83-52cf-4447-a5ae-62241f713079",entityType:i.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},qB={id:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4",type:i.OutputMap,version:1,declaration:Vd,defaultValue:null,writesValues:[jB],index:0,parent:kB},JB={type:i.GenericReference,id:"c1b9e125-1aad-48b7-9687-95c57a6bc10d",entityType:i.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},WB={type:i.GenericReference,id:"d2deaa02-e164-4425-905c-6dee47eb4eac",entityType:i.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},YB={type:i.GenericReference,id:"1109a655-ac62-4110-a933-42a72106f4f0",entityType:i.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},HB={like:!1,inferred:!1,id:"7d9a1307-512e-42ec-9797-2f7229796b97",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:bt,asType:!1,isList:!1,parent:YB},zB={type:i.GenericReference,id:"bb61ebf7-57b3-4d14-905d-82ec907205b5",entityType:i.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},ZB={type:i.GenericReference,id:"6b8c7bf2-9fc8-4ea4-9ec0-f41679d513b1",entityType:i.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},KB={type:i.GenericReference,id:"6163d1a1-7a94-49b1-95bb-aecd8d6d335c",entityType:i.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},XB={type:i.GenericReference,id:"1f900f62-4bd2-4246-94aa-b8f5aad384fd",entityType:i.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},cb={id:"be8538be-e6f9-4b94-9314-a546003ebaa0",type:i.InputMap,version:1,declaration:lb,name:null,description:null,readsValue:XB,defaultValue:null,index:0,parent:KB},QB={constant:!0,required:!0,type:i.VariableDeclaration,id:"8bea6986-8da2-487b-905d-2fb962db6728",version:1,name:"Changed Account Owner",description:null,defaultValue:null,dataType:HB,readsValue:zB,writesValues:[cb],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:ZB},eM={type:i.FunctionCall,id:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e",version:1,declaration:db,inputs:[cb],outputs:[qB],process:null,successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[JB],calledBySuccess:[],parent:WB,error:null,x:0,y:0},tM={type:i.GenericReference,id:"2d47aba1-a918-46a7-8db7-78809928654a",entityType:i.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},nM={like:!1,inferred:!1,id:"5583766c-e9a5-484c-8f43-f4b0a6a1876c",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:bt,asType:!1,isList:!1,parent:tM},rM={type:i.GenericReference,id:"3e2a81e4-55b2-49f5-94eb-39135e95c3d7",entityType:i.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},iM={constant:!0,id:"38f6b236-98ac-47b0-ab9c-d2f9610137b9",type:i.ArgumentDeclaration,version:1,description:null,name:"New Company Owner",defaultValue:null,dataType:nM,implements:null,required:!0,index:0,writesValues:[QB],parent:rM},aM={type:i.GenericReference,id:"30291b01-1b94-4d03-b434-dec122c2bc7d",entityType:i.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},sM={type:i.FunctionDeclaration,id:"15ee556d-681f-47de-a31f-16d4ba73cc4e",version:1,description:null,name:"Change Account Owner",inputs:[iM],collapsed:!0,returnStatements:[],calls:[eM],private:!1,index:0,implements:null,x:0,y:0,parent:aM},oM={type:i.GenericReference,id:"72c7ac0a-886e-4e10-b7ed-2f5a819a0233",entityType:i.Property,entityId:"b8f4656a-2b77-43ab-af51-7c32ddede044"},lM={like:!1,inferred:!1,id:"c09dd282-73f6-4077-a467-b66db20b9fc6",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,isList:!1,asType:!1,parent:oM},dM={type:i.GenericReference,id:"8a950024-512c-4580-81db-a705410aeb99",entityType:i.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},cM={constant:!1,hidden:!1,required:!0,type:i.Property,id:"b8f4656a-2b77-43ab-af51-7c32ddede044",version:1,name:"Account number",description:null,private:!0,defaultValue:null,implements:pi,static:!1,index:0,dataType:lM,abstract:!1,parent:dM},uM={type:i.GenericReference,id:"b6704b6c-c3bd-49d0-8ebc-82d03e726cbb",entityType:i.Property,entityId:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea"},pM={like:!1,inferred:!1,id:"c03e0b0a-88ab-401a-8833-4806738bdc37",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:bt,isList:!1,asType:!1,parent:uM},yM={type:i.GenericReference,id:"1ef999a7-e9ed-406a-866e-e58277fc985b",entityType:i.DefinitionEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},hM={constant:!1,hidden:!1,required:!0,type:i.Property,id:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea",version:1,description:null,name:"Account Owner",index:1,defaultValue:null,dataType:pM,implements:null,static:!1,private:!0,abstract:!1,parent:yM},fM={type:i.GenericReference,id:"d41d7f41-98b8-4f67-be92-c349fdda5156",entityType:i.Project,entityId:H},vi={type:i.DefinitionEntity,id:"506946aa-30da-48e6-918f-ffd9eac58813",version:1,name:"Bank Account",description:null,abstract:!1,static:!1,abstractMethods:[],properties:[cM,hM],methods:[db,sM],extends:[],implements:[st,Ft],x:0,y:0,parent:fM},Da="bitcoin-api-response-id",ub="time-property-id",pb="disclaimer-property-id",yb="chart-name-property-id",hb="bpi-property-id",no="bpi-entity-id",fb="usd-property-id",mb="gbp-property-id",Tb="eur-property-id",Ii="currency-entity-id",Eb="currency-code-property-id",Rb="currency-symbol-property-id",gb="currency-rate-property-id",bb="currency-description-property-id",vb="currency-rate-number-property-id",mM={type:i.GenericReference,id:"code-property-data-type-parent-ref-id",entityType:i.Property,entityId:Eb},TM={like:!1,inferred:!1,id:"code-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:On,isList:!1,asType:!1,options:["USD","GBP","EUR"],parent:mM},EM={type:i.GenericReference,id:"code-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:Ii},RM={constant:!1,hidden:!1,required:!0,type:i.Property,id:Eb,version:1,name:"code",description:null,defaultValue:null,dataType:TM,index:0,implements:null,static:!1,private:!1,abstract:!1,parent:EM},gM={type:i.GenericReference,id:"symbol-property-data-type-parent-ref-id",entityType:i.Property,entityId:Rb},bM={like:!1,inferred:!1,id:"symbol-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:On,isList:!1,asType:!1,options:["$","£","€"],parent:gM},vM={type:i.GenericReference,id:"symbol-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:Ii},IM={constant:!1,hidden:!1,required:!0,type:i.Property,id:Rb,version:1,name:"symbol",description:null,index:0,defaultValue:null,dataType:bM,implements:null,static:!1,private:!1,abstract:!1,parent:vM},DM={type:i.GenericReference,id:"rate-property-data-type-parent-ref-id",entityType:i.Property,entityId:gb},AM={like:!1,inferred:!1,id:"rate-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,isList:!1,asType:!1,parent:DM},SM={type:i.GenericReference,id:"rate-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:Ii},OM={constant:!1,hidden:!1,required:!0,type:i.Property,id:gb,version:1,name:"rate",description:null,index:0,defaultValue:null,dataType:AM,implements:null,static:!1,private:!1,abstract:!1,parent:SM},PM={type:i.GenericReference,id:"description-property-data-type-parent-ref-id",entityType:i.Property,entityId:bb},CM={like:!1,inferred:!1,id:"description-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,isList:!1,asType:!1,parent:PM},wM={type:i.GenericReference,id:"description-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:Ii},BM={constant:!1,hidden:!1,required:!0,type:i.Property,id:bb,version:1,name:"description",description:null,defaultValue:null,dataType:CM,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:wM},MM={type:i.GenericReference,id:"rate-number-property-data-type-parent-ref-id",entityType:i.Property,entityId:vb},_M={like:!1,inferred:!1,id:"rate-number-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,isList:!1,asType:!1,parent:MM},VM={type:i.GenericReference,id:"rate-number-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:Ii},NM={constant:!1,hidden:!1,required:!0,type:i.Property,id:vb,version:1,name:"rate_float",description:null,defaultValue:null,dataType:_M,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:VM},LM={type:i.GenericReference,id:"currency-prototype-parent-ref-id",entityType:i.Project,entityId:H},ro={type:i.DefinitionEntity,id:Ii,version:1,name:"Currency",description:"This entity describes a currency in the Bitcoin Price Index.",properties:[RM,IM,OM,BM,NM],static:!1,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:LM},GM={type:i.GenericReference,id:"usd-property-data-type-parent-ref-id",entityType:i.Property,entityId:fb},$M={like:!1,inferred:!1,id:"usd-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ro,isList:!1,asType:!1,parent:GM},FM={type:i.GenericReference,id:"usd-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:no},UM={constant:!1,hidden:!1,required:!0,id:fb,type:i.Property,version:1,name:"USD",description:null,index:0,dataType:$M,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:FM},xM={type:i.GenericReference,id:"gbp-property-data-type-parent-ref-id",entityType:i.Property,entityId:mb},jM={like:!1,inferred:!1,id:"gbp-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ro,isList:!1,asType:!1,parent:xM},kM={type:i.GenericReference,id:"gbp-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:no},qM={constant:!1,hidden:!1,required:!0,id:mb,type:i.Property,version:1,name:"GBP",description:null,index:0,dataType:jM,defaultValue:null,implements:null,static:!1,private:!1,abstract:!1,parent:kM},JM={type:i.GenericReference,id:"eur-property-data-type-parent-ref-id",entityType:i.Property,entityId:Tb},WM={like:!1,inferred:!1,id:"eur-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ro,isList:!1,asType:!1,parent:JM},YM={type:i.GenericReference,id:"eur-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:no},HM={constant:!1,hidden:!1,required:!0,id:Tb,type:i.Property,version:1,name:"EUR",description:null,implements:null,static:!1,index:0,defaultValue:null,dataType:WM,private:!1,abstract:!1,parent:YM},zM={type:i.GenericReference,id:"bpi-prototype-parent-ref-id",entityType:i.Project,entityId:H},Ib={type:i.DefinitionEntity,id:no,version:1,name:"BPI",description:"The Bitcoin Price Index",properties:[UM,qM,HM],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:zM},ZM={type:i.GenericReference,id:"time-property-data-type-parent-ref-id",entityType:i.Property,entityId:ub},KM={like:!1,inferred:!1,id:"time-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ai,isList:!1,asType:!1,parent:ZM},XM={type:i.GenericReference,id:"time-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:Da},QM={constant:!1,hidden:!1,required:!0,type:i.Property,id:ub,version:1,name:"time",description:null,index:0,defaultValue:null,dataType:KM,implements:null,static:!1,private:!1,abstract:!1,parent:XM},e_={type:i.GenericReference,id:"disclaimer-property-data-type-parent-ref-id",entityType:i.Property,entityId:pb},t_={like:!1,inferred:!1,id:"disclaimer-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,isList:!1,asType:!1,parent:e_},n_={type:i.GenericReference,id:"disclaimer-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:Da},r_={constant:!1,hidden:!1,required:!0,type:i.Property,id:pb,version:1,name:"disclaimer",description:null,index:0,defaultValue:null,dataType:t_,implements:null,static:!1,private:!1,abstract:!1,parent:n_},i_={type:i.GenericReference,id:"chart-name-property-data-type-parent-ref-id",entityType:i.Property,entityId:yb},a_={like:!1,inferred:!1,id:"chart-name-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,isList:!1,asType:!1,parent:i_},s_={type:i.GenericReference,id:"chart-name-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:Da},o_={constant:!1,hidden:!1,required:!0,type:i.Property,id:yb,version:1,name:"chartName",description:null,index:0,defaultValue:null,dataType:a_,implements:null,static:!1,private:!1,abstract:!1,parent:s_},l_={type:i.GenericReference,id:"bpi-property-data-type-parent-ref-id",entityType:i.Property,entityId:hb},d_={like:!1,inferred:!1,id:"bpi-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ib,isList:!1,asType:!1,parent:l_},c_={type:i.GenericReference,id:"bpi-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:Da},u_={constant:!1,hidden:!1,required:!0,type:i.Property,id:hb,version:1,name:"bpi",description:null,implements:null,index:0,defaultValue:null,dataType:d_,static:!1,private:!1,abstract:!1,parent:c_},p_={type:i.GenericReference,id:"bitcoin-api-response-parent-ref-id",entityType:i.Project,entityId:H},Db={type:i.DefinitionEntity,id:Da,version:1,name:"Bitcoin API Response type",description:"The type of the data structure response from the Bitcoin API call",properties:[QM,r_,o_,u_],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:p_},y_={type:i.GenericReference,id:"eefa0147-f873-484b-b4f3-9e6493aab183",entityType:i.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},h_={like:!1,inferred:!1,id:"b9f35112-dcb2-4b7c-8fb9-f196b3fa37f9",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:bt,isList:!1,asType:!1,parent:y_},f_={type:i.GenericReference,id:"128770d6-5e3a-4aff-bca0-ad1f32ebefa8",entityType:i.ReturnStatement,entityId:"e4e05975-c277-471a-b869-f0aed316045c"},m_={type:i.GenericReference,id:"0be84bf9-6421-42b9-980f-6a03f30cb809",entityType:i.ReturnDeclaration,entityId:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},T_={like:!1,inferred:!1,id:"43daa02a-237b-4b7c-a6e9-2b8c167f6e22",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:bt,isList:!1,asType:!1,parent:m_},E_={type:i.GenericReference,id:"ad380383-4a47-43da-968e-75a2d603b230",entityType:i.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},Ab={constant:!0,isError:!1,id:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:i.ReturnDeclaration,version:1,name:"New Company Owner",description:"The new owner of the company",implements:null,defaultValue:null,dataType:T_,readsValue:E_,required:!0,index:0,parent:f_},R_={type:i.GenericReference,id:"4f24dc27-59a1-49bf-abcc-7d72b00926e4",entityType:i.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},g_={constant:!0,id:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",type:i.ArgumentDeclaration,version:1,name:"New Company Owner",description:null,implements:null,defaultValue:null,dataType:h_,writesValues:[Ab],required:!0,index:0,parent:R_},b_={type:i.GenericReference,id:"5c9a02f0-d2cf-4efc-828e-467f33a74dd3",entityType:i.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},v_={type:i.GenericReference,id:"2ff8f3da-e0c5-4f0f-b688-2c051c588786",entityType:i.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},I_={type:i.GenericReference,id:"195ae28c-159b-42de-80b1-2ebb8be3619f",entityType:i.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},Sb={type:i.ReturnStatement,id:"e4e05975-c277-471a-b869-f0aed316045c",version:1,outputs:[Ab],calledByError:[],calledByEntry:[v_],calledBySuccess:[],throws:null,x:0,y:0,parent:I_},D_={type:i.FunctionDeclaration,id:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4",version:1,name:"Change owner of company",description:"Change the owner of the company to a new person",inputs:[g_],calls:[Sb],index:0,collapsed:!1,implements:null,returnStatements:[Sb],private:!1,x:0,y:0,parent:b_},A_={type:i.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",entityType:i.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},S_={type:i.GenericReference,id:"29c4e3e0-1b66-4075-b559-45b27c5cf356",entityType:i.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},O_={type:i.GenericReference,id:"b1289358-b185-455d-8f58-7791b15cd52a",entityType:i.ReturnStatement,entityId:"9690cd1d-ea35-4e83-823d-0c7310265fee"},P_={type:i.GenericReference,id:"d847bb49-8789-4550-bb2d-e2d551993b28",entityType:i.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},C_={type:i.GenericReference,id:"06535500-c37c-4915-8398-1d4e184fa5e7",entityType:i.ReturnDeclaration,entityId:"e7a35277-a0c4-46d5-aca2-bddd0c26e931"},w_={like:!1,inferred:!1,id:"d358dd91-35f7-4095-b728-3fb3c71dbc05",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Sn,asType:!1,isList:!1,parent:C_},Nd={constant:!0,isError:!1,id:"e7a35277-a0c4-46d5-aca2-bddd0c26e931",type:i.ReturnDeclaration,version:1,name:"Is name registered",description:"Whether the company name is already registered",defaultValue:null,dataType:w_,implements:null,readsValue:P_,required:!0,index:0,parent:O_},B_={type:i.GenericReference,id:"gov-company-registry-return-statement-called-by-success-ref-id",entityType:i.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},Ld={type:i.ReturnStatement,id:"9690cd1d-ea35-4e83-823d-0c7310265fee",version:1,outputs:[Nd],calledByError:[],calledByEntry:[],calledBySuccess:[A_,B_],throws:null,x:0,y:0,parent:S_},M_={type:i.GenericReference,id:"b3126414-4c9b-495f-901e-59f5073c8d67",entityType:i.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},__={type:i.GenericReference,id:"35115c48-618b-411b-a290-d746d22fdd10",entityType:i.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},Ob={id:"a0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:i.InputMap,version:1,declaration:Ul,name:null,description:null,readsValue:__,defaultValue:null,parent:M_,index:2},V_={type:i.GenericReference,id:"14f46eae-04a5-47d1-9c7f-28fb09b84d1d",entityType:i.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},N_={like:!1,inferred:!1,id:"990bd5d1-07ea-4253-acc1-d03bedd22a38",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Sn,isList:!1,asType:!1,parent:V_},L_={type:i.GenericReference,id:"e4c3542a-8fb0-4b72-8d6e-3fdff812dd67",entityType:i.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},G_={type:i.GenericReference,id:"825f9f60-22a8-4cc6-9055-d7333f8e92f4",entityType:i.OutputMap,entityId:"8f30d787-9459-4d8d-98a2-b46fbc2006d5"},$_={type:i.GenericReference,id:"is-company-name-registered-var-called-by-ref",entityType:i.Operation,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},Pb={constant:!0,required:!0,type:i.VariableDeclaration,id:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a",version:1,name:"Is name registered",description:"Whether the company name is registered with the government company registry",defaultValue:null,dataType:N_,readsValue:G_,writesValues:[Nd],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[$_],successCalls:[Ld],errorCalls:[],internalCalls:[],x:0,y:0,parent:L_},F_={type:i.GenericReference,id:"1aba021e-48ef-44ac-93d0-eaecac5895da",entityType:i.InputMap,entityId:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a"},U_={type:i.GenericReference,id:"dffae7e0-0a5c-4c14-8ed2-8d680b4c4c86",entityType:i.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},x_={type:i.InputMap,id:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a",version:1,declaration:ys,name:null,description:null,readsValue:null,defaultValue:{id:"gov-http-request-url-argument-default-value-id",type:i.LiteralValue,version:1,value:"https://api.publicapis.org/entries",name:C.String,valueAsType:null,parent:F_,autogeneration:null},index:1,parent:U_},j_={type:i.GenericReference,id:"64ae61f5-ace7-401b-926d-25f852daa60e",entityType:i.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},k_={id:"8f30d787-9459-4d8d-98a2-b46fbc2006d5",type:i.OutputMap,version:1,defaultValue:null,declaration:Es,index:2,writesValues:[Pb],parent:j_},q_={type:i.GenericReference,id:"62a1a086-caea-4270-9c9f-a1695503e745",entityType:i.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},J_={id:"48cf7654-8f3e-4fcd-abc6-740876c310a0",type:i.InputMap,version:1,declaration:ps,name:null,description:null,readsValue:null,index:0,defaultValue:null,parent:q_},W_={type:i.GenericReference,id:"b0c9c79f-f525-428d-99e7-087d3237ad62",entityType:i.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},Y_={id:"2c1dc406-4b71-4023-87b2-abede3a111d2",type:i.InputMap,version:1,name:null,description:null,declaration:hs,index:3,readsValue:null,defaultValue:null,parent:W_},H_={type:i.GenericReference,id:"9887d6c9-d75b-4c97-b722-e2e60945ea20",entityType:i.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},z_={id:"3fef94b2-0278-43ae-b0c5-bc7083f0a111",type:i.InputMap,version:1,declaration:fs,name:null,description:null,readsValue:null,index:4,defaultValue:null,parent:H_},Z_={type:i.GenericReference,id:"561275b6-5056-45d8-bf7d-8abaa4645593",entityType:i.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},K_={id:"3efe20a7-4d63-411e-89ef-63e277f48d66",type:i.OutputMap,version:1,defaultValue:null,declaration:Ts,index:1,writesValues:[],parent:Z_},X_={type:i.GenericReference,id:"3170ccc2-13de-4bfc-802a-a643be41cd42",entityType:i.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},Q_={id:"40d34323-d7e6-440a-8016-67c05a3b66dd",type:i.OutputMap,version:1,defaultValue:null,declaration:ms,index:0,writesValues:[],parent:X_},eV={type:i.GenericReference,id:"7432fa82-f574-4c54-a8fa-4cc4376da3d5",entityType:i.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},tV={type:i.GenericReference,id:"8f518502-9eea-462c-8753-8bc3bf3e29a9",entityType:i.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},nV={type:i.GenericReference,id:"123b8f18-79d9-4166-a5f6-78ec4b461680",entityType:i.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},rV={type:i.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",entityType:i.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},iV={type:i.GenericReference,id:"a375eedf-4811-41aa-a998-4897c69c46b9",entityType:i.ReturnDeclaration,entityId:"024a9b77-c1cd-4b67-b3ba-1935046b590d"},aV={like:!1,inferred:!1,id:"767cc5ed-20ec-4fd1-89b1-c8d19daa87d1",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:it,asType:!1,isList:!1,parent:iV},sV={type:i.GenericReference,id:"e64b0c23-129d-4d74-8ab4-eec60e1e5b9b",entityType:i.ReturnStatement,entityId:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3"},Cb={constant:!0,isError:!0,id:"024a9b77-c1cd-4b67-b3ba-1935046b590d",type:i.ReturnDeclaration,version:1,name:"Error",description:"The error that occurred during the HTTP request to the government company registry",dataType:aV,defaultValue:null,implements:null,required:!0,readsValue:null,index:0,parent:sV},wb={type:i.ReturnStatement,id:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3",version:1,outputs:[],calledByError:[rV],calledByEntry:[],calledBySuccess:[],throws:Cb,x:0,y:0,parent:nV},oV={type:i.GenericReference,id:"323814fb-9723-49ef-bbba-f882384f18e4",entityType:i.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},lV={id:"2f63f7ba-0ff0-458a-92bc-65d1dd4df8c3",type:i.OutputMap,declaration:xl,defaultValue:null,version:1,writesValues:[Cb],index:0,parentRelationType:ri.Error,parent:oV},dV={type:i.Operation,id:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7",version:1,declaration:Xi,inputs:[J_,x_,Ob,Y_,z_],outputs:[Q_,K_,k_],process:null,calledByError:[],calledByEntry:[eV],calledBySuccess:[],successCalls:[Ld,Pb],errorCalls:[wb],error:lV,x:0,y:0,parent:tV},cV={type:i.GenericReference,id:"597b8aa2-f6f2-4f7d-bbb9-b703d02de96a",entityType:i.InputMap,entityId:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a"},uV={type:i.GenericReference,id:"546d99b3-28c4-4186-93a0-ac53c1565e07",entityType:i.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},pV={id:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:i.InputMap,version:1,declaration:ds,name:null,description:null,readsValue:null,defaultValue:{id:"base-query-string-map-default-value-id",type:i.LiteralValue,version:1,value:"?name=",name:C.String,parent:cV,valueAsType:null,autogeneration:null},index:0,parent:uV},yV={type:i.GenericReference,id:"6a56fb22-82e1-47c9-bf85-41c4e5986c74",entityType:i.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},hV={type:i.GenericReference,id:"191c6a6d-9bcb-441e-bf98-de0da96f5f3a",entityType:i.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},fV={type:i.GenericReference,id:"d8fcbb76-dae2-40cf-847a-02364721b387",entityType:i.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},mV={like:!1,inferred:!1,id:"6a70c42b-024a-47c6-8a9d-af52be9c9b9a",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,isList:!1,asType:!1,parent:fV},TV={type:i.GenericReference,id:"2282e2c0-ed9e-4c7b-86fc-1a364fa0fdb8",entityType:i.OutputMap,entityId:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5"},EV={type:i.GenericReference,id:"assembled-query-string-called-by-ref",entityType:i.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},Bb={constant:!0,required:!0,type:i.VariableDeclaration,id:"83e12ebb-c958-4dee-b750-8ab9930f0f4e",version: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:mV,readsValue:TV,writesValues:[Ob],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[EV],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:hV},RV={id:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5",type:i.OutputMap,version:1,defaultValue:null,writesValues:[Bb],declaration:Zi,index:0,parent:yV},gV={type:i.GenericReference,id:"a1b48e7c-0301-4747-b4dd-b5af79956f7f",entityType:i.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},bV={type:i.GenericReference,id:"487c9235-be95-4c96-b9b5-2714b374a277",entityType:i.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},vV={type:i.GenericReference,id:"f6471f4f-b269-46fa-80ec-885e87a449c2",entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69",entityType:i.ArgumentDeclaration},IV={type:i.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:i.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},Mb={id:"08f36e2b-bad2-425c-8129-93560bec8488",version:1,type:i.InputMap,declaration:cs,name:null,description:null,readsValue:vV,defaultValue:null,index:1,parent:IV},DV={type:i.Operation,id:"8f2094c0-e27e-465e-9280-112da0de9019",declaration:Ki,version:1,inputs:[Mb,pV],outputs:[RV],process:null,calledByError:[],calledByEntry:[gV],calledBySuccess:[],successCalls:[Bb],errorCalls:[],error:null,x:0,y:0,parent:bV},AV={type:i.GenericReference,id:"c2e0e9b4-aa46-4974-bf8a-886b737b12fb",entityType:i.ArgumentDeclaration,entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69"},SV={like:!1,inferred:!1,id:"a4279518-3bf3-44b7-a2ac-65142ca37f1c",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:AV},OV={type:i.GenericReference,id:"dc273f24-164b-4943-82f9-589b237141e2",entityType:i.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},_b={constant:!0,id:"a4106e8e-ec4f-4633-a636-09ae73135f69",type:i.ArgumentDeclaration,version:1,name:"Company Name to check",description:"The name of the company to check in the government registry",dataType:SV,defaultValue:null,implements:null,required:!1,writesValues:[Mb],index:0,parent:OV},PV={type:i.GenericReference,id:"2178a10c-1cc0-4dad-97c3-0941be6c9738",entityType:i.Project,entityId:H},Vb={type:i.FunctionDeclaration,id:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d",version: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:[_b],calls:[DV,dV],returnStatements:[Ld,wb],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:PV},CV={type:i.GenericReference,id:"4d66c53c-f0f7-496a-9955-1e6c8533c5e0",entityType:i.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},wV={type:i.GenericReference,id:"6fa0c8e0-d104-4b4d-a035-d4f6e0c49f09",entityType:i.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},BV={type:i.GenericReference,id:"146408d5-5336-4877-941a-777dd5871926",entityType:i.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},MV={type:i.GenericReference,id:"34ae8f8c-548d-4654-984a-6f36affdaf49",entityType:i.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},Nb={id:"69b1215d-9ebf-4274-b9cb-d4a5888f5122",version:1,type:i.InputMap,declaration:_b,name:null,description:null,readsValue:BV,defaultValue:null,index:0,parent:MV},_V={type:i.GenericReference,id:"07540a94-dda1-40b3-8452-f209bdc87b88",entityType:i.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},VV={type:i.GenericReference,id:"eaddf12a-a995-429e-90a0-13bf06efeb28",entityType:i.VariableDeclaration,entityId:"faaf3bf6-917d-40d7-aee6-5164f6646c4b"},NV={like:!1,inferred:!1,id:"7fdaf943-3ffb-48e0-b766-b86cc24090cf",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Sn,asType:!1,isList:!1,parent:VV},LV={type:i.GenericReference,id:"030fb5c5-af4d-4c85-8cf0-e99edd50d2bd",entityType:i.OutputMap,entityId:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},GV={type:i.GenericReference,id:"a8b618e9-c68c-48c1-8bd6-ef47c87d699e",entityType:i.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},$V={type:i.GenericReference,id:"is-company-name-valid-var-called-by-ref",entityType:i.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},Lb={constant:!0,required:!0,type:i.VariableDeclaration,id:"faaf3bf6-917d-40d7-aee6-5164f6646c4b",version:1,name:"Is name valid",description:"Whether the company name is valid",defaultValue:null,dataType:NV,readsValue:LV,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[$V],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:GV},FV={id:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:i.OutputMap,version:1,declaration:Nd,defaultValue:null,writesValues:[Lb],index:0,parent:_V},UV={type:i.FunctionCall,id:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",version:1,declaration:Vb,inputs:[Nb],outputs:[FV],calledByError:[],calledByEntry:[],process:null,calledBySuccess:[CV],successCalls:[Lb],errorCalls:[],error:null,x:0,y:0,parent:wV},xV={type:i.GenericReference,id:"9d0b87b4-bfed-4e02-9e84-6831c21feae2",entityType:i.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},jV={type:i.GenericReference,id:"74345f4f-e80d-48be-adff-d12fcea25bec",entityType:i.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},kV={type:i.GenericReference,id:"b39279ea-969a-4efb-a9ec-353bfd13db65",entityType:i.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},qV={type:i.GenericReference,id:"549db613-f225-4c5b-9634-7d096717f0ff",entityType:i.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},Gb={id:"358e242c-7448-442e-ab8b-fd7fa119ea71",version:1,type:i.InputMap,declaration:gr.inputs[0],name:null,description:null,readsValue:kV,defaultValue:null,index:0,parent:qV},JV={type:i.Condition,id:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b",version:1,declaration:gr,inputs:[Gb],calledByError:[],calledByEntry:[xV],calledBySuccess:[],successCalls:[UV],errorCalls:[],x:0,y:0,parent:jV},WV={type:i.GenericReference,id:"43ba1e25-f805-488f-8ae8-c58bb6215b2f",entityType:i.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},YV={type:i.GenericReference,id:"eb091bed-507f-4a1e-93b5-7cd2fccfe002",entityType:i.VariableDeclaration,entityId:"9c928995-0dd5-4f97-9962-56b343bc8a45"},HV={like:!1,inferred:!1,id:"d64152ea-831f-4426-9506-a39bfa170513",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:vi,asType:!1,isList:!1,parent:YV},zV={type:i.GenericReference,id:"7e79c29f-f7bd-441a-a77e-c627604dae94",entityType:i.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},ZV={type:i.GenericReference,id:"8995ce5f-d5cf-4341-a8b1-5c046cc78b89",entityType:i.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},KV={type:i.GenericReference,id:"new-company-bank-account-var-decl-1-called-by-ref",entityType:i.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},$b={constant:!0,required:!0,type:i.VariableDeclaration,id:"9c928995-0dd5-4f97-9962-56b343bc8a45",version:1,name:"New bank account",description:"The new entity value representing the new bank account of the company",defaultValue:null,dataType:HV,readsValue:ZV,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[KV],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:zV},XV={type:i.GenericReference,id:"9a4887bf-d50d-43e4-bdd5-a5262f65f04b",entityType:i.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},QV={like:!1,inferred:!1,id:"ae148c06-3143-49e9-9614-c3aca3f6fa7b",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:vi,asType:!1,isList:!1,parent:XV},eN={constant:!0,id:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071",type:i.ArgumentDeclaration,version:1,name:"New bank account",description:"The new bank account of the company",dataType:QV,implements:null,defaultValue:null,required:!0,index:1,writesValues:[$b],parent:WV},tN={type:i.GenericReference,id:"caec9cf8-3133-48d4-a390-114fa71b2933",entityType:i.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},nN={type:i.GenericReference,id:"cebcbad8-ca87-4c4b-be8a-312293d49892",entityType:i.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},rN={type:i.GenericReference,id:"7b8ccfe5-f9cd-4776-a19b-80c689bbe3df",entityType:i.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},iN={like:!1,inferred:!1,id:"2a6b4703-ac8d-4d25-8abd-48a115577fec",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:rN},aN={constant:!0,id:"c6cf620c-1eee-4919-8578-1a0b6c088551",type:i.ArgumentDeclaration,version:1,name:"New company name",description:null,dataType:iN,implements:null,defaultValue:null,required:!0,index:0,writesValues:[Gb,Nb],parent:nN},sN={type:i.FunctionDeclaration,id:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84",version:1,name:"Company changed event",description:"The event that is triggered when a company is changed",returnStatements:[],collapsed:!1,inputs:[aN,eN],calls:[JV,$b],index:1,private:!1,implements:null,x:0,y:0,parent:tN},oN={type:i.GenericReference,id:"employee-manager-property-data-type-entity-ref-id",entityType:i.DefinitionEntity,entityId:"employee-entity-id"},lN={type:i.GenericReference,id:"employee-manager-property-data-type-parent-ref-id",entityType:i.Property,entityId:"employee-manager-property-id"},dN={like:!1,inferred:!1,id:"employee-manager-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:oN,isList:!1,asType:!1,parent:lN},cN={type:i.GenericReference,id:"employee-manager-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:"employee-entity-id"},uN={constant:!1,required:!0,hidden:!1,type:i.Property,id:"employee-manager-property-id",version:1,name:"Manager",description:"The manager of the employee",index:0,implements:null,private:!1,static:!1,defaultValue:null,dataType:dN,abstract:!1,parent:cN},pN={type:i.GenericReference,id:"employee-start-date-property-data-type-parent-ref-id",entityType:i.Property,entityId:"employee-start-date-property-id"},yN={like:!1,inferred:!1,id:"employee-start-date-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ln,isList:!1,asType:!1,parent:pN},hN={type:i.GenericReference,id:"employee-start-date-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:"employee-entity-id"},fN={constant:!1,hidden:!1,required:!0,type:i.Property,id:"employee-start-date-property-id",version: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:yN,abstract:!1,parent:hN},mN={type:i.GenericReference,id:"employee-department-property-ref-id",entityType:i.Property,entityId:"employee-department-property-id"},TN={like:!1,inferred:!1,id:"employee-department-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:On,isList:!1,asType:!1,options:["Human Resources","Finance","IT","Sales","Marketing","Customer Service","Logistics","Product"],parent:mN},EN={type:i.GenericReference,id:"employee-department-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:"employee-entity-id"},RN={constant:!1,hidden:!1,required:!0,type:i.Property,id:"employee-department-property-id",version: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:TN,abstract:!1,parent:EN},gN={type:i.GenericReference,id:"employee-prototype-parent-ref-id",entityType:i.Project,entityId:H},Yt={type:i.DefinitionEntity,id:"employee-entity-id",version:1,name:"Employee",description:"A entity that represents an employee in the company",properties:[RN,fN,uN],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[bt],x:0,y:0,parent:gN},bN={type:i.GenericReference,id:"dec8fbfe-9124-41fd-9f1c-5b2f07cfd6ba",entityType:i.Property,entityId:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd"},vN={like:!1,inferred:!1,id:"bc0b8979-6c43-4d47-a712-6742b89e3c00",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,isList:!1,asType:!1,parent:bN},IN={type:i.GenericReference,id:"4f8c0a05-466e-4672-b4c4-6bd408c0be9a",entityType:i.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},DN={constant:!1,hidden:!1,required:!0,type:i.Property,id:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd",version:1,name:"Company Name",private:!1,static:!1,description:"The name of the company",index:0,defaultValue:null,implements:null,dataType:vN,abstract:!1,parent:IN},AN={type:i.GenericReference,id:"95173fe0-a6e6-443c-94f3-f7c5cf171fcf",entityType:i.Property,entityId:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3"},SN={like:!1,inferred:!1,id:"ddbb6f5c-0cf4-41fb-83b3-b6c47c0e338d",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:vi,isList:!1,asType:!1,parent:AN},ON={type:i.GenericReference,id:"6a9a0b72-a05d-4169-b3f3-5afb01e8d0df",entityType:i.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},Gd={constant:!1,hidden:!1,required:!0,type:i.Property,id:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3",version:1,name:"Bank account",description:"The bank account of the company",index:1,implements:null,static:!1,private:!1,defaultValue:null,dataType:SN,abstract:!1,parent:ON},PN={type:i.GenericReference,id:"62892cc6-d227-4088-90d3-ae7c15ed4af4",entityType:i.Property,entityId:"19a31727-1fba-40a5-be25-18e0f149d5cb"},CN={like:!1,inferred:!1,id:"1f7629df-dc29-4c89-8369-c6d043e97a9e",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:bt,isList:!1,asType:!1,parent:PN},wN={type:i.GenericReference,id:"89384206-fd5a-4f0a-849c-f777473e5773",entityType:i.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},BN={constant:!1,hidden:!1,required:!0,type:i.Property,id:"19a31727-1fba-40a5-be25-18e0f149d5cb",version:1,name:"Company Owner",description:"The person that owns the company",index:2,static:!1,implements:null,defaultValue:null,dataType:CN,private:!0,abstract:!1,parent:wN},MN={type:i.GenericReference,id:"4d2ffb6c-5f38-436e-8339-fb9878ac2b5e",entityType:i.Property,entityId:"f8310850-a87e-405c-b182-4f1d5fa49240"},_N={like:!1,inferred:!1,id:"ad44250b-40c2-48f7-a480-381fa938f562",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Yt,isList:!0,asType:!1,parent:MN},VN={type:i.GenericReference,id:"aa5d4eee-6fac-4e72-bf21-9c8750024541",entityType:i.DefinitionEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},NN={constant:!1,hidden:!1,required:!0,type:i.Property,id:"f8310850-a87e-405c-b182-4f1d5fa49240",version:1,name:"Employees",description:null,index:3,defaultValue:null,dataType:_N,implements:null,private:!0,static:!1,abstract:!1,parent:VN},LN={id:"company-prototype-primary-key-property-data-type-ref-id",type:i.GenericReference,entityId:"company-prototype-primary-key-property-id",entityType:i.Property},GN={id:"company-prototype-primary-key-property-ref-id",type:i.GenericReference,entityId:"company-prototype-primary-key-property-id",entityType:i.Property},$N={like:!1,inferred:!1,id:"company-prototype-primary-key-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Pn,asType:!1,parent:GN},FN={id:"company-prototype-primary-key-property-parent-ref-id",type:i.GenericReference,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",entityType:i.DefinitionEntity},UN={constant:!1,hidden:!1,required:!0,id:"company-prototype-primary-key-property-id",name:"Identifier",version:1,type:i.Property,private:!1,abstract:!1,implements:pi,static:!1,index:4,defaultValue:{id:"company-prototype-primary-key-property-data-type-default-value-id",type:i.LiteralValue,version:1,name:C.UUID,value:null,parent:LN,autogeneration:{type:ze.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},dataType:$N,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:FN},xN={type:i.GenericReference,id:"e3c03b6b-2ea0-4d99-865d-5e6a348672d0",entityType:i.Project,entityId:H},Ht={type:i.DefinitionEntity,id:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:1,name:"Company",description:null,properties:[DN,Gd,BN,NN,UN],static:!1,abstract:!1,abstractMethods:[],methods:[D_,sN],extends:[],implements:[st,Ft],x:0,y:0,parent:xN},jN={type:i.GenericReference,id:"ffcad334-138d-4b67-8fb3-5f0e6f5fefbd",entityType:i.Project,entityId:H},$d={type:i.FunctionDeclaration,id:"0f89260c-8c58-4639-8629-d9ea5ab40ba7",version:1,name:"Show popup",description:null,inputs:[],calls:[],returnStatements:[],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:jN};i.GenericReference,i.DataType;const kN={id:"cron-job-entity-expression-property-ref-id",type:i.GenericReference,entityId:"cron-job-entity-expression-property-id",entityType:i.Property},qN={like:!1,inferred:!1,id:"cron-job-entity-expression-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parent:kN},JN={id:"cron-job-entity-ref-id",type:i.GenericReference,entityId:"cron-job-entity-id",entityType:i.DefinitionEntity},WN={constant:!1,hidden:!1,required:!0,id:"cron-job-entity-expression-property-id",type:i.Property,version:1,name:"Cron expression",description:"The cron expression that defines when the cron job should be triggered",defaultValue:null,dataType:qN,implements:null,static:!0,private:!1,abstract:!1,index:0,parent:JN},YN={id:"cron-job-entity-trigger-show-popup-func-call-called-by-ref-one-id",type:i.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",entityType:i.FunctionDeclaration},HN={id:"cron-job-entity-trigger-show-popup-func-call-parent-ref-id",type:i.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",entityType:i.FunctionDeclaration},zN={id:"cron-job-entity-trigger-show-popup-func-call-id",version:1,type:i.FunctionCall,declaration:$d,inputs:[],outputs:[],process:null,successCalls:[],calledByError:[],calledByEntry:[YN],calledBySuccess:[],errorCalls:[],error:null,x:0,y:0,parent:HN},ZN={id:"cron-job-entity-trigger-func-decl-parent-ref-id",type:i.GenericReference,entityId:"cron-job-entity-id",entityType:i.DefinitionEntity},KN={id:"cron-job-entity-trigger-func-decl-id",version:1,type:i.FunctionDeclaration,name:"Scheduled trigger",description:"The function that is called when the cron job is triggered",inputs:[],private:!1,implements:ud,calls:[zN],collapsed:!1,returnStatements:[],index:0,x:0,y:0,parent:ZN},XN={id:"cron-job-entity-parent-ref-id",type:i.GenericReference,entityId:H,entityType:i.Project},QN={id:"cron-job-entity-id",version:1,type:i.DefinitionEntity,name:"Run at 12pm on Christmas day",description:"A cron job that runs at 12pm on Christmas day",properties:[WN],static:!0,abstract:!1,abstractMethods:[],extends:[Ss],implements:[],methods:[KN],x:0,y:0,parent:XN},eL={type:i.GenericReference,id:"52dbd85c-48b1-462a-8205-2437d6fb1cb4",entityType:i.Project,entityId:H},tL={type:i.DefinitionEntity,id:"6f0908c2-09c6-4a8b-8f43-d2467fe6fb39",version:1,name:"Get bank all bank accounts",description:null,properties:[],static:!0,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[ra],x:0,y:0,parent:eL},io="f558fbf8-67de-4545-9804-6ae621e0b2d4",nL={id:"getCompanyByIdEndpointPathParamsVariableDataTypeRef",type:i.GenericReference,entityType:i.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},rL={id:"getCompanyByIdEndpointPathParamsArgumentDeclarationRef",type:i.GenericReference,entityType:i.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},iL={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathParamsVariableDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:J,asType:!1,parent:rL},aL={id:"getCompanyByIdEndpointReachedEntityEventRef",type:i.GenericReference,entityType:i.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},sL={id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeRef",type:i.GenericReference,entityType:i.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},oL={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclarationRef",type:i.GenericReference,entityType:i.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},lL={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestHeadersVariableDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:it,asType:!1,parent:oL},dL={constant:!0,id:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:i.ArgumentDeclaration,writesValues:[],name:"Request headers",defaultValue:{id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeDefaultValueId",type:i.LiteralValue,version:1,name:C.KeyValue,value:{},parent:sL,autogeneration:null,valueAsType:null},dataType:lL,implements:ed,required:!0,index:0,parent:aL},cL={id:"getCompanyByIdEndpointReachedEntityEventRefTwo",type:i.GenericReference,entityType:i.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},uL={constant:!0,id:"getCompanyByIdEndpointPathParamsArgumentDeclaration",type:i.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,name:"Path parameters",writesValues:[],defaultValue:{id:"getCompanyByIdEndpointPathParamsVariableDataTypeDefaultValueId",type:i.LiteralValue,version:1,name:C.KeyValue,value:{},parent:nL,autogeneration:null,valueAsType:null},dataType:iL,implements:td,required:!0,index:1,parent:cL},pL={id:"getCompanyByIdEndpointReachedEntityEventRefThree",type:i.GenericReference,entityType:i.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},yL={id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeRef",type:i.GenericReference,entityType:i.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},hL={id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclarationRef",type:i.GenericReference,entityType:i.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},fL={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestQueryParamsVariableDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,asType:!1,entity:J,parent:hL},mL={constant:!0,id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration",version: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:i.ArgumentDeclaration,writesValues:[],name:"Request query params",defaultValue:{id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeDefaultValueId",type:i.LiteralValue,version:1,name:C.KeyValue,value:{},parent:yL,autogeneration:null,valueAsType:null},dataType:fL,implements:nd,required:!0,index:2,parent:pL},TL={id:"getCompanyByIdEndpointReachedEntityEventRefFour",type:i.GenericReference,entityType:i.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},EL={id:"getCompanyByIdEndpointRequestBodyArgumentDeclarationRef",type:i.GenericReference,entityType:i.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestBodyArgumentDeclaration"},RL={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestBodyVariableDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:it,parent:EL},gL={constant:!0,id:"getCompanyByIdEndpointRequestBodyArgumentDeclaration",version:1,description:"The main data payload of the request.",type:i.ArgumentDeclaration,writesValues:[],name:"Request body",defaultValue:null,dataType:RL,implements:rd,index:3,required:!0,parent:TL},bL={id:"getCompanyByIdEndpointResponseCodeReturnDeclarationRef",type:i.GenericReference,entityType:i.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseCodeReturnDeclaration"},vL={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!1,parent:bL},IL={id:"getCompanyByIdEndpointReturnStatementRef",type:i.GenericReference,entityType:i.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},DL={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseCodeReturnDeclaration",version: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:i.ReturnDeclaration,name:"Response code",defaultValue:null,dataType:vL,implements:id,readsValue:null,required:!0,index:0,parent:IL},AL={id:"getCompanyByIdEndpointResponseHeadersDataTypeRef",type:i.GenericReference,entityType:i.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},SL={id:"getCompanyByIdEndpointResponseHeadersReturnDeclarationRef",type:i.GenericReference,entityType:i.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},OL={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseHeadersDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,entity:it,asType:!1,parent:SL},PL={id:"getCompanyByIdEndpointReturnStatementRefTwo",type:i.GenericReference,entityType:i.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},CL={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseHeadersReturnDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:i.ReturnDeclaration,name:"Response headers",defaultValue:{id:"getCompanyByIdEndpointResponseHeadersDataTypeDefaultValueId",type:i.LiteralValue,version:1,name:C.KeyValue,value:{},parent:AL,autogeneration:null,valueAsType:null},dataType:OL,implements:ad,readsValue:null,required:!0,index:1,parent:PL},wL={id:"getCompanyByIdEndpointResponseBodyReturnDeclarationRef",type:i.GenericReference,entityType:i.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseBodyReturnDeclaration"},BL={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseBodyDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,asType:!1,entity:it,parent:wL},ML={id:"getCompanyByIdEndpointReturnStatementRefThree",type:i.GenericReference,entityType:i.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},_L={constant:!0,isError:!1,id:"getCompanyByIdEndpointResponseBodyReturnDeclaration",version:1,description:"The main data payload of the response.",type:i.ReturnDeclaration,name:"Response body",implements:sd,defaultValue:null,dataType:BL,readsValue:null,required:!0,index:2,parent:ML},VL={id:"getCompanyByIdEndpointReturnStatementCallerRef",type:i.GenericReference,entityId:"getCompanyByIdEndpointReachedEntityEvent",entityType:i.FunctionDeclaration},NL={id:"getCompanyByIdEndpointReachedEntityEventRefFive",type:i.GenericReference,entityType:i.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},LL={id:"getCompanyByIdEndpointReturnStatement",type:i.ReturnStatement,version:1,outputs:[DL,CL,_L],calledByError:[],calledByEntry:[VL],calledBySuccess:[],throws:null,x:0,y:0,parent:NL},GL={id:"endpointBuiltInBaseEntityRefFour",type:i.GenericReference,entityType:i.BuiltInBaseEntity,entityId:io},$L={id:"getCompanyByIdEndpointReachedEntityEvent",name:"Endpoint reached",version:1,type:i.FunctionDeclaration,inputs:[dL,uL,mL,gL],returnStatements:[LL],description:"Fired when the endpoint is reached.",calls:[],collapsed:!1,implements:od,index:0,private:!1,x:0,y:0,parent:GL},FL={id:"getCompanyByIdEndpointPathPropertyDataTypeRef",type:i.GenericReference,entityType:i.Property,entityId:"getCompanyByIdEndpointPathProperty"},UL={id:"getCompanyByIdEndpointPathPropertyRef",type:i.GenericReference,entityType:i.Property,entityId:"getCompanyByIdEndpointPathProperty"},xL={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathPropertyDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:J,asType:!1,parent:UL},jL={id:"getCompanyByIdEndpointBaseEntityRefTwo",type:i.GenericReference,entityType:i.DefinitionEntity,entityId:io},kL={constant:!1,id:"getCompanyByIdEndpointPathProperty",hidden:!1,required:!0,name:"Path",version:1,type:i.Property,private:!1,abstract:!1,static:!0,implements:Xl,defaultValue:{id:"getCompanyByIdEndpointPathPropertyDataTypeDefaultValueId",type:i.LiteralValue,version:1,name:C.String,value:"/company/{id}",parent:FL,valueAsType:null,autogeneration:null},dataType:xL,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:jL},qL={id:"getCompanyByIdEndpointMethodPropertyDataTypeRef",type:i.GenericReference,entityType:i.Property,entityId:"getCompanyByIdEndpointMethodProperty"},JL={id:"getCompanyByIdEndpointMethodPropertyRef",type:i.GenericReference,entityType:i.Property,entityId:"getCompanyByIdEndpointMethodProperty"},WL={like:!1,inferred:!1,id:"getCompanyByIdEndpointMethodPropertyDataType",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:On,isList:!0,asType:!1,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:JL},YL={id:"getCompanyByIdEndpointBaseEntityRefThree",type:i.GenericReference,entityType:i.DefinitionEntity,entityId:io},HL={constant:!1,hidden:!1,required:!0,id:"getCompanyByIdEndpointMethodProperty",name:"Method",version:1,type:i.Property,private:!1,abstract:!1,static:!0,implements:Ql,index:0,defaultValue:{id:"getCompanyByIdEndpointMethodPropertyDataTypeDefaultValueId",type:i.LiteralValue,version:1,value:"GET",name:C.Enum,parent:qL,valueAsType:null,autogeneration:null},dataType:WL,description:null,parent:YL},zL={type:i.GenericReference,id:"6a905153-8aa8-4424-bd7b-6415731a2725",entityType:i.Project,entityId:H},ZL={type:i.DefinitionEntity,id:io,version:1,name:"Get given company data by id",description:null,properties:[kL,HL],methods:[$L],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[ra],x:0,y:0,parent:zL},KL={id:"plant-prototype-database-property-ref-id",type:i.GenericReference,entityId:"plant-prototype-database-property-id",entityType:i.Property},XL={id:"plant-prototype-database-property-data-type-default-value-parent-ref-id",type:i.GenericReference,entityId:"plant-prototype-database-property-id",entityType:i.Property},QL={like:!1,inferred:!1,id:"plant-prototype-database-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:un,asType:!1,parent:KL},e0={id:"plant-prototype-database-property-parent-ref-id",type:i.GenericReference,entityId:"plant-entity-id",entityType:i.DefinitionEntity},t0={constant:!1,hidden:!1,required:!0,id:"plant-prototype-database-property-id",name:"Database",version:1,type:i.Property,private:!1,abstract:!1,implements:ui,static:!0,index:0,defaultValue:{id:"plant-prototype-database-property-data-type-default-value-id",type:i.LiteralValue,version:1,value:null,name:C.EntityTemplate,valueAsType:Bd,autogeneration:null,parent:XL},dataType:QL,description:"The database that the entity belongs to.",parent:e0},n0={type:i.GenericReference,id:"plant-name-property-ref-id",entityType:i.Property,entityId:"plant-name-property-id"},r0={like:!1,inferred:!1,id:"plant-name-property-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:n0},i0={type:i.GenericReference,id:"animal-name-property-parent-ref-id",entityType:i.DefinitionEntity,entityId:"plant-entity-id"},a0={constant:!1,hidden:!1,required:!0,type:i.Property,id:"plant-name-property-id",version:1,name:"Name",description:"The name of the plant",defaultValue:null,implements:null,static:!1,private:!1,index:0,dataType:r0,abstract:!1,parent:i0},s0={type:i.GenericReference,id:"plant-prototype-parent-ref-id",entityType:i.Project,entityId:H},o0={type:i.DefinitionEntity,id:"plant-entity-id",version:1,name:"Plant",description:"A living creature that is not an animal",abstract:!1,static:!1,abstractMethods:[],properties:[t0,a0],methods:[],extends:[],implements:[st],x:0,y:0,parent:s0},l0={id:"product-prototype-database-property-ref-id",type:i.GenericReference,entityId:"product-prototype-database-property-id",entityType:i.Property},d0={id:"product-prototype-database-property-data-type-default-value-parent-ref-id",type:i.GenericReference,entityId:"product-prototype-database-property-id",entityType:i.Property},c0={like:!1,inferred:!1,id:"product-prototype-database-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:un,asType:!1,parent:l0},u0={id:"product-prototype-database-property-parent-ref-id",type:i.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",entityType:i.DefinitionEntity},p0={constant:!1,hidden:!1,required:!0,id:"product-prototype-database-property-id",name:"Database",version:1,type:i.Property,private:!1,abstract:!1,implements:ui,static:!0,index:0,defaultValue:{id:"product-prototype-database-property-data-type-default-value-id",type:i.LiteralValue,version:1,value:null,name:C.EntityTemplate,valueAsType:Md,autogeneration:null,parent:d0},dataType:c0,description:"The database that the entity belongs to.",parent:u0},y0={type:i.GenericReference,id:"13a4045e-dcb0-4159-8d33-10a646078b5a",entityType:i.Property,entityId:"d519c26a-15b8-40d8-ad09-13fa9342e9ba"},h0={like:!1,inferred:!1,id:"7449779e-1d4e-409c-81c6-4b611336ed18",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,isList:!1,asType:!1,parent:y0},f0={type:i.GenericReference,id:"0969562f-d836-406f-8b48-dd9d417fbe72",entityType:i.DefinitionEntity,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c"},m0={constant:!1,hidden:!1,required:!0,type:i.Property,id:"d519c26a-15b8-40d8-ad09-13fa9342e9ba",version:1,name:"Name",description:"The name of the product",index:0,implements:null,static:!1,private:!1,defaultValue:null,dataType:h0,abstract:!1,parent:f0},T0={type:i.GenericReference,id:"833a5425-7bd0-41dd-9e97-e018acce9592",entityType:i.Project,entityId:H},E0={id:"product-prototype-primary-key-property-data-type-ref-id",type:i.GenericReference,entityId:"product-prototype-primary-key-property-id",entityType:i.Property},R0={id:"product-prototype-primary-key-property-ref-id",type:i.GenericReference,entityId:"product-prototype-primary-key-property-id",entityType:i.Property},g0={like:!1,inferred:!1,id:"product-prototype-primary-key-property-data-type-id",version:1,type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,entity:Pn,asType:!1,parent:R0},b0={id:"product-prototype-primary-key-property-parent-ref-id",type:i.GenericReference,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",entityType:i.DefinitionEntity},v0={constant:!1,hidden:!1,required:!0,id:"product-prototype-primary-key-property-id",name:"Identifier",version:1,type:i.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,defaultValue:{id:"product-prototype-primary-key-property-data-type-default-value-id",type:i.LiteralValue,version:1,name:C.UUID,value:null,parent:E0,autogeneration:{type:ze.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},dataType:g0,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:b0},I0={type:i.DefinitionEntity,id:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:1,name:"Product",description:"A product that can be sold",implements:[st,Ft],extends:[],abstract:!1,static:!1,abstractMethods:[],properties:[v0,p0,m0],methods:[],x:0,y:0,parent:T0},Di="project-loaded-event-id",_n="get-bitcoin-price-http-call-operation-id",Fb="get-bitcoin-price-http-call-response-body-id",ao="validate-bitcoin-price-response-operation-ids",D0={type:i.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-reads-value-ref-id",entityType:i.OutputMap,entityId:Fb},A0={type:i.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-parent-ref-id",entityType:i.Operation,entityId:ao},Ub={id:"validate-bitcoin-data-to-validate-input-map-id",type:i.InputMap,version:1,declaration:fr.inputs[1],name:null,description:null,readsValue:D0,defaultValue:null,index:0,parent:A0},S0={type:i.GenericReference,id:"validate-bitcoin-type-to-match-input-map-default-value-parent-ref-id",entityType:i.InputMap,entityId:"validate-bitcoin-type-to-match-input-map-id"},O0={type:i.GenericReference,id:"validate-bitcoin-type-to-match-input-map-parent-ref-id",entityType:i.Operation,entityId:ao},P0={id:"validate-bitcoin-type-to-match-input-map-id",type:i.InputMap,version:1,declaration:fr.inputs[0],name:null,description:null,readsValue:null,defaultValue:{id:"validate-bitcoin-type-to-match-input-map-default-value-id",type:i.LiteralValue,version:1,name:C.EntityTemplate,valueAsType:Db,value:null,parent:S0,autogeneration:null},index:0,parent:O0},C0={type:i.GenericReference,id:"validate-bitcoin-validated-entity-output-map-parent-ref-id",entityType:i.Operation,entityId:ao},w0={id:"validate-bitcoin-validated-entity-output-map-id",type:i.OutputMap,version:1,defaultValue:null,declaration:fr.outputs[0],writesValues:[],index:0,parent:C0},B0={type:i.GenericReference,id:"validate-bitcoin-price-response-operation-parent-ref-id",entityType:i.GlobalEvent,entityId:Di},M0={type:i.GenericReference,id:"validate-bitcoin-price-response-operation-called-by-ref-id",entityType:i.Operation,entityId:_n},_0={type:i.Operation,id:ao,version:1,declaration:fr,inputs:[P0,Ub],outputs:[w0],process:null,successCalls:[],errorCalls:[],error:null,x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[M0],parent:B0},V0={type:i.GenericReference,id:"96edb661-3f36-406c-8921-f1679dd796a3",entityType:i.FunctionCall,entityId:_n},N0={id:"c93e1393-9b5e-4de2-b8da-7eae647d715a",version:1,type:i.InputMap,declaration:ps,name:null,description:null,readsValue:null,defaultValue:null,index:0,parent:V0},L0={type:i.GenericReference,id:"40312b28-71b8-4b01-a654-58b87191939d",entityType:i.FunctionCall,entityId:_n},G0={type:i.GenericReference,id:"6ea96c7d-02a7-4971-82ad-2f32a0fec8b4",entityType:i.InputMap,entityId:"9f21cbac-5a83-4983-8923-9224ffd3ba9f"},$0={id:"9f21cbac-5a83-4983-8923-9224ffd3ba9f",version:1,type:i.InputMap,declaration:ys,name:null,description:null,readsValue:null,defaultValue:{id:"get-bitcoin-price-http-request-url-argument-default-value-id",type:i.LiteralValue,version:1,value:"https://api.coindesk.com/v1/bpi/currentprice.json",name:C.String,parent:G0,valueAsType:null,autogeneration:null},index:1,parent:L0},F0={type:i.GenericReference,id:"2610bf4a-c8a2-4746-b6cc-eb15f7fa8e9c",entityType:i.FunctionCall,entityId:_n},U0={id:"ffb3cd9d-c955-4104-bc7b-299120fe4ede",version:1,type:i.InputMap,declaration:hs,name:null,description:null,readsValue:null,defaultValue:null,index:2,parent:F0},x0={type:i.GenericReference,id:"bfd29a6a-671a-448c-9f2f-f8c7e4ad8349",entityType:i.FunctionCall,entityId:_n},j0={id:"412bf1f3-1a8e-4665-a95f-82117540e34e",version:1,type:i.InputMap,declaration:fs,name:null,description:null,readsValue:null,defaultValue:null,index:3,parent:x0},k0={type:i.GenericReference,id:"616a15f3-c224-4b11-b95c-63314edef409",entityType:i.FunctionCall,entityId:_n},q0={id:"4dd4651c-02e4-45f1-b50f-824f3bcb1648",version:1,type:i.OutputMap,defaultValue:null,declaration:Ts,writesValues:[],index:1,parent:k0},J0={type:i.GenericReference,id:"28793b68-4d7e-4826-aee1-f201a3499faf",entityType:i.FunctionCall,entityId:_n},W0={id:"94fe9d35-4dd4-4729-a50c-5283ccd7e661",version:1,type:i.OutputMap,defaultValue:null,declaration:ms,writesValues:[],index:0,parent:J0},Y0={type:i.GenericReference,id:"f13e04b2-49b4-4c69-85b8-cbbafafa3524",entityType:i.FunctionCall,entityId:_n},H0={id:Fb,type:i.OutputMap,defaultValue:null,version:1,declaration:Es,writesValues:[Ub],index:2,parent:Y0},z0={type:i.GenericReference,id:"6148d6d0-caaa-45fc-b601-ff2493dfc60f",entityType:i.GlobalEvent,entityId:Di},Z0={type:i.GenericReference,id:"b115f084-807b-44b3-ae01-b69cc342f761",entityType:i.GlobalEvent,entityId:Di},K0={type:i.Operation,id:_n,version:1,declaration:Xi,inputs:[N0,$0,U0,j0],outputs:[W0,q0,H0],process:null,parent:Z0,calledByError:[],calledByEntry:[z0],calledBySuccess:[],successCalls:[_0],errorCalls:[],error:null,x:0,y:0},X0={type:i.GenericReference,id:"24e76019-3f94-475b-91ce-297f76bbc224",entityType:i.GlobalEvent,entityId:Di},Q0={type:i.GenericReference,id:"0eac8e29-cdf2-42f8-8ea7-ad76d4d79abe",entityType:i.GlobalEvent,entityId:Di},e1={process:null,type:i.FunctionCall,id:"2d2e7593-bfbf-457c-a607-5fce18eef457",version:1,declaration:$d,inputs:[],outputs:[],calledByError:[],calledByEntry:[X0],calledBySuccess:[],parent:Q0,successCalls:[],errorCalls:[],error:null,x:0,y:0},t1={id:"793b5999-a9da-47fb-9665-0c17ebc6d5c9",type:i.GenericReference,entityType:i.Project,entityId:H},n1={type:i.GlobalEvent,id:Di,version:1,name:Dn.PROJECT_PUBLICATION_COMPLETED,description:null,returnStatements:[],collapsed:!1,implements:Ps,parent:t1,inputs:[],calls:[e1,K0],x:0,y:0},Ut="abort-execution-func-declaration-id",Aa="abort-execution-func-exec-var-declaration-id",Fd="abort-execution-func-small-wait-op-id",Ud="abort-execution-func-long-wait-op-id",xb="abort-execution-func-long-wait-process-output-id",jb="abort-execution-func-exec-var-instance-write-id",kb="abort-execution-func-long-wait-return-stmt-id",qb="abort-execution-func-small-wait-return-stmt-id",r1="abort-execution-func-exec-var-instance-abort-call-id",xd="abort-execution-func-exec-var-instance-abort-internal-call-id",jd="abort-execution-func-exec-second-wait-op-id",i1={type:i.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-parent-ref-id",entityType:i.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},a1={type:i.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",entityType:i.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},s1={like:!1,inferred:!1,id:"short-wait-return-statement-returned-hello-string-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:i1},o1={type:i.GenericReference,id:"short-wait-return-statement-returned-hello-string-parent-ref-id",entityType:i.ReturnStatement,entityId:qb},l1={constant:!0,isError:!1,id:"short-wait-return-statement-returned-hello-string-id",type:i.ReturnDeclaration,version: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:i.LiteralValue,version:1,name:C.String,value:"Hello 2",autogeneration:null,valueAsType:null,parent:a1},dataType:s1,implements:null,readsValue:null,required:!0,index:0,parent:o1},d1={type:i.GenericReference,id:"short-wait-return-statement-called-by-ref-id",entityType:i.Operation,entityId:jd},c1={type:i.GenericReference,id:"short-wait-return-statement-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Ut},Jb={type:i.ReturnStatement,id:qb,version:1,outputs:[l1],calledByError:[],calledByEntry:[],calledBySuccess:[d1],throws:null,x:0,y:0,parent:c1},u1={type:i.GenericReference,id:"second-wait-argument-default-value-parent-ref-id",entityType:i.InputMap,entityId:"second-wait-argument-map-id"},p1={type:i.GenericReference,id:"second-wait-argument-map-parent-ref-id",entityType:i.Operation,entityId:jd},y1={id:"second-wait-argument-map-id",type:i.InputMap,version:1,declaration:yr,name:null,description:null,readsValue:null,defaultValue:{id:"second-wait-argument-default-value-id",type:i.LiteralValue,version:1,value:2e3,valueAsType:null,autogeneration:null,name:C.Number,parent:u1},index:0,parent:p1},h1={type:i.GenericReference,id:"small-wait-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Ut},f1={type:i.GenericReference,id:"small-wait-called-by-ref-one-id",entityType:i.InternalCall,entityId:xd},m1={id:jd,type:i.Operation,version:1,declaration:Rt,inputs:[y1],outputs:[],process:null,successCalls:[Jb],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[f1],error:null,parent:h1},T1={type:i.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-one-id",entityType:i.VariableInstance,entityId:jb},E1={type:i.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-two-id",entityType:i.Operation,entityId:Fd},R1={type:i.GenericReference,id:"abort-exec-func-abort-call-var-instance-main-project-ref-id",entityType:i.FunctionDeclaration,entityId:Ut},g1={type:i.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id-2",entityType:i.VariableDeclaration,entityId:Aa},b1={type:i.GenericReference,id:"abort-exec-func-abort-call-var-instance-internal-call-ref-one-id",entityType:i.InternalCall,entityId:xd},v1={id:r1,type:i.VariableInstance,version:1,declaration:g1,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[b1],parent:R1},Wb={id:xd,type:i.InternalCall,version:1,inputs:[],outputs:[],declaration:pd,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[T1,E1],successCalls:[m1],errorCalls:[],error:null,index:0,parent:v1},I1={type:i.GenericReference,id:"abort-exec-func-var-write-instance-main-project-ref-id",entityType:i.FunctionDeclaration,entityId:Ut},D1={type:i.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-one-id",entityType:i.VariableDeclaration,entityId:Aa},A1={type:i.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-two-id",entityType:i.FunctionDeclaration,entityId:Ut},S1={type:i.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",entityType:i.VariableDeclaration,entityId:Aa},O1={type:i.GenericReference,id:"abort-exec-func-var-write-instance-reads-value-ref-id",entityType:i.OutputMap,entityId:xb},kd={id:jb,type:i.VariableInstance,version:1,declaration:S1,inputs:[],outputs:[],defaultValue:null,calledByError:[],calledByEntry:[A1],calledBySuccess:[D1],successCalls:[Wb],errorCalls:[],x:0,y:0,readsValue:O1,writesValues:[],internalCalls:[],parent:I1},P1={type:i.GenericReference,id:"abort-exec-func-var-decl-datatype-parent-ref-id",entityType:i.VariableDeclaration,entityId:Aa};i.GenericReference,i.DataType;const C1={like:!1,inferred:!1,id:"abort-exec-func-var-decl-datatype-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Os,version:1,asType:!1,isList:!1,parent:P1},w1={type:i.GenericReference,id:"abort-exec-func-var-decl-main-project-ref-id",entityType:i.FunctionDeclaration,entityId:Ut},B1={type:i.GenericReference,id:"abort-exec-func-var-decl-called-by-ref-one-id",entityType:i.FunctionDeclaration,entityId:Ut},M1={constant:!0,required:!0,id:Aa,type:i.VariableDeclaration,version:1,name:"Execution in progress",description:"A variable that holds an ongoing execution to abort it if needed",defaultValue:null,dataType:C1,inputs:[],outputs:[],calledByError:[],calledByEntry:[B1],calledBySuccess:[],successCalls:[kd],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:w1},_1={type:i.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-parent-ref-id",entityType:i.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},V1={type:i.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",entityType:i.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},N1={like:!1,inferred:!1,id:"long-wait-return-statement-returned-hello-string-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,asType:!1,isList:!1,parent:_1},L1={type:i.GenericReference,id:"long-wait-return-statement-returned-hello-string-parent-ref-id",entityType:i.ReturnStatement,entityId:kb},G1={constant:!0,isError:!1,id:"long-wait-return-statement-returned-hello-string-id",type:i.ReturnDeclaration,version: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:i.LiteralValue,version:1,name:C.String,value:"Hello 1",autogeneration:null,valueAsType:null,parent:V1},dataType:N1,readsValue:null,required:!0,index:0,parent:L1},$1={type:i.GenericReference,id:"long-wait-return-statement-called-by-ref-id",entityType:i.Operation,entityId:Ud},F1={type:i.GenericReference,id:"long-wait-return-statement-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Ut},Yb={type:i.ReturnStatement,id:kb,version:1,outputs:[G1],calledByError:[],calledByEntry:[],calledBySuccess:[$1],throws:null,x:0,y:0,parent:F1},U1={type:i.GenericReference,id:"long-argument-default-value-parent-ref-id",entityType:i.InputMap,entityId:"long-argument-map-id"},Hb={type:i.GenericReference,id:"long-argument-map-parent-ref-id",entityType:i.Operation,entityId:Ud},x1={id:"long-argument-map-id",type:i.InputMap,version:1,declaration:yr,name:null,description:null,readsValue:null,defaultValue:{id:"long-argument-default-value-id",type:i.LiteralValue,version:1,value:1500,valueAsType:null,autogeneration:null,name:C.Number,parent:U1},index:0,parent:Hb},j1={type:i.GenericReference,id:"long-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Ut},k1={type:i.GenericReference,id:"long-called-by-ref-one-id",entityType:i.FunctionDeclaration,entityId:Ut},q1={id:xb,type:i.OutputMap,version:1,defaultValue:null,declaration:Cs,writesValues:[kd],index:0,parent:Hb},J1={id:Ud,type:i.Operation,version:1,declaration:Rt,inputs:[x1],outputs:[],process:q1,successCalls:[Yb],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[k1],calledBySuccess:[],error:null,parent:j1},W1={type:i.GenericReference,id:"small-wait-argument-default-value-parent-ref-id",entityType:i.InputMap,entityId:"small-wait-argument-map-id"},Y1={type:i.GenericReference,id:"small-wait-argument-map-parent-ref-id",entityType:i.Operation,entityId:Fd},H1={id:"small-wait-argument-map-id",type:i.InputMap,version:1,declaration:yr,name:null,description:null,readsValue:null,defaultValue:{id:"small-wait-argument-default-value-id",type:i.LiteralValue,version:1,value:500,valueAsType:null,autogeneration:null,name:C.Number,parent:W1},index:0,parent:Y1},z1={type:i.GenericReference,id:"small-wait-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Ut},Z1={type:i.GenericReference,id:"small-wait-called-by-ref-one-id",entityType:i.FunctionDeclaration,entityId:Ut},K1={id:Fd,type:i.Operation,version:1,declaration:Rt,inputs:[H1],outputs:[],process:null,successCalls:[Wb],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[Z1],calledBySuccess:[],error:null,parent:z1},X1={type:i.GenericReference,id:"abort-execution-func-decl-parent-ref-id",entityType:i.Project,entityId:H},zb={id:Ut,type:i.FunctionDeclaration,version:1,name:"Test aborting execution",description:"Executes a wait and then aborts the execution of that wait",inputs:[],returnStatements:[Yb,Jb],calls:[K1,M1,kd,J1],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:X1},Q1={type:i.GenericReference,id:"call-execution-abort-func-parent-ref-id",entityType:i.Project,entityId:H},eG={id:"call-execution-abort-func-id",type:i.FunctionCall,version:1,declaration:zb,inputs:[],process:null,outputs:[],successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:Q1},so="manual-hello-world-loop-func-decl-id",Zb="manual-hello-world-loop-func-return-statement-id",fn="manual-hello-world-loop-id",Sa="manual-hello-world-loop-body-id",qd="manual-hello-world-loop-break-statement-id",Oa="manual-hello-world-loop-current-iteration-number-output-map-id",Jd="manual-hello-world-loop-previous-iterations-results-output-map-id",Wd="assembled-hello-world-text-output-id",tG="assembled-hello-world-list-output-id",Pa="iteration-number-is-equal-or-greater-than-10-condition-id",oo="join-hello-world-and-number-operation-id",lo="append-string-to-list-operation-id",Kb="hello-world-loop-output-map-id",nG={type:i.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-parent-ref",entityType:i.ReturnStatement,entityId:Zb},rG={type:i.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type-parent-ref",entityType:i.ReturnDeclaration,entityId:"manual-hello-world-loop-function-declaration-output-declaration"},iG={like:!1,inferred:!1,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,isList:!0,asType:!1,parent:rG},aG={type:i.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-reads-value-ref",entityType:i.OutputMap,entityId:Kb},Xb={constant:!0,isError:!1,id:"manual-hello-world-loop-function-declaration-output-declaration",version:1,type:i.ReturnDeclaration,name:"Results",description:null,defaultValue:null,dataType:iG,implements:null,readsValue:aG,required:!0,index:0,parent:nG},sG={type:i.GenericReference,id:"manual-hello-world-loop-function-declaration-return-statement-called-by-ref",entityType:i.Loop,entityId:fn},oG={type:i.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref",entityType:i.FunctionDeclaration,entityId:so},Qb={type:i.ReturnStatement,id:Zb,version:1,outputs:[Xb],calledByError:[],calledByEntry:[],calledBySuccess:[sG],parent:oG,throws:null,x:0,y:0},lG={type:i.GenericReference,id:"hello-world-loop-break-statement-ref-id",entityType:i.BreakStatement,entityId:qd},ev={constant:!0,isError:!1,id:"hello-world-loop-break-statement-output-id",version:1,type:i.ReturnDeclaration,name:"Iteration result",description:null,defaultValue:null,dataType:null,readsValue:null,implements:null,required:!0,index:0,parent:lG},dG={type:i.GenericReference,id:"hello-world-loop-break-statement-counter-reads-value-ref-id",entityType:i.ArgumentDeclaration,entityId:Oa},cG={type:i.GenericReference,id:"hello-world-loop-break-statement-counter-ref-id",entityType:i.BreakStatement,entityId:qd},tv={constant:!0,isError:!1,id:"hello-world-loop-break-statement-counter-output-id",version:1,type:i.ReturnDeclaration,name:"Iteration counter",description:null,implements:null,defaultValue:null,dataType:null,readsValue:dG,required:!0,index:1,parent:cG},uG={type:i.GenericReference,id:"hello-world-loop-break-statement-called-by-ref-id",entityType:i.Condition,entityId:Pa},pG={type:i.GenericReference,id:"hello-world-loop-break-statement-parent-ref-id",entityType:i.Loop,entityId:fn},nv={type:i.BreakStatement,id:qd,version:1,outputs:[ev,tv],calledByError:[],calledByEntry:[],calledBySuccess:[uG],parent:pG,throws:null,x:0,y:0},yG={type:i.GenericReference,id:"hello-world-loop-continue-statement-ref-id",entityType:i.ContinueStatement,entityId:"hello-world-loop-continue-statement"},hG={type:i.GenericReference,id:"hello-world-loop-continue-statement-output-data-type-ref-id",entityType:i.ReturnDeclaration,entityId:"hello-world-loop-continue-statement-output-id"},fG={like:!1,inferred:!1,id:"hello-world-loop-continue-statement-output-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,parent:hG},mG={type:i.GenericReference,id:"hello-world-loop-continue-statement-reads-value-ref-id",entityType:i.OutputMap,entityId:Wd},rv={constant:!0,isError:!1,id:"hello-world-loop-continue-statement-output-id",version:1,type:i.ReturnDeclaration,name:"Iteration result",description:null,defaultValue:null,implements:null,dataType:fG,readsValue:mG,required:!0,index:0,parent:yG},TG={type:i.GenericReference,id:"hello-world-loop-continue-statement-called-by-ref-id",entityType:i.Condition,entityId:Pa},EG={type:i.GenericReference,id:"hello-world-loop-continue-statement-parent-ref-id",entityType:i.Loop,entityId:fn},iv={type:i.ContinueStatement,id:"hello-world-loop-continue-statement",version:1,outputs:[rv],calledBySuccess:[],calledByError:[TG],calledByEntry:[],parent:EG,throws:null,x:0,y:0};i.GenericReference,i.InputMap;const RG={type:i.GenericReference,id:"append-string-to-list-base-string-map-parent-ref-id",entityType:i.Operation,entityId:lo},gG={type:i.GenericReference,id:"base-string-map-reads-value-ref-id",entityType:i.OutputMap,entityId:Jd},av={id:"append-string-to-list-base-string-map-id",type:i.InputMap,version:1,declaration:Vl,name:null,description:null,readsValue:gG,defaultValue:null,index:0,parent:RG},bG={type:i.GenericReference,id:"assembly-string-map-parent-ref-id",entityType:i.Operation,entityId:lo},vG={id:tG,type:i.OutputMap,version:1,defaultValue:null,writesValues:[ev],declaration:Zi,index:0,parent:bG},IG={type:i.GenericReference,id:"append-string-to-list-called-by-ref-id",entityType:i.Condition,entityId:Pa},DG={type:i.GenericReference,id:"latest-string-to-add-input-map-reads-value-ref-id",entityType:i.OutputMap,entityId:Wd},AG={type:i.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:i.Operation,entityId:lo},sv={id:"latest-string-to-add-input-map-id",version:1,type:i.InputMap,declaration:Nl,name:null,description:null,readsValue:DG,defaultValue:null,index:1,parent:AG},SG={type:i.GenericReference,id:"append-string-to-list-parent-ref-id",entityType:i.FunctionDeclaration,entityId:fn},OG={type:i.Operation,id:lo,declaration:us,version:1,inputs:[av,sv],outputs:[vG],calledByError:[],process:null,calledByEntry:[],calledBySuccess:[IG],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:SG},PG={type:i.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-called-by-ref-id",entityType:i.FunctionDeclaration,entityId:Sa},CG={type:i.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-parent-ref-id",entityType:i.Loop,entityId:fn},wG={type:i.GenericReference,id:"current-iteration-number-to-check-map-reads-value-ref-id",entityType:i.OutputMap,entityId:Oa},ov={type:i.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-ref-two-id",entityType:i.Condition,entityId:Pa},BG={id:"current-iteration-number-to-check-map-id",version:1,type:i.InputMap,declaration:hi.inputs[0],name:null,description:null,readsValue:wG,index:0,defaultValue:null,parent:ov},MG={type:i.GenericReference,id:"max-num-iterations-value-map-default-value-parent-ref-id",entityType:i.InputMap,entityId:"max-num-iterations-value-map-id"},_G={id:"max-num-iterations-value-map-id",version:1,type:i.InputMap,declaration:hi.inputs[1],name:null,description:null,readsValue:null,index:1,defaultValue:{id:"max-num-iterations-value-map-default-value-id",type:i.LiteralValue,version:1,name:C.Number,value:10,autogeneration:null,valueAsType:null,parent:MG},parent:ov},VG={type:i.Condition,id:Pa,version:1,declaration:hi,inputs:[BG,_G],calledByError:[],calledByEntry:[PG],calledBySuccess:[],successCalls:[nv,OG],errorCalls:[iv],x:0,y:0,parent:CG},NG={type:i.GenericReference,id:"base-string-map-ref-id",entityType:i.InputMap,entityId:"join-hello-world-and-number-base-string-map-id"},LG={type:i.GenericReference,id:"join-hello-world-and-number-base-string-map-parent-ref-id",entityType:i.Operation,entityId:oo},GG={id:"join-hello-world-and-number-base-string-map-id",type:i.InputMap,version:1,declaration:ds,name:null,description:null,readsValue:null,defaultValue:{id:"join-hello-world-and-number-base-string-map-default-value-id",type:i.LiteralValue,version:1,value:"Hello world ",name:C.String,parent:NG,valueAsType:null,autogeneration:null},index:0,parent:LG},$G={type:i.GenericReference,id:"assembly-string-map-parent-ref-id",entityType:i.Operation,entityId:oo},FG={id:Wd,type:i.OutputMap,version:1,defaultValue:null,writesValues:[sv,rv],declaration:Zi,index:0,parent:$G},UG={type:i.GenericReference,id:"join-hello-world-and-number-called-by-ref-id",entityType:i.FunctionDeclaration,entityId:Sa},xG={type:i.GenericReference,id:"current-iteration-number-input-map-reads-value-ref-id",entityType:i.OutputMap,entityId:Oa},jG={type:i.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:i.Operation,entityId:oo},lv={id:"current-iteration-number-input-map-id",version:1,type:i.InputMap,declaration:cs,name:null,description:null,readsValue:xG,defaultValue:null,index:1,parent:jG},kG={type:i.GenericReference,id:"join-hello-world-and-number-parent-ref-id",entityType:i.FunctionDeclaration,entityId:fn},qG={type:i.Operation,id:oo,declaration:Ki,version:1,inputs:[GG,lv],outputs:[FG],process:null,calledByError:[],calledByEntry:[UG],calledBySuccess:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:kG},JG={id:"manual-hello-world-loop-iterations-results-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:Jd,entityType:i.ArgumentDeclaration},WG={like:!1,inferred:!1,id:"manual-hello-world-loop-iterations-results-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!0,entity:null,asType:!1,parent:JG},YG={id:"manual-hello-world-loop-previous-iterations-results-output-map-parent-ref-id",type:i.GenericReference,entityId:Sa,entityType:i.FunctionDeclaration},HG={constant:!0,id:Jd,type:i.ArgumentDeclaration,version:1,name:"Previous iterations results",description:"The results of the previous iterations of the loop.",required:!0,defaultValue:null,dataType:WG,implements:null,writesValues:[av],index:1,parent:YG},zG={id:"manual-hello-world-loop-current-iteration-number-output-map-parent-ref-id",type:i.GenericReference,entityId:Sa,entityType:i.FunctionDeclaration},ZG={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:i.GenericReference,entityId:Oa,entityType:i.ArgumentDeclaration};i.DataType;const KG={constant:!0,id:Oa,type:i.ArgumentDeclaration,version:1,name:"Current iteration number",description:"The number of the current iteration of the loop. Starts at 1.",required:!0,implements:jl,defaultValue:null,dataType:null,writesValues:[lv,tv],index:0,parent:zG},XG={id:"manual-flow-loop-body-parent-ref-id",type:i.GenericReference,entityId:fn,entityType:i.Loop},QG={id:Sa,type:i.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called multiple times, once for each iteration of the loop.",inputs:[KG,HG],calls:[VG,qG],implements:kl,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:XG},e$={type:i.GenericReference,id:"hello-world-loop-iteration-result-inline-output-declaration-parent-ref-id",entityType:i.Loop,entityId:fn},dv={id:"hello-world-loop-iteration-result-inline-output-declaration-id",version:1,type:i.ValueDescriptor,name:"Iteration result",defaultValue:null,description:null,dataType:null,required:!0,parentRelationType:P.FixedReturns,index:0,parent:e$},t$={type:i.GenericReference,id:"hello-world-loop-break-statement-output-map-parent-ref-id",entityType:i.Loop,entityId:fn},n$={type:i.OutputMap,id:Kb,version:1,defaultValue:null,declaration:dv,writesValues:[Xb],index:0,parent:t$},r$={id:"manual-hello-world-loop-parent-ref-id",type:i.GenericReference,entityId:so,entityType:i.FunctionDeclaration},i$={id:"manual-hello-world-loop-called-by-ref-id",type:i.GenericReference,entityId:so,entityType:i.FunctionDeclaration},a$={id:fn,type:i.Loop,version:1,declaration:Rs,inputs:[],outputsDeclarations:[dv],outputs:[n$],body:QG,successCalls:[Qb],errorCalls:[],process:null,error:null,calledByError:[],calledByEntry:[i$],calledBySuccess:[],breakStatements:[nv],continueStatements:[iv],x:0,y:0,parent:r$},s$={type:i.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref-id",entityType:i.Project,entityId:H},cv={type:i.FunctionDeclaration,id:so,version:1,name:"Manual hello world loop",description:null,inputs:[],calls:[a$],returnStatements:[Qb],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:s$},o$={type:i.GenericReference,id:"call-hello-world-loop-parent-ref-id",entityType:i.Project,entityId:H},l$={id:"call-hello-world-loop-id",type:i.FunctionCall,version:1,declaration:cv,inputs:[],outputs:[],process:null,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:o$},Vn="company-dto-function-declaration-id",Yd="company-dto-func-declaration-argument-dcl-id",mn="company-dto-function-company-variable-id",nr="company-dto-function-company-dto-variable-id",Ai="iterate-over-employee-list-loop-id",uv="iterate-over-employee-list-loop-employee-dto-output-map-id",Hd="iterate-over-employee-list-loop-body-current-employee-argument-declaration-id",co="iterate-over-employee-list-loop-body-map-employee-dto-function-call-id",pv="iterate-over-employee-list-continue-statement-employee-dto-output-decl-id",yv="iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-id",hv="iterate-over-employee-list-continue-statement-id",uo="iterate-over-employee-list-loop-body-id",fv="company-dto-func-declaration-return-statement-id",mv="company-dto-func-declaration-return-decl-id",Tv="company-dto-func-declaration-company-variable-id-output-map-id",Ev="company-dto-func-declaration-company-variable-employess-output-map-id",Rv="company-dto-func-declaration-company-variable-name-output-map-id",d$="company-dto-func-declaration-company-dto-variable-input-map-id",c$="company-dto-func-declaration-company-dto-variable-employess-input-map-id",u$="company-dto-func-declaration-company-dto-variable-name-input-map-id",po="company-dto-func-declaration-owner-variable-id",p$="company-dto-func-declaration-company-dto-variable-owner-input-map-id",gv="company-dto-func-declaration-company-variable-owner-output-map-id",bv="company-dto-func-declaration-owner-variable-id-output-map-id",yo="company-dto-func-declaration-bank-account-variable-id",y$="company-dto-func-declaration-company-dto-variable-bank-account-input-map-id",vv="company-dto-func-declaration-company-variable-bank-account-output-map-id",Iv="company-dto-func-declaration-bank-account-variable-id-output-map-id",h$={type:i.GenericReference,id:"company-dto-func-returned-company-dto-data-type-parent-ref-id",entityType:i.ReturnDeclaration,entityId:mv},f$={like:!1,inferred:!1,id:"company-dto-func-returned-company-dto-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!1,parent:h$},m$={type:i.GenericReference,id:"company-dto-func-returned-company-dto-parent-ref-id",entityType:i.ReturnStatement,entityId:fv},T$={type:i.GenericReference,id:"company-dto-func-returned-company-dto-reads-value-ref-id",entityType:i.VariableDeclaration,entityId:nr},Dv={constant:!0,isError:!1,id:mv,type:i.ReturnDeclaration,version: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:f$,readsValue:T$,required:!0,index:0,parent:m$},E$={type:i.GenericReference,id:"company-dto-func-return-statement-called-by-ref-id",entityType:i.Operation,entityId:nr},R$={type:i.GenericReference,id:"company-dto-func-return-statement-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Vn},zd={type:i.ReturnStatement,id:fv,version:1,outputs:[Dv],calledByError:[],calledByEntry:[],calledBySuccess:[E$],throws:null,x:0,y:0,parent:R$},g$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-owner-input-map-reads-value-ref-id",entityType:i.OutputMap,entityId:bv},b$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-owner-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:nr},Av={id:p$,type:i.InputMap,version:1,declaration:null,name:"owner_id",description:null,defaultValue:null,index:5,readsValue:g$,parent:b$},v$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-input-map-reads-value-ref-id",entityType:i.OutputMap,entityId:Iv},I$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:nr},Sv={id:y$,type:i.InputMap,version:1,declaration:null,name:"bank_account_id",description:null,defaultValue:null,index:4,readsValue:v$,parent:I$},D$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-name-input-map-reads-value-ref-id",entityType:i.OutputMap,entityId:Rv},A$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-name-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:nr},Ov={id:u$,type:i.InputMap,version:1,declaration:null,name:"name",description:null,defaultValue:null,index:3,readsValue:D$,parent:A$},S$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-employess-input-map-reads-value-ref-id",entityType:i.OutputMap,entityId:uv},O$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-employess-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:nr},Pv={id:c$,type:i.InputMap,version:1,declaration:null,name:"employees",description:null,defaultValue:null,index:2,readsValue:S$,parent:O$},P$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-reads-value-ref-id",entityType:i.OutputMap,entityId:Tv},C$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:nr},Cv={id:d$,type:i.InputMap,version:1,declaration:null,name:"id",description:"The ID of the company",defaultValue:null,index:1,readsValue:P$,parent:C$},w$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Vn},B$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-one-id",entityType:i.VariableDeclaration,entityId:yo},M$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-two-id",entityType:i.VariableDeclaration,entityId:po},_$={type:i.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-three-id",entityType:i.VariableDeclaration,entityId:Ai},Zd={constant:!0,required:!0,id:nr,type:i.VariableDeclaration,version:1,name:"Company DTO",dataType:null,description:"A variable holding the data of a mapped company DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[B$,M$,_$],successCalls:[zd],errorCalls:[],readsValue:null,writesValues:[Dv],inputs:[Cv,Ov,Sv,Av,Pv],outputs:[],internalCalls:[],parent:w$,x:0,y:0},Ar="employee-dto-func-declaration-id",Kd="employee-dto-func-declaration-argument-dcl-id",wv="employee-dto-func-declaration-return-statement-id",Bv="employee-dto-func-declaration-return-decl-id",Sr="employee-dto-func-declaration-employee-variable-id",Or="employee-dto-func-declaration-employee-dto-variable-id",ho="employee-dto-func-declaration-manager-variable-id",Mv="employee-dto-func-declaration-employee-variable-id-output-map-id",_v="employee-dto-func-declaration-employee-variable-birth-date-output-map-id",Vv="employee-dto-func-declaration-employee-variable-department-output-map-id",Nv="employee-dto-func-declaration-employee-variable-manager-output-map-id",Lv="employee-dto-func-declaration-manager-variable-id-output-map-id",V$="employee-dto-func-declaration-employee-dto-variable-input-map-id",N$="employee-dto-func-declaration-employee-dto-variable-birth-date-input-map-id",L$="employee-dto-func-declaration-employee-dto-variable-department-input-map-id",G$="employee-dto-func-declaration-employee-dto-variable-manager-input-map-id",$$={type:i.GenericReference,id:"employee-dto-func-returned-employee-dto-data-type-parent-ref-id",entityType:i.ReturnDeclaration,entityId:Bv},F$={like:!1,inferred:!1,id:"employee-dto-func-returned-employee-dto-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!1,parent:$$},U$={type:i.GenericReference,id:"employee-dto-func-returned-employee-dto-parent-ref-id",entityType:i.ReturnStatement,entityId:wv},x$={type:i.GenericReference,id:"employee-dto-func-returned-employee-dto-reads-value-ref-id",entityType:i.VariableDeclaration,entityId:Or},Gv={constant:!0,isError:!1,id:Bv,type:i.ReturnDeclaration,version:1,name:"Employee DTO",description:"Output the employee data in the format that it will be sent through an HTTP request.",defaultValue:null,dataType:F$,implements:null,readsValue:x$,required:!0,index:0,parent:U$},j$={type:i.GenericReference,id:"employee-dto-func-return-statement-called-by-ref-id",entityType:i.Operation,entityId:Or},k$={type:i.GenericReference,id:"employee-dto-func-return-statement-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Ar},Xd={type:i.ReturnStatement,id:wv,version:1,outputs:[Gv],calledByError:[],calledByEntry:[],calledBySuccess:[j$],throws:null,x:0,y:0,parent:k$},q$={type:i.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-input-map-reads-value-ref-id",entityType:i.OutputMap,entityId:Lv},J$={type:i.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:Or},$v={id:G$,type:i.InputMap,version:1,declaration:null,name:"manager_id",description:null,defaultValue:null,index:4,readsValue:q$,parent:J$},W$={type:i.GenericReference,id:"employee-dto-func-employee-dto-variable-department-input-map-reads-value-ref-id",entityType:i.OutputMap,entityId:Vv},Y$={type:i.GenericReference,id:"employee-dto-func-employee-dto-variable-department-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:Or},Fv={id:L$,type:i.InputMap,version:1,declaration:null,name:"department_name",description:null,defaultValue:null,index:3,readsValue:W$,parent:Y$},H$={type:i.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-input-map-reads-value-ref-id",entityType:i.OutputMap,entityId:_v},z$={type:i.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:Or},Uv={id:N$,type:i.InputMap,version:1,declaration:null,name:"birth_date",description:null,defaultValue:null,index:2,readsValue:H$,parent:z$},Z$={type:i.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-reads-value-ref-id",entityType:i.OutputMap,entityId:Mv},K$={type:i.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:Or},xv={id:V$,type:i.InputMap,version:1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:Z$,parent:K$},X$={type:i.GenericReference,id:"employee-dto-func-employee-dto-variable-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Ar},Q$={type:i.GenericReference,id:"employee-dto-func-employee-dto-variable-called-by-ref-id",entityType:i.VariableDeclaration,entityId:ho},eF={constant:!0,required:!0,id:Or,type:i.VariableDeclaration,version:1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[Q$],successCalls:[Xd],errorCalls:[],readsValue:null,writesValues:[Gv],inputs:[xv,Uv,Fv,$v],outputs:[],internalCalls:[],parent:X$,x:0,y:0},tF={type:i.GenericReference,id:"employee-dto-func-manager-variable-id-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:ho},nF={id:Lv,type:i.OutputMap,version:1,defaultValue:null,declaration:Ft.properties[0],index:0,writesValues:[$v],parent:tF},rF={type:i.GenericReference,id:"employee-dto-func-manager-variable-data-type-parent-ref-id",entityType:i.VariableDeclaration,entityId:ho},iF={like:!1,inferred:!1,id:"employee-dto-func-manager-variable-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Yt,asType:!1,isList:!1,parent:rF},aF={type:i.GenericReference,id:"employee-dto-func-manager-variable-reads-value-ref-id",entityType:i.OutputMap,entityId:Nv},sF={type:i.GenericReference,id:"employee-dto-func-manager-variable-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Ar};i.GenericReference,i.VariableDeclaration;const jv={constant:!0,required:!0,id:ho,type:i.VariableDeclaration,version:1,name:"Manager",description:"A variable holding an inherited manager",defaultValue:null,dataType:iF,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[eF],errorCalls:[],readsValue:aF,writesValues:[],inputs:[],outputs:[nF],internalCalls:[],parent:sF,x:0,y:0},oF={type:i.GenericReference,id:"employee-dto-func-employee-variable-manager-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:Sr},lF={id:Nv,type:i.OutputMap,version:1,defaultValue:null,declaration:Yt.properties[2],index:3,writesValues:[jv],parent:oF},dF={type:i.GenericReference,id:"employee-dto-func-employee-variable-department-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:Sr},cF={id:Vv,type:i.OutputMap,version:1,defaultValue:null,declaration:Yt.properties[0],index:2,writesValues:[Fv],parent:dF},uF={type:i.GenericReference,id:"employee-dto-func-employee-variable-birth-date-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:Sr},pF={id:_v,type:i.OutputMap,version:1,defaultValue:null,declaration:bt.properties[1],index:1,writesValues:[Uv],parent:uF},yF={type:i.GenericReference,id:"employee-dto-func-employee-variable-id-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:Sr},hF={id:Mv,type:i.OutputMap,version:1,defaultValue:null,declaration:Ft.properties[0],index:0,writesValues:[xv],parent:yF},fF={type:i.GenericReference,id:"employee-dto-func-employee-variable-data-type-parent-ref-id",entityType:i.VariableDeclaration,entityId:Sr},mF={like:!1,inferred:!1,id:"employee-dto-func-employee-variable-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Yt,asType:!1,isList:!1,parent:fF},TF={type:i.GenericReference,id:"employee-dto-func-employee-variable-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Ar},EF={type:i.GenericReference,id:"employee-dto-func-employee-variable-reads-value-ref-id",entityType:i.ArgumentDeclaration,entityId:Kd},RF={type:i.GenericReference,id:"employee-dto-func-employee-variable-called-by-id",entityType:i.FunctionDeclaration,entityId:Ar},kv={constant:!0,required:!0,id:Sr,type:i.VariableDeclaration,version:1,name:"Company employee",dataType:mF,description:"A variable holding a company employee",calledByError:[],defaultValue:null,calledByEntry:[RF],calledBySuccess:[],successCalls:[jv],errorCalls:[],readsValue:EF,writesValues:[],inputs:[],outputs:[hF,pF,cF,lF],internalCalls:[],parent:TF,x:0,y:0},gF={type:i.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-data-type-parent-ref-id",entityId:Kd,entityType:i.ArgumentDeclaration},bF={type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"employee-dto-func-declaration-employee-input-declaration-data-type-id",version:1,entity:Yt,asType:!1,isList:!1,like:!1,inferred:!1,parent:gF},vF={type:i.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-parent-ref-id",entityId:Ar,entityType:i.FunctionDeclaration},IF={constant:!0,type:i.ArgumentDeclaration,id:Kd,version:1,name:"Employee",description:"The employee to create a DTO for",required:!0,implements:null,defaultValue:null,dataType:bF,index:0,writesValues:[kv],parent:vF},DF={type:i.GenericReference,id:"employee-dto-function-declaration-parent-ref-id",entityType:i.Project,entityId:H},Qd={type:i.FunctionDeclaration,id:Ar,version:1,name:"Employee DTO",description:"Takes a employee and returns a DTO of that employee",index:null,inputs:[IF],calls:[kv],implements:null,returnStatements:[Xd],collapsed:!1,private:!1,x:0,y:0,parent:DF},AF={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-parent-ref-id",type:i.GenericReference,entityId:pv,entityType:i.ReturnDeclaration},SF={like:!1,inferred:!1,id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,parent:AF},OF={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-reads-value-ref-id",type:i.GenericReference,entityId:yv,entityType:i.OutputMap},PF={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-parent-ref-id",type:i.GenericReference,entityId:hv,entityType:i.ContinueStatement},qv={constant:!0,isError:!1,id:pv,type:i.ReturnDeclaration,version:1,name:"Employee DTO",description:"The DTO of the employee entity.",defaultValue:null,readsValue:OF,dataType:SF,implements:null,required:!0,index:0,parent:PF},CF={id:"iterate-over-employee-list-continue-statement-called-by-ref-id",type:i.GenericReference,entityId:co,entityType:i.FunctionCall},wF={id:"iterate-over-employee-list-continue-statement-parent-ref-id",type:i.GenericReference,entityId:Ai,entityType:i.Loop},Jv={id:hv,type:i.ContinueStatement,version:1,calledByError:[],calledByEntry:[],calledBySuccess:[CF],outputs:[qv],throws:null,x:0,y:0,parent:wF},BF={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-parent-ref-id",type:i.GenericReference,entityId:co,entityType:i.FunctionCall},MF={id:yv,type:i.OutputMap,version:1,defaultValue:null,declaration:Xd.outputs[0],writesValues:[qv],index:0,parent:BF},_F={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-reads-value-ref-id",type:i.GenericReference,entityId:Hd,entityType:i.ArgumentDeclaration},VF={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-parent-ref-id",type:i.GenericReference,entityId:co,entityType:i.FunctionCall},Wv={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-id",type:i.InputMap,version:1,name:null,description:null,declaration:Qd.inputs[0],readsValue:_F,index:0,defaultValue:null,parent:VF},NF={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-called-by-ref-id",type:i.GenericReference,entityId:uo,entityType:i.FunctionDeclaration},LF={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-parent-ref-id",type:i.GenericReference,entityId:uo,entityType:i.FunctionDeclaration},GF={id:co,type:i.FunctionCall,version:1,declaration:Qd,inputs:[Wv],process:null,outputs:[MF],calledByError:[],calledByEntry:[NF],calledBySuccess:[],successCalls:[Jv],errorCalls:[],error:null,x:0,y:0,parent:LF},$F={type:i.GenericReference,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-parent-ref-id",entityId:Hd,entityType:i.ArgumentDeclaration},FF={like:!1,inferred:!1,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Yt,isList:!1,asType:!1,parent:$F},UF={id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-parent-ref-id",type:i.GenericReference,entityId:uo,entityType:i.FunctionDeclaration},xF={constant:!0,id:Hd,type:i.ArgumentDeclaration,version:1,name:"Current employee",description:"The current employee entity being processed.",defaultValue:null,dataType:FF,required:!0,implements:gs,index:0,writesValues:[Wv],parent:UF},jF={id:"iterate-over-employee-list-loop-body-parent-ref-id",type:i.GenericReference,entityId:Ai,entityType:i.Loop},kF={id:uo,type:i.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[xF],calls:[GF],implements:bs,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:jF},qF={id:"iterate-over-employee-list-loop-iteration-list-input-map-parent-ref-id",type:i.GenericReference,entityId:Ai,entityType:i.Loop},JF={id:"iterate-over-employee-list-loop-iteration-list-input-map-reads-value-ref-id",type:i.GenericReference,entityId:Ev,entityType:i.OutputMap},Yv={id:"iterate-over-employee-list-loop-iteration-list-input-map-id",type:i.InputMap,version:1,name:null,description:null,declaration:Wn.inputs[0],defaultValue:null,readsValue:JF,index:0,parent:qF},WF={id:"iterate-over-employee-list-loop-parent-ref-id",type:i.GenericReference,entityId:Vn,entityType:i.FunctionDeclaration},YF={id:"iterate-over-employee-list-loop-employee-dto-output-map-parent-ref-id",type:i.GenericReference,entityId:Ai,entityType:i.Loop},HF={id:uv,type:i.OutputMap,version:1,defaultValue:null,declaration:Wn.outputs[0],writesValues:[Pv],index:0,parent:YF},zF={type:i.GenericReference,id:"iterate-over-employee-list-loop-called-by-ref-id",entityType:i.VariableDeclaration,entityId:mn},ZF={id:Ai,type:i.Loop,version:1,declaration:Wn,inputs:[Yv],successCalls:[Zd],errorCalls:[],outputsDeclarations:[],outputs:[HF],body:kF,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[zF],breakStatements:[],continueStatements:[Jv],error:null,x:0,y:0,parent:WF},KF={type:i.GenericReference,id:"company-dto-func-bank-account-variable-id-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:yo},XF={id:Iv,type:i.OutputMap,version:1,defaultValue:null,declaration:Ft.properties[0],index:0,writesValues:[Sv],parent:KF},QF={type:i.GenericReference,id:"company-dto-func-bank-account-variable-data-type-parent-ref-id",entityType:i.VariableDeclaration,entityId:yo},eU={like:!1,inferred:!1,id:"company-dto-func-bank-account-variable-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ht,asType:!1,isList:!1,parent:QF},tU={type:i.GenericReference,id:"company-dto-func-bank-account-variable-reads-value-ref-id",entityType:i.OutputMap,entityId:vv},nU={type:i.GenericReference,id:"company-dto-func-bank-account-variable-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Vn};i.GenericReference,i.VariableDeclaration;const Hv={constant:!0,required:!0,id:yo,type:i.VariableDeclaration,version:1,name:"Bank account",description:"A variable holding an inherited bank account",defaultValue:null,dataType:eU,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[Zd],errorCalls:[],readsValue:tU,writesValues:[],inputs:[],outputs:[XF],internalCalls:[],parent:nU,x:0,y:0},rU={type:i.GenericReference,id:"company-dto-func-owner-variable-id-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:po},iU={id:bv,type:i.OutputMap,version:1,declaration:Ft.properties[0],index:0,defaultValue:null,writesValues:[Av],parent:rU},aU={type:i.GenericReference,id:"company-dto-func-owner-variable-data-type-parent-ref-id",entityType:i.VariableDeclaration,entityId:po},sU={like:!1,inferred:!1,id:"company-dto-func-owner-variable-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ht,asType:!1,isList:!1,parent:aU},oU={type:i.GenericReference,id:"company-dto-func-owner-variable-reads-value-ref-id",entityType:i.OutputMap,entityId:gv},lU={type:i.GenericReference,id:"company-dto-func-owner-variable-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Vn};i.GenericReference,i.VariableDeclaration;const zv={constant:!0,required:!0,id:po,type:i.VariableDeclaration,version:1,name:"Owner",dataType:sU,description:"A variable holding an inherited owner",defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[Zd],errorCalls:[],readsValue:oU,writesValues:[],inputs:[],outputs:[iU],internalCalls:[],parent:lU,x:0,y:0},dU={type:i.GenericReference,id:"company-dto-func-company-variable-owner-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:mn},cU={id:gv,type:i.OutputMap,version:1,defaultValue:null,declaration:Ht.properties[2],index:4,writesValues:[zv],parent:dU},uU={type:i.GenericReference,id:"company-dto-func-company-variable-bank-account-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:mn},pU={id:vv,type:i.OutputMap,version:1,defaultValue:null,declaration:Ht.properties[2],index:3,writesValues:[Hv],parent:uU},yU={type:i.GenericReference,id:"company-dto-func-company-variable-name-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:mn},hU={id:Rv,type:i.OutputMap,version:1,defaultValue:null,declaration:Ht.properties[0],index:2,writesValues:[Ov],parent:yU},fU={type:i.GenericReference,id:"company-dto-func-company-variable-employess-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:mn},mU={id:Ev,type:i.OutputMap,version:1,defaultValue:null,declaration:Ht.properties[3],index:1,writesValues:[Yv],parent:fU},TU={type:i.GenericReference,id:"company-dto-func-company-variable-id-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:mn},EU={id:Tv,type:i.OutputMap,version:1,defaultValue:null,declaration:Ft.properties[0],index:0,writesValues:[Cv],parent:TU},RU={type:i.GenericReference,id:"company-dto-func-company-variable-data-type-parent-ref-id",entityType:i.VariableDeclaration,entityId:mn},gU={like:!1,inferred:!1,id:"company-dto-func-company-variable-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ht,asType:!1,isList:!1,parent:RU},bU={type:i.GenericReference,id:"company-dto-func-company-variable-parent-ref-id",entityType:i.FunctionDeclaration,entityId:Vn},vU={type:i.GenericReference,id:"company-dto-func-company-variable-reads-value-ref-id",entityType:i.ArgumentDeclaration,entityId:Yd},IU={type:i.GenericReference,id:"company-dto-func-company-variable-called-by-id",entityType:i.FunctionDeclaration,entityId:Vn},Zv={constant:!0,required:!0,id:mn,type:i.VariableDeclaration,version:1,name:"Company",dataType:gU,description:"A variable holding a company",defaultValue:null,calledByError:[],calledByEntry:[IU],calledBySuccess:[],successCalls:[Hv,zv,ZF],errorCalls:[],readsValue:vU,writesValues:[],inputs:[],outputs:[EU,mU,hU,pU,cU],internalCalls:[],parent:bU,x:0,y:0},DU={type:i.GenericReference,id:"company-dto-func-declaration-company-input-declaration-data-type-parent-ref-id",entityId:Yd,entityType:i.ArgumentDeclaration},AU={type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"company-dto-func-declaration-company-input-declaration-data-type-id",version:1,entity:Ht,asType:!1,isList:!1,like:!1,inferred:!1,parent:DU},SU={type:i.GenericReference,id:"company-dto-func-declaration-company-input-declaration-parent-ref-id",entityId:Vn,entityType:i.FunctionDeclaration},OU={constant:!0,type:i.ArgumentDeclaration,id:Yd,version:1,name:"Company",description:"The company to create a DTO for",defaultValue:null,required:!0,implements:null,dataType:AU,index:0,writesValues:[Zv],parent:SU},PU={type:i.GenericReference,id:"company-dto-function-declaration-parent-ref-id",entityType:i.Project,entityId:H},ec={type:i.FunctionDeclaration,id:Vn,version:1,name:"Company DTO",description:"Takes a company and returns a DTO of that company",inputs:[OU],calls:[Zv],implements:null,index:null,returnStatements:[zd],collapsed:!1,private:!1,x:0,y:0,parent:PU},Ca="exec-in-parallel-operation-call-id",wa="exec-sequentially-operation-call-id",vt="concurrency-and-wait-function-declaration-id",Kv="concurrency-and-wait-return-statement-id",Xv="concurrency-and-wait-return-declaration-id",tc="exec-in-parallel-argument-map-id",Qv="exec-sequentially-argument-map-id",nc="wait-for-2-seconds-operation-id",eI="wait-for-2-seconds-argument-map-id",rc="map-company-dto-function-call-id",tI="map-company-dto-function-call-company-dto-output-map-id",fo="company-dto-variable-one-id",ic="company-dto-variable-one-instance-id",nI="company-dto-variable-two-id",CU={type:i.GenericReference,id:"returned-company-dto-data-type-parent-ref-id",entityType:i.ReturnDeclaration,entityId:Xv},wU={like:!1,inferred:!1,id:"returned-company-dto-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ht,asType:!1,isList:!1,parent:CU},BU={type:i.GenericReference,id:"returned-company-dto-parent-ref-id",entityType:i.ReturnStatement,entityId:Kv},MU={type:i.GenericReference,id:"returned-company-dto-reads-value-ref-id",entityType:i.VariableDeclaration,entityId:nI},rI={constant:!0,isError:!1,id:Xv,type:i.ReturnDeclaration,version:1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",defaultValue:null,dataType:wU,implements:null,readsValue:MU,required:!0,index:0,parent:BU},_U={type:i.GenericReference,id:"concurrency-and-wait-return-statement-called-by-ref-id",entityType:i.Operation,entityId:nc},VU={type:i.GenericReference,id:"concurrency-and-wait-return-statement-parent-ref-id",entityType:i.FunctionDeclaration,entityId:vt},iI={type:i.ReturnStatement,id:Kv,version:1,outputs:[rI],calledByError:[],calledByEntry:[],calledBySuccess:[_U],throws:null,x:0,y:0,parent:VU},NU={type:i.GenericReference,id:"company-dto-variable-two-called-by-ref-id",entityType:i.VariableInstance,entityId:ic},LU={type:i.GenericReference,id:"company-dto-variable-two-reads-value-ref-id",entityType:i.VariableInstance,entityId:ic},GU={type:i.GenericReference,id:"company-dto-variable-two-parent-ref-id",entityType:i.FunctionDeclaration,entityId:vt},aI={constant:!0,required:!0,id:nI,type:i.VariableDeclaration,version:1,name:"Company DTO",description:null,defaultValue:null,dataType:null,inputs:[],outputs:[],successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[NU],internalCalls:[],writesValues:[rI],readsValue:LU,x:0,y:0,parent:GU},$U={type:i.GenericReference,id:"company-dto-variable-one-instance-called-by-ref-id",entityType:i.VariableDeclaration,entityId:fo},FU={type:i.GenericReference,id:"company-dto-variable-one-instance-reads-value-ref-id",entityType:i.VariableDeclaration,entityId:fo},UU={type:i.GenericReference,id:"company-dto-variable-one-instance-parent-ref-id",entityType:i.FunctionDeclaration,entityId:vt},xU={type:i.GenericReference,id:"company-dto-variable-one-instance-declaration-ref-id",entityType:i.VariableDeclaration,entityId:fo},sI={id:ic,type:i.VariableInstance,version:1,declaration:xU,inputs:[],outputs:[],successCalls:[aI],errorCalls:[],defaultValue:null,calledByError:[],calledByEntry:[],calledBySuccess:[$U],internalCalls:[],writesValues:[aI],readsValue:FU,x:0,y:0,parent:UU},jU={type:i.GenericReference,id:"company-dto-variable-one-called-by-ref-id",entityType:i.FunctionCall,entityId:rc},kU={type:i.GenericReference,id:"company-dto-variable-one-reads-value-ref-id",entityType:i.OutputMap,entityId:tI},qU={type:i.GenericReference,id:"company-dto-variable-one-parent-ref-id",entityType:i.FunctionDeclaration,entityId:vt},oI={constant:!0,required:!0,id:fo,type:i.VariableDeclaration,version:1,name:"Company DTO",description:null,defaultValue:null,dataType:null,inputs:[],outputs:[],successCalls:[sI],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[jU],internalCalls:[],writesValues:[sI],readsValue:kU,x:0,y:0,parent:qU},lI={type:i.GenericReference,id:"map-company-dto-function-call-company-input-map-parent-ref-id",entityType:i.FunctionCall,entityId:rc},JU={id:"map-company-dto-function-call-company-input-map-id",type:i.InputMap,version:1,declaration:ec.inputs[0],name:null,description:null,defaultValue:null,index:0,readsValue:null,parent:lI},WU={id:tI,type:i.OutputMap,version:1,defaultValue:null,declaration:zd.outputs[0],writesValues:[oI],index:0,parent:lI},YU={id:"map-company-dto-function-call-called-by-ref-id",type:i.GenericReference,entityType:i.FunctionDeclaration,entityId:vt},HU={id:"map-company-dto-function-call-parent-ref-id",type:i.GenericReference,entityType:i.FunctionDeclaration,entityId:vt},zU={id:rc,type:i.FunctionCall,version:1,declaration:ec,successCalls:[oI],process:null,errorCalls:[],inputs:[JU],outputs:[WU],calledByError:[],calledByEntry:[YU],calledBySuccess:[],parent:HU,x:0,y:0,error:null},ZU={type:i.GenericReference,id:"last-timestamp-variable-datatype-parent-ref-id",entityType:i.VariableDeclaration,entityId:wd},KU={type:i.GenericReference,id:"last-timestamp-variable-default-value-parent-ref-id",entityType:i.VariableDeclaration,entityId:wd},XU={like:!1,inferred:!1,id:"last-timestamp-variable-datatype-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:ln,version:1,asType:!1,isList:!1,parent:ZU},QU={type:i.GenericReference,id:"last-timestamp-variable-main-project-ref-id",entityType:i.Project,entityId:H},ac={constant:!0,required:!0,id:wd,type:i.VariableDeclaration,version: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:i.LiteralValue,version:1,name:C.Date,value:null,autogeneration:{type:ze.CurrentDateAndTime,rangeStart:null,rangeEnd:null},valueAsType:null,parent:KU},dataType:XU,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:QU},e4={type:i.GenericReference,id:"wait-for-2-seconds-argument-default-value-parent-ref-id",entityType:i.InputMap,entityId:eI},t4={type:i.GenericReference,id:"wait-for-2-seconds-argument-map-parent-ref-id",entityType:i.Operation,entityId:nc},n4={id:eI,type:i.InputMap,version:1,declaration:yr,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-2-seconds-argument-default-value-id",type:i.LiteralValue,version:1,value:2e3,valueAsType:null,autogeneration:null,name:C.Number,parent:e4},index:0,parent:t4},r4={type:i.GenericReference,id:"wait-for-2-seconds-parent-ref-id",entityType:i.FunctionDeclaration,entityId:vt},i4={type:i.GenericReference,id:"wait-for-2-seconds-called-by-ref-one-id",entityType:i.Operation,entityId:wa},a4={type:i.GenericReference,id:"wait-for-2-seconds-called-by-ref-two-id",entityType:i.Operation,entityId:Ca},dI={id:nc,type:i.Operation,version:1,declaration:Qt,inputs:[n4],outputs:[],process:null,successCalls:[iI],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[i4,a4],error:null,parent:r4},s4={type:i.GenericReference,id:"wait-for-random-amount-argument-default-value-parent-ref-id",entityType:i.InputMap,entityId:"wait-for-random-amount-input-map-id"},o4={type:i.GenericReference,id:"wait-for-random-amount-argument-map-parent-ref-id",entityType:i.Operation,entityId:"wait-for-random-amount-id"},l4={id:"wait-for-random-amount-input-map-id",type:i.InputMap,version:1,declaration:yr,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-random-amount-argument-default-value-id",type:i.LiteralValue,version:1,value:null,valueAsType:null,autogeneration:{type:ze.Random,rangeStart:1e3,rangeEnd:4e3},name:C.Number,parent:s4},index:0,parent:o4},d4={type:i.GenericReference,id:"wait-for-random-amount-parent-ref-id",entityType:i.Project,entityId:H},Si={id:"wait-for-random-amount-id",type:i.Operation,version:1,declaration:Qt,inputs:[l4],process:null,outputs:[],successCalls:[],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,parent:d4},sc="list-of-functions-variable-id",c4={type:i.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-argument-parent-ref-id",entityType:i.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},u4={id:"list-of-functions-variable-action-descriptor-dynamic-argument-id",type:i.ValueDescriptor,version: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:c4},p4={type:i.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-return-parent-ref-id",entityType:i.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},y4={id:"list-of-functions-variable-action-descriptor-dynamic-return-id",type:i.ValueDescriptor,version: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:p4},h4={type:i.GenericReference,id:"list-of-functions-variable-data-type-parent-ref-id",entityType:i.VariableDeclaration,entityId:sc},f4={id:"list-of-functions-variable-action-descriptor-id",type:i.ActionDescriptor,version:1,name:"Action to execute",description:"An action of any type, to be executed. It can contain any number of inputs and outputs.",inputs:[u4],error:null,outputs:[y4],parent:null},m4={type:i.GenericReference,id:"list-of-functions-variable-data-type-default-parent-ref-id",entityType:i.VariableDeclaration,entityId:sc},T4={like:!1,inferred:!1,id:"list-of-functions-variable-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:f4,asType:!1,isList:!0,parent:h4},E4={type:i.GenericReference,id:"list-of-functions-variable-parent-ref-id",entityType:i.FunctionDeclaration,entityId:vt};i.GenericReference,i.InputMap;const R4={type:i.GenericReference,id:"list-of-functions-variable-writes-value-one-ref-id",entityType:i.InputMap,entityId:Qv},g4={type:i.GenericReference,id:"list-of-functions-variable-writes-value-two-ref-id",entityType:i.InputMap,entityId:tc},cI={constant:!0,required:!0,id:sc,type:i.VariableDeclaration,version: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:i.LiteralValue,version:1,name:C.ActionDescriptor,value:null,valueAsType:[Si,Si,Si,Si,Si],autogeneration:null,parent:m4},dataType:T4,parent:E4,readsValue:null,writesValues:[R4,g4],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],inputs:[],outputs:[],internalCalls:[],x:0,y:0},b4={type:i.GenericReference,id:"exec-in-parallel-return-map-parent-ref-id",entityType:i.Operation,entityId:Ca},v4={type:i.GenericReference,id:"exec-in-parallel-result-variable-parent-ref-id",entityType:i.FunctionDeclaration,entityId:vt},I4={type:i.GenericReference,id:"exec-in-parallel-result-variable-reads-value-ref-id",entityType:i.OutputMap,entityId:"exec-in-parallel-return-map-id"},D4={type:i.GenericReference,id:"exec-in-parallel-result-variable-called-by-ref-id",entityType:i.Operation,entityId:Ca},uI={id:"exec-in-parallel-result-variable-id",type:i.VariableInstance,version:1,declaration:ac,readsValue:I4,writesValues:[],defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[D4],successCalls:[],errorCalls:[],internalCalls:[],parent:v4,x:0,y:0},A4={id:"exec-in-parallel-return-map-id",type:i.OutputMap,version:1,defaultValue:null,declaration:Gl,writesValues:[uI],index:0,parent:b4},S4={type:i.GenericReference,id:"exec-in-parallel-argument-map-parent-ref-id",entityType:i.Operation,entityId:Ca},O4={id:tc,type:i.InputMap,version:1,declaration:Ll,name:null,description:null,readsValue:cI,defaultValue:null,index:0,parent:S4},P4={type:i.GenericReference,id:"exec-in-parallel-parent-ref-id",entityType:i.FunctionDeclaration,entityId:vt},C4={type:i.GenericReference,id:"exec-in-parallel-called-by-ref-id",entityType:i.FunctionDeclaration,entityId:vt},w4={process:null,id:Ca,type:i.Operation,version:1,declaration:Qt,inputs:[O4],outputs:[A4],successCalls:[dI,uI],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[C4],calledBySuccess:[],error:null,parent:P4},B4={type:i.GenericReference,id:"exec-sequentially-return-map-parent-ref-id",entityType:i.Operation,entityId:wa},M4={type:i.GenericReference,id:"exec-sequentially-result-variable-parent-ref-id",entityType:i.FunctionDeclaration,entityId:vt},_4={type:i.GenericReference,id:"exec-sequentially-result-variable-reads-value-ref-id",entityType:i.OutputMap,entityId:"exec-sequentially-return-map-id"},V4={type:i.GenericReference,id:"exec-sequentially-result-variable-called-by-ref-id",entityType:i.Operation,entityId:wa},pI={id:"exec-sequentially-result-variable-id",type:i.VariableInstance,version:1,declaration:ac,readsValue:_4,defaultValue:null,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[V4],successCalls:[],errorCalls:[],internalCalls:[],parent:M4,x:0,y:0},N4={id:"exec-sequentially-return-map-id",type:i.OutputMap,version:1,defaultValue:null,declaration:Fl,writesValues:[pI],index:0,parent:B4},L4={type:i.GenericReference,id:"exec-sequentially-argument-map-parent-ref-id",entityType:i.Operation,entityId:wa},G4={id:Qv,type:i.InputMap,version:1,declaration:$l,name:null,description:null,readsValue:cI,defaultValue:null,index:0,parent:L4},$4={type:i.GenericReference,id:"exec-sequentially-parent-ref-id",entityType:i.FunctionDeclaration,entityId:vt},F4={type:i.GenericReference,id:"exec-sequentially-called-by-ref-id",entityType:i.FunctionDeclaration,entityId:vt},U4={id:wa,type:i.Operation,version:1,declaration:wn,inputs:[G4],process:null,outputs:[N4],successCalls:[dI,pI],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[F4],calledBySuccess:[],error:null,parent:$4},x4={type:i.GenericReference,id:"concurrency-and-wait-parent-ref-id",entityType:i.Project,entityId:H},j4={type:i.FunctionDeclaration,id:vt,version: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:[U4,w4,zU],returnStatements:[iI],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:x4},k4={type:i.GenericReference,id:"3521f2c8-a5c0-419c-8808-4fc6a73d0b78",entityType:i.ReturnDeclaration,entityId:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},q4={like:!1,inferred:!1,id:"ce8b9a30-afe9-4d4f-879f-1677efca2c47",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ht,isList:!1,asType:!1,parent:k4},J4={type:i.GenericReference,id:"8ee66e38-b060-474e-a503-594063a8ec24",entityType:i.ReturnStatement,entityId:"40a23a98-d3b2-42b1-9652-b33779ad15aa"},W4={constant:!0,isError:!1,id:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:i.ReturnDeclaration,version:1,name:"Created company",description:"The new company that was created",defaultValue:null,implements:null,dataType:q4,readsValue:null,required:!0,index:0,parent:J4},Y4={type:i.GenericReference,id:"9cb3c1e4-7250-4be6-be2a-69c2dd366d6f",entityType:i.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},H4={type:i.GenericReference,id:"c065fcdd-e054-4f95-941c-7eaa65c35d04",entityType:i.FunctionDeclaration,entityId:"5059c093-eda2-4efc-b7b4-aaaadd4d44de"},yI={type:i.ReturnStatement,id:"40a23a98-d3b2-42b1-9652-b33779ad15aa",version:1,outputs:[W4],calledByError:[],calledByEntry:[H4],calledBySuccess:[],throws:null,x:0,y:0,parent:Y4},z4={type:i.GenericReference,id:"312ef836-9e40-4d57-b177-03b7145ed074",entityType:i.Project,entityId:H},Z4={type:i.FunctionDeclaration,id:"5059c093-eda2-4efc-b7b4-aaaadd4d44de",version:1,name:"Create new company",description:null,inputs:[],calls:[yI],index:null,implements:null,returnStatements:[yI],collapsed:!1,private:!1,x:0,y:0,parent:z4},oc="get-current-date-and-time-func-decl-id",hI="get-current-date-and-time-return-statement-id",lc="get-current-date-and-time-return-declaration-id",K4="get-current-date-and-time-return-declaration-data-type-id",X4={type:i.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-value-parent-ref-id",entityType:i.ReturnDeclaration,entityId:lc},Q4={type:i.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-parent-ref-id",entityType:i.ReturnDeclaration,entityId:lc},ex={type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,id:K4,version:1,entity:ln,asType:!1,isList:!1,like:!1,inferred:!1,parent:Q4},tx={type:i.GenericReference,id:"get-current-date-and-time-return-declaration-parent-ref-id",entityType:i.ReturnStatement,entityId:hI};i.ReturnDeclaration,i.LiteralValue,C.Date,ze.CurrentDateAndTime;const nx={type:i.GenericReference,id:"get-current-date-and-time-return-statement-called-by-ref-id",entityType:i.FunctionDeclaration,entityId:oc},rx={type:i.GenericReference,id:"get-current-date-and-time-return-statement-parent-ref-id",entityType:i.FunctionDeclaration,entityId:oc};i.ReturnStatement;const ix={type:i.GenericReference,id:"concurrency-and-wait-parent-ref-id",entityType:i.Project,entityId:H},ax={type:i.FunctionDeclaration,id:oc,version:1,name:"Get current date and time",description:"Generates and returns the current date and time at the time of the execution",inputs:[],calls:[],returnStatements:[],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:ix},fI="do-math-return-statement-id",dc="do-math-return-declaration-id",sx={type:i.GenericReference,id:"do-math-func-var-to-return-one-ref-id",entityType:i.VariableDeclaration,entityId:"do-math-func-var-to-return-one-id"},ox={like:!1,inferred:!1,id:"do-math-func-var-to-return-one-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!1,parent:sx},lx={type:i.GenericReference,id:"do-math-func-decl-ref-two-id",entityType:i.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},dx={type:i.GenericReference,id:"do-math-func-var-to-return-one-map-ref-id",entityType:i.ReturnDeclaration,entityId:dc},cx={constant:!0,required:!0,type:i.VariableDeclaration,id:"do-math-func-var-to-return-one-id",version:1,description:null,name:"Fixed result",defaultValue:null,dataType:ox,readsValue:null,writesValues:[dx],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:lx},ux={type:i.GenericReference,id:"96ec244e-594b-45f7-802b-6dc3056920f6",entityType:i.ReturnStatement,entityId:fI},px={type:i.GenericReference,id:"d120c0cc-9d13-4e45-90e2-4e1ee825ca46",entityType:i.ReturnDeclaration,entityId:dc},yx={like:!1,inferred:!1,id:"da91aa23-9985-49ac-a8bf-9d623ba1ba8f",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,isList:!1,asType:!1,parent:px},hx={constant:!0,isError:!1,id:dc,version:1,type:i.ReturnDeclaration,name:"Result",description:null,implements:null,defaultValue:null,dataType:yx,readsValue:cx,required:!0,index:0,parent:ux},fx={type:i.GenericReference,id:"57fd93e4-93a1-484e-82eb-4dd15d2d0e24",entityType:i.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},mx={type:i.GenericReference,id:"0a86e8d5-ab21-476e-a482-b928cbf351e3",entityType:i.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},mI={type:i.ReturnStatement,id:fI,version:1,outputs:[hx],calledByError:[],calledByEntry:[],calledBySuccess:[fx],parent:mx,throws:null,x:0,y:0},Tx={type:i.GenericReference,id:"a2db26be-57f2-48e5-9769-cdbf0d95dc7c",entityType:i.VariableDeclaration,entityId:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a"},Ex={like:!1,inferred:!1,id:"c3e9d5f0-204f-45f9-85f7-e1b56b468388",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,asType:!1,isList:!1,parent:Tx},Rx={type:i.GenericReference,id:"692122c5-610a-4504-90dd-f5a5202d116c",entityType:i.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},gx={type:i.GenericReference,id:"do-math-func-return-one-called-by",entityType:i.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},bx={type:i.GenericReference,id:"6dceb501-be5b-4252-afb4-3c0d08abba33",entityType:i.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},TI={constant:!0,required:!0,type:i.VariableDeclaration,id:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a",version:1,name:"Result",dataType:Ex,description:null,defaultValue:null,readsValue:bx,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[gx],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:Rx},vx={type:i.GenericReference,id:"5440f523-af38-4981-8035-89d162fe8041",entityType:i.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Ix={type:i.GenericReference,id:"8c482c35-e674-4713-a1dd-63c3d13b611c",entityType:i.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},Dx={type:i.GenericReference,id:"c0a299cd-5869-4930-8cf0-90e3ceb8a903",entityType:i.VariableDeclaration,entityId:"46b2fe23-b417-4887-a35d-09b186679172"},Ax={like:!1,inferred:!1,id:"51c0c1df-2ee3-41df-ae52-ac512d8cf795",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,isList:!1,asType:!1,parent:Dx},Sx={type:i.GenericReference,id:"do-math-func-return-two-called-by",entityType:i.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},EI={constant:!0,required:!0,type:i.VariableDeclaration,id:"46b2fe23-b417-4887-a35d-09b186679172",version:1,name:"Total",description:null,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Sx],successCalls:[],errorCalls:[],dataType:Ax,readsValue:Ix,writesValues:[],internalCalls:[],parent:vx,x:0,y:0},RI={type:i.GenericReference,id:"6e4d776e-6af2-4321-b630-c78110fd677c",entityType:i.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Ox={type:i.GenericReference,id:"5b60955b-2486-40b6-bb24-ffd97ccd8902",entityType:i.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Px={type:i.GenericReference,id:"1a49923f-bc6f-453f-a438-e74e5475c2a9",entityType:i.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Cx={type:i.GenericReference,id:"02bfde0a-b757-4072-9613-6e9c7c9a424a",entityType:i.ArgumentDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},gI={id:"928953b0-0e3f-4d8c-ae5a-84620b4b8c68",version:1,type:i.InputMap,declaration:Il,name:null,description:null,readsValue:Cx,defaultValue:null,index:0,parent:Px},wx={id:"64752080-ee0f-4cfe-9897-a0668f2b2aca",type:i.OutputMap,version:1,defaultValue:null,declaration:Sl,writesValues:[TI,EI],index:0,parent:Ox},Bx={type:i.GenericReference,id:"d235a7f6-07ff-4f35-98d2-8f42dd59cf9f",entityType:i.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},Mx={id:"8827e8e9-9381-4ad7-8f61-5419c23c9136",type:i.GenericReference,entityType:i.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},bI={id:"a5525249-0eb5-472b-97bc-5e4cc0d75aee",version:1,type:i.InputMap,declaration:Dl,name:null,description:null,readsValue:Mx,defaultValue:null,index:1,parent:Bx},_x={type:i.Operation,id:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e",declaration:ls,version:1,inputs:[gI,bI],outputs:[wx],calledByError:[],calledByEntry:[RI],calledBySuccess:[],process:null,successCalls:[mI,TI,EI],errorCalls:[],parent:RI,error:null,x:0,y:0},Vx={type:i.GenericReference,id:"a2c40226-2270-4963-a865-c777ba79c551",entityType:i.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},Nx={id:"f47731b3-f278-4ab5-aeb2-24519c1119fb",type:i.GenericReference,entityId:"72a338d8-0183-4ca2-8760-227517854595",entityType:i.ArgumentDeclaration},vI={like:!1,inferred:!1,id:"a350a9e9-25ee-477f-a83d-9e98ed2451662",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,isList:!1,asType:!1,parent:Nx},Lx={type:i.GenericReference,id:"5f5d8dd0-7f3b-40cd-9f84-83d976887eaf",entityType:i.ArgumentDeclaration,entityId:"649bf0a4-6532-44aa-9818-a03d1c6564e9"},Gx={type:i.GenericReference,id:"ca018d0f-a8b3-4c7e-a408-c8b372d04aff",entityType:i.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},$x={type:i.GenericReference,id:"do-math-func-var-called-by-ref",entityType:i.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},II={constant:!0,required:!0,id:"72a338d8-0183-4ca2-8760-227517854595",type:i.VariableDeclaration,version:1,name:"Z",description:null,defaultValue:{id:"do-math-func-argument-two-default-value-id",type:i.LiteralValue,version:1,value:1,name:C.Number,valueAsType:null,autogeneration:null,parent:Vx},dataType:vI,inputs:[],outputs:[],calledByError:[],calledByEntry:[$x],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:Lx,writesValues:[bI],internalCalls:[],x:0,y:0,parent:Gx},Fx={entityType:i.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",type:i.GenericReference,id:"af0cf105-4075-425f-aecc-b25d3600fcc4"},Ux={constant:!0,id:"649bf0a4-6532-44aa-9818-a03d1c6564e9",type:i.ArgumentDeclaration,version:1,name:"Z",description:"The number to add",defaultValue:null,dataType:vI,implements:null,writesValues:[II],required:!0,index:1,parent:Fx},xx={type:i.GenericReference,id:"56953b5d-3e43-4dea-a62c-f3e868ba81bb",entityType:i.Project,entityId:H},jx={id:"868defc8-5c95-48ed-942d-257e8b9b9b00",type:i.GenericReference,entityType:i.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},kx={type:i.GenericReference,id:"35167664-a793-49f1-9eaf-fb57eac30897",entityType:i.VariableDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},qx={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:i.GenericReference,entityId:"d8895765-f705-457e-85fa-25d130926769",entityType:i.ArgumentDeclaration},Jx={like:!1,inferred:!1,id:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,isList:!1,asType:!1,parent:qx},Wx={constant:!0,id:"d8895765-f705-457e-85fa-25d130926769",type:i.ArgumentDeclaration,version:1,name:"N",dataType:Jx,description:"The number to add",implements:null,defaultValue:{id:"do-math-func-argument-one-default-value-id",type:i.LiteralValue,version:1,value:5,name:C.Number,valueAsType:null,autogeneration:null,parent:kx},writesValues:[gI],required:!0,index:0,parent:jx},Yx={type:i.FunctionDeclaration,id:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",version:1,name:"Do math",description:"This function does math",inputs:[Wx,Ux],calls:[_x,II],implements:null,index:null,collapsed:!1,returnStatements:[mI],private:!1,x:0,y:0,parent:xx},It="replace-bank-account-in-company-func-declaration-id",cc="company-entity-to-modify-arg-declaration-id",uc="account-number-to-create-arg-decl-id",Oi="company-main-variable-id",Pi="search-person-by-id-id",DI="new-bank-account-owner-arg-decl-id",AI="search-person-by-id-output-declaration-id",pc="search-person-by-id-output-entity-map-id",Ba="person-not-empty-condition-id",mo="create-new-bank-account-instance-operation-id",SI="create-new-bank-account-instance-operation-output-entity-map-id",OI="company-bank-account-output-map-id",yc="old-bank-account-var-declaration-id",PI="old-bank-account-var-instance-id",CI="company-variable-instance-id",hc="delete-bank-account-internal-call-id",Ma="new-bank-account-data-variable-declaration-id",Hx={type:i.GenericReference,id:"company-variable-instance-parent-ref-id",entityType:i.FunctionDeclaration,entityId:It},zx={type:i.GenericReference,id:"company-variable-instance-called-by-ref-id",entityType:i.InternalCall,entityId:hc},Zx={type:i.GenericReference,id:"company-variable-instance-declaration-ref-id",entityType:i.VariableDeclaration,entityId:Oi},Kx={type:i.GenericReference,id:"bank-account-input-map-parent-ref-id",entityType:i.VariableInstance,entityId:CI},Xx={type:i.GenericReference,id:"bank-account-input-map-reads-value-ref-id",entityType:i.OutputMap,entityId:SI},wI={type:i.InputMap,id:"bank-account-input-map-id",version:1,readsValue:Xx,declaration:Gd,name:null,description:null,index:0,defaultValue:null,parent:Kx},Qx={type:i.VariableInstance,id:CI,version:1,defaultValue:null,declaration:Zx,inputs:[wI],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[zx],successCalls:[],errorCalls:[],internalCalls:[],parent:Hx,readsValue:null,writesValues:[],x:0,y:0},ej={type:i.GenericReference,id:"bank-account-variable-data-type-parent-ref-id",entityType:i.VariableDeclaration,entityId:Oi},tj={type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"bank-account-variable-data-type-id",version:1,entity:vi,asType:!1,isList:!1,like:!1,inferred:!1,parent:ej},nj={type:i.GenericReference,id:"bank-account-variable-reads-value-ref-id",entityType:i.OutputMap,entityId:OI},rj={type:i.GenericReference,id:"bank-account-variable-parent-ref-id",entityType:i.FunctionDeclaration,entityId:It},ij={type:i.GenericReference,id:"bank-account-variable-called-by-ref-id",entityType:i.VariableDeclaration,entityId:Oi},aj={type:i.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-id",entityType:i.Operation,entityId:mo};i.GenericReference,i.VariableInstance;const sj={type:i.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-two-id",entityType:i.VariableDeclaration,entityId:yc},oj={type:i.GenericReference,id:"old-bank-account-variable-trigger-delete-decl-ref-id",entityType:i.VariableDeclaration,entityId:yc},lj={type:i.GenericReference,id:"bank-account-variable-parent-ref-two-id",entityType:i.FunctionDeclaration,entityId:It},dj={type:i.GenericReference,id:"old-bank-account-variable-trigger-delete-internal-call-ref-id",entityType:i.InternalCall,entityId:hc},cj={type:i.VariableInstance,id:PI,version:1,defaultValue:null,declaration:oj,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],internalCalls:[dj],errorCalls:[],parent:lj,readsValue:null,writesValues:[],x:0,y:0},BI={process:null,type:i.InternalCall,id:hc,version:1,declaration:cd,index:0,successCalls:[Qx],errorCalls:[],inputs:[],outputs:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[aj,sj],parent:cj},MI={constant:!0,required:!0,type:i.VariableDeclaration,id:yc,version:1,name:"Old bank account",description:"The existing bank account that needs to be replaced in the company entity",dataType:tj,defaultValue:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[ij],successCalls:[BI],internalCalls:[],errorCalls:[],parent:rj,readsValue:nj,writesValues:[],x:0,y:0},uj={type:i.GenericReference,id:"company-variable-declaration-data-type-parent-ref-id",entityType:i.VariableDeclaration,entityId:Oi},pj={type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"company-variable-declaration-data-type-id",version:1,entity:Ht,asType:!1,isList:!1,like:!1,inferred:!1,parent:uj},yj={type:i.GenericReference,id:"company-variable-declaration-reads-value-ref-id",entityType:i.ArgumentDeclaration,entityId:cc},hj={type:i.GenericReference,id:"company-variable-declaration-parent-ref-id",entityType:i.FunctionDeclaration,entityId:It},fj={type:i.GenericReference,id:"company-variable-declaration-called-by-ref-id",entityType:i.FunctionDeclaration,entityId:It},mj={type:i.GenericReference,id:"company-bank-account-output-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:Oi},Tj={id:OI,version:1,type:i.OutputMap,defaultValue:null,declaration:Gd,index:0,parent:mj,writesValues:[MI]},_I={constant:!0,required:!0,type:i.VariableDeclaration,id:Oi,version:1,name:"Company",description:"The company entity that was passed as an argument to the parent function",defaultValue:null,dataType:pj,inputs:[],outputs:[Tj],calledByError:[],calledByEntry:[fj],calledBySuccess:[],successCalls:[MI],errorCalls:[],parent:hj,internalCalls:[],readsValue:yj,writesValues:[],x:0,y:0},Ej={type:i.GenericReference,id:"create-new-bank-account-account-owner-dynamic-input-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:Ma},Rj={id:"create-new-bank-account-account-owner-dynamic-input-map-reads-value-ref-id",type:i.GenericReference,entityType:i.OutputMap,entityId:pc},VI={id:"create-new-bank-account-account-owner-dynamic-input-map-id",version:1,type:i.InputMap,declaration:null,name:"Account owner",description:null,readsValue:Rj,index:1,defaultValue:null,parent:Ej},gj={id:"create-new-bank-account-account-number-dynamic-input-map-reads-value-ref-id",type:i.GenericReference,entityType:i.ArgumentDeclaration,entityId:uc},bj={type:i.GenericReference,id:"create-new-bank-account-account-number-dynamic-input-map-parent-ref-id",entityType:i.VariableDeclaration,entityId:Ma},NI={id:"create-new-bank-account-account-number-dynamic-input-map-id",version:1,type:i.InputMap,declaration:null,name:"Account number",description:null,readsValue:gj,defaultValue:null,index:0,parent:bj},LI={type:i.GenericReference,id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",entityType:i.Operation,entityId:mo},vj={id:"create-new-bank-account-instance-operation-entity-to-create-input-map-id",version:1,type:i.InputMap,declaration:hr.inputs[0],name:null,description:null,index:0,readsValue:null,defaultValue:{type:i.LiteralValue,name:C.EntityTemplate,value:null,valueAsType:vi,autogeneration:null},parent:LI},Ij={type:i.GenericReference,id:"create-new-bank-account-instance-operation-entity-data-input-map-reads-value-ref-id",entityType:i.VariableDeclaration,entityId:Ma},GI={id:"create-new-bank-account-instance-operation-entity-data-input-map-id",version:1,type:i.InputMap,declaration:hr.inputs[1],name:null,description:null,index:1,readsValue:Ij,defaultValue:null,parent:LI},Dj={type:i.GenericReference,id:"create-new-bank-account-instance-operation-output-entity-map-parent-ref-id",entityType:i.Operation,entityId:mo},Aj={id:SI,version:1,type:i.OutputMap,defaultValue:null,declaration:hr.outputs[0],index:0,writesValues:[wI],parent:Dj},Sj={type:i.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",entityType:i.Condition,entityId:Ba},Oj={type:i.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",entityType:i.VariableDeclaration,entityId:Ma},Pj={type:i.GenericReference,id:"create-new-bank-account-instance-operation-parent-ref-id",entityType:i.FunctionDeclaration,entityId:It},$I={process:null,id:mo,type:i.Operation,version:1,declaration:hr,inputs:[vj,GI],error:null,outputs:[Aj],successCalls:[BI],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[Oj,Sj],parent:Pj,x:0,y:0},Cj={type:i.GenericReference,id:"new-bank-account-data-variable-declaration-parent-ref-id",entityType:i.FunctionDeclaration,entityId:It},wj={type:i.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",entityType:i.Condition,entityId:Ba},Bj={constant:!0,required:!0,id:Ma,type:i.VariableDeclaration,version:1,defaultValue:null,inputs:[NI,VI],dataType:null,name:"New bank Account's data",description:null,readsValue:null,outputs:[],writesValues:[GI],successCalls:[$I],errorCalls:[],internalCalls:[],calledByError:[],calledBySuccess:[wj],calledByEntry:[],x:0,y:0,parent:Cj},Mj={id:"person-not-found-thrown-error-datatype-default-value-parent-ref-id",type:i.GenericReference,entityId:"person-not-found-thrown-error-id",entityType:i.ReturnDeclaration},_j={id:"person-not-found-thrown-error-datatype-parent-ref-id",type:i.GenericReference,entityId:"person-not-found-thrown-error-id",entityType:i.ReturnDeclaration},Vj={like:!1,inferred:!1,id:"person-not-found-thrown-error-datatype-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,isList:!1,asType:!1,parent:_j},Nj={id:"person-not-found-thrown-error-parent-ref-id",type:i.GenericReference,entityId:"person-not-found-error-return-statement-id",entityType:i.ReturnStatement},Lj={constant:!0,isError:!0,id:"person-not-found-thrown-error-id",type:i.ReturnDeclaration,version:1,dataType:Vj,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:i.LiteralValue,version:1,value:"Person not found",name:C.String,parent:Mj,valueAsType:null,autogeneration:null},parent:Nj,implements:null,required:!0,index:0,readsValue:null},Gj={id:"person-not-found-error-return-statement-called-by-ref-id",type:i.GenericReference,entityId:Ba,entityType:i.Condition},$j={id:"person-not-found-error-return-statement-parent-ref-id",type:i.GenericReference,entityId:It,entityType:i.FunctionDeclaration},Fj={id:"person-not-found-error-return-statement-id",type:i.ReturnStatement,version:1,throws:Lj,outputs:[],calledBySuccess:[],calledByError:[Gj],calledByEntry:[],x:0,y:0,parent:$j},Uj={type:i.GenericReference,id:"person-not-empty-condition-called-by-ref-id",entityType:i.Search,entityId:Pi},xj={type:i.GenericReference,id:"person-not-empty-condition-parent-ref-id",entityType:i.FunctionDeclaration,entityId:It},jj={type:i.GenericReference,id:"person-entity-to-check-map-reads-value-ref-id",entityType:i.OutputMap,entityId:pc},kj={type:i.GenericReference,id:"person-not-empty-condition-ref-two-id",entityType:i.Condition,entityId:Ba},FI={id:"person-entity-to-check-map-id",version:1,type:i.InputMap,declaration:gr.inputs[0],name:null,description:null,readsValue:jj,index:0,defaultValue:null,parent:kj},qj={type:i.Condition,id:Ba,version:1,declaration:gr,inputs:[FI],calledByError:[],calledByEntry:[],calledBySuccess:[Uj],successCalls:[Bj,$I],errorCalls:[Fj],x:0,y:0,parent:xj},Jj={type:i.GenericReference,id:"search-person-by-id-output-entity-declaration-datatype-parent-ref-id",entityType:i.ValueDescriptor,entityId:AI},Wj={like:!1,inferred:!1,id:"search-person-by-id-output-entity-declaration-datatype-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,asType:!1,entity:bt,parent:Jj},Yj={type:i.GenericReference,id:"search-person-by-id-output-entity-declaration-parent-ref-id",entityType:i.Search,entityId:Pi},UI={id:AI,type:i.ValueDescriptor,version:1,defaultValue:null,dataType:Wj,name:"Found person",description:"The person entity that was found",parent:Yj,required:!0,index:0},Hj={type:i.GenericReference,id:"search-person-by-id-output-entity-map-parent-ref-id",entityType:i.Search,entityId:Pi},zj={type:i.OutputMap,id:pc,version:1,defaultValue:null,declaration:UI,parent:Hj,writesValues:[FI,VI],index:0},Zj={id:"search-person-by-id-input-declaration-datatype-parent-ref-id",type:i.GenericReference,entityId:"search-person-by-id-input-declaration-id",entityType:i.ArgumentDeclaration};i.DataType;const Kj={type:i.GenericReference,id:"search-person-by-id-input-declaration-parent-ref-id",entityType:i.Search,entityId:Pi},xI={id:"search-person-by-id-input-declaration-id",type:i.ValueDescriptor,version:1,dataType:null,defaultValue:null,name:"Person ID",description:"The unique identifier (ID) property of the person entity",parentRelationType:P.FixedArguments,index:0,required:!0,parent:Kj},Xj={type:i.GenericReference,id:"search-person-by-id-input-map-parent-ref-id",entityType:i.Search,entityId:Pi},Qj={id:"search-person-by-id-input-map-reads-value-ref-id",type:i.GenericReference,entityId:DI,entityType:i.ArgumentDeclaration},jI={type:i.InputMap,id:"search-person-by-id-input-map",version:1,declaration:xI,name:null,description:null,readsValue:Qj,defaultValue:null,parent:Xj,index:0},e8="SELECT * FROM Person WHERE id = your_id;",t8={type:i.GenericReference,id:"search-person-by-id-parent-ref-id",entityType:i.FunctionDeclaration,entityId:It},n8={type:i.GenericReference,id:"search-person-by-id-called-by-ref-id",entityType:i.FunctionDeclaration,entityId:It},r8={type:i.Search,id:Pi,version:1,name:"Search person by ID",description:"Searches for a person entity given the UUID",query:e8,inputsDeclarations:[xI],inputs:[jI],outputsDeclarations:[UI],outputs:[zj],calledByError:[],calledByEntry:[n8],calledBySuccess:[],error:null,successCalls:[qj],errorCalls:[],parent:t8,x:0,y:0};i.GenericReference,i.DataType;const i8={id:"account-number-to-create-arg-decl-data-type-parent-ref-id",type:i.GenericReference,entityId:uc,entityType:i.ArgumentDeclaration},a8={like:!1,inferred:!1,id:"account-number-to-create-arg-decl-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:J,isList:!1,asType:!1,parent:i8},s8={entityType:i.FunctionDeclaration,entityId:It,type:i.GenericReference,id:"account-number-to-create-arg-decl-parent-ref-id"},o8={constant:!0,id:uc,type:i.ArgumentDeclaration,version:1,name:"Account number",description:"The account number of the new bank account entity",defaultValue:null,dataType:a8,implements:null,writesValues:[NI],required:!0,index:1,parent:s8};i.GenericReference,i.DataType;const l8={id:"new-bank-account-owner-arg-decl-data-type-parent-ref-id",type:i.GenericReference,entityId:"new-bank-account-owner-arg-decl-id",entityType:i.ArgumentDeclaration},d8={like:!1,inferred:!1,id:"new-bank-account-owner-arg-decl-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Pn,isList:!1,asType:!1,parent:l8},c8={entityType:i.FunctionDeclaration,entityId:It,type:i.GenericReference,id:"new-bank-account-owner-arg-decl-parent-ref-id"},u8={constant:!0,id:DI,type:i.ArgumentDeclaration,version: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:d8,implements:null,writesValues:[jI],required:!1,index:1,parent:c8},p8={type:i.GenericReference,id:"replace-bank-account-in-company-parent-ref",entityType:i.Project,entityId:H},y8={type:i.GenericReference,id:"company-entity-to-modify-parent-ref",entityType:i.FunctionDeclaration,entityId:It};i.GenericReference,i.DataType;const h8={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:i.GenericReference,entityId:cc,entityType:i.ArgumentDeclaration},f8={like:!1,inferred:!1,id:"company-entity-to-modify-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ee,isList:!1,asType:!1,parent:h8},m8={constant:!0,id:cc,type:i.ArgumentDeclaration,version:1,name:"Company",defaultValue:null,dataType:f8,implements:null,description:"The company to replace the bank account for",writesValues:[_I],required:!0,index:0,parent:y8},T8={type:i.FunctionDeclaration,id:It,version: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:[m8,o8,u8],index:null,implements:null,calls:[r8,_I],collapsed:!1,returnStatements:[],private:!1,x:0,y:0,parent:p8},E8={type:i.GenericReference,id:"e0a937bd-3a85-4037-a973-916985b9f94b",entityType:i.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},R8={type:i.FunctionDeclaration,version:1,id:"6bedb217-f844-4332-af72-9626b2a32511",name:"Some library main function",description:null,inputs:[],calls:[],implements:null,collapsed:!0,index:null,returnStatements:[],private:!1,parent:E8,x:0,y:0},g8={type:i.GenericReference,id:"948e6869-ae5b-4914-bea0-b9f02ad6a014",entityType:i.Project,entityId:H},b8={type:i.GenericReference,id:"f3d6f2c6-1b3e-4e9d-8c9d-5b5b9f0b8d9c",entityType:i.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},v8={type:i.InstalledProject,version:1,id:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6",name:"Third Party Installed Project",description:null,functions:[R8],events:[],implements:b8,parent:g8,x:0,y:0},fc="global-counted-test-loop-id",kI="global-counted-test-loop-body-id",qI="global-counted-test-loop-body-current-iteration-value-argument-declaration-id",I8={type:i.GenericReference,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:qI,entityType:i.ArgumentDeclaration},D8={like:!1,inferred:!1,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,parent:I8},A8={id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:i.GenericReference,entityId:kI,entityType:i.FunctionDeclaration},S8={constant:!0,id:qI,type:i.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:D8,implements:Zl,required:!0,index:0,writesValues:[],parent:A8},O8={id:"global-counted-test-loop-body-parent-ref-id",type:i.GenericReference,entityId:fc,entityType:i.Loop},P8={id:kI,type:i.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[S8],calls:[],implements:Kl,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:O8},Ci="random-company-employee-test-variable-id",mc="manager-global-variable-id",JI="global-user-instance-id",Tn="employee-mapped-dto-variable-id",Pr="employee-mapped-dto-variable-instance-id",WI="random-employee-id-output-map-id",YI="random-employee-birth-date-output-map-id",HI="random-employee-department-output-map-id",zI="random-employee-manager-output-map-id",ZI="manager-global-id-output-map-id",KI="global-user-instance-id-output-map-id",C8="employee-mapped-dto-requester-id-input-map-id",XI="employee-mapped-dto-now-timestamp-input-map-id",w8="employee-mapped-dto-id-input-map-id",B8="employee-mapped-dto-birth-date-input-map-id",M8="employee-mapped-dto-department-input-map-id",_8="employee-mapped-dto-manager-input-map-id",V8={id:"global-counted-test-loop-iteration-number-input-map-parent-ref-id",type:i.GenericReference,entityId:fc,entityType:i.Loop};i.GenericReference,i.VariableDeclaration;const N8={id:"global-counted-test-loop-iteration-number-input-map-id",type:i.InputMap,version:1,name:null,description:null,declaration:ta.inputs[0],defaultValue:null,readsValue:null,index:0,parent:V8},L8={id:"global-counted-test-loop-parent-ref-id",type:i.GenericReference,entityId:H,entityType:i.Project},G8={id:"global-counted-test-loop-called-by-success-ref-id",type:i.GenericReference,entityId:Pr,entityType:i.VariableDeclaration},QI={id:fc,type:i.Loop,version:1,declaration:ta,inputs:[N8],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:P8,calledByError:[],calledByEntry:[],calledBySuccess:[G8],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:L8},Tc="global-object-keys-test-loop-id",eD="global-object-keys-test-loop-body-id",tD="global-object-keys-test-loop-body-current-iteration-value-argument-declaration-id",$8={type:i.GenericReference,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:tD,entityType:i.ArgumentDeclaration},F8={like:!1,inferred:!1,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,parent:$8},U8={id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:i.GenericReference,entityId:eD,entityType:i.FunctionDeclaration},x8={constant:!0,id:tD,type:i.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:F8,implements:Yl,required:!0,index:0,writesValues:[],parent:U8},j8={id:"global-object-keys-test-loop-body-parent-ref-id",type:i.GenericReference,entityId:Tc,entityType:i.Loop},k8={id:eD,type:i.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[x8],calls:[],implements:li,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:j8},q8={id:"global-object-keys-test-loop-iteration-object-input-map-parent-ref-id",type:i.GenericReference,entityId:Tc,entityType:i.Loop},J8={id:"global-object-keys-test-loop-iteration-object-input-map-reads-value-ref-id",type:i.GenericReference,entityId:Tn,entityType:i.VariableDeclaration},nD={id:"global-object-keys-test-loop-iteration-object-input-map-id",type:i.InputMap,version:1,name:null,description:null,declaration:li.inputs[0],defaultValue:null,readsValue:J8,index:0,parent:q8},W8={id:"global-object-keys-test-loop-parent-ref-id",type:i.GenericReference,entityId:H,entityType:i.Project},Y8={id:"global-object-keys-test-loop-called-by-success-ref-two-id",type:i.GenericReference,entityId:Pr,entityType:i.VariableDeclaration},H8={id:"global-object-keys-test-loop-called-by-success-ref-one-id",type:i.GenericReference,entityId:Tn,entityType:i.VariableDeclaration},Ec={id:Tc,type:i.Loop,version:1,declaration:li,inputs:[nD],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:k8,calledByError:[],calledByEntry:[],calledBySuccess:[H8,Y8],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:W8},Rc="global-object-values-test-loop-id",rD="global-object-values-test-loop-body-id",iD="global-object-values-test-loop-body-current-iteration-value-argument-declaration-id",z8={type:i.GenericReference,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:iD,entityType:i.ArgumentDeclaration},Z8={like:!1,inferred:!1,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,parent:z8},K8={id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:i.GenericReference,entityId:rD,entityType:i.FunctionDeclaration},X8={constant:!0,id:iD,type:i.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:Z8,implements:Hl,required:!0,index:0,writesValues:[],parent:K8},Q8={id:"global-object-values-test-loop-body-parent-ref-id",type:i.GenericReference,entityId:Rc,entityType:i.Loop},ek={id:rD,type:i.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[X8],calls:[],implements:di,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:Q8},tk={id:"global-object-values-test-loop-iteration-object-input-map-parent-ref-id",type:i.GenericReference,entityId:Rc,entityType:i.Loop},nk={id:"global-object-values-test-loop-iteration-object-input-map-reads-value-ref-id",type:i.GenericReference,entityId:Pr,entityType:i.VariableDeclaration},aD={id:"global-object-values-test-loop-iteration-object-input-map-id",type:i.InputMap,version:1,name:null,description:null,declaration:di.inputs[0],defaultValue:null,readsValue:nk,index:0,parent:tk},rk={id:"global-object-values-test-loop-parent-ref-id",type:i.GenericReference,entityId:H,entityType:i.Project},ik={id:"global-object-values-test-loop-called-by-success-ref-id",type:i.GenericReference,entityId:Pr,entityType:i.VariableInstance},sD={id:Rc,type:i.Loop,version:1,declaration:di,inputs:[aD],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:ek,calledByError:[],calledByEntry:[],calledBySuccess:[ik],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:rk},gc="global-test-iterate-over-string-loop-id",bc="global-test-iterate-over-string-loop-body-id",To="global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-id",oD="global-test-iterate-over-string-loop-iteration-list-input-map-id",ak={type:i.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:To,entityType:i.ArgumentDeclaration},sk={like:!1,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,parent:ak},ok={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:i.GenericReference,entityId:bc,entityType:i.FunctionDeclaration},lk={constant:!0,id:To,type:i.ArgumentDeclaration,version:1,name:"Current character",description:"The current character value being processed.",defaultValue:null,dataType:sk,implements:ql,required:!0,index:1,writesValues:[],parent:ok},dk={type:i.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:To,entityType:i.ArgumentDeclaration},ck={like:!1,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,parent:dk},uk={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:i.GenericReference,entityId:bc,entityType:i.FunctionDeclaration},pk={constant:!0,id:To,type:i.ArgumentDeclaration,version:1,name:"Current character",description:"The current character value being processed.",defaultValue:null,dataType:ck,implements:Jl,required:!0,index:0,writesValues:[],parent:uk},yk={id:"global-test-iterate-over-string-loop-body-parent-ref-id",type:i.GenericReference,entityId:gc,entityType:i.Loop},hk={id:bc,type:i.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[pk,lk],calls:[],implements:Wl,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:yk},fk={id:"global-test-iterate-over-string-loop-iteration-list-input-map-parent-ref-id",type:i.GenericReference,entityId:gc,entityType:i.Loop},mk={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-parent-ref-id",type:i.GenericReference,entityId:oD,entityType:i.InputMap},Tk={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-id",type:i.LiteralValue,name:C.String,version:1,value:"Hello",valueAsType:null,autogeneration:{type:ze.Random,rangeStart:4,rangeEnd:5},parent:mk},Ek={id:oD,type:i.InputMap,version:1,name:null,description:null,declaration:ea.inputs[0],defaultValue:Tk,readsValue:null,index:0,parent:fk},Rk={id:"global-test-iterate-over-string-loop-parent-ref-id",type:i.GenericReference,entityId:H,entityType:i.Project},gk={id:gc,type:i.Loop,version:1,declaration:ea,inputs:[Ek],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:hk,calledByError:[],calledByEntry:[],calledBySuccess:[],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:Rk},vc="iterate-over-list-loop-id",lD="iterate-over-list-loop-body-id",dD="iterate-over-list-loop-body-current-iteration-value-argument-declaration-id",bk={type:i.GenericReference,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:dD,entityType:i.ArgumentDeclaration},vk={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-id",type:i.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,parent:bk},Ik={id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:i.GenericReference,entityId:lD,entityType:i.FunctionDeclaration},Dk={constant:!0,id:dD,type:i.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",defaultValue:null,dataType:vk,implements:gs,required:!0,index:0,writesValues:[],parent:Ik},Ak={id:"iterate-over-list-loop-body-parent-ref-id",type:i.GenericReference,entityId:vc,entityType:i.Loop},Sk={id:lD,type:i.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[Dk],calls:[],implements:bs,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:Ak},Ok={id:"iterate-over-list-loop-iteration-list-input-map-parent-ref-id",type:i.GenericReference,entityId:vc,entityType:i.Loop},Pk={id:"iterate-over-list-loop-iteration-list-input-map-id",type:i.InputMap,version:1,name:null,description:null,declaration:Wn.inputs[0],defaultValue:null,readsValue:null,index:0,parent:Ok},Ck={id:"iterate-over-list-loop-parent-ref-id",type:i.GenericReference,entityId:H,entityType:i.Project},wk={id:vc,type:i.Loop,version:1,declaration:Wn,inputs:[Pk],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:Sk,calledByError:[],calledByEntry:[],calledBySuccess:[],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:Ck},Bk=`SELECT
|
|
2
2
|
Employee.identifier AS EmployeeID,
|
|
3
3
|
Employee.startDate AS startDate,
|
|
4
4
|
User.identifier AS userID,
|
|
@@ -64,11 +64,11 @@ All built-in 'action-descriptor' entity ids are:
|
|
|
64
64
|
`;a.push(new g({id:`${n.id}--${T.InvalidReference}`,code:T.InvalidReference,severity:E.Error,message:`Entity of type "${i.Operation}" with id "${n.id}", has an invalid reference at the 'declaration' property. The 'declaration' property must be a valid reference to an 'action-descriptor' entity.
|
|
65
65
|
References can either be an ID string or an object with exacly four properties: 'id', 'entityId', 'entityType', 'type'.${l}`,issue:null}))}return{errors:a,modifiedData:n}}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new g({id:`${this.id}--${T.InvalidParentUpdate}`,code:T.InvalidParentUpdate,severity:E.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.
|
|
66
66
|
If an entity is called by another, they must be in the same scope, which means they have the same parent.
|
|
67
|
-
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}}hydrateAncestors(){const e=[],t=[],n=[];if(this.initialData.parent){const a=A(this.initialData.parent),s=this.project.get(a);s&&(this.setParent(s),e.push(s))}if(this.initialData.declaration){const a=A(this.initialData.declaration),s=this.project.get(a);s&&(this.setDeclaration(s),e.push(s))}return this.initialData.calledByEntry.forEach(a=>{const s=A(a),o=this.project.get(s);o&&(this.addEntryCaller(o),e.push(o))}),this.initialData.calledBySuccess.forEach(a=>{const s=A(a),o=this.project.get(s);o&&(this.addSuccessCaller(o),e.push(o))}),this.initialData.calledByError.forEach(a=>{const s=A(a),o=this.project.get(s);o&&(this.addErrorCaller(o),e.push(o))}),{updated:m(e),added:m(t),removed:m(n),self:this}}afterAllChildrenInitialized(){const e=[],t=[],n=[];this.initialized=!0;const{updated:a,added:s,removed:o}=this.syncMissingFixedInputs(),{updated:l,added:p,removed:u}=this.syncMissingFixedOutputs();return this.declaration.syncOperationInstance(this),e.push(...a,...l),t.push(...s,...p),n.push(...o,...u),{updated:m(e),added:m(t),removed:m(n),self:this}}addSelfToProject(){var a;const e=[this],t=[],n=[];return this.parent===this.project&&this.project.addOperation(this),(a=this.process)==null||a.writesValues.forEach(s=>{s.setValueWriter(this.process),e.push(s)}),this.successCalls.forEach(s=>{s.addSuccessCaller(this),e.push(s)}),this.errorCalls.forEach(s=>{s.addErrorCaller(this),e.push(s)}),this.calledBySuccess.forEach(s=>{s.addSuccessCall(this),e.push(s)}),this.calledByError.forEach(s=>{s.addErrorCall(this),e.push(s)}),this.calledByEntry.forEach(s=>{s.addCall(this),e.push(s)}),{updated:m(e),added:m(t),removed:m(n),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(e){const t=this.inputs.findIndex(n=>n.id===e.id);return t>-1&&this.inputs.splice(t,1),this}addInput(e){return this.inputs.includes(e)?this:(this.inputs.push(e),this)}addOutput(e){return this.outputs.includes(e)?this:(this.outputs.push(e),this)}removeOutput(e){const t=this.outputs.findIndex(n=>n.id===e.id);return t>-1&&this.outputs.splice(t,1),this}addValueReader(e){var t;return(t=this.process)==null||t.addValueReader(e),this}removeValueReader(e){var t;return(t=this.process)==null||t.removeValueReader(e),this}addSuccessCaller(e){return this.calledBySuccess.find(t=>t.id===e.id)||this.calledBySuccess.push(e),this}addErrorCaller(e){return this.calledByError.find(t=>t.id===e.id)||this.calledByError.push(e),this}addEntryCaller(e){return this.calledByEntry.find(t=>t.id===e.id)||this.calledByEntry.push(e),this}addErrorCall(e){return this.errorCalls.find(t=>t.id===e.id)||this.errorCalls.push(e),this}addSuccessCall(e){return this.successCalls.find(t=>t.id===e.id)||this.successCalls.push(e),this}removeCall(e){const t=this.successCalls.findIndex(a=>a.id===e.id);t>-1&&this.successCalls.splice(t,1);const n=this.errorCalls.findIndex(a=>a.id===e.id);return n>-1&&this.errorCalls.splice(n,1),this}removeCaller(e){return this.calledBySuccess=this.calledBySuccess.filter(t=>t.id!==e.id),this.calledByError=this.calledByError.filter(t=>t.id!==e.id),this.calledByEntry=this.calledByEntry.filter(t=>t.id!==e.id),this}setParent(e){return this.parent=e,this}setDeclaration(e){return this.declaration=e,this}initChildren(){return this.initialized?this:(this.initialized=!0,this.declaration=b(this.initialData.declaration,this.project),this.successCalls=this.initialData.successCalls.map(e=>{const t=b(e,this.project);return t.addSuccessCaller(this),[i.BreakStatement,i.ContinueStatement].includes(t.type)?t.setParent(this.parent.parent):t.type!==i.InternalCall&&t.setParent(this.parent),t.initChildren(),t}),this.errorCalls=this.initialData.errorCalls.map(e=>{const t=b(e,this.project);return t.addErrorCaller(this),[i.BreakStatement,i.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==i.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.inputs=this.initialData.inputs.map(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),t}),this.outputs=this.initialData.outputs.map(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),t}),this.initialData.error&&(this.error=b(this.initialData.error,this.project),this.error.setParent(this),this.error.initChildren()),this.initialData.process&&(this.process=b(this.initialData.process,this.project),this.process.setParent(this),this.process.initChildren()),this.afterAllChildrenInitialized(),this)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return this.version=e.version||this.version,this.x=e.x||this.x,this.y=e.y||this.y,this}async load(e=V,...t){return await ye.repository.load(this.id,...t),this}async create(e=V,...t){return await ye.repository.create(this.toShallowJSON(),...t),this}async update(e=V,...t){return await ye.repository.update(this.toShallowJSON(),...t),this}async delete(e=V,...t){return await ye.repository.delete(this.id,...t),this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){var s;const n=[],a=[];if(t.has(this.id))return{affected:[],removed:[]};if(t.add(this.id),a.push(this),this.unsubscribe(),this.process){const{affected:o,removed:l}=(s=this.process)==null?void 0:s.remove({ignoreUpstream:!0,seenEntities:t});n.push(...o),a.push(...l)}if(this.inputs.forEach(o=>{const{affected:l,removed:p}=o.remove({ignoreUpstream:!0,seenEntities:t});n.push(...l),a.push(...p)}),this.outputs.forEach(o=>{const{affected:l,removed:p}=o.remove({ignoreUpstream:!0,seenEntities:t});n.push(...l),a.push(...p)}),this.error){const{affected:o,removed:l}=this.error.remove({ignoreUpstream:!0,seenEntities:t});n.push(...o),a.push(...l)}return this.successCalls.forEach(o=>{n.push(o),o.removeCaller(this)}),this.errorCalls.forEach(o=>{n.push(o),o.removeCaller(this)}),e||this.calledBy.forEach(o=>{n.push(o),o.removeCall(this)}),{affected:m(n),removed:m(a)}}restore({seenEntities:e}={seenEntities:new Set}){const t=[];if(e.has(this.id))return{affected:[],self:this};if(e.add(this.id),this.subscribe(),this.process){const{affected:n}=this.process.restore({seenEntities:e});t.push(...n)}return this.inputs.forEach(n=>{const{affected:a}=n.restore({seenEntities:e});t.push(...a)}),this.outputs.forEach(n=>{const{affected:a}=n.restore({seenEntities:e});t.push(...a)}),this.successCalls.forEach(n=>{t.push(n),n.addSuccessCaller(this)}),this.errorCalls.forEach(n=>{t.push(n),n.addErrorCaller(this)}),this.calledBySuccess.forEach(n=>{t.push(n),n.addSuccessCall(this)}),this.calledByError.forEach(n=>{t.push(n),n.addErrorCall(this)}),this.calledByEntry.forEach(n=>{t.push(n),n.addCall(this)}),{affected:m(t),self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.successCalls.flatMap(n=>n.toFlat(e)),...this.errorCalls.flatMap(n=>n.toFlat(e)),...this.inputs.flatMap(n=>n.toFlat(e)),...this.outputs.flatMap(n=>n.toFlat(e)),...this.calledBy.flatMap(n=>n.toFlat(e)),...this.process?this.process.toFlat(e):[],...this.error?this.error.toFlat(e):[]])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.successCalls.flatMap(n=>n.toFlatIds(e)),...this.errorCalls.flatMap(n=>n.toFlatIds(e)),...this.inputs.flatMap(n=>n.toFlatIds(e)),...this.outputs.flatMap(n=>n.toFlatIds(e)),...this.process?this.process.toFlatIds(e):[],...this.error?this.error.toFlatIds(e):[]])}toJSON(e=new Set){var t,n;return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,type:this.type,x:this.x,y:this.y,successCalls:this.successCalls.map(a=>a.toJSON(e)),errorCalls:this.errorCalls.map(a=>a.toJSON(e)),calledBySuccess:this.calledBySuccess.map(a=>a.toReference()),calledByError:this.calledByError.map(a=>a.toReference()),calledByEntry:this.calledByEntry.map(a=>a.toReference()),process:(t=this.process)==null?void 0:t.toJSON(e),declaration:this.declaration.toJSON(e),inputs:this.inputs.map(a=>a.toJSON(e)),outputs:this.outputs.map(a=>a.toJSON(e)),parent:this.parent.toReference(),error:(n=this.error)==null?void 0:n.toJSON(e)})}toJSONClone(e=L){var n,a,s,o,l,p,u;let t;return(n=e.seenEntityMaps)!=null&&n.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||Ye(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(a=e.seenEntities)!=null&&a.has(t)||(s=e.seenEntities)!=null&&s.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(l=e.seenEntities)==null||l.add(this.id),{id:t,version:this.version,type:this.type,x:this.x,y:this.y,successCalls:this.successCalls.map(h=>h.toJSONClone({...e,newId:null})),errorCalls:this.errorCalls.map(h=>h.toJSONClone({...e,newId:null})),calledBySuccess:this.calledBySuccess.map(h=>h.toReference({seenEntityMaps:e.seenEntityMaps})),calledByError:this.calledByError.map(h=>h.toReference({seenEntityMaps:e.seenEntityMaps})),calledByEntry:this.calledByEntry.map(h=>h.toReference({seenEntityMaps:e.seenEntityMaps})),process:(p=this.process)==null?void 0:p.toJSONClone({...e,newId:null}),declaration:this.declaration.toJSON(),inputs:this.inputs.map(h=>h.toJSONClone({...e,newId:null})),outputs:this.outputs.map(h=>h.toJSONClone({...e,newId:null})),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps}),error:(u=this.error)==null?void 0:u.toJSONClone({...e,newId:null})})}toReference(e=L){var n;let t=this.id;return(n=e.seenEntityMaps)!=null&&n.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+M.UUID.uuid()+"--ref",type:i.GenericReference,entityId:t,entityType:this.type}}toShallowJSON(e=L){var n;let t=this.id;return(n=e.seenEntityMaps)!=null&&n.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,version:this.version,type:this.type,x:this.x,y:this.y,process:this.process?this.process.toReference(e):null,inputs:this.inputs.map(a=>a.toReference(e)),outputs:this.outputs.map(a=>a.toReference(e)),declaration:this.declaration.toReference(e),successCalls:this.successCalls.map(a=>a.toReference(e)),errorCalls:this.errorCalls.map(a=>a.toReference(e)),calledBySuccess:this.calledBySuccess.map(a=>a.toReference(e)),calledByError:this.calledByError.map(a=>a.toReference(e)),calledByEntry:this.calledByEntry.map(a=>a.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.process?this.process.toFlatJSON(e):[],...this.successCalls.flatMap(n=>n.toFlatJSON(e)),...this.errorCalls.flatMap(n=>n.toFlatJSON(e)),...this.inputs.flatMap(n=>n.toFlatJSON(e)),...this.outputs.flatMap(n=>n.toFlatJSON(e)),...this.calledBy.flatMap(n=>n.toFlatJSON(e)),...this.error?this.error.toFlatJSON(e):[]])}toGenerationTarget(){const e=this.parent.type===i.Project?void 0:this.parent.id;return{id:this.id,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(n=>n.toFlatGenerationTarget(e)),...this.errorCalls.flatMap(n=>n.toFlatGenerationTarget(e)),...this.inputs.flatMap(n=>n.toFlatGenerationTarget(e)),...this.outputs.flatMap(n=>n.toFlatGenerationTarget(e)),...this.process?this.process.toFlatGenerationTarget(e):[],...this.error?this.error.toFlatGenerationTarget(e):[]])}clearErrors(){var e,t;return this.errors=[],this.inputs.forEach(n=>n.clearErrors()),this.outputs.forEach(n=>n.clearErrors()),this.successCalls.forEach(n=>n.clearErrors()),this.errorCalls.forEach(n=>n.clearErrors()),(e=this.process)==null||e.clearErrors(),(t=this.error)==null||t.clearErrors(),this}validate(){const e=V7(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=null,t=null,n=!0){var R,v;let a=He(e,this);const s=this.toJSON(),o=t||de(w(this,this.project),i.Operation,a);s.inputs=[];const l=o.split("-id"),p=l[l.length-1||0]||o;s.id=o;const u=ke(s,a);e?u.setParent(e):u.setParent(this.parent),n&&u.subscribe(),u.initChildren();const h=(R=this.inputs)==null?void 0:R.map((I,D)=>I.clone(u,p+"-input-map-"+D+"-id",n));u.inputs=h;const f=(v=this.outputs)==null?void 0:v.map((I,D)=>I.clone(u,p+"-output-map-"+D+"-id",n));return u.outputs=f,this.error&&(u.error=this.error.clone(u,p+"-error-map-id",n)),this.process&&(u.process=this.process.clone(u,p+"-process-id",n)),u}removeUnrecognizedInputs(){const e=[],t=[],n=[];return this.inputs.forEach(a=>{if(!this.declaration.inputs.find(o=>{var l;return o.id===((l=a.declaration)==null?void 0:l.id)})){const o=a.remove();n.push(...o.removed),e.push(...o.affected)}}),{updated:m(e),added:m(t),removed:m(n),self:this}}removeUnrecognizedOutputs(){const e=[],t=[],n=[];return this.outputs.forEach(a=>{if(!this.declaration.outputs.find(o=>{var l;return o.id===((l=a.declaration)==null?void 0:l.id)})){const o=a.remove();n.push(...o.removed),e.push(...o.affected)}}),{updated:m(e),added:m(t),removed:m(n),self:this}}syncMissingFixedInputs(){const e=[],t=[],n=[],a=this.declaration.inputs.filter(p=>p.parentRelationType===P.FixedArguments&&!this.inputs.find(u=>{var h;return((h=u.declaration)==null?void 0:h.id)===p.id}));this.inputs.sort((p,u)=>p.index-u.index),a.forEach(p=>{this.inputs.forEach(f=>{f.index>=p.index&&f.sync({index:f.index+1})});const u={id:M.UUID.uuid(),version:1,type:i.InputMap,declaration:p.toJSON(),readsValue:null,defaultValue:null,index:p.index,name:null,description:null,parent:this.toReference()},h=b(u,this.project);h.setParent(this),h.initChildren(),h.addSelfToProject()}),this.inputs.sort((p,u)=>p.index-u.index);const{updated:s,added:o,removed:l}=this.removeUnrecognizedInputs();return e.push(...s),t.push(...o),n.push(...l),{updated:m(e),added:m(t),removed:m(n),self:this}}syncMissingFixedOutputs(){const e=[],t=[],n=[],a=this.declaration.outputs.filter(p=>p.parentRelationType===P.FixedReturns&&!this.outputs.find(u=>{var h;return((h=u.declaration)==null?void 0:h.id)===p.id}));this.outputs.sort((p,u)=>p.index-u.index),a.forEach(p=>{this.outputs.forEach(f=>{f.index>=p.index&&f.index++});const u={id:M.UUID.uuid(),version:1,type:i.OutputMap,declaration:p.toJSON(),defaultValue:null,writesValues:[],index:p.index,parent:this.toReference()},h=b(u,this.project);h.setParent(this),h.initChildren(),h.addSelfToProject()}),this.outputs.sort((p,u)=>p.index-u.index);const{updated:s,added:o,removed:l}=this.removeUnrecognizedOutputs();return e.push(...s),t.push(...o),n.push(...l),{updated:m(e),added:m(t),removed:m(n),self:this}}};c(ye,"repository",{create:async(e,...t)=>e,update:async(e,...t)=>e,delete:async(e,...t)=>{},load:async(e,...t)=>null}),c(ye,"MUTABLE_BASE_PROPERTIES",[]),c(ye,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),c(ye,"BASE_PROPERTIES",[...ye.MUTABLE_BASE_PROPERTIES,...ye.INMUTABLE_BASE_PROPERTIES]),c(ye,"MUTABLE_META_PROPERTIES",[...ye.MUTABLE_BASE_PROPERTIES,"x","y"]),c(ye,"INMUTABLE_META_PROPERTIES",[...ye.INMUTABLE_BASE_PROPERTIES]),c(ye,"META_PROPERTIES",[...ye.MUTABLE_META_PROPERTIES,...ye.INMUTABLE_META_PROPERTIES]),c(ye,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),c(ye,"INMUTABLE_UPSTREAM_PROPERTIES",["parent","declaration"]),c(ye,"UPSTREAM_PROPERTIES",[...ye.MUTABLE_UPSTREAM_PROPERTIES,...ye.INMUTABLE_UPSTREAM_PROPERTIES]),c(ye,"MUTABLE_DOWNSTREAM_PROPERTIES",["inputs","outputs","writesValues","successCalls","errorCalls","error"]),c(ye,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),c(ye,"DOWNSTREAM_PROPERTIES",[...ye.MUTABLE_DOWNSTREAM_PROPERTIES,...ye.INMUTABLE_DOWNSTREAM_PROPERTIES]),c(ye,"PROPERTIES",[...ye.META_PROPERTIES,...ye.UPSTREAM_PROPERTIES,...ye.DOWNSTREAM_PROPERTIES]);let kr=ye;function L7(r){const e=N3(),t=r.toJSON();e.safeParse(t).success;const a=Nt(r);r.inputs.forEach(o=>o.validate()),a.forEach(o=>o.validate());const s=[];return Be(r.errors,s)}const he=class he{constructor(e,t){c(this,"initialData");c(this,"id");c(this,"version");c(this,"name");c(this,"description",null);c(this,"x");c(this,"y");c(this,"collapsed");c(this,"type",i.GlobalEvent);c(this,"inputs",[]);c(this,"calls",[]);c(this,"returnStatements",[]);c(this,"parent");c(this,"implements");c(this,"detachedChildren",[]);c(this,"errors",[]);c(this,"project");c(this,"initialized",!1);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version,this.name=e.name,this.x=e.x,this.y=e.y,this.collapsed=e.collapsed}static fromGenerationTarget(e,t){let n=t;if(e.parent){const l=A(e.parent);n=t.get(l)}let a;e.implements&&(a=t.getBuiltIn(e.implements));const s={id:e.id,version:1,name:e.name,type:i.GlobalEvent,collapsed:!1,returnStatements:[],calls:[],inputs:[],implements:a,x:0,y:0,parent:n},o=b(s,t);return o.setParent(n),o.initChildren(),o}static validateGenerationTarget(e,t){let n=JSON.parse(JSON.stringify(e));const a=[],s=tt(n,{},t);if(n=s.modifiedData,a.push(...s.errors,...je(n)),!e.implements)a.push(new g({id:`${e.id}--${B.InvalidObjectStructure}`,code:B.InvalidObjectStructure,severity:E.Error,message:`Entity of type '${e.type}' with id '${e.id}' is missing the 'implements' property. This property is required for a '${e.type}' entity and must point to one of the built-in action descriptors reserved for 'global-event' entities.
|
|
67
|
+
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}}hydrateAncestors(){const e=[],t=[],n=[];if(this.initialData.parent){const a=A(this.initialData.parent),s=this.project.get(a);s&&(this.setParent(s),e.push(s))}if(this.initialData.declaration){const a=A(this.initialData.declaration),s=this.project.get(a);s&&(this.setDeclaration(s),e.push(s))}return this.initialData.calledByEntry.forEach(a=>{const s=A(a),o=this.project.get(s);o&&(this.addEntryCaller(o),e.push(o))}),this.initialData.calledBySuccess.forEach(a=>{const s=A(a),o=this.project.get(s);o&&(this.addSuccessCaller(o),e.push(o))}),this.initialData.calledByError.forEach(a=>{const s=A(a),o=this.project.get(s);o&&(this.addErrorCaller(o),e.push(o))}),{updated:m(e),added:m(t),removed:m(n),self:this}}afterAllChildrenInitialized(){const e=[],t=[],n=[];this.initialized=!0;const{updated:a,added:s,removed:o}=this.syncMissingFixedInputs(),{updated:l,added:p,removed:u}=this.syncMissingFixedOutputs();return this.declaration.syncOperationInstance(this),e.push(...a,...l),t.push(...s,...p),n.push(...o,...u),{updated:m(e),added:m(t),removed:m(n),self:this}}addSelfToProject(){var a;const e=[this],t=[],n=[];return this.parent===this.project&&this.project.addOperation(this),(a=this.process)==null||a.writesValues.forEach(s=>{s.setValueWriter(this.process),e.push(s)}),this.successCalls.forEach(s=>{s.addSuccessCaller(this),e.push(s)}),this.errorCalls.forEach(s=>{s.addErrorCaller(this),e.push(s)}),this.calledBySuccess.forEach(s=>{s.addSuccessCall(this),e.push(s)}),this.calledByError.forEach(s=>{s.addErrorCall(this),e.push(s)}),this.calledByEntry.forEach(s=>{s.addCall(this),e.push(s)}),{updated:m(e),added:m(t),removed:m(n),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(e){const t=this.inputs.findIndex(n=>n.id===e.id);return t>-1&&this.inputs.splice(t,1),this}addInput(e){return this.inputs.includes(e)?this:(this.inputs.push(e),this)}addOutput(e){return this.outputs.includes(e)?this:(this.outputs.push(e),this)}removeOutput(e){const t=this.outputs.findIndex(n=>n.id===e.id);return t>-1&&this.outputs.splice(t,1),this}addValueReader(e){var t;return(t=this.process)==null||t.addValueReader(e),this}removeValueReader(e){var t;return(t=this.process)==null||t.removeValueReader(e),this}addSuccessCaller(e){return this.calledBySuccess.find(t=>t.id===e.id)||this.calledBySuccess.push(e),this}addErrorCaller(e){return this.calledByError.find(t=>t.id===e.id)||this.calledByError.push(e),this}addEntryCaller(e){return this.calledByEntry.find(t=>t.id===e.id)||this.calledByEntry.push(e),this}addErrorCall(e){return this.errorCalls.find(t=>t.id===e.id)||this.errorCalls.push(e),this}addSuccessCall(e){return this.successCalls.find(t=>t.id===e.id)||this.successCalls.push(e),this}removeCall(e){const t=this.successCalls.findIndex(a=>a.id===e.id);t>-1&&this.successCalls.splice(t,1);const n=this.errorCalls.findIndex(a=>a.id===e.id);return n>-1&&this.errorCalls.splice(n,1),this}removeCaller(e){return this.calledBySuccess=this.calledBySuccess.filter(t=>t.id!==e.id),this.calledByError=this.calledByError.filter(t=>t.id!==e.id),this.calledByEntry=this.calledByEntry.filter(t=>t.id!==e.id),this}setParent(e){return this.parent=e,this}setDeclaration(e){return this.declaration=e,this}initChildren(){return this.initialized?this:(this.initialized=!0,this.declaration=b(this.initialData.declaration,this.project),this.successCalls=this.initialData.successCalls.map(e=>{const t=b(e,this.project);return t.addSuccessCaller(this),[i.BreakStatement,i.ContinueStatement].includes(t.type)?t.setParent(this.parent.parent):t.type!==i.InternalCall&&t.setParent(this.parent),t.initChildren(),t}),this.errorCalls=this.initialData.errorCalls.map(e=>{const t=b(e,this.project);return t.addErrorCaller(this),[i.BreakStatement,i.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==i.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.inputs=this.initialData.inputs.map(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),t}),this.outputs=this.initialData.outputs.map(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),t}),this.initialData.error&&(this.error=b(this.initialData.error,this.project),this.error.setParent(this),this.error.initChildren()),this.initialData.process&&(this.process=b(this.initialData.process,this.project),this.process.setParent(this),this.process.initChildren()),this.afterAllChildrenInitialized(),this)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return this.version=e.version||this.version,this.x=e.x||this.x,this.y=e.y||this.y,this}async load(e=V,...t){return await ye.repository.load(this.id,...t),this}async create(e=V,...t){return await ye.repository.create(this.toShallowJSON(),...t),this}async update(e=V,...t){return await ye.repository.update(this.toShallowJSON(),...t),this}async delete(e=V,...t){return await ye.repository.delete(this.id,...t),this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){var s;const n=[],a=[];if(t.has(this.id))return{affected:[],removed:[]};if(t.add(this.id),a.push(this),this.unsubscribe(),this.process){const{affected:o,removed:l}=(s=this.process)==null?void 0:s.remove({ignoreUpstream:!0,seenEntities:t});n.push(...o),a.push(...l)}if(this.inputs.forEach(o=>{const{affected:l,removed:p}=o.remove({ignoreUpstream:!0,seenEntities:t});n.push(...l),a.push(...p)}),this.outputs.forEach(o=>{const{affected:l,removed:p}=o.remove({ignoreUpstream:!0,seenEntities:t});n.push(...l),a.push(...p)}),this.error){const{affected:o,removed:l}=this.error.remove({ignoreUpstream:!0,seenEntities:t});n.push(...o),a.push(...l)}return this.successCalls.forEach(o=>{n.push(o),o.removeCaller(this)}),this.errorCalls.forEach(o=>{n.push(o),o.removeCaller(this)}),e||this.calledBy.forEach(o=>{n.push(o),o.removeCall(this)}),{affected:m(n),removed:m(a)}}restore({seenEntities:e}={seenEntities:new Set}){const t=[];if(e.has(this.id))return{affected:[],self:this};if(e.add(this.id),this.subscribe(),this.process){const{affected:n}=this.process.restore({seenEntities:e});t.push(...n)}return this.inputs.forEach(n=>{const{affected:a}=n.restore({seenEntities:e});t.push(...a)}),this.outputs.forEach(n=>{const{affected:a}=n.restore({seenEntities:e});t.push(...a)}),this.successCalls.forEach(n=>{t.push(n),n.addSuccessCaller(this)}),this.errorCalls.forEach(n=>{t.push(n),n.addErrorCaller(this)}),this.calledBySuccess.forEach(n=>{t.push(n),n.addSuccessCall(this)}),this.calledByError.forEach(n=>{t.push(n),n.addErrorCall(this)}),this.calledByEntry.forEach(n=>{t.push(n),n.addCall(this)}),{affected:m(t),self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.successCalls.flatMap(n=>n.toFlat(e)),...this.errorCalls.flatMap(n=>n.toFlat(e)),...this.inputs.flatMap(n=>n.toFlat(e)),...this.outputs.flatMap(n=>n.toFlat(e)),...this.calledBy.flatMap(n=>n.toFlat(e)),...this.process?this.process.toFlat(e):[],...this.error?this.error.toFlat(e):[]])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.successCalls.flatMap(n=>n.toFlatIds(e)),...this.errorCalls.flatMap(n=>n.toFlatIds(e)),...this.inputs.flatMap(n=>n.toFlatIds(e)),...this.outputs.flatMap(n=>n.toFlatIds(e)),...this.process?this.process.toFlatIds(e):[],...this.error?this.error.toFlatIds(e):[]])}toJSON(e=new Set){var t,n;return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,type:this.type,x:this.x,y:this.y,successCalls:this.successCalls.map(a=>a.toJSON(e)),errorCalls:this.errorCalls.map(a=>a.toJSON(e)),calledBySuccess:this.calledBySuccess.map(a=>a.toReference()),calledByError:this.calledByError.map(a=>a.toReference()),calledByEntry:this.calledByEntry.map(a=>a.toReference()),process:(t=this.process)==null?void 0:t.toJSON(e),declaration:this.declaration.toJSON(e),inputs:this.inputs.map(a=>a.toJSON(e)),outputs:this.outputs.map(a=>a.toJSON(e)),parent:this.parent.toReference(),error:(n=this.error)==null?void 0:n.toJSON(e)})}toJSONClone(e=L){var n,a,s,o,l,p,u;let t;return(n=e.seenEntityMaps)!=null&&n.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||Ye(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(a=e.seenEntities)!=null&&a.has(t)||(s=e.seenEntities)!=null&&s.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(l=e.seenEntities)==null||l.add(this.id),{id:t,version:this.version,type:this.type,x:this.x,y:this.y,successCalls:this.successCalls.map(h=>h.toJSONClone({...e,newId:null})),errorCalls:this.errorCalls.map(h=>h.toJSONClone({...e,newId:null})),calledBySuccess:this.calledBySuccess.map(h=>h.toReference({seenEntityMaps:e.seenEntityMaps})),calledByError:this.calledByError.map(h=>h.toReference({seenEntityMaps:e.seenEntityMaps})),calledByEntry:this.calledByEntry.map(h=>h.toReference({seenEntityMaps:e.seenEntityMaps})),process:(p=this.process)==null?void 0:p.toJSONClone({...e,newId:null}),declaration:this.declaration.toJSON(),inputs:this.inputs.map(h=>h.toJSONClone({...e,newId:null})),outputs:this.outputs.map(h=>h.toJSONClone({...e,newId:null})),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps}),error:(u=this.error)==null?void 0:u.toJSONClone({...e,newId:null})})}toReference(e=L){var n;let t=this.id;return(n=e.seenEntityMaps)!=null&&n.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+M.UUID.uuid()+"--ref",type:i.GenericReference,entityId:t,entityType:this.type}}toShallowJSON(e=L){var n;let t=this.id;return(n=e.seenEntityMaps)!=null&&n.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,version:this.version,type:this.type,x:this.x,y:this.y,process:this.process?this.process.toReference(e):null,inputs:this.inputs.map(a=>a.toReference(e)),outputs:this.outputs.map(a=>a.toReference(e)),declaration:this.declaration.toReference(e),successCalls:this.successCalls.map(a=>a.toReference(e)),errorCalls:this.errorCalls.map(a=>a.toReference(e)),calledBySuccess:this.calledBySuccess.map(a=>a.toReference(e)),calledByError:this.calledByError.map(a=>a.toReference(e)),calledByEntry:this.calledByEntry.map(a=>a.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.process?this.process.toFlatJSON(e):[],...this.successCalls.flatMap(n=>n.toFlatJSON(e)),...this.errorCalls.flatMap(n=>n.toFlatJSON(e)),...this.inputs.flatMap(n=>n.toFlatJSON(e)),...this.outputs.flatMap(n=>n.toFlatJSON(e)),...this.calledBy.flatMap(n=>n.toFlatJSON(e)),...this.error?this.error.toFlatJSON(e):[]])}toGenerationTarget(){const e=this.parent.type===i.Project?void 0:this.parent.id;return{id:this.id,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(n=>n.toFlatGenerationTarget(e)),...this.errorCalls.flatMap(n=>n.toFlatGenerationTarget(e)),...this.inputs.flatMap(n=>n.toFlatGenerationTarget(e)),...this.outputs.flatMap(n=>n.toFlatGenerationTarget(e)),...this.process?this.process.toFlatGenerationTarget(e):[],...this.error?this.error.toFlatGenerationTarget(e):[]])}clearErrors(){var e,t;return this.errors=[],this.inputs.forEach(n=>n.clearErrors()),this.outputs.forEach(n=>n.clearErrors()),this.successCalls.forEach(n=>n.clearErrors()),this.errorCalls.forEach(n=>n.clearErrors()),(e=this.process)==null||e.clearErrors(),(t=this.error)==null||t.clearErrors(),this}validate(){const e=V7(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=null,t=null,n=!0){var R,v;let a=He(e,this);const s=this.toJSON(),o=t||de(w(this,this.project),i.Operation,a);s.inputs=[];const l=o.split("-id"),p=l[l.length-1||0]||o;s.id=o;const u=ke(s,a);e?u.setParent(e):u.setParent(this.parent),n&&u.subscribe(),u.initChildren();const h=(R=this.inputs)==null?void 0:R.map((I,D)=>I.clone(u,p+"-input-map-"+D+"-id",n));u.inputs=h;const f=(v=this.outputs)==null?void 0:v.map((I,D)=>I.clone(u,p+"-output-map-"+D+"-id",n));return u.outputs=f,this.error&&(u.error=this.error.clone(u,p+"-error-map-id",n)),this.process&&(u.process=this.process.clone(u,p+"-process-id",n)),u}removeUnrecognizedInputs(){const e=[],t=[],n=[];return this.inputs.forEach(a=>{if(!this.declaration.inputs.find(o=>{var l;return o.id===((l=a.declaration)==null?void 0:l.id)})){const o=a.remove();n.push(...o.removed),e.push(...o.affected)}}),{updated:m(e),added:m(t),removed:m(n),self:this}}removeUnrecognizedOutputs(){const e=[],t=[],n=[];return this.outputs.forEach(a=>{if(!this.declaration.outputs.find(o=>{var l;return o.id===((l=a.declaration)==null?void 0:l.id)})){const o=a.remove();n.push(...o.removed),e.push(...o.affected)}}),{updated:m(e),added:m(t),removed:m(n),self:this}}syncMissingFixedInputs(){const e=[],t=[],n=[],a=this.declaration.inputs.filter(p=>p.parentRelationType===P.FixedArguments&&!this.inputs.find(u=>{var h;return((h=u.declaration)==null?void 0:h.id)===p.id}));this.inputs.sort((p,u)=>p.index-u.index),a.forEach(p=>{this.inputs.forEach(f=>{f.index>=p.index&&f.sync({index:f.index+1})});const u={id:M.UUID.uuid(),version:1,type:i.InputMap,declaration:p.toJSON(),readsValue:null,defaultValue:null,index:p.index,name:null,description:null,parent:this.toReference()},h=b(u,this.project);h.setParent(this),h.initChildren(),h.addSelfToProject()}),this.inputs.sort((p,u)=>p.index-u.index);const{updated:s,added:o,removed:l}=this.removeUnrecognizedInputs();return e.push(...s),t.push(...o),n.push(...l),{updated:m(e),added:m(t),removed:m(n),self:this}}syncMissingFixedOutputs(){const e=[],t=[],n=[],a=this.declaration.outputs.filter(p=>p.parentRelationType===P.FixedReturns&&!this.outputs.find(u=>{var h;return((h=u.declaration)==null?void 0:h.id)===p.id}));this.outputs.sort((p,u)=>p.index-u.index),a.forEach(p=>{this.outputs.forEach(f=>{f.index>=p.index&&f.index++});const u={id:M.UUID.uuid(),version:1,type:i.OutputMap,declaration:p.toJSON(),defaultValue:null,writesValues:[],index:p.index,parent:this.toReference()},h=b(u,this.project);h.setParent(this),h.initChildren(),h.addSelfToProject()}),this.outputs.sort((p,u)=>p.index-u.index);const{updated:s,added:o,removed:l}=this.removeUnrecognizedOutputs();return e.push(...s),t.push(...o),n.push(...l),{updated:m(e),added:m(t),removed:m(n),self:this}}};c(ye,"repository",{create:async(e,...t)=>e,update:async(e,...t)=>e,delete:async(e,...t)=>{},load:async(e,...t)=>null}),c(ye,"MUTABLE_BASE_PROPERTIES",[]),c(ye,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),c(ye,"BASE_PROPERTIES",[...ye.MUTABLE_BASE_PROPERTIES,...ye.INMUTABLE_BASE_PROPERTIES]),c(ye,"MUTABLE_META_PROPERTIES",[...ye.MUTABLE_BASE_PROPERTIES,"x","y"]),c(ye,"INMUTABLE_META_PROPERTIES",[...ye.INMUTABLE_BASE_PROPERTIES]),c(ye,"META_PROPERTIES",[...ye.MUTABLE_META_PROPERTIES,...ye.INMUTABLE_META_PROPERTIES]),c(ye,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),c(ye,"INMUTABLE_UPSTREAM_PROPERTIES",["parent","declaration"]),c(ye,"UPSTREAM_PROPERTIES",[...ye.MUTABLE_UPSTREAM_PROPERTIES,...ye.INMUTABLE_UPSTREAM_PROPERTIES]),c(ye,"MUTABLE_DOWNSTREAM_PROPERTIES",["inputs","outputs","writesValues","successCalls","errorCalls","error"]),c(ye,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),c(ye,"DOWNSTREAM_PROPERTIES",[...ye.MUTABLE_DOWNSTREAM_PROPERTIES,...ye.INMUTABLE_DOWNSTREAM_PROPERTIES]),c(ye,"PROPERTIES",[...ye.META_PROPERTIES,...ye.UPSTREAM_PROPERTIES,...ye.DOWNSTREAM_PROPERTIES]);let kr=ye;function L7(r){const e=N3(),t=r.toJSON();e.safeParse(t).success;const a=Nt(r);r.inputs.forEach(o=>o.validate()),a.forEach(o=>o.validate());const s=[];return Be(r.errors,s)}const he=class he{constructor(e,t){c(this,"initialData");c(this,"id");c(this,"version");c(this,"name");c(this,"description",null);c(this,"x");c(this,"y");c(this,"collapsed");c(this,"type",i.GlobalEvent);c(this,"inputs",[]);c(this,"calls",[]);c(this,"returnStatements",[]);c(this,"parent");c(this,"implements");c(this,"detachedChildren",[]);c(this,"errors",[]);c(this,"project");c(this,"initialized",!1);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version,this.name=e.name,this.description=e.description,this.x=e.x,this.y=e.y,this.collapsed=e.collapsed}static fromGenerationTarget(e,t){let n=t;if(e.parent){const l=A(e.parent);n=t.get(l)}let a;e.implements&&(a=t.getBuiltIn(e.implements));const s={id:e.id,version:1,name:e.name,description:e.description||null,type:i.GlobalEvent,collapsed:!1,returnStatements:[],calls:[],inputs:[],implements:a,x:0,y:0,parent:n},o=b(s,t);return o.setParent(n),o.initChildren(),o}static validateGenerationTarget(e,t){let n=JSON.parse(JSON.stringify(e));const a=[],s=tt(n,{},t);if(n=s.modifiedData,a.push(...s.errors,...je(n)),!e.implements)a.push(new g({id:`${e.id}--${B.InvalidObjectStructure}`,code:B.InvalidObjectStructure,severity:E.Error,message:`Entity of type '${e.type}' with id '${e.id}' is missing the 'implements' property. This property is required for a '${e.type}' entity and must point to one of the built-in action descriptors reserved for 'global-event' entities.
|
|
68
68
|
${nl(t)}`,issue:null}));else if(!t.get(e.implements))a.push(new g({id:`${e.id}--${T.ReferencedEntityNotFound}`,code:T.ReferencedEntityNotFound,severity:E.Error,message:`Entity of type '${e.type}' with id '${e.id}' has an 'implements' property that isn't found in the project. The 'implements' property must point to one of the built-in action descriptors reserved for 'global-event' entities.
|
|
69
69
|
${nl(t)}`,issue:null}));else if(!t.globalEventActionDescriptors.find(p=>p.id===e.implements))a.push(new g({id:`${e.id}--${T.InvalidImplementsReference}`,code:T.InvalidImplementsReference,severity:E.Error,message:`Entity of type '${e.type}' with id '${e.id}' has an 'implements' property that isn't pointing to an action descriptor reserved for 'global-event' entities.
|
|
70
70
|
${nl(t)}`,issue:null}));else{const p=t.events.find(u=>u.implements.id===e.implements);p&&a.push(new g({id:`${e.id}--${T.InvalidImplementsReference}`,code:T.InvalidImplementsReference,severity:E.Error,message:`Entity of type '${e.type}' with id '${e.id}' has an 'implements' property that points to an action descriptor that is already implemented by another global event with id '${p.id}' in the project. Each global event must implement a unique action descriptor.
|
|
71
|
-
You can attach new logic to the existing 'global-event' but creating a new callable entity that gets called by it.`,issue:null}))}return{errors:a,modifiedData:n}}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new g({id:`${this.id}--${T.InvalidParentUpdate}`,code:T.InvalidParentUpdate,severity:E.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}}hydrateAncestors(){const e=[],t=[],n=[];if(this.initialData.parent){const a=A(this.initialData.parent),s=this.project.get(a);s&&(this.setParent(s),e.push(s))}if(this.initialData.implements){const a=A(this.initialData.implements),s=this.project.get(a);s&&(this.setImplements(s),e.push(s))}return{updated:m(e),added:m(t),removed:m(n),self:this}}afterAllChildrenInitialized(){const e=[],t=[],n=[];return this.initialized=!0,{updated:m(e),added:m(t),removed:m(n),self:this}}addSelfToProject(){const e=[this],t=[],n=[];return this.project.addGlobalEvent(this),{updated:m(e),added:m(t),removed:m(n),self:this}}replaceDetachedChild(e,t){const n=this.detachedChildren.indexOf(e);return n!==-1&&(this.detachedChildren[n]=t),this}subscribeDetachedChild(e){return this.detachedChildren.includes(e)||this.detachedChildren.push(e),this}setParent(e){return this.parent=e,this}setImplements(e){return this.implements=e,this}addCall(e){return this.calls.includes(e)||this.calls.push(e),this}removeCall(e){const t=this.calls.indexOf(e);return t!==-1&&this.calls.splice(t,1),this}addInputDeclaration(e){return this.inputs.includes(e)||this.inputs.push(e),this}removeInputDeclaration(e){const t=this.inputs.findIndex(n=>n.id===e.id);return t>-1&&this.inputs.splice(t,1),this}initChildren(){return this.initialized?this:(this.initialized=!0,this.inputs=this.initialData.inputs.map(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),t}),this.calls=this.initialData.calls.map(e=>{const t=b(e,this.project);return t.addEntryCaller(this),t.type!==i.InternalCall&&(t.setParent(this),t.initChildren()),t}),this.returnStatements=this.initialData.returnStatements.map(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),t}),this.implements=b(this.initialData.implements,this.project),this.afterAllChildrenInitialized(),this)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return this.version=e.version||this.version,this.name=e.name||this.name,this.x=e.x||this.x,this.y=e.y||this.y,this.collapsed=e.collapsed!==void 0?e.collapsed:this.collapsed,this}async load(e=V,...t){return await he.repository.load(this.id,...t),this}async create(e=V,...t){return await he.repository.create(this.toShallowJSON(),...t),this}async update(e=V,...t){return await he.repository.update(this.toShallowJSON(),...t),this}async delete(e=V,...t){return await he.repository.delete(this.id,...t),this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const n=[],a=[];return t.has(this.id)?{affected:[],removed:[]}:(t.add(this.id),a.push(this),this.unsubscribe(),this.inputs.forEach(o=>{const{affected:l,removed:p}=o.remove({ignoreUpstream:!0,seenEntities:t});n.push(...l),a.push(...p)}),Nt(this).forEach(o=>{const{affected:l,removed:p}=o.remove({ignoreUpstream:!0,seenEntities:t});n.push(...l),a.push(...p)}),{affected:m(n),removed:m(a)})}restore({seenEntities:e}={seenEntities:new Set}){const t=[];return e.has(this.id)?{affected:[],self:this}:(e.add(this.id),this.subscribe(),this.inputs.forEach(a=>{const{affected:s}=a.restore({seenEntities:e});t.push(...s)}),Nt(this).forEach(a=>{const{affected:s}=a.restore({seenEntities:e});t.push(...s)}),{affected:m(t),self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.inputs.flatMap(n=>n.toFlat(e)),...this.calls.flatMap(n=>n.toFlat(e)),...this.returnStatements.flatMap(n=>n.toFlat(e)),...this.implements?this.implements.toFlat(e):[]])}toFlatIds(e=new Set){if(e.has(this.id))return[];e.add(this.id);const t=Nt(this);return[this.id,...this.inputs.flatMap(a=>a.toFlatIds(e)),...this.calls.flatMap(a=>a.toFlatIds(e)),...this.returnStatements.flatMap(a=>a.toFlatIds(e)),...this.implements?this.implements.toFlatIds(e):[],...t.flatMap(a=>a.toFlatIds(e))]}toJSON(e=new Set){return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,type:this.type,name:this.name,x:this.x,y:this.y,collapsed:this.collapsed,implements:this.implements.toJSON(e),returnStatements:this.returnStatements.map(t=>t.toJSON(e)),inputs:this.inputs.map(t=>t.toJSON(e)),calls:this.calls.map(t=>t.toJSON(e)),parent:this.parent.toReference()})}toJSONClone(e=L){var n,a,s,o,l;let t;return(n=e.seenEntityMaps)!=null&&n.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||Ye(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(a=e.seenEntities)!=null&&a.has(t)||(s=e.seenEntities)!=null&&s.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(l=e.seenEntities)==null||l.add(this.id),{id:t,version:this.version,type:this.type,name:this.name,x:this.x,y:this.y,collapsed:this.collapsed,implements:this.implements.toJSON(),returnStatements:this.returnStatements.map(p=>p.toJSONClone({...e,newId:null})),inputs:this.inputs.map(p=>p.toJSONClone({...e,newId:null})),calls:this.calls.map(p=>p.toJSONClone({...e,newId:null})),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=L){var n;let t=this.id;return(n=e.seenEntityMaps)!=null&&n.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+M.UUID.uuid()+"--ref",type:i.GenericReference,entityId:t,entityType:this.type}}toShallowJSON(e=L){var n;let t=this.id;return(n=e.seenEntityMaps)!=null&&n.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,version:this.version,type:this.type,name:this.name,collapsed:this.collapsed,x:this.x,y:this.y,implements:this.implements.toReference(e),inputs:this.inputs.map(a=>a.toReference(e)),calls:this.calls.map(a=>a.toReference(e)),returnStatements:this.returnStatements.map(a=>a.toReference(e)),parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.inputs.flatMap(n=>n.toFlatJSON(e)),...this.calls.flatMap(n=>n.toFlatJSON(e)),...this.returnStatements.flatMap(n=>n.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,name:this.name,type:this.type,implements:this.implements.id}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.inputs.flatMap(n=>n.toFlatGenerationTarget(e)),...this.calls.flatMap(n=>n.toFlatGenerationTarget(e)),...this.returnStatements.flatMap(n=>n.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.inputs.forEach(e=>e.clearErrors()),this.calls.forEach(e=>e.clearErrors()),this.returnStatements.forEach(e=>e.clearErrors()),this}validate(){const e=L7(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){const e=Nt(this);return[...this.errors,...this.inputs.flatMap(n=>n.getErrors()),...e.flatMap(n=>n.getErrors())]}getShallowErrors(){return this.errors}clone(e=null,t=null,n=!0,a=!1){var v;let s=He(e,this);const o=this.toJSON(),l=t||de(w(this,this.project),i.GlobalEvent,s);o.inputs=[];const p=l.split("-id"),u=p[p.length-1||0]||l;o.id=l;const h=ke(o,s);e?h.setParent(e):h.setParent(this.parent),n&&h.subscribe(),h.initChildren();const f=(v=this.inputs)==null?void 0:v.map((I,D)=>I.clone(h,u+"-argument-declaration-"+D+"-id",n));return h.inputs=f,a&&Nt(this).map((I,D)=>I.clone(h,u+"-body-entity-"+D+"-id")),h}getVariableInstances(){return Ae(this).filter(n=>n.type===i.VariableInstance)}addReturnStatement(e){return this.returnStatements.includes(e)||this.returnStatements.push(e),this}removeReturnStatement(e){const t=this.returnStatements.indexOf(e);return t!==-1&&this.returnStatements.splice(t,1),this}};c(he,"repository",{create:async(e,...t)=>e,update:async(e,...t)=>e,delete:async(e,...t)=>{},load:async(e,...t)=>null}),c(he,"MUTABLE_BASE_PROPERTIES",["description"]),c(he,"INMUTABLE_BASE_PROPERTIES",["id","version","name","type"]),c(he,"BASE_PROPERTIES",[...he.MUTABLE_BASE_PROPERTIES,...he.INMUTABLE_BASE_PROPERTIES]),c(he,"MUTABLE_META_PROPERTIES",[...he.MUTABLE_BASE_PROPERTIES,"x","y","collapsed"]),c(he,"INMUTABLE_META_PROPERTIES",[...he.INMUTABLE_BASE_PROPERTIES]),c(he,"META_PROPERTIES",[...he.MUTABLE_META_PROPERTIES,...he.INMUTABLE_META_PROPERTIES]),c(he,"MUTABLE_UPSTREAM_PROPERTIES",[]),c(he,"INMUTABLE_UPSTREAM_PROPERTIES",["parent","implements"]),c(he,"UPSTREAM_PROPERTIES",[...he.MUTABLE_UPSTREAM_PROPERTIES,...he.INMUTABLE_UPSTREAM_PROPERTIES]),c(he,"MUTABLE_DOWNSTREAM_PROPERTIES",["inputs","calls","returnStatements"]),c(he,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),c(he,"DOWNSTREAM_PROPERTIES",[...he.MUTABLE_DOWNSTREAM_PROPERTIES,...he.INMUTABLE_DOWNSTREAM_PROPERTIES]),c(he,"PROPERTIES",[...he.META_PROPERTIES,...he.UPSTREAM_PROPERTIES,...he.DOWNSTREAM_PROPERTIES]);let qi=he;function G7(r){var o,l;const e=a6(),t=r.toJSON();e.safeParse(t).success,r.inputs.forEach(p=>p.validate()),r.outputs.forEach(p=>p.validate()),(o=r.error)==null||o.validate(),(l=r.body)==null||l.validate();const s=[...kn(r)];return Be(r.errors,s)}const Z=class Z{constructor(e,t){c(this,"initialData");c(this,"id");c(this,"version");c(this,"x");c(this,"y");c(this,"type",i.Loop);c(this,"declaration");c(this,"inputs",[]);c(this,"outputs",[]);c(this,"process",null);c(this,"successCalls",[]);c(this,"errorCalls",[]);c(this,"error",null);c(this,"breakStatements",[]);c(this,"continueStatements",[]);c(this,"outputsDeclarations",[]);c(this,"body");c(this,"calledBySuccess",[]);c(this,"calledByError",[]);c(this,"calledByEntry",[]);c(this,"parent");c(this,"detachedChildren",[]);c(this,"currentIterationNumberArgumentDeclaration");c(this,"currentValueArgumentDeclaration",null);c(this,"errors",[]);c(this,"project");c(this,"initialized",!1);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version,this.x=e.x,this.y=e.y}static fromGenerationTarget(e,t){let n=t;if(e.parent){const f=A(e.parent);n=t.get(f)}const a=A(e.declaration),s=t.get(a),o=e.calledByEntry.map(f=>{const R=A(f);return t.get(R)}),l=e.calledBySuccess.map(f=>{const R=A(f);return t.get(R)}),p=e.calledByError.map(f=>{const R=A(f);return t.get(R)}),u={id:e.id,version:1,type:i.Loop,declaration:s,calledByEntry:o,calledBySuccess:l,calledByError:p,process:null,errorCalls:[],successCalls:[],inputs:[],outputs:[],body:null,breakStatements:[],continueStatements:[],outputsDeclarations:[],error:null,x:0,y:0,parent:n},h=b(u,t);return h.setParent(n),h.initChildren(),h}static validateGenerationTarget(e,t){let n=JSON.parse(JSON.stringify(e));const a=[],s=tt(n,{parent:{list:!1,types:[...pt,i.Project],optional:!0},declaration:{list:!1,types:[i.ActionDescriptor]}},t);return n=s.modifiedData,a.push(...s.errors,...je(n)),e.declaration?t.get(e.declaration)?t.conditionDeclarations.find(p=>p.id===e.declaration)||a.push(new g({id:`${e.id}--${T.InvalidImplementsReference}`,code:T.InvalidImplementsReference,severity:E.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 '${i.Condition}' entities.
|
|
71
|
+
You can attach new logic to the existing 'global-event' but creating a new callable entity that gets called by it.`,issue:null}))}return{errors:a,modifiedData:n}}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new g({id:`${this.id}--${T.InvalidParentUpdate}`,code:T.InvalidParentUpdate,severity:E.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}}hydrateAncestors(){const e=[],t=[],n=[];if(this.initialData.parent){const a=A(this.initialData.parent),s=this.project.get(a);s&&(this.setParent(s),e.push(s))}if(this.initialData.implements){const a=A(this.initialData.implements),s=this.project.get(a);s&&(this.setImplements(s),e.push(s))}return{updated:m(e),added:m(t),removed:m(n),self:this}}afterAllChildrenInitialized(){const e=[],t=[],n=[];return this.initialized=!0,{updated:m(e),added:m(t),removed:m(n),self:this}}addSelfToProject(){const e=[this],t=[],n=[];return this.project.addGlobalEvent(this),{updated:m(e),added:m(t),removed:m(n),self:this}}replaceDetachedChild(e,t){const n=this.detachedChildren.indexOf(e);return n!==-1&&(this.detachedChildren[n]=t),this}subscribeDetachedChild(e){return this.detachedChildren.includes(e)||this.detachedChildren.push(e),this}setParent(e){return this.parent=e,this}setImplements(e){return this.implements=e,this}addCall(e){return this.calls.includes(e)||this.calls.push(e),this}removeCall(e){const t=this.calls.indexOf(e);return t!==-1&&this.calls.splice(t,1),this}addInputDeclaration(e){return this.inputs.includes(e)||this.inputs.push(e),this}removeInputDeclaration(e){const t=this.inputs.findIndex(n=>n.id===e.id);return t>-1&&this.inputs.splice(t,1),this}initChildren(){return this.initialized?this:(this.initialized=!0,this.inputs=this.initialData.inputs.map(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),t}),this.calls=this.initialData.calls.map(e=>{const t=b(e,this.project);return t.addEntryCaller(this),t.type!==i.InternalCall&&(t.setParent(this),t.initChildren()),t}),this.returnStatements=this.initialData.returnStatements.map(e=>{const t=b(e,this.project);return t.setParent(this),t.initChildren(),t}),this.implements=b(this.initialData.implements,this.project),this.afterAllChildrenInitialized(),this)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return this.version=e.version||this.version,this.name=e.name||this.name,this.description=e.description||this.description,this.x=e.x||this.x,this.y=e.y||this.y,this.collapsed=e.collapsed!==void 0?e.collapsed:this.collapsed,this}async load(e=V,...t){return await he.repository.load(this.id,...t),this}async create(e=V,...t){return await he.repository.create(this.toShallowJSON(),...t),this}async update(e=V,...t){return await he.repository.update(this.toShallowJSON(),...t),this}async delete(e=V,...t){return await he.repository.delete(this.id,...t),this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const n=[],a=[];return t.has(this.id)?{affected:[],removed:[]}:(t.add(this.id),a.push(this),this.unsubscribe(),this.inputs.forEach(o=>{const{affected:l,removed:p}=o.remove({ignoreUpstream:!0,seenEntities:t});n.push(...l),a.push(...p)}),Nt(this).forEach(o=>{const{affected:l,removed:p}=o.remove({ignoreUpstream:!0,seenEntities:t});n.push(...l),a.push(...p)}),{affected:m(n),removed:m(a)})}restore({seenEntities:e}={seenEntities:new Set}){const t=[];return e.has(this.id)?{affected:[],self:this}:(e.add(this.id),this.subscribe(),this.inputs.forEach(a=>{const{affected:s}=a.restore({seenEntities:e});t.push(...s)}),Nt(this).forEach(a=>{const{affected:s}=a.restore({seenEntities:e});t.push(...s)}),{affected:m(t),self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.inputs.flatMap(n=>n.toFlat(e)),...this.calls.flatMap(n=>n.toFlat(e)),...this.returnStatements.flatMap(n=>n.toFlat(e)),...this.implements?this.implements.toFlat(e):[]])}toFlatIds(e=new Set){if(e.has(this.id))return[];e.add(this.id);const t=Nt(this);return[this.id,...this.inputs.flatMap(a=>a.toFlatIds(e)),...this.calls.flatMap(a=>a.toFlatIds(e)),...this.returnStatements.flatMap(a=>a.toFlatIds(e)),...this.implements?this.implements.toFlatIds(e):[],...t.flatMap(a=>a.toFlatIds(e))]}toJSON(e=new Set){return e.has(this.id)?this.toReference():(e.add(this.id),{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,x:this.x,y:this.y,collapsed:this.collapsed,implements:this.implements.toJSON(e),returnStatements:this.returnStatements.map(t=>t.toJSON(e)),inputs:this.inputs.map(t=>t.toJSON(e)),calls:this.calls.map(t=>t.toJSON(e)),parent:this.parent.toReference()})}toJSONClone(e=L){var n,a,s,o,l;let t;return(n=e.seenEntityMaps)!=null&&n.has(this.id)?t=e.seenEntityMaps.get(this.id):(t=e.newId||Ye(this,this.project,e.uuidStrategy),e.seenEntityMaps&&e.seenEntityMaps.set(this.id,t)),(a=e.seenEntities)!=null&&a.has(t)||(s=e.seenEntities)!=null&&s.has(this.id)?this.toReference({seenEntityMaps:e.seenEntityMaps}):((o=e.seenEntities)==null||o.add(t),(l=e.seenEntities)==null||l.add(this.id),{id:t,version:this.version,type:this.type,name:this.name,description:this.description,x:this.x,y:this.y,collapsed:this.collapsed,implements:this.implements.toJSON(),returnStatements:this.returnStatements.map(p=>p.toJSONClone({...e,newId:null})),inputs:this.inputs.map(p=>p.toJSONClone({...e,newId:null})),calls:this.calls.map(p=>p.toJSONClone({...e,newId:null})),parent:this.parent.toReference({seenEntityMaps:e.seenEntityMaps})})}toReference(e=L){var n;let t=this.id;return(n=e.seenEntityMaps)!=null&&n.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t+"--"+M.UUID.uuid()+"--ref",type:i.GenericReference,entityId:t,entityType:this.type}}toShallowJSON(e=L){var n;let t=this.id;return(n=e.seenEntityMaps)!=null&&n.has(this.id)&&(t=e.seenEntityMaps.get(this.id)),{id:t,version:this.version,type:this.type,name:this.name,description:this.description,collapsed:this.collapsed,x:this.x,y:this.y,implements:this.implements.toReference(e),inputs:this.inputs.map(a=>a.toReference(e)),calls:this.calls.map(a=>a.toReference(e)),returnStatements:this.returnStatements.map(a=>a.toReference(e)),parent:this.parent.toReference(e)}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.inputs.flatMap(n=>n.toFlatJSON(e)),...this.calls.flatMap(n=>n.toFlatJSON(e)),...this.returnStatements.flatMap(n=>n.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,name:this.name,description:this.description||void 0,type:this.type,implements:this.implements.id}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.inputs.flatMap(n=>n.toFlatGenerationTarget(e)),...this.calls.flatMap(n=>n.toFlatGenerationTarget(e)),...this.returnStatements.flatMap(n=>n.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.inputs.forEach(e=>e.clearErrors()),this.calls.forEach(e=>e.clearErrors()),this.returnStatements.forEach(e=>e.clearErrors()),this}validate(){const e=L7(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){const e=Nt(this);return[...this.errors,...this.inputs.flatMap(n=>n.getErrors()),...e.flatMap(n=>n.getErrors())]}getShallowErrors(){return this.errors}clone(e=null,t=null,n=!0,a=!1){var v;let s=He(e,this);const o=this.toJSON(),l=t||de(w(this,this.project),i.GlobalEvent,s);o.inputs=[];const p=l.split("-id"),u=p[p.length-1||0]||l;o.id=l;const h=ke(o,s);e?h.setParent(e):h.setParent(this.parent),n&&h.subscribe(),h.initChildren();const f=(v=this.inputs)==null?void 0:v.map((I,D)=>I.clone(h,u+"-argument-declaration-"+D+"-id",n));return h.inputs=f,a&&Nt(this).map((I,D)=>I.clone(h,u+"-body-entity-"+D+"-id")),h}getVariableInstances(){return Ae(this).filter(n=>n.type===i.VariableInstance)}addReturnStatement(e){return this.returnStatements.includes(e)||this.returnStatements.push(e),this}removeReturnStatement(e){const t=this.returnStatements.indexOf(e);return t!==-1&&this.returnStatements.splice(t,1),this}};c(he,"repository",{create:async(e,...t)=>e,update:async(e,...t)=>e,delete:async(e,...t)=>{},load:async(e,...t)=>null}),c(he,"MUTABLE_BASE_PROPERTIES",["description"]),c(he,"INMUTABLE_BASE_PROPERTIES",["id","version","name","type"]),c(he,"BASE_PROPERTIES",[...he.MUTABLE_BASE_PROPERTIES,...he.INMUTABLE_BASE_PROPERTIES]),c(he,"MUTABLE_META_PROPERTIES",[...he.MUTABLE_BASE_PROPERTIES,"x","y","collapsed"]),c(he,"INMUTABLE_META_PROPERTIES",[...he.INMUTABLE_BASE_PROPERTIES]),c(he,"META_PROPERTIES",[...he.MUTABLE_META_PROPERTIES,...he.INMUTABLE_META_PROPERTIES]),c(he,"MUTABLE_UPSTREAM_PROPERTIES",[]),c(he,"INMUTABLE_UPSTREAM_PROPERTIES",["parent","implements"]),c(he,"UPSTREAM_PROPERTIES",[...he.MUTABLE_UPSTREAM_PROPERTIES,...he.INMUTABLE_UPSTREAM_PROPERTIES]),c(he,"MUTABLE_DOWNSTREAM_PROPERTIES",["inputs","calls","returnStatements"]),c(he,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),c(he,"DOWNSTREAM_PROPERTIES",[...he.MUTABLE_DOWNSTREAM_PROPERTIES,...he.INMUTABLE_DOWNSTREAM_PROPERTIES]),c(he,"PROPERTIES",[...he.META_PROPERTIES,...he.UPSTREAM_PROPERTIES,...he.DOWNSTREAM_PROPERTIES]);let qi=he;function G7(r){var o,l;const e=a6(),t=r.toJSON();e.safeParse(t).success,r.inputs.forEach(p=>p.validate()),r.outputs.forEach(p=>p.validate()),(o=r.error)==null||o.validate(),(l=r.body)==null||l.validate();const s=[...kn(r)];return Be(r.errors,s)}const Z=class Z{constructor(e,t){c(this,"initialData");c(this,"id");c(this,"version");c(this,"x");c(this,"y");c(this,"type",i.Loop);c(this,"declaration");c(this,"inputs",[]);c(this,"outputs",[]);c(this,"process",null);c(this,"successCalls",[]);c(this,"errorCalls",[]);c(this,"error",null);c(this,"breakStatements",[]);c(this,"continueStatements",[]);c(this,"outputsDeclarations",[]);c(this,"body");c(this,"calledBySuccess",[]);c(this,"calledByError",[]);c(this,"calledByEntry",[]);c(this,"parent");c(this,"detachedChildren",[]);c(this,"currentIterationNumberArgumentDeclaration");c(this,"currentValueArgumentDeclaration",null);c(this,"errors",[]);c(this,"project");c(this,"initialized",!1);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version,this.x=e.x,this.y=e.y}static fromGenerationTarget(e,t){let n=t;if(e.parent){const f=A(e.parent);n=t.get(f)}const a=A(e.declaration),s=t.get(a),o=e.calledByEntry.map(f=>{const R=A(f);return t.get(R)}),l=e.calledBySuccess.map(f=>{const R=A(f);return t.get(R)}),p=e.calledByError.map(f=>{const R=A(f);return t.get(R)}),u={id:e.id,version:1,type:i.Loop,declaration:s,calledByEntry:o,calledBySuccess:l,calledByError:p,process:null,errorCalls:[],successCalls:[],inputs:[],outputs:[],body:null,breakStatements:[],continueStatements:[],outputsDeclarations:[],error:null,x:0,y:0,parent:n},h=b(u,t);return h.setParent(n),h.initChildren(),h}static validateGenerationTarget(e,t){let n=JSON.parse(JSON.stringify(e));const a=[],s=tt(n,{parent:{list:!1,types:[...pt,i.Project],optional:!0},declaration:{list:!1,types:[i.ActionDescriptor]}},t);return n=s.modifiedData,a.push(...s.errors,...je(n)),e.declaration?t.get(e.declaration)?t.conditionDeclarations.find(p=>p.id===e.declaration)||a.push(new g({id:`${e.id}--${T.InvalidImplementsReference}`,code:T.InvalidImplementsReference,severity:E.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 '${i.Condition}' entities.
|
|
72
72
|
${rl(t)}`,issue:null})):a.push(new g({id:`${e.id}--${T.ReferencedEntityNotFound}`,code:T.ReferencedEntityNotFound,severity:E.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 '${i.Condition}' entities.
|
|
73
73
|
${rl(t)}`,issue:null})):a.push(new g({id:`${e.id}--${B.InvalidObjectStructure}`,code:B.InvalidObjectStructure,severity:E.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 '${i.Condition}' entities.
|
|
74
74
|
${rl(t)}`,issue:null})),{errors:a,modifiedData:n}}static fromReturnDeclarationToBodyArgumentDeclarationName(e){return`Previous iteration results of '${w(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 '${w(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 '")}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new g({id:`${this.id}--${T.InvalidParentUpdate}`,code:T.InvalidParentUpdate,severity:E.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.
|
|
@@ -106,7 +106,7 @@ This variable's data-type 'entity' is a ${n.type} which doesn't have any methods
|
|
|
106
106
|
Built-in entity types can't have methods attached to them by the user. They are predefined entities that can't be modified. You can reference them as the 'declaration' property on a new 'internal-call' entity in a variable`):n.type===i.DefinitionEntity?o=`
|
|
107
107
|
This variable's data-type 'entity' is a definition entity which extends or implements a non-interactive 'built-in-base-entity'.s`:n.type===i.BuiltInBaseEntity&&(o=`
|
|
108
108
|
This variable's data-type 'entity' is a non-interactive 'built-in-base-entity'.s`);const l=s.find(p=>p.id===r.declaration.id);l?l.type!==i.FunctionDeclaration&&e.push(Q({id:`${r.id}--${B.InternalCallDeclarationIsNotFunctionDeclaration}`,code:B.InternalCallDeclarationIsNotFunctionDeclaration,severity:E.Error,message:`Entity of type "${r.type}" with id "${r.id}", points to a 'declaration' that isn't a 'function-declaration' entity.
|
|
109
|
-
The declaration of the internal-call must be a 'function-declaration' entity which exists as a method in the entity of the data-type of the parent variable.${o}`,issue:null,entity:r}).error):e.push(Q({id:`${r.id}--${B.InternalCallDeclarationNotFoundInParentDatatypeEntity}`,code:B.InternalCallDeclarationNotFoundInParentDatatypeEntity,severity:E.Error,message:`Entity of type "${r.type}" with id "${r.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) with id "${r.declaration}".${o}`,issue:null,entity:r}).error)}return e}const Te=class Te{constructor(e,t){c(this,"initialData");c(this,"id");c(this,"version");c(this,"index");c(this,"type",i.InternalCall);c(this,"declaration");c(this,"inputs",[]);c(this,"outputs",[]);c(this,"process",null);c(this,"successCalls",[]);c(this,"errorCalls",[]);c(this,"error",null);c(this,"calledBySuccess",[]);c(this,"calledByError",[]);c(this,"calledByEntry",[]);c(this,"parent");c(this,"project");c(this,"errors",[]);c(this,"initialized",!1);c(this,"suggestion",!1);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version}static fromGenerationTarget(e,t){const n=A(e.parent),a=t.get(n),s=A(e.declaration),o=t.get(s),l=e.calledByEntry.map(R=>{const v=A(R);return t.get(v)}),p=e.calledBySuccess.map(R=>{const v=A(R);return t.get(v)}),u=e.calledByError.map(R=>{const v=A(R);return t.get(v)}),h={id:e.id,version:1,type:i.InternalCall,index:a.internalCalls.length,declaration:o.toReference(),calledByEntry:l,calledBySuccess:p,calledByError:u,errorCalls:[],successCalls:[],inputs:[],outputs:[],process:null,error:null,parent:a},f=b(h,t);return f.setParent(a),f.initChildren(),f}static validateGenerationTarget(e,t){let n=JSON.parse(JSON.stringify(e));const a=[],s=tt(n,{parent:{list:!1,types:Fe}},t);n=s.modifiedData;const o=A(n.parent),l=t.get(o);if(l){const p=Yo(l),u=p==null?void 0:p.entity;if(!u)a.push(new g({id:`${n.id}--${B.InternalCallParentMissingDataType}`,code:B.InternalCallParentMissingDataType,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) its id "${n.declaration}".`,issue:null}));else if(![i.DefinitionEntity,i.BuiltInBaseEntity,i.PrimitiveEntity].includes(u.type))a.push(new g({id:`${n.id}--${B.InternalCallParentDeclarationEntityInvalidType}`,code:B.InternalCallParentDeclarationEntityInvalidType,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", belongs to a variable whose data type 'entity' is not a definition entity, built-in base entity or primitive entity.
|
|
109
|
+
The declaration of the internal-call must be a 'function-declaration' entity which exists as a method in the entity of the data-type of the parent variable.${o}`,issue:null,entity:r}).error):e.push(Q({id:`${r.id}--${B.InternalCallDeclarationNotFoundInParentDatatypeEntity}`,code:B.InternalCallDeclarationNotFoundInParentDatatypeEntity,severity:E.Error,message:`Entity of type "${r.type}" with id "${r.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) with id "${r.declaration}".${o}`,issue:null,entity:r}).error)}return e}const Te=class Te{constructor(e,t){c(this,"initialData");c(this,"id");c(this,"version");c(this,"index");c(this,"type",i.InternalCall);c(this,"declaration");c(this,"inputs",[]);c(this,"outputs",[]);c(this,"process",null);c(this,"successCalls",[]);c(this,"errorCalls",[]);c(this,"error",null);c(this,"calledBySuccess",[]);c(this,"calledByError",[]);c(this,"calledByEntry",[]);c(this,"parent");c(this,"project");c(this,"errors",[]);c(this,"initialized",!1);c(this,"suggestion",!1);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version,this.index=e.index}static fromGenerationTarget(e,t){const n=A(e.parent),a=t.get(n),s=A(e.declaration),o=t.get(s),l=e.calledByEntry.map(R=>{const v=A(R);return t.get(v)}),p=e.calledBySuccess.map(R=>{const v=A(R);return t.get(v)}),u=e.calledByError.map(R=>{const v=A(R);return t.get(v)}),h={id:e.id,version:1,type:i.InternalCall,index:a.internalCalls.length,declaration:o.toReference(),calledByEntry:l,calledBySuccess:p,calledByError:u,errorCalls:[],successCalls:[],inputs:[],outputs:[],process:null,error:null,parent:a},f=b(h,t);return f.setParent(a),f.initChildren(),f}static validateGenerationTarget(e,t){let n=JSON.parse(JSON.stringify(e));const a=[],s=tt(n,{parent:{list:!1,types:Fe}},t);n=s.modifiedData;const o=A(n.parent),l=t.get(o);if(l){const p=Yo(l),u=p==null?void 0:p.entity;if(!u)a.push(new g({id:`${n.id}--${B.InternalCallParentMissingDataType}`,code:B.InternalCallParentMissingDataType,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) its id "${n.declaration}".`,issue:null}));else if(![i.DefinitionEntity,i.BuiltInBaseEntity,i.PrimitiveEntity].includes(u.type))a.push(new g({id:`${n.id}--${B.InternalCallParentDeclarationEntityInvalidType}`,code:B.InternalCallParentDeclarationEntityInvalidType,severity:E.Error,message:`Entity of type "${n.type}" with id "${n.id}", belongs to a variable whose data type 'entity' is not a definition entity, built-in base entity or primitive entity.
|
|
110
110
|
This variable's data-type has an 'entity' field that references an entity with id '${u.id}' and of type '${u.type}'.`,issue:null}));else{const h=lp(u);let f="";h?u.methods.length?f=`
|
|
111
111
|
All 'function-declaration' entities attached as methods to the parent data-type 'entity' field, available to be called as 'internal-calls' in this variable are:
|
|
112
112
|
- ${u.methods.map(D=>D.id).join(`
|