@elyx-code/project-logic-tree 0.0.6066 → 0.0.6067

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.
@@ -1,4 +1,4 @@
1
- (function(d,n){typeof exports=="object"&&typeof module<"u"?n(exports):typeof define=="function"&&define.amd?define(["exports"],n):(d=typeof globalThis<"u"?globalThis:d||self,n(d["@elyx-code/project-logic-tree"]={}))})(this,function(d){"use strict";var F7=Object.defineProperty;var U7=(d,n,L)=>n in d?F7(d,n,{enumerable:!0,configurable:!0,writable:!0,value:L}):d[n]=L;var c=(d,n,L)=>(U7(d,typeof n!="symbol"?n+"":n,L),L);var n=(r=>(r.CustomEntity="custom-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.PrimitiveValue="primitive-value",r.Property="property",r.Operation="operation",r.Condition="condition",r.VariableDeclaration="variable-declaration",r.VariableInstance="variable-instance",r.Search="search",r.Loop="loop",r.InternalCall="internal-call",r.GenericReference="generic-reference",r))(n||{}),L=(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))(L||{}),qe=(r=>(r.CurrentDateAndTime="current-date-and-time",r.Unique="unique",r.Random="random",r))(qe||{}),D=(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.JSON="json",r.Date="date",r.UUID="uuid",r.File="file",r))(D||{}),he=(r=>(r.Addition="addition",r.Subtraction="subtraction",r.Multiplication="multiplication",r.Division="division",r.Remainder="remainder",r.Exponentiation="exponentiation",r))(he||{}),K=(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))(K||{}),W=(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))(W||{}),_e=(r=>(r.Parallel="parallel",r.Sequential="sequential",r.Wait="wait",r))(_e||{}),oe=(r=>(r.CreateNewInstance="create-new-instance",r.Validate="validate",r))(oe||{}),et=(r=>(r.HttpRequest="base-http-request",r))(et||{}),Le=(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))(Le||{}),Nt=(r=>(r.Empty="empty",r.NotEmpty="not-empty",r))(Nt||{}),F=(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))(F||{}),A=(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))(A||{}),ze=(r=>(r.OrDataTypeGroup="or-data-type-group",r.AndDataTypeGroup="and-data-type-group",r))(ze||{}),cn=(r=>(r.PROJECT_PUBLICATION_COMPLETED="GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED",r))(cn||{}),At=(r=>(r.DeletePersistedEntity="base-delete-persisted-entity",r.SoftDeletePersistedEntity="base-soft-delete-persisted-entity",r.AbortExecution="base-abort-execution",r))(At||{}),Jr=(r=>(r.Error="error",r.Task="task",r.Return="return",r))(Jr||{});const Cn=[n.VariableDeclaration,n.VariableInstance,n.InputMap,n.ReturnDeclaration],Ue=[n.VariableDeclaration,n.VariableInstance,n.ArgumentDeclaration,n.OutputMap],xu=[...Cn,...Ue],Ge=[n.VariableDeclaration,n.VariableInstance],Wr=[n.GlobalEvent],xe=[n.Operation,n.FunctionCall,n.Condition,n.Search,n.VariableDeclaration,n.VariableInstance,n.InternalCall,n.Loop],zo=[n.Operation,n.FunctionCall,n.Condition,n.Search,n.VariableDeclaration,n.VariableInstance,n.Loop],$e=[n.FunctionDeclaration,...Wr],Bn=[...xe,n.ReturnStatement,n.BreakStatement,n.ContinueStatement],Zo=[...zo,n.ReturnStatement,n.BreakStatement,n.ContinueStatement],dn=[...xe,...$e],ju=[...zo,...$e],wA=[...Bn,...$e],_A=[...Zo,...$e],ct=[...$e,n.Loop],Fe=[n.ReturnStatement,n.BreakStatement,n.ContinueStatement],NA=[n.CustomEntity,n.BuiltInBaseEntity,n.Project,n.InstalledProject,n.GlobalEvent,n.DataType,n.FunctionCall,n.FunctionDeclaration,n.ActionDescriptor,n.ValueDescriptor,n.ArgumentDeclaration,n.InputMap,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.ReturnDeclaration,n.OutputMap,n.PrimitiveEntity,n.PrimitiveValue,n.Property,n.Operation,n.Condition,n.VariableDeclaration,n.VariableInstance,n.Search,n.Loop,n.InternalCall],Ko=[n.CustomEntity,n.GlobalEvent,n.FunctionDeclaration,n.FunctionCall,n.VariableDeclaration,n.VariableInstance,n.Operation,n.Condition,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.InstalledProject,n.Loop,n.Search],ku=[n.CustomEntity,n.FunctionDeclaration,n.ArgumentDeclaration,n.ReturnDeclaration,n.Property,n.VariableDeclaration,n.Search,n.Project,n.InstalledProject,n.ActionDescriptor,n.ValueDescriptor],Yr=[n.BuiltInBaseEntity,n.PrimitiveEntity],MA=[n.CustomEntity,n.FunctionDeclaration,n.ArgumentDeclaration,n.ReturnDeclaration,n.Property,n.VariableDeclaration,n.GlobalEvent,n.Search,n.Project,n.InstalledProject,n.ActionDescriptor,n.ValueDescriptor,n.InputMap,n.OutputMap,n.FunctionCall,n.Operation,n.Condition,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.VariableInstance,n.PrimitiveValue,n.InternalCall];var Xo=(r=>(r.ActionOngoingProcessOutputValue="action-ongoing-process-output-value-descriptor-id",r))(Xo||{});const B={[n.PrimitiveEntity]:{[D.String]:{id:"8b5fbe15-4c2b-48c0-9fd8-e5efbe3978dc",properties:{}},[D.Boolean]:{id:"f596545d-1565-4faa-9969-d95fa5edfea4",properties:{}},[D.Number]:{id:"ecb84c29-6153-4b82-86a5-fce2b5f92002",properties:{}},[D.JSON]:{id:"b6f3c3c4-9c3d-4f9d-9e9e-1c0f6a3c8c6b",properties:{}},[D.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"}}}}},[D.UUID]:{id:"4a6234aa-c0f6-4731-b4dd-750388029226",properties:{}},[D.Date]:{id:"dc58f38b-d574-4956-aac6-32ce9529b937",properties:{}},[D.Null]:{id:"b6f3c3c4-9c3d-4f9d-9e9e-1c0f6a3c8c6b",properties:{}}},[n.ValueDescriptor]:{"action-ongoing-process-output-value-descriptor-id":{id:"action-ongoing-process-output-value-descriptor-id",dataType:{id:"process-output-value-data-type-id"}}},[n.BuiltInBaseEntity]:{[L.KEY_VALUE_PARAM]:{id:L.KEY_VALUE_PARAM},[L.HTTP_ENDPOINT]:{id:L.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"}}},[L.PERSISTED_ENTITY]:{id:L.PERSISTED_ENTITY,properties:{database:{id:"persisted-built-in-base-entity-database-property-id"},identifier:{id:"persisted-built-in-base-entity-identifier-property-id"}}},[L.RELATIONAL_DATABASE]:{id:L.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"}}},[L.CRON_JOB]:{id:L.CRON_JOB,properties:{expression:{id:"cron-job-built-in-base-entity-expression-property-id"}}}},[n.Operation]:{[K.Join]:{id:K.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"}}},[K.Split]:{id:K.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"}}},[he.Addition]:{id:he.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"},error:{id:"number-addition-error-return-delaration-id"}}},[he.Subtraction]:{id:he.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"},error:{id:"number-subtraction-error-return-delaration-id"}}},[et.HttpRequest]:{id:et.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"}}},[oe.Validate]:{id:oe.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"}}}},[n.Loop]:{[F.List]:{id:F.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"}}}},[F.String]:{id:F.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"}}}},[F.ObjectKeys]:{id:F.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"}}}},[F.ObjectValues]:{id:F.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"}}}},[F.ManualFlow]:{id:F.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"}}}},[F.Counted]:{id:F.Counted,inputs:{number:{id:"counted-loop-number-input-id"}},outputs:{results:{id:"counted-loop-output-id"}},body:{id:"counted-loop-body-descriptor-id",inputs:{iterationNumber:{id:"counted-loop-iteration-number-input-id"}}}}},[n.Condition]:{[Le.MoreThanOrEqual]:{id:Le.MoreThanOrEqual,inputs:{leftHand:{id:"condition-more-than-or-equal-left-hand-input-id"},rightHand:{id:"condition-more-than-or-equal-right-hand-input-id"}}},[Nt.NotEmpty]:{id:Nt.NotEmpty,inputs:{leftHand:{id:"condition-not-empty-input-id"}}}},[n.GlobalEvent]:{[cn.PROJECT_PUBLICATION_COMPLETED]:{id:cn.PROJECT_PUBLICATION_COMPLETED}}},jt=B[n.PrimitiveEntity],j={type:n.PrimitiveEntity,id:jt.string.id,description:"A string of characters.",version:1,name:D.String,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},wn={type:n.PrimitiveEntity,id:jt.boolean.id,description:"A 'true' or 'false' value.",version:1,name:D.Boolean,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Q={type:n.PrimitiveEntity,id:jt.number.id,description:"A number value.",version:1,name:D.Number,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},VA={type:n.PrimitiveEntity,id:jt.null.id,description:"An explicitly empty value.",version:1,name:D.Null,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Ze={type:n.PrimitiveEntity,id:"730e8ea9-8498-439a-9001-b07de55aaa7d",description:"A complex data structure with any combination of properties with names and values.",version:1,name:D.JSON,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},qu={id:"c2f52f01-8f2e-490e-8083-72289c8189c1",type:n.GenericReference,entityId:"7dd59b70-f97b-43a7-a051-fde1842ce5d6",entityType:n.DataType},Ju={id:"4e803941-2e6a-4227-b803-b8877c0d7fee",type:n.GenericReference,entityId:"00ccfcae-2104-45ef-bf6c-50ddccd74286",entityType:n.Property},Wu={like:!1,inferred:!1,id:jt.enum.properties.options.dataType.id,version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:j,asType:!1,defaultValue:{id:jt.enum.properties.options.dataType.defaultValue.id,type:n.PrimitiveValue,version:1,name:D.JSON,autogeneration:null,value:[],valueAsType:null,parent:qu},parent:Ju},Yu={id:"a2983c4c-0286-4ef1-8b5c-5a52904d3200",type:n.GenericReference,entityId:"9542b8b4-2642-4eee-9db9-def7963a17a0",entityType:n.PrimitiveEntity},Hu={hidden:!1,required:!0,id:jt.enum.properties.options.id,name:"Options",version:1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:Wu,description:"Options for the enum. Each option is a text value.",parent:Yu},_n={type:n.PrimitiveEntity,id:jt.enum.id,description:"A set of text options to choose from.",version:1,name:D.Enum,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[Hu],methods:[]},un={type:n.PrimitiveEntity,id:jt.date.id,description:"A date and time value.",version:1,name:D.Date,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},ka={type:n.PrimitiveEntity,id:jt.uuid.id,description:"A unique identifier in the form of a 36-character string.",version:1,name:D.UUID,static:!1,abstract:!1,abstractMethods:[],extends:[j],properties:[],methods:[]},Qo={type:n.PrimitiveEntity,id:jt.json.id,description:"A complex data structure with any combination of properties with names and values.",version:1,name:D.JSON,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},pn=B[n.Operation][he.Addition],zu={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:pn.inputs.firstSummand.id,entityType:n.ValueDescriptor},Zu={like:!1,inferred:!1,id:"number-addition-first-number-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:zu},Ku={type:n.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:pn.inputs.secondSummand.id,entityType:n.ValueDescriptor},Xu={like:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Ku},Qu={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:pn.outputs.result.id,entityType:n.ValueDescriptor},ep={like:!1,inferred:!1,id:"b761acec-0755-4582-a68b-76267038bbe1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Qu},tp={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:he.Addition,entityType:n.ActionDescriptor},el={id:pn.inputs.firstSummand.id,type:n.ValueDescriptor,version:1,name:"Summand",description:"The first number to add",dataType:Zu,required:!0,parentRelationType:A.FixedArguments,index:0,parent:tp},np={type:n.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:he.Addition,entityType:n.ActionDescriptor},tl={id:pn.inputs.secondSummand.id,type:n.ValueDescriptor,description:"The second number to add",version:1,name:"Summand",dataType:Xu,required:!0,parentRelationType:A.FixedArguments,index:1,parent:np},nl={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:he.Addition,entityType:n.ActionDescriptor},rl={parentRelationType:A.FixedReturns,id:pn.outputs.result.id,type:n.ValueDescriptor,description:"The result number of the addition",version:1,name:"Result",dataType:ep,required:!0,index:0,parent:nl},rp={type:n.GenericReference,id:"number-addition-operation-error-parent-ref",entityId:he.Addition,entityType:n.ActionDescriptor},ip={parentRelationType:A.FixedReturns,id:pn.outputs.error.id,type:n.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:rp},ap={type:n.GenericReference,id:"number-addition-operation-dynamic-summand-argument-type-parent-ref",entityId:pn.inputs.dynamicSummand.id,entityType:n.ValueDescriptor},sp={like:!1,inferred:!1,id:"number-addition-operation-dynamic-summand-argument-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:ap},op={parentRelationType:A.DynamicArgument,id:pn.inputs.dynamicSummand.id,type:n.ValueDescriptor,description:"A number to add",version:1,name:"Summand",dataType:sp,required:!0,index:2,parent:nl},qa={id:he.Addition,type:n.ActionDescriptor,description:"Sum numbers",version:1,name:he.Addition,inputs:[el,tl,op],error:ip,outputs:[rl],parent:null},yn=B[n.Operation][he.Subtraction],lp={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:yn.inputs.minuend.id,entityType:n.ValueDescriptor},cp={like:!1,inferred:!1,id:"number-subtraction-first-number-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:lp},dp={type:n.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:yn.inputs.subtrahend.id,entityType:n.ValueDescriptor},up={like:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:dp},pp={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:yn.outputs.result.id,entityType:n.ValueDescriptor},yp={like:!1,inferred:!1,id:"b761acec-0755-4582-a68b-76267038bbe1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:pp},il={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:he.Subtraction,entityType:n.ActionDescriptor},hp={id:yn.inputs.minuend.id,type:n.ValueDescriptor,version:1,name:"Minuend",description:"Base number to substract from",dataType:cp,required:!0,parentRelationType:A.FixedArguments,index:0,parent:il},fp={type:n.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:he.Subtraction,entityType:n.ActionDescriptor},mp={id:yn.inputs.subtrahend.id,type:n.ValueDescriptor,description:"The second number to substract",version:1,name:"Subtrahend",dataType:up,required:!0,parentRelationType:A.FixedArguments,index:1,parent:fp},Tp={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:he.Subtraction,entityType:n.ActionDescriptor},Ep={parentRelationType:A.FixedReturns,id:yn.outputs.result.id,type:n.ValueDescriptor,description:"The result number of the subtraction",version:1,name:"Result",dataType:yp,required:!0,index:0,parent:Tp},bp={type:n.GenericReference,id:"number-subtraction-operation-error-parent-ref",entityId:he.Subtraction,entityType:n.ActionDescriptor},Rp={parentRelationType:A.FixedReturns,id:yn.outputs.error.id,type:n.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:bp},gp={type:n.GenericReference,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-parent-ref",entityId:yn.inputs.dynamicSubtrahend.id,entityType:n.ValueDescriptor},vp={like:!1,inferred:!1,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:gp},Ip={id:yn.inputs.dynamicSubtrahend.id,type:n.ValueDescriptor,version:1,name:"Subtrahend",description:"A number to substract",dataType:vp,required:!0,parentRelationType:A.DynamicArgument,index:2,parent:il},al={id:he.Subtraction,type:n.ActionDescriptor,description:"Substract numbers",version:1,name:he.Subtraction,inputs:[hp,mp,Ip],error:Rp,outputs:[Ep],parent:null},Dp={[he.Addition]:qa,[he.Subtraction]:al},kt=B[n.Operation][K.Join],Pp={type:n.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:kt.inputs.first.id,entityType:n.ValueDescriptor},Ap={like:!1,inferred:!1,id:"join-strings-first-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Pp},Op={type:n.GenericReference,id:"join-strings-second-string-argument-declaration",entityId:kt.inputs.second.id,entityType:n.ValueDescriptor},Sp={like:!1,inferred:!1,id:"join-strings-second-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Op},Cp={type:n.GenericReference,id:"join-strings-result-string-return-delaration",entityId:kt.outputs.result.id,entityType:n.ValueDescriptor},Bp={like:!1,inferred:!1,id:"join-strings-result-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Cp},wp={type:n.GenericReference,id:"join-strings-operation-first-string-argument-parent-ref",entityId:K.Join,entityType:n.ActionDescriptor},Ja={id:kt.inputs.first.id,type:n.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.",dataType:Ap,parentRelationType:A.FixedArguments,required:!0,index:1,parent:wp},_p={type:n.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:kt.inputs.first.id,entityType:n.ValueDescriptor},Np={type:n.GenericReference,id:"join-strings-separator-string-data-type-default-value-parent-ref",entityId:"join-strings-separator-string-data-type-id",entityType:n.DataType},Mp={type:n.PrimitiveValue,id:"join-strings-separator-string-data-type-default-value-id",version:1,name:D.String,value:"",valueAsType:null,autogeneration:null,parent:Np},Vp={like:!1,inferred:!1,id:"join-strings-separator-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:Mp,constant:!1,parent:_p},Lp={type:n.GenericReference,id:"join-strings-operation-separator-string-argument-parent-ref",entityId:K.Join,entityType:n.ActionDescriptor},Gp={id:kt.inputs.separator.id,type:n.ValueDescriptor,version:1,name:"Separator",description:"The text value that will be inserted between each of the values that are joined.",dataType:Vp,parentRelationType:A.FixedArguments,required:!1,index:0,parent:Lp},$p={type:n.GenericReference,id:"join-strings-operation-second-string-argument-parent-ref",entityId:K.Join,entityType:n.ActionDescriptor},Wa={id:kt.inputs.second.id,type:n.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.",dataType:Sp,parentRelationType:A.FixedArguments,required:!0,index:2,parent:$p},Fp={type:n.GenericReference,id:"join-strings-operation-result-string-return-parent-ref",entityId:K.Join,entityType:n.ActionDescriptor},Bi={parentRelationType:A.FixedReturns,id:kt.outputs.result.id,type:n.ValueDescriptor,version:1,name:"Result",description:"The resulting text value.",dataType:Bp,required:!0,index:0,parent:Fp},Up={type:n.GenericReference,id:"join-strings-operation-error-parent-ref",entityId:K.Join,entityType:n.ActionDescriptor},xp={parentRelationType:A.FixedReturns,id:kt.outputs.error.id,type:n.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Up},jp={type:n.GenericReference,id:"join-strings-dynamic-string-argument-declaration",entityId:kt.inputs.dynamicString.id,entityType:n.ValueDescriptor},kp={like:!1,inferred:!1,id:"join-strings-dynamic-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:jp},qp={type:n.GenericReference,id:"join-strings-operation-dynamic-string-argument-parent-ref",entityId:K.Join,entityType:n.ActionDescriptor},Jp={id:kt.inputs.dynamicString.id,type:n.ValueDescriptor,version:1,name:"Text",description:"Text to join to the previous ones. Its value will be at the end of the resulting text.",dataType:kp,parentRelationType:A.DynamicArgument,required:!0,index:3,parent:qp},wi={id:K.Join,type:n.ActionDescriptor,version:1,name:K.Join,description:"Join text values together, to form a single resulting text value.",inputs:[Gp,Ja,Wa,Jp],outputs:[Bi],error:xp,parent:null},hn=B[n.Operation][K.Split],Wp={type:n.GenericReference,id:"split-string-string-argument-declaration",entityId:hn.inputs.stringValue.id,entityType:n.ValueDescriptor},Yp={like:!1,inferred:!1,id:"split-string-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Wp},Hp={type:n.GenericReference,id:"split-string-index-argument-declaration",entityId:hn.inputs.indexLocation.id,entityType:n.ValueDescriptor},zp={like:!1,inferred:!1,id:"split-string-index-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Hp},Zp={type:n.GenericReference,id:"split-string-first-part-result-string-return-delaration",entityId:hn.outputs.firstPartResult.id,entityType:n.ValueDescriptor},Kp={like:!1,inferred:!1,id:"split-string-first-part-result-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Zp},Xp={type:n.GenericReference,id:"split-string-second-part-result-string-return-delaration",entityId:hn.outputs.secondPartResult.id,entityType:n.ValueDescriptor},Qp={like:!1,inferred:!1,id:"split-string-second-part-result-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Xp},ey={type:n.GenericReference,id:"split-string-operation-string-argument-parent-ref",entityId:K.Join,entityType:n.ActionDescriptor},ty={id:hn.inputs.stringValue.id,type:n.ValueDescriptor,version:1,name:"Text value",description:"The text value that will be split into two at the given index location.",dataType:Yp,parentRelationType:A.FixedArguments,required:!0,index:0,parent:ey},ny={type:n.GenericReference,id:"split-string-operation-index-argument-parent-ref",entityId:K.Join,entityType:n.ActionDescriptor},ry={id:hn.inputs.indexLocation.id,type:n.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.",dataType:zp,parentRelationType:A.FixedArguments,required:!0,index:1,parent:ny},iy={type:n.GenericReference,id:"split-string-operation-second-part-result-string-return-parent-ref",entityId:K.Join,entityType:n.ActionDescriptor},LA={parentRelationType:A.FixedReturns,id:hn.outputs.secondPartResult.id,type:n.ValueDescriptor,version:1,name:"Second part",description:"The secont part of the resulting text value.",dataType:Qp,required:!0,index:1,parent:iy},ay={type:n.GenericReference,id:"split-string-operation-first-part-result-string-return-parent-ref",entityId:K.Join,entityType:n.ActionDescriptor},sy={parentRelationType:A.FixedReturns,id:hn.outputs.firstPartResult.id,type:n.ValueDescriptor,version:1,name:"First part",description:"The first part of the resulting text value.",dataType:Kp,required:!0,index:0,parent:ay},oy={type:n.GenericReference,id:"split-string-operation-error-parent-ref",entityId:K.Join,entityType:n.ActionDescriptor},ly={parentRelationType:A.FixedReturns,id:hn.outputs.error.id,type:n.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:oy},sl={id:K.Split,type:n.ActionDescriptor,version:1,name:K.Split,description:"Split a text into two, at the given index location.",inputs:[ty,ry],outputs:[sy],error:ly,parent:null},cy={[K.Join]:wi,[K.Split]:sl};var dy=(r=>(r.FirstInputList="join-list-first-list-argument-declaration",r.SecondInputList="join-list-second-list-argument-declaration",r))(dy||{}),uy=(r=>(r.ResultList="join-list-result-list-return-delaration",r.Error="join-list-error-return-delaration",r))(uy||{});const py={type:n.GenericReference,id:"join-list-operation-first-list-argument-ref",entityId:"join-list-first-list-argument-declaration",entityType:n.ValueDescriptor},yy={like:!1,inferred:!1,id:"join-list-first-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:py},hy={type:n.GenericReference,id:"join-list-operation-second-list-argument-ref",entityId:"join-list-second-list-argument-declaration",entityType:n.ValueDescriptor},fy={like:!1,inferred:!1,id:"join-list-second-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:hy},my={type:n.GenericReference,id:"join-list-operation-result-list-return-ref",entityId:"join-list-result-list-return-delaration",entityType:n.ValueDescriptor},Ty={like:!1,inferred:!1,id:"join-list-result-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:my},Ey={type:n.GenericReference,id:"join-list-operation-first-list-argument-parent-ref",entityId:W.Join,entityType:n.ActionDescriptor},by={id:"join-list-first-list-argument-declaration",type:n.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.",dataType:yy,parentRelationType:A.FixedArguments,required:!0,index:0,parent:Ey},Ry={type:n.GenericReference,id:"join-list-operation-second-list-argument-parent-ref",entityId:W.Join,entityType:n.ActionDescriptor},gy={id:"join-list-second-list-argument-declaration",type:n.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.",dataType:fy,parentRelationType:A.FixedArguments,required:!0,index:1,parent:Ry},vy={type:n.GenericReference,id:"join-list-operation-result-list-return-parent-ref",entityId:W.Join,entityType:n.ActionDescriptor},Iy={parentRelationType:A.FixedReturns,id:"join-list-result-list-return-delaration",type:n.ValueDescriptor,version:1,name:"Result",description:"The resulting list value.",dataType:Ty,required:!0,index:0,parent:vy},Dy={type:n.GenericReference,id:"join-list-operation-error-parent-ref",entityId:W.Join,entityType:n.ActionDescriptor},Py={parentRelationType:A.FixedReturns,id:"join-list-error-return-delaration",type:n.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Dy},ol={id:W.Join,type:n.ActionDescriptor,version:1,name:W.Join,description:"Join two lists together, to form a single resulting list value.",inputs:[by,gy],error:Py,outputs:[Iy],parent:null};var Ay=(r=>(r.InputList="list-to-split-argument-declaration",r.SplitIndex="split-list-index-argument-declaration",r))(Ay||{}),Oy=(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))(Oy||{});const Sy={type:n.GenericReference,id:"split-list-operation-input-list-argument-ref",entityId:"list-to-split-argument-declaration",entityType:n.ValueDescriptor},Cy={like:!1,inferred:!1,id:"split-list-operation-input-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Sy},By={type:n.GenericReference,id:"split-list-operation-split-index-argument-ref",entityId:"split-list-index-argument-declaration",entityType:n.ValueDescriptor},wy={like:!1,inferred:!1,id:"split-list-operation-split-index-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:By},ll={type:n.GenericReference,id:"split-list-operation-first-output-list-return-ref",entityId:"split-list-first-output-list-return-delaration",entityType:n.ValueDescriptor},_y={like:!1,inferred:!1,id:"split-list-operation-first-output-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:ll},Ny={type:n.GenericReference,id:"split-list-operation-input-list-argument-parent-ref",entityId:W.Split,entityType:n.ActionDescriptor},My={id:"list-to-split-argument-declaration",type:n.ValueDescriptor,version:1,name:"List to split",description:"The list to split at the given index",dataType:Cy,parentRelationType:A.FixedArguments,required:!0,index:0,parent:Ny},Vy={type:n.GenericReference,id:"split-list-operation-split-index-argument-parent-ref",entityId:W.Split,entityType:n.ActionDescriptor},Ly={id:"split-list-index-argument-declaration",type:n.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.",dataType:wy,parentRelationType:A.FixedArguments,required:!0,index:1,parent:Vy},Gy={type:n.GenericReference,id:"split-list-operation-first-output-list-return-parent-ref",entityId:W.Split,entityType:n.ActionDescriptor},$y={parentRelationType:A.FixedReturns,id:"split-list-first-output-list-return-delaration",type:n.ValueDescriptor,version:1,name:"First list",description:"The list of values up to the split index",dataType:_y,required:!0,index:0,parent:Gy},Fy={like:!1,inferred:!1,id:"split-list-operation-second-output-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:ll},Uy={type:n.GenericReference,id:"split-list-operation-second-output-list-return-parent-ref",entityId:W.Split,entityType:n.ActionDescriptor},xy={parentRelationType:A.FixedReturns,id:"split-list-second-output-list-return-delaration",type:n.ValueDescriptor,version:1,name:"Second list",description:"The list of values up to the split index",dataType:Fy,required:!0,index:0,parent:Uy},jy={type:n.GenericReference,id:"split-list-operation-error-parent-ref",entityId:W.Split,entityType:n.ActionDescriptor},ky={parentRelationType:A.FixedReturns,id:"split-list-error-return-delaration",type:n.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:jy},cl={id:W.Split,type:n.ActionDescriptor,version:1,name:W.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:[My,Ly],outputs:[$y,xy],error:ky,parent:null};var qy=(r=>(r.InputList="get-last-in-list-input-list-argument-declaration",r))(qy||{}),Jy=(r=>(r.OutputElement="get-last-in-list-output-element-return-delaration",r.Error="get-last-in-list-error-return-delaration",r))(Jy||{});const Wy={type:n.GenericReference,id:"get-last-in-list-operation-input-list-argument-ref",entityId:"get-last-in-list-input-list-argument-declaration",entityType:n.ValueDescriptor},Yy={like:!1,inferred:!1,id:"get-last-in-list-input-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Wy},Hy={type:n.GenericReference,id:"get-last-in-list-operation-output-element-return-ref",entityId:"get-last-in-list-output-element-return-delaration",entityType:n.ValueDescriptor},zy={like:!1,inferred:!1,id:"get-last-in-list-output-element-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Hy},Zy={type:n.GenericReference,id:"get-last-in-list-operation-input-list-argument-parent-ref",entityId:W.GetLast,entityType:n.ActionDescriptor},Ky={id:"get-last-in-list-input-list-argument-declaration",type:n.ValueDescriptor,version:1,name:"List",description:"The list to get the last element from.",dataType:Yy,parentRelationType:A.FixedArguments,required:!0,index:0,parent:Zy},Xy={type:n.GenericReference,id:"get-last-in-list-operation-output-element-return-parent-ref",entityId:W.GetLast,entityType:n.ActionDescriptor},Qy={parentRelationType:A.FixedReturns,id:"get-last-in-list-output-element-return-delaration",type:n.ValueDescriptor,version:1,name:"Last element",description:"The last element of the given list.",dataType:zy,required:!0,index:0,parent:Xy},eh={type:n.GenericReference,id:"get-last-in-list-operation-error-parent-ref",entityId:W.GetLast,entityType:n.ActionDescriptor},th={parentRelationType:A.FixedReturns,id:"get-last-in-list-error-return-delaration",type:n.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:eh},dl={id:W.GetLast,type:n.ActionDescriptor,version:1,name:W.GetLast,description:"Outputs the last element of a given list.",inputs:[Ky],outputs:[Qy],error:th,parent:null};var nh=(r=>(r.List="append-to-list-lsit-argument-declaration",r.ElementToAppend="append-to-list-element-to-append-argument-declaration",r))(nh||{}),rh=(r=>(r.ResultList="append-to-list-result-list-return-delaration",r.Error="append-to-list-error-return-delaration",r))(rh||{});const ih={type:n.GenericReference,id:"append-to-list-operation-lsit-argument-ref",entityId:"append-to-list-lsit-argument-declaration",entityType:n.ValueDescriptor},ah={like:!1,inferred:!1,id:"append-to-list-lsit-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:ih},sh={type:n.GenericReference,id:"append-to-list-operation-second-list-argument-ref",entityId:"append-to-list-element-to-append-argument-declaration",entityType:n.ValueDescriptor},oh={like:!1,inferred:!1,id:"append-to-list-second-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:sh},lh={type:n.GenericReference,id:"append-to-list-operation-result-list-return-ref",entityId:"append-to-list-result-list-return-delaration",entityType:n.ValueDescriptor},ch={like:!1,inferred:!1,id:"append-to-list-result-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:lh},dh={type:n.GenericReference,id:"append-to-list-operation-lsit-argument-parent-ref",entityId:W.Append,entityType:n.ActionDescriptor},ul={id:"append-to-list-lsit-argument-declaration",type:n.ValueDescriptor,version:1,name:"List value",description:"The list to which the element will be appended",dataType:ah,parentRelationType:A.FixedArguments,required:!0,index:0,parent:dh},uh={type:n.GenericReference,id:"append-to-list-operation-second-list-argument-parent-ref",entityId:W.Append,entityType:n.ActionDescriptor},pl={id:"append-to-list-element-to-append-argument-declaration",type:n.ValueDescriptor,version:1,name:"Element",description:"The element that will be added at the end of the list",dataType:oh,parentRelationType:A.FixedArguments,required:!0,index:1,parent:uh},ph={type:n.GenericReference,id:"append-to-list-operation-result-list-return-parent-ref",entityId:W.Append,entityType:n.ActionDescriptor},yh={parentRelationType:A.FixedReturns,id:"append-to-list-result-list-return-delaration",type:n.ValueDescriptor,version:1,name:"Result",description:"The resulting list value.",dataType:ch,required:!0,index:0,parent:ph},hh={type:n.GenericReference,id:"append-to-list-operation-error-parent-ref",entityId:W.Append,entityType:n.ActionDescriptor},fh={parentRelationType:A.FixedReturns,id:"append-to-list-error-return-delaration",type:n.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:hh},Ya={id:W.Append,type:n.ActionDescriptor,version:1,name:W.Append,description:"Adds a given element to the end of a list value.",inputs:[ul,pl],error:fh,outputs:[yh],parent:null},mh={[W.Join]:ol,[W.Split]:cl,[W.GetLast]:dl,[W.Append]:Ya};var Th=(r=>(r.ListOfFunctions="parallel-execution-list-of-functions-argument-declaration",r))(Th||{}),Eh=(r=>(r.ListOfExecutionResults="parallel-execution-result-return-delaration",r.Error="parallel-execution-error-return-delaration",r))(Eh||{});const bh={id:"parallel-execution-list-of-functions-blueprint-dynamic-output-id",type:n.ValueDescriptor,version:1,name:"Any output value",description:"An output value of any type, to be used in the action to be executed.",dataType:null,required:!1,index:0,parent:null,parentRelationType:A.DynamicArgument},Rh={id:"parallel-execution-list-of-functions-blueprint-dynamic-input-id",type:n.ValueDescriptor,version:1,name:"Any input value",description:"An input value of any type, to be used in the action to be executed.",dataType:null,required:!1,index:0,parent:null,parentRelationType:A.DynamicArgument},gh={id:"parallel-execution-list-of-functions-blueprint-id",type:n.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:[Rh],outputs:[bh],error:null,parent:null},vh={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:"parallel-execution-list-of-functions-argument-declaration",entityType:n.ValueDescriptor},Ih={like:!1,inferred:!1,id:"parallel-execution-list-of-functions-argument-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:gh,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:vh},Dh={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:"parallel-execution-result-return-delaration",entityType:n.ValueDescriptor},Ph={like:!1,inferred:!1,id:"b761acec-0755-4582-a68b-76267038bbe1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Dh},Ah={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:_e.Parallel,entityType:n.ActionDescriptor},yl={id:"parallel-execution-list-of-functions-argument-declaration",type:n.ValueDescriptor,version:1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",dataType:Ih,required:!0,index:0,parent:Ah,parentRelationType:A.FixedArguments},Oh={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:_e.Parallel,entityType:n.ActionDescriptor},hl={id:"parallel-execution-result-return-delaration",type:n.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:Ph,required:!0,index:0,parent:Oh,parentRelationType:A.FixedReturns},Sh={type:n.GenericReference,id:"parallel-execution-operation-error-parent-ref",entityId:_e.Parallel,entityType:n.ActionDescriptor},Ch={id:"parallel-execution-error-return-delaration",type:n.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Sh,parentRelationType:A.ReturnedError},qt={id:_e.Parallel,type:n.ActionDescriptor,description:"Execute a list of actions in parallel",version:1,name:_e.Parallel,inputs:[yl],outputs:[hl],error:Ch,parent:null};var Bh=(r=>(r.MillisecondsNumber="wait-milliseconds-number-argument-declaration",r))(Bh||{}),wh=(r=>(r.Error="wait-operation-error-return-delaration",r))(wh||{});const _h={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityType:n.ValueDescriptor,entityId:"wait-milliseconds-number-argument-declaration"},Nh={like:!1,inferred:!1,id:"wait-milliseconds-number-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:_h},Mh={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityType:n.ActionDescriptor,entityId:_e.Wait},er={id:"wait-milliseconds-number-argument-declaration",type:n.ValueDescriptor,version:1,name:"Milliseconds to wait",description:"The amount of milliseconds to wait before calling the next entity",dataType:Nh,required:!0,index:0,parent:Mh,parentRelationType:A.FixedArguments},Vh={type:n.GenericReference,id:"wait-operation-error-parent-ref",entityId:_e.Wait,entityType:n.ActionDescriptor},Lh={id:"wait-operation-error-return-delaration",type:n.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Vh,parentRelationType:A.ReturnedError},dt={id:_e.Wait,type:n.ActionDescriptor,description:"Wait for the given amount of milliseconds before calling the next entity",version:1,name:_e.Wait,inputs:[er],outputs:[],error:Lh,parent:null};var Gh=(r=>(r.ListOfFunctions="sequential-execution-list-of-functions-argument-declaration",r))(Gh||{}),$h=(r=>(r.ListOfExecutionResults="sequential-execution-result-return-delaration",r.Error="sequential-execution-error-return-delaration",r))($h||{});const Fh={id:"sequential-execution-list-of-functions-blueprint-dynamic-output-id",type:n.ValueDescriptor,version:1,name:"Any output value",description:"An output value of any type, to be used in the action to be executed.",dataType:null,required:!1,index:0,parent:null,parentRelationType:A.DynamicArgument},Uh={id:"sequential-execution-list-of-functions-blueprint-dynamic-input-id",type:n.ValueDescriptor,version:1,name:"Any input value",description:"An input value of any type, to be used in the action to be executed.",dataType:null,required:!1,index:0,parent:null,parentRelationType:A.DynamicArgument},xh={id:"sequential-execution-list-of-functions-blueprint-id",type:n.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:[Uh],outputs:[Fh],error:null,parent:null},jh={type:n.GenericReference,id:"parallel-execution-list-of-functions-argument-declaration-id",entityId:"sequential-execution-list-of-functions-argument-declaration",entityType:n.ValueDescriptor},kh={like:!1,inferred:!1,id:"sequential-execution-list-of-functions-argument-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:xh,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:jh},qh={type:n.GenericReference,id:"sequential-execution-list-of-execution-results-return-declaration-id",entityId:"sequential-execution-result-return-delaration",entityType:n.ValueDescriptor},Jh={like:!1,inferred:!1,id:"sequential-execution-list-of-execution-results-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:qh},Wh={type:n.GenericReference,id:"parallel-execution-operation-list-of-functions-argument-parent-ref",entityId:_e.Sequential,entityType:n.ActionDescriptor},fl={id:"sequential-execution-list-of-functions-argument-declaration",type:n.ValueDescriptor,version:1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",dataType:kh,required:!0,index:0,parent:Wh,parentRelationType:A.FixedArguments},Yh={type:n.GenericReference,id:"parallel-execution-operation-list-of-execution-results-return-parent-ref",entityId:_e.Sequential,entityType:n.ActionDescriptor},ml={id:"sequential-execution-result-return-delaration",type:n.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:Jh,required:!0,index:0,parent:Yh,parentRelationType:A.FixedReturns},Hh={type:n.GenericReference,id:"sequential-execution-operation-error-parent-ref",entityId:_e.Sequential,entityType:n.ActionDescriptor},zh={id:"sequential-execution-error-return-delaration",type:n.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Hh,parentRelationType:A.ReturnedError},fn={id:_e.Sequential,type:n.ActionDescriptor,description:"Execute a list of actions one after the other",version:1,name:_e.Sequential,inputs:[fl],outputs:[ml],error:zh,parent:null},Zh={[_e.Parallel]:qt,[_e.Wait]:dt,[_e.Sequential]:fn};var Kh=(r=>(r.EntityToInstanciate="entity-to-instanciate-argument-declaration",r.NewEntityData="new-entity-data-argument-declaration",r))(Kh||{}),Xh=(r=>(r.Error="create-new-instance-error-return-delaration",r))(Xh||{});const Qh={type:n.GenericReference,id:"new-entity-data-argument-declaration-parent-ref",entityId:oe.CreateNewInstance,entityType:n.ActionDescriptor},ef={type:n.GenericReference,id:"new-entity-data-argument-data-type-parent-ref",entityId:"new-entity-data-argument-declaration",entityType:n.ValueDescriptor},tf={like:!1,inferred:!1,id:"new-entity-data-argument-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:ef},nf={id:"new-entity-data-argument-declaration",type:n.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:tf,required:!0,parentRelationType:A.FixedArguments,index:1,parent:Qh},rf={type:n.GenericReference,id:"entity-to-instanciate-argument-declaration-ref",entityType:n.ValueDescriptor,entityId:"entity-to-instanciate-argument-declaration"},af={like:!1,inferred:!1,id:"entity-to-instanciate-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!0,isNullable:!1,defaultValue:null,constant:!1,parent:rf},sf={type:n.GenericReference,id:"create-new-instance-operation-ref",entityType:n.ActionDescriptor,entityId:oe.CreateNewInstance},of={id:"entity-to-instanciate-argument-declaration",type:n.ValueDescriptor,version:1,name:"Entity to create a new copy of",description:"The entity of which a new copy will to be created",dataType:af,required:!0,parentRelationType:A.FixedArguments,index:0,parent:sf},lf={type:n.GenericReference,id:"create-new-instance-output-entity-declaration-parent-ref",entityId:oe.CreateNewInstance,entityType:n.ActionDescriptor},cf={parentRelationType:A.FixedReturns,id:"create-new-instance-output-entity-declaration",type:n.ValueDescriptor,version:1,dataType:null,name:"Created entity",description:"The entity that was created",parent:lf,required:!0,index:0},df={type:n.GenericReference,id:"create-new-instance-error-parent-ref",entityId:oe.CreateNewInstance,entityType:n.ActionDescriptor},uf={parentRelationType:A.FixedReturns,id:"create-new-instance-error-return-delaration",type:n.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:df},tr={id:oe.CreateNewInstance,type:n.ActionDescriptor,description:"Creates a new copy of a given entity, with the given values for each property, or default values if a value is not provided",version:1,name:oe.CreateNewInstance,inputs:[of,nf],outputs:[cf],error:uf,parent:null},Hr=B[n.Operation][oe.Validate],pf={type:n.GenericReference,id:"validate-data-operation-data-to-validate-argument-declaration-ref",entityType:n.ValueDescriptor,entityId:Hr.inputs.dataToValidate.id},yf={like:!1,inferred:!1,id:"validate-data-operation-data-to-validate-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:pf},hf={type:n.GenericReference,id:"validate-data-operation-data-to-validate-argument-parent-ref",entityType:n.ActionDescriptor,entityId:oe.Validate},ff={id:Hr.inputs.dataToValidate.id,type:n.ValueDescriptor,version:1,name:"Data to validate",description:"The value to validate against the given entity type",dataType:yf,required:!0,parentRelationType:A.FixedArguments,index:0,parent:hf},mf={type:n.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-declaration-ref",entityType:n.ValueDescriptor,entityId:Hr.inputs.entityToMatch.id},Tf={like:!1,inferred:!1,id:"validate-data-operation-entity-to-match-type-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!0,isNullable:!1,defaultValue:null,constant:!1,parent:mf},Ef={type:n.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-parent-ref",entityType:n.ActionDescriptor,entityId:oe.Validate},bf={id:Hr.inputs.entityToMatch.id,type:n.ValueDescriptor,version:1,name:"Entity to match",description:"The entity to match the data against",dataType:Tf,required:!0,index:0,parentRelationType:A.FixedArguments,parent:Ef},Rf={type:n.GenericReference,id:"validate-data-operation-output-entity-declaration-parent-ref",entityId:oe.Validate,entityType:n.ActionDescriptor},gf={id:Hr.outputs.outputEntity.id,type:n.ValueDescriptor,version:1,dataType:null,name:"Output value",description:"A value with the type of the entity that was validated",parent:Rf,required:!0,index:0,parentRelationType:A.FixedReturns},vf={type:n.GenericReference,id:"wait-operation-error-parent-ref",entityId:oe.Validate,entityType:n.ActionDescriptor},If={id:Hr.outputs.error.id,type:n.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:vf,parentRelationType:A.ReturnedError},nr={id:oe.Validate,type:n.ActionDescriptor,description:"Validates the given data to see if it matches the structure of a given type/entity",version:1,name:oe.Validate,inputs:[bf,ff],outputs:[gf],error:If,parent:null},Df={[oe.CreateNewInstance]:tr,[oe.Validate]:nr},Ke=B[n.Operation]["base-http-request"],Pf={type:n.GenericReference,id:"d87cf943-57e1-4d19-9f05-190fa8c8ebc4",entityType:n.DataType,entityId:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3"},Af={id:"http-request-url-default-value-id",type:n.PrimitiveValue,version:1,value:"https://some-url.com",name:D.String,valueAsType:null,parent:Pf,autogeneration:null},Of={type:n.GenericReference,id:"aed50d73-eab5-42ce-b00e-7f5c45a9026f",entityId:Ke.inputs.url.id,entityType:n.ValueDescriptor},Sf={like:!1,inferred:!1,id:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:Af,constant:!1,parent:Of},Cf={type:n.GenericReference,id:"c3145af6-3387-464a-8887-272e483c856d",entityId:Ke.inputs.query.id,entityType:n.ValueDescriptor},Bf={like:!1,inferred:!1,id:"2a5ba737-6335-4cc4-a2c0-16dca4052fac",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Cf},wf={type:n.GenericReference,id:"075556b7-e468-48f7-8485-7159eaf389b2",entityType:n.DataType,entityId:"6df7ec2b-5dbd-44af-896b-17b314e88560"},_f={id:"http-request-method-default-value-id",type:n.PrimitiveValue,version:1,value:"GET",name:D.Enum,valueAsType:null,parent:wf,autogeneration:null},Nf={type:n.GenericReference,id:"aed647c8-a1b5-4cfc-9a3d-97887a567a80",entityId:Ke.inputs.method.id,entityType:n.ValueDescriptor},Mf={like:!1,inferred:!1,id:"6df7ec2b-5dbd-44af-896b-17b314e88560",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:_n,isList:!1,asType:!1,isNullable:!1,defaultValue:_f,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],constant:!1,parent:Nf},Vf={type:n.GenericReference,id:"77203dfa-d2f6-4804-9556-e1cce46228f3",entityId:Ke.inputs.headers.id,entityType:n.ValueDescriptor},Lf={like:!1,inferred:!1,id:"2c8a2a07-69c6-40ad-b5c9-f0dc4d5955ce",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ze,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Vf},Gf={type:n.GenericReference,id:"03db68a0-7ab6-4c6a-85b6-f4b95ebb53ff",entityId:Ke.inputs.body.id,entityType:n.ValueDescriptor},$f={like:!1,inferred:!1,id:"0397876c-ed54-4ee9-85a4-04fd16dad973",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ze,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Gf},Ff={type:n.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",entityType:n.ValueDescriptor,entityId:Ke.outputs.code.id},Uf={like:!1,inferred:!1,id:"45e6d0bc-0c0e-4059-a7a1-6bee925d73d0",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Ff},xf={type:n.GenericReference,id:"2baaa53a-9aef-4bd1-b06d-967c17b7b627",entityType:n.DataType,entityId:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe"},jf={type:n.GenericReference,id:"69f34d6c-c686-4165-b6ff-70dae8e1778b",entityType:n.ValueDescriptor,entityId:Ke.outputs.headers.id},kf={like:!1,inferred:!1,id:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ze,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"http-response-headers-default-value-id",type:n.PrimitiveValue,version:1,value:{},name:D.JSON,parent:xf,valueAsType:null,autogeneration:null},constant:!1,parent:jf},qf={type:n.GenericReference,id:"744334e0-5135-4214-85d0-809437cb620b",entityType:n.DataType,entityId:"05fc1a5d-151a-479a-9c4e-4063f3456177"},Jf={type:n.GenericReference,id:"0e0e20df-1a46-432c-ba01-fd96508a6a61",entityType:n.ValueDescriptor,entityId:Ke.outputs.body.id},Wf={like:!1,inferred:!1,id:"05fc1a5d-151a-479a-9c4e-4063f3456177",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ze,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"http-response-body-default-value-id",type:n.PrimitiveValue,version:1,value:{},name:D.JSON,parent:qf,valueAsType:null,autogeneration:null},constant:!1,parent:Jf},Yf={type:n.GenericReference,id:"26911792-f707-4bf1-b6f7-03d04a84232c",entityType:n.ActionDescriptor,entityId:et.HttpRequest},Ha={id:Ke.inputs.method.id,type:n.ValueDescriptor,description:"A single word that represents the type of request you want to make. For example: GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD, TRACE, CONNECT, CUSTOM",version:1,name:"Method",dataType:Mf,required:!1,index:0,parentRelationType:A.FixedArguments,parent:Yf},Hf={type:n.GenericReference,id:"eee0c501-0ae6-4448-b914-aada76d63163",entityType:n.ActionDescriptor,entityId:et.HttpRequest},za={id:Ke.inputs.url.id,type:n.ValueDescriptor,description:"The base domain, or address where the request is being sent to. For example: https://some-url.com",version:1,name:"URL",dataType:Sf,required:!1,index:1,parentRelationType:A.FixedArguments,parent:Hf},zf={type:n.GenericReference,id:"670091a4-21b1-4223-ad4c-b6dada0aec49",entityType:n.ActionDescriptor,entityId:et.HttpRequest},Tl={id:Ke.inputs.query.id,type:n.ValueDescriptor,description:"A text with standarized format, without spaces that is added at the end of the URL path, after the ? character. It contains data that might be used to process the request. For example: /api/users?name=John&age=30",version:1,name:"Query Params",dataType:Bf,required:!1,index:2,parentRelationType:A.FixedArguments,parent:zf},Zf={type:n.GenericReference,id:"85aad3eb-22fe-45f9-b68c-1dc7061f41e0",entityType:n.ActionDescriptor,entityId:et.HttpRequest},Za={id:Ke.inputs.headers.id,type:n.ValueDescriptor,description:"A set of any properties, with names and values that represent metadata about the request, such as the server, date, content type, and more, that you want to send alongside your request data.",version:1,name:"Headers",dataType:Lf,required:!1,index:3,parent:Zf,parentRelationType:A.FixedArguments},Kf={type:n.GenericReference,id:"c3e2a4af-9b84-4574-8b30-5044ffc51776",entityType:n.ActionDescriptor,entityId:et.HttpRequest},Ka={id:Ke.inputs.body.id,type:n.ValueDescriptor,description:"The main data payload of the request. This is the data that you want to send to the server. It could be anything, but it is usually a JSON data structure or a text value.",version:1,name:"Body",dataType:$f,required:!1,index:4,parentRelationType:A.FixedArguments,parent:Kf},Xf={type:n.GenericReference,id:"92e04dc7-2145-4a31-908e-03810f7235e8",entityType:n.ActionDescriptor,entityId:et.HttpRequest},Xa={id:Ke.outputs.code.id,type:n.ValueDescriptor,description:'A standardized status code of the response. It is a 3-digit number that represents the response status. For example, 200 means "OK", 404 means "Not Found", and 500 means "Internal Server Error".',version:1,name:"Code",dataType:Uf,required:!0,index:0,parentRelationType:A.FixedReturns,parent:Xf},Qf={type:n.GenericReference,id:"86aca556-bbf1-4679-9909-31db61b288e2",entityType:n.ActionDescriptor,entityId:et.HttpRequest},Qa={parentRelationType:A.FixedReturns,id:Ke.outputs.headers.id,type:n.ValueDescriptor,description:"A set of any properties, with names and value that the server sent back to you. It represents metadata about the response, such as the server, date, content type, and more.",version:1,name:"Headers",dataType:kf,required:!0,index:1,parent:Qf},em={type:n.GenericReference,id:"ccf3d1be-04e4-4d03-99fd-5bc1e1919f90",entityType:n.ActionDescriptor,entityId:et.HttpRequest},es={parentRelationType:A.FixedReturns,id:Ke.outputs.body.id,type:n.ValueDescriptor,description:"The main data payload of the response. This is the data that the server sent back to you. It could be anything, but it is usually a JSON data structure or a text value.",version:1,name:"Body",dataType:Wf,required:!0,index:2,parent:em},tm={type:n.GenericReference,id:"21487ffc-82b9-473d-bc19-6e7d7c480ed7",entityType:n.ActionDescriptor,entityId:et.HttpRequest},nm={type:n.GenericReference,id:"ad69861b-32f7-4461-b7f7-aa84a82578d9",entityType:n.ValueDescriptor,entityId:Ke.outputs.error.id},rm={like:!1,inferred:!1,id:"5da68b15-57bc-40c1-b79f-a9075e0f22c1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ze,isList:!1,asType:!1,isNullable:!1,constant:!1,defaultValue:null,parent:nm},El={parentRelationType:A.ReturnedError,id:Ke.outputs.error.id,type:n.ValueDescriptor,description:"Http request error, if any. Contains a payload describing what went wrong.",version:1,name:"Error",dataType:rm,required:!0,index:0,parent:tm},_i={type:n.ActionDescriptor,id:et.HttpRequest,name:et.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:[Ha,za,Tl,Za,Ka],outputs:[Xa,Qa,es],error:El,parent:null},im={[et.HttpRequest]:_i},GA={...cy,...Dp,...mh,...Zh,...Df,...im},$A=B[n.Loop]["manual-flow-loop"],am={id:"manual-flow-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:F.ManualFlow,entityType:n.ActionDescriptor},sm={id:$A.outputs.results.id,type:n.ValueDescriptor,version:1,name:"Ouput value",description:"An output value of the loop",required:!1,dataType:null,index:0,parent:am,parentRelationType:A.DynamicReturn},bl={id:F.ManualFlow,type:n.ActionDescriptor,version:1,name:F.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:[sm],error:null,parent:null},Ni=B[n.Loop]["manual-flow-loop"],om={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"manual-flow-loop-current-iteration-number-declaration-id",entityType:n.ValueDescriptor},lm={like:!1,inferred:!1,id:"manual-flow-loop-current-iteration-number-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:Q,asType:!1,defaultValue:null,parent:om},cm={id:"manual-flow-loop-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:Ni.body.id,entityType:n.ActionDescriptor},Rl={id:Ni.body.inputs.iterationNumber.id,type:n.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.",dataType:lm,required:!0,index:0,parentRelationType:A.FixedArguments,parent:cm},dm={id:"manual-flow-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:Ni.body.id,entityType:n.ActionDescriptor},um={id:"manual-flow-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",dataType:null,required:!1,index:1,parentRelationType:A.DynamicArgument,parent:dm},pm={id:"manual-flow-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:Ni.body.id,entityType:n.ActionDescriptor},ym={id:"manual-flow-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:1,name:"Any value",description:"Values outputed by the loop's body.",dataType:null,required:!1,index:0,parentRelationType:A.DynamicReturn,parent:pm},gl={id:Ni.body.id,type:n.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the manual flow loop.",inputs:[Rl,um],outputs:[ym],error:null,parent:null},hm=B[n.Loop]["list-loop"],fm={id:"iterate-over-list-loop-list-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-list-argument-declaration-id",entityType:n.ValueDescriptor},mm={like:!1,inferred:!1,id:"iterate-over-list-loop-list-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!0,isNullable:!1,constant:!1,entity:null,asType:!1,defaultValue:null,parent:fm},Tm={id:"iterate-over-list-loop-list-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:F.List,entityType:n.ActionDescriptor},Em={id:hm.inputs.list.id,type:n.ValueDescriptor,version:1,name:"List",description:"The list to iterate over",required:!0,dataType:mm,index:0,parent:Tm,parentRelationType:A.FixedArguments},bm={id:"iterate-over-list-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:F.List,entityType:n.ActionDescriptor},Rm={id:hm.outputs.results.id,type:n.ValueDescriptor,version:1,name:"Ouput value",description:"An output value of the loop",required:!1,dataType:null,index:0,parent:bm,parentRelationType:A.DynamicReturn},rr={id:F.List,type:n.ActionDescriptor,version:1,name:F.List,description:"Iterates over a list of entities",inputs:[Em],outputs:[Rm],error:null,parent:null},ir=B[n.Loop]["list-loop"],gm={id:"iterate-over-list-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-body-current-value-declaration-id",entityType:n.ValueDescriptor},vm={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-value-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:null,asType:!1,defaultValue:null,parent:gm},Im={id:"iterate-over-list-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:ir.body.id,entityType:n.ActionDescriptor},ts={id:ir.body.inputs.currentValue.id,type:n.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.",dataType:vm,required:!0,index:1,parentRelationType:A.FixedArguments,parent:Im},Dm={id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-body-current-iteration-number-declaration-id",entityType:n.ValueDescriptor},Pm={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:Q,asType:!1,defaultValue:null,parent:Dm},Am={id:"iterate-over-list-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:ir.body.id,entityType:n.ActionDescriptor},Om={id:ir.body.inputs.iterationNumber.id,type:n.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.",dataType:Pm,required:!0,index:0,parentRelationType:A.FixedArguments,parent:Am},Sm={id:"iterate-over-list-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:ir.body.id,entityType:n.ActionDescriptor},Cm={id:"iterate-over-list-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",dataType:null,required:!1,index:2,parentRelationType:A.DynamicArgument,parent:Sm},Bm={id:"iterate-over-list-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:ir.body.id,entityType:n.ActionDescriptor},wm={id:"iterate-over-list-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:1,name:"Any value",description:"Values outputed by the loop's body.",dataType:null,required:!1,index:0,parentRelationType:A.DynamicReturn,parent:Bm},ns={id:ir.body.id,type:n.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the list loop.",inputs:[Om,ts,Cm],outputs:[wm],error:null,parent:null},_m=B[n.Loop]["string-loop"],Nm={id:"iterate-over-string-loop-string-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-string-argument-declaration-id",entityType:n.ValueDescriptor},Mm={like:!1,inferred:!1,id:"iterate-over-string-loop-string-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:j,asType:!1,defaultValue:null,parent:Nm},Vm={id:"iterate-over-string-loop-string-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:F.String,entityType:n.ActionDescriptor},Lm={id:_m.inputs.string.id,type:n.ValueDescriptor,version:1,name:"Texts",description:"The text to iterate over the characters of",required:!0,dataType:Mm,index:0,parent:Vm,parentRelationType:A.FixedArguments},Gm={id:"iterate-over-string-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:F.String,entityType:n.ActionDescriptor},$m={id:_m.outputs.results.id,type:n.ValueDescriptor,version:1,name:"Ouput value",description:"An output value of the loop",required:!1,dataType:null,index:0,parent:Gm,parentRelationType:A.DynamicReturn},rs={id:F.String,type:n.ActionDescriptor,version:1,name:F.String,description:"Iterates over a string of entities",inputs:[Lm],outputs:[$m],error:null,parent:null},ar=B[n.Loop]["string-loop"],Fm={id:"iterate-over-string-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-body-current-value-declaration-id",entityType:n.ValueDescriptor},Um={like:!1,inferred:!1,id:"iterate-over-string-loop-body-current-value-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:j,asType:!1,defaultValue:null,parent:Fm},xm={id:"iterate-over-string-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:ar.body.id,entityType:n.ActionDescriptor},vl={id:ar.body.inputs.currentValue.id,type:n.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.",dataType:Um,required:!0,index:1,parentRelationType:A.FixedArguments,parent:xm},jm={id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-body-current-iteration-number-declaration-id",entityType:n.ValueDescriptor},km={like:!1,inferred:!1,id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:Q,asType:!1,defaultValue:null,parent:jm},qm={id:"iterate-over-string-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:ar.body.id,entityType:n.ActionDescriptor},Il={id:ar.body.inputs.iterationNumber.id,type:n.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.",dataType:km,required:!0,index:0,parentRelationType:A.FixedArguments,parent:qm},Jm={id:"iterate-over-string-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:ar.body.id,entityType:n.ActionDescriptor},Wm={id:"iterate-over-string-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",dataType:null,required:!1,index:2,parentRelationType:A.DynamicArgument,parent:Jm},Ym={id:"iterate-over-string-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:ar.body.id,entityType:n.ActionDescriptor},Hm={id:"iterate-over-string-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:1,name:"Any value",description:"Values outputed by the loop's body.",dataType:null,required:!1,index:0,parentRelationType:A.DynamicReturn,parent:Ym},Dl={id:ar.body.id,type:n.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[Il,vl,Wm],outputs:[Hm],error:null,parent:null},zm=B[n.Loop]["object-keys-loop"],Zm={id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-object-argument-declaration-id",entityType:n.ValueDescriptor},Km={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:Ze,asType:!1,defaultValue:null,parent:Zm},Xm={id:"iterate-over-object-keys-loop-object-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:F.ObjectKeys,entityType:n.ActionDescriptor},Qm={id:zm.inputs.object.id,type:n.ValueDescriptor,version:1,name:"Object",description:"The object to iterate over",required:!0,dataType:Km,index:0,parent:Xm,parentRelationType:A.FixedArguments},eT={id:"iterate-over-object-keys-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:F.ObjectKeys,entityType:n.ActionDescriptor},tT={id:zm.outputs.results.id,type:n.ValueDescriptor,version:1,name:"Ouput value",description:"An output value of the loop",required:!1,dataType:null,index:0,parent:eT,parentRelationType:A.DynamicReturn},Mi={id:F.ObjectKeys,type:n.ActionDescriptor,version:1,name:F.ObjectKeys,description:"Iterates over a object of entities",inputs:[Qm],outputs:[tT],error:null,parent:null},sr=B[n.Loop]["object-keys-loop"],nT={id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-value-declaration-id",entityType:n.ValueDescriptor},rT={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:j,asType:!1,defaultValue:null,parent:nT},iT={id:"iterate-over-object-keys-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:sr.body.id,entityType:n.ActionDescriptor},Pl={id:sr.body.inputs.currentValue.id,type:n.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.",dataType:rT,required:!0,index:1,parentRelationType:A.FixedArguments,parent:iT},aT={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-id",entityType:n.ValueDescriptor},sT={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:Q,asType:!1,defaultValue:null,parent:aT},oT={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:sr.body.id,entityType:n.ActionDescriptor},lT={id:sr.body.inputs.iterationNumber.id,type:n.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.",dataType:sT,required:!0,index:0,parentRelationType:A.FixedArguments,parent:oT},cT={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:sr.body.id,entityType:n.ActionDescriptor},dT={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",dataType:null,required:!1,index:2,parentRelationType:A.DynamicArgument,parent:cT},uT={id:"iterate-over-object-keys-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:sr.body.id,entityType:n.ActionDescriptor},pT={id:"iterate-over-object-keys-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:1,name:"Any value",description:"Values outputed by the loop's body.",dataType:null,required:!1,index:0,parentRelationType:A.DynamicReturn,parent:uT},yT={id:sr.body.id,type:n.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the object-keys loop.",inputs:[lT,Pl,dT],outputs:[pT],error:null,parent:null},hT=B[n.Loop]["object-values-loop"],fT={id:"iterate-over-object-values-loop-object-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-object-argument-declaration-id",entityType:n.ValueDescriptor},mT={like:!1,inferred:!1,id:"iterate-over-object-values-loop-object-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:Ze,asType:!1,defaultValue:null,parent:fT},TT={id:"iterate-over-object-values-loop-object-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:F.ObjectValues,entityType:n.ActionDescriptor},ET={id:hT.inputs.object.id,type:n.ValueDescriptor,version:1,name:"Object",description:"The object to iterate over",required:!0,dataType:mT,index:0,parent:TT,parentRelationType:A.FixedArguments},bT={id:"iterate-over-object-values-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:F.ObjectValues,entityType:n.ActionDescriptor},RT={id:hT.outputs.results.id,type:n.ValueDescriptor,version:1,name:"Ouput value",description:"An output value of the loop",required:!1,dataType:null,index:0,parent:bT,parentRelationType:A.DynamicReturn},Vi={id:F.ObjectValues,type:n.ActionDescriptor,version:1,name:F.ObjectValues,description:"Iterates over a object of entities",inputs:[ET],outputs:[RT],error:null,parent:null},or=B[n.Loop]["object-values-loop"],gT={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-body-current-value-declaration-id",entityType:n.ValueDescriptor},vT={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:null,isNullable:!1,constant:!1,entity:null,asType:null,like:!1,inferred:!1,defaultValue:null,parent:gT},IT={id:"iterate-over-object-values-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:or.body.id,entityType:n.ActionDescriptor},Al={id:or.body.inputs.currentValue.id,type:n.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.",dataType:vT,required:!0,index:1,parentRelationType:A.FixedArguments,parent:IT},DT={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-body-current-iteration-number-declaration-id",entityType:n.ValueDescriptor},PT={like:!1,inferred:!1,id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:Q,asType:!1,defaultValue:null,parent:DT},AT={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:or.body.id,entityType:n.ActionDescriptor},OT={id:or.body.inputs.iterationNumber.id,type:n.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.",dataType:PT,required:!0,index:0,parentRelationType:A.FixedArguments,parent:AT},ST={id:"iterate-over-object-values-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:or.body.id,entityType:n.ActionDescriptor},CT={id:"iterate-over-object-values-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",dataType:null,required:!1,index:2,parentRelationType:A.DynamicArgument,parent:ST},BT={id:"iterate-over-object-values-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:or.body.id,entityType:n.ActionDescriptor},wT={id:"iterate-over-object-values-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:1,name:"Any value",description:"Values outputed by the loop's body.",dataType:null,required:!1,index:0,parentRelationType:A.DynamicReturn,parent:BT},_T={id:or.body.id,type:n.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the object-values loop.",inputs:[OT,Al,CT],outputs:[wT],error:null,parent:null},NT=B[n.Loop]["counted-loop"],MT={id:"counted-loop-string-argument-declaration-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"counted-loop-string-argument-declaration-data-type-id",entityType:n.DataType},VT={id:"counted-loop-string-argument-declaration-data-type-default-value-id",type:n.PrimitiveValue,name:D.Number,version:1,value:5,valueAsType:null,autogeneration:null,parent:MT},LT={id:"counted-loop-string-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"counted-loop-string-argument-declaration-id",entityType:n.ValueDescriptor},GT={like:!1,inferred:!1,id:"counted-loop-string-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:Q,asType:!1,defaultValue:VT,parent:LT},$T={id:"counted-loop-string-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:F.Counted,entityType:n.ActionDescriptor},FT={id:NT.inputs.number.id,type:n.ValueDescriptor,version:1,name:"Number of iterations",description:"The number of iterations to perform",required:!0,dataType:GT,index:0,parent:$T,parentRelationType:A.FixedArguments},UT={id:"counted-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:F.Counted,entityType:n.ActionDescriptor},xT={id:NT.outputs.results.id,type:n.ValueDescriptor,version:1,name:"Ouput value",description:"An output value of the loop",required:!1,dataType:null,index:0,parent:UT,parentRelationType:A.DynamicReturn},is={id:F.Counted,type:n.ActionDescriptor,version:1,name:F.Counted,description:"Iterates a given number of times",inputs:[FT],outputs:[xT],error:null,parent:null},Li=B[n.Loop]["counted-loop"],jT={id:"counted-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"counted-loop-body-current-iteration-number-declaration-id",entityType:n.ValueDescriptor},kT={like:!1,inferred:!1,id:"counted-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:Q,asType:!1,defaultValue:null,parent:jT},qT={id:"counted-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:Li.body.id,entityType:n.ActionDescriptor},Ol={id:Li.body.inputs.iterationNumber.id,type:n.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.",dataType:kT,required:!0,index:0,parentRelationType:A.FixedArguments,parent:qT},JT={id:"counted-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:Li.body.id,entityType:n.ActionDescriptor},WT={id:"counted-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",dataType:null,required:!1,index:1,parentRelationType:A.DynamicArgument,parent:JT},YT={id:"counted-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:Li.body.id,entityType:n.ActionDescriptor},HT={id:"counted-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:1,name:"Any value",description:"Values outputed by the loop's body.",dataType:null,required:!1,index:0,parentRelationType:A.DynamicReturn,parent:YT},Sl={id:Li.body.id,type:n.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[Ol,WT],outputs:[HT],error:null,parent:null},as=B[n.BuiltInBaseEntity][L.KEY_VALUE_PARAM],FA={id:"key-value-param-built-in-base-entity-name-property-data-type-ref",type:n.GenericReference,entityId:"key-value-param-built-in-base-entity-name-property-data-type",entityType:n.DataType},zT={id:"key-value-param-built-in-base-entity-name-property-ref",type:n.GenericReference,entityId:"key-value-param-built-in-base-entity-name-property",entityType:n.Property},UA={like:!1,inferred:!1,id:"key-value-param-built-in-base-entity-name-property-data-type",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:j,asType:!1,defaultValue:null,parent:zT},ZT={id:"key-value-param-built-in-base-entity-name-property-parent-ref",type:n.GenericReference,entityId:as.id,entityType:n.BuiltInBaseEntity},KT={hidden:!1,required:!0,id:"key-value-param-built-in-base-entity-name-property",name:"Parameter name",version:1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:UA,description:"The name of the path parameter",parent:ZT},xA={id:"key-value-param-built-in-base-entity-value-property-data-type-ref",type:n.GenericReference,entityId:"key-value-param-built-in-base-entity-value-property-data-type",entityType:n.DataType},XT={id:"key-value-param-built-in-base-entity-value-property-ref",type:n.GenericReference,entityId:"key-value-param-built-in-base-entity-value-property",entityType:n.Property},jA={like:!1,inferred:!1,id:"key-value-param-built-in-base-entity-value-property-data-type",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:j,asType:!1,defaultValue:null,parent:XT},QT={id:"key-value-param-built-in-base-entity-value-property-parent-ref",type:n.GenericReference,entityId:as.id,entityType:n.BuiltInBaseEntity},eE={hidden:!1,required:!0,id:"key-value-param-built-in-base-entity-value-property",name:"Parameter Value",version:1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:1,dataType:jA,description:"The value of the path parameter",parent:QT},ss={id:as.id,version:1,description:'An entity with a "name" and "value" property representing a breakdown of a key-value pair.',name:as.id,type:n.BuiltInBaseEntity,abstract:!1,static:!1,interactive:!0,properties:[KT,eE],abstractMethods:[],methods:[],extends:[]},Gi=B[n.BuiltInBaseEntity][L.HTTP_ENDPOINT].properties,tE={id:"endpointBuiltInCorsPropertyDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointBuiltInCorsPropertyDataType"},nE={id:"endpointBuiltInCorsPropertyRef",type:n.GenericReference,entityType:n.Property,entityId:Gi.cors.id},rE={like:!1,inferred:!1,id:"endpointBuiltInCorsPropertyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:{id:"endpointBuiltInCorsPropertyDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:D.JSON,value:["*"],parent:tE,autogeneration:null,valueAsType:null},parent:nE},iE={id:"endpointBuiltInBaseEntityRef",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},aE={hidden:!0,required:!0,id:Gi.cors.id,name:"Allowed origins",version:1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:rE,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:iE},sE={id:"endpointBuiltInPathPropertyDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointBuiltInPathPropertyDataType"},oE={id:"endpointBuiltInPathPropertyRef",type:n.GenericReference,entityType:n.Property,entityId:Gi.path.id},lE={like:!1,inferred:!1,id:"endpointBuiltInPathPropertyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:{id:"endpointBuiltInPathPropertyDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:D.String,value:"/",parent:sE,autogeneration:null,valueAsType:null},parent:oE},cE={id:"endpointBuiltInBaseEntityRefTwo",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},Cl={hidden:!1,required:!0,id:Gi.path.id,name:"Path",version:1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:1,dataType:lE,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:cE},dE={id:"endpointBuiltInMethodPropertyDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointBuiltInMethodPropertyDataType"},uE={id:"endpointBuiltInMethodPropertyRef",type:n.GenericReference,entityType:n.Property,entityId:"endpointBuiltInMethodProperty"},pE={like:!1,inferred:!1,id:"endpointBuiltInMethodPropertyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:_n,isList:!0,isNullable:!1,constant:!0,asType:!1,defaultValue:{id:"endpointBuiltInMethodPropertyDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,value:"GET",name:D.Enum,parent:dE,autogeneration:null,valueAsType:null},options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:uE},yE={id:"endpointBuiltInBaseEntityRefThree",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},Bl={hidden:!1,required:!0,id:Gi.method.id,name:"Method",version:1,type:n.Property,private:!1,index:2,implements:null,abstract:!0,static:!0,dataType:pE,description:"The HTTP method that this endpoint will respond to, for example GET, POST, PUT, DELETE, etc.",parent:yE},hE={id:"endpointRequestHeadersVariableDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointRequestHeadersVariableDataType"},fE={id:"endpointRequestHeadersArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"endpointRequestHeadersArgumentDeclaration"},mE={like:!1,inferred:!1,id:"endpointRequestHeadersVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Ze,asType:!1,defaultValue:{id:"endpointRequestHeadersVariableDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:D.JSON,value:{},parent:hE,autogeneration:null,valueAsType:null},parent:fE},TE={id:"endpointRequestBodyArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"endpointRequestBodyArgumentDeclaration"},EE={like:!1,inferred:!1,id:"endpointRequestBodyVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Ze,defaultValue:null,parent:TE},bE={id:"endpointRequestQueryParamsVariableDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointRequestQueryParamsVariableDataType"},RE={id:"endpointRequestQueryParamsArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"endpointRequestQueryParamsArgumentDeclaration"},gE={like:!1,inferred:!1,id:"endpointRequestQueryParamsVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,asType:!1,entity:ss,defaultValue:{id:"endpointRequestQueryParamsVariableDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:D.JSON,value:[],parent:bE,autogeneration:null,valueAsType:null},parent:RE},vE={id:"endpointPathParamsVariableDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointPathParamsVariableDataType"},IE={id:"endpointPathParamsArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"endpointPathParamsArgumentDeclaration"},DE={like:!1,inferred:!1,id:"endpointPathParamsVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:ss,asType:!1,defaultValue:{id:"endpointPathParamsVariableDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:D.JSON,value:[],parent:vE,autogeneration:null,valueAsType:null},parent:IE},PE={id:"endpointReachedTriggerActionDescriptorRef",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},wl={id:"endpointRequestHeadersArgumentDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:n.ValueDescriptor,name:"Request headers",dataType:mE,required:!0,index:0,parentRelationType:A.FixedArguments,parent:PE},AE={id:"endpointReachedTriggerActionDescriptorRefTwo",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},_l={id:"endpointPathParamsArgumentDeclaration",type:n.ValueDescriptor,description:"A standarized text, without spaces that is added at the end of the domain and routes the request to a specific resource within the target server. For example: /api/users/123, /api/users/123/:name, /api/users/123/:name/:age.",version:1,name:"Path parameters",dataType:DE,required:!0,index:1,parentRelationType:A.FixedArguments,parent:AE},OE={id:"endpointReachedTriggerActionDescriptorRefThree",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Nl={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:n.ValueDescriptor,name:"Request query params",dataType:gE,required:!0,index:2,parentRelationType:A.FixedArguments,parent:OE},SE={id:"endpointReachedTriggerActionDescriptorRefFour",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Ml={id:"endpointRequestBodyArgumentDeclaration",version:1,description:"The main data payload of the request.",type:n.ValueDescriptor,name:"Request body",dataType:EE,index:3,required:!0,parentRelationType:A.FixedArguments,parent:SE},CE={id:"endpointResponseCodeReturnDeclarationRef",type:n.GenericReference,entityType:n.ReturnDeclaration,entityId:"endpointResponseCodeReturnDeclaration"},BE={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:CE},wE={id:"endpointReturnStatementRef",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},Vl={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:n.ValueDescriptor,name:"Response code",dataType:BE,required:!0,index:0,parentRelationType:A.FixedReturns,parent:wE},_E={id:"endpointResponseHeadersDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointResponseHeadersDataType"},NE={id:"endpointResponseHeadersReturnDeclarationRef",type:n.GenericReference,entityType:n.ReturnDeclaration,entityId:"endpointResponseHeadersReturnDeclaration"},ME={like:!1,inferred:!1,id:"endpointResponseHeadersDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Ze,asType:!1,defaultValue:{id:"endpointResponseHeadersDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:D.JSON,value:{},parent:_E,autogeneration:null,valueAsType:null},parent:NE},VE={id:"endpointReturnStatementRefTwo",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},Ll={id:"endpointResponseHeadersReturnDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:n.ValueDescriptor,name:"Response headers",dataType:ME,required:!1,index:1,parentRelationType:A.FixedReturns,parent:VE},LE={id:"endpointResponseBodyReturnDeclarationRef",type:n.GenericReference,entityType:n.ReturnDeclaration,entityId:"endpointResponseBodyReturnDeclaration"},GE={like:!1,inferred:!1,id:"endpointResponseBodyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Ze,defaultValue:null,parent:LE},$E={id:"endpointReturnStatementRefThree",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},Gl={id:"endpointResponseBodyReturnDeclaration",version:1,description:"The main data payload of the response.",type:n.ValueDescriptor,name:"Response body",dataType:GE,required:!1,index:2,parentRelationType:A.FixedReturns,parent:$E},FE={id:"endpointBuiltInBaseEntityRefFour",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},$l={id:"endpointReachedTriggerActionDescriptor",type:n.ActionDescriptor,version:1,name:"Endpoint reached",description:"Fired when the endpoint is reached.",inputs:[wl,_l,Nl,Ml],outputs:[Vl,Ll,Gl],error:null,parent:FE},os={id:L.HTTP_ENDPOINT,version:1,description:"An HTTP endpoint that can be reached by a client from the internet.",name:L.HTTP_ENDPOINT,type:n.BuiltInBaseEntity,interactive:!1,abstract:!0,static:!0,properties:[aE,Cl,Bl],abstractMethods:[$l],extends:[],methods:[]},Mt=B[n.BuiltInBaseEntity].BUILT_IN_RELATIONAL_DATABASE_ENTITY,UE={id:"relational-database-built-in-base-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-identifier-property-data-type-id",entityType:n.DataType},xE={id:"relational-database-built-in-base-entity-identifier-property-ref-id",type:n.GenericReference,entityId:Mt.properties.identifier.id,entityType:n.Property},kA={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-identifier-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-identifier-property-default-value-id",type:n.PrimitiveValue,version:1,name:D.String,value:null,parent:UE,autogeneration:{type:qe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:xE},zr={id:"relational-database-built-in-base-entity-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},ls={hidden:!1,required:!0,id:Mt.properties.identifier.id,name:"Identifier name",version:1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:0,dataType:kA,description:"The name of the main database inside of the server instance where the data will be stored.",parent:zr},qA={id:"relational-database-built-in-base-entity-username-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-username-property-data-type-idd",entityType:n.DataType},jE={id:"relational-database-built-in-base-entity-username-property-ref-id",type:n.GenericReference,entityId:Mt.properties.username.id,entityType:n.Property},JA={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-username-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-username-property-default-value-id",type:n.PrimitiveValue,version:1,name:D.String,value:"postgres",parent:{id:"relational-database-built-in-base-entity-username-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-username-property-data-type-id",entityType:n.DataType},autogeneration:null,valueAsType:null},parent:jE},cs={hidden:!1,required:!0,id:Mt.properties.username.id,name:"Username",version:1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:1,dataType:JA,description:"The username that will be used to connect to the database.",parent:zr},WA={id:"relational-database-built-in-base-entity-password-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-password-property-data-type-id",entityType:n.DataType},kE={id:"relational-database-built-in-base-entity-password-property-ref-id",type:n.GenericReference,entityId:Mt.properties.password.id,entityType:n.Property},YA={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-password-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:null,parent:kE},ds={hidden:!1,required:!0,id:Mt.properties.password.id,name:"Password",version:1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:2,dataType:YA,description:"The password that will be used to connect to the database.",parent:zr},qE={id:"relational-database-built-in-base-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-min-size-property-data-type-id",entityType:n.DataType},JE={id:"relational-database-built-in-base-entity-min-size-property-ref-id",type:n.GenericReference,entityId:Mt.properties.minSize.id,entityType:n.Property},HA={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-min-size-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Q,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-min-size-property-default-value-id",type:n.PrimitiveValue,version:1,name:D.Number,value:6,parent:qE,autogeneration:null,valueAsType:null},parent:JE},us={hidden:!0,required:!0,id:Mt.properties.minSize.id,name:"Minimum GB size",version:1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:3,dataType:HA,description:"The minimum size of the database in GB.",parent:zr},WE={id:"relational-database-built-in-base-entity-default-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-default-property-data-type-id",entityType:n.DataType},YE={id:"relational-database-built-in-base-entity-default-property-ref-id",type:n.GenericReference,entityId:Mt.properties.default.id,entityType:n.Property},zA={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-default-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:wn,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-default-property-default-value-id",type:n.PrimitiveValue,version:1,name:D.Boolean,value:!1,parent:WE,autogeneration:null,valueAsType:null},parent:YE},Fl={hidden:!0,required:!0,id:Mt.properties.default.id,name:"Default",version:1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,dataType:zA,description:"If true, this database will be the default database for the server instance and all the new entities.",parent:zr},HE={id:"relational-database-built-in-base-entity-autoscaling-property-ref-id",type:n.GenericReference,entityId:Mt.properties.autoscaling.id,entityType:n.Property},zE={id:"relational-database-built-in-base-entity-autoscaling-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-autoscaling-property-data-type-id",entityType:n.DataType},ZA={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-autoscaling-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:wn,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-autoscaling-property-default-value-id",type:n.PrimitiveValue,version:1,name:D.Boolean,value:!1,parent:zE,autogeneration:null,valueAsType:null},parent:HE},ZE={id:"relational-database-built-in-base-entity-autoscaling-property-parent-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},Ul={hidden:!0,required:!0,id:Mt.properties.autoscaling.id,name:"Auto-scaling",version:1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,dataType:ZA,description:"If true, this database will automatically scale up or down in memory size, based on the usage.",parent:ZE},Nn={id:L.RELATIONAL_DATABASE,version:1,description:"This entity provisions a relational database in the cloud.",name:L.RELATIONAL_DATABASE,type:n.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[ls,cs,ds,us,Fl,Ul],abstractMethods:[],methods:[],extends:[]},KE={type:n.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",entityType:n.BuiltInBaseEntity,id:At.DeletePersistedEntity},xl={type:n.FunctionDeclaration,id:At.DeletePersistedEntity,name:At.DeletePersistedEntity,description:"Permanently deletes the current copy of an entity from the database",version:1,parent:KE,inputs:[],calls:[],implements:null,collapsed:!1,returnStatements:[],index:0,private:!1,x:0,y:0},XE={type:n.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",entityType:n.BuiltInBaseEntity,id:At.SoftDeletePersistedEntity},QE={type:n.FunctionDeclaration,id:At.SoftDeletePersistedEntity,name:At.SoftDeletePersistedEntity,description:"Designates the entity as deleted, but does not remove it from the database.",version:1,parent:XE,inputs:[],calls:[],implements:null,collapsed:!1,returnStatements:[],index:0,private:!1,x:0,y:0},eb=B[n.BuiltInBaseEntity][L.PERSISTED_ENTITY].properties,KA={id:"persisted-built-in-base-entity-database-property-data-type-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-database-property-data-type-id",entityType:n.DataType},tb={id:"persisted-built-in-base-entity-database-property-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-database-property-id",entityType:n.Property},XA={like:!1,inferred:!1,id:"persisted-built-in-base-entity-database-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Nn,asType:!1,defaultValue:null,parent:tb},nb={id:"persisted-built-in-base-entity-database-property-parent-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},$i={hidden:!0,required:!0,id:eb.database.id,name:"Database",version:1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:XA,description:"The database that the entity belongs to.",parent:nb},rb={id:"persisted-built-in-base-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-identifier-property-data-type-id",entityType:n.DataType},ib={id:"persisted-built-in-base-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-identifier-property-id",entityType:n.Property},QA={like:!1,inferred:!1,id:"persisted-built-in-base-entity-identifier-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:ka,asType:!1,defaultValue:{id:"persisted-built-in-base-entity-identifier-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:D.UUID,value:null,parent:rb,autogeneration:{type:qe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:ib},ab={id:"persisted-built-in-base-entity-identifier-property-parent-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},sb={hidden:!1,required:!0,id:eb.identifier.id,name:"Identifier",version:1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:QA,description:"Auto-generated unique identifier for the entity, can be used to identify the entity among other entities of the same type.",parent:ab},eO={id:"persisted-built-in-base-entity-deleted-at-property-data-type-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-deleted-at-property-data-type-id",entityType:n.DataType},ob={id:"persisted-built-in-base-entity-deleted-at-property-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-deleted-at-property-id",entityType:n.Property},lb={like:!1,inferred:!1,id:"persisted-built-in-base-entity-deleted-at-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!0,constant:!1,entity:un,asType:!1,defaultValue:null,parent:ob},cb={id:"persisted-built-in-base-entity-deleted-at-property-parent-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},db={hidden:!1,required:!0,id:"persisted-built-in-base-entity-deleted-at-property-id",name:"Deleted at",version:1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:lb,description:"The date and time when the entity was deleted.",parent:cb},tO={id:"persisted-built-in-base-entity-created-at-property-data-type-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-created-at-property-data-type-id",entityType:n.DataType},ub={id:"persisted-built-in-base-entity-created-at-property-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-created-at-property-id",entityType:n.Property},pb={like:!1,inferred:!1,id:"persisted-built-in-base-entity-created-at-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:un,asType:!1,defaultValue:null,parent:ub},yb={id:"persisted-built-in-base-entity-created-at-property-parent-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},hb={hidden:!1,required:!0,id:"persisted-built-in-base-entity-created-at-property-id",name:"Created at",version:1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:pb,description:"The date and time when the entity was created.",parent:yb},nO={id:"persisted-built-in-base-entity-updated-at-property-data-type-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-updated-at-property-data-type-id",entityType:n.DataType},fb={id:"persisted-built-in-base-entity-updated-at-property-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-updated-at-property-id",entityType:n.Property},mb={like:!1,inferred:!1,id:"persisted-built-in-base-entity-updated-at-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:un,asType:!1,defaultValue:null,parent:fb},Tb={id:"persisted-built-in-base-entity-updated-at-property-parent-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},Eb={hidden:!1,required:!0,id:"persisted-built-in-base-entity-updated-at-property-id",name:"Updated at",version:1,type:n.Property,private:!1,implements:null,abstract:!1,static:!1,index:0,dataType:mb,description:"The date and time when the entity was last updated.",parent:Tb},je={id:L.PERSISTED_ENTITY,version:1,description:"An entity that is permanently stored in the database and can be accessed at any point.",name:L.PERSISTED_ENTITY,type:n.BuiltInBaseEntity,abstract:!0,static:!1,interactive:!0,abstractMethods:[],properties:[$i,sb,db,hb,Eb],methods:[xl,QE],extends:[]},bb={id:"cron-job-triggered-function-declaration-blueprint-parent-ref-id",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},jl={id:"cron-job-triggered-function-declaration-blueprint-id",name:"Cron job triggered",version:1,type:n.ActionDescriptor,description:"Executed when the cron job is triggered",inputs:[],error:null,outputs:[],parent:bb},Rb=B[n.BuiltInBaseEntity].BUILT_IN_CRON_JOB_ENTITY,rO={id:"cron-job-built-in-base-entity-expression-property-data-type-ref",type:n.GenericReference,entityId:"cron-job-built-in-base-entity-expression-property-data-type",entityType:n.DataType},gb={id:"cron-job-built-in-base-entity-expression-property-ref",type:n.GenericReference,entityId:Rb.properties.expression.id,entityType:n.Property},iO={like:!1,inferred:!1,id:"cron-job-built-in-base-entity-expression-property-data-type",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:null,parent:gb},vb={id:"cron-job-built-in-base-entity-ref",type:n.GenericReference,entityId:L.CRON_JOB,entityType:n.BuiltInBaseEntity},Ib={hidden:!1,required:!0,id:Rb.properties.expression.id,name:"Cron expression",version:1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:iO,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:vb},kl={id:L.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:L.CRON_JOB,type:n.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[Ib],methods:[],abstractMethods:[jl],extends:[]},Db={type:n.GenericReference,id:"execution-built-in-entity-abort-method-parent-ref-id",entityType:n.BuiltInBaseEntity,entityId:"execution-built-in-entity-id"},ql={id:"execution-built-in-entity-abort-method-id",type:n.FunctionDeclaration,version:1,name:At.AbortExecution,description:"Aborts the execution of the entity",inputs:[],returnStatements:[],calls:[],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:Db},Jl={id:L.EXECUTION,type:n.BuiltInBaseEntity,version:1,name:L.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:[ql],abstractMethods:[]},aO=B[n.Condition]["not-empty"],Pb={type:n.GenericReference,id:"not-empty-condition-ref",entityType:n.ActionDescriptor,entityId:Nt.NotEmpty},Ab={id:aO.inputs.leftHand.id,type:n.ValueDescriptor,version:1,name:"Value",description:"The value to check if it is not empty",dataType:null,required:!0,parentRelationType:A.FixedArguments,index:0,parent:Pb},lr={type:n.ActionDescriptor,id:Nt.NotEmpty,version:1,name:Nt.NotEmpty,description:"Checks if the value is not empty",parent:null,inputs:[Ab],outputs:[],error:null},Ob={[Nt.NotEmpty]:lr},Sb=B[n.Condition]["more-than-or-equal"],Cb={type:n.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-parent-ref",entityType:n.ActionDescriptor,entityId:Le.MoreThanOrEqual},Bb={id:Sb.inputs.leftHand.id,type:n.ValueDescriptor,version:1,name:"First value",description:"The first value to compare",dataType:null,required:!0,parentRelationType:A.FixedArguments,index:0,parent:Cb},wb={type:n.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-parent-ref",entityType:n.ActionDescriptor,entityId:Le.MoreThanOrEqual},_b={id:Sb.inputs.rightHand.id,type:n.ValueDescriptor,version:1,name:"Second value",description:"The second value to compare",dataType:null,required:!0,parentRelationType:A.FixedArguments,index:1,parent:wb},Zr={type:n.ActionDescriptor,id:Le.MoreThanOrEqual,version:1,name:Le.MoreThanOrEqual,description:"Checks if the value is not empty",parent:null,inputs:[Bb,_b],outputs:[],error:null},Nb={[Le.MoreThanOrEqual]:Zr},sO={...Ob,...Nb},ps={type:n.ActionDescriptor,id:cn.PROJECT_PUBLICATION_COMPLETED,version:1,name:cn.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},oO={[cn.PROJECT_PUBLICATION_COMPLETED]:ps},Wl=B[n.ValueDescriptor][Xo.ActionOngoingProcessOutputValue],Mb={type:n.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",entityType:n.ValueDescriptor,entityId:Wl.id},Vb={like:!1,inferred:!1,id:Wl.dataType.id,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Jl,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Mb},Yl={id:Wl.id,type:n.ValueDescriptor,description:"A value that represents the ongoing process of the parent action",version:1,name:"Process",dataType:Vb,required:!0,index:0,parent:null,parentRelationType:A.OngoingProcessExecution};var ne;(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 i(a,s=" | "){return a.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}r.joinValues=i,r.jsonStringifyReplacer=(a,s)=>typeof s=="bigint"?s.toString():s})(ne||(ne={}));var Hl;(function(r){r.mergeShapes=(e,t)=>({...e,...t})})(Hl||(Hl={}));const G=ne.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Mn=r=>{switch(typeof r){case"undefined":return G.undefined;case"string":return G.string;case"number":return isNaN(r)?G.nan:G.number;case"boolean":return G.boolean;case"function":return G.function;case"bigint":return G.bigint;case"symbol":return G.symbol;case"object":return Array.isArray(r)?G.array:r===null?G.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?G.promise:typeof Map<"u"&&r instanceof Map?G.map:typeof Set<"u"&&r instanceof Set?G.set:typeof Date<"u"&&r instanceof Date?G.date:G.object;default:return G.unknown}},w=ne.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"]),lO=r=>JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:");class Rt extends Error{constructor(e){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};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},i={_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)i._errors.push(t(o));else{let l=i,p=0;for(;p<o.path.length;){const y=o.path[p];p===o.path.length-1?(l[y]=l[y]||{_errors:[]},l[y]._errors.push(t(o))):l[y]=l[y]||{_errors:[]},l=l[y],p++}}};return a(this),i}static assert(e){if(!(e instanceof Rt))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ne.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=t=>t.message){const t={},i=[];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))):i.push(e(a));return{formErrors:i,fieldErrors:t}}get formErrors(){return this.flatten()}}Rt.create=r=>new Rt(r);const Kr=(r,e)=>{let t;switch(r.code){case w.invalid_type:r.received===G.undefined?t="Required":t=`Expected ${r.expected}, received ${r.received}`;break;case w.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(r.expected,ne.jsonStringifyReplacer)}`;break;case w.unrecognized_keys:t=`Unrecognized key(s) in object: ${ne.joinValues(r.keys,", ")}`;break;case w.invalid_union:t="Invalid input";break;case w.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${ne.joinValues(r.options)}`;break;case w.invalid_enum_value:t=`Invalid enum value. Expected ${ne.joinValues(r.options)}, received '${r.received}'`;break;case w.invalid_arguments:t="Invalid function arguments";break;case w.invalid_return_type:t="Invalid function return type";break;case w.invalid_date:t="Invalid date";break;case w.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}"`:ne.assertNever(r.validation):r.validation!=="regex"?t=`Invalid ${r.validation}`:t="Invalid";break;case w.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 w.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 w.custom:t="Invalid input";break;case w.invalid_intersection_types:t="Intersection results could not be merged";break;case w.not_multiple_of:t=`Number must be a multiple of ${r.multipleOf}`;break;case w.not_finite:t="Number must be finite";break;default:t=e.defaultError,ne.assertNever(r)}return{message:t}};let Lb=Kr;function cO(r){Lb=r}function ys(){return Lb}const hs=r=>{const{data:e,path:t,errorMaps:i,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=i.filter(y=>!!y).slice().reverse();for(const y of p)l=y(o,{data:e,defaultError:l}).message;return{...a,path:s,message:l}},dO=[];function V(r,e){const t=ys(),i=hs({issueData:e,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,t,t===Kr?void 0:Kr].filter(a=>!!a)});r.common.issues.push(i)}class nt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){const i=[];for(const a of t){if(a.status==="aborted")return J;a.status==="dirty"&&e.dirty(),i.push(a.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,t){const i=[];for(const a of t){const s=await a.key,o=await a.value;i.push({key:s,value:o})}return nt.mergeObjectSync(e,i)}static mergeObjectSync(e,t){const i={};for(const a of t){const{key:s,value:o}=a;if(s.status==="aborted"||o.status==="aborted")return J;s.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof o.value<"u"||a.alwaysSet)&&(i[s.value]=o.value)}return{status:e.value,value:i}}}const J=Object.freeze({status:"aborted"}),Xr=r=>({status:"dirty",value:r}),ut=r=>({status:"valid",value:r}),zl=r=>r.status==="aborted",Zl=r=>r.status==="dirty",Fi=r=>r.status==="valid",Ui=r=>typeof Promise<"u"&&r instanceof Promise;function fs(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)}function Gb(r,e,t,i,a){if(i==="m")throw new TypeError("Private method is not writable");if(i==="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 i==="a"?a.call(r,t):a?a.value=t:e.set(r,t),t}typeof SuppressedError=="function"&&SuppressedError;var k;(function(r){r.errToObj=e=>typeof e=="string"?{message:e}:e||{},r.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(k||(k={}));var xi,ji;class Kt{constructor(e,t,i,a){this._cachedPath=[],this.parent=e,this.data=t,this._path=i,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 $b=(r,e)=>{if(Fi(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 Rt(r.common.issues);return this._error=t,this._error}}};function Z(r){if(!r)return{};const{errorMap:e,invalid_type_error:t,required_error:i,description:a}=r;if(e&&(t||i))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,y;const{message:f}=r;return o.code==="invalid_enum_value"?{message:f??l.defaultError}:typeof l.data>"u"?{message:(p=f??i)!==null&&p!==void 0?p:l.defaultError}:o.code!=="invalid_type"?{message:l.defaultError}:{message:(y=f??t)!==null&&y!==void 0?y:l.defaultError}},description:a}}class X{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 Mn(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:Mn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new nt,ctx:{common:e.parent.common,data:e.data,parsedType:Mn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(Ui(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 i=this.safeParse(e,t);if(i.success)return i.data;throw i.error}safeParse(e,t){var i;const a={common:{issues:[],async:(i=t==null?void 0:t.async)!==null&&i!==void 0?i:!1,contextualErrorMap:t==null?void 0:t.errorMap},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Mn(e)},s=this._parseSync({data:e,path:a.path,parent:a});return $b(a,s)}async parseAsync(e,t){const i=await this.safeParseAsync(e,t);if(i.success)return i.data;throw i.error}async safeParseAsync(e,t){const i={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:Mn(e)},a=this._parse({data:e,path:i.path,parent:i}),s=await(Ui(a)?a:Promise.resolve(a));return $b(i,s)}refine(e,t){const i=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:w.custom,...i(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((i,a)=>e(i)?!0:(a.addIssue(typeof t=="function"?t(i,a):t),!1))}_refinement(e){return new Yt({schema:this,typeName:q.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Qt.create(this,this._def)}nullable(){return $n.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Wt.create(this,this._def)}promise(){return ni.create(this,this._def)}or(e){return Wi.create([this,e],this._def)}and(e){return Yi.create(this,e,this._def)}transform(e){return new Yt({...Z(this._def),schema:this,typeName:q.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new Xi({...Z(this._def),innerType:this,defaultValue:t,typeName:q.ZodDefault})}brand(){return new Ql({typeName:q.ZodBranded,type:this,...Z(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new Qi({...Z(this._def),innerType:this,catchValue:t,typeName:q.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return ea.create(this,e)}readonly(){return ta.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const uO=/^c[^\s-]{8,}$/i,pO=/^[0-9a-z]+$/,yO=/^[0-9A-HJKMNP-TV-Z]{26}$/,hO=/^[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,fO=/^[a-z0-9_-]{21}$/i,mO=/^[-+]?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)?)??$/,TO=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,EO="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Kl;const bO=/^(?:(?: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])$/,RO=/^(([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})))$/,gO=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Fb="((\\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])))",vO=new RegExp(`^${Fb}$`);function Ub(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 IO(r){return new RegExp(`^${Ub(r)}$`)}function xb(r){let e=`${Fb}T${Ub(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 DO(r,e){return!!((e==="v4"||!e)&&bO.test(r)||(e==="v6"||!e)&&RO.test(r))}class Jt extends X{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==G.string){const s=this._getOrReturnCtx(e);return V(s,{code:w.invalid_type,expected:G.string,received:s.parsedType}),J}const i=new nt;let a;for(const s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(a=this._getOrReturnCtx(e,a),V(a,{code:w.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="max")e.data.length>s.value&&(a=this._getOrReturnCtx(e,a),V(a,{code:w.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.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?V(a,{code:w.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):l&&V(a,{code:w.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),i.dirty())}else if(s.kind==="email")TO.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"email",code:w.invalid_string,message:s.message}),i.dirty());else if(s.kind==="emoji")Kl||(Kl=new RegExp(EO,"u")),Kl.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"emoji",code:w.invalid_string,message:s.message}),i.dirty());else if(s.kind==="uuid")hO.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"uuid",code:w.invalid_string,message:s.message}),i.dirty());else if(s.kind==="nanoid")fO.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"nanoid",code:w.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid")uO.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"cuid",code:w.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid2")pO.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"cuid2",code:w.invalid_string,message:s.message}),i.dirty());else if(s.kind==="ulid")yO.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"ulid",code:w.invalid_string,message:s.message}),i.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),V(a,{validation:"url",code:w.invalid_string,message:s.message}),i.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"regex",code:w.invalid_string,message:s.message}),i.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(a=this._getOrReturnCtx(e,a),V(a,{code:w.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),i.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),V(a,{code:w.invalid_string,validation:{startsWith:s.value},message:s.message}),i.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(a=this._getOrReturnCtx(e,a),V(a,{code:w.invalid_string,validation:{endsWith:s.value},message:s.message}),i.dirty()):s.kind==="datetime"?xb(s).test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{code:w.invalid_string,validation:"datetime",message:s.message}),i.dirty()):s.kind==="date"?vO.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{code:w.invalid_string,validation:"date",message:s.message}),i.dirty()):s.kind==="time"?IO(s).test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{code:w.invalid_string,validation:"time",message:s.message}),i.dirty()):s.kind==="duration"?mO.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"duration",code:w.invalid_string,message:s.message}),i.dirty()):s.kind==="ip"?DO(e.data,s.version)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"ip",code:w.invalid_string,message:s.message}),i.dirty()):s.kind==="base64"?gO.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"base64",code:w.invalid_string,message:s.message}),i.dirty()):ne.assertNever(s);return{status:i.value,value:e.data}}_regex(e,t,i){return this.refinement(a=>e.test(a),{validation:t,code:w.invalid_string,...k.errToObj(i)})}_addCheck(e){return new Jt({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...k.errToObj(e)})}url(e){return this._addCheck({kind:"url",...k.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...k.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...k.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...k.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...k.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...k.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...k.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...k.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...k.errToObj(e)})}datetime(e){var t,i;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:(i=e==null?void 0:e.local)!==null&&i!==void 0?i:!1,...k.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,...k.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...k.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...k.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t==null?void 0:t.position,...k.errToObj(t==null?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...k.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...k.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...k.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...k.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...k.errToObj(t)})}nonempty(e){return this.min(1,k.errToObj(e))}trim(){return new Jt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Jt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Jt({...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}}Jt.create=r=>{var e;return new Jt({checks:[],typeName:q.ZodString,coerce:(e=r==null?void 0:r.coerce)!==null&&e!==void 0?e:!1,...Z(r)})};function PO(r,e){const t=(r.toString().split(".")[1]||"").length,i=(e.toString().split(".")[1]||"").length,a=t>i?t:i,s=parseInt(r.toFixed(a).replace(".","")),o=parseInt(e.toFixed(a).replace(".",""));return s%o/Math.pow(10,a)}class Vn extends X{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)!==G.number){const s=this._getOrReturnCtx(e);return V(s,{code:w.invalid_type,expected:G.number,received:s.parsedType}),J}let i;const a=new nt;for(const s of this._def.checks)s.kind==="int"?ne.isInteger(e.data)||(i=this._getOrReturnCtx(e,i),V(i,{code:w.invalid_type,expected:"integer",received:"float",message:s.message}),a.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(i=this._getOrReturnCtx(e,i),V(i,{code:w.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)&&(i=this._getOrReturnCtx(e,i),V(i,{code:w.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="multipleOf"?PO(e.data,s.value)!==0&&(i=this._getOrReturnCtx(e,i),V(i,{code:w.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(i=this._getOrReturnCtx(e,i),V(i,{code:w.not_finite,message:s.message}),a.dirty()):ne.assertNever(s);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,k.toString(t))}gt(e,t){return this.setLimit("min",e,!1,k.toString(t))}lte(e,t){return this.setLimit("max",e,!0,k.toString(t))}lt(e,t){return this.setLimit("max",e,!1,k.toString(t))}setLimit(e,t,i,a){return new Vn({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:k.toString(a)}]})}_addCheck(e){return new Vn({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:k.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:k.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:k.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:k.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:k.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:k.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:k.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:k.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:k.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"&&ne.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(t===null||i.value>t)&&(t=i.value):i.kind==="max"&&(e===null||i.value<e)&&(e=i.value)}return Number.isFinite(t)&&Number.isFinite(e)}}Vn.create=r=>new Vn({checks:[],typeName:q.ZodNumber,coerce:(r==null?void 0:r.coerce)||!1,...Z(r)});class Ln extends X{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)!==G.bigint){const s=this._getOrReturnCtx(e);return V(s,{code:w.invalid_type,expected:G.bigint,received:s.parsedType}),J}let i;const a=new nt;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(i=this._getOrReturnCtx(e,i),V(i,{code:w.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)&&(i=this._getOrReturnCtx(e,i),V(i,{code:w.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(i=this._getOrReturnCtx(e,i),V(i,{code:w.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):ne.assertNever(s);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,k.toString(t))}gt(e,t){return this.setLimit("min",e,!1,k.toString(t))}lte(e,t){return this.setLimit("max",e,!0,k.toString(t))}lt(e,t){return this.setLimit("max",e,!1,k.toString(t))}setLimit(e,t,i,a){return new Ln({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:k.toString(a)}]})}_addCheck(e){return new Ln({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:k.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:k.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:k.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:k.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:k.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}}Ln.create=r=>{var e;return new Ln({checks:[],typeName:q.ZodBigInt,coerce:(e=r==null?void 0:r.coerce)!==null&&e!==void 0?e:!1,...Z(r)})};class ki extends X{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==G.boolean){const i=this._getOrReturnCtx(e);return V(i,{code:w.invalid_type,expected:G.boolean,received:i.parsedType}),J}return ut(e.data)}}ki.create=r=>new ki({typeName:q.ZodBoolean,coerce:(r==null?void 0:r.coerce)||!1,...Z(r)});class cr extends X{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==G.date){const s=this._getOrReturnCtx(e);return V(s,{code:w.invalid_type,expected:G.date,received:s.parsedType}),J}if(isNaN(e.data.getTime())){const s=this._getOrReturnCtx(e);return V(s,{code:w.invalid_date}),J}const i=new nt;let a;for(const s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(a=this._getOrReturnCtx(e,a),V(a,{code:w.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),i.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(a=this._getOrReturnCtx(e,a),V(a,{code:w.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),i.dirty()):ne.assertNever(s);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new cr({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:k.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:k.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}}cr.create=r=>new cr({checks:[],coerce:(r==null?void 0:r.coerce)||!1,typeName:q.ZodDate,...Z(r)});class ms extends X{_parse(e){if(this._getType(e)!==G.symbol){const i=this._getOrReturnCtx(e);return V(i,{code:w.invalid_type,expected:G.symbol,received:i.parsedType}),J}return ut(e.data)}}ms.create=r=>new ms({typeName:q.ZodSymbol,...Z(r)});class qi extends X{_parse(e){if(this._getType(e)!==G.undefined){const i=this._getOrReturnCtx(e);return V(i,{code:w.invalid_type,expected:G.undefined,received:i.parsedType}),J}return ut(e.data)}}qi.create=r=>new qi({typeName:q.ZodUndefined,...Z(r)});class Ji extends X{_parse(e){if(this._getType(e)!==G.null){const i=this._getOrReturnCtx(e);return V(i,{code:w.invalid_type,expected:G.null,received:i.parsedType}),J}return ut(e.data)}}Ji.create=r=>new Ji({typeName:q.ZodNull,...Z(r)});class Qr extends X{constructor(){super(...arguments),this._any=!0}_parse(e){return ut(e.data)}}Qr.create=r=>new Qr({typeName:q.ZodAny,...Z(r)});class dr extends X{constructor(){super(...arguments),this._unknown=!0}_parse(e){return ut(e.data)}}dr.create=r=>new dr({typeName:q.ZodUnknown,...Z(r)});class mn extends X{_parse(e){const t=this._getOrReturnCtx(e);return V(t,{code:w.invalid_type,expected:G.never,received:t.parsedType}),J}}mn.create=r=>new mn({typeName:q.ZodNever,...Z(r)});class Ts extends X{_parse(e){if(this._getType(e)!==G.undefined){const i=this._getOrReturnCtx(e);return V(i,{code:w.invalid_type,expected:G.void,received:i.parsedType}),J}return ut(e.data)}}Ts.create=r=>new Ts({typeName:q.ZodVoid,...Z(r)});class Wt extends X{_parse(e){const{ctx:t,status:i}=this._processInputParams(e),a=this._def;if(t.parsedType!==G.array)return V(t,{code:w.invalid_type,expected:G.array,received:t.parsedType}),J;if(a.exactLength!==null){const o=t.data.length>a.exactLength.value,l=t.data.length<a.exactLength.value;(o||l)&&(V(t,{code:o?w.too_big:w.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}),i.dirty())}if(a.minLength!==null&&t.data.length<a.minLength.value&&(V(t,{code:w.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),i.dirty()),a.maxLength!==null&&t.data.length>a.maxLength.value&&(V(t,{code:w.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),i.dirty()),t.common.async)return Promise.all([...t.data].map((o,l)=>a.type._parseAsync(new Kt(t,o,t.path,l)))).then(o=>nt.mergeArray(i,o));const s=[...t.data].map((o,l)=>a.type._parseSync(new Kt(t,o,t.path,l)));return nt.mergeArray(i,s)}get element(){return this._def.type}min(e,t){return new Wt({...this._def,minLength:{value:e,message:k.toString(t)}})}max(e,t){return new Wt({...this._def,maxLength:{value:e,message:k.toString(t)}})}length(e,t){return new Wt({...this._def,exactLength:{value:e,message:k.toString(t)}})}nonempty(e){return this.min(1,e)}}Wt.create=(r,e)=>new Wt({type:r,minLength:null,maxLength:null,exactLength:null,typeName:q.ZodArray,...Z(e)});function ei(r){if(r instanceof ke){const e={};for(const t in r.shape){const i=r.shape[t];e[t]=Qt.create(ei(i))}return new ke({...r._def,shape:()=>e})}else return r instanceof Wt?new Wt({...r._def,type:ei(r.element)}):r instanceof Qt?Qt.create(ei(r.unwrap())):r instanceof $n?$n.create(ei(r.unwrap())):r instanceof Xt?Xt.create(r.items.map(e=>ei(e))):r}class ke extends X{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=ne.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==G.object){const y=this._getOrReturnCtx(e);return V(y,{code:w.invalid_type,expected:G.object,received:y.parsedType}),J}const{status:i,ctx:a}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),l=[];if(!(this._def.catchall instanceof mn&&this._def.unknownKeys==="strip"))for(const y in a.data)o.includes(y)||l.push(y);const p=[];for(const y of o){const f=s[y],m=a.data[y];p.push({key:{status:"valid",value:y},value:f._parse(new Kt(a,m,a.path,y)),alwaysSet:y in a.data})}if(this._def.catchall instanceof mn){const y=this._def.unknownKeys;if(y==="passthrough")for(const f of l)p.push({key:{status:"valid",value:f},value:{status:"valid",value:a.data[f]}});else if(y==="strict")l.length>0&&(V(a,{code:w.unrecognized_keys,keys:l}),i.dirty());else if(y!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const y=this._def.catchall;for(const f of l){const m=a.data[f];p.push({key:{status:"valid",value:f},value:y._parse(new Kt(a,m,a.path,f)),alwaysSet:f in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const y=[];for(const f of p){const m=await f.key,b=await f.value;y.push({key:m,value:b,alwaysSet:f.alwaysSet})}return y}).then(y=>nt.mergeObjectSync(i,y)):nt.mergeObjectSync(i,p)}get shape(){return this._def.shape()}strict(e){return k.errToObj,new ke({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,i)=>{var a,s,o,l;const p=(o=(s=(a=this._def).errorMap)===null||s===void 0?void 0:s.call(a,t,i).message)!==null&&o!==void 0?o:i.defaultError;return t.code==="unrecognized_keys"?{message:(l=k.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:q.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ke({...this._def,catchall:e})}pick(e){const t={};return ne.objectKeys(e).forEach(i=>{e[i]&&this.shape[i]&&(t[i]=this.shape[i])}),new ke({...this._def,shape:()=>t})}omit(e){const t={};return ne.objectKeys(this.shape).forEach(i=>{e[i]||(t[i]=this.shape[i])}),new ke({...this._def,shape:()=>t})}deepPartial(){return ei(this)}partial(e){const t={};return ne.objectKeys(this.shape).forEach(i=>{const a=this.shape[i];e&&!e[i]?t[i]=a:t[i]=a.optional()}),new ke({...this._def,shape:()=>t})}required(e){const t={};return ne.objectKeys(this.shape).forEach(i=>{if(e&&!e[i])t[i]=this.shape[i];else{let s=this.shape[i];for(;s instanceof Qt;)s=s._def.innerType;t[i]=s}}),new ke({...this._def,shape:()=>t})}keyof(){return jb(ne.objectKeys(this.shape))}}ke.create=(r,e)=>new ke({shape:()=>r,unknownKeys:"strip",catchall:mn.create(),typeName:q.ZodObject,...Z(e)}),ke.strictCreate=(r,e)=>new ke({shape:()=>r,unknownKeys:"strict",catchall:mn.create(),typeName:q.ZodObject,...Z(e)}),ke.lazycreate=(r,e)=>new ke({shape:r,unknownKeys:"strip",catchall:mn.create(),typeName:q.ZodObject,...Z(e)});class Wi extends X{_parse(e){const{ctx:t}=this._processInputParams(e),i=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 Rt(l.ctx.common.issues));return V(t,{code:w.invalid_union,unionErrors:o}),J}if(t.common.async)return Promise.all(i.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 i){const y={...t,common:{...t.common,issues:[]},parent:null},f=p._parseSync({data:t.data,path:t.path,parent:y});if(f.status==="valid")return f;f.status==="dirty"&&!s&&(s={result:f,ctx:y}),y.common.issues.length&&o.push(y.common.issues)}if(s)return t.common.issues.push(...s.ctx.common.issues),s.result;const l=o.map(p=>new Rt(p));return V(t,{code:w.invalid_union,unionErrors:l}),J}}get options(){return this._def.options}}Wi.create=(r,e)=>new Wi({options:r,typeName:q.ZodUnion,...Z(e)});const Tn=r=>r instanceof zi?Tn(r.schema):r instanceof Yt?Tn(r.innerType()):r instanceof Zi?[r.value]:r instanceof Gn?r.options:r instanceof Ki?ne.objectValues(r.enum):r instanceof Xi?Tn(r._def.innerType):r instanceof qi?[void 0]:r instanceof Ji?[null]:r instanceof Qt?[void 0,...Tn(r.unwrap())]:r instanceof $n?[null,...Tn(r.unwrap())]:r instanceof Ql||r instanceof ta?Tn(r.unwrap()):r instanceof Qi?Tn(r._def.innerType):[];class Es extends X{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==G.object)return V(t,{code:w.invalid_type,expected:G.object,received:t.parsedType}),J;const i=this.discriminator,a=t.data[i],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}):(V(t,{code:w.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),J)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,i){const a=new Map;for(const s of t){const o=Tn(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 Es({typeName:q.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:a,...Z(i)})}}function Xl(r,e){const t=Mn(r),i=Mn(e);if(r===e)return{valid:!0,data:r};if(t===G.object&&i===G.object){const a=ne.objectKeys(e),s=ne.objectKeys(r).filter(l=>a.indexOf(l)!==-1),o={...r,...e};for(const l of s){const p=Xl(r[l],e[l]);if(!p.valid)return{valid:!1};o[l]=p.data}return{valid:!0,data:o}}else if(t===G.array&&i===G.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=Xl(o,l);if(!p.valid)return{valid:!1};a.push(p.data)}return{valid:!0,data:a}}else return t===G.date&&i===G.date&&+r==+e?{valid:!0,data:r}:{valid:!1}}class Yi extends X{_parse(e){const{status:t,ctx:i}=this._processInputParams(e),a=(s,o)=>{if(zl(s)||zl(o))return J;const l=Xl(s.value,o.value);return l.valid?((Zl(s)||Zl(o))&&t.dirty(),{status:t.value,value:l.data}):(V(i,{code:w.invalid_intersection_types}),J)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([s,o])=>a(s,o)):a(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}Yi.create=(r,e,t)=>new Yi({left:r,right:e,typeName:q.ZodIntersection,...Z(t)});class Xt extends X{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==G.array)return V(i,{code:w.invalid_type,expected:G.array,received:i.parsedType}),J;if(i.data.length<this._def.items.length)return V(i,{code:w.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),J;!this._def.rest&&i.data.length>this._def.items.length&&(V(i,{code:w.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const s=[...i.data].map((o,l)=>{const p=this._def.items[l]||this._def.rest;return p?p._parse(new Kt(i,o,i.path,l)):null}).filter(o=>!!o);return i.common.async?Promise.all(s).then(o=>nt.mergeArray(t,o)):nt.mergeArray(t,s)}get items(){return this._def.items}rest(e){return new Xt({...this._def,rest:e})}}Xt.create=(r,e)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Xt({items:r,typeName:q.ZodTuple,rest:null,...Z(e)})};class Hi extends X{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==G.object)return V(i,{code:w.invalid_type,expected:G.object,received:i.parsedType}),J;const a=[],s=this._def.keyType,o=this._def.valueType;for(const l in i.data)a.push({key:s._parse(new Kt(i,l,i.path,l)),value:o._parse(new Kt(i,i.data[l],i.path,l)),alwaysSet:l in i.data});return i.common.async?nt.mergeObjectAsync(t,a):nt.mergeObjectSync(t,a)}get element(){return this._def.valueType}static create(e,t,i){return t instanceof X?new Hi({keyType:e,valueType:t,typeName:q.ZodRecord,...Z(i)}):new Hi({keyType:Jt.create(),valueType:e,typeName:q.ZodRecord,...Z(t)})}}class bs extends X{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==G.map)return V(i,{code:w.invalid_type,expected:G.map,received:i.parsedType}),J;const a=this._def.keyType,s=this._def.valueType,o=[...i.data.entries()].map(([l,p],y)=>({key:a._parse(new Kt(i,l,i.path,[y,"key"])),value:s._parse(new Kt(i,p,i.path,[y,"value"]))}));if(i.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const p of o){const y=await p.key,f=await p.value;if(y.status==="aborted"||f.status==="aborted")return J;(y.status==="dirty"||f.status==="dirty")&&t.dirty(),l.set(y.value,f.value)}return{status:t.value,value:l}})}else{const l=new Map;for(const p of o){const y=p.key,f=p.value;if(y.status==="aborted"||f.status==="aborted")return J;(y.status==="dirty"||f.status==="dirty")&&t.dirty(),l.set(y.value,f.value)}return{status:t.value,value:l}}}}bs.create=(r,e,t)=>new bs({valueType:e,keyType:r,typeName:q.ZodMap,...Z(t)});class ur extends X{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==G.set)return V(i,{code:w.invalid_type,expected:G.set,received:i.parsedType}),J;const a=this._def;a.minSize!==null&&i.data.size<a.minSize.value&&(V(i,{code:w.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),t.dirty()),a.maxSize!==null&&i.data.size>a.maxSize.value&&(V(i,{code:w.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 y=new Set;for(const f of p){if(f.status==="aborted")return J;f.status==="dirty"&&t.dirty(),y.add(f.value)}return{status:t.value,value:y}}const l=[...i.data.values()].map((p,y)=>s._parse(new Kt(i,p,i.path,y)));return i.common.async?Promise.all(l).then(p=>o(p)):o(l)}min(e,t){return new ur({...this._def,minSize:{value:e,message:k.toString(t)}})}max(e,t){return new ur({...this._def,maxSize:{value:e,message:k.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ur.create=(r,e)=>new ur({valueType:r,minSize:null,maxSize:null,typeName:q.ZodSet,...Z(e)});class ti extends X{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==G.function)return V(t,{code:w.invalid_type,expected:G.function,received:t.parsedType}),J;function i(l,p){return hs({data:l,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,ys(),Kr].filter(y=>!!y),issueData:{code:w.invalid_arguments,argumentsError:p}})}function a(l,p){return hs({data:l,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,ys(),Kr].filter(y=>!!y),issueData:{code:w.invalid_return_type,returnTypeError:p}})}const s={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof ni){const l=this;return ut(async function(...p){const y=new Rt([]),f=await l._def.args.parseAsync(p,s).catch(v=>{throw y.addIssue(i(p,v)),y}),m=await Reflect.apply(o,this,f);return await l._def.returns._def.type.parseAsync(m,s).catch(v=>{throw y.addIssue(a(m,v)),y})})}else{const l=this;return ut(function(...p){const y=l._def.args.safeParse(p,s);if(!y.success)throw new Rt([i(p,y.error)]);const f=Reflect.apply(o,this,y.data),m=l._def.returns.safeParse(f,s);if(!m.success)throw new Rt([a(f,m.error)]);return m.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ti({...this._def,args:Xt.create(e).rest(dr.create())})}returns(e){return new ti({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,i){return new ti({args:e||Xt.create([]).rest(dr.create()),returns:t||dr.create(),typeName:q.ZodFunction,...Z(i)})}}class zi extends X{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})}}zi.create=(r,e)=>new zi({getter:r,typeName:q.ZodLazy,...Z(e)});class Zi extends X{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return V(t,{received:t.data,code:w.invalid_literal,expected:this._def.value}),J}return{status:"valid",value:e.data}}get value(){return this._def.value}}Zi.create=(r,e)=>new Zi({value:r,typeName:q.ZodLiteral,...Z(e)});function jb(r,e){return new Gn({values:r,typeName:q.ZodEnum,...Z(e)})}class Gn extends X{constructor(){super(...arguments),xi.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),i=this._def.values;return V(t,{expected:ne.joinValues(i),received:t.parsedType,code:w.invalid_type}),J}if(fs(this,xi,"f")||Gb(this,xi,new Set(this._def.values),"f"),!fs(this,xi,"f").has(e.data)){const t=this._getOrReturnCtx(e),i=this._def.values;return V(t,{received:t.data,code:w.invalid_enum_value,options:i}),J}return ut(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 Gn.create(e,{...this._def,...t})}exclude(e,t=this._def){return Gn.create(this.options.filter(i=>!e.includes(i)),{...this._def,...t})}}xi=new WeakMap,Gn.create=jb;class Ki extends X{constructor(){super(...arguments),ji.set(this,void 0)}_parse(e){const t=ne.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==G.string&&i.parsedType!==G.number){const a=ne.objectValues(t);return V(i,{expected:ne.joinValues(a),received:i.parsedType,code:w.invalid_type}),J}if(fs(this,ji,"f")||Gb(this,ji,new Set(ne.getValidEnumValues(this._def.values)),"f"),!fs(this,ji,"f").has(e.data)){const a=ne.objectValues(t);return V(i,{received:i.data,code:w.invalid_enum_value,options:a}),J}return ut(e.data)}get enum(){return this._def.values}}ji=new WeakMap,Ki.create=(r,e)=>new Ki({values:r,typeName:q.ZodNativeEnum,...Z(e)});class ni extends X{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==G.promise&&t.common.async===!1)return V(t,{code:w.invalid_type,expected:G.promise,received:t.parsedType}),J;const i=t.parsedType===G.promise?t.data:Promise.resolve(t.data);return ut(i.then(a=>this._def.type.parseAsync(a,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ni.create=(r,e)=>new ni({type:r,typeName:q.ZodPromise,...Z(e)});class Yt extends X{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===q.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:i}=this._processInputParams(e),a=this._def.effect||null,s={addIssue:o=>{V(i,o),o.fatal?t.abort():t.dirty()},get path(){return i.path}};if(s.addIssue=s.addIssue.bind(s),a.type==="preprocess"){const o=a.transform(i.data,s);if(i.common.async)return Promise.resolve(o).then(async l=>{if(t.value==="aborted")return J;const p=await this._def.schema._parseAsync({data:l,path:i.path,parent:i});return p.status==="aborted"?J:p.status==="dirty"||t.value==="dirty"?Xr(p.value):p});{if(t.value==="aborted")return J;const l=this._def.schema._parseSync({data:o,path:i.path,parent:i});return l.status==="aborted"?J:l.status==="dirty"||t.value==="dirty"?Xr(l.value):l}}if(a.type==="refinement"){const o=l=>{const p=a.refinement(l,s);if(i.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(i.common.async===!1){const l=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return l.status==="aborted"?J:(l.status==="dirty"&&t.dirty(),o(l.value),{status:t.value,value:l.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(l=>l.status==="aborted"?J:(l.status==="dirty"&&t.dirty(),o(l.value).then(()=>({status:t.value,value:l.value}))))}if(a.type==="transform")if(i.common.async===!1){const o=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!Fi(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:i.data,path:i.path,parent:i}).then(o=>Fi(o)?Promise.resolve(a.transform(o.value,s)).then(l=>({status:t.value,value:l})):o);ne.assertNever(a)}}Yt.create=(r,e,t)=>new Yt({schema:r,typeName:q.ZodEffects,effect:e,...Z(t)}),Yt.createWithPreprocess=(r,e,t)=>new Yt({schema:e,effect:{type:"preprocess",transform:r},typeName:q.ZodEffects,...Z(t)});class Qt extends X{_parse(e){return this._getType(e)===G.undefined?ut(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Qt.create=(r,e)=>new Qt({innerType:r,typeName:q.ZodOptional,...Z(e)});class $n extends X{_parse(e){return this._getType(e)===G.null?ut(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}$n.create=(r,e)=>new $n({innerType:r,typeName:q.ZodNullable,...Z(e)});class Xi extends X{_parse(e){const{ctx:t}=this._processInputParams(e);let i=t.data;return t.parsedType===G.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Xi.create=(r,e)=>new Xi({innerType:r,typeName:q.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Z(e)});class Qi extends X{_parse(e){const{ctx:t}=this._processInputParams(e),i={...t,common:{...t.common,issues:[]}},a=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return Ui(a)?a.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Rt(i.common.issues)},input:i.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Rt(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}Qi.create=(r,e)=>new Qi({innerType:r,typeName:q.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Z(e)});class Rs extends X{_parse(e){if(this._getType(e)!==G.nan){const i=this._getOrReturnCtx(e);return V(i,{code:w.invalid_type,expected:G.nan,received:i.parsedType}),J}return{status:"valid",value:e.data}}}Rs.create=r=>new Rs({typeName:q.ZodNaN,...Z(r)});const AO=Symbol("zod_brand");class Ql extends X{_parse(e){const{ctx:t}=this._processInputParams(e),i=t.data;return this._def.type._parse({data:i,path:t.path,parent:t})}unwrap(){return this._def.type}}class ea extends X{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?J:s.status==="dirty"?(t.dirty(),Xr(s.value)):this._def.out._parseAsync({data:s.value,path:i.path,parent:i})})();{const a=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?J:a.status==="dirty"?(t.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:i.path,parent:i})}}static create(e,t){return new ea({in:e,out:t,typeName:q.ZodPipeline})}}class ta extends X{_parse(e){const t=this._def.innerType._parse(e),i=a=>(Fi(a)&&(a.value=Object.freeze(a.value)),a);return Ui(t)?t.then(a=>i(a)):i(t)}unwrap(){return this._def.innerType}}ta.create=(r,e)=>new ta({innerType:r,typeName:q.ZodReadonly,...Z(e)});function kb(r,e={},t){return r?Qr.create().superRefine((i,a)=>{var s,o;if(!r(i)){const l=typeof e=="function"?e(i):typeof e=="string"?{message:e}:e,p=(o=(s=l.fatal)!==null&&s!==void 0?s:t)!==null&&o!==void 0?o:!0,y=typeof l=="string"?{message:l}:l;a.addIssue({code:"custom",...y,fatal:p})}}):Qr.create()}const OO={object:ke.lazycreate};var q;(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"})(q||(q={}));const SO=(r,e={message:`Input not instance of ${r.name}`})=>kb(t=>t instanceof r,e),gs=Jt.create,ec=Vn.create,CO=Rs.create,BO=Ln.create,tc=ki.create,qb=cr.create,wO=ms.create,_O=qi.create,Jb=Ji.create,NO=Qr.create,vs=dr.create,MO=mn.create,VO=Ts.create,LO=Wt.create,Wb=ke.create,GO=ke.strictCreate,$O=Wi.create,FO=Es.create,UO=Yi.create,xO=Xt.create,Yb=Hi.create,jO=bs.create,kO=ur.create,qO=ti.create,JO=zi.create,WO=Zi.create,Hb=Gn.create,YO=Ki.create,HO=ni.create,zb=Yt.create,zO=Qt.create,ZO=$n.create,KO=Yt.createWithPreprocess,XO=ea.create;var u=Object.freeze({__proto__:null,defaultErrorMap:Kr,setErrorMap:cO,getErrorMap:ys,makeIssue:hs,EMPTY_PATH:dO,addIssueToContext:V,ParseStatus:nt,INVALID:J,DIRTY:Xr,OK:ut,isAborted:zl,isDirty:Zl,isValid:Fi,isAsync:Ui,get util(){return ne},get objectUtil(){return Hl},ZodParsedType:G,getParsedType:Mn,ZodType:X,datetimeRegex:xb,ZodString:Jt,ZodNumber:Vn,ZodBigInt:Ln,ZodBoolean:ki,ZodDate:cr,ZodSymbol:ms,ZodUndefined:qi,ZodNull:Ji,ZodAny:Qr,ZodUnknown:dr,ZodNever:mn,ZodVoid:Ts,ZodArray:Wt,ZodObject:ke,ZodUnion:Wi,ZodDiscriminatedUnion:Es,ZodIntersection:Yi,ZodTuple:Xt,ZodRecord:Hi,ZodMap:bs,ZodSet:ur,ZodFunction:ti,ZodLazy:zi,ZodLiteral:Zi,ZodEnum:Gn,ZodNativeEnum:Ki,ZodPromise:ni,ZodEffects:Yt,ZodTransformer:Yt,ZodOptional:Qt,ZodNullable:$n,ZodDefault:Xi,ZodCatch:Qi,ZodNaN:Rs,BRAND:AO,ZodBranded:Ql,ZodPipeline:ea,ZodReadonly:ta,custom:kb,Schema:X,ZodSchema:X,late:OO,get ZodFirstPartyTypeKind(){return q},coerce:{string:r=>Jt.create({...r,coerce:!0}),number:r=>Vn.create({...r,coerce:!0}),boolean:r=>ki.create({...r,coerce:!0}),bigint:r=>Ln.create({...r,coerce:!0}),date:r=>cr.create({...r,coerce:!0})},any:NO,array:LO,bigint:BO,boolean:tc,date:qb,discriminatedUnion:FO,effect:zb,enum:Hb,function:qO,instanceof:SO,intersection:UO,lazy:JO,literal:WO,map:jO,nan:CO,nativeEnum:YO,never:MO,null:Jb,nullable:ZO,number:ec,object:Wb,oboolean:()=>tc().optional(),onumber:()=>ec().optional(),optional:zO,ostring:()=>gs().optional(),pipeline:XO,preprocess:KO,promise:HO,record:Yb,set:kO,strictObject:GO,string:gs,symbol:wO,transformer:zb,tuple:xO,undefined:_O,union:$O,unknown:vs,void:VO,NEVER:J,ZodIssueCode:w,quotelessJson:lO,ZodError:Rt});function Zb(r){var a,s,o;if(!(r!=null&&r.dataType))return vs();const e=r.dataType.isNullable||!1,t=r.dataType.isList||!1;let i=vs();if(((a=r.dataType.entity)==null?void 0:a.type)===n.PrimitiveEntity)switch(r.dataType.entity.name){case D.String:i=gs();break;case D.JSON:i=Yb(vs());break;case D.Number:i=ec();break;case D.Boolean:i=tc();break;case D.Date:i=qb();break;case D.Enum:{const l=r.dataType.options||[];if(l.length===0)throw new Error(`Enum property ${r.name} has no options`);i=Hb(l);break}case D.Null:i=Jb();break;case D.UUID:i=gs().uuid();break}else if(((s=r.dataType.entity)==null?void 0:s.type)===n.CustomEntity)i=Kb(r.dataType.entity);else throw new Error(`Unsupported data type validation: ${(o=r.dataType.entity)==null?void 0:o.type}`);return e&&(i=i.nullable()),t&&(i=i.array()),i}function Kb(r){const e=Wb({});for(const t of r.properties){const i=Zb(t);e.shape[t.name]=i}return e}function Xb(r){const e=r.rangeStart;return new Date(e.getTime()+Math.random()*(Date.now()-e.getTime()))}function Qb(r){const e=r.rangeEnd;return new Date(Math.random()*e.getTime())}function eR(r){const e=r.rangeStart,t=r.rangeEnd;return new Date(e.getTime()+Math.random()*(t.getTime()-e.getTime()))}function tR(r){return r.rangeStart&&r.rangeEnd?eR(r):r.rangeStart?Xb(r):r.rangeEnd?Qb(r):new Date}function QO(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var nR={},Is={},Ds={};Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.default=tS;let Ps;const eS=new Uint8Array(16);function tS(){if(!Ps&&(Ps=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ps))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ps(eS)}var Fn={},pr={},As={};Object.defineProperty(As,"__esModule",{value:!0}),As.default=void 0;var nS=/^(?:[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;As.default=nS,Object.defineProperty(pr,"__esModule",{value:!0}),pr.default=void 0;var rS=iS(As);function iS(r){return r&&r.__esModule?r:{default:r}}function aS(r){return typeof r=="string"&&rS.default.test(r)}var sS=aS;pr.default=sS,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.default=void 0,Fn.unsafeStringify=rR;var oS=lS(pr);function lS(r){return r&&r.__esModule?r:{default:r}}const tt=[];for(let r=0;r<256;++r)tt.push((r+256).toString(16).slice(1));function rR(r,e=0){return tt[r[e+0]]+tt[r[e+1]]+tt[r[e+2]]+tt[r[e+3]]+"-"+tt[r[e+4]]+tt[r[e+5]]+"-"+tt[r[e+6]]+tt[r[e+7]]+"-"+tt[r[e+8]]+tt[r[e+9]]+"-"+tt[r[e+10]]+tt[r[e+11]]+tt[r[e+12]]+tt[r[e+13]]+tt[r[e+14]]+tt[r[e+15]]}function cS(r,e=0){const t=rR(r,e);if(!(0,oS.default)(t))throw TypeError("Stringified UUID is invalid");return t}var dS=cS;Fn.default=dS,Object.defineProperty(Is,"__esModule",{value:!0}),Is.default=void 0;var uS=yS(Ds),pS=Fn;function yS(r){return r&&r.__esModule?r:{default:r}}let iR,nc,rc=0,ic=0;function hS(r,e,t){let i=e&&t||0;const a=e||new Array(16);r=r||{};let s=r.node||iR,o=r.clockseq!==void 0?r.clockseq:nc;if(s==null||o==null){const b=r.random||(r.rng||uS.default)();s==null&&(s=iR=[b[0]|1,b[1],b[2],b[3],b[4],b[5]]),o==null&&(o=nc=(b[6]<<8|b[7])&16383)}let l=r.msecs!==void 0?r.msecs:Date.now(),p=r.nsecs!==void 0?r.nsecs:ic+1;const y=l-rc+(p-ic)/1e4;if(y<0&&r.clockseq===void 0&&(o=o+1&16383),(y<0||l>rc)&&r.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");rc=l,ic=p,nc=o,l+=122192928e5;const f=((l&268435455)*1e4+p)%4294967296;a[i++]=f>>>24&255,a[i++]=f>>>16&255,a[i++]=f>>>8&255,a[i++]=f&255;const m=l/4294967296*1e4&268435455;a[i++]=m>>>8&255,a[i++]=m&255,a[i++]=m>>>24&15|16,a[i++]=m>>>16&255,a[i++]=o>>>8|128,a[i++]=o&255;for(let b=0;b<6;++b)a[i+b]=s[b];return e||(0,pS.unsafeStringify)(a)}var fS=hS;Is.default=fS;var Os={},Un={},na={};Object.defineProperty(na,"__esModule",{value:!0}),na.default=void 0;var mS=TS(pr);function TS(r){return r&&r.__esModule?r:{default:r}}function ES(r){if(!(0,mS.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 bS=ES;na.default=bS,Object.defineProperty(Un,"__esModule",{value:!0}),Un.URL=Un.DNS=void 0,Un.default=DS;var RS=Fn,gS=vS(na);function vS(r){return r&&r.__esModule?r:{default:r}}function IS(r){r=unescape(encodeURIComponent(r));const e=[];for(let t=0;t<r.length;++t)e.push(r.charCodeAt(t));return e}const aR="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Un.DNS=aR;const sR="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Un.URL=sR;function DS(r,e,t){function i(a,s,o,l){var p;if(typeof a=="string"&&(a=IS(a)),typeof s=="string"&&(s=(0,gS.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 y=new Uint8Array(16+a.length);if(y.set(s),y.set(a,s.length),y=t(y),y[6]=y[6]&15|e,y[8]=y[8]&63|128,o){l=l||0;for(let f=0;f<16;++f)o[l+f]=y[f];return o}return(0,RS.unsafeStringify)(y)}try{i.name=r}catch{}return i.DNS=aR,i.URL=sR,i}var Ss={};Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.default=void 0;function PS(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 AS(OS(SS(r),r.length*8))}function AS(r){const e=[],t=r.length*32,i="0123456789abcdef";for(let a=0;a<t;a+=8){const s=r[a>>5]>>>a%32&255,o=parseInt(i.charAt(s>>>4&15)+i.charAt(s&15),16);e.push(o)}return e}function oR(r){return(r+64>>>9<<4)+14+1}function OS(r,e){r[e>>5]|=128<<e%32,r[oR(e)-1]=e;let t=1732584193,i=-271733879,a=-1732584194,s=271733878;for(let o=0;o<r.length;o+=16){const l=t,p=i,y=a,f=s;t=rt(t,i,a,s,r[o],7,-680876936),s=rt(s,t,i,a,r[o+1],12,-389564586),a=rt(a,s,t,i,r[o+2],17,606105819),i=rt(i,a,s,t,r[o+3],22,-1044525330),t=rt(t,i,a,s,r[o+4],7,-176418897),s=rt(s,t,i,a,r[o+5],12,1200080426),a=rt(a,s,t,i,r[o+6],17,-1473231341),i=rt(i,a,s,t,r[o+7],22,-45705983),t=rt(t,i,a,s,r[o+8],7,1770035416),s=rt(s,t,i,a,r[o+9],12,-1958414417),a=rt(a,s,t,i,r[o+10],17,-42063),i=rt(i,a,s,t,r[o+11],22,-1990404162),t=rt(t,i,a,s,r[o+12],7,1804603682),s=rt(s,t,i,a,r[o+13],12,-40341101),a=rt(a,s,t,i,r[o+14],17,-1502002290),i=rt(i,a,s,t,r[o+15],22,1236535329),t=it(t,i,a,s,r[o+1],5,-165796510),s=it(s,t,i,a,r[o+6],9,-1069501632),a=it(a,s,t,i,r[o+11],14,643717713),i=it(i,a,s,t,r[o],20,-373897302),t=it(t,i,a,s,r[o+5],5,-701558691),s=it(s,t,i,a,r[o+10],9,38016083),a=it(a,s,t,i,r[o+15],14,-660478335),i=it(i,a,s,t,r[o+4],20,-405537848),t=it(t,i,a,s,r[o+9],5,568446438),s=it(s,t,i,a,r[o+14],9,-1019803690),a=it(a,s,t,i,r[o+3],14,-187363961),i=it(i,a,s,t,r[o+8],20,1163531501),t=it(t,i,a,s,r[o+13],5,-1444681467),s=it(s,t,i,a,r[o+2],9,-51403784),a=it(a,s,t,i,r[o+7],14,1735328473),i=it(i,a,s,t,r[o+12],20,-1926607734),t=at(t,i,a,s,r[o+5],4,-378558),s=at(s,t,i,a,r[o+8],11,-2022574463),a=at(a,s,t,i,r[o+11],16,1839030562),i=at(i,a,s,t,r[o+14],23,-35309556),t=at(t,i,a,s,r[o+1],4,-1530992060),s=at(s,t,i,a,r[o+4],11,1272893353),a=at(a,s,t,i,r[o+7],16,-155497632),i=at(i,a,s,t,r[o+10],23,-1094730640),t=at(t,i,a,s,r[o+13],4,681279174),s=at(s,t,i,a,r[o],11,-358537222),a=at(a,s,t,i,r[o+3],16,-722521979),i=at(i,a,s,t,r[o+6],23,76029189),t=at(t,i,a,s,r[o+9],4,-640364487),s=at(s,t,i,a,r[o+12],11,-421815835),a=at(a,s,t,i,r[o+15],16,530742520),i=at(i,a,s,t,r[o+2],23,-995338651),t=st(t,i,a,s,r[o],6,-198630844),s=st(s,t,i,a,r[o+7],10,1126891415),a=st(a,s,t,i,r[o+14],15,-1416354905),i=st(i,a,s,t,r[o+5],21,-57434055),t=st(t,i,a,s,r[o+12],6,1700485571),s=st(s,t,i,a,r[o+3],10,-1894986606),a=st(a,s,t,i,r[o+10],15,-1051523),i=st(i,a,s,t,r[o+1],21,-2054922799),t=st(t,i,a,s,r[o+8],6,1873313359),s=st(s,t,i,a,r[o+15],10,-30611744),a=st(a,s,t,i,r[o+6],15,-1560198380),i=st(i,a,s,t,r[o+13],21,1309151649),t=st(t,i,a,s,r[o+4],6,-145523070),s=st(s,t,i,a,r[o+11],10,-1120210379),a=st(a,s,t,i,r[o+2],15,718787259),i=st(i,a,s,t,r[o+9],21,-343485551),t=xn(t,l),i=xn(i,p),a=xn(a,y),s=xn(s,f)}return[t,i,a,s]}function SS(r){if(r.length===0)return[];const e=r.length*8,t=new Uint32Array(oR(e));for(let i=0;i<e;i+=8)t[i>>5]|=(r[i/8]&255)<<i%32;return t}function xn(r,e){const t=(r&65535)+(e&65535);return(r>>16)+(e>>16)+(t>>16)<<16|t&65535}function CS(r,e){return r<<e|r>>>32-e}function Cs(r,e,t,i,a,s){return xn(CS(xn(xn(e,r),xn(i,s)),a),t)}function rt(r,e,t,i,a,s,o){return Cs(e&t|~e&i,r,e,a,s,o)}function it(r,e,t,i,a,s,o){return Cs(e&i|t&~i,r,e,a,s,o)}function at(r,e,t,i,a,s,o){return Cs(e^t^i,r,e,a,s,o)}function st(r,e,t,i,a,s,o){return Cs(t^(e|~i),r,e,a,s,o)}var BS=PS;Ss.default=BS,Object.defineProperty(Os,"__esModule",{value:!0}),Os.default=void 0;var wS=lR(Un),_S=lR(Ss);function lR(r){return r&&r.__esModule?r:{default:r}}var NS=(0,wS.default)("v3",48,_S.default);Os.default=NS;var Bs={},ws={};Object.defineProperty(ws,"__esModule",{value:!0}),ws.default=void 0;var MS={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};ws.default=MS,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.default=void 0;var cR=dR(ws),VS=dR(Ds),LS=Fn;function dR(r){return r&&r.__esModule?r:{default:r}}function GS(r,e,t){if(cR.default.randomUUID&&!e&&!r)return cR.default.randomUUID();r=r||{};const i=r.random||(r.rng||VS.default)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){t=t||0;for(let a=0;a<16;++a)e[t+a]=i[a];return e}return(0,LS.unsafeStringify)(i)}var $S=GS;Bs.default=$S;var _s={},Ns={};Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.default=void 0;function FS(r,e,t,i){switch(r){case 0:return e&t^~e&i;case 1:return e^t^i;case 2:return e&t^e&i^t&i;case 3:return e^t^i}}function ac(r,e){return r<<e|r>>>32-e}function US(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 i=r.length/4+2,a=Math.ceil(i/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]=ac(l[v-3]^l[v-8]^l[v-14]^l[v-16],1);let p=t[0],y=t[1],f=t[2],m=t[3],b=t[4];for(let v=0;v<80;++v){const P=Math.floor(v/20),O=ac(p,5)+FS(P,y,f,m)+b+e[P]+l[v]>>>0;b=m,m=f,f=ac(y,30)>>>0,y=p,p=O}t[0]=t[0]+p>>>0,t[1]=t[1]+y>>>0,t[2]=t[2]+f>>>0,t[3]=t[3]+m>>>0,t[4]=t[4]+b>>>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 xS=US;Ns.default=xS,Object.defineProperty(_s,"__esModule",{value:!0}),_s.default=void 0;var jS=uR(Un),kS=uR(Ns);function uR(r){return r&&r.__esModule?r:{default:r}}var qS=(0,jS.default)("v5",80,kS.default);_s.default=qS;var Ms={};Object.defineProperty(Ms,"__esModule",{value:!0}),Ms.default=void 0;var JS="00000000-0000-0000-0000-000000000000";Ms.default=JS;var Vs={};Object.defineProperty(Vs,"__esModule",{value:!0}),Vs.default=void 0;var WS=YS(pr);function YS(r){return r&&r.__esModule?r:{default:r}}function HS(r){if(!(0,WS.default)(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}var zS=HS;Vs.default=zS,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 y.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 i.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=f(Is),t=f(Os),i=f(Bs),a=f(_s),s=f(Ms),o=f(Vs),l=f(pr),p=f(Fn),y=f(na);function f(m){return m&&m.__esModule?m:{default:m}}}(nR);function sc(r,e){if(!r||!e||!r.length||!e.length)throw new Error("Bad alphabet");this.srcAlphabet=r,this.dstAlphabet=e}sc.prototype.convert=function(r){var e,t,i,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,i=0,e=0;e<l;e++)t=t*s+a[e],t>=o?(a[i++]=parseInt(t/o,10),t=t%o):i>0&&(a[i++]=0);l=i,p=this.dstAlphabet.slice(t,t+1).concat(p)}while(i!==0);return p},sc.prototype.isValid=function(r){for(var e=0;e<r.length;++e)if(this.srcAlphabet.indexOf(r[e])===-1)return!1;return!0};var ZS=sc,KS=ZS;function ra(r,e){var t=new KS(r,e);return function(i){return t.convert(i)}}ra.BIN="01",ra.OCT="01234567",ra.DEC="0123456789",ra.HEX="0123456789abcdef";var XS=ra;const{v4:oc,validate:QS}=nR,Ls=XS,lc={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},eC={consistentLength:!0};let cc;const pR=(r,e,t)=>{const i=e(r.toLowerCase().replace(/-/g,""));return!t||!t.consistentLength?i:i.padStart(t.shortIdLength,t.paddingChar)},yR=(r,e)=>{const i=e(r).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[i[1],i[2],i[3],i[4],i[5]].join("-")},tC=r=>Math.ceil(Math.log(2**128)/Math.log(r));var nC=(()=>{const r=(e,t)=>{const i=e||lc.flickrBase58,a={...eC,...t};if([...new Set(Array.from(i))].length!==i.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const s=tC(i.length),o={shortIdLength:s,consistentLength:a.consistentLength,paddingChar:i[0]},l=Ls(Ls.HEX,i),p=Ls(i,Ls.HEX),y=()=>pR(oc(),l,o),m={alphabet:i,fromUUID:b=>pR(b,l,o),maxLength:s,generate:y,new:y,toUUID:b=>yR(b,p),uuid:oc,validate:(b,v=!1)=>{if(!b||typeof b!="string")return!1;const P=a.consistentLength?b.length===s:b.length<=s,O=b.split("").every(I=>i.includes(I));return v===!1?P&&O:P&&O&&QS(yR(b,p))}};return Object.freeze(m),m};return r.constants=lc,r.uuid=oc,r.generate=()=>(cc||(cc=r(lc.flickrBase58).generate),cc()),r})();const Gs=QO(nC);function hR(){return Gs().uuid()}function fR(r){return r.rangeStart+Math.random()}function mR(r){const e=r.rangeEnd;return Math.random()*e}function TR(r){const e=r.rangeStart,t=r.rangeEnd;return Math.random()*(t-e)+e}function ER(r){return r.rangeStart&&r.rangeEnd?TR(r):r.rangeStart?fR(r):r.rangeEnd?mR(r):Math.random()}function bR(r){const e=r.rangeStart;return Math.random().toString(36).substring(e)}function RR(r){const e=r.rangeEnd;return Math.random().toString(36).substring(0,e)}function gR(r){const e=r.rangeStart,t=r.rangeEnd;return Math.random().toString(36).substring(e,t)}function vR(r){return r.rangeStart&&r.rangeEnd?gR(r):r.rangeStart?bR(r):r.rangeEnd?RR(r):Math.random().toString(36)}function IR(r){return Math.random()>=.5}function rC(r){if(!r||!r.autogeneration)return null;switch(r.autogeneration.type){case qe.CurrentDateAndTime:if(r.name===D.Date)return new Date;case qe.Random:{if(r.name===D.Date)return tR(r.autogeneration);if(r.name===D.Number)return ER(r.autogeneration);if(r.name===D.String)return vR(r.autogeneration);if(r.name===D.Boolean)return IR(r.autogeneration)}case qe.Unique:if(r.name===D.UUID)return hR();default:throw new Error(`Generating a ${r.autogeneration.type} value for a ${r.name} is not supported`)}}const Y="e7eb5382-3d99-44fd-972a-b8b1e819f6be",dc="global-user-variable-id",DR="last-executed-timestamp-variable-id",iC={id:"alternative-relational-database-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-data-type-id",entityType:n.DataType},aC={id:"alternative-relational-database-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",entityType:n.Property},sC={like:!1,inferred:!1,id:"alternative-relational-database-entity-identifier-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:{id:"alternative-relational-database-entity-identifier-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:D.String,value:null,parent:iC,autogeneration:{type:qe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:aC},$s={id:"alternative-relational-database-entity-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},oC={hidden:!1,required:!0,id:"alternative-relational-database-entity-identifier-property-id",name:"Identifier name",version:1,type:n.Property,private:!1,abstract:!1,implements:ls,static:!0,index:0,dataType:sC,description:"The name of the main database inside of the server instance where the data will be stored.",parent:$s};n.GenericReference,n.DataType;const lC={id:"alternative-relational-database-entity-username-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-username-property-id",entityType:n.Property},cC={like:!1,inferred:!1,id:"alternative-relational-database-entity-username-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:null,parent:lC},dC={hidden:!1,required:!0,id:"alternative-relational-database-entity-username-property-id",name:"Username",version:1,type:n.Property,private:!1,abstract:!1,implements:cs,static:!0,index:1,dataType:cC,description:"The username that will be used to connect to the database.",parent:$s};n.GenericReference,n.DataType;const uC={id:"alternative-relational-database-entity-password-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-password-property-id",entityType:n.Property},pC={like:!1,inferred:!1,id:"alternative-relational-database-entity-password-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:null,parent:uC},yC={hidden:!1,required:!0,id:"alternative-relational-database-entity-password-property-id",name:"Password",version:1,type:n.Property,private:!1,abstract:!1,implements:ds,static:!0,index:2,dataType:pC,description:"The password that will be used to connect to the database.",parent:$s},hC={id:"alternative-relational-database-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-data-type-id",entityType:n.DataType},fC={id:"alternative-relational-database-entity-min-size-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",entityType:n.Property},mC={like:!1,inferred:!1,id:"alternative-relational-database-entity-min-size-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Q,asType:!1,defaultValue:{id:"alternative-relational-database-entity-min-size-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:D.Number,value:6,parent:hC,autogeneration:null,valueAsType:null},parent:fC},TC={hidden:!1,required:!0,id:"alternative-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:1,type:n.Property,private:!1,abstract:!1,implements:us,static:!0,index:3,dataType:mC,description:"The minimum size of the database in GB.",parent:$s},EC={id:"alternative-relational-database-entity-parent-ref-id",type:n.GenericReference,entityId:Y,entityType:n.Project},PR={id:"alternative-relational-database-entity-id",type:n.CustomEntity,version:1,name:"Alternative relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[oC,dC,yC,TC],methods:[],abstractMethods:[],extends:[],implements:[Nn],x:0,y:0,parent:EC},bC={id:"animal-prototype-database-property-ref-id",type:n.GenericReference,entityId:"animal-prototype-database-property-id",entityType:n.Property},RC={id:"animal-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"animal-prototype-database-property-data-type-default-value-id",entityType:n.DataType},gC={like:!1,inferred:!1,id:"animal-prototype-database-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:Nn,asType:!1,defaultValue:{id:"animal-prototype-database-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,value:null,name:D.EntityTemplate,valueAsType:PR,autogeneration:null,parent:RC},parent:bC},vC={id:"animal-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:n.CustomEntity},IC={hidden:!1,required:!0,id:"animal-prototype-database-property-id",name:"Database",version:1,type:n.Property,private:!1,abstract:!1,implements:$i,static:!0,index:0,dataType:gC,description:"The database that the entity belongs to.",parent:vC},DC={type:n.GenericReference,id:"291e4d4f-01d8-40a0-90dc-5f1ac6636e9b",entityType:n.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},PC={like:!1,inferred:!1,id:"c1930577-9e79-48a6-8905-be24611015c1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:DC},AC={type:n.GenericReference,id:"e2b9e456-f2b3-4dc7-85a2-fbb68ed0c9c7",entityType:n.CustomEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},OC={hidden:!1,required:!0,type:n.Property,id:"5cb617b0-92be-4dbe-a007-49093368d94f",version:1,name:"Name",description:"The name of the animal",implements:null,static:!1,private:!1,index:0,dataType:PC,abstract:!1,parent:AC},SC={type:n.GenericReference,id:"abc565de-4c83-4936-bc48-4013bef213b8",entityType:n.Project,entityId:Y},CC={type:n.CustomEntity,id:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:1,name:"Animal",description:"A living creature that is not human",abstract:!1,static:!1,abstractMethods:[],properties:[IC,OC],methods:[],extends:[],implements:[je],x:0,y:0,parent:SC},BC={id:"default-relational-database-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-identifier-property-data-type-id",entityType:n.DataType},wC={id:"default-relational-database-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",entityType:n.Property},_C={like:!1,inferred:!1,id:"default-relational-database-entity-identifier-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:{id:"default-relational-database-entity-identifier-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:D.String,value:"main",parent:BC,autogeneration:{type:qe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:wC},ri={id:"default-relational-database-entity-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},NC={hidden:!1,required:!0,id:"default-relational-database-entity-identifier-property-id",name:"Identifier name",version:1,type:n.Property,private:!1,abstract:!1,implements:ls,static:!0,index:0,dataType:_C,description:"The name of the main database inside of the server instance where the data will be stored.",parent:ri};n.GenericReference,n.DataType;const MC={id:"default-relational-database-entity-username-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-username-property-id",entityType:n.Property},VC={id:"default-relational-database-entity-username-property-default-value-parent-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-username-property-data-type-id",entityType:n.DataType},LC={like:!1,inferred:!1,id:"default-relational-database-entity-username-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:{id:"default-relational-database-entity-username-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:D.String,value:"root",parent:VC,autogeneration:null,valueAsType:null},parent:MC},GC={hidden:!1,required:!0,id:"default-relational-database-entity-username-property-id",name:"Username",version:1,type:n.Property,private:!1,abstract:!1,implements:cs,static:!0,index:1,dataType:LC,description:"The username that will be used to connect to the database.",parent:ri};n.GenericReference,n.DataType;const $C={id:"default-relational-database-entity-password-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-password-property-id",entityType:n.Property},FC={id:"default-relational-database-entity-password-property-default-value-parent-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-password-property-data-type-id",entityType:n.DataType},UC={like:!1,inferred:!1,id:"default-relational-database-entity-password-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:{id:"default-relational-database-entity-password-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:D.String,value:"password",parent:FC,autogeneration:null,valueAsType:null},parent:$C},xC={hidden:!1,required:!0,id:"default-relational-database-entity-password-property-id",name:"Password",version:1,type:n.Property,private:!1,abstract:!1,implements:ds,static:!0,index:2,dataType:UC,description:"The password that will be used to connect to the database.",parent:ri},jC={id:"default-relational-database-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-min-size-property-data-type-id",entityType:n.DataType},kC={id:"default-relational-database-entity-min-size-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",entityType:n.Property},qC={like:!1,inferred:!1,id:"default-relational-database-entity-min-size-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Q,asType:!1,defaultValue:{id:"default-relational-database-entity-min-size-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:D.Number,value:6,parent:jC,autogeneration:null,valueAsType:null},parent:kC},JC={hidden:!1,required:!0,id:"default-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:1,type:n.Property,private:!1,abstract:!1,implements:us,static:!0,index:3,dataType:qC,description:"The minimum size of the database in GB.",parent:ri},WC={id:"default-relational-database-entity-default-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-default-property-data-type-id",entityType:n.DataType},YC={id:"default-relational-database-entity-default-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-default-property-id",entityType:n.Property},HC={like:!1,inferred:!1,id:"default-relational-database-entity-default-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Q,asType:!1,defaultValue:{id:"default-relational-database-entity-default-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:D.Boolean,value:!0,parent:WC,autogeneration:null,valueAsType:null},parent:YC},zC={hidden:!0,required:!0,id:"default-relational-database-entity-default-property-id",name:"Default",version:1,type:n.Property,private:!1,abstract:!1,implements:Fl,static:!0,index:4,dataType:HC,description:"Whether this database is automatically picked by other entities as the default database.",parent:ri},ZC={id:"default-relational-database-entity-autoscaling-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-data-type-id",entityType:n.DataType},KC={id:"default-relational-database-entity-autoscaling-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",entityType:n.Property},XC={like:!1,inferred:!1,id:"default-relational-database-entity-autoscaling-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Q,asType:!1,defaultValue:{id:"default-relational-database-entity-autoscaling-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:D.Boolean,value:!0,parent:ZC,autogeneration:null,valueAsType:null},parent:KC},QC={hidden:!1,required:!0,id:"default-relational-database-entity-autoscaling-property-id",name:"Auto-scaling",version:1,type:n.Property,private:!1,abstract:!1,implements:Ul,static:!0,index:5,dataType:XC,description:"If true, this database will automatically scale up or down in memory size, based on the usage.s",parent:ri},eB={id:"default-relational-database-entity-parent-ref-id",type:n.GenericReference,entityId:Y,entityType:n.Project},uc={id:"default-relational-database-entity-id",type:n.CustomEntity,version:1,name:"Relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[zC,QC,NC,GC,xC,JC],methods:[],abstractMethods:[],extends:[],implements:[Nn],x:0,y:0,parent:eB},tB={id:"user-prototype-database-property-data-type-ref-id",type:n.GenericReference,entityId:"user-prototype-database-property-data-type-id",entityType:n.DataType},nB={id:"user-prototype-database-property-ref-id",type:n.GenericReference,entityId:"user-prototype-database-property-id",entityType:n.Property},rB={like:!1,inferred:!1,id:"user-prototype-database-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:Nn,asType:!1,defaultValue:{id:"user-prototype-database-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,value:null,name:D.EntityTemplate,valueAsType:uc,autogeneration:null,parent:tB},parent:nB},iB={id:"user-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:n.CustomEntity},aB={hidden:!1,required:!0,id:"user-prototype-database-property-id",name:"Database",version:1,type:n.Property,private:!1,abstract:!1,implements:$i,static:!0,index:0,dataType:rB,description:"The database that the entity belongs to.",parent:iB},sB={type:n.GenericReference,id:"user-prototype-parent-ref-id",entityType:n.Project,entityId:Y},pc={type:n.CustomEntity,id:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:1,name:"User",description:"A user of the application",implements:[je],abstract:!1,static:!1,abstractMethods:[],extends:[],properties:[aB],methods:[],x:0,y:0,parent:sB},oB={type:n.GenericReference,id:"person-date-of-birth-property-data-type-parent-ref-id",entityType:n.Property,entityId:"person-date-of-birth-property-id"},lB={like:!1,inferred:!1,id:"person-date-of-birth-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:un,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:oB},cB={type:n.GenericReference,id:"person-date-of-birth-property-parent-ref-id",entityType:n.CustomEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},dB={hidden:!1,required:!0,type:n.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,dataType:lB,abstract:!1,parent:cB},uB={type:n.GenericReference,id:"a2867827-2f8e-4c25-b18b-d91857d7f24e",entityType:n.Property,entityId:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7"},pB={like:!1,inferred:!1,id:"1d49f41b-17b9-4f48-87aa-3ce43498e5a9",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:uB},yB={type:n.GenericReference,id:"01cbe760-40a9-4f49-8e3d-194d2f57cb1e",entityType:n.CustomEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},hB={hidden:!1,required:!0,type:n.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,dataType:pB,abstract:!1,parent:yB},fB={type:n.GenericReference,id:"3542b22a-3a2f-41c6-876e-24c885572498",entityType:n.Project,entityId:Y},pt={type:n.CustomEntity,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:[hB,dB],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[pc],x:0,y:0,parent:fB},mB={type:n.GenericReference,id:"b59c80b7-b2e9-41e9-abcd-7c5652835efc",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},TB={type:n.GenericReference,id:"1190b5a2-f25e-46db-884d-8a3dd1a44d94",entityType:n.ReturnStatement,entityId:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e"},EB={type:n.GenericReference,id:"36c63126-7814-496f-a6cc-48662c2aabae",entityType:n.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},bB={type:n.GenericReference,id:"c567e55d-ec12-4e4e-958e-f07522892b4b",entityType:n.ReturnDeclaration,entityId:"9e070523-7e07-4100-8637-960a187f5f14"},RB={like:!1,inferred:!1,id:"3973c5a1-f0d8-49a0-a9a9-a0009bf3f0d8",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:pt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:bB},yc={isError:!1,id:"9e070523-7e07-4100-8637-960a187f5f14",type:n.ReturnDeclaration,version:1,name:"Output Account Owner",description:null,dataType:RB,implements:null,readsValue:EB,required:!0,index:0,parent:TB},gB={type:n.GenericReference,id:"567d923c-20da-4c1e-956d-962ea30c6d0b",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},vB={type:n.GenericReference,id:"da85e620-59f3-42ab-88c8-b38d33c2c833",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},AR={type:n.ReturnStatement,id:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e",version:1,outputs:[yc],calledByError:[],calledByEntry:[gB],calledBySuccess:[],throws:null,x:0,y:0,parent:vB},IB={type:n.GenericReference,id:"1c806bb7-4c25-4bad-963b-93dfbb7c8304",entityType:n.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},DB={like:!1,inferred:!1,id:"d90fcc18-642b-433c-8fcb-4094b9031cd5",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:pt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:IB},OR={id:"500dee3a-3435-4453-9699-0d053f646523",type:n.ArgumentDeclaration,version:1,name:"New Account Owner",description:null,dataType:DB,implements:null,required:!0,writesValues:[yc],index:0,parent:mB},PB={type:n.GenericReference,id:"83dceb60-f3c4-4085-824c-85f2003bfd27",entityType:n.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},SR={type:n.FunctionDeclaration,id:"36f29f96-c001-4b9a-b49c-83eff406a060",version:1,name:"Change owner of bank account",description:null,implements:null,inputs:[OR],calls:[AR],returnStatements:[AR],index:0,collapsed:!1,private:!1,x:0,y:0,parent:PB},AB={type:n.GenericReference,id:"adbaf302-ffa9-49b6-a3c6-83f9a75068e3",entityType:n.VariableDeclaration,entityId:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b"},OB={like:!1,inferred:!1,id:"79ee04aa-1ba4-4ae9-a406-ed45e5b03f7f",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:pt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:AB},SB={type:n.GenericReference,id:"55e212d1-f0ec-4bb6-acbe-60f741367daf",entityType:n.OutputMap,entityId:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4"},CB={type:n.GenericReference,id:"944e1171-3d9b-4559-9386-1d4974b15962",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},BB={id:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b",type:n.VariableDeclaration,version:1,name:"Output Account Owner",description:null,dataType:OB,readsValue:SB,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:CB},wB={type:n.GenericReference,id:"b89ebc83-52cf-4447-a5ae-62241f713079",entityType:n.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},_B={id:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4",type:n.OutputMap,version:1,declaration:yc,writesValues:[BB],index:0,parent:wB},NB={type:n.GenericReference,id:"c1b9e125-1aad-48b7-9687-95c57a6bc10d",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},MB={type:n.GenericReference,id:"d2deaa02-e164-4425-905c-6dee47eb4eac",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},VB={type:n.GenericReference,id:"1109a655-ac62-4110-a933-42a72106f4f0",entityType:n.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},LB={like:!1,inferred:!1,id:"7d9a1307-512e-42ec-9797-2f7229796b97",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:pt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:VB},GB={type:n.GenericReference,id:"bb61ebf7-57b3-4d14-905d-82ec907205b5",entityType:n.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},$B={type:n.GenericReference,id:"6b8c7bf2-9fc8-4ea4-9ec0-f41679d513b1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},FB={type:n.GenericReference,id:"6163d1a1-7a94-49b1-95bb-aecd8d6d335c",entityType:n.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},UB={type:n.GenericReference,id:"1f900f62-4bd2-4246-94aa-b8f5aad384fd",entityType:n.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},CR={id:"be8538be-e6f9-4b94-9314-a546003ebaa0",type:n.InputMap,version:1,declaration:OR,name:null,description:null,readsValue:UB,defaultValue:null,index:0,parent:FB},xB={type:n.VariableDeclaration,id:"8bea6986-8da2-487b-905d-2fb962db6728",version:1,name:"Changed Account Owner",description:null,dataType:LB,readsValue:GB,writesValues:[CR],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:$B},jB={type:n.FunctionCall,id:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e",version:1,declaration:SR,inputs:[CR],outputs:[_B],process:null,successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[NB],calledBySuccess:[],parent:MB,error:null,x:0,y:0},kB={type:n.GenericReference,id:"2d47aba1-a918-46a7-8db7-78809928654a",entityType:n.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},qB={like:!1,inferred:!1,id:"5583766c-e9a5-484c-8f43-f4b0a6a1876c",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:pt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:kB},JB={type:n.GenericReference,id:"3e2a81e4-55b2-49f5-94eb-39135e95c3d7",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},WB={id:"38f6b236-98ac-47b0-ab9c-d2f9610137b9",type:n.ArgumentDeclaration,version:1,description:null,name:"New Company Owner",dataType:qB,implements:null,required:!0,index:0,writesValues:[xB],parent:JB},YB={type:n.GenericReference,id:"30291b01-1b94-4d03-b434-dec122c2bc7d",entityType:n.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},HB={type:n.FunctionDeclaration,id:"15ee556d-681f-47de-a31f-16d4ba73cc4e",version:1,description:null,name:"Change Account Owner",inputs:[WB],collapsed:!0,returnStatements:[],calls:[jB],private:!1,index:0,implements:null,x:0,y:0,parent:YB},zB={type:n.GenericReference,id:"72c7ac0a-886e-4e10-b7ed-2f5a819a0233",entityType:n.Property,entityId:"b8f4656a-2b77-43ab-af51-7c32ddede044"},ZB={like:!1,inferred:!1,id:"c09dd282-73f6-4077-a467-b66db20b9fc6",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:zB},KB={type:n.GenericReference,id:"8a950024-512c-4580-81db-a705410aeb99",entityType:n.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},XB={hidden:!1,required:!0,type:n.Property,id:"b8f4656a-2b77-43ab-af51-7c32ddede044",version:1,name:"Account number",description:null,private:!0,implements:null,static:!1,index:0,dataType:ZB,abstract:!1,parent:KB},QB={type:n.GenericReference,id:"b6704b6c-c3bd-49d0-8ebc-82d03e726cbb",entityType:n.Property,entityId:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea"},ew={like:!1,inferred:!1,id:"c03e0b0a-88ab-401a-8833-4806738bdc37",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:pt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:QB},tw={type:n.GenericReference,id:"1ef999a7-e9ed-406a-866e-e58277fc985b",entityType:n.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},nw={hidden:!1,required:!0,type:n.Property,id:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea",version:1,description:null,name:"Account Owner",index:1,dataType:ew,implements:null,static:!1,private:!0,abstract:!1,parent:tw},rw={type:n.GenericReference,id:"d41d7f41-98b8-4f67-be92-c349fdda5156",entityType:n.Project,entityId:Y},ii={type:n.CustomEntity,id:"506946aa-30da-48e6-918f-ffd9eac58813",version:1,name:"Bank Account",description:null,abstract:!1,static:!1,abstractMethods:[],properties:[XB,nw],methods:[SR,HB],extends:[],implements:[je],x:0,y:0,parent:rw},ia="bitcoin-api-response-id",BR="time-property-id",wR="disclaimer-property-id",_R="chart-name-property-id",NR="bpi-property-id",Fs="bpi-entity-id",MR="usd-property-id",VR="gbp-property-id",LR="eur-property-id",ai="currency-entity-id",GR="currency-code-property-id",$R="currency-symbol-property-id",FR="currency-rate-property-id",UR="currency-description-property-id",xR="currency-rate-number-property-id",iw={type:n.GenericReference,id:"code-property-data-type-parent-ref-id",entityType:n.Property,entityId:GR},aw={like:!1,inferred:!1,id:"code-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:_n,isList:!1,asType:!1,isNullable:!1,defaultValue:null,options:["USD","GBP","EUR"],constant:!1,parent:iw},sw={type:n.GenericReference,id:"code-property-parent-ref-id",entityType:n.CustomEntity,entityId:ai},ow={hidden:!1,required:!0,type:n.Property,id:GR,version:1,name:"code",description:null,dataType:aw,index:0,implements:null,static:!1,private:!1,abstract:!1,parent:sw},lw={type:n.GenericReference,id:"symbol-property-data-type-parent-ref-id",entityType:n.Property,entityId:$R},cw={like:!1,inferred:!1,id:"symbol-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:_n,isList:!1,asType:!1,isNullable:!1,defaultValue:null,options:["&#36;","&pound;","&euro;"],constant:!1,parent:lw},dw={type:n.GenericReference,id:"symbol-property-parent-ref-id",entityType:n.CustomEntity,entityId:ai},uw={hidden:!1,required:!0,type:n.Property,id:$R,version:1,name:"symbol",description:null,index:0,dataType:cw,implements:null,static:!1,private:!1,abstract:!1,parent:dw},pw={type:n.GenericReference,id:"rate-property-data-type-parent-ref-id",entityType:n.Property,entityId:FR},yw={like:!1,inferred:!1,id:"rate-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:pw},hw={type:n.GenericReference,id:"rate-property-parent-ref-id",entityType:n.CustomEntity,entityId:ai},fw={hidden:!1,required:!0,type:n.Property,id:FR,version:1,name:"rate",description:null,index:0,dataType:yw,implements:null,static:!1,private:!1,abstract:!1,parent:hw},mw={type:n.GenericReference,id:"description-property-data-type-parent-ref-id",entityType:n.Property,entityId:UR},Tw={like:!1,inferred:!1,id:"description-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:mw},Ew={type:n.GenericReference,id:"description-property-parent-ref-id",entityType:n.CustomEntity,entityId:ai},bw={hidden:!1,required:!0,type:n.Property,id:UR,version:1,name:"description",description:null,dataType:Tw,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:Ew},Rw={type:n.GenericReference,id:"rate-number-property-data-type-parent-ref-id",entityType:n.Property,entityId:xR},gw={like:!1,inferred:!1,id:"rate-number-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Rw},vw={type:n.GenericReference,id:"rate-number-property-parent-ref-id",entityType:n.CustomEntity,entityId:ai},Iw={hidden:!1,required:!0,type:n.Property,id:xR,version:1,name:"rate_float",description:null,dataType:gw,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:vw},Dw={type:n.GenericReference,id:"currency-prototype-parent-ref-id",entityType:n.Project,entityId:Y},Us={type:n.CustomEntity,id:ai,version:1,name:"Currency",description:"This entity describes a currency in the Bitcoin Price Index.",properties:[ow,uw,fw,bw,Iw],static:!1,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:Dw},Pw={type:n.GenericReference,id:"usd-property-data-type-parent-ref-id",entityType:n.Property,entityId:MR},Aw={like:!1,inferred:!1,id:"usd-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Us,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Pw},Ow={type:n.GenericReference,id:"usd-property-parent-ref-id",entityType:n.CustomEntity,entityId:Fs},Sw={hidden:!1,required:!0,id:MR,type:n.Property,version:1,name:"USD",description:null,index:0,dataType:Aw,implements:null,static:!1,private:!1,abstract:!1,parent:Ow},Cw={type:n.GenericReference,id:"gbp-property-data-type-parent-ref-id",entityType:n.Property,entityId:VR},Bw={like:!1,inferred:!1,id:"gbp-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Us,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Cw},ww={type:n.GenericReference,id:"gbp-property-parent-ref-id",entityType:n.CustomEntity,entityId:Fs},_w={hidden:!1,required:!0,id:VR,type:n.Property,version:1,name:"GBP",description:null,index:0,dataType:Bw,implements:null,static:!1,private:!1,abstract:!1,parent:ww},Nw={type:n.GenericReference,id:"eur-property-data-type-parent-ref-id",entityType:n.Property,entityId:LR},Mw={like:!1,inferred:!1,id:"eur-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Us,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Nw},Vw={type:n.GenericReference,id:"eur-property-parent-ref-id",entityType:n.CustomEntity,entityId:Fs},Lw={hidden:!1,required:!0,id:LR,type:n.Property,version:1,name:"EUR",description:null,implements:null,static:!1,index:0,dataType:Mw,private:!1,abstract:!1,parent:Vw},Gw={type:n.GenericReference,id:"bpi-prototype-parent-ref-id",entityType:n.Project,entityId:Y},jR={type:n.CustomEntity,id:Fs,version:1,name:"BPI",description:"The Bitcoin Price Index",properties:[Sw,_w,Lw],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:Gw},$w={type:n.GenericReference,id:"time-property-data-type-parent-ref-id",entityType:n.Property,entityId:BR},Fw={like:!1,inferred:!1,id:"time-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Qo,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:$w},Uw={type:n.GenericReference,id:"time-property-parent-ref-id",entityType:n.CustomEntity,entityId:ia},xw={hidden:!1,required:!0,type:n.Property,id:BR,version:1,name:"time",description:null,index:0,dataType:Fw,implements:null,static:!1,private:!1,abstract:!1,parent:Uw},jw={type:n.GenericReference,id:"disclaimer-property-data-type-parent-ref-id",entityType:n.Property,entityId:wR},kw={like:!1,inferred:!1,id:"disclaimer-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:jw},qw={type:n.GenericReference,id:"disclaimer-property-parent-ref-id",entityType:n.CustomEntity,entityId:ia},Jw={hidden:!1,required:!0,type:n.Property,id:wR,version:1,name:"disclaimer",description:null,index:0,dataType:kw,implements:null,static:!1,private:!1,abstract:!1,parent:qw},Ww={type:n.GenericReference,id:"chart-name-property-data-type-parent-ref-id",entityType:n.Property,entityId:_R},Yw={like:!1,inferred:!1,id:"chart-name-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Ww},Hw={type:n.GenericReference,id:"chart-name-property-parent-ref-id",entityType:n.CustomEntity,entityId:ia},zw={hidden:!1,required:!0,type:n.Property,id:_R,version:1,name:"chartName",description:null,index:0,dataType:Yw,implements:null,static:!1,private:!1,abstract:!1,parent:Hw},Zw={type:n.GenericReference,id:"bpi-property-data-type-parent-ref-id",entityType:n.Property,entityId:NR},Kw={like:!1,inferred:!1,id:"bpi-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:jR,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Zw},Xw={type:n.GenericReference,id:"bpi-property-parent-ref-id",entityType:n.CustomEntity,entityId:ia},Qw={hidden:!1,required:!0,type:n.Property,id:NR,version:1,name:"bpi",description:null,implements:null,index:0,dataType:Kw,static:!1,private:!1,abstract:!1,parent:Xw},e_={type:n.GenericReference,id:"bitcoin-api-response-parent-ref-id",entityType:n.Project,entityId:Y},kR={type:n.CustomEntity,id:ia,version:1,name:"Bitcoin API Response type",description:"The type of the data structure response from the Bitcoin API call",properties:[xw,Jw,zw,Qw],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:e_},t_={type:n.GenericReference,id:"eefa0147-f873-484b-b4f3-9e6493aab183",entityType:n.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},n_={like:!1,inferred:!1,id:"b9f35112-dcb2-4b7c-8fb9-f196b3fa37f9",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:pt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:t_},r_={type:n.GenericReference,id:"128770d6-5e3a-4aff-bca0-ad1f32ebefa8",entityType:n.ReturnStatement,entityId:"e4e05975-c277-471a-b869-f0aed316045c"},i_={type:n.GenericReference,id:"0be84bf9-6421-42b9-980f-6a03f30cb809",entityType:n.ReturnDeclaration,entityId:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},a_={like:!1,inferred:!1,id:"43daa02a-237b-4b7c-a6e9-2b8c167f6e22",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:pt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:i_},s_={type:n.GenericReference,id:"ad380383-4a47-43da-968e-75a2d603b230",entityType:n.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},qR={isError:!1,id:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.ReturnDeclaration,version:1,name:"New Company Owner",description:"The new owner of the company",implements:null,dataType:a_,readsValue:s_,required:!0,index:0,parent:r_},o_={type:n.GenericReference,id:"4f24dc27-59a1-49bf-abcc-7d72b00926e4",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},l_={id:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",type:n.ArgumentDeclaration,version:1,name:"New Company Owner",description:null,implements:null,dataType:n_,writesValues:[qR],required:!0,index:0,parent:o_},c_={type:n.GenericReference,id:"5c9a02f0-d2cf-4efc-828e-467f33a74dd3",entityType:n.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},d_={type:n.GenericReference,id:"2ff8f3da-e0c5-4f0f-b688-2c051c588786",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},u_={type:n.GenericReference,id:"195ae28c-159b-42de-80b1-2ebb8be3619f",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},JR={type:n.ReturnStatement,id:"e4e05975-c277-471a-b869-f0aed316045c",version:1,outputs:[qR],calledByError:[],calledByEntry:[d_],calledBySuccess:[],throws:null,x:0,y:0,parent:u_},p_={type:n.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:[l_],calls:[JR],index:0,collapsed:!1,implements:null,returnStatements:[JR],private:!1,x:0,y:0,parent:c_},y_={type:n.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},h_={type:n.GenericReference,id:"29c4e3e0-1b66-4075-b559-45b27c5cf356",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},f_={type:n.GenericReference,id:"b1289358-b185-455d-8f58-7791b15cd52a",entityType:n.ReturnStatement,entityId:"9690cd1d-ea35-4e83-823d-0c7310265fee"},m_={type:n.GenericReference,id:"d847bb49-8789-4550-bb2d-e2d551993b28",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},T_={type:n.GenericReference,id:"06535500-c37c-4915-8398-1d4e184fa5e7",entityType:n.ReturnDeclaration,entityId:"e7a35277-a0c4-46d5-aca2-bddd0c26e931"},E_={like:!1,inferred:!1,id:"d358dd91-35f7-4095-b728-3fb3c71dbc05",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:wn,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:T_},hc={isError:!1,id:"e7a35277-a0c4-46d5-aca2-bddd0c26e931",type:n.ReturnDeclaration,version:1,name:"Is name registered",description:"Whether the company name is already registered",dataType:E_,implements:null,readsValue:m_,required:!0,index:0,parent:f_},b_={type:n.GenericReference,id:"gov-company-registry-return-statement-called-by-success-ref-id",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},fc={type:n.ReturnStatement,id:"9690cd1d-ea35-4e83-823d-0c7310265fee",version:1,outputs:[hc],calledByError:[],calledByEntry:[],calledBySuccess:[y_,b_],throws:null,x:0,y:0,parent:h_},R_={type:n.GenericReference,id:"b3126414-4c9b-495f-901e-59f5073c8d67",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},g_={type:n.GenericReference,id:"35115c48-618b-411b-a290-d746d22fdd10",entityType:n.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},WR={id:"a0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:n.InputMap,version:1,declaration:Tl,name:null,description:null,readsValue:g_,defaultValue:null,parent:R_,index:2},v_={type:n.GenericReference,id:"14f46eae-04a5-47d1-9c7f-28fb09b84d1d",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},I_={like:!1,inferred:!1,id:"990bd5d1-07ea-4253-acc1-d03bedd22a38",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:wn,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:v_},D_={type:n.GenericReference,id:"e4c3542a-8fb0-4b72-8d6e-3fdff812dd67",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},P_={type:n.GenericReference,id:"825f9f60-22a8-4cc6-9055-d7333f8e92f4",entityType:n.OutputMap,entityId:"8f30d787-9459-4d8d-98a2-b46fbc2006d5"},A_={type:n.GenericReference,id:"is-company-name-registered-var-called-by-ref",entityType:n.Operation,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},YR={type:n.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",dataType:I_,readsValue:P_,writesValues:[hc],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[A_],successCalls:[fc],errorCalls:[],internalCalls:[],x:0,y:0,parent:D_},O_={type:n.GenericReference,id:"1aba021e-48ef-44ac-93d0-eaecac5895da",entityType:n.InputMap,entityId:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a"},S_={type:n.GenericReference,id:"dffae7e0-0a5c-4c14-8ed2-8d680b4c4c86",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},C_={type:n.InputMap,id:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a",version:1,declaration:za,name:null,description:null,readsValue:null,defaultValue:{id:"gov-http-request-url-argument-default-value-id",type:n.PrimitiveValue,version:1,value:"https://api.publicapis.org/entries",name:D.String,valueAsType:null,parent:O_,autogeneration:null},index:1,parent:S_},B_={type:n.GenericReference,id:"64ae61f5-ace7-401b-926d-25f852daa60e",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},w_={id:"8f30d787-9459-4d8d-98a2-b46fbc2006d5",type:n.OutputMap,version:1,declaration:es,index:2,writesValues:[YR],parent:B_},__={type:n.GenericReference,id:"62a1a086-caea-4270-9c9f-a1695503e745",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},N_={id:"48cf7654-8f3e-4fcd-abc6-740876c310a0",type:n.InputMap,version:1,declaration:Ha,name:null,description:null,readsValue:null,index:0,defaultValue:null,parent:__},M_={type:n.GenericReference,id:"b0c9c79f-f525-428d-99e7-087d3237ad62",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},V_={id:"2c1dc406-4b71-4023-87b2-abede3a111d2",type:n.InputMap,version:1,name:null,description:null,declaration:Za,index:3,readsValue:null,defaultValue:null,parent:M_},L_={type:n.GenericReference,id:"9887d6c9-d75b-4c97-b722-e2e60945ea20",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},G_={id:"3fef94b2-0278-43ae-b0c5-bc7083f0a111",type:n.InputMap,version:1,declaration:Ka,name:null,description:null,readsValue:null,index:4,defaultValue:null,parent:L_},$_={type:n.GenericReference,id:"561275b6-5056-45d8-bf7d-8abaa4645593",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},F_={id:"3efe20a7-4d63-411e-89ef-63e277f48d66",type:n.OutputMap,version:1,declaration:Qa,index:1,writesValues:[],parent:$_},U_={type:n.GenericReference,id:"3170ccc2-13de-4bfc-802a-a643be41cd42",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},x_={id:"40d34323-d7e6-440a-8016-67c05a3b66dd",type:n.OutputMap,version:1,declaration:Xa,index:0,writesValues:[],parent:U_},j_={type:n.GenericReference,id:"7432fa82-f574-4c54-a8fa-4cc4376da3d5",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},k_={type:n.GenericReference,id:"8f518502-9eea-462c-8753-8bc3bf3e29a9",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},q_={type:n.GenericReference,id:"123b8f18-79d9-4166-a5f6-78ec4b461680",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},J_={type:n.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",entityType:n.FunctionCall,entityId:"abb5d456-ee85-4800-bdd9-d409415f60d7"},W_={type:n.GenericReference,id:"a375eedf-4811-41aa-a998-4897c69c46b9",entityType:n.ReturnDeclaration,entityId:"024a9b77-c1cd-4b67-b3ba-1935046b590d"},Y_={like:!1,inferred:!1,id:"767cc5ed-20ec-4fd1-89b1-c8d19daa87d1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ze,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:W_},H_={type:n.GenericReference,id:"e64b0c23-129d-4d74-8ab4-eec60e1e5b9b",entityType:n.ReturnStatement,entityId:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3"},HR={isError:!0,id:"024a9b77-c1cd-4b67-b3ba-1935046b590d",type:n.ReturnDeclaration,version:1,name:"Error",description:"The error that occurred during the HTTP request to the government company registry",dataType:Y_,implements:null,required:!0,readsValue:null,index:0,parent:H_},z_={type:n.ReturnStatement,id:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3",version:1,outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[J_],throws:HR,x:0,y:0,parent:q_},Z_={type:n.GenericReference,id:"323814fb-9723-49ef-bbba-f882384f18e4",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},K_={id:"2f63f7ba-0ff0-458a-92bc-65d1dd4df8c3",type:n.OutputMap,declaration:El,version:1,writesValues:[HR],index:0,parentRelationType:Jr.Error,parent:Z_},X_={type:n.Operation,id:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7",version:1,declaration:_i,inputs:[N_,C_,WR,V_,G_],outputs:[x_,F_,w_],process:null,calledByError:[],calledByEntry:[j_],calledBySuccess:[],successCalls:[fc,YR],errorCalls:[z_],error:K_,x:0,y:0,parent:k_},Q_={type:n.GenericReference,id:"597b8aa2-f6f2-4f7d-bbb9-b703d02de96a",entityType:n.InputMap,entityId:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a"},eN={type:n.GenericReference,id:"546d99b3-28c4-4186-93a0-ac53c1565e07",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},tN={id:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:n.InputMap,version:1,declaration:Ja,name:null,description:null,readsValue:null,defaultValue:{id:"base-query-string-map-default-value-id",type:n.PrimitiveValue,version:1,value:"?name=",name:D.String,parent:Q_,valueAsType:null,autogeneration:null},index:0,parent:eN},nN={type:n.GenericReference,id:"6a56fb22-82e1-47c9-bf85-41c4e5986c74",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},rN={type:n.GenericReference,id:"191c6a6d-9bcb-441e-bf98-de0da96f5f3a",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},iN={type:n.GenericReference,id:"d8fcbb76-dae2-40cf-847a-02364721b387",entityType:n.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},aN={like:!1,inferred:!1,id:"6a70c42b-024a-47c6-8a9d-af52be9c9b9a",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:iN},sN={type:n.GenericReference,id:"2282e2c0-ed9e-4c7b-86fc-1a364fa0fdb8",entityType:n.OutputMap,entityId:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5"},oN={type:n.GenericReference,id:"assembled-query-string-called-by-ref",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},zR={type:n.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",dataType:aN,readsValue:sN,writesValues:[WR],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[oN],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:rN},lN={id:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5",type:n.OutputMap,version:1,writesValues:[zR],declaration:Bi,index:0,parent:nN},cN={type:n.GenericReference,id:"a1b48e7c-0301-4747-b4dd-b5af79956f7f",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},dN={type:n.GenericReference,id:"487c9235-be95-4c96-b9b5-2714b374a277",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},uN={type:n.GenericReference,id:"f6471f4f-b269-46fa-80ec-885e87a449c2",entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69",entityType:n.ArgumentDeclaration},pN={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},ZR={id:"08f36e2b-bad2-425c-8129-93560bec8488",version:1,type:n.InputMap,declaration:Wa,name:null,description:null,readsValue:uN,defaultValue:null,index:1,parent:pN},yN={type:n.Operation,id:"8f2094c0-e27e-465e-9280-112da0de9019",declaration:wi,version:1,inputs:[ZR,tN],outputs:[lN],process:null,calledByError:[],calledByEntry:[cN],calledBySuccess:[],successCalls:[zR],errorCalls:[],error:null,x:0,y:0,parent:dN},hN={type:n.GenericReference,id:"c2e0e9b4-aa46-4974-bf8a-886b737b12fb",entityType:n.ArgumentDeclaration,entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69"},fN={like:!1,inferred:!1,id:"a4279518-3bf3-44b7-a2ac-65142ca37f1c",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:hN},mN={type:n.GenericReference,id:"dc273f24-164b-4943-82f9-589b237141e2",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},KR={id:"a4106e8e-ec4f-4633-a636-09ae73135f69",type:n.ArgumentDeclaration,version:1,name:"Company Name to check",description:"The name of the company to check in the government registry",dataType:fN,implements:null,required:!1,writesValues:[ZR],index:0,parent:mN},TN={type:n.GenericReference,id:"2178a10c-1cc0-4dad-97c3-0941be6c9738",entityType:n.Project,entityId:Y},XR={type:n.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:[KR],calls:[yN,X_],returnStatements:[fc],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:TN},EN={type:n.GenericReference,id:"4d66c53c-f0f7-496a-9955-1e6c8533c5e0",entityType:n.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},bN={type:n.GenericReference,id:"6fa0c8e0-d104-4b4d-a035-d4f6e0c49f09",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},RN={type:n.GenericReference,id:"146408d5-5336-4877-941a-777dd5871926",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},gN={type:n.GenericReference,id:"34ae8f8c-548d-4654-984a-6f36affdaf49",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},QR={id:"69b1215d-9ebf-4274-b9cb-d4a5888f5122",version:1,type:n.InputMap,declaration:KR,name:null,description:null,readsValue:RN,defaultValue:null,index:0,parent:gN},vN={type:n.GenericReference,id:"07540a94-dda1-40b3-8452-f209bdc87b88",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},IN={type:n.GenericReference,id:"eaddf12a-a995-429e-90a0-13bf06efeb28",entityType:n.VariableDeclaration,entityId:"faaf3bf6-917d-40d7-aee6-5164f6646c4b"},DN={like:!1,inferred:!1,id:"7fdaf943-3ffb-48e0-b766-b86cc24090cf",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:wn,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:IN},PN={type:n.GenericReference,id:"030fb5c5-af4d-4c85-8cf0-e99edd50d2bd",entityType:n.OutputMap,entityId:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},AN={type:n.GenericReference,id:"a8b618e9-c68c-48c1-8bd6-ef47c87d699e",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},ON={type:n.GenericReference,id:"is-company-name-valid-var-called-by-ref",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},eg={type:n.VariableDeclaration,id:"faaf3bf6-917d-40d7-aee6-5164f6646c4b",version:1,name:"Is name valid",description:"Whether the company name is valid",dataType:DN,readsValue:PN,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[ON],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:AN},SN={id:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.OutputMap,version:1,declaration:hc,writesValues:[eg],index:0,parent:vN},CN={type:n.FunctionCall,id:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",version:1,declaration:XR,inputs:[QR],outputs:[SN],calledByError:[],calledByEntry:[],process:null,calledBySuccess:[EN],successCalls:[eg],errorCalls:[],error:null,x:0,y:0,parent:bN},BN={type:n.GenericReference,id:"9d0b87b4-bfed-4e02-9e84-6831c21feae2",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},wN={type:n.GenericReference,id:"74345f4f-e80d-48be-adff-d12fcea25bec",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},_N={type:n.GenericReference,id:"b39279ea-969a-4efb-a9ec-353bfd13db65",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},NN={type:n.GenericReference,id:"549db613-f225-4c5b-9634-7d096717f0ff",entityType:n.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},tg={id:"358e242c-7448-442e-ab8b-fd7fa119ea71",version:1,type:n.InputMap,declaration:lr.inputs[0],name:null,description:null,readsValue:_N,defaultValue:null,index:0,parent:NN},MN={type:n.Condition,id:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b",version:1,declaration:lr,inputs:[tg],calledByError:[],calledByEntry:[BN],calledBySuccess:[],successCalls:[CN],errorCalls:[],x:0,y:0,parent:wN},VN={type:n.GenericReference,id:"43ba1e25-f805-488f-8ae8-c58bb6215b2f",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},LN={type:n.GenericReference,id:"eb091bed-507f-4a1e-93b5-7cd2fccfe002",entityType:n.VariableDeclaration,entityId:"9c928995-0dd5-4f97-9962-56b343bc8a45"},GN={like:!1,inferred:!1,id:"d64152ea-831f-4426-9506-a39bfa170513",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ii,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:LN},$N={type:n.GenericReference,id:"7e79c29f-f7bd-441a-a77e-c627604dae94",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},FN={type:n.GenericReference,id:"8995ce5f-d5cf-4341-a8b1-5c046cc78b89",entityType:n.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},UN={type:n.GenericReference,id:"new-company-bank-account-var-decl-1-called-by-ref",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},ng={type:n.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",dataType:GN,readsValue:FN,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[UN],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:$N},xN={type:n.GenericReference,id:"9a4887bf-d50d-43e4-bdd5-a5262f65f04b",entityType:n.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},jN={like:!1,inferred:!1,id:"ae148c06-3143-49e9-9614-c3aca3f6fa7b",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ii,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:xN},kN={id:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071",type:n.ArgumentDeclaration,version:1,name:"New bank account",description:"The new bank account of the company",dataType:jN,implements:null,required:!0,index:1,writesValues:[ng],parent:VN},qN={type:n.GenericReference,id:"caec9cf8-3133-48d4-a390-114fa71b2933",entityType:n.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},JN={type:n.GenericReference,id:"cebcbad8-ca87-4c4b-be8a-312293d49892",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},WN={type:n.GenericReference,id:"7b8ccfe5-f9cd-4776-a19b-80c689bbe3df",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},YN={like:!1,inferred:!1,id:"2a6b4703-ac8d-4d25-8abd-48a115577fec",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:WN},HN={id:"c6cf620c-1eee-4919-8578-1a0b6c088551",type:n.ArgumentDeclaration,version:1,name:"New company name",description:null,dataType:YN,implements:null,required:!0,index:0,writesValues:[tg,QR],parent:JN},zN={type:n.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:[HN,kN],calls:[MN,ng],index:1,private:!1,implements:null,x:0,y:0,parent:qN},ZN={type:n.GenericReference,id:"employee-manager-property-data-type-entity-ref-id",entityType:n.CustomEntity,entityId:"employee-entity-id"},KN={type:n.GenericReference,id:"employee-manager-property-data-type-parent-ref-id",entityType:n.Property,entityId:"employee-manager-property-id"},XN={like:!1,inferred:!1,id:"employee-manager-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ZN,isList:!1,isNullable:!0,asType:!1,defaultValue:null,constant:!1,parent:KN},QN={type:n.GenericReference,id:"employee-manager-property-parent-ref-id",entityType:n.CustomEntity,entityId:"employee-entity-id"},eM={hidden:!1,required:!0,type:n.Property,id:"employee-manager-property-id",version:1,name:"Manager",description:"The manager of the employee",index:0,implements:null,private:!1,static:!1,dataType:XN,abstract:!1,parent:QN},tM={type:n.GenericReference,id:"employee-start-date-property-data-type-parent-ref-id",entityType:n.Property,entityId:"employee-start-date-property-id"},nM={like:!1,inferred:!1,id:"employee-start-date-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:un,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:tM},rM={type:n.GenericReference,id:"employee-start-date-property-parent-ref-id",entityType:n.CustomEntity,entityId:"employee-entity-id"},iM={hidden:!1,required:!0,type:n.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,implements:null,dataType:nM,abstract:!1,parent:rM},aM={type:n.GenericReference,id:"employee-department-property-ref-id",entityType:n.Property,entityId:"employee-department-property-id"},sM={like:!1,inferred:!1,id:"employee-department-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:_n,isList:!1,isNullable:!1,asType:!1,options:["Human Resources","Finance","IT","Sales","Marketing","Customer Service","Logistics","Product"],defaultValue:null,constant:!1,parent:aM},oM={type:n.GenericReference,id:"employee-department-property-parent-ref-id",entityType:n.CustomEntity,entityId:"employee-entity-id"},lM={hidden:!1,required:!0,type:n.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,implements:null,static:!1,private:!1,dataType:sM,abstract:!1,parent:oM},cM={type:n.GenericReference,id:"employee-prototype-parent-ref-id",entityType:n.Project,entityId:Y},Vt={type:n.CustomEntity,id:"employee-entity-id",version:1,name:"Employee",description:"A entity that represents an employee in the company",properties:[lM,iM,eM],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[pt],x:0,y:0,parent:cM},dM={type:n.GenericReference,id:"dec8fbfe-9124-41fd-9f1c-5b2f07cfd6ba",entityType:n.Property,entityId:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd"},uM={like:!1,inferred:!1,id:"bc0b8979-6c43-4d47-a712-6742b89e3c00",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:dM},pM={type:n.GenericReference,id:"4f8c0a05-466e-4672-b4c4-6bd408c0be9a",entityType:n.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},yM={hidden:!1,required:!0,type:n.Property,id:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd",version:1,name:"Company Name",private:!1,static:!1,description:"The name of the company",index:0,implements:null,dataType:uM,abstract:!1,parent:pM},hM={type:n.GenericReference,id:"95173fe0-a6e6-443c-94f3-f7c5cf171fcf",entityType:n.Property,entityId:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3"},fM={like:!1,inferred:!1,id:"ddbb6f5c-0cf4-41fb-83b3-b6c47c0e338d",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ii,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:hM},mM={type:n.GenericReference,id:"6a9a0b72-a05d-4169-b3f3-5afb01e8d0df",entityType:n.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},mc={hidden:!1,required:!0,type:n.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,dataType:fM,abstract:!1,parent:mM},TM={type:n.GenericReference,id:"62892cc6-d227-4088-90d3-ae7c15ed4af4",entityType:n.Property,entityId:"19a31727-1fba-40a5-be25-18e0f149d5cb"},EM={like:!1,inferred:!1,id:"1f7629df-dc29-4c89-8369-c6d043e97a9e",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:pt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:TM},bM={type:n.GenericReference,id:"89384206-fd5a-4f0a-849c-f777473e5773",entityType:n.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},RM={hidden:!1,required:!0,type:n.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,dataType:EM,private:!0,abstract:!1,parent:bM},gM={type:n.GenericReference,id:"4d2ffb6c-5f38-436e-8339-fb9878ac2b5e",entityType:n.Property,entityId:"f8310850-a87e-405c-b182-4f1d5fa49240"},vM={like:!1,inferred:!1,id:"ad44250b-40c2-48f7-a480-381fa938f562",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Vt,isList:!0,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:gM},IM={type:n.GenericReference,id:"aa5d4eee-6fac-4e72-bf21-9c8750024541",entityType:n.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},DM={hidden:!1,required:!0,type:n.Property,id:"f8310850-a87e-405c-b182-4f1d5fa49240",version:1,name:"Employees",description:null,index:3,dataType:vM,implements:null,private:!0,static:!1,abstract:!1,parent:IM},PM={type:n.GenericReference,id:"e3c03b6b-2ea0-4d99-865d-5e6a348672d0",entityType:n.Project,entityId:Y},Lt={type:n.CustomEntity,id:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:1,name:"Company",description:null,properties:[yM,mc,RM,DM],static:!1,abstract:!1,abstractMethods:[],methods:[p_,zN],extends:[],implements:[je],x:0,y:0,parent:PM},AM={type:n.GenericReference,id:"ffcad334-138d-4b67-8fb3-5f0e6f5fefbd",entityType:n.Project,entityId:Y},Tc={type:n.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:AM};n.GenericReference,n.DataType;const OM={id:"cron-job-entity-expression-property-ref-id",type:n.GenericReference,entityId:"cron-job-entity-expression-property-id",entityType:n.Property},SM={like:!1,inferred:!1,id:"cron-job-entity-expression-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:null,parent:OM},CM={id:"cron-job-entity-ref-id",type:n.GenericReference,entityId:"cron-job-entity-id",entityType:n.CustomEntity},BM={hidden:!1,required:!0,id:"cron-job-entity-expression-property-id",type:n.Property,version:1,name:"Cron expression",description:"The cron expression that defines when the cron job should be triggered",dataType:SM,implements:null,static:!0,private:!1,abstract:!1,index:0,parent:CM},wM={id:"cron-job-entity-trigger-show-popup-func-call-called-by-ref-one-id",type:n.GenericReference,entityId:"show-popup-func-decl-id",entityType:n.FunctionDeclaration},_M={id:"cron-job-entity-trigger-show-popup-func-call-parent-ref-id",type:n.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",entityType:n.FunctionDeclaration},NM={id:"cron-job-entity-trigger-show-popup-func-call-id",version:1,type:n.FunctionCall,declaration:Tc,inputs:[],outputs:[],process:null,successCalls:[],calledByError:[],calledByEntry:[wM],calledBySuccess:[],errorCalls:[],error:null,x:0,y:0,parent:_M},MM={id:"cron-job-entity-trigger-func-decl-parent-ref-id",type:n.GenericReference,entityId:"cron-job-entity-id",entityType:n.CustomEntity},VM={id:"cron-job-entity-trigger-func-decl-id",version:1,type:n.FunctionDeclaration,name:"Scheduled trigger",description:"The function that is called when the cron job is triggered",inputs:[],private:!1,implements:jl,calls:[NM],collapsed:!1,returnStatements:[],index:0,x:0,y:0,parent:MM},LM={id:"cron-job-entity-parent-ref-id",type:n.GenericReference,entityId:Y,entityType:n.Project},GM={id:"cron-job-entity-id",version:1,type:n.CustomEntity,name:"Run at 12pm on Christmas day",description:"A cron job that runs at 12pm on Christmas day",properties:[BM],static:!0,abstract:!1,abstractMethods:[],extends:[kl],implements:[],methods:[VM],x:0,y:0,parent:LM},$M={type:n.GenericReference,id:"52dbd85c-48b1-462a-8205-2437d6fb1cb4",entityType:n.Project,entityId:Y},FM={type:n.CustomEntity,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:[os],x:0,y:0,parent:$M},rg="f558fbf8-67de-4545-9804-6ae621e0b2d4",UM={id:"getCompanyByIdEndpointPathParamsVariableDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"getCompanyByIdEndpointPathParamsVariableDataType"},xM={id:"getCompanyByIdEndpointPathParamsArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},jM={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathParamsVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:j,asType:!1,defaultValue:{id:"getCompanyByIdEndpointPathParamsVariableDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:D.JSON,value:{},parent:UM,autogeneration:null,valueAsType:null},parent:xM},kM={id:"getCompanyByIdEndpointReachedEntityEventRef",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},qM={id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"getCompanyByIdEndpointRequestHeadersVariableDataType"},JM={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},WM={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestHeadersVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Ze,asType:!1,defaultValue:{id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:D.JSON,value:{},parent:qM,autogeneration:null,valueAsType:null},parent:JM},YM={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:n.ArgumentDeclaration,writesValues:[],name:"Request headers",dataType:WM,implements:wl,required:!0,index:0,parent:kM},HM={id:"getCompanyByIdEndpointReachedEntityEventRefTwo",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},zM={id:"getCompanyByIdEndpointPathParamsArgumentDeclaration",type:n.ArgumentDeclaration,description:"A standarized text, without spaces that is added at the end of the domain and routes the request to a specific resource within the target server. For example: /api/users/123, /api/users/123/:name, /api/users/123/:name/:age.",version:1,name:"Path parameters",writesValues:[],dataType:jM,implements:_l,required:!0,index:1,parent:HM},ZM={id:"getCompanyByIdEndpointReachedEntityEventRefThree",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},KM={id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"getCompanyByIdEndpointRequestQueryParamsVariableDataType"},XM={id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},QM={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestQueryParamsVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,asType:!1,entity:j,defaultValue:{id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:D.JSON,value:{},parent:KM,autogeneration:null,valueAsType:null},parent:XM},eV={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:n.ArgumentDeclaration,writesValues:[],name:"Request query params",dataType:QM,implements:Nl,required:!0,index:2,parent:ZM},tV={id:"getCompanyByIdEndpointReachedEntityEventRefFour",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},nV={id:"getCompanyByIdEndpointRequestBodyArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestBodyArgumentDeclaration"},rV={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestBodyVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Ze,defaultValue:null,parent:nV},iV={id:"getCompanyByIdEndpointRequestBodyArgumentDeclaration",version:1,description:"The main data payload of the request.",type:n.ArgumentDeclaration,writesValues:[],name:"Request body",dataType:rV,implements:Ml,index:3,required:!0,parent:tV},aV={id:"getCompanyByIdEndpointResponseCodeReturnDeclarationRef",type:n.GenericReference,entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseCodeReturnDeclaration"},sV={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:aV},oV={id:"getCompanyByIdEndpointReturnStatementRef",type:n.GenericReference,entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},lV={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:n.ReturnDeclaration,name:"Response code",dataType:sV,implements:Vl,readsValue:null,required:!0,index:0,parent:oV},cV={id:"getCompanyByIdEndpointResponseHeadersDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"getCompanyByIdEndpointResponseHeadersDataType"},dV={id:"getCompanyByIdEndpointResponseHeadersReturnDeclarationRef",type:n.GenericReference,entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},uV={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseHeadersDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Ze,asType:!1,defaultValue:{id:"getCompanyByIdEndpointResponseHeadersDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:D.JSON,value:{},parent:cV,autogeneration:null,valueAsType:null},parent:dV},pV={id:"getCompanyByIdEndpointReturnStatementRefTwo",type:n.GenericReference,entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},yV={isError:!1,id:"getCompanyByIdEndpointResponseHeadersReturnDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:n.ReturnDeclaration,name:"Response headers",dataType:uV,implements:Ll,readsValue:null,required:!0,index:1,parent:pV},hV={id:"getCompanyByIdEndpointResponseBodyReturnDeclarationRef",type:n.GenericReference,entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseBodyReturnDeclaration"},fV={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseBodyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Ze,defaultValue:null,parent:hV},mV={id:"getCompanyByIdEndpointReturnStatementRefThree",type:n.GenericReference,entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},TV={isError:!1,id:"getCompanyByIdEndpointResponseBodyReturnDeclaration",version:1,description:"The main data payload of the response.",type:n.ReturnDeclaration,name:"Response body",implements:Gl,dataType:fV,readsValue:null,required:!0,index:2,parent:mV},EV={id:"getCompanyByIdEndpointReturnStatementCallerRef",type:n.GenericReference,entityId:"getCompanyByIdEndpointReachedEntityEvent",entityType:n.FunctionDeclaration},bV={id:"getCompanyByIdEndpointReachedEntityEventRefFive",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},RV={id:"getCompanyByIdEndpointReturnStatement",type:n.ReturnStatement,version:1,outputs:[lV,yV,TV],calledByError:[],calledByEntry:[EV],calledBySuccess:[],throws:null,x:0,y:0,parent:bV},gV={id:"endpointBuiltInBaseEntityRefFour",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:rg},vV={id:"getCompanyByIdEndpointReachedEntityEvent",name:"Endpoint reached",version:1,type:n.FunctionDeclaration,inputs:[YM,zM,eV,iV],returnStatements:[RV],description:"Fired when the endpoint is reached.",calls:[],collapsed:!1,implements:$l,index:0,private:!1,x:0,y:0,parent:gV},IV={id:"getCompanyByIdEndpointPathPropertyDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"getCompanyByIdEndpointPathPropertyDataType"},DV={id:"getCompanyByIdEndpointPathPropertyRef",type:n.GenericReference,entityType:n.Property,entityId:"getCompanyByIdEndpointPathProperty"},PV={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathPropertyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:{id:"getCompanyByIdEndpointPathPropertyDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:D.String,value:"/company/{id}",parent:IV,valueAsType:null,autogeneration:null},parent:DV},AV={id:"getCompanyByIdEndpointBaseEntityRefTwo",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},OV={hidden:!1,required:!0,id:"getCompanyByIdEndpointPathProperty",name:"Path",version:1,type:n.Property,private:!1,abstract:!1,static:!0,implements:Cl,dataType:PV,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:AV},SV={id:"getCompanyByIdEndpointMethodPropertyDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"getCompanyByIdEndpointMethodPropertyDataType"},CV={id:"getCompanyByIdEndpointMethodPropertyRef",type:n.GenericReference,entityType:n.Property,entityId:"getCompanyByIdEndpointMethodProperty"},BV={like:!1,inferred:!1,id:"getCompanyByIdEndpointMethodPropertyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:_n,isList:!0,isNullable:!1,constant:!0,asType:!1,defaultValue:{id:"getCompanyByIdEndpointMethodPropertyDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,value:"GET",name:D.Enum,parent:SV,valueAsType:null,autogeneration:null},options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:CV},wV={id:"getCompanyByIdEndpointBaseEntityRefThree",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},_V={hidden:!1,required:!0,id:"getCompanyByIdEndpointMethodProperty",name:"Method",version:1,type:n.Property,private:!1,abstract:!1,static:!0,implements:Bl,index:0,dataType:BV,description:null,parent:wV},NV={type:n.GenericReference,id:"6a905153-8aa8-4424-bd7b-6415731a2725",entityType:n.Project,entityId:Y},MV={type:n.CustomEntity,id:rg,version:1,name:"Get given company data by id",description:null,properties:[OV,_V],methods:[vV],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[os],x:0,y:0,parent:NV},VV={id:"product-prototype-database-property-ref-id",type:n.GenericReference,entityId:"product-prototype-database-property-id",entityType:n.Property},LV={id:"product-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"product-prototype-database-property-data-type-default-value-id",entityType:n.DataType},GV={like:!1,inferred:!1,id:"product-prototype-database-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:Nn,asType:!1,defaultValue:{id:"product-prototype-database-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,value:null,name:D.EntityTemplate,valueAsType:uc,autogeneration:null,parent:LV},parent:VV},$V={id:"product-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:n.CustomEntity},FV={hidden:!1,required:!0,id:"product-prototype-database-property-id",name:"Database",version:1,type:n.Property,private:!1,abstract:!1,implements:$i,static:!0,index:0,dataType:GV,description:"The database that the entity belongs to.",parent:$V},UV={type:n.GenericReference,id:"13a4045e-dcb0-4159-8d33-10a646078b5a",entityType:n.Property,entityId:"d519c26a-15b8-40d8-ad09-13fa9342e9ba"},xV={like:!1,inferred:!1,id:"7449779e-1d4e-409c-81c6-4b611336ed18",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:UV},jV={type:n.GenericReference,id:"0969562f-d836-406f-8b48-dd9d417fbe72",entityType:n.CustomEntity,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c"},kV={hidden:!1,required:!0,type:n.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,dataType:xV,abstract:!1,parent:jV},qV={type:n.GenericReference,id:"833a5425-7bd0-41dd-9e97-e018acce9592",entityType:n.Project,entityId:Y},JV={type:n.CustomEntity,id:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:1,name:"Product",description:"A product that can be sold",implements:[je],extends:[],abstract:!1,static:!1,abstractMethods:[],properties:[FV,kV],methods:[],x:0,y:0,parent:qV},aa="project-loaded-event-id",en="get-bitcoin-price-http-call-operation-id",ig="get-bitcoin-price-http-call-response-body-id",xs="validate-bitcoin-price-response-operation-ids",WV={type:n.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:ig},YV={type:n.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-parent-ref-id",entityType:n.Operation,entityId:xs},ag={id:"validate-bitcoin-data-to-validate-input-map-id",type:n.InputMap,version:1,declaration:nr.inputs[1],name:null,description:null,readsValue:WV,defaultValue:null,index:0,parent:YV},HV={type:n.GenericReference,id:"validate-bitcoin-type-to-match-input-map-default-value-parent-ref-id",entityType:n.InputMap,entityId:"validate-bitcoin-type-to-match-input-map-id"},zV={type:n.GenericReference,id:"validate-bitcoin-type-to-match-input-map-parent-ref-id",entityType:n.Operation,entityId:xs},ZV={id:"validate-bitcoin-type-to-match-input-map-id",type:n.InputMap,version:1,declaration:nr.inputs[0],name:null,description:null,readsValue:null,defaultValue:{id:"validate-bitcoin-type-to-match-input-map-default-value-id",type:n.PrimitiveValue,version:1,name:D.EntityTemplate,valueAsType:kR,value:null,parent:HV,autogeneration:null},index:0,parent:zV},KV={type:n.GenericReference,id:"validate-bitcoin-validated-entity-output-map-parent-ref-id",entityType:n.Operation,entityId:xs},XV={id:"validate-bitcoin-validated-entity-output-map-id",type:n.OutputMap,version:1,declaration:nr.outputs[0],writesValues:[],index:0,parent:KV},QV={type:n.GenericReference,id:"validate-bitcoin-price-response-operation-parent-ref-id",entityType:n.GlobalEvent,entityId:aa},e1={type:n.GenericReference,id:"validate-bitcoin-price-response-operation-called-by-ref-id",entityType:n.Operation,entityId:en},t1={type:n.Operation,id:xs,version:1,declaration:nr,inputs:[ZV,ag],outputs:[XV],process:null,successCalls:[],errorCalls:[],error:null,x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[e1],parent:QV},n1={type:n.GenericReference,id:"96edb661-3f36-406c-8921-f1679dd796a3",entityType:n.FunctionCall,entityId:en},r1={id:"c93e1393-9b5e-4de2-b8da-7eae647d715a",version:1,type:n.InputMap,declaration:Ha,name:null,description:null,readsValue:null,defaultValue:null,index:0,parent:n1},i1={type:n.GenericReference,id:"40312b28-71b8-4b01-a654-58b87191939d",entityType:n.FunctionCall,entityId:en},a1={type:n.GenericReference,id:"6ea96c7d-02a7-4971-82ad-2f32a0fec8b4",entityType:n.InputMap,entityId:"9f21cbac-5a83-4983-8923-9224ffd3ba9f"},s1={id:"9f21cbac-5a83-4983-8923-9224ffd3ba9f",version:1,type:n.InputMap,declaration:za,name:null,description:null,readsValue:null,defaultValue:{id:"get-bitcoin-price-http-request-url-argument-default-value-id",type:n.PrimitiveValue,version:1,value:"https://api.coindesk.com/v1/bpi/currentprice.json",name:D.String,parent:a1,valueAsType:null,autogeneration:null},index:1,parent:i1},o1={type:n.GenericReference,id:"2610bf4a-c8a2-4746-b6cc-eb15f7fa8e9c",entityType:n.FunctionCall,entityId:en},l1={id:"ffb3cd9d-c955-4104-bc7b-299120fe4ede",version:1,type:n.InputMap,declaration:Za,name:null,description:null,readsValue:null,defaultValue:null,index:2,parent:o1},c1={type:n.GenericReference,id:"bfd29a6a-671a-448c-9f2f-f8c7e4ad8349",entityType:n.FunctionCall,entityId:en},d1={id:"412bf1f3-1a8e-4665-a95f-82117540e34e",version:1,type:n.InputMap,declaration:Ka,name:null,description:null,readsValue:null,defaultValue:null,index:3,parent:c1},u1={type:n.GenericReference,id:"616a15f3-c224-4b11-b95c-63314edef409",entityType:n.FunctionCall,entityId:en},p1={id:"4dd4651c-02e4-45f1-b50f-824f3bcb1648",version:1,type:n.OutputMap,declaration:Qa,writesValues:[],index:1,parent:u1},y1={type:n.GenericReference,id:"28793b68-4d7e-4826-aee1-f201a3499faf",entityType:n.FunctionCall,entityId:en},h1={id:"94fe9d35-4dd4-4729-a50c-5283ccd7e661",version:1,type:n.OutputMap,declaration:Xa,writesValues:[],index:0,parent:y1},f1={type:n.GenericReference,id:"f13e04b2-49b4-4c69-85b8-cbbafafa3524",entityType:n.FunctionCall,entityId:en},m1={id:ig,type:n.OutputMap,version:1,declaration:es,writesValues:[ag],index:2,parent:f1},T1={type:n.GenericReference,id:"6148d6d0-caaa-45fc-b601-ff2493dfc60f",entityType:n.FunctionDeclaration,entityId:en},E1={type:n.GenericReference,id:"b115f084-807b-44b3-ae01-b69cc342f761",entityType:n.GlobalEvent,entityId:aa},b1={type:n.Operation,id:en,version:1,declaration:_i,inputs:[r1,s1,l1,d1],outputs:[h1,p1,m1],process:null,parent:E1,calledByError:[],calledByEntry:[T1],calledBySuccess:[],successCalls:[t1],errorCalls:[],error:null,x:0,y:0},R1={type:n.GenericReference,id:"24e76019-3f94-475b-91ce-297f76bbc224",entityType:n.GlobalEvent,entityId:aa},g1={type:n.GenericReference,id:"0eac8e29-cdf2-42f8-8ea7-ad76d4d79abe",entityType:n.GlobalEvent,entityId:aa},v1={process:null,type:n.FunctionCall,id:"2d2e7593-bfbf-457c-a607-5fce18eef457",version:1,declaration:Tc,inputs:[],outputs:[],calledByError:[],calledByEntry:[R1],calledBySuccess:[],parent:g1,successCalls:[],errorCalls:[],error:null,x:0,y:0},I1={id:"793b5999-a9da-47fb-9665-0c17ebc6d5c9",type:n.GenericReference,entityType:n.Project,entityId:"2e7eb5382-3d99-44fd-972a-b8b1e819f6be"},D1={type:n.GlobalEvent,id:aa,version:1,name:cn.PROJECT_PUBLICATION_COMPLETED,returnStatements:[],collapsed:!1,implements:ps,parent:I1,inputs:[],calls:[v1,b1],x:0,y:0},Gt="abort-execution-func-declaration-id",sa="abort-execution-func-exec-var-declaration-id",js="abort-execution-func-small-wait-op-id",Ec="abort-execution-func-long-wait-op-id",sg="abort-execution-func-long-wait-process-output-id",og="abort-execution-func-exec-var-instance-write-id",lg="abort-execution-func-long-wait-return-stmt-id",cg="abort-execution-func-small-wait-return-stmt-id",P1="abort-execution-func-exec-var-instance-abort-call-id",bc="abort-execution-func-exec-var-instance-abort-internal-call-id",dg="abort-execution-func-exec-second-wait-op-id",A1={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-parent-ref-id",entityType:n.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},O1={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",entityType:n.DataType,entityId:"short-wait-return-statement-returned-hello-string-data-type-id"},S1={like:!1,inferred:!1,id:"short-wait-return-statement-returned-hello-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:{id:"short-wait-return-statement-returned-hello-string-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:D.String,value:"Hello 2",autogeneration:null,valueAsType:null,parent:O1},constant:!1,parent:A1},C1={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-parent-ref-id",entityType:n.ReturnStatement,entityId:cg},B1={isError:!1,id:"short-wait-return-statement-returned-hello-string-id",type:n.ReturnDeclaration,version:1,name:"Return 1",description:"A random string that is returned by the function",dataType:S1,implements:null,readsValue:null,required:!0,index:0,parent:C1},w1={type:n.GenericReference,id:"short-wait-return-statement-called-by-ref-id",entityType:n.Operation,entityId:js},_1={type:n.GenericReference,id:"short-wait-return-statement-parent-ref-id",entityType:n.FunctionDeclaration,entityId:Gt},ug={type:n.ReturnStatement,id:cg,version:1,outputs:[B1],calledByError:[],calledByEntry:[],calledBySuccess:[w1],throws:null,x:0,y:0,parent:_1},N1={type:n.GenericReference,id:"second-wait-argument-default-value-parent-ref-id",entityType:n.InputMap,entityId:"second-wait-argument-map-id"},M1={type:n.GenericReference,id:"second-wait-argument-map-parent-ref-id",entityType:n.Operation,entityId:dg},V1={id:"second-wait-argument-map-id",type:n.InputMap,version:1,declaration:er,name:null,description:null,readsValue:null,defaultValue:{id:"second-wait-argument-default-value-id",type:n.PrimitiveValue,version:1,value:2e3,valueAsType:null,autogeneration:null,name:D.Number,parent:N1},index:0,parent:M1},L1={type:n.GenericReference,id:"small-wait-parent-ref-id",entityType:n.FunctionDeclaration,entityId:Gt},G1={type:n.GenericReference,id:"small-wait-called-by-ref-one-id",entityType:n.InternalCall,entityId:bc},$1={id:dg,type:n.Operation,version:1,declaration:dt,inputs:[V1],outputs:[],process:null,successCalls:[ug],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[G1],error:null,parent:L1},F1={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-one-id",entityType:n.VariableInstance,entityId:og},U1={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-two-id",entityType:n.Operation,entityId:js},x1={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-main-project-ref-id",entityType:n.FunctionDeclaration,entityId:Gt},j1={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",entityType:n.VariableDeclaration,entityId:sa},k1={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-internal-call-ref-one-id",entityType:n.InternalCall,entityId:bc},q1={id:P1,type:n.VariableInstance,version:1,declaration:j1,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[k1],parent:x1},pg={id:bc,type:n.InternalCall,version:1,inputs:[],outputs:[],declaration:ql,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[F1,U1],successCalls:[$1],errorCalls:[],error:null,index:0,parent:q1},J1={type:n.GenericReference,id:"abort-exec-func-var-write-instance-main-project-ref-id",entityType:n.FunctionDeclaration,entityId:Gt},W1={type:n.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-one-id",entityType:n.VariableDeclaration,entityId:sa},Y1={type:n.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-two-id",entityType:n.FunctionDeclaration,entityId:Gt},H1={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",entityType:n.VariableDeclaration,entityId:sa},z1={type:n.GenericReference,id:"abort-exec-func-var-write-instance-reads-value-ref-id",entityType:n.OutputMap,entityId:sg},Rc={id:og,type:n.VariableInstance,version:1,declaration:H1,inputs:[],outputs:[],calledByError:[],calledByEntry:[Y1],calledBySuccess:[W1],successCalls:[pg],errorCalls:[],x:0,y:0,readsValue:z1,writesValues:[],internalCalls:[],parent:J1},Z1={type:n.GenericReference,id:"abort-exec-func-var-decl-datatype-parent-ref-id",entityType:n.VariableDeclaration,entityId:sa};n.GenericReference,n.DataType;const K1={like:!1,inferred:!1,id:"abort-exec-func-var-decl-datatype-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Jl,version:1,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:Z1,defaultValue:null},X1={type:n.GenericReference,id:"abort-exec-func-var-decl-main-project-ref-id",entityType:n.FunctionDeclaration,entityId:Gt},Q1={type:n.GenericReference,id:"abort-exec-func-var-decl-called-by-ref-one-id",entityType:n.FunctionDeclaration,entityId:Gt},e0={id:sa,type:n.VariableDeclaration,version:1,name:"Execution in progress",description:"A variable that holds an ongoing execution to abort it if needed",dataType:K1,inputs:[],outputs:[],calledByError:[],calledByEntry:[Q1],calledBySuccess:[],successCalls:[Rc],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:X1},t0={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-parent-ref-id",entityType:n.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},n0={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",entityType:n.DataType,entityId:"long-wait-return-statement-returned-hello-string-data-type-id"},r0={like:!1,inferred:!1,id:"long-wait-return-statement-returned-hello-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:{id:"long-wait-return-statement-returned-hello-string-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:D.String,value:"Hello 1",autogeneration:null,valueAsType:null,parent:n0},constant:!1,parent:t0},i0={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-parent-ref-id",entityType:n.ReturnStatement,entityId:lg},a0={isError:!1,id:"long-wait-return-statement-returned-hello-string-id",type:n.ReturnDeclaration,version:1,name:"Return 2",description:"A random string that is returned by the function",implements:null,dataType:r0,readsValue:null,required:!0,index:0,parent:i0},s0={type:n.GenericReference,id:"long-wait-return-statement-called-by-ref-id",entityType:n.Operation,entityId:Ec},o0={type:n.GenericReference,id:"long-wait-return-statement-parent-ref-id",entityType:n.FunctionDeclaration,entityId:Gt},yg={type:n.ReturnStatement,id:lg,version:1,outputs:[a0],calledByError:[],calledByEntry:[],calledBySuccess:[s0],throws:null,x:0,y:0,parent:o0},l0={type:n.GenericReference,id:"long-argument-default-value-parent-ref-id",entityType:n.InputMap,entityId:"long-argument-map-id"},hg={type:n.GenericReference,id:"long-argument-map-parent-ref-id",entityType:n.Operation,entityId:Ec},c0={id:"long-argument-map-id",type:n.InputMap,version:1,declaration:er,name:null,description:null,readsValue:null,defaultValue:{id:"long-argument-default-value-id",type:n.PrimitiveValue,version:1,value:1500,valueAsType:null,autogeneration:null,name:D.Number,parent:l0},index:0,parent:hg},d0={type:n.GenericReference,id:"long-parent-ref-id",entityType:n.FunctionDeclaration,entityId:Gt},u0={type:n.GenericReference,id:"long-called-by-ref-one-id",entityType:n.FunctionDeclaration,entityId:Gt},p0={id:sg,type:n.OutputMap,version:1,declaration:Yl,writesValues:[Rc],index:0,parent:hg},y0={id:Ec,type:n.Operation,version:1,declaration:dt,inputs:[c0],outputs:[],process:p0,successCalls:[yg],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[u0],calledBySuccess:[],error:null,parent:d0},h0={type:n.GenericReference,id:"small-wait-argument-default-value-parent-ref-id",entityType:n.InputMap,entityId:"small-wait-argument-map-id"},f0={type:n.GenericReference,id:"small-wait-argument-map-parent-ref-id",entityType:n.Operation,entityId:js},m0={id:"small-wait-argument-map-id",type:n.InputMap,version:1,declaration:er,name:null,description:null,readsValue:null,defaultValue:{id:"small-wait-argument-default-value-id",type:n.PrimitiveValue,version:1,value:500,valueAsType:null,autogeneration:null,name:D.Number,parent:h0},index:0,parent:f0},T0={type:n.GenericReference,id:"small-wait-parent-ref-id",entityType:n.FunctionDeclaration,entityId:Gt},E0={type:n.GenericReference,id:"small-wait-called-by-ref-one-id",entityType:n.FunctionDeclaration,entityId:Gt},b0={id:js,type:n.Operation,version:1,declaration:dt,inputs:[m0],outputs:[],process:null,successCalls:[pg],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[E0],calledBySuccess:[],error:null,parent:T0},R0={type:n.GenericReference,id:"abort-execution-func-decl-parent-ref-id",entityType:n.Project,entityId:Y},fg={id:"abort-execution-func-decl-id",type:n.FunctionDeclaration,version:1,name:"Test aborting execution",description:"Executes a wait and then aborts the execution of that wait",inputs:[],returnStatements:[yg,ug],calls:[b0,e0,Rc,y0],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:R0},g0={type:n.GenericReference,id:"call-execution-abort-func-parent-ref-id",entityType:n.Project,entityId:Y},v0={id:"call-execution-abort-func-id",type:n.FunctionCall,version:1,declaration:fg,inputs:[],process:null,outputs:[],successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:g0},gc="manual-hello-world-loop-func-decl-id",mg="manual-hello-world-loop-func-return-statement-id",tn="manual-hello-world-loop-id",oa="manual-hello-world-loop-body-id",vc="manual-hello-world-loop-break-statement-id",la="manual-hello-world-loop-current-iteration-number-output-map-id",Ic="manual-hello-world-loop-previous-iterations-results-output-map-id",Dc="assembled-hello-world-text-output-id",Tg="assembled-hello-world-list-output-id",ca="iteration-number-is-equal-or-greater-than-10-condition-id",ks="join-hello-world-and-number-operation-id",qs="append-string-to-list-operation-id",Eg="hello-world-loop-output-map-id",I0={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-parent-ref",entityType:n.ReturnStatement,entityId:mg},D0={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type-parent-ref",entityType:n.ReturnDeclaration,entityId:"manual-hello-world-loop-function-declaration-output-declaration"},P0={like:!1,inferred:!1,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,isList:!0,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:D0},A0={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-reads-value-ref",entityType:n.OutputMap,entityId:Eg},bg={isError:!1,id:"manual-hello-world-loop-function-declaration-output-declaration",version:1,type:n.ReturnDeclaration,name:"Results",description:null,dataType:P0,implements:null,readsValue:A0,required:!0,index:0,parent:I0},O0={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-return-statement-called-by-ref",entityType:n.Loop,entityId:tn},S0={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref",entityType:n.FunctionDeclaration,entityId:gc},Rg={type:n.ReturnStatement,id:mg,version:1,outputs:[bg],calledByError:[],calledByEntry:[],calledBySuccess:[O0],parent:S0,throws:null,x:0,y:0},C0={type:n.GenericReference,id:"hello-world-loop-break-statement-ref-id",entityType:n.BreakStatement,entityId:vc},B0={type:n.GenericReference,id:"hello-world-loop-break-statement-reads-value-ref-id",entityType:n.OutputMap,entityId:Dc},gg={isError:!1,id:"hello-world-loop-break-statement-output-id",version:1,type:n.ReturnDeclaration,name:"Iteration result",description:null,dataType:null,readsValue:B0,implements:null,required:!0,index:0,parent:C0},w0={type:n.GenericReference,id:"hello-world-loop-break-statement-counter-reads-value-ref-id",entityType:n.ArgumentDeclaration,entityId:la},_0={type:n.GenericReference,id:"hello-world-loop-break-statement-counter-ref-id",entityType:n.BreakStatement,entityId:vc},vg={isError:!1,id:"hello-world-loop-break-statement-counter-output-id",version:1,type:n.ReturnDeclaration,name:"Iteration counter",description:null,implements:null,dataType:null,readsValue:w0,required:!0,index:1,parent:_0},N0={type:n.GenericReference,id:"hello-world-loop-break-statement-called-by-ref-id",entityType:n.Condition,entityId:ca},M0={type:n.GenericReference,id:"hello-world-loop-break-statement-parent-ref-id",entityType:n.Loop,entityId:tn},Ig={type:n.BreakStatement,id:vc,version:1,outputs:[gg,vg],calledByError:[],calledByEntry:[],calledBySuccess:[N0],parent:M0,throws:null,x:0,y:0},V0={type:n.GenericReference,id:"hello-world-loop-continue-statement-ref-id",entityType:n.ContinueStatement,entityId:"hello-world-loop-continue-statement"},L0={type:n.GenericReference,id:"hello-world-loop-continue-statement-output-data-type-ref-id",entityType:n.ReturnDeclaration,entityId:"hello-world-loop-continue-statement-output-id"},G0={like:!1,inferred:!1,id:"hello-world-loop-continue-statement-output-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:L0},$0={type:n.GenericReference,id:"hello-world-loop-continue-statement-reads-value-ref-id",entityType:n.OutputMap,entityId:Dc},Dg={isError:!1,id:"hello-world-loop-continue-statement-output-id",version:1,type:n.ReturnDeclaration,name:"Iteration result",description:null,implements:null,dataType:G0,readsValue:$0,required:!0,index:0,parent:V0},F0={type:n.GenericReference,id:"hello-world-loop-continue-statement-called-by-ref-id",entityType:n.Condition,entityId:ca},U0={type:n.GenericReference,id:"hello-world-loop-continue-statement-parent-ref-id",entityType:n.Loop,entityId:tn},Pg={type:n.ContinueStatement,id:"hello-world-loop-continue-statement",version:1,outputs:[Dg],calledBySuccess:[],calledByError:[F0],calledByEntry:[],parent:U0,throws:null,x:0,y:0};n.GenericReference,n.InputMap;const x0={type:n.GenericReference,id:"append-string-to-list-base-string-map-parent-ref-id",entityType:n.Operation,entityId:qs},j0={type:n.GenericReference,id:"base-string-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Ic},Ag={id:"append-string-to-list-base-string-map-id",type:n.InputMap,version:1,declaration:ul,name:null,description:null,readsValue:j0,defaultValue:null,index:0,parent:x0},k0={type:n.GenericReference,id:"assembly-string-map-parent-ref-id",entityType:n.Operation,entityId:qs},q0={id:Tg,type:n.OutputMap,version:1,writesValues:[gg],declaration:Bi,index:0,parent:k0},J0={type:n.GenericReference,id:"append-string-to-list-called-by-ref-id",entityType:n.Condition,entityId:ca},W0={type:n.GenericReference,id:"latest-string-to-add-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Tg},Y0={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:n.Operation,entityId:qs},Og={id:"latest-string-to-add-input-map-id",version:1,type:n.InputMap,declaration:pl,name:null,description:null,readsValue:W0,defaultValue:null,index:1,parent:Y0},H0={type:n.GenericReference,id:"append-string-to-list-parent-ref-id",entityType:n.FunctionDeclaration,entityId:tn},z0={type:n.Operation,id:qs,declaration:Ya,version:1,inputs:[Ag,Og],outputs:[q0],calledByError:[],process:null,calledByEntry:[],calledBySuccess:[J0],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:H0},Z0={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:oa},K0={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-parent-ref-id",entityType:n.Loop,entityId:tn},X0={type:n.GenericReference,id:"current-iteration-number-to-check-map-reads-value-ref-id",entityType:n.OutputMap,entityId:la},Sg={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-ref-two-id",entityType:n.Condition,entityId:ca},Q0={id:"current-iteration-number-to-check-map-id",version:1,type:n.InputMap,declaration:Zr.inputs[0],name:null,description:null,readsValue:X0,index:1,defaultValue:null,parent:Sg},eL={type:n.GenericReference,id:"max-num-iterations-value-map-default-value-parent-ref-id",entityType:n.InputMap,entityId:"max-num-iterations-value-map-id"},tL={id:"max-num-iterations-value-map-id",version:1,type:n.InputMap,declaration:Zr.inputs[1],name:null,description:null,readsValue:null,index:0,defaultValue:{id:"max-num-iterations-value-map-default-value-id",type:n.PrimitiveValue,version:1,name:D.Number,value:10,autogeneration:null,valueAsType:null,parent:eL},parent:Sg},nL={type:n.Condition,id:ca,version:1,declaration:Zr,inputs:[tL,Q0],calledByError:[],calledByEntry:[Z0],calledBySuccess:[],successCalls:[Ig,z0],errorCalls:[Pg],x:0,y:0,parent:K0},rL={type:n.GenericReference,id:"base-string-map-ref-id",entityType:n.InputMap,entityId:"join-hello-world-and-number-base-string-map-id"},iL={type:n.GenericReference,id:"join-hello-world-and-number-base-string-map-parent-ref-id",entityType:n.Operation,entityId:ks},aL={id:"join-hello-world-and-number-base-string-map-id",type:n.InputMap,version:1,declaration:Ja,name:null,description:null,readsValue:null,defaultValue:{id:"join-hello-world-and-number-base-string-map-default-value-id",type:n.PrimitiveValue,version:1,value:"Hello world ",name:D.String,parent:rL,valueAsType:null,autogeneration:null},index:0,parent:iL},sL={type:n.GenericReference,id:"assembly-string-map-parent-ref-id",entityType:n.Operation,entityId:ks},oL={id:Dc,type:n.OutputMap,version:1,writesValues:[Og,Dg],declaration:Bi,index:0,parent:sL},lL={type:n.GenericReference,id:"join-hello-world-and-number-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:oa},cL={type:n.GenericReference,id:"current-iteration-number-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:la},dL={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:n.Operation,entityId:ks},Cg={id:"current-iteration-number-input-map-id",version:1,type:n.InputMap,declaration:Wa,name:null,description:null,readsValue:cL,defaultValue:null,index:1,parent:dL},uL={type:n.GenericReference,id:"join-hello-world-and-number-parent-ref-id",entityType:n.FunctionDeclaration,entityId:tn},pL={type:n.Operation,id:ks,declaration:wi,version:1,inputs:[aL,Cg],outputs:[oL],process:null,calledByError:[],calledByEntry:[lL],calledBySuccess:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:uL},yL={id:"manual-hello-world-loop-iterations-results-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:Ic,entityType:n.ArgumentDeclaration},hL={like:!1,inferred:!1,id:"manual-hello-world-loop-iterations-results-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!0,isNullable:!1,constant:!1,entity:null,asType:!1,defaultValue:null,parent:yL},fL={id:"manual-hello-world-loop-previous-iterations-results-output-map-parent-ref-id",type:n.GenericReference,entityId:oa,entityType:n.FunctionDeclaration},mL={id:Ic,type:n.ArgumentDeclaration,version:1,name:"Previous iterations results",description:"The results of the previous iterations of the loop.",required:!0,dataType:hL,implements:null,writesValues:[Ag],index:1,parent:fL},TL={id:"manual-hello-world-loop-current-iteration-number-output-map-parent-ref-id",type:n.GenericReference,entityId:oa,entityType:n.FunctionDeclaration},EL={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:la,entityType:n.ArgumentDeclaration};n.DataType;const bL={id:la,type:n.ArgumentDeclaration,version:1,name:"Current iteration number",description:"The number of the current iteration of the loop. Starts at 1.",required:!0,implements:Rl,dataType:null,writesValues:[Cg,vg],index:0,parent:TL},RL={id:"manual-flow-loop-body-parent-ref-id",type:n.GenericReference,entityId:tn,entityType:n.Loop},gL={id:oa,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called multiple times, once for each iteration of the loop.",inputs:[bL,mL],calls:[nL,pL],implements:gl,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:RL},vL={type:n.GenericReference,id:"hello-world-loop-iteration-result-inline-output-declaration-parent-ref-id",entityType:n.Loop,entityId:tn},Bg={id:"hello-world-loop-iteration-result-inline-output-declaration-id",version:1,type:n.ValueDescriptor,name:"Iteration result",description:null,dataType:null,required:!0,index:0,parent:vL},IL={type:n.GenericReference,id:"hello-world-loop-break-statement-output-map-parent-ref-id",entityType:n.Loop,entityId:tn},DL={type:n.OutputMap,id:Eg,version:1,declaration:Bg,writesValues:[bg],index:0,parent:IL},PL={id:"manual-hello-world-loop-parent-ref-id",type:n.GenericReference,entityId:Y,entityType:n.Project},AL={id:"manual-hello-world-loop-called-by-ref-id",type:n.GenericReference,entityId:gc,entityType:n.FunctionDeclaration},OL={id:tn,type:n.Loop,version:1,declaration:bl,inputs:[],outputsDeclarations:[Bg],outputs:[DL],body:gL,successCalls:[Rg],errorCalls:[],process:null,error:null,calledByError:[],calledByEntry:[AL],calledBySuccess:[],breakStatements:[Ig],continueStatements:[Pg],x:0,y:0,parent:PL},SL={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref-id",entityType:n.Project,entityId:Y},wg={type:n.FunctionDeclaration,id:gc,version:1,name:"Manual hello world loop",description:null,inputs:[],calls:[OL],returnStatements:[Rg],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:SL},CL={type:n.GenericReference,id:"call-hello-world-loop-parent-ref-id",entityType:n.Project,entityId:Y},BL={id:"call-hello-world-loop-id",type:n.FunctionCall,version:1,declaration:wg,inputs:[],outputs:[],process:null,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:CL},En="company-dto-function-declaration-id",Pc="company-dto-func-declaration-argument-dcl-id",nn="company-dto-function-company-variable-id",jn="company-dto-function-company-dto-variable-id",si="iterate-over-employee-list-loop-id",_g="iterate-over-employee-list-loop-employee-dto-output-map-id",Ac="iterate-over-employee-list-loop-body-current-employee-argument-declaration-id",da="iterate-over-employee-list-loop-body-map-employee-dto-function-call-id",Ng="iterate-over-employee-list-continue-statement-employee-dto-output-decl-id",wL="iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-id",Mg="iterate-over-employee-list-continue-statement-id",Js="iterate-over-employee-list-loop-body-id",Vg="company-dto-func-declaration-return-statement-id",Lg="company-dto-func-declaration-return-decl-id",Gg="company-dto-func-declaration-company-variable-id-output-map-id",$g="company-dto-func-declaration-company-variable-employess-output-map-id",Fg="company-dto-func-declaration-company-variable-name-output-map-id",_L="company-dto-func-declaration-company-dto-variable-input-map-id",NL="company-dto-func-declaration-company-dto-variable-employess-input-map-id",ML="company-dto-func-declaration-company-dto-variable-name-input-map-id",Ws="company-dto-func-declaration-owner-variable-id",VL="company-dto-func-declaration-company-dto-variable-owner-input-map-id",Ug="company-dto-func-declaration-company-variable-owner-output-map-id",xg="company-dto-func-declaration-owner-variable-id-output-map-id",Ys="company-dto-func-declaration-bank-account-variable-id",LL="company-dto-func-declaration-company-dto-variable-bank-account-input-map-id",jg="company-dto-func-declaration-company-variable-bank-account-output-map-id",kg="company-dto-func-declaration-bank-account-variable-id-output-map-id",GL={type:n.GenericReference,id:"company-dto-func-returned-company-dto-data-type-parent-ref-id",entityType:n.ReturnDeclaration,entityId:Lg},$L={like:!1,inferred:!1,id:"company-dto-func-returned-company-dto-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:GL},FL={type:n.GenericReference,id:"company-dto-func-returned-company-dto-parent-ref-id",entityType:n.ReturnStatement,entityId:Vg},UL={type:n.GenericReference,id:"company-dto-func-returned-company-dto-reads-value-ref-id",entityType:n.VariableDeclaration,entityId:jn},qg={isError:!1,id:Lg,type:n.ReturnDeclaration,version:1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",implements:null,dataType:$L,readsValue:UL,required:!0,index:0,parent:FL},xL={type:n.GenericReference,id:"company-dto-func-return-statement-called-by-ref-id",entityType:n.Operation,entityId:jn},jL={type:n.GenericReference,id:"company-dto-func-return-statement-parent-ref-id",entityType:n.FunctionDeclaration,entityId:En},Oc={type:n.ReturnStatement,id:Vg,version:1,outputs:[qg],calledByError:[],calledByEntry:[],calledBySuccess:[xL],throws:null,x:0,y:0,parent:jL},kL={type:n.GenericReference,id:"company-dto-func-company-dto-variable-owner-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:xg},qL={type:n.GenericReference,id:"company-dto-func-company-dto-variable-owner-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:jn},Jg={id:VL,type:n.InputMap,version:1,declaration:null,name:"owner_id",description:null,defaultValue:null,index:5,readsValue:kL,parent:qL},JL={type:n.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:kg},WL={type:n.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:jn},Wg={id:LL,type:n.InputMap,version:1,declaration:null,name:"bank_account_id",description:null,defaultValue:null,index:4,readsValue:JL,parent:WL},YL={type:n.GenericReference,id:"company-dto-func-company-dto-variable-name-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Fg},HL={type:n.GenericReference,id:"company-dto-func-company-dto-variable-name-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:jn},Yg={id:ML,type:n.InputMap,version:1,declaration:null,name:"name",description:null,defaultValue:null,index:3,readsValue:YL,parent:HL},zL={type:n.GenericReference,id:"company-dto-func-company-dto-variable-employess-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:_g},ZL={type:n.GenericReference,id:"company-dto-func-company-dto-variable-employess-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:jn},Hg={id:NL,type:n.InputMap,version:1,declaration:null,name:"employees",description:null,defaultValue:null,index:2,readsValue:zL,parent:ZL},KL={type:n.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Gg},XL={type:n.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:jn},zg={id:_L,type:n.InputMap,version:1,declaration:null,name:"id",description:"The ID of the company",defaultValue:null,index:1,readsValue:KL,parent:XL},QL={type:n.GenericReference,id:"company-dto-func-company-dto-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:En},eG={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-one-id",entityType:n.VariableDeclaration,entityId:Ys},tG={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-two-id",entityType:n.VariableDeclaration,entityId:Ws},nG={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-three-id",entityType:n.VariableDeclaration,entityId:si},Sc={id:jn,type:n.VariableDeclaration,version:1,name:"Company DTO",dataType:null,description:"A variable holding the data of a mapped company DTO",calledByError:[],calledByEntry:[],calledBySuccess:[eG,tG,nG],successCalls:[Oc],errorCalls:[],readsValue:null,writesValues:[qg],inputs:[zg,Yg,Wg,Jg,Hg],outputs:[],internalCalls:[],parent:QL,x:0,y:0},yr="employee-dto-func-declaration-id",Cc="employee-dto-func-declaration-argument-dcl-id",Zg="employee-dto-func-declaration-return-statement-id",Kg="employee-dto-func-declaration-return-decl-id",hr="employee-dto-func-declaration-employee-variable-id",fr="employee-dto-func-declaration-employee-dto-variable-id",Hs="employee-dto-func-declaration-manager-variable-id",Xg="employee-dto-func-declaration-employee-variable-id-output-map-id",Qg="employee-dto-func-declaration-employee-variable-birth-date-output-map-id",ev="employee-dto-func-declaration-employee-variable-department-output-map-id",tv="employee-dto-func-declaration-employee-variable-manager-output-map-id",nv="employee-dto-func-declaration-manager-variable-id-output-map-id",rG="employee-dto-func-declaration-employee-dto-variable-input-map-id",iG="employee-dto-func-declaration-employee-dto-variable-birth-date-input-map-id",aG="employee-dto-func-declaration-employee-dto-variable-department-input-map-id",sG="employee-dto-func-declaration-employee-dto-variable-manager-input-map-id",oG={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-data-type-parent-ref-id",entityType:n.ReturnDeclaration,entityId:Kg},lG={like:!1,inferred:!1,id:"employee-dto-func-returned-employee-dto-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:oG},cG={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-parent-ref-id",entityType:n.ReturnStatement,entityId:Zg},dG={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-reads-value-ref-id",entityType:n.VariableDeclaration,entityId:fr},rv={isError:!1,id:Kg,type:n.ReturnDeclaration,version:1,name:"Employee DTO",description:"Output the employee data in the format that it will be sent through an HTTP request.",dataType:lG,implements:null,readsValue:dG,required:!0,index:0,parent:cG},uG={type:n.GenericReference,id:"employee-dto-func-return-statement-called-by-ref-id",entityType:n.Operation,entityId:fr},pG={type:n.GenericReference,id:"employee-dto-func-return-statement-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yr},Bc={type:n.ReturnStatement,id:Zg,version:1,outputs:[rv],calledByError:[],calledByEntry:[],calledBySuccess:[uG],throws:null,x:0,y:0,parent:pG},yG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:nv},hG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:fr},iv={id:sG,type:n.InputMap,version:1,declaration:null,name:"manager_id",description:null,defaultValue:null,index:4,readsValue:yG,parent:hG},fG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-department-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:ev},mG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-department-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:fr},av={id:aG,type:n.InputMap,version:1,declaration:null,name:"department_name",description:null,defaultValue:null,index:3,readsValue:fG,parent:mG},TG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Qg},EG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:fr},sv={id:iG,type:n.InputMap,version:1,declaration:null,name:"birth_date",description:null,defaultValue:null,index:2,readsValue:TG,parent:EG},bG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Xg},RG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:fr},ov={id:rG,type:n.InputMap,version:1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:bG,parent:RG},gG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yr},vG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-called-by-ref-id",entityType:n.VariableDeclaration,entityId:Hs},IG={id:fr,type:n.VariableDeclaration,version:1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",calledByError:[],calledByEntry:[],calledBySuccess:[vG],successCalls:[Bc],errorCalls:[],readsValue:null,writesValues:[rv],inputs:[ov,sv,av,iv],outputs:[],internalCalls:[],parent:gG,x:0,y:0},DG={type:n.GenericReference,id:"employee-dto-func-manager-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:Hs},PG={id:nv,type:n.OutputMap,version:1,declaration:je.properties[1],index:0,writesValues:[iv],parent:DG},AG={type:n.GenericReference,id:"employee-dto-func-manager-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:Hs},OG={like:!1,inferred:!1,id:"employee-dto-func-manager-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Vt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:AG,defaultValue:null},SG={type:n.GenericReference,id:"employee-dto-func-manager-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:tv},CG={type:n.GenericReference,id:"employee-dto-func-manager-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yr};n.GenericReference,n.VariableDeclaration;const lv={id:Hs,type:n.VariableDeclaration,version:1,name:"Manager",dataType:OG,description:"A variable holding an inherited manager",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[IG],errorCalls:[],readsValue:SG,writesValues:[],inputs:[],outputs:[PG],internalCalls:[],parent:CG,x:0,y:0},BG={type:n.GenericReference,id:"employee-dto-func-employee-variable-manager-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:hr},wG={id:tv,type:n.OutputMap,version:1,declaration:Vt.properties[2],index:3,writesValues:[lv],parent:BG},_G={type:n.GenericReference,id:"employee-dto-func-employee-variable-department-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:hr},NG={id:ev,type:n.OutputMap,version:1,declaration:Vt.properties[0],index:2,writesValues:[av],parent:_G},MG={type:n.GenericReference,id:"employee-dto-func-employee-variable-birth-date-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:hr},VG={id:Qg,type:n.OutputMap,version:1,declaration:pt.properties[1],index:1,writesValues:[sv],parent:MG},LG={type:n.GenericReference,id:"employee-dto-func-employee-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:hr},GG={id:Xg,type:n.OutputMap,version:1,declaration:je.properties[1],index:0,writesValues:[ov],parent:LG},$G={type:n.GenericReference,id:"employee-dto-func-employee-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:hr},FG={like:!1,inferred:!1,id:"employee-dto-func-employee-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Vt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:$G,defaultValue:null},UG={type:n.GenericReference,id:"employee-dto-func-employee-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yr},xG={type:n.GenericReference,id:"employee-dto-func-employee-variable-reads-value-ref-id",entityType:n.ArgumentDeclaration,entityId:Cc},jG={type:n.GenericReference,id:"employee-dto-func-employee-variable-called-by-id",entityType:n.FunctionDeclaration,entityId:yr},cv={id:hr,type:n.VariableDeclaration,version:1,name:"Company employee",dataType:FG,description:"A variable holding a company employee",calledByError:[],calledByEntry:[jG],calledBySuccess:[],successCalls:[lv],errorCalls:[],readsValue:xG,writesValues:[],inputs:[],outputs:[GG,VG,NG,wG],internalCalls:[],parent:UG,x:0,y:0},kG={type:n.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-data-type-parent-ref-id",entityId:Cc,entityType:n.ArgumentDeclaration},qG={type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"employee-dto-func-declaration-employee-input-declaration-data-type-id",version:1,entity:Vt,asType:!1,isList:!1,isNullable:!1,constant:!1,like:!1,inferred:!1,parent:kG,defaultValue:null},JG={type:n.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-parent-ref-id",entityId:yr,entityType:n.FunctionDeclaration},WG={type:n.ArgumentDeclaration,id:Cc,version:1,name:"Employee",description:"The employee to create a DTO for",required:!0,implements:null,dataType:qG,index:0,writesValues:[cv],parent:JG},YG={type:n.GenericReference,id:"employee-dto-function-declaration-parent-ref-id",entityType:n.Project,entityId:Y},wc={type:n.FunctionDeclaration,id:yr,version:1,name:"Employee DTO",description:"Takes a employee and returns a DTO of that employee",index:null,inputs:[WG],calls:[cv],implements:null,returnStatements:[Bc],collapsed:!1,private:!1,x:0,y:0,parent:YG},HG={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:Ng,entityType:n.ReturnDeclaration},zG={like:!1,inferred:!1,id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:null,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:HG},ZG={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-reads-value-ref-id",type:n.GenericReference,entityId:da,entityType:n.OutputMap},KG={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-parent-ref-id",type:n.GenericReference,entityId:Mg,entityType:n.ContinueStatement},dv={isError:!1,id:Ng,type:n.ReturnDeclaration,version:1,name:"Employee DTO",description:"The DTO of the employee entity.",readsValue:ZG,dataType:zG,implements:null,required:!0,index:0,parent:KG},XG={id:"iterate-over-employee-list-continue-statement-called-by-ref-id",type:n.GenericReference,entityId:da,entityType:n.FunctionCall},QG={id:"iterate-over-employee-list-continue-statement-parent-ref-id",type:n.GenericReference,entityId:si,entityType:n.Loop},uv={id:Mg,type:n.ContinueStatement,version:1,calledByError:[],calledByEntry:[],calledBySuccess:[XG],outputs:[dv],throws:null,x:0,y:0,parent:QG},e$={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-parent-ref-id",type:n.GenericReference,entityId:da,entityType:n.FunctionCall},t$={id:wL,type:n.OutputMap,version:1,declaration:Bc.outputs[0],writesValues:[dv],index:0,parent:e$},n$={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-reads-value-ref-id",type:n.GenericReference,entityId:Ac,entityType:n.ArgumentDeclaration},r$={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-parent-ref-id",type:n.GenericReference,entityId:da,entityType:n.FunctionCall},pv={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-id",type:n.InputMap,version:1,name:null,description:null,declaration:wc.inputs[0],readsValue:n$,index:0,defaultValue:null,parent:r$},i$={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-called-by-ref-id",type:n.GenericReference,entityId:Js,entityType:n.FunctionDeclaration},a$={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-parent-ref-id",type:n.GenericReference,entityId:Js,entityType:n.FunctionDeclaration},s$={id:da,type:n.FunctionCall,version:1,declaration:wc,inputs:[pv],process:null,outputs:[t$],calledByError:[],calledByEntry:[i$],calledBySuccess:[],successCalls:[uv],errorCalls:[],error:null,x:0,y:0,parent:a$},o$={type:n.GenericReference,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-parent-ref-id",entityId:Ac,entityType:n.ArgumentDeclaration},l$={like:!1,inferred:!1,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:Vt,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:o$},c$={id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Js,entityType:n.FunctionDeclaration},d$={id:Ac,type:n.ArgumentDeclaration,version:1,name:"Current employee",description:"The current employee entity being processed.",dataType:l$,required:!0,implements:ts,index:0,writesValues:[pv],parent:c$},u$={id:"iterate-over-employee-list-loop-body-parent-ref-id",type:n.GenericReference,entityId:si,entityType:n.Loop},p$={id:Js,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[d$],calls:[s$],implements:ns,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:u$},y$={id:"iterate-over-employee-list-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:si,entityType:n.Loop},h$={id:"iterate-over-employee-list-loop-iteration-list-input-map-reads-value-ref-id",type:n.GenericReference,entityId:$g,entityType:n.OutputMap},yv={id:"iterate-over-employee-list-loop-iteration-list-input-map-id",type:n.InputMap,version:1,name:null,description:null,declaration:rr.inputs[0],defaultValue:null,readsValue:h$,index:0,parent:y$},f$={id:"iterate-over-employee-list-loop-parent-ref-id",type:n.GenericReference,entityId:En,entityType:n.FunctionDeclaration},m$={id:"iterate-over-employee-list-loop-employee-dto-output-map-parent-ref-id",type:n.GenericReference,entityId:si,entityType:n.Loop},T$={id:_g,type:n.OutputMap,version:1,declaration:rr.outputs[0],writesValues:[Hg],index:0,parent:m$},E$={type:n.GenericReference,id:"iterate-over-employee-list-loop-called-by-ref-id",entityType:n.VariableDeclaration,entityId:nn},b$={id:si,type:n.Loop,version:1,declaration:rr,inputs:[yv],successCalls:[Sc],errorCalls:[],outputsDeclarations:[],outputs:[T$],body:p$,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[E$],breakStatements:[],continueStatements:[uv],error:null,x:0,y:0,parent:f$},R$={type:n.GenericReference,id:"company-dto-func-bank-account-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:Ys},g$={id:kg,type:n.OutputMap,version:1,declaration:je.properties[1],index:0,writesValues:[Wg],parent:R$},v$={type:n.GenericReference,id:"company-dto-func-bank-account-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:Ys},I$={like:!1,inferred:!1,id:"company-dto-func-bank-account-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Lt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:v$,defaultValue:null},D$={type:n.GenericReference,id:"company-dto-func-bank-account-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:jg},P$={type:n.GenericReference,id:"company-dto-func-bank-account-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:En};n.GenericReference,n.VariableDeclaration;const hv={id:Ys,type:n.VariableDeclaration,version:1,name:"Bank account",dataType:I$,description:"A variable holding an inherited bank account",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[Sc],errorCalls:[],readsValue:D$,writesValues:[],inputs:[],outputs:[g$],internalCalls:[],parent:P$,x:0,y:0},A$={type:n.GenericReference,id:"company-dto-func-owner-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:Ws},O$={id:xg,type:n.OutputMap,version:1,declaration:je.properties[1],index:0,writesValues:[Jg],parent:A$},S$={type:n.GenericReference,id:"company-dto-func-owner-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:Ws},C$={like:!1,inferred:!1,id:"company-dto-func-owner-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Lt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:S$,defaultValue:null},B$={type:n.GenericReference,id:"company-dto-func-owner-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:Ug},w$={type:n.GenericReference,id:"company-dto-func-owner-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:En};n.GenericReference,n.VariableDeclaration;const fv={id:Ws,type:n.VariableDeclaration,version:1,name:"Owner",dataType:C$,description:"A variable holding an inherited owner",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[Sc],errorCalls:[],readsValue:B$,writesValues:[],inputs:[],outputs:[O$],internalCalls:[],parent:w$,x:0,y:0},_$={type:n.GenericReference,id:"company-dto-func-company-variable-owner-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:nn},N$={id:Ug,type:n.OutputMap,version:1,declaration:Lt.properties[2],index:4,writesValues:[fv],parent:_$},M$={type:n.GenericReference,id:"company-dto-func-company-variable-bank-account-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:nn},V$={id:jg,type:n.OutputMap,version:1,declaration:Lt.properties[2],index:3,writesValues:[hv],parent:M$},L$={type:n.GenericReference,id:"company-dto-func-company-variable-name-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:nn},G$={id:Fg,type:n.OutputMap,version:1,declaration:Lt.properties[0],index:2,writesValues:[Yg],parent:L$},$$={type:n.GenericReference,id:"company-dto-func-company-variable-employess-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:nn},F$={id:$g,type:n.OutputMap,version:1,declaration:Lt.properties[3],index:1,writesValues:[yv],parent:$$},U$={type:n.GenericReference,id:"company-dto-func-company-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:nn},x$={id:Gg,type:n.OutputMap,version:1,declaration:je.properties[1],index:0,writesValues:[zg],parent:U$},j$={type:n.GenericReference,id:"company-dto-func-company-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:nn},k$={like:!1,inferred:!1,id:"company-dto-func-company-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Lt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:j$,defaultValue:null},q$={type:n.GenericReference,id:"company-dto-func-company-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:En},J$={type:n.GenericReference,id:"company-dto-func-company-variable-reads-value-ref-id",entityType:n.ArgumentDeclaration,entityId:Pc},W$={type:n.GenericReference,id:"company-dto-func-company-variable-called-by-id",entityType:n.FunctionDeclaration,entityId:En},mv={id:nn,type:n.VariableDeclaration,version:1,name:"Company",dataType:k$,description:"A variable holding a company",calledByError:[],calledByEntry:[W$],calledBySuccess:[],successCalls:[hv,fv,b$],errorCalls:[],readsValue:J$,writesValues:[],inputs:[],outputs:[x$,F$,G$,V$,N$],internalCalls:[],parent:q$,x:0,y:0},Y$={type:n.GenericReference,id:"company-dto-func-declaration-company-input-declaration-data-type-parent-ref-id",entityId:Pc,entityType:n.ArgumentDeclaration},H$={type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"company-dto-func-declaration-company-input-declaration-data-type-id",version:1,entity:Lt,asType:!1,isList:!1,isNullable:!1,constant:!1,like:!1,inferred:!1,parent:Y$,defaultValue:null},z$={type:n.GenericReference,id:"company-dto-func-declaration-company-input-declaration-parent-ref-id",entityId:En,entityType:n.FunctionDeclaration},Z$={type:n.ArgumentDeclaration,id:Pc,version:1,name:"Company",description:"The company to create a DTO for",required:!0,implements:null,dataType:H$,index:0,writesValues:[mv],parent:z$},K$={type:n.GenericReference,id:"company-dto-function-declaration-parent-ref-id",entityType:n.Project,entityId:Y},_c={type:n.FunctionDeclaration,id:En,version:1,name:"Company DTO",description:"Takes a company and returns a DTO of that company",inputs:[Z$],calls:[mv],implements:null,index:null,returnStatements:[Oc],collapsed:!1,private:!1,x:0,y:0,parent:K$},ua="exec-in-parallel-operation-call-id",pa="exec-sequentially-operation-call-id",yt="concurrency-and-wait-function-declaration-id",Tv="concurrency-and-wait-return-statement-id",Ev="concurrency-and-wait-return-declaration-id",Nc="exec-in-parallel-argument-map-id",bv="exec-sequentially-argument-map-id",Mc="wait-for-2-seconds-operation-id",Rv="wait-for-2-seconds-argument-map-id",Vc="map-company-dto-function-call-id",gv="map-company-dto-function-call-company-dto-output-map-id",ya="company-dto-variable-one-id",Lc="company-dto-variable-one-instance-id",X$="company-dto-variable-two-id",Q$={type:n.GenericReference,id:"returned-company-dto-data-type-parent-ref-id",entityType:n.ReturnDeclaration,entityId:Ev},eF={like:!1,inferred:!1,id:"returned-company-dto-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Lt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Q$},tF={type:n.GenericReference,id:"returned-company-dto-parent-ref-id",entityType:n.ReturnStatement,entityId:Tv},nF={type:n.GenericReference,id:"returned-company-dto-reads-value-ref-id",entityType:n.VariableDeclaration,entityId:ya},vv={isError:!1,id:Ev,type:n.ReturnDeclaration,version:1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",dataType:eF,implements:null,readsValue:nF,required:!0,index:0,parent:tF},rF={type:n.GenericReference,id:"concurrency-and-wait-return-statement-called-by-ref-id",entityType:n.Operation,entityId:Mc},iF={type:n.GenericReference,id:"concurrency-and-wait-return-statement-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yt},Iv={type:n.ReturnStatement,id:Tv,version:1,outputs:[vv],calledByError:[],calledByEntry:[],calledBySuccess:[rF],throws:null,x:0,y:0,parent:iF},aF={type:n.GenericReference,id:"company-dto-variable-two-called-by-ref-id",entityType:n.VariableInstance,entityId:Lc},sF={type:n.GenericReference,id:"company-dto-variable-two-reads-value-ref-id",entityType:n.VariableInstance,entityId:Lc},oF={type:n.GenericReference,id:"company-dto-variable-two-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yt},Dv={id:X$,type:n.VariableDeclaration,version:1,name:"Company DTO",description:null,dataType:null,inputs:[],outputs:[],successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[aF],internalCalls:[],writesValues:[vv],readsValue:sF,x:0,y:0,parent:oF},lF={type:n.GenericReference,id:"company-dto-variable-one-instance-called-by-ref-id",entityType:n.VariableDeclaration,entityId:ya},cF={type:n.GenericReference,id:"company-dto-variable-one-instance-reads-value-ref-id",entityType:n.VariableDeclaration,entityId:ya},dF={type:n.GenericReference,id:"company-dto-variable-one-instance-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yt},uF={type:n.GenericReference,id:"company-dto-variable-one-instance-declaration-ref-id",entityType:n.VariableDeclaration,entityId:ya},Pv={id:Lc,type:n.VariableInstance,version:1,declaration:uF,inputs:[],outputs:[],successCalls:[Dv],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[lF],internalCalls:[],writesValues:[Dv],readsValue:cF,x:0,y:0,parent:dF},pF={type:n.GenericReference,id:"company-dto-variable-one-called-by-ref-id",entityType:n.FunctionCall,entityId:Vc},yF={type:n.GenericReference,id:"company-dto-variable-one-reads-value-ref-id",entityType:n.OutputMap,entityId:gv},hF={type:n.GenericReference,id:"company-dto-variable-one-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yt},Av={id:ya,type:n.VariableDeclaration,version:1,name:"Company DTO",description:null,dataType:null,inputs:[],outputs:[],successCalls:[Pv],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[pF],internalCalls:[],writesValues:[Pv],readsValue:yF,x:0,y:0,parent:hF},Ov={type:n.GenericReference,id:"map-company-dto-function-call-company-input-map-parent-ref-id",entityType:n.FunctionCall,entityId:Vc},fF={id:"map-company-dto-function-call-company-input-map-id",type:n.InputMap,version:1,declaration:_c.inputs[0],name:null,description:null,defaultValue:null,index:0,readsValue:null,parent:Ov},mF={id:gv,type:n.OutputMap,version:1,declaration:Oc.outputs[0],writesValues:[Av],index:0,parent:Ov},TF={id:"map-company-dto-function-call-called-by-ref-id",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:yt},EF={id:"map-company-dto-function-call-parent-ref-id",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:yt},bF={id:Vc,type:n.FunctionCall,version:1,declaration:_c,successCalls:[Av],process:null,errorCalls:[],inputs:[fF],outputs:[mF],calledByError:[],calledByEntry:[TF],calledBySuccess:[],parent:EF,x:0,y:0,error:null},RF={type:n.GenericReference,id:"last-timestamp-variable-datatype-parent-ref-id",entityType:n.VariableDeclaration,entityId:DR},gF={type:n.GenericReference,id:"last-timestamp-variable-default-value-parent-ref-id",entityType:n.DataType,entityId:"last-timestamp-variable-datatype-id"},vF={like:!1,inferred:!1,id:"last-timestamp-variable-datatype-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:un,version:1,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:RF,defaultValue:{id:"last-timestamp-variable-default-value-id",type:n.PrimitiveValue,version:1,name:D.Date,value:null,autogeneration:{type:qe.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:gF,valueAsType:null}},IF={type:n.GenericReference,id:"last-timestamp-variable-main-project-ref-id",entityType:n.Project,entityId:Y},Gc={id:DR,type:n.VariableDeclaration,version:1,name:"Last registered current time",description:"A test variable that holds the last current date and time that was registered.",dataType:vF,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:IF},DF={type:n.GenericReference,id:"wait-for-2-seconds-argument-default-value-parent-ref-id",entityType:n.InputMap,entityId:Rv},PF={type:n.GenericReference,id:"wait-for-2-seconds-argument-map-parent-ref-id",entityType:n.Operation,entityId:Mc},AF={id:Rv,type:n.InputMap,version:1,declaration:er,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-2-seconds-argument-default-value-id",type:n.PrimitiveValue,version:1,value:2e3,valueAsType:null,autogeneration:null,name:D.Number,parent:DF},index:0,parent:PF},OF={type:n.GenericReference,id:"wait-for-2-seconds-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yt},SF={type:n.GenericReference,id:"wait-for-2-seconds-called-by-ref-one-id",entityType:n.FunctionDeclaration,entityId:pa},CF={type:n.GenericReference,id:"wait-for-2-seconds-called-by-ref-two-id",entityType:n.FunctionDeclaration,entityId:ua},Sv={id:Mc,type:n.Operation,version:1,declaration:qt,inputs:[AF],outputs:[],process:null,successCalls:[Iv],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[SF,CF],calledBySuccess:[],error:null,parent:OF},BF={type:n.GenericReference,id:"wait-for-random-amount-argument-default-value-parent-ref-id",entityType:n.InputMap,entityId:"wait-for-random-amount-input-map-id"},wF={type:n.GenericReference,id:"wait-for-random-amount-argument-map-parent-ref-id",entityType:n.Operation,entityId:"wait-for-random-amount-id"},_F={id:"wait-for-random-amount-input-map-id",type:n.InputMap,version:1,declaration:er,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-random-amount-argument-default-value-id",type:n.PrimitiveValue,version:1,value:null,valueAsType:null,autogeneration:{type:qe.Random,rangeStart:1e3,rangeEnd:4e3},name:D.Number,parent:BF},index:0,parent:wF},NF={type:n.GenericReference,id:"wait-for-random-amount-parent-ref-id",entityType:n.Project,entityId:Y},oi={id:"wait-for-random-amount-id",type:n.Operation,version:1,declaration:qt,inputs:[_F],process:null,outputs:[],successCalls:[],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,parent:NF},Cv="list-of-functions-variable-id",MF={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-argument-parent-ref-id",entityType:n.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},VF={id:"list-of-functions-variable-action-descriptor-dynamic-argument-id",type:n.ValueDescriptor,version:1,name:"Any input value",description:"Any input value that can be passed to the action",index:0,required:!1,dataType:null,parent:MF},LF={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-return-parent-ref-id",entityType:n.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},GF={id:"list-of-functions-variable-action-descriptor-dynamic-return-id",type:n.ValueDescriptor,version:1,name:"Any output value",description:"Any output value that can be returned to the action",index:0,required:!1,dataType:null,parent:LF},$F={type:n.GenericReference,id:"list-of-functions-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:Cv},FF={id:"list-of-functions-variable-action-descriptor-id",type:n.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:[VF],error:null,outputs:[GF],parent:null},UF={type:n.GenericReference,id:"list-of-functions-variable-data-type-default-parent-ref-id",entityType:n.DataType,entityId:"list-of-functions-variable-data-type-id"},xF={like:!1,inferred:!1,id:"list-of-functions-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:FF,asType:!1,isList:!0,isNullable:!1,defaultValue:{id:"list-of-functions-variable-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:D.ActionDescriptor,value:null,valueAsType:[oi,oi,oi,oi,oi],autogeneration:null,parent:UF},constant:!1,parent:$F},jF={type:n.GenericReference,id:"list-of-functions-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yt};n.GenericReference,n.InputMap;const kF={type:n.GenericReference,id:"list-of-functions-variable-writes-value-one-ref-id",entityType:n.InputMap,entityId:bv},qF={type:n.GenericReference,id:"list-of-functions-variable-writes-value-two-ref-id",entityType:n.InputMap,entityId:Nc},Bv={id:Cv,type:n.VariableDeclaration,version:1,name:"List of functions to execute",description:"A list of functions to be executed in parallel",dataType:xF,parent:jF,readsValue:null,writesValues:[kF,qF],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],inputs:[],outputs:[],internalCalls:[],x:0,y:0},JF={type:n.GenericReference,id:"exec-in-parallel-return-map-parent-ref-id",entityType:n.Operation,entityId:ua},WF={type:n.GenericReference,id:"exec-in-parallel-result-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yt},YF={type:n.GenericReference,id:"exec-in-parallel-result-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:"exec-in-parallel-return-map-id"},HF={type:n.GenericReference,id:"exec-in-parallel-result-variable-called-by-ref-id",entityType:n.Operation,entityId:ua},wv={id:"exec-in-parallel-result-variable-id",type:n.VariableInstance,version:1,declaration:Gc,readsValue:YF,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[HF],successCalls:[],errorCalls:[],internalCalls:[],parent:WF,x:0,y:0},zF={id:"exec-in-parallel-return-map-id",type:n.OutputMap,version:1,declaration:hl,writesValues:[wv],index:0,parent:JF},ZF={type:n.GenericReference,id:"exec-in-parallel-argument-map-parent-ref-id",entityType:n.Operation,entityId:ua},KF={id:Nc,type:n.InputMap,version:1,declaration:yl,name:null,description:null,readsValue:Bv,defaultValue:null,index:0,parent:ZF},XF={type:n.GenericReference,id:"exec-in-parallel-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yt},QF={type:n.GenericReference,id:"exec-in-parallel-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:yt},e4={process:null,id:ua,type:n.Operation,version:1,declaration:qt,inputs:[KF],outputs:[zF],successCalls:[Sv,wv],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[QF],calledBySuccess:[],error:null,parent:XF},t4={type:n.GenericReference,id:"exec-sequentially-return-map-parent-ref-id",entityType:n.Operation,entityId:pa},n4={type:n.GenericReference,id:"exec-sequentially-result-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yt},r4={type:n.GenericReference,id:"exec-sequentially-result-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:"exec-sequentially-return-map-id"},i4={type:n.GenericReference,id:"exec-sequentially-result-variable-called-by-ref-id",entityType:n.Operation,entityId:pa},_v={id:"exec-sequentially-result-variable-id",type:n.VariableInstance,version:1,declaration:Gc,readsValue:r4,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[i4],successCalls:[],errorCalls:[],internalCalls:[],parent:n4,x:0,y:0},a4={id:"exec-sequentially-return-map-id",type:n.OutputMap,version:1,declaration:ml,writesValues:[_v],index:0,parent:t4},s4={type:n.GenericReference,id:"exec-sequentially-argument-map-parent-ref-id",entityType:n.Operation,entityId:pa},o4={id:bv,type:n.InputMap,version:1,declaration:fl,name:null,description:null,readsValue:Bv,defaultValue:null,index:0,parent:s4},l4={type:n.GenericReference,id:"exec-sequentially-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yt},c4={type:n.GenericReference,id:"exec-sequentially-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:yt},d4={id:pa,type:n.Operation,version:1,declaration:fn,inputs:[o4],process:null,outputs:[a4],successCalls:[Sv,_v],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[c4],calledBySuccess:[],error:null,parent:l4},u4={type:n.GenericReference,id:"concurrency-and-wait-parent-ref-id",entityType:n.Project,entityId:Y},p4={type:n.FunctionDeclaration,id:yt,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:[d4,e4,bF],returnStatements:[Iv],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:u4},y4={type:n.GenericReference,id:"3521f2c8-a5c0-419c-8808-4fc6a73d0b78",entityType:n.ReturnDeclaration,entityId:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},h4={like:!1,inferred:!1,id:"ce8b9a30-afe9-4d4f-879f-1677efca2c47",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Lt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:y4},f4={type:n.GenericReference,id:"8ee66e38-b060-474e-a503-594063a8ec24",entityType:n.ReturnStatement,entityId:"40a23a98-d3b2-42b1-9652-b33779ad15aa"},m4={isError:!1,id:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.ReturnDeclaration,version:1,name:"Created company",description:"The new company that was created",implements:null,dataType:h4,readsValue:null,required:!0,index:0,parent:f4},T4={type:n.GenericReference,id:"9cb3c1e4-7250-4be6-be2a-69c2dd366d6f",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},E4={type:n.GenericReference,id:"c065fcdd-e054-4f95-941c-7eaa65c35d04",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},Nv={type:n.ReturnStatement,id:"40a23a98-d3b2-42b1-9652-b33779ad15aa",version:1,outputs:[m4],calledByError:[],calledByEntry:[E4],calledBySuccess:[],throws:null,x:0,y:0,parent:T4},b4={type:n.GenericReference,id:"312ef836-9e40-4d57-b177-03b7145ed074",entityType:n.Project,entityId:Y},R4={type:n.FunctionDeclaration,id:"5059c093-eda2-4efc-b7b4-aaaadd4d44de",version:1,name:"Create new company",description:null,inputs:[],calls:[Nv],index:null,implements:null,returnStatements:[Nv],collapsed:!1,private:!1,x:0,y:0,parent:b4},$c="get-current-date-and-time-func-decl-id",Mv="get-current-date-and-time-return-statement-id",Vv="get-current-date-and-time-return-declaration-id",Lv="get-current-date-and-time-return-declaration-data-type-id",g4={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-value-parent-ref-id",entityType:n.DataType,entityId:Lv},v4={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-parent-ref-id",entityType:n.ReturnDeclaration,entityId:Vv},I4={type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,id:Lv,version:1,entity:un,asType:!1,isList:!1,isNullable:!1,like:!1,inferred:!1,defaultValue:{id:"last-timestamp-variable-default-value-id",type:n.PrimitiveValue,version:1,value:null,name:D.Date,valueAsType:null,autogeneration:{type:qe.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:g4},constant:!1,parent:v4},D4={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-parent-ref-id",entityType:n.ReturnStatement,entityId:Mv};n.ReturnDeclaration;const P4={type:n.GenericReference,id:"get-current-date-and-time-return-statement-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:$c},A4={type:n.GenericReference,id:"get-current-date-and-time-return-statement-parent-ref-id",entityType:n.FunctionDeclaration,entityId:$c};n.ReturnStatement;const O4={type:n.GenericReference,id:"concurrency-and-wait-parent-ref-id",entityType:n.Project,entityId:Y},S4={type:n.FunctionDeclaration,id:$c,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:O4},Gv="do-math-return-statement-id",$v="do-math-return-declaration-id",C4={type:n.GenericReference,id:"do-math-func-var-to-return-one-ref-id",entityType:n.VariableDeclaration,entityId:"do-math-func-var-to-return-one-id"},B4={like:!1,inferred:!1,id:"do-math-func-var-to-return-one-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:C4},w4={type:n.GenericReference,id:"do-math-func-decl-ref-two-id",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},_4={type:n.GenericReference,id:"do-math-func-var-to-return-one-map-ref-id",entityType:n.ReturnDeclaration,entityId:$v},N4={type:n.VariableDeclaration,id:"do-math-func-var-to-return-one-id",version:1,description:null,name:"Fixed result",dataType:B4,readsValue:null,writesValues:[_4],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:w4},M4={type:n.GenericReference,id:"96ec244e-594b-45f7-802b-6dc3056920f6",entityType:n.ReturnStatement,entityId:Gv},V4={type:n.GenericReference,id:"d120c0cc-9d13-4e45-90e2-4e1ee825ca46",entityType:n.ReturnDeclaration,entityId:"873a3556-4911-4141-b2a0-49c677b56fb4"},L4={like:!1,inferred:!1,id:"da91aa23-9985-49ac-a8bf-9d623ba1ba8f",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:V4},G4={isError:!1,id:$v,version:1,type:n.ReturnDeclaration,name:"Result",description:null,implements:null,dataType:L4,readsValue:N4,required:!0,index:0,parent:M4},$4={type:n.GenericReference,id:"57fd93e4-93a1-484e-82eb-4dd15d2d0e24",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},F4={type:n.GenericReference,id:"0a86e8d5-ab21-476e-a482-b928cbf351e3",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Fv={type:n.ReturnStatement,id:Gv,version:1,outputs:[G4],calledByError:[],calledByEntry:[],calledBySuccess:[$4],parent:F4,throws:null,x:0,y:0},U4={type:n.GenericReference,id:"a2db26be-57f2-48e5-9769-cdbf0d95dc7c",entityType:n.VariableDeclaration,entityId:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a"},x4={like:!1,inferred:!1,id:"c3e9d5f0-204f-45f9-85f7-e1b56b468388",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:U4},j4={type:n.GenericReference,id:"692122c5-610a-4504-90dd-f5a5202d116c",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},k4={type:n.GenericReference,id:"do-math-func-return-one-called-by",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},q4={type:n.GenericReference,id:"6dceb501-be5b-4252-afb4-3c0d08abba33",entityType:n.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},Uv={type:n.VariableDeclaration,id:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a",version:1,name:"Result",dataType:x4,description:null,readsValue:q4,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[k4],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:j4},J4={type:n.GenericReference,id:"5440f523-af38-4981-8035-89d162fe8041",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},W4={type:n.GenericReference,id:"8c482c35-e674-4713-a1dd-63c3d13b611c",entityType:n.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},Y4={type:n.GenericReference,id:"c0a299cd-5869-4930-8cf0-90e3ceb8a903",entityType:n.VariableDeclaration,entityId:"46b2fe23-b417-4887-a35d-09b186679172"},H4={like:!1,inferred:!1,id:"51c0c1df-2ee3-41df-ae52-ac512d8cf795",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Y4},z4={type:n.GenericReference,id:"do-math-func-return-two-called-by",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},xv={type:n.VariableDeclaration,id:"46b2fe23-b417-4887-a35d-09b186679172",version:1,name:"Total",description:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[z4],successCalls:[],errorCalls:[],dataType:H4,readsValue:W4,writesValues:[],internalCalls:[],parent:J4,x:0,y:0},jv={type:n.GenericReference,id:"6e4d776e-6af2-4321-b630-c78110fd677c",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Z4={type:n.GenericReference,id:"5b60955b-2486-40b6-bb24-ffd97ccd8902",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},K4={type:n.GenericReference,id:"1a49923f-bc6f-453f-a438-e74e5475c2a9",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},X4={type:n.GenericReference,id:"02bfde0a-b757-4072-9613-6e9c7c9a424a",entityType:n.ArgumentDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},kv={id:"928953b0-0e3f-4d8c-ae5a-84620b4b8c68",version:1,type:n.InputMap,declaration:el,name:null,description:null,readsValue:X4,defaultValue:null,index:0,parent:K4},Q4={id:"64752080-ee0f-4cfe-9897-a0668f2b2aca",type:n.OutputMap,version:1,declaration:rl,writesValues:[Uv,xv],index:0,parent:Z4},eU={type:n.GenericReference,id:"d235a7f6-07ff-4f35-98d2-8f42dd59cf9f",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},tU={id:"8827e8e9-9381-4ad7-8f61-5419c23c9136",type:n.GenericReference,entityType:n.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},qv={id:"a5525249-0eb5-472b-97bc-5e4cc0d75aee",version:1,type:n.InputMap,declaration:tl,name:null,description:null,readsValue:tU,defaultValue:null,index:1,parent:eU},nU={type:n.Operation,id:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e",declaration:qa,version:1,inputs:[kv,qv],outputs:[Q4],calledByError:[],calledByEntry:[jv],calledBySuccess:[],process:null,successCalls:[Fv,Uv,xv],errorCalls:[],parent:jv,error:null,x:0,y:0},rU={type:n.GenericReference,id:"a2c40226-2270-4963-a865-c777ba79c551",entityType:n.DataType,entityId:"a350a9e9-25ee-477f-a83d-9e98ed2451662"},iU={id:"f47731b3-f278-4ab5-aeb2-24519c1119fb",type:n.GenericReference,entityId:"72a338d8-0183-4ca2-8760-227517854595",entityType:n.ArgumentDeclaration},Jv={like:!1,inferred:!1,id:"a350a9e9-25ee-477f-a83d-9e98ed2451662",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"do-math-func-argument-two-default-value-id",type:n.PrimitiveValue,version:1,value:1,name:D.Number,parent:rU,valueAsType:null,autogeneration:null},constant:!1,parent:iU},aU={type:n.GenericReference,id:"5f5d8dd0-7f3b-40cd-9f84-83d976887eaf",entityType:n.ArgumentDeclaration,entityId:"649bf0a4-6532-44aa-9818-a03d1c6564e9"},sU={type:n.GenericReference,id:"ca018d0f-a8b3-4c7e-a408-c8b372d04aff",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},oU={type:n.GenericReference,id:"do-math-func-var-called-by-ref",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Wv={type:n.VariableDeclaration,id:"72a338d8-0183-4ca2-8760-227517854595",version:1,name:"Z",description:null,dataType:Jv,inputs:[],outputs:[],calledByError:[],calledByEntry:[oU],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:aU,writesValues:[qv],internalCalls:[],x:0,y:0,parent:sU},lU={entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",type:n.GenericReference,id:"af0cf105-4075-425f-aecc-b25d3600fcc4"},cU={id:"649bf0a4-6532-44aa-9818-a03d1c6564e9",type:n.ArgumentDeclaration,version:1,name:"Z",description:"The number to add",dataType:Jv,implements:null,writesValues:[Wv],required:!0,index:1,parent:lU},dU={type:n.GenericReference,id:"56953b5d-3e43-4dea-a62c-f3e868ba81bb",entityType:n.Project,entityId:Y},uU={id:"868defc8-5c95-48ed-942d-257e8b9b9b00",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},pU={type:n.GenericReference,id:"35167664-a793-49f1-9eaf-fb57eac30897",entityType:n.DataType,entityId:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2"},yU={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:n.GenericReference,entityId:"d8895765-f705-457e-85fa-25d130926769",entityType:n.ArgumentDeclaration},hU={like:!1,inferred:!1,id:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"do-math-func-argument-one-default-value-id",type:n.PrimitiveValue,version:1,value:5,name:D.Number,parent:pU,valueAsType:null,autogeneration:null},constant:!1,parent:yU},fU={id:"d8895765-f705-457e-85fa-25d130926769",type:n.ArgumentDeclaration,version:1,name:"N",dataType:hU,description:"The number to add",implements:null,writesValues:[kv],required:!0,index:0,parent:uU},mU={type:n.FunctionDeclaration,id:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",version:1,name:"Do math",description:"This function does math",inputs:[fU,cU],calls:[nU,Wv],implements:null,index:null,collapsed:!1,returnStatements:[Fv],private:!1,x:0,y:0,parent:dU},ht="replace-bank-account-in-company-func-declaration-id",Fc="company-entity-to-modify-arg-declaration-id",Uc="account-number-to-create-arg-decl-id",li="company-main-variable-id",ci="search-person-by-id-id",Yv="new-bank-account-owner-arg-decl-id",Hv="search-person-by-id-output-declaration-id",xc="search-person-by-id-output-entity-map-id",ha="person-not-empty-condition-id",zs="create-new-bank-account-instance-operation-id",zv="create-new-bank-account-instance-operation-output-entity-map-id",Zv="company-bank-account-output-map-id",jc="old-bank-account-var-declaration-id",Kv="old-bank-account-var-instance-id",Xv="company-variable-instance-id",kc="delete-bank-account-internal-call-id",fa="new-bank-account-data-variable-declaration-id",TU={type:n.GenericReference,id:"company-variable-instance-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},EU={type:n.GenericReference,id:"company-variable-instance-called-by-ref-id",entityType:n.InternalCall,entityId:kc},bU={type:n.GenericReference,id:"company-variable-instance-declaration-ref-id",entityType:n.VariableDeclaration,entityId:li},RU={type:n.GenericReference,id:"bank-account-input-map-parent-ref-id",entityType:n.VariableInstance,entityId:Xv},gU={type:n.GenericReference,id:"bank-account-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:zv},Qv={type:n.InputMap,id:"bank-account-input-map-id",version:1,readsValue:gU,declaration:mc,name:null,description:null,index:0,defaultValue:null,parent:RU},vU={type:n.VariableInstance,id:Xv,version:1,declaration:bU,inputs:[Qv],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[EU],successCalls:[],errorCalls:[],internalCalls:[],parent:TU,readsValue:null,writesValues:[],x:0,y:0},IU={type:n.GenericReference,id:"bank-account-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:li},DU={type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"bank-account-variable-data-type-id",version:1,entity:ii,asType:!1,isList:!1,isNullable:!1,constant:!1,like:!1,inferred:!1,defaultValue:null,parent:IU},PU={type:n.GenericReference,id:"bank-account-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:Zv},AU={type:n.GenericReference,id:"bank-account-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},OU={type:n.GenericReference,id:"bank-account-variable-called-by-ref-id",entityType:n.VariableDeclaration,entityId:li},SU={type:n.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-id",entityType:n.Operation,entityId:zs};n.GenericReference,n.VariableInstance;const CU={type:n.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-two-id",entityType:n.VariableDeclaration,entityId:jc},BU={type:n.GenericReference,id:"old-bank-account-variable-trigger-delete-decl-ref-id",entityType:n.VariableDeclaration,entityId:jc},wU={type:n.GenericReference,id:"bank-account-variable-parent-ref-two-id",entityType:n.FunctionDeclaration,entityId:ht},_U={type:n.GenericReference,id:"old-bank-account-variable-trigger-delete-internal-call-ref-id",entityType:n.InternalCall,entityId:kc},NU={type:n.VariableInstance,id:Kv,version:1,declaration:BU,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],internalCalls:[_U],errorCalls:[],parent:wU,readsValue:null,writesValues:[],x:0,y:0},eI={process:null,type:n.InternalCall,id:kc,version:1,declaration:xl,index:0,successCalls:[vU],errorCalls:[],inputs:[],outputs:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[SU,CU],parent:NU},tI={type:n.VariableDeclaration,id:jc,version:1,name:"Old bank account",description:"The existing bank account that needs to be replaced in the company entity",dataType:DU,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[OU],successCalls:[eI],internalCalls:[],errorCalls:[],parent:AU,readsValue:PU,writesValues:[],x:0,y:0},MU={type:n.GenericReference,id:"company-variable-declaration-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:li},VU={type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"company-variable-declaration-data-type-id",version:1,entity:Lt,asType:!1,isList:!1,isNullable:!1,like:!1,inferred:!1,constant:!1,defaultValue:null,parent:MU},LU={type:n.GenericReference,id:"company-variable-declaration-reads-value-ref-id",entityType:n.ArgumentDeclaration,entityId:Fc},GU={type:n.GenericReference,id:"company-variable-declaration-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},$U={type:n.GenericReference,id:"company-variable-declaration-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:ht},FU={type:n.GenericReference,id:"company-bank-account-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:li},UU={id:Zv,version:1,type:n.OutputMap,declaration:mc,index:0,parent:FU,writesValues:[tI]},nI={type:n.VariableDeclaration,id:li,version:1,name:"Company",description:"The company entity that was passed as an argument to the parent function",dataType:VU,inputs:[],outputs:[UU],calledByError:[],calledByEntry:[$U],calledBySuccess:[],successCalls:[tI],errorCalls:[],parent:GU,internalCalls:[],readsValue:LU,writesValues:[],x:0,y:0},xU={type:n.GenericReference,id:"create-new-bank-account-account-owner-dynamic-input-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:fa},jU={id:"create-new-bank-account-account-owner-dynamic-input-map-reads-value-ref-id",type:n.GenericReference,entityType:n.OutputMap,entityId:xc},rI={id:"create-new-bank-account-account-owner-dynamic-input-map-id",version:1,type:n.InputMap,declaration:null,name:"Account owner",description:null,readsValue:jU,index:1,defaultValue:null,parent:xU},kU={id:"create-new-bank-account-account-number-dynamic-input-map-reads-value-ref-id",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:Uc},qU={type:n.GenericReference,id:"create-new-bank-account-account-number-dynamic-input-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:fa},iI={id:"create-new-bank-account-account-number-dynamic-input-map-id",version:1,type:n.InputMap,declaration:null,name:"Account number",description:null,readsValue:kU,defaultValue:null,index:0,parent:qU},aI={type:n.GenericReference,id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",entityType:n.Operation,entityId:zs},JU={id:"create-new-bank-account-instance-operation-entity-to-create-input-map-id",version:1,type:n.InputMap,declaration:tr.inputs[0],name:null,description:null,index:0,readsValue:null,defaultValue:{type:n.PrimitiveValue,name:D.EntityTemplate,value:null,valueAsType:ii,autogeneration:null},parent:aI},WU={type:n.GenericReference,id:"create-new-bank-account-instance-operation-entity-data-input-map-reads-value-ref-id",entityType:n.VariableDeclaration,entityId:fa},sI={id:"create-new-bank-account-instance-operation-entity-data-input-map-id",version:1,type:n.InputMap,declaration:tr.inputs[1],name:null,description:null,index:1,readsValue:WU,defaultValue:null,parent:aI},YU={type:n.GenericReference,id:"create-new-bank-account-instance-operation-output-entity-map-parent-ref-id",entityType:n.Operation,entityId:zs},HU={id:zv,version:1,type:n.OutputMap,declaration:tr.outputs[0],index:0,writesValues:[Qv],parent:YU},zU={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",entityType:n.Condition,entityId:ha},ZU={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",entityType:n.VariableDeclaration,entityId:fa},KU={type:n.GenericReference,id:"create-new-bank-account-instance-operation-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},oI={process:null,id:zs,type:n.Operation,version:1,declaration:tr,inputs:[JU,sI],error:null,outputs:[HU],successCalls:[eI],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[ZU,zU],parent:KU,x:0,y:0},XU={type:n.GenericReference,id:"new-bank-account-data-variable-declaration-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},QU={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",entityType:n.Condition,entityId:ha},ex={id:fa,type:n.VariableDeclaration,version:1,inputs:[iI,rI],dataType:null,name:"New bank Account's data",description:null,readsValue:null,outputs:[],writesValues:[sI],successCalls:[oI],errorCalls:[],internalCalls:[],calledByError:[],calledBySuccess:[QU],calledByEntry:[],x:0,y:0,parent:XU},tx={id:"person-not-found-thrown-error-datatype-default-value-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-thrown-error-datatype-id",entityType:n.DataType},nx={id:"person-not-found-thrown-error-datatype-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-thrown-error-id",entityType:n.ReturnDeclaration};n.DataType,n.PrimitiveValue,D.String;const rx={id:"person-not-found-thrown-error-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-error-return-statement-id",entityType:n.ReturnStatement},ix={isError:!0,id:"person-not-found-thrown-error-id",type:n.ReturnDeclaration,version:1,dataType:null,name:"Person not found error",description:"If the person entity was not found this error is outputted",parent:rx,implements:null,required:!0,index:0,readsValue:null},ax={id:"person-not-found-error-return-statement-called-by-ref-id",type:n.GenericReference,entityId:ha,entityType:n.Condition},sx={id:"person-not-found-error-return-statement-parent-ref-id",type:n.GenericReference,entityId:ht,entityType:n.FunctionDeclaration},ox={id:"person-not-found-error-return-statement-id",type:n.ReturnStatement,version:1,throws:ix,outputs:[],calledBySuccess:[],calledByError:[ax],calledByEntry:[],x:0,y:0,parent:sx},lx={type:n.GenericReference,id:"person-not-empty-condition-called-by-ref-id",entityType:n.Search,entityId:ci},cx={type:n.GenericReference,id:"person-not-empty-condition-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},dx={type:n.GenericReference,id:"person-entity-to-check-map-reads-value-ref-id",entityType:n.OutputMap,entityId:xc},ux={type:n.GenericReference,id:"person-not-empty-condition-ref-two-id",entityType:n.Condition,entityId:ha},lI={id:"person-entity-to-check-map-id",version:1,type:n.InputMap,declaration:lr.inputs[0],name:null,description:null,readsValue:dx,index:0,defaultValue:null,parent:ux},px={type:n.Condition,id:ha,version:1,declaration:lr,inputs:[lI],calledByError:[],calledByEntry:[],calledBySuccess:[lx],successCalls:[ex,oI],errorCalls:[ox],x:0,y:0,parent:cx},yx={type:n.GenericReference,id:"search-person-by-id-output-entity-declaration-datatype-parent-ref-id",entityType:n.ValueDescriptor,entityId:Hv},hx={like:!1,inferred:!1,id:"search-person-by-id-output-entity-declaration-datatype-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,constant:!1,asType:!1,isNullable:!1,entity:pt,defaultValue:null,parent:yx},fx={type:n.GenericReference,id:"search-person-by-id-output-entity-declaration-parent-ref-id",entityType:n.Search,entityId:ci},cI={id:Hv,type:n.ValueDescriptor,version:1,dataType:hx,name:"Found person",description:"The person entity that was found",parent:fx,required:!0,index:0},mx={type:n.GenericReference,id:"search-person-by-id-output-entity-map-parent-ref-id",entityType:n.Search,entityId:ci},Tx={type:n.OutputMap,id:xc,version:1,declaration:cI,parent:mx,writesValues:[lI,rI],index:0},Ex={id:"search-person-by-id-input-declaration-datatype-parent-ref-id",type:n.GenericReference,entityId:"search-person-by-id-input-declaration-id",entityType:n.ArgumentDeclaration};n.DataType;const bx={type:n.GenericReference,id:"search-person-by-id-input-declaration-parent-ref-id",entityType:n.Search,entityId:ci},dI={id:"search-person-by-id-input-declaration-id",type:n.ArgumentDeclaration,version:1,dataType:null,name:"Person ID",description:"The unique identifier (ID) property of the person entity",implements:null,index:0,required:!0,parent:bx,writesValues:[]},Rx={type:n.GenericReference,id:"search-person-by-id-input-map-parent-ref-id",entityType:n.Search,entityId:ci},gx={id:"search-person-by-id-input-map-reads-value-ref-id",type:n.GenericReference,entityId:Yv,entityType:n.ArgumentDeclaration},uI={type:n.InputMap,id:"search-person-by-id-input-map",version:1,declaration:dI,name:null,description:null,readsValue:gx,defaultValue:null,parent:Rx,index:0},vx={from:{name:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},items:[{name:"*"}],where:[{name:"id",value:"{{dynamic_value_1}}"}]},Ix={type:n.GenericReference,id:"search-person-by-id-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},Dx={type:n.GenericReference,id:"search-person-by-id-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:ht},Px={type:n.Search,id:ci,version:1,name:"Search person by ID",description:"Searches for a person entity given the UUID",query:vx,inputsDeclarations:[dI],inputs:[uI],outputsDeclarations:[cI],outputs:[Tx],calledByError:[],calledByEntry:[Dx],calledBySuccess:[],error:null,successCalls:[px],errorCalls:[],parent:Ix,x:0,y:0};n.GenericReference,n.DataType;const Ax={id:"account-number-to-create-arg-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:Uc,entityType:n.ArgumentDeclaration},Ox={like:!1,inferred:!1,id:"account-number-to-create-arg-decl-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:Ax},Sx={entityType:n.FunctionDeclaration,entityId:ht,type:n.GenericReference,id:"account-number-to-create-arg-decl-parent-ref-id"},Cx={id:Uc,type:n.ArgumentDeclaration,version:1,name:"Account number",description:"The account number of the new bank account entity",dataType:Ox,implements:null,writesValues:[iI],required:!0,index:1,parent:Sx};n.GenericReference,n.DataType;const Bx={id:"new-bank-account-owner-arg-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:"new-bank-account-owner-arg-decl-id",entityType:n.ArgumentDeclaration},wx={like:!1,inferred:!1,id:"new-bank-account-owner-arg-decl-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ka,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:Bx},_x={entityType:n.FunctionDeclaration,entityId:ht,type:n.GenericReference,id:"new-bank-account-owner-arg-decl-parent-ref-id"},Nx={id:Yv,type:n.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",dataType:wx,implements:null,writesValues:[uI],required:!1,index:1,parent:_x},Mx={type:n.GenericReference,id:"replace-bank-account-in-company-parent-ref",entityType:n.Project,entityId:Y},Vx={type:n.GenericReference,id:"company-entity-to-modify-parent-ref",entityType:n.FunctionDeclaration,entityId:ht};n.GenericReference,n.DataType;const Lx={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:n.GenericReference,entityId:Fc,entityType:n.ArgumentDeclaration},Gx={like:!1,inferred:!1,id:"company-entity-to-modify-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:Lx},$x={id:Fc,type:n.ArgumentDeclaration,version:1,name:"Company",dataType:Gx,implements:null,description:"The company to replace the bank account for",writesValues:[nI],required:!0,index:0,parent:Vx},Fx={type:n.FunctionDeclaration,id:ht,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:[$x,Cx,Nx],index:null,implements:null,calls:[Px,nI],collapsed:!1,returnStatements:[],private:!1,x:0,y:0,parent:Mx},Ux={type:n.GenericReference,id:"e0a937bd-3a85-4037-a973-916985b9f94b",entityType:n.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},xx={type:n.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:Ux,x:0,y:0},jx={type:n.GenericReference,id:"948e6869-ae5b-4914-bea0-b9f02ad6a014",entityType:n.Project,entityId:"23b23d8b-1929-4505-a350-745c8550e731"},kx={type:n.GenericReference,id:"f3d6f2c6-1b3e-4e9d-8c9d-5b5b9f0b8d9c",entityType:n.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},qx={type:n.InstalledProject,version:1,id:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6",name:"Third Party Installed Project",description:null,functions:[xx],events:[],implements:kx,parent:jx,x:0,y:0},qc="global-counted-test-loop-id",pI="global-counted-test-loop-body-id",yI="global-counted-test-loop-body-current-iteration-argument-declaration-id",Jx={type:n.GenericReference,id:"global-counted-test-loop-body-current-iteration-argument-declaration-data-type-parent-ref-id",entityId:yI,entityType:n.ArgumentDeclaration},Wx={like:!1,inferred:!1,id:"global-counted-test-loop-body-current-iteration-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:null,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:Jx},Yx={id:"global-counted-test-loop-body-current-iteration-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:pI,entityType:n.FunctionDeclaration},Hx={id:yI,type:n.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",dataType:Wx,implements:Ol,required:!0,index:0,writesValues:[],parent:Yx},zx={id:"global-counted-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:qc,entityType:n.Loop},Zx={id:pI,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[Hx],calls:[],implements:Sl,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:zx},di="random-company-employee-test-variable-id",Jc="manager-global-variable-id",hI="global-user-instance-id",bn="employee-mapped-dto-variable-id",kn="employee-mapped-dto-variable-instance-id",fI="random-employee-id-output-map-id",mI="random-employee-birth-date-output-map-id",TI="random-employee-department-output-map-id",EI="random-employee-manager-output-map-id",bI="manager-global-id-output-map-id",RI="global-user-instance-id-output-map-id",Kx="employee-mapped-dto-requester-id-input-map-id",gI="employee-mapped-dto-now-timestamp-input-map-id",Xx="employee-mapped-dto-id-input-map-id",Qx="employee-mapped-dto-birth-date-input-map-id",ej="employee-mapped-dto-department-input-map-id",tj="employee-mapped-dto-manager-input-map-id",nj={id:"global-counted-test-loop-iteration-number-input-map-parent-ref-id",type:n.GenericReference,entityId:qc,entityType:n.Loop};n.GenericReference,n.VariableDeclaration;const rj={id:"global-counted-test-loop-iteration-number-input-map-id",type:n.InputMap,version:1,name:null,description:null,declaration:is.inputs[0],defaultValue:null,readsValue:null,index:0,parent:nj},ij={id:"global-counted-test-loop-parent-ref-id",type:n.GenericReference,entityId:Y,entityType:n.Project},aj={id:"global-counted-test-loop-called-by-success-ref-id",type:n.GenericReference,entityId:kn,entityType:n.VariableDeclaration},sj={id:qc,type:n.Loop,version:1,declaration:is,inputs:[rj],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:Zx,calledByError:[],calledByEntry:[],calledBySuccess:[aj],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:ij},Wc="global-object-keys-test-loop-id",vI="global-object-keys-test-loop-body-id",II="global-object-keys-test-loop-body-current-iteration-argument-declaration-id",oj={type:n.GenericReference,id:"global-object-keys-test-loop-body-current-iteration-argument-declaration-data-type-parent-ref-id",entityId:II,entityType:n.ArgumentDeclaration},lj={like:!1,inferred:!1,id:"global-object-keys-test-loop-body-current-iteration-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:null,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:oj},cj={id:"global-object-keys-test-loop-body-current-iteration-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:vI,entityType:n.FunctionDeclaration},dj={id:II,type:n.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",dataType:lj,implements:Pl,required:!0,index:0,writesValues:[],parent:cj},uj={id:"global-object-keys-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:Wc,entityType:n.Loop},pj={id:vI,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[dj],calls:[],implements:Mi,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:uj},yj={id:"global-object-keys-test-loop-iteration-object-input-map-parent-ref-id",type:n.GenericReference,entityId:Wc,entityType:n.Loop},hj={id:"global-object-keys-test-loop-iteration-object-input-map-reads-value-ref-id",type:n.GenericReference,entityId:bn,entityType:n.VariableDeclaration},DI={id:"global-object-keys-test-loop-iteration-object-input-map-id",type:n.InputMap,version:1,name:null,description:null,declaration:Mi.inputs[0],defaultValue:null,readsValue:hj,index:0,parent:yj},fj={id:"global-object-keys-test-loop-parent-ref-id",type:n.GenericReference,entityId:Y,entityType:n.Project},mj={id:"global-object-keys-test-loop-called-by-success-ref-two-id",type:n.GenericReference,entityId:kn,entityType:n.VariableDeclaration},Tj={id:"global-object-keys-test-loop-called-by-success-ref-one-id",type:n.GenericReference,entityId:bn,entityType:n.VariableDeclaration},Yc={id:Wc,type:n.Loop,version:1,declaration:Mi,inputs:[DI],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:pj,calledByError:[],calledByEntry:[],calledBySuccess:[Tj,mj],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:fj},Hc="global-object-values-test-loop-id",PI="global-object-values-test-loop-body-id",AI="global-object-values-test-loop-body-current-iteration-argument-declaration-id",Ej={type:n.GenericReference,id:"global-object-values-test-loop-body-current-iteration-argument-declaration-data-type-parent-ref-id",entityId:AI,entityType:n.ArgumentDeclaration},bj={like:!1,inferred:!1,id:"global-object-values-test-loop-body-current-iteration-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:null,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:Ej},Rj={id:"global-object-values-test-loop-body-current-iteration-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:PI,entityType:n.FunctionDeclaration},gj={id:AI,type:n.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",dataType:bj,implements:Al,required:!0,index:0,writesValues:[],parent:Rj},vj={id:"global-object-values-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:Hc,entityType:n.Loop},Ij={id:PI,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[gj],calls:[],implements:Vi,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:vj},Dj={id:"global-object-values-test-loop-iteration-object-input-map-parent-ref-id",type:n.GenericReference,entityId:Hc,entityType:n.Loop},Pj={id:"global-object-values-test-loop-iteration-object-input-map-reads-value-ref-id",type:n.GenericReference,entityId:kn,entityType:n.VariableDeclaration},OI={id:"global-object-values-test-loop-iteration-object-input-map-id",type:n.InputMap,version:1,name:null,description:null,declaration:Vi.inputs[0],defaultValue:null,readsValue:Pj,index:0,parent:Dj},Aj={id:"global-object-values-test-loop-parent-ref-id",type:n.GenericReference,entityId:Y,entityType:n.Project},Oj={id:"global-object-values-test-loop-called-by-success-ref-id",type:n.GenericReference,entityId:kn,entityType:n.VariableDeclaration},SI={id:Hc,type:n.Loop,version:1,declaration:Vi,inputs:[OI],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:Ij,calledByError:[],calledByEntry:[],calledBySuccess:[Oj],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:Aj},zc="global-test-iterate-over-string-loop-id",Zc="global-test-iterate-over-string-loop-body-id",Zs="global-test-iterate-over-string-loop-body-current-iteration-argument-declaration-id",CI="global-test-iterate-over-string-loop-iteration-list-input-map-id",Sj={type:n.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-argument-declaration-data-type-parent-ref-id",entityId:Zs,entityType:n.ArgumentDeclaration},Cj={like:!1,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:null,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:Sj},Bj={id:"global-test-iterate-over-string-loop-body-current-iteration-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Zc,entityType:n.FunctionDeclaration},wj={id:Zs,type:n.ArgumentDeclaration,version:1,name:"Current character",description:"The current character value being processed.",dataType:Cj,implements:vl,required:!0,index:1,writesValues:[],parent:Bj},_j={type:n.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-argument-declaration-data-type-parent-ref-id",entityId:Zs,entityType:n.ArgumentDeclaration},Nj={like:!1,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:null,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:_j},Mj={id:"global-test-iterate-over-string-loop-body-current-iteration-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Zc,entityType:n.FunctionDeclaration},Vj={id:Zs,type:n.ArgumentDeclaration,version:1,name:"Current character",description:"The current character value being processed.",dataType:Nj,implements:Il,required:!0,index:0,writesValues:[],parent:Mj},Lj={id:"global-test-iterate-over-string-loop-body-parent-ref-id",type:n.GenericReference,entityId:zc,entityType:n.Loop},Gj={id:Zc,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[Vj,wj],calls:[],implements:Dl,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:Lj},$j={id:"global-test-iterate-over-string-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:zc,entityType:n.Loop},Fj={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-parent-ref-id",type:n.GenericReference,entityId:CI,entityType:n.InputMap},Uj={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-id",type:n.PrimitiveValue,name:D.String,version:1,value:"Hello",valueAsType:null,autogeneration:{type:qe.Random,rangeStart:4,rangeEnd:5},parent:Fj},xj={id:CI,type:n.InputMap,version:1,name:null,description:null,declaration:rs.inputs[0],defaultValue:Uj,readsValue:null,index:0,parent:$j},jj={id:"global-test-iterate-over-string-loop-parent-ref-id",type:n.GenericReference,entityId:Y,entityType:n.Project},kj={id:zc,type:n.Loop,version:1,declaration:rs,inputs:[xj],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:Gj,calledByError:[],calledByEntry:[],calledBySuccess:[],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:jj},Kc="iterate-over-list-loop-id",BI="iterate-over-list-loop-body-id",wI="iterate-over-list-loop-body-current-iteration-argument-declaration-id",qj={type:n.GenericReference,id:"iterate-over-list-loop-body-current-iteration-argument-declaration-data-type-parent-ref-id",entityId:wI,entityType:n.ArgumentDeclaration},Jj={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:null,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:qj},Wj={id:"iterate-over-list-loop-body-current-iteration-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:BI,entityType:n.FunctionDeclaration},Yj={id:wI,type:n.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",dataType:Jj,implements:ts,required:!0,index:0,writesValues:[],parent:Wj},Hj={id:"iterate-over-list-loop-body-parent-ref-id",type:n.GenericReference,entityId:Kc,entityType:n.Loop},zj={id:BI,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[Yj],calls:[],implements:ns,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:Hj},Zj={id:"iterate-over-list-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:Kc,entityType:n.Loop},Kj={id:"iterate-over-list-loop-iteration-list-input-map-id",type:n.InputMap,version:1,name:null,description:null,declaration:rr.inputs[0],defaultValue:null,readsValue:null,index:0,parent:Zj},Xj={id:"iterate-over-list-loop-parent-ref-id",type:n.GenericReference,entityId:Y,entityType:n.Project},Qj={id:Kc,type:n.Loop,version:1,declaration:rr,inputs:[Kj],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:zj,calledByError:[],calledByEntry:[],calledBySuccess:[],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:Xj};var Xc=(r=>(r.EQ="eq",r.NEQ="neq",r.GT="gt",r.GTE="gte",r.LT="lt",r.LTE="lte",r.LIKE="like",r.ILIKE="ilike",r))(Xc||{}),_I=(r=>(r.COUNT="count",r.SUM="sum",r.AVG="avg",r.MIN="min",r.MAX="max",r))(_I||{});const e8={from:{name:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},items:{from:{name:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},items:[{function:{name:_I.COUNT,items:["f8310850-a87e-405c-b182-4f1d5fa49240"]},alias:"employee_count"}],where:[{name:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3",operation:Xc.NEQ,value:null}]},where:[{name:"employee_count",operation:Xc.GT,value:1}]},t8={id:"find-companies-with-multiple-employees-and-bank-account-search-parent-ref-id",type:n.GenericReference,entityId:Y,entityType:n.Project},n8={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-parent-ref-id",type:n.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",entityType:n.Search},NI={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-id",type:n.ValueDescriptor,version:1,name:"companies",description:"List of companies with multiple employees and an existing bank account",dataType:null,required:!0,index:0,parent:n8},r8={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-parent-ref-id",type:n.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",entityType:n.Search},i8={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-id",type:n.OutputMap,version:1,declaration:NI,writesValues:[],index:0,parent:r8},a8={id:"find-companies-with-multiple-employees-and-bank-account",type:n.Search,version:1,name:"Find companies with multiple employees and a bank account",description:"This search statement finds companies with multiple employees and an existing bank account",inputsDeclarations:[],outputsDeclarations:[NI],inputs:[],outputs:[i8],query:e8,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:t8},s8={type:n.GenericReference,id:"employee-mapped-dto-manager-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:bI},o8={type:n.GenericReference,id:"employee-mapped-dto-manager-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:bn},MI={id:tj,type:n.InputMap,version:1,declaration:null,name:"manager_id",description:null,defaultValue:null,index:4,readsValue:s8,parent:o8},l8={type:n.GenericReference,id:"employee-mapped-dto-department-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:TI},c8={type:n.GenericReference,id:"employee-mapped-dto-department-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:bn},VI={id:ej,type:n.InputMap,version:1,declaration:null,name:"department_name",description:null,defaultValue:null,index:3,readsValue:l8,parent:c8},d8={type:n.GenericReference,id:"employee-mapped-dto-birth-date-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:mI},u8={type:n.GenericReference,id:"employee-mapped-dto-birth-date-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:bn},LI={id:Qx,type:n.InputMap,version:1,declaration:null,name:"birth_date",description:null,defaultValue:null,index:2,readsValue:d8,parent:u8},p8={type:n.GenericReference,id:"employee-mapped-dto-id-output-map-reads-value-ref-id",entityType:n.OutputMap,entityId:fI},y8={type:n.GenericReference,id:"employee-mapped-dto-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:bn},GI={id:Xx,type:n.InputMap,version:1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:p8,parent:y8},h8={type:n.GenericReference,id:"employee-mapped-dto-requester-id-output-map-reads-value-ref-id",entityType:n.OutputMap,entityId:RI},f8={type:n.GenericReference,id:"employee-mapped-dto-requester-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:bn},$I={id:Kx,type:n.InputMap,version:1,declaration:null,name:"requester_id",description:"The ID of the current user making the request",defaultValue:null,index:0,readsValue:h8,parent:f8},m8={type:n.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:Jc},T8={id:bI,type:n.OutputMap,version:1,declaration:je.properties[1],index:0,writesValues:[MI],parent:m8},E8={type:n.GenericReference,id:"manager-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:Jc},b8={like:!1,inferred:!1,id:"manager-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Vt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:E8,defaultValue:null},R8={type:n.GenericReference,id:"manager-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:EI},g8={type:n.GenericReference,id:"manager-variable-parent-ref-id",entityType:n.Project,entityId:Y},FI={id:Jc,type:n.VariableDeclaration,version:1,name:"Manager",dataType:b8,description:"A variable holding an inherited manager for testing purposes",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:R8,writesValues:[],inputs:[],outputs:[T8],internalCalls:[],parent:g8,x:0,y:0},v8={type:n.GenericReference,id:"random-company-employee-manager-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:di},I8={id:EI,type:n.OutputMap,version:1,declaration:Vt.properties[2],index:3,writesValues:[FI],parent:v8},D8={type:n.GenericReference,id:"random-company-employee-department-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:di},P8={id:TI,type:n.OutputMap,version:1,declaration:Vt.properties[0],index:2,writesValues:[VI],parent:D8},A8={type:n.GenericReference,id:"random-company-employee-birth-date-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:di},O8={id:mI,type:n.OutputMap,version:1,declaration:pt.properties[1],index:1,writesValues:[LI],parent:A8},S8={type:n.GenericReference,id:"random-company-employee-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:di},C8={id:fI,type:n.OutputMap,version:1,declaration:je.properties[1],index:0,writesValues:[GI],parent:S8},B8={type:n.GenericReference,id:"random-company-employee-test-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:di},w8={like:!1,inferred:!1,id:"random-company-employee-test-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Vt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:B8,defaultValue:null},_8={type:n.GenericReference,id:"random-company-employee-test-variable-parent-ref-id",entityType:n.Project,entityId:Y},N8={id:di,type:n.VariableDeclaration,version:1,name:"Company employee",dataType:w8,description:"A variable holding a random company employee for testing purposes",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[C8,O8,P8,I8],internalCalls:[],parent:_8,x:0,y:0},M8={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-parent-ref-id",entityType:n.InputMap,entityId:gI},V8={type:n.PrimitiveValue,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-id",name:D.Date,version:1,valueAsType:null,value:null,autogeneration:{type:qe.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:M8},L8={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-parent-ref-id",entityType:n.VariableInstance,entityId:kn},G8={id:gI,type:n.InputMap,version:1,declaration:null,name:"now",description:"The current timestamp when the operation is executed",defaultValue:V8,index:5,readsValue:null,parent:L8},$8={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-decl-ref-id",entityType:n.VariableDeclaration,entityId:bn},F8={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-called-by-success-ref-id",entityType:n.VariableDeclaration,entityId:kn},U8={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-parent-ref-id",entityType:n.Project,entityId:Y},x8={id:kn,type:n.VariableInstance,version:1,declaration:$8,calledByError:[],calledByEntry:[],calledBySuccess:[F8],successCalls:[Yc,SI],errorCalls:[],readsValue:null,writesValues:[OI],inputs:[G8],outputs:[],internalCalls:[],parent:U8,x:0,y:0},j8={type:n.GenericReference,id:"employee-mapped-dto-variable-parent-ref-id",entityType:n.Project,entityId:Y},k8={id:bn,type:n.VariableDeclaration,version:1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[Yc,x8],errorCalls:[],readsValue:null,writesValues:[DI],inputs:[$I,GI,LI,VI,MI],outputs:[],internalCalls:[],parent:j8,x:0,y:0},q8={type:n.GenericReference,id:"0e63e617-f9d3-42e8-bde0-1bb0b1df7034",entityType:n.VariableDeclaration,entityId:dc},J8={like:!1,inferred:!1,id:"e75645ce-d3df-4f07-a897-ae9ef4d917fd",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:pc,version:1,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:q8,defaultValue:null},W8={type:n.GenericReference,id:"e92a8ff5-3fef-4e0c-8d8f-92c930b2890b",entityType:n.Project,entityId:Y},UI={id:dc,type:n.VariableDeclaration,version:1,name:"Current user",description:"The user that is currently logged in",dataType:J8,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:W8},Y8={type:n.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",entityType:n.VariableInstance,entityId:hI},H8={id:RI,type:n.OutputMap,version:1,declaration:je.properties[1],index:0,writesValues:[$I],parent:Y8},z8={type:n.GenericReference,id:"global-user-instance-parent-ref-id",entityType:n.Project,entityId:Y},Z8={id:hI,type:n.VariableInstance,version:1,declaration:UI,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[H8],internalCalls:[],parent:z8,x:0,y:0},K8={type:n.GenericReference,id:"is-test-environment-variable-dcl-datatype-parent-ref-id",entityType:n.VariableDeclaration,entityId:dc},X8={type:n.GenericReference,id:"is-test-environment-variable-dcl-datatype-default-value-parent-ref-id",entityType:n.DataType,entityId:"is-test-environment-variable-dcl-datatype-id"},Q8={like:!1,inferred:!1,id:"is-test-environment-variable-dcl-datatype-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:wn,version:1,asType:!1,isList:!1,isNullable:!1,constant:!0,parent:K8,defaultValue:{id:"is-test-environment-variable-dcl-datatype-default-value-id",name:D.Boolean,version:1,value:null,type:n.PrimitiveValue,autogeneration:{type:qe.Random,rangeStart:null,rangeEnd:null},valueAsType:null,parent:X8}},e9={type:n.GenericReference,id:"is-test-environment-variable-dcl-main-project-ref-id",entityType:n.Project,entityId:Y},xI={id:"is-test-environment-variable-dcl-id",type:n.VariableDeclaration,version:1,name:"Is test envrioment",description:"Indicates whether the current environment is a test environment or not.",dataType:Q8,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:e9},t9={type:n.GenericReference,id:"is-test-environment-variable-instance-parent-ref-id",entityType:n.Project,entityId:Y},n9={id:"is-test-environment-variable-instance-id",type:n.VariableInstance,version:1,declaration:xI,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[],internalCalls:[],parent:t9,x:0,y:0},jI={type:n.Project,id:Y,version:1,name:"Mocked project to compile",description:"This project is used to test all sorts of features and edge cases. It is not meant to be used in production. Or to have any functionality that makes sense",projects:[qx],entities:[uc,pc,pt,JV,Vt,Us,jR,kR,ii,FM,Lt,MV,PR,CC,GM],functions:[p4,fg,wc,R4,S4,wg,_c,Tc,Fx,XR,mU],events:[D1],variableDeclarations:[xI,UI,Gc,N8,FI,k8],variableInstances:[n9,Z8],conditions:[],operations:[oi],functionCalls:[v0,BL],loops:[Qj,Yc,SI,kj,sj],searches:[a8]};var T=(r=>(r.Error="error",r.Warning="warning",r))(T||{}),S=(r=>(r.InvalidObjectStructure="invalid-object-structure",r.NameNotUniqueInScope="name-not-unique-in-scope",r.EmptyName="empty-name",r.MissingCaller="missing-caller",r.PropertyOverwrite="property-overwrite",r.MethodOverwrite="method-overwrite",r.NoOverlapWithImplementedSignature="no-overlap-with-implemented-signature",r.ReaderWriterIncompatibleDataType="reader-writer-incompatible-data-type",r.UnreachableEntity="unreachable-entity",r.InternalCallParentMissingDataType="internal-call-parent-missing-data-type",r.InternalCallParentDeclarationEntityInvalidType="internal-call-parent-declaration-entity-invalid-type",r.InternalCallDeclarationNotFoundInParentDatatypeEntity="internal-call-declaration-not-found-in-parent-datatype-entity",r.InternalCallDeclarationIsNotFunctionDeclaration="internal-call-declaration-is-not-function-declaration",r.InternalCallDeclarationNotInParentDatatypeEntity="internal-call-declaration-not-in-parent-datatype-entity",r))(S||{}),h=(r=>(r.RootReference="root-reference",r.ReferencedEntityNotFound="referenced-entity-not-found",r.EntityIdNotUnique="entity-id-not-unique",r.BuiltInEntityGenerated="built-in-entity-generated",r.BuiltInEntityUpdated="built-in-entity-updated",r.BuiltInEntityDeleted="built-in-entity-deleted",r.UnknownEntityType="unknown-entity-type",r.MissingTypeProperty="missing-type-property",r.MissingIdProperty="missing-id-property",r.BuiltInEntityParent="built-in-entity-parent",r.InvalidBuiltInEntityReference="invalid-built-in-entity-reference",r.RecommendedImplementAbstractEntityAction="recommended-implement-abstract-entity-action",r.RecommendedImplementOperationAction="recommended-implement-operation-action",r.RecommendedImplementFunctionCallAction="recommended-implement-function-call-action",r.RecommendedImplementVariableDeclarationAction="recommended-implement-variable-declaration-action",r.RecommendedImplementVariableInstanceAction="recommended-implement-variable-instance-action",r.RecommendedImplementConditionAction="recommended-implement-condition-action",r.InvalidReferenceObjectStructure="invalid-reference-object-structure",r.ContainsSingleButShouldBeReferenceList="contains-single-but-should-be-reference-list",r.ContainsListButShouldReferenceSingle="contains-list-but-should-reference-single",r.InvalidParentReference="invalid-parent-reference",r.InvalidImplementsReference="invalid-implements-reference",r.InvalidExtendsReference="invalid-extends-reference",r.InvalidGenerationActionPayload="invalid-generation-action-payload",r.InvalidReference="invalid-reference",r.InvalidInternalCallParentRelation="invalid-internal-call-parent-relation",r.InvalidUpdateEntityOperation="invalid-update-entity-operation",r.NewEntityWouldOverriteExisting="new-entity-would-overrite-existing",r.InvalidDownstreamPropertyOverride="invalid-downstream-property-override",r.UnrecognizedProperty="unrecognized-property",r.SelfReference="self-reference",r.DuplicateReference="duplicate-reference",r.CallerWithIncompatibleScope="caller-with-incompatible-scope",r.InvalidFunctionDeclarationForFunctionCall="invalid-function-declaration-for-function-call",r.InvalidInputMapDeclaration="invalid-input-map-declaration",r.InvalidActionDescriptorForOperation="invalid-action-descriptor-for-operation",r.InvalidActionDescriptorForCondition="invalid-action-descriptor-for-condition",r.InvalidActionDescriptorForLoop="invalid-action-descriptor-for-loop",r.InvalidInmutablePropertyOverride="invalid-inmutable-property-override",r.OutputOverwrite="output-overwrite",r.InputOverwrite="input-overwrite",r.IncompatibleScope="incompatible-scope",r.InvalidParentUpdate="invalid-parent-update",r.NonInteractiveEntityReferenced="non-interactive-entity-referenced",r.InvalidParentRelationType="invalid-parent-relation-type",r))(h||{}),M=(r=>(r.ScopeWithoutLogic="scope-without-logic",r.ExtendingAbstractEntity="extending-abstract-entity",r.ImplementingNonAbstractEntity="implementing-non-abstract-entity",r.AbstractEntityWithNonAbstractMethods="abstract-entity-with-non-abstract-methods",r.AbstractEntityWithNonAbstractProperties="abstract-entity-with-non-abstract-properties",r.StaticEntityWithNonStaticProperties="static-entity-with-non-static-properties",r.NonStaticPropertyInStaticEntity="non-static-property-in-static-entity",r.AbstractPropertyInNonAbstractEntity="abstract-property-in-non-abstract-entity",r.AbstractMethodInNonAbstractEntity="abstract-method-in-non-abstract-entity",r.IncorrectEntityImplementation="incorrect-entity-implementation",r.IncorrectMethodImplementation="incorrect-method-implementation",r.IncorrectPropertyImplementation="incorrect-property-implementation",r.PropertyImplementsNonAbstact="property-implements-non-abstract",r.NonStaticPropertyImplementsStatic="non-static-property-implements-static",r.StaticPropertyImplementsNonStatic="static-property-implements-non-static",r.PropertyImplementsIncompatibleType="property-implements-incompatible-type",r.MissingPropertyImplementation="missing-property-implementation",r.MissingMethodImplementation="missing-method-implementation",r.NoProperties="no-properties",r.ReadingFromIncompatibleType="reading-from-incompatible-type",r.WritingToIncompatibleType="writing-to-incompatible-type",r.InvalidPropertiesCombination="invalid-properties-combination",r.DisconnectedCallableEntity="disconnected-callable-entity",r.VariableReadsValueAndInternalCall="variable-reads-value-and-internal-call",r.VariableWritesValuesAndInternalCall="variable-writes-values-and-internal-call",r.VariableHasInputsAndInternalCall="variable-has-inputs-and-internal-calls",r.VariableHasOutputsAndInternalCall="variable-has-outputs-and-internal-call",r.VariableIsCalledAndHasInternalCall="variable-is-called-and-has-internal-call",r.VariableCallsOthersAndHasInternalCall="variable-calls-others-and-has-internal-call",r))(M||{});class E{constructor(e){c(this,"id");c(this,"message");c(this,"issue");c(this,"severity");c(this,"code");this.id=e.id,this.message=e.message,this.issue=e.issue,this.severity=e.severity,this.code=e.code}toEntityError(e){return this.code in S?new mr({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:e}):null}}class mr{constructor(e){c(this,"id");c(this,"message");c(this,"issue");c(this,"severity");c(this,"code");c(this,"entity");this.id=e.id,this.message=e.message,this.issue=e.issue,this.severity=e.severity,this.code=e.code,this.entity=e.entity}clone(){return new mr({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:this.entity})}}function r9(r){const e=new Set;return r.filter(t=>e.has(t.id)?!1:(e.add(t.id),!0))}function H(r){const e=r.entity.errors.find(i=>i.id===r.id);return e?{new:!1,error:e}:{new:!0,error:new mr(r)}}function i9(r,e){const t=new Map;return r.forEach(i=>{t.set(i.id,i)}),e.forEach(i=>{t.set(i.id,i)}),Array.from(t.values())}function ae(r,e){const t=[];return e.forEach(i=>{const a=r.find(s=>s.id===i.id);a?t.push(a):t.push(i)}),t}const ma=u.union([u.string(),u.number(),u.boolean(),u.date()]),kI=u.enum([qe.CurrentDateAndTime,qe.Random,qe.Unique]),Ks=u.object({type:kI,rangeStart:ma.nullable(),rangeEnd:ma.nullable()}),Ta=Ks.extend({type:u.literal(qe.Random),rangeStart:ma,rangeEnd:ma}),Qc=Ks.extend({type:u.literal(qe.Unique),rangeStart:u.null(),rangeEnd:u.null()}),qI=Ks.extend({type:u.literal(qe.CurrentDateAndTime),rangeStart:u.null(),rangeEnd:u.null()}),Xs=Ta.extend({rangeStart:u.number().nullable(),rangeEnd:u.number().nullable()}),JI=Xs.extend({rangeStart:u.number(),rangeEnd:u.null()}),WI=Xs.extend({rangeStart:u.null(),rangeEnd:u.number()}),YI=Xs.extend({rangeStart:u.number(),rangeEnd:u.number()}),Qs=Ta.extend({rangeStart:u.number().nullable(),rangeEnd:u.number().nullable()}),HI=Qs.extend({rangeStart:u.number(),rangeEnd:u.null()}),zI=Qs.extend({rangeStart:u.null(),rangeEnd:u.number()}),ZI=Qs.extend({rangeStart:u.number(),rangeEnd:u.number()}),eo=Ta.extend({rangeStart:u.date().nullable(),rangeEnd:u.date().nullable()}),KI=eo.extend({rangeStart:u.date(),rangeEnd:u.null()}),XI=eo.extend({rangeStart:u.null(),rangeEnd:u.date()}),QI=eo.extend({rangeStart:u.date(),rangeEnd:u.date()}),ed=Ta.extend({rangeStart:u.null(),rangeEnd:u.null()}),td=u.union([HI,zI,ZI]),nd=u.union([JI,WI,YI]),rd=u.union([KI,XI,QI,qI]),id=u.union([td,nd,rd,Qc,ed]);function Ea(){return u.union([u.object({type:u.literal(n.ValueDescriptor)}),u.record(u.string(),u.any())])}function eD(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.ValueDescriptor)})}function ad(){return u.object({id:u.string(),type:u.literal(n.ValueDescriptor),name:u.string(),required:u.boolean()})}function a9(){return ad().merge(u.object({version:u.number(),index:u.number()}))}function s9(){return ad().merge(u.object({}))}function o9(){return u.object({dataType:Rr(),parent:Er()})}function l9(){return a9().merge(o9())}function to(){return u.union([u.object({type:u.literal(n.PrimitiveEntity)}),u.record(u.string(),u.any())])}function no(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.PrimitiveEntity)})}function ro(){return u.object({id:u.string(),type:u.literal(n.PrimitiveEntity),name:u.string(),description:u.string().nullable(),static:u.boolean(),abstract:u.boolean()})}function c9(){return ro().merge(u.object({version:u.number()}))}function d9(){return ro().merge(u.object({}))}function u9(){return u.object({properties:u.array(Tr()),methods:u.array(Ot()),abstractMethods:u.array(rn()),extends:u.array(u.union([to(),ui()]))})}function p9(){return c9().merge(u9())}function Tr(){return u.union([u.object({type:u.literal(n.Property)}),u.record(u.string(),u.any())])}function tD(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.Property)})}function sd(){return u.object({id:u.string(),type:u.literal(n.Property),name:u.string(),description:u.string().nullable(),private:u.boolean(),static:u.boolean(),required:u.boolean(),abstract:u.boolean()})}function y9(){return sd().merge(u.object({version:u.number(),index:u.number()}))}function h9(){return sd().merge(u.object({}))}function f9(){return u.object({dataType:Rr(),implements:Tr().nullable(),parent:u.union([Ir(),no(),io()])})}function m9(){return y9().merge(f9())}function T9(){return u.enum([L.CRON_JOB,L.EXECUTION,L.HTTP_ENDPOINT,L.PERSISTED_ENTITY,L.RELATIONAL_DATABASE])}function ui(){return u.union([u.object({type:u.literal(n.BuiltInBaseEntity)}),u.record(u.string(),u.any())])}function io(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.BuiltInBaseEntity)})}function od(){return u.object({id:u.string(),version:u.number(),type:u.literal(n.BuiltInBaseEntity),name:T9(),description:u.string().nullable(),abstract:u.boolean(),static:u.boolean()})}function E9(){return od()}function b9(){return od().merge(u.object({}))}function R9(){return u.object({properties:u.array(Tr()),methods:u.array(Ot()),abstractMethods:u.array(rn()),extends:u.array(u.union([ui(),to()]))})}function g9(){return E9().merge(R9())}function rn(){return u.union([u.object({type:u.literal(n.ActionDescriptor)}),u.record(u.string(),u.any())])}function Er(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.ActionDescriptor)})}function ao(){return u.object({id:u.string(),type:u.literal(n.ActionDescriptor),name:u.string(),description:u.string().nullable()})}function v9(){return ao().merge(u.object({version:u.number()}))}function I9(){return ao().merge(u.object({}))}function D9(){return u.object({inputs:u.array(Ea()),outputs:u.array(Ea()),parent:u.union([gt(),Ir(),io(),no()]).nullable()})}function nD(){return v9().merge(D9())}function pi(){return u.union([u.object({type:u.literal(n.Loop)}),u.record(u.string(),u.any())])}function an(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.Loop)})}function rD(){return u.object({id:u.string(),type:u.literal(n.Loop)})}function P9(){return rD().merge(u.object({version:u.number(),x:u.number(),y:u.number()}))}function A9(){return rD().merge(u.object({declaration:u.union([u.string(),Ot()])}))}function O9(){return u.object({calledBySuccess:u.array(fe()),calledByError:u.array(fe()),calledByEntry:u.array(We()),declaration:rn(),inputs:u.array(Ht()),outputs:u.array(ft()),outputsDeclarations:u.array(Ea()),successCalls:u.array(Ye()),errorCalls:u.array(Ye()),error:ft(),body:Ot(),parent:u.union([In(),gt()]),breakStatements:u.array(mi()),continueStatements:u.array(yi())})}function S9(){return P9().merge(O9())}function yi(){return u.union([u.object({type:u.literal(n.ContinueStatement)}),u.record(u.string(),u.any())])}function hi(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.ContinueStatement)})}function ld(){return u.object({id:u.string(),type:u.literal(n.ContinueStatement)})}function C9(){return ld().merge(u.object({version:u.number(),x:u.number(),y:u.number()}))}function B9(){return ld().merge(u.object({}))}function w9(){return u.object({calledBySuccess:u.array(fe()),calledByError:u.array(fe()),calledByEntry:u.array(We()),outputs:u.array(Rn()),throws:u.optional(Rn()),parent:an()})}function _9(){return C9().merge(w9())}function br(){return u.union([u.object({type:u.literal(n.ReturnStatement)}),u.record(u.string(),u.any())])}function fi(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.ReturnStatement)})}function cd(){return u.object({id:u.string(),type:u.literal(n.ReturnStatement)})}function N9(){return cd().merge(u.object({version:u.number(),x:u.number(),y:u.number()}))}function M9(){return cd().merge(u.object({}))}function V9(){return u.object({calledBySuccess:u.array(fe()),calledByError:u.array(fe()),calledByEntry:u.array(We()),outputs:u.array(Rn()),throws:u.optional(Rn()),parent:In()})}function L9(){return N9().merge(V9())}function Rn(){return u.union([u.object({type:u.literal(n.ReturnDeclaration)}),u.record(u.string(),u.any())])}function iD(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.ReturnDeclaration)})}function dd(){return u.object({id:u.string(),type:u.literal(n.ReturnDeclaration),name:u.string(),description:u.string().nullable(),isError:u.boolean()})}function G9(){return dd().merge(u.object({version:u.number(),index:u.number()}))}function $9(){return dd().merge(u.object({}))}function F9(){return u.object({dataType:Rr().nullable(),readsValue:Da().nullable(),parent:u.union([fi(),Er(),gn(),hi()])})}function U9(){return G9().merge(F9())}function mi(){return u.union([u.object({type:u.literal(n.BreakStatement)}),u.record(u.string(),u.any())])}function gn(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.BreakStatement)})}function ud(){return u.object({id:u.string(),type:u.literal(n.BreakStatement)})}function x9(){return ud().merge(u.object({version:u.number(),x:u.number(),y:u.number()}))}function j9(){return ud().merge(u.object({}))}function k9(){return u.object({calledBySuccess:u.array(fe()),calledByError:u.array(fe()),calledByEntry:u.array(We()),outputs:u.array(Rn()),throws:u.optional(Rn()),parent:an()})}function q9(){return x9().merge(k9())}function ft(){return u.union([u.object({type:u.literal(n.OutputMap)}),u.record(u.string(),u.any())])}function pd(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.OutputMap)})}function yd(){return u.object({id:u.string(),type:u.literal(n.OutputMap)})}function J9(){return yd().merge(u.object({version:u.number(),index:u.number()}))}function W9(){return yd().merge(u.object({}))}function Y9(){return u.object({writesValues:u.array(vn()),declaration:u.union([Rn(),Tr()]),parent:u.union([fe(),an(),gn()])})}function H9(){return J9().merge(Y9())}function Ti(){return u.union([u.object({type:u.literal(n.FunctionCall)}),u.record(u.string(),u.any())])}function ba(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.FunctionCall)})}function hd(){return u.object({id:u.string(),type:u.literal(n.FunctionCall)})}function z9(){return hd().merge(u.object({version:u.number(),x:u.number(),y:u.number()}))}function Z9(){return hd().merge(u.object({}))}function K9(){return u.object({successCalls:u.array(Ye()),errorCalls:u.array(Ye()),calledBySuccess:u.array(fe()),calledByError:u.array(fe()),calledByEntry:u.array(We()),writesValues:u.array(vn()),declaration:Ot(),inputs:u.array(Ht()),outputs:u.array(ft()),error:u.optional(ft()),parent:u.union([In(),gt()])})}function X9(){return z9().merge(K9())}function Q9(){return u.enum([Le.Equal,Le.NotEqual,Le.MoreThan,Le.MoreThanOrEqual,Le.LessThan,Le.LessThanOrEqual,Le.And,Le.Or,Nt.Empty,Nt.NotEmpty])}function Ra(){return u.union([u.object({type:u.literal(n.Condition)}),u.record(u.string(),u.any())])}function so(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.Condition)})}function fd(){return u.object({id:u.string(),type:u.literal(n.Condition)})}function e6(){return fd().merge(u.object({version:u.number(),x:u.number(),y:u.number()}))}function t6(){return fd().merge(u.object({}))}function n6(){return u.object({successCalls:u.array(Ye()),errorCalls:u.array(Ye()),calledBySuccess:u.array(fe()),calledByError:u.array(fe()),calledByEntry:u.array(We()),leftValue:Ht(),rightValue:Ht().nullable(),operator:Q9(),parent:u.union([In(),gt()])})}function r6(){return e6().merge(n6())}function ga(){return u.union([u.object({type:u.literal(n.Search)}),u.record(u.string(),u.any())])}function va(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.Search)})}function md(){return u.object({id:u.string(),type:u.literal(n.Search),name:u.string(),query:u.any(),description:u.string().nullable()})}function i6(){return md().merge(u.object({version:u.number(),x:u.number(),y:u.number()}))}function a6(){return md().merge(u.object({}))}function s6(){return u.object({successCalls:u.array(Ye()),errorCalls:u.array(Ye()),calledBySuccess:u.array(fe()),calledByError:u.array(fe()),calledByEntry:u.array(We()),inputsDeclarations:u.array(vr()),inputs:u.array(Ht()),outputsDeclarations:u.array(Ea()),outputs:u.array(ft()),parent:u.union([In(),gt()]),error:ft().nullable()})}function o6(){return i6().merge(s6())}function Ia(){return u.union([u.object({type:u.literal(n.InternalCall)}),u.record(u.string(),u.any())])}function Td(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.InternalCall)})}function Ed(){return u.object({id:u.string(),type:u.literal(n.InternalCall),index:u.number()})}function l6(){return Ed().merge(u.object({version:u.number(),index:u.number()}))}function c6(){return Ed().merge(u.object({declaration:u.union([u.string(),Ot()])}))}function d6(){return u.object({successCalls:u.array(Ye()),errorCalls:u.array(Ye()),calledBySuccess:u.array(fe()),calledByError:u.array(fe()),calledByEntry:u.array(We()),writesValues:u.array(vn()),declaration:Ot(),inputs:u.array(Ht()),outputs:u.array(ft()),parent:qn(),error:u.optional(ft())})}function u6(){return l6().merge(d6())}function Ht(){return u.union([u.object({type:u.literal(n.InputMap)}),u.record(u.string(),u.any())])}function oo(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.InputMap)})}function bd(){return u.object({id:u.string(),type:u.literal(n.InputMap),name:u.string().nullable().optional(),description:u.string().nullable().optional()})}function p6(){return bd().merge(u.object({version:u.number(),index:u.number()}))}function y6(){return bd().merge(u.object({}))}function h6(){return u.object({defaultValue:Rd().nullable(),declaration:u.union([vr(),Tr()]).nullable(),readsValue:Da().nullable(),parent:u.union([fe(),oo(),an(),gn()])})}function f6(){return p6().merge(h6())}function Ei(){return u.union([u.object({type:u.literal(n.Operation)}),u.record(u.string(),u.any())])}function bi(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.Operation)})}function lo(){return u.object({id:u.string(),type:u.literal(n.Operation)})}function m6(){return lo().merge(u.object({version:u.number(),x:u.number(),y:u.number()}))}function T6(){return lo().merge(u.object({}))}function E6(){return lo().merge(u.object({successCalls:u.array(Ye()),errorCalls:u.array(Ye()),calledBySuccess:u.array(fe()),calledByError:u.array(fe()),calledByEntry:u.array(We()),writesValues:u.array(vn()),declaration:rn(),inputs:u.array(Ht()),outputs:u.array(ft()),error:u.array(ft()),parent:u.union([In(),gt()])}))}function b6(){return m6().merge(E6())}function co(){return u.union([u.string(),u.number(),u.boolean(),u.null(),u.date()])}function aD(){return u.record(u.string(),co())}function R6(){return u.array(u.union([co(),aD()]))}function sD(){return u.union([co(),aD(),R6()])}function oD(){return u.union([co(),sD()])}function lD(){return u.enum([D.String,D.Number,D.Boolean,D.Null,D.Date,D.JSON,D.Enum,D.File,D.UUID,D.EntityTemplate,D.ActionDescriptor])}function g6(){return u.union([Ir(),bi(),Pa()])}function v6(){return u.object({id:u.string(),name:lD(),type:u.literal(n.PrimitiveValue),value:oD(),autogeneration:id.nullable()})}function I6(){return v6().merge(u.object({}))}function zt(){return u.object({id:u.string(),version:u.number(),name:lD(),type:u.literal(n.PrimitiveValue),value:oD(),valueAsType:g6().nullable(),autogeneration:id.nullable(),parent:u.union([gd(),oo()])})}function D6(){return zt().extend({name:u.literal(D.String),value:u.string(),autogeneration:td.nullable()})}function P6(){return zt().extend({name:u.literal(D.Number),value:u.number(),autogeneration:nd.nullable()})}function A6(){return zt().extend({name:u.literal(D.Boolean),value:u.boolean(),autogeneration:ed.nullable()})}function O6(){return zt().extend({name:u.literal(D.Null),value:u.null(),autogeneration:u.null()})}function S6(){return zt().extend({name:u.literal(D.Date),value:u.date(),autogeneration:rd.nullable()})}function C6(){return zt().extend({name:u.literal(D.JSON),value:sD(),autogeneration:u.null()})}function B6(){return zt().extend({name:u.literal(D.Enum),value:u.string(),autogeneration:u.null()})}function w6(){return zt().extend({name:u.literal(D.File),value:u.string(),autogeneration:u.null()})}function _6(){return zt().extend({name:u.literal(D.UUID),value:u.string(),autogeneration:Qc.nullable()})}function N6(){return zt().extend({name:u.literal(D.EntityTemplate),value:Ir(),autogeneration:u.null()})}function M6(){return zt().extend({name:u.literal(D.ActionDescriptor),value:Pa(),autogeneration:u.null()})}function Rd(){return u.union([D6(),P6(),A6(),O6(),S6(),C6(),B6(),w6(),_6(),N6(),M6()])}function Rr(){return u.union([u.object({type:u.literal(n.DataType)}),u.record(u.string(),u.any())])}function gd(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.DataType)})}function vd(){return u.object({id:u.string(),type:u.literal(n.DataType),isNullable:u.boolean(),isList:u.boolean(),constant:u.boolean(),asType:u.boolean(),options:u.array(u.string()).optional()})}function V6(){return vd().merge(u.object({version:u.number()}))}function L6(){return vd().merge(u.object({}))}function G6(){return u.object({defaultValue:Rd().nullable(),entity:u.union([Ri(),ui(),to(),rn()]).nullable(),parent:u.union([tD(),uD(),eD()])})}function $6(){return V6().merge(G6())}function Id(){return u.union([u.object({type:u.literal(n.VariableDeclaration)}),u.record(u.string(),u.any())])}function F6(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.VariableDeclaration)})}function Dd(){return u.object({id:u.string(),type:u.literal(n.VariableDeclaration),name:u.string(),description:u.string().nullable()})}function U6(){return Dd().merge(u.object({version:u.number(),x:u.number(),y:u.number()}))}function x6(){return Dd().merge(u.object({}))}function j6(){return u.object({dataType:Rr().nullable(),readsValue:Da().nullable(),writesValues:u.array(vn()),inputs:u.array(Ht()),outputs:u.array(ft()),successCalls:u.array(Ye()),errorCalls:u.array(Ye()),internalCalls:u.array(Ia()),calledBySuccess:u.array(fe()),calledByError:u.array(fe()),calledByEntry:u.array(We()),parent:u.union([In(),gt()])})}function k6(){return U6().merge(j6())}function cD(){return u.union([u.object({type:u.literal(n.VariableInstance)}),u.record(u.string(),u.any())])}function q6(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.VariableInstance)})}function Pd(){return u.object({id:u.string(),type:u.literal(n.VariableInstance)})}function J6(){return Pd().merge(u.object({version:u.number(),x:u.number(),y:u.number()}))}function W6(){return Pd().merge(u.object({}))}function Y6(){return u.object({declaration:Id(),dataType:Rr().nullable(),readsValue:Da().nullable(),writesValues:u.array(vn()),inputs:u.array(Ht()),outputs:u.array(ft()),successCalls:u.array(Ye()),errorCalls:u.array(Ye()),internalCalls:u.array(Ia()),calledBySuccess:u.array(fe()),calledByError:u.array(fe()),calledByEntry:u.array(We()),parent:u.union([In(),gt()])})}function H6(){return J6().merge(Y6())}function Ad(){return u.union([u.object({type:u.literal(n.InstalledProject)}),u.record(u.string(),u.any())])}function uo(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.InstalledProject)})}function z6(){return u.object({id:u.string(),type:u.literal(n.InstalledProject)})}function Z6(){return u.object({version:u.number(),x:u.number(),y:u.number()})}function K6(){return u.object({})}function X6(){return u.object({implements:gt(),description:u.string().nullable(),functions:u.array(Ot()),events:u.array(Od()),parent:gt()})}function Q6(){return Z6().merge(X6())}function Od(){return u.union([u.object({type:u.literal(n.GlobalEvent)}),u.record(u.string(),u.any())])}function e3(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.GlobalEvent)})}function po(){return u.object({id:u.string(),type:u.literal(n.GlobalEvent),name:u.string(),collapsed:u.boolean()})}function t3(){return po().merge(u.object({version:u.number(),x:u.number(),y:u.number()}))}function n3(){return po().merge(u.object({}))}function r3(){return po().merge(u.object({returnStatements:u.array(br()),implements:u.array(nD()),inputs:u.array(vr()),calls:u.array(Ye()),parent:u.union([gt(),uo()])}))}function i3(){return t3().merge(r3())}function gr(){return u.union([Id(),cD()])}function qn(){return u.union([F6(),q6()])}function vn(){return u.union([gr(),Ht(),Rn()])}function dD(){return u.union([qn(),oo(),iD()])}function Da(){return u.union([gr(),vr(),ft(),Ei(),Ia(),Ti()])}function a3(){return u.union([qn(),Sd(),pd(),bi(),Td(),ba()])}function s3(){return u.union([vr(),ft(),vn()])}function uD(){return u.union([Sd(),pd(),dD()])}function yo(){return Od()}function ho(){return e3()}function fo(){return u.union([Ei(),Ti(),Ra(),ga(),gr(),Ia(),pi()])}function fe(){return u.union([bi(),ba(),so(),va(),qn(),Td(),an()])}function mo(){return u.union([Ei(),Ti(),Ra(),ga(),gr(),pi()])}function To(){return u.union([bi(),ba(),so(),va(),qn(),an()])}function pD(){return u.union([fo(),br(),mi(),yi()])}function Ye(){return u.union([fe(),fi(),gn(),hi()])}function yD(){return u.union([mo(),br(),mi(),yi()])}function hD(){return u.union([To(),fi(),gn(),hi()])}function Jn(){return u.union([Ot(),yo()])}function We(){return u.union([Pa(),ho()])}function o3(){return u.union([fo(),Jn()])}function l3(){return u.union([fe(),We()])}function c3(){return u.union([mo(),Jn()])}function d3(){return u.union([To(),We()])}function u3(){return u.union([pD(),Jn()])}function p3(){return u.union([Ye(),We()])}function y3(){return u.union([yD(),Jn()])}function h3(){return u.union([hD(),We()])}function f3(){return u.union([Jn(),pi()])}function In(){return u.union([We(),an()])}function m3(){return u.union([fo(),Jn()])}function T3(){return u.union([fe(),We()])}function E3(){return u.union([mo(),Jn()])}function b3(){return u.union([To(),We()])}function R3(){return u.union([br(),mi(),yi()])}function g3(){return u.union([fi(),gn(),hi()])}function v3(){return u.union([ui(),M3(),Ad(),Ri(),Ot(),yo(),gr(),Ht(),ft(),Ra(),Ei(),Ti(),Rn(),vr(),to(),Rr(),Tr(),rn(),br(),yi(),mi(),pi(),ga(),rn(),rn(),Ea(),Ia()])}function I3(){return u.union([io(),gt(),uo(),Ir(),Pa(),ho(),qn(),oo(),pd(),so(),bi(),ba(),iD(),Sd(),no(),gd(),tD(),Er(),fi(),hi(),gn(),an(),va(),Er(),Er(),eD(),Td()])}function D3(){return u.union([Ad(),Ri(),Ot(),yo(),gr(),Ra(),Ei(),Ti(),br(),yi(),mi(),pi(),ga()])}function P3(){return u.union([uo(),Ir(),Pa(),ho(),qn(),so(),bi(),ba(),fi(),hi(),gn(),an(),va()])}function vr(){return u.union([u.object({type:u.literal(n.ArgumentDeclaration)}),u.record(u.string(),u.any())])}function Sd(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.ArgumentDeclaration)})}function Cd(){return u.object({id:u.string(),type:u.literal(n.ArgumentDeclaration)})}function A3(){return Cd().merge(u.object({version:u.number(),x:u.number(),y:u.number()}))}function O3(){return Cd().merge(u.object({}))}function S3(){return u.object({dataType:Rr().nullable(),writesValues:u.array(vn()),parent:u.union([We(),Er(),Er(),va(),gn()])})}function C3(){return A3().merge(S3())}function Ot(){return u.union([u.object({type:u.literal(n.FunctionDeclaration)}),u.record(u.string(),u.any())])}function Pa(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.FunctionDeclaration)})}function Bd(){return u.object({id:u.string(),type:u.literal(n.FunctionDeclaration),name:u.string(),description:u.string().nullable()})}function B3(){return Bd().merge(u.object({version:u.number(),x:u.number(),y:u.number(),index:u.number().nullable()}))}function w3(){return Bd()}function _3(){return u.object({inputs:u.array(vr()),implements:rn().nullable(),returnStatements:u.array(br()),parent:u.union([gt(),uo(),Ir(),an(),io(),no()])})}function N3(){return B3().merge(_3())}function M3(){return u.union([u.object({type:u.literal(n.Project)}),u.record(u.string(),u.any())])}function gt(){return u.object({entityType:u.literal(n.Project),entityId:u.string(),id:u.string(),type:u.literal(n.GenericReference)})}function wd(){return u.object({id:u.string(),type:u.literal(n.Project),name:u.string(),description:u.string().nullable()})}function V3(){return wd().merge(u.object({version:u.number()}))}function L3(){return wd()}function G3(){return u.object({entities:u.array(Ri()),functions:u.array(Ot()),events:u.array(Od()),projects:u.array(Ad()),variableDeclarations:u.array(Id()),variableInstances:u.array(cD()),conditions:u.array(Ra()),operations:u.array(Ei()),functionCalls:u.array(Ti()),loops:u.array(pi()),searches:u.array(ga())})}function $3(){return V3().merge(G3())}function Ri(){return u.union([u.object({type:u.literal(n.CustomEntity)}),u.record(u.string(),u.any())])}function Ir(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.CustomEntity)})}function _d(){return u.object({id:u.string(),type:u.literal(n.CustomEntity),name:u.string(),description:u.string().nullable(),static:u.boolean(),abstract:u.boolean()})}function F3(){return _d().merge(u.object({version:u.number(),x:u.number(),y:u.number()}))}function U3(){return _d().merge(u.object({}))}function x3(){return u.union([gt(),gd()])}function j3(){return u.object({properties:u.array(Tr()),methods:u.array(Ot()),abstractMethods:u.array(rn()),extends:u.array(u.union([Ri(),ui()])),implements:u.array(u.union([Ri(),ui()])),parent:x3()})}function k3(){return F3().merge(j3())}function q3(r){const e=k3(),t=r.toJSON();e.safeParse(t).success;const a=r.implements.flatMap(f=>Y3(r,f)),s=r.extends.flatMap(f=>H3(r,f)),o=Z3(r),l=z3(r);r.methods.flatMap(f=>f.validate());const p=[...a,...s,...o,...l];return ae(r.errors,p)}function J3(r,e){const t=e.properties.filter(s=>s.abstract),i=[];let a=[...r.properties];return t.forEach(s=>{const o=a.find(l=>{var p;return((p=l.implements)==null?void 0:p.id)===s.id});o?a=a.filter(l=>l.id!==o.id):i.push(s)}),i}function W3(r,e){const t=e.abstractMethods,i=[];let a=[...r.methods];return t.forEach(s=>{const o=a.find(l=>{var p;return((p=l.implements)==null?void 0:p.id)===s.id});o?a=a.filter(l=>l.id!==o.id):i.push(s)}),i}function Y3(r,e){const t=[];if(!e.abstract){const f=H({id:r.id+"--"+M.ImplementingNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is implementing a non-abstract entity "${e.name}" with id "${e.id}"`,issue:null,severity:T.Error,code:M.ImplementingNonAbstractEntity,entity:r});return t.push(f.error),t}const i=e.properties.filter(f=>f.abstract),a=[];let s=[...r.properties];i.forEach(f=>{const m=s.find(b=>{var v;return((v=b.implements)==null?void 0:v.id)===f.id});m?s=s.filter(b=>b.id!==m.id):a.push(f)}),a.length&&a.forEach(f=>{const m=H({id:r.id+"--"+M.MissingPropertyImplementation+"--"+f.id,message:`Property "${f.name}" with id "${f.id}" of entity "${e.name}" with id "${e.id}" is not implemented when entity "${r.name}" with id "${r.id}" implements it`,issue:null,severity:T.Error,code:M.MissingPropertyImplementation,entity:r});t.push(m.error)});const o=[];let l=[...r.methods];e.abstractMethods.forEach(f=>{const m=l.find(b=>{var v;return((v=b.implements)==null?void 0:v.id)===f.id});m?l=l.filter(b=>b.id!==m.id):o.push(f)}),o.length&&o.forEach(f=>{const m=H({id:r.id+"--"+M.MissingMethodImplementation+"--"+f.id,message:`Method "${f.name}" with id "${f.id}" of entity "${e.name}" with id "${e.id}" is not implemented when entity "${r.name}" with id "${r.id}" implements it`,issue:null,severity:T.Error,code:M.MissingMethodImplementation,entity:r});t.push(m.error)});const p=[];e.properties.forEach(f=>{const m=s.find(b=>b.name===f.name);m&&p.push([m,f])}),p.length&&p.forEach(([f])=>{const m=H({id:r.id+"--"+S.PropertyOverwrite+"--"+f.id,message:`Property "${f.name}" with id "${f.id}" of entity "${r.name}" with id "${r.id}" overwrites the property with the same name from the base entity "${e.name}" with id "${e.id}"`,issue:null,severity:T.Error,code:S.PropertyOverwrite,entity:r});t.push(m.error)});const y=[];return e.methods.forEach(f=>{const m=l.find(b=>b.name===f.name);m&&y.push([m,f])}),y.length&&y.forEach(([f])=>{const m=H({id:r.id+"--"+S.MethodOverwrite+"--"+f.id,message:`Method "${f.name}" with id "${f.id}" of entity "${r.name}" with id "${r.id}" overwrites the method with the same name from the base entity "${e.name}" with id "${e.id}"`,issue:null,severity:T.Error,code:S.MethodOverwrite,entity:r});t.push(m.error)}),t}function H3(r,e){const t=[],i=[];if(e.abstract){const s=H({id:r.id+"--"+M.ExtendingAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is extending an abstract entity "${e.name}" with id "${e.id}"`,issue:null,severity:T.Error,code:M.ExtendingAbstractEntity,entity:r});return t.push(s.error),t}r.properties.forEach(s=>{var l;const o=e.properties.find(p=>p.name===s.name);((l=s.implements)==null?void 0:l.id)!==(o==null?void 0:o.id)&&o&&i.push(s)}),i.length&&i.forEach(s=>{const o=H({id:r.id+"--"+S.PropertyOverwrite,message:`Property "${s.name}" with id "${s.id}" of entity "${r.name}" with id "${r.id}" overwrites the property with the same name from the extended entity "${e.name}" with id "${e.id}"`,issue:null,severity:T.Error,code:S.PropertyOverwrite,entity:r});t.push(o.error)});const a=[];return r.methods.forEach(s=>{var l;const o=e.methods.find(p=>p.name===s.name);((l=s.implements)==null?void 0:l.id)!==(o==null?void 0:o.id)&&o&&a.push(s)}),a.length&&a.forEach(s=>{const o=H({id:r.id+"--"+S.MethodOverwrite,message:`Method "${s.name}" with id "${s.id}" of entity "${r.name}" with id "${r.id}" overwrites the method with the same name from the extended entity "${e.name}" with id "${e.id}"`,issue:null,severity:T.Error,code:S.MethodOverwrite,entity:r});t.push(o.error)}),t}function z3(r){const e=[];if(!r.properties.length){const t=H({id:r.id+"--"+M.NoProperties,message:"No properties implemented",issue:null,severity:T.Warning,code:M.NoProperties,entity:r});e.push(t.error)}return r.properties.forEach(t=>{t.validate()}),e}function Z3(r){const e=[];if(r.abstract){if(r.methods.length){const t=H({id:r.id+"--"+M.AbstractEntityWithNonAbstractMethods,message:`Entity "${r.name}" with id "${r.id}" is marked as abstract but has non-abstract methods`,issue:null,severity:T.Error,code:M.AbstractEntityWithNonAbstractMethods,entity:r});e.push(t.error)}if(r.properties.some(t=>!t.abstract)){const t=H({id:r.id+"--"+M.AbstractEntityWithNonAbstractProperties,message:`Entity "${r.name}" with id "${r.id}" is marked as abstract but has non-abstract properties`,issue:null,severity:T.Error,code:M.AbstractEntityWithNonAbstractProperties,entity:r});e.push(t.error),r.properties.forEach(i=>{if(!i.abstract){const a=H({id:r.id+"--"+M.StaticEntityWithNonStaticProperties+"--"+i.id,message:`Property "${i.name}" with id "${i.id}" of entity "${r.name}" with id "${r.id}" is not marked as abstract but the entity is marked as abstract`,issue:null,severity:T.Error,code:M.StaticEntityWithNonStaticProperties,entity:r});e.push(a.error)}})}}else{if(r.abstractMethods.length){const t=H({id:r.id+"--"+M.AbstractPropertyInNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is not marked as abstract but has abstract methods`,issue:null,severity:T.Error,code:M.AbstractPropertyInNonAbstractEntity,entity:r});e.push(t.error)}if(r.properties.some(t=>t.abstract)){const t=H({id:r.id+"--"+M.AbstractMethodInNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is not marked as abstract but has abstract properties`,issue:null,severity:T.Error,code:M.AbstractMethodInNonAbstractEntity,entity:r});e.push(t.error),r.properties.forEach(i=>{if(i.abstract){const a=H({id:r.id+"--"+M.AbstractMethodInNonAbstractEntity+"--"+i.id,message:`Property "${i.name}" with id "${i.id}" of entity "${r.name}" with id "${r.id}" is marked as abstract but the entity is not marked as abstract`,issue:null,severity:T.Error,code:M.AbstractMethodInNonAbstractEntity,entity:r});e.push(a.error)}})}}if(r.static&&r.properties.some(t=>!t.static)){const t=H({id:r.id+"--"+M.StaticEntityWithNonStaticProperties,message:`Entity "${r.name}" with id "${r.id}" is marked as static but has non-static properties`,issue:null,severity:T.Error,code:M.StaticEntityWithNonStaticProperties,entity:r});e.push(t.error),r.properties.forEach(i=>{if(!i.static){const a=H({id:r.id+"--"+M.NonStaticPropertyInStaticEntity+"--"+i.id,message:`Property "${i.name}" with id "${i.id}" of entity "${r.name}" with id "${r.id}" is not marked as static but the entity is marked as static`,issue:null,severity:T.Error,code:M.NonStaticPropertyInStaticEntity,entity:r});e.push(a.error)}})}return e}function K3(r){return r instanceof Error&&r.name==="ZodError"&&"issues"in r&&Array.isArray(r.issues)}var X3=class extends Error{constructor(e,t){super(e,t);c(this,"name");c(this,"details");this.name="ZodValidationError",this.details=Q3(t)}toString(){return this.message}};function Q3(r){if(r){const e=r.cause;if(K3(e))return e.issues}return[]}function e5(r){return r.length!==0}var t5=/[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*/u;function n5(r){return r.length===1?r[0].toString():r.reduce((e,t)=>{if(typeof t=="number")return e+"["+t.toString()+"]";if(t.includes('"'))return e+'["'+r5(t)+'"]';if(!t5.test(t))return e+'["'+t+'"]';const i=e.length===0?"":".";return e+i+t},"")}function r5(r){return r.replace(/"/g,'\\"')}var i5="; ",a5=99,fD="Validation error",s5=": ",o5=", or ";function l5(r={}){const{issueSeparator:e=i5,unionSeparator:t=o5,prefixSeparator:i=s5,prefix:a=fD,includePath:s=!0,maxIssuesInMessage:o=a5}=r;return l=>{const p=l.slice(0,o).map(y=>Eo({issue:y,issueSeparator:e,unionSeparator:t,includePath:s})).join(e);return c5(p,a,i)}}function Eo(r){const{issue:e,issueSeparator:t,unionSeparator:i,includePath:a}=r;if(e.code===w.invalid_union)return e.unionErrors.reduce((s,o)=>{const l=o.issues.map(p=>Eo({issue:p,issueSeparator:t,unionSeparator:i,includePath:a})).join(t);return s.includes(l)||s.push(l),s},[]).join(i);if(e.code===w.invalid_arguments)return[e.message,...e.argumentsError.issues.map(s=>Eo({issue:s,issueSeparator:t,unionSeparator:i,includePath:a}))].join(t);if(e.code===w.invalid_return_type)return[e.message,...e.returnTypeError.issues.map(s=>Eo({issue:s,issueSeparator:t,unionSeparator:i,includePath:a}))].join(t);if(a&&e5(e.path)){if(e.path.length===1){const s=e.path[0];if(typeof s=="number")return`${e.message} at index ${s}`}return`${e.message} at "${n5(e.path)}"`}return e.message}function c5(r,e,t){return e!==null?r.length>0?[e,r].join(t):e:r.length>0?r:fD}function d5(r,e={}){const i=u5(e)([r]);return new X3(i,{cause:new Rt([r])})}function u5(r){return"messageBuilder"in r?r.messageBuilder:l5(r)}var mD="1.13.7",TD=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},bo=Array.prototype,Nd=Object.prototype,ED=typeof Symbol<"u"?Symbol.prototype:null,p5=bo.push,Aa=bo.slice,Oa=Nd.toString,y5=Nd.hasOwnProperty,bD=typeof ArrayBuffer<"u",h5=typeof DataView<"u",f5=Array.isArray,RD=Object.keys,gD=Object.create,vD=bD&&ArrayBuffer.isView,m5=isNaN,T5=isFinite,ID=!{toString:null}.propertyIsEnumerable("toString"),DD=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],E5=Math.pow(2,53)-1;function vt(r,e){return e=e==null?r.length-1:+e,function(){for(var t=Math.max(arguments.length-e,0),i=Array(t),a=0;a<t;a++)i[a]=arguments[a+e];switch(e){case 0:return r.call(this,i);case 1:return r.call(this,arguments[0],i);case 2:return r.call(this,arguments[0],arguments[1],i)}var s=Array(e+1);for(a=0;a<e;a++)s[a]=arguments[a];return s[e]=i,r.apply(this,s)}}function Wn(r){var e=typeof r;return e==="function"||e==="object"&&!!r}function b5(r){return r===null}function PD(r){return r===void 0}function AD(r){return r===!0||r===!1||Oa.call(r)==="[object Boolean]"}function R5(r){return!!(r&&r.nodeType===1)}function ot(r){var e="[object "+r+"]";return function(t){return Oa.call(t)===e}}const Md=ot("String"),OD=ot("Number"),g5=ot("Date"),v5=ot("RegExp"),I5=ot("Error"),SD=ot("Symbol"),CD=ot("ArrayBuffer");var BD=ot("Function"),D5=TD.document&&TD.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof D5!="function"&&(BD=function(r){return typeof r=="function"||!1});const mt=BD,wD=ot("Object");var _D=h5&&(!/\[native code\]/.test(String(DataView))||wD(new DataView(new ArrayBuffer(8)))),Vd=typeof Map<"u"&&wD(new Map),P5=ot("DataView");function A5(r){return r!=null&&mt(r.getInt8)&&CD(r.buffer)}const Ro=_D?A5:P5,Dr=f5||ot("Array");function Yn(r,e){return r!=null&&y5.call(r,e)}var Ld=ot("Arguments");(function(){Ld(arguments)||(Ld=function(r){return Yn(r,"callee")})})();const Gd=Ld;function O5(r){return!SD(r)&&T5(r)&&!isNaN(parseFloat(r))}function ND(r){return OD(r)&&m5(r)}function MD(r){return function(){return r}}function VD(r){return function(e){var t=r(e);return typeof t=="number"&&t>=0&&t<=E5}}function LD(r){return function(e){return e==null?void 0:e[r]}}const go=LD("byteLength"),S5=VD(go);var C5=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function B5(r){return vD?vD(r)&&!Ro(r):S5(r)&&C5.test(Oa.call(r))}const GD=bD?B5:MD(!1),It=LD("length");function w5(r){for(var e={},t=r.length,i=0;i<t;++i)e[r[i]]=!0;return{contains:function(a){return e[a]===!0},push:function(a){return e[a]=!0,r.push(a)}}}function $D(r,e){e=w5(e);var t=DD.length,i=r.constructor,a=mt(i)&&i.prototype||Nd,s="constructor";for(Yn(r,s)&&!e.contains(s)&&e.push(s);t--;)s=DD[t],s in r&&r[s]!==a[s]&&!e.contains(s)&&e.push(s)}function Xe(r){if(!Wn(r))return[];if(RD)return RD(r);var e=[];for(var t in r)Yn(r,t)&&e.push(t);return ID&&$D(r,e),e}function Sa(r){if(r==null)return!0;var e=It(r);return typeof e=="number"&&(Dr(r)||Md(r)||Gd(r))?e===0:It(Xe(r))===0}function FD(r,e){var t=Xe(e),i=t.length;if(r==null)return!i;for(var a=Object(r),s=0;s<i;s++){var o=t[s];if(e[o]!==a[o]||!(o in a))return!1}return!0}function se(r){if(r instanceof se)return r;if(!(this instanceof se))return new se(r);this._wrapped=r}se.VERSION=mD,se.prototype.value=function(){return this._wrapped},se.prototype.valueOf=se.prototype.toJSON=se.prototype.value,se.prototype.toString=function(){return String(this._wrapped)};function UD(r){return new Uint8Array(r.buffer||r,r.byteOffset||0,go(r))}var xD="[object DataView]";function $d(r,e,t,i){if(r===e)return r!==0||1/r===1/e;if(r==null||e==null)return!1;if(r!==r)return e!==e;var a=typeof r;return a!=="function"&&a!=="object"&&typeof e!="object"?!1:jD(r,e,t,i)}function jD(r,e,t,i){r instanceof se&&(r=r._wrapped),e instanceof se&&(e=e._wrapped);var a=Oa.call(r);if(a!==Oa.call(e))return!1;if(_D&&a=="[object Object]"&&Ro(r)){if(!Ro(e))return!1;a=xD}switch(a){case"[object RegExp]":case"[object String]":return""+r==""+e;case"[object Number]":return+r!=+r?+e!=+e:+r==0?1/+r===1/e:+r==+e;case"[object Date]":case"[object Boolean]":return+r==+e;case"[object Symbol]":return ED.valueOf.call(r)===ED.valueOf.call(e);case"[object ArrayBuffer]":case xD:return jD(UD(r),UD(e),t,i)}var s=a==="[object Array]";if(!s&&GD(r)){var o=go(r);if(o!==go(e))return!1;if(r.buffer===e.buffer&&r.byteOffset===e.byteOffset)return!0;s=!0}if(!s){if(typeof r!="object"||typeof e!="object")return!1;var l=r.constructor,p=e.constructor;if(l!==p&&!(mt(l)&&l instanceof l&&mt(p)&&p instanceof p)&&"constructor"in r&&"constructor"in e)return!1}t=t||[],i=i||[];for(var y=t.length;y--;)if(t[y]===r)return i[y]===e;if(t.push(r),i.push(e),s){if(y=r.length,y!==e.length)return!1;for(;y--;)if(!$d(r[y],e[y],t,i))return!1}else{var f=Xe(r),m;if(y=f.length,Xe(e).length!==y)return!1;for(;y--;)if(m=f[y],!(Yn(e,m)&&$d(r[m],e[m],t,i)))return!1}return t.pop(),i.pop(),!0}function _5(r,e){return $d(r,e)}function Ca(r){if(!Wn(r))return[];var e=[];for(var t in r)e.push(t);return ID&&$D(r,e),e}function Fd(r){var e=It(r);return function(t){if(t==null)return!1;var i=Ca(t);if(It(i))return!1;for(var a=0;a<e;a++)if(!mt(t[r[a]]))return!1;return r!==JD||!mt(t[Ud])}}var Ud="forEach",kD="has",xd=["clear","delete"],qD=["get",kD,"set"],N5=xd.concat(Ud,qD),JD=xd.concat(qD),M5=["add"].concat(xd,Ud,kD);const V5=Vd?Fd(N5):ot("Map"),L5=Vd?Fd(JD):ot("WeakMap"),G5=Vd?Fd(M5):ot("Set"),$5=ot("WeakSet");function gi(r){for(var e=Xe(r),t=e.length,i=Array(t),a=0;a<t;a++)i[a]=r[e[a]];return i}function F5(r){for(var e=Xe(r),t=e.length,i=Array(t),a=0;a<t;a++)i[a]=[e[a],r[e[a]]];return i}function WD(r){for(var e={},t=Xe(r),i=0,a=t.length;i<a;i++)e[r[t[i]]]=t[i];return e}function jd(r){var e=[];for(var t in r)mt(r[t])&&e.push(t);return e.sort()}function kd(r,e){return function(t){var i=arguments.length;if(e&&(t=Object(t)),i<2||t==null)return t;for(var a=1;a<i;a++)for(var s=arguments[a],o=r(s),l=o.length,p=0;p<l;p++){var y=o[p];(!e||t[y]===void 0)&&(t[y]=s[y])}return t}}const YD=kd(Ca),vo=kd(Xe),HD=kd(Ca,!0);function U5(){return function(){}}function zD(r){if(!Wn(r))return{};if(gD)return gD(r);var e=U5();e.prototype=r;var t=new e;return e.prototype=null,t}function x5(r,e){var t=zD(r);return e&&vo(t,e),t}function j5(r){return Wn(r)?Dr(r)?r.slice():YD({},r):r}function k5(r,e){return e(r),r}function ZD(r){return Dr(r)?r:[r]}se.toPath=ZD;function Ba(r){return se.toPath(r)}function qd(r,e){for(var t=e.length,i=0;i<t;i++){if(r==null)return;r=r[e[i]]}return t?r:void 0}function KD(r,e,t){var i=qd(r,Ba(e));return PD(i)?t:i}function q5(r,e){e=Ba(e);for(var t=e.length,i=0;i<t;i++){var a=e[i];if(!Yn(r,a))return!1;r=r[a]}return!!t}function Jd(r){return r}function wa(r){return r=vo({},r),function(e){return FD(e,r)}}function Wd(r){return r=Ba(r),function(e){return qd(e,r)}}function _a(r,e,t){if(e===void 0)return r;switch(t??3){case 1:return function(i){return r.call(e,i)};case 3:return function(i,a,s){return r.call(e,i,a,s)};case 4:return function(i,a,s,o){return r.call(e,i,a,s,o)}}return function(){return r.apply(e,arguments)}}function XD(r,e,t){return r==null?Jd:mt(r)?_a(r,e,t):Wn(r)&&!Dr(r)?wa(r):Wd(r)}function Yd(r,e){return XD(r,e,1/0)}se.iteratee=Yd;function Dt(r,e,t){return se.iteratee!==Yd?se.iteratee(r,e):XD(r,e,t)}function J5(r,e,t){e=Dt(e,t);for(var i=Xe(r),a=i.length,s={},o=0;o<a;o++){var l=i[o];s[l]=e(r[l],l,r)}return s}function QD(){}function W5(r){return r==null?QD:function(e){return KD(r,e)}}function Y5(r,e,t){var i=Array(Math.max(0,r));e=_a(e,t,1);for(var a=0;a<r;a++)i[a]=e(a);return i}function Hd(r,e){return e==null&&(e=r,r=0),r+Math.floor(Math.random()*(e-r+1))}const Na=Date.now||function(){return new Date().getTime()};function eP(r){var e=function(s){return r[s]},t="(?:"+Xe(r).join("|")+")",i=RegExp(t),a=RegExp(t,"g");return function(s){return s=s==null?"":""+s,i.test(s)?s.replace(a,e):s}}const tP={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},H5=eP(tP),z5=WD(tP),Z5=eP(z5),K5=se.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var zd=/(.)^/,X5={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Q5=/\\|'|\r|\n|\u2028|\u2029/g;function ek(r){return"\\"+X5[r]}var tk=/^\s*(\w|\$)+\s*$/;function nk(r,e,t){!e&&t&&(e=t),e=HD({},e,se.templateSettings);var i=RegExp([(e.escape||zd).source,(e.interpolate||zd).source,(e.evaluate||zd).source].join("|")+"|$","g"),a=0,s="__p+='";r.replace(i,function(y,f,m,b,v){return s+=r.slice(a,v).replace(Q5,ek),a=v+y.length,f?s+=`'+
1
+ (function(d,n){typeof exports=="object"&&typeof module<"u"?n(exports):typeof define=="function"&&define.amd?define(["exports"],n):(d=typeof globalThis<"u"?globalThis:d||self,n(d["@elyx-code/project-logic-tree"]={}))})(this,function(d){"use strict";var F7=Object.defineProperty;var U7=(d,n,L)=>n in d?F7(d,n,{enumerable:!0,configurable:!0,writable:!0,value:L}):d[n]=L;var c=(d,n,L)=>(U7(d,typeof n!="symbol"?n+"":n,L),L);var n=(r=>(r.CustomEntity="custom-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.PrimitiveValue="primitive-value",r.Property="property",r.Operation="operation",r.Condition="condition",r.VariableDeclaration="variable-declaration",r.VariableInstance="variable-instance",r.Search="search",r.Loop="loop",r.InternalCall="internal-call",r.GenericReference="generic-reference",r))(n||{}),L=(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))(L||{}),qe=(r=>(r.CurrentDateAndTime="current-date-and-time",r.Unique="unique",r.Random="random",r))(qe||{}),D=(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.JSON="json",r.Date="date",r.UUID="uuid",r.File="file",r))(D||{}),he=(r=>(r.Addition="addition",r.Subtraction="subtraction",r.Multiplication="multiplication",r.Division="division",r.Remainder="remainder",r.Exponentiation="exponentiation",r))(he||{}),K=(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))(K||{}),W=(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))(W||{}),_e=(r=>(r.Parallel="parallel",r.Sequential="sequential",r.Wait="wait",r))(_e||{}),oe=(r=>(r.CreateNewInstance="create-new-instance",r.Validate="validate",r))(oe||{}),et=(r=>(r.HttpRequest="base-http-request",r))(et||{}),Le=(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))(Le||{}),Nt=(r=>(r.Empty="empty",r.NotEmpty="not-empty",r))(Nt||{}),F=(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))(F||{}),A=(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))(A||{}),ze=(r=>(r.OrDataTypeGroup="or-data-type-group",r.AndDataTypeGroup="and-data-type-group",r))(ze||{}),cn=(r=>(r.PROJECT_PUBLICATION_COMPLETED="GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED",r))(cn||{}),At=(r=>(r.DeletePersistedEntity="base-delete-persisted-entity",r.SoftDeletePersistedEntity="base-soft-delete-persisted-entity",r.AbortExecution="base-abort-execution",r))(At||{}),Jr=(r=>(r.Error="error",r.Task="task",r.Return="return",r))(Jr||{});const Cn=[n.VariableDeclaration,n.VariableInstance,n.InputMap,n.ReturnDeclaration],Ue=[n.VariableDeclaration,n.VariableInstance,n.ArgumentDeclaration,n.OutputMap],xu=[...Cn,...Ue],Ge=[n.VariableDeclaration,n.VariableInstance],Wr=[n.GlobalEvent],xe=[n.Operation,n.FunctionCall,n.Condition,n.Search,n.VariableDeclaration,n.VariableInstance,n.InternalCall,n.Loop],zo=[n.Operation,n.FunctionCall,n.Condition,n.Search,n.VariableDeclaration,n.VariableInstance,n.Loop],$e=[n.FunctionDeclaration,...Wr],Bn=[...xe,n.ReturnStatement,n.BreakStatement,n.ContinueStatement],Zo=[...zo,n.ReturnStatement,n.BreakStatement,n.ContinueStatement],dn=[...xe,...$e],ju=[...zo,...$e],wA=[...Bn,...$e],_A=[...Zo,...$e],ct=[...$e,n.Loop],Fe=[n.ReturnStatement,n.BreakStatement,n.ContinueStatement],NA=[n.CustomEntity,n.BuiltInBaseEntity,n.Project,n.InstalledProject,n.GlobalEvent,n.DataType,n.FunctionCall,n.FunctionDeclaration,n.ActionDescriptor,n.ValueDescriptor,n.ArgumentDeclaration,n.InputMap,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.ReturnDeclaration,n.OutputMap,n.PrimitiveEntity,n.PrimitiveValue,n.Property,n.Operation,n.Condition,n.VariableDeclaration,n.VariableInstance,n.Search,n.Loop,n.InternalCall],Ko=[n.CustomEntity,n.GlobalEvent,n.FunctionDeclaration,n.FunctionCall,n.VariableDeclaration,n.VariableInstance,n.Operation,n.Condition,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.InstalledProject,n.Loop,n.Search],ku=[n.CustomEntity,n.FunctionDeclaration,n.ArgumentDeclaration,n.ReturnDeclaration,n.Property,n.VariableDeclaration,n.Search,n.Project,n.InstalledProject,n.ActionDescriptor,n.ValueDescriptor],Yr=[n.BuiltInBaseEntity,n.PrimitiveEntity],MA=[n.CustomEntity,n.FunctionDeclaration,n.ArgumentDeclaration,n.ReturnDeclaration,n.Property,n.VariableDeclaration,n.GlobalEvent,n.Search,n.Project,n.InstalledProject,n.ActionDescriptor,n.ValueDescriptor,n.InputMap,n.OutputMap,n.FunctionCall,n.Operation,n.Condition,n.ReturnStatement,n.BreakStatement,n.ContinueStatement,n.VariableInstance,n.PrimitiveValue,n.InternalCall];var Xo=(r=>(r.ActionOngoingProcessOutputValue="action-ongoing-process-output-value-descriptor-id",r))(Xo||{});const B={[n.PrimitiveEntity]:{[D.String]:{id:"8b5fbe15-4c2b-48c0-9fd8-e5efbe3978dc",properties:{}},[D.Boolean]:{id:"f596545d-1565-4faa-9969-d95fa5edfea4",properties:{}},[D.Number]:{id:"ecb84c29-6153-4b82-86a5-fce2b5f92002",properties:{}},[D.JSON]:{id:"b6f3c3c4-9c3d-4f9d-9e9e-1c0f6a3c8c6b",properties:{}},[D.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"}}}}},[D.UUID]:{id:"4a6234aa-c0f6-4731-b4dd-750388029226",properties:{}},[D.Date]:{id:"dc58f38b-d574-4956-aac6-32ce9529b937",properties:{}},[D.Null]:{id:"b6f3c3c4-9c3d-4f9d-9e9e-1c0f6a3c8c6b",properties:{}}},[n.ValueDescriptor]:{"action-ongoing-process-output-value-descriptor-id":{id:"action-ongoing-process-output-value-descriptor-id",dataType:{id:"process-output-value-data-type-id"}}},[n.BuiltInBaseEntity]:{[L.KEY_VALUE_PARAM]:{id:L.KEY_VALUE_PARAM},[L.HTTP_ENDPOINT]:{id:L.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"}}},[L.PERSISTED_ENTITY]:{id:L.PERSISTED_ENTITY,properties:{database:{id:"persisted-built-in-base-entity-database-property-id"},identifier:{id:"persisted-built-in-base-entity-identifier-property-id"}}},[L.RELATIONAL_DATABASE]:{id:L.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"}}},[L.CRON_JOB]:{id:L.CRON_JOB,properties:{expression:{id:"cron-job-built-in-base-entity-expression-property-id"}}}},[n.Operation]:{[K.Join]:{id:K.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"}}},[K.Split]:{id:K.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"}}},[he.Addition]:{id:he.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"},error:{id:"number-addition-error-return-delaration-id"}}},[he.Subtraction]:{id:he.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"},error:{id:"number-subtraction-error-return-delaration-id"}}},[et.HttpRequest]:{id:et.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"}}},[oe.Validate]:{id:oe.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"}}}},[n.Loop]:{[F.List]:{id:F.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"}}}},[F.String]:{id:F.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"}}}},[F.ObjectKeys]:{id:F.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"}}}},[F.ObjectValues]:{id:F.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"}}}},[F.ManualFlow]:{id:F.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"}}}},[F.Counted]:{id:F.Counted,inputs:{number:{id:"counted-loop-number-input-id"}},outputs:{results:{id:"counted-loop-output-id"}},body:{id:"counted-loop-body-descriptor-id",inputs:{iterationNumber:{id:"counted-loop-iteration-number-input-id"}}}}},[n.Condition]:{[Le.MoreThanOrEqual]:{id:Le.MoreThanOrEqual,inputs:{leftHand:{id:"condition-more-than-or-equal-left-hand-input-id"},rightHand:{id:"condition-more-than-or-equal-right-hand-input-id"}}},[Nt.NotEmpty]:{id:Nt.NotEmpty,inputs:{leftHand:{id:"condition-not-empty-input-id"}}}},[n.GlobalEvent]:{[cn.PROJECT_PUBLICATION_COMPLETED]:{id:cn.PROJECT_PUBLICATION_COMPLETED}}},jt=B[n.PrimitiveEntity],j={type:n.PrimitiveEntity,id:jt.string.id,description:"A string of characters.",version:1,name:D.String,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},wn={type:n.PrimitiveEntity,id:jt.boolean.id,description:"A 'true' or 'false' value.",version:1,name:D.Boolean,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Q={type:n.PrimitiveEntity,id:jt.number.id,description:"A number value.",version:1,name:D.Number,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},VA={type:n.PrimitiveEntity,id:jt.null.id,description:"An explicitly empty value.",version:1,name:D.Null,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Ze={type:n.PrimitiveEntity,id:"730e8ea9-8498-439a-9001-b07de55aaa7d",description:"A complex data structure with any combination of properties with names and values.",version:1,name:D.JSON,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},qu={id:"c2f52f01-8f2e-490e-8083-72289c8189c1",type:n.GenericReference,entityId:"7dd59b70-f97b-43a7-a051-fde1842ce5d6",entityType:n.DataType},Ju={id:"4e803941-2e6a-4227-b803-b8877c0d7fee",type:n.GenericReference,entityId:"00ccfcae-2104-45ef-bf6c-50ddccd74286",entityType:n.Property},Wu={like:!1,inferred:!1,id:jt.enum.properties.options.dataType.id,version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:j,asType:!1,defaultValue:{id:jt.enum.properties.options.dataType.defaultValue.id,type:n.PrimitiveValue,version:1,name:D.JSON,autogeneration:null,value:[],valueAsType:null,parent:qu},parent:Ju},Yu={id:"a2983c4c-0286-4ef1-8b5c-5a52904d3200",type:n.GenericReference,entityId:"9542b8b4-2642-4eee-9db9-def7963a17a0",entityType:n.PrimitiveEntity},Hu={hidden:!1,required:!0,id:jt.enum.properties.options.id,name:"Options",version:1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:Wu,description:"Options for the enum. Each option is a text value.",parent:Yu},_n={type:n.PrimitiveEntity,id:jt.enum.id,description:"A set of text options to choose from.",version:1,name:D.Enum,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[Hu],methods:[]},un={type:n.PrimitiveEntity,id:jt.date.id,description:"A date and time value.",version:1,name:D.Date,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},ka={type:n.PrimitiveEntity,id:jt.uuid.id,description:"A unique identifier in the form of a 36-character string.",version:1,name:D.UUID,static:!1,abstract:!1,abstractMethods:[],extends:[j],properties:[],methods:[]},Qo={type:n.PrimitiveEntity,id:jt.json.id,description:"A complex data structure with any combination of properties with names and values.",version:1,name:D.JSON,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},pn=B[n.Operation][he.Addition],zu={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:pn.inputs.firstSummand.id,entityType:n.ValueDescriptor},Zu={like:!1,inferred:!1,id:"number-addition-first-number-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:zu},Ku={type:n.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:pn.inputs.secondSummand.id,entityType:n.ValueDescriptor},Xu={like:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Ku},Qu={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:pn.outputs.result.id,entityType:n.ValueDescriptor},ep={like:!1,inferred:!1,id:"b761acec-0755-4582-a68b-76267038bbe1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Qu},tp={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:he.Addition,entityType:n.ActionDescriptor},el={id:pn.inputs.firstSummand.id,type:n.ValueDescriptor,version:1,name:"Summand",description:"The first number to add",dataType:Zu,required:!0,parentRelationType:A.FixedArguments,index:0,parent:tp},np={type:n.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:he.Addition,entityType:n.ActionDescriptor},tl={id:pn.inputs.secondSummand.id,type:n.ValueDescriptor,description:"The second number to add",version:1,name:"Summand",dataType:Xu,required:!0,parentRelationType:A.FixedArguments,index:1,parent:np},nl={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:he.Addition,entityType:n.ActionDescriptor},rl={parentRelationType:A.FixedReturns,id:pn.outputs.result.id,type:n.ValueDescriptor,description:"The result number of the addition",version:1,name:"Result",dataType:ep,required:!0,index:0,parent:nl},rp={type:n.GenericReference,id:"number-addition-operation-error-parent-ref",entityId:he.Addition,entityType:n.ActionDescriptor},ip={parentRelationType:A.FixedReturns,id:pn.outputs.error.id,type:n.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:rp},ap={type:n.GenericReference,id:"number-addition-operation-dynamic-summand-argument-type-parent-ref",entityId:pn.inputs.dynamicSummand.id,entityType:n.ValueDescriptor},sp={like:!1,inferred:!1,id:"number-addition-operation-dynamic-summand-argument-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:ap},op={parentRelationType:A.DynamicArgument,id:pn.inputs.dynamicSummand.id,type:n.ValueDescriptor,description:"A number to add",version:1,name:"Summand",dataType:sp,required:!0,index:2,parent:nl},qa={id:he.Addition,type:n.ActionDescriptor,description:"Sum numbers",version:1,name:he.Addition,inputs:[el,tl,op],error:ip,outputs:[rl],parent:null},yn=B[n.Operation][he.Subtraction],lp={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:yn.inputs.minuend.id,entityType:n.ValueDescriptor},cp={like:!1,inferred:!1,id:"number-subtraction-first-number-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:lp},dp={type:n.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:yn.inputs.subtrahend.id,entityType:n.ValueDescriptor},up={like:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:dp},pp={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:yn.outputs.result.id,entityType:n.ValueDescriptor},yp={like:!1,inferred:!1,id:"b761acec-0755-4582-a68b-76267038bbe1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:pp},il={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:he.Subtraction,entityType:n.ActionDescriptor},hp={id:yn.inputs.minuend.id,type:n.ValueDescriptor,version:1,name:"Minuend",description:"Base number to substract from",dataType:cp,required:!0,parentRelationType:A.FixedArguments,index:0,parent:il},fp={type:n.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:he.Subtraction,entityType:n.ActionDescriptor},mp={id:yn.inputs.subtrahend.id,type:n.ValueDescriptor,description:"The second number to substract",version:1,name:"Subtrahend",dataType:up,required:!0,parentRelationType:A.FixedArguments,index:1,parent:fp},Tp={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:he.Subtraction,entityType:n.ActionDescriptor},Ep={parentRelationType:A.FixedReturns,id:yn.outputs.result.id,type:n.ValueDescriptor,description:"The result number of the subtraction",version:1,name:"Result",dataType:yp,required:!0,index:0,parent:Tp},bp={type:n.GenericReference,id:"number-subtraction-operation-error-parent-ref",entityId:he.Subtraction,entityType:n.ActionDescriptor},Rp={parentRelationType:A.FixedReturns,id:yn.outputs.error.id,type:n.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:bp},gp={type:n.GenericReference,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-parent-ref",entityId:yn.inputs.dynamicSubtrahend.id,entityType:n.ValueDescriptor},vp={like:!1,inferred:!1,id:"number-subtraction-operation-dynamic-subtrahend-argument-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:gp},Ip={id:yn.inputs.dynamicSubtrahend.id,type:n.ValueDescriptor,version:1,name:"Subtrahend",description:"A number to substract",dataType:vp,required:!0,parentRelationType:A.DynamicArgument,index:2,parent:il},al={id:he.Subtraction,type:n.ActionDescriptor,description:"Substract numbers",version:1,name:he.Subtraction,inputs:[hp,mp,Ip],error:Rp,outputs:[Ep],parent:null},Dp={[he.Addition]:qa,[he.Subtraction]:al},kt=B[n.Operation][K.Join],Pp={type:n.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:kt.inputs.first.id,entityType:n.ValueDescriptor},Ap={like:!1,inferred:!1,id:"join-strings-first-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Pp},Op={type:n.GenericReference,id:"join-strings-second-string-argument-declaration",entityId:kt.inputs.second.id,entityType:n.ValueDescriptor},Sp={like:!1,inferred:!1,id:"join-strings-second-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Op},Cp={type:n.GenericReference,id:"join-strings-result-string-return-delaration",entityId:kt.outputs.result.id,entityType:n.ValueDescriptor},Bp={like:!1,inferred:!1,id:"join-strings-result-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Cp},wp={type:n.GenericReference,id:"join-strings-operation-first-string-argument-parent-ref",entityId:K.Join,entityType:n.ActionDescriptor},Ja={id:kt.inputs.first.id,type:n.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.",dataType:Ap,parentRelationType:A.FixedArguments,required:!0,index:1,parent:wp},_p={type:n.GenericReference,id:"join-strings-first-string-argument-declaration",entityId:kt.inputs.first.id,entityType:n.ValueDescriptor},Np={type:n.GenericReference,id:"join-strings-separator-string-data-type-default-value-parent-ref",entityId:"join-strings-separator-string-data-type-id",entityType:n.DataType},Mp={type:n.PrimitiveValue,id:"join-strings-separator-string-data-type-default-value-id",version:1,name:D.String,value:"",valueAsType:null,autogeneration:null,parent:Np},Vp={like:!1,inferred:!1,id:"join-strings-separator-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:Mp,constant:!1,parent:_p},Lp={type:n.GenericReference,id:"join-strings-operation-separator-string-argument-parent-ref",entityId:K.Join,entityType:n.ActionDescriptor},Gp={id:kt.inputs.separator.id,type:n.ValueDescriptor,version:1,name:"Separator",description:"The text value that will be inserted between each of the values that are joined.",dataType:Vp,parentRelationType:A.FixedArguments,required:!1,index:0,parent:Lp},$p={type:n.GenericReference,id:"join-strings-operation-second-string-argument-parent-ref",entityId:K.Join,entityType:n.ActionDescriptor},Wa={id:kt.inputs.second.id,type:n.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.",dataType:Sp,parentRelationType:A.FixedArguments,required:!0,index:2,parent:$p},Fp={type:n.GenericReference,id:"join-strings-operation-result-string-return-parent-ref",entityId:K.Join,entityType:n.ActionDescriptor},Bi={parentRelationType:A.FixedReturns,id:kt.outputs.result.id,type:n.ValueDescriptor,version:1,name:"Result",description:"The resulting text value.",dataType:Bp,required:!0,index:0,parent:Fp},Up={type:n.GenericReference,id:"join-strings-operation-error-parent-ref",entityId:K.Join,entityType:n.ActionDescriptor},xp={parentRelationType:A.FixedReturns,id:kt.outputs.error.id,type:n.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Up},jp={type:n.GenericReference,id:"join-strings-dynamic-string-argument-declaration",entityId:kt.inputs.dynamicString.id,entityType:n.ValueDescriptor},kp={like:!1,inferred:!1,id:"join-strings-dynamic-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:jp},qp={type:n.GenericReference,id:"join-strings-operation-dynamic-string-argument-parent-ref",entityId:K.Join,entityType:n.ActionDescriptor},Jp={id:kt.inputs.dynamicString.id,type:n.ValueDescriptor,version:1,name:"Text",description:"Text to join to the previous ones. Its value will be at the end of the resulting text.",dataType:kp,parentRelationType:A.DynamicArgument,required:!0,index:3,parent:qp},wi={id:K.Join,type:n.ActionDescriptor,version:1,name:K.Join,description:"Join text values together, to form a single resulting text value.",inputs:[Gp,Ja,Wa,Jp],outputs:[Bi],error:xp,parent:null},hn=B[n.Operation][K.Split],Wp={type:n.GenericReference,id:"split-string-string-argument-declaration",entityId:hn.inputs.stringValue.id,entityType:n.ValueDescriptor},Yp={like:!1,inferred:!1,id:"split-string-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Wp},Hp={type:n.GenericReference,id:"split-string-index-argument-declaration",entityId:hn.inputs.indexLocation.id,entityType:n.ValueDescriptor},zp={like:!1,inferred:!1,id:"split-string-index-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Hp},Zp={type:n.GenericReference,id:"split-string-first-part-result-string-return-delaration",entityId:hn.outputs.firstPartResult.id,entityType:n.ValueDescriptor},Kp={like:!1,inferred:!1,id:"split-string-first-part-result-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Zp},Xp={type:n.GenericReference,id:"split-string-second-part-result-string-return-delaration",entityId:hn.outputs.secondPartResult.id,entityType:n.ValueDescriptor},Qp={like:!1,inferred:!1,id:"split-string-second-part-result-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Xp},ey={type:n.GenericReference,id:"split-string-operation-string-argument-parent-ref",entityId:K.Join,entityType:n.ActionDescriptor},ty={id:hn.inputs.stringValue.id,type:n.ValueDescriptor,version:1,name:"Text value",description:"The text value that will be split into two at the given index location.",dataType:Yp,parentRelationType:A.FixedArguments,required:!0,index:0,parent:ey},ny={type:n.GenericReference,id:"split-string-operation-index-argument-parent-ref",entityId:K.Join,entityType:n.ActionDescriptor},ry={id:hn.inputs.indexLocation.id,type:n.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.",dataType:zp,parentRelationType:A.FixedArguments,required:!0,index:1,parent:ny},iy={type:n.GenericReference,id:"split-string-operation-second-part-result-string-return-parent-ref",entityId:K.Join,entityType:n.ActionDescriptor},LA={parentRelationType:A.FixedReturns,id:hn.outputs.secondPartResult.id,type:n.ValueDescriptor,version:1,name:"Second part",description:"The secont part of the resulting text value.",dataType:Qp,required:!0,index:1,parent:iy},ay={type:n.GenericReference,id:"split-string-operation-first-part-result-string-return-parent-ref",entityId:K.Join,entityType:n.ActionDescriptor},sy={parentRelationType:A.FixedReturns,id:hn.outputs.firstPartResult.id,type:n.ValueDescriptor,version:1,name:"First part",description:"The first part of the resulting text value.",dataType:Kp,required:!0,index:0,parent:ay},oy={type:n.GenericReference,id:"split-string-operation-error-parent-ref",entityId:K.Join,entityType:n.ActionDescriptor},ly={parentRelationType:A.FixedReturns,id:hn.outputs.error.id,type:n.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:oy},sl={id:K.Split,type:n.ActionDescriptor,version:1,name:K.Split,description:"Split a text into two, at the given index location.",inputs:[ty,ry],outputs:[sy],error:ly,parent:null},cy={[K.Join]:wi,[K.Split]:sl};var dy=(r=>(r.FirstInputList="join-list-first-list-argument-declaration",r.SecondInputList="join-list-second-list-argument-declaration",r))(dy||{}),uy=(r=>(r.ResultList="join-list-result-list-return-delaration",r.Error="join-list-error-return-delaration",r))(uy||{});const py={type:n.GenericReference,id:"join-list-operation-first-list-argument-ref",entityId:"join-list-first-list-argument-declaration",entityType:n.ValueDescriptor},yy={like:!1,inferred:!1,id:"join-list-first-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:py},hy={type:n.GenericReference,id:"join-list-operation-second-list-argument-ref",entityId:"join-list-second-list-argument-declaration",entityType:n.ValueDescriptor},fy={like:!1,inferred:!1,id:"join-list-second-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:hy},my={type:n.GenericReference,id:"join-list-operation-result-list-return-ref",entityId:"join-list-result-list-return-delaration",entityType:n.ValueDescriptor},Ty={like:!1,inferred:!1,id:"join-list-result-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:my},Ey={type:n.GenericReference,id:"join-list-operation-first-list-argument-parent-ref",entityId:W.Join,entityType:n.ActionDescriptor},by={id:"join-list-first-list-argument-declaration",type:n.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.",dataType:yy,parentRelationType:A.FixedArguments,required:!0,index:0,parent:Ey},Ry={type:n.GenericReference,id:"join-list-operation-second-list-argument-parent-ref",entityId:W.Join,entityType:n.ActionDescriptor},gy={id:"join-list-second-list-argument-declaration",type:n.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.",dataType:fy,parentRelationType:A.FixedArguments,required:!0,index:1,parent:Ry},vy={type:n.GenericReference,id:"join-list-operation-result-list-return-parent-ref",entityId:W.Join,entityType:n.ActionDescriptor},Iy={parentRelationType:A.FixedReturns,id:"join-list-result-list-return-delaration",type:n.ValueDescriptor,version:1,name:"Result",description:"The resulting list value.",dataType:Ty,required:!0,index:0,parent:vy},Dy={type:n.GenericReference,id:"join-list-operation-error-parent-ref",entityId:W.Join,entityType:n.ActionDescriptor},Py={parentRelationType:A.FixedReturns,id:"join-list-error-return-delaration",type:n.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Dy},ol={id:W.Join,type:n.ActionDescriptor,version:1,name:W.Join,description:"Join two lists together, to form a single resulting list value.",inputs:[by,gy],error:Py,outputs:[Iy],parent:null};var Ay=(r=>(r.InputList="list-to-split-argument-declaration",r.SplitIndex="split-list-index-argument-declaration",r))(Ay||{}),Oy=(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))(Oy||{});const Sy={type:n.GenericReference,id:"split-list-operation-input-list-argument-ref",entityId:"list-to-split-argument-declaration",entityType:n.ValueDescriptor},Cy={like:!1,inferred:!1,id:"split-list-operation-input-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Sy},By={type:n.GenericReference,id:"split-list-operation-split-index-argument-ref",entityId:"split-list-index-argument-declaration",entityType:n.ValueDescriptor},wy={like:!1,inferred:!1,id:"split-list-operation-split-index-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:By},ll={type:n.GenericReference,id:"split-list-operation-first-output-list-return-ref",entityId:"split-list-first-output-list-return-delaration",entityType:n.ValueDescriptor},_y={like:!1,inferred:!1,id:"split-list-operation-first-output-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:ll},Ny={type:n.GenericReference,id:"split-list-operation-input-list-argument-parent-ref",entityId:W.Split,entityType:n.ActionDescriptor},My={id:"list-to-split-argument-declaration",type:n.ValueDescriptor,version:1,name:"List to split",description:"The list to split at the given index",dataType:Cy,parentRelationType:A.FixedArguments,required:!0,index:0,parent:Ny},Vy={type:n.GenericReference,id:"split-list-operation-split-index-argument-parent-ref",entityId:W.Split,entityType:n.ActionDescriptor},Ly={id:"split-list-index-argument-declaration",type:n.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.",dataType:wy,parentRelationType:A.FixedArguments,required:!0,index:1,parent:Vy},Gy={type:n.GenericReference,id:"split-list-operation-first-output-list-return-parent-ref",entityId:W.Split,entityType:n.ActionDescriptor},$y={parentRelationType:A.FixedReturns,id:"split-list-first-output-list-return-delaration",type:n.ValueDescriptor,version:1,name:"First list",description:"The list of values up to the split index",dataType:_y,required:!0,index:0,parent:Gy},Fy={like:!1,inferred:!1,id:"split-list-operation-second-output-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:ll},Uy={type:n.GenericReference,id:"split-list-operation-second-output-list-return-parent-ref",entityId:W.Split,entityType:n.ActionDescriptor},xy={parentRelationType:A.FixedReturns,id:"split-list-second-output-list-return-delaration",type:n.ValueDescriptor,version:1,name:"Second list",description:"The list of values up to the split index",dataType:Fy,required:!0,index:0,parent:Uy},jy={type:n.GenericReference,id:"split-list-operation-error-parent-ref",entityId:W.Split,entityType:n.ActionDescriptor},ky={parentRelationType:A.FixedReturns,id:"split-list-error-return-delaration",type:n.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:jy},cl={id:W.Split,type:n.ActionDescriptor,version:1,name:W.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:[My,Ly],outputs:[$y,xy],error:ky,parent:null};var qy=(r=>(r.InputList="get-last-in-list-input-list-argument-declaration",r))(qy||{}),Jy=(r=>(r.OutputElement="get-last-in-list-output-element-return-delaration",r.Error="get-last-in-list-error-return-delaration",r))(Jy||{});const Wy={type:n.GenericReference,id:"get-last-in-list-operation-input-list-argument-ref",entityId:"get-last-in-list-input-list-argument-declaration",entityType:n.ValueDescriptor},Yy={like:!1,inferred:!1,id:"get-last-in-list-input-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Wy},Hy={type:n.GenericReference,id:"get-last-in-list-operation-output-element-return-ref",entityId:"get-last-in-list-output-element-return-delaration",entityType:n.ValueDescriptor},zy={like:!1,inferred:!1,id:"get-last-in-list-output-element-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Hy},Zy={type:n.GenericReference,id:"get-last-in-list-operation-input-list-argument-parent-ref",entityId:W.GetLast,entityType:n.ActionDescriptor},Ky={id:"get-last-in-list-input-list-argument-declaration",type:n.ValueDescriptor,version:1,name:"List",description:"The list to get the last element from.",dataType:Yy,parentRelationType:A.FixedArguments,required:!0,index:0,parent:Zy},Xy={type:n.GenericReference,id:"get-last-in-list-operation-output-element-return-parent-ref",entityId:W.GetLast,entityType:n.ActionDescriptor},Qy={parentRelationType:A.FixedReturns,id:"get-last-in-list-output-element-return-delaration",type:n.ValueDescriptor,version:1,name:"Last element",description:"The last element of the given list.",dataType:zy,required:!0,index:0,parent:Xy},eh={type:n.GenericReference,id:"get-last-in-list-operation-error-parent-ref",entityId:W.GetLast,entityType:n.ActionDescriptor},th={parentRelationType:A.FixedReturns,id:"get-last-in-list-error-return-delaration",type:n.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:eh},dl={id:W.GetLast,type:n.ActionDescriptor,version:1,name:W.GetLast,description:"Outputs the last element of a given list.",inputs:[Ky],outputs:[Qy],error:th,parent:null};var nh=(r=>(r.List="append-to-list-lsit-argument-declaration",r.ElementToAppend="append-to-list-element-to-append-argument-declaration",r))(nh||{}),rh=(r=>(r.ResultList="append-to-list-result-list-return-delaration",r.Error="append-to-list-error-return-delaration",r))(rh||{});const ih={type:n.GenericReference,id:"append-to-list-operation-lsit-argument-ref",entityId:"append-to-list-lsit-argument-declaration",entityType:n.ValueDescriptor},ah={like:!1,inferred:!1,id:"append-to-list-lsit-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:ih},sh={type:n.GenericReference,id:"append-to-list-operation-second-list-argument-ref",entityId:"append-to-list-element-to-append-argument-declaration",entityType:n.ValueDescriptor},oh={like:!1,inferred:!1,id:"append-to-list-second-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:sh},lh={type:n.GenericReference,id:"append-to-list-operation-result-list-return-ref",entityId:"append-to-list-result-list-return-delaration",entityType:n.ValueDescriptor},ch={like:!1,inferred:!1,id:"append-to-list-result-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:lh},dh={type:n.GenericReference,id:"append-to-list-operation-lsit-argument-parent-ref",entityId:W.Append,entityType:n.ActionDescriptor},ul={id:"append-to-list-lsit-argument-declaration",type:n.ValueDescriptor,version:1,name:"List value",description:"The list to which the element will be appended",dataType:ah,parentRelationType:A.FixedArguments,required:!0,index:0,parent:dh},uh={type:n.GenericReference,id:"append-to-list-operation-second-list-argument-parent-ref",entityId:W.Append,entityType:n.ActionDescriptor},pl={id:"append-to-list-element-to-append-argument-declaration",type:n.ValueDescriptor,version:1,name:"Element",description:"The element that will be added at the end of the list",dataType:oh,parentRelationType:A.FixedArguments,required:!0,index:1,parent:uh},ph={type:n.GenericReference,id:"append-to-list-operation-result-list-return-parent-ref",entityId:W.Append,entityType:n.ActionDescriptor},yh={parentRelationType:A.FixedReturns,id:"append-to-list-result-list-return-delaration",type:n.ValueDescriptor,version:1,name:"Result",description:"The resulting list value.",dataType:ch,required:!0,index:0,parent:ph},hh={type:n.GenericReference,id:"append-to-list-operation-error-parent-ref",entityId:W.Append,entityType:n.ActionDescriptor},fh={parentRelationType:A.FixedReturns,id:"append-to-list-error-return-delaration",type:n.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:hh},Ya={id:W.Append,type:n.ActionDescriptor,version:1,name:W.Append,description:"Adds a given element to the end of a list value.",inputs:[ul,pl],error:fh,outputs:[yh],parent:null},mh={[W.Join]:ol,[W.Split]:cl,[W.GetLast]:dl,[W.Append]:Ya};var Th=(r=>(r.ListOfFunctions="parallel-execution-list-of-functions-argument-declaration",r))(Th||{}),Eh=(r=>(r.ListOfExecutionResults="parallel-execution-result-return-delaration",r.Error="parallel-execution-error-return-delaration",r))(Eh||{});const bh={id:"parallel-execution-list-of-functions-blueprint-dynamic-output-id",type:n.ValueDescriptor,version:1,name:"Any output value",description:"An output value of any type, to be used in the action to be executed.",dataType:null,required:!1,index:0,parent:null,parentRelationType:A.DynamicArgument},Rh={id:"parallel-execution-list-of-functions-blueprint-dynamic-input-id",type:n.ValueDescriptor,version:1,name:"Any input value",description:"An input value of any type, to be used in the action to be executed.",dataType:null,required:!1,index:0,parent:null,parentRelationType:A.DynamicArgument},gh={id:"parallel-execution-list-of-functions-blueprint-id",type:n.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:[Rh],outputs:[bh],error:null,parent:null},vh={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:"parallel-execution-list-of-functions-argument-declaration",entityType:n.ValueDescriptor},Ih={like:!1,inferred:!1,id:"parallel-execution-list-of-functions-argument-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:gh,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:vh},Dh={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:"parallel-execution-result-return-delaration",entityType:n.ValueDescriptor},Ph={like:!1,inferred:!1,id:"b761acec-0755-4582-a68b-76267038bbe1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Dh},Ah={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:_e.Parallel,entityType:n.ActionDescriptor},yl={id:"parallel-execution-list-of-functions-argument-declaration",type:n.ValueDescriptor,version:1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",dataType:Ih,required:!0,index:0,parent:Ah,parentRelationType:A.FixedArguments},Oh={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:_e.Parallel,entityType:n.ActionDescriptor},hl={id:"parallel-execution-result-return-delaration",type:n.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:Ph,required:!0,index:0,parent:Oh,parentRelationType:A.FixedReturns},Sh={type:n.GenericReference,id:"parallel-execution-operation-error-parent-ref",entityId:_e.Parallel,entityType:n.ActionDescriptor},Ch={id:"parallel-execution-error-return-delaration",type:n.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Sh,parentRelationType:A.ReturnedError},qt={id:_e.Parallel,type:n.ActionDescriptor,description:"Execute a list of actions in parallel",version:1,name:_e.Parallel,inputs:[yl],outputs:[hl],error:Ch,parent:null};var Bh=(r=>(r.MillisecondsNumber="wait-milliseconds-number-argument-declaration",r))(Bh||{}),wh=(r=>(r.Error="wait-operation-error-return-delaration",r))(wh||{});const _h={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityType:n.ValueDescriptor,entityId:"wait-milliseconds-number-argument-declaration"},Nh={like:!1,inferred:!1,id:"wait-milliseconds-number-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:_h},Mh={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityType:n.ActionDescriptor,entityId:_e.Wait},er={id:"wait-milliseconds-number-argument-declaration",type:n.ValueDescriptor,version:1,name:"Milliseconds to wait",description:"The amount of milliseconds to wait before calling the next entity",dataType:Nh,required:!0,index:0,parent:Mh,parentRelationType:A.FixedArguments},Vh={type:n.GenericReference,id:"wait-operation-error-parent-ref",entityId:_e.Wait,entityType:n.ActionDescriptor},Lh={id:"wait-operation-error-return-delaration",type:n.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Vh,parentRelationType:A.ReturnedError},dt={id:_e.Wait,type:n.ActionDescriptor,description:"Wait for the given amount of milliseconds before calling the next entity",version:1,name:_e.Wait,inputs:[er],outputs:[],error:Lh,parent:null};var Gh=(r=>(r.ListOfFunctions="sequential-execution-list-of-functions-argument-declaration",r))(Gh||{}),$h=(r=>(r.ListOfExecutionResults="sequential-execution-result-return-delaration",r.Error="sequential-execution-error-return-delaration",r))($h||{});const Fh={id:"sequential-execution-list-of-functions-blueprint-dynamic-output-id",type:n.ValueDescriptor,version:1,name:"Any output value",description:"An output value of any type, to be used in the action to be executed.",dataType:null,required:!1,index:0,parent:null,parentRelationType:A.DynamicArgument},Uh={id:"sequential-execution-list-of-functions-blueprint-dynamic-input-id",type:n.ValueDescriptor,version:1,name:"Any input value",description:"An input value of any type, to be used in the action to be executed.",dataType:null,required:!1,index:0,parent:null,parentRelationType:A.DynamicArgument},xh={id:"sequential-execution-list-of-functions-blueprint-id",type:n.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:[Uh],outputs:[Fh],error:null,parent:null},jh={type:n.GenericReference,id:"parallel-execution-list-of-functions-argument-declaration-id",entityId:"sequential-execution-list-of-functions-argument-declaration",entityType:n.ValueDescriptor},kh={like:!1,inferred:!1,id:"sequential-execution-list-of-functions-argument-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:xh,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:jh},qh={type:n.GenericReference,id:"sequential-execution-list-of-execution-results-return-declaration-id",entityId:"sequential-execution-result-return-delaration",entityType:n.ValueDescriptor},Jh={like:!1,inferred:!1,id:"sequential-execution-list-of-execution-results-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:qh},Wh={type:n.GenericReference,id:"parallel-execution-operation-list-of-functions-argument-parent-ref",entityId:_e.Sequential,entityType:n.ActionDescriptor},fl={id:"sequential-execution-list-of-functions-argument-declaration",type:n.ValueDescriptor,version:1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",dataType:kh,required:!0,index:0,parent:Wh,parentRelationType:A.FixedArguments},Yh={type:n.GenericReference,id:"parallel-execution-operation-list-of-execution-results-return-parent-ref",entityId:_e.Sequential,entityType:n.ActionDescriptor},ml={id:"sequential-execution-result-return-delaration",type:n.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:Jh,required:!0,index:0,parent:Yh,parentRelationType:A.FixedReturns},Hh={type:n.GenericReference,id:"sequential-execution-operation-error-parent-ref",entityId:_e.Sequential,entityType:n.ActionDescriptor},zh={id:"sequential-execution-error-return-delaration",type:n.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Hh,parentRelationType:A.ReturnedError},fn={id:_e.Sequential,type:n.ActionDescriptor,description:"Execute a list of actions one after the other",version:1,name:_e.Sequential,inputs:[fl],outputs:[ml],error:zh,parent:null},Zh={[_e.Parallel]:qt,[_e.Wait]:dt,[_e.Sequential]:fn};var Kh=(r=>(r.EntityToInstanciate="entity-to-instanciate-argument-declaration",r.NewEntityData="new-entity-data-argument-declaration",r))(Kh||{}),Xh=(r=>(r.Error="create-new-instance-error-return-delaration",r))(Xh||{});const Qh={type:n.GenericReference,id:"new-entity-data-argument-declaration-parent-ref",entityId:oe.CreateNewInstance,entityType:n.ActionDescriptor},ef={type:n.GenericReference,id:"new-entity-data-argument-data-type-parent-ref",entityId:"new-entity-data-argument-declaration",entityType:n.ValueDescriptor},tf={like:!1,inferred:!1,id:"new-entity-data-argument-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:ef},nf={id:"new-entity-data-argument-declaration",type:n.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:tf,required:!0,parentRelationType:A.FixedArguments,index:1,parent:Qh},rf={type:n.GenericReference,id:"entity-to-instanciate-argument-declaration-ref",entityType:n.ValueDescriptor,entityId:"entity-to-instanciate-argument-declaration"},af={like:!1,inferred:!1,id:"entity-to-instanciate-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!0,isNullable:!1,defaultValue:null,constant:!1,parent:rf},sf={type:n.GenericReference,id:"create-new-instance-operation-ref",entityType:n.ActionDescriptor,entityId:oe.CreateNewInstance},of={id:"entity-to-instanciate-argument-declaration",type:n.ValueDescriptor,version:1,name:"Entity to create a new copy of",description:"The entity of which a new copy will to be created",dataType:af,required:!0,parentRelationType:A.FixedArguments,index:0,parent:sf},lf={type:n.GenericReference,id:"create-new-instance-output-entity-declaration-parent-ref",entityId:oe.CreateNewInstance,entityType:n.ActionDescriptor},cf={parentRelationType:A.FixedReturns,id:"create-new-instance-output-entity-declaration",type:n.ValueDescriptor,version:1,dataType:null,name:"Created entity",description:"The entity that was created",parent:lf,required:!0,index:0},df={type:n.GenericReference,id:"create-new-instance-error-parent-ref",entityId:oe.CreateNewInstance,entityType:n.ActionDescriptor},uf={parentRelationType:A.FixedReturns,id:"create-new-instance-error-return-delaration",type:n.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:df},tr={id:oe.CreateNewInstance,type:n.ActionDescriptor,description:"Creates a new copy of a given entity, with the given values for each property, or default values if a value is not provided",version:1,name:oe.CreateNewInstance,inputs:[of,nf],outputs:[cf],error:uf,parent:null},Hr=B[n.Operation][oe.Validate],pf={type:n.GenericReference,id:"validate-data-operation-data-to-validate-argument-declaration-ref",entityType:n.ValueDescriptor,entityId:Hr.inputs.dataToValidate.id},yf={like:!1,inferred:!1,id:"validate-data-operation-data-to-validate-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:pf},hf={type:n.GenericReference,id:"validate-data-operation-data-to-validate-argument-parent-ref",entityType:n.ActionDescriptor,entityId:oe.Validate},ff={id:Hr.inputs.dataToValidate.id,type:n.ValueDescriptor,version:1,name:"Data to validate",description:"The value to validate against the given entity type",dataType:yf,required:!0,parentRelationType:A.FixedArguments,index:0,parent:hf},mf={type:n.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-declaration-ref",entityType:n.ValueDescriptor,entityId:Hr.inputs.entityToMatch.id},Tf={like:!1,inferred:!1,id:"validate-data-operation-entity-to-match-type-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!0,isNullable:!1,defaultValue:null,constant:!1,parent:mf},Ef={type:n.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-parent-ref",entityType:n.ActionDescriptor,entityId:oe.Validate},bf={id:Hr.inputs.entityToMatch.id,type:n.ValueDescriptor,version:1,name:"Entity to match",description:"The entity to match the data against",dataType:Tf,required:!0,index:0,parentRelationType:A.FixedArguments,parent:Ef},Rf={type:n.GenericReference,id:"validate-data-operation-output-entity-declaration-parent-ref",entityId:oe.Validate,entityType:n.ActionDescriptor},gf={id:Hr.outputs.outputEntity.id,type:n.ValueDescriptor,version:1,dataType:null,name:"Output value",description:"A value with the type of the entity that was validated",parent:Rf,required:!0,index:0,parentRelationType:A.FixedReturns},vf={type:n.GenericReference,id:"wait-operation-error-parent-ref",entityId:oe.Validate,entityType:n.ActionDescriptor},If={id:Hr.outputs.error.id,type:n.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:vf,parentRelationType:A.ReturnedError},nr={id:oe.Validate,type:n.ActionDescriptor,description:"Validates the given data to see if it matches the structure of a given type/entity",version:1,name:oe.Validate,inputs:[bf,ff],outputs:[gf],error:If,parent:null},Df={[oe.CreateNewInstance]:tr,[oe.Validate]:nr},Ke=B[n.Operation]["base-http-request"],Pf={type:n.GenericReference,id:"d87cf943-57e1-4d19-9f05-190fa8c8ebc4",entityType:n.DataType,entityId:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3"},Af={id:"http-request-url-default-value-id",type:n.PrimitiveValue,version:1,value:"https://some-url.com",name:D.String,valueAsType:null,parent:Pf,autogeneration:null},Of={type:n.GenericReference,id:"aed50d73-eab5-42ce-b00e-7f5c45a9026f",entityId:Ke.inputs.url.id,entityType:n.ValueDescriptor},Sf={like:!1,inferred:!1,id:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:Af,constant:!1,parent:Of},Cf={type:n.GenericReference,id:"c3145af6-3387-464a-8887-272e483c856d",entityId:Ke.inputs.query.id,entityType:n.ValueDescriptor},Bf={like:!1,inferred:!1,id:"2a5ba737-6335-4cc4-a2c0-16dca4052fac",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Cf},wf={type:n.GenericReference,id:"075556b7-e468-48f7-8485-7159eaf389b2",entityType:n.DataType,entityId:"6df7ec2b-5dbd-44af-896b-17b314e88560"},_f={id:"http-request-method-default-value-id",type:n.PrimitiveValue,version:1,value:"GET",name:D.Enum,valueAsType:null,parent:wf,autogeneration:null},Nf={type:n.GenericReference,id:"aed647c8-a1b5-4cfc-9a3d-97887a567a80",entityId:Ke.inputs.method.id,entityType:n.ValueDescriptor},Mf={like:!1,inferred:!1,id:"6df7ec2b-5dbd-44af-896b-17b314e88560",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:_n,isList:!1,asType:!1,isNullable:!1,defaultValue:_f,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],constant:!1,parent:Nf},Vf={type:n.GenericReference,id:"77203dfa-d2f6-4804-9556-e1cce46228f3",entityId:Ke.inputs.headers.id,entityType:n.ValueDescriptor},Lf={like:!1,inferred:!1,id:"2c8a2a07-69c6-40ad-b5c9-f0dc4d5955ce",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ze,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Vf},Gf={type:n.GenericReference,id:"03db68a0-7ab6-4c6a-85b6-f4b95ebb53ff",entityId:Ke.inputs.body.id,entityType:n.ValueDescriptor},$f={like:!1,inferred:!1,id:"0397876c-ed54-4ee9-85a4-04fd16dad973",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ze,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Gf},Ff={type:n.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",entityType:n.ValueDescriptor,entityId:Ke.outputs.code.id},Uf={like:!1,inferred:!1,id:"45e6d0bc-0c0e-4059-a7a1-6bee925d73d0",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Ff},xf={type:n.GenericReference,id:"2baaa53a-9aef-4bd1-b06d-967c17b7b627",entityType:n.DataType,entityId:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe"},jf={type:n.GenericReference,id:"69f34d6c-c686-4165-b6ff-70dae8e1778b",entityType:n.ValueDescriptor,entityId:Ke.outputs.headers.id},kf={like:!1,inferred:!1,id:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ze,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"http-response-headers-default-value-id",type:n.PrimitiveValue,version:1,value:{},name:D.JSON,parent:xf,valueAsType:null,autogeneration:null},constant:!1,parent:jf},qf={type:n.GenericReference,id:"744334e0-5135-4214-85d0-809437cb620b",entityType:n.DataType,entityId:"05fc1a5d-151a-479a-9c4e-4063f3456177"},Jf={type:n.GenericReference,id:"0e0e20df-1a46-432c-ba01-fd96508a6a61",entityType:n.ValueDescriptor,entityId:Ke.outputs.body.id},Wf={like:!1,inferred:!1,id:"05fc1a5d-151a-479a-9c4e-4063f3456177",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ze,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"http-response-body-default-value-id",type:n.PrimitiveValue,version:1,value:{},name:D.JSON,parent:qf,valueAsType:null,autogeneration:null},constant:!1,parent:Jf},Yf={type:n.GenericReference,id:"26911792-f707-4bf1-b6f7-03d04a84232c",entityType:n.ActionDescriptor,entityId:et.HttpRequest},Ha={id:Ke.inputs.method.id,type:n.ValueDescriptor,description:"A single word that represents the type of request you want to make. For example: GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD, TRACE, CONNECT, CUSTOM",version:1,name:"Method",dataType:Mf,required:!1,index:0,parentRelationType:A.FixedArguments,parent:Yf},Hf={type:n.GenericReference,id:"eee0c501-0ae6-4448-b914-aada76d63163",entityType:n.ActionDescriptor,entityId:et.HttpRequest},za={id:Ke.inputs.url.id,type:n.ValueDescriptor,description:"The base domain, or address where the request is being sent to. For example: https://some-url.com",version:1,name:"URL",dataType:Sf,required:!1,index:1,parentRelationType:A.FixedArguments,parent:Hf},zf={type:n.GenericReference,id:"670091a4-21b1-4223-ad4c-b6dada0aec49",entityType:n.ActionDescriptor,entityId:et.HttpRequest},Tl={id:Ke.inputs.query.id,type:n.ValueDescriptor,description:"A text with standarized format, without spaces that is added at the end of the URL path, after the ? character. It contains data that might be used to process the request. For example: /api/users?name=John&age=30",version:1,name:"Query Params",dataType:Bf,required:!1,index:2,parentRelationType:A.FixedArguments,parent:zf},Zf={type:n.GenericReference,id:"85aad3eb-22fe-45f9-b68c-1dc7061f41e0",entityType:n.ActionDescriptor,entityId:et.HttpRequest},Za={id:Ke.inputs.headers.id,type:n.ValueDescriptor,description:"A set of any properties, with names and values that represent metadata about the request, such as the server, date, content type, and more, that you want to send alongside your request data.",version:1,name:"Headers",dataType:Lf,required:!1,index:3,parent:Zf,parentRelationType:A.FixedArguments},Kf={type:n.GenericReference,id:"c3e2a4af-9b84-4574-8b30-5044ffc51776",entityType:n.ActionDescriptor,entityId:et.HttpRequest},Ka={id:Ke.inputs.body.id,type:n.ValueDescriptor,description:"The main data payload of the request. This is the data that you want to send to the server. It could be anything, but it is usually a JSON data structure or a text value.",version:1,name:"Body",dataType:$f,required:!1,index:4,parentRelationType:A.FixedArguments,parent:Kf},Xf={type:n.GenericReference,id:"92e04dc7-2145-4a31-908e-03810f7235e8",entityType:n.ActionDescriptor,entityId:et.HttpRequest},Xa={id:Ke.outputs.code.id,type:n.ValueDescriptor,description:'A standardized status code of the response. It is a 3-digit number that represents the response status. For example, 200 means "OK", 404 means "Not Found", and 500 means "Internal Server Error".',version:1,name:"Code",dataType:Uf,required:!0,index:0,parentRelationType:A.FixedReturns,parent:Xf},Qf={type:n.GenericReference,id:"86aca556-bbf1-4679-9909-31db61b288e2",entityType:n.ActionDescriptor,entityId:et.HttpRequest},Qa={parentRelationType:A.FixedReturns,id:Ke.outputs.headers.id,type:n.ValueDescriptor,description:"A set of any properties, with names and value that the server sent back to you. It represents metadata about the response, such as the server, date, content type, and more.",version:1,name:"Headers",dataType:kf,required:!0,index:1,parent:Qf},em={type:n.GenericReference,id:"ccf3d1be-04e4-4d03-99fd-5bc1e1919f90",entityType:n.ActionDescriptor,entityId:et.HttpRequest},es={parentRelationType:A.FixedReturns,id:Ke.outputs.body.id,type:n.ValueDescriptor,description:"The main data payload of the response. This is the data that the server sent back to you. It could be anything, but it is usually a JSON data structure or a text value.",version:1,name:"Body",dataType:Wf,required:!0,index:2,parent:em},tm={type:n.GenericReference,id:"21487ffc-82b9-473d-bc19-6e7d7c480ed7",entityType:n.ActionDescriptor,entityId:et.HttpRequest},nm={type:n.GenericReference,id:"ad69861b-32f7-4461-b7f7-aa84a82578d9",entityType:n.ValueDescriptor,entityId:Ke.outputs.error.id},rm={like:!1,inferred:!1,id:"5da68b15-57bc-40c1-b79f-a9075e0f22c1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ze,isList:!1,asType:!1,isNullable:!1,constant:!1,defaultValue:null,parent:nm},El={parentRelationType:A.ReturnedError,id:Ke.outputs.error.id,type:n.ValueDescriptor,description:"Http request error, if any. Contains a payload describing what went wrong.",version:1,name:"Error",dataType:rm,required:!0,index:0,parent:tm},_i={type:n.ActionDescriptor,id:et.HttpRequest,name:et.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:[Ha,za,Tl,Za,Ka],outputs:[Xa,Qa,es],error:El,parent:null},im={[et.HttpRequest]:_i},GA={...cy,...Dp,...mh,...Zh,...Df,...im},$A=B[n.Loop]["manual-flow-loop"],am={id:"manual-flow-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:F.ManualFlow,entityType:n.ActionDescriptor},sm={id:$A.outputs.results.id,type:n.ValueDescriptor,version:1,name:"Ouput value",description:"An output value of the loop",required:!1,dataType:null,index:0,parent:am,parentRelationType:A.DynamicReturn},bl={id:F.ManualFlow,type:n.ActionDescriptor,version:1,name:F.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:[sm],error:null,parent:null},Ni=B[n.Loop]["manual-flow-loop"],om={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"manual-flow-loop-current-iteration-number-declaration-id",entityType:n.ValueDescriptor},lm={like:!1,inferred:!1,id:"manual-flow-loop-current-iteration-number-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:Q,asType:!1,defaultValue:null,parent:om},cm={id:"manual-flow-loop-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:Ni.body.id,entityType:n.ActionDescriptor},Rl={id:Ni.body.inputs.iterationNumber.id,type:n.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.",dataType:lm,required:!0,index:0,parentRelationType:A.FixedArguments,parent:cm},dm={id:"manual-flow-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:Ni.body.id,entityType:n.ActionDescriptor},um={id:"manual-flow-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",dataType:null,required:!1,index:1,parentRelationType:A.DynamicArgument,parent:dm},pm={id:"manual-flow-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:Ni.body.id,entityType:n.ActionDescriptor},ym={id:"manual-flow-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:1,name:"Any value",description:"Values outputed by the loop's body.",dataType:null,required:!1,index:0,parentRelationType:A.DynamicReturn,parent:pm},gl={id:Ni.body.id,type:n.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the manual flow loop.",inputs:[Rl,um],outputs:[ym],error:null,parent:null},hm=B[n.Loop]["list-loop"],fm={id:"iterate-over-list-loop-list-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-list-argument-declaration-id",entityType:n.ValueDescriptor},mm={like:!1,inferred:!1,id:"iterate-over-list-loop-list-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!0,isNullable:!1,constant:!1,entity:null,asType:!1,defaultValue:null,parent:fm},Tm={id:"iterate-over-list-loop-list-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:F.List,entityType:n.ActionDescriptor},Em={id:hm.inputs.list.id,type:n.ValueDescriptor,version:1,name:"List",description:"The list to iterate over",required:!0,dataType:mm,index:0,parent:Tm,parentRelationType:A.FixedArguments},bm={id:"iterate-over-list-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:F.List,entityType:n.ActionDescriptor},Rm={id:hm.outputs.results.id,type:n.ValueDescriptor,version:1,name:"Ouput value",description:"An output value of the loop",required:!1,dataType:null,index:0,parent:bm,parentRelationType:A.DynamicReturn},rr={id:F.List,type:n.ActionDescriptor,version:1,name:F.List,description:"Iterates over a list of entities",inputs:[Em],outputs:[Rm],error:null,parent:null},ir=B[n.Loop]["list-loop"],gm={id:"iterate-over-list-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-body-current-value-declaration-id",entityType:n.ValueDescriptor},vm={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-value-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:null,asType:!1,defaultValue:null,parent:gm},Im={id:"iterate-over-list-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:ir.body.id,entityType:n.ActionDescriptor},ts={id:ir.body.inputs.currentValue.id,type:n.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.",dataType:vm,required:!0,index:1,parentRelationType:A.FixedArguments,parent:Im},Dm={id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-list-loop-body-current-iteration-number-declaration-id",entityType:n.ValueDescriptor},Pm={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:Q,asType:!1,defaultValue:null,parent:Dm},Am={id:"iterate-over-list-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:ir.body.id,entityType:n.ActionDescriptor},Om={id:ir.body.inputs.iterationNumber.id,type:n.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.",dataType:Pm,required:!0,index:0,parentRelationType:A.FixedArguments,parent:Am},Sm={id:"iterate-over-list-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:ir.body.id,entityType:n.ActionDescriptor},Cm={id:"iterate-over-list-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",dataType:null,required:!1,index:2,parentRelationType:A.DynamicArgument,parent:Sm},Bm={id:"iterate-over-list-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:ir.body.id,entityType:n.ActionDescriptor},wm={id:"iterate-over-list-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:1,name:"Any value",description:"Values outputed by the loop's body.",dataType:null,required:!1,index:0,parentRelationType:A.DynamicReturn,parent:Bm},ns={id:ir.body.id,type:n.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the list loop.",inputs:[Om,ts,Cm],outputs:[wm],error:null,parent:null},_m=B[n.Loop]["string-loop"],Nm={id:"iterate-over-string-loop-string-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-string-argument-declaration-id",entityType:n.ValueDescriptor},Mm={like:!1,inferred:!1,id:"iterate-over-string-loop-string-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:j,asType:!1,defaultValue:null,parent:Nm},Vm={id:"iterate-over-string-loop-string-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:F.String,entityType:n.ActionDescriptor},Lm={id:_m.inputs.string.id,type:n.ValueDescriptor,version:1,name:"Texts",description:"The text to iterate over the characters of",required:!0,dataType:Mm,index:0,parent:Vm,parentRelationType:A.FixedArguments},Gm={id:"iterate-over-string-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:F.String,entityType:n.ActionDescriptor},$m={id:_m.outputs.results.id,type:n.ValueDescriptor,version:1,name:"Ouput value",description:"An output value of the loop",required:!1,dataType:null,index:0,parent:Gm,parentRelationType:A.DynamicReturn},rs={id:F.String,type:n.ActionDescriptor,version:1,name:F.String,description:"Iterates over a string of entities",inputs:[Lm],outputs:[$m],error:null,parent:null},ar=B[n.Loop]["string-loop"],Fm={id:"iterate-over-string-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-body-current-value-declaration-id",entityType:n.ValueDescriptor},Um={like:!1,inferred:!1,id:"iterate-over-string-loop-body-current-value-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:j,asType:!1,defaultValue:null,parent:Fm},xm={id:"iterate-over-string-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:ar.body.id,entityType:n.ActionDescriptor},vl={id:ar.body.inputs.currentValue.id,type:n.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.",dataType:Um,required:!0,index:1,parentRelationType:A.FixedArguments,parent:xm},jm={id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-string-loop-body-current-iteration-number-declaration-id",entityType:n.ValueDescriptor},km={like:!1,inferred:!1,id:"iterate-over-string-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:Q,asType:!1,defaultValue:null,parent:jm},qm={id:"iterate-over-string-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:ar.body.id,entityType:n.ActionDescriptor},Il={id:ar.body.inputs.iterationNumber.id,type:n.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.",dataType:km,required:!0,index:0,parentRelationType:A.FixedArguments,parent:qm},Jm={id:"iterate-over-string-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:ar.body.id,entityType:n.ActionDescriptor},Wm={id:"iterate-over-string-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",dataType:null,required:!1,index:2,parentRelationType:A.DynamicArgument,parent:Jm},Ym={id:"iterate-over-string-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:ar.body.id,entityType:n.ActionDescriptor},Hm={id:"iterate-over-string-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:1,name:"Any value",description:"Values outputed by the loop's body.",dataType:null,required:!1,index:0,parentRelationType:A.DynamicReturn,parent:Ym},Dl={id:ar.body.id,type:n.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[Il,vl,Wm],outputs:[Hm],error:null,parent:null},zm=B[n.Loop]["object-keys-loop"],Zm={id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-object-argument-declaration-id",entityType:n.ValueDescriptor},Km={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-object-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:Ze,asType:!1,defaultValue:null,parent:Zm},Xm={id:"iterate-over-object-keys-loop-object-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:F.ObjectKeys,entityType:n.ActionDescriptor},Qm={id:zm.inputs.object.id,type:n.ValueDescriptor,version:1,name:"Object",description:"The object to iterate over",required:!0,dataType:Km,index:0,parent:Xm,parentRelationType:A.FixedArguments},eT={id:"iterate-over-object-keys-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:F.ObjectKeys,entityType:n.ActionDescriptor},tT={id:zm.outputs.results.id,type:n.ValueDescriptor,version:1,name:"Ouput value",description:"An output value of the loop",required:!1,dataType:null,index:0,parent:eT,parentRelationType:A.DynamicReturn},Mi={id:F.ObjectKeys,type:n.ActionDescriptor,version:1,name:F.ObjectKeys,description:"Iterates over a object of entities",inputs:[Qm],outputs:[tT],error:null,parent:null},sr=B[n.Loop]["object-keys-loop"],nT={id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-value-declaration-id",entityType:n.ValueDescriptor},rT={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-body-current-value-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:j,asType:!1,defaultValue:null,parent:nT},iT={id:"iterate-over-object-keys-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:sr.body.id,entityType:n.ActionDescriptor},Pl={id:sr.body.inputs.currentValue.id,type:n.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.",dataType:rT,required:!0,index:1,parentRelationType:A.FixedArguments,parent:iT},aT={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-id",entityType:n.ValueDescriptor},sT={like:!1,inferred:!1,id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:Q,asType:!1,defaultValue:null,parent:aT},oT={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:sr.body.id,entityType:n.ActionDescriptor},lT={id:sr.body.inputs.iterationNumber.id,type:n.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.",dataType:sT,required:!0,index:0,parentRelationType:A.FixedArguments,parent:oT},cT={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:sr.body.id,entityType:n.ActionDescriptor},dT={id:"iterate-over-object-keys-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",dataType:null,required:!1,index:2,parentRelationType:A.DynamicArgument,parent:cT},uT={id:"iterate-over-object-keys-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:sr.body.id,entityType:n.ActionDescriptor},pT={id:"iterate-over-object-keys-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:1,name:"Any value",description:"Values outputed by the loop's body.",dataType:null,required:!1,index:0,parentRelationType:A.DynamicReturn,parent:uT},yT={id:sr.body.id,type:n.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the object-keys loop.",inputs:[lT,Pl,dT],outputs:[pT],error:null,parent:null},hT=B[n.Loop]["object-values-loop"],fT={id:"iterate-over-object-values-loop-object-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-object-argument-declaration-id",entityType:n.ValueDescriptor},mT={like:!1,inferred:!1,id:"iterate-over-object-values-loop-object-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:Ze,asType:!1,defaultValue:null,parent:fT},TT={id:"iterate-over-object-values-loop-object-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:F.ObjectValues,entityType:n.ActionDescriptor},ET={id:hT.inputs.object.id,type:n.ValueDescriptor,version:1,name:"Object",description:"The object to iterate over",required:!0,dataType:mT,index:0,parent:TT,parentRelationType:A.FixedArguments},bT={id:"iterate-over-object-values-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:F.ObjectValues,entityType:n.ActionDescriptor},RT={id:hT.outputs.results.id,type:n.ValueDescriptor,version:1,name:"Ouput value",description:"An output value of the loop",required:!1,dataType:null,index:0,parent:bT,parentRelationType:A.DynamicReturn},Vi={id:F.ObjectValues,type:n.ActionDescriptor,version:1,name:F.ObjectValues,description:"Iterates over a object of entities",inputs:[ET],outputs:[RT],error:null,parent:null},or=B[n.Loop]["object-values-loop"],gT={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-body-current-value-declaration-id",entityType:n.ValueDescriptor},vT={id:"iterate-over-object-values-loop-body-current-value-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:null,isNullable:!1,constant:!1,entity:null,asType:null,like:!1,inferred:!1,defaultValue:null,parent:gT},IT={id:"iterate-over-object-values-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:or.body.id,entityType:n.ActionDescriptor},Al={id:or.body.inputs.currentValue.id,type:n.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.",dataType:vT,required:!0,index:1,parentRelationType:A.FixedArguments,parent:IT},DT={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-object-values-loop-body-current-iteration-number-declaration-id",entityType:n.ValueDescriptor},PT={like:!1,inferred:!1,id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:Q,asType:!1,defaultValue:null,parent:DT},AT={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:or.body.id,entityType:n.ActionDescriptor},OT={id:or.body.inputs.iterationNumber.id,type:n.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.",dataType:PT,required:!0,index:0,parentRelationType:A.FixedArguments,parent:AT},ST={id:"iterate-over-object-values-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:or.body.id,entityType:n.ActionDescriptor},CT={id:"iterate-over-object-values-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",dataType:null,required:!1,index:2,parentRelationType:A.DynamicArgument,parent:ST},BT={id:"iterate-over-object-values-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:or.body.id,entityType:n.ActionDescriptor},wT={id:"iterate-over-object-values-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:1,name:"Any value",description:"Values outputed by the loop's body.",dataType:null,required:!1,index:0,parentRelationType:A.DynamicReturn,parent:BT},_T={id:or.body.id,type:n.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the object-values loop.",inputs:[OT,Al,CT],outputs:[wT],error:null,parent:null},NT=B[n.Loop]["counted-loop"],MT={id:"counted-loop-string-argument-declaration-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"counted-loop-string-argument-declaration-data-type-id",entityType:n.DataType},VT={id:"counted-loop-string-argument-declaration-data-type-default-value-id",type:n.PrimitiveValue,name:D.Number,version:1,value:5,valueAsType:null,autogeneration:null,parent:MT},LT={id:"counted-loop-string-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"counted-loop-string-argument-declaration-id",entityType:n.ValueDescriptor},GT={like:!1,inferred:!1,id:"counted-loop-string-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:Q,asType:!1,defaultValue:VT,parent:LT},$T={id:"counted-loop-string-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:F.Counted,entityType:n.ActionDescriptor},FT={id:NT.inputs.number.id,type:n.ValueDescriptor,version:1,name:"Number of iterations",description:"The number of iterations to perform",required:!0,dataType:GT,index:0,parent:$T,parentRelationType:A.FixedArguments},UT={id:"counted-loop-dynamic-return-declaration-parent-ref-id",type:n.GenericReference,entityId:F.Counted,entityType:n.ActionDescriptor},xT={id:NT.outputs.results.id,type:n.ValueDescriptor,version:1,name:"Ouput value",description:"An output value of the loop",required:!1,dataType:null,index:0,parent:UT,parentRelationType:A.DynamicReturn},is={id:F.Counted,type:n.ActionDescriptor,version:1,name:F.Counted,description:"Iterates a given number of times",inputs:[FT],outputs:[xT],error:null,parent:null},Li=B[n.Loop]["counted-loop"],jT={id:"counted-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"counted-loop-body-current-iteration-number-declaration-id",entityType:n.ValueDescriptor},kT={like:!1,inferred:!1,id:"counted-loop-body-current-iteration-number-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:Q,asType:!1,defaultValue:null,parent:jT},qT={id:"counted-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:Li.body.id,entityType:n.ActionDescriptor},Ol={id:Li.body.inputs.iterationNumber.id,type:n.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.",dataType:kT,required:!0,index:0,parentRelationType:A.FixedArguments,parent:qT},JT={id:"counted-loop-body-any-dynamic-argument-parent-ref-id",type:n.GenericReference,entityId:Li.body.id,entityType:n.ActionDescriptor},WT={id:"counted-loop-body-any-dynamic-argument-id",type:n.ValueDescriptor,version:1,name:"Any value",description:"Values inputed to the loop's body as an aggregation of the respective values outputed.",dataType:null,required:!1,index:1,parentRelationType:A.DynamicArgument,parent:JT},YT={id:"counted-loop-body-any-dynamic-return-parent-ref-id",type:n.GenericReference,entityId:Li.body.id,entityType:n.ActionDescriptor},HT={id:"counted-loop-body-any-dynamic-return-id",type:n.ValueDescriptor,version:1,name:"Any value",description:"Values outputed by the loop's body.",dataType:null,required:!1,index:0,parentRelationType:A.DynamicReturn,parent:YT},Sl={id:Li.body.id,type:n.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",inputs:[Ol,WT],outputs:[HT],error:null,parent:null},as=B[n.BuiltInBaseEntity][L.KEY_VALUE_PARAM],FA={id:"key-value-param-built-in-base-entity-name-property-data-type-ref",type:n.GenericReference,entityId:"key-value-param-built-in-base-entity-name-property-data-type",entityType:n.DataType},zT={id:"key-value-param-built-in-base-entity-name-property-ref",type:n.GenericReference,entityId:"key-value-param-built-in-base-entity-name-property",entityType:n.Property},UA={like:!1,inferred:!1,id:"key-value-param-built-in-base-entity-name-property-data-type",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:j,asType:!1,defaultValue:null,parent:zT},ZT={id:"key-value-param-built-in-base-entity-name-property-parent-ref",type:n.GenericReference,entityId:as.id,entityType:n.BuiltInBaseEntity},KT={hidden:!1,required:!0,id:"key-value-param-built-in-base-entity-name-property",name:"Parameter name",version:1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:UA,description:"The name of the path parameter",parent:ZT},xA={id:"key-value-param-built-in-base-entity-value-property-data-type-ref",type:n.GenericReference,entityId:"key-value-param-built-in-base-entity-value-property-data-type",entityType:n.DataType},XT={id:"key-value-param-built-in-base-entity-value-property-ref",type:n.GenericReference,entityId:"key-value-param-built-in-base-entity-value-property",entityType:n.Property},jA={like:!1,inferred:!1,id:"key-value-param-built-in-base-entity-value-property-data-type",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:j,asType:!1,defaultValue:null,parent:XT},QT={id:"key-value-param-built-in-base-entity-value-property-parent-ref",type:n.GenericReference,entityId:as.id,entityType:n.BuiltInBaseEntity},eE={hidden:!1,required:!0,id:"key-value-param-built-in-base-entity-value-property",name:"Parameter Value",version:1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:1,dataType:jA,description:"The value of the path parameter",parent:QT},ss={id:as.id,version:1,description:'An entity with a "name" and "value" property representing a breakdown of a key-value pair.',name:as.id,type:n.BuiltInBaseEntity,abstract:!1,static:!1,interactive:!0,properties:[KT,eE],abstractMethods:[],methods:[],extends:[]},Gi=B[n.BuiltInBaseEntity][L.HTTP_ENDPOINT].properties,tE={id:"endpointBuiltInCorsPropertyDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointBuiltInCorsPropertyDataType"},nE={id:"endpointBuiltInCorsPropertyRef",type:n.GenericReference,entityType:n.Property,entityId:Gi.cors.id},rE={like:!1,inferred:!1,id:"endpointBuiltInCorsPropertyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:{id:"endpointBuiltInCorsPropertyDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:D.JSON,value:["*"],parent:tE,autogeneration:null,valueAsType:null},parent:nE},iE={id:"endpointBuiltInBaseEntityRef",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},aE={hidden:!0,required:!0,id:Gi.cors.id,name:"Allowed origins",version:1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:rE,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:iE},sE={id:"endpointBuiltInPathPropertyDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointBuiltInPathPropertyDataType"},oE={id:"endpointBuiltInPathPropertyRef",type:n.GenericReference,entityType:n.Property,entityId:Gi.path.id},lE={like:!1,inferred:!1,id:"endpointBuiltInPathPropertyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:{id:"endpointBuiltInPathPropertyDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:D.String,value:"/",parent:sE,autogeneration:null,valueAsType:null},parent:oE},cE={id:"endpointBuiltInBaseEntityRefTwo",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},Cl={hidden:!1,required:!0,id:Gi.path.id,name:"Path",version:1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:1,dataType:lE,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:cE},dE={id:"endpointBuiltInMethodPropertyDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointBuiltInMethodPropertyDataType"},uE={id:"endpointBuiltInMethodPropertyRef",type:n.GenericReference,entityType:n.Property,entityId:"endpointBuiltInMethodProperty"},pE={like:!1,inferred:!1,id:"endpointBuiltInMethodPropertyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:_n,isList:!0,isNullable:!1,constant:!0,asType:!1,defaultValue:{id:"endpointBuiltInMethodPropertyDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,value:"GET",name:D.Enum,parent:dE,autogeneration:null,valueAsType:null},options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:uE},yE={id:"endpointBuiltInBaseEntityRefThree",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},Bl={hidden:!1,required:!0,id:Gi.method.id,name:"Method",version:1,type:n.Property,private:!1,index:2,implements:null,abstract:!0,static:!0,dataType:pE,description:"The HTTP method that this endpoint will respond to, for example GET, POST, PUT, DELETE, etc.",parent:yE},hE={id:"endpointRequestHeadersVariableDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointRequestHeadersVariableDataType"},fE={id:"endpointRequestHeadersArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"endpointRequestHeadersArgumentDeclaration"},mE={like:!1,inferred:!1,id:"endpointRequestHeadersVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Ze,asType:!1,defaultValue:{id:"endpointRequestHeadersVariableDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:D.JSON,value:{},parent:hE,autogeneration:null,valueAsType:null},parent:fE},TE={id:"endpointRequestBodyArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"endpointRequestBodyArgumentDeclaration"},EE={like:!1,inferred:!1,id:"endpointRequestBodyVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Ze,defaultValue:null,parent:TE},bE={id:"endpointRequestQueryParamsVariableDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointRequestQueryParamsVariableDataType"},RE={id:"endpointRequestQueryParamsArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"endpointRequestQueryParamsArgumentDeclaration"},gE={like:!1,inferred:!1,id:"endpointRequestQueryParamsVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,asType:!1,entity:ss,defaultValue:{id:"endpointRequestQueryParamsVariableDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:D.JSON,value:[],parent:bE,autogeneration:null,valueAsType:null},parent:RE},vE={id:"endpointPathParamsVariableDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointPathParamsVariableDataType"},IE={id:"endpointPathParamsArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"endpointPathParamsArgumentDeclaration"},DE={like:!1,inferred:!1,id:"endpointPathParamsVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:ss,asType:!1,defaultValue:{id:"endpointPathParamsVariableDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:D.JSON,value:[],parent:vE,autogeneration:null,valueAsType:null},parent:IE},PE={id:"endpointReachedTriggerActionDescriptorRef",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},wl={id:"endpointRequestHeadersArgumentDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:n.ValueDescriptor,name:"Request headers",dataType:mE,required:!0,index:0,parentRelationType:A.FixedArguments,parent:PE},AE={id:"endpointReachedTriggerActionDescriptorRefTwo",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},_l={id:"endpointPathParamsArgumentDeclaration",type:n.ValueDescriptor,description:"A standarized text, without spaces that is added at the end of the domain and routes the request to a specific resource within the target server. For example: /api/users/123, /api/users/123/:name, /api/users/123/:name/:age.",version:1,name:"Path parameters",dataType:DE,required:!0,index:1,parentRelationType:A.FixedArguments,parent:AE},OE={id:"endpointReachedTriggerActionDescriptorRefThree",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Nl={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:n.ValueDescriptor,name:"Request query params",dataType:gE,required:!0,index:2,parentRelationType:A.FixedArguments,parent:OE},SE={id:"endpointReachedTriggerActionDescriptorRefFour",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Ml={id:"endpointRequestBodyArgumentDeclaration",version:1,description:"The main data payload of the request.",type:n.ValueDescriptor,name:"Request body",dataType:EE,index:3,required:!0,parentRelationType:A.FixedArguments,parent:SE},CE={id:"endpointResponseCodeReturnDeclarationRef",type:n.GenericReference,entityType:n.ReturnDeclaration,entityId:"endpointResponseCodeReturnDeclaration"},BE={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:CE},wE={id:"endpointReturnStatementRef",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},Vl={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:n.ValueDescriptor,name:"Response code",dataType:BE,required:!0,index:0,parentRelationType:A.FixedReturns,parent:wE},_E={id:"endpointResponseHeadersDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointResponseHeadersDataType"},NE={id:"endpointResponseHeadersReturnDeclarationRef",type:n.GenericReference,entityType:n.ReturnDeclaration,entityId:"endpointResponseHeadersReturnDeclaration"},ME={like:!1,inferred:!1,id:"endpointResponseHeadersDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Ze,asType:!1,defaultValue:{id:"endpointResponseHeadersDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:D.JSON,value:{},parent:_E,autogeneration:null,valueAsType:null},parent:NE},VE={id:"endpointReturnStatementRefTwo",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},Ll={id:"endpointResponseHeadersReturnDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:n.ValueDescriptor,name:"Response headers",dataType:ME,required:!1,index:1,parentRelationType:A.FixedReturns,parent:VE},LE={id:"endpointResponseBodyReturnDeclarationRef",type:n.GenericReference,entityType:n.ReturnDeclaration,entityId:"endpointResponseBodyReturnDeclaration"},GE={like:!1,inferred:!1,id:"endpointResponseBodyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Ze,defaultValue:null,parent:LE},$E={id:"endpointReturnStatementRefThree",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},Gl={id:"endpointResponseBodyReturnDeclaration",version:1,description:"The main data payload of the response.",type:n.ValueDescriptor,name:"Response body",dataType:GE,required:!1,index:2,parentRelationType:A.FixedReturns,parent:$E},FE={id:"endpointBuiltInBaseEntityRefFour",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},$l={id:"endpointReachedTriggerActionDescriptor",type:n.ActionDescriptor,version:1,name:"Endpoint reached",description:"Fired when the endpoint is reached.",inputs:[wl,_l,Nl,Ml],outputs:[Vl,Ll,Gl],error:null,parent:FE},os={id:L.HTTP_ENDPOINT,version:1,description:"An HTTP endpoint that can be reached by a client from the internet.",name:L.HTTP_ENDPOINT,type:n.BuiltInBaseEntity,interactive:!1,abstract:!0,static:!0,properties:[aE,Cl,Bl],abstractMethods:[$l],extends:[],methods:[]},Mt=B[n.BuiltInBaseEntity].BUILT_IN_RELATIONAL_DATABASE_ENTITY,UE={id:"relational-database-built-in-base-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-identifier-property-data-type-id",entityType:n.DataType},xE={id:"relational-database-built-in-base-entity-identifier-property-ref-id",type:n.GenericReference,entityId:Mt.properties.identifier.id,entityType:n.Property},kA={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-identifier-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-identifier-property-default-value-id",type:n.PrimitiveValue,version:1,name:D.String,value:null,parent:UE,autogeneration:{type:qe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:xE},zr={id:"relational-database-built-in-base-entity-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},ls={hidden:!1,required:!0,id:Mt.properties.identifier.id,name:"Identifier name",version:1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:0,dataType:kA,description:"The name of the main database inside of the server instance where the data will be stored.",parent:zr},qA={id:"relational-database-built-in-base-entity-username-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-username-property-data-type-idd",entityType:n.DataType},jE={id:"relational-database-built-in-base-entity-username-property-ref-id",type:n.GenericReference,entityId:Mt.properties.username.id,entityType:n.Property},JA={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-username-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-username-property-default-value-id",type:n.PrimitiveValue,version:1,name:D.String,value:"postgres",parent:{id:"relational-database-built-in-base-entity-username-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-username-property-data-type-id",entityType:n.DataType},autogeneration:null,valueAsType:null},parent:jE},cs={hidden:!1,required:!0,id:Mt.properties.username.id,name:"Username",version:1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:1,dataType:JA,description:"The username that will be used to connect to the database.",parent:zr},WA={id:"relational-database-built-in-base-entity-password-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-password-property-data-type-id",entityType:n.DataType},kE={id:"relational-database-built-in-base-entity-password-property-ref-id",type:n.GenericReference,entityId:Mt.properties.password.id,entityType:n.Property},YA={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-password-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:null,parent:kE},ds={hidden:!1,required:!0,id:Mt.properties.password.id,name:"Password",version:1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:2,dataType:YA,description:"The password that will be used to connect to the database.",parent:zr},qE={id:"relational-database-built-in-base-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-min-size-property-data-type-id",entityType:n.DataType},JE={id:"relational-database-built-in-base-entity-min-size-property-ref-id",type:n.GenericReference,entityId:Mt.properties.minSize.id,entityType:n.Property},HA={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-min-size-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Q,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-min-size-property-default-value-id",type:n.PrimitiveValue,version:1,name:D.Number,value:6,parent:qE,autogeneration:null,valueAsType:null},parent:JE},us={hidden:!0,required:!0,id:Mt.properties.minSize.id,name:"Minimum GB size",version:1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:3,dataType:HA,description:"The minimum size of the database in GB.",parent:zr},WE={id:"relational-database-built-in-base-entity-default-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-default-property-data-type-id",entityType:n.DataType},YE={id:"relational-database-built-in-base-entity-default-property-ref-id",type:n.GenericReference,entityId:Mt.properties.default.id,entityType:n.Property},zA={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-default-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:wn,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-default-property-default-value-id",type:n.PrimitiveValue,version:1,name:D.Boolean,value:!1,parent:WE,autogeneration:null,valueAsType:null},parent:YE},Fl={hidden:!0,required:!0,id:Mt.properties.default.id,name:"Default",version:1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,dataType:zA,description:"If true, this database will be the default database for the server instance and all the new entities.",parent:zr},HE={id:"relational-database-built-in-base-entity-autoscaling-property-ref-id",type:n.GenericReference,entityId:Mt.properties.autoscaling.id,entityType:n.Property},zE={id:"relational-database-built-in-base-entity-autoscaling-property-data-type-ref-id",type:n.GenericReference,entityId:"relational-database-built-in-base-entity-autoscaling-property-data-type-id",entityType:n.DataType},ZA={like:!1,inferred:!1,id:"relational-database-built-in-base-entity-autoscaling-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:wn,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-autoscaling-property-default-value-id",type:n.PrimitiveValue,version:1,name:D.Boolean,value:!1,parent:zE,autogeneration:null,valueAsType:null},parent:HE},ZE={id:"relational-database-built-in-base-entity-autoscaling-property-parent-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},Ul={hidden:!0,required:!0,id:Mt.properties.autoscaling.id,name:"Auto-scaling",version:1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,dataType:ZA,description:"If true, this database will automatically scale up or down in memory size, based on the usage.",parent:ZE},Nn={id:L.RELATIONAL_DATABASE,version:1,description:"This entity provisions a relational database in the cloud.",name:L.RELATIONAL_DATABASE,type:n.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[ls,cs,ds,us,Fl,Ul],abstractMethods:[],methods:[],extends:[]},KE={type:n.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",entityType:n.BuiltInBaseEntity,id:At.DeletePersistedEntity},xl={type:n.FunctionDeclaration,id:At.DeletePersistedEntity,name:At.DeletePersistedEntity,description:"Permanently deletes the current copy of an entity from the database",version:1,parent:KE,inputs:[],calls:[],implements:null,collapsed:!1,returnStatements:[],index:0,private:!1,x:0,y:0},XE={type:n.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",entityType:n.BuiltInBaseEntity,id:At.SoftDeletePersistedEntity},QE={type:n.FunctionDeclaration,id:At.SoftDeletePersistedEntity,name:At.SoftDeletePersistedEntity,description:"Designates the entity as deleted, but does not remove it from the database.",version:1,parent:XE,inputs:[],calls:[],implements:null,collapsed:!1,returnStatements:[],index:0,private:!1,x:0,y:0},eb=B[n.BuiltInBaseEntity][L.PERSISTED_ENTITY].properties,KA={id:"persisted-built-in-base-entity-database-property-data-type-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-database-property-data-type-id",entityType:n.DataType},tb={id:"persisted-built-in-base-entity-database-property-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-database-property-id",entityType:n.Property},XA={like:!1,inferred:!1,id:"persisted-built-in-base-entity-database-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Nn,asType:!1,defaultValue:null,parent:tb},nb={id:"persisted-built-in-base-entity-database-property-parent-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},$i={hidden:!0,required:!0,id:eb.database.id,name:"Database",version:1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:XA,description:"The database that the entity belongs to.",parent:nb},rb={id:"persisted-built-in-base-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-identifier-property-data-type-id",entityType:n.DataType},ib={id:"persisted-built-in-base-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-identifier-property-id",entityType:n.Property},QA={like:!1,inferred:!1,id:"persisted-built-in-base-entity-identifier-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:ka,asType:!1,defaultValue:{id:"persisted-built-in-base-entity-identifier-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:D.UUID,value:null,parent:rb,autogeneration:{type:qe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:ib},ab={id:"persisted-built-in-base-entity-identifier-property-parent-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},sb={hidden:!1,required:!0,id:eb.identifier.id,name:"Identifier",version:1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:QA,description:"Auto-generated unique identifier for the entity, can be used to identify the entity among other entities of the same type.",parent:ab},eO={id:"persisted-built-in-base-entity-deleted-at-property-data-type-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-deleted-at-property-data-type-id",entityType:n.DataType},ob={id:"persisted-built-in-base-entity-deleted-at-property-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-deleted-at-property-id",entityType:n.Property},lb={like:!1,inferred:!1,id:"persisted-built-in-base-entity-deleted-at-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!0,constant:!1,entity:un,asType:!1,defaultValue:null,parent:ob},cb={id:"persisted-built-in-base-entity-deleted-at-property-parent-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},db={hidden:!1,required:!0,id:"persisted-built-in-base-entity-deleted-at-property-id",name:"Deleted at",version:1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:lb,description:"The date and time when the entity was deleted.",parent:cb},tO={id:"persisted-built-in-base-entity-created-at-property-data-type-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-created-at-property-data-type-id",entityType:n.DataType},ub={id:"persisted-built-in-base-entity-created-at-property-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-created-at-property-id",entityType:n.Property},pb={like:!1,inferred:!1,id:"persisted-built-in-base-entity-created-at-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:un,asType:!1,defaultValue:null,parent:ub},yb={id:"persisted-built-in-base-entity-created-at-property-parent-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},hb={hidden:!1,required:!0,id:"persisted-built-in-base-entity-created-at-property-id",name:"Created at",version:1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:pb,description:"The date and time when the entity was created.",parent:yb},nO={id:"persisted-built-in-base-entity-updated-at-property-data-type-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-updated-at-property-data-type-id",entityType:n.DataType},fb={id:"persisted-built-in-base-entity-updated-at-property-ref-id",type:n.GenericReference,entityId:"persisted-built-in-base-entity-updated-at-property-id",entityType:n.Property},mb={like:!1,inferred:!1,id:"persisted-built-in-base-entity-updated-at-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:un,asType:!1,defaultValue:null,parent:fb},Tb={id:"persisted-built-in-base-entity-updated-at-property-parent-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},Eb={hidden:!1,required:!0,id:"persisted-built-in-base-entity-updated-at-property-id",name:"Updated at",version:1,type:n.Property,private:!1,implements:null,abstract:!1,static:!1,index:0,dataType:mb,description:"The date and time when the entity was last updated.",parent:Tb},je={id:L.PERSISTED_ENTITY,version:1,description:"An entity that is permanently stored in the database and can be accessed at any point.",name:L.PERSISTED_ENTITY,type:n.BuiltInBaseEntity,abstract:!0,static:!1,interactive:!0,abstractMethods:[],properties:[$i,sb,db,hb,Eb],methods:[xl,QE],extends:[]},bb={id:"cron-job-triggered-function-declaration-blueprint-parent-ref-id",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},jl={id:"cron-job-triggered-function-declaration-blueprint-id",name:"Cron job triggered",version:1,type:n.ActionDescriptor,description:"Executed when the cron job is triggered",inputs:[],error:null,outputs:[],parent:bb},Rb=B[n.BuiltInBaseEntity].BUILT_IN_CRON_JOB_ENTITY,rO={id:"cron-job-built-in-base-entity-expression-property-data-type-ref",type:n.GenericReference,entityId:"cron-job-built-in-base-entity-expression-property-data-type",entityType:n.DataType},gb={id:"cron-job-built-in-base-entity-expression-property-ref",type:n.GenericReference,entityId:Rb.properties.expression.id,entityType:n.Property},iO={like:!1,inferred:!1,id:"cron-job-built-in-base-entity-expression-property-data-type",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:null,parent:gb},vb={id:"cron-job-built-in-base-entity-ref",type:n.GenericReference,entityId:L.CRON_JOB,entityType:n.BuiltInBaseEntity},Ib={hidden:!1,required:!0,id:Rb.properties.expression.id,name:"Cron expression",version:1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:iO,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:vb},kl={id:L.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:L.CRON_JOB,type:n.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[Ib],methods:[],abstractMethods:[jl],extends:[]},Db={type:n.GenericReference,id:"execution-built-in-entity-abort-method-parent-ref-id",entityType:n.BuiltInBaseEntity,entityId:"execution-built-in-entity-id"},ql={id:"execution-built-in-entity-abort-method-id",type:n.FunctionDeclaration,version:1,name:At.AbortExecution,description:"Aborts the execution of the entity",inputs:[],returnStatements:[],calls:[],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:Db},Jl={id:L.EXECUTION,type:n.BuiltInBaseEntity,version:1,name:L.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:[ql],abstractMethods:[]},aO=B[n.Condition]["not-empty"],Pb={type:n.GenericReference,id:"not-empty-condition-ref",entityType:n.ActionDescriptor,entityId:Nt.NotEmpty},Ab={id:aO.inputs.leftHand.id,type:n.ValueDescriptor,version:1,name:"Value",description:"The value to check if it is not empty",dataType:null,required:!0,parentRelationType:A.FixedArguments,index:0,parent:Pb},lr={type:n.ActionDescriptor,id:Nt.NotEmpty,version:1,name:Nt.NotEmpty,description:"Checks if the value is not empty",parent:null,inputs:[Ab],outputs:[],error:null},Ob={[Nt.NotEmpty]:lr},Sb=B[n.Condition]["more-than-or-equal"],Cb={type:n.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-parent-ref",entityType:n.ActionDescriptor,entityId:Le.MoreThanOrEqual},Bb={id:Sb.inputs.leftHand.id,type:n.ValueDescriptor,version:1,name:"First value",description:"The first value to compare",dataType:null,required:!0,parentRelationType:A.FixedArguments,index:0,parent:Cb},wb={type:n.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-parent-ref",entityType:n.ActionDescriptor,entityId:Le.MoreThanOrEqual},_b={id:Sb.inputs.rightHand.id,type:n.ValueDescriptor,version:1,name:"Second value",description:"The second value to compare",dataType:null,required:!0,parentRelationType:A.FixedArguments,index:1,parent:wb},Zr={type:n.ActionDescriptor,id:Le.MoreThanOrEqual,version:1,name:Le.MoreThanOrEqual,description:"Checks if the value is not empty",parent:null,inputs:[Bb,_b],outputs:[],error:null},Nb={[Le.MoreThanOrEqual]:Zr},sO={...Ob,...Nb},ps={type:n.ActionDescriptor,id:cn.PROJECT_PUBLICATION_COMPLETED,version:1,name:cn.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},oO={[cn.PROJECT_PUBLICATION_COMPLETED]:ps},Wl=B[n.ValueDescriptor][Xo.ActionOngoingProcessOutputValue],Mb={type:n.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",entityType:n.ValueDescriptor,entityId:Wl.id},Vb={like:!1,inferred:!1,id:Wl.dataType.id,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Jl,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Mb},Yl={id:Wl.id,type:n.ValueDescriptor,description:"A value that represents the ongoing process of the parent action",version:1,name:"Process",dataType:Vb,required:!0,index:0,parent:null,parentRelationType:A.OngoingProcessExecution};var ne;(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 i(a,s=" | "){return a.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}r.joinValues=i,r.jsonStringifyReplacer=(a,s)=>typeof s=="bigint"?s.toString():s})(ne||(ne={}));var Hl;(function(r){r.mergeShapes=(e,t)=>({...e,...t})})(Hl||(Hl={}));const G=ne.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Mn=r=>{switch(typeof r){case"undefined":return G.undefined;case"string":return G.string;case"number":return isNaN(r)?G.nan:G.number;case"boolean":return G.boolean;case"function":return G.function;case"bigint":return G.bigint;case"symbol":return G.symbol;case"object":return Array.isArray(r)?G.array:r===null?G.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?G.promise:typeof Map<"u"&&r instanceof Map?G.map:typeof Set<"u"&&r instanceof Set?G.set:typeof Date<"u"&&r instanceof Date?G.date:G.object;default:return G.unknown}},w=ne.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"]),lO=r=>JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:");class Rt extends Error{constructor(e){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};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},i={_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)i._errors.push(t(o));else{let l=i,p=0;for(;p<o.path.length;){const y=o.path[p];p===o.path.length-1?(l[y]=l[y]||{_errors:[]},l[y]._errors.push(t(o))):l[y]=l[y]||{_errors:[]},l=l[y],p++}}};return a(this),i}static assert(e){if(!(e instanceof Rt))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ne.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=t=>t.message){const t={},i=[];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))):i.push(e(a));return{formErrors:i,fieldErrors:t}}get formErrors(){return this.flatten()}}Rt.create=r=>new Rt(r);const Kr=(r,e)=>{let t;switch(r.code){case w.invalid_type:r.received===G.undefined?t="Required":t=`Expected ${r.expected}, received ${r.received}`;break;case w.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(r.expected,ne.jsonStringifyReplacer)}`;break;case w.unrecognized_keys:t=`Unrecognized key(s) in object: ${ne.joinValues(r.keys,", ")}`;break;case w.invalid_union:t="Invalid input";break;case w.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${ne.joinValues(r.options)}`;break;case w.invalid_enum_value:t=`Invalid enum value. Expected ${ne.joinValues(r.options)}, received '${r.received}'`;break;case w.invalid_arguments:t="Invalid function arguments";break;case w.invalid_return_type:t="Invalid function return type";break;case w.invalid_date:t="Invalid date";break;case w.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}"`:ne.assertNever(r.validation):r.validation!=="regex"?t=`Invalid ${r.validation}`:t="Invalid";break;case w.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 w.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 w.custom:t="Invalid input";break;case w.invalid_intersection_types:t="Intersection results could not be merged";break;case w.not_multiple_of:t=`Number must be a multiple of ${r.multipleOf}`;break;case w.not_finite:t="Number must be finite";break;default:t=e.defaultError,ne.assertNever(r)}return{message:t}};let Lb=Kr;function cO(r){Lb=r}function ys(){return Lb}const hs=r=>{const{data:e,path:t,errorMaps:i,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=i.filter(y=>!!y).slice().reverse();for(const y of p)l=y(o,{data:e,defaultError:l}).message;return{...a,path:s,message:l}},dO=[];function V(r,e){const t=ys(),i=hs({issueData:e,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,t,t===Kr?void 0:Kr].filter(a=>!!a)});r.common.issues.push(i)}class nt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){const i=[];for(const a of t){if(a.status==="aborted")return J;a.status==="dirty"&&e.dirty(),i.push(a.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,t){const i=[];for(const a of t){const s=await a.key,o=await a.value;i.push({key:s,value:o})}return nt.mergeObjectSync(e,i)}static mergeObjectSync(e,t){const i={};for(const a of t){const{key:s,value:o}=a;if(s.status==="aborted"||o.status==="aborted")return J;s.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof o.value<"u"||a.alwaysSet)&&(i[s.value]=o.value)}return{status:e.value,value:i}}}const J=Object.freeze({status:"aborted"}),Xr=r=>({status:"dirty",value:r}),ut=r=>({status:"valid",value:r}),zl=r=>r.status==="aborted",Zl=r=>r.status==="dirty",Fi=r=>r.status==="valid",Ui=r=>typeof Promise<"u"&&r instanceof Promise;function fs(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)}function Gb(r,e,t,i,a){if(i==="m")throw new TypeError("Private method is not writable");if(i==="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 i==="a"?a.call(r,t):a?a.value=t:e.set(r,t),t}typeof SuppressedError=="function"&&SuppressedError;var k;(function(r){r.errToObj=e=>typeof e=="string"?{message:e}:e||{},r.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(k||(k={}));var xi,ji;class Kt{constructor(e,t,i,a){this._cachedPath=[],this.parent=e,this.data=t,this._path=i,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 $b=(r,e)=>{if(Fi(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 Rt(r.common.issues);return this._error=t,this._error}}};function Z(r){if(!r)return{};const{errorMap:e,invalid_type_error:t,required_error:i,description:a}=r;if(e&&(t||i))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,y;const{message:f}=r;return o.code==="invalid_enum_value"?{message:f??l.defaultError}:typeof l.data>"u"?{message:(p=f??i)!==null&&p!==void 0?p:l.defaultError}:o.code!=="invalid_type"?{message:l.defaultError}:{message:(y=f??t)!==null&&y!==void 0?y:l.defaultError}},description:a}}class X{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 Mn(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:Mn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new nt,ctx:{common:e.parent.common,data:e.data,parsedType:Mn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(Ui(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 i=this.safeParse(e,t);if(i.success)return i.data;throw i.error}safeParse(e,t){var i;const a={common:{issues:[],async:(i=t==null?void 0:t.async)!==null&&i!==void 0?i:!1,contextualErrorMap:t==null?void 0:t.errorMap},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Mn(e)},s=this._parseSync({data:e,path:a.path,parent:a});return $b(a,s)}async parseAsync(e,t){const i=await this.safeParseAsync(e,t);if(i.success)return i.data;throw i.error}async safeParseAsync(e,t){const i={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:Mn(e)},a=this._parse({data:e,path:i.path,parent:i}),s=await(Ui(a)?a:Promise.resolve(a));return $b(i,s)}refine(e,t){const i=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:w.custom,...i(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((i,a)=>e(i)?!0:(a.addIssue(typeof t=="function"?t(i,a):t),!1))}_refinement(e){return new Yt({schema:this,typeName:q.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Qt.create(this,this._def)}nullable(){return $n.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Wt.create(this,this._def)}promise(){return ni.create(this,this._def)}or(e){return Wi.create([this,e],this._def)}and(e){return Yi.create(this,e,this._def)}transform(e){return new Yt({...Z(this._def),schema:this,typeName:q.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new Xi({...Z(this._def),innerType:this,defaultValue:t,typeName:q.ZodDefault})}brand(){return new Ql({typeName:q.ZodBranded,type:this,...Z(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new Qi({...Z(this._def),innerType:this,catchValue:t,typeName:q.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return ea.create(this,e)}readonly(){return ta.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const uO=/^c[^\s-]{8,}$/i,pO=/^[0-9a-z]+$/,yO=/^[0-9A-HJKMNP-TV-Z]{26}$/,hO=/^[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,fO=/^[a-z0-9_-]{21}$/i,mO=/^[-+]?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)?)??$/,TO=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,EO="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Kl;const bO=/^(?:(?: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])$/,RO=/^(([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})))$/,gO=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Fb="((\\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])))",vO=new RegExp(`^${Fb}$`);function Ub(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 IO(r){return new RegExp(`^${Ub(r)}$`)}function xb(r){let e=`${Fb}T${Ub(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 DO(r,e){return!!((e==="v4"||!e)&&bO.test(r)||(e==="v6"||!e)&&RO.test(r))}class Jt extends X{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==G.string){const s=this._getOrReturnCtx(e);return V(s,{code:w.invalid_type,expected:G.string,received:s.parsedType}),J}const i=new nt;let a;for(const s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(a=this._getOrReturnCtx(e,a),V(a,{code:w.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="max")e.data.length>s.value&&(a=this._getOrReturnCtx(e,a),V(a,{code:w.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.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?V(a,{code:w.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):l&&V(a,{code:w.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),i.dirty())}else if(s.kind==="email")TO.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"email",code:w.invalid_string,message:s.message}),i.dirty());else if(s.kind==="emoji")Kl||(Kl=new RegExp(EO,"u")),Kl.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"emoji",code:w.invalid_string,message:s.message}),i.dirty());else if(s.kind==="uuid")hO.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"uuid",code:w.invalid_string,message:s.message}),i.dirty());else if(s.kind==="nanoid")fO.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"nanoid",code:w.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid")uO.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"cuid",code:w.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid2")pO.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"cuid2",code:w.invalid_string,message:s.message}),i.dirty());else if(s.kind==="ulid")yO.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"ulid",code:w.invalid_string,message:s.message}),i.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),V(a,{validation:"url",code:w.invalid_string,message:s.message}),i.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"regex",code:w.invalid_string,message:s.message}),i.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(a=this._getOrReturnCtx(e,a),V(a,{code:w.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),i.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),V(a,{code:w.invalid_string,validation:{startsWith:s.value},message:s.message}),i.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(a=this._getOrReturnCtx(e,a),V(a,{code:w.invalid_string,validation:{endsWith:s.value},message:s.message}),i.dirty()):s.kind==="datetime"?xb(s).test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{code:w.invalid_string,validation:"datetime",message:s.message}),i.dirty()):s.kind==="date"?vO.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{code:w.invalid_string,validation:"date",message:s.message}),i.dirty()):s.kind==="time"?IO(s).test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{code:w.invalid_string,validation:"time",message:s.message}),i.dirty()):s.kind==="duration"?mO.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"duration",code:w.invalid_string,message:s.message}),i.dirty()):s.kind==="ip"?DO(e.data,s.version)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"ip",code:w.invalid_string,message:s.message}),i.dirty()):s.kind==="base64"?gO.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"base64",code:w.invalid_string,message:s.message}),i.dirty()):ne.assertNever(s);return{status:i.value,value:e.data}}_regex(e,t,i){return this.refinement(a=>e.test(a),{validation:t,code:w.invalid_string,...k.errToObj(i)})}_addCheck(e){return new Jt({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...k.errToObj(e)})}url(e){return this._addCheck({kind:"url",...k.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...k.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...k.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...k.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...k.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...k.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...k.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...k.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...k.errToObj(e)})}datetime(e){var t,i;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:(i=e==null?void 0:e.local)!==null&&i!==void 0?i:!1,...k.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,...k.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...k.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...k.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t==null?void 0:t.position,...k.errToObj(t==null?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...k.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...k.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...k.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...k.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...k.errToObj(t)})}nonempty(e){return this.min(1,k.errToObj(e))}trim(){return new Jt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Jt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Jt({...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}}Jt.create=r=>{var e;return new Jt({checks:[],typeName:q.ZodString,coerce:(e=r==null?void 0:r.coerce)!==null&&e!==void 0?e:!1,...Z(r)})};function PO(r,e){const t=(r.toString().split(".")[1]||"").length,i=(e.toString().split(".")[1]||"").length,a=t>i?t:i,s=parseInt(r.toFixed(a).replace(".","")),o=parseInt(e.toFixed(a).replace(".",""));return s%o/Math.pow(10,a)}class Vn extends X{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)!==G.number){const s=this._getOrReturnCtx(e);return V(s,{code:w.invalid_type,expected:G.number,received:s.parsedType}),J}let i;const a=new nt;for(const s of this._def.checks)s.kind==="int"?ne.isInteger(e.data)||(i=this._getOrReturnCtx(e,i),V(i,{code:w.invalid_type,expected:"integer",received:"float",message:s.message}),a.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(i=this._getOrReturnCtx(e,i),V(i,{code:w.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)&&(i=this._getOrReturnCtx(e,i),V(i,{code:w.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="multipleOf"?PO(e.data,s.value)!==0&&(i=this._getOrReturnCtx(e,i),V(i,{code:w.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(i=this._getOrReturnCtx(e,i),V(i,{code:w.not_finite,message:s.message}),a.dirty()):ne.assertNever(s);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,k.toString(t))}gt(e,t){return this.setLimit("min",e,!1,k.toString(t))}lte(e,t){return this.setLimit("max",e,!0,k.toString(t))}lt(e,t){return this.setLimit("max",e,!1,k.toString(t))}setLimit(e,t,i,a){return new Vn({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:k.toString(a)}]})}_addCheck(e){return new Vn({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:k.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:k.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:k.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:k.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:k.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:k.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:k.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:k.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:k.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"&&ne.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(t===null||i.value>t)&&(t=i.value):i.kind==="max"&&(e===null||i.value<e)&&(e=i.value)}return Number.isFinite(t)&&Number.isFinite(e)}}Vn.create=r=>new Vn({checks:[],typeName:q.ZodNumber,coerce:(r==null?void 0:r.coerce)||!1,...Z(r)});class Ln extends X{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)!==G.bigint){const s=this._getOrReturnCtx(e);return V(s,{code:w.invalid_type,expected:G.bigint,received:s.parsedType}),J}let i;const a=new nt;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(i=this._getOrReturnCtx(e,i),V(i,{code:w.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)&&(i=this._getOrReturnCtx(e,i),V(i,{code:w.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(i=this._getOrReturnCtx(e,i),V(i,{code:w.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):ne.assertNever(s);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,k.toString(t))}gt(e,t){return this.setLimit("min",e,!1,k.toString(t))}lte(e,t){return this.setLimit("max",e,!0,k.toString(t))}lt(e,t){return this.setLimit("max",e,!1,k.toString(t))}setLimit(e,t,i,a){return new Ln({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:k.toString(a)}]})}_addCheck(e){return new Ln({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:k.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:k.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:k.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:k.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:k.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}}Ln.create=r=>{var e;return new Ln({checks:[],typeName:q.ZodBigInt,coerce:(e=r==null?void 0:r.coerce)!==null&&e!==void 0?e:!1,...Z(r)})};class ki extends X{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==G.boolean){const i=this._getOrReturnCtx(e);return V(i,{code:w.invalid_type,expected:G.boolean,received:i.parsedType}),J}return ut(e.data)}}ki.create=r=>new ki({typeName:q.ZodBoolean,coerce:(r==null?void 0:r.coerce)||!1,...Z(r)});class cr extends X{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==G.date){const s=this._getOrReturnCtx(e);return V(s,{code:w.invalid_type,expected:G.date,received:s.parsedType}),J}if(isNaN(e.data.getTime())){const s=this._getOrReturnCtx(e);return V(s,{code:w.invalid_date}),J}const i=new nt;let a;for(const s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(a=this._getOrReturnCtx(e,a),V(a,{code:w.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),i.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(a=this._getOrReturnCtx(e,a),V(a,{code:w.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),i.dirty()):ne.assertNever(s);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new cr({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:k.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:k.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}}cr.create=r=>new cr({checks:[],coerce:(r==null?void 0:r.coerce)||!1,typeName:q.ZodDate,...Z(r)});class ms extends X{_parse(e){if(this._getType(e)!==G.symbol){const i=this._getOrReturnCtx(e);return V(i,{code:w.invalid_type,expected:G.symbol,received:i.parsedType}),J}return ut(e.data)}}ms.create=r=>new ms({typeName:q.ZodSymbol,...Z(r)});class qi extends X{_parse(e){if(this._getType(e)!==G.undefined){const i=this._getOrReturnCtx(e);return V(i,{code:w.invalid_type,expected:G.undefined,received:i.parsedType}),J}return ut(e.data)}}qi.create=r=>new qi({typeName:q.ZodUndefined,...Z(r)});class Ji extends X{_parse(e){if(this._getType(e)!==G.null){const i=this._getOrReturnCtx(e);return V(i,{code:w.invalid_type,expected:G.null,received:i.parsedType}),J}return ut(e.data)}}Ji.create=r=>new Ji({typeName:q.ZodNull,...Z(r)});class Qr extends X{constructor(){super(...arguments),this._any=!0}_parse(e){return ut(e.data)}}Qr.create=r=>new Qr({typeName:q.ZodAny,...Z(r)});class dr extends X{constructor(){super(...arguments),this._unknown=!0}_parse(e){return ut(e.data)}}dr.create=r=>new dr({typeName:q.ZodUnknown,...Z(r)});class mn extends X{_parse(e){const t=this._getOrReturnCtx(e);return V(t,{code:w.invalid_type,expected:G.never,received:t.parsedType}),J}}mn.create=r=>new mn({typeName:q.ZodNever,...Z(r)});class Ts extends X{_parse(e){if(this._getType(e)!==G.undefined){const i=this._getOrReturnCtx(e);return V(i,{code:w.invalid_type,expected:G.void,received:i.parsedType}),J}return ut(e.data)}}Ts.create=r=>new Ts({typeName:q.ZodVoid,...Z(r)});class Wt extends X{_parse(e){const{ctx:t,status:i}=this._processInputParams(e),a=this._def;if(t.parsedType!==G.array)return V(t,{code:w.invalid_type,expected:G.array,received:t.parsedType}),J;if(a.exactLength!==null){const o=t.data.length>a.exactLength.value,l=t.data.length<a.exactLength.value;(o||l)&&(V(t,{code:o?w.too_big:w.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}),i.dirty())}if(a.minLength!==null&&t.data.length<a.minLength.value&&(V(t,{code:w.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),i.dirty()),a.maxLength!==null&&t.data.length>a.maxLength.value&&(V(t,{code:w.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),i.dirty()),t.common.async)return Promise.all([...t.data].map((o,l)=>a.type._parseAsync(new Kt(t,o,t.path,l)))).then(o=>nt.mergeArray(i,o));const s=[...t.data].map((o,l)=>a.type._parseSync(new Kt(t,o,t.path,l)));return nt.mergeArray(i,s)}get element(){return this._def.type}min(e,t){return new Wt({...this._def,minLength:{value:e,message:k.toString(t)}})}max(e,t){return new Wt({...this._def,maxLength:{value:e,message:k.toString(t)}})}length(e,t){return new Wt({...this._def,exactLength:{value:e,message:k.toString(t)}})}nonempty(e){return this.min(1,e)}}Wt.create=(r,e)=>new Wt({type:r,minLength:null,maxLength:null,exactLength:null,typeName:q.ZodArray,...Z(e)});function ei(r){if(r instanceof ke){const e={};for(const t in r.shape){const i=r.shape[t];e[t]=Qt.create(ei(i))}return new ke({...r._def,shape:()=>e})}else return r instanceof Wt?new Wt({...r._def,type:ei(r.element)}):r instanceof Qt?Qt.create(ei(r.unwrap())):r instanceof $n?$n.create(ei(r.unwrap())):r instanceof Xt?Xt.create(r.items.map(e=>ei(e))):r}class ke extends X{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=ne.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==G.object){const y=this._getOrReturnCtx(e);return V(y,{code:w.invalid_type,expected:G.object,received:y.parsedType}),J}const{status:i,ctx:a}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),l=[];if(!(this._def.catchall instanceof mn&&this._def.unknownKeys==="strip"))for(const y in a.data)o.includes(y)||l.push(y);const p=[];for(const y of o){const f=s[y],m=a.data[y];p.push({key:{status:"valid",value:y},value:f._parse(new Kt(a,m,a.path,y)),alwaysSet:y in a.data})}if(this._def.catchall instanceof mn){const y=this._def.unknownKeys;if(y==="passthrough")for(const f of l)p.push({key:{status:"valid",value:f},value:{status:"valid",value:a.data[f]}});else if(y==="strict")l.length>0&&(V(a,{code:w.unrecognized_keys,keys:l}),i.dirty());else if(y!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const y=this._def.catchall;for(const f of l){const m=a.data[f];p.push({key:{status:"valid",value:f},value:y._parse(new Kt(a,m,a.path,f)),alwaysSet:f in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const y=[];for(const f of p){const m=await f.key,b=await f.value;y.push({key:m,value:b,alwaysSet:f.alwaysSet})}return y}).then(y=>nt.mergeObjectSync(i,y)):nt.mergeObjectSync(i,p)}get shape(){return this._def.shape()}strict(e){return k.errToObj,new ke({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,i)=>{var a,s,o,l;const p=(o=(s=(a=this._def).errorMap)===null||s===void 0?void 0:s.call(a,t,i).message)!==null&&o!==void 0?o:i.defaultError;return t.code==="unrecognized_keys"?{message:(l=k.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:q.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ke({...this._def,catchall:e})}pick(e){const t={};return ne.objectKeys(e).forEach(i=>{e[i]&&this.shape[i]&&(t[i]=this.shape[i])}),new ke({...this._def,shape:()=>t})}omit(e){const t={};return ne.objectKeys(this.shape).forEach(i=>{e[i]||(t[i]=this.shape[i])}),new ke({...this._def,shape:()=>t})}deepPartial(){return ei(this)}partial(e){const t={};return ne.objectKeys(this.shape).forEach(i=>{const a=this.shape[i];e&&!e[i]?t[i]=a:t[i]=a.optional()}),new ke({...this._def,shape:()=>t})}required(e){const t={};return ne.objectKeys(this.shape).forEach(i=>{if(e&&!e[i])t[i]=this.shape[i];else{let s=this.shape[i];for(;s instanceof Qt;)s=s._def.innerType;t[i]=s}}),new ke({...this._def,shape:()=>t})}keyof(){return jb(ne.objectKeys(this.shape))}}ke.create=(r,e)=>new ke({shape:()=>r,unknownKeys:"strip",catchall:mn.create(),typeName:q.ZodObject,...Z(e)}),ke.strictCreate=(r,e)=>new ke({shape:()=>r,unknownKeys:"strict",catchall:mn.create(),typeName:q.ZodObject,...Z(e)}),ke.lazycreate=(r,e)=>new ke({shape:r,unknownKeys:"strip",catchall:mn.create(),typeName:q.ZodObject,...Z(e)});class Wi extends X{_parse(e){const{ctx:t}=this._processInputParams(e),i=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 Rt(l.ctx.common.issues));return V(t,{code:w.invalid_union,unionErrors:o}),J}if(t.common.async)return Promise.all(i.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 i){const y={...t,common:{...t.common,issues:[]},parent:null},f=p._parseSync({data:t.data,path:t.path,parent:y});if(f.status==="valid")return f;f.status==="dirty"&&!s&&(s={result:f,ctx:y}),y.common.issues.length&&o.push(y.common.issues)}if(s)return t.common.issues.push(...s.ctx.common.issues),s.result;const l=o.map(p=>new Rt(p));return V(t,{code:w.invalid_union,unionErrors:l}),J}}get options(){return this._def.options}}Wi.create=(r,e)=>new Wi({options:r,typeName:q.ZodUnion,...Z(e)});const Tn=r=>r instanceof zi?Tn(r.schema):r instanceof Yt?Tn(r.innerType()):r instanceof Zi?[r.value]:r instanceof Gn?r.options:r instanceof Ki?ne.objectValues(r.enum):r instanceof Xi?Tn(r._def.innerType):r instanceof qi?[void 0]:r instanceof Ji?[null]:r instanceof Qt?[void 0,...Tn(r.unwrap())]:r instanceof $n?[null,...Tn(r.unwrap())]:r instanceof Ql||r instanceof ta?Tn(r.unwrap()):r instanceof Qi?Tn(r._def.innerType):[];class Es extends X{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==G.object)return V(t,{code:w.invalid_type,expected:G.object,received:t.parsedType}),J;const i=this.discriminator,a=t.data[i],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}):(V(t,{code:w.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),J)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,i){const a=new Map;for(const s of t){const o=Tn(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 Es({typeName:q.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:a,...Z(i)})}}function Xl(r,e){const t=Mn(r),i=Mn(e);if(r===e)return{valid:!0,data:r};if(t===G.object&&i===G.object){const a=ne.objectKeys(e),s=ne.objectKeys(r).filter(l=>a.indexOf(l)!==-1),o={...r,...e};for(const l of s){const p=Xl(r[l],e[l]);if(!p.valid)return{valid:!1};o[l]=p.data}return{valid:!0,data:o}}else if(t===G.array&&i===G.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=Xl(o,l);if(!p.valid)return{valid:!1};a.push(p.data)}return{valid:!0,data:a}}else return t===G.date&&i===G.date&&+r==+e?{valid:!0,data:r}:{valid:!1}}class Yi extends X{_parse(e){const{status:t,ctx:i}=this._processInputParams(e),a=(s,o)=>{if(zl(s)||zl(o))return J;const l=Xl(s.value,o.value);return l.valid?((Zl(s)||Zl(o))&&t.dirty(),{status:t.value,value:l.data}):(V(i,{code:w.invalid_intersection_types}),J)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([s,o])=>a(s,o)):a(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}Yi.create=(r,e,t)=>new Yi({left:r,right:e,typeName:q.ZodIntersection,...Z(t)});class Xt extends X{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==G.array)return V(i,{code:w.invalid_type,expected:G.array,received:i.parsedType}),J;if(i.data.length<this._def.items.length)return V(i,{code:w.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),J;!this._def.rest&&i.data.length>this._def.items.length&&(V(i,{code:w.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const s=[...i.data].map((o,l)=>{const p=this._def.items[l]||this._def.rest;return p?p._parse(new Kt(i,o,i.path,l)):null}).filter(o=>!!o);return i.common.async?Promise.all(s).then(o=>nt.mergeArray(t,o)):nt.mergeArray(t,s)}get items(){return this._def.items}rest(e){return new Xt({...this._def,rest:e})}}Xt.create=(r,e)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Xt({items:r,typeName:q.ZodTuple,rest:null,...Z(e)})};class Hi extends X{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==G.object)return V(i,{code:w.invalid_type,expected:G.object,received:i.parsedType}),J;const a=[],s=this._def.keyType,o=this._def.valueType;for(const l in i.data)a.push({key:s._parse(new Kt(i,l,i.path,l)),value:o._parse(new Kt(i,i.data[l],i.path,l)),alwaysSet:l in i.data});return i.common.async?nt.mergeObjectAsync(t,a):nt.mergeObjectSync(t,a)}get element(){return this._def.valueType}static create(e,t,i){return t instanceof X?new Hi({keyType:e,valueType:t,typeName:q.ZodRecord,...Z(i)}):new Hi({keyType:Jt.create(),valueType:e,typeName:q.ZodRecord,...Z(t)})}}class bs extends X{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==G.map)return V(i,{code:w.invalid_type,expected:G.map,received:i.parsedType}),J;const a=this._def.keyType,s=this._def.valueType,o=[...i.data.entries()].map(([l,p],y)=>({key:a._parse(new Kt(i,l,i.path,[y,"key"])),value:s._parse(new Kt(i,p,i.path,[y,"value"]))}));if(i.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const p of o){const y=await p.key,f=await p.value;if(y.status==="aborted"||f.status==="aborted")return J;(y.status==="dirty"||f.status==="dirty")&&t.dirty(),l.set(y.value,f.value)}return{status:t.value,value:l}})}else{const l=new Map;for(const p of o){const y=p.key,f=p.value;if(y.status==="aborted"||f.status==="aborted")return J;(y.status==="dirty"||f.status==="dirty")&&t.dirty(),l.set(y.value,f.value)}return{status:t.value,value:l}}}}bs.create=(r,e,t)=>new bs({valueType:e,keyType:r,typeName:q.ZodMap,...Z(t)});class ur extends X{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==G.set)return V(i,{code:w.invalid_type,expected:G.set,received:i.parsedType}),J;const a=this._def;a.minSize!==null&&i.data.size<a.minSize.value&&(V(i,{code:w.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),t.dirty()),a.maxSize!==null&&i.data.size>a.maxSize.value&&(V(i,{code:w.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 y=new Set;for(const f of p){if(f.status==="aborted")return J;f.status==="dirty"&&t.dirty(),y.add(f.value)}return{status:t.value,value:y}}const l=[...i.data.values()].map((p,y)=>s._parse(new Kt(i,p,i.path,y)));return i.common.async?Promise.all(l).then(p=>o(p)):o(l)}min(e,t){return new ur({...this._def,minSize:{value:e,message:k.toString(t)}})}max(e,t){return new ur({...this._def,maxSize:{value:e,message:k.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ur.create=(r,e)=>new ur({valueType:r,minSize:null,maxSize:null,typeName:q.ZodSet,...Z(e)});class ti extends X{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==G.function)return V(t,{code:w.invalid_type,expected:G.function,received:t.parsedType}),J;function i(l,p){return hs({data:l,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,ys(),Kr].filter(y=>!!y),issueData:{code:w.invalid_arguments,argumentsError:p}})}function a(l,p){return hs({data:l,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,ys(),Kr].filter(y=>!!y),issueData:{code:w.invalid_return_type,returnTypeError:p}})}const s={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof ni){const l=this;return ut(async function(...p){const y=new Rt([]),f=await l._def.args.parseAsync(p,s).catch(v=>{throw y.addIssue(i(p,v)),y}),m=await Reflect.apply(o,this,f);return await l._def.returns._def.type.parseAsync(m,s).catch(v=>{throw y.addIssue(a(m,v)),y})})}else{const l=this;return ut(function(...p){const y=l._def.args.safeParse(p,s);if(!y.success)throw new Rt([i(p,y.error)]);const f=Reflect.apply(o,this,y.data),m=l._def.returns.safeParse(f,s);if(!m.success)throw new Rt([a(f,m.error)]);return m.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ti({...this._def,args:Xt.create(e).rest(dr.create())})}returns(e){return new ti({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,i){return new ti({args:e||Xt.create([]).rest(dr.create()),returns:t||dr.create(),typeName:q.ZodFunction,...Z(i)})}}class zi extends X{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})}}zi.create=(r,e)=>new zi({getter:r,typeName:q.ZodLazy,...Z(e)});class Zi extends X{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return V(t,{received:t.data,code:w.invalid_literal,expected:this._def.value}),J}return{status:"valid",value:e.data}}get value(){return this._def.value}}Zi.create=(r,e)=>new Zi({value:r,typeName:q.ZodLiteral,...Z(e)});function jb(r,e){return new Gn({values:r,typeName:q.ZodEnum,...Z(e)})}class Gn extends X{constructor(){super(...arguments),xi.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),i=this._def.values;return V(t,{expected:ne.joinValues(i),received:t.parsedType,code:w.invalid_type}),J}if(fs(this,xi,"f")||Gb(this,xi,new Set(this._def.values),"f"),!fs(this,xi,"f").has(e.data)){const t=this._getOrReturnCtx(e),i=this._def.values;return V(t,{received:t.data,code:w.invalid_enum_value,options:i}),J}return ut(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 Gn.create(e,{...this._def,...t})}exclude(e,t=this._def){return Gn.create(this.options.filter(i=>!e.includes(i)),{...this._def,...t})}}xi=new WeakMap,Gn.create=jb;class Ki extends X{constructor(){super(...arguments),ji.set(this,void 0)}_parse(e){const t=ne.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==G.string&&i.parsedType!==G.number){const a=ne.objectValues(t);return V(i,{expected:ne.joinValues(a),received:i.parsedType,code:w.invalid_type}),J}if(fs(this,ji,"f")||Gb(this,ji,new Set(ne.getValidEnumValues(this._def.values)),"f"),!fs(this,ji,"f").has(e.data)){const a=ne.objectValues(t);return V(i,{received:i.data,code:w.invalid_enum_value,options:a}),J}return ut(e.data)}get enum(){return this._def.values}}ji=new WeakMap,Ki.create=(r,e)=>new Ki({values:r,typeName:q.ZodNativeEnum,...Z(e)});class ni extends X{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==G.promise&&t.common.async===!1)return V(t,{code:w.invalid_type,expected:G.promise,received:t.parsedType}),J;const i=t.parsedType===G.promise?t.data:Promise.resolve(t.data);return ut(i.then(a=>this._def.type.parseAsync(a,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ni.create=(r,e)=>new ni({type:r,typeName:q.ZodPromise,...Z(e)});class Yt extends X{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===q.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:i}=this._processInputParams(e),a=this._def.effect||null,s={addIssue:o=>{V(i,o),o.fatal?t.abort():t.dirty()},get path(){return i.path}};if(s.addIssue=s.addIssue.bind(s),a.type==="preprocess"){const o=a.transform(i.data,s);if(i.common.async)return Promise.resolve(o).then(async l=>{if(t.value==="aborted")return J;const p=await this._def.schema._parseAsync({data:l,path:i.path,parent:i});return p.status==="aborted"?J:p.status==="dirty"||t.value==="dirty"?Xr(p.value):p});{if(t.value==="aborted")return J;const l=this._def.schema._parseSync({data:o,path:i.path,parent:i});return l.status==="aborted"?J:l.status==="dirty"||t.value==="dirty"?Xr(l.value):l}}if(a.type==="refinement"){const o=l=>{const p=a.refinement(l,s);if(i.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(i.common.async===!1){const l=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return l.status==="aborted"?J:(l.status==="dirty"&&t.dirty(),o(l.value),{status:t.value,value:l.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(l=>l.status==="aborted"?J:(l.status==="dirty"&&t.dirty(),o(l.value).then(()=>({status:t.value,value:l.value}))))}if(a.type==="transform")if(i.common.async===!1){const o=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!Fi(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:i.data,path:i.path,parent:i}).then(o=>Fi(o)?Promise.resolve(a.transform(o.value,s)).then(l=>({status:t.value,value:l})):o);ne.assertNever(a)}}Yt.create=(r,e,t)=>new Yt({schema:r,typeName:q.ZodEffects,effect:e,...Z(t)}),Yt.createWithPreprocess=(r,e,t)=>new Yt({schema:e,effect:{type:"preprocess",transform:r},typeName:q.ZodEffects,...Z(t)});class Qt extends X{_parse(e){return this._getType(e)===G.undefined?ut(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Qt.create=(r,e)=>new Qt({innerType:r,typeName:q.ZodOptional,...Z(e)});class $n extends X{_parse(e){return this._getType(e)===G.null?ut(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}$n.create=(r,e)=>new $n({innerType:r,typeName:q.ZodNullable,...Z(e)});class Xi extends X{_parse(e){const{ctx:t}=this._processInputParams(e);let i=t.data;return t.parsedType===G.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Xi.create=(r,e)=>new Xi({innerType:r,typeName:q.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Z(e)});class Qi extends X{_parse(e){const{ctx:t}=this._processInputParams(e),i={...t,common:{...t.common,issues:[]}},a=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return Ui(a)?a.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Rt(i.common.issues)},input:i.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Rt(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}Qi.create=(r,e)=>new Qi({innerType:r,typeName:q.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Z(e)});class Rs extends X{_parse(e){if(this._getType(e)!==G.nan){const i=this._getOrReturnCtx(e);return V(i,{code:w.invalid_type,expected:G.nan,received:i.parsedType}),J}return{status:"valid",value:e.data}}}Rs.create=r=>new Rs({typeName:q.ZodNaN,...Z(r)});const AO=Symbol("zod_brand");class Ql extends X{_parse(e){const{ctx:t}=this._processInputParams(e),i=t.data;return this._def.type._parse({data:i,path:t.path,parent:t})}unwrap(){return this._def.type}}class ea extends X{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?J:s.status==="dirty"?(t.dirty(),Xr(s.value)):this._def.out._parseAsync({data:s.value,path:i.path,parent:i})})();{const a=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?J:a.status==="dirty"?(t.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:i.path,parent:i})}}static create(e,t){return new ea({in:e,out:t,typeName:q.ZodPipeline})}}class ta extends X{_parse(e){const t=this._def.innerType._parse(e),i=a=>(Fi(a)&&(a.value=Object.freeze(a.value)),a);return Ui(t)?t.then(a=>i(a)):i(t)}unwrap(){return this._def.innerType}}ta.create=(r,e)=>new ta({innerType:r,typeName:q.ZodReadonly,...Z(e)});function kb(r,e={},t){return r?Qr.create().superRefine((i,a)=>{var s,o;if(!r(i)){const l=typeof e=="function"?e(i):typeof e=="string"?{message:e}:e,p=(o=(s=l.fatal)!==null&&s!==void 0?s:t)!==null&&o!==void 0?o:!0,y=typeof l=="string"?{message:l}:l;a.addIssue({code:"custom",...y,fatal:p})}}):Qr.create()}const OO={object:ke.lazycreate};var q;(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"})(q||(q={}));const SO=(r,e={message:`Input not instance of ${r.name}`})=>kb(t=>t instanceof r,e),gs=Jt.create,ec=Vn.create,CO=Rs.create,BO=Ln.create,tc=ki.create,qb=cr.create,wO=ms.create,_O=qi.create,Jb=Ji.create,NO=Qr.create,vs=dr.create,MO=mn.create,VO=Ts.create,LO=Wt.create,Wb=ke.create,GO=ke.strictCreate,$O=Wi.create,FO=Es.create,UO=Yi.create,xO=Xt.create,Yb=Hi.create,jO=bs.create,kO=ur.create,qO=ti.create,JO=zi.create,WO=Zi.create,Hb=Gn.create,YO=Ki.create,HO=ni.create,zb=Yt.create,zO=Qt.create,ZO=$n.create,KO=Yt.createWithPreprocess,XO=ea.create;var u=Object.freeze({__proto__:null,defaultErrorMap:Kr,setErrorMap:cO,getErrorMap:ys,makeIssue:hs,EMPTY_PATH:dO,addIssueToContext:V,ParseStatus:nt,INVALID:J,DIRTY:Xr,OK:ut,isAborted:zl,isDirty:Zl,isValid:Fi,isAsync:Ui,get util(){return ne},get objectUtil(){return Hl},ZodParsedType:G,getParsedType:Mn,ZodType:X,datetimeRegex:xb,ZodString:Jt,ZodNumber:Vn,ZodBigInt:Ln,ZodBoolean:ki,ZodDate:cr,ZodSymbol:ms,ZodUndefined:qi,ZodNull:Ji,ZodAny:Qr,ZodUnknown:dr,ZodNever:mn,ZodVoid:Ts,ZodArray:Wt,ZodObject:ke,ZodUnion:Wi,ZodDiscriminatedUnion:Es,ZodIntersection:Yi,ZodTuple:Xt,ZodRecord:Hi,ZodMap:bs,ZodSet:ur,ZodFunction:ti,ZodLazy:zi,ZodLiteral:Zi,ZodEnum:Gn,ZodNativeEnum:Ki,ZodPromise:ni,ZodEffects:Yt,ZodTransformer:Yt,ZodOptional:Qt,ZodNullable:$n,ZodDefault:Xi,ZodCatch:Qi,ZodNaN:Rs,BRAND:AO,ZodBranded:Ql,ZodPipeline:ea,ZodReadonly:ta,custom:kb,Schema:X,ZodSchema:X,late:OO,get ZodFirstPartyTypeKind(){return q},coerce:{string:r=>Jt.create({...r,coerce:!0}),number:r=>Vn.create({...r,coerce:!0}),boolean:r=>ki.create({...r,coerce:!0}),bigint:r=>Ln.create({...r,coerce:!0}),date:r=>cr.create({...r,coerce:!0})},any:NO,array:LO,bigint:BO,boolean:tc,date:qb,discriminatedUnion:FO,effect:zb,enum:Hb,function:qO,instanceof:SO,intersection:UO,lazy:JO,literal:WO,map:jO,nan:CO,nativeEnum:YO,never:MO,null:Jb,nullable:ZO,number:ec,object:Wb,oboolean:()=>tc().optional(),onumber:()=>ec().optional(),optional:zO,ostring:()=>gs().optional(),pipeline:XO,preprocess:KO,promise:HO,record:Yb,set:kO,strictObject:GO,string:gs,symbol:wO,transformer:zb,tuple:xO,undefined:_O,union:$O,unknown:vs,void:VO,NEVER:J,ZodIssueCode:w,quotelessJson:lO,ZodError:Rt});function Zb(r){var a,s,o;if(!(r!=null&&r.dataType))return vs();const e=r.dataType.isNullable||!1,t=r.dataType.isList||!1;let i=vs();if(((a=r.dataType.entity)==null?void 0:a.type)===n.PrimitiveEntity)switch(r.dataType.entity.name){case D.String:i=gs();break;case D.JSON:i=Yb(vs());break;case D.Number:i=ec();break;case D.Boolean:i=tc();break;case D.Date:i=qb();break;case D.Enum:{const l=r.dataType.options||[];if(l.length===0)throw new Error(`Enum property ${r.name} has no options`);i=Hb(l);break}case D.Null:i=Jb();break;case D.UUID:i=gs().uuid();break}else if(((s=r.dataType.entity)==null?void 0:s.type)===n.CustomEntity)i=Kb(r.dataType.entity);else throw new Error(`Unsupported data type validation: ${(o=r.dataType.entity)==null?void 0:o.type}`);return e&&(i=i.nullable()),t&&(i=i.array()),i}function Kb(r){const e=Wb({});for(const t of r.properties){const i=Zb(t);e.shape[t.name]=i}return e}function Xb(r){const e=r.rangeStart;return new Date(e.getTime()+Math.random()*(Date.now()-e.getTime()))}function Qb(r){const e=r.rangeEnd;return new Date(Math.random()*e.getTime())}function eR(r){const e=r.rangeStart,t=r.rangeEnd;return new Date(e.getTime()+Math.random()*(t.getTime()-e.getTime()))}function tR(r){return r.rangeStart&&r.rangeEnd?eR(r):r.rangeStart?Xb(r):r.rangeEnd?Qb(r):new Date}function QO(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var nR={},Is={},Ds={};Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.default=tS;let Ps;const eS=new Uint8Array(16);function tS(){if(!Ps&&(Ps=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ps))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ps(eS)}var Fn={},pr={},As={};Object.defineProperty(As,"__esModule",{value:!0}),As.default=void 0;var nS=/^(?:[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;As.default=nS,Object.defineProperty(pr,"__esModule",{value:!0}),pr.default=void 0;var rS=iS(As);function iS(r){return r&&r.__esModule?r:{default:r}}function aS(r){return typeof r=="string"&&rS.default.test(r)}var sS=aS;pr.default=sS,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.default=void 0,Fn.unsafeStringify=rR;var oS=lS(pr);function lS(r){return r&&r.__esModule?r:{default:r}}const tt=[];for(let r=0;r<256;++r)tt.push((r+256).toString(16).slice(1));function rR(r,e=0){return tt[r[e+0]]+tt[r[e+1]]+tt[r[e+2]]+tt[r[e+3]]+"-"+tt[r[e+4]]+tt[r[e+5]]+"-"+tt[r[e+6]]+tt[r[e+7]]+"-"+tt[r[e+8]]+tt[r[e+9]]+"-"+tt[r[e+10]]+tt[r[e+11]]+tt[r[e+12]]+tt[r[e+13]]+tt[r[e+14]]+tt[r[e+15]]}function cS(r,e=0){const t=rR(r,e);if(!(0,oS.default)(t))throw TypeError("Stringified UUID is invalid");return t}var dS=cS;Fn.default=dS,Object.defineProperty(Is,"__esModule",{value:!0}),Is.default=void 0;var uS=yS(Ds),pS=Fn;function yS(r){return r&&r.__esModule?r:{default:r}}let iR,nc,rc=0,ic=0;function hS(r,e,t){let i=e&&t||0;const a=e||new Array(16);r=r||{};let s=r.node||iR,o=r.clockseq!==void 0?r.clockseq:nc;if(s==null||o==null){const b=r.random||(r.rng||uS.default)();s==null&&(s=iR=[b[0]|1,b[1],b[2],b[3],b[4],b[5]]),o==null&&(o=nc=(b[6]<<8|b[7])&16383)}let l=r.msecs!==void 0?r.msecs:Date.now(),p=r.nsecs!==void 0?r.nsecs:ic+1;const y=l-rc+(p-ic)/1e4;if(y<0&&r.clockseq===void 0&&(o=o+1&16383),(y<0||l>rc)&&r.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");rc=l,ic=p,nc=o,l+=122192928e5;const f=((l&268435455)*1e4+p)%4294967296;a[i++]=f>>>24&255,a[i++]=f>>>16&255,a[i++]=f>>>8&255,a[i++]=f&255;const m=l/4294967296*1e4&268435455;a[i++]=m>>>8&255,a[i++]=m&255,a[i++]=m>>>24&15|16,a[i++]=m>>>16&255,a[i++]=o>>>8|128,a[i++]=o&255;for(let b=0;b<6;++b)a[i+b]=s[b];return e||(0,pS.unsafeStringify)(a)}var fS=hS;Is.default=fS;var Os={},Un={},na={};Object.defineProperty(na,"__esModule",{value:!0}),na.default=void 0;var mS=TS(pr);function TS(r){return r&&r.__esModule?r:{default:r}}function ES(r){if(!(0,mS.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 bS=ES;na.default=bS,Object.defineProperty(Un,"__esModule",{value:!0}),Un.URL=Un.DNS=void 0,Un.default=DS;var RS=Fn,gS=vS(na);function vS(r){return r&&r.__esModule?r:{default:r}}function IS(r){r=unescape(encodeURIComponent(r));const e=[];for(let t=0;t<r.length;++t)e.push(r.charCodeAt(t));return e}const aR="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Un.DNS=aR;const sR="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Un.URL=sR;function DS(r,e,t){function i(a,s,o,l){var p;if(typeof a=="string"&&(a=IS(a)),typeof s=="string"&&(s=(0,gS.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 y=new Uint8Array(16+a.length);if(y.set(s),y.set(a,s.length),y=t(y),y[6]=y[6]&15|e,y[8]=y[8]&63|128,o){l=l||0;for(let f=0;f<16;++f)o[l+f]=y[f];return o}return(0,RS.unsafeStringify)(y)}try{i.name=r}catch{}return i.DNS=aR,i.URL=sR,i}var Ss={};Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.default=void 0;function PS(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 AS(OS(SS(r),r.length*8))}function AS(r){const e=[],t=r.length*32,i="0123456789abcdef";for(let a=0;a<t;a+=8){const s=r[a>>5]>>>a%32&255,o=parseInt(i.charAt(s>>>4&15)+i.charAt(s&15),16);e.push(o)}return e}function oR(r){return(r+64>>>9<<4)+14+1}function OS(r,e){r[e>>5]|=128<<e%32,r[oR(e)-1]=e;let t=1732584193,i=-271733879,a=-1732584194,s=271733878;for(let o=0;o<r.length;o+=16){const l=t,p=i,y=a,f=s;t=rt(t,i,a,s,r[o],7,-680876936),s=rt(s,t,i,a,r[o+1],12,-389564586),a=rt(a,s,t,i,r[o+2],17,606105819),i=rt(i,a,s,t,r[o+3],22,-1044525330),t=rt(t,i,a,s,r[o+4],7,-176418897),s=rt(s,t,i,a,r[o+5],12,1200080426),a=rt(a,s,t,i,r[o+6],17,-1473231341),i=rt(i,a,s,t,r[o+7],22,-45705983),t=rt(t,i,a,s,r[o+8],7,1770035416),s=rt(s,t,i,a,r[o+9],12,-1958414417),a=rt(a,s,t,i,r[o+10],17,-42063),i=rt(i,a,s,t,r[o+11],22,-1990404162),t=rt(t,i,a,s,r[o+12],7,1804603682),s=rt(s,t,i,a,r[o+13],12,-40341101),a=rt(a,s,t,i,r[o+14],17,-1502002290),i=rt(i,a,s,t,r[o+15],22,1236535329),t=it(t,i,a,s,r[o+1],5,-165796510),s=it(s,t,i,a,r[o+6],9,-1069501632),a=it(a,s,t,i,r[o+11],14,643717713),i=it(i,a,s,t,r[o],20,-373897302),t=it(t,i,a,s,r[o+5],5,-701558691),s=it(s,t,i,a,r[o+10],9,38016083),a=it(a,s,t,i,r[o+15],14,-660478335),i=it(i,a,s,t,r[o+4],20,-405537848),t=it(t,i,a,s,r[o+9],5,568446438),s=it(s,t,i,a,r[o+14],9,-1019803690),a=it(a,s,t,i,r[o+3],14,-187363961),i=it(i,a,s,t,r[o+8],20,1163531501),t=it(t,i,a,s,r[o+13],5,-1444681467),s=it(s,t,i,a,r[o+2],9,-51403784),a=it(a,s,t,i,r[o+7],14,1735328473),i=it(i,a,s,t,r[o+12],20,-1926607734),t=at(t,i,a,s,r[o+5],4,-378558),s=at(s,t,i,a,r[o+8],11,-2022574463),a=at(a,s,t,i,r[o+11],16,1839030562),i=at(i,a,s,t,r[o+14],23,-35309556),t=at(t,i,a,s,r[o+1],4,-1530992060),s=at(s,t,i,a,r[o+4],11,1272893353),a=at(a,s,t,i,r[o+7],16,-155497632),i=at(i,a,s,t,r[o+10],23,-1094730640),t=at(t,i,a,s,r[o+13],4,681279174),s=at(s,t,i,a,r[o],11,-358537222),a=at(a,s,t,i,r[o+3],16,-722521979),i=at(i,a,s,t,r[o+6],23,76029189),t=at(t,i,a,s,r[o+9],4,-640364487),s=at(s,t,i,a,r[o+12],11,-421815835),a=at(a,s,t,i,r[o+15],16,530742520),i=at(i,a,s,t,r[o+2],23,-995338651),t=st(t,i,a,s,r[o],6,-198630844),s=st(s,t,i,a,r[o+7],10,1126891415),a=st(a,s,t,i,r[o+14],15,-1416354905),i=st(i,a,s,t,r[o+5],21,-57434055),t=st(t,i,a,s,r[o+12],6,1700485571),s=st(s,t,i,a,r[o+3],10,-1894986606),a=st(a,s,t,i,r[o+10],15,-1051523),i=st(i,a,s,t,r[o+1],21,-2054922799),t=st(t,i,a,s,r[o+8],6,1873313359),s=st(s,t,i,a,r[o+15],10,-30611744),a=st(a,s,t,i,r[o+6],15,-1560198380),i=st(i,a,s,t,r[o+13],21,1309151649),t=st(t,i,a,s,r[o+4],6,-145523070),s=st(s,t,i,a,r[o+11],10,-1120210379),a=st(a,s,t,i,r[o+2],15,718787259),i=st(i,a,s,t,r[o+9],21,-343485551),t=xn(t,l),i=xn(i,p),a=xn(a,y),s=xn(s,f)}return[t,i,a,s]}function SS(r){if(r.length===0)return[];const e=r.length*8,t=new Uint32Array(oR(e));for(let i=0;i<e;i+=8)t[i>>5]|=(r[i/8]&255)<<i%32;return t}function xn(r,e){const t=(r&65535)+(e&65535);return(r>>16)+(e>>16)+(t>>16)<<16|t&65535}function CS(r,e){return r<<e|r>>>32-e}function Cs(r,e,t,i,a,s){return xn(CS(xn(xn(e,r),xn(i,s)),a),t)}function rt(r,e,t,i,a,s,o){return Cs(e&t|~e&i,r,e,a,s,o)}function it(r,e,t,i,a,s,o){return Cs(e&i|t&~i,r,e,a,s,o)}function at(r,e,t,i,a,s,o){return Cs(e^t^i,r,e,a,s,o)}function st(r,e,t,i,a,s,o){return Cs(t^(e|~i),r,e,a,s,o)}var BS=PS;Ss.default=BS,Object.defineProperty(Os,"__esModule",{value:!0}),Os.default=void 0;var wS=lR(Un),_S=lR(Ss);function lR(r){return r&&r.__esModule?r:{default:r}}var NS=(0,wS.default)("v3",48,_S.default);Os.default=NS;var Bs={},ws={};Object.defineProperty(ws,"__esModule",{value:!0}),ws.default=void 0;var MS={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};ws.default=MS,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.default=void 0;var cR=dR(ws),VS=dR(Ds),LS=Fn;function dR(r){return r&&r.__esModule?r:{default:r}}function GS(r,e,t){if(cR.default.randomUUID&&!e&&!r)return cR.default.randomUUID();r=r||{};const i=r.random||(r.rng||VS.default)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){t=t||0;for(let a=0;a<16;++a)e[t+a]=i[a];return e}return(0,LS.unsafeStringify)(i)}var $S=GS;Bs.default=$S;var _s={},Ns={};Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.default=void 0;function FS(r,e,t,i){switch(r){case 0:return e&t^~e&i;case 1:return e^t^i;case 2:return e&t^e&i^t&i;case 3:return e^t^i}}function ac(r,e){return r<<e|r>>>32-e}function US(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 i=r.length/4+2,a=Math.ceil(i/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]=ac(l[v-3]^l[v-8]^l[v-14]^l[v-16],1);let p=t[0],y=t[1],f=t[2],m=t[3],b=t[4];for(let v=0;v<80;++v){const P=Math.floor(v/20),O=ac(p,5)+FS(P,y,f,m)+b+e[P]+l[v]>>>0;b=m,m=f,f=ac(y,30)>>>0,y=p,p=O}t[0]=t[0]+p>>>0,t[1]=t[1]+y>>>0,t[2]=t[2]+f>>>0,t[3]=t[3]+m>>>0,t[4]=t[4]+b>>>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 xS=US;Ns.default=xS,Object.defineProperty(_s,"__esModule",{value:!0}),_s.default=void 0;var jS=uR(Un),kS=uR(Ns);function uR(r){return r&&r.__esModule?r:{default:r}}var qS=(0,jS.default)("v5",80,kS.default);_s.default=qS;var Ms={};Object.defineProperty(Ms,"__esModule",{value:!0}),Ms.default=void 0;var JS="00000000-0000-0000-0000-000000000000";Ms.default=JS;var Vs={};Object.defineProperty(Vs,"__esModule",{value:!0}),Vs.default=void 0;var WS=YS(pr);function YS(r){return r&&r.__esModule?r:{default:r}}function HS(r){if(!(0,WS.default)(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}var zS=HS;Vs.default=zS,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 y.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 i.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=f(Is),t=f(Os),i=f(Bs),a=f(_s),s=f(Ms),o=f(Vs),l=f(pr),p=f(Fn),y=f(na);function f(m){return m&&m.__esModule?m:{default:m}}}(nR);function sc(r,e){if(!r||!e||!r.length||!e.length)throw new Error("Bad alphabet");this.srcAlphabet=r,this.dstAlphabet=e}sc.prototype.convert=function(r){var e,t,i,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,i=0,e=0;e<l;e++)t=t*s+a[e],t>=o?(a[i++]=parseInt(t/o,10),t=t%o):i>0&&(a[i++]=0);l=i,p=this.dstAlphabet.slice(t,t+1).concat(p)}while(i!==0);return p},sc.prototype.isValid=function(r){for(var e=0;e<r.length;++e)if(this.srcAlphabet.indexOf(r[e])===-1)return!1;return!0};var ZS=sc,KS=ZS;function ra(r,e){var t=new KS(r,e);return function(i){return t.convert(i)}}ra.BIN="01",ra.OCT="01234567",ra.DEC="0123456789",ra.HEX="0123456789abcdef";var XS=ra;const{v4:oc,validate:QS}=nR,Ls=XS,lc={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},eC={consistentLength:!0};let cc;const pR=(r,e,t)=>{const i=e(r.toLowerCase().replace(/-/g,""));return!t||!t.consistentLength?i:i.padStart(t.shortIdLength,t.paddingChar)},yR=(r,e)=>{const i=e(r).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[i[1],i[2],i[3],i[4],i[5]].join("-")},tC=r=>Math.ceil(Math.log(2**128)/Math.log(r));var nC=(()=>{const r=(e,t)=>{const i=e||lc.flickrBase58,a={...eC,...t};if([...new Set(Array.from(i))].length!==i.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const s=tC(i.length),o={shortIdLength:s,consistentLength:a.consistentLength,paddingChar:i[0]},l=Ls(Ls.HEX,i),p=Ls(i,Ls.HEX),y=()=>pR(oc(),l,o),m={alphabet:i,fromUUID:b=>pR(b,l,o),maxLength:s,generate:y,new:y,toUUID:b=>yR(b,p),uuid:oc,validate:(b,v=!1)=>{if(!b||typeof b!="string")return!1;const P=a.consistentLength?b.length===s:b.length<=s,O=b.split("").every(I=>i.includes(I));return v===!1?P&&O:P&&O&&QS(yR(b,p))}};return Object.freeze(m),m};return r.constants=lc,r.uuid=oc,r.generate=()=>(cc||(cc=r(lc.flickrBase58).generate),cc()),r})();const Gs=QO(nC);function hR(){return Gs().uuid()}function fR(r){return r.rangeStart+Math.random()}function mR(r){const e=r.rangeEnd;return Math.random()*e}function TR(r){const e=r.rangeStart,t=r.rangeEnd;return Math.random()*(t-e)+e}function ER(r){return r.rangeStart&&r.rangeEnd?TR(r):r.rangeStart?fR(r):r.rangeEnd?mR(r):Math.random()}function bR(r){const e=r.rangeStart;return Math.random().toString(36).substring(e)}function RR(r){const e=r.rangeEnd;return Math.random().toString(36).substring(0,e)}function gR(r){const e=r.rangeStart,t=r.rangeEnd;return Math.random().toString(36).substring(e,t)}function vR(r){return r.rangeStart&&r.rangeEnd?gR(r):r.rangeStart?bR(r):r.rangeEnd?RR(r):Math.random().toString(36)}function IR(r){return Math.random()>=.5}function rC(r){if(!r||!r.autogeneration)return null;switch(r.autogeneration.type){case qe.CurrentDateAndTime:if(r.name===D.Date)return new Date;case qe.Random:{if(r.name===D.Date)return tR(r.autogeneration);if(r.name===D.Number)return ER(r.autogeneration);if(r.name===D.String)return vR(r.autogeneration);if(r.name===D.Boolean)return IR(r.autogeneration)}case qe.Unique:if(r.name===D.UUID)return hR();default:throw new Error(`Generating a ${r.autogeneration.type} value for a ${r.name} is not supported`)}}const Y="e7eb5382-3d99-44fd-972a-b8b1e819f6be",dc="global-user-variable-id",DR="last-executed-timestamp-variable-id",iC={id:"alternative-relational-database-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-data-type-id",entityType:n.DataType},aC={id:"alternative-relational-database-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",entityType:n.Property},sC={like:!1,inferred:!1,id:"alternative-relational-database-entity-identifier-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:{id:"alternative-relational-database-entity-identifier-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:D.String,value:null,parent:iC,autogeneration:{type:qe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:aC},$s={id:"alternative-relational-database-entity-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},oC={hidden:!1,required:!0,id:"alternative-relational-database-entity-identifier-property-id",name:"Identifier name",version:1,type:n.Property,private:!1,abstract:!1,implements:ls,static:!0,index:0,dataType:sC,description:"The name of the main database inside of the server instance where the data will be stored.",parent:$s};n.GenericReference,n.DataType;const lC={id:"alternative-relational-database-entity-username-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-username-property-id",entityType:n.Property},cC={like:!1,inferred:!1,id:"alternative-relational-database-entity-username-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:null,parent:lC},dC={hidden:!1,required:!0,id:"alternative-relational-database-entity-username-property-id",name:"Username",version:1,type:n.Property,private:!1,abstract:!1,implements:cs,static:!0,index:1,dataType:cC,description:"The username that will be used to connect to the database.",parent:$s};n.GenericReference,n.DataType;const uC={id:"alternative-relational-database-entity-password-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-password-property-id",entityType:n.Property},pC={like:!1,inferred:!1,id:"alternative-relational-database-entity-password-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:null,parent:uC},yC={hidden:!1,required:!0,id:"alternative-relational-database-entity-password-property-id",name:"Password",version:1,type:n.Property,private:!1,abstract:!1,implements:ds,static:!0,index:2,dataType:pC,description:"The password that will be used to connect to the database.",parent:$s},hC={id:"alternative-relational-database-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-data-type-id",entityType:n.DataType},fC={id:"alternative-relational-database-entity-min-size-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",entityType:n.Property},mC={like:!1,inferred:!1,id:"alternative-relational-database-entity-min-size-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Q,asType:!1,defaultValue:{id:"alternative-relational-database-entity-min-size-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:D.Number,value:6,parent:hC,autogeneration:null,valueAsType:null},parent:fC},TC={hidden:!1,required:!0,id:"alternative-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:1,type:n.Property,private:!1,abstract:!1,implements:us,static:!0,index:3,dataType:mC,description:"The minimum size of the database in GB.",parent:$s},EC={id:"alternative-relational-database-entity-parent-ref-id",type:n.GenericReference,entityId:Y,entityType:n.Project},PR={id:"alternative-relational-database-entity-id",type:n.CustomEntity,version:1,name:"Alternative relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[oC,dC,yC,TC],methods:[],abstractMethods:[],extends:[],implements:[Nn],x:0,y:0,parent:EC},bC={id:"animal-prototype-database-property-ref-id",type:n.GenericReference,entityId:"animal-prototype-database-property-id",entityType:n.Property},RC={id:"animal-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"animal-prototype-database-property-data-type-default-value-id",entityType:n.DataType},gC={like:!1,inferred:!1,id:"animal-prototype-database-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:Nn,asType:!1,defaultValue:{id:"animal-prototype-database-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,value:null,name:D.EntityTemplate,valueAsType:PR,autogeneration:null,parent:RC},parent:bC},vC={id:"animal-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:n.CustomEntity},IC={hidden:!1,required:!0,id:"animal-prototype-database-property-id",name:"Database",version:1,type:n.Property,private:!1,abstract:!1,implements:$i,static:!0,index:0,dataType:gC,description:"The database that the entity belongs to.",parent:vC},DC={type:n.GenericReference,id:"291e4d4f-01d8-40a0-90dc-5f1ac6636e9b",entityType:n.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},PC={like:!1,inferred:!1,id:"c1930577-9e79-48a6-8905-be24611015c1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:DC},AC={type:n.GenericReference,id:"e2b9e456-f2b3-4dc7-85a2-fbb68ed0c9c7",entityType:n.CustomEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},OC={hidden:!1,required:!0,type:n.Property,id:"5cb617b0-92be-4dbe-a007-49093368d94f",version:1,name:"Name",description:"The name of the animal",implements:null,static:!1,private:!1,index:0,dataType:PC,abstract:!1,parent:AC},SC={type:n.GenericReference,id:"abc565de-4c83-4936-bc48-4013bef213b8",entityType:n.Project,entityId:Y},CC={type:n.CustomEntity,id:"83eaa847-e62b-4192-84fb-3d8d6f5ea970",version:1,name:"Animal",description:"A living creature that is not human",abstract:!1,static:!1,abstractMethods:[],properties:[IC,OC],methods:[],extends:[],implements:[je],x:0,y:0,parent:SC},BC={id:"default-relational-database-entity-identifier-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-identifier-property-data-type-id",entityType:n.DataType},wC={id:"default-relational-database-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",entityType:n.Property},_C={like:!1,inferred:!1,id:"default-relational-database-entity-identifier-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:{id:"default-relational-database-entity-identifier-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:D.String,value:"main",parent:BC,autogeneration:{type:qe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:wC},ri={id:"default-relational-database-entity-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},NC={hidden:!1,required:!0,id:"default-relational-database-entity-identifier-property-id",name:"Identifier name",version:1,type:n.Property,private:!1,abstract:!1,implements:ls,static:!0,index:0,dataType:_C,description:"The name of the main database inside of the server instance where the data will be stored.",parent:ri};n.GenericReference,n.DataType;const MC={id:"default-relational-database-entity-username-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-username-property-id",entityType:n.Property},VC={id:"default-relational-database-entity-username-property-default-value-parent-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-username-property-data-type-id",entityType:n.DataType},LC={like:!1,inferred:!1,id:"default-relational-database-entity-username-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:{id:"default-relational-database-entity-username-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:D.String,value:"root",parent:VC,autogeneration:null,valueAsType:null},parent:MC},GC={hidden:!1,required:!0,id:"default-relational-database-entity-username-property-id",name:"Username",version:1,type:n.Property,private:!1,abstract:!1,implements:cs,static:!0,index:1,dataType:LC,description:"The username that will be used to connect to the database.",parent:ri};n.GenericReference,n.DataType;const $C={id:"default-relational-database-entity-password-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-password-property-id",entityType:n.Property},FC={id:"default-relational-database-entity-password-property-default-value-parent-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-password-property-data-type-id",entityType:n.DataType},UC={like:!1,inferred:!1,id:"default-relational-database-entity-password-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:{id:"default-relational-database-entity-password-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:D.String,value:"password",parent:FC,autogeneration:null,valueAsType:null},parent:$C},xC={hidden:!1,required:!0,id:"default-relational-database-entity-password-property-id",name:"Password",version:1,type:n.Property,private:!1,abstract:!1,implements:ds,static:!0,index:2,dataType:UC,description:"The password that will be used to connect to the database.",parent:ri},jC={id:"default-relational-database-entity-min-size-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-min-size-property-data-type-id",entityType:n.DataType},kC={id:"default-relational-database-entity-min-size-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",entityType:n.Property},qC={like:!1,inferred:!1,id:"default-relational-database-entity-min-size-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Q,asType:!1,defaultValue:{id:"default-relational-database-entity-min-size-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:D.Number,value:6,parent:jC,autogeneration:null,valueAsType:null},parent:kC},JC={hidden:!1,required:!0,id:"default-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:1,type:n.Property,private:!1,abstract:!1,implements:us,static:!0,index:3,dataType:qC,description:"The minimum size of the database in GB.",parent:ri},WC={id:"default-relational-database-entity-default-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-default-property-data-type-id",entityType:n.DataType},YC={id:"default-relational-database-entity-default-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-default-property-id",entityType:n.Property},HC={like:!1,inferred:!1,id:"default-relational-database-entity-default-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Q,asType:!1,defaultValue:{id:"default-relational-database-entity-default-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:D.Boolean,value:!0,parent:WC,autogeneration:null,valueAsType:null},parent:YC},zC={hidden:!0,required:!0,id:"default-relational-database-entity-default-property-id",name:"Default",version:1,type:n.Property,private:!1,abstract:!1,implements:Fl,static:!0,index:4,dataType:HC,description:"Whether this database is automatically picked by other entities as the default database.",parent:ri},ZC={id:"default-relational-database-entity-autoscaling-property-data-type-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-data-type-id",entityType:n.DataType},KC={id:"default-relational-database-entity-autoscaling-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",entityType:n.Property},XC={like:!1,inferred:!1,id:"default-relational-database-entity-autoscaling-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Q,asType:!1,defaultValue:{id:"default-relational-database-entity-autoscaling-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:D.Boolean,value:!0,parent:ZC,autogeneration:null,valueAsType:null},parent:KC},QC={hidden:!1,required:!0,id:"default-relational-database-entity-autoscaling-property-id",name:"Auto-scaling",version:1,type:n.Property,private:!1,abstract:!1,implements:Ul,static:!0,index:5,dataType:XC,description:"If true, this database will automatically scale up or down in memory size, based on the usage.s",parent:ri},eB={id:"default-relational-database-entity-parent-ref-id",type:n.GenericReference,entityId:Y,entityType:n.Project},uc={id:"default-relational-database-entity-id",type:n.CustomEntity,version:1,name:"Relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[zC,QC,NC,GC,xC,JC],methods:[],abstractMethods:[],extends:[],implements:[Nn],x:0,y:0,parent:eB},tB={id:"user-prototype-database-property-data-type-ref-id",type:n.GenericReference,entityId:"user-prototype-database-property-data-type-id",entityType:n.DataType},nB={id:"user-prototype-database-property-ref-id",type:n.GenericReference,entityId:"user-prototype-database-property-id",entityType:n.Property},rB={like:!1,inferred:!1,id:"user-prototype-database-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:Nn,asType:!1,defaultValue:{id:"user-prototype-database-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,value:null,name:D.EntityTemplate,valueAsType:uc,autogeneration:null,parent:tB},parent:nB},iB={id:"user-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:n.CustomEntity},aB={hidden:!1,required:!0,id:"user-prototype-database-property-id",name:"Database",version:1,type:n.Property,private:!1,abstract:!1,implements:$i,static:!0,index:0,dataType:rB,description:"The database that the entity belongs to.",parent:iB},sB={type:n.GenericReference,id:"user-prototype-parent-ref-id",entityType:n.Project,entityId:Y},pc={type:n.CustomEntity,id:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:1,name:"User",description:"A user of the application",implements:[je],abstract:!1,static:!1,abstractMethods:[],extends:[],properties:[aB],methods:[],x:0,y:0,parent:sB},oB={type:n.GenericReference,id:"person-date-of-birth-property-data-type-parent-ref-id",entityType:n.Property,entityId:"person-date-of-birth-property-id"},lB={like:!1,inferred:!1,id:"person-date-of-birth-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:un,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:oB},cB={type:n.GenericReference,id:"person-date-of-birth-property-parent-ref-id",entityType:n.CustomEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},dB={hidden:!1,required:!0,type:n.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,dataType:lB,abstract:!1,parent:cB},uB={type:n.GenericReference,id:"a2867827-2f8e-4c25-b18b-d91857d7f24e",entityType:n.Property,entityId:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7"},pB={like:!1,inferred:!1,id:"1d49f41b-17b9-4f48-87aa-3ce43498e5a9",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:uB},yB={type:n.GenericReference,id:"01cbe760-40a9-4f49-8e3d-194d2f57cb1e",entityType:n.CustomEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},hB={hidden:!1,required:!0,type:n.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,dataType:pB,abstract:!1,parent:yB},fB={type:n.GenericReference,id:"3542b22a-3a2f-41c6-876e-24c885572498",entityType:n.Project,entityId:Y},pt={type:n.CustomEntity,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:[hB,dB],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[pc],x:0,y:0,parent:fB},mB={type:n.GenericReference,id:"b59c80b7-b2e9-41e9-abcd-7c5652835efc",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},TB={type:n.GenericReference,id:"1190b5a2-f25e-46db-884d-8a3dd1a44d94",entityType:n.ReturnStatement,entityId:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e"},EB={type:n.GenericReference,id:"36c63126-7814-496f-a6cc-48662c2aabae",entityType:n.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},bB={type:n.GenericReference,id:"c567e55d-ec12-4e4e-958e-f07522892b4b",entityType:n.ReturnDeclaration,entityId:"9e070523-7e07-4100-8637-960a187f5f14"},RB={like:!1,inferred:!1,id:"3973c5a1-f0d8-49a0-a9a9-a0009bf3f0d8",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:pt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:bB},yc={isError:!1,id:"9e070523-7e07-4100-8637-960a187f5f14",type:n.ReturnDeclaration,version:1,name:"Output Account Owner",description:null,dataType:RB,implements:null,readsValue:EB,required:!0,index:0,parent:TB},gB={type:n.GenericReference,id:"567d923c-20da-4c1e-956d-962ea30c6d0b",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},vB={type:n.GenericReference,id:"da85e620-59f3-42ab-88c8-b38d33c2c833",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},AR={type:n.ReturnStatement,id:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e",version:1,outputs:[yc],calledByError:[],calledByEntry:[gB],calledBySuccess:[],throws:null,x:0,y:0,parent:vB},IB={type:n.GenericReference,id:"1c806bb7-4c25-4bad-963b-93dfbb7c8304",entityType:n.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},DB={like:!1,inferred:!1,id:"d90fcc18-642b-433c-8fcb-4094b9031cd5",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:pt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:IB},OR={id:"500dee3a-3435-4453-9699-0d053f646523",type:n.ArgumentDeclaration,version:1,name:"New Account Owner",description:null,dataType:DB,implements:null,required:!0,writesValues:[yc],index:0,parent:mB},PB={type:n.GenericReference,id:"83dceb60-f3c4-4085-824c-85f2003bfd27",entityType:n.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},SR={type:n.FunctionDeclaration,id:"36f29f96-c001-4b9a-b49c-83eff406a060",version:1,name:"Change owner of bank account",description:null,implements:null,inputs:[OR],calls:[AR],returnStatements:[AR],index:0,collapsed:!1,private:!1,x:0,y:0,parent:PB},AB={type:n.GenericReference,id:"adbaf302-ffa9-49b6-a3c6-83f9a75068e3",entityType:n.VariableDeclaration,entityId:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b"},OB={like:!1,inferred:!1,id:"79ee04aa-1ba4-4ae9-a406-ed45e5b03f7f",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:pt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:AB},SB={type:n.GenericReference,id:"55e212d1-f0ec-4bb6-acbe-60f741367daf",entityType:n.OutputMap,entityId:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4"},CB={type:n.GenericReference,id:"944e1171-3d9b-4559-9386-1d4974b15962",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},BB={id:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b",type:n.VariableDeclaration,version:1,name:"Output Account Owner",description:null,dataType:OB,readsValue:SB,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:CB},wB={type:n.GenericReference,id:"b89ebc83-52cf-4447-a5ae-62241f713079",entityType:n.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},_B={id:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4",type:n.OutputMap,version:1,declaration:yc,writesValues:[BB],index:0,parent:wB},NB={type:n.GenericReference,id:"c1b9e125-1aad-48b7-9687-95c57a6bc10d",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},MB={type:n.GenericReference,id:"d2deaa02-e164-4425-905c-6dee47eb4eac",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},VB={type:n.GenericReference,id:"1109a655-ac62-4110-a933-42a72106f4f0",entityType:n.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},LB={like:!1,inferred:!1,id:"7d9a1307-512e-42ec-9797-2f7229796b97",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:pt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:VB},GB={type:n.GenericReference,id:"bb61ebf7-57b3-4d14-905d-82ec907205b5",entityType:n.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},$B={type:n.GenericReference,id:"6b8c7bf2-9fc8-4ea4-9ec0-f41679d513b1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},FB={type:n.GenericReference,id:"6163d1a1-7a94-49b1-95bb-aecd8d6d335c",entityType:n.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},UB={type:n.GenericReference,id:"1f900f62-4bd2-4246-94aa-b8f5aad384fd",entityType:n.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},CR={id:"be8538be-e6f9-4b94-9314-a546003ebaa0",type:n.InputMap,version:1,declaration:OR,name:null,description:null,readsValue:UB,defaultValue:null,index:0,parent:FB},xB={type:n.VariableDeclaration,id:"8bea6986-8da2-487b-905d-2fb962db6728",version:1,name:"Changed Account Owner",description:null,dataType:LB,readsValue:GB,writesValues:[CR],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:$B},jB={type:n.FunctionCall,id:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e",version:1,declaration:SR,inputs:[CR],outputs:[_B],process:null,successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[NB],calledBySuccess:[],parent:MB,error:null,x:0,y:0},kB={type:n.GenericReference,id:"2d47aba1-a918-46a7-8db7-78809928654a",entityType:n.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},qB={like:!1,inferred:!1,id:"5583766c-e9a5-484c-8f43-f4b0a6a1876c",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:pt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:kB},JB={type:n.GenericReference,id:"3e2a81e4-55b2-49f5-94eb-39135e95c3d7",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},WB={id:"38f6b236-98ac-47b0-ab9c-d2f9610137b9",type:n.ArgumentDeclaration,version:1,description:null,name:"New Company Owner",dataType:qB,implements:null,required:!0,index:0,writesValues:[xB],parent:JB},YB={type:n.GenericReference,id:"30291b01-1b94-4d03-b434-dec122c2bc7d",entityType:n.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},HB={type:n.FunctionDeclaration,id:"15ee556d-681f-47de-a31f-16d4ba73cc4e",version:1,description:null,name:"Change Account Owner",inputs:[WB],collapsed:!0,returnStatements:[],calls:[jB],private:!1,index:0,implements:null,x:0,y:0,parent:YB},zB={type:n.GenericReference,id:"72c7ac0a-886e-4e10-b7ed-2f5a819a0233",entityType:n.Property,entityId:"b8f4656a-2b77-43ab-af51-7c32ddede044"},ZB={like:!1,inferred:!1,id:"c09dd282-73f6-4077-a467-b66db20b9fc6",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:zB},KB={type:n.GenericReference,id:"8a950024-512c-4580-81db-a705410aeb99",entityType:n.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},XB={hidden:!1,required:!0,type:n.Property,id:"b8f4656a-2b77-43ab-af51-7c32ddede044",version:1,name:"Account number",description:null,private:!0,implements:null,static:!1,index:0,dataType:ZB,abstract:!1,parent:KB},QB={type:n.GenericReference,id:"b6704b6c-c3bd-49d0-8ebc-82d03e726cbb",entityType:n.Property,entityId:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea"},ew={like:!1,inferred:!1,id:"c03e0b0a-88ab-401a-8833-4806738bdc37",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:pt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:QB},tw={type:n.GenericReference,id:"1ef999a7-e9ed-406a-866e-e58277fc985b",entityType:n.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},nw={hidden:!1,required:!0,type:n.Property,id:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea",version:1,description:null,name:"Account Owner",index:1,dataType:ew,implements:null,static:!1,private:!0,abstract:!1,parent:tw},rw={type:n.GenericReference,id:"d41d7f41-98b8-4f67-be92-c349fdda5156",entityType:n.Project,entityId:Y},ii={type:n.CustomEntity,id:"506946aa-30da-48e6-918f-ffd9eac58813",version:1,name:"Bank Account",description:null,abstract:!1,static:!1,abstractMethods:[],properties:[XB,nw],methods:[SR,HB],extends:[],implements:[je],x:0,y:0,parent:rw},ia="bitcoin-api-response-id",BR="time-property-id",wR="disclaimer-property-id",_R="chart-name-property-id",NR="bpi-property-id",Fs="bpi-entity-id",MR="usd-property-id",VR="gbp-property-id",LR="eur-property-id",ai="currency-entity-id",GR="currency-code-property-id",$R="currency-symbol-property-id",FR="currency-rate-property-id",UR="currency-description-property-id",xR="currency-rate-number-property-id",iw={type:n.GenericReference,id:"code-property-data-type-parent-ref-id",entityType:n.Property,entityId:GR},aw={like:!1,inferred:!1,id:"code-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:_n,isList:!1,asType:!1,isNullable:!1,defaultValue:null,options:["USD","GBP","EUR"],constant:!1,parent:iw},sw={type:n.GenericReference,id:"code-property-parent-ref-id",entityType:n.CustomEntity,entityId:ai},ow={hidden:!1,required:!0,type:n.Property,id:GR,version:1,name:"code",description:null,dataType:aw,index:0,implements:null,static:!1,private:!1,abstract:!1,parent:sw},lw={type:n.GenericReference,id:"symbol-property-data-type-parent-ref-id",entityType:n.Property,entityId:$R},cw={like:!1,inferred:!1,id:"symbol-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:_n,isList:!1,asType:!1,isNullable:!1,defaultValue:null,options:["&#36;","&pound;","&euro;"],constant:!1,parent:lw},dw={type:n.GenericReference,id:"symbol-property-parent-ref-id",entityType:n.CustomEntity,entityId:ai},uw={hidden:!1,required:!0,type:n.Property,id:$R,version:1,name:"symbol",description:null,index:0,dataType:cw,implements:null,static:!1,private:!1,abstract:!1,parent:dw},pw={type:n.GenericReference,id:"rate-property-data-type-parent-ref-id",entityType:n.Property,entityId:FR},yw={like:!1,inferred:!1,id:"rate-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:pw},hw={type:n.GenericReference,id:"rate-property-parent-ref-id",entityType:n.CustomEntity,entityId:ai},fw={hidden:!1,required:!0,type:n.Property,id:FR,version:1,name:"rate",description:null,index:0,dataType:yw,implements:null,static:!1,private:!1,abstract:!1,parent:hw},mw={type:n.GenericReference,id:"description-property-data-type-parent-ref-id",entityType:n.Property,entityId:UR},Tw={like:!1,inferred:!1,id:"description-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:mw},Ew={type:n.GenericReference,id:"description-property-parent-ref-id",entityType:n.CustomEntity,entityId:ai},bw={hidden:!1,required:!0,type:n.Property,id:UR,version:1,name:"description",description:null,dataType:Tw,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:Ew},Rw={type:n.GenericReference,id:"rate-number-property-data-type-parent-ref-id",entityType:n.Property,entityId:xR},gw={like:!1,inferred:!1,id:"rate-number-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Rw},vw={type:n.GenericReference,id:"rate-number-property-parent-ref-id",entityType:n.CustomEntity,entityId:ai},Iw={hidden:!1,required:!0,type:n.Property,id:xR,version:1,name:"rate_float",description:null,dataType:gw,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:vw},Dw={type:n.GenericReference,id:"currency-prototype-parent-ref-id",entityType:n.Project,entityId:Y},Us={type:n.CustomEntity,id:ai,version:1,name:"Currency",description:"This entity describes a currency in the Bitcoin Price Index.",properties:[ow,uw,fw,bw,Iw],static:!1,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:Dw},Pw={type:n.GenericReference,id:"usd-property-data-type-parent-ref-id",entityType:n.Property,entityId:MR},Aw={like:!1,inferred:!1,id:"usd-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Us,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Pw},Ow={type:n.GenericReference,id:"usd-property-parent-ref-id",entityType:n.CustomEntity,entityId:Fs},Sw={hidden:!1,required:!0,id:MR,type:n.Property,version:1,name:"USD",description:null,index:0,dataType:Aw,implements:null,static:!1,private:!1,abstract:!1,parent:Ow},Cw={type:n.GenericReference,id:"gbp-property-data-type-parent-ref-id",entityType:n.Property,entityId:VR},Bw={like:!1,inferred:!1,id:"gbp-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Us,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Cw},ww={type:n.GenericReference,id:"gbp-property-parent-ref-id",entityType:n.CustomEntity,entityId:Fs},_w={hidden:!1,required:!0,id:VR,type:n.Property,version:1,name:"GBP",description:null,index:0,dataType:Bw,implements:null,static:!1,private:!1,abstract:!1,parent:ww},Nw={type:n.GenericReference,id:"eur-property-data-type-parent-ref-id",entityType:n.Property,entityId:LR},Mw={like:!1,inferred:!1,id:"eur-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Us,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Nw},Vw={type:n.GenericReference,id:"eur-property-parent-ref-id",entityType:n.CustomEntity,entityId:Fs},Lw={hidden:!1,required:!0,id:LR,type:n.Property,version:1,name:"EUR",description:null,implements:null,static:!1,index:0,dataType:Mw,private:!1,abstract:!1,parent:Vw},Gw={type:n.GenericReference,id:"bpi-prototype-parent-ref-id",entityType:n.Project,entityId:Y},jR={type:n.CustomEntity,id:Fs,version:1,name:"BPI",description:"The Bitcoin Price Index",properties:[Sw,_w,Lw],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:Gw},$w={type:n.GenericReference,id:"time-property-data-type-parent-ref-id",entityType:n.Property,entityId:BR},Fw={like:!1,inferred:!1,id:"time-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Qo,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:$w},Uw={type:n.GenericReference,id:"time-property-parent-ref-id",entityType:n.CustomEntity,entityId:ia},xw={hidden:!1,required:!0,type:n.Property,id:BR,version:1,name:"time",description:null,index:0,dataType:Fw,implements:null,static:!1,private:!1,abstract:!1,parent:Uw},jw={type:n.GenericReference,id:"disclaimer-property-data-type-parent-ref-id",entityType:n.Property,entityId:wR},kw={like:!1,inferred:!1,id:"disclaimer-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:jw},qw={type:n.GenericReference,id:"disclaimer-property-parent-ref-id",entityType:n.CustomEntity,entityId:ia},Jw={hidden:!1,required:!0,type:n.Property,id:wR,version:1,name:"disclaimer",description:null,index:0,dataType:kw,implements:null,static:!1,private:!1,abstract:!1,parent:qw},Ww={type:n.GenericReference,id:"chart-name-property-data-type-parent-ref-id",entityType:n.Property,entityId:_R},Yw={like:!1,inferred:!1,id:"chart-name-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Ww},Hw={type:n.GenericReference,id:"chart-name-property-parent-ref-id",entityType:n.CustomEntity,entityId:ia},zw={hidden:!1,required:!0,type:n.Property,id:_R,version:1,name:"chartName",description:null,index:0,dataType:Yw,implements:null,static:!1,private:!1,abstract:!1,parent:Hw},Zw={type:n.GenericReference,id:"bpi-property-data-type-parent-ref-id",entityType:n.Property,entityId:NR},Kw={like:!1,inferred:!1,id:"bpi-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:jR,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Zw},Xw={type:n.GenericReference,id:"bpi-property-parent-ref-id",entityType:n.CustomEntity,entityId:ia},Qw={hidden:!1,required:!0,type:n.Property,id:NR,version:1,name:"bpi",description:null,implements:null,index:0,dataType:Kw,static:!1,private:!1,abstract:!1,parent:Xw},e_={type:n.GenericReference,id:"bitcoin-api-response-parent-ref-id",entityType:n.Project,entityId:Y},kR={type:n.CustomEntity,id:ia,version:1,name:"Bitcoin API Response type",description:"The type of the data structure response from the Bitcoin API call",properties:[xw,Jw,zw,Qw],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:e_},t_={type:n.GenericReference,id:"eefa0147-f873-484b-b4f3-9e6493aab183",entityType:n.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},n_={like:!1,inferred:!1,id:"b9f35112-dcb2-4b7c-8fb9-f196b3fa37f9",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:pt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:t_},r_={type:n.GenericReference,id:"128770d6-5e3a-4aff-bca0-ad1f32ebefa8",entityType:n.ReturnStatement,entityId:"e4e05975-c277-471a-b869-f0aed316045c"},i_={type:n.GenericReference,id:"0be84bf9-6421-42b9-980f-6a03f30cb809",entityType:n.ReturnDeclaration,entityId:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},a_={like:!1,inferred:!1,id:"43daa02a-237b-4b7c-a6e9-2b8c167f6e22",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:pt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:i_},s_={type:n.GenericReference,id:"ad380383-4a47-43da-968e-75a2d603b230",entityType:n.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},qR={isError:!1,id:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.ReturnDeclaration,version:1,name:"New Company Owner",description:"The new owner of the company",implements:null,dataType:a_,readsValue:s_,required:!0,index:0,parent:r_},o_={type:n.GenericReference,id:"4f24dc27-59a1-49bf-abcc-7d72b00926e4",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},l_={id:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",type:n.ArgumentDeclaration,version:1,name:"New Company Owner",description:null,implements:null,dataType:n_,writesValues:[qR],required:!0,index:0,parent:o_},c_={type:n.GenericReference,id:"5c9a02f0-d2cf-4efc-828e-467f33a74dd3",entityType:n.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},d_={type:n.GenericReference,id:"2ff8f3da-e0c5-4f0f-b688-2c051c588786",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},u_={type:n.GenericReference,id:"195ae28c-159b-42de-80b1-2ebb8be3619f",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},JR={type:n.ReturnStatement,id:"e4e05975-c277-471a-b869-f0aed316045c",version:1,outputs:[qR],calledByError:[],calledByEntry:[d_],calledBySuccess:[],throws:null,x:0,y:0,parent:u_},p_={type:n.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:[l_],calls:[JR],index:0,collapsed:!1,implements:null,returnStatements:[JR],private:!1,x:0,y:0,parent:c_},y_={type:n.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},h_={type:n.GenericReference,id:"29c4e3e0-1b66-4075-b559-45b27c5cf356",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},f_={type:n.GenericReference,id:"b1289358-b185-455d-8f58-7791b15cd52a",entityType:n.ReturnStatement,entityId:"9690cd1d-ea35-4e83-823d-0c7310265fee"},m_={type:n.GenericReference,id:"d847bb49-8789-4550-bb2d-e2d551993b28",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},T_={type:n.GenericReference,id:"06535500-c37c-4915-8398-1d4e184fa5e7",entityType:n.ReturnDeclaration,entityId:"e7a35277-a0c4-46d5-aca2-bddd0c26e931"},E_={like:!1,inferred:!1,id:"d358dd91-35f7-4095-b728-3fb3c71dbc05",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:wn,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:T_},hc={isError:!1,id:"e7a35277-a0c4-46d5-aca2-bddd0c26e931",type:n.ReturnDeclaration,version:1,name:"Is name registered",description:"Whether the company name is already registered",dataType:E_,implements:null,readsValue:m_,required:!0,index:0,parent:f_},b_={type:n.GenericReference,id:"gov-company-registry-return-statement-called-by-success-ref-id",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},fc={type:n.ReturnStatement,id:"9690cd1d-ea35-4e83-823d-0c7310265fee",version:1,outputs:[hc],calledByError:[],calledByEntry:[],calledBySuccess:[y_,b_],throws:null,x:0,y:0,parent:h_},R_={type:n.GenericReference,id:"b3126414-4c9b-495f-901e-59f5073c8d67",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},g_={type:n.GenericReference,id:"35115c48-618b-411b-a290-d746d22fdd10",entityType:n.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},WR={id:"a0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:n.InputMap,version:1,declaration:Tl,name:null,description:null,readsValue:g_,defaultValue:null,parent:R_,index:2},v_={type:n.GenericReference,id:"14f46eae-04a5-47d1-9c7f-28fb09b84d1d",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},I_={like:!1,inferred:!1,id:"990bd5d1-07ea-4253-acc1-d03bedd22a38",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:wn,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:v_},D_={type:n.GenericReference,id:"e4c3542a-8fb0-4b72-8d6e-3fdff812dd67",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},P_={type:n.GenericReference,id:"825f9f60-22a8-4cc6-9055-d7333f8e92f4",entityType:n.OutputMap,entityId:"8f30d787-9459-4d8d-98a2-b46fbc2006d5"},A_={type:n.GenericReference,id:"is-company-name-registered-var-called-by-ref",entityType:n.Operation,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},YR={type:n.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",dataType:I_,readsValue:P_,writesValues:[hc],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[A_],successCalls:[fc],errorCalls:[],internalCalls:[],x:0,y:0,parent:D_},O_={type:n.GenericReference,id:"1aba021e-48ef-44ac-93d0-eaecac5895da",entityType:n.InputMap,entityId:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a"},S_={type:n.GenericReference,id:"dffae7e0-0a5c-4c14-8ed2-8d680b4c4c86",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},C_={type:n.InputMap,id:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a",version:1,declaration:za,name:null,description:null,readsValue:null,defaultValue:{id:"gov-http-request-url-argument-default-value-id",type:n.PrimitiveValue,version:1,value:"https://api.publicapis.org/entries",name:D.String,valueAsType:null,parent:O_,autogeneration:null},index:1,parent:S_},B_={type:n.GenericReference,id:"64ae61f5-ace7-401b-926d-25f852daa60e",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},w_={id:"8f30d787-9459-4d8d-98a2-b46fbc2006d5",type:n.OutputMap,version:1,declaration:es,index:2,writesValues:[YR],parent:B_},__={type:n.GenericReference,id:"62a1a086-caea-4270-9c9f-a1695503e745",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},N_={id:"48cf7654-8f3e-4fcd-abc6-740876c310a0",type:n.InputMap,version:1,declaration:Ha,name:null,description:null,readsValue:null,index:0,defaultValue:null,parent:__},M_={type:n.GenericReference,id:"b0c9c79f-f525-428d-99e7-087d3237ad62",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},V_={id:"2c1dc406-4b71-4023-87b2-abede3a111d2",type:n.InputMap,version:1,name:null,description:null,declaration:Za,index:3,readsValue:null,defaultValue:null,parent:M_},L_={type:n.GenericReference,id:"9887d6c9-d75b-4c97-b722-e2e60945ea20",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},G_={id:"3fef94b2-0278-43ae-b0c5-bc7083f0a111",type:n.InputMap,version:1,declaration:Ka,name:null,description:null,readsValue:null,index:4,defaultValue:null,parent:L_},$_={type:n.GenericReference,id:"561275b6-5056-45d8-bf7d-8abaa4645593",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},F_={id:"3efe20a7-4d63-411e-89ef-63e277f48d66",type:n.OutputMap,version:1,declaration:Qa,index:1,writesValues:[],parent:$_},U_={type:n.GenericReference,id:"3170ccc2-13de-4bfc-802a-a643be41cd42",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},x_={id:"40d34323-d7e6-440a-8016-67c05a3b66dd",type:n.OutputMap,version:1,declaration:Xa,index:0,writesValues:[],parent:U_},j_={type:n.GenericReference,id:"7432fa82-f574-4c54-a8fa-4cc4376da3d5",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},k_={type:n.GenericReference,id:"8f518502-9eea-462c-8753-8bc3bf3e29a9",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},q_={type:n.GenericReference,id:"123b8f18-79d9-4166-a5f6-78ec4b461680",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},J_={type:n.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",entityType:n.FunctionCall,entityId:"abb5d456-ee85-4800-bdd9-d409415f60d7"},W_={type:n.GenericReference,id:"a375eedf-4811-41aa-a998-4897c69c46b9",entityType:n.ReturnDeclaration,entityId:"024a9b77-c1cd-4b67-b3ba-1935046b590d"},Y_={like:!1,inferred:!1,id:"767cc5ed-20ec-4fd1-89b1-c8d19daa87d1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ze,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:W_},H_={type:n.GenericReference,id:"e64b0c23-129d-4d74-8ab4-eec60e1e5b9b",entityType:n.ReturnStatement,entityId:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3"},HR={isError:!0,id:"024a9b77-c1cd-4b67-b3ba-1935046b590d",type:n.ReturnDeclaration,version:1,name:"Error",description:"The error that occurred during the HTTP request to the government company registry",dataType:Y_,implements:null,required:!0,readsValue:null,index:0,parent:H_},z_={type:n.ReturnStatement,id:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3",version:1,outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[J_],throws:HR,x:0,y:0,parent:q_},Z_={type:n.GenericReference,id:"323814fb-9723-49ef-bbba-f882384f18e4",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},K_={id:"2f63f7ba-0ff0-458a-92bc-65d1dd4df8c3",type:n.OutputMap,declaration:El,version:1,writesValues:[HR],index:0,parentRelationType:Jr.Error,parent:Z_},X_={type:n.Operation,id:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7",version:1,declaration:_i,inputs:[N_,C_,WR,V_,G_],outputs:[x_,F_,w_],process:null,calledByError:[],calledByEntry:[j_],calledBySuccess:[],successCalls:[fc,YR],errorCalls:[z_],error:K_,x:0,y:0,parent:k_},Q_={type:n.GenericReference,id:"597b8aa2-f6f2-4f7d-bbb9-b703d02de96a",entityType:n.InputMap,entityId:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a"},eN={type:n.GenericReference,id:"546d99b3-28c4-4186-93a0-ac53c1565e07",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},tN={id:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:n.InputMap,version:1,declaration:Ja,name:null,description:null,readsValue:null,defaultValue:{id:"base-query-string-map-default-value-id",type:n.PrimitiveValue,version:1,value:"?name=",name:D.String,parent:Q_,valueAsType:null,autogeneration:null},index:0,parent:eN},nN={type:n.GenericReference,id:"6a56fb22-82e1-47c9-bf85-41c4e5986c74",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},rN={type:n.GenericReference,id:"191c6a6d-9bcb-441e-bf98-de0da96f5f3a",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},iN={type:n.GenericReference,id:"d8fcbb76-dae2-40cf-847a-02364721b387",entityType:n.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},aN={like:!1,inferred:!1,id:"6a70c42b-024a-47c6-8a9d-af52be9c9b9a",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:iN},sN={type:n.GenericReference,id:"2282e2c0-ed9e-4c7b-86fc-1a364fa0fdb8",entityType:n.OutputMap,entityId:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5"},oN={type:n.GenericReference,id:"assembled-query-string-called-by-ref",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},zR={type:n.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",dataType:aN,readsValue:sN,writesValues:[WR],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[oN],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:rN},lN={id:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5",type:n.OutputMap,version:1,writesValues:[zR],declaration:Bi,index:0,parent:nN},cN={type:n.GenericReference,id:"a1b48e7c-0301-4747-b4dd-b5af79956f7f",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},dN={type:n.GenericReference,id:"487c9235-be95-4c96-b9b5-2714b374a277",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},uN={type:n.GenericReference,id:"f6471f4f-b269-46fa-80ec-885e87a449c2",entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69",entityType:n.ArgumentDeclaration},pN={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},ZR={id:"08f36e2b-bad2-425c-8129-93560bec8488",version:1,type:n.InputMap,declaration:Wa,name:null,description:null,readsValue:uN,defaultValue:null,index:1,parent:pN},yN={type:n.Operation,id:"8f2094c0-e27e-465e-9280-112da0de9019",declaration:wi,version:1,inputs:[ZR,tN],outputs:[lN],process:null,calledByError:[],calledByEntry:[cN],calledBySuccess:[],successCalls:[zR],errorCalls:[],error:null,x:0,y:0,parent:dN},hN={type:n.GenericReference,id:"c2e0e9b4-aa46-4974-bf8a-886b737b12fb",entityType:n.ArgumentDeclaration,entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69"},fN={like:!1,inferred:!1,id:"a4279518-3bf3-44b7-a2ac-65142ca37f1c",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:hN},mN={type:n.GenericReference,id:"dc273f24-164b-4943-82f9-589b237141e2",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},KR={id:"a4106e8e-ec4f-4633-a636-09ae73135f69",type:n.ArgumentDeclaration,version:1,name:"Company Name to check",description:"The name of the company to check in the government registry",dataType:fN,implements:null,required:!1,writesValues:[ZR],index:0,parent:mN},TN={type:n.GenericReference,id:"2178a10c-1cc0-4dad-97c3-0941be6c9738",entityType:n.Project,entityId:Y},XR={type:n.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:[KR],calls:[yN,X_],returnStatements:[fc],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:TN},EN={type:n.GenericReference,id:"4d66c53c-f0f7-496a-9955-1e6c8533c5e0",entityType:n.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},bN={type:n.GenericReference,id:"6fa0c8e0-d104-4b4d-a035-d4f6e0c49f09",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},RN={type:n.GenericReference,id:"146408d5-5336-4877-941a-777dd5871926",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},gN={type:n.GenericReference,id:"34ae8f8c-548d-4654-984a-6f36affdaf49",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},QR={id:"69b1215d-9ebf-4274-b9cb-d4a5888f5122",version:1,type:n.InputMap,declaration:KR,name:null,description:null,readsValue:RN,defaultValue:null,index:0,parent:gN},vN={type:n.GenericReference,id:"07540a94-dda1-40b3-8452-f209bdc87b88",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},IN={type:n.GenericReference,id:"eaddf12a-a995-429e-90a0-13bf06efeb28",entityType:n.VariableDeclaration,entityId:"faaf3bf6-917d-40d7-aee6-5164f6646c4b"},DN={like:!1,inferred:!1,id:"7fdaf943-3ffb-48e0-b766-b86cc24090cf",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:wn,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:IN},PN={type:n.GenericReference,id:"030fb5c5-af4d-4c85-8cf0-e99edd50d2bd",entityType:n.OutputMap,entityId:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},AN={type:n.GenericReference,id:"a8b618e9-c68c-48c1-8bd6-ef47c87d699e",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},ON={type:n.GenericReference,id:"is-company-name-valid-var-called-by-ref",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},eg={type:n.VariableDeclaration,id:"faaf3bf6-917d-40d7-aee6-5164f6646c4b",version:1,name:"Is name valid",description:"Whether the company name is valid",dataType:DN,readsValue:PN,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[ON],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:AN},SN={id:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.OutputMap,version:1,declaration:hc,writesValues:[eg],index:0,parent:vN},CN={type:n.FunctionCall,id:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",version:1,declaration:XR,inputs:[QR],outputs:[SN],calledByError:[],calledByEntry:[],process:null,calledBySuccess:[EN],successCalls:[eg],errorCalls:[],error:null,x:0,y:0,parent:bN},BN={type:n.GenericReference,id:"9d0b87b4-bfed-4e02-9e84-6831c21feae2",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},wN={type:n.GenericReference,id:"74345f4f-e80d-48be-adff-d12fcea25bec",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},_N={type:n.GenericReference,id:"b39279ea-969a-4efb-a9ec-353bfd13db65",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},NN={type:n.GenericReference,id:"549db613-f225-4c5b-9634-7d096717f0ff",entityType:n.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},tg={id:"358e242c-7448-442e-ab8b-fd7fa119ea71",version:1,type:n.InputMap,declaration:lr.inputs[0],name:null,description:null,readsValue:_N,defaultValue:null,index:0,parent:NN},MN={type:n.Condition,id:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b",version:1,declaration:lr,inputs:[tg],calledByError:[],calledByEntry:[BN],calledBySuccess:[],successCalls:[CN],errorCalls:[],x:0,y:0,parent:wN},VN={type:n.GenericReference,id:"43ba1e25-f805-488f-8ae8-c58bb6215b2f",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},LN={type:n.GenericReference,id:"eb091bed-507f-4a1e-93b5-7cd2fccfe002",entityType:n.VariableDeclaration,entityId:"9c928995-0dd5-4f97-9962-56b343bc8a45"},GN={like:!1,inferred:!1,id:"d64152ea-831f-4426-9506-a39bfa170513",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ii,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:LN},$N={type:n.GenericReference,id:"7e79c29f-f7bd-441a-a77e-c627604dae94",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},FN={type:n.GenericReference,id:"8995ce5f-d5cf-4341-a8b1-5c046cc78b89",entityType:n.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},UN={type:n.GenericReference,id:"new-company-bank-account-var-decl-1-called-by-ref",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},ng={type:n.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",dataType:GN,readsValue:FN,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[UN],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:$N},xN={type:n.GenericReference,id:"9a4887bf-d50d-43e4-bdd5-a5262f65f04b",entityType:n.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},jN={like:!1,inferred:!1,id:"ae148c06-3143-49e9-9614-c3aca3f6fa7b",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ii,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:xN},kN={id:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071",type:n.ArgumentDeclaration,version:1,name:"New bank account",description:"The new bank account of the company",dataType:jN,implements:null,required:!0,index:1,writesValues:[ng],parent:VN},qN={type:n.GenericReference,id:"caec9cf8-3133-48d4-a390-114fa71b2933",entityType:n.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},JN={type:n.GenericReference,id:"cebcbad8-ca87-4c4b-be8a-312293d49892",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},WN={type:n.GenericReference,id:"7b8ccfe5-f9cd-4776-a19b-80c689bbe3df",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},YN={like:!1,inferred:!1,id:"2a6b4703-ac8d-4d25-8abd-48a115577fec",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:WN},HN={id:"c6cf620c-1eee-4919-8578-1a0b6c088551",type:n.ArgumentDeclaration,version:1,name:"New company name",description:null,dataType:YN,implements:null,required:!0,index:0,writesValues:[tg,QR],parent:JN},zN={type:n.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:[HN,kN],calls:[MN,ng],index:1,private:!1,implements:null,x:0,y:0,parent:qN},ZN={type:n.GenericReference,id:"employee-manager-property-data-type-entity-ref-id",entityType:n.CustomEntity,entityId:"employee-entity-id"},KN={type:n.GenericReference,id:"employee-manager-property-data-type-parent-ref-id",entityType:n.Property,entityId:"employee-manager-property-id"},XN={like:!1,inferred:!1,id:"employee-manager-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ZN,isList:!1,isNullable:!0,asType:!1,defaultValue:null,constant:!1,parent:KN},QN={type:n.GenericReference,id:"employee-manager-property-parent-ref-id",entityType:n.CustomEntity,entityId:"employee-entity-id"},eM={hidden:!1,required:!0,type:n.Property,id:"employee-manager-property-id",version:1,name:"Manager",description:"The manager of the employee",index:0,implements:null,private:!1,static:!1,dataType:XN,abstract:!1,parent:QN},tM={type:n.GenericReference,id:"employee-start-date-property-data-type-parent-ref-id",entityType:n.Property,entityId:"employee-start-date-property-id"},nM={like:!1,inferred:!1,id:"employee-start-date-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:un,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:tM},rM={type:n.GenericReference,id:"employee-start-date-property-parent-ref-id",entityType:n.CustomEntity,entityId:"employee-entity-id"},iM={hidden:!1,required:!0,type:n.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,implements:null,dataType:nM,abstract:!1,parent:rM},aM={type:n.GenericReference,id:"employee-department-property-ref-id",entityType:n.Property,entityId:"employee-department-property-id"},sM={like:!1,inferred:!1,id:"employee-department-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:_n,isList:!1,isNullable:!1,asType:!1,options:["Human Resources","Finance","IT","Sales","Marketing","Customer Service","Logistics","Product"],defaultValue:null,constant:!1,parent:aM},oM={type:n.GenericReference,id:"employee-department-property-parent-ref-id",entityType:n.CustomEntity,entityId:"employee-entity-id"},lM={hidden:!1,required:!0,type:n.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,implements:null,static:!1,private:!1,dataType:sM,abstract:!1,parent:oM},cM={type:n.GenericReference,id:"employee-prototype-parent-ref-id",entityType:n.Project,entityId:Y},Vt={type:n.CustomEntity,id:"employee-entity-id",version:1,name:"Employee",description:"A entity that represents an employee in the company",properties:[lM,iM,eM],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[pt],x:0,y:0,parent:cM},dM={type:n.GenericReference,id:"dec8fbfe-9124-41fd-9f1c-5b2f07cfd6ba",entityType:n.Property,entityId:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd"},uM={like:!1,inferred:!1,id:"bc0b8979-6c43-4d47-a712-6742b89e3c00",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:dM},pM={type:n.GenericReference,id:"4f8c0a05-466e-4672-b4c4-6bd408c0be9a",entityType:n.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},yM={hidden:!1,required:!0,type:n.Property,id:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd",version:1,name:"Company Name",private:!1,static:!1,description:"The name of the company",index:0,implements:null,dataType:uM,abstract:!1,parent:pM},hM={type:n.GenericReference,id:"95173fe0-a6e6-443c-94f3-f7c5cf171fcf",entityType:n.Property,entityId:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3"},fM={like:!1,inferred:!1,id:"ddbb6f5c-0cf4-41fb-83b3-b6c47c0e338d",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ii,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:hM},mM={type:n.GenericReference,id:"6a9a0b72-a05d-4169-b3f3-5afb01e8d0df",entityType:n.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},mc={hidden:!1,required:!0,type:n.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,dataType:fM,abstract:!1,parent:mM},TM={type:n.GenericReference,id:"62892cc6-d227-4088-90d3-ae7c15ed4af4",entityType:n.Property,entityId:"19a31727-1fba-40a5-be25-18e0f149d5cb"},EM={like:!1,inferred:!1,id:"1f7629df-dc29-4c89-8369-c6d043e97a9e",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:pt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:TM},bM={type:n.GenericReference,id:"89384206-fd5a-4f0a-849c-f777473e5773",entityType:n.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},RM={hidden:!1,required:!0,type:n.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,dataType:EM,private:!0,abstract:!1,parent:bM},gM={type:n.GenericReference,id:"4d2ffb6c-5f38-436e-8339-fb9878ac2b5e",entityType:n.Property,entityId:"f8310850-a87e-405c-b182-4f1d5fa49240"},vM={like:!1,inferred:!1,id:"ad44250b-40c2-48f7-a480-381fa938f562",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Vt,isList:!0,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:gM},IM={type:n.GenericReference,id:"aa5d4eee-6fac-4e72-bf21-9c8750024541",entityType:n.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},DM={hidden:!1,required:!0,type:n.Property,id:"f8310850-a87e-405c-b182-4f1d5fa49240",version:1,name:"Employees",description:null,index:3,dataType:vM,implements:null,private:!0,static:!1,abstract:!1,parent:IM},PM={type:n.GenericReference,id:"e3c03b6b-2ea0-4d99-865d-5e6a348672d0",entityType:n.Project,entityId:Y},Lt={type:n.CustomEntity,id:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:1,name:"Company",description:null,properties:[yM,mc,RM,DM],static:!1,abstract:!1,abstractMethods:[],methods:[p_,zN],extends:[],implements:[je],x:0,y:0,parent:PM},AM={type:n.GenericReference,id:"ffcad334-138d-4b67-8fb3-5f0e6f5fefbd",entityType:n.Project,entityId:Y},Tc={type:n.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:AM};n.GenericReference,n.DataType;const OM={id:"cron-job-entity-expression-property-ref-id",type:n.GenericReference,entityId:"cron-job-entity-expression-property-id",entityType:n.Property},SM={like:!1,inferred:!1,id:"cron-job-entity-expression-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:null,parent:OM},CM={id:"cron-job-entity-ref-id",type:n.GenericReference,entityId:"cron-job-entity-id",entityType:n.CustomEntity},BM={hidden:!1,required:!0,id:"cron-job-entity-expression-property-id",type:n.Property,version:1,name:"Cron expression",description:"The cron expression that defines when the cron job should be triggered",dataType:SM,implements:null,static:!0,private:!1,abstract:!1,index:0,parent:CM},wM={id:"cron-job-entity-trigger-show-popup-func-call-called-by-ref-one-id",type:n.GenericReference,entityId:"show-popup-func-decl-id",entityType:n.FunctionDeclaration},_M={id:"cron-job-entity-trigger-show-popup-func-call-parent-ref-id",type:n.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",entityType:n.FunctionDeclaration},NM={id:"cron-job-entity-trigger-show-popup-func-call-id",version:1,type:n.FunctionCall,declaration:Tc,inputs:[],outputs:[],process:null,successCalls:[],calledByError:[],calledByEntry:[wM],calledBySuccess:[],errorCalls:[],error:null,x:0,y:0,parent:_M},MM={id:"cron-job-entity-trigger-func-decl-parent-ref-id",type:n.GenericReference,entityId:"cron-job-entity-id",entityType:n.CustomEntity},VM={id:"cron-job-entity-trigger-func-decl-id",version:1,type:n.FunctionDeclaration,name:"Scheduled trigger",description:"The function that is called when the cron job is triggered",inputs:[],private:!1,implements:jl,calls:[NM],collapsed:!1,returnStatements:[],index:0,x:0,y:0,parent:MM},LM={id:"cron-job-entity-parent-ref-id",type:n.GenericReference,entityId:Y,entityType:n.Project},GM={id:"cron-job-entity-id",version:1,type:n.CustomEntity,name:"Run at 12pm on Christmas day",description:"A cron job that runs at 12pm on Christmas day",properties:[BM],static:!0,abstract:!1,abstractMethods:[],extends:[kl],implements:[],methods:[VM],x:0,y:0,parent:LM},$M={type:n.GenericReference,id:"52dbd85c-48b1-462a-8205-2437d6fb1cb4",entityType:n.Project,entityId:Y},FM={type:n.CustomEntity,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:[os],x:0,y:0,parent:$M},rg="f558fbf8-67de-4545-9804-6ae621e0b2d4",UM={id:"getCompanyByIdEndpointPathParamsVariableDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"getCompanyByIdEndpointPathParamsVariableDataType"},xM={id:"getCompanyByIdEndpointPathParamsArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},jM={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathParamsVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:j,asType:!1,defaultValue:{id:"getCompanyByIdEndpointPathParamsVariableDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:D.JSON,value:{},parent:UM,autogeneration:null,valueAsType:null},parent:xM},kM={id:"getCompanyByIdEndpointReachedEntityEventRef",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},qM={id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"getCompanyByIdEndpointRequestHeadersVariableDataType"},JM={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},WM={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestHeadersVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Ze,asType:!1,defaultValue:{id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:D.JSON,value:{},parent:qM,autogeneration:null,valueAsType:null},parent:JM},YM={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:n.ArgumentDeclaration,writesValues:[],name:"Request headers",dataType:WM,implements:wl,required:!0,index:0,parent:kM},HM={id:"getCompanyByIdEndpointReachedEntityEventRefTwo",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},zM={id:"getCompanyByIdEndpointPathParamsArgumentDeclaration",type:n.ArgumentDeclaration,description:"A standarized text, without spaces that is added at the end of the domain and routes the request to a specific resource within the target server. For example: /api/users/123, /api/users/123/:name, /api/users/123/:name/:age.",version:1,name:"Path parameters",writesValues:[],dataType:jM,implements:_l,required:!0,index:1,parent:HM},ZM={id:"getCompanyByIdEndpointReachedEntityEventRefThree",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},KM={id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"getCompanyByIdEndpointRequestQueryParamsVariableDataType"},XM={id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},QM={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestQueryParamsVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,asType:!1,entity:j,defaultValue:{id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:D.JSON,value:{},parent:KM,autogeneration:null,valueAsType:null},parent:XM},eV={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:n.ArgumentDeclaration,writesValues:[],name:"Request query params",dataType:QM,implements:Nl,required:!0,index:2,parent:ZM},tV={id:"getCompanyByIdEndpointReachedEntityEventRefFour",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},nV={id:"getCompanyByIdEndpointRequestBodyArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestBodyArgumentDeclaration"},rV={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestBodyVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Ze,defaultValue:null,parent:nV},iV={id:"getCompanyByIdEndpointRequestBodyArgumentDeclaration",version:1,description:"The main data payload of the request.",type:n.ArgumentDeclaration,writesValues:[],name:"Request body",dataType:rV,implements:Ml,index:3,required:!0,parent:tV},aV={id:"getCompanyByIdEndpointResponseCodeReturnDeclarationRef",type:n.GenericReference,entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseCodeReturnDeclaration"},sV={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:aV},oV={id:"getCompanyByIdEndpointReturnStatementRef",type:n.GenericReference,entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},lV={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:n.ReturnDeclaration,name:"Response code",dataType:sV,implements:Vl,readsValue:null,required:!0,index:0,parent:oV},cV={id:"getCompanyByIdEndpointResponseHeadersDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"getCompanyByIdEndpointResponseHeadersDataType"},dV={id:"getCompanyByIdEndpointResponseHeadersReturnDeclarationRef",type:n.GenericReference,entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},uV={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseHeadersDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Ze,asType:!1,defaultValue:{id:"getCompanyByIdEndpointResponseHeadersDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:D.JSON,value:{},parent:cV,autogeneration:null,valueAsType:null},parent:dV},pV={id:"getCompanyByIdEndpointReturnStatementRefTwo",type:n.GenericReference,entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},yV={isError:!1,id:"getCompanyByIdEndpointResponseHeadersReturnDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:n.ReturnDeclaration,name:"Response headers",dataType:uV,implements:Ll,readsValue:null,required:!0,index:1,parent:pV},hV={id:"getCompanyByIdEndpointResponseBodyReturnDeclarationRef",type:n.GenericReference,entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseBodyReturnDeclaration"},fV={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseBodyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Ze,defaultValue:null,parent:hV},mV={id:"getCompanyByIdEndpointReturnStatementRefThree",type:n.GenericReference,entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},TV={isError:!1,id:"getCompanyByIdEndpointResponseBodyReturnDeclaration",version:1,description:"The main data payload of the response.",type:n.ReturnDeclaration,name:"Response body",implements:Gl,dataType:fV,readsValue:null,required:!0,index:2,parent:mV},EV={id:"getCompanyByIdEndpointReturnStatementCallerRef",type:n.GenericReference,entityId:"getCompanyByIdEndpointReachedEntityEvent",entityType:n.FunctionDeclaration},bV={id:"getCompanyByIdEndpointReachedEntityEventRefFive",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},RV={id:"getCompanyByIdEndpointReturnStatement",type:n.ReturnStatement,version:1,outputs:[lV,yV,TV],calledByError:[],calledByEntry:[EV],calledBySuccess:[],throws:null,x:0,y:0,parent:bV},gV={id:"endpointBuiltInBaseEntityRefFour",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:rg},vV={id:"getCompanyByIdEndpointReachedEntityEvent",name:"Endpoint reached",version:1,type:n.FunctionDeclaration,inputs:[YM,zM,eV,iV],returnStatements:[RV],description:"Fired when the endpoint is reached.",calls:[],collapsed:!1,implements:$l,index:0,private:!1,x:0,y:0,parent:gV},IV={id:"getCompanyByIdEndpointPathPropertyDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"getCompanyByIdEndpointPathPropertyDataType"},DV={id:"getCompanyByIdEndpointPathPropertyRef",type:n.GenericReference,entityType:n.Property,entityId:"getCompanyByIdEndpointPathProperty"},PV={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathPropertyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:j,asType:!1,defaultValue:{id:"getCompanyByIdEndpointPathPropertyDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:D.String,value:"/company/{id}",parent:IV,valueAsType:null,autogeneration:null},parent:DV},AV={id:"getCompanyByIdEndpointBaseEntityRefTwo",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},OV={hidden:!1,required:!0,id:"getCompanyByIdEndpointPathProperty",name:"Path",version:1,type:n.Property,private:!1,abstract:!1,static:!0,implements:Cl,dataType:PV,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:AV},SV={id:"getCompanyByIdEndpointMethodPropertyDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"getCompanyByIdEndpointMethodPropertyDataType"},CV={id:"getCompanyByIdEndpointMethodPropertyRef",type:n.GenericReference,entityType:n.Property,entityId:"getCompanyByIdEndpointMethodProperty"},BV={like:!1,inferred:!1,id:"getCompanyByIdEndpointMethodPropertyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:_n,isList:!0,isNullable:!1,constant:!0,asType:!1,defaultValue:{id:"getCompanyByIdEndpointMethodPropertyDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,value:"GET",name:D.Enum,parent:SV,valueAsType:null,autogeneration:null},options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:CV},wV={id:"getCompanyByIdEndpointBaseEntityRefThree",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},_V={hidden:!1,required:!0,id:"getCompanyByIdEndpointMethodProperty",name:"Method",version:1,type:n.Property,private:!1,abstract:!1,static:!0,implements:Bl,index:0,dataType:BV,description:null,parent:wV},NV={type:n.GenericReference,id:"6a905153-8aa8-4424-bd7b-6415731a2725",entityType:n.Project,entityId:Y},MV={type:n.CustomEntity,id:rg,version:1,name:"Get given company data by id",description:null,properties:[OV,_V],methods:[vV],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[os],x:0,y:0,parent:NV},VV={id:"product-prototype-database-property-ref-id",type:n.GenericReference,entityId:"product-prototype-database-property-id",entityType:n.Property},LV={id:"product-prototype-database-property-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"product-prototype-database-property-data-type-default-value-id",entityType:n.DataType},GV={like:!1,inferred:!1,id:"product-prototype-database-property-data-type-id",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:Nn,asType:!1,defaultValue:{id:"product-prototype-database-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,value:null,name:D.EntityTemplate,valueAsType:uc,autogeneration:null,parent:LV},parent:VV},$V={id:"product-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:n.CustomEntity},FV={hidden:!1,required:!0,id:"product-prototype-database-property-id",name:"Database",version:1,type:n.Property,private:!1,abstract:!1,implements:$i,static:!0,index:0,dataType:GV,description:"The database that the entity belongs to.",parent:$V},UV={type:n.GenericReference,id:"13a4045e-dcb0-4159-8d33-10a646078b5a",entityType:n.Property,entityId:"d519c26a-15b8-40d8-ad09-13fa9342e9ba"},xV={like:!1,inferred:!1,id:"7449779e-1d4e-409c-81c6-4b611336ed18",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:UV},jV={type:n.GenericReference,id:"0969562f-d836-406f-8b48-dd9d417fbe72",entityType:n.CustomEntity,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c"},kV={hidden:!1,required:!0,type:n.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,dataType:xV,abstract:!1,parent:jV},qV={type:n.GenericReference,id:"833a5425-7bd0-41dd-9e97-e018acce9592",entityType:n.Project,entityId:Y},JV={type:n.CustomEntity,id:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:1,name:"Product",description:"A product that can be sold",implements:[je],extends:[],abstract:!1,static:!1,abstractMethods:[],properties:[FV,kV],methods:[],x:0,y:0,parent:qV},aa="project-loaded-event-id",en="get-bitcoin-price-http-call-operation-id",ig="get-bitcoin-price-http-call-response-body-id",xs="validate-bitcoin-price-response-operation-ids",WV={type:n.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:ig},YV={type:n.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-parent-ref-id",entityType:n.Operation,entityId:xs},ag={id:"validate-bitcoin-data-to-validate-input-map-id",type:n.InputMap,version:1,declaration:nr.inputs[1],name:null,description:null,readsValue:WV,defaultValue:null,index:0,parent:YV},HV={type:n.GenericReference,id:"validate-bitcoin-type-to-match-input-map-default-value-parent-ref-id",entityType:n.InputMap,entityId:"validate-bitcoin-type-to-match-input-map-id"},zV={type:n.GenericReference,id:"validate-bitcoin-type-to-match-input-map-parent-ref-id",entityType:n.Operation,entityId:xs},ZV={id:"validate-bitcoin-type-to-match-input-map-id",type:n.InputMap,version:1,declaration:nr.inputs[0],name:null,description:null,readsValue:null,defaultValue:{id:"validate-bitcoin-type-to-match-input-map-default-value-id",type:n.PrimitiveValue,version:1,name:D.EntityTemplate,valueAsType:kR,value:null,parent:HV,autogeneration:null},index:0,parent:zV},KV={type:n.GenericReference,id:"validate-bitcoin-validated-entity-output-map-parent-ref-id",entityType:n.Operation,entityId:xs},XV={id:"validate-bitcoin-validated-entity-output-map-id",type:n.OutputMap,version:1,declaration:nr.outputs[0],writesValues:[],index:0,parent:KV},QV={type:n.GenericReference,id:"validate-bitcoin-price-response-operation-parent-ref-id",entityType:n.GlobalEvent,entityId:aa},e1={type:n.GenericReference,id:"validate-bitcoin-price-response-operation-called-by-ref-id",entityType:n.Operation,entityId:en},t1={type:n.Operation,id:xs,version:1,declaration:nr,inputs:[ZV,ag],outputs:[XV],process:null,successCalls:[],errorCalls:[],error:null,x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[e1],parent:QV},n1={type:n.GenericReference,id:"96edb661-3f36-406c-8921-f1679dd796a3",entityType:n.FunctionCall,entityId:en},r1={id:"c93e1393-9b5e-4de2-b8da-7eae647d715a",version:1,type:n.InputMap,declaration:Ha,name:null,description:null,readsValue:null,defaultValue:null,index:0,parent:n1},i1={type:n.GenericReference,id:"40312b28-71b8-4b01-a654-58b87191939d",entityType:n.FunctionCall,entityId:en},a1={type:n.GenericReference,id:"6ea96c7d-02a7-4971-82ad-2f32a0fec8b4",entityType:n.InputMap,entityId:"9f21cbac-5a83-4983-8923-9224ffd3ba9f"},s1={id:"9f21cbac-5a83-4983-8923-9224ffd3ba9f",version:1,type:n.InputMap,declaration:za,name:null,description:null,readsValue:null,defaultValue:{id:"get-bitcoin-price-http-request-url-argument-default-value-id",type:n.PrimitiveValue,version:1,value:"https://api.coindesk.com/v1/bpi/currentprice.json",name:D.String,parent:a1,valueAsType:null,autogeneration:null},index:1,parent:i1},o1={type:n.GenericReference,id:"2610bf4a-c8a2-4746-b6cc-eb15f7fa8e9c",entityType:n.FunctionCall,entityId:en},l1={id:"ffb3cd9d-c955-4104-bc7b-299120fe4ede",version:1,type:n.InputMap,declaration:Za,name:null,description:null,readsValue:null,defaultValue:null,index:2,parent:o1},c1={type:n.GenericReference,id:"bfd29a6a-671a-448c-9f2f-f8c7e4ad8349",entityType:n.FunctionCall,entityId:en},d1={id:"412bf1f3-1a8e-4665-a95f-82117540e34e",version:1,type:n.InputMap,declaration:Ka,name:null,description:null,readsValue:null,defaultValue:null,index:3,parent:c1},u1={type:n.GenericReference,id:"616a15f3-c224-4b11-b95c-63314edef409",entityType:n.FunctionCall,entityId:en},p1={id:"4dd4651c-02e4-45f1-b50f-824f3bcb1648",version:1,type:n.OutputMap,declaration:Qa,writesValues:[],index:1,parent:u1},y1={type:n.GenericReference,id:"28793b68-4d7e-4826-aee1-f201a3499faf",entityType:n.FunctionCall,entityId:en},h1={id:"94fe9d35-4dd4-4729-a50c-5283ccd7e661",version:1,type:n.OutputMap,declaration:Xa,writesValues:[],index:0,parent:y1},f1={type:n.GenericReference,id:"f13e04b2-49b4-4c69-85b8-cbbafafa3524",entityType:n.FunctionCall,entityId:en},m1={id:ig,type:n.OutputMap,version:1,declaration:es,writesValues:[ag],index:2,parent:f1},T1={type:n.GenericReference,id:"6148d6d0-caaa-45fc-b601-ff2493dfc60f",entityType:n.FunctionDeclaration,entityId:en},E1={type:n.GenericReference,id:"b115f084-807b-44b3-ae01-b69cc342f761",entityType:n.GlobalEvent,entityId:aa},b1={type:n.Operation,id:en,version:1,declaration:_i,inputs:[r1,s1,l1,d1],outputs:[h1,p1,m1],process:null,parent:E1,calledByError:[],calledByEntry:[T1],calledBySuccess:[],successCalls:[t1],errorCalls:[],error:null,x:0,y:0},R1={type:n.GenericReference,id:"24e76019-3f94-475b-91ce-297f76bbc224",entityType:n.GlobalEvent,entityId:aa},g1={type:n.GenericReference,id:"0eac8e29-cdf2-42f8-8ea7-ad76d4d79abe",entityType:n.GlobalEvent,entityId:aa},v1={process:null,type:n.FunctionCall,id:"2d2e7593-bfbf-457c-a607-5fce18eef457",version:1,declaration:Tc,inputs:[],outputs:[],calledByError:[],calledByEntry:[R1],calledBySuccess:[],parent:g1,successCalls:[],errorCalls:[],error:null,x:0,y:0},I1={id:"793b5999-a9da-47fb-9665-0c17ebc6d5c9",type:n.GenericReference,entityType:n.Project,entityId:"2e7eb5382-3d99-44fd-972a-b8b1e819f6be"},D1={type:n.GlobalEvent,id:aa,version:1,name:cn.PROJECT_PUBLICATION_COMPLETED,returnStatements:[],collapsed:!1,implements:ps,parent:I1,inputs:[],calls:[v1,b1],x:0,y:0},Gt="abort-execution-func-declaration-id",sa="abort-execution-func-exec-var-declaration-id",js="abort-execution-func-small-wait-op-id",Ec="abort-execution-func-long-wait-op-id",sg="abort-execution-func-long-wait-process-output-id",og="abort-execution-func-exec-var-instance-write-id",lg="abort-execution-func-long-wait-return-stmt-id",cg="abort-execution-func-small-wait-return-stmt-id",P1="abort-execution-func-exec-var-instance-abort-call-id",bc="abort-execution-func-exec-var-instance-abort-internal-call-id",dg="abort-execution-func-exec-second-wait-op-id",A1={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-parent-ref-id",entityType:n.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},O1={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",entityType:n.DataType,entityId:"short-wait-return-statement-returned-hello-string-data-type-id"},S1={like:!1,inferred:!1,id:"short-wait-return-statement-returned-hello-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:{id:"short-wait-return-statement-returned-hello-string-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:D.String,value:"Hello 2",autogeneration:null,valueAsType:null,parent:O1},constant:!1,parent:A1},C1={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-parent-ref-id",entityType:n.ReturnStatement,entityId:cg},B1={isError:!1,id:"short-wait-return-statement-returned-hello-string-id",type:n.ReturnDeclaration,version:1,name:"Return 1",description:"A random string that is returned by the function",dataType:S1,implements:null,readsValue:null,required:!0,index:0,parent:C1},w1={type:n.GenericReference,id:"short-wait-return-statement-called-by-ref-id",entityType:n.Operation,entityId:js},_1={type:n.GenericReference,id:"short-wait-return-statement-parent-ref-id",entityType:n.FunctionDeclaration,entityId:Gt},ug={type:n.ReturnStatement,id:cg,version:1,outputs:[B1],calledByError:[],calledByEntry:[],calledBySuccess:[w1],throws:null,x:0,y:0,parent:_1},N1={type:n.GenericReference,id:"second-wait-argument-default-value-parent-ref-id",entityType:n.InputMap,entityId:"second-wait-argument-map-id"},M1={type:n.GenericReference,id:"second-wait-argument-map-parent-ref-id",entityType:n.Operation,entityId:dg},V1={id:"second-wait-argument-map-id",type:n.InputMap,version:1,declaration:er,name:null,description:null,readsValue:null,defaultValue:{id:"second-wait-argument-default-value-id",type:n.PrimitiveValue,version:1,value:2e3,valueAsType:null,autogeneration:null,name:D.Number,parent:N1},index:0,parent:M1},L1={type:n.GenericReference,id:"small-wait-parent-ref-id",entityType:n.FunctionDeclaration,entityId:Gt},G1={type:n.GenericReference,id:"small-wait-called-by-ref-one-id",entityType:n.InternalCall,entityId:bc},$1={id:dg,type:n.Operation,version:1,declaration:dt,inputs:[V1],outputs:[],process:null,successCalls:[ug],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[G1],error:null,parent:L1},F1={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-one-id",entityType:n.VariableInstance,entityId:og},U1={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-two-id",entityType:n.Operation,entityId:js},x1={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-main-project-ref-id",entityType:n.FunctionDeclaration,entityId:Gt},j1={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",entityType:n.VariableDeclaration,entityId:sa},k1={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-internal-call-ref-one-id",entityType:n.InternalCall,entityId:bc},q1={id:P1,type:n.VariableInstance,version:1,declaration:j1,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[k1],parent:x1},pg={id:bc,type:n.InternalCall,version:1,inputs:[],outputs:[],declaration:ql,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[F1,U1],successCalls:[$1],errorCalls:[],error:null,index:0,parent:q1},J1={type:n.GenericReference,id:"abort-exec-func-var-write-instance-main-project-ref-id",entityType:n.FunctionDeclaration,entityId:Gt},W1={type:n.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-one-id",entityType:n.VariableDeclaration,entityId:sa},Y1={type:n.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-two-id",entityType:n.FunctionDeclaration,entityId:Gt},H1={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",entityType:n.VariableDeclaration,entityId:sa},z1={type:n.GenericReference,id:"abort-exec-func-var-write-instance-reads-value-ref-id",entityType:n.OutputMap,entityId:sg},Rc={id:og,type:n.VariableInstance,version:1,declaration:H1,inputs:[],outputs:[],calledByError:[],calledByEntry:[Y1],calledBySuccess:[W1],successCalls:[pg],errorCalls:[],x:0,y:0,readsValue:z1,writesValues:[],internalCalls:[],parent:J1},Z1={type:n.GenericReference,id:"abort-exec-func-var-decl-datatype-parent-ref-id",entityType:n.VariableDeclaration,entityId:sa};n.GenericReference,n.DataType;const K1={like:!1,inferred:!1,id:"abort-exec-func-var-decl-datatype-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Jl,version:1,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:Z1,defaultValue:null},X1={type:n.GenericReference,id:"abort-exec-func-var-decl-main-project-ref-id",entityType:n.FunctionDeclaration,entityId:Gt},Q1={type:n.GenericReference,id:"abort-exec-func-var-decl-called-by-ref-one-id",entityType:n.FunctionDeclaration,entityId:Gt},e0={id:sa,type:n.VariableDeclaration,version:1,name:"Execution in progress",description:"A variable that holds an ongoing execution to abort it if needed",dataType:K1,inputs:[],outputs:[],calledByError:[],calledByEntry:[Q1],calledBySuccess:[],successCalls:[Rc],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:X1},t0={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-parent-ref-id",entityType:n.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},n0={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",entityType:n.DataType,entityId:"long-wait-return-statement-returned-hello-string-data-type-id"},r0={like:!1,inferred:!1,id:"long-wait-return-statement-returned-hello-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,asType:!1,isList:!1,isNullable:!1,defaultValue:{id:"long-wait-return-statement-returned-hello-string-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:D.String,value:"Hello 1",autogeneration:null,valueAsType:null,parent:n0},constant:!1,parent:t0},i0={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-parent-ref-id",entityType:n.ReturnStatement,entityId:lg},a0={isError:!1,id:"long-wait-return-statement-returned-hello-string-id",type:n.ReturnDeclaration,version:1,name:"Return 2",description:"A random string that is returned by the function",implements:null,dataType:r0,readsValue:null,required:!0,index:0,parent:i0},s0={type:n.GenericReference,id:"long-wait-return-statement-called-by-ref-id",entityType:n.Operation,entityId:Ec},o0={type:n.GenericReference,id:"long-wait-return-statement-parent-ref-id",entityType:n.FunctionDeclaration,entityId:Gt},yg={type:n.ReturnStatement,id:lg,version:1,outputs:[a0],calledByError:[],calledByEntry:[],calledBySuccess:[s0],throws:null,x:0,y:0,parent:o0},l0={type:n.GenericReference,id:"long-argument-default-value-parent-ref-id",entityType:n.InputMap,entityId:"long-argument-map-id"},hg={type:n.GenericReference,id:"long-argument-map-parent-ref-id",entityType:n.Operation,entityId:Ec},c0={id:"long-argument-map-id",type:n.InputMap,version:1,declaration:er,name:null,description:null,readsValue:null,defaultValue:{id:"long-argument-default-value-id",type:n.PrimitiveValue,version:1,value:1500,valueAsType:null,autogeneration:null,name:D.Number,parent:l0},index:0,parent:hg},d0={type:n.GenericReference,id:"long-parent-ref-id",entityType:n.FunctionDeclaration,entityId:Gt},u0={type:n.GenericReference,id:"long-called-by-ref-one-id",entityType:n.FunctionDeclaration,entityId:Gt},p0={id:sg,type:n.OutputMap,version:1,declaration:Yl,writesValues:[Rc],index:0,parent:hg},y0={id:Ec,type:n.Operation,version:1,declaration:dt,inputs:[c0],outputs:[],process:p0,successCalls:[yg],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[u0],calledBySuccess:[],error:null,parent:d0},h0={type:n.GenericReference,id:"small-wait-argument-default-value-parent-ref-id",entityType:n.InputMap,entityId:"small-wait-argument-map-id"},f0={type:n.GenericReference,id:"small-wait-argument-map-parent-ref-id",entityType:n.Operation,entityId:js},m0={id:"small-wait-argument-map-id",type:n.InputMap,version:1,declaration:er,name:null,description:null,readsValue:null,defaultValue:{id:"small-wait-argument-default-value-id",type:n.PrimitiveValue,version:1,value:500,valueAsType:null,autogeneration:null,name:D.Number,parent:h0},index:0,parent:f0},T0={type:n.GenericReference,id:"small-wait-parent-ref-id",entityType:n.FunctionDeclaration,entityId:Gt},E0={type:n.GenericReference,id:"small-wait-called-by-ref-one-id",entityType:n.FunctionDeclaration,entityId:Gt},b0={id:js,type:n.Operation,version:1,declaration:dt,inputs:[m0],outputs:[],process:null,successCalls:[pg],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[E0],calledBySuccess:[],error:null,parent:T0},R0={type:n.GenericReference,id:"abort-execution-func-decl-parent-ref-id",entityType:n.Project,entityId:Y},fg={id:"abort-execution-func-decl-id",type:n.FunctionDeclaration,version:1,name:"Test aborting execution",description:"Executes a wait and then aborts the execution of that wait",inputs:[],returnStatements:[yg,ug],calls:[b0,e0,Rc,y0],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:R0},g0={type:n.GenericReference,id:"call-execution-abort-func-parent-ref-id",entityType:n.Project,entityId:Y},v0={id:"call-execution-abort-func-id",type:n.FunctionCall,version:1,declaration:fg,inputs:[],process:null,outputs:[],successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:g0},gc="manual-hello-world-loop-func-decl-id",mg="manual-hello-world-loop-func-return-statement-id",tn="manual-hello-world-loop-id",oa="manual-hello-world-loop-body-id",vc="manual-hello-world-loop-break-statement-id",la="manual-hello-world-loop-current-iteration-number-output-map-id",Ic="manual-hello-world-loop-previous-iterations-results-output-map-id",Dc="assembled-hello-world-text-output-id",Tg="assembled-hello-world-list-output-id",ca="iteration-number-is-equal-or-greater-than-10-condition-id",ks="join-hello-world-and-number-operation-id",qs="append-string-to-list-operation-id",Eg="hello-world-loop-output-map-id",I0={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-parent-ref",entityType:n.ReturnStatement,entityId:mg},D0={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type-parent-ref",entityType:n.ReturnDeclaration,entityId:"manual-hello-world-loop-function-declaration-output-declaration"},P0={like:!1,inferred:!1,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,isList:!0,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:D0},A0={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-reads-value-ref",entityType:n.OutputMap,entityId:Eg},bg={isError:!1,id:"manual-hello-world-loop-function-declaration-output-declaration",version:1,type:n.ReturnDeclaration,name:"Results",description:null,dataType:P0,implements:null,readsValue:A0,required:!0,index:0,parent:I0},O0={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-return-statement-called-by-ref",entityType:n.Loop,entityId:tn},S0={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref",entityType:n.FunctionDeclaration,entityId:gc},Rg={type:n.ReturnStatement,id:mg,version:1,outputs:[bg],calledByError:[],calledByEntry:[],calledBySuccess:[O0],parent:S0,throws:null,x:0,y:0},C0={type:n.GenericReference,id:"hello-world-loop-break-statement-ref-id",entityType:n.BreakStatement,entityId:vc},B0={type:n.GenericReference,id:"hello-world-loop-break-statement-reads-value-ref-id",entityType:n.OutputMap,entityId:Dc},gg={isError:!1,id:"hello-world-loop-break-statement-output-id",version:1,type:n.ReturnDeclaration,name:"Iteration result",description:null,dataType:null,readsValue:B0,implements:null,required:!0,index:0,parent:C0},w0={type:n.GenericReference,id:"hello-world-loop-break-statement-counter-reads-value-ref-id",entityType:n.ArgumentDeclaration,entityId:la},_0={type:n.GenericReference,id:"hello-world-loop-break-statement-counter-ref-id",entityType:n.BreakStatement,entityId:vc},vg={isError:!1,id:"hello-world-loop-break-statement-counter-output-id",version:1,type:n.ReturnDeclaration,name:"Iteration counter",description:null,implements:null,dataType:null,readsValue:w0,required:!0,index:1,parent:_0},N0={type:n.GenericReference,id:"hello-world-loop-break-statement-called-by-ref-id",entityType:n.Condition,entityId:ca},M0={type:n.GenericReference,id:"hello-world-loop-break-statement-parent-ref-id",entityType:n.Loop,entityId:tn},Ig={type:n.BreakStatement,id:vc,version:1,outputs:[gg,vg],calledByError:[],calledByEntry:[],calledBySuccess:[N0],parent:M0,throws:null,x:0,y:0},V0={type:n.GenericReference,id:"hello-world-loop-continue-statement-ref-id",entityType:n.ContinueStatement,entityId:"hello-world-loop-continue-statement"},L0={type:n.GenericReference,id:"hello-world-loop-continue-statement-output-data-type-ref-id",entityType:n.ReturnDeclaration,entityId:"hello-world-loop-continue-statement-output-id"},G0={like:!1,inferred:!1,id:"hello-world-loop-continue-statement-output-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:L0},$0={type:n.GenericReference,id:"hello-world-loop-continue-statement-reads-value-ref-id",entityType:n.OutputMap,entityId:Dc},Dg={isError:!1,id:"hello-world-loop-continue-statement-output-id",version:1,type:n.ReturnDeclaration,name:"Iteration result",description:null,implements:null,dataType:G0,readsValue:$0,required:!0,index:0,parent:V0},F0={type:n.GenericReference,id:"hello-world-loop-continue-statement-called-by-ref-id",entityType:n.Condition,entityId:ca},U0={type:n.GenericReference,id:"hello-world-loop-continue-statement-parent-ref-id",entityType:n.Loop,entityId:tn},Pg={type:n.ContinueStatement,id:"hello-world-loop-continue-statement",version:1,outputs:[Dg],calledBySuccess:[],calledByError:[F0],calledByEntry:[],parent:U0,throws:null,x:0,y:0};n.GenericReference,n.InputMap;const x0={type:n.GenericReference,id:"append-string-to-list-base-string-map-parent-ref-id",entityType:n.Operation,entityId:qs},j0={type:n.GenericReference,id:"base-string-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Ic},Ag={id:"append-string-to-list-base-string-map-id",type:n.InputMap,version:1,declaration:ul,name:null,description:null,readsValue:j0,defaultValue:null,index:0,parent:x0},k0={type:n.GenericReference,id:"assembly-string-map-parent-ref-id",entityType:n.Operation,entityId:qs},q0={id:Tg,type:n.OutputMap,version:1,writesValues:[gg],declaration:Bi,index:0,parent:k0},J0={type:n.GenericReference,id:"append-string-to-list-called-by-ref-id",entityType:n.Condition,entityId:ca},W0={type:n.GenericReference,id:"latest-string-to-add-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Tg},Y0={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:n.Operation,entityId:qs},Og={id:"latest-string-to-add-input-map-id",version:1,type:n.InputMap,declaration:pl,name:null,description:null,readsValue:W0,defaultValue:null,index:1,parent:Y0},H0={type:n.GenericReference,id:"append-string-to-list-parent-ref-id",entityType:n.FunctionDeclaration,entityId:tn},z0={type:n.Operation,id:qs,declaration:Ya,version:1,inputs:[Ag,Og],outputs:[q0],calledByError:[],process:null,calledByEntry:[],calledBySuccess:[J0],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:H0},Z0={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:oa},K0={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-parent-ref-id",entityType:n.Loop,entityId:tn},X0={type:n.GenericReference,id:"current-iteration-number-to-check-map-reads-value-ref-id",entityType:n.OutputMap,entityId:la},Sg={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-ref-two-id",entityType:n.Condition,entityId:ca},Q0={id:"current-iteration-number-to-check-map-id",version:1,type:n.InputMap,declaration:Zr.inputs[0],name:null,description:null,readsValue:X0,index:1,defaultValue:null,parent:Sg},eL={type:n.GenericReference,id:"max-num-iterations-value-map-default-value-parent-ref-id",entityType:n.InputMap,entityId:"max-num-iterations-value-map-id"},tL={id:"max-num-iterations-value-map-id",version:1,type:n.InputMap,declaration:Zr.inputs[1],name:null,description:null,readsValue:null,index:0,defaultValue:{id:"max-num-iterations-value-map-default-value-id",type:n.PrimitiveValue,version:1,name:D.Number,value:10,autogeneration:null,valueAsType:null,parent:eL},parent:Sg},nL={type:n.Condition,id:ca,version:1,declaration:Zr,inputs:[tL,Q0],calledByError:[],calledByEntry:[Z0],calledBySuccess:[],successCalls:[Ig,z0],errorCalls:[Pg],x:0,y:0,parent:K0},rL={type:n.GenericReference,id:"base-string-map-ref-id",entityType:n.InputMap,entityId:"join-hello-world-and-number-base-string-map-id"},iL={type:n.GenericReference,id:"join-hello-world-and-number-base-string-map-parent-ref-id",entityType:n.Operation,entityId:ks},aL={id:"join-hello-world-and-number-base-string-map-id",type:n.InputMap,version:1,declaration:Ja,name:null,description:null,readsValue:null,defaultValue:{id:"join-hello-world-and-number-base-string-map-default-value-id",type:n.PrimitiveValue,version:1,value:"Hello world ",name:D.String,parent:rL,valueAsType:null,autogeneration:null},index:0,parent:iL},sL={type:n.GenericReference,id:"assembly-string-map-parent-ref-id",entityType:n.Operation,entityId:ks},oL={id:Dc,type:n.OutputMap,version:1,writesValues:[Og,Dg],declaration:Bi,index:0,parent:sL},lL={type:n.GenericReference,id:"join-hello-world-and-number-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:oa},cL={type:n.GenericReference,id:"current-iteration-number-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:la},dL={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:n.Operation,entityId:ks},Cg={id:"current-iteration-number-input-map-id",version:1,type:n.InputMap,declaration:Wa,name:null,description:null,readsValue:cL,defaultValue:null,index:1,parent:dL},uL={type:n.GenericReference,id:"join-hello-world-and-number-parent-ref-id",entityType:n.FunctionDeclaration,entityId:tn},pL={type:n.Operation,id:ks,declaration:wi,version:1,inputs:[aL,Cg],outputs:[oL],process:null,calledByError:[],calledByEntry:[lL],calledBySuccess:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:uL},yL={id:"manual-hello-world-loop-iterations-results-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:Ic,entityType:n.ArgumentDeclaration},hL={like:!1,inferred:!1,id:"manual-hello-world-loop-iterations-results-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!0,isNullable:!1,constant:!1,entity:null,asType:!1,defaultValue:null,parent:yL},fL={id:"manual-hello-world-loop-previous-iterations-results-output-map-parent-ref-id",type:n.GenericReference,entityId:oa,entityType:n.FunctionDeclaration},mL={id:Ic,type:n.ArgumentDeclaration,version:1,name:"Previous iterations results",description:"The results of the previous iterations of the loop.",required:!0,dataType:hL,implements:null,writesValues:[Ag],index:1,parent:fL},TL={id:"manual-hello-world-loop-current-iteration-number-output-map-parent-ref-id",type:n.GenericReference,entityId:oa,entityType:n.FunctionDeclaration},EL={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:la,entityType:n.ArgumentDeclaration};n.DataType;const bL={id:la,type:n.ArgumentDeclaration,version:1,name:"Current iteration number",description:"The number of the current iteration of the loop. Starts at 1.",required:!0,implements:Rl,dataType:null,writesValues:[Cg,vg],index:0,parent:TL},RL={id:"manual-flow-loop-body-parent-ref-id",type:n.GenericReference,entityId:tn,entityType:n.Loop},gL={id:oa,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called multiple times, once for each iteration of the loop.",inputs:[bL,mL],calls:[nL,pL],implements:gl,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:RL},vL={type:n.GenericReference,id:"hello-world-loop-iteration-result-inline-output-declaration-parent-ref-id",entityType:n.Loop,entityId:tn},Bg={id:"hello-world-loop-iteration-result-inline-output-declaration-id",version:1,type:n.ValueDescriptor,name:"Iteration result",description:null,dataType:null,required:!0,index:0,parent:vL},IL={type:n.GenericReference,id:"hello-world-loop-break-statement-output-map-parent-ref-id",entityType:n.Loop,entityId:tn},DL={type:n.OutputMap,id:Eg,version:1,declaration:Bg,writesValues:[bg],index:0,parent:IL},PL={id:"manual-hello-world-loop-parent-ref-id",type:n.GenericReference,entityId:Y,entityType:n.Project},AL={id:"manual-hello-world-loop-called-by-ref-id",type:n.GenericReference,entityId:gc,entityType:n.FunctionDeclaration},OL={id:tn,type:n.Loop,version:1,declaration:bl,inputs:[],outputsDeclarations:[Bg],outputs:[DL],body:gL,successCalls:[Rg],errorCalls:[],process:null,error:null,calledByError:[],calledByEntry:[AL],calledBySuccess:[],breakStatements:[Ig],continueStatements:[Pg],x:0,y:0,parent:PL},SL={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref-id",entityType:n.Project,entityId:Y},wg={type:n.FunctionDeclaration,id:gc,version:1,name:"Manual hello world loop",description:null,inputs:[],calls:[OL],returnStatements:[Rg],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:SL},CL={type:n.GenericReference,id:"call-hello-world-loop-parent-ref-id",entityType:n.Project,entityId:Y},BL={id:"call-hello-world-loop-id",type:n.FunctionCall,version:1,declaration:wg,inputs:[],outputs:[],process:null,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:CL},En="company-dto-function-declaration-id",Pc="company-dto-func-declaration-argument-dcl-id",nn="company-dto-function-company-variable-id",jn="company-dto-function-company-dto-variable-id",si="iterate-over-employee-list-loop-id",_g="iterate-over-employee-list-loop-employee-dto-output-map-id",Ac="iterate-over-employee-list-loop-body-current-employee-argument-declaration-id",da="iterate-over-employee-list-loop-body-map-employee-dto-function-call-id",Ng="iterate-over-employee-list-continue-statement-employee-dto-output-decl-id",wL="iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-id",Mg="iterate-over-employee-list-continue-statement-id",Js="iterate-over-employee-list-loop-body-id",Vg="company-dto-func-declaration-return-statement-id",Lg="company-dto-func-declaration-return-decl-id",Gg="company-dto-func-declaration-company-variable-id-output-map-id",$g="company-dto-func-declaration-company-variable-employess-output-map-id",Fg="company-dto-func-declaration-company-variable-name-output-map-id",_L="company-dto-func-declaration-company-dto-variable-input-map-id",NL="company-dto-func-declaration-company-dto-variable-employess-input-map-id",ML="company-dto-func-declaration-company-dto-variable-name-input-map-id",Ws="company-dto-func-declaration-owner-variable-id",VL="company-dto-func-declaration-company-dto-variable-owner-input-map-id",Ug="company-dto-func-declaration-company-variable-owner-output-map-id",xg="company-dto-func-declaration-owner-variable-id-output-map-id",Ys="company-dto-func-declaration-bank-account-variable-id",LL="company-dto-func-declaration-company-dto-variable-bank-account-input-map-id",jg="company-dto-func-declaration-company-variable-bank-account-output-map-id",kg="company-dto-func-declaration-bank-account-variable-id-output-map-id",GL={type:n.GenericReference,id:"company-dto-func-returned-company-dto-data-type-parent-ref-id",entityType:n.ReturnDeclaration,entityId:Lg},$L={like:!1,inferred:!1,id:"company-dto-func-returned-company-dto-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:GL},FL={type:n.GenericReference,id:"company-dto-func-returned-company-dto-parent-ref-id",entityType:n.ReturnStatement,entityId:Vg},UL={type:n.GenericReference,id:"company-dto-func-returned-company-dto-reads-value-ref-id",entityType:n.VariableDeclaration,entityId:jn},qg={isError:!1,id:Lg,type:n.ReturnDeclaration,version:1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",implements:null,dataType:$L,readsValue:UL,required:!0,index:0,parent:FL},xL={type:n.GenericReference,id:"company-dto-func-return-statement-called-by-ref-id",entityType:n.Operation,entityId:jn},jL={type:n.GenericReference,id:"company-dto-func-return-statement-parent-ref-id",entityType:n.FunctionDeclaration,entityId:En},Oc={type:n.ReturnStatement,id:Vg,version:1,outputs:[qg],calledByError:[],calledByEntry:[],calledBySuccess:[xL],throws:null,x:0,y:0,parent:jL},kL={type:n.GenericReference,id:"company-dto-func-company-dto-variable-owner-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:xg},qL={type:n.GenericReference,id:"company-dto-func-company-dto-variable-owner-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:jn},Jg={id:VL,type:n.InputMap,version:1,declaration:null,name:"owner_id",description:null,defaultValue:null,index:5,readsValue:kL,parent:qL},JL={type:n.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:kg},WL={type:n.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:jn},Wg={id:LL,type:n.InputMap,version:1,declaration:null,name:"bank_account_id",description:null,defaultValue:null,index:4,readsValue:JL,parent:WL},YL={type:n.GenericReference,id:"company-dto-func-company-dto-variable-name-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Fg},HL={type:n.GenericReference,id:"company-dto-func-company-dto-variable-name-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:jn},Yg={id:ML,type:n.InputMap,version:1,declaration:null,name:"name",description:null,defaultValue:null,index:3,readsValue:YL,parent:HL},zL={type:n.GenericReference,id:"company-dto-func-company-dto-variable-employess-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:_g},ZL={type:n.GenericReference,id:"company-dto-func-company-dto-variable-employess-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:jn},Hg={id:NL,type:n.InputMap,version:1,declaration:null,name:"employees",description:null,defaultValue:null,index:2,readsValue:zL,parent:ZL},KL={type:n.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Gg},XL={type:n.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:jn},zg={id:_L,type:n.InputMap,version:1,declaration:null,name:"id",description:"The ID of the company",defaultValue:null,index:1,readsValue:KL,parent:XL},QL={type:n.GenericReference,id:"company-dto-func-company-dto-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:En},eG={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-one-id",entityType:n.VariableDeclaration,entityId:Ys},tG={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-two-id",entityType:n.VariableDeclaration,entityId:Ws},nG={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-three-id",entityType:n.VariableDeclaration,entityId:si},Sc={id:jn,type:n.VariableDeclaration,version:1,name:"Company DTO",dataType:null,description:"A variable holding the data of a mapped company DTO",calledByError:[],calledByEntry:[],calledBySuccess:[eG,tG,nG],successCalls:[Oc],errorCalls:[],readsValue:null,writesValues:[qg],inputs:[zg,Yg,Wg,Jg,Hg],outputs:[],internalCalls:[],parent:QL,x:0,y:0},yr="employee-dto-func-declaration-id",Cc="employee-dto-func-declaration-argument-dcl-id",Zg="employee-dto-func-declaration-return-statement-id",Kg="employee-dto-func-declaration-return-decl-id",hr="employee-dto-func-declaration-employee-variable-id",fr="employee-dto-func-declaration-employee-dto-variable-id",Hs="employee-dto-func-declaration-manager-variable-id",Xg="employee-dto-func-declaration-employee-variable-id-output-map-id",Qg="employee-dto-func-declaration-employee-variable-birth-date-output-map-id",ev="employee-dto-func-declaration-employee-variable-department-output-map-id",tv="employee-dto-func-declaration-employee-variable-manager-output-map-id",nv="employee-dto-func-declaration-manager-variable-id-output-map-id",rG="employee-dto-func-declaration-employee-dto-variable-input-map-id",iG="employee-dto-func-declaration-employee-dto-variable-birth-date-input-map-id",aG="employee-dto-func-declaration-employee-dto-variable-department-input-map-id",sG="employee-dto-func-declaration-employee-dto-variable-manager-input-map-id",oG={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-data-type-parent-ref-id",entityType:n.ReturnDeclaration,entityId:Kg},lG={like:!1,inferred:!1,id:"employee-dto-func-returned-employee-dto-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:oG},cG={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-parent-ref-id",entityType:n.ReturnStatement,entityId:Zg},dG={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-reads-value-ref-id",entityType:n.VariableDeclaration,entityId:fr},rv={isError:!1,id:Kg,type:n.ReturnDeclaration,version:1,name:"Employee DTO",description:"Output the employee data in the format that it will be sent through an HTTP request.",dataType:lG,implements:null,readsValue:dG,required:!0,index:0,parent:cG},uG={type:n.GenericReference,id:"employee-dto-func-return-statement-called-by-ref-id",entityType:n.Operation,entityId:fr},pG={type:n.GenericReference,id:"employee-dto-func-return-statement-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yr},Bc={type:n.ReturnStatement,id:Zg,version:1,outputs:[rv],calledByError:[],calledByEntry:[],calledBySuccess:[uG],throws:null,x:0,y:0,parent:pG},yG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:nv},hG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:fr},iv={id:sG,type:n.InputMap,version:1,declaration:null,name:"manager_id",description:null,defaultValue:null,index:4,readsValue:yG,parent:hG},fG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-department-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:ev},mG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-department-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:fr},av={id:aG,type:n.InputMap,version:1,declaration:null,name:"department_name",description:null,defaultValue:null,index:3,readsValue:fG,parent:mG},TG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Qg},EG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:fr},sv={id:iG,type:n.InputMap,version:1,declaration:null,name:"birth_date",description:null,defaultValue:null,index:2,readsValue:TG,parent:EG},bG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Xg},RG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:fr},ov={id:rG,type:n.InputMap,version:1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:bG,parent:RG},gG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yr},vG={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-called-by-ref-id",entityType:n.VariableDeclaration,entityId:Hs},IG={id:fr,type:n.VariableDeclaration,version:1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",calledByError:[],calledByEntry:[],calledBySuccess:[vG],successCalls:[Bc],errorCalls:[],readsValue:null,writesValues:[rv],inputs:[ov,sv,av,iv],outputs:[],internalCalls:[],parent:gG,x:0,y:0},DG={type:n.GenericReference,id:"employee-dto-func-manager-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:Hs},PG={id:nv,type:n.OutputMap,version:1,declaration:je.properties[1],index:0,writesValues:[iv],parent:DG},AG={type:n.GenericReference,id:"employee-dto-func-manager-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:Hs},OG={like:!1,inferred:!1,id:"employee-dto-func-manager-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Vt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:AG,defaultValue:null},SG={type:n.GenericReference,id:"employee-dto-func-manager-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:tv},CG={type:n.GenericReference,id:"employee-dto-func-manager-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yr};n.GenericReference,n.VariableDeclaration;const lv={id:Hs,type:n.VariableDeclaration,version:1,name:"Manager",dataType:OG,description:"A variable holding an inherited manager",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[IG],errorCalls:[],readsValue:SG,writesValues:[],inputs:[],outputs:[PG],internalCalls:[],parent:CG,x:0,y:0},BG={type:n.GenericReference,id:"employee-dto-func-employee-variable-manager-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:hr},wG={id:tv,type:n.OutputMap,version:1,declaration:Vt.properties[2],index:3,writesValues:[lv],parent:BG},_G={type:n.GenericReference,id:"employee-dto-func-employee-variable-department-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:hr},NG={id:ev,type:n.OutputMap,version:1,declaration:Vt.properties[0],index:2,writesValues:[av],parent:_G},MG={type:n.GenericReference,id:"employee-dto-func-employee-variable-birth-date-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:hr},VG={id:Qg,type:n.OutputMap,version:1,declaration:pt.properties[1],index:1,writesValues:[sv],parent:MG},LG={type:n.GenericReference,id:"employee-dto-func-employee-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:hr},GG={id:Xg,type:n.OutputMap,version:1,declaration:je.properties[1],index:0,writesValues:[ov],parent:LG},$G={type:n.GenericReference,id:"employee-dto-func-employee-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:hr},FG={like:!1,inferred:!1,id:"employee-dto-func-employee-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Vt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:$G,defaultValue:null},UG={type:n.GenericReference,id:"employee-dto-func-employee-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yr},xG={type:n.GenericReference,id:"employee-dto-func-employee-variable-reads-value-ref-id",entityType:n.ArgumentDeclaration,entityId:Cc},jG={type:n.GenericReference,id:"employee-dto-func-employee-variable-called-by-id",entityType:n.FunctionDeclaration,entityId:yr},cv={id:hr,type:n.VariableDeclaration,version:1,name:"Company employee",dataType:FG,description:"A variable holding a company employee",calledByError:[],calledByEntry:[jG],calledBySuccess:[],successCalls:[lv],errorCalls:[],readsValue:xG,writesValues:[],inputs:[],outputs:[GG,VG,NG,wG],internalCalls:[],parent:UG,x:0,y:0},kG={type:n.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-data-type-parent-ref-id",entityId:Cc,entityType:n.ArgumentDeclaration},qG={type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"employee-dto-func-declaration-employee-input-declaration-data-type-id",version:1,entity:Vt,asType:!1,isList:!1,isNullable:!1,constant:!1,like:!1,inferred:!1,parent:kG,defaultValue:null},JG={type:n.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-parent-ref-id",entityId:yr,entityType:n.FunctionDeclaration},WG={type:n.ArgumentDeclaration,id:Cc,version:1,name:"Employee",description:"The employee to create a DTO for",required:!0,implements:null,dataType:qG,index:0,writesValues:[cv],parent:JG},YG={type:n.GenericReference,id:"employee-dto-function-declaration-parent-ref-id",entityType:n.Project,entityId:Y},wc={type:n.FunctionDeclaration,id:yr,version:1,name:"Employee DTO",description:"Takes a employee and returns a DTO of that employee",index:null,inputs:[WG],calls:[cv],implements:null,returnStatements:[Bc],collapsed:!1,private:!1,x:0,y:0,parent:YG},HG={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:Ng,entityType:n.ReturnDeclaration},zG={like:!1,inferred:!1,id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:null,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:HG},ZG={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-reads-value-ref-id",type:n.GenericReference,entityId:da,entityType:n.OutputMap},KG={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-parent-ref-id",type:n.GenericReference,entityId:Mg,entityType:n.ContinueStatement},dv={isError:!1,id:Ng,type:n.ReturnDeclaration,version:1,name:"Employee DTO",description:"The DTO of the employee entity.",readsValue:ZG,dataType:zG,implements:null,required:!0,index:0,parent:KG},XG={id:"iterate-over-employee-list-continue-statement-called-by-ref-id",type:n.GenericReference,entityId:da,entityType:n.FunctionCall},QG={id:"iterate-over-employee-list-continue-statement-parent-ref-id",type:n.GenericReference,entityId:si,entityType:n.Loop},uv={id:Mg,type:n.ContinueStatement,version:1,calledByError:[],calledByEntry:[],calledBySuccess:[XG],outputs:[dv],throws:null,x:0,y:0,parent:QG},e$={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-parent-ref-id",type:n.GenericReference,entityId:da,entityType:n.FunctionCall},t$={id:wL,type:n.OutputMap,version:1,declaration:Bc.outputs[0],writesValues:[dv],index:0,parent:e$},n$={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-reads-value-ref-id",type:n.GenericReference,entityId:Ac,entityType:n.ArgumentDeclaration},r$={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-parent-ref-id",type:n.GenericReference,entityId:da,entityType:n.FunctionCall},pv={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-id",type:n.InputMap,version:1,name:null,description:null,declaration:wc.inputs[0],readsValue:n$,index:0,defaultValue:null,parent:r$},i$={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-called-by-ref-id",type:n.GenericReference,entityId:Js,entityType:n.FunctionDeclaration},a$={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-parent-ref-id",type:n.GenericReference,entityId:Js,entityType:n.FunctionDeclaration},s$={id:da,type:n.FunctionCall,version:1,declaration:wc,inputs:[pv],process:null,outputs:[t$],calledByError:[],calledByEntry:[i$],calledBySuccess:[],successCalls:[uv],errorCalls:[],error:null,x:0,y:0,parent:a$},o$={type:n.GenericReference,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-parent-ref-id",entityId:Ac,entityType:n.ArgumentDeclaration},l$={like:!1,inferred:!1,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:Vt,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:o$},c$={id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Js,entityType:n.FunctionDeclaration},d$={id:Ac,type:n.ArgumentDeclaration,version:1,name:"Current employee",description:"The current employee entity being processed.",dataType:l$,required:!0,implements:ts,index:0,writesValues:[pv],parent:c$},u$={id:"iterate-over-employee-list-loop-body-parent-ref-id",type:n.GenericReference,entityId:si,entityType:n.Loop},p$={id:Js,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[d$],calls:[s$],implements:ns,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:u$},y$={id:"iterate-over-employee-list-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:si,entityType:n.Loop},h$={id:"iterate-over-employee-list-loop-iteration-list-input-map-reads-value-ref-id",type:n.GenericReference,entityId:$g,entityType:n.OutputMap},yv={id:"iterate-over-employee-list-loop-iteration-list-input-map-id",type:n.InputMap,version:1,name:null,description:null,declaration:rr.inputs[0],defaultValue:null,readsValue:h$,index:0,parent:y$},f$={id:"iterate-over-employee-list-loop-parent-ref-id",type:n.GenericReference,entityId:En,entityType:n.FunctionDeclaration},m$={id:"iterate-over-employee-list-loop-employee-dto-output-map-parent-ref-id",type:n.GenericReference,entityId:si,entityType:n.Loop},T$={id:_g,type:n.OutputMap,version:1,declaration:rr.outputs[0],writesValues:[Hg],index:0,parent:m$},E$={type:n.GenericReference,id:"iterate-over-employee-list-loop-called-by-ref-id",entityType:n.VariableDeclaration,entityId:nn},b$={id:si,type:n.Loop,version:1,declaration:rr,inputs:[yv],successCalls:[Sc],errorCalls:[],outputsDeclarations:[],outputs:[T$],body:p$,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[E$],breakStatements:[],continueStatements:[uv],error:null,x:0,y:0,parent:f$},R$={type:n.GenericReference,id:"company-dto-func-bank-account-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:Ys},g$={id:kg,type:n.OutputMap,version:1,declaration:je.properties[1],index:0,writesValues:[Wg],parent:R$},v$={type:n.GenericReference,id:"company-dto-func-bank-account-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:Ys},I$={like:!1,inferred:!1,id:"company-dto-func-bank-account-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Lt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:v$,defaultValue:null},D$={type:n.GenericReference,id:"company-dto-func-bank-account-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:jg},P$={type:n.GenericReference,id:"company-dto-func-bank-account-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:En};n.GenericReference,n.VariableDeclaration;const hv={id:Ys,type:n.VariableDeclaration,version:1,name:"Bank account",dataType:I$,description:"A variable holding an inherited bank account",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[Sc],errorCalls:[],readsValue:D$,writesValues:[],inputs:[],outputs:[g$],internalCalls:[],parent:P$,x:0,y:0},A$={type:n.GenericReference,id:"company-dto-func-owner-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:Ws},O$={id:xg,type:n.OutputMap,version:1,declaration:je.properties[1],index:0,writesValues:[Jg],parent:A$},S$={type:n.GenericReference,id:"company-dto-func-owner-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:Ws},C$={like:!1,inferred:!1,id:"company-dto-func-owner-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Lt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:S$,defaultValue:null},B$={type:n.GenericReference,id:"company-dto-func-owner-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:Ug},w$={type:n.GenericReference,id:"company-dto-func-owner-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:En};n.GenericReference,n.VariableDeclaration;const fv={id:Ws,type:n.VariableDeclaration,version:1,name:"Owner",dataType:C$,description:"A variable holding an inherited owner",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[Sc],errorCalls:[],readsValue:B$,writesValues:[],inputs:[],outputs:[O$],internalCalls:[],parent:w$,x:0,y:0},_$={type:n.GenericReference,id:"company-dto-func-company-variable-owner-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:nn},N$={id:Ug,type:n.OutputMap,version:1,declaration:Lt.properties[2],index:4,writesValues:[fv],parent:_$},M$={type:n.GenericReference,id:"company-dto-func-company-variable-bank-account-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:nn},V$={id:jg,type:n.OutputMap,version:1,declaration:Lt.properties[2],index:3,writesValues:[hv],parent:M$},L$={type:n.GenericReference,id:"company-dto-func-company-variable-name-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:nn},G$={id:Fg,type:n.OutputMap,version:1,declaration:Lt.properties[0],index:2,writesValues:[Yg],parent:L$},$$={type:n.GenericReference,id:"company-dto-func-company-variable-employess-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:nn},F$={id:$g,type:n.OutputMap,version:1,declaration:Lt.properties[3],index:1,writesValues:[yv],parent:$$},U$={type:n.GenericReference,id:"company-dto-func-company-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:nn},x$={id:Gg,type:n.OutputMap,version:1,declaration:je.properties[1],index:0,writesValues:[zg],parent:U$},j$={type:n.GenericReference,id:"company-dto-func-company-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:nn},k$={like:!1,inferred:!1,id:"company-dto-func-company-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Lt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:j$,defaultValue:null},q$={type:n.GenericReference,id:"company-dto-func-company-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:En},J$={type:n.GenericReference,id:"company-dto-func-company-variable-reads-value-ref-id",entityType:n.ArgumentDeclaration,entityId:Pc},W$={type:n.GenericReference,id:"company-dto-func-company-variable-called-by-id",entityType:n.FunctionDeclaration,entityId:En},mv={id:nn,type:n.VariableDeclaration,version:1,name:"Company",dataType:k$,description:"A variable holding a company",calledByError:[],calledByEntry:[W$],calledBySuccess:[],successCalls:[hv,fv,b$],errorCalls:[],readsValue:J$,writesValues:[],inputs:[],outputs:[x$,F$,G$,V$,N$],internalCalls:[],parent:q$,x:0,y:0},Y$={type:n.GenericReference,id:"company-dto-func-declaration-company-input-declaration-data-type-parent-ref-id",entityId:Pc,entityType:n.ArgumentDeclaration},H$={type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"company-dto-func-declaration-company-input-declaration-data-type-id",version:1,entity:Lt,asType:!1,isList:!1,isNullable:!1,constant:!1,like:!1,inferred:!1,parent:Y$,defaultValue:null},z$={type:n.GenericReference,id:"company-dto-func-declaration-company-input-declaration-parent-ref-id",entityId:En,entityType:n.FunctionDeclaration},Z$={type:n.ArgumentDeclaration,id:Pc,version:1,name:"Company",description:"The company to create a DTO for",required:!0,implements:null,dataType:H$,index:0,writesValues:[mv],parent:z$},K$={type:n.GenericReference,id:"company-dto-function-declaration-parent-ref-id",entityType:n.Project,entityId:Y},_c={type:n.FunctionDeclaration,id:En,version:1,name:"Company DTO",description:"Takes a company and returns a DTO of that company",inputs:[Z$],calls:[mv],implements:null,index:null,returnStatements:[Oc],collapsed:!1,private:!1,x:0,y:0,parent:K$},ua="exec-in-parallel-operation-call-id",pa="exec-sequentially-operation-call-id",yt="concurrency-and-wait-function-declaration-id",Tv="concurrency-and-wait-return-statement-id",Ev="concurrency-and-wait-return-declaration-id",Nc="exec-in-parallel-argument-map-id",bv="exec-sequentially-argument-map-id",Mc="wait-for-2-seconds-operation-id",Rv="wait-for-2-seconds-argument-map-id",Vc="map-company-dto-function-call-id",gv="map-company-dto-function-call-company-dto-output-map-id",ya="company-dto-variable-one-id",Lc="company-dto-variable-one-instance-id",X$="company-dto-variable-two-id",Q$={type:n.GenericReference,id:"returned-company-dto-data-type-parent-ref-id",entityType:n.ReturnDeclaration,entityId:Ev},eF={like:!1,inferred:!1,id:"returned-company-dto-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Lt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Q$},tF={type:n.GenericReference,id:"returned-company-dto-parent-ref-id",entityType:n.ReturnStatement,entityId:Tv},nF={type:n.GenericReference,id:"returned-company-dto-reads-value-ref-id",entityType:n.VariableDeclaration,entityId:ya},vv={isError:!1,id:Ev,type:n.ReturnDeclaration,version:1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",dataType:eF,implements:null,readsValue:nF,required:!0,index:0,parent:tF},rF={type:n.GenericReference,id:"concurrency-and-wait-return-statement-called-by-ref-id",entityType:n.Operation,entityId:Mc},iF={type:n.GenericReference,id:"concurrency-and-wait-return-statement-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yt},Iv={type:n.ReturnStatement,id:Tv,version:1,outputs:[vv],calledByError:[],calledByEntry:[],calledBySuccess:[rF],throws:null,x:0,y:0,parent:iF},aF={type:n.GenericReference,id:"company-dto-variable-two-called-by-ref-id",entityType:n.VariableInstance,entityId:Lc},sF={type:n.GenericReference,id:"company-dto-variable-two-reads-value-ref-id",entityType:n.VariableInstance,entityId:Lc},oF={type:n.GenericReference,id:"company-dto-variable-two-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yt},Dv={id:X$,type:n.VariableDeclaration,version:1,name:"Company DTO",description:null,dataType:null,inputs:[],outputs:[],successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[aF],internalCalls:[],writesValues:[vv],readsValue:sF,x:0,y:0,parent:oF},lF={type:n.GenericReference,id:"company-dto-variable-one-instance-called-by-ref-id",entityType:n.VariableDeclaration,entityId:ya},cF={type:n.GenericReference,id:"company-dto-variable-one-instance-reads-value-ref-id",entityType:n.VariableDeclaration,entityId:ya},dF={type:n.GenericReference,id:"company-dto-variable-one-instance-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yt},uF={type:n.GenericReference,id:"company-dto-variable-one-instance-declaration-ref-id",entityType:n.VariableDeclaration,entityId:ya},Pv={id:Lc,type:n.VariableInstance,version:1,declaration:uF,inputs:[],outputs:[],successCalls:[Dv],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[lF],internalCalls:[],writesValues:[Dv],readsValue:cF,x:0,y:0,parent:dF},pF={type:n.GenericReference,id:"company-dto-variable-one-called-by-ref-id",entityType:n.FunctionCall,entityId:Vc},yF={type:n.GenericReference,id:"company-dto-variable-one-reads-value-ref-id",entityType:n.OutputMap,entityId:gv},hF={type:n.GenericReference,id:"company-dto-variable-one-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yt},Av={id:ya,type:n.VariableDeclaration,version:1,name:"Company DTO",description:null,dataType:null,inputs:[],outputs:[],successCalls:[Pv],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[pF],internalCalls:[],writesValues:[Pv],readsValue:yF,x:0,y:0,parent:hF},Ov={type:n.GenericReference,id:"map-company-dto-function-call-company-input-map-parent-ref-id",entityType:n.FunctionCall,entityId:Vc},fF={id:"map-company-dto-function-call-company-input-map-id",type:n.InputMap,version:1,declaration:_c.inputs[0],name:null,description:null,defaultValue:null,index:0,readsValue:null,parent:Ov},mF={id:gv,type:n.OutputMap,version:1,declaration:Oc.outputs[0],writesValues:[Av],index:0,parent:Ov},TF={id:"map-company-dto-function-call-called-by-ref-id",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:yt},EF={id:"map-company-dto-function-call-parent-ref-id",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:yt},bF={id:Vc,type:n.FunctionCall,version:1,declaration:_c,successCalls:[Av],process:null,errorCalls:[],inputs:[fF],outputs:[mF],calledByError:[],calledByEntry:[TF],calledBySuccess:[],parent:EF,x:0,y:0,error:null},RF={type:n.GenericReference,id:"last-timestamp-variable-datatype-parent-ref-id",entityType:n.VariableDeclaration,entityId:DR},gF={type:n.GenericReference,id:"last-timestamp-variable-default-value-parent-ref-id",entityType:n.DataType,entityId:"last-timestamp-variable-datatype-id"},vF={like:!1,inferred:!1,id:"last-timestamp-variable-datatype-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:un,version:1,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:RF,defaultValue:{id:"last-timestamp-variable-default-value-id",type:n.PrimitiveValue,version:1,name:D.Date,value:null,autogeneration:{type:qe.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:gF,valueAsType:null}},IF={type:n.GenericReference,id:"last-timestamp-variable-main-project-ref-id",entityType:n.Project,entityId:Y},Gc={id:DR,type:n.VariableDeclaration,version:1,name:"Last registered current time",description:"A test variable that holds the last current date and time that was registered.",dataType:vF,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:IF},DF={type:n.GenericReference,id:"wait-for-2-seconds-argument-default-value-parent-ref-id",entityType:n.InputMap,entityId:Rv},PF={type:n.GenericReference,id:"wait-for-2-seconds-argument-map-parent-ref-id",entityType:n.Operation,entityId:Mc},AF={id:Rv,type:n.InputMap,version:1,declaration:er,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-2-seconds-argument-default-value-id",type:n.PrimitiveValue,version:1,value:2e3,valueAsType:null,autogeneration:null,name:D.Number,parent:DF},index:0,parent:PF},OF={type:n.GenericReference,id:"wait-for-2-seconds-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yt},SF={type:n.GenericReference,id:"wait-for-2-seconds-called-by-ref-one-id",entityType:n.FunctionDeclaration,entityId:pa},CF={type:n.GenericReference,id:"wait-for-2-seconds-called-by-ref-two-id",entityType:n.FunctionDeclaration,entityId:ua},Sv={id:Mc,type:n.Operation,version:1,declaration:qt,inputs:[AF],outputs:[],process:null,successCalls:[Iv],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[SF,CF],calledBySuccess:[],error:null,parent:OF},BF={type:n.GenericReference,id:"wait-for-random-amount-argument-default-value-parent-ref-id",entityType:n.InputMap,entityId:"wait-for-random-amount-input-map-id"},wF={type:n.GenericReference,id:"wait-for-random-amount-argument-map-parent-ref-id",entityType:n.Operation,entityId:"wait-for-random-amount-id"},_F={id:"wait-for-random-amount-input-map-id",type:n.InputMap,version:1,declaration:er,name:null,description:null,readsValue:null,defaultValue:{id:"wait-for-random-amount-argument-default-value-id",type:n.PrimitiveValue,version:1,value:null,valueAsType:null,autogeneration:{type:qe.Random,rangeStart:1e3,rangeEnd:4e3},name:D.Number,parent:BF},index:0,parent:wF},NF={type:n.GenericReference,id:"wait-for-random-amount-parent-ref-id",entityType:n.Project,entityId:Y},oi={id:"wait-for-random-amount-id",type:n.Operation,version:1,declaration:qt,inputs:[_F],process:null,outputs:[],successCalls:[],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,parent:NF},Cv="list-of-functions-variable-id",MF={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-argument-parent-ref-id",entityType:n.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},VF={id:"list-of-functions-variable-action-descriptor-dynamic-argument-id",type:n.ValueDescriptor,version:1,name:"Any input value",description:"Any input value that can be passed to the action",index:0,required:!1,dataType:null,parent:MF},LF={type:n.GenericReference,id:"list-of-functions-variable-action-descriptor-dynamic-return-parent-ref-id",entityType:n.ActionDescriptor,entityId:"list-of-functions-variable-action-descriptor-id"},GF={id:"list-of-functions-variable-action-descriptor-dynamic-return-id",type:n.ValueDescriptor,version:1,name:"Any output value",description:"Any output value that can be returned to the action",index:0,required:!1,dataType:null,parent:LF},$F={type:n.GenericReference,id:"list-of-functions-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:Cv},FF={id:"list-of-functions-variable-action-descriptor-id",type:n.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:[VF],error:null,outputs:[GF],parent:null},UF={type:n.GenericReference,id:"list-of-functions-variable-data-type-default-parent-ref-id",entityType:n.DataType,entityId:"list-of-functions-variable-data-type-id"},xF={like:!1,inferred:!1,id:"list-of-functions-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:FF,asType:!1,isList:!0,isNullable:!1,defaultValue:{id:"list-of-functions-variable-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:D.ActionDescriptor,value:null,valueAsType:[oi,oi,oi,oi,oi],autogeneration:null,parent:UF},constant:!1,parent:$F},jF={type:n.GenericReference,id:"list-of-functions-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yt};n.GenericReference,n.InputMap;const kF={type:n.GenericReference,id:"list-of-functions-variable-writes-value-one-ref-id",entityType:n.InputMap,entityId:bv},qF={type:n.GenericReference,id:"list-of-functions-variable-writes-value-two-ref-id",entityType:n.InputMap,entityId:Nc},Bv={id:Cv,type:n.VariableDeclaration,version:1,name:"List of functions to execute",description:"A list of functions to be executed in parallel",dataType:xF,parent:jF,readsValue:null,writesValues:[kF,qF],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],inputs:[],outputs:[],internalCalls:[],x:0,y:0},JF={type:n.GenericReference,id:"exec-in-parallel-return-map-parent-ref-id",entityType:n.Operation,entityId:ua},WF={type:n.GenericReference,id:"exec-in-parallel-result-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yt},YF={type:n.GenericReference,id:"exec-in-parallel-result-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:"exec-in-parallel-return-map-id"},HF={type:n.GenericReference,id:"exec-in-parallel-result-variable-called-by-ref-id",entityType:n.Operation,entityId:ua},wv={id:"exec-in-parallel-result-variable-id",type:n.VariableInstance,version:1,declaration:Gc,readsValue:YF,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[HF],successCalls:[],errorCalls:[],internalCalls:[],parent:WF,x:0,y:0},zF={id:"exec-in-parallel-return-map-id",type:n.OutputMap,version:1,declaration:hl,writesValues:[wv],index:0,parent:JF},ZF={type:n.GenericReference,id:"exec-in-parallel-argument-map-parent-ref-id",entityType:n.Operation,entityId:ua},KF={id:Nc,type:n.InputMap,version:1,declaration:yl,name:null,description:null,readsValue:Bv,defaultValue:null,index:0,parent:ZF},XF={type:n.GenericReference,id:"exec-in-parallel-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yt},QF={type:n.GenericReference,id:"exec-in-parallel-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:yt},e4={process:null,id:ua,type:n.Operation,version:1,declaration:qt,inputs:[KF],outputs:[zF],successCalls:[Sv,wv],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[QF],calledBySuccess:[],error:null,parent:XF},t4={type:n.GenericReference,id:"exec-sequentially-return-map-parent-ref-id",entityType:n.Operation,entityId:pa},n4={type:n.GenericReference,id:"exec-sequentially-result-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yt},r4={type:n.GenericReference,id:"exec-sequentially-result-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:"exec-sequentially-return-map-id"},i4={type:n.GenericReference,id:"exec-sequentially-result-variable-called-by-ref-id",entityType:n.Operation,entityId:pa},_v={id:"exec-sequentially-result-variable-id",type:n.VariableInstance,version:1,declaration:Gc,readsValue:r4,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[i4],successCalls:[],errorCalls:[],internalCalls:[],parent:n4,x:0,y:0},a4={id:"exec-sequentially-return-map-id",type:n.OutputMap,version:1,declaration:ml,writesValues:[_v],index:0,parent:t4},s4={type:n.GenericReference,id:"exec-sequentially-argument-map-parent-ref-id",entityType:n.Operation,entityId:pa},o4={id:bv,type:n.InputMap,version:1,declaration:fl,name:null,description:null,readsValue:Bv,defaultValue:null,index:0,parent:s4},l4={type:n.GenericReference,id:"exec-sequentially-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yt},c4={type:n.GenericReference,id:"exec-sequentially-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:yt},d4={id:pa,type:n.Operation,version:1,declaration:fn,inputs:[o4],process:null,outputs:[a4],successCalls:[Sv,_v],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[c4],calledBySuccess:[],error:null,parent:l4},u4={type:n.GenericReference,id:"concurrency-and-wait-parent-ref-id",entityType:n.Project,entityId:Y},p4={type:n.FunctionDeclaration,id:yt,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:[d4,e4,bF],returnStatements:[Iv],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:u4},y4={type:n.GenericReference,id:"3521f2c8-a5c0-419c-8808-4fc6a73d0b78",entityType:n.ReturnDeclaration,entityId:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},h4={like:!1,inferred:!1,id:"ce8b9a30-afe9-4d4f-879f-1677efca2c47",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Lt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:y4},f4={type:n.GenericReference,id:"8ee66e38-b060-474e-a503-594063a8ec24",entityType:n.ReturnStatement,entityId:"40a23a98-d3b2-42b1-9652-b33779ad15aa"},m4={isError:!1,id:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.ReturnDeclaration,version:1,name:"Created company",description:"The new company that was created",implements:null,dataType:h4,readsValue:null,required:!0,index:0,parent:f4},T4={type:n.GenericReference,id:"9cb3c1e4-7250-4be6-be2a-69c2dd366d6f",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},E4={type:n.GenericReference,id:"c065fcdd-e054-4f95-941c-7eaa65c35d04",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},Nv={type:n.ReturnStatement,id:"40a23a98-d3b2-42b1-9652-b33779ad15aa",version:1,outputs:[m4],calledByError:[],calledByEntry:[E4],calledBySuccess:[],throws:null,x:0,y:0,parent:T4},b4={type:n.GenericReference,id:"312ef836-9e40-4d57-b177-03b7145ed074",entityType:n.Project,entityId:Y},R4={type:n.FunctionDeclaration,id:"5059c093-eda2-4efc-b7b4-aaaadd4d44de",version:1,name:"Create new company",description:null,inputs:[],calls:[Nv],index:null,implements:null,returnStatements:[Nv],collapsed:!1,private:!1,x:0,y:0,parent:b4},$c="get-current-date-and-time-func-decl-id",Mv="get-current-date-and-time-return-statement-id",Vv="get-current-date-and-time-return-declaration-id",Lv="get-current-date-and-time-return-declaration-data-type-id",g4={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-value-parent-ref-id",entityType:n.DataType,entityId:Lv},v4={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-parent-ref-id",entityType:n.ReturnDeclaration,entityId:Vv},I4={type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,id:Lv,version:1,entity:un,asType:!1,isList:!1,isNullable:!1,like:!1,inferred:!1,defaultValue:{id:"last-timestamp-variable-default-value-id",type:n.PrimitiveValue,version:1,value:null,name:D.Date,valueAsType:null,autogeneration:{type:qe.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:g4},constant:!1,parent:v4},D4={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-parent-ref-id",entityType:n.ReturnStatement,entityId:Mv};n.ReturnDeclaration;const P4={type:n.GenericReference,id:"get-current-date-and-time-return-statement-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:$c},A4={type:n.GenericReference,id:"get-current-date-and-time-return-statement-parent-ref-id",entityType:n.FunctionDeclaration,entityId:$c};n.ReturnStatement;const O4={type:n.GenericReference,id:"concurrency-and-wait-parent-ref-id",entityType:n.Project,entityId:Y},S4={type:n.FunctionDeclaration,id:$c,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:O4},Gv="do-math-return-statement-id",$v="do-math-return-declaration-id",C4={type:n.GenericReference,id:"do-math-func-var-to-return-one-ref-id",entityType:n.VariableDeclaration,entityId:"do-math-func-var-to-return-one-id"},B4={like:!1,inferred:!1,id:"do-math-func-var-to-return-one-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:C4},w4={type:n.GenericReference,id:"do-math-func-decl-ref-two-id",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},_4={type:n.GenericReference,id:"do-math-func-var-to-return-one-map-ref-id",entityType:n.ReturnDeclaration,entityId:$v},N4={type:n.VariableDeclaration,id:"do-math-func-var-to-return-one-id",version:1,description:null,name:"Fixed result",dataType:B4,readsValue:null,writesValues:[_4],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:w4},M4={type:n.GenericReference,id:"96ec244e-594b-45f7-802b-6dc3056920f6",entityType:n.ReturnStatement,entityId:Gv},V4={type:n.GenericReference,id:"d120c0cc-9d13-4e45-90e2-4e1ee825ca46",entityType:n.ReturnDeclaration,entityId:"873a3556-4911-4141-b2a0-49c677b56fb4"},L4={like:!1,inferred:!1,id:"da91aa23-9985-49ac-a8bf-9d623ba1ba8f",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:V4},G4={isError:!1,id:$v,version:1,type:n.ReturnDeclaration,name:"Result",description:null,implements:null,dataType:L4,readsValue:N4,required:!0,index:0,parent:M4},$4={type:n.GenericReference,id:"57fd93e4-93a1-484e-82eb-4dd15d2d0e24",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},F4={type:n.GenericReference,id:"0a86e8d5-ab21-476e-a482-b928cbf351e3",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Fv={type:n.ReturnStatement,id:Gv,version:1,outputs:[G4],calledByError:[],calledByEntry:[],calledBySuccess:[$4],parent:F4,throws:null,x:0,y:0},U4={type:n.GenericReference,id:"a2db26be-57f2-48e5-9769-cdbf0d95dc7c",entityType:n.VariableDeclaration,entityId:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a"},x4={like:!1,inferred:!1,id:"c3e9d5f0-204f-45f9-85f7-e1b56b468388",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:U4},j4={type:n.GenericReference,id:"692122c5-610a-4504-90dd-f5a5202d116c",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},k4={type:n.GenericReference,id:"do-math-func-return-one-called-by",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},q4={type:n.GenericReference,id:"6dceb501-be5b-4252-afb4-3c0d08abba33",entityType:n.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},Uv={type:n.VariableDeclaration,id:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a",version:1,name:"Result",dataType:x4,description:null,readsValue:q4,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[k4],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:j4},J4={type:n.GenericReference,id:"5440f523-af38-4981-8035-89d162fe8041",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},W4={type:n.GenericReference,id:"8c482c35-e674-4713-a1dd-63c3d13b611c",entityType:n.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},Y4={type:n.GenericReference,id:"c0a299cd-5869-4930-8cf0-90e3ceb8a903",entityType:n.VariableDeclaration,entityId:"46b2fe23-b417-4887-a35d-09b186679172"},H4={like:!1,inferred:!1,id:"51c0c1df-2ee3-41df-ae52-ac512d8cf795",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Y4},z4={type:n.GenericReference,id:"do-math-func-return-two-called-by",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},xv={type:n.VariableDeclaration,id:"46b2fe23-b417-4887-a35d-09b186679172",version:1,name:"Total",description:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[z4],successCalls:[],errorCalls:[],dataType:H4,readsValue:W4,writesValues:[],internalCalls:[],parent:J4,x:0,y:0},jv={type:n.GenericReference,id:"6e4d776e-6af2-4321-b630-c78110fd677c",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Z4={type:n.GenericReference,id:"5b60955b-2486-40b6-bb24-ffd97ccd8902",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},K4={type:n.GenericReference,id:"1a49923f-bc6f-453f-a438-e74e5475c2a9",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},X4={type:n.GenericReference,id:"02bfde0a-b757-4072-9613-6e9c7c9a424a",entityType:n.ArgumentDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},kv={id:"928953b0-0e3f-4d8c-ae5a-84620b4b8c68",version:1,type:n.InputMap,declaration:el,name:null,description:null,readsValue:X4,defaultValue:null,index:0,parent:K4},Q4={id:"64752080-ee0f-4cfe-9897-a0668f2b2aca",type:n.OutputMap,version:1,declaration:rl,writesValues:[Uv,xv],index:0,parent:Z4},eU={type:n.GenericReference,id:"d235a7f6-07ff-4f35-98d2-8f42dd59cf9f",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},tU={id:"8827e8e9-9381-4ad7-8f61-5419c23c9136",type:n.GenericReference,entityType:n.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},qv={id:"a5525249-0eb5-472b-97bc-5e4cc0d75aee",version:1,type:n.InputMap,declaration:tl,name:null,description:null,readsValue:tU,defaultValue:null,index:1,parent:eU},nU={type:n.Operation,id:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e",declaration:qa,version:1,inputs:[kv,qv],outputs:[Q4],calledByError:[],calledByEntry:[jv],calledBySuccess:[],process:null,successCalls:[Fv,Uv,xv],errorCalls:[],parent:jv,error:null,x:0,y:0},rU={type:n.GenericReference,id:"a2c40226-2270-4963-a865-c777ba79c551",entityType:n.DataType,entityId:"a350a9e9-25ee-477f-a83d-9e98ed2451662"},iU={id:"f47731b3-f278-4ab5-aeb2-24519c1119fb",type:n.GenericReference,entityId:"72a338d8-0183-4ca2-8760-227517854595",entityType:n.ArgumentDeclaration},Jv={like:!1,inferred:!1,id:"a350a9e9-25ee-477f-a83d-9e98ed2451662",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"do-math-func-argument-two-default-value-id",type:n.PrimitiveValue,version:1,value:1,name:D.Number,parent:rU,valueAsType:null,autogeneration:null},constant:!1,parent:iU},aU={type:n.GenericReference,id:"5f5d8dd0-7f3b-40cd-9f84-83d976887eaf",entityType:n.ArgumentDeclaration,entityId:"649bf0a4-6532-44aa-9818-a03d1c6564e9"},sU={type:n.GenericReference,id:"ca018d0f-a8b3-4c7e-a408-c8b372d04aff",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},oU={type:n.GenericReference,id:"do-math-func-var-called-by-ref",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},Wv={type:n.VariableDeclaration,id:"72a338d8-0183-4ca2-8760-227517854595",version:1,name:"Z",description:null,dataType:Jv,inputs:[],outputs:[],calledByError:[],calledByEntry:[oU],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:aU,writesValues:[qv],internalCalls:[],x:0,y:0,parent:sU},lU={entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",type:n.GenericReference,id:"af0cf105-4075-425f-aecc-b25d3600fcc4"},cU={id:"649bf0a4-6532-44aa-9818-a03d1c6564e9",type:n.ArgumentDeclaration,version:1,name:"Z",description:"The number to add",dataType:Jv,implements:null,writesValues:[Wv],required:!0,index:1,parent:lU},dU={type:n.GenericReference,id:"56953b5d-3e43-4dea-a62c-f3e868ba81bb",entityType:n.Project,entityId:Y},uU={id:"868defc8-5c95-48ed-942d-257e8b9b9b00",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},pU={type:n.GenericReference,id:"35167664-a793-49f1-9eaf-fb57eac30897",entityType:n.DataType,entityId:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2"},yU={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:n.GenericReference,entityId:"d8895765-f705-457e-85fa-25d130926769",entityType:n.ArgumentDeclaration},hU={like:!1,inferred:!1,id:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"do-math-func-argument-one-default-value-id",type:n.PrimitiveValue,version:1,value:5,name:D.Number,parent:pU,valueAsType:null,autogeneration:null},constant:!1,parent:yU},fU={id:"d8895765-f705-457e-85fa-25d130926769",type:n.ArgumentDeclaration,version:1,name:"N",dataType:hU,description:"The number to add",implements:null,writesValues:[kv],required:!0,index:0,parent:uU},mU={type:n.FunctionDeclaration,id:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",version:1,name:"Do math",description:"This function does math",inputs:[fU,cU],calls:[nU,Wv],implements:null,index:null,collapsed:!1,returnStatements:[Fv],private:!1,x:0,y:0,parent:dU},ht="replace-bank-account-in-company-func-declaration-id",Fc="company-entity-to-modify-arg-declaration-id",Uc="account-number-to-create-arg-decl-id",li="company-main-variable-id",ci="search-person-by-id-id",Yv="new-bank-account-owner-arg-decl-id",Hv="search-person-by-id-output-declaration-id",xc="search-person-by-id-output-entity-map-id",ha="person-not-empty-condition-id",zs="create-new-bank-account-instance-operation-id",zv="create-new-bank-account-instance-operation-output-entity-map-id",Zv="company-bank-account-output-map-id",jc="old-bank-account-var-declaration-id",Kv="old-bank-account-var-instance-id",Xv="company-variable-instance-id",kc="delete-bank-account-internal-call-id",fa="new-bank-account-data-variable-declaration-id",TU={type:n.GenericReference,id:"company-variable-instance-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},EU={type:n.GenericReference,id:"company-variable-instance-called-by-ref-id",entityType:n.InternalCall,entityId:kc},bU={type:n.GenericReference,id:"company-variable-instance-declaration-ref-id",entityType:n.VariableDeclaration,entityId:li},RU={type:n.GenericReference,id:"bank-account-input-map-parent-ref-id",entityType:n.VariableInstance,entityId:Xv},gU={type:n.GenericReference,id:"bank-account-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:zv},Qv={type:n.InputMap,id:"bank-account-input-map-id",version:1,readsValue:gU,declaration:mc,name:null,description:null,index:0,defaultValue:null,parent:RU},vU={type:n.VariableInstance,id:Xv,version:1,declaration:bU,inputs:[Qv],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[EU],successCalls:[],errorCalls:[],internalCalls:[],parent:TU,readsValue:null,writesValues:[],x:0,y:0},IU={type:n.GenericReference,id:"bank-account-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:li},DU={type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"bank-account-variable-data-type-id",version:1,entity:ii,asType:!1,isList:!1,isNullable:!1,constant:!1,like:!1,inferred:!1,defaultValue:null,parent:IU},PU={type:n.GenericReference,id:"bank-account-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:Zv},AU={type:n.GenericReference,id:"bank-account-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},OU={type:n.GenericReference,id:"bank-account-variable-called-by-ref-id",entityType:n.VariableDeclaration,entityId:li},SU={type:n.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-id",entityType:n.Operation,entityId:zs};n.GenericReference,n.VariableInstance;const CU={type:n.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-two-id",entityType:n.VariableDeclaration,entityId:jc},BU={type:n.GenericReference,id:"old-bank-account-variable-trigger-delete-decl-ref-id",entityType:n.VariableDeclaration,entityId:jc},wU={type:n.GenericReference,id:"bank-account-variable-parent-ref-two-id",entityType:n.FunctionDeclaration,entityId:ht},_U={type:n.GenericReference,id:"old-bank-account-variable-trigger-delete-internal-call-ref-id",entityType:n.InternalCall,entityId:kc},NU={type:n.VariableInstance,id:Kv,version:1,declaration:BU,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],internalCalls:[_U],errorCalls:[],parent:wU,readsValue:null,writesValues:[],x:0,y:0},eI={process:null,type:n.InternalCall,id:kc,version:1,declaration:xl,index:0,successCalls:[vU],errorCalls:[],inputs:[],outputs:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[SU,CU],parent:NU},tI={type:n.VariableDeclaration,id:jc,version:1,name:"Old bank account",description:"The existing bank account that needs to be replaced in the company entity",dataType:DU,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[OU],successCalls:[eI],internalCalls:[],errorCalls:[],parent:AU,readsValue:PU,writesValues:[],x:0,y:0},MU={type:n.GenericReference,id:"company-variable-declaration-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:li},VU={type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"company-variable-declaration-data-type-id",version:1,entity:Lt,asType:!1,isList:!1,isNullable:!1,like:!1,inferred:!1,constant:!1,defaultValue:null,parent:MU},LU={type:n.GenericReference,id:"company-variable-declaration-reads-value-ref-id",entityType:n.ArgumentDeclaration,entityId:Fc},GU={type:n.GenericReference,id:"company-variable-declaration-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},$U={type:n.GenericReference,id:"company-variable-declaration-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:ht},FU={type:n.GenericReference,id:"company-bank-account-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:li},UU={id:Zv,version:1,type:n.OutputMap,declaration:mc,index:0,parent:FU,writesValues:[tI]},nI={type:n.VariableDeclaration,id:li,version:1,name:"Company",description:"The company entity that was passed as an argument to the parent function",dataType:VU,inputs:[],outputs:[UU],calledByError:[],calledByEntry:[$U],calledBySuccess:[],successCalls:[tI],errorCalls:[],parent:GU,internalCalls:[],readsValue:LU,writesValues:[],x:0,y:0},xU={type:n.GenericReference,id:"create-new-bank-account-account-owner-dynamic-input-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:fa},jU={id:"create-new-bank-account-account-owner-dynamic-input-map-reads-value-ref-id",type:n.GenericReference,entityType:n.OutputMap,entityId:xc},rI={id:"create-new-bank-account-account-owner-dynamic-input-map-id",version:1,type:n.InputMap,declaration:null,name:"Account owner",description:null,readsValue:jU,index:1,defaultValue:null,parent:xU},kU={id:"create-new-bank-account-account-number-dynamic-input-map-reads-value-ref-id",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:Uc},qU={type:n.GenericReference,id:"create-new-bank-account-account-number-dynamic-input-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:fa},iI={id:"create-new-bank-account-account-number-dynamic-input-map-id",version:1,type:n.InputMap,declaration:null,name:"Account number",description:null,readsValue:kU,defaultValue:null,index:0,parent:qU},aI={type:n.GenericReference,id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",entityType:n.Operation,entityId:zs},JU={id:"create-new-bank-account-instance-operation-entity-to-create-input-map-id",version:1,type:n.InputMap,declaration:tr.inputs[0],name:null,description:null,index:0,readsValue:null,defaultValue:{type:n.PrimitiveValue,name:D.EntityTemplate,value:null,valueAsType:ii,autogeneration:null},parent:aI},WU={type:n.GenericReference,id:"create-new-bank-account-instance-operation-entity-data-input-map-reads-value-ref-id",entityType:n.VariableDeclaration,entityId:fa},sI={id:"create-new-bank-account-instance-operation-entity-data-input-map-id",version:1,type:n.InputMap,declaration:tr.inputs[1],name:null,description:null,index:1,readsValue:WU,defaultValue:null,parent:aI},YU={type:n.GenericReference,id:"create-new-bank-account-instance-operation-output-entity-map-parent-ref-id",entityType:n.Operation,entityId:zs},HU={id:zv,version:1,type:n.OutputMap,declaration:tr.outputs[0],index:0,writesValues:[Qv],parent:YU},zU={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",entityType:n.Condition,entityId:ha},ZU={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",entityType:n.VariableDeclaration,entityId:fa},KU={type:n.GenericReference,id:"create-new-bank-account-instance-operation-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},oI={process:null,id:zs,type:n.Operation,version:1,declaration:tr,inputs:[JU,sI],error:null,outputs:[HU],successCalls:[eI],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[ZU,zU],parent:KU,x:0,y:0},XU={type:n.GenericReference,id:"new-bank-account-data-variable-declaration-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},QU={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",entityType:n.Condition,entityId:ha},ex={id:fa,type:n.VariableDeclaration,version:1,inputs:[iI,rI],dataType:null,name:"New bank Account's data",description:null,readsValue:null,outputs:[],writesValues:[sI],successCalls:[oI],errorCalls:[],internalCalls:[],calledByError:[],calledBySuccess:[QU],calledByEntry:[],x:0,y:0,parent:XU},tx={id:"person-not-found-thrown-error-datatype-default-value-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-thrown-error-datatype-id",entityType:n.DataType},nx={id:"person-not-found-thrown-error-datatype-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-thrown-error-id",entityType:n.ReturnDeclaration};n.DataType,n.PrimitiveValue,D.String;const rx={id:"person-not-found-thrown-error-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-error-return-statement-id",entityType:n.ReturnStatement},ix={isError:!0,id:"person-not-found-thrown-error-id",type:n.ReturnDeclaration,version:1,dataType:null,name:"Person not found error",description:"If the person entity was not found this error is outputted",parent:rx,implements:null,required:!0,index:0,readsValue:null},ax={id:"person-not-found-error-return-statement-called-by-ref-id",type:n.GenericReference,entityId:ha,entityType:n.Condition},sx={id:"person-not-found-error-return-statement-parent-ref-id",type:n.GenericReference,entityId:ht,entityType:n.FunctionDeclaration},ox={id:"person-not-found-error-return-statement-id",type:n.ReturnStatement,version:1,throws:ix,outputs:[],calledBySuccess:[],calledByError:[ax],calledByEntry:[],x:0,y:0,parent:sx},lx={type:n.GenericReference,id:"person-not-empty-condition-called-by-ref-id",entityType:n.Search,entityId:ci},cx={type:n.GenericReference,id:"person-not-empty-condition-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},dx={type:n.GenericReference,id:"person-entity-to-check-map-reads-value-ref-id",entityType:n.OutputMap,entityId:xc},ux={type:n.GenericReference,id:"person-not-empty-condition-ref-two-id",entityType:n.Condition,entityId:ha},lI={id:"person-entity-to-check-map-id",version:1,type:n.InputMap,declaration:lr.inputs[0],name:null,description:null,readsValue:dx,index:0,defaultValue:null,parent:ux},px={type:n.Condition,id:ha,version:1,declaration:lr,inputs:[lI],calledByError:[],calledByEntry:[],calledBySuccess:[lx],successCalls:[ex,oI],errorCalls:[ox],x:0,y:0,parent:cx},yx={type:n.GenericReference,id:"search-person-by-id-output-entity-declaration-datatype-parent-ref-id",entityType:n.ValueDescriptor,entityId:Hv},hx={like:!1,inferred:!1,id:"search-person-by-id-output-entity-declaration-datatype-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,constant:!1,asType:!1,isNullable:!1,entity:pt,defaultValue:null,parent:yx},fx={type:n.GenericReference,id:"search-person-by-id-output-entity-declaration-parent-ref-id",entityType:n.Search,entityId:ci},cI={id:Hv,type:n.ValueDescriptor,version:1,dataType:hx,name:"Found person",description:"The person entity that was found",parent:fx,required:!0,index:0},mx={type:n.GenericReference,id:"search-person-by-id-output-entity-map-parent-ref-id",entityType:n.Search,entityId:ci},Tx={type:n.OutputMap,id:xc,version:1,declaration:cI,parent:mx,writesValues:[lI,rI],index:0},Ex={id:"search-person-by-id-input-declaration-datatype-parent-ref-id",type:n.GenericReference,entityId:"search-person-by-id-input-declaration-id",entityType:n.ArgumentDeclaration};n.DataType;const bx={type:n.GenericReference,id:"search-person-by-id-input-declaration-parent-ref-id",entityType:n.Search,entityId:ci},dI={id:"search-person-by-id-input-declaration-id",type:n.ArgumentDeclaration,version:1,dataType:null,name:"Person ID",description:"The unique identifier (ID) property of the person entity",implements:null,index:0,required:!0,parent:bx,writesValues:[]},Rx={type:n.GenericReference,id:"search-person-by-id-input-map-parent-ref-id",entityType:n.Search,entityId:ci},gx={id:"search-person-by-id-input-map-reads-value-ref-id",type:n.GenericReference,entityId:Yv,entityType:n.ArgumentDeclaration},uI={type:n.InputMap,id:"search-person-by-id-input-map",version:1,declaration:dI,name:null,description:null,readsValue:gx,defaultValue:null,parent:Rx,index:0},vx={from:{name:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},items:[{name:"*"}],where:[{name:"id",value:"{{dynamic_value_1}}"}]},Ix={type:n.GenericReference,id:"search-person-by-id-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},Dx={type:n.GenericReference,id:"search-person-by-id-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:ht},Px={type:n.Search,id:ci,version:1,name:"Search person by ID",description:"Searches for a person entity given the UUID",query:vx,inputsDeclarations:[dI],inputs:[uI],outputsDeclarations:[cI],outputs:[Tx],calledByError:[],calledByEntry:[Dx],calledBySuccess:[],error:null,successCalls:[px],errorCalls:[],parent:Ix,x:0,y:0};n.GenericReference,n.DataType;const Ax={id:"account-number-to-create-arg-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:Uc,entityType:n.ArgumentDeclaration},Ox={like:!1,inferred:!1,id:"account-number-to-create-arg-decl-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:j,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:Ax},Sx={entityType:n.FunctionDeclaration,entityId:ht,type:n.GenericReference,id:"account-number-to-create-arg-decl-parent-ref-id"},Cx={id:Uc,type:n.ArgumentDeclaration,version:1,name:"Account number",description:"The account number of the new bank account entity",dataType:Ox,implements:null,writesValues:[iI],required:!0,index:1,parent:Sx};n.GenericReference,n.DataType;const Bx={id:"new-bank-account-owner-arg-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:"new-bank-account-owner-arg-decl-id",entityType:n.ArgumentDeclaration},wx={like:!1,inferred:!1,id:"new-bank-account-owner-arg-decl-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ka,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:Bx},_x={entityType:n.FunctionDeclaration,entityId:ht,type:n.GenericReference,id:"new-bank-account-owner-arg-decl-parent-ref-id"},Nx={id:Yv,type:n.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",dataType:wx,implements:null,writesValues:[uI],required:!1,index:1,parent:_x},Mx={type:n.GenericReference,id:"replace-bank-account-in-company-parent-ref",entityType:n.Project,entityId:Y},Vx={type:n.GenericReference,id:"company-entity-to-modify-parent-ref",entityType:n.FunctionDeclaration,entityId:ht};n.GenericReference,n.DataType;const Lx={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:n.GenericReference,entityId:Fc,entityType:n.ArgumentDeclaration},Gx={like:!1,inferred:!1,id:"company-entity-to-modify-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Q,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:Lx},$x={id:Fc,type:n.ArgumentDeclaration,version:1,name:"Company",dataType:Gx,implements:null,description:"The company to replace the bank account for",writesValues:[nI],required:!0,index:0,parent:Vx},Fx={type:n.FunctionDeclaration,id:ht,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:[$x,Cx,Nx],index:null,implements:null,calls:[Px,nI],collapsed:!1,returnStatements:[],private:!1,x:0,y:0,parent:Mx},Ux={type:n.GenericReference,id:"e0a937bd-3a85-4037-a973-916985b9f94b",entityType:n.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},xx={type:n.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:Ux,x:0,y:0},jx={type:n.GenericReference,id:"948e6869-ae5b-4914-bea0-b9f02ad6a014",entityType:n.Project,entityId:"23b23d8b-1929-4505-a350-745c8550e731"},kx={type:n.GenericReference,id:"f3d6f2c6-1b3e-4e9d-8c9d-5b5b9f0b8d9c",entityType:n.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},qx={type:n.InstalledProject,version:1,id:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6",name:"Third Party Installed Project",description:null,functions:[xx],events:[],implements:kx,parent:jx,x:0,y:0},qc="global-counted-test-loop-id",pI="global-counted-test-loop-body-id",yI="global-counted-test-loop-body-current-iteration-value-argument-declaration-id",Jx={type:n.GenericReference,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:yI,entityType:n.ArgumentDeclaration},Wx={like:!1,inferred:!1,id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:null,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:Jx},Yx={id:"global-counted-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:pI,entityType:n.FunctionDeclaration},Hx={id:yI,type:n.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",dataType:Wx,implements:Ol,required:!0,index:0,writesValues:[],parent:Yx},zx={id:"global-counted-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:qc,entityType:n.Loop},Zx={id:pI,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[Hx],calls:[],implements:Sl,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:zx},di="random-company-employee-test-variable-id",Jc="manager-global-variable-id",hI="global-user-instance-id",bn="employee-mapped-dto-variable-id",kn="employee-mapped-dto-variable-instance-id",fI="random-employee-id-output-map-id",mI="random-employee-birth-date-output-map-id",TI="random-employee-department-output-map-id",EI="random-employee-manager-output-map-id",bI="manager-global-id-output-map-id",RI="global-user-instance-id-output-map-id",Kx="employee-mapped-dto-requester-id-input-map-id",gI="employee-mapped-dto-now-timestamp-input-map-id",Xx="employee-mapped-dto-id-input-map-id",Qx="employee-mapped-dto-birth-date-input-map-id",ej="employee-mapped-dto-department-input-map-id",tj="employee-mapped-dto-manager-input-map-id",nj={id:"global-counted-test-loop-iteration-number-input-map-parent-ref-id",type:n.GenericReference,entityId:qc,entityType:n.Loop};n.GenericReference,n.VariableDeclaration;const rj={id:"global-counted-test-loop-iteration-number-input-map-id",type:n.InputMap,version:1,name:null,description:null,declaration:is.inputs[0],defaultValue:null,readsValue:null,index:0,parent:nj},ij={id:"global-counted-test-loop-parent-ref-id",type:n.GenericReference,entityId:Y,entityType:n.Project},aj={id:"global-counted-test-loop-called-by-success-ref-id",type:n.GenericReference,entityId:kn,entityType:n.VariableDeclaration},sj={id:qc,type:n.Loop,version:1,declaration:is,inputs:[rj],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:Zx,calledByError:[],calledByEntry:[],calledBySuccess:[aj],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:ij},Wc="global-object-keys-test-loop-id",vI="global-object-keys-test-loop-body-id",II="global-object-keys-test-loop-body-current-iteration-value-argument-declaration-id",oj={type:n.GenericReference,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:II,entityType:n.ArgumentDeclaration},lj={like:!1,inferred:!1,id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:null,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:oj},cj={id:"global-object-keys-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:vI,entityType:n.FunctionDeclaration},dj={id:II,type:n.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",dataType:lj,implements:Pl,required:!0,index:0,writesValues:[],parent:cj},uj={id:"global-object-keys-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:Wc,entityType:n.Loop},pj={id:vI,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[dj],calls:[],implements:Mi,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:uj},yj={id:"global-object-keys-test-loop-iteration-object-input-map-parent-ref-id",type:n.GenericReference,entityId:Wc,entityType:n.Loop},hj={id:"global-object-keys-test-loop-iteration-object-input-map-reads-value-ref-id",type:n.GenericReference,entityId:bn,entityType:n.VariableDeclaration},DI={id:"global-object-keys-test-loop-iteration-object-input-map-id",type:n.InputMap,version:1,name:null,description:null,declaration:Mi.inputs[0],defaultValue:null,readsValue:hj,index:0,parent:yj},fj={id:"global-object-keys-test-loop-parent-ref-id",type:n.GenericReference,entityId:Y,entityType:n.Project},mj={id:"global-object-keys-test-loop-called-by-success-ref-two-id",type:n.GenericReference,entityId:kn,entityType:n.VariableDeclaration},Tj={id:"global-object-keys-test-loop-called-by-success-ref-one-id",type:n.GenericReference,entityId:bn,entityType:n.VariableDeclaration},Yc={id:Wc,type:n.Loop,version:1,declaration:Mi,inputs:[DI],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:pj,calledByError:[],calledByEntry:[],calledBySuccess:[Tj,mj],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:fj},Hc="global-object-values-test-loop-id",PI="global-object-values-test-loop-body-id",AI="global-object-values-test-loop-body-current-iteration-value-argument-declaration-id",Ej={type:n.GenericReference,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:AI,entityType:n.ArgumentDeclaration},bj={like:!1,inferred:!1,id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:null,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:Ej},Rj={id:"global-object-values-test-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:PI,entityType:n.FunctionDeclaration},gj={id:AI,type:n.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",dataType:bj,implements:Al,required:!0,index:0,writesValues:[],parent:Rj},vj={id:"global-object-values-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:Hc,entityType:n.Loop},Ij={id:PI,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[gj],calls:[],implements:Vi,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:vj},Dj={id:"global-object-values-test-loop-iteration-object-input-map-parent-ref-id",type:n.GenericReference,entityId:Hc,entityType:n.Loop},Pj={id:"global-object-values-test-loop-iteration-object-input-map-reads-value-ref-id",type:n.GenericReference,entityId:kn,entityType:n.VariableDeclaration},OI={id:"global-object-values-test-loop-iteration-object-input-map-id",type:n.InputMap,version:1,name:null,description:null,declaration:Vi.inputs[0],defaultValue:null,readsValue:Pj,index:0,parent:Dj},Aj={id:"global-object-values-test-loop-parent-ref-id",type:n.GenericReference,entityId:Y,entityType:n.Project},Oj={id:"global-object-values-test-loop-called-by-success-ref-id",type:n.GenericReference,entityId:kn,entityType:n.VariableDeclaration},SI={id:Hc,type:n.Loop,version:1,declaration:Vi,inputs:[OI],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:Ij,calledByError:[],calledByEntry:[],calledBySuccess:[Oj],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:Aj},zc="global-test-iterate-over-string-loop-id",Zc="global-test-iterate-over-string-loop-body-id",Zs="global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-id",CI="global-test-iterate-over-string-loop-iteration-list-input-map-id",Sj={type:n.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:Zs,entityType:n.ArgumentDeclaration},Cj={like:!1,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:null,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:Sj},Bj={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Zc,entityType:n.FunctionDeclaration},wj={id:Zs,type:n.ArgumentDeclaration,version:1,name:"Current character",description:"The current character value being processed.",dataType:Cj,implements:vl,required:!0,index:1,writesValues:[],parent:Bj},_j={type:n.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:Zs,entityType:n.ArgumentDeclaration},Nj={like:!1,inferred:!1,id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:null,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:_j},Mj={id:"global-test-iterate-over-string-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Zc,entityType:n.FunctionDeclaration},Vj={id:Zs,type:n.ArgumentDeclaration,version:1,name:"Current character",description:"The current character value being processed.",dataType:Nj,implements:Il,required:!0,index:0,writesValues:[],parent:Mj},Lj={id:"global-test-iterate-over-string-loop-body-parent-ref-id",type:n.GenericReference,entityId:zc,entityType:n.Loop},Gj={id:Zc,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[Vj,wj],calls:[],implements:Dl,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:Lj},$j={id:"global-test-iterate-over-string-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:zc,entityType:n.Loop},Fj={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-parent-ref-id",type:n.GenericReference,entityId:CI,entityType:n.InputMap},Uj={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-id",type:n.PrimitiveValue,name:D.String,version:1,value:"Hello",valueAsType:null,autogeneration:{type:qe.Random,rangeStart:4,rangeEnd:5},parent:Fj},xj={id:CI,type:n.InputMap,version:1,name:null,description:null,declaration:rs.inputs[0],defaultValue:Uj,readsValue:null,index:0,parent:$j},jj={id:"global-test-iterate-over-string-loop-parent-ref-id",type:n.GenericReference,entityId:Y,entityType:n.Project},kj={id:zc,type:n.Loop,version:1,declaration:rs,inputs:[xj],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:Gj,calledByError:[],calledByEntry:[],calledBySuccess:[],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:jj},Kc="iterate-over-list-loop-id",BI="iterate-over-list-loop-body-id",wI="iterate-over-list-loop-body-current-iteration-value-argument-declaration-id",qj={type:n.GenericReference,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-parent-ref-id",entityId:wI,entityType:n.ArgumentDeclaration},Jj={like:!1,inferred:!1,id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:null,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:qj},Wj={id:"iterate-over-list-loop-body-current-iteration-value-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:BI,entityType:n.FunctionDeclaration},Yj={id:wI,type:n.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",dataType:Jj,implements:ts,required:!0,index:0,writesValues:[],parent:Wj},Hj={id:"iterate-over-list-loop-body-parent-ref-id",type:n.GenericReference,entityId:Kc,entityType:n.Loop},zj={id:BI,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[Yj],calls:[],implements:ns,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:Hj},Zj={id:"iterate-over-list-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:Kc,entityType:n.Loop},Kj={id:"iterate-over-list-loop-iteration-list-input-map-id",type:n.InputMap,version:1,name:null,description:null,declaration:rr.inputs[0],defaultValue:null,readsValue:null,index:0,parent:Zj},Xj={id:"iterate-over-list-loop-parent-ref-id",type:n.GenericReference,entityId:Y,entityType:n.Project},Qj={id:Kc,type:n.Loop,version:1,declaration:rr,inputs:[Kj],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:zj,calledByError:[],calledByEntry:[],calledBySuccess:[],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:Xj};var Xc=(r=>(r.EQ="eq",r.NEQ="neq",r.GT="gt",r.GTE="gte",r.LT="lt",r.LTE="lte",r.LIKE="like",r.ILIKE="ilike",r))(Xc||{}),_I=(r=>(r.COUNT="count",r.SUM="sum",r.AVG="avg",r.MIN="min",r.MAX="max",r))(_I||{});const e8={from:{name:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},items:{from:{name:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},items:[{function:{name:_I.COUNT,items:["f8310850-a87e-405c-b182-4f1d5fa49240"]},alias:"employee_count"}],where:[{name:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3",operation:Xc.NEQ,value:null}]},where:[{name:"employee_count",operation:Xc.GT,value:1}]},t8={id:"find-companies-with-multiple-employees-and-bank-account-search-parent-ref-id",type:n.GenericReference,entityId:Y,entityType:n.Project},n8={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-parent-ref-id",type:n.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",entityType:n.Search},NI={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-id",type:n.ValueDescriptor,version:1,name:"companies",description:"List of companies with multiple employees and an existing bank account",dataType:null,required:!0,index:0,parent:n8},r8={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-parent-ref-id",type:n.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",entityType:n.Search},i8={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-id",type:n.OutputMap,version:1,declaration:NI,writesValues:[],index:0,parent:r8},a8={id:"find-companies-with-multiple-employees-and-bank-account",type:n.Search,version:1,name:"Find companies with multiple employees and a bank account",description:"This search statement finds companies with multiple employees and an existing bank account",inputsDeclarations:[],outputsDeclarations:[NI],inputs:[],outputs:[i8],query:e8,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:t8},s8={type:n.GenericReference,id:"employee-mapped-dto-manager-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:bI},o8={type:n.GenericReference,id:"employee-mapped-dto-manager-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:bn},MI={id:tj,type:n.InputMap,version:1,declaration:null,name:"manager_id",description:null,defaultValue:null,index:4,readsValue:s8,parent:o8},l8={type:n.GenericReference,id:"employee-mapped-dto-department-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:TI},c8={type:n.GenericReference,id:"employee-mapped-dto-department-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:bn},VI={id:ej,type:n.InputMap,version:1,declaration:null,name:"department_name",description:null,defaultValue:null,index:3,readsValue:l8,parent:c8},d8={type:n.GenericReference,id:"employee-mapped-dto-birth-date-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:mI},u8={type:n.GenericReference,id:"employee-mapped-dto-birth-date-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:bn},LI={id:Qx,type:n.InputMap,version:1,declaration:null,name:"birth_date",description:null,defaultValue:null,index:2,readsValue:d8,parent:u8},p8={type:n.GenericReference,id:"employee-mapped-dto-id-output-map-reads-value-ref-id",entityType:n.OutputMap,entityId:fI},y8={type:n.GenericReference,id:"employee-mapped-dto-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:bn},GI={id:Xx,type:n.InputMap,version:1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:p8,parent:y8},h8={type:n.GenericReference,id:"employee-mapped-dto-requester-id-output-map-reads-value-ref-id",entityType:n.OutputMap,entityId:RI},f8={type:n.GenericReference,id:"employee-mapped-dto-requester-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:bn},$I={id:Kx,type:n.InputMap,version:1,declaration:null,name:"requester_id",description:"The ID of the current user making the request",defaultValue:null,index:0,readsValue:h8,parent:f8},m8={type:n.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:Jc},T8={id:bI,type:n.OutputMap,version:1,declaration:je.properties[1],index:0,writesValues:[MI],parent:m8},E8={type:n.GenericReference,id:"manager-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:Jc},b8={like:!1,inferred:!1,id:"manager-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Vt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:E8,defaultValue:null},R8={type:n.GenericReference,id:"manager-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:EI},g8={type:n.GenericReference,id:"manager-variable-parent-ref-id",entityType:n.Project,entityId:Y},FI={id:Jc,type:n.VariableDeclaration,version:1,name:"Manager",dataType:b8,description:"A variable holding an inherited manager for testing purposes",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:R8,writesValues:[],inputs:[],outputs:[T8],internalCalls:[],parent:g8,x:0,y:0},v8={type:n.GenericReference,id:"random-company-employee-manager-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:di},I8={id:EI,type:n.OutputMap,version:1,declaration:Vt.properties[2],index:3,writesValues:[FI],parent:v8},D8={type:n.GenericReference,id:"random-company-employee-department-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:di},P8={id:TI,type:n.OutputMap,version:1,declaration:Vt.properties[0],index:2,writesValues:[VI],parent:D8},A8={type:n.GenericReference,id:"random-company-employee-birth-date-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:di},O8={id:mI,type:n.OutputMap,version:1,declaration:pt.properties[1],index:1,writesValues:[LI],parent:A8},S8={type:n.GenericReference,id:"random-company-employee-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:di},C8={id:fI,type:n.OutputMap,version:1,declaration:je.properties[1],index:0,writesValues:[GI],parent:S8},B8={type:n.GenericReference,id:"random-company-employee-test-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:di},w8={like:!1,inferred:!1,id:"random-company-employee-test-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Vt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:B8,defaultValue:null},_8={type:n.GenericReference,id:"random-company-employee-test-variable-parent-ref-id",entityType:n.Project,entityId:Y},N8={id:di,type:n.VariableDeclaration,version:1,name:"Company employee",dataType:w8,description:"A variable holding a random company employee for testing purposes",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[C8,O8,P8,I8],internalCalls:[],parent:_8,x:0,y:0},M8={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-parent-ref-id",entityType:n.InputMap,entityId:gI},V8={type:n.PrimitiveValue,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-id",name:D.Date,version:1,valueAsType:null,value:null,autogeneration:{type:qe.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:M8},L8={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-parent-ref-id",entityType:n.VariableInstance,entityId:kn},G8={id:gI,type:n.InputMap,version:1,declaration:null,name:"now",description:"The current timestamp when the operation is executed",defaultValue:V8,index:5,readsValue:null,parent:L8},$8={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-decl-ref-id",entityType:n.VariableDeclaration,entityId:bn},F8={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-called-by-success-ref-id",entityType:n.VariableDeclaration,entityId:kn},U8={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-parent-ref-id",entityType:n.Project,entityId:Y},x8={id:kn,type:n.VariableInstance,version:1,declaration:$8,calledByError:[],calledByEntry:[],calledBySuccess:[F8],successCalls:[Yc,SI],errorCalls:[],readsValue:null,writesValues:[OI],inputs:[G8],outputs:[],internalCalls:[],parent:U8,x:0,y:0},j8={type:n.GenericReference,id:"employee-mapped-dto-variable-parent-ref-id",entityType:n.Project,entityId:Y},k8={id:bn,type:n.VariableDeclaration,version:1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[Yc,x8],errorCalls:[],readsValue:null,writesValues:[DI],inputs:[$I,GI,LI,VI,MI],outputs:[],internalCalls:[],parent:j8,x:0,y:0},q8={type:n.GenericReference,id:"0e63e617-f9d3-42e8-bde0-1bb0b1df7034",entityType:n.VariableDeclaration,entityId:dc},J8={like:!1,inferred:!1,id:"e75645ce-d3df-4f07-a897-ae9ef4d917fd",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:pc,version:1,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:q8,defaultValue:null},W8={type:n.GenericReference,id:"e92a8ff5-3fef-4e0c-8d8f-92c930b2890b",entityType:n.Project,entityId:Y},UI={id:dc,type:n.VariableDeclaration,version:1,name:"Current user",description:"The user that is currently logged in",dataType:J8,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:W8},Y8={type:n.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",entityType:n.VariableInstance,entityId:hI},H8={id:RI,type:n.OutputMap,version:1,declaration:je.properties[1],index:0,writesValues:[$I],parent:Y8},z8={type:n.GenericReference,id:"global-user-instance-parent-ref-id",entityType:n.Project,entityId:Y},Z8={id:hI,type:n.VariableInstance,version:1,declaration:UI,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[H8],internalCalls:[],parent:z8,x:0,y:0},K8={type:n.GenericReference,id:"is-test-environment-variable-dcl-datatype-parent-ref-id",entityType:n.VariableDeclaration,entityId:dc},X8={type:n.GenericReference,id:"is-test-environment-variable-dcl-datatype-default-value-parent-ref-id",entityType:n.DataType,entityId:"is-test-environment-variable-dcl-datatype-id"},Q8={like:!1,inferred:!1,id:"is-test-environment-variable-dcl-datatype-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:wn,version:1,asType:!1,isList:!1,isNullable:!1,constant:!0,parent:K8,defaultValue:{id:"is-test-environment-variable-dcl-datatype-default-value-id",name:D.Boolean,version:1,value:null,type:n.PrimitiveValue,autogeneration:{type:qe.Random,rangeStart:null,rangeEnd:null},valueAsType:null,parent:X8}},e9={type:n.GenericReference,id:"is-test-environment-variable-dcl-main-project-ref-id",entityType:n.Project,entityId:Y},xI={id:"is-test-environment-variable-dcl-id",type:n.VariableDeclaration,version:1,name:"Is test envrioment",description:"Indicates whether the current environment is a test environment or not.",dataType:Q8,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:e9},t9={type:n.GenericReference,id:"is-test-environment-variable-instance-parent-ref-id",entityType:n.Project,entityId:Y},n9={id:"is-test-environment-variable-instance-id",type:n.VariableInstance,version:1,declaration:xI,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[],internalCalls:[],parent:t9,x:0,y:0},jI={type:n.Project,id:Y,version:1,name:"Mocked project to compile",description:"This project is used to test all sorts of features and edge cases. It is not meant to be used in production. Or to have any functionality that makes sense",projects:[qx],entities:[uc,pc,pt,JV,Vt,Us,jR,kR,ii,FM,Lt,MV,PR,CC,GM],functions:[p4,fg,wc,R4,S4,wg,_c,Tc,Fx,XR,mU],events:[D1],variableDeclarations:[xI,UI,Gc,N8,FI,k8],variableInstances:[n9,Z8],conditions:[],operations:[oi],functionCalls:[v0,BL],loops:[Qj,Yc,SI,kj,sj],searches:[a8]};var T=(r=>(r.Error="error",r.Warning="warning",r))(T||{}),S=(r=>(r.InvalidObjectStructure="invalid-object-structure",r.NameNotUniqueInScope="name-not-unique-in-scope",r.EmptyName="empty-name",r.MissingCaller="missing-caller",r.PropertyOverwrite="property-overwrite",r.MethodOverwrite="method-overwrite",r.NoOverlapWithImplementedSignature="no-overlap-with-implemented-signature",r.ReaderWriterIncompatibleDataType="reader-writer-incompatible-data-type",r.UnreachableEntity="unreachable-entity",r.InternalCallParentMissingDataType="internal-call-parent-missing-data-type",r.InternalCallParentDeclarationEntityInvalidType="internal-call-parent-declaration-entity-invalid-type",r.InternalCallDeclarationNotFoundInParentDatatypeEntity="internal-call-declaration-not-found-in-parent-datatype-entity",r.InternalCallDeclarationIsNotFunctionDeclaration="internal-call-declaration-is-not-function-declaration",r.InternalCallDeclarationNotInParentDatatypeEntity="internal-call-declaration-not-in-parent-datatype-entity",r))(S||{}),h=(r=>(r.RootReference="root-reference",r.ReferencedEntityNotFound="referenced-entity-not-found",r.EntityIdNotUnique="entity-id-not-unique",r.BuiltInEntityGenerated="built-in-entity-generated",r.BuiltInEntityUpdated="built-in-entity-updated",r.BuiltInEntityDeleted="built-in-entity-deleted",r.UnknownEntityType="unknown-entity-type",r.MissingTypeProperty="missing-type-property",r.MissingIdProperty="missing-id-property",r.BuiltInEntityParent="built-in-entity-parent",r.InvalidBuiltInEntityReference="invalid-built-in-entity-reference",r.RecommendedImplementAbstractEntityAction="recommended-implement-abstract-entity-action",r.RecommendedImplementOperationAction="recommended-implement-operation-action",r.RecommendedImplementFunctionCallAction="recommended-implement-function-call-action",r.RecommendedImplementVariableDeclarationAction="recommended-implement-variable-declaration-action",r.RecommendedImplementVariableInstanceAction="recommended-implement-variable-instance-action",r.RecommendedImplementConditionAction="recommended-implement-condition-action",r.InvalidReferenceObjectStructure="invalid-reference-object-structure",r.ContainsSingleButShouldBeReferenceList="contains-single-but-should-be-reference-list",r.ContainsListButShouldReferenceSingle="contains-list-but-should-reference-single",r.InvalidParentReference="invalid-parent-reference",r.InvalidImplementsReference="invalid-implements-reference",r.InvalidExtendsReference="invalid-extends-reference",r.InvalidGenerationActionPayload="invalid-generation-action-payload",r.InvalidReference="invalid-reference",r.InvalidInternalCallParentRelation="invalid-internal-call-parent-relation",r.InvalidUpdateEntityOperation="invalid-update-entity-operation",r.NewEntityWouldOverriteExisting="new-entity-would-overrite-existing",r.InvalidDownstreamPropertyOverride="invalid-downstream-property-override",r.UnrecognizedProperty="unrecognized-property",r.SelfReference="self-reference",r.DuplicateReference="duplicate-reference",r.CallerWithIncompatibleScope="caller-with-incompatible-scope",r.InvalidFunctionDeclarationForFunctionCall="invalid-function-declaration-for-function-call",r.InvalidInputMapDeclaration="invalid-input-map-declaration",r.InvalidActionDescriptorForOperation="invalid-action-descriptor-for-operation",r.InvalidActionDescriptorForCondition="invalid-action-descriptor-for-condition",r.InvalidActionDescriptorForLoop="invalid-action-descriptor-for-loop",r.InvalidInmutablePropertyOverride="invalid-inmutable-property-override",r.OutputOverwrite="output-overwrite",r.InputOverwrite="input-overwrite",r.IncompatibleScope="incompatible-scope",r.InvalidParentUpdate="invalid-parent-update",r.NonInteractiveEntityReferenced="non-interactive-entity-referenced",r.InvalidParentRelationType="invalid-parent-relation-type",r))(h||{}),M=(r=>(r.ScopeWithoutLogic="scope-without-logic",r.ExtendingAbstractEntity="extending-abstract-entity",r.ImplementingNonAbstractEntity="implementing-non-abstract-entity",r.AbstractEntityWithNonAbstractMethods="abstract-entity-with-non-abstract-methods",r.AbstractEntityWithNonAbstractProperties="abstract-entity-with-non-abstract-properties",r.StaticEntityWithNonStaticProperties="static-entity-with-non-static-properties",r.NonStaticPropertyInStaticEntity="non-static-property-in-static-entity",r.AbstractPropertyInNonAbstractEntity="abstract-property-in-non-abstract-entity",r.AbstractMethodInNonAbstractEntity="abstract-method-in-non-abstract-entity",r.IncorrectEntityImplementation="incorrect-entity-implementation",r.IncorrectMethodImplementation="incorrect-method-implementation",r.IncorrectPropertyImplementation="incorrect-property-implementation",r.PropertyImplementsNonAbstact="property-implements-non-abstract",r.NonStaticPropertyImplementsStatic="non-static-property-implements-static",r.StaticPropertyImplementsNonStatic="static-property-implements-non-static",r.PropertyImplementsIncompatibleType="property-implements-incompatible-type",r.MissingPropertyImplementation="missing-property-implementation",r.MissingMethodImplementation="missing-method-implementation",r.NoProperties="no-properties",r.ReadingFromIncompatibleType="reading-from-incompatible-type",r.WritingToIncompatibleType="writing-to-incompatible-type",r.InvalidPropertiesCombination="invalid-properties-combination",r.DisconnectedCallableEntity="disconnected-callable-entity",r.VariableReadsValueAndInternalCall="variable-reads-value-and-internal-call",r.VariableWritesValuesAndInternalCall="variable-writes-values-and-internal-call",r.VariableHasInputsAndInternalCall="variable-has-inputs-and-internal-calls",r.VariableHasOutputsAndInternalCall="variable-has-outputs-and-internal-call",r.VariableIsCalledAndHasInternalCall="variable-is-called-and-has-internal-call",r.VariableCallsOthersAndHasInternalCall="variable-calls-others-and-has-internal-call",r))(M||{});class E{constructor(e){c(this,"id");c(this,"message");c(this,"issue");c(this,"severity");c(this,"code");this.id=e.id,this.message=e.message,this.issue=e.issue,this.severity=e.severity,this.code=e.code}toEntityError(e){return this.code in S?new mr({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:e}):null}}class mr{constructor(e){c(this,"id");c(this,"message");c(this,"issue");c(this,"severity");c(this,"code");c(this,"entity");this.id=e.id,this.message=e.message,this.issue=e.issue,this.severity=e.severity,this.code=e.code,this.entity=e.entity}clone(){return new mr({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:this.entity})}}function r9(r){const e=new Set;return r.filter(t=>e.has(t.id)?!1:(e.add(t.id),!0))}function H(r){const e=r.entity.errors.find(i=>i.id===r.id);return e?{new:!1,error:e}:{new:!0,error:new mr(r)}}function i9(r,e){const t=new Map;return r.forEach(i=>{t.set(i.id,i)}),e.forEach(i=>{t.set(i.id,i)}),Array.from(t.values())}function ae(r,e){const t=[];return e.forEach(i=>{const a=r.find(s=>s.id===i.id);a?t.push(a):t.push(i)}),t}const ma=u.union([u.string(),u.number(),u.boolean(),u.date()]),kI=u.enum([qe.CurrentDateAndTime,qe.Random,qe.Unique]),Ks=u.object({type:kI,rangeStart:ma.nullable(),rangeEnd:ma.nullable()}),Ta=Ks.extend({type:u.literal(qe.Random),rangeStart:ma,rangeEnd:ma}),Qc=Ks.extend({type:u.literal(qe.Unique),rangeStart:u.null(),rangeEnd:u.null()}),qI=Ks.extend({type:u.literal(qe.CurrentDateAndTime),rangeStart:u.null(),rangeEnd:u.null()}),Xs=Ta.extend({rangeStart:u.number().nullable(),rangeEnd:u.number().nullable()}),JI=Xs.extend({rangeStart:u.number(),rangeEnd:u.null()}),WI=Xs.extend({rangeStart:u.null(),rangeEnd:u.number()}),YI=Xs.extend({rangeStart:u.number(),rangeEnd:u.number()}),Qs=Ta.extend({rangeStart:u.number().nullable(),rangeEnd:u.number().nullable()}),HI=Qs.extend({rangeStart:u.number(),rangeEnd:u.null()}),zI=Qs.extend({rangeStart:u.null(),rangeEnd:u.number()}),ZI=Qs.extend({rangeStart:u.number(),rangeEnd:u.number()}),eo=Ta.extend({rangeStart:u.date().nullable(),rangeEnd:u.date().nullable()}),KI=eo.extend({rangeStart:u.date(),rangeEnd:u.null()}),XI=eo.extend({rangeStart:u.null(),rangeEnd:u.date()}),QI=eo.extend({rangeStart:u.date(),rangeEnd:u.date()}),ed=Ta.extend({rangeStart:u.null(),rangeEnd:u.null()}),td=u.union([HI,zI,ZI]),nd=u.union([JI,WI,YI]),rd=u.union([KI,XI,QI,qI]),id=u.union([td,nd,rd,Qc,ed]);function Ea(){return u.union([u.object({type:u.literal(n.ValueDescriptor)}),u.record(u.string(),u.any())])}function eD(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.ValueDescriptor)})}function ad(){return u.object({id:u.string(),type:u.literal(n.ValueDescriptor),name:u.string(),required:u.boolean()})}function a9(){return ad().merge(u.object({version:u.number(),index:u.number()}))}function s9(){return ad().merge(u.object({}))}function o9(){return u.object({dataType:Rr(),parent:Er()})}function l9(){return a9().merge(o9())}function to(){return u.union([u.object({type:u.literal(n.PrimitiveEntity)}),u.record(u.string(),u.any())])}function no(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.PrimitiveEntity)})}function ro(){return u.object({id:u.string(),type:u.literal(n.PrimitiveEntity),name:u.string(),description:u.string().nullable(),static:u.boolean(),abstract:u.boolean()})}function c9(){return ro().merge(u.object({version:u.number()}))}function d9(){return ro().merge(u.object({}))}function u9(){return u.object({properties:u.array(Tr()),methods:u.array(Ot()),abstractMethods:u.array(rn()),extends:u.array(u.union([to(),ui()]))})}function p9(){return c9().merge(u9())}function Tr(){return u.union([u.object({type:u.literal(n.Property)}),u.record(u.string(),u.any())])}function tD(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.Property)})}function sd(){return u.object({id:u.string(),type:u.literal(n.Property),name:u.string(),description:u.string().nullable(),private:u.boolean(),static:u.boolean(),required:u.boolean(),abstract:u.boolean()})}function y9(){return sd().merge(u.object({version:u.number(),index:u.number()}))}function h9(){return sd().merge(u.object({}))}function f9(){return u.object({dataType:Rr(),implements:Tr().nullable(),parent:u.union([Ir(),no(),io()])})}function m9(){return y9().merge(f9())}function T9(){return u.enum([L.CRON_JOB,L.EXECUTION,L.HTTP_ENDPOINT,L.PERSISTED_ENTITY,L.RELATIONAL_DATABASE])}function ui(){return u.union([u.object({type:u.literal(n.BuiltInBaseEntity)}),u.record(u.string(),u.any())])}function io(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.BuiltInBaseEntity)})}function od(){return u.object({id:u.string(),version:u.number(),type:u.literal(n.BuiltInBaseEntity),name:T9(),description:u.string().nullable(),abstract:u.boolean(),static:u.boolean()})}function E9(){return od()}function b9(){return od().merge(u.object({}))}function R9(){return u.object({properties:u.array(Tr()),methods:u.array(Ot()),abstractMethods:u.array(rn()),extends:u.array(u.union([ui(),to()]))})}function g9(){return E9().merge(R9())}function rn(){return u.union([u.object({type:u.literal(n.ActionDescriptor)}),u.record(u.string(),u.any())])}function Er(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.ActionDescriptor)})}function ao(){return u.object({id:u.string(),type:u.literal(n.ActionDescriptor),name:u.string(),description:u.string().nullable()})}function v9(){return ao().merge(u.object({version:u.number()}))}function I9(){return ao().merge(u.object({}))}function D9(){return u.object({inputs:u.array(Ea()),outputs:u.array(Ea()),parent:u.union([gt(),Ir(),io(),no()]).nullable()})}function nD(){return v9().merge(D9())}function pi(){return u.union([u.object({type:u.literal(n.Loop)}),u.record(u.string(),u.any())])}function an(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.Loop)})}function rD(){return u.object({id:u.string(),type:u.literal(n.Loop)})}function P9(){return rD().merge(u.object({version:u.number(),x:u.number(),y:u.number()}))}function A9(){return rD().merge(u.object({declaration:u.union([u.string(),Ot()])}))}function O9(){return u.object({calledBySuccess:u.array(fe()),calledByError:u.array(fe()),calledByEntry:u.array(We()),declaration:rn(),inputs:u.array(Ht()),outputs:u.array(ft()),outputsDeclarations:u.array(Ea()),successCalls:u.array(Ye()),errorCalls:u.array(Ye()),error:ft(),body:Ot(),parent:u.union([In(),gt()]),breakStatements:u.array(mi()),continueStatements:u.array(yi())})}function S9(){return P9().merge(O9())}function yi(){return u.union([u.object({type:u.literal(n.ContinueStatement)}),u.record(u.string(),u.any())])}function hi(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.ContinueStatement)})}function ld(){return u.object({id:u.string(),type:u.literal(n.ContinueStatement)})}function C9(){return ld().merge(u.object({version:u.number(),x:u.number(),y:u.number()}))}function B9(){return ld().merge(u.object({}))}function w9(){return u.object({calledBySuccess:u.array(fe()),calledByError:u.array(fe()),calledByEntry:u.array(We()),outputs:u.array(Rn()),throws:u.optional(Rn()),parent:an()})}function _9(){return C9().merge(w9())}function br(){return u.union([u.object({type:u.literal(n.ReturnStatement)}),u.record(u.string(),u.any())])}function fi(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.ReturnStatement)})}function cd(){return u.object({id:u.string(),type:u.literal(n.ReturnStatement)})}function N9(){return cd().merge(u.object({version:u.number(),x:u.number(),y:u.number()}))}function M9(){return cd().merge(u.object({}))}function V9(){return u.object({calledBySuccess:u.array(fe()),calledByError:u.array(fe()),calledByEntry:u.array(We()),outputs:u.array(Rn()),throws:u.optional(Rn()),parent:In()})}function L9(){return N9().merge(V9())}function Rn(){return u.union([u.object({type:u.literal(n.ReturnDeclaration)}),u.record(u.string(),u.any())])}function iD(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.ReturnDeclaration)})}function dd(){return u.object({id:u.string(),type:u.literal(n.ReturnDeclaration),name:u.string(),description:u.string().nullable(),isError:u.boolean()})}function G9(){return dd().merge(u.object({version:u.number(),index:u.number()}))}function $9(){return dd().merge(u.object({}))}function F9(){return u.object({dataType:Rr().nullable(),readsValue:Da().nullable(),parent:u.union([fi(),Er(),gn(),hi()])})}function U9(){return G9().merge(F9())}function mi(){return u.union([u.object({type:u.literal(n.BreakStatement)}),u.record(u.string(),u.any())])}function gn(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.BreakStatement)})}function ud(){return u.object({id:u.string(),type:u.literal(n.BreakStatement)})}function x9(){return ud().merge(u.object({version:u.number(),x:u.number(),y:u.number()}))}function j9(){return ud().merge(u.object({}))}function k9(){return u.object({calledBySuccess:u.array(fe()),calledByError:u.array(fe()),calledByEntry:u.array(We()),outputs:u.array(Rn()),throws:u.optional(Rn()),parent:an()})}function q9(){return x9().merge(k9())}function ft(){return u.union([u.object({type:u.literal(n.OutputMap)}),u.record(u.string(),u.any())])}function pd(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.OutputMap)})}function yd(){return u.object({id:u.string(),type:u.literal(n.OutputMap)})}function J9(){return yd().merge(u.object({version:u.number(),index:u.number()}))}function W9(){return yd().merge(u.object({}))}function Y9(){return u.object({writesValues:u.array(vn()),declaration:u.union([Rn(),Tr()]),parent:u.union([fe(),an(),gn()])})}function H9(){return J9().merge(Y9())}function Ti(){return u.union([u.object({type:u.literal(n.FunctionCall)}),u.record(u.string(),u.any())])}function ba(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.FunctionCall)})}function hd(){return u.object({id:u.string(),type:u.literal(n.FunctionCall)})}function z9(){return hd().merge(u.object({version:u.number(),x:u.number(),y:u.number()}))}function Z9(){return hd().merge(u.object({}))}function K9(){return u.object({successCalls:u.array(Ye()),errorCalls:u.array(Ye()),calledBySuccess:u.array(fe()),calledByError:u.array(fe()),calledByEntry:u.array(We()),writesValues:u.array(vn()),declaration:Ot(),inputs:u.array(Ht()),outputs:u.array(ft()),error:u.optional(ft()),parent:u.union([In(),gt()])})}function X9(){return z9().merge(K9())}function Q9(){return u.enum([Le.Equal,Le.NotEqual,Le.MoreThan,Le.MoreThanOrEqual,Le.LessThan,Le.LessThanOrEqual,Le.And,Le.Or,Nt.Empty,Nt.NotEmpty])}function Ra(){return u.union([u.object({type:u.literal(n.Condition)}),u.record(u.string(),u.any())])}function so(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.Condition)})}function fd(){return u.object({id:u.string(),type:u.literal(n.Condition)})}function e6(){return fd().merge(u.object({version:u.number(),x:u.number(),y:u.number()}))}function t6(){return fd().merge(u.object({}))}function n6(){return u.object({successCalls:u.array(Ye()),errorCalls:u.array(Ye()),calledBySuccess:u.array(fe()),calledByError:u.array(fe()),calledByEntry:u.array(We()),leftValue:Ht(),rightValue:Ht().nullable(),operator:Q9(),parent:u.union([In(),gt()])})}function r6(){return e6().merge(n6())}function ga(){return u.union([u.object({type:u.literal(n.Search)}),u.record(u.string(),u.any())])}function va(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.Search)})}function md(){return u.object({id:u.string(),type:u.literal(n.Search),name:u.string(),query:u.any(),description:u.string().nullable()})}function i6(){return md().merge(u.object({version:u.number(),x:u.number(),y:u.number()}))}function a6(){return md().merge(u.object({}))}function s6(){return u.object({successCalls:u.array(Ye()),errorCalls:u.array(Ye()),calledBySuccess:u.array(fe()),calledByError:u.array(fe()),calledByEntry:u.array(We()),inputsDeclarations:u.array(vr()),inputs:u.array(Ht()),outputsDeclarations:u.array(Ea()),outputs:u.array(ft()),parent:u.union([In(),gt()]),error:ft().nullable()})}function o6(){return i6().merge(s6())}function Ia(){return u.union([u.object({type:u.literal(n.InternalCall)}),u.record(u.string(),u.any())])}function Td(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.InternalCall)})}function Ed(){return u.object({id:u.string(),type:u.literal(n.InternalCall),index:u.number()})}function l6(){return Ed().merge(u.object({version:u.number(),index:u.number()}))}function c6(){return Ed().merge(u.object({declaration:u.union([u.string(),Ot()])}))}function d6(){return u.object({successCalls:u.array(Ye()),errorCalls:u.array(Ye()),calledBySuccess:u.array(fe()),calledByError:u.array(fe()),calledByEntry:u.array(We()),writesValues:u.array(vn()),declaration:Ot(),inputs:u.array(Ht()),outputs:u.array(ft()),parent:qn(),error:u.optional(ft())})}function u6(){return l6().merge(d6())}function Ht(){return u.union([u.object({type:u.literal(n.InputMap)}),u.record(u.string(),u.any())])}function oo(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.InputMap)})}function bd(){return u.object({id:u.string(),type:u.literal(n.InputMap),name:u.string().nullable().optional(),description:u.string().nullable().optional()})}function p6(){return bd().merge(u.object({version:u.number(),index:u.number()}))}function y6(){return bd().merge(u.object({}))}function h6(){return u.object({defaultValue:Rd().nullable(),declaration:u.union([vr(),Tr()]).nullable(),readsValue:Da().nullable(),parent:u.union([fe(),oo(),an(),gn()])})}function f6(){return p6().merge(h6())}function Ei(){return u.union([u.object({type:u.literal(n.Operation)}),u.record(u.string(),u.any())])}function bi(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.Operation)})}function lo(){return u.object({id:u.string(),type:u.literal(n.Operation)})}function m6(){return lo().merge(u.object({version:u.number(),x:u.number(),y:u.number()}))}function T6(){return lo().merge(u.object({}))}function E6(){return lo().merge(u.object({successCalls:u.array(Ye()),errorCalls:u.array(Ye()),calledBySuccess:u.array(fe()),calledByError:u.array(fe()),calledByEntry:u.array(We()),writesValues:u.array(vn()),declaration:rn(),inputs:u.array(Ht()),outputs:u.array(ft()),error:u.array(ft()),parent:u.union([In(),gt()])}))}function b6(){return m6().merge(E6())}function co(){return u.union([u.string(),u.number(),u.boolean(),u.null(),u.date()])}function aD(){return u.record(u.string(),co())}function R6(){return u.array(u.union([co(),aD()]))}function sD(){return u.union([co(),aD(),R6()])}function oD(){return u.union([co(),sD()])}function lD(){return u.enum([D.String,D.Number,D.Boolean,D.Null,D.Date,D.JSON,D.Enum,D.File,D.UUID,D.EntityTemplate,D.ActionDescriptor])}function g6(){return u.union([Ir(),bi(),Pa()])}function v6(){return u.object({id:u.string(),name:lD(),type:u.literal(n.PrimitiveValue),value:oD(),autogeneration:id.nullable()})}function I6(){return v6().merge(u.object({}))}function zt(){return u.object({id:u.string(),version:u.number(),name:lD(),type:u.literal(n.PrimitiveValue),value:oD(),valueAsType:g6().nullable(),autogeneration:id.nullable(),parent:u.union([gd(),oo()])})}function D6(){return zt().extend({name:u.literal(D.String),value:u.string(),autogeneration:td.nullable()})}function P6(){return zt().extend({name:u.literal(D.Number),value:u.number(),autogeneration:nd.nullable()})}function A6(){return zt().extend({name:u.literal(D.Boolean),value:u.boolean(),autogeneration:ed.nullable()})}function O6(){return zt().extend({name:u.literal(D.Null),value:u.null(),autogeneration:u.null()})}function S6(){return zt().extend({name:u.literal(D.Date),value:u.date(),autogeneration:rd.nullable()})}function C6(){return zt().extend({name:u.literal(D.JSON),value:sD(),autogeneration:u.null()})}function B6(){return zt().extend({name:u.literal(D.Enum),value:u.string(),autogeneration:u.null()})}function w6(){return zt().extend({name:u.literal(D.File),value:u.string(),autogeneration:u.null()})}function _6(){return zt().extend({name:u.literal(D.UUID),value:u.string(),autogeneration:Qc.nullable()})}function N6(){return zt().extend({name:u.literal(D.EntityTemplate),value:Ir(),autogeneration:u.null()})}function M6(){return zt().extend({name:u.literal(D.ActionDescriptor),value:Pa(),autogeneration:u.null()})}function Rd(){return u.union([D6(),P6(),A6(),O6(),S6(),C6(),B6(),w6(),_6(),N6(),M6()])}function Rr(){return u.union([u.object({type:u.literal(n.DataType)}),u.record(u.string(),u.any())])}function gd(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.DataType)})}function vd(){return u.object({id:u.string(),type:u.literal(n.DataType),isNullable:u.boolean(),isList:u.boolean(),constant:u.boolean(),asType:u.boolean(),options:u.array(u.string()).optional()})}function V6(){return vd().merge(u.object({version:u.number()}))}function L6(){return vd().merge(u.object({}))}function G6(){return u.object({defaultValue:Rd().nullable(),entity:u.union([Ri(),ui(),to(),rn()]).nullable(),parent:u.union([tD(),uD(),eD()])})}function $6(){return V6().merge(G6())}function Id(){return u.union([u.object({type:u.literal(n.VariableDeclaration)}),u.record(u.string(),u.any())])}function F6(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.VariableDeclaration)})}function Dd(){return u.object({id:u.string(),type:u.literal(n.VariableDeclaration),name:u.string(),description:u.string().nullable()})}function U6(){return Dd().merge(u.object({version:u.number(),x:u.number(),y:u.number()}))}function x6(){return Dd().merge(u.object({}))}function j6(){return u.object({dataType:Rr().nullable(),readsValue:Da().nullable(),writesValues:u.array(vn()),inputs:u.array(Ht()),outputs:u.array(ft()),successCalls:u.array(Ye()),errorCalls:u.array(Ye()),internalCalls:u.array(Ia()),calledBySuccess:u.array(fe()),calledByError:u.array(fe()),calledByEntry:u.array(We()),parent:u.union([In(),gt()])})}function k6(){return U6().merge(j6())}function cD(){return u.union([u.object({type:u.literal(n.VariableInstance)}),u.record(u.string(),u.any())])}function q6(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.VariableInstance)})}function Pd(){return u.object({id:u.string(),type:u.literal(n.VariableInstance)})}function J6(){return Pd().merge(u.object({version:u.number(),x:u.number(),y:u.number()}))}function W6(){return Pd().merge(u.object({}))}function Y6(){return u.object({declaration:Id(),dataType:Rr().nullable(),readsValue:Da().nullable(),writesValues:u.array(vn()),inputs:u.array(Ht()),outputs:u.array(ft()),successCalls:u.array(Ye()),errorCalls:u.array(Ye()),internalCalls:u.array(Ia()),calledBySuccess:u.array(fe()),calledByError:u.array(fe()),calledByEntry:u.array(We()),parent:u.union([In(),gt()])})}function H6(){return J6().merge(Y6())}function Ad(){return u.union([u.object({type:u.literal(n.InstalledProject)}),u.record(u.string(),u.any())])}function uo(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.InstalledProject)})}function z6(){return u.object({id:u.string(),type:u.literal(n.InstalledProject)})}function Z6(){return u.object({version:u.number(),x:u.number(),y:u.number()})}function K6(){return u.object({})}function X6(){return u.object({implements:gt(),description:u.string().nullable(),functions:u.array(Ot()),events:u.array(Od()),parent:gt()})}function Q6(){return Z6().merge(X6())}function Od(){return u.union([u.object({type:u.literal(n.GlobalEvent)}),u.record(u.string(),u.any())])}function e3(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.GlobalEvent)})}function po(){return u.object({id:u.string(),type:u.literal(n.GlobalEvent),name:u.string(),collapsed:u.boolean()})}function t3(){return po().merge(u.object({version:u.number(),x:u.number(),y:u.number()}))}function n3(){return po().merge(u.object({}))}function r3(){return po().merge(u.object({returnStatements:u.array(br()),implements:u.array(nD()),inputs:u.array(vr()),calls:u.array(Ye()),parent:u.union([gt(),uo()])}))}function i3(){return t3().merge(r3())}function gr(){return u.union([Id(),cD()])}function qn(){return u.union([F6(),q6()])}function vn(){return u.union([gr(),Ht(),Rn()])}function dD(){return u.union([qn(),oo(),iD()])}function Da(){return u.union([gr(),vr(),ft(),Ei(),Ia(),Ti()])}function a3(){return u.union([qn(),Sd(),pd(),bi(),Td(),ba()])}function s3(){return u.union([vr(),ft(),vn()])}function uD(){return u.union([Sd(),pd(),dD()])}function yo(){return Od()}function ho(){return e3()}function fo(){return u.union([Ei(),Ti(),Ra(),ga(),gr(),Ia(),pi()])}function fe(){return u.union([bi(),ba(),so(),va(),qn(),Td(),an()])}function mo(){return u.union([Ei(),Ti(),Ra(),ga(),gr(),pi()])}function To(){return u.union([bi(),ba(),so(),va(),qn(),an()])}function pD(){return u.union([fo(),br(),mi(),yi()])}function Ye(){return u.union([fe(),fi(),gn(),hi()])}function yD(){return u.union([mo(),br(),mi(),yi()])}function hD(){return u.union([To(),fi(),gn(),hi()])}function Jn(){return u.union([Ot(),yo()])}function We(){return u.union([Pa(),ho()])}function o3(){return u.union([fo(),Jn()])}function l3(){return u.union([fe(),We()])}function c3(){return u.union([mo(),Jn()])}function d3(){return u.union([To(),We()])}function u3(){return u.union([pD(),Jn()])}function p3(){return u.union([Ye(),We()])}function y3(){return u.union([yD(),Jn()])}function h3(){return u.union([hD(),We()])}function f3(){return u.union([Jn(),pi()])}function In(){return u.union([We(),an()])}function m3(){return u.union([fo(),Jn()])}function T3(){return u.union([fe(),We()])}function E3(){return u.union([mo(),Jn()])}function b3(){return u.union([To(),We()])}function R3(){return u.union([br(),mi(),yi()])}function g3(){return u.union([fi(),gn(),hi()])}function v3(){return u.union([ui(),M3(),Ad(),Ri(),Ot(),yo(),gr(),Ht(),ft(),Ra(),Ei(),Ti(),Rn(),vr(),to(),Rr(),Tr(),rn(),br(),yi(),mi(),pi(),ga(),rn(),rn(),Ea(),Ia()])}function I3(){return u.union([io(),gt(),uo(),Ir(),Pa(),ho(),qn(),oo(),pd(),so(),bi(),ba(),iD(),Sd(),no(),gd(),tD(),Er(),fi(),hi(),gn(),an(),va(),Er(),Er(),eD(),Td()])}function D3(){return u.union([Ad(),Ri(),Ot(),yo(),gr(),Ra(),Ei(),Ti(),br(),yi(),mi(),pi(),ga()])}function P3(){return u.union([uo(),Ir(),Pa(),ho(),qn(),so(),bi(),ba(),fi(),hi(),gn(),an(),va()])}function vr(){return u.union([u.object({type:u.literal(n.ArgumentDeclaration)}),u.record(u.string(),u.any())])}function Sd(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.ArgumentDeclaration)})}function Cd(){return u.object({id:u.string(),type:u.literal(n.ArgumentDeclaration)})}function A3(){return Cd().merge(u.object({version:u.number(),x:u.number(),y:u.number()}))}function O3(){return Cd().merge(u.object({}))}function S3(){return u.object({dataType:Rr().nullable(),writesValues:u.array(vn()),parent:u.union([We(),Er(),Er(),va(),gn()])})}function C3(){return A3().merge(S3())}function Ot(){return u.union([u.object({type:u.literal(n.FunctionDeclaration)}),u.record(u.string(),u.any())])}function Pa(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.FunctionDeclaration)})}function Bd(){return u.object({id:u.string(),type:u.literal(n.FunctionDeclaration),name:u.string(),description:u.string().nullable()})}function B3(){return Bd().merge(u.object({version:u.number(),x:u.number(),y:u.number(),index:u.number().nullable()}))}function w3(){return Bd()}function _3(){return u.object({inputs:u.array(vr()),implements:rn().nullable(),returnStatements:u.array(br()),parent:u.union([gt(),uo(),Ir(),an(),io(),no()])})}function N3(){return B3().merge(_3())}function M3(){return u.union([u.object({type:u.literal(n.Project)}),u.record(u.string(),u.any())])}function gt(){return u.object({entityType:u.literal(n.Project),entityId:u.string(),id:u.string(),type:u.literal(n.GenericReference)})}function wd(){return u.object({id:u.string(),type:u.literal(n.Project),name:u.string(),description:u.string().nullable()})}function V3(){return wd().merge(u.object({version:u.number()}))}function L3(){return wd()}function G3(){return u.object({entities:u.array(Ri()),functions:u.array(Ot()),events:u.array(Od()),projects:u.array(Ad()),variableDeclarations:u.array(Id()),variableInstances:u.array(cD()),conditions:u.array(Ra()),operations:u.array(Ei()),functionCalls:u.array(Ti()),loops:u.array(pi()),searches:u.array(ga())})}function $3(){return V3().merge(G3())}function Ri(){return u.union([u.object({type:u.literal(n.CustomEntity)}),u.record(u.string(),u.any())])}function Ir(){return u.object({id:u.string(),type:u.literal(n.GenericReference),entityId:u.string(),entityType:u.literal(n.CustomEntity)})}function _d(){return u.object({id:u.string(),type:u.literal(n.CustomEntity),name:u.string(),description:u.string().nullable(),static:u.boolean(),abstract:u.boolean()})}function F3(){return _d().merge(u.object({version:u.number(),x:u.number(),y:u.number()}))}function U3(){return _d().merge(u.object({}))}function x3(){return u.union([gt(),gd()])}function j3(){return u.object({properties:u.array(Tr()),methods:u.array(Ot()),abstractMethods:u.array(rn()),extends:u.array(u.union([Ri(),ui()])),implements:u.array(u.union([Ri(),ui()])),parent:x3()})}function k3(){return F3().merge(j3())}function q3(r){const e=k3(),t=r.toJSON();e.safeParse(t).success;const a=r.implements.flatMap(f=>Y3(r,f)),s=r.extends.flatMap(f=>H3(r,f)),o=Z3(r),l=z3(r);r.methods.flatMap(f=>f.validate());const p=[...a,...s,...o,...l];return ae(r.errors,p)}function J3(r,e){const t=e.properties.filter(s=>s.abstract),i=[];let a=[...r.properties];return t.forEach(s=>{const o=a.find(l=>{var p;return((p=l.implements)==null?void 0:p.id)===s.id});o?a=a.filter(l=>l.id!==o.id):i.push(s)}),i}function W3(r,e){const t=e.abstractMethods,i=[];let a=[...r.methods];return t.forEach(s=>{const o=a.find(l=>{var p;return((p=l.implements)==null?void 0:p.id)===s.id});o?a=a.filter(l=>l.id!==o.id):i.push(s)}),i}function Y3(r,e){const t=[];if(!e.abstract){const f=H({id:r.id+"--"+M.ImplementingNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is implementing a non-abstract entity "${e.name}" with id "${e.id}"`,issue:null,severity:T.Error,code:M.ImplementingNonAbstractEntity,entity:r});return t.push(f.error),t}const i=e.properties.filter(f=>f.abstract),a=[];let s=[...r.properties];i.forEach(f=>{const m=s.find(b=>{var v;return((v=b.implements)==null?void 0:v.id)===f.id});m?s=s.filter(b=>b.id!==m.id):a.push(f)}),a.length&&a.forEach(f=>{const m=H({id:r.id+"--"+M.MissingPropertyImplementation+"--"+f.id,message:`Property "${f.name}" with id "${f.id}" of entity "${e.name}" with id "${e.id}" is not implemented when entity "${r.name}" with id "${r.id}" implements it`,issue:null,severity:T.Error,code:M.MissingPropertyImplementation,entity:r});t.push(m.error)});const o=[];let l=[...r.methods];e.abstractMethods.forEach(f=>{const m=l.find(b=>{var v;return((v=b.implements)==null?void 0:v.id)===f.id});m?l=l.filter(b=>b.id!==m.id):o.push(f)}),o.length&&o.forEach(f=>{const m=H({id:r.id+"--"+M.MissingMethodImplementation+"--"+f.id,message:`Method "${f.name}" with id "${f.id}" of entity "${e.name}" with id "${e.id}" is not implemented when entity "${r.name}" with id "${r.id}" implements it`,issue:null,severity:T.Error,code:M.MissingMethodImplementation,entity:r});t.push(m.error)});const p=[];e.properties.forEach(f=>{const m=s.find(b=>b.name===f.name);m&&p.push([m,f])}),p.length&&p.forEach(([f])=>{const m=H({id:r.id+"--"+S.PropertyOverwrite+"--"+f.id,message:`Property "${f.name}" with id "${f.id}" of entity "${r.name}" with id "${r.id}" overwrites the property with the same name from the base entity "${e.name}" with id "${e.id}"`,issue:null,severity:T.Error,code:S.PropertyOverwrite,entity:r});t.push(m.error)});const y=[];return e.methods.forEach(f=>{const m=l.find(b=>b.name===f.name);m&&y.push([m,f])}),y.length&&y.forEach(([f])=>{const m=H({id:r.id+"--"+S.MethodOverwrite+"--"+f.id,message:`Method "${f.name}" with id "${f.id}" of entity "${r.name}" with id "${r.id}" overwrites the method with the same name from the base entity "${e.name}" with id "${e.id}"`,issue:null,severity:T.Error,code:S.MethodOverwrite,entity:r});t.push(m.error)}),t}function H3(r,e){const t=[],i=[];if(e.abstract){const s=H({id:r.id+"--"+M.ExtendingAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is extending an abstract entity "${e.name}" with id "${e.id}"`,issue:null,severity:T.Error,code:M.ExtendingAbstractEntity,entity:r});return t.push(s.error),t}r.properties.forEach(s=>{var l;const o=e.properties.find(p=>p.name===s.name);((l=s.implements)==null?void 0:l.id)!==(o==null?void 0:o.id)&&o&&i.push(s)}),i.length&&i.forEach(s=>{const o=H({id:r.id+"--"+S.PropertyOverwrite,message:`Property "${s.name}" with id "${s.id}" of entity "${r.name}" with id "${r.id}" overwrites the property with the same name from the extended entity "${e.name}" with id "${e.id}"`,issue:null,severity:T.Error,code:S.PropertyOverwrite,entity:r});t.push(o.error)});const a=[];return r.methods.forEach(s=>{var l;const o=e.methods.find(p=>p.name===s.name);((l=s.implements)==null?void 0:l.id)!==(o==null?void 0:o.id)&&o&&a.push(s)}),a.length&&a.forEach(s=>{const o=H({id:r.id+"--"+S.MethodOverwrite,message:`Method "${s.name}" with id "${s.id}" of entity "${r.name}" with id "${r.id}" overwrites the method with the same name from the extended entity "${e.name}" with id "${e.id}"`,issue:null,severity:T.Error,code:S.MethodOverwrite,entity:r});t.push(o.error)}),t}function z3(r){const e=[];if(!r.properties.length){const t=H({id:r.id+"--"+M.NoProperties,message:"No properties implemented",issue:null,severity:T.Warning,code:M.NoProperties,entity:r});e.push(t.error)}return r.properties.forEach(t=>{t.validate()}),e}function Z3(r){const e=[];if(r.abstract){if(r.methods.length){const t=H({id:r.id+"--"+M.AbstractEntityWithNonAbstractMethods,message:`Entity "${r.name}" with id "${r.id}" is marked as abstract but has non-abstract methods`,issue:null,severity:T.Error,code:M.AbstractEntityWithNonAbstractMethods,entity:r});e.push(t.error)}if(r.properties.some(t=>!t.abstract)){const t=H({id:r.id+"--"+M.AbstractEntityWithNonAbstractProperties,message:`Entity "${r.name}" with id "${r.id}" is marked as abstract but has non-abstract properties`,issue:null,severity:T.Error,code:M.AbstractEntityWithNonAbstractProperties,entity:r});e.push(t.error),r.properties.forEach(i=>{if(!i.abstract){const a=H({id:r.id+"--"+M.StaticEntityWithNonStaticProperties+"--"+i.id,message:`Property "${i.name}" with id "${i.id}" of entity "${r.name}" with id "${r.id}" is not marked as abstract but the entity is marked as abstract`,issue:null,severity:T.Error,code:M.StaticEntityWithNonStaticProperties,entity:r});e.push(a.error)}})}}else{if(r.abstractMethods.length){const t=H({id:r.id+"--"+M.AbstractPropertyInNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is not marked as abstract but has abstract methods`,issue:null,severity:T.Error,code:M.AbstractPropertyInNonAbstractEntity,entity:r});e.push(t.error)}if(r.properties.some(t=>t.abstract)){const t=H({id:r.id+"--"+M.AbstractMethodInNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is not marked as abstract but has abstract properties`,issue:null,severity:T.Error,code:M.AbstractMethodInNonAbstractEntity,entity:r});e.push(t.error),r.properties.forEach(i=>{if(i.abstract){const a=H({id:r.id+"--"+M.AbstractMethodInNonAbstractEntity+"--"+i.id,message:`Property "${i.name}" with id "${i.id}" of entity "${r.name}" with id "${r.id}" is marked as abstract but the entity is not marked as abstract`,issue:null,severity:T.Error,code:M.AbstractMethodInNonAbstractEntity,entity:r});e.push(a.error)}})}}if(r.static&&r.properties.some(t=>!t.static)){const t=H({id:r.id+"--"+M.StaticEntityWithNonStaticProperties,message:`Entity "${r.name}" with id "${r.id}" is marked as static but has non-static properties`,issue:null,severity:T.Error,code:M.StaticEntityWithNonStaticProperties,entity:r});e.push(t.error),r.properties.forEach(i=>{if(!i.static){const a=H({id:r.id+"--"+M.NonStaticPropertyInStaticEntity+"--"+i.id,message:`Property "${i.name}" with id "${i.id}" of entity "${r.name}" with id "${r.id}" is not marked as static but the entity is marked as static`,issue:null,severity:T.Error,code:M.NonStaticPropertyInStaticEntity,entity:r});e.push(a.error)}})}return e}function K3(r){return r instanceof Error&&r.name==="ZodError"&&"issues"in r&&Array.isArray(r.issues)}var X3=class extends Error{constructor(e,t){super(e,t);c(this,"name");c(this,"details");this.name="ZodValidationError",this.details=Q3(t)}toString(){return this.message}};function Q3(r){if(r){const e=r.cause;if(K3(e))return e.issues}return[]}function e5(r){return r.length!==0}var t5=/[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*/u;function n5(r){return r.length===1?r[0].toString():r.reduce((e,t)=>{if(typeof t=="number")return e+"["+t.toString()+"]";if(t.includes('"'))return e+'["'+r5(t)+'"]';if(!t5.test(t))return e+'["'+t+'"]';const i=e.length===0?"":".";return e+i+t},"")}function r5(r){return r.replace(/"/g,'\\"')}var i5="; ",a5=99,fD="Validation error",s5=": ",o5=", or ";function l5(r={}){const{issueSeparator:e=i5,unionSeparator:t=o5,prefixSeparator:i=s5,prefix:a=fD,includePath:s=!0,maxIssuesInMessage:o=a5}=r;return l=>{const p=l.slice(0,o).map(y=>Eo({issue:y,issueSeparator:e,unionSeparator:t,includePath:s})).join(e);return c5(p,a,i)}}function Eo(r){const{issue:e,issueSeparator:t,unionSeparator:i,includePath:a}=r;if(e.code===w.invalid_union)return e.unionErrors.reduce((s,o)=>{const l=o.issues.map(p=>Eo({issue:p,issueSeparator:t,unionSeparator:i,includePath:a})).join(t);return s.includes(l)||s.push(l),s},[]).join(i);if(e.code===w.invalid_arguments)return[e.message,...e.argumentsError.issues.map(s=>Eo({issue:s,issueSeparator:t,unionSeparator:i,includePath:a}))].join(t);if(e.code===w.invalid_return_type)return[e.message,...e.returnTypeError.issues.map(s=>Eo({issue:s,issueSeparator:t,unionSeparator:i,includePath:a}))].join(t);if(a&&e5(e.path)){if(e.path.length===1){const s=e.path[0];if(typeof s=="number")return`${e.message} at index ${s}`}return`${e.message} at "${n5(e.path)}"`}return e.message}function c5(r,e,t){return e!==null?r.length>0?[e,r].join(t):e:r.length>0?r:fD}function d5(r,e={}){const i=u5(e)([r]);return new X3(i,{cause:new Rt([r])})}function u5(r){return"messageBuilder"in r?r.messageBuilder:l5(r)}var mD="1.13.7",TD=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},bo=Array.prototype,Nd=Object.prototype,ED=typeof Symbol<"u"?Symbol.prototype:null,p5=bo.push,Aa=bo.slice,Oa=Nd.toString,y5=Nd.hasOwnProperty,bD=typeof ArrayBuffer<"u",h5=typeof DataView<"u",f5=Array.isArray,RD=Object.keys,gD=Object.create,vD=bD&&ArrayBuffer.isView,m5=isNaN,T5=isFinite,ID=!{toString:null}.propertyIsEnumerable("toString"),DD=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],E5=Math.pow(2,53)-1;function vt(r,e){return e=e==null?r.length-1:+e,function(){for(var t=Math.max(arguments.length-e,0),i=Array(t),a=0;a<t;a++)i[a]=arguments[a+e];switch(e){case 0:return r.call(this,i);case 1:return r.call(this,arguments[0],i);case 2:return r.call(this,arguments[0],arguments[1],i)}var s=Array(e+1);for(a=0;a<e;a++)s[a]=arguments[a];return s[e]=i,r.apply(this,s)}}function Wn(r){var e=typeof r;return e==="function"||e==="object"&&!!r}function b5(r){return r===null}function PD(r){return r===void 0}function AD(r){return r===!0||r===!1||Oa.call(r)==="[object Boolean]"}function R5(r){return!!(r&&r.nodeType===1)}function ot(r){var e="[object "+r+"]";return function(t){return Oa.call(t)===e}}const Md=ot("String"),OD=ot("Number"),g5=ot("Date"),v5=ot("RegExp"),I5=ot("Error"),SD=ot("Symbol"),CD=ot("ArrayBuffer");var BD=ot("Function"),D5=TD.document&&TD.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof D5!="function"&&(BD=function(r){return typeof r=="function"||!1});const mt=BD,wD=ot("Object");var _D=h5&&(!/\[native code\]/.test(String(DataView))||wD(new DataView(new ArrayBuffer(8)))),Vd=typeof Map<"u"&&wD(new Map),P5=ot("DataView");function A5(r){return r!=null&&mt(r.getInt8)&&CD(r.buffer)}const Ro=_D?A5:P5,Dr=f5||ot("Array");function Yn(r,e){return r!=null&&y5.call(r,e)}var Ld=ot("Arguments");(function(){Ld(arguments)||(Ld=function(r){return Yn(r,"callee")})})();const Gd=Ld;function O5(r){return!SD(r)&&T5(r)&&!isNaN(parseFloat(r))}function ND(r){return OD(r)&&m5(r)}function MD(r){return function(){return r}}function VD(r){return function(e){var t=r(e);return typeof t=="number"&&t>=0&&t<=E5}}function LD(r){return function(e){return e==null?void 0:e[r]}}const go=LD("byteLength"),S5=VD(go);var C5=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function B5(r){return vD?vD(r)&&!Ro(r):S5(r)&&C5.test(Oa.call(r))}const GD=bD?B5:MD(!1),It=LD("length");function w5(r){for(var e={},t=r.length,i=0;i<t;++i)e[r[i]]=!0;return{contains:function(a){return e[a]===!0},push:function(a){return e[a]=!0,r.push(a)}}}function $D(r,e){e=w5(e);var t=DD.length,i=r.constructor,a=mt(i)&&i.prototype||Nd,s="constructor";for(Yn(r,s)&&!e.contains(s)&&e.push(s);t--;)s=DD[t],s in r&&r[s]!==a[s]&&!e.contains(s)&&e.push(s)}function Xe(r){if(!Wn(r))return[];if(RD)return RD(r);var e=[];for(var t in r)Yn(r,t)&&e.push(t);return ID&&$D(r,e),e}function Sa(r){if(r==null)return!0;var e=It(r);return typeof e=="number"&&(Dr(r)||Md(r)||Gd(r))?e===0:It(Xe(r))===0}function FD(r,e){var t=Xe(e),i=t.length;if(r==null)return!i;for(var a=Object(r),s=0;s<i;s++){var o=t[s];if(e[o]!==a[o]||!(o in a))return!1}return!0}function se(r){if(r instanceof se)return r;if(!(this instanceof se))return new se(r);this._wrapped=r}se.VERSION=mD,se.prototype.value=function(){return this._wrapped},se.prototype.valueOf=se.prototype.toJSON=se.prototype.value,se.prototype.toString=function(){return String(this._wrapped)};function UD(r){return new Uint8Array(r.buffer||r,r.byteOffset||0,go(r))}var xD="[object DataView]";function $d(r,e,t,i){if(r===e)return r!==0||1/r===1/e;if(r==null||e==null)return!1;if(r!==r)return e!==e;var a=typeof r;return a!=="function"&&a!=="object"&&typeof e!="object"?!1:jD(r,e,t,i)}function jD(r,e,t,i){r instanceof se&&(r=r._wrapped),e instanceof se&&(e=e._wrapped);var a=Oa.call(r);if(a!==Oa.call(e))return!1;if(_D&&a=="[object Object]"&&Ro(r)){if(!Ro(e))return!1;a=xD}switch(a){case"[object RegExp]":case"[object String]":return""+r==""+e;case"[object Number]":return+r!=+r?+e!=+e:+r==0?1/+r===1/e:+r==+e;case"[object Date]":case"[object Boolean]":return+r==+e;case"[object Symbol]":return ED.valueOf.call(r)===ED.valueOf.call(e);case"[object ArrayBuffer]":case xD:return jD(UD(r),UD(e),t,i)}var s=a==="[object Array]";if(!s&&GD(r)){var o=go(r);if(o!==go(e))return!1;if(r.buffer===e.buffer&&r.byteOffset===e.byteOffset)return!0;s=!0}if(!s){if(typeof r!="object"||typeof e!="object")return!1;var l=r.constructor,p=e.constructor;if(l!==p&&!(mt(l)&&l instanceof l&&mt(p)&&p instanceof p)&&"constructor"in r&&"constructor"in e)return!1}t=t||[],i=i||[];for(var y=t.length;y--;)if(t[y]===r)return i[y]===e;if(t.push(r),i.push(e),s){if(y=r.length,y!==e.length)return!1;for(;y--;)if(!$d(r[y],e[y],t,i))return!1}else{var f=Xe(r),m;if(y=f.length,Xe(e).length!==y)return!1;for(;y--;)if(m=f[y],!(Yn(e,m)&&$d(r[m],e[m],t,i)))return!1}return t.pop(),i.pop(),!0}function _5(r,e){return $d(r,e)}function Ca(r){if(!Wn(r))return[];var e=[];for(var t in r)e.push(t);return ID&&$D(r,e),e}function Fd(r){var e=It(r);return function(t){if(t==null)return!1;var i=Ca(t);if(It(i))return!1;for(var a=0;a<e;a++)if(!mt(t[r[a]]))return!1;return r!==JD||!mt(t[Ud])}}var Ud="forEach",kD="has",xd=["clear","delete"],qD=["get",kD,"set"],N5=xd.concat(Ud,qD),JD=xd.concat(qD),M5=["add"].concat(xd,Ud,kD);const V5=Vd?Fd(N5):ot("Map"),L5=Vd?Fd(JD):ot("WeakMap"),G5=Vd?Fd(M5):ot("Set"),$5=ot("WeakSet");function gi(r){for(var e=Xe(r),t=e.length,i=Array(t),a=0;a<t;a++)i[a]=r[e[a]];return i}function F5(r){for(var e=Xe(r),t=e.length,i=Array(t),a=0;a<t;a++)i[a]=[e[a],r[e[a]]];return i}function WD(r){for(var e={},t=Xe(r),i=0,a=t.length;i<a;i++)e[r[t[i]]]=t[i];return e}function jd(r){var e=[];for(var t in r)mt(r[t])&&e.push(t);return e.sort()}function kd(r,e){return function(t){var i=arguments.length;if(e&&(t=Object(t)),i<2||t==null)return t;for(var a=1;a<i;a++)for(var s=arguments[a],o=r(s),l=o.length,p=0;p<l;p++){var y=o[p];(!e||t[y]===void 0)&&(t[y]=s[y])}return t}}const YD=kd(Ca),vo=kd(Xe),HD=kd(Ca,!0);function U5(){return function(){}}function zD(r){if(!Wn(r))return{};if(gD)return gD(r);var e=U5();e.prototype=r;var t=new e;return e.prototype=null,t}function x5(r,e){var t=zD(r);return e&&vo(t,e),t}function j5(r){return Wn(r)?Dr(r)?r.slice():YD({},r):r}function k5(r,e){return e(r),r}function ZD(r){return Dr(r)?r:[r]}se.toPath=ZD;function Ba(r){return se.toPath(r)}function qd(r,e){for(var t=e.length,i=0;i<t;i++){if(r==null)return;r=r[e[i]]}return t?r:void 0}function KD(r,e,t){var i=qd(r,Ba(e));return PD(i)?t:i}function q5(r,e){e=Ba(e);for(var t=e.length,i=0;i<t;i++){var a=e[i];if(!Yn(r,a))return!1;r=r[a]}return!!t}function Jd(r){return r}function wa(r){return r=vo({},r),function(e){return FD(e,r)}}function Wd(r){return r=Ba(r),function(e){return qd(e,r)}}function _a(r,e,t){if(e===void 0)return r;switch(t??3){case 1:return function(i){return r.call(e,i)};case 3:return function(i,a,s){return r.call(e,i,a,s)};case 4:return function(i,a,s,o){return r.call(e,i,a,s,o)}}return function(){return r.apply(e,arguments)}}function XD(r,e,t){return r==null?Jd:mt(r)?_a(r,e,t):Wn(r)&&!Dr(r)?wa(r):Wd(r)}function Yd(r,e){return XD(r,e,1/0)}se.iteratee=Yd;function Dt(r,e,t){return se.iteratee!==Yd?se.iteratee(r,e):XD(r,e,t)}function J5(r,e,t){e=Dt(e,t);for(var i=Xe(r),a=i.length,s={},o=0;o<a;o++){var l=i[o];s[l]=e(r[l],l,r)}return s}function QD(){}function W5(r){return r==null?QD:function(e){return KD(r,e)}}function Y5(r,e,t){var i=Array(Math.max(0,r));e=_a(e,t,1);for(var a=0;a<r;a++)i[a]=e(a);return i}function Hd(r,e){return e==null&&(e=r,r=0),r+Math.floor(Math.random()*(e-r+1))}const Na=Date.now||function(){return new Date().getTime()};function eP(r){var e=function(s){return r[s]},t="(?:"+Xe(r).join("|")+")",i=RegExp(t),a=RegExp(t,"g");return function(s){return s=s==null?"":""+s,i.test(s)?s.replace(a,e):s}}const tP={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},H5=eP(tP),z5=WD(tP),Z5=eP(z5),K5=se.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var zd=/(.)^/,X5={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Q5=/\\|'|\r|\n|\u2028|\u2029/g;function ek(r){return"\\"+X5[r]}var tk=/^\s*(\w|\$)+\s*$/;function nk(r,e,t){!e&&t&&(e=t),e=HD({},e,se.templateSettings);var i=RegExp([(e.escape||zd).source,(e.interpolate||zd).source,(e.evaluate||zd).source].join("|")+"|$","g"),a=0,s="__p+='";r.replace(i,function(y,f,m,b,v){return s+=r.slice(a,v).replace(Q5,ek),a=v+y.length,f?s+=`'+
2
2
  ((__t=(`+f+`))==null?'':_.escape(__t))+
3
3
  '`:m?s+=`'+
4
4
  ((__t=(`+m+`))==null?'':__t)+
@@ -19,7 +19,7 @@ Please provide a unique 'name' string.`,severity:T.Error,code:S.NameNotUniqueInS
19
19
  Please provide a unique 'name' string.`,severity:T.Error,code:S.NameNotUniqueInScope,issue:null}))}}return t}function Yk(r,e){switch(r.type){case n.CustomEntity:return Co(r,e);case n.FunctionDeclaration:return du(r,e);case n.VariableDeclaration:return uu(r,e);case n.Property:return pu(r,e);case n.ArgumentDeclaration:return yu(r,e);case n.ReturnDeclaration:return hu(r,e);default:return[]}}function He(r,e,t){const a=`${Oo(r)}-${e}-id`;return t.instances[a]?N.UUID.uuid():a}function fu(r,e){let t="",i=null;if(r.parent){const s=e.get(r.parent);s&&(i=s)}let a="";return i&&(a=`${Oo(C(i,e))}-`),t=`${a}${Oo(C(r,e))}-id`,e.instances[t]?N.UUID.uuid():t}function Hk(r){var o;const e=m9(),t=r.toJSON();e.safeParse(t).success;const a=zk(r);(o=r.dataType)==null||o.validate();const s=[...a];if(r.id==="80c86e1b-caca-4ba5-9b1f-38f72d10e4a3"){const l=H({id:`${r.id}--${M.PropertyImplementsNonAbstact}`,message:`Property "${C(r,r.project)}" with id "${r.id}" implements a non-abstract property "${C(r,r.project)}" with id "${r.id}".`,issue:null,severity:T.Error,code:M.PropertyImplementsNonAbstact,entity:r});s.push(l.error)}return s}function zk(r){const e=[];if(!r.implements)return e;const t=r.implements;if(!t.abstract){const a=H({id:`${r.id}--${M.PropertyImplementsNonAbstact}`,message:`Property "${C(r,r.project)}" with id "${r.id}" implements a non-abstract property "${C(t,r.project)}" with id "${t.id}".`,issue:null,severity:T.Error,code:M.PropertyImplementsNonAbstact,entity:r});e.push(a.error)}if(r.static&&!t.static){const a=H({id:`${r.id}--${M.NonStaticPropertyImplementsStatic}`,message:`Static property "${C(r,r.project)}" with id "${r.id}" implements a non-static property "${C(t,r.project)}" with id "${t.id}".`,issue:null,severity:T.Error,code:M.NonStaticPropertyImplementsStatic,entity:r});e.push(a.error)}if(!r.static&&t.static){const a=H({id:`${r.id}--${M.StaticPropertyImplementsNonStatic}`,message:`Non-static property "${C(r,r.project)}" with id "${r.id}" implements a static property "${C(t,r.project)}" with id "${t.id}".`,issue:null,severity:T.Error,code:M.StaticPropertyImplementsNonStatic,entity:r});e.push(a.error)}if(!Zt(r.dataType,t.dataType)){const a=H({id:`${r.id}--${M.PropertyImplementsIncompatibleType}`,message:`Property "${C(r,r.project)}" with id "${r.id}" implements a property "${C(t,r.project)}" with id "${t.id}" that has an incompatible data type.`,issue:null,severity:T.Error,code:M.PropertyImplementsIncompatibleType,entity:r});e.push(a.error)}return ae(r.errors,e)}function Zk(r,e){const t=[];if(r.parent){const a=e.get(r.parent);if(!a)t.push(new E({id:`${r.id}--${r.parent}--${h.ReferencedEntityNotFound}`,code:h.ReferencedEntityNotFound,severity:T.Error,message:`Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${r.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}));else{const s=Qn(a);if(s){const o=a!==s?`The entity of type '${r.type}' with id '${r.id}' have 'parent' with id '${r.parent}' because the entity belongs to a built-in '${s.type}' entity with id '${s.id}' (${C(s,a.project)}) higher up in the tree.`:`The entity of type '${r.type}' with id '${r.id}' have 'parent' with id '${r.parent}' because it is a built-in entity of type ${s.type}.`;t.push(new E({id:`${r.id}--${h.InvalidBuiltInEntityReference}`,code:h.InvalidBuiltInEntityReference,severity:T.Error,message:o,issue:null}))}else if(![n.CustomEntity].includes(a.type))t.push(new E({id:`${r.id}--${r.parent}--${h.InvalidParentReference}`,code:h.InvalidParentReference,severity:T.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a parent reference that isn't pointing to an entity of type 'custom-entity'.`,issue:null}));else{const l=Xn(a).filter(p=>!p.interactive);if(l.length){let p=l.length>1?`The entity of type '${r.type}' with id '${r.id}' can't be added to the 'parent' entity with id '${a.id}' because it extends or implements multiple '${n.BuiltInBaseEntity}' entities that are non-interactive ("${x(l.map(y=>C(y,y.project)),'", "','" and "')}").`:`The entity of type '${r.type}' with id '${r.id}' can't be added to the 'parent' entity with id '${a.id}' because it extends or implements a '${n.BuiltInBaseEntity}' entity that is non-interactive ("${C(l[0],l[0].project)}").`;p+=`
20
20
  ${Zn}`,t.push(new E({id:`${r.id}--${h.NonInteractiveEntityReferenced}`,code:h.NonInteractiveEntityReferenced,severity:T.Error,message:p,issue:null}))}else if(r.implements){const p=e.get(r.implements);if(r.id===r.implements)return t.push(new E({id:`${r.id}--${r.implements}--${h.SelfReference}`,code:h.SelfReference,severity:T.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a reference to itself at 'implements'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,issue:null})),t;if(!p)t.push(new E({id:`${r.id}--${r.implements}--${h.ReferencedEntityNotFound}`,code:h.ReferencedEntityNotFound,severity:T.Error,message:`Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${r.implements}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}));else{const y=a.properties.find(f=>{var m;return((m=f.implements)==null?void 0:m.id)===r.implements});y?t.push(new E({id:`${r.id}--${S.PropertyOverwrite}`,code:S.PropertyOverwrite,severity:T.Error,message:`The property with id "${r.id}" is trying to implement the property with id "${r.implements}", but the parent entity already has a property with id '${y.id}' that implements the same base property.`,issue:null})):[n.Property].includes(p.type)?p.abstract||t.push(new E({id:`${r.id}--${r.implements}--${h.InvalidImplementsReference}`,code:h.InvalidImplementsReference,severity:T.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'implements' reference that isn't pointing to an abstract entity.`,issue:null})):t.push(new E({id:`${r.id}--${r.implements}--${h.InvalidImplementsReference}`,code:h.InvalidImplementsReference,severity:T.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'implements' reference that isn't pointing to an entity of type 'property'.`,issue:null}))}}}}}const i=Je(r,{},e);return t.push(...i.errors),t}const me=class me{constructor(e,t){c(this,"initialData");c(this,"id");c(this,"version");c(this,"name");c(this,"description",null);c(this,"private");c(this,"abstract");c(this,"index");c(this,"static");c(this,"required");c(this,"type",n.Property);c(this,"hidden",!1);c(this,"dataType",null);c(this,"implements",null);c(this,"project");c(this,"errors",[]);c(this,"parent");c(this,"initialized",!1);c(this,"suggestion",!1);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version,this.name=e.name,this.description=e.description,this.private=e.private,this.abstract=e.abstract,this.index=e.index,this.static=e.static,this.required=e.required||!1,this.hidden=e.hidden||!1}static fromGenerationTarget(e,t){const i=_(e.parent),a=t.get(i);let s=null;if(e.implements){const p=_(e.implements);s=t.get(p)}const o={id:e.id,version:1,name:e.name,type:n.Property,index:a.properties.length,private:e.private,abstract:e.abstract,static:e.static,required:e.required||!1,hidden:!1,description:e.description,implements:s,dataType:null,parent:a},l=R(o,t);return l.setParent(a),l.initChildren(),l}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[],s=Zk(i,t),o=pu(i,t);return a.push(...s,...o,...Ne(i)),{errors:a,modifiedData:i}}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new E({id:`${this.id}--${h.InvalidParentUpdate}`,code:h.InvalidParentUpdate,severity:T.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
21
21
  This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`,issue:null})),(e.readsValue||e.writesValue)&&t.push(new E({id:`${this.id}--${S.InvalidObjectStructure}`,code:S.InvalidObjectStructure,severity:T.Error,message:`Entity of type '${this.type}' with id '${this.id}' is not a value reading or writing entity.
22
- ${No}`,issue:null})),{errors:t,modifiedData:e}}addSelfToProject(){const e=[this],t=[],i=[];return this.parent.addProperty(this),e.push(this.parent),{updated:g(e),added:g(t),removed:g(i),self:this}}setParent(e){return this.parent=e,this}initChildren(){if(this.initialized)return this;if(this.initialized=!0,this.initialData.dataType){const e=R(this.initialData.dataType,this.project);e.setParent(this),e.initChildren(),this.dataType=e}if(this.initialData.implements){const e=R(this.initialData.implements,this.project);this.implements=e}return 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.abstract=e.abstract||this.abstract,this.private=e.private||this.private,this.index=e.index||(e.index!==0?this.index:0),this.static=e.static||this.static,this.required=e.required||this.required,this.hidden=e.hidden||this.hidden,this}async load(){return this}async create(){return this}async update(e){return this}async delete(){return this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const i=[],a=[];if(t.has(this.id))return{affected:[],removed:[]};if(t.add(this.id),a.push(this),this.unsubscribe(),this.dataType){const{affected:s,removed:o}=this.dataType.remove({ignoreUpstream:!0,seenEntities:t});i.push(...s),a.push(...o)}return e||this.parent.type===n.CustomEntity&&(this.parent.removeProperty(this),i.push(this.parent)),{affected:g(i),removed:g(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.dataType){const{affected:i}=this.dataType.restore({seenEntities:e});t.push(...i)}return this.parent.type===n.CustomEntity&&(this.parent.addProperty(this),t.push(this.parent)),{affected:t,self:this}}toFlat(e=new Set){var i;return e.has(this.id)?[]:(e.add(this.id),[this,...((i=this.dataType)==null?void 0:i.toFlat(e))||[]])}toFlatIds(e=new Set){var i;return e.has(this.id)?[]:(e.add(this.id),[this.id,...((i=this.dataType)==null?void 0:i.toFlatIds(e))||[]])}toJSON(){var e,t;return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,index:this.index,private:this.private,required:this.required,static:this.static,abstract:this.abstract,hidden:this.hidden,dataType:((e=this.dataType)==null?void 0:e.toJSON())||null,implements:((t=this.implements)==null?void 0:t.toJSON())||null,parent:this.parent.toReference()}}toReference(){return{id:this.id+"--"+N.UUID.uuid()+"--ref",type:n.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){var e,t;return{id:this.id,version:this.version,name:this.name,description:this.description,type:this.type,index:this.index,private:this.private,required:this.required,abstract:this.abstract,static:this.static,hidden:this.hidden,dataType:((e=this.dataType)==null?void 0:e.toReference())||null,implements:((t=this.implements)==null?void 0:t.toReference())||null,parent:this.parent.toReference()}}toFlatJSON(e=new Set){var i,a;return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...((i=this.dataType)==null?void 0:i.toFlatJSON(e))||[],...((a=this.implements)==null?void 0:a.toFlatJSON(e))||[]])}toGenerationTarget(){var e;return{id:this.id,name:this.name,description:this.description,type:this.type,private:this.private,required:this.required,abstract:this.abstract,static:this.static,implements:((e=this.implements)==null?void 0:e.id)||null,parent:this.parent.id}}toFlatGenerationTarget(e=new Set){var i;return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...((i=this.dataType)==null?void 0:i.toFlatGenerationTarget(e))||[]])}clearErrors(){var e;return this.errors=[],(e=this.dataType)==null||e.clearErrors(),this}validate(){return this.errors=Hk(this),this.errors.length,{success:!0,error:null,data:null}}getErrors(){var t;return[...this.errors,...((t=this.dataType)==null?void 0:t.getErrors())||[]]}getShallowErrors(){return this.errors}getDefaultValue(){var e;return((e=this.dataType)==null?void 0:e.defaultValue)||null}clone(e=null,t=null,i=!0){var m;const a=t||He(C(this,this.project),n.Property,this.project),s=a.split("-id"),o=s[s.length-1||0]||a;let l=e||this.parent;const p={hidden:!1,id:a,version:this.version,type:this.type,name:this.name,description:this.description,index:this.index,private:this.private,required:this.required,abstract:this.abstract,static:this.static,dataType:null,implements:null,parent:l},y=xt(p,this.project);i&&y.subscribe(),y.setParent(l);const f=((m=this.dataType)==null?void 0:m.clone(y,o+"-data-type-id",i))||null;return f&&y.setDataType(f),y}setDataType(e){return this.dataType=e,this}removeDataType(){return this.dataType=null,this}getDataType(){return this.dataType}};c(me,"MUTABLE_BASE_PROPERTIES",["name","description","private","abstract","static","required"]),c(me,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),c(me,"BASE_PROPERTIES",[...me.MUTABLE_BASE_PROPERTIES,...me.INMUTABLE_BASE_PROPERTIES]),c(me,"MUTABLE_META_PROPERTIES",[...me.MUTABLE_BASE_PROPERTIES,"index"]),c(me,"INMUTABLE_META_PROPERTIES",[...me.INMUTABLE_BASE_PROPERTIES]),c(me,"META_PROPERTIES",[...me.MUTABLE_META_PROPERTIES,...me.INMUTABLE_META_PROPERTIES]),c(me,"MUTABLE_UPSTREAM_PROPERTIES",[]),c(me,"INMUTABLE_UPSTREAM_PROPERTIES",["parent","implements"]),c(me,"UPSTREAM_PROPERTIES",[...me.MUTABLE_UPSTREAM_PROPERTIES,...me.INMUTABLE_UPSTREAM_PROPERTIES]),c(me,"MUTABLE_DOWNSTREAM_PROPERTIES",["dataType"]),c(me,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),c(me,"DOWNSTREAM_PROPERTIES",[...me.MUTABLE_DOWNSTREAM_PROPERTIES,...me.INMUTABLE_DOWNSTREAM_PROPERTIES]),c(me,"PROPERTIES",[...me.META_PROPERTIES,...me.UPSTREAM_PROPERTIES,...me.DOWNSTREAM_PROPERTIES]);let Sr=me;function Kk(r){const e=N3(),t=r.toJSON();e.safeParse(t).success;const a=Xk(r),s=Qk(r),o=Pt(r);r.inputs.forEach(p=>p.validate()),o.forEach(p=>p.validate());const l=[...a,...s];if(r.id==="getCompanyByIdEndpointReachedEntityEvent"){const p=H({id:`${r.id}--${M.PropertyImplementsNonAbstact}`,message:`Property "${C(r,r.project)}" with id "${r.id}" implements a non-abstract property "${C(r,r.project)}" with id "${r.id}".`,issue:null,severity:T.Error,code:M.PropertyImplementsNonAbstact,entity:r});l.push(p.error)}return ae(r.errors,l)}function Xk(r){const e=[];if(!r.calls.length){const t=H({id:`${r.id}--${M.ScopeWithoutLogic}`,message:`Action "${C(r,r.project)}" with id "${r.id}" does not have any logic defined. So it doesn't do anything.`,issue:null,severity:T.Error,code:M.ScopeWithoutLogic,entity:r});e.push(t.error)}return ae(r.errors,e)}function Qk(r){const e=[];return r.implements,ae(r.errors,e)}const Te=class Te{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,"private");c(this,"index",null);c(this,"type",n.FunctionDeclaration);c(this,"implements",null);c(this,"inputs",[]);c(this,"returnStatements",[]);c(this,"calls",[]);c(this,"parent");c(this,"detachedChildren",[]);c(this,"errors",[]);c(this,"project");c(this,"initialized",!1);c(this,"suggestion",!1);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version,this.name=e.name,this.description=e.description,this.private=e.private,this.collapsed=e.collapsed,this.x=e.x,this.y=e.y,this.index=e.index}static fromGenerationTarget(e,t){let i=t;if(e.parent){const l=_(e.parent);i=t.get(l)}let a=null;if(e.implements){const l=_(e.implements);a=t.get(l)}const s={id:e.id,version:1,name:e.name,type:n.FunctionDeclaration,index:i.type===n.CustomEntity?i.methods.length:null,description:e.description,collapsed:!1,private:!1,returnStatements:[],calls:[],inputs:[],implements:a,x:0,y:0,parent:i},o=R(s,t);return o.setParent(i),o.initChildren(),o}static validateGenerationTarget(e,t){var f;let i=JSON.parse(JSON.stringify(e));const a=[],s=Je(i,{parent:{list:!1,types:[n.Project,n.InstalledProject,n.CustomEntity,n.Loop],optional:!0},implements:{list:!1,types:[n.ActionDescriptor],optional:!0}},t);i=s.modifiedData;const o=du(i,t),l=i.parent?t.get(i.parent):null;if(l&&l.type===n.CustomEntity){const m=l,v=Xn(m).filter(P=>!P.interactive);if(v.length){let P=v.length>1?`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${m.id}' because it extends or implements multiple '${n.BuiltInBaseEntity}' entities that are non-interactive ("${x(v.map(O=>C(O,O.project)),'", "','" and "')}").`:`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${m.id}' because it extends or implements a '${n.BuiltInBaseEntity}' entity that is non-interactive ("${C(v[0],v[0].project)}").`;P+=`
22
+ ${No}`,issue:null})),{errors:t,modifiedData:e}}addSelfToProject(){const e=[this],t=[],i=[];return this.parent.addProperty(this),e.push(this.parent),{updated:g(e),added:g(t),removed:g(i),self:this}}setParent(e){return this.parent=e,this}initChildren(){if(this.initialized)return this;if(this.initialized=!0,this.initialData.dataType){const e=R(this.initialData.dataType,this.project);e.setParent(this),e.initChildren(),this.dataType=e}if(this.initialData.implements){const e=R(this.initialData.implements,this.project);this.implements=e}return 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.abstract=e.abstract||this.abstract,this.private=e.private||this.private,this.index=e.index||(e.index!==0?this.index:0),this.static=e.static||this.static,this.required=e.required||this.required,this.hidden=e.hidden||this.hidden,this}async load(){return this}async create(){return this}async update(e){return this}async delete(){return this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const i=[],a=[];if(t.has(this.id))return{affected:[],removed:[]};if(t.add(this.id),a.push(this),this.unsubscribe(),this.dataType){const{affected:s,removed:o}=this.dataType.remove({ignoreUpstream:!0,seenEntities:t});i.push(...s),a.push(...o)}return e||this.parent.type===n.CustomEntity&&(this.parent.removeProperty(this),i.push(this.parent)),{affected:g(i),removed:g(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.dataType){const{affected:i}=this.dataType.restore({seenEntities:e});t.push(...i)}return this.parent.type===n.CustomEntity&&(this.parent.addProperty(this),t.push(this.parent)),{affected:t,self:this}}toFlat(e=new Set){var i;return e.has(this.id)?[]:(e.add(this.id),[this,...((i=this.dataType)==null?void 0:i.toFlat(e))||[]])}toFlatIds(e=new Set){var i;return e.has(this.id)?[]:(e.add(this.id),[this.id,...((i=this.dataType)==null?void 0:i.toFlatIds(e))||[]])}toJSON(){var e,t;return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,index:this.index,private:this.private,required:this.required,static:this.static,abstract:this.abstract,hidden:this.hidden,dataType:((e=this.dataType)==null?void 0:e.toJSON())||null,implements:((t=this.implements)==null?void 0:t.toJSON())||null,parent:this.parent.toReference()}}toReference(){return{id:this.id+"--"+N.UUID.uuid()+"--ref",type:n.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){var e,t;return{id:this.id,version:this.version,name:this.name,description:this.description,type:this.type,index:this.index,private:this.private,required:this.required,abstract:this.abstract,static:this.static,hidden:this.hidden,dataType:((e=this.dataType)==null?void 0:e.toReference())||null,implements:((t=this.implements)==null?void 0:t.toReference())||null,parent:this.parent.toReference()}}toFlatJSON(e=new Set){var i,a;return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...((i=this.dataType)==null?void 0:i.toFlatJSON(e))||[],...((a=this.implements)==null?void 0:a.toFlatJSON(e))||[]])}toGenerationTarget(){var e;return{id:this.id,name:this.name,description:this.description,type:this.type,private:this.private,required:this.required,abstract:this.abstract,static:this.static,implements:((e=this.implements)==null?void 0:e.id)||null,parent:this.parent.id}}toFlatGenerationTarget(e=new Set){var i;return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...((i=this.dataType)==null?void 0:i.toFlatGenerationTarget(e))||[]])}clearErrors(){var e;return this.errors=[],(e=this.dataType)==null||e.clearErrors(),this}validate(){return this.errors=Hk(this),this.errors.length,{success:!0,error:null,data:null}}getErrors(){var t;return[...this.errors,...((t=this.dataType)==null?void 0:t.getErrors())||[]]}getShallowErrors(){return this.errors}getDefaultValue(){var e;return((e=this.dataType)==null?void 0:e.defaultValue)||null}clone(e=null,t=null,i=!0){var m;const a=t||He(C(this,this.project),n.Property,this.project),s=a.split("-id"),o=s[s.length-1||0]||a;let l=e||this.parent;const p={hidden:!1,id:a,version:this.version,type:this.type,name:this.name,description:this.description,index:this.index,private:this.private,required:this.required,abstract:this.abstract,static:this.static,dataType:null,implements:null,parent:l},y=xt(p,this.project);i&&y.subscribe(),y.setParent(l);const f=((m=this.dataType)==null?void 0:m.clone(y,o+"-data-type-id",i))||null;return f&&y.setDataType(f),y}setDataType(e){return this.dataType=e,this}removeDataType(){return this.dataType=null,this}getDataType(){return this.dataType}};c(me,"MUTABLE_BASE_PROPERTIES",["name","description","private","abstract","static","required"]),c(me,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),c(me,"BASE_PROPERTIES",[...me.MUTABLE_BASE_PROPERTIES,...me.INMUTABLE_BASE_PROPERTIES]),c(me,"MUTABLE_META_PROPERTIES",[...me.MUTABLE_BASE_PROPERTIES,"index"]),c(me,"INMUTABLE_META_PROPERTIES",[...me.INMUTABLE_BASE_PROPERTIES]),c(me,"META_PROPERTIES",[...me.MUTABLE_META_PROPERTIES,...me.INMUTABLE_META_PROPERTIES]),c(me,"MUTABLE_UPSTREAM_PROPERTIES",[]),c(me,"INMUTABLE_UPSTREAM_PROPERTIES",["parent","implements"]),c(me,"UPSTREAM_PROPERTIES",[...me.MUTABLE_UPSTREAM_PROPERTIES,...me.INMUTABLE_UPSTREAM_PROPERTIES]),c(me,"MUTABLE_DOWNSTREAM_PROPERTIES",["dataType"]),c(me,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),c(me,"DOWNSTREAM_PROPERTIES",[...me.MUTABLE_DOWNSTREAM_PROPERTIES,...me.INMUTABLE_DOWNSTREAM_PROPERTIES]),c(me,"PROPERTIES",[...me.META_PROPERTIES,...me.UPSTREAM_PROPERTIES,...me.DOWNSTREAM_PROPERTIES]);let Sr=me;function Kk(r){const e=N3(),t=r.toJSON();e.safeParse(t).success;const a=Xk(r),s=Qk(r),o=Pt(r);r.inputs.forEach(p=>p.validate()),o.forEach(p=>p.validate());const l=[...a,...s];if(r.id==="getCompanyByIdEndpointReachedEntityEvent"){const p=H({id:`${r.id}--${M.PropertyImplementsNonAbstact}`,message:`Property "${C(r,r.project)}" with id "${r.id}" implements a non-abstract property "${C(r,r.project)}" with id "${r.id}".`,issue:null,severity:T.Error,code:M.PropertyImplementsNonAbstact,entity:r});l.push(p.error)}return ae(r.errors,l)}function Xk(r){const e=[];if(!r.calls.length){const t=H({id:`${r.id}--${M.ScopeWithoutLogic}`,message:`Action "${C(r,r.project)}" with id "${r.id}" does not have any logic defined. So it doesn't do anything.`,issue:null,severity:T.Warning,code:M.ScopeWithoutLogic,entity:r});e.push(t.error)}return ae(r.errors,e)}function Qk(r){const e=[];return r.implements,ae(r.errors,e)}const Te=class Te{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,"private");c(this,"index",null);c(this,"type",n.FunctionDeclaration);c(this,"implements",null);c(this,"inputs",[]);c(this,"returnStatements",[]);c(this,"calls",[]);c(this,"parent");c(this,"detachedChildren",[]);c(this,"errors",[]);c(this,"project");c(this,"initialized",!1);c(this,"suggestion",!1);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version,this.name=e.name,this.description=e.description,this.private=e.private,this.collapsed=e.collapsed,this.x=e.x,this.y=e.y,this.index=e.index}static fromGenerationTarget(e,t){let i=t;if(e.parent){const l=_(e.parent);i=t.get(l)}let a=null;if(e.implements){const l=_(e.implements);a=t.get(l)}const s={id:e.id,version:1,name:e.name,type:n.FunctionDeclaration,index:i.type===n.CustomEntity?i.methods.length:null,description:e.description,collapsed:!1,private:!1,returnStatements:[],calls:[],inputs:[],implements:a,x:0,y:0,parent:i},o=R(s,t);return o.setParent(i),o.initChildren(),o}static validateGenerationTarget(e,t){var f;let i=JSON.parse(JSON.stringify(e));const a=[],s=Je(i,{parent:{list:!1,types:[n.Project,n.InstalledProject,n.CustomEntity,n.Loop],optional:!0},implements:{list:!1,types:[n.ActionDescriptor],optional:!0}},t);i=s.modifiedData;const o=du(i,t),l=i.parent?t.get(i.parent):null;if(l&&l.type===n.CustomEntity){const m=l,v=Xn(m).filter(P=>!P.interactive);if(v.length){let P=v.length>1?`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${m.id}' because it extends or implements multiple '${n.BuiltInBaseEntity}' entities that are non-interactive ("${x(v.map(O=>C(O,O.project)),'", "','" and "')}").`:`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${m.id}' because it extends or implements a '${n.BuiltInBaseEntity}' entity that is non-interactive ("${C(v[0],v[0].project)}").`;P+=`
23
23
  ${Zn}`,a.push(new E({id:`${e.id}--${h.NonInteractiveEntityReferenced}`,code:h.NonInteractiveEntityReferenced,severity:T.Error,message:P,issue:null}))}else{const P=m.methods.find($=>{var U;return((U=$.implements)==null?void 0:U.id)===i.implements});P&&a.push(new E({id:`${i.id}--${S.MethodOverwrite}`,code:S.MethodOverwrite,severity:T.Error,message:`The '${n.FunctionDeclaration}' with id "${i.id}" is trying to implement the '${n.ActionDescriptor}' with id "${i.implements}", but the parent custom-entity already has a ${n.FunctionDeclaration} with id '${P.id}' that implements the same base method.
24
24
  A ${n.FunctionDeclaration} that has a parent of type '${n.CustomEntity}' is considered a method of that entity, and cannot implement the same '${n.ActionDescriptor}' more than once.
25
25
  ${n.ActionDescriptor} entities inside a ${n.CustomEntity} are considered abstract methods that can be implemented by ${n.FunctionDeclaration} entities inside the same parent.
@@ -50,7 +50,7 @@ ${Lo(t)}`,issue:null})):a.push(new E({id:`${e.id}--${h.ReferencedEntityNotFound}
50
50
  ${Lo(t)}`,issue:null})):a.push(new E({id:`${e.id}--${S.InvalidObjectStructure}`,code:S.InvalidObjectStructure,severity:T.Error,message:`Entity of type '${e.type}' with id '${e.id}' is missing the 'declaration' property. This property is required for a '${e.type}' entity and must point to one of the built-in action descriptors reserved for '${n.Condition}' entities.
51
51
  ${Lo(t)}`,issue:null})),{errors:a,modifiedData:i}}static fromReturnDeclarationToBodyArgumentDeclarationName(e){return`Previous iteration results of '${C(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 '${C(e,e.project)}'`}static fromLoopOutputDeclarationToReturnDeclarationName(e){const t=e.name.replace("Result list of '","");return t.slice(0,t.length-1)}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new E({id:`${this.id}--${h.InvalidParentUpdate}`,code:h.InvalidParentUpdate,severity:T.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.
52
52
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
53
- 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}}addSelfToProject(){const e=[this],t=[],i=[];return this.parent===this.project&&this.project.addLoop(this),this.successCalls.forEach(a=>{a.addSuccessCaller(this),e.push(a)}),this.errorCalls.forEach(a=>{a.addErrorCaller(this),e.push(a)}),this.calledByEntry.forEach(a=>{a.addCall(this),e.push(a)}),this.calledBySuccess.forEach(a=>{a.addSuccessCall(this),e.push(a)}),this.calledByError.forEach(a=>{a.addErrorCall(this),e.push(a)}),{updated:g(e),added:g(t),removed:g(i),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(e){const t=this.inputs.findIndex(i=>i.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)}addOutputDeclaration(e){return this.outputsDeclarations.includes(e)?this:(this.outputsDeclarations.push(e),this)}removeOutputDeclaration(e){const t=this.outputsDeclarations.findIndex(i=>i.id===e.id);return t>-1&&this.outputsDeclarations.splice(t,1),this}addOutput(e){return this.outputs.includes(e)?this:(this.outputs.push(e),this)}removeOutput(e){const t=this.outputs.findIndex(i=>i.id===e.id);return t>-1&&this.outputs.splice(t,1),this}setBody(e){return this.body=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.push(e),this}addSuccessCall(e){return 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 i=this.errorCalls.findIndex(a=>a.id===e.id);return i>-1&&this.errorCalls.splice(i,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}replaceDetachedChild(e,t){const i=this.detachedChildren.indexOf(e);return i!==-1&&(this.detachedChildren[i]=t),this}subscribeDetachedChild(e){return this.detachedChildren.includes(e)||this.detachedChildren.push(e),this}setParent(e){return this.parent=e,this}initChildren(){return this.initialized?this:(this.initialized=!0,this.declaration=R(this.initialData.declaration,this.project),this.successCalls=this.initialData.successCalls.map(e=>{const t=R(e,this.project);return t.addSuccessCaller(this),[n.BreakStatement,n.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==n.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.errorCalls=this.initialData.errorCalls.map(e=>{const t=R(e,this.project);return t.addErrorCaller(this),[n.BreakStatement,n.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==n.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.inputs=this.initialData.inputs.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.outputs=this.initialData.outputs.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.initialData.process&&(this.process=R(this.initialData.process,this.project),this.process.setParent(this),this.process.initChildren()),this.initialData.body&&(this.body=R(this.initialData.body,this.project),this.body.setParent(this),this.body.initChildren()),this.initialData.error&&(this.error=R(this.initialData.error,this.project),this.error.setParent(this),this.error.initChildren()),this.syncChildren(),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(){return this}async create(){return this}async update(e){return this}async delete(){return this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const i=[],a=[];if(t.has(this.id))return{affected:[],removed:[]};if(t.add(this.id),a.push(this),this.unsubscribe(),this.inputs.forEach(s=>{const{affected:o,removed:l}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...l)}),this.outputs.forEach(s=>{const{affected:o,removed:l}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...l)}),this.body.remove({ignoreUpstream:!0,seenEntities:t}),this.error){const{affected:s,removed:o}=this.error.remove({ignoreUpstream:!0,seenEntities:t});i.push(...s),a.push(...o)}return this.successCalls.forEach(s=>{i.push(s),s.removeCaller(this)}),this.errorCalls.forEach(s=>{i.push(s),s.removeCaller(this)}),e||this.calledBy.forEach(s=>{i.push(s),s.removeCall(this)}),{affected:g(i),removed:g(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(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.outputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.body.restore({seenEntities:e}),this.successCalls.forEach(i=>{t.push(i),i.addSuccessCaller(this)}),this.errorCalls.forEach(i=>{t.push(i),i.addErrorCaller(this)}),this.calledBySuccess.forEach(i=>{t.push(i),i.addSuccessCall(this)}),this.calledByError.forEach(i=>{t.push(i),i.addErrorCall(this)}),this.calledByEntry.forEach(i=>{t.push(i),i.addCall(this)}),{affected:g(t),self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.inputs.flatMap(i=>i.toFlat(e)),...this.outputs.flatMap(i=>i.toFlat(e)),...this.process?this.process.toFlat(e):[],...this.successCalls.flatMap(i=>i.toFlat(e)),...this.errorCalls.flatMap(i=>i.toFlat(e)),...this.error?this.error.toFlat(e):[],...this.body?this.body.toFlat(e):[],...this.continueStatements.flatMap(i=>i.toFlat(e)),...this.breakStatements.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.inputs.flatMap(i=>i.toFlatIds(e)),...this.outputs.flatMap(i=>i.toFlatIds(e)),...this.process?this.process.toFlatIds(e):[],...this.successCalls.flatMap(i=>i.toFlatIds(e)),...this.errorCalls.flatMap(i=>i.toFlatIds(e)),...this.error?this.error.toFlatIds(e):[],...this.body?this.body.toFlatIds(e):[],...this.continueStatements.flatMap(i=>i.toFlatIds(e)),...this.breakStatements.flatMap(i=>i.toFlatIds(e))])}toJSON(){var e,t;return{id:this.id,version:this.version,type:this.type,x:this.x,y:this.y,calledBySuccess:this.calledBySuccess.map(i=>i.toReference()),calledByError:this.calledByError.map(i=>i.toReference()),calledByEntry:this.calledByEntry.map(i=>i.toReference()),process:((e=this.process)==null?void 0:e.toJSON())||null,declaration:this.declaration.toJSON(),inputs:this.inputs.map(i=>i.toJSON()),outputs:this.outputs.map(i=>i.toJSON()),outputsDeclarations:this.outputsDeclarations.map(i=>i.toJSON()),successCalls:this.successCalls.map(i=>i.toJSON()),errorCalls:this.errorCalls.map(i=>i.toJSON()),error:((t=this.error)==null?void 0:t.toJSON())||null,body:this.body.toJSON(),parent:this.parent.toReference(),breakStatements:this.breakStatements.map(i=>i.toJSON()),continueStatements:this.continueStatements.map(i=>i.toJSON())}}toReference(){return{id:this.id+"--"+N.UUID.uuid()+"--ref",type:n.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){var e,t,i,a;return{id:this.id,version:this.version,type:this.type,x:this.x,y:this.y,declaration:((e=this.declaration)==null?void 0:e.toReference())||null,body:((t=this.body)==null?void 0:t.toReference())||null,inputs:this.inputs.map(s=>s.toReference()),outputs:this.outputs.map(s=>s.toReference()),outputsDeclarations:this.outputsDeclarations.map(s=>s.toReference()),successCalls:this.successCalls.map(s=>s.toReference()),errorCalls:this.errorCalls.map(s=>s.toReference()),process:((i=this.process)==null?void 0:i.toReference())||null,calledBySuccess:this.calledBySuccess.map(s=>s.toReference()),calledByError:this.calledByError.map(s=>s.toReference()),calledByEntry:this.calledByEntry.map(s=>s.toReference()),continueStatements:this.continueStatements.map(s=>s.toReference()),breakStatements:this.breakStatements.map(s=>s.toReference()),error:((a=this.error)==null?void 0:a.toReference())||null,parent:this.parent.toReference()}}toFlatJSON(e=new Set){var i;return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...((i=this.body)==null?void 0:i.toFlatJSON(e))||[],...this.successCalls.flatMap(a=>a.toFlatJSON(e)),...this.errorCalls.flatMap(a=>a.toFlatJSON(e)),...this.inputs.flatMap(a=>a.toFlatJSON(e)),...this.outputs.flatMap(a=>a.toFlatJSON(e)),...this.continueStatements.flatMap(a=>a.toFlatJSON(e)),...this.breakStatements.flatMap(a=>a.toFlatJSON(e)),...this.error?this.error.toFlatJSON(e):[],...this.process?this.process.toFlatJSON(e):[]])}toGenerationTarget(){const e=this.parent.type===n.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){var i;return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...((i=this.body)==null?void 0:i.toFlatGenerationTarget(e))||[],...this.successCalls.flatMap(a=>a.toFlatGenerationTarget(e)),...this.errorCalls.flatMap(a=>a.toFlatGenerationTarget(e)),...this.inputs.flatMap(a=>a.toFlatGenerationTarget(e)),...this.outputs.flatMap(a=>a.toFlatGenerationTarget(e)),...this.continueStatements.flatMap(a=>a.toFlatGenerationTarget(e)),...this.breakStatements.flatMap(a=>a.toFlatGenerationTarget(e)),...this.error?this.error.toFlatGenerationTarget(e):[],...this.process?this.process.toFlatGenerationTarget(e):[]])}clearErrors(){var e,t;return this.errors=[],this.inputs.forEach(i=>i.clearErrors()),this.outputs.forEach(i=>i.clearErrors()),this.successCalls.forEach(i=>i.clearErrors()),this.errorCalls.forEach(i=>i.clearErrors()),this.continueStatements.forEach(i=>i.clearErrors()),this.breakStatements.forEach(i=>i.clearErrors()),(e=this.process)==null||e.clearErrors(),(t=this.error)==null||t.clearErrors(),this}validate(){const e=a2(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.body?this.body.getErrors():[],...this.error?this.error.getErrors():[],...this.process?this.process.getErrors():[]]}getShallowErrors(){return this.errors}clone(e){return new z(this.toJSON(),this.project)}getVariableInstances(){return this.body?ie(this.body).filter(i=>i.type===n.VariableInstance):[]}addReturnStatement(e){return $e.includes(this.parent.type)&&this.parent.addReturnStatement(e),this}removeReturnStatement(e){return $e.includes(this.parent.type)&&this.parent.removeReturnStatement(e),this}addBreakStatement(e){return this.breakStatements.includes(e)||this.breakStatements.push(e),this}removeBreakStatement(e){const t=this.breakStatements.indexOf(e);return t!==-1&&this.breakStatements.splice(t,1),this}addContinueStatement(e){return this.continueStatements.includes(e)||this.continueStatements.push(e),this}removeContinueStatement(e){const t=this.continueStatements.indexOf(e);return t!==-1&&this.continueStatements.splice(t,1),this}getUniqueReturnDeclarations(){const e=[];return[...this.breakStatements,...this.continueStatements].forEach(i=>{i.outputs.forEach(s=>{e.find(l=>l===s||C(l,this.project)===C(s,this.project)&&Zt(l.dataType,s.dataType))||e.push(s)})}),g(e)}syncTerminationStatements(){const e=[],t=[],i=[],a=this.getUniqueReturnDeclarations(),s=[...this.breakStatements,...this.continueStatements];return a.forEach((o,l)=>{o.index!==l&&(o.sync({index:l}),e.push(o))}),s.forEach(o=>{const l=o.outputs,p=a.filter(y=>!l.find(f=>C(y,this.project)===C(f,this.project)&&Zt(y.dataType,f.dataType)));p.length&&e.push(o),p.forEach(y=>{const f=y.clone(o);f.addSelfToProject(),t.push(f)})}),{updated:g(e),added:g(t),removed:g(i),self:this}}syncBodyArgumentsDeclarations(){const e=[],t=[],i=[],{updated:a,added:s,removed:o}=this.syncFixedBodyArgumentDeclarations();e.push(...a),t.push(...s),i.push(...o);const l=this.getUniqueReturnDeclarations(),p=this.body.inputs;l.forEach((b,v)=>{b.index!==v&&(b.sync({index:v}),e.push(b))}),l.forEach(b=>{const v=b.getDataType();let O=p.find(U=>C(U,this.project)===z.fromReturnDeclarationToBodyArgumentDeclarationName(b)&&Zt(U.dataType,b.dataType));if(!O){const U=z.fromReturnDeclarationToBodyArgumentDeclarationName(b),re={id:N.UUID.uuid(),version:1,type:n.ArgumentDeclaration,name:U,description:`Aggretated list of all previously outputted values from each iteration by the output '${C(b,this.project)}'`,dataType:null,implements:null,index:b.index,required:b.required,parent:this.body.toReference(),writesValues:[]},Ve=R(re,this.project);Ve.setParent(this.body),Ve.initChildren(),Ve.addSelfToProject(),t.push(Ve),O=Ve}O.index!==b.index&&(O.sync({index:b.index}),e.push(O));const I=O.getDataType();let $=I;if(v)if(!I||!Zt(I,v)){if(!$){const U=v.clone(O);U.addSelfToProject(),$=U,t.push(U),e.push(O)}$.merge(v),$.sync({isList:!0})}else $.isList||($.sync({isList:!0}),e.push($));if(!v&&!$){const U={id:N.UUID.uuid(),version:1,type:n.DataType,isList:!0,entity:null,isNullable:!1,constant:!1,defaultValue:null,asType:!1,like:!1,inferred:!1,andChildrenGroup:[],orChildrenGroup:[],parent:O.toReference()},re=R(U,this.project);re.sync({isList:!0}),re.setParent(O),re.initChildren(),re.addSelfToProject(),t.push(re)}});const{updated:y,added:f,removed:m}=this.removeExtraBodyArgumentDeclarations();return e.push(...y),t.push(...f),i.push(...m),{updated:g(e),added:g(t),removed:g(i),self:this}}syncOutputsDeclarations(){const e=[],t=[],i=[],a=this.getUniqueReturnDeclarations(),s=this.outputsDeclarations;return a.forEach((l,p)=>{l.index!==p&&(l.sync({index:p}),e.push(l))}),a.forEach(l=>{const p=l.getDataType();let f=s.find(v=>C(v,this.project)===z.fromReturnDeclarationToLoopOutputDeclarationName(l)&&Zt(v.dataType,l.dataType));if(!f){const v=z.fromReturnDeclarationToLoopOutputDeclarationName(l),P={id:N.UUID.uuid(),version:1,type:n.ValueDescriptor,name:v,description:`Aggretated list of all previously outputted values from each iteration by the output '${C(l,this.project)}'`,dataType:null,index:l.index,required:l.required,parent:this.toReference()},O=R(P,this.project);O.setParent(this),O.initChildren(),O.addSelfToProject(),t.push(O),f=O}f.index!==l.index&&(f.sync({index:l.index}),e.push(f));let b=f.getDataType();if(p)if(!b||!Zt(b,p)){if(!b){const v=p.clone(f);v.addSelfToProject(),b=v,t.push(v),e.push(f)}b.merge(p),b.sync({isList:!0})}else b.isList||(b.sync({isList:!0}),e.push(b));if(!p&&!b){const v={id:N.UUID.uuid(),version:1,type:n.DataType,isList:!0,entity:null,isNullable:!1,constant:!1,defaultValue:null,asType:!1,like:!1,inferred:!1,andChildrenGroup:[],orChildrenGroup:[],parent:f.toReference()},P=R(v,this.project);P.sync({isList:!0}),P.setParent(f),P.initChildren(),P.addSelfToProject(),t.push(P)}}),s.filter(l=>!a.find(y=>C(l,this.project)===z.fromReturnDeclarationToLoopOutputDeclarationName(y))).forEach(l=>{const{affected:p,removed:y}=l.remove({ignoreUpstream:!1,seenEntities:new Set});e.push(...p),i.push(...y)}),{updated:g(e),added:g(t),removed:g(i),self:this}}syncOutputMaps(){const e=[],t=[],i=[],a=this.outputsDeclarations,s=this.outputs;return a.forEach(l=>{var f;let y=s.find(m=>{var b,v;return((b=m.declaration)==null?void 0:b.id)===l.id&&Zt((v=m.declaration)==null?void 0:v.dataType,l.dataType)});if(y)((f=y.declaration)==null?void 0:f.id)!==l.id&&(y.setDeclaration(l),e.push(y));else{const m={id:N.UUID.uuid(),version:1,type:n.OutputMap,index:l.index,declaration:l.toJSON(),writesValues:[],parent:this.toReference()},b=R(m,this.project);b.setParent(this),b.initChildren(),b.addSelfToProject(),t.push(b),y=b}y.index!==l.index&&(y.sync({index:l.index}),e.push(y))}),s.filter(l=>!a.find(y=>{var f;return((f=l.declaration)==null?void 0:f.id)===y.id})).forEach(l=>{const{affected:p,removed:y}=l.remove({ignoreUpstream:!1,seenEntities:new Set});e.push(...p),i.push(...y)}),{updated:g(e),added:g(t),removed:g(i),self:this}}createCurrentIterationNumberArgumentDeclaration(){const e=[],t=[],i=[];let s=this.body.inputs.find(y=>{var f;return y.name===z.CURRENT_ITERATION_NUMBER_ARG_NAME||y.id===((f=this.currentIterationNumberArgumentDeclaration)==null?void 0:f.id)});const o=this.getCurrentIterationNumberBuiltInValueDescriptor();if(!s){const y={id:N.UUID.uuid(),version:1,type:n.ArgumentDeclaration,name:z.CURRENT_ITERATION_NUMBER_ARG_NAME,description:"The number of the current iteration",dataType:null,implements:o==null?void 0:o.toJSON(),index:0,required:!0,parent:this.body.toReference(),writesValues:[]},f=R(y,this.project);f.setParent(this.body),f.initChildren(),f.addSelfToProject(),t.push(f),s=f}s.index!==0&&(s.sync({index:0}),e.push(s)),(!s.implements||s.implements.id!==o.id)&&(s.setImplements(o),e.push(s));let p=s.getDataType();if(!p){const y={id:N.UUID.uuid(),version:1,type:n.DataType,isList:!1,entity:null,isNullable:!1,constant:!1,defaultValue:null,asType:!1,like:!1,inferred:!1,andChildrenGroup:[],orChildrenGroup:[],parent:s.toReference()},f=R(y,this.project);f.setParent(s),f.initChildren(),f.addSelfToProject(),t.push(f),p=f}if(!p.entity||p.entity.type!==n.PrimitiveEntity||p.entity.name!==D.Number||p.entity.id!==B["primitive-entity"].number.id){const y=this.project.getBuiltIn(B["primitive-entity"].number.id);p.setEntity(y),e.push(p)}return this.currentIterationNumberArgumentDeclaration=s,{updated:g(e),added:g(t),removed:g(i),self:this}}removeExtraBodyArgumentDeclarations(){const e=[],t=[],i=[],a=this.body.inputs,s=this.getUniqueReturnDeclarations();return a.filter(l=>l===this.currentIterationNumberArgumentDeclaration||l===this.currentValueArgumentDeclaration?!1:!s.find(y=>C(l,this.project)===z.fromReturnDeclarationToBodyArgumentDeclarationName(y))).forEach(l=>{const{affected:p,removed:y}=l.remove({ignoreUpstream:!1,seenEntities:new Set});e.push(...p),i.push(...y)}),{updated:g(e),added:g(t),removed:g(i),self:this}}createCurrentValueInputBasedOnInputMap(){var l,p,y,f,m;const e=[],t=[],i=[];switch(this.declaration.id){case F.List:{const b=this.body.inputs.find(O=>{var I;return((I=O.implements)==null?void 0:I.id)===B[n.Loop][F.List].body.inputs.currentValue.id}),v=this.inputs.find(O=>{var I;return((I=O.declaration)==null?void 0:I.id)===B[n.Loop][F.List].inputs.list.id});if(!v)break;const P=this.getCurrentValueBuiltInValueDescriptor();if(b){this.currentValueArgumentDeclaration=b;const O=this.project.get(B[n.Loop][F.List].inputs.list.id);P&&(!b.implements||b.implements.id!==P.id)&&(b.setImplements(P),e.push(b));let $=b.getDataType();if(!$){const re={id:N.UUID.uuid(),version:1,type:n.DataType,isList:!1,entity:null,isNullable:!1,constant:!1,defaultValue:null,asType:!1,like:!1,inferred:!1,andChildrenGroup:[],orChildrenGroup:[],parent:O.toReference()},Ve=R(re,this.project);Ve.setParent(O),Ve.initChildren(),Ve.addSelfToProject(),t.push(Ve),$=Ve}const U=v.getDataType();$.merge(U),$.sync({isList:!1})}else{const O={id:N.UUID.uuid(),version:1,type:n.ArgumentDeclaration,name:z.CURRENT_VALUE_ARG_NAME,description:null,index:0,required:!0,implements:P,writesValues:[],dataType:null,parent:this.body.toReference()},I=R(O,this.project);I.initChildren(),I.setParent(this.body),I.addSelfToProject(),P&&(!I.implements||I.implements.id!==P.id)&&(I.setImplements(P),e.push(I)),t.push(I),this.currentValueArgumentDeclaration=I}break}case F.ManualFlow:{this.currentValueArgumentDeclaration=null;break}case F.Counted:{this.currentValueArgumentDeclaration=null;break}case F.ObjectKeys:{const b=this.body.inputs.find(O=>{var I;return((I=O.implements)==null?void 0:I.id)===B[n.Loop][F.ObjectKeys].body.inputs.currentValue.id});if(!this.inputs.find(O=>{var I;return((I=O.declaration)==null?void 0:I.id)===B[n.Loop][F.ObjectKeys].inputs.object.id}))break;const P=this.getCurrentValueBuiltInValueDescriptor();if(b){this.currentValueArgumentDeclaration=b;const O=this.project.get(B[n.Loop][F.ObjectKeys].inputs.object.id);P&&(!b.implements||b.implements.id!==P.id)&&(b.setImplements(P),e.push(b));let $=b.getDataType();if($){const U=this.project.getBuiltIn(B["primitive-entity"].string.id);((l=$.entity)==null?void 0:l.id)!==U.id&&($.setEntity(U),e.push($))}else{const U={id:N.UUID.uuid(),version:1,type:n.DataType,isList:!1,entity:null,isNullable:!1,constant:!1,defaultValue:null,asType:!1,like:!1,inferred:!1,andChildrenGroup:[],orChildrenGroup:[],parent:O.toReference()},re=R(U,this.project);re.setParent(O),re.initChildren(),re.addSelfToProject(),$=re}}else{const O={id:N.UUID.uuid(),version:1,type:n.ArgumentDeclaration,name:z.CURRENT_VALUE_ARG_NAME,description:null,index:0,required:!0,implements:P,writesValues:[],dataType:null,parent:this.body.toReference()},I=R(O,this.project);I.initChildren(),I.setParent(this.body),I.addSelfToProject(),P&&(!I.implements||I.implements.id!==P.id)&&(I.setImplements(P),e.push(I)),t.push(I),this.currentValueArgumentDeclaration=I}break}case F.ObjectValues:{const b=this.body.inputs.find(O=>{var I;return((I=O.implements)==null?void 0:I.id)===B[n.Loop][F.ObjectValues].body.inputs.currentValue.id}),v=this.inputs.find(O=>{var I;return((I=O.declaration)==null?void 0:I.id)===B[n.Loop][F.ObjectValues].inputs.object.id});if(!v)break;const P=this.getCurrentValueBuiltInValueDescriptor();if(b){this.currentValueArgumentDeclaration=b;const O=this.project.get(B[n.Loop][F.ObjectValues].inputs.object.id);P&&(!b.implements||b.implements.id!==P.id)&&(b.setImplements(P),e.push(b));let $=b.getDataType();if($){const U=v.getDataType(),re=((y=U==null?void 0:U.entity)==null?void 0:y.properties)||[];(f=$.orChildrenGroup)==null||f.forEach(Ve=>{const{affected:wt,removed:_t}=Ve.remove({ignoreUpstream:!1,seenEntities:new Set});e.push(...wt),i.push(..._t)}),re.forEach(Ve=>{const wt=Ve.getDataType();if(wt){const _t=wt.clone($);_t.sync({parentRelationType:ze.OrDataTypeGroup}),_t.addSelfToProject(),t.push(_t)}else{const _t={id:N.UUID.uuid(),version:1,type:n.DataType,isList:!1,entity:null,isNullable:!1,constant:!1,defaultValue:null,asType:!1,like:!1,inferred:!1,andChildrenGroup:[],orChildrenGroup:[],parentRelationType:ze.OrDataTypeGroup,parent:$.toReference()},qr=R(_t,this.project);qr.setParent($),qr.initChildren(),qr.addSelfToProject(),t.push(qr)}})}else{const U={id:N.UUID.uuid(),version:1,type:n.DataType,isList:!1,entity:null,isNullable:!1,constant:!1,defaultValue:null,asType:!1,like:!1,inferred:!1,andChildrenGroup:[],orChildrenGroup:[],parent:O.toReference()},re=R(U,this.project);re.setParent(O),re.initChildren(),re.addSelfToProject(),$=re;const Ve=v.getDataType();(((p=Ve==null?void 0:Ve.entity)==null?void 0:p.properties)||[]).forEach(_t=>{const qr=_t.getDataType();if(qr){const ja=qr.clone(re);ja.sync({parentRelationType:ze.OrDataTypeGroup}),ja.addSelfToProject(),t.push(ja)}else{const ja={id:N.UUID.uuid(),version:1,type:n.DataType,isList:!1,entity:null,isNullable:!1,constant:!1,defaultValue:null,asType:!1,like:!1,inferred:!1,andChildrenGroup:[],orChildrenGroup:[],parentRelationType:ze.OrDataTypeGroup,parent:re.toReference()},Ho=R(ja,this.project);Ho.setParent(re),Ho.initChildren(),Ho.addSelfToProject(),t.push(Ho)}})}}else{const O={id:N.UUID.uuid(),version:1,type:n.ArgumentDeclaration,name:z.CURRENT_VALUE_ARG_NAME,description:null,index:0,required:!0,implements:P,writesValues:[],dataType:null,parent:this.body.toReference()},I=R(O,this.project);I.initChildren(),I.setParent(this.body),I.addSelfToProject(),P&&(!I.implements||I.implements.id!==P.id)&&(I.setImplements(P),e.push(I)),t.push(I),this.currentValueArgumentDeclaration=I}break}case F.String:{const b=this.body.inputs.find(O=>{var I;return((I=O.implements)==null?void 0:I.id)===B[n.Loop][F.String].body.inputs.currentValue.id});if(!this.inputs.find(O=>{var I;return((I=O.declaration)==null?void 0:I.id)===B[n.Loop][F.String].inputs.string.id}))break;const P=this.getCurrentValueBuiltInValueDescriptor();if(b){this.currentValueArgumentDeclaration=b;const O=this.project.get(B[n.Loop]["string-loop"].inputs.string.id);P&&(!b.implements||b.implements.id!==P.id)&&(b.setImplements(P),e.push(b));let $=b.getDataType();if($){const U=this.project.getBuiltIn(B["primitive-entity"].string.id);((m=$.entity)==null?void 0:m.id)!==U.id&&($.setEntity(U),e.push($))}else{const U={id:N.UUID.uuid(),version:1,type:n.DataType,isList:!1,entity:null,isNullable:!1,constant:!1,defaultValue:null,asType:!1,like:!1,inferred:!1,andChildrenGroup:[],orChildrenGroup:[],parent:O.toReference()},re=R(U,this.project);re.setParent(O),re.initChildren(),re.addSelfToProject(),t.push(re),$=re}}else{const O={id:N.UUID.uuid(),version:1,type:n.ArgumentDeclaration,name:z.CURRENT_VALUE_ARG_NAME,description:null,index:0,required:!0,implements:P,writesValues:[],dataType:null,parent:this.body.toReference()},I=R(O,this.project);I.initChildren(),I.setParent(this.body),I.addSelfToProject(),P&&(!I.implements||I.implements.id!==P.id)&&(I.setImplements(P),e.push(I)),t.push(I),this.currentValueArgumentDeclaration=I}break}}const{updated:a,added:s,removed:o}=this.removeExtraBodyArgumentDeclarations();return e.push(...a),t.push(...s),i.push(...o),{updated:g(e),added:g(t),removed:g(i),self:this}}syncFixedBodyArgumentDeclarations(){const e=[],t=[],i=[],{updated:a,added:s,removed:o}=this.createCurrentIterationNumberArgumentDeclaration();e.push(...a),t.push(...s),i.push(...o);const{updated:l,added:p,removed:y}=this.createCurrentValueInputBasedOnInputMap();return e.push(...l),t.push(...p),i.push(...y),{updated:g(e),added:g(t),removed:g(i),self:this}}syncInputMaps(){const e=[],t=[],i=[];switch(this.declaration.id){case F.List:{let a=null;if(this.inputs.forEach(s=>{var o;((o=s.declaration)==null?void 0:o.id)===B[n.Loop]["list-loop"].inputs.list.id?a=s:(s.remove(),i.push(s))}),a){if(a.declaration.id!==B[n.Loop]["list-loop"].inputs.list.id){const s=this.project.get(B[n.Loop]["list-loop"].inputs.list.id);a.setDeclaration(s),e.push(a)}}else{const s=this.project.get(B[n.Loop]["list-loop"].inputs.list.id),o={id:N.UUID.uuid(),version:1,type:n.InputMap,name:null,description:null,index:0,declaration:s.toJSON(),readsValue:null,defaultValue:null,parent:this.toReference()},l=R(o,this.project);l.initChildren(),l.setParent(this),l.addSelfToProject(),t.push(l)}break}case F.ManualFlow:{this.inputs.forEach(a=>{a.remove(),i.push(a)});break}case F.Counted:{let a=null;if(this.inputs.forEach(s=>{var o;((o=s.declaration)==null?void 0:o.id)===B[n.Loop]["counted-loop"].inputs.number.id?a=s:(s.remove(),i.push(s))}),a){if(a.declaration.id!==B[n.Loop]["counted-loop"].inputs.number.id){const s=this.project.get(B[n.Loop]["counted-loop"].inputs.number.id);a.setDeclaration(s),e.push(a)}}else{const s=this.project.get(B[n.Loop]["counted-loop"].inputs.number.id),o={id:N.UUID.uuid(),version:1,type:n.InputMap,name:null,description:null,index:0,declaration:s.toJSON(),readsValue:null,defaultValue:null,parent:this.toReference()},l=R(o,this.project);l.initChildren(),l.setParent(this),l.addSelfToProject(),t.push(l)}break}case F.ObjectKeys:{let a=null;if(this.inputs.forEach(s=>{var o;((o=s.declaration)==null?void 0:o.id)===B[n.Loop]["object-keys-loop"].inputs.object.id?a=s:(s.remove(),i.push(s))}),a){if(a.declaration.id!==B[n.Loop]["object-keys-loop"].inputs.object.id){const s=this.project.get(B[n.Loop]["object-keys-loop"].inputs.object.id);a.setDeclaration(s),e.push(a)}}else{const s=this.project.get(B[n.Loop]["object-keys-loop"].inputs.object.id),o={id:N.UUID.uuid(),version:1,type:n.InputMap,name:null,description:null,index:0,declaration:s.toJSON(),readsValue:null,defaultValue:null,parent:this.toReference()},l=R(o,this.project);l.initChildren(),l.setParent(this),l.addSelfToProject(),t.push(l)}break}case F.ObjectValues:{let a=null;if(this.inputs.forEach(s=>{var o;((o=s.declaration)==null?void 0:o.id)===B[n.Loop]["object-values-loop"].inputs.object.id?a=s:(s.remove(),i.push(s))}),a){if(a.declaration.id!==B[n.Loop]["object-values-loop"].inputs.object.id){const s=this.project.get(B[n.Loop]["object-values-loop"].inputs.object.id);a.setDeclaration(s),e.push(a)}}else{const s=this.project.get(B[n.Loop]["object-values-loop"].inputs.object.id),o={id:N.UUID.uuid(),version:1,type:n.InputMap,name:null,description:null,index:0,declaration:s.toJSON(),readsValue:null,defaultValue:null,parent:this.toReference()},l=R(o,this.project);l.initChildren(),l.setParent(this),l.addSelfToProject(),t.push(l)}break}case F.String:{let a=null;if(this.inputs.forEach(s=>{var o;((o=s.declaration)==null?void 0:o.id)===B[n.Loop]["string-loop"].inputs.string.id?a=s:(s.remove(),i.push(s))}),a){if(a.declaration.id!==B[n.Loop]["string-loop"].inputs.string.id){const s=this.project.get(B[n.Loop]["string-loop"].inputs.string.id);a.setDeclaration(s),e.push(a)}}else{const s=this.project.get(B[n.Loop]["string-loop"].inputs.string.id),o={id:N.UUID.uuid(),version:1,type:n.InputMap,name:null,description:null,index:0,declaration:s.toJSON(),readsValue:null,defaultValue:null,parent:this.toReference()},l=R(o,this.project);l.initChildren(),l.setParent(this),l.addSelfToProject(),t.push(l)}break}}return{updated:g(e),added:g(t),removed:g(i),self:this}}getCurrentValueBuiltInValueDescriptor(){var t;const e=(t=B[n.Loop][this.declaration.id].body.inputs.currentValue)==null?void 0:t.id;return e?this.project.get(e):null}getCurrentIterationNumberBuiltInValueDescriptor(){const e=B[n.Loop][this.declaration.id].body.inputs.iterationNumber.id;return this.project.get(e)}syncBody(){var o;const e=[],t=[],i=[],a=B[n.Loop][this.declaration.id].body.id,s=this.project.getBuiltIn(a);if(this.body)((o=this.body.implements)==null?void 0:o.id)!==s.id&&(this.body.setImplements(s),this.body.setParent(this),e.push(this.body));else{const l={id:N.UUID.uuid(),version:1,type:n.FunctionDeclaration,name:s.name,description:null,inputs:[],index:null,returnStatements:[],calls:[],collapsed:!1,private:!1,implements:s.toJSON(),x:0,y:0,parent:this.toReference()},p=R(l,this.project);p.initChildren(),p.setParent(this),p.addSelfToProject(),t.push(p)}return{self:this,updated:g(e),added:g(t),removed:g(i)}}syncChildren(){const e=[],t=[],i=[],{updated:a,added:s,removed:o}=this.syncBody();e.push(...a),t.push(...s),i.push(...o);const{updated:l,added:p,removed:y}=this.syncInputMaps();e.push(...l),t.push(...p),i.push(...y);const{updated:f,added:m,removed:b}=this.syncTerminationStatements();e.push(...f),t.push(...m),i.push(...b);const{updated:v,added:P,removed:O}=this.syncBodyArgumentsDeclarations();e.push(...v),t.push(...P),i.push(...O);const{updated:I,added:$,removed:U}=this.syncOutputsDeclarations();e.push(...I),t.push(...$),i.push(...U);const{updated:re,added:Ve,removed:wt}=this.syncOutputMaps();return e.push(...re),t.push(...Ve),i.push(...wt),{self:this,updated:g(e),added:g(t),removed:g(i)}}};c(z,"CURRENT_ITERATION_NUMBER_ARG_NAME","Current iteration number"),c(z,"CURRENT_VALUE_ARG_NAME","Current value"),c(z,"MUTABLE_BASE_PROPERTIES",[]),c(z,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),c(z,"BASE_PROPERTIES",[...z.MUTABLE_BASE_PROPERTIES,...z.INMUTABLE_BASE_PROPERTIES]),c(z,"MUTABLE_META_PROPERTIES",[...z.MUTABLE_BASE_PROPERTIES,"x","y"]),c(z,"INMUTABLE_META_PROPERTIES",[...z.INMUTABLE_BASE_PROPERTIES]),c(z,"META_PROPERTIES",[...z.MUTABLE_META_PROPERTIES,...z.INMUTABLE_META_PROPERTIES]),c(z,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),c(z,"INMUTABLE_UPSTREAM_PROPERTIES",["parent","declaration"]),c(z,"UPSTREAM_PROPERTIES",[...z.MUTABLE_UPSTREAM_PROPERTIES,...z.INMUTABLE_UPSTREAM_PROPERTIES]),c(z,"MUTABLE_DOWNSTREAM_PROPERTIES",["body","inputs","outputs","outputsDeclarations","successCalls","errorCalls","error","breakStatements","continueStatements"]),c(z,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),c(z,"DOWNSTREAM_PROPERTIES",[...z.MUTABLE_DOWNSTREAM_PROPERTIES,...z.INMUTABLE_DOWNSTREAM_PROPERTIES]),c(z,"PROPERTIES",[...z.META_PROPERTIES,...z.UPSTREAM_PROPERTIES,...z.DOWNSTREAM_PROPERTIES]);let wr=z;function s2(r){const e=r6(),t=r.toJSON();e.safeParse(t).success,r.inputs.forEach(o=>o.validate());const s=[...Sn(r)];return ae(r.errors,s)}const be=class be{constructor(e,t){c(this,"initialData");c(this,"id");c(this,"version");c(this,"x");c(this,"y");c(this,"type",n.Condition);c(this,"successCalls",[]);c(this,"errorCalls",[]);c(this,"declaration");c(this,"inputs",[]);c(this,"calledBySuccess",[]);c(this,"calledByError",[]);c(this,"calledByEntry",[]);c(this,"project");c(this,"errors",[]);c(this,"parent");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 i=t;if(e.parent){const f=_(e.parent);i=t.get(f)}const a=e.calledByEntry.map(f=>{const m=_(f);return t.get(m)}),s=e.calledBySuccess.map(f=>{const m=_(f);return t.get(m)}),o=e.calledByError.map(f=>{const m=_(f);return t.get(m)});let l;if(e.declaration){const f=_(e.declaration);l=t.get(f)}const p={id:e.id,version:1,type:n.Condition,declaration:l,calledByEntry:a,calledBySuccess:s,calledByError:o,errorCalls:[],successCalls:[],inputs:[],x:0,y:0,parent:i},y=R(p,t);return y.setParent(i),y.initChildren(),y}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[],s=Je(i,{parent:{list:!1,types:[...ct,n.Project],optional:!0}},t);return i=s.modifiedData,a.push(...s.errors,...Ne(i)),e.declaration?t.get(e.declaration)?t.conditionDeclarations.find(p=>p.id===e.declaration)||a.push(new E({id:`${e.id}--${h.InvalidImplementsReference}`,code:h.InvalidImplementsReference,severity:T.Error,message:`Entity of type '${e.type}' with id '${e.id}' has an 'declaration' property that isn't pointing to an action descriptor reserved for '${n.Condition}' entities.
53
+ 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}}addSelfToProject(){const e=[this],t=[],i=[];return this.parent===this.project&&this.project.addLoop(this),this.successCalls.forEach(a=>{a.addSuccessCaller(this),e.push(a)}),this.errorCalls.forEach(a=>{a.addErrorCaller(this),e.push(a)}),this.calledByEntry.forEach(a=>{a.addCall(this),e.push(a)}),this.calledBySuccess.forEach(a=>{a.addSuccessCall(this),e.push(a)}),this.calledByError.forEach(a=>{a.addErrorCall(this),e.push(a)}),{updated:g(e),added:g(t),removed:g(i),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(e){const t=this.inputs.findIndex(i=>i.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)}addOutputDeclaration(e){return this.outputsDeclarations.includes(e)?this:(this.outputsDeclarations.push(e),this)}removeOutputDeclaration(e){const t=this.outputsDeclarations.findIndex(i=>i.id===e.id);return t>-1&&this.outputsDeclarations.splice(t,1),this}addOutput(e){return this.outputs.includes(e)?this:(this.outputs.push(e),this)}removeOutput(e){const t=this.outputs.findIndex(i=>i.id===e.id);return t>-1&&this.outputs.splice(t,1),this}setBody(e){return this.body=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.push(e),this}addSuccessCall(e){return 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 i=this.errorCalls.findIndex(a=>a.id===e.id);return i>-1&&this.errorCalls.splice(i,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}replaceDetachedChild(e,t){const i=this.detachedChildren.indexOf(e);return i!==-1&&(this.detachedChildren[i]=t),this}subscribeDetachedChild(e){return this.detachedChildren.includes(e)||this.detachedChildren.push(e),this}setParent(e){return this.parent=e,this}initChildren(){return this.initialized?this:(this.initialized=!0,this.declaration=R(this.initialData.declaration,this.project),this.successCalls=this.initialData.successCalls.map(e=>{const t=R(e,this.project);return t.addSuccessCaller(this),[n.BreakStatement,n.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==n.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.errorCalls=this.initialData.errorCalls.map(e=>{const t=R(e,this.project);return t.addErrorCaller(this),[n.BreakStatement,n.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==n.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.inputs=this.initialData.inputs.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.outputs=this.initialData.outputs.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.initialData.process&&(this.process=R(this.initialData.process,this.project),this.process.setParent(this),this.process.initChildren()),this.initialData.body&&(this.body=R(this.initialData.body,this.project),this.body.setParent(this),this.body.initChildren()),this.initialData.error&&(this.error=R(this.initialData.error,this.project),this.error.setParent(this),this.error.initChildren()),this.syncChildren(),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(){return this}async create(){return this}async update(e){return this}async delete(){return this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const i=[],a=[];if(t.has(this.id))return{affected:[],removed:[]};if(t.add(this.id),a.push(this),this.unsubscribe(),this.inputs.forEach(s=>{const{affected:o,removed:l}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...l)}),this.outputs.forEach(s=>{const{affected:o,removed:l}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...l)}),this.body.remove({ignoreUpstream:!0,seenEntities:t}),this.error){const{affected:s,removed:o}=this.error.remove({ignoreUpstream:!0,seenEntities:t});i.push(...s),a.push(...o)}return this.successCalls.forEach(s=>{i.push(s),s.removeCaller(this)}),this.errorCalls.forEach(s=>{i.push(s),s.removeCaller(this)}),e||this.calledBy.forEach(s=>{i.push(s),s.removeCall(this)}),{affected:g(i),removed:g(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(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.outputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.body.restore({seenEntities:e}),this.successCalls.forEach(i=>{t.push(i),i.addSuccessCaller(this)}),this.errorCalls.forEach(i=>{t.push(i),i.addErrorCaller(this)}),this.calledBySuccess.forEach(i=>{t.push(i),i.addSuccessCall(this)}),this.calledByError.forEach(i=>{t.push(i),i.addErrorCall(this)}),this.calledByEntry.forEach(i=>{t.push(i),i.addCall(this)}),{affected:g(t),self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.inputs.flatMap(i=>i.toFlat(e)),...this.outputs.flatMap(i=>i.toFlat(e)),...this.process?this.process.toFlat(e):[],...this.successCalls.flatMap(i=>i.toFlat(e)),...this.errorCalls.flatMap(i=>i.toFlat(e)),...this.error?this.error.toFlat(e):[],...this.body?this.body.toFlat(e):[],...this.continueStatements.flatMap(i=>i.toFlat(e)),...this.breakStatements.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.inputs.flatMap(i=>i.toFlatIds(e)),...this.outputs.flatMap(i=>i.toFlatIds(e)),...this.process?this.process.toFlatIds(e):[],...this.successCalls.flatMap(i=>i.toFlatIds(e)),...this.errorCalls.flatMap(i=>i.toFlatIds(e)),...this.error?this.error.toFlatIds(e):[],...this.body?this.body.toFlatIds(e):[],...this.continueStatements.flatMap(i=>i.toFlatIds(e)),...this.breakStatements.flatMap(i=>i.toFlatIds(e))])}toJSON(){var e,t;return{id:this.id,version:this.version,type:this.type,x:this.x,y:this.y,calledBySuccess:this.calledBySuccess.map(i=>i.toReference()),calledByError:this.calledByError.map(i=>i.toReference()),calledByEntry:this.calledByEntry.map(i=>i.toReference()),process:((e=this.process)==null?void 0:e.toJSON())||null,declaration:this.declaration.toJSON(),inputs:this.inputs.map(i=>i.toJSON()),outputs:this.outputs.map(i=>i.toJSON()),outputsDeclarations:this.outputsDeclarations.map(i=>i.toJSON()),successCalls:this.successCalls.map(i=>i.toJSON()),errorCalls:this.errorCalls.map(i=>i.toJSON()),error:((t=this.error)==null?void 0:t.toJSON())||null,body:this.body.toJSON(),parent:this.parent.toReference(),breakStatements:this.breakStatements.map(i=>i.toJSON()),continueStatements:this.continueStatements.map(i=>i.toJSON())}}toReference(){return{id:this.id+"--"+N.UUID.uuid()+"--ref",type:n.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){var e,t,i,a;return{id:this.id,version:this.version,type:this.type,x:this.x,y:this.y,declaration:((e=this.declaration)==null?void 0:e.toReference())||null,body:((t=this.body)==null?void 0:t.toReference())||null,inputs:this.inputs.map(s=>s.toReference()),outputs:this.outputs.map(s=>s.toReference()),outputsDeclarations:this.outputsDeclarations.map(s=>s.toReference()),successCalls:this.successCalls.map(s=>s.toReference()),errorCalls:this.errorCalls.map(s=>s.toReference()),process:((i=this.process)==null?void 0:i.toReference())||null,calledBySuccess:this.calledBySuccess.map(s=>s.toReference()),calledByError:this.calledByError.map(s=>s.toReference()),calledByEntry:this.calledByEntry.map(s=>s.toReference()),continueStatements:this.continueStatements.map(s=>s.toReference()),breakStatements:this.breakStatements.map(s=>s.toReference()),error:((a=this.error)==null?void 0:a.toReference())||null,parent:this.parent.toReference()}}toFlatJSON(e=new Set){var i;return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...((i=this.body)==null?void 0:i.toFlatJSON(e))||[],...this.successCalls.flatMap(a=>a.toFlatJSON(e)),...this.errorCalls.flatMap(a=>a.toFlatJSON(e)),...this.inputs.flatMap(a=>a.toFlatJSON(e)),...this.outputs.flatMap(a=>a.toFlatJSON(e)),...this.continueStatements.flatMap(a=>a.toFlatJSON(e)),...this.breakStatements.flatMap(a=>a.toFlatJSON(e)),...this.error?this.error.toFlatJSON(e):[],...this.process?this.process.toFlatJSON(e):[]])}toGenerationTarget(){const e=this.parent.type===n.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){var i;return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...((i=this.body)==null?void 0:i.toFlatGenerationTarget(e))||[],...this.successCalls.flatMap(a=>a.toFlatGenerationTarget(e)),...this.errorCalls.flatMap(a=>a.toFlatGenerationTarget(e)),...this.inputs.flatMap(a=>a.toFlatGenerationTarget(e)),...this.outputs.flatMap(a=>a.toFlatGenerationTarget(e)),...this.continueStatements.flatMap(a=>a.toFlatGenerationTarget(e)),...this.breakStatements.flatMap(a=>a.toFlatGenerationTarget(e)),...this.error?this.error.toFlatGenerationTarget(e):[],...this.process?this.process.toFlatGenerationTarget(e):[]])}clearErrors(){var e,t;return this.errors=[],this.inputs.forEach(i=>i.clearErrors()),this.outputs.forEach(i=>i.clearErrors()),this.successCalls.forEach(i=>i.clearErrors()),this.errorCalls.forEach(i=>i.clearErrors()),this.continueStatements.forEach(i=>i.clearErrors()),this.breakStatements.forEach(i=>i.clearErrors()),(e=this.process)==null||e.clearErrors(),(t=this.error)==null||t.clearErrors(),this}validate(){const e=a2(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.body?this.body.getErrors():[],...this.error?this.error.getErrors():[],...this.process?this.process.getErrors():[]]}getShallowErrors(){return this.errors}clone(e){return new z(this.toJSON(),this.project)}getVariableInstances(){return this.body?ie(this.body).filter(i=>i.type===n.VariableInstance):[]}addReturnStatement(e){return $e.includes(this.parent.type)&&this.parent.addReturnStatement(e),this}removeReturnStatement(e){return $e.includes(this.parent.type)&&this.parent.removeReturnStatement(e),this}addBreakStatement(e){return this.breakStatements.includes(e)||this.breakStatements.push(e),this}removeBreakStatement(e){const t=this.breakStatements.indexOf(e);return t!==-1&&this.breakStatements.splice(t,1),this}addContinueStatement(e){return this.continueStatements.includes(e)||this.continueStatements.push(e),this}removeContinueStatement(e){const t=this.continueStatements.indexOf(e);return t!==-1&&this.continueStatements.splice(t,1),this}getUniqueReturnDeclarations(){const e=[];return[...this.breakStatements,...this.continueStatements].forEach(i=>{i.outputs.forEach(s=>{e.find(l=>l===s||C(l,this.project)===C(s,this.project)&&Zt(l.dataType,s.dataType))||e.push(s)})}),g(e)}syncTerminationStatements(){const e=[],t=[],i=[],a=this.getUniqueReturnDeclarations(),s=[...this.breakStatements,...this.continueStatements];return a.forEach((o,l)=>{o.index!==l&&(o.sync({index:l}),e.push(o))}),s.forEach(o=>{const l=o.outputs,p=a.filter(y=>!l.find(f=>C(y,this.project)===C(f,this.project)&&Zt(y.dataType,f.dataType)));p.length&&e.push(o),p.forEach(y=>{const f=y.clone(o);f.addSelfToProject(),t.push(f)})}),{updated:g(e),added:g(t),removed:g(i),self:this}}syncBodyArgumentsDeclarations(){const e=[],t=[],i=[],{updated:a,added:s,removed:o}=this.syncFixedBodyArgumentDeclarations();e.push(...a),t.push(...s),i.push(...o);const l=this.getUniqueReturnDeclarations(),p=this.body.inputs;l.forEach((b,v)=>{b.index!==v&&(b.sync({index:v}),e.push(b))}),l.forEach(b=>{const v=b.getDataType();let O=p.find(U=>C(U,this.project)===z.fromReturnDeclarationToBodyArgumentDeclarationName(b)&&Zt(U.dataType,b.dataType));if(!O){const U=z.fromReturnDeclarationToBodyArgumentDeclarationName(b),re={id:N.UUID.uuid(),version:1,type:n.ArgumentDeclaration,name:U,description:`Aggretated list of all previously outputted values from each iteration by the output '${C(b,this.project)}'`,dataType:null,implements:null,index:b.index,required:b.required,parent:this.body.toReference(),writesValues:[]},Ve=R(re,this.project);Ve.setParent(this.body),Ve.initChildren(),Ve.addSelfToProject(),t.push(Ve),O=Ve}O.index!==b.index&&(O.sync({index:b.index}),e.push(O));const I=O.getDataType();let $=I;if(v)if(!I||!Zt(I,v)){if(!$){const U=v.clone(O);U.addSelfToProject(),$=U,t.push(U),e.push(O)}$.merge(v),$.sync({isList:!0})}else $.isList||($.sync({isList:!0}),e.push($));if(!v&&!$){const U={id:N.UUID.uuid(),version:1,type:n.DataType,isList:!0,entity:null,isNullable:!1,constant:!1,defaultValue:null,asType:!1,like:!1,inferred:!1,andChildrenGroup:[],orChildrenGroup:[],parent:O.toReference()},re=R(U,this.project);re.sync({isList:!0}),re.setParent(O),re.initChildren(),re.addSelfToProject(),t.push(re)}});const{updated:y,added:f,removed:m}=this.removeExtraBodyArgumentDeclarations();return e.push(...y),t.push(...f),i.push(...m),{updated:g(e),added:g(t),removed:g(i),self:this}}syncOutputsDeclarations(){const e=[],t=[],i=[],a=this.getUniqueReturnDeclarations(),s=this.outputsDeclarations;return a.forEach((l,p)=>{l.index!==p&&(l.sync({index:p}),e.push(l))}),a.forEach(l=>{const p=l.getDataType();let f=s.find(v=>C(v,this.project)===z.fromReturnDeclarationToLoopOutputDeclarationName(l)&&Zt(v.dataType,l.dataType));if(!f){const v=z.fromReturnDeclarationToLoopOutputDeclarationName(l),P={id:N.UUID.uuid(),version:1,type:n.ValueDescriptor,name:v,description:`Aggretated list of all previously outputted values from each iteration by the output '${C(l,this.project)}'`,dataType:null,index:l.index,required:l.required,parent:this.toReference()},O=R(P,this.project);O.setParent(this),O.initChildren(),O.addSelfToProject(),t.push(O),f=O}f.index!==l.index&&(f.sync({index:l.index}),e.push(f));let b=f.getDataType();if(p)if(!b||!Zt(b,p)){if(!b){const v=p.clone(f);v.addSelfToProject(),b=v,t.push(v),e.push(f)}b.merge(p),b.sync({isList:!0})}else b.isList||(b.sync({isList:!0}),e.push(b));if(!p&&!b){const v={id:N.UUID.uuid(),version:1,type:n.DataType,isList:!0,entity:null,isNullable:!1,constant:!1,defaultValue:null,asType:!1,like:!1,inferred:!1,andChildrenGroup:[],orChildrenGroup:[],parent:f.toReference()},P=R(v,this.project);P.sync({isList:!0}),P.setParent(f),P.initChildren(),P.addSelfToProject(),t.push(P)}}),s.filter(l=>!a.find(y=>C(l,this.project)===z.fromReturnDeclarationToLoopOutputDeclarationName(y))).forEach(l=>{const{affected:p,removed:y}=l.remove({ignoreUpstream:!1,seenEntities:new Set});e.push(...p),i.push(...y)}),{updated:g(e),added:g(t),removed:g(i),self:this}}syncOutputMaps(){const e=[],t=[],i=[],a=this.outputsDeclarations,s=this.outputs;return a.forEach(l=>{var f;let y=s.find(m=>{var b,v;return((b=m.declaration)==null?void 0:b.id)===l.id&&Zt((v=m.declaration)==null?void 0:v.dataType,l.dataType)});if(y)((f=y.declaration)==null?void 0:f.id)!==l.id&&(y.setDeclaration(l),e.push(y));else{const m={id:N.UUID.uuid(),version:1,type:n.OutputMap,index:l.index,declaration:l.toJSON(),writesValues:[],parent:this.toReference()},b=R(m,this.project);b.setParent(this),b.initChildren(),b.addSelfToProject(),t.push(b),y=b}y.index!==l.index&&(y.sync({index:l.index}),e.push(y))}),s.filter(l=>!a.find(y=>{var f;return((f=l.declaration)==null?void 0:f.id)===y.id})).forEach(l=>{const{affected:p,removed:y}=l.remove({ignoreUpstream:!1,seenEntities:new Set});e.push(...p),i.push(...y)}),{updated:g(e),added:g(t),removed:g(i),self:this}}createCurrentIterationNumberArgumentDeclaration(){const e=[],t=[],i=[];let s=this.body.inputs.find(y=>{var f;return y.name===z.CURRENT_ITERATION_NUMBER_ARG_NAME||y.id===((f=this.currentIterationNumberArgumentDeclaration)==null?void 0:f.id)});const o=this.getCurrentIterationNumberBuiltInValueDescriptor();if(!s){const y={id:N.UUID.uuid(),version:1,type:n.ArgumentDeclaration,name:z.CURRENT_ITERATION_NUMBER_ARG_NAME,description:"The number of the current iteration",dataType:null,implements:o==null?void 0:o.toJSON(),index:this.body.inputs.length,required:!0,parent:this.body.toReference(),writesValues:[]},f=R(y,this.project);f.setParent(this.body),f.initChildren(),f.addSelfToProject(),t.push(f),s=f}!s.index&&s.index!==0&&(s.sync({index:0}),e.push(s)),(!s.implements||s.implements.id!==o.id)&&(s.setImplements(o),e.push(s));let p=s.getDataType();if(!p){const y={id:N.UUID.uuid(),version:1,type:n.DataType,isList:!1,entity:null,isNullable:!1,constant:!1,defaultValue:null,asType:!1,like:!1,inferred:!1,andChildrenGroup:[],orChildrenGroup:[],parent:s.toReference()},f=R(y,this.project);f.setParent(s),f.initChildren(),f.addSelfToProject(),t.push(f),p=f}if(!p.entity||p.entity.type!==n.PrimitiveEntity||p.entity.name!==D.Number||p.entity.id!==B["primitive-entity"].number.id){const y=this.project.getBuiltIn(B["primitive-entity"].number.id);p.setEntity(y),e.push(p)}return this.currentIterationNumberArgumentDeclaration=s,{updated:g(e),added:g(t),removed:g(i),self:this}}removeExtraBodyArgumentDeclarations(){const e=[],t=[],i=[],a=this.body.inputs,s=this.getUniqueReturnDeclarations();return a.filter(l=>l===this.currentIterationNumberArgumentDeclaration||l===this.currentValueArgumentDeclaration?!1:!s.find(y=>C(l,this.project)===z.fromReturnDeclarationToBodyArgumentDeclarationName(y))).forEach(l=>{const{affected:p,removed:y}=l.remove({ignoreUpstream:!1,seenEntities:new Set});e.push(...p),i.push(...y)}),{updated:g(e),added:g(t),removed:g(i),self:this}}createCurrentValueInputBasedOnInputMap(){var l,p,y,f,m;const e=[],t=[],i=[];switch(this.declaration.id){case F.List:{const b=this.body.inputs.find(O=>{var I;return((I=O.implements)==null?void 0:I.id)===B[n.Loop][F.List].body.inputs.currentValue.id}),v=this.inputs.find(O=>{var I;return((I=O.declaration)==null?void 0:I.id)===B[n.Loop][F.List].inputs.list.id});if(!v)break;const P=this.getCurrentValueBuiltInValueDescriptor();if(b){this.currentValueArgumentDeclaration=b;const O=this.project.get(B[n.Loop][F.List].inputs.list.id);P&&(!b.implements||b.implements.id!==P.id)&&(b.setImplements(P),e.push(b));let $=b.getDataType();if(!$){const re={id:N.UUID.uuid(),version:1,type:n.DataType,isList:!1,entity:null,isNullable:!1,constant:!1,defaultValue:null,asType:!1,like:!1,inferred:!1,andChildrenGroup:[],orChildrenGroup:[],parent:O.toReference()},Ve=R(re,this.project);Ve.setParent(O),Ve.initChildren(),Ve.addSelfToProject(),t.push(Ve),$=Ve}const U=v.getDataType();$.merge(U),$.sync({isList:!1})}else{const O={id:N.UUID.uuid(),version:1,type:n.ArgumentDeclaration,name:z.CURRENT_VALUE_ARG_NAME,description:null,index:this.body.inputs.length,required:!0,implements:P,writesValues:[],dataType:null,parent:this.body.toReference()},I=R(O,this.project);I.initChildren(),I.setParent(this.body),I.addSelfToProject(),P&&(!I.implements||I.implements.id!==P.id)&&(I.setImplements(P),e.push(I)),t.push(I),this.currentValueArgumentDeclaration=I}break}case F.ManualFlow:{this.currentValueArgumentDeclaration=null;break}case F.Counted:{this.currentValueArgumentDeclaration=null;break}case F.ObjectKeys:{const b=this.body.inputs.find(O=>{var I;return((I=O.implements)==null?void 0:I.id)===B[n.Loop][F.ObjectKeys].body.inputs.currentValue.id});if(!this.inputs.find(O=>{var I;return((I=O.declaration)==null?void 0:I.id)===B[n.Loop][F.ObjectKeys].inputs.object.id}))break;const P=this.getCurrentValueBuiltInValueDescriptor();if(b){this.currentValueArgumentDeclaration=b;const O=this.project.get(B[n.Loop][F.ObjectKeys].inputs.object.id);P&&(!b.implements||b.implements.id!==P.id)&&(b.setImplements(P),e.push(b));let $=b.getDataType();if($){const U=this.project.getBuiltIn(B["primitive-entity"].string.id);((l=$.entity)==null?void 0:l.id)!==U.id&&($.setEntity(U),e.push($))}else{const U={id:N.UUID.uuid(),version:1,type:n.DataType,isList:!1,entity:null,isNullable:!1,constant:!1,defaultValue:null,asType:!1,like:!1,inferred:!1,andChildrenGroup:[],orChildrenGroup:[],parent:O.toReference()},re=R(U,this.project);re.setParent(O),re.initChildren(),re.addSelfToProject(),$=re}}else{const O={id:N.UUID.uuid(),version:1,type:n.ArgumentDeclaration,name:z.CURRENT_VALUE_ARG_NAME,description:null,index:this.body.inputs.length,required:!0,implements:P,writesValues:[],dataType:null,parent:this.body.toReference()},I=R(O,this.project);I.initChildren(),I.setParent(this.body),I.addSelfToProject(),P&&(!I.implements||I.implements.id!==P.id)&&(I.setImplements(P),e.push(I)),t.push(I),this.currentValueArgumentDeclaration=I}break}case F.ObjectValues:{const b=this.body.inputs.find(O=>{var I;return((I=O.implements)==null?void 0:I.id)===B[n.Loop][F.ObjectValues].body.inputs.currentValue.id}),v=this.inputs.find(O=>{var I;return((I=O.declaration)==null?void 0:I.id)===B[n.Loop][F.ObjectValues].inputs.object.id});if(!v)break;const P=this.getCurrentValueBuiltInValueDescriptor();if(b){this.currentValueArgumentDeclaration=b;const O=this.project.get(B[n.Loop][F.ObjectValues].inputs.object.id);P&&(!b.implements||b.implements.id!==P.id)&&(b.setImplements(P),e.push(b));let $=b.getDataType();if($){const U=v.getDataType(),re=((y=U==null?void 0:U.entity)==null?void 0:y.properties)||[];(f=$.orChildrenGroup)==null||f.forEach(Ve=>{const{affected:wt,removed:_t}=Ve.remove({ignoreUpstream:!1,seenEntities:new Set});e.push(...wt),i.push(..._t)}),re.forEach(Ve=>{const wt=Ve.getDataType();if(wt){const _t=wt.clone($);_t.sync({parentRelationType:ze.OrDataTypeGroup}),_t.addSelfToProject(),t.push(_t)}else{const _t={id:N.UUID.uuid(),version:1,type:n.DataType,isList:!1,entity:null,isNullable:!1,constant:!1,defaultValue:null,asType:!1,like:!1,inferred:!1,andChildrenGroup:[],orChildrenGroup:[],parentRelationType:ze.OrDataTypeGroup,parent:$.toReference()},qr=R(_t,this.project);qr.setParent($),qr.initChildren(),qr.addSelfToProject(),t.push(qr)}})}else{const U={id:N.UUID.uuid(),version:1,type:n.DataType,isList:!1,entity:null,isNullable:!1,constant:!1,defaultValue:null,asType:!1,like:!1,inferred:!1,andChildrenGroup:[],orChildrenGroup:[],parent:O.toReference()},re=R(U,this.project);re.setParent(O),re.initChildren(),re.addSelfToProject(),$=re;const Ve=v.getDataType();(((p=Ve==null?void 0:Ve.entity)==null?void 0:p.properties)||[]).forEach(_t=>{const qr=_t.getDataType();if(qr){const ja=qr.clone(re);ja.sync({parentRelationType:ze.OrDataTypeGroup}),ja.addSelfToProject(),t.push(ja)}else{const ja={id:N.UUID.uuid(),version:1,type:n.DataType,isList:!1,entity:null,isNullable:!1,constant:!1,defaultValue:null,asType:!1,like:!1,inferred:!1,andChildrenGroup:[],orChildrenGroup:[],parentRelationType:ze.OrDataTypeGroup,parent:re.toReference()},Ho=R(ja,this.project);Ho.setParent(re),Ho.initChildren(),Ho.addSelfToProject(),t.push(Ho)}})}}else{const O={id:N.UUID.uuid(),version:1,type:n.ArgumentDeclaration,name:z.CURRENT_VALUE_ARG_NAME,description:null,index:this.body.inputs.length,required:!0,implements:P,writesValues:[],dataType:null,parent:this.body.toReference()},I=R(O,this.project);I.initChildren(),I.setParent(this.body),I.addSelfToProject(),P&&(!I.implements||I.implements.id!==P.id)&&(I.setImplements(P),e.push(I)),t.push(I),this.currentValueArgumentDeclaration=I}break}case F.String:{const b=this.body.inputs.find(O=>{var I;return((I=O.implements)==null?void 0:I.id)===B[n.Loop][F.String].body.inputs.currentValue.id});if(!this.inputs.find(O=>{var I;return((I=O.declaration)==null?void 0:I.id)===B[n.Loop][F.String].inputs.string.id}))break;const P=this.getCurrentValueBuiltInValueDescriptor();if(b){this.currentValueArgumentDeclaration=b;const O=this.project.get(B[n.Loop]["string-loop"].inputs.string.id);P&&(!b.implements||b.implements.id!==P.id)&&(b.setImplements(P),e.push(b));let $=b.getDataType();if($){const U=this.project.getBuiltIn(B["primitive-entity"].string.id);((m=$.entity)==null?void 0:m.id)!==U.id&&($.setEntity(U),e.push($))}else{const U={id:N.UUID.uuid(),version:1,type:n.DataType,isList:!1,entity:null,isNullable:!1,constant:!1,defaultValue:null,asType:!1,like:!1,inferred:!1,andChildrenGroup:[],orChildrenGroup:[],parent:O.toReference()},re=R(U,this.project);re.setParent(O),re.initChildren(),re.addSelfToProject(),t.push(re),$=re}}else{const O={id:N.UUID.uuid(),version:1,type:n.ArgumentDeclaration,name:z.CURRENT_VALUE_ARG_NAME,description:null,index:this.body.inputs.length,required:!0,implements:P,writesValues:[],dataType:null,parent:this.body.toReference()},I=R(O,this.project);I.initChildren(),I.setParent(this.body),I.addSelfToProject(),P&&(!I.implements||I.implements.id!==P.id)&&(I.setImplements(P),e.push(I)),t.push(I),this.currentValueArgumentDeclaration=I}break}}const{updated:a,added:s,removed:o}=this.removeExtraBodyArgumentDeclarations();return e.push(...a),t.push(...s),i.push(...o),{updated:g(e),added:g(t),removed:g(i),self:this}}syncFixedBodyArgumentDeclarations(){const e=[],t=[],i=[],{updated:a,added:s,removed:o}=this.createCurrentIterationNumberArgumentDeclaration();e.push(...a),t.push(...s),i.push(...o);const{updated:l,added:p,removed:y}=this.createCurrentValueInputBasedOnInputMap();return e.push(...l),t.push(...p),i.push(...y),{updated:g(e),added:g(t),removed:g(i),self:this}}syncInputMaps(){const e=[],t=[],i=[];switch(this.declaration.id){case F.List:{let a=null;if(this.inputs.forEach(s=>{var o;((o=s.declaration)==null?void 0:o.id)===B[n.Loop]["list-loop"].inputs.list.id?a=s:(s.remove(),i.push(s))}),a){if(a.declaration.id!==B[n.Loop]["list-loop"].inputs.list.id){const s=this.project.get(B[n.Loop]["list-loop"].inputs.list.id);a.setDeclaration(s),e.push(a)}}else{const s=this.project.get(B[n.Loop]["list-loop"].inputs.list.id),o={id:N.UUID.uuid(),version:1,type:n.InputMap,name:null,description:null,index:0,declaration:s.toJSON(),readsValue:null,defaultValue:null,parent:this.toReference()},l=R(o,this.project);l.initChildren(),l.setParent(this),l.addSelfToProject(),t.push(l)}break}case F.ManualFlow:{this.inputs.forEach(a=>{a.remove(),i.push(a)});break}case F.Counted:{let a=null;if(this.inputs.forEach(s=>{var o;((o=s.declaration)==null?void 0:o.id)===B[n.Loop]["counted-loop"].inputs.number.id?a=s:(s.remove(),i.push(s))}),a){if(a.declaration.id!==B[n.Loop]["counted-loop"].inputs.number.id){const s=this.project.get(B[n.Loop]["counted-loop"].inputs.number.id);a.setDeclaration(s),e.push(a)}}else{const s=this.project.get(B[n.Loop]["counted-loop"].inputs.number.id),o={id:N.UUID.uuid(),version:1,type:n.InputMap,name:null,description:null,index:0,declaration:s.toJSON(),readsValue:null,defaultValue:null,parent:this.toReference()},l=R(o,this.project);l.initChildren(),l.setParent(this),l.addSelfToProject(),t.push(l)}break}case F.ObjectKeys:{let a=null;if(this.inputs.forEach(s=>{var o;((o=s.declaration)==null?void 0:o.id)===B[n.Loop]["object-keys-loop"].inputs.object.id?a=s:(s.remove(),i.push(s))}),a){if(a.declaration.id!==B[n.Loop]["object-keys-loop"].inputs.object.id){const s=this.project.get(B[n.Loop]["object-keys-loop"].inputs.object.id);a.setDeclaration(s),e.push(a)}}else{const s=this.project.get(B[n.Loop]["object-keys-loop"].inputs.object.id),o={id:N.UUID.uuid(),version:1,type:n.InputMap,name:null,description:null,index:0,declaration:s.toJSON(),readsValue:null,defaultValue:null,parent:this.toReference()},l=R(o,this.project);l.initChildren(),l.setParent(this),l.addSelfToProject(),t.push(l)}break}case F.ObjectValues:{let a=null;if(this.inputs.forEach(s=>{var o;((o=s.declaration)==null?void 0:o.id)===B[n.Loop]["object-values-loop"].inputs.object.id?a=s:(s.remove(),i.push(s))}),a){if(a.declaration.id!==B[n.Loop]["object-values-loop"].inputs.object.id){const s=this.project.get(B[n.Loop]["object-values-loop"].inputs.object.id);a.setDeclaration(s),e.push(a)}}else{const s=this.project.get(B[n.Loop]["object-values-loop"].inputs.object.id),o={id:N.UUID.uuid(),version:1,type:n.InputMap,name:null,description:null,index:0,declaration:s.toJSON(),readsValue:null,defaultValue:null,parent:this.toReference()},l=R(o,this.project);l.initChildren(),l.setParent(this),l.addSelfToProject(),t.push(l)}break}case F.String:{let a=null;if(this.inputs.forEach(s=>{var o;((o=s.declaration)==null?void 0:o.id)===B[n.Loop]["string-loop"].inputs.string.id?a=s:(s.remove(),i.push(s))}),a){if(a.declaration.id!==B[n.Loop]["string-loop"].inputs.string.id){const s=this.project.get(B[n.Loop]["string-loop"].inputs.string.id);a.setDeclaration(s),e.push(a)}}else{const s=this.project.get(B[n.Loop]["string-loop"].inputs.string.id),o={id:N.UUID.uuid(),version:1,type:n.InputMap,name:null,description:null,index:0,declaration:s.toJSON(),readsValue:null,defaultValue:null,parent:this.toReference()},l=R(o,this.project);l.initChildren(),l.setParent(this),l.addSelfToProject(),t.push(l)}break}}return{updated:g(e),added:g(t),removed:g(i),self:this}}getCurrentValueBuiltInValueDescriptor(){var t;const e=(t=B[n.Loop][this.declaration.id].body.inputs.currentValue)==null?void 0:t.id;return e?this.project.get(e):null}getCurrentIterationNumberBuiltInValueDescriptor(){const e=B[n.Loop][this.declaration.id].body.inputs.iterationNumber.id;return this.project.get(e)}syncBody(){var o;const e=[],t=[],i=[],a=B[n.Loop][this.declaration.id].body.id,s=this.project.getBuiltIn(a);if(this.body)((o=this.body.implements)==null?void 0:o.id)!==s.id&&(this.body.setImplements(s),this.body.setParent(this),e.push(this.body));else{const l={id:N.UUID.uuid(),version:1,type:n.FunctionDeclaration,name:s.name,description:null,inputs:[],index:null,returnStatements:[],calls:[],collapsed:!1,private:!1,implements:s.toJSON(),x:0,y:0,parent:this.toReference()},p=R(l,this.project);p.initChildren(),p.setParent(this),p.addSelfToProject(),t.push(p)}return{self:this,updated:g(e),added:g(t),removed:g(i)}}syncChildren(){const e=[],t=[],i=[],{updated:a,added:s,removed:o}=this.syncBody();e.push(...a),t.push(...s),i.push(...o);const{updated:l,added:p,removed:y}=this.syncInputMaps();e.push(...l),t.push(...p),i.push(...y);const{updated:f,added:m,removed:b}=this.syncTerminationStatements();e.push(...f),t.push(...m),i.push(...b);const{updated:v,added:P,removed:O}=this.syncBodyArgumentsDeclarations();e.push(...v),t.push(...P),i.push(...O);const{updated:I,added:$,removed:U}=this.syncOutputsDeclarations();e.push(...I),t.push(...$),i.push(...U);const{updated:re,added:Ve,removed:wt}=this.syncOutputMaps();return e.push(...re),t.push(...Ve),i.push(...wt),{self:this,updated:g(e),added:g(t),removed:g(i)}}};c(z,"CURRENT_ITERATION_NUMBER_ARG_NAME","Current iteration number"),c(z,"CURRENT_VALUE_ARG_NAME","Current value"),c(z,"MUTABLE_BASE_PROPERTIES",[]),c(z,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),c(z,"BASE_PROPERTIES",[...z.MUTABLE_BASE_PROPERTIES,...z.INMUTABLE_BASE_PROPERTIES]),c(z,"MUTABLE_META_PROPERTIES",[...z.MUTABLE_BASE_PROPERTIES,"x","y"]),c(z,"INMUTABLE_META_PROPERTIES",[...z.INMUTABLE_BASE_PROPERTIES]),c(z,"META_PROPERTIES",[...z.MUTABLE_META_PROPERTIES,...z.INMUTABLE_META_PROPERTIES]),c(z,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),c(z,"INMUTABLE_UPSTREAM_PROPERTIES",["parent","declaration"]),c(z,"UPSTREAM_PROPERTIES",[...z.MUTABLE_UPSTREAM_PROPERTIES,...z.INMUTABLE_UPSTREAM_PROPERTIES]),c(z,"MUTABLE_DOWNSTREAM_PROPERTIES",["body","inputs","outputs","outputsDeclarations","successCalls","errorCalls","error","breakStatements","continueStatements"]),c(z,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),c(z,"DOWNSTREAM_PROPERTIES",[...z.MUTABLE_DOWNSTREAM_PROPERTIES,...z.INMUTABLE_DOWNSTREAM_PROPERTIES]),c(z,"PROPERTIES",[...z.META_PROPERTIES,...z.UPSTREAM_PROPERTIES,...z.DOWNSTREAM_PROPERTIES]);let wr=z;function s2(r){const e=r6(),t=r.toJSON();e.safeParse(t).success,r.inputs.forEach(o=>o.validate());const s=[...Sn(r)];return ae(r.errors,s)}const be=class be{constructor(e,t){c(this,"initialData");c(this,"id");c(this,"version");c(this,"x");c(this,"y");c(this,"type",n.Condition);c(this,"successCalls",[]);c(this,"errorCalls",[]);c(this,"declaration");c(this,"inputs",[]);c(this,"calledBySuccess",[]);c(this,"calledByError",[]);c(this,"calledByEntry",[]);c(this,"project");c(this,"errors",[]);c(this,"parent");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 i=t;if(e.parent){const f=_(e.parent);i=t.get(f)}const a=e.calledByEntry.map(f=>{const m=_(f);return t.get(m)}),s=e.calledBySuccess.map(f=>{const m=_(f);return t.get(m)}),o=e.calledByError.map(f=>{const m=_(f);return t.get(m)});let l;if(e.declaration){const f=_(e.declaration);l=t.get(f)}const p={id:e.id,version:1,type:n.Condition,declaration:l,calledByEntry:a,calledBySuccess:s,calledByError:o,errorCalls:[],successCalls:[],inputs:[],x:0,y:0,parent:i},y=R(p,t);return y.setParent(i),y.initChildren(),y}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[],s=Je(i,{parent:{list:!1,types:[...ct,n.Project],optional:!0}},t);return i=s.modifiedData,a.push(...s.errors,...Ne(i)),e.declaration?t.get(e.declaration)?t.conditionDeclarations.find(p=>p.id===e.declaration)||a.push(new E({id:`${e.id}--${h.InvalidImplementsReference}`,code:h.InvalidImplementsReference,severity:T.Error,message:`Entity of type '${e.type}' with id '${e.id}' has an 'declaration' property that isn't pointing to an action descriptor reserved for '${n.Condition}' entities.
54
54
  ${Go(t)}`,issue:null})):a.push(new E({id:`${e.id}--${h.ReferencedEntityNotFound}`,code:h.ReferencedEntityNotFound,severity:T.Error,message:`Entity of type '${e.type}' with id '${e.id}' has an 'declaration' property that isn't found in the project. The 'declaration' property must point to one of the built-in action descriptors reserved for '${n.Condition}' entities.
55
55
  ${Go(t)}`,issue:null})):a.push(new E({id:`${e.id}--${S.InvalidObjectStructure}`,code:S.InvalidObjectStructure,severity:T.Error,message:`Entity of type '${e.type}' with id '${e.id}' is missing the 'declaration' property. This property is required for a '${e.type}' entity and must point to one of the built-in action descriptors reserved for '${n.Condition}' entities.
56
56
  ${Go(t)}`,issue:null})),{errors:a,modifiedData:i}}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new E({id:`${this.id}--${h.InvalidParentUpdate}`,code:h.InvalidParentUpdate,severity:T.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.