@elyx-code/project-logic-tree 0.0.6044 → 0.0.6046

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(u,n){typeof exports=="object"&&typeof module<"u"?n(exports):typeof define=="function"&&define.amd?define(["exports"],n):(u=typeof globalThis<"u"?globalThis:u||self,n(u["@elyx-code/project-logic-tree"]={}))})(this,function(u){"use strict";var Uk=Object.defineProperty;var xk=(u,n,L)=>n in u?Uk(u,n,{enumerable:!0,configurable:!0,writable:!0,value:L}):u[n]=L;var l=(u,n,L)=>(xk(u,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||{}),St=(r=>(r.DeletePersistedEntity="base-delete-persisted-entity",r.SoftDeletePersistedEntity="base-soft-delete-persisted-entity",r.AbortExecution="base-abort-execution",r))(St||{}),M=(r=>(r.Fixed="fixed",r.None="none",r.Dynamic="dynamic",r.Any="any",r.FixedThenDynamic="fixed-then-dynamic",r.FixedThenAny="fixed-then-any",r))(M||{}),B=(r=>(r.FixedArguments="fixed-arguments",r.FixedReturns="fixed-returns",r.ReturnedError="returned-error",r.OngoingProcessExecution="ongoing-process-execution",r))(B||{}),I=(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))(I||{}),ct=(r=>(r.Addition="addition",r.Substraction="substraction",r.Multiplication="multiplication",r.Division="division",r.Remainder="remainder",r.Exponentiation="exponentiation",r))(ct||{}),Ce=(r=>(r.Join="string-join",r.Split="stringSsplit",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))(Ce||{}),Y=(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))(Y||{}),we=(r=>(r.Parallel="parallel",r.Sequential="sequential",r.Wait="wait",r))(we||{}),Xe=(r=>(r.CreateNewInstance="create-new-instance",r.Validate="validate",r))(Xe||{}),Qe=(r=>(r.HttpRequest="base-http-request",r))(Qe||{}),Me=(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))(Me||{}),Mt=(r=>(r.Empty="empty",r.NotEmpty="not-empty",r))(Mt||{}),q=(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))(q||{}),je=(r=>(r.OrDataTypeGroup="or-data-type-group",r.AndDataTypeGroup="and-data-type-group",r.DynamicArgumentTypes="dynamic-argument-types",r.DynamicReturnTypes="dynamic-return-types",r))(je||{}),on=(r=>(r.PROJECT_PUBLICATION_COMPLETED="GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED",r))(on||{}),Cu=(r=>(r.Error="error",r.Task="task",r.Return="return",r))(Cu||{});const An=[n.VariableDeclaration,n.VariableInstance,n.InputMap,n.ReturnDeclaration],$e=[n.VariableDeclaration,n.VariableInstance,n.ArgumentDeclaration,n.OutputMap],Bu=[...An,...$e],ke=[n.VariableDeclaration,n.VariableInstance],Fr=[n.GlobalEvent],Ge=[n.Operation,n.FunctionCall,n.Condition,n.Search,n.VariableDeclaration,n.VariableInstance,n.InternalCall,n.Loop],xo=[n.Operation,n.FunctionCall,n.Condition,n.Search,n.VariableDeclaration,n.VariableInstance,n.Loop],Ve=[n.FunctionDeclaration,...Fr],On=[...Ge,n.ReturnStatement,n.BreakStatement,n.ContinueStatement],jo=[...xo,n.ReturnStatement,n.BreakStatement,n.ContinueStatement],ln=[...Ge,...Ve],wu=[...xo,...Ve],WD=[...On,...Ve],HD=[...jo,...Ve],dt=[...Ve,n.Loop],Le=[n.ReturnStatement,n.BreakStatement,n.ContinueStatement],YD=[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],_u=[n.CustomEntity,n.FunctionDeclaration,n.ArgumentDeclaration,n.ReturnDeclaration,n.Property,n.VariableDeclaration,n.Search,n.Project,n.InstalledProject,n.ActionDescriptor,n.ValueDescriptor],Ur=[n.BuiltInBaseEntity,n.PrimitiveEntity],zD=[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 qo=(r=>(r.ActionOngoingProcessOutputValue="action-ongoing-process-output-value-descriptor-id",r))(qo||{});const G={[n.PrimitiveEntity]:{[I.String]:{id:"8b5fbe15-4c2b-48c0-9fd8-e5efbe3978dc",properties:{}},[I.Boolean]:{id:"f596545d-1565-4faa-9969-d95fa5edfea4",properties:{}},[I.Number]:{id:"ecb84c29-6153-4b82-86a5-fce2b5f92002",properties:{}},[I.JSON]:{id:"b6f3c3c4-9c3d-4f9d-9e9e-1c0f6a3c8c6b",properties:{}},[I.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"}}}}},[I.UUID]:{id:"4a6234aa-c0f6-4731-b4dd-750388029226",properties:{}},[I.Date]:{id:"dc58f38b-d574-4956-aac6-32ce9529b937",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]:{[Ce.Join]:{id:Ce.Join,inputs:{first:{id:"join-string-first-string-input-id"},second:{id:"join-string-second-string-input-id"}},outputs:{result:{id:"join-string-result-string-return-delaration-id"},error:{id:"join-string-error-return-delaration-id"}}},[Qe.HttpRequest]:{id:Qe.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"}}}},[n.Loop]:{[q.List]:{id:q.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"}}}},[q.String]:{id:q.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"}}}},[q.ObjectKeys]:{id:q.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"}}}},[q.ObjectValues]:{id:q.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"}}}},[q.ManualFlow]:{id:q.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"}}}},[q.Counted]:{id:q.Counted,inputs:{number:{id:"iterate-over-counted-loop-number-input-id"}},outputs:{results:{id:"iterate-over-counted-loop-output-id"}},body:{id:"iterate-over-counted-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-counted-loop-iteration-number-input-id"}}}}},[n.Condition]:{[Me.MoreThanOrEqual]:{id:Me.MoreThanOrEqual,inputs:{leftHand:{id:"condition-more-than-or-equal-left-hand-input-id"},rightHand:{id:"condition-more-than-or-equal-right-hand-input-id"}}},[Mt.NotEmpty]:{id:Mt.NotEmpty,inputs:{leftHand:{id:"condition-not-empty-input-id"}}}},[n.GlobalEvent]:{[on.PROJECT_PUBLICATION_COMPLETED]:{id:on.PROJECT_PUBLICATION_COMPLETED}}},Yt=G["primitive-entity"],x={type:n.PrimitiveEntity,id:Yt.string.id,description:"A string of characters.",version:1,name:I.String,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Sn={type:n.PrimitiveEntity,id:Yt.boolean.id,description:"A 'true' or 'false' value.",version:1,name:I.Boolean,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},te={type:n.PrimitiveEntity,id:Yt.number.id,description:"A number value.",version:1,name:I.Number,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Ye={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:I.JSON,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Nu={id:"c2f52f01-8f2e-490e-8083-72289c8189c1",type:n.GenericReference,entityId:"7dd59b70-f97b-43a7-a051-fde1842ce5d6",entityType:n.DataType},Mu={id:"4e803941-2e6a-4227-b803-b8877c0d7fee",type:n.GenericReference,entityId:"00ccfcae-2104-45ef-bf6c-50ddccd74286",entityType:n.Property},Vu={like:!1,inferred:!1,id:Yt.enum.properties.options.dataType.id,version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:x,asType:!1,defaultValue:{id:Yt.enum.properties.options.dataType.defaultValue.id,type:n.PrimitiveValue,version:1,name:I.JSON,autogeneration:null,value:[],valueAsType:null,parent:Nu},parent:Mu},Lu={id:"a2983c4c-0286-4ef1-8b5c-5a52904d3200",type:n.GenericReference,entityId:"9542b8b4-2642-4eee-9db9-def7963a17a0",entityType:n.PrimitiveEntity},$u={hidden:!1,required:!0,id:Yt.enum.properties.options.id,name:"Options",version:1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:Vu,description:"Options for the enum. Each option is a text value.",parent:Lu},Cn={type:n.PrimitiveEntity,id:Yt.enum.id,description:"A set of text options to choose from.",version:1,name:I.Enum,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[$u],methods:[]},cn={type:n.PrimitiveEntity,id:Yt.date.id,description:"A date and time value.",version:1,name:I.Date,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Ga={type:n.PrimitiveEntity,id:Yt.uuid.id,description:"A unique identifier in the form of a 36-character string.",version:1,name:I.UUID,static:!1,abstract:!1,abstractMethods:[],extends:[x],properties:[],methods:[]},Jo={type:n.PrimitiveEntity,id:Yt.json.id,description:"A complex data structure with any combination of properties with names and values.",version:1,name:I.JSON,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]};var Gu=(r=>(r.FirstInputNumber="number-addition-first-number-argument-declaration",r.SecondInputNumber="number-addition-second-number-argument-declaration",r))(Gu||{}),Fu=(r=>(r.ResultNumber="number-addition-result-number-return-delaration",r.Error="number-addition-error-return-delaration",r))(Fu||{});const Uu={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:"number-addition-first-number-argument-declaration",entityType:n.ValueDescriptor},xu={like:!1,inferred:!1,id:"number-addition-first-number-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Uu},ju={type:n.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:"number-addition-second-number-argument-declaration",entityType:n.ValueDescriptor},ku={like:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:ju},qu={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:"number-addition-result-number-return-delaration",entityType:n.ValueDescriptor},Ju={like:!1,inferred:!1,id:"b761acec-0755-4582-a68b-76267038bbe1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:qu},Wu={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:ct.Addition,entityType:n.ActionDescriptor},Wo={id:"number-addition-first-number-argument-declaration",type:n.ValueDescriptor,version:1,name:"First value",description:"The first number to add",dataType:xu,required:!0,parentRelationType:B.FixedArguments,index:0,parent:Wu},Hu={type:n.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:ct.Addition,entityType:n.ActionDescriptor},Ho={id:"number-addition-second-number-argument-declaration",type:n.ValueDescriptor,description:"The second number to add",version:1,name:"Second value",dataType:ku,required:!0,parentRelationType:B.FixedArguments,index:1,parent:Hu},Yu={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:ct.Addition,entityType:n.ActionDescriptor},Yo={parentRelationType:B.FixedReturns,id:"number-addition-result-number-return-delaration",type:n.ValueDescriptor,description:"The result number of the addition",version:1,name:"Result",dataType:Ju,required:!0,index:0,parent:Yu},zu={type:n.GenericReference,id:"number-addition-operation-error-parent-ref",entityId:ct.Addition,entityType:n.ActionDescriptor},Zu={parentRelationType:B.FixedReturns,id:"number-addition-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:zu},Fa={id:ct.Addition,type:n.ActionDescriptor,description:"Add two numbers together",version:1,name:ct.Addition,fixedArguments:[Wo,Ho],error:Zu,fixedReturns:[Yo],argumentsType:M.Fixed,returnsType:M.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},Ku={[ct.Addition]:Fa};var Xu=(r=>(r.FirstInputString="join-string-first-string-argument-declaration",r.SecondInputString="join-string-second-string-argument-declaration",r))(Xu||{}),Qu=(r=>(r.ResultString="join-string-result-string-return-delaration",r.Error="join-string-error-return-delaration",r))(Qu||{});const ep={type:n.GenericReference,id:"join-string-first-string-argument-declaration",entityId:"join-string-first-string-argument-declaration",entityType:n.ValueDescriptor},tp={like:!1,inferred:!1,id:"join-string-first-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:ep},np={type:n.GenericReference,id:"join-string-second-string-argument-declaration",entityId:"join-string-second-string-argument-declaration",entityType:n.ValueDescriptor},rp={like:!1,inferred:!1,id:"join-string-second-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:np},ip={type:n.GenericReference,id:"join-string-result-string-return-delaration",entityId:"join-string-result-string-return-delaration",entityType:n.ValueDescriptor},ap={like:!1,inferred:!1,id:"join-string-result-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:ip},sp={type:n.GenericReference,id:"join-string-operation-first-string-argument-parent-ref",entityId:Ce.Join,entityType:n.ActionDescriptor},Ua={id:"join-string-first-string-argument-declaration",type:n.ValueDescriptor,version:1,name:"First value",description:"The first text to join to the second one. Its value will be at the beginning of the resulting text.",dataType:tp,parentRelationType:B.FixedArguments,required:!0,index:0,parent:sp},op={type:n.GenericReference,id:"join-string-operation-second-string-argument-parent-ref",entityId:Ce.Join,entityType:n.ActionDescriptor},xa={id:"join-string-second-string-argument-declaration",type:n.ValueDescriptor,version:1,name:"Second value",description:"The second text to join to the first one. Its value will be at the end of the resulting text.",dataType:rp,parentRelationType:B.FixedArguments,required:!0,index:1,parent:op},lp={type:n.GenericReference,id:"join-string-operation-result-string-return-parent-ref",entityId:Ce.Join,entityType:n.ActionDescriptor},vi={parentRelationType:B.FixedReturns,id:"join-string-result-string-return-delaration",type:n.ValueDescriptor,version:1,name:"Result",description:"The resulting text value.",dataType:ap,required:!0,index:0,parent:lp},cp={type:n.GenericReference,id:"join-string-operation-error-parent-ref",entityId:Ce.Join,entityType:n.ActionDescriptor},dp={parentRelationType:B.FixedReturns,id:"join-string-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:cp},Ii={id:Ce.Join,type:n.ActionDescriptor,version:1,name:Ce.Join,description:"Join two text together, to form a single resulting text value.",fixedArguments:[Ua,xa],fixedReturns:[vi],error:dp,argumentsType:M.Fixed,returnsType:M.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},up={[Ce.Join]:Ii};var pp=(r=>(r.FirstInputList="join-list-first-list-argument-declaration",r.SecondInputList="join-list-second-list-argument-declaration",r))(pp||{}),yp=(r=>(r.ResultList="join-list-result-list-return-delaration",r.Error="join-list-error-return-delaration",r))(yp||{});const hp={type:n.GenericReference,id:"join-list-operation-first-list-argument-ref",entityId:"join-list-first-list-argument-declaration",entityType:n.ValueDescriptor},fp={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:hp},mp={type:n.GenericReference,id:"join-list-operation-second-list-argument-ref",entityId:"join-list-second-list-argument-declaration",entityType:n.ValueDescriptor},Tp={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:mp},Ep={type:n.GenericReference,id:"join-list-operation-result-list-return-ref",entityId:"join-list-result-list-return-delaration",entityType:n.ValueDescriptor},bp={like:!1,inferred:!1,id:"join-list-result-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Ep},Rp={type:n.GenericReference,id:"join-list-operation-first-list-argument-parent-ref",entityId:Y.Join,entityType:n.ActionDescriptor},gp={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:fp,parentRelationType:B.FixedArguments,required:!0,index:0,parent:Rp},vp={type:n.GenericReference,id:"join-list-operation-second-list-argument-parent-ref",entityId:Y.Join,entityType:n.ActionDescriptor},Ip={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:Tp,parentRelationType:B.FixedArguments,required:!0,index:1,parent:vp},Dp={type:n.GenericReference,id:"join-list-operation-result-list-return-parent-ref",entityId:Y.Join,entityType:n.ActionDescriptor},Pp={parentRelationType:B.FixedReturns,id:"join-list-result-list-return-delaration",type:n.ValueDescriptor,version:1,name:"Result",description:"The resulting list value.",dataType:bp,required:!0,index:0,parent:Dp},Ap={type:n.GenericReference,id:"join-list-operation-error-parent-ref",entityId:Y.Join,entityType:n.ActionDescriptor},Op={parentRelationType:B.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:Ap},zo={id:Y.Join,type:n.ActionDescriptor,version:1,name:Y.Join,description:"Join two lists together, to form a single resulting list value.",fixedArguments:[gp,Ip],error:Op,fixedReturns:[Pp],argumentsType:M.Fixed,returnsType:M.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var Sp=(r=>(r.InputList="list-to-split-argument-declaration",r.SplitIndex="split-list-index-argument-declaration",r))(Sp||{}),Cp=(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))(Cp||{});const Bp={type:n.GenericReference,id:"split-list-operation-input-list-argument-ref",entityId:"list-to-split-argument-declaration",entityType:n.ValueDescriptor},wp={like:!1,inferred:!1,id:"split-list-operation-input-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Bp},_p={type:n.GenericReference,id:"split-list-operation-split-index-argument-ref",entityId:"split-list-index-argument-declaration",entityType:n.ValueDescriptor},Np={like:!1,inferred:!1,id:"split-list-operation-split-index-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:_p},Zo={type:n.GenericReference,id:"split-list-operation-first-output-list-return-ref",entityId:"split-list-first-output-list-return-delaration",entityType:n.ValueDescriptor},Mp={like:!1,inferred:!1,id:"split-list-operation-first-output-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Zo},Vp={type:n.GenericReference,id:"split-list-operation-input-list-argument-parent-ref",entityId:Y.Split,entityType:n.ActionDescriptor},Lp={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:wp,parentRelationType:B.FixedArguments,required:!0,index:0,parent:Vp},$p={type:n.GenericReference,id:"split-list-operation-split-index-argument-parent-ref",entityId:Y.Split,entityType:n.ActionDescriptor},Gp={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:Np,parentRelationType:B.FixedArguments,required:!0,index:1,parent:$p},Fp={type:n.GenericReference,id:"split-list-operation-first-output-list-return-parent-ref",entityId:Y.Split,entityType:n.ActionDescriptor},Up={parentRelationType:B.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:Mp,required:!0,index:0,parent:Fp},xp={like:!1,inferred:!1,id:"split-list-operation-second-output-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Zo},jp={type:n.GenericReference,id:"split-list-operation-second-output-list-return-parent-ref",entityId:Y.Split,entityType:n.ActionDescriptor},kp={parentRelationType:B.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:xp,required:!0,index:0,parent:jp},qp={type:n.GenericReference,id:"split-list-operation-error-parent-ref",entityId:Y.Split,entityType:n.ActionDescriptor},Jp={parentRelationType:B.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:qp},Ko={id:Y.Split,type:n.ActionDescriptor,version:1,name:Y.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",fixedArguments:[Lp,Gp],fixedReturns:[Up,kp],error:Jp,argumentsType:M.Fixed,returnsType:M.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var Wp=(r=>(r.InputList="get-last-in-list-input-list-argument-declaration",r))(Wp||{}),Hp=(r=>(r.OutputElement="get-last-in-list-output-element-return-delaration",r.Error="get-last-in-list-error-return-delaration",r))(Hp||{});const Yp={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},zp={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:Yp},Zp={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},Kp={like:!1,inferred:!1,id:"get-last-in-list-output-element-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Zp},Xp={type:n.GenericReference,id:"get-last-in-list-operation-input-list-argument-parent-ref",entityId:Y.GetLast,entityType:n.ActionDescriptor},Qp={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:zp,parentRelationType:B.FixedArguments,required:!0,index:0,parent:Xp},ey={type:n.GenericReference,id:"get-last-in-list-operation-output-element-return-parent-ref",entityId:Y.GetLast,entityType:n.ActionDescriptor},ty={parentRelationType:B.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:Kp,required:!0,index:0,parent:ey},ny={type:n.GenericReference,id:"get-last-in-list-operation-error-parent-ref",entityId:Y.GetLast,entityType:n.ActionDescriptor},ry={parentRelationType:B.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:ny},Xo={id:Y.GetLast,type:n.ActionDescriptor,version:1,name:Y.GetLast,description:"Outputs the last element of a given list.",fixedArguments:[Qp],fixedReturns:[ty],error:ry,argumentsType:M.Fixed,returnsType:M.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var iy=(r=>(r.List="append-to-list-lsit-argument-declaration",r.ElementToAppend="append-to-list-element-to-append-argument-declaration",r))(iy||{}),ay=(r=>(r.ResultList="append-to-list-result-list-return-delaration",r.Error="append-to-list-error-return-delaration",r))(ay||{});const sy={type:n.GenericReference,id:"append-to-list-operation-lsit-argument-ref",entityId:"append-to-list-lsit-argument-declaration",entityType:n.ValueDescriptor},oy={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:sy},ly={type:n.GenericReference,id:"append-to-list-operation-second-list-argument-ref",entityId:"append-to-list-element-to-append-argument-declaration",entityType:n.ValueDescriptor},cy={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:ly},dy={type:n.GenericReference,id:"append-to-list-operation-result-list-return-ref",entityId:"append-to-list-result-list-return-delaration",entityType:n.ValueDescriptor},uy={like:!1,inferred:!1,id:"append-to-list-result-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:dy},py={type:n.GenericReference,id:"append-to-list-operation-lsit-argument-parent-ref",entityId:Y.Append,entityType:n.ActionDescriptor},Qo={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:oy,parentRelationType:B.FixedArguments,required:!0,index:0,parent:py},yy={type:n.GenericReference,id:"append-to-list-operation-second-list-argument-parent-ref",entityId:Y.Append,entityType:n.ActionDescriptor},el={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:cy,parentRelationType:B.FixedArguments,required:!0,index:1,parent:yy},hy={type:n.GenericReference,id:"append-to-list-operation-result-list-return-parent-ref",entityId:Y.Append,entityType:n.ActionDescriptor},fy={parentRelationType:B.FixedReturns,id:"append-to-list-result-list-return-delaration",type:n.ValueDescriptor,version:1,name:"Result",description:"The resulting list value.",dataType:uy,required:!0,index:0,parent:hy},my={type:n.GenericReference,id:"append-to-list-operation-error-parent-ref",entityId:Y.Append,entityType:n.ActionDescriptor},Ty={parentRelationType:B.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:my},ja={id:Y.Append,type:n.ActionDescriptor,version:1,name:Y.Append,description:"Adds a given element to the end of a list value.",fixedArguments:[Qo,el],error:Ty,fixedReturns:[fy],argumentsType:M.Fixed,returnsType:M.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},Ey={[Y.Join]:zo,[Y.Split]:Ko,[Y.GetLast]:Xo,[Y.Append]:ja};var by=(r=>(r.ListOfFunctions="parallel-execution-list-of-functions-argument-declaration",r))(by||{}),Ry=(r=>(r.ListOfExecutionResults="parallel-execution-result-return-delaration",r.Error="parallel-execution-error-return-delaration",r))(Ry||{});const gy={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.",argumentsType:M.Dynamic,dynamicArgumentTypes:null,fixedArguments:[],returnsType:M.Dynamic,dynamicReturnTypes:null,fixedReturns:[],error:null,parent:null},vy={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:"parallel-execution-list-of-functions-argument-declaration",entityType:n.ValueDescriptor},Iy={like:!1,inferred:!1,id:"parallel-execution-list-of-functions-argument-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:gy,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:vy},Dy={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:"parallel-execution-result-return-delaration",entityType:n.ValueDescriptor},Py={like:!1,inferred:!1,id:"b761acec-0755-4582-a68b-76267038bbe1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Dy},Ay={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:we.Parallel,entityType:n.ActionDescriptor},tl={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:Iy,required:!0,index:0,parent:Ay,parentRelationType:B.FixedArguments},Oy={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:we.Parallel,entityType:n.ActionDescriptor},nl={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:Py,required:!0,index:0,parent:Oy,parentRelationType:B.FixedReturns},Sy={type:n.GenericReference,id:"parallel-execution-operation-error-parent-ref",entityId:we.Parallel,entityType:n.ActionDescriptor},Cy={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:Sy,parentRelationType:B.ReturnedError},xt={id:we.Parallel,type:n.ActionDescriptor,description:"Execute a list of actions in parallel",version:1,name:we.Parallel,fixedArguments:[tl],fixedReturns:[nl],argumentsType:M.Fixed,returnsType:M.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,error:Cy,parent:null};var By=(r=>(r.MillisecondsNumber="wait-milliseconds-number-argument-declaration",r))(By||{}),wy=(r=>(r.Error="wait-operation-error-return-delaration",r))(wy||{});const _y={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityType:n.ValueDescriptor,entityId:"wait-milliseconds-number-argument-declaration"},Ny={like:!1,inferred:!1,id:"wait-milliseconds-number-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:_y},My={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityType:n.ActionDescriptor,entityId:we.Wait},Xn={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:Ny,required:!0,index:0,parent:My,parentRelationType:B.FixedArguments},Vy={type:n.GenericReference,id:"wait-operation-error-parent-ref",entityId:we.Wait,entityType:n.ActionDescriptor},Ly={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:Vy,parentRelationType:B.ReturnedError},ut={id:we.Wait,type:n.ActionDescriptor,description:"Wait for the given amount of milliseconds before calling the next entity",version:1,name:we.Wait,fixedArguments:[Xn],fixedReturns:[],error:Ly,argumentsType:M.Fixed,returnsType:M.None,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var $y=(r=>(r.ListOfFunctions="sequential-execution-list-of-functions-argument-declaration",r))($y||{}),Gy=(r=>(r.ListOfExecutionResults="sequential-execution-result-return-delaration",r.Error="sequential-execution-error-return-delaration",r))(Gy||{});const Fy={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.",argumentsType:M.Dynamic,dynamicArgumentTypes:null,fixedArguments:[],returnsType:M.Dynamic,dynamicReturnTypes:null,fixedReturns:[],error:null,parent:null},Uy={type:n.GenericReference,id:"parallel-execution-list-of-functions-argument-declaration-id",entityId:"sequential-execution-list-of-functions-argument-declaration",entityType:n.ValueDescriptor},xy={like:!1,inferred:!1,id:"sequential-execution-list-of-functions-argument-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Fy,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Uy},jy={type:n.GenericReference,id:"sequential-execution-list-of-execution-results-return-declaration-id",entityId:"sequential-execution-result-return-delaration",entityType:n.ValueDescriptor},ky={like:!1,inferred:!1,id:"sequential-execution-list-of-execution-results-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:jy},qy={type:n.GenericReference,id:"parallel-execution-operation-list-of-functions-argument-parent-ref",entityId:we.Sequential,entityType:n.ActionDescriptor},rl={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:xy,required:!0,index:0,parent:qy,parentRelationType:B.FixedArguments},Jy={type:n.GenericReference,id:"parallel-execution-operation-list-of-execution-results-return-parent-ref",entityId:we.Sequential,entityType:n.ActionDescriptor},il={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:ky,required:!0,index:0,parent:Jy,parentRelationType:B.FixedReturns},Wy={type:n.GenericReference,id:"sequential-execution-operation-error-parent-ref",entityId:we.Sequential,entityType:n.ActionDescriptor},Hy={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:Wy,parentRelationType:B.ReturnedError},dn={id:we.Sequential,type:n.ActionDescriptor,description:"Execute a list of actions one after the other",version:1,name:we.Sequential,fixedArguments:[rl],fixedReturns:[il],error:Hy,returnsType:M.Fixed,argumentsType:M.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},Yy={[we.Parallel]:xt,[we.Wait]:ut,[we.Sequential]:dn};var zy=(r=>(r.EntityToInstanciate="entity-to-instanciate-argument-declaration",r.NewEntityData="new-entity-data-argument-declaration",r))(zy||{}),Zy=(r=>(r.Error="create-new-instance-error-return-delaration",r))(Zy||{});const Ky={type:n.GenericReference,id:"new-entity-data-argument-declaration-parent-ref",entityId:Xe.CreateNewInstance,entityType:n.ActionDescriptor},Xy={type:n.GenericReference,id:"new-entity-data-argument-data-type-parent-ref",entityId:"new-entity-data-argument-declaration",entityType:n.ValueDescriptor},Qy={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:Xy},eh={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:Qy,required:!0,parentRelationType:B.FixedArguments,index:1,parent:Ky},th={type:n.GenericReference,id:"entity-to-instanciate-argument-declaration-ref",entityType:n.ValueDescriptor,entityId:"entity-to-instanciate-argument-declaration"},nh={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:th},rh={type:n.GenericReference,id:"create-new-instance-operation-ref",entityType:n.ActionDescriptor,entityId:Xe.CreateNewInstance},ih={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:nh,required:!0,parentRelationType:B.FixedArguments,index:0,parent:rh},ah={type:n.GenericReference,id:"create-new-instance-output-entity-declaration-parent-ref",entityId:Xe.CreateNewInstance,entityType:n.ActionDescriptor},sh={parentRelationType:B.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:ah,required:!0,index:0},oh={type:n.GenericReference,id:"create-new-instance-error-parent-ref",entityId:Xe.CreateNewInstance,entityType:n.ActionDescriptor},lh={parentRelationType:B.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:oh},Qn={id:Xe.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:Xe.CreateNewInstance,fixedArguments:[ih,eh],fixedReturns:[sh],error:lh,argumentsType:M.Fixed,returnsType:M.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var ch=(r=>(r.EntityToMatchType="validate-data-operation-entity-to-match-type-argument-declaration",r.DataToValidate="validate-data-operation-data-to-validate-argument-declaration",r))(ch||{}),dh=(r=>(r.Error="validate-data-error-return-delaration",r.OutputEntity="validate-data-output-entity-declaration",r))(dh||{});const uh={type:n.GenericReference,id:"validate-data-operation-data-to-validate-argument-declaration-ref",entityType:n.ValueDescriptor,entityId:"validate-data-operation-data-to-validate-argument-declaration"},ph={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:uh},yh={type:n.GenericReference,id:"validate-data-operation-data-to-validate-argument-parent-ref",entityType:n.ActionDescriptor,entityId:Xe.Validate},hh={id:"validate-data-operation-data-to-validate-argument-declaration",type:n.ValueDescriptor,version:1,name:"Data to validate",description:"The value to validate against the given entity type",dataType:ph,required:!0,parentRelationType:B.FixedArguments,index:0,parent:yh},fh={type:n.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-declaration-ref",entityType:n.ValueDescriptor,entityId:"validate-data-operation-entity-to-match-type-argument-declaration"},mh={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:fh},Th={type:n.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-parent-ref",entityType:n.ActionDescriptor,entityId:Xe.Validate},Eh={id:"validate-data-operation-entity-to-match-type-argument-declaration",type:n.ValueDescriptor,version:1,name:"Entity to match",description:"The entity to match the data against",dataType:mh,required:!0,index:0,parentRelationType:B.FixedArguments,parent:Th},bh={type:n.GenericReference,id:"validate-data-operation-output-entity-declaration-parent-ref",entityId:Xe.Validate,entityType:n.ActionDescriptor},Rh={id:"validate-data-output-entity-declaration",type:n.ValueDescriptor,version:1,dataType:null,name:"Output value",description:"A value with the type of the entity that was validated",parent:bh,required:!0,index:0,parentRelationType:B.FixedReturns},gh={type:n.GenericReference,id:"wait-operation-error-parent-ref",entityId:Xe.Validate,entityType:n.ActionDescriptor},vh={id:"validate-data-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:gh,parentRelationType:B.ReturnedError},er={id:Xe.Validate,type:n.ActionDescriptor,description:"Validates the given data to see if it matches the structure of a given type/entity",version:1,name:Xe.Validate,fixedArguments:[Eh,hh],fixedReturns:[Rh],error:vh,argumentsType:M.Fixed,returnsType:M.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},Ih={[Xe.CreateNewInstance]:Qn,[Xe.Validate]:er},ze=G[n.Operation]["base-http-request"],Dh={type:n.GenericReference,id:"d87cf943-57e1-4d19-9f05-190fa8c8ebc4",entityType:n.DataType,entityId:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3"},Ph={id:"http-request-url-default-value-id",type:n.PrimitiveValue,version:1,value:"https://some-url.com",name:I.String,valueAsType:null,parent:Dh,autogeneration:null},Ah={type:n.GenericReference,id:"aed50d73-eab5-42ce-b00e-7f5c45a9026f",entityId:ze.inputs.url.id,entityType:n.ValueDescriptor},Oh={like:!1,inferred:!1,id:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!1,isNullable:!1,defaultValue:Ph,constant:!1,parent:Ah},Sh={type:n.GenericReference,id:"c3145af6-3387-464a-8887-272e483c856d",entityId:ze.inputs.query.id,entityType:n.ValueDescriptor},Ch={like:!1,inferred:!1,id:"2a5ba737-6335-4cc4-a2c0-16dca4052fac",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Sh},Bh={type:n.GenericReference,id:"075556b7-e468-48f7-8485-7159eaf389b2",entityType:n.DataType,entityId:"6df7ec2b-5dbd-44af-896b-17b314e88560"},wh={id:"http-request-method-default-value-id",type:n.PrimitiveValue,version:1,value:"GET",name:I.Enum,valueAsType:null,parent:Bh,autogeneration:null},_h={type:n.GenericReference,id:"aed647c8-a1b5-4cfc-9a3d-97887a567a80",entityId:ze.inputs.method.id,entityType:n.ValueDescriptor},Nh={like:!1,inferred:!1,id:"6df7ec2b-5dbd-44af-896b-17b314e88560",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Cn,isList:!1,asType:!1,isNullable:!1,defaultValue:wh,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],constant:!1,parent:_h},Mh={type:n.GenericReference,id:"77203dfa-d2f6-4804-9556-e1cce46228f3",entityId:ze.inputs.headers.id,entityType:n.ValueDescriptor},Vh={like:!1,inferred:!1,id:"2c8a2a07-69c6-40ad-b5c9-f0dc4d5955ce",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ye,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Mh},Lh={type:n.GenericReference,id:"03db68a0-7ab6-4c6a-85b6-f4b95ebb53ff",entityId:ze.inputs.body.id,entityType:n.ValueDescriptor},$h={like:!1,inferred:!1,id:"0397876c-ed54-4ee9-85a4-04fd16dad973",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ye,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Lh},Gh={type:n.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",entityType:n.ValueDescriptor,entityId:ze.outputs.code.id},Fh={like:!1,inferred:!1,id:"45e6d0bc-0c0e-4059-a7a1-6bee925d73d0",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Gh},Uh={type:n.GenericReference,id:"2baaa53a-9aef-4bd1-b06d-967c17b7b627",entityType:n.DataType,entityId:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe"},xh={type:n.GenericReference,id:"69f34d6c-c686-4165-b6ff-70dae8e1778b",entityType:n.ValueDescriptor,entityId:ze.outputs.headers.id},jh={like:!1,inferred:!1,id:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ye,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"http-response-headers-default-value-id",type:n.PrimitiveValue,version:1,value:{},name:I.JSON,parent:Uh,valueAsType:null,autogeneration:null},constant:!1,parent:xh},kh={type:n.GenericReference,id:"744334e0-5135-4214-85d0-809437cb620b",entityType:n.DataType,entityId:"05fc1a5d-151a-479a-9c4e-4063f3456177"},qh={type:n.GenericReference,id:"0e0e20df-1a46-432c-ba01-fd96508a6a61",entityType:n.ValueDescriptor,entityId:ze.outputs.body.id},Jh={like:!1,inferred:!1,id:"05fc1a5d-151a-479a-9c4e-4063f3456177",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ye,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"http-response-body-default-value-id",type:n.PrimitiveValue,version:1,value:{},name:I.JSON,parent:kh,valueAsType:null,autogeneration:null},constant:!1,parent:qh},Wh={type:n.GenericReference,id:"26911792-f707-4bf1-b6f7-03d04a84232c",entityType:n.ActionDescriptor,entityId:Qe.HttpRequest},ka={id:ze.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:Nh,required:!1,index:0,parentRelationType:B.FixedArguments,parent:Wh},Hh={type:n.GenericReference,id:"eee0c501-0ae6-4448-b914-aada76d63163",entityType:n.ActionDescriptor,entityId:Qe.HttpRequest},qa={id:ze.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:Oh,required:!1,index:1,parentRelationType:B.FixedArguments,parent:Hh},Yh={type:n.GenericReference,id:"670091a4-21b1-4223-ad4c-b6dada0aec49",entityType:n.ActionDescriptor,entityId:Qe.HttpRequest},al={id:ze.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:Ch,required:!1,index:2,parentRelationType:B.FixedArguments,parent:Yh},zh={type:n.GenericReference,id:"85aad3eb-22fe-45f9-b68c-1dc7061f41e0",entityType:n.ActionDescriptor,entityId:Qe.HttpRequest},Ja={id:ze.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:Vh,required:!1,index:3,parent:zh,parentRelationType:B.FixedArguments},Zh={type:n.GenericReference,id:"c3e2a4af-9b84-4574-8b30-5044ffc51776",entityType:n.ActionDescriptor,entityId:Qe.HttpRequest},Wa={id:ze.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:$h,required:!1,index:4,parentRelationType:B.FixedArguments,parent:Zh},Kh={type:n.GenericReference,id:"92e04dc7-2145-4a31-908e-03810f7235e8",entityType:n.ActionDescriptor,entityId:Qe.HttpRequest},sl={id:ze.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:Fh,required:!0,index:0,parentRelationType:B.FixedReturns,parent:Kh},Xh={type:n.GenericReference,id:"86aca556-bbf1-4679-9909-31db61b288e2",entityType:n.ActionDescriptor,entityId:Qe.HttpRequest},Ha={parentRelationType:B.FixedReturns,id:ze.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:jh,required:!0,index:1,parent:Xh},Qh={type:n.GenericReference,id:"ccf3d1be-04e4-4d03-99fd-5bc1e1919f90",entityType:n.ActionDescriptor,entityId:Qe.HttpRequest},Di={parentRelationType:B.FixedReturns,id:ze.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:Jh,required:!0,index:2,parent:Qh},ef={type:n.GenericReference,id:"21487ffc-82b9-473d-bc19-6e7d7c480ed7",entityType:n.ActionDescriptor,entityId:Qe.HttpRequest},tf={type:n.GenericReference,id:"ad69861b-32f7-4461-b7f7-aa84a82578d9",entityType:n.ValueDescriptor,entityId:ze.outputs.error.id},nf={like:!1,inferred:!1,id:"5da68b15-57bc-40c1-b79f-a9075e0f22c1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ye,isList:!1,asType:!1,isNullable:!1,constant:!1,defaultValue:null,parent:tf},ol={parentRelationType:B.ReturnedError,id:ze.outputs.error.id,type:n.ValueDescriptor,description:"Http request error, if any. Contains a payload describing what went wrong.",version:1,name:"Error",dataType:nf,required:!0,index:0,parent:ef},Pi={type:n.ActionDescriptor,id:Qe.HttpRequest,name:Qe.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,fixedArguments:[ka,qa,al,Ja,Wa],fixedReturns:[sl,Ha,Di],argumentsType:M.Fixed,returnsType:M.Fixed,error:ol,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},rf={[Qe.HttpRequest]:Pi},ZD={...up,...Ku,...Ey,...Yy,...Ih,...rf},ll={id:q.ManualFlow,type:n.ActionDescriptor,version:1,name:q.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.",fixedArguments:[],dynamicArgumentTypes:null,dynamicReturnTypes:null,fixedReturns:[],argumentsType:M.None,returnsType:M.Any,error:null,parent:null},cl=G[n.Loop]["manual-flow-loop"],af={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},sf={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:te,asType:!1,defaultValue:null,parent:af},of={id:"manual-flow-loop-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:cl.body.id,entityType:n.ActionDescriptor},dl={id:cl.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:sf,required:!0,index:0,parentRelationType:B.FixedArguments,parent:of},ul={id:cl.body.id,type:n.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the manual flow loop.",fixedArguments:[dl],dynamicArgumentTypes:null,dynamicReturnTypes:null,fixedReturns:[],argumentsType:M.FixedThenAny,returnsType:M.Any,error:null,parent:null},KD=G[n.Loop]["list-loop"],lf={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},cf={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:lf},df={id:"iterate-over-list-loop-list-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:q.List,entityType:n.ActionDescriptor},uf={id:KD.inputs.list.id,type:n.ValueDescriptor,version:1,name:"List",description:"The list to iterate over",required:!0,dataType:cf,index:0,parent:df,parentRelationType:B.FixedArguments},tr={id:q.List,type:n.ActionDescriptor,version:1,name:q.List,description:"Iterates over a list of entities",fixedArguments:[uf],fixedReturns:[],error:null,argumentsType:M.Fixed,returnsType:M.Any,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},Ai=G[n.Loop]["list-loop"],pf={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},yf={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:pf},hf={id:"iterate-over-list-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:Ai.body.id,entityType:n.ActionDescriptor},Ya={id:Ai.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:yf,required:!0,index:1,parentRelationType:B.FixedArguments,parent:hf},ff={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},mf={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:te,asType:!1,defaultValue:null,parent:ff},Tf={id:"iterate-over-list-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:Ai.body.id,entityType:n.ActionDescriptor},Ef={id:Ai.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:mf,required:!0,index:0,parentRelationType:B.FixedArguments,parent:Tf},za={id:Ai.body.id,type:n.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the list loop.",fixedArguments:[Ef,Ya],dynamicArgumentTypes:null,dynamicReturnTypes:null,fixedReturns:[],argumentsType:M.FixedThenAny,returnsType:M.Any,error:null,parent:null},XD=G[n.Loop]["string-loop"],bf={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},Rf={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:x,asType:!1,defaultValue:null,parent:bf},gf={id:"iterate-over-string-loop-string-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:q.String,entityType:n.ActionDescriptor},vf={id:XD.inputs.string.id,type:n.ValueDescriptor,version:1,name:"Texts",description:"The text to iterate over the characters of",required:!0,dataType:Rf,index:0,parent:gf,parentRelationType:B.FixedArguments},Za={id:q.String,type:n.ActionDescriptor,version:1,name:q.String,description:"Iterates over a string of entities",fixedArguments:[vf],fixedReturns:[],error:null,argumentsType:M.Fixed,returnsType:M.Any,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},Oi=G[n.Loop]["string-loop"],If={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},Df={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:x,asType:!1,defaultValue:null,parent:If},Pf={id:"iterate-over-string-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:Oi.body.id,entityType:n.ActionDescriptor},pl={id:Oi.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:Df,required:!0,index:1,parentRelationType:B.FixedArguments,parent:Pf},Af={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},Of={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:te,asType:!1,defaultValue:null,parent:Af},Sf={id:"iterate-over-string-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:Oi.body.id,entityType:n.ActionDescriptor},yl={id:Oi.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:Of,required:!0,index:0,parentRelationType:B.FixedArguments,parent:Sf},hl={id:Oi.body.id,type:n.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",fixedArguments:[yl,pl],dynamicArgumentTypes:null,dynamicReturnTypes:null,fixedReturns:[],argumentsType:M.FixedThenAny,returnsType:M.Any,error:null,parent:null},QD=G[n.Loop]["object-keys-loop"],Cf={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},Bf={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:Ye,asType:!1,defaultValue:null,parent:Cf},wf={id:"iterate-over-object-keys-loop-object-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:q.ObjectKeys,entityType:n.ActionDescriptor},_f={id:QD.inputs.object.id,type:n.ValueDescriptor,version:1,name:"Object",description:"The object to iterate over",required:!0,dataType:Bf,index:0,parent:wf,parentRelationType:B.FixedArguments},Si={id:q.ObjectKeys,type:n.ActionDescriptor,version:1,name:q.ObjectKeys,description:"Iterates over a object of entities",fixedArguments:[_f],fixedReturns:[],error:null,argumentsType:M.Fixed,returnsType:M.Any,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},Ci=G[n.Loop]["object-keys-loop"],Nf={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},Mf={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:x,asType:!1,defaultValue:null,parent:Nf},Vf={id:"iterate-over-object-keys-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:Ci.body.id,entityType:n.ActionDescriptor},fl={id:Ci.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:Mf,required:!0,index:1,parentRelationType:B.FixedArguments,parent:Vf},Lf={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},$f={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:te,asType:!1,defaultValue:null,parent:Lf},Gf={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:Ci.body.id,entityType:n.ActionDescriptor},Ff={id:Ci.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:$f,required:!0,index:0,parentRelationType:B.FixedArguments,parent:Gf},Uf={id:Ci.body.id,type:n.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the object-keys loop.",fixedArguments:[Ff,fl],dynamicArgumentTypes:null,dynamicReturnTypes:null,fixedReturns:[],argumentsType:M.FixedThenAny,returnsType:M.Any,error:null,parent:null},eP=G[n.Loop]["object-values-loop"],xf={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},jf={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:Ye,asType:!1,defaultValue:null,parent:xf},kf={id:"iterate-over-object-values-loop-object-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:q.ObjectValues,entityType:n.ActionDescriptor},qf={id:eP.inputs.object.id,type:n.ValueDescriptor,version:1,name:"Object",description:"The object to iterate over",required:!0,dataType:jf,index:0,parent:kf,parentRelationType:B.FixedArguments},Bi={id:q.ObjectValues,type:n.ActionDescriptor,version:1,name:q.ObjectValues,description:"Iterates over a object of entities",fixedArguments:[qf],fixedReturns:[],error:null,argumentsType:M.Fixed,returnsType:M.Any,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},wi=G[n.Loop]["object-values-loop"],Jf={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},Wf={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:Jf},Hf={id:"iterate-over-object-values-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:wi.body.id,entityType:n.ActionDescriptor},ml={id:wi.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:Wf,required:!0,index:1,parentRelationType:B.FixedArguments,parent:Hf},Yf={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},zf={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:te,asType:!1,defaultValue:null,parent:Yf},Zf={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:wi.body.id,entityType:n.ActionDescriptor},Kf={id:wi.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:zf,required:!0,index:0,parentRelationType:B.FixedArguments,parent:Zf},Xf={id:wi.body.id,type:n.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the object-values loop.",fixedArguments:[Kf,ml],dynamicArgumentTypes:null,dynamicReturnTypes:null,fixedReturns:[],argumentsType:M.FixedThenAny,returnsType:M.Any,error:null,parent:null},tP=G[n.Loop]["counted-loop"],Qf={id:"iterate-over-counted-loop-string-argument-declaration-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-counted-loop-string-argument-declaration-data-type-id",entityType:n.DataType},em={id:"iterate-over-counted-loop-string-argument-declaration-data-type-default-value-id",type:n.PrimitiveValue,name:I.Number,version:1,value:5,valueAsType:null,autogeneration:null,parent:Qf},tm={id:"iterate-over-counted-loop-string-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-counted-loop-string-argument-declaration-id",entityType:n.ValueDescriptor},nm={like:!1,inferred:!1,id:"iterate-over-counted-loop-string-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:te,asType:!1,defaultValue:em,parent:tm},rm={id:"iterate-over-counted-loop-string-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:q.Counted,entityType:n.ActionDescriptor},im={id:tP.inputs.number.id,type:n.ValueDescriptor,version:1,name:"Number of iterations",description:"The number of iterations to perform",required:!0,dataType:nm,index:0,parent:rm,parentRelationType:B.FixedArguments},Ka={id:q.Counted,type:n.ActionDescriptor,version:1,name:q.Counted,description:"Iterates a given number of times",fixedArguments:[im],fixedReturns:[],error:null,argumentsType:M.Fixed,returnsType:M.Any,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},Tl=G[n.Loop]["counted-loop"],am={id:"iterate-over-counted-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-counted-loop-body-current-iteration-number-declaration-id",entityType:n.ValueDescriptor},sm={like:!1,inferred:!1,id:"iterate-over-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:te,asType:!1,defaultValue:null,parent:am},om={id:"iterate-over-counted-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:Tl.body.id,entityType:n.ActionDescriptor},El={id:Tl.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:sm,required:!0,index:0,parentRelationType:B.FixedArguments,parent:om},bl={id:Tl.body.id,type:n.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",fixedArguments:[El],dynamicArgumentTypes:null,dynamicReturnTypes:null,fixedReturns:[],argumentsType:M.FixedThenAny,returnsType:M.Any,error:null,parent:null},Xa=G[n.BuiltInBaseEntity][L.KEY_VALUE_PARAM],nP={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},lm={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},rP={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:x,asType:!1,defaultValue:null,parent:lm},cm={id:"key-value-param-built-in-base-entity-name-property-parent-ref",type:n.GenericReference,entityId:Xa.id,entityType:n.BuiltInBaseEntity},dm={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:rP,description:"The name of the path parameter",parent:cm},iP={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},um={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},aP={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:x,asType:!1,defaultValue:null,parent:um},pm={id:"key-value-param-built-in-base-entity-value-property-parent-ref",type:n.GenericReference,entityId:Xa.id,entityType:n.BuiltInBaseEntity},ym={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:aP,description:"The value of the path parameter",parent:pm},Qa={id:Xa.id,version:1,description:'An entity with a "name" and "value" property representing a breakdown of a key-value pair.',name:Xa.id,type:n.BuiltInBaseEntity,abstract:!1,static:!1,interactive:!0,properties:[dm,ym],abstractMethods:[],methods:[],extends:[]},_i=G[n.BuiltInBaseEntity][L.HTTP_ENDPOINT].properties,hm={id:"endpointBuiltInCorsPropertyDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointBuiltInCorsPropertyDataType"},fm={id:"endpointBuiltInCorsPropertyRef",type:n.GenericReference,entityType:n.Property,entityId:_i.cors.id},mm={like:!1,inferred:!1,id:"endpointBuiltInCorsPropertyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!0,entity:x,asType:!1,defaultValue:{id:"endpointBuiltInCorsPropertyDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:I.JSON,value:["*"],parent:hm,autogeneration:null,valueAsType:null},parent:fm},Tm={id:"endpointBuiltInBaseEntityRef",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},Em={hidden:!0,required:!0,id:_i.cors.id,name:"Allowed origins",version:1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:mm,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:Tm},bm={id:"endpointBuiltInPathPropertyDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointBuiltInPathPropertyDataType"},Rm={id:"endpointBuiltInPathPropertyRef",type:n.GenericReference,entityType:n.Property,entityId:_i.path.id},gm={like:!1,inferred:!1,id:"endpointBuiltInPathPropertyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:x,asType:!1,defaultValue:{id:"endpointBuiltInPathPropertyDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:I.String,value:"/",parent:bm,autogeneration:null,valueAsType:null},parent:Rm},vm={id:"endpointBuiltInBaseEntityRefTwo",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},Rl={hidden:!1,required:!0,id:_i.path.id,name:"Path",version:1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:1,dataType:gm,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:vm},Im={id:"endpointBuiltInMethodPropertyDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointBuiltInMethodPropertyDataType"},Dm={id:"endpointBuiltInMethodPropertyRef",type:n.GenericReference,entityType:n.Property,entityId:"endpointBuiltInMethodProperty"},Pm={like:!1,inferred:!1,id:"endpointBuiltInMethodPropertyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Cn,isList:!0,isNullable:!1,constant:!0,asType:!1,defaultValue:{id:"endpointBuiltInMethodPropertyDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,value:"GET",name:I.Enum,parent:Im,autogeneration:null,valueAsType:null},options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:Dm},Am={id:"endpointBuiltInBaseEntityRefThree",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},gl={hidden:!1,required:!0,id:_i.method.id,name:"Method",version:1,type:n.Property,private:!1,index:2,implements:null,abstract:!0,static:!0,dataType:Pm,description:"The HTTP method that this endpoint will respond to, for example GET, POST, PUT, DELETE, etc.",parent:Am},Om={id:"endpointRequestHeadersVariableDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointRequestHeadersVariableDataType"},Sm={id:"endpointRequestHeadersArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"endpointRequestHeadersArgumentDeclaration"},Cm={like:!1,inferred:!1,id:"endpointRequestHeadersVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Ye,asType:!1,defaultValue:{id:"endpointRequestHeadersVariableDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:I.JSON,value:{},parent:Om,autogeneration:null,valueAsType:null},parent:Sm},Bm={id:"endpointRequestBodyArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"endpointRequestBodyArgumentDeclaration"},wm={like:!1,inferred:!1,id:"endpointRequestBodyVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Ye,defaultValue:null,parent:Bm},_m={id:"endpointRequestQueryParamsVariableDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointRequestQueryParamsVariableDataType"},Nm={id:"endpointRequestQueryParamsArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"endpointRequestQueryParamsArgumentDeclaration"},Mm={like:!1,inferred:!1,id:"endpointRequestQueryParamsVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,asType:!1,entity:Qa,defaultValue:{id:"endpointRequestQueryParamsVariableDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:I.JSON,value:[],parent:_m,autogeneration:null,valueAsType:null},parent:Nm},Vm={id:"endpointPathParamsVariableDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointPathParamsVariableDataType"},Lm={id:"endpointPathParamsArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"endpointPathParamsArgumentDeclaration"},$m={like:!1,inferred:!1,id:"endpointPathParamsVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Qa,asType:!1,defaultValue:{id:"endpointPathParamsVariableDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:I.JSON,value:[],parent:Vm,autogeneration:null,valueAsType:null},parent:Lm},Gm={id:"endpointReachedTriggerActionDescriptorRef",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},vl={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:Cm,required:!0,index:0,parentRelationType:B.FixedArguments,parent:Gm},Fm={id:"endpointReachedTriggerActionDescriptorRefTwo",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Il={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:$m,required:!0,index:1,parentRelationType:B.FixedArguments,parent:Fm},Um={id:"endpointReachedTriggerActionDescriptorRefThree",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Dl={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:Mm,required:!0,index:2,parentRelationType:B.FixedArguments,parent:Um},xm={id:"endpointReachedTriggerActionDescriptorRefFour",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Pl={id:"endpointRequestBodyArgumentDeclaration",version:1,description:"The main data payload of the request.",type:n.ValueDescriptor,name:"Request body",dataType:wm,index:3,required:!0,parentRelationType:B.FixedArguments,parent:xm},jm={id:"endpointResponseCodeReturnDeclarationRef",type:n.GenericReference,entityType:n.ReturnDeclaration,entityId:"endpointResponseCodeReturnDeclaration"},km={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:jm},qm={id:"endpointReturnStatementRef",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},Al={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:km,required:!0,index:0,parentRelationType:B.FixedReturns,parent:qm},Jm={id:"endpointResponseHeadersDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointResponseHeadersDataType"},Wm={id:"endpointResponseHeadersReturnDeclarationRef",type:n.GenericReference,entityType:n.ReturnDeclaration,entityId:"endpointResponseHeadersReturnDeclaration"},Hm={like:!1,inferred:!1,id:"endpointResponseHeadersDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Ye,asType:!1,defaultValue:{id:"endpointResponseHeadersDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:I.JSON,value:{},parent:Jm,autogeneration:null,valueAsType:null},parent:Wm},Ym={id:"endpointReturnStatementRefTwo",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},Ol={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:Hm,required:!1,index:1,parentRelationType:B.FixedReturns,parent:Ym},zm={id:"endpointResponseBodyReturnDeclarationRef",type:n.GenericReference,entityType:n.ReturnDeclaration,entityId:"endpointResponseBodyReturnDeclaration"},Zm={like:!1,inferred:!1,id:"endpointResponseBodyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Ye,defaultValue:null,parent:zm},Km={id:"endpointReturnStatementRefThree",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},Sl={id:"endpointResponseBodyReturnDeclaration",version:1,description:"The main data payload of the response.",type:n.ValueDescriptor,name:"Response body",dataType:Zm,required:!1,index:2,parentRelationType:B.FixedReturns,parent:Km},Xm={id:"endpointBuiltInBaseEntityRefFour",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},Cl={id:"endpointReachedTriggerActionDescriptor",type:n.ActionDescriptor,version:1,name:"Endpoint reached",description:"Fired when the endpoint is reached.",argumentsType:M.Fixed,dynamicArgumentTypes:null,fixedArguments:[vl,Il,Dl,Pl],returnsType:M.Fixed,fixedReturns:[Al,Ol,Sl],error:null,dynamicReturnTypes:null,parent:Xm},es={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:[Em,Rl,gl],abstractMethods:[Cl],extends:[],methods:[]},Vt=G[n.BuiltInBaseEntity].BUILT_IN_RELATIONAL_DATABASE_ENTITY,Qm={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},eT={id:"relational-database-built-in-base-entity-identifier-property-ref-id",type:n.GenericReference,entityId:Vt.properties.identifier.id,entityType:n.Property},sP={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:x,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-identifier-property-default-value-id",type:n.PrimitiveValue,version:1,name:I.String,value:null,parent:Qm,autogeneration:{type:qe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:eT},xr={id:"relational-database-built-in-base-entity-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},ts={hidden:!1,required:!0,id:Vt.properties.identifier.id,name:"Identifier name",version:1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:0,dataType:sP,description:"The name of the main database inside of the server instance where the data will be stored.",parent:xr},oP={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},tT={id:"relational-database-built-in-base-entity-username-property-ref-id",type:n.GenericReference,entityId:Vt.properties.username.id,entityType:n.Property},lP={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:x,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-username-property-default-value-id",type:n.PrimitiveValue,version:1,name:I.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:tT},ns={hidden:!1,required:!0,id:Vt.properties.username.id,name:"Username",version:1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:1,dataType:lP,description:"The username that will be used to connect to the database.",parent:xr},cP={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},nT={id:"relational-database-built-in-base-entity-password-property-ref-id",type:n.GenericReference,entityId:Vt.properties.password.id,entityType:n.Property},dP={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:x,asType:!1,defaultValue:null,parent:nT},rs={hidden:!1,required:!0,id:Vt.properties.password.id,name:"Password",version:1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:2,dataType:dP,description:"The password that will be used to connect to the database.",parent:xr},rT={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},iT={id:"relational-database-built-in-base-entity-min-size-property-ref-id",type:n.GenericReference,entityId:Vt.properties.minSize.id,entityType:n.Property},uP={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:te,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-min-size-property-default-value-id",type:n.PrimitiveValue,version:1,name:I.Number,value:6,parent:rT,autogeneration:null,valueAsType:null},parent:iT},is={hidden:!0,required:!0,id:Vt.properties.minSize.id,name:"Minimum GB size",version:1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:3,dataType:uP,description:"The minimum size of the database in GB.",parent:xr},aT={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},sT={id:"relational-database-built-in-base-entity-default-property-ref-id",type:n.GenericReference,entityId:Vt.properties.default.id,entityType:n.Property},pP={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:Sn,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-default-property-default-value-id",type:n.PrimitiveValue,version:1,name:I.Boolean,value:!1,parent:aT,autogeneration:null,valueAsType:null},parent:sT},Bl={hidden:!0,required:!0,id:Vt.properties.default.id,name:"Default",version:1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,dataType:pP,description:"If true, this database will be the default database for the server instance and all the new entities.",parent:xr},oT={id:"relational-database-built-in-base-entity-autoscaling-property-ref-id",type:n.GenericReference,entityId:Vt.properties.autoscaling.id,entityType:n.Property},lT={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},yP={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:Sn,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-autoscaling-property-default-value-id",type:n.PrimitiveValue,version:1,name:I.Boolean,value:!1,parent:lT,autogeneration:null,valueAsType:null},parent:oT},cT={id:"relational-database-built-in-base-entity-autoscaling-property-parent-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},wl={hidden:!0,required:!0,id:Vt.properties.autoscaling.id,name:"Auto-scaling",version:1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,dataType:yP,description:"If true, this database will automatically scale up or down in memory size, based on the usage.",parent:cT},Bn={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:[ts,ns,rs,is,Bl,wl],abstractMethods:[],methods:[],extends:[]},dT={type:n.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",entityType:n.BuiltInBaseEntity,id:St.DeletePersistedEntity},_l={type:n.FunctionDeclaration,id:St.DeletePersistedEntity,name:St.DeletePersistedEntity,description:"Permanently deletes the current copy of an entity from the database",version:1,parent:dT,inputs:[],calls:[],implements:null,collapsed:!1,returnStatements:[],index:0,private:!1,x:0,y:0},uT={type:n.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",entityType:n.BuiltInBaseEntity,id:St.SoftDeletePersistedEntity},pT={type:n.FunctionDeclaration,id:St.SoftDeletePersistedEntity,name:St.SoftDeletePersistedEntity,description:"Designates the entity as deleted, but does not remove it from the database.",version:1,parent:uT,inputs:[],calls:[],implements:null,collapsed:!1,returnStatements:[],index:0,private:!1,x:0,y:0},yT=G[n.BuiltInBaseEntity][L.PERSISTED_ENTITY].properties,hP={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},hT={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},fP={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:Bn,asType:!1,defaultValue:null,parent:hT},fT={id:"persisted-built-in-base-entity-database-property-parent-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},Ni={hidden:!0,required:!0,id:yT.database.id,name:"Database",version:1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:fP,description:"The database that the entity belongs to.",parent:fT},mT={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},TT={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},mP={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:Ga,asType:!1,defaultValue:{id:"persisted-built-in-base-entity-identifier-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:I.UUID,value:null,parent:mT,autogeneration:{type:qe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:TT},ET={id:"persisted-built-in-base-entity-identifier-property-parent-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},bT={hidden:!1,required:!0,id:yT.identifier.id,name:"Identifier",version:1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:mP,description:"Auto-generated unique identifier for the entity, can be used to identify the entity among other entities of the same type.",parent:ET},TP={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},RT={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},gT={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:cn,asType:!1,defaultValue:null,parent:RT},vT={id:"persisted-built-in-base-entity-deleted-at-property-parent-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},IT={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:gT,description:"The date and time when the entity was deleted.",parent:vT},EP={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},DT={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},PT={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:cn,asType:!1,defaultValue:null,parent:DT},AT={id:"persisted-built-in-base-entity-created-at-property-parent-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},OT={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:PT,description:"The date and time when the entity was created.",parent:AT},bP={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},ST={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},CT={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:cn,asType:!1,defaultValue:null,parent:ST},BT={id:"persisted-built-in-base-entity-updated-at-property-parent-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},wT={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:CT,description:"The date and time when the entity was last updated.",parent:BT},Fe={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:[Ni,bT,IT,OT,wT],methods:[_l,pT],extends:[]},_T={id:"cron-job-triggered-function-declaration-blueprint-parent-ref-id",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},Nl={id:"cron-job-triggered-function-declaration-blueprint-id",name:"Cron job triggered",version:1,type:n.ActionDescriptor,argumentsType:M.None,returnsType:M.None,description:"Executed when the cron job is triggered",fixedArguments:[],dynamicArgumentTypes:null,error:null,fixedReturns:[],dynamicReturnTypes:null,parent:_T},NT=G[n.BuiltInBaseEntity].BUILT_IN_CRON_JOB_ENTITY,RP={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},MT={id:"cron-job-built-in-base-entity-expression-property-ref",type:n.GenericReference,entityId:NT.properties.expression.id,entityType:n.Property},gP={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:x,asType:!1,defaultValue:null,parent:MT},VT={id:"cron-job-built-in-base-entity-ref",type:n.GenericReference,entityId:L.CRON_JOB,entityType:n.BuiltInBaseEntity},LT={hidden:!1,required:!0,id:NT.properties.expression.id,name:"Cron expression",version:1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:gP,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:VT},Ml={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:[LT],methods:[],abstractMethods:[Nl],extends:[]},$T={type:n.GenericReference,id:"execution-built-in-entity-abort-method-parent-ref-id",entityType:n.BuiltInBaseEntity,entityId:"execution-built-in-entity-id"},Vl={id:"execution-built-in-entity-abort-method-id",type:n.FunctionDeclaration,version:1,name:St.AbortExecution,description:"Aborts the execution of the entity",inputs:[],returnStatements:[],calls:[],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:$T},Ll={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:[Vl],abstractMethods:[]},vP=G[n.Condition]["not-empty"],GT={type:n.GenericReference,id:"not-empty-condition-ref",entityType:n.ActionDescriptor,entityId:Mt.NotEmpty},FT={id:vP.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:B.FixedArguments,index:0,parent:GT},nr={type:n.ActionDescriptor,id:Mt.NotEmpty,version:1,name:Mt.NotEmpty,description:"Checks if the value is not empty",parent:null,fixedArguments:[FT],fixedReturns:[],dynamicArgumentTypes:null,dynamicReturnTypes:null,argumentsType:M.Fixed,returnsType:M.None,error:null},UT={[Mt.NotEmpty]:nr},xT=G[n.Condition]["more-than-or-equal"],jT={type:n.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-parent-ref",entityType:n.ActionDescriptor,entityId:Me.MoreThanOrEqual},kT={id:xT.inputs.leftHand.id,type:n.ValueDescriptor,version:1,name:"First value",description:"The first value to compare",dataType:null,required:!0,parentRelationType:B.FixedArguments,index:0,parent:jT},qT={type:n.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-parent-ref",entityType:n.ActionDescriptor,entityId:Me.MoreThanOrEqual},JT={id:xT.inputs.rightHand.id,type:n.ValueDescriptor,version:1,name:"Second value",description:"The second value to compare",dataType:null,required:!0,parentRelationType:B.FixedArguments,index:1,parent:qT},jr={type:n.ActionDescriptor,id:Me.MoreThanOrEqual,version:1,name:Me.MoreThanOrEqual,description:"Checks if the value is not empty",parent:null,fixedArguments:[kT,JT],fixedReturns:[],dynamicArgumentTypes:null,dynamicReturnTypes:null,argumentsType:M.Fixed,returnsType:M.None,error:null},WT={[Me.MoreThanOrEqual]:jr},IP={...UT,...WT},as={type:n.ActionDescriptor,id:on.PROJECT_PUBLICATION_COMPLETED,version:1,name:on.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,fixedArguments:[],fixedReturns:[],dynamicArgumentTypes:null,dynamicReturnTypes:null,argumentsType:M.None,returnsType:M.None,error:null},DP={[on.PROJECT_PUBLICATION_COMPLETED]:as},$l=G[n.ValueDescriptor][qo.ActionOngoingProcessOutputValue],HT={type:n.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",entityType:n.ValueDescriptor,entityId:$l.id},YT={like:!1,inferred:!1,id:$l.dataType.id,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ll,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:HT},Gl={id:$l.id,type:n.ValueDescriptor,description:"A value that represents the ongoing process of the parent action",version:1,name:"Process",dataType:YT,required:!0,index:0,parent:null,parentRelationType:B.OngoingProcessExecution};var ee;(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(c=>typeof a[a[c]]!="number"),o={};for(const c of s)o[c]=a[c];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})(ee||(ee={}));var Fl;(function(r){r.mergeShapes=(e,t)=>({...e,...t})})(Fl||(Fl={}));const $=ee.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),wn=r=>{switch(typeof r){case"undefined":return $.undefined;case"string":return $.string;case"number":return isNaN(r)?$.nan:$.number;case"boolean":return $.boolean;case"function":return $.function;case"bigint":return $.bigint;case"symbol":return $.symbol;case"object":return Array.isArray(r)?$.array:r===null?$.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?$.promise:typeof Map<"u"&&r instanceof Map?$.map:typeof Set<"u"&&r instanceof Set?$.set:typeof Date<"u"&&r instanceof Date?$.date:$.object;default:return $.unknown}},C=ee.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"]),PP=r=>JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:");class gt 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 c=i,p=0;for(;p<o.path.length;){const y=o.path[p];p===o.path.length-1?(c[y]=c[y]||{_errors:[]},c[y]._errors.push(t(o))):c[y]=c[y]||{_errors:[]},c=c[y],p++}}};return a(this),i}static assert(e){if(!(e instanceof gt))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ee.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()}}gt.create=r=>new gt(r);const kr=(r,e)=>{let t;switch(r.code){case C.invalid_type:r.received===$.undefined?t="Required":t=`Expected ${r.expected}, received ${r.received}`;break;case C.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(r.expected,ee.jsonStringifyReplacer)}`;break;case C.unrecognized_keys:t=`Unrecognized key(s) in object: ${ee.joinValues(r.keys,", ")}`;break;case C.invalid_union:t="Invalid input";break;case C.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${ee.joinValues(r.options)}`;break;case C.invalid_enum_value:t=`Invalid enum value. Expected ${ee.joinValues(r.options)}, received '${r.received}'`;break;case C.invalid_arguments:t="Invalid function arguments";break;case C.invalid_return_type:t="Invalid function return type";break;case C.invalid_date:t="Invalid date";break;case C.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}"`:ee.assertNever(r.validation):r.validation!=="regex"?t=`Invalid ${r.validation}`:t="Invalid";break;case C.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 C.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 C.custom:t="Invalid input";break;case C.invalid_intersection_types:t="Intersection results could not be merged";break;case C.not_multiple_of:t=`Number must be a multiple of ${r.multipleOf}`;break;case C.not_finite:t="Number must be finite";break;default:t=e.defaultError,ee.assertNever(r)}return{message:t}};let zT=kr;function AP(r){zT=r}function ss(){return zT}const os=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 c="";const p=i.filter(y=>!!y).slice().reverse();for(const y of p)c=y(o,{data:e,defaultError:c}).message;return{...a,path:s,message:c}},OP=[];function V(r,e){const t=ss(),i=os({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 W;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 W;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 W=Object.freeze({status:"aborted"}),qr=r=>({status:"dirty",value:r}),pt=r=>({status:"valid",value:r}),Ul=r=>r.status==="aborted",xl=r=>r.status==="dirty",Mi=r=>r.status==="valid",Vi=r=>typeof Promise<"u"&&r instanceof Promise;function ls(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 ZT(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 U;(function(r){r.errToObj=e=>typeof e=="string"?{message:e}:e||{},r.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(U||(U={}));var Li,$i;class zt{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 KT=(r,e)=>{if(Mi(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 gt(r.common.issues);return this._error=t,this._error}}};function K(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,c)=>{var p,y;const{message:f}=r;return o.code==="invalid_enum_value"?{message:f??c.defaultError}:typeof c.data>"u"?{message:(p=f??i)!==null&&p!==void 0?p:c.defaultError}:o.code!=="invalid_type"?{message:c.defaultError}:{message:(y=f??t)!==null&&y!==void 0?y:c.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 wn(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:wn(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:wn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(Vi(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:wn(e)},s=this._parseSync({data:e,path:a.path,parent:a});return KT(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:wn(e)},a=this._parse({data:e,path:i.path,parent:i}),s=await(Vi(a)?a:Promise.resolve(a));return KT(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),c=()=>s.addIssue({code:C.custom,...i(a)});return typeof Promise<"u"&&o instanceof Promise?o.then(p=>p?!0:(c(),!1)):o?!0:(c(),!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 qt({schema:this,typeName:J.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Kt.create(this,this._def)}nullable(){return Vn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return kt.create(this,this._def)}promise(){return Yr.create(this,this._def)}or(e){return xi.create([this,e],this._def)}and(e){return ji.create(this,e,this._def)}transform(e){return new qt({...K(this._def),schema:this,typeName:J.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new Hi({...K(this._def),innerType:this,defaultValue:t,typeName:J.ZodDefault})}brand(){return new ql({typeName:J.ZodBranded,type:this,...K(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new Yi({...K(this._def),innerType:this,catchValue:t,typeName:J.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return zi.create(this,e)}readonly(){return Zi.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const SP=/^c[^\s-]{8,}$/i,CP=/^[0-9a-z]+$/,BP=/^[0-9A-HJKMNP-TV-Z]{26}$/,wP=/^[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,_P=/^[a-z0-9_-]{21}$/i,NP=/^[-+]?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)?)??$/,MP=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,VP="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let jl;const LP=/^(?:(?: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])$/,$P=/^(([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})))$/,GP=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,XT="((\\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])))",FP=new RegExp(`^${XT}$`);function QT(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 UP(r){return new RegExp(`^${QT(r)}$`)}function eE(r){let e=`${XT}T${QT(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 xP(r,e){return!!((e==="v4"||!e)&&LP.test(r)||(e==="v6"||!e)&&$P.test(r))}class jt extends X{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==$.string){const s=this._getOrReturnCtx(e);return V(s,{code:C.invalid_type,expected:$.string,received:s.parsedType}),W}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:C.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:C.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,c=e.data.length<s.value;(o||c)&&(a=this._getOrReturnCtx(e,a),o?V(a,{code:C.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):c&&V(a,{code:C.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),i.dirty())}else if(s.kind==="email")MP.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"email",code:C.invalid_string,message:s.message}),i.dirty());else if(s.kind==="emoji")jl||(jl=new RegExp(VP,"u")),jl.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"emoji",code:C.invalid_string,message:s.message}),i.dirty());else if(s.kind==="uuid")wP.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"uuid",code:C.invalid_string,message:s.message}),i.dirty());else if(s.kind==="nanoid")_P.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"nanoid",code:C.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid")SP.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"cuid",code:C.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid2")CP.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"cuid2",code:C.invalid_string,message:s.message}),i.dirty());else if(s.kind==="ulid")BP.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"ulid",code:C.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:C.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:C.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:C.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:C.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:C.invalid_string,validation:{endsWith:s.value},message:s.message}),i.dirty()):s.kind==="datetime"?eE(s).test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{code:C.invalid_string,validation:"datetime",message:s.message}),i.dirty()):s.kind==="date"?FP.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{code:C.invalid_string,validation:"date",message:s.message}),i.dirty()):s.kind==="time"?UP(s).test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{code:C.invalid_string,validation:"time",message:s.message}),i.dirty()):s.kind==="duration"?NP.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"duration",code:C.invalid_string,message:s.message}),i.dirty()):s.kind==="ip"?xP(e.data,s.version)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"ip",code:C.invalid_string,message:s.message}),i.dirty()):s.kind==="base64"?GP.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"base64",code:C.invalid_string,message:s.message}),i.dirty()):ee.assertNever(s);return{status:i.value,value:e.data}}_regex(e,t,i){return this.refinement(a=>e.test(a),{validation:t,code:C.invalid_string,...U.errToObj(i)})}_addCheck(e){return new jt({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...U.errToObj(e)})}url(e){return this._addCheck({kind:"url",...U.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...U.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...U.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...U.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...U.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...U.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...U.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...U.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...U.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,...U.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,...U.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...U.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...U.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t==null?void 0:t.position,...U.errToObj(t==null?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...U.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...U.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...U.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...U.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...U.errToObj(t)})}nonempty(e){return this.min(1,U.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:J.ZodString,coerce:(e=r==null?void 0:r.coerce)!==null&&e!==void 0?e:!1,...K(r)})};function jP(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 _n 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)!==$.number){const s=this._getOrReturnCtx(e);return V(s,{code:C.invalid_type,expected:$.number,received:s.parsedType}),W}let i;const a=new nt;for(const s of this._def.checks)s.kind==="int"?ee.isInteger(e.data)||(i=this._getOrReturnCtx(e,i),V(i,{code:C.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:C.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:C.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="multipleOf"?jP(e.data,s.value)!==0&&(i=this._getOrReturnCtx(e,i),V(i,{code:C.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:C.not_finite,message:s.message}),a.dirty()):ee.assertNever(s);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,U.toString(t))}gt(e,t){return this.setLimit("min",e,!1,U.toString(t))}lte(e,t){return this.setLimit("max",e,!0,U.toString(t))}lt(e,t){return this.setLimit("max",e,!1,U.toString(t))}setLimit(e,t,i,a){return new _n({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:U.toString(a)}]})}_addCheck(e){return new _n({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:U.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:U.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:U.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:U.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:U.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:U.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:U.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:U.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:U.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"&&ee.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)}}_n.create=r=>new _n({checks:[],typeName:J.ZodNumber,coerce:(r==null?void 0:r.coerce)||!1,...K(r)});class Nn 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)!==$.bigint){const s=this._getOrReturnCtx(e);return V(s,{code:C.invalid_type,expected:$.bigint,received:s.parsedType}),W}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:C.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:C.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:C.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):ee.assertNever(s);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,U.toString(t))}gt(e,t){return this.setLimit("min",e,!1,U.toString(t))}lte(e,t){return this.setLimit("max",e,!0,U.toString(t))}lt(e,t){return this.setLimit("max",e,!1,U.toString(t))}setLimit(e,t,i,a){return new Nn({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:U.toString(a)}]})}_addCheck(e){return new Nn({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:U.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:U.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:U.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:U.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:U.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}}Nn.create=r=>{var e;return new Nn({checks:[],typeName:J.ZodBigInt,coerce:(e=r==null?void 0:r.coerce)!==null&&e!==void 0?e:!1,...K(r)})};class Gi extends X{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==$.boolean){const i=this._getOrReturnCtx(e);return V(i,{code:C.invalid_type,expected:$.boolean,received:i.parsedType}),W}return pt(e.data)}}Gi.create=r=>new Gi({typeName:J.ZodBoolean,coerce:(r==null?void 0:r.coerce)||!1,...K(r)});class rr extends X{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==$.date){const s=this._getOrReturnCtx(e);return V(s,{code:C.invalid_type,expected:$.date,received:s.parsedType}),W}if(isNaN(e.data.getTime())){const s=this._getOrReturnCtx(e);return V(s,{code:C.invalid_date}),W}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:C.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:C.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),i.dirty()):ee.assertNever(s);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new rr({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:U.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:U.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}}rr.create=r=>new rr({checks:[],coerce:(r==null?void 0:r.coerce)||!1,typeName:J.ZodDate,...K(r)});class cs extends X{_parse(e){if(this._getType(e)!==$.symbol){const i=this._getOrReturnCtx(e);return V(i,{code:C.invalid_type,expected:$.symbol,received:i.parsedType}),W}return pt(e.data)}}cs.create=r=>new cs({typeName:J.ZodSymbol,...K(r)});class Fi extends X{_parse(e){if(this._getType(e)!==$.undefined){const i=this._getOrReturnCtx(e);return V(i,{code:C.invalid_type,expected:$.undefined,received:i.parsedType}),W}return pt(e.data)}}Fi.create=r=>new Fi({typeName:J.ZodUndefined,...K(r)});class Ui extends X{_parse(e){if(this._getType(e)!==$.null){const i=this._getOrReturnCtx(e);return V(i,{code:C.invalid_type,expected:$.null,received:i.parsedType}),W}return pt(e.data)}}Ui.create=r=>new Ui({typeName:J.ZodNull,...K(r)});class Jr extends X{constructor(){super(...arguments),this._any=!0}_parse(e){return pt(e.data)}}Jr.create=r=>new Jr({typeName:J.ZodAny,...K(r)});class ir extends X{constructor(){super(...arguments),this._unknown=!0}_parse(e){return pt(e.data)}}ir.create=r=>new ir({typeName:J.ZodUnknown,...K(r)});class un extends X{_parse(e){const t=this._getOrReturnCtx(e);return V(t,{code:C.invalid_type,expected:$.never,received:t.parsedType}),W}}un.create=r=>new un({typeName:J.ZodNever,...K(r)});class ds extends X{_parse(e){if(this._getType(e)!==$.undefined){const i=this._getOrReturnCtx(e);return V(i,{code:C.invalid_type,expected:$.void,received:i.parsedType}),W}return pt(e.data)}}ds.create=r=>new ds({typeName:J.ZodVoid,...K(r)});class kt extends X{_parse(e){const{ctx:t,status:i}=this._processInputParams(e),a=this._def;if(t.parsedType!==$.array)return V(t,{code:C.invalid_type,expected:$.array,received:t.parsedType}),W;if(a.exactLength!==null){const o=t.data.length>a.exactLength.value,c=t.data.length<a.exactLength.value;(o||c)&&(V(t,{code:o?C.too_big:C.too_small,minimum:c?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:C.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:C.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,c)=>a.type._parseAsync(new zt(t,o,t.path,c)))).then(o=>nt.mergeArray(i,o));const s=[...t.data].map((o,c)=>a.type._parseSync(new zt(t,o,t.path,c)));return nt.mergeArray(i,s)}get element(){return this._def.type}min(e,t){return new kt({...this._def,minLength:{value:e,message:U.toString(t)}})}max(e,t){return new kt({...this._def,maxLength:{value:e,message:U.toString(t)}})}length(e,t){return new kt({...this._def,exactLength:{value:e,message:U.toString(t)}})}nonempty(e){return this.min(1,e)}}kt.create=(r,e)=>new kt({type:r,minLength:null,maxLength:null,exactLength:null,typeName:J.ZodArray,...K(e)});function Wr(r){if(r instanceof xe){const e={};for(const t in r.shape){const i=r.shape[t];e[t]=Kt.create(Wr(i))}return new xe({...r._def,shape:()=>e})}else return r instanceof kt?new kt({...r._def,type:Wr(r.element)}):r instanceof Kt?Kt.create(Wr(r.unwrap())):r instanceof Vn?Vn.create(Wr(r.unwrap())):r instanceof Zt?Zt.create(r.items.map(e=>Wr(e))):r}class xe 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=ee.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==$.object){const y=this._getOrReturnCtx(e);return V(y,{code:C.invalid_type,expected:$.object,received:y.parsedType}),W}const{status:i,ctx:a}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),c=[];if(!(this._def.catchall instanceof un&&this._def.unknownKeys==="strip"))for(const y in a.data)o.includes(y)||c.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 zt(a,m,a.path,y)),alwaysSet:y in a.data})}if(this._def.catchall instanceof un){const y=this._def.unknownKeys;if(y==="passthrough")for(const f of c)p.push({key:{status:"valid",value:f},value:{status:"valid",value:a.data[f]}});else if(y==="strict")c.length>0&&(V(a,{code:C.unrecognized_keys,keys:c}),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 c){const m=a.data[f];p.push({key:{status:"valid",value:f},value:y._parse(new zt(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 U.errToObj,new xe({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,i)=>{var a,s,o,c;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:(c=U.errToObj(e).message)!==null&&c!==void 0?c:p}:{message:p}}}:{}})}strip(){return new xe({...this._def,unknownKeys:"strip"})}passthrough(){return new xe({...this._def,unknownKeys:"passthrough"})}extend(e){return new xe({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new xe({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:J.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new xe({...this._def,catchall:e})}pick(e){const t={};return ee.objectKeys(e).forEach(i=>{e[i]&&this.shape[i]&&(t[i]=this.shape[i])}),new xe({...this._def,shape:()=>t})}omit(e){const t={};return ee.objectKeys(this.shape).forEach(i=>{e[i]||(t[i]=this.shape[i])}),new xe({...this._def,shape:()=>t})}deepPartial(){return Wr(this)}partial(e){const t={};return ee.objectKeys(this.shape).forEach(i=>{const a=this.shape[i];e&&!e[i]?t[i]=a:t[i]=a.optional()}),new xe({...this._def,shape:()=>t})}required(e){const t={};return ee.objectKeys(this.shape).forEach(i=>{if(e&&!e[i])t[i]=this.shape[i];else{let s=this.shape[i];for(;s instanceof Kt;)s=s._def.innerType;t[i]=s}}),new xe({...this._def,shape:()=>t})}keyof(){return tE(ee.objectKeys(this.shape))}}xe.create=(r,e)=>new xe({shape:()=>r,unknownKeys:"strip",catchall:un.create(),typeName:J.ZodObject,...K(e)}),xe.strictCreate=(r,e)=>new xe({shape:()=>r,unknownKeys:"strict",catchall:un.create(),typeName:J.ZodObject,...K(e)}),xe.lazycreate=(r,e)=>new xe({shape:r,unknownKeys:"strip",catchall:un.create(),typeName:J.ZodObject,...K(e)});class xi extends X{_parse(e){const{ctx:t}=this._processInputParams(e),i=this._def.options;function a(s){for(const c of s)if(c.result.status==="valid")return c.result;for(const c of s)if(c.result.status==="dirty")return t.common.issues.push(...c.ctx.common.issues),c.result;const o=s.map(c=>new gt(c.ctx.common.issues));return V(t,{code:C.invalid_union,unionErrors:o}),W}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 c=o.map(p=>new gt(p));return V(t,{code:C.invalid_union,unionErrors:c}),W}}get options(){return this._def.options}}xi.create=(r,e)=>new xi({options:r,typeName:J.ZodUnion,...K(e)});const pn=r=>r instanceof qi?pn(r.schema):r instanceof qt?pn(r.innerType()):r instanceof Ji?[r.value]:r instanceof Mn?r.options:r instanceof Wi?ee.objectValues(r.enum):r instanceof Hi?pn(r._def.innerType):r instanceof Fi?[void 0]:r instanceof Ui?[null]:r instanceof Kt?[void 0,...pn(r.unwrap())]:r instanceof Vn?[null,...pn(r.unwrap())]:r instanceof ql||r instanceof Zi?pn(r.unwrap()):r instanceof Yi?pn(r._def.innerType):[];class us extends X{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==$.object)return V(t,{code:C.invalid_type,expected:$.object,received:t.parsedType}),W;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:C.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),W)}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=pn(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 c of o){if(a.has(c))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(c)}`);a.set(c,s)}}return new us({typeName:J.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:a,...K(i)})}}function kl(r,e){const t=wn(r),i=wn(e);if(r===e)return{valid:!0,data:r};if(t===$.object&&i===$.object){const a=ee.objectKeys(e),s=ee.objectKeys(r).filter(c=>a.indexOf(c)!==-1),o={...r,...e};for(const c of s){const p=kl(r[c],e[c]);if(!p.valid)return{valid:!1};o[c]=p.data}return{valid:!0,data:o}}else if(t===$.array&&i===$.array){if(r.length!==e.length)return{valid:!1};const a=[];for(let s=0;s<r.length;s++){const o=r[s],c=e[s],p=kl(o,c);if(!p.valid)return{valid:!1};a.push(p.data)}return{valid:!0,data:a}}else return t===$.date&&i===$.date&&+r==+e?{valid:!0,data:r}:{valid:!1}}class ji extends X{_parse(e){const{status:t,ctx:i}=this._processInputParams(e),a=(s,o)=>{if(Ul(s)||Ul(o))return W;const c=kl(s.value,o.value);return c.valid?((xl(s)||xl(o))&&t.dirty(),{status:t.value,value:c.data}):(V(i,{code:C.invalid_intersection_types}),W)};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}))}}ji.create=(r,e,t)=>new ji({left:r,right:e,typeName:J.ZodIntersection,...K(t)});class Zt extends X{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==$.array)return V(i,{code:C.invalid_type,expected:$.array,received:i.parsedType}),W;if(i.data.length<this._def.items.length)return V(i,{code:C.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),W;!this._def.rest&&i.data.length>this._def.items.length&&(V(i,{code:C.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const s=[...i.data].map((o,c)=>{const p=this._def.items[c]||this._def.rest;return p?p._parse(new zt(i,o,i.path,c)):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 Zt({...this._def,rest:e})}}Zt.create=(r,e)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Zt({items:r,typeName:J.ZodTuple,rest:null,...K(e)})};class ki 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!==$.object)return V(i,{code:C.invalid_type,expected:$.object,received:i.parsedType}),W;const a=[],s=this._def.keyType,o=this._def.valueType;for(const c in i.data)a.push({key:s._parse(new zt(i,c,i.path,c)),value:o._parse(new zt(i,i.data[c],i.path,c)),alwaysSet:c 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 ki({keyType:e,valueType:t,typeName:J.ZodRecord,...K(i)}):new ki({keyType:jt.create(),valueType:e,typeName:J.ZodRecord,...K(t)})}}class ps 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!==$.map)return V(i,{code:C.invalid_type,expected:$.map,received:i.parsedType}),W;const a=this._def.keyType,s=this._def.valueType,o=[...i.data.entries()].map(([c,p],y)=>({key:a._parse(new zt(i,c,i.path,[y,"key"])),value:s._parse(new zt(i,p,i.path,[y,"value"]))}));if(i.common.async){const c=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 W;(y.status==="dirty"||f.status==="dirty")&&t.dirty(),c.set(y.value,f.value)}return{status:t.value,value:c}})}else{const c=new Map;for(const p of o){const y=p.key,f=p.value;if(y.status==="aborted"||f.status==="aborted")return W;(y.status==="dirty"||f.status==="dirty")&&t.dirty(),c.set(y.value,f.value)}return{status:t.value,value:c}}}}ps.create=(r,e,t)=>new ps({valueType:e,keyType:r,typeName:J.ZodMap,...K(t)});class ar extends X{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==$.set)return V(i,{code:C.invalid_type,expected:$.set,received:i.parsedType}),W;const a=this._def;a.minSize!==null&&i.data.size<a.minSize.value&&(V(i,{code:C.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:C.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 W;f.status==="dirty"&&t.dirty(),y.add(f.value)}return{status:t.value,value:y}}const c=[...i.data.values()].map((p,y)=>s._parse(new zt(i,p,i.path,y)));return i.common.async?Promise.all(c).then(p=>o(p)):o(c)}min(e,t){return new ar({...this._def,minSize:{value:e,message:U.toString(t)}})}max(e,t){return new ar({...this._def,maxSize:{value:e,message:U.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ar.create=(r,e)=>new ar({valueType:r,minSize:null,maxSize:null,typeName:J.ZodSet,...K(e)});class Hr extends X{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==$.function)return V(t,{code:C.invalid_type,expected:$.function,received:t.parsedType}),W;function i(c,p){return os({data:c,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,ss(),kr].filter(y=>!!y),issueData:{code:C.invalid_arguments,argumentsError:p}})}function a(c,p){return os({data:c,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,ss(),kr].filter(y=>!!y),issueData:{code:C.invalid_return_type,returnTypeError:p}})}const s={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof Yr){const c=this;return pt(async function(...p){const y=new gt([]),f=await c._def.args.parseAsync(p,s).catch(v=>{throw y.addIssue(i(p,v)),y}),m=await Reflect.apply(o,this,f);return await c._def.returns._def.type.parseAsync(m,s).catch(v=>{throw y.addIssue(a(m,v)),y})})}else{const c=this;return pt(function(...p){const y=c._def.args.safeParse(p,s);if(!y.success)throw new gt([i(p,y.error)]);const f=Reflect.apply(o,this,y.data),m=c._def.returns.safeParse(f,s);if(!m.success)throw new gt([a(f,m.error)]);return m.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Hr({...this._def,args:Zt.create(e).rest(ir.create())})}returns(e){return new Hr({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,i){return new Hr({args:e||Zt.create([]).rest(ir.create()),returns:t||ir.create(),typeName:J.ZodFunction,...K(i)})}}class qi 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})}}qi.create=(r,e)=>new qi({getter:r,typeName:J.ZodLazy,...K(e)});class Ji extends X{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return V(t,{received:t.data,code:C.invalid_literal,expected:this._def.value}),W}return{status:"valid",value:e.data}}get value(){return this._def.value}}Ji.create=(r,e)=>new Ji({value:r,typeName:J.ZodLiteral,...K(e)});function tE(r,e){return new Mn({values:r,typeName:J.ZodEnum,...K(e)})}class Mn extends X{constructor(){super(...arguments),Li.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),i=this._def.values;return V(t,{expected:ee.joinValues(i),received:t.parsedType,code:C.invalid_type}),W}if(ls(this,Li,"f")||ZT(this,Li,new Set(this._def.values),"f"),!ls(this,Li,"f").has(e.data)){const t=this._getOrReturnCtx(e),i=this._def.values;return V(t,{received:t.data,code:C.invalid_enum_value,options:i}),W}return pt(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 Mn.create(e,{...this._def,...t})}exclude(e,t=this._def){return Mn.create(this.options.filter(i=>!e.includes(i)),{...this._def,...t})}}Li=new WeakMap,Mn.create=tE;class Wi extends X{constructor(){super(...arguments),$i.set(this,void 0)}_parse(e){const t=ee.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==$.string&&i.parsedType!==$.number){const a=ee.objectValues(t);return V(i,{expected:ee.joinValues(a),received:i.parsedType,code:C.invalid_type}),W}if(ls(this,$i,"f")||ZT(this,$i,new Set(ee.getValidEnumValues(this._def.values)),"f"),!ls(this,$i,"f").has(e.data)){const a=ee.objectValues(t);return V(i,{received:i.data,code:C.invalid_enum_value,options:a}),W}return pt(e.data)}get enum(){return this._def.values}}$i=new WeakMap,Wi.create=(r,e)=>new Wi({values:r,typeName:J.ZodNativeEnum,...K(e)});class Yr extends X{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==$.promise&&t.common.async===!1)return V(t,{code:C.invalid_type,expected:$.promise,received:t.parsedType}),W;const i=t.parsedType===$.promise?t.data:Promise.resolve(t.data);return pt(i.then(a=>this._def.type.parseAsync(a,{path:t.path,errorMap:t.common.contextualErrorMap})))}}Yr.create=(r,e)=>new Yr({type:r,typeName:J.ZodPromise,...K(e)});class qt extends X{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===J.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 c=>{if(t.value==="aborted")return W;const p=await this._def.schema._parseAsync({data:c,path:i.path,parent:i});return p.status==="aborted"?W:p.status==="dirty"||t.value==="dirty"?qr(p.value):p});{if(t.value==="aborted")return W;const c=this._def.schema._parseSync({data:o,path:i.path,parent:i});return c.status==="aborted"?W:c.status==="dirty"||t.value==="dirty"?qr(c.value):c}}if(a.type==="refinement"){const o=c=>{const p=a.refinement(c,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 c};if(i.common.async===!1){const c=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return c.status==="aborted"?W:(c.status==="dirty"&&t.dirty(),o(c.value),{status:t.value,value:c.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(c=>c.status==="aborted"?W:(c.status==="dirty"&&t.dirty(),o(c.value).then(()=>({status:t.value,value:c.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(!Mi(o))return o;const c=a.transform(o.value,s);if(c instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:c}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(o=>Mi(o)?Promise.resolve(a.transform(o.value,s)).then(c=>({status:t.value,value:c})):o);ee.assertNever(a)}}qt.create=(r,e,t)=>new qt({schema:r,typeName:J.ZodEffects,effect:e,...K(t)}),qt.createWithPreprocess=(r,e,t)=>new qt({schema:e,effect:{type:"preprocess",transform:r},typeName:J.ZodEffects,...K(t)});class Kt extends X{_parse(e){return this._getType(e)===$.undefined?pt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Kt.create=(r,e)=>new Kt({innerType:r,typeName:J.ZodOptional,...K(e)});class Vn extends X{_parse(e){return this._getType(e)===$.null?pt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Vn.create=(r,e)=>new Vn({innerType:r,typeName:J.ZodNullable,...K(e)});class Hi extends X{_parse(e){const{ctx:t}=this._processInputParams(e);let i=t.data;return t.parsedType===$.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Hi.create=(r,e)=>new Hi({innerType:r,typeName:J.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...K(e)});class Yi 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 Vi(a)?a.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new gt(i.common.issues)},input:i.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new gt(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}Yi.create=(r,e)=>new Yi({innerType:r,typeName:J.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...K(e)});class ys extends X{_parse(e){if(this._getType(e)!==$.nan){const i=this._getOrReturnCtx(e);return V(i,{code:C.invalid_type,expected:$.nan,received:i.parsedType}),W}return{status:"valid",value:e.data}}}ys.create=r=>new ys({typeName:J.ZodNaN,...K(r)});const kP=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 zi 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"?W:s.status==="dirty"?(t.dirty(),qr(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"?W: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 zi({in:e,out:t,typeName:J.ZodPipeline})}}class Zi extends X{_parse(e){const t=this._def.innerType._parse(e),i=a=>(Mi(a)&&(a.value=Object.freeze(a.value)),a);return Vi(t)?t.then(a=>i(a)):i(t)}unwrap(){return this._def.innerType}}Zi.create=(r,e)=>new Zi({innerType:r,typeName:J.ZodReadonly,...K(e)});function nE(r,e={},t){return r?Jr.create().superRefine((i,a)=>{var s,o;if(!r(i)){const c=typeof e=="function"?e(i):typeof e=="string"?{message:e}:e,p=(o=(s=c.fatal)!==null&&s!==void 0?s:t)!==null&&o!==void 0?o:!0,y=typeof c=="string"?{message:c}:c;a.addIssue({code:"custom",...y,fatal:p})}}):Jr.create()}const qP={object:xe.lazycreate};var J;(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"})(J||(J={}));const JP=(r,e={message:`Input not instance of ${r.name}`})=>nE(t=>t instanceof r,e),hs=jt.create,Jl=_n.create,WP=ys.create,HP=Nn.create,Wl=Gi.create,rE=rr.create,YP=cs.create,zP=Fi.create,iE=Ui.create,ZP=Jr.create,fs=ir.create,KP=un.create,XP=ds.create,QP=kt.create,aE=xe.create,eA=xe.strictCreate,tA=xi.create,nA=us.create,rA=ji.create,iA=Zt.create,sE=ki.create,aA=ps.create,sA=ar.create,oA=Hr.create,lA=qi.create,cA=Ji.create,oE=Mn.create,dA=Wi.create,uA=Yr.create,lE=qt.create,pA=Kt.create,yA=Vn.create,hA=qt.createWithPreprocess,fA=zi.create;var d=Object.freeze({__proto__:null,defaultErrorMap:kr,setErrorMap:AP,getErrorMap:ss,makeIssue:os,EMPTY_PATH:OP,addIssueToContext:V,ParseStatus:nt,INVALID:W,DIRTY:qr,OK:pt,isAborted:Ul,isDirty:xl,isValid:Mi,isAsync:Vi,get util(){return ee},get objectUtil(){return Fl},ZodParsedType:$,getParsedType:wn,ZodType:X,datetimeRegex:eE,ZodString:jt,ZodNumber:_n,ZodBigInt:Nn,ZodBoolean:Gi,ZodDate:rr,ZodSymbol:cs,ZodUndefined:Fi,ZodNull:Ui,ZodAny:Jr,ZodUnknown:ir,ZodNever:un,ZodVoid:ds,ZodArray:kt,ZodObject:xe,ZodUnion:xi,ZodDiscriminatedUnion:us,ZodIntersection:ji,ZodTuple:Zt,ZodRecord:ki,ZodMap:ps,ZodSet:ar,ZodFunction:Hr,ZodLazy:qi,ZodLiteral:Ji,ZodEnum:Mn,ZodNativeEnum:Wi,ZodPromise:Yr,ZodEffects:qt,ZodTransformer:qt,ZodOptional:Kt,ZodNullable:Vn,ZodDefault:Hi,ZodCatch:Yi,ZodNaN:ys,BRAND:kP,ZodBranded:ql,ZodPipeline:zi,ZodReadonly:Zi,custom:nE,Schema:X,ZodSchema:X,late:qP,get ZodFirstPartyTypeKind(){return J},coerce:{string:r=>jt.create({...r,coerce:!0}),number:r=>_n.create({...r,coerce:!0}),boolean:r=>Gi.create({...r,coerce:!0}),bigint:r=>Nn.create({...r,coerce:!0}),date:r=>rr.create({...r,coerce:!0})},any:ZP,array:QP,bigint:HP,boolean:Wl,date:rE,discriminatedUnion:nA,effect:lE,enum:oE,function:oA,instanceof:JP,intersection:rA,lazy:lA,literal:cA,map:aA,nan:WP,nativeEnum:dA,never:KP,null:iE,nullable:yA,number:Jl,object:aE,oboolean:()=>Wl().optional(),onumber:()=>Jl().optional(),optional:pA,ostring:()=>hs().optional(),pipeline:fA,preprocess:hA,promise:uA,record:sE,set:sA,strictObject:eA,string:hs,symbol:YP,transformer:lE,tuple:iA,undefined:zP,union:tA,unknown:fs,void:XP,NEVER:W,ZodIssueCode:C,quotelessJson:PP,ZodError:gt});function cE(r){var a,s,o;if(!(r!=null&&r.dataType))return fs();const e=r.dataType.isNullable||!1,t=r.dataType.isList||!1;let i=fs();if(((a=r.dataType.entity)==null?void 0:a.type)===n.PrimitiveEntity)switch(r.dataType.entity.name){case I.String:i=hs();break;case I.JSON:i=sE(fs());break;case I.Number:i=Jl();break;case I.Boolean:i=Wl();break;case I.Date:i=rE();break;case I.Enum:{const c=r.dataType.options||[];if(c.length===0)throw new Error(`Enum property ${r.name} has no options`);i=oE(c);break}case I.Null:i=iE();break;case I.UUID:i=hs().uuid();break}else if(((s=r.dataType.entity)==null?void 0:s.type)===n.CustomEntity)i=dE(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 dE(r){const e=aE({});for(const t of r.properties){const i=cE(t);e.shape[t.name]=i}return e}function uE(r){const e=r.rangeStart;return new Date(e.getTime()+Math.random()*(Date.now()-e.getTime()))}function pE(r){const e=r.rangeEnd;return new Date(Math.random()*e.getTime())}function yE(r){const e=r.rangeStart,t=r.rangeEnd;return new Date(e.getTime()+Math.random()*(t.getTime()-e.getTime()))}function hE(r){return r.rangeStart&&r.rangeEnd?yE(r):r.rangeStart?uE(r):r.rangeEnd?pE(r):new Date}function mA(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var fE={},ms={},Ts={};Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.default=EA;let Es;const TA=new Uint8Array(16);function EA(){if(!Es&&(Es=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Es))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Es(TA)}var Ln={},sr={},bs={};Object.defineProperty(bs,"__esModule",{value:!0}),bs.default=void 0;var bA=/^(?:[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;bs.default=bA,Object.defineProperty(sr,"__esModule",{value:!0}),sr.default=void 0;var RA=gA(bs);function gA(r){return r&&r.__esModule?r:{default:r}}function vA(r){return typeof r=="string"&&RA.default.test(r)}var IA=vA;sr.default=IA,Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.default=void 0,Ln.unsafeStringify=mE;var DA=PA(sr);function PA(r){return r&&r.__esModule?r:{default:r}}const et=[];for(let r=0;r<256;++r)et.push((r+256).toString(16).slice(1));function mE(r,e=0){return et[r[e+0]]+et[r[e+1]]+et[r[e+2]]+et[r[e+3]]+"-"+et[r[e+4]]+et[r[e+5]]+"-"+et[r[e+6]]+et[r[e+7]]+"-"+et[r[e+8]]+et[r[e+9]]+"-"+et[r[e+10]]+et[r[e+11]]+et[r[e+12]]+et[r[e+13]]+et[r[e+14]]+et[r[e+15]]}function AA(r,e=0){const t=mE(r,e);if(!(0,DA.default)(t))throw TypeError("Stringified UUID is invalid");return t}var OA=AA;Ln.default=OA,Object.defineProperty(ms,"__esModule",{value:!0}),ms.default=void 0;var SA=BA(Ts),CA=Ln;function BA(r){return r&&r.__esModule?r:{default:r}}let TE,Hl,Yl=0,zl=0;function wA(r,e,t){let i=e&&t||0;const a=e||new Array(16);r=r||{};let s=r.node||TE,o=r.clockseq!==void 0?r.clockseq:Hl;if(s==null||o==null){const b=r.random||(r.rng||SA.default)();s==null&&(s=TE=[b[0]|1,b[1],b[2],b[3],b[4],b[5]]),o==null&&(o=Hl=(b[6]<<8|b[7])&16383)}let c=r.msecs!==void 0?r.msecs:Date.now(),p=r.nsecs!==void 0?r.nsecs:zl+1;const y=c-Yl+(p-zl)/1e4;if(y<0&&r.clockseq===void 0&&(o=o+1&16383),(y<0||c>Yl)&&r.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Yl=c,zl=p,Hl=o,c+=122192928e5;const f=((c&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=c/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,CA.unsafeStringify)(a)}var _A=wA;ms.default=_A;var Rs={},$n={},Ki={};Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.default=void 0;var NA=MA(sr);function MA(r){return r&&r.__esModule?r:{default:r}}function VA(r){if(!(0,NA.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 LA=VA;Ki.default=LA,Object.defineProperty($n,"__esModule",{value:!0}),$n.URL=$n.DNS=void 0,$n.default=xA;var $A=Ln,GA=FA(Ki);function FA(r){return r&&r.__esModule?r:{default:r}}function UA(r){r=unescape(encodeURIComponent(r));const e=[];for(let t=0;t<r.length;++t)e.push(r.charCodeAt(t));return e}const EE="6ba7b810-9dad-11d1-80b4-00c04fd430c8";$n.DNS=EE;const bE="6ba7b811-9dad-11d1-80b4-00c04fd430c8";$n.URL=bE;function xA(r,e,t){function i(a,s,o,c){var p;if(typeof a=="string"&&(a=UA(a)),typeof s=="string"&&(s=(0,GA.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){c=c||0;for(let f=0;f<16;++f)o[c+f]=y[f];return o}return(0,$A.unsafeStringify)(y)}try{i.name=r}catch{}return i.DNS=EE,i.URL=bE,i}var gs={};Object.defineProperty(gs,"__esModule",{value:!0}),gs.default=void 0;function jA(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 kA(qA(JA(r),r.length*8))}function kA(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 RE(r){return(r+64>>>9<<4)+14+1}function qA(r,e){r[e>>5]|=128<<e%32,r[RE(e)-1]=e;let t=1732584193,i=-271733879,a=-1732584194,s=271733878;for(let o=0;o<r.length;o+=16){const c=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=Gn(t,c),i=Gn(i,p),a=Gn(a,y),s=Gn(s,f)}return[t,i,a,s]}function JA(r){if(r.length===0)return[];const e=r.length*8,t=new Uint32Array(RE(e));for(let i=0;i<e;i+=8)t[i>>5]|=(r[i/8]&255)<<i%32;return t}function Gn(r,e){const t=(r&65535)+(e&65535);return(r>>16)+(e>>16)+(t>>16)<<16|t&65535}function WA(r,e){return r<<e|r>>>32-e}function vs(r,e,t,i,a,s){return Gn(WA(Gn(Gn(e,r),Gn(i,s)),a),t)}function rt(r,e,t,i,a,s,o){return vs(e&t|~e&i,r,e,a,s,o)}function it(r,e,t,i,a,s,o){return vs(e&i|t&~i,r,e,a,s,o)}function at(r,e,t,i,a,s,o){return vs(e^t^i,r,e,a,s,o)}function st(r,e,t,i,a,s,o){return vs(t^(e|~i),r,e,a,s,o)}var HA=jA;gs.default=HA,Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.default=void 0;var YA=gE($n),zA=gE(gs);function gE(r){return r&&r.__esModule?r:{default:r}}var ZA=(0,YA.default)("v3",48,zA.default);Rs.default=ZA;var Is={},Ds={};Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.default=void 0;var KA={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};Ds.default=KA,Object.defineProperty(Is,"__esModule",{value:!0}),Is.default=void 0;var vE=IE(Ds),XA=IE(Ts),QA=Ln;function IE(r){return r&&r.__esModule?r:{default:r}}function eO(r,e,t){if(vE.default.randomUUID&&!e&&!r)return vE.default.randomUUID();r=r||{};const i=r.random||(r.rng||XA.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,QA.unsafeStringify)(i)}var tO=eO;Is.default=tO;var Ps={},As={};Object.defineProperty(As,"__esModule",{value:!0}),As.default=void 0;function nO(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 Zl(r,e){return r<<e|r>>>32-e}function rO(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 c=0;c<o.length;++c)r.push(o.charCodeAt(c))}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 c=new Uint32Array(16);for(let p=0;p<16;++p)c[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]=c}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 c=new Uint32Array(80);for(let v=0;v<16;++v)c[v]=s[o][v];for(let v=16;v<80;++v)c[v]=Zl(c[v-3]^c[v-8]^c[v-14]^c[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=Zl(p,5)+nO(P,y,f,m)+b+e[P]+c[v]>>>0;b=m,m=f,f=Zl(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 iO=rO;As.default=iO,Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.default=void 0;var aO=DE($n),sO=DE(As);function DE(r){return r&&r.__esModule?r:{default:r}}var oO=(0,aO.default)("v5",80,sO.default);Ps.default=oO;var Os={};Object.defineProperty(Os,"__esModule",{value:!0}),Os.default=void 0;var lO="00000000-0000-0000-0000-000000000000";Os.default=lO;var Ss={};Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.default=void 0;var cO=dO(sr);function dO(r){return r&&r.__esModule?r:{default:r}}function uO(r){if(!(0,cO.default)(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}var pO=uO;Ss.default=pO,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 c.default}}),Object.defineProperty(r,"version",{enumerable:!0,get:function(){return o.default}});var e=f(ms),t=f(Rs),i=f(Is),a=f(Ps),s=f(Os),o=f(Ss),c=f(sr),p=f(Ln),y=f(Ki);function f(m){return m&&m.__esModule?m:{default:m}}}(fE);function Kl(r,e){if(!r||!e||!r.length||!e.length)throw new Error("Bad alphabet");this.srcAlphabet=r,this.dstAlphabet=e}Kl.prototype.convert=function(r){var e,t,i,a={},s=this.srcAlphabet.length,o=this.dstAlphabet.length,c=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<c;e++)a[e]=this.srcAlphabet.indexOf(r[e]);do{for(t=0,i=0,e=0;e<c;e++)t=t*s+a[e],t>=o?(a[i++]=parseInt(t/o,10),t=t%o):i>0&&(a[i++]=0);c=i,p=this.dstAlphabet.slice(t,t+1).concat(p)}while(i!==0);return p},Kl.prototype.isValid=function(r){for(var e=0;e<r.length;++e)if(this.srcAlphabet.indexOf(r[e])===-1)return!1;return!0};var yO=Kl,hO=yO;function Xi(r,e){var t=new hO(r,e);return function(i){return t.convert(i)}}Xi.BIN="01",Xi.OCT="01234567",Xi.DEC="0123456789",Xi.HEX="0123456789abcdef";var fO=Xi;const{v4:Xl,validate:mO}=fE,Cs=fO,Ql={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},TO={consistentLength:!0};let ec;const PE=(r,e,t)=>{const i=e(r.toLowerCase().replace(/-/g,""));return!t||!t.consistentLength?i:i.padStart(t.shortIdLength,t.paddingChar)},AE=(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("-")},EO=r=>Math.ceil(Math.log(2**128)/Math.log(r));var bO=(()=>{const r=(e,t)=>{const i=e||Ql.flickrBase58,a={...TO,...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=EO(i.length),o={shortIdLength:s,consistentLength:a.consistentLength,paddingChar:i[0]},c=Cs(Cs.HEX,i),p=Cs(i,Cs.HEX),y=()=>PE(Xl(),c,o),m={alphabet:i,fromUUID:b=>PE(b,c,o),maxLength:s,generate:y,new:y,toUUID:b=>AE(b,p),uuid:Xl,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(A=>i.includes(A));return v===!1?P&&O:P&&O&&mO(AE(b,p))}};return Object.freeze(m),m};return r.constants=Ql,r.uuid=Xl,r.generate=()=>(ec||(ec=r(Ql.flickrBase58).generate),ec()),r})();const Bs=mA(bO);function OE(){return Bs().uuid()}function SE(r){return r.rangeStart+Math.random()}function CE(r){const e=r.rangeEnd;return Math.random()*e}function BE(r){const e=r.rangeStart,t=r.rangeEnd;return Math.random()*(t-e)+e}function wE(r){return r.rangeStart&&r.rangeEnd?BE(r):r.rangeStart?SE(r):r.rangeEnd?CE(r):Math.random()}function _E(r){const e=r.rangeStart;return Math.random().toString(36).substring(e)}function NE(r){const e=r.rangeEnd;return Math.random().toString(36).substring(0,e)}function ME(r){const e=r.rangeStart,t=r.rangeEnd;return Math.random().toString(36).substring(e,t)}function VE(r){return r.rangeStart&&r.rangeEnd?ME(r):r.rangeStart?_E(r):r.rangeEnd?NE(r):Math.random().toString(36)}function LE(r){return Math.random()>=.5}function RO(r){if(!r||!r.autogeneration)return null;switch(r.autogeneration.type){case qe.CurrentDateAndTime:if(r.name===I.Date)return new Date;case qe.Random:{if(r.name===I.Date)return hE(r.autogeneration);if(r.name===I.Number)return wE(r.autogeneration);if(r.name===I.String)return VE(r.autogeneration);if(r.name===I.Boolean)return LE(r.autogeneration)}case qe.Unique:if(r.name===I.UUID)return OE();default:throw new Error(`Generating a ${r.autogeneration.type} value for a ${r.name} is not supported`)}}const z="e7eb5382-3d99-44fd-972a-b8b1e819f6be",tc="global-user-variable-id",$E="last-executed-timestamp-variable-id",gO={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},vO={id:"alternative-relational-database-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",entityType:n.Property},IO={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:x,asType:!1,defaultValue:{id:"alternative-relational-database-entity-identifier-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:I.String,value:null,parent:gO,autogeneration:{type:qe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:vO},ws={id:"alternative-relational-database-entity-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},DO={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:ts,static:!0,index:0,dataType:IO,description:"The name of the main database inside of the server instance where the data will be stored.",parent:ws};n.GenericReference,n.DataType;const PO={id:"alternative-relational-database-entity-username-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-username-property-id",entityType:n.Property},AO={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:x,asType:!1,defaultValue:null,parent:PO},OO={hidden:!1,required:!0,id:"alternative-relational-database-entity-username-property-id",name:"Username",version:1,type:n.Property,private:!1,abstract:!1,implements:ns,static:!0,index:1,dataType:AO,description:"The username that will be used to connect to the database.",parent:ws};n.GenericReference,n.DataType;const SO={id:"alternative-relational-database-entity-password-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-password-property-id",entityType:n.Property},CO={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:x,asType:!1,defaultValue:null,parent:SO},BO={hidden:!1,required:!0,id:"alternative-relational-database-entity-password-property-id",name:"Password",version:1,type:n.Property,private:!1,abstract:!1,implements:rs,static:!0,index:2,dataType:CO,description:"The password that will be used to connect to the database.",parent:ws},wO={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},_O={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},NO={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:te,asType:!1,defaultValue:{id:"alternative-relational-database-entity-min-size-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:I.Number,value:6,parent:wO,autogeneration:null,valueAsType:null},parent:_O},MO={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:is,static:!0,index:3,dataType:NO,description:"The minimum size of the database in GB.",parent:ws},VO={id:"alternative-relational-database-entity-parent-ref-id",type:n.GenericReference,entityId:z,entityType:n.Project},GE={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:[DO,OO,BO,MO],methods:[],abstractMethods:[],extends:[],implements:[Bn],x:0,y:0,parent:VO},LO={id:"animal-prototype-database-property-ref-id",type:n.GenericReference,entityId:"animal-prototype-database-property-id",entityType:n.Property},$O={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},GO={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:Bn,asType:!1,defaultValue:{id:"animal-prototype-database-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,value:null,name:I.EntityTemplate,valueAsType:GE,autogeneration:null,parent:$O},parent:LO},FO={id:"animal-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:n.CustomEntity},UO={hidden:!1,required:!0,id:"animal-prototype-database-property-id",name:"Database",version:1,type:n.Property,private:!1,abstract:!1,implements:Ni,static:!0,index:0,dataType:GO,description:"The database that the entity belongs to.",parent:FO},xO={type:n.GenericReference,id:"291e4d4f-01d8-40a0-90dc-5f1ac6636e9b",entityType:n.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},jO={like:!1,inferred:!1,id:"c1930577-9e79-48a6-8905-be24611015c1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:xO},kO={type:n.GenericReference,id:"e2b9e456-f2b3-4dc7-85a2-fbb68ed0c9c7",entityType:n.CustomEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},qO={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:jO,abstract:!1,parent:kO},JO={type:n.GenericReference,id:"abc565de-4c83-4936-bc48-4013bef213b8",entityType:n.Project,entityId:z},WO={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:[UO,qO],methods:[],extends:[],implements:[Fe],x:0,y:0,parent:JO},HO={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},YO={id:"default-relational-database-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",entityType:n.Property},zO={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:x,asType:!1,defaultValue:{id:"default-relational-database-entity-identifier-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:I.String,value:"main",parent:HO,autogeneration:{type:qe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:YO},zr={id:"default-relational-database-entity-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},ZO={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:ts,static:!0,index:0,dataType:zO,description:"The name of the main database inside of the server instance where the data will be stored.",parent:zr};n.GenericReference,n.DataType;const KO={id:"default-relational-database-entity-username-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-username-property-id",entityType:n.Property},XO={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},QO={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:x,asType:!1,defaultValue:{id:"default-relational-database-entity-username-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:I.String,value:"root",parent:XO,autogeneration:null,valueAsType:null},parent:KO},eS={hidden:!1,required:!0,id:"default-relational-database-entity-username-property-id",name:"Username",version:1,type:n.Property,private:!1,abstract:!1,implements:ns,static:!0,index:1,dataType:QO,description:"The username that will be used to connect to the database.",parent:zr};n.GenericReference,n.DataType;const tS={id:"default-relational-database-entity-password-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-password-property-id",entityType:n.Property},nS={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},rS={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:x,asType:!1,defaultValue:{id:"default-relational-database-entity-password-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:I.String,value:"password",parent:nS,autogeneration:null,valueAsType:null},parent:tS},iS={hidden:!1,required:!0,id:"default-relational-database-entity-password-property-id",name:"Password",version:1,type:n.Property,private:!1,abstract:!1,implements:rs,static:!0,index:2,dataType:rS,description:"The password that will be used to connect to the database.",parent:zr},aS={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},sS={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},oS={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:te,asType:!1,defaultValue:{id:"default-relational-database-entity-min-size-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:I.Number,value:6,parent:aS,autogeneration:null,valueAsType:null},parent:sS},lS={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:is,static:!0,index:3,dataType:oS,description:"The minimum size of the database in GB.",parent:zr},cS={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},dS={id:"default-relational-database-entity-default-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-default-property-id",entityType:n.Property},uS={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:te,asType:!1,defaultValue:{id:"default-relational-database-entity-default-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:I.Boolean,value:!0,parent:cS,autogeneration:null,valueAsType:null},parent:dS},pS={hidden:!0,required:!0,id:"default-relational-database-entity-default-property-id",name:"Default",version:1,type:n.Property,private:!1,abstract:!1,implements:Bl,static:!0,index:4,dataType:uS,description:"Whether this database is automatically picked by other entities as the default database.",parent:zr},yS={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},hS={id:"default-relational-database-entity-autoscaling-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",entityType:n.Property},fS={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:te,asType:!1,defaultValue:{id:"default-relational-database-entity-autoscaling-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:I.Boolean,value:!0,parent:yS,autogeneration:null,valueAsType:null},parent:hS},mS={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:wl,static:!0,index:5,dataType:fS,description:"If true, this database will automatically scale up or down in memory size, based on the usage.s",parent:zr},TS={id:"default-relational-database-entity-parent-ref-id",type:n.GenericReference,entityId:z,entityType:n.Project},nc={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:[pS,mS,ZO,eS,iS,lS],methods:[],abstractMethods:[],extends:[],implements:[Bn],x:0,y:0,parent:TS},ES={id:"user-prototype-database-property-data-type-ref-id",type:n.GenericReference,entityId:"user-prototype-database-property-data-type-id",entityType:n.DataType},bS={id:"user-prototype-database-property-ref-id",type:n.GenericReference,entityId:"user-prototype-database-property-id",entityType:n.Property},RS={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:Bn,asType:!1,defaultValue:{id:"user-prototype-database-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,value:null,name:I.EntityTemplate,valueAsType:nc,autogeneration:null,parent:ES},parent:bS},gS={id:"user-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:n.CustomEntity},vS={hidden:!1,required:!0,id:"user-prototype-database-property-id",name:"Database",version:1,type:n.Property,private:!1,abstract:!1,implements:Ni,static:!0,index:0,dataType:RS,description:"The database that the entity belongs to.",parent:gS},IS={type:n.GenericReference,id:"user-prototype-parent-ref-id",entityType:n.Project,entityId:z},rc={type:n.CustomEntity,id:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:1,name:"User",description:"A user of the application",implements:[Fe],abstract:!1,static:!1,abstractMethods:[],extends:[],properties:[vS],methods:[],x:0,y:0,parent:IS},DS={type:n.GenericReference,id:"person-date-of-birth-property-data-type-parent-ref-id",entityType:n.Property,entityId:"person-date-of-birth-property-id"},PS={like:!1,inferred:!1,id:"person-date-of-birth-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:cn,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:DS},AS={type:n.GenericReference,id:"person-date-of-birth-property-parent-ref-id",entityType:n.CustomEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},OS={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:PS,abstract:!1,parent:AS},SS={type:n.GenericReference,id:"a2867827-2f8e-4c25-b18b-d91857d7f24e",entityType:n.Property,entityId:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7"},CS={like:!1,inferred:!1,id:"1d49f41b-17b9-4f48-87aa-3ce43498e5a9",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:SS},BS={type:n.GenericReference,id:"01cbe760-40a9-4f49-8e3d-194d2f57cb1e",entityType:n.CustomEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},wS={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:CS,abstract:!1,parent:BS},_S={type:n.GenericReference,id:"3542b22a-3a2f-41c6-876e-24c885572498",entityType:n.Project,entityId:z},yt={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:[wS,OS],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[rc],x:0,y:0,parent:_S},NS={type:n.GenericReference,id:"b59c80b7-b2e9-41e9-abcd-7c5652835efc",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},MS={type:n.GenericReference,id:"1190b5a2-f25e-46db-884d-8a3dd1a44d94",entityType:n.ReturnStatement,entityId:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e"},VS={type:n.GenericReference,id:"36c63126-7814-496f-a6cc-48662c2aabae",entityType:n.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},LS={type:n.GenericReference,id:"c567e55d-ec12-4e4e-958e-f07522892b4b",entityType:n.ReturnDeclaration,entityId:"9e070523-7e07-4100-8637-960a187f5f14"},$S={like:!1,inferred:!1,id:"3973c5a1-f0d8-49a0-a9a9-a0009bf3f0d8",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:yt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:LS},ic={isError:!1,id:"9e070523-7e07-4100-8637-960a187f5f14",type:n.ReturnDeclaration,version:1,name:"Output Account Owner",description:null,dataType:$S,implements:null,readsValue:VS,required:!0,index:0,parent:MS},GS={type:n.GenericReference,id:"567d923c-20da-4c1e-956d-962ea30c6d0b",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},FS={type:n.GenericReference,id:"da85e620-59f3-42ab-88c8-b38d33c2c833",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},FE={type:n.ReturnStatement,id:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e",version:1,outputs:[ic],calledByError:[],calledByEntry:[GS],calledBySuccess:[],throws:null,x:0,y:0,parent:FS},US={type:n.GenericReference,id:"1c806bb7-4c25-4bad-963b-93dfbb7c8304",entityType:n.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},xS={like:!1,inferred:!1,id:"d90fcc18-642b-433c-8fcb-4094b9031cd5",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:yt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:US},UE={id:"500dee3a-3435-4453-9699-0d053f646523",type:n.ArgumentDeclaration,version:1,name:"New Account Owner",description:null,dataType:xS,implements:null,required:!0,writesValues:[ic],index:0,parent:NS},jS={type:n.GenericReference,id:"83dceb60-f3c4-4085-824c-85f2003bfd27",entityType:n.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},xE={type:n.FunctionDeclaration,id:"36f29f96-c001-4b9a-b49c-83eff406a060",version:1,name:"Change owner of bank account",description:null,implements:null,inputs:[UE],calls:[FE],returnStatements:[FE],index:0,collapsed:!1,private:!1,x:0,y:0,parent:jS},kS={type:n.GenericReference,id:"adbaf302-ffa9-49b6-a3c6-83f9a75068e3",entityType:n.VariableDeclaration,entityId:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b"},qS={like:!1,inferred:!1,id:"79ee04aa-1ba4-4ae9-a406-ed45e5b03f7f",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:yt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:kS},JS={type:n.GenericReference,id:"55e212d1-f0ec-4bb6-acbe-60f741367daf",entityType:n.OutputMap,entityId:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4"},WS={type:n.GenericReference,id:"944e1171-3d9b-4559-9386-1d4974b15962",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},HS={id:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b",type:n.VariableDeclaration,version:1,name:"Output Account Owner",description:null,dataType:qS,readsValue:JS,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:WS},YS={type:n.GenericReference,id:"b89ebc83-52cf-4447-a5ae-62241f713079",entityType:n.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},zS={id:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4",type:n.OutputMap,version:1,declaration:ic,writesValues:[HS],index:0,parent:YS},ZS={type:n.GenericReference,id:"c1b9e125-1aad-48b7-9687-95c57a6bc10d",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},KS={type:n.GenericReference,id:"d2deaa02-e164-4425-905c-6dee47eb4eac",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},XS={type:n.GenericReference,id:"1109a655-ac62-4110-a933-42a72106f4f0",entityType:n.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},QS={like:!1,inferred:!1,id:"7d9a1307-512e-42ec-9797-2f7229796b97",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:yt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:XS},eC={type:n.GenericReference,id:"bb61ebf7-57b3-4d14-905d-82ec907205b5",entityType:n.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},tC={type:n.GenericReference,id:"6b8c7bf2-9fc8-4ea4-9ec0-f41679d513b1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},nC={type:n.GenericReference,id:"6163d1a1-7a94-49b1-95bb-aecd8d6d335c",entityType:n.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},rC={type:n.GenericReference,id:"1f900f62-4bd2-4246-94aa-b8f5aad384fd",entityType:n.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},jE={id:"be8538be-e6f9-4b94-9314-a546003ebaa0",type:n.InputMap,version:1,declaration:UE,name:null,description:null,readsValue:rC,defaultValue:null,index:0,parent:nC},iC={type:n.VariableDeclaration,id:"8bea6986-8da2-487b-905d-2fb962db6728",version:1,name:"Changed Account Owner",description:null,dataType:QS,readsValue:eC,writesValues:[jE],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:tC},aC={type:n.FunctionCall,id:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e",version:1,declaration:xE,inputs:[jE],outputs:[zS],process:null,successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[ZS],calledBySuccess:[],parent:KS,error:null,x:0,y:0},sC={type:n.GenericReference,id:"2d47aba1-a918-46a7-8db7-78809928654a",entityType:n.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},oC={like:!1,inferred:!1,id:"5583766c-e9a5-484c-8f43-f4b0a6a1876c",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:yt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:sC},lC={type:n.GenericReference,id:"3e2a81e4-55b2-49f5-94eb-39135e95c3d7",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},cC={id:"38f6b236-98ac-47b0-ab9c-d2f9610137b9",type:n.ArgumentDeclaration,version:1,description:null,name:"New Company Owner",dataType:oC,implements:null,required:!0,index:0,writesValues:[iC],parent:lC},dC={type:n.GenericReference,id:"30291b01-1b94-4d03-b434-dec122c2bc7d",entityType:n.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},uC={type:n.FunctionDeclaration,id:"15ee556d-681f-47de-a31f-16d4ba73cc4e",version:1,description:null,name:"Change Account Owner",inputs:[cC],collapsed:!0,returnStatements:[],calls:[aC],private:!1,index:0,implements:null,x:0,y:0,parent:dC},pC={type:n.GenericReference,id:"72c7ac0a-886e-4e10-b7ed-2f5a819a0233",entityType:n.Property,entityId:"b8f4656a-2b77-43ab-af51-7c32ddede044"},yC={like:!1,inferred:!1,id:"c09dd282-73f6-4077-a467-b66db20b9fc6",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:pC},hC={type:n.GenericReference,id:"8a950024-512c-4580-81db-a705410aeb99",entityType:n.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},fC={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:yC,abstract:!1,parent:hC},mC={type:n.GenericReference,id:"b6704b6c-c3bd-49d0-8ebc-82d03e726cbb",entityType:n.Property,entityId:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea"},TC={like:!1,inferred:!1,id:"c03e0b0a-88ab-401a-8833-4806738bdc37",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:yt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:mC},EC={type:n.GenericReference,id:"1ef999a7-e9ed-406a-866e-e58277fc985b",entityType:n.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},bC={hidden:!1,required:!0,type:n.Property,id:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea",version:1,description:null,name:"Account Owner",index:1,dataType:TC,implements:null,static:!1,private:!0,abstract:!1,parent:EC},RC={type:n.GenericReference,id:"d41d7f41-98b8-4f67-be92-c349fdda5156",entityType:n.Project,entityId:z},Zr={type:n.CustomEntity,id:"506946aa-30da-48e6-918f-ffd9eac58813",version:1,name:"Bank Account",description:null,abstract:!1,static:!1,abstractMethods:[],properties:[fC,bC],methods:[xE,uC],extends:[],implements:[Fe],x:0,y:0,parent:RC},Qi="bitcoin-api-response-id",kE="time-property-id",qE="disclamer-property-id",JE="chart-name-property-id",WE="bpi-property-id",_s="bpi-entity-id",HE="usd-property-id",YE="gbp-property-id",zE="eur-property-id",Kr="currency-entity-id",ZE="currency-code-property-id",KE="currency-symbol-property-id",XE="currency-rate-property-id",QE="currency-description-property-id",eb="currency-rate-number-property-id",gC={type:n.GenericReference,id:"code-property-data-type-parent-ref-id",entityType:n.Property,entityId:ZE},vC={like:!1,inferred:!1,id:"code-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Cn,isList:!1,asType:!1,isNullable:!1,defaultValue:null,options:["USD","GBP","EUR"],constant:!1,parent:gC},IC={type:n.GenericReference,id:"code-property-parent-ref-id",entityType:n.CustomEntity,entityId:Kr},DC={hidden:!1,required:!0,type:n.Property,id:ZE,version:1,name:"code",description:null,dataType:vC,index:0,implements:null,static:!1,private:!1,abstract:!1,parent:IC},PC={type:n.GenericReference,id:"symbol-property-data-type-parent-ref-id",entityType:n.Property,entityId:KE},AC={like:!1,inferred:!1,id:"symbol-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Cn,isList:!1,asType:!1,isNullable:!1,defaultValue:null,options:["&#36;","&pound;","&euro;"],constant:!1,parent:PC},OC={type:n.GenericReference,id:"symbol-property-parent-ref-id",entityType:n.CustomEntity,entityId:Kr},SC={hidden:!1,required:!0,type:n.Property,id:KE,version:1,name:"symbol",description:null,index:0,dataType:AC,implements:null,static:!1,private:!1,abstract:!1,parent:OC},CC={type:n.GenericReference,id:"rate-property-data-type-parent-ref-id",entityType:n.Property,entityId:XE},BC={like:!1,inferred:!1,id:"rate-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:CC},wC={type:n.GenericReference,id:"rate-property-parent-ref-id",entityType:n.CustomEntity,entityId:Kr},_C={hidden:!1,required:!0,type:n.Property,id:XE,version:1,name:"rate",description:null,index:0,dataType:BC,implements:null,static:!1,private:!1,abstract:!1,parent:wC},NC={type:n.GenericReference,id:"description-property-data-type-parent-ref-id",entityType:n.Property,entityId:QE},MC={like:!1,inferred:!1,id:"description-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:NC},VC={type:n.GenericReference,id:"description-property-parent-ref-id",entityType:n.CustomEntity,entityId:Kr},LC={hidden:!1,required:!0,type:n.Property,id:QE,version:1,name:"description",description:null,dataType:MC,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:VC},$C={type:n.GenericReference,id:"rate-number-property-data-type-parent-ref-id",entityType:n.Property,entityId:eb},GC={like:!1,inferred:!1,id:"rate-number-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:$C},FC={type:n.GenericReference,id:"rate-number-property-parent-ref-id",entityType:n.CustomEntity,entityId:Kr},UC={hidden:!1,required:!0,type:n.Property,id:eb,version:1,name:"rate_float",description:null,dataType:GC,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:FC},xC={type:n.GenericReference,id:"currency-prototype-parent-ref-id",entityType:n.Project,entityId:z},Ns={type:n.CustomEntity,id:Kr,version:1,name:"Currency",description:"This entity describes a currency in the Bitcoin Price Index.",properties:[DC,SC,_C,LC,UC],static:!1,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:xC},jC={type:n.GenericReference,id:"usd-property-data-type-parent-ref-id",entityType:n.Property,entityId:HE},kC={like:!1,inferred:!1,id:"usd-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ns,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:jC},qC={type:n.GenericReference,id:"usd-property-parent-ref-id",entityType:n.CustomEntity,entityId:_s},JC={hidden:!1,required:!0,id:HE,type:n.Property,version:1,name:"USD",description:null,index:0,dataType:kC,implements:null,static:!1,private:!1,abstract:!1,parent:qC},WC={type:n.GenericReference,id:"gbp-property-data-type-parent-ref-id",entityType:n.Property,entityId:YE},HC={like:!1,inferred:!1,id:"gbp-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ns,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:WC},YC={type:n.GenericReference,id:"gbp-property-parent-ref-id",entityType:n.CustomEntity,entityId:_s},zC={hidden:!1,required:!0,id:YE,type:n.Property,version:1,name:"GBP",description:null,index:0,dataType:HC,implements:null,static:!1,private:!1,abstract:!1,parent:YC},ZC={type:n.GenericReference,id:"eur-property-data-type-parent-ref-id",entityType:n.Property,entityId:zE},KC={like:!1,inferred:!1,id:"eur-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ns,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:ZC},XC={type:n.GenericReference,id:"eur-property-parent-ref-id",entityType:n.CustomEntity,entityId:_s},QC={hidden:!1,required:!0,id:zE,type:n.Property,version:1,name:"EUR",description:null,implements:null,static:!1,index:0,dataType:KC,private:!1,abstract:!1,parent:XC},eB={type:n.GenericReference,id:"bpi-prototype-parent-ref-id",entityType:n.Project,entityId:z},tb={type:n.CustomEntity,id:_s,version:1,name:"BPI",description:"The Bitcoin Price Index",properties:[JC,zC,QC],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:eB},tB={type:n.GenericReference,id:"time-property-data-type-parent-ref-id",entityType:n.Property,entityId:kE},nB={like:!1,inferred:!1,id:"time-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Jo,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:tB},rB={type:n.GenericReference,id:"time-property-parent-ref-id",entityType:n.CustomEntity,entityId:Qi},iB={hidden:!1,required:!0,type:n.Property,id:kE,version:1,name:"time",description:null,index:0,dataType:nB,implements:null,static:!1,private:!1,abstract:!1,parent:rB},aB={type:n.GenericReference,id:"disclamer-property-data-type-parent-ref-id",entityType:n.Property,entityId:qE},sB={like:!1,inferred:!1,id:"disclamer-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:aB},oB={type:n.GenericReference,id:"disclamer-property-parent-ref-id",entityType:n.CustomEntity,entityId:Qi},lB={hidden:!1,required:!0,type:n.Property,id:qE,version:1,name:"disclamer",description:null,index:0,dataType:sB,implements:null,static:!1,private:!1,abstract:!1,parent:oB},cB={type:n.GenericReference,id:"chart-name-property-data-type-parent-ref-id",entityType:n.Property,entityId:JE},dB={like:!1,inferred:!1,id:"chart-name-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:cB},uB={type:n.GenericReference,id:"chart-name-property-parent-ref-id",entityType:n.CustomEntity,entityId:Qi},pB={hidden:!1,required:!0,type:n.Property,id:JE,version:1,name:"chartName",description:null,index:0,dataType:dB,implements:null,static:!1,private:!1,abstract:!1,parent:uB},yB={type:n.GenericReference,id:"bpi-property-data-type-parent-ref-id",entityType:n.Property,entityId:WE},hB={like:!1,inferred:!1,id:"bpi-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:tb,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:yB},fB={type:n.GenericReference,id:"bpi-property-parent-ref-id",entityType:n.CustomEntity,entityId:Qi},mB={hidden:!1,required:!0,type:n.Property,id:WE,version:1,name:"bpi",description:null,implements:null,index:0,dataType:hB,static:!1,private:!1,abstract:!1,parent:fB},TB={type:n.GenericReference,id:"bitcoin-api-response-parent-ref-id",entityType:n.Project,entityId:z},nb={type:n.CustomEntity,id:Qi,version:1,name:"Bitcoin API Response type",description:"The type of the data structure response from the Bitcoin API call",properties:[iB,lB,pB,mB],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:TB},EB={type:n.GenericReference,id:"eefa0147-f873-484b-b4f3-9e6493aab183",entityType:n.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},bB={like:!1,inferred:!1,id:"b9f35112-dcb2-4b7c-8fb9-f196b3fa37f9",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:yt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:EB},RB={type:n.GenericReference,id:"128770d6-5e3a-4aff-bca0-ad1f32ebefa8",entityType:n.ReturnStatement,entityId:"e4e05975-c277-471a-b869-f0aed316045c"},gB={type:n.GenericReference,id:"0be84bf9-6421-42b9-980f-6a03f30cb809",entityType:n.ReturnDeclaration,entityId:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},vB={like:!1,inferred:!1,id:"43daa02a-237b-4b7c-a6e9-2b8c167f6e22",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:yt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:gB},IB={type:n.GenericReference,id:"ad380383-4a47-43da-968e-75a2d603b230",entityType:n.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},rb={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:vB,readsValue:IB,required:!0,index:0,parent:RB},DB={type:n.GenericReference,id:"4f24dc27-59a1-49bf-abcc-7d72b00926e4",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},PB={id:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",type:n.ArgumentDeclaration,version:1,name:"New Company Owner",description:null,implements:null,dataType:bB,writesValues:[rb],required:!0,index:0,parent:DB},AB={type:n.GenericReference,id:"5c9a02f0-d2cf-4efc-828e-467f33a74dd3",entityType:n.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},OB={type:n.GenericReference,id:"2ff8f3da-e0c5-4f0f-b688-2c051c588786",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},SB={type:n.GenericReference,id:"195ae28c-159b-42de-80b1-2ebb8be3619f",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},ib={type:n.ReturnStatement,id:"e4e05975-c277-471a-b869-f0aed316045c",version:1,outputs:[rb],calledByError:[],calledByEntry:[OB],calledBySuccess:[],throws:null,x:0,y:0,parent:SB},CB={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:[PB],calls:[ib],index:0,collapsed:!1,implements:null,returnStatements:[ib],private:!1,x:0,y:0,parent:AB},BB={type:n.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},wB={type:n.GenericReference,id:"29c4e3e0-1b66-4075-b559-45b27c5cf356",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},_B={type:n.GenericReference,id:"b1289358-b185-455d-8f58-7791b15cd52a",entityType:n.ReturnStatement,entityId:"9690cd1d-ea35-4e83-823d-0c7310265fee"},NB={type:n.GenericReference,id:"d847bb49-8789-4550-bb2d-e2d551993b28",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},MB={type:n.GenericReference,id:"06535500-c37c-4915-8398-1d4e184fa5e7",entityType:n.ReturnDeclaration,entityId:"e7a35277-a0c4-46d5-aca2-bddd0c26e931"},VB={like:!1,inferred:!1,id:"d358dd91-35f7-4095-b728-3fb3c71dbc05",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Sn,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:MB},ac={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:VB,implements:null,readsValue:NB,required:!0,index:0,parent:_B},LB={type:n.GenericReference,id:"gov-company-registry-return-statement-called-by-success-ref-id",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},sc={type:n.ReturnStatement,id:"9690cd1d-ea35-4e83-823d-0c7310265fee",version:1,outputs:[ac],calledByError:[],calledByEntry:[],calledBySuccess:[BB,LB],throws:null,x:0,y:0,parent:wB},$B={type:n.GenericReference,id:"b3126414-4c9b-495f-901e-59f5073c8d67",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},GB={type:n.GenericReference,id:"35115c48-618b-411b-a290-d746d22fdd10",entityType:n.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},ab={id:"a0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:n.InputMap,version:1,declaration:al,name:null,description:null,readsValue:GB,defaultValue:null,parent:$B,index:2},FB={type:n.GenericReference,id:"14f46eae-04a5-47d1-9c7f-28fb09b84d1d",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},UB={like:!1,inferred:!1,id:"990bd5d1-07ea-4253-acc1-d03bedd22a38",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Sn,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:FB},xB={type:n.GenericReference,id:"e4c3542a-8fb0-4b72-8d6e-3fdff812dd67",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},jB={type:n.GenericReference,id:"825f9f60-22a8-4cc6-9055-d7333f8e92f4",entityType:n.OutputMap,entityId:"8f30d787-9459-4d8d-98a2-b46fbc2006d5"},kB={type:n.GenericReference,id:"is-company-name-registered-var-called-by-ref",entityType:n.Operation,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},sb={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:UB,readsValue:jB,writesValues:[ac],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[kB],successCalls:[sc],errorCalls:[],internalCalls:[],x:0,y:0,parent:xB},qB={type:n.GenericReference,id:"1aba021e-48ef-44ac-93d0-eaecac5895da",entityType:n.InputMap,entityId:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a"},JB={type:n.GenericReference,id:"dffae7e0-0a5c-4c14-8ed2-8d680b4c4c86",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},WB={type:n.InputMap,id:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a",version:1,declaration:qa,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:I.String,valueAsType:null,parent:qB,autogeneration:null},index:1,parent:JB},HB={type:n.GenericReference,id:"64ae61f5-ace7-401b-926d-25f852daa60e",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},YB={id:"8f30d787-9459-4d8d-98a2-b46fbc2006d5",type:n.OutputMap,version:1,declaration:Di,index:2,writesValues:[sb],parent:HB},zB={type:n.GenericReference,id:"62a1a086-caea-4270-9c9f-a1695503e745",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},ZB={id:"48cf7654-8f3e-4fcd-abc6-740876c310a0",type:n.InputMap,version:1,declaration:ka,name:null,description:null,readsValue:null,index:0,defaultValue:null,parent:zB},KB={type:n.GenericReference,id:"b0c9c79f-f525-428d-99e7-087d3237ad62",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},XB={id:"2c1dc406-4b71-4023-87b2-abede3a111d2",type:n.InputMap,version:1,name:null,description:null,declaration:Ja,index:3,readsValue:null,defaultValue:null,parent:KB},QB={type:n.GenericReference,id:"9887d6c9-d75b-4c97-b722-e2e60945ea20",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},ew={id:"3fef94b2-0278-43ae-b0c5-bc7083f0a111",type:n.InputMap,version:1,declaration:Wa,name:null,description:null,readsValue:null,index:4,defaultValue:null,parent:QB},tw={type:n.GenericReference,id:"561275b6-5056-45d8-bf7d-8abaa4645593",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},nw={id:"3efe20a7-4d63-411e-89ef-63e277f48d66",type:n.OutputMap,version:1,declaration:Ha,index:1,writesValues:[],parent:tw},rw={type:n.GenericReference,id:"3170ccc2-13de-4bfc-802a-a643be41cd42",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},iw={id:"40d34323-d7e6-440a-8016-67c05a3b66dd",type:n.OutputMap,version:1,declaration:Di,index:0,writesValues:[],parent:rw},aw={type:n.GenericReference,id:"7432fa82-f574-4c54-a8fa-4cc4376da3d5",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},sw={type:n.GenericReference,id:"8f518502-9eea-462c-8753-8bc3bf3e29a9",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},ow={type:n.GenericReference,id:"123b8f18-79d9-4166-a5f6-78ec4b461680",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},lw={type:n.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",entityType:n.FunctionCall,entityId:"abb5d456-ee85-4800-bdd9-d409415f60d7"},cw={type:n.GenericReference,id:"a375eedf-4811-41aa-a998-4897c69c46b9",entityType:n.ReturnDeclaration,entityId:"024a9b77-c1cd-4b67-b3ba-1935046b590d"},dw={like:!1,inferred:!1,id:"767cc5ed-20ec-4fd1-89b1-c8d19daa87d1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ye,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:cw},uw={type:n.GenericReference,id:"e64b0c23-129d-4d74-8ab4-eec60e1e5b9b",entityType:n.ReturnStatement,entityId:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3"},ob={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:dw,implements:null,required:!0,readsValue:null,index:0,parent:uw},pw={type:n.ReturnStatement,id:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3",version:1,outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[lw],throws:ob,x:0,y:0,parent:ow},yw={type:n.GenericReference,id:"323814fb-9723-49ef-bbba-f882384f18e4",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},hw={id:"2f63f7ba-0ff0-458a-92bc-65d1dd4df8c3",type:n.OutputMap,declaration:ol,version:1,writesValues:[ob],index:0,parent:yw},fw={type:n.Operation,id:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7",version:1,declaration:Pi,inputs:[ZB,WB,ab,XB,ew],outputs:[iw,nw,YB],process:null,calledByError:[],calledByEntry:[aw],calledBySuccess:[],successCalls:[sc,sb],errorCalls:[pw],error:hw,x:0,y:0,parent:sw},mw={type:n.GenericReference,id:"597b8aa2-f6f2-4f7d-bbb9-b703d02de96a",entityType:n.InputMap,entityId:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a"},Tw={type:n.GenericReference,id:"546d99b3-28c4-4186-93a0-ac53c1565e07",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},Ew={id:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:n.InputMap,version:1,declaration:Ua,name:null,description:null,readsValue:null,defaultValue:{id:"base-query-string-map-default-value-id",type:n.PrimitiveValue,version:1,value:"?name=",name:I.String,parent:mw,valueAsType:null,autogeneration:null},index:0,parent:Tw},bw={type:n.GenericReference,id:"6a56fb22-82e1-47c9-bf85-41c4e5986c74",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},Rw={type:n.GenericReference,id:"191c6a6d-9bcb-441e-bf98-de0da96f5f3a",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},gw={type:n.GenericReference,id:"d8fcbb76-dae2-40cf-847a-02364721b387",entityType:n.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},vw={like:!1,inferred:!1,id:"6a70c42b-024a-47c6-8a9d-af52be9c9b9a",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:gw},Iw={type:n.GenericReference,id:"2282e2c0-ed9e-4c7b-86fc-1a364fa0fdb8",entityType:n.OutputMap,entityId:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5"},Dw={type:n.GenericReference,id:"assembled-query-string-called-by-ref",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},lb={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:vw,readsValue:Iw,writesValues:[ab],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Dw],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:Rw},Pw={id:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5",type:n.OutputMap,version:1,writesValues:[lb],declaration:vi,index:0,parent:bw},Aw={type:n.GenericReference,id:"a1b48e7c-0301-4747-b4dd-b5af79956f7f",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},Ow={type:n.GenericReference,id:"487c9235-be95-4c96-b9b5-2714b374a277",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},Sw={type:n.GenericReference,id:"f6471f4f-b269-46fa-80ec-885e87a449c2",entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69",entityType:n.ArgumentDeclaration},Cw={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},cb={id:"08f36e2b-bad2-425c-8129-93560bec8488",version:1,type:n.InputMap,declaration:xa,name:null,description:null,readsValue:Sw,defaultValue:null,index:1,parent:Cw},Bw={type:n.Operation,id:"8f2094c0-e27e-465e-9280-112da0de9019",declaration:Ii,version:1,inputs:[Ew,cb],outputs:[Pw],process:null,calledByError:[],calledByEntry:[Aw],calledBySuccess:[],successCalls:[lb],errorCalls:[],error:null,x:0,y:0,parent:Ow},ww={type:n.GenericReference,id:"c2e0e9b4-aa46-4974-bf8a-886b737b12fb",entityType:n.ArgumentDeclaration,entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69"},_w={like:!1,inferred:!1,id:"a4279518-3bf3-44b7-a2ac-65142ca37f1c",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:ww},Nw={type:n.GenericReference,id:"dc273f24-164b-4943-82f9-589b237141e2",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},db={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:_w,implements:null,required:!1,writesValues:[cb],index:0,parent:Nw},Mw={type:n.GenericReference,id:"2178a10c-1cc0-4dad-97c3-0941be6c9738",entityType:n.Project,entityId:z},ub={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:[db],calls:[Bw,fw],returnStatements:[sc],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:Mw},Vw={type:n.GenericReference,id:"4d66c53c-f0f7-496a-9955-1e6c8533c5e0",entityType:n.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},Lw={type:n.GenericReference,id:"6fa0c8e0-d104-4b4d-a035-d4f6e0c49f09",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},$w={type:n.GenericReference,id:"146408d5-5336-4877-941a-777dd5871926",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},Gw={type:n.GenericReference,id:"34ae8f8c-548d-4654-984a-6f36affdaf49",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},pb={id:"69b1215d-9ebf-4274-b9cb-d4a5888f5122",version:1,type:n.InputMap,declaration:db,name:null,description:null,readsValue:$w,defaultValue:null,index:0,parent:Gw},Fw={type:n.GenericReference,id:"07540a94-dda1-40b3-8452-f209bdc87b88",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},Uw={type:n.GenericReference,id:"eaddf12a-a995-429e-90a0-13bf06efeb28",entityType:n.VariableDeclaration,entityId:"faaf3bf6-917d-40d7-aee6-5164f6646c4b"},xw={like:!1,inferred:!1,id:"7fdaf943-3ffb-48e0-b766-b86cc24090cf",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Sn,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Uw},jw={type:n.GenericReference,id:"030fb5c5-af4d-4c85-8cf0-e99edd50d2bd",entityType:n.OutputMap,entityId:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},kw={type:n.GenericReference,id:"a8b618e9-c68c-48c1-8bd6-ef47c87d699e",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},qw={type:n.GenericReference,id:"is-company-name-valid-var-called-by-ref",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},yb={type:n.VariableDeclaration,id:"faaf3bf6-917d-40d7-aee6-5164f6646c4b",version:1,name:"Is name valid",description:"Whether the company name is valid",dataType:xw,readsValue:jw,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[qw],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:kw},Jw={id:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.OutputMap,version:1,declaration:ac,writesValues:[yb],index:0,parent:Fw},Ww={type:n.FunctionCall,id:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",version:1,declaration:ub,inputs:[pb],outputs:[Jw],calledByError:[],calledByEntry:[],process:null,calledBySuccess:[Vw],successCalls:[yb],errorCalls:[],error:null,x:0,y:0,parent:Lw},Hw={type:n.GenericReference,id:"9d0b87b4-bfed-4e02-9e84-6831c21feae2",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},Yw={type:n.GenericReference,id:"74345f4f-e80d-48be-adff-d12fcea25bec",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},zw={type:n.GenericReference,id:"b39279ea-969a-4efb-a9ec-353bfd13db65",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},Zw={type:n.GenericReference,id:"549db613-f225-4c5b-9634-7d096717f0ff",entityType:n.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},hb={id:"358e242c-7448-442e-ab8b-fd7fa119ea71",version:1,type:n.InputMap,declaration:nr.fixedArguments[0],name:null,description:null,readsValue:zw,defaultValue:null,index:0,parent:Zw},Kw={type:n.Condition,id:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b",version:1,declaration:nr,inputs:[hb],calledByError:[],calledByEntry:[Hw],calledBySuccess:[],successCalls:[Ww],errorCalls:[],x:0,y:0,parent:Yw},Xw={type:n.GenericReference,id:"43ba1e25-f805-488f-8ae8-c58bb6215b2f",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},Qw={type:n.GenericReference,id:"eb091bed-507f-4a1e-93b5-7cd2fccfe002",entityType:n.VariableDeclaration,entityId:"9c928995-0dd5-4f97-9962-56b343bc8a45"},e_={like:!1,inferred:!1,id:"d64152ea-831f-4426-9506-a39bfa170513",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Zr,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Qw},t_={type:n.GenericReference,id:"7e79c29f-f7bd-441a-a77e-c627604dae94",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},n_={type:n.GenericReference,id:"8995ce5f-d5cf-4341-a8b1-5c046cc78b89",entityType:n.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},r_={type:n.GenericReference,id:"new-company-bank-account-var-decl-1-called-by-ref",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},fb={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:e_,readsValue:n_,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[r_],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:t_},i_={type:n.GenericReference,id:"9a4887bf-d50d-43e4-bdd5-a5262f65f04b",entityType:n.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},a_={like:!1,inferred:!1,id:"ae148c06-3143-49e9-9614-c3aca3f6fa7b",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Zr,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:i_},s_={id:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071",type:n.ArgumentDeclaration,version:1,name:"New bank account",description:"The new bank account of the company",dataType:a_,implements:null,required:!0,index:1,writesValues:[fb],parent:Xw},o_={type:n.GenericReference,id:"caec9cf8-3133-48d4-a390-114fa71b2933",entityType:n.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},l_={type:n.GenericReference,id:"cebcbad8-ca87-4c4b-be8a-312293d49892",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},c_={type:n.GenericReference,id:"7b8ccfe5-f9cd-4776-a19b-80c689bbe3df",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},d_={like:!1,inferred:!1,id:"2a6b4703-ac8d-4d25-8abd-48a115577fec",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:c_},u_={id:"c6cf620c-1eee-4919-8578-1a0b6c088551",type:n.ArgumentDeclaration,version:1,name:"New company name",description:null,dataType:d_,implements:null,required:!0,index:0,writesValues:[hb,pb],parent:l_},p_={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:[u_,s_],calls:[Kw,fb],index:1,private:!1,implements:null,x:0,y:0,parent:o_},y_={type:n.GenericReference,id:"employee-manager-property-data-type-entity-ref-id",entityType:n.CustomEntity,entityId:"employee-entity-id"},h_={type:n.GenericReference,id:"employee-manager-property-data-type-parent-ref-id",entityType:n.Property,entityId:"employee-manager-property-id"},f_={like:!1,inferred:!1,id:"employee-manager-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:y_,isList:!1,isNullable:!0,asType:!1,defaultValue:null,constant:!1,parent:h_},m_={type:n.GenericReference,id:"employee-manager-property-parent-ref-id",entityType:n.CustomEntity,entityId:"employee-entity-id"},T_={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:f_,abstract:!1,parent:m_},E_={type:n.GenericReference,id:"employee-start-date-property-data-type-parent-ref-id",entityType:n.Property,entityId:"employee-start-date-property-id"},b_={like:!1,inferred:!1,id:"employee-start-date-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:cn,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:E_},R_={type:n.GenericReference,id:"employee-start-date-property-parent-ref-id",entityType:n.CustomEntity,entityId:"employee-entity-id"},g_={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:b_,abstract:!1,parent:R_},v_={type:n.GenericReference,id:"employee-department-property-ref-id",entityType:n.Property,entityId:"employee-department-property-id"},I_={like:!1,inferred:!1,id:"employee-department-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Cn,isList:!1,isNullable:!1,asType:!1,options:["Human Resources","Finance","IT","Sales","Marketing","Customer Service","Logistics","Product"],defaultValue:null,constant:!1,parent:v_},D_={type:n.GenericReference,id:"employee-department-property-parent-ref-id",entityType:n.CustomEntity,entityId:"employee-entity-id"},P_={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:I_,abstract:!1,parent:D_},A_={type:n.GenericReference,id:"employee-prototype-parent-ref-id",entityType:n.Project,entityId:z},Ct={type:n.CustomEntity,id:"employee-entity-id",version:1,name:"Employee",description:"A entity that represents an employee in the company",properties:[P_,g_,T_],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[yt],x:0,y:0,parent:A_},O_={type:n.GenericReference,id:"dec8fbfe-9124-41fd-9f1c-5b2f07cfd6ba",entityType:n.Property,entityId:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd"},S_={like:!1,inferred:!1,id:"bc0b8979-6c43-4d47-a712-6742b89e3c00",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:O_},C_={type:n.GenericReference,id:"4f8c0a05-466e-4672-b4c4-6bd408c0be9a",entityType:n.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},B_={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:S_,abstract:!1,parent:C_},w_={type:n.GenericReference,id:"95173fe0-a6e6-443c-94f3-f7c5cf171fcf",entityType:n.Property,entityId:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3"},__={like:!1,inferred:!1,id:"ddbb6f5c-0cf4-41fb-83b3-b6c47c0e338d",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Zr,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:w_},N_={type:n.GenericReference,id:"6a9a0b72-a05d-4169-b3f3-5afb01e8d0df",entityType:n.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},oc={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:__,abstract:!1,parent:N_},M_={type:n.GenericReference,id:"62892cc6-d227-4088-90d3-ae7c15ed4af4",entityType:n.Property,entityId:"19a31727-1fba-40a5-be25-18e0f149d5cb"},V_={like:!1,inferred:!1,id:"1f7629df-dc29-4c89-8369-c6d043e97a9e",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:yt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:M_},L_={type:n.GenericReference,id:"89384206-fd5a-4f0a-849c-f777473e5773",entityType:n.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},$_={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:V_,private:!0,abstract:!1,parent:L_},G_={type:n.GenericReference,id:"4d2ffb6c-5f38-436e-8339-fb9878ac2b5e",entityType:n.Property,entityId:"f8310850-a87e-405c-b182-4f1d5fa49240"},F_={like:!1,inferred:!1,id:"ad44250b-40c2-48f7-a480-381fa938f562",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ct,isList:!0,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:G_},U_={type:n.GenericReference,id:"aa5d4eee-6fac-4e72-bf21-9c8750024541",entityType:n.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},x_={hidden:!1,required:!0,type:n.Property,id:"f8310850-a87e-405c-b182-4f1d5fa49240",version:1,name:"Employees",description:null,index:3,dataType:F_,implements:null,private:!0,static:!1,abstract:!1,parent:U_},j_={type:n.GenericReference,id:"e3c03b6b-2ea0-4d99-865d-5e6a348672d0",entityType:n.Project,entityId:z},vt={type:n.CustomEntity,id:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:1,name:"Company",description:null,properties:[B_,oc,$_,x_],static:!1,abstract:!1,abstractMethods:[],methods:[CB,p_],extends:[],implements:[Fe],x:0,y:0,parent:j_},k_={type:n.GenericReference,id:"ffcad334-138d-4b67-8fb3-5f0e6f5fefbd",entityType:n.Project,entityId:z},lc={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:k_};n.GenericReference,n.DataType;const q_={id:"cron-job-entity-expression-property-ref-id",type:n.GenericReference,entityId:"cron-job-entity-expression-property-id",entityType:n.Property},J_={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:x,asType:!1,defaultValue:null,parent:q_},W_={id:"cron-job-entity-ref-id",type:n.GenericReference,entityId:"cron-job-entity-id",entityType:n.CustomEntity},H_={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:J_,implements:null,static:!0,private:!1,abstract:!1,index:0,parent:W_},Y_={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},z_={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},Z_={id:"cron-job-entity-trigger-show-popup-func-call-id",version:1,type:n.FunctionCall,declaration:lc,inputs:[],outputs:[],process:null,successCalls:[],calledByError:[],calledByEntry:[Y_],calledBySuccess:[],errorCalls:[],error:null,x:0,y:0,parent:z_},K_={id:"cron-job-entity-trigger-func-decl-parent-ref-id",type:n.GenericReference,entityId:"cron-job-entity-id",entityType:n.CustomEntity},X_={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:Nl,calls:[Z_],collapsed:!1,returnStatements:[],index:0,x:0,y:0,parent:K_},Q_={id:"cron-job-entity-parent-ref-id",type:n.GenericReference,entityId:z,entityType:n.Project},eN={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:[H_],static:!0,abstract:!1,abstractMethods:[],extends:[Ml],implements:[],methods:[X_],x:0,y:0,parent:Q_},tN={type:n.GenericReference,id:"52dbd85c-48b1-462a-8205-2437d6fb1cb4",entityType:n.Project,entityId:z},nN={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:[es],x:0,y:0,parent:tN},mb="f558fbf8-67de-4545-9804-6ae621e0b2d4",rN={id:"getCompanyByIdEndpointPathParamsVariableDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"getCompanyByIdEndpointPathParamsVariableDataType"},iN={id:"getCompanyByIdEndpointPathParamsArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},aN={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathParamsVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:x,asType:!1,defaultValue:{id:"getCompanyByIdEndpointPathParamsVariableDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:I.JSON,value:{},parent:rN,autogeneration:null,valueAsType:null},parent:iN},sN={id:"getCompanyByIdEndpointReachedEntityEventRef",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},oN={id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"getCompanyByIdEndpointRequestHeadersVariableDataType"},lN={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},cN={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestHeadersVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Ye,asType:!1,defaultValue:{id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:I.JSON,value:{},parent:oN,autogeneration:null,valueAsType:null},parent:lN},dN={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:cN,implements:vl,required:!0,index:0,parent:sN},uN={id:"getCompanyByIdEndpointReachedEntityEventRefTwo",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},pN={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:aN,implements:Il,required:!0,index:1,parent:uN},yN={id:"getCompanyByIdEndpointReachedEntityEventRefThree",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},hN={id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"getCompanyByIdEndpointRequestQueryParamsVariableDataType"},fN={id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},mN={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestQueryParamsVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,asType:!1,entity:x,defaultValue:{id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:I.JSON,value:{},parent:hN,autogeneration:null,valueAsType:null},parent:fN},TN={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:mN,implements:Dl,required:!0,index:2,parent:yN},EN={id:"getCompanyByIdEndpointReachedEntityEventRefFour",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},bN={id:"getCompanyByIdEndpointRequestBodyArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestBodyArgumentDeclaration"},RN={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestBodyVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Ye,defaultValue:null,parent:bN},gN={id:"getCompanyByIdEndpointRequestBodyArgumentDeclaration",version:1,description:"The main data payload of the request.",type:n.ArgumentDeclaration,writesValues:[],name:"Request body",dataType:RN,implements:Pl,index:3,required:!0,parent:EN},vN={id:"getCompanyByIdEndpointResponseCodeReturnDeclarationRef",type:n.GenericReference,entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseCodeReturnDeclaration"},IN={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:vN},DN={id:"getCompanyByIdEndpointReturnStatementRef",type:n.GenericReference,entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},PN={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:IN,implements:Al,readsValue:null,required:!0,index:0,parent:DN},AN={id:"getCompanyByIdEndpointResponseHeadersDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"getCompanyByIdEndpointResponseHeadersDataType"},ON={id:"getCompanyByIdEndpointResponseHeadersReturnDeclarationRef",type:n.GenericReference,entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},SN={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseHeadersDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Ye,asType:!1,defaultValue:{id:"getCompanyByIdEndpointResponseHeadersDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:I.JSON,value:{},parent:AN,autogeneration:null,valueAsType:null},parent:ON},CN={id:"getCompanyByIdEndpointReturnStatementRefTwo",type:n.GenericReference,entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},BN={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:SN,implements:Ol,readsValue:null,required:!0,index:1,parent:CN},wN={id:"getCompanyByIdEndpointResponseBodyReturnDeclarationRef",type:n.GenericReference,entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseBodyReturnDeclaration"},_N={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseBodyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Ye,defaultValue:null,parent:wN},NN={id:"getCompanyByIdEndpointReturnStatementRefThree",type:n.GenericReference,entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},MN={isError:!1,id:"getCompanyByIdEndpointResponseBodyReturnDeclaration",version:1,description:"The main data payload of the response.",type:n.ReturnDeclaration,name:"Response body",implements:Sl,dataType:_N,readsValue:null,required:!0,index:2,parent:NN},VN={id:"getCompanyByIdEndpointReturnStatementCallerRef",type:n.GenericReference,entityId:"getCompanyByIdEndpointReachedEntityEvent",entityType:n.FunctionDeclaration},LN={id:"getCompanyByIdEndpointReachedEntityEventRefFive",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},$N={id:"getCompanyByIdEndpointReturnStatement",type:n.ReturnStatement,version:1,outputs:[PN,BN,MN],calledByError:[],calledByEntry:[VN],calledBySuccess:[],throws:null,x:0,y:0,parent:LN},GN={id:"endpointBuiltInBaseEntityRefFour",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:mb},FN={id:"getCompanyByIdEndpointReachedEntityEvent",name:"Endpoint reached",version:1,type:n.FunctionDeclaration,inputs:[dN,pN,TN,gN],returnStatements:[$N],description:"Fired when the endpoint is reached.",calls:[],collapsed:!1,implements:Cl,index:0,private:!1,x:0,y:0,parent:GN},UN={id:"getCompanyByIdEndpointPathPropertyDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"getCompanyByIdEndpointPathPropertyDataType"},xN={id:"getCompanyByIdEndpointPathPropertyRef",type:n.GenericReference,entityType:n.Property,entityId:"getCompanyByIdEndpointPathProperty"},jN={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathPropertyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:x,asType:!1,defaultValue:{id:"getCompanyByIdEndpointPathPropertyDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:I.String,value:"/company/{id}",parent:UN,valueAsType:null,autogeneration:null},parent:xN},kN={id:"getCompanyByIdEndpointBaseEntityRefTwo",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},qN={hidden:!1,required:!0,id:"getCompanyByIdEndpointPathProperty",name:"Path",version:1,type:n.Property,private:!1,abstract:!1,static:!0,implements:Rl,dataType:jN,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:kN},JN={id:"getCompanyByIdEndpointMethodPropertyDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"getCompanyByIdEndpointMethodPropertyDataType"},WN={id:"getCompanyByIdEndpointMethodPropertyRef",type:n.GenericReference,entityType:n.Property,entityId:"getCompanyByIdEndpointMethodProperty"},HN={like:!1,inferred:!1,id:"getCompanyByIdEndpointMethodPropertyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Cn,isList:!0,isNullable:!1,constant:!0,asType:!1,defaultValue:{id:"getCompanyByIdEndpointMethodPropertyDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,value:"GET",name:I.Enum,parent:JN,valueAsType:null,autogeneration:null},options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:WN},YN={id:"getCompanyByIdEndpointBaseEntityRefThree",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},zN={hidden:!1,required:!0,id:"getCompanyByIdEndpointMethodProperty",name:"Method",version:1,type:n.Property,private:!1,abstract:!1,static:!0,implements:gl,index:0,dataType:HN,description:null,parent:YN},ZN={type:n.GenericReference,id:"6a905153-8aa8-4424-bd7b-6415731a2725",entityType:n.Project,entityId:z},KN={type:n.CustomEntity,id:mb,version:1,name:"Get given company data by id",description:null,properties:[qN,zN],methods:[FN],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[es],x:0,y:0,parent:ZN},XN={id:"product-prototype-database-property-ref-id",type:n.GenericReference,entityId:"product-prototype-database-property-id",entityType:n.Property},QN={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},eM={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:Bn,asType:!1,defaultValue:{id:"product-prototype-database-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,value:null,name:I.EntityTemplate,valueAsType:nc,autogeneration:null,parent:QN},parent:XN},tM={id:"product-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:n.CustomEntity},nM={hidden:!1,required:!0,id:"product-prototype-database-property-id",name:"Database",version:1,type:n.Property,private:!1,abstract:!1,implements:Ni,static:!0,index:0,dataType:eM,description:"The database that the entity belongs to.",parent:tM},rM={type:n.GenericReference,id:"13a4045e-dcb0-4159-8d33-10a646078b5a",entityType:n.Property,entityId:"d519c26a-15b8-40d8-ad09-13fa9342e9ba"},iM={like:!1,inferred:!1,id:"7449779e-1d4e-409c-81c6-4b611336ed18",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:rM},aM={type:n.GenericReference,id:"0969562f-d836-406f-8b48-dd9d417fbe72",entityType:n.CustomEntity,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c"},sM={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:iM,abstract:!1,parent:aM},oM={type:n.GenericReference,id:"833a5425-7bd0-41dd-9e97-e018acce9592",entityType:n.Project,entityId:z},lM={type:n.CustomEntity,id:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:1,name:"Product",description:"A product that can be sold",implements:[Fe],extends:[],abstract:!1,static:!1,abstractMethods:[],properties:[nM,sM],methods:[],x:0,y:0,parent:oM},ea="project-loaded-event-id",Xt="get-bitcoin-price-http-call-operation-id",Tb="get-bitcoin-price-http-call-response-body-id",Ms="validate-bitcoin-price-response-operation-ids",cM={type:n.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Tb},dM={type:n.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-parent-ref-id",entityType:n.Operation,entityId:Ms},Eb={id:"validate-bitcoin-data-to-validate-input-map-id",type:n.InputMap,version:1,declaration:er.fixedArguments[1],name:null,description:null,readsValue:cM,defaultValue:null,index:0,parent:dM},uM={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"},pM={type:n.GenericReference,id:"validate-bitcoin-type-to-match-input-map-parent-ref-id",entityType:n.Operation,entityId:Ms},yM={id:"validate-bitcoin-type-to-match-input-map-id",type:n.InputMap,version:1,declaration:er.fixedArguments[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:I.EntityTemplate,valueAsType:nb,value:null,parent:uM,autogeneration:null},index:0,parent:pM},hM={type:n.GenericReference,id:"validate-bitcoin-validated-entity-output-map-parent-ref-id",entityType:n.Operation,entityId:Ms},fM={id:"validate-bitcoin-validated-entity-output-map-id",type:n.OutputMap,version:1,declaration:er.fixedReturns[0],writesValues:[],index:0,parent:hM},mM={type:n.GenericReference,id:"validate-bitcoin-price-response-operation-parent-ref-id",entityType:n.GlobalEvent,entityId:ea},TM={type:n.GenericReference,id:"validate-bitcoin-price-response-operation-called-by-ref-id",entityType:n.Operation,entityId:Xt},EM={type:n.Operation,id:Ms,version:1,declaration:er,inputs:[yM,Eb],outputs:[fM],process:null,successCalls:[],errorCalls:[],error:null,x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[TM],parent:mM},bM={type:n.GenericReference,id:"96edb661-3f36-406c-8921-f1679dd796a3",entityType:n.FunctionCall,entityId:Xt},RM={id:"c93e1393-9b5e-4de2-b8da-7eae647d715a",version:1,type:n.InputMap,declaration:ka,name:null,description:null,readsValue:null,defaultValue:null,index:0,parent:bM},gM={type:n.GenericReference,id:"40312b28-71b8-4b01-a654-58b87191939d",entityType:n.FunctionCall,entityId:Xt},vM={type:n.GenericReference,id:"6ea96c7d-02a7-4971-82ad-2f32a0fec8b4",entityType:n.InputMap,entityId:"9f21cbac-5a83-4983-8923-9224ffd3ba9f"},IM={id:"9f21cbac-5a83-4983-8923-9224ffd3ba9f",version:1,type:n.InputMap,declaration:qa,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:I.String,parent:vM,valueAsType:null,autogeneration:null},index:1,parent:gM},DM={type:n.GenericReference,id:"2610bf4a-c8a2-4746-b6cc-eb15f7fa8e9c",entityType:n.FunctionCall,entityId:Xt},PM={id:"ffb3cd9d-c955-4104-bc7b-299120fe4ede",version:1,type:n.InputMap,declaration:Ja,name:null,description:null,readsValue:null,defaultValue:null,index:2,parent:DM},AM={type:n.GenericReference,id:"bfd29a6a-671a-448c-9f2f-f8c7e4ad8349",entityType:n.FunctionCall,entityId:Xt},OM={id:"412bf1f3-1a8e-4665-a95f-82117540e34e",version:1,type:n.InputMap,declaration:Wa,name:null,description:null,readsValue:null,defaultValue:null,index:3,parent:AM},SM={type:n.GenericReference,id:"616a15f3-c224-4b11-b95c-63314edef409",entityType:n.FunctionCall,entityId:Xt},CM={id:"4dd4651c-02e4-45f1-b50f-824f3bcb1648",version:1,type:n.OutputMap,declaration:Ha,writesValues:[],index:1,parent:SM},BM={type:n.GenericReference,id:"28793b68-4d7e-4826-aee1-f201a3499faf",entityType:n.FunctionCall,entityId:Xt},wM={id:"94fe9d35-4dd4-4729-a50c-5283ccd7e661",version:1,type:n.OutputMap,declaration:sl,writesValues:[],index:0,parent:BM},_M={type:n.GenericReference,id:"f13e04b2-49b4-4c69-85b8-cbbafafa3524",entityType:n.FunctionCall,entityId:Xt},NM={id:Tb,type:n.OutputMap,version:1,declaration:Di,writesValues:[Eb],index:2,parent:_M},MM={type:n.GenericReference,id:"6148d6d0-caaa-45fc-b601-ff2493dfc60f",entityType:n.FunctionDeclaration,entityId:Xt},VM={type:n.GenericReference,id:"b115f084-807b-44b3-ae01-b69cc342f761",entityType:n.GlobalEvent,entityId:ea},LM={type:n.Operation,id:Xt,version:1,declaration:Pi,inputs:[RM,IM,PM,OM],outputs:[wM,CM,NM],process:null,parent:VM,calledByError:[],calledByEntry:[MM],calledBySuccess:[],successCalls:[EM],errorCalls:[],error:null,x:0,y:0},$M={type:n.GenericReference,id:"24e76019-3f94-475b-91ce-297f76bbc224",entityType:n.GlobalEvent,entityId:ea},GM={type:n.GenericReference,id:"0eac8e29-cdf2-42f8-8ea7-ad76d4d79abe",entityType:n.GlobalEvent,entityId:ea},FM={process:null,type:n.FunctionCall,id:"2d2e7593-bfbf-457c-a607-5fce18eef457",version:1,declaration:lc,inputs:[],outputs:[],calledByError:[],calledByEntry:[$M],calledBySuccess:[],parent:GM,successCalls:[],errorCalls:[],error:null,x:0,y:0},UM={id:"793b5999-a9da-47fb-9665-0c17ebc6d5c9",type:n.GenericReference,entityType:n.Project,entityId:"2e7eb5382-3d99-44fd-972a-b8b1e819f6be"},xM={type:n.GlobalEvent,id:ea,version:1,name:on.PROJECT_PUBLICATION_COMPLETED,returnStatements:[],collapsed:!1,implements:as,parent:UM,inputs:[],calls:[FM,LM],x:0,y:0},Lt="abort-execution-func-declaration-id",ta="abort-execution-func-exec-var-declaration-id",Vs="abort-execution-func-small-wait-op-id",cc="abort-execution-func-long-wait-op-id",bb="abort-execution-func-long-wait-process-output-id",Rb="abort-execution-func-exec-var-instance-write-id",gb="abort-execution-func-long-wait-return-stmt-id",vb="abort-execution-func-small-wait-return-stmt-id",jM="abort-execution-func-exec-var-instance-abort-call-id",dc="abort-execution-func-exec-var-instance-abort-internal-call-id",Ib="abort-execution-func-exec-second-wait-op-id",kM={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"},qM={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"},JM={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:x,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:I.String,value:"Hello 2",autogeneration:null,valueAsType:null,parent:qM},constant:!1,parent:kM},WM={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-parent-ref-id",entityType:n.ReturnStatement,entityId:vb},HM={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:JM,implements:null,readsValue:null,required:!0,index:0,parent:WM},YM={type:n.GenericReference,id:"short-wait-return-statement-called-by-ref-id",entityType:n.Operation,entityId:Vs},zM={type:n.GenericReference,id:"short-wait-return-statement-parent-ref-id",entityType:n.FunctionDeclaration,entityId:Lt},Db={type:n.ReturnStatement,id:vb,version:1,outputs:[HM],calledByError:[],calledByEntry:[],calledBySuccess:[YM],throws:null,x:0,y:0,parent:zM},ZM={type:n.GenericReference,id:"second-wait-argument-default-value-parent-ref-id",entityType:n.InputMap,entityId:"second-wait-argument-map-id"},KM={type:n.GenericReference,id:"second-wait-argument-map-parent-ref-id",entityType:n.Operation,entityId:Ib},XM={id:"second-wait-argument-map-id",type:n.InputMap,version:1,declaration:Xn,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:I.Number,parent:ZM},index:0,parent:KM},QM={type:n.GenericReference,id:"small-wait-parent-ref-id",entityType:n.FunctionDeclaration,entityId:Lt},e0={type:n.GenericReference,id:"small-wait-called-by-ref-one-id",entityType:n.InternalCall,entityId:dc},t0={id:Ib,type:n.Operation,version:1,declaration:ut,inputs:[XM],outputs:[],process:null,successCalls:[Db],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[e0],error:null,parent:QM},n0={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-one-id",entityType:n.VariableInstance,entityId:Rb},r0={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-two-id",entityType:n.Operation,entityId:Vs},i0={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-main-project-ref-id",entityType:n.FunctionDeclaration,entityId:Lt},a0={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",entityType:n.VariableDeclaration,entityId:ta},s0={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-internal-call-ref-one-id",entityType:n.InternalCall,entityId:dc},o0={id:jM,type:n.VariableInstance,version:1,declaration:a0,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[s0],parent:i0},Pb={id:dc,type:n.InternalCall,version:1,inputs:[],outputs:[],declaration:Vl,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[n0,r0],successCalls:[t0],errorCalls:[],error:null,index:0,parent:o0},l0={type:n.GenericReference,id:"abort-exec-func-var-write-instance-main-project-ref-id",entityType:n.FunctionDeclaration,entityId:Lt},c0={type:n.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-one-id",entityType:n.VariableDeclaration,entityId:ta},d0={type:n.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-two-id",entityType:n.FunctionDeclaration,entityId:Lt},u0={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",entityType:n.VariableDeclaration,entityId:ta},p0={type:n.GenericReference,id:"abort-exec-func-var-write-instance-reads-value-ref-id",entityType:n.OutputMap,entityId:bb},uc={id:Rb,type:n.VariableInstance,version:1,declaration:u0,inputs:[],outputs:[],calledByError:[],calledByEntry:[d0],calledBySuccess:[c0],successCalls:[Pb],errorCalls:[],x:0,y:0,readsValue:p0,writesValues:[],internalCalls:[],parent:l0},y0={type:n.GenericReference,id:"abort-exec-func-var-decl-datatype-parent-ref-id",entityType:n.VariableDeclaration,entityId:ta};n.GenericReference,n.DataType;const h0={like:!1,inferred:!1,id:"abort-exec-func-var-decl-datatype-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Ll,version:1,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:y0,defaultValue:null},f0={type:n.GenericReference,id:"abort-exec-func-var-decl-main-project-ref-id",entityType:n.FunctionDeclaration,entityId:Lt},m0={type:n.GenericReference,id:"abort-exec-func-var-decl-called-by-ref-one-id",entityType:n.FunctionDeclaration,entityId:Lt},T0={id:ta,type:n.VariableDeclaration,version:1,name:"Execution in progress",description:"A variable that holds an ongoing execution to abort it if needed",dataType:h0,inputs:[],outputs:[],calledByError:[],calledByEntry:[m0],calledBySuccess:[],successCalls:[uc],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:f0},E0={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"},b0={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:x,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:I.String,value:"Hello 1",autogeneration:null,valueAsType:null,parent:b0},constant:!1,parent:E0},g0={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-parent-ref-id",entityType:n.ReturnStatement,entityId:gb},v0={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:g0},I0={type:n.GenericReference,id:"long-wait-return-statement-called-by-ref-id",entityType:n.Operation,entityId:cc},D0={type:n.GenericReference,id:"long-wait-return-statement-parent-ref-id",entityType:n.FunctionDeclaration,entityId:Lt},Ab={type:n.ReturnStatement,id:gb,version:1,outputs:[v0],calledByError:[],calledByEntry:[],calledBySuccess:[I0],throws:null,x:0,y:0,parent:D0},P0={type:n.GenericReference,id:"long-argument-default-value-parent-ref-id",entityType:n.InputMap,entityId:"long-argument-map-id"},Ob={type:n.GenericReference,id:"long-argument-map-parent-ref-id",entityType:n.Operation,entityId:cc},A0={id:"long-argument-map-id",type:n.InputMap,version:1,declaration:Xn,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:I.Number,parent:P0},index:0,parent:Ob},O0={type:n.GenericReference,id:"long-parent-ref-id",entityType:n.FunctionDeclaration,entityId:Lt},S0={type:n.GenericReference,id:"long-called-by-ref-one-id",entityType:n.FunctionDeclaration,entityId:Lt},C0={id:bb,type:n.OutputMap,version:1,declaration:Gl,writesValues:[uc],index:0,parent:Ob},B0={id:cc,type:n.Operation,version:1,declaration:ut,inputs:[A0],outputs:[],process:C0,successCalls:[Ab],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[S0],calledBySuccess:[],error:null,parent:O0},w0={type:n.GenericReference,id:"small-wait-argument-default-value-parent-ref-id",entityType:n.InputMap,entityId:"small-wait-argument-map-id"},_0={type:n.GenericReference,id:"small-wait-argument-map-parent-ref-id",entityType:n.Operation,entityId:Vs},N0={id:"small-wait-argument-map-id",type:n.InputMap,version:1,declaration:Xn,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:I.Number,parent:w0},index:0,parent:_0},M0={type:n.GenericReference,id:"small-wait-parent-ref-id",entityType:n.FunctionDeclaration,entityId:Lt},V0={type:n.GenericReference,id:"small-wait-called-by-ref-one-id",entityType:n.FunctionDeclaration,entityId:Lt},L0={id:Vs,type:n.Operation,version:1,declaration:ut,inputs:[N0],outputs:[],process:null,successCalls:[Pb],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[V0],calledBySuccess:[],error:null,parent:M0},$0={type:n.GenericReference,id:"abort-execution-func-decl-parent-ref-id",entityType:n.Project,entityId:z},Sb={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:[Ab,Db],calls:[L0,T0,uc,B0],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:$0},G0={type:n.GenericReference,id:"call-execution-abort-func-parent-ref-id",entityType:n.Project,entityId:z},F0={id:"call-execution-abort-func-id",type:n.FunctionCall,version:1,declaration:Sb,inputs:[],process:null,outputs:[],successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:G0},pc="manual-hello-world-loop-func-decl-id",Cb="manual-hello-world-loop-func-return-statement-id",Qt="manual-hello-world-loop-id",na="manual-hello-world-loop-body-id",yc="manual-hello-world-loop-break-statement-id",ra="manual-hello-world-loop-current-iteration-number-output-map-id",hc="manual-hello-world-loop-previous-iterations-results-output-map-id",fc="assembled-hello-world-text-output-id",Bb="assembled-hello-world-list-output-id",ia="iteration-number-is-equal-or-greater-than-10-condition-id",Ls="join-hello-world-and-number-operation-id",$s="append-string-to-list-operation-id",wb="hello-world-loop-output-map-id",U0={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-parent-ref",entityType:n.ReturnStatement,entityId:Cb},x0={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"},j0={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:x,isList:!0,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:x0},k0={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-reads-value-ref",entityType:n.OutputMap,entityId:wb},_b={isError:!1,id:"manual-hello-world-loop-function-declaration-output-declaration",version:1,type:n.ReturnDeclaration,name:"Results",description:null,dataType:j0,implements:null,readsValue:k0,required:!0,index:0,parent:U0},q0={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-return-statement-called-by-ref",entityType:n.Loop,entityId:Qt},J0={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref",entityType:n.FunctionDeclaration,entityId:pc},Nb={type:n.ReturnStatement,id:Cb,version:1,outputs:[_b],calledByError:[],calledByEntry:[],calledBySuccess:[q0],parent:J0,throws:null,x:0,y:0},W0={type:n.GenericReference,id:"hello-world-loop-break-statement-ref-id",entityType:n.BreakStatement,entityId:yc},H0={type:n.GenericReference,id:"hello-world-loop-break-statement-reads-value-ref-id",entityType:n.OutputMap,entityId:fc},Mb={isError:!1,id:"hello-world-loop-break-statement-output-id",version:1,type:n.ReturnDeclaration,name:"Iteration result",description:null,dataType:null,readsValue:H0,implements:null,required:!0,index:0,parent:W0},Y0={type:n.GenericReference,id:"hello-world-loop-break-statement-counter-reads-value-ref-id",entityType:n.ArgumentDeclaration,entityId:ra},z0={type:n.GenericReference,id:"hello-world-loop-break-statement-counter-ref-id",entityType:n.BreakStatement,entityId:yc},Vb={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:Y0,required:!0,index:1,parent:z0},Z0={type:n.GenericReference,id:"hello-world-loop-break-statement-called-by-ref-id",entityType:n.Condition,entityId:ia},K0={type:n.GenericReference,id:"hello-world-loop-break-statement-parent-ref-id",entityType:n.Loop,entityId:Qt},Lb={type:n.BreakStatement,id:yc,version:1,outputs:[Mb,Vb],calledByError:[],calledByEntry:[],calledBySuccess:[Z0],parent:K0,throws:null,x:0,y:0},X0={type:n.GenericReference,id:"hello-world-loop-continue-statement-ref-id",entityType:n.ContinueStatement,entityId:"hello-world-loop-continue-statement"},Q0={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"},e1={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:Q0},t1={type:n.GenericReference,id:"hello-world-loop-continue-statement-reads-value-ref-id",entityType:n.OutputMap,entityId:fc},$b={isError:!1,id:"hello-world-loop-continue-statement-output-id",version:1,type:n.ReturnDeclaration,name:"Iteration result",description:null,implements:null,dataType:e1,readsValue:t1,required:!0,index:0,parent:X0},n1={type:n.GenericReference,id:"hello-world-loop-continue-statement-called-by-ref-id",entityType:n.Condition,entityId:ia},r1={type:n.GenericReference,id:"hello-world-loop-continue-statement-parent-ref-id",entityType:n.Loop,entityId:Qt},Gb={type:n.ContinueStatement,id:"hello-world-loop-continue-statement",version:1,outputs:[$b],calledBySuccess:[],calledByError:[n1],calledByEntry:[],parent:r1,throws:null,x:0,y:0};n.GenericReference,n.InputMap;const i1={type:n.GenericReference,id:"append-string-to-list-base-string-map-parent-ref-id",entityType:n.Operation,entityId:$s},a1={type:n.GenericReference,id:"base-string-map-reads-value-ref-id",entityType:n.OutputMap,entityId:hc},Fb={id:"append-string-to-list-base-string-map-id",type:n.InputMap,version:1,declaration:Qo,name:null,description:null,readsValue:a1,defaultValue:null,index:0,parent:i1},s1={type:n.GenericReference,id:"assembly-string-map-parent-ref-id",entityType:n.Operation,entityId:$s},o1={id:Bb,type:n.OutputMap,version:1,writesValues:[Mb],declaration:vi,index:0,parent:s1},l1={type:n.GenericReference,id:"append-string-to-list-called-by-ref-id",entityType:n.Condition,entityId:ia},c1={type:n.GenericReference,id:"latest-string-to-add-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Bb},d1={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:n.Operation,entityId:$s},Ub={id:"latest-string-to-add-input-map-id",version:1,type:n.InputMap,declaration:el,name:null,description:null,readsValue:c1,defaultValue:null,index:1,parent:d1},u1={type:n.GenericReference,id:"append-string-to-list-parent-ref-id",entityType:n.FunctionDeclaration,entityId:Qt},p1={type:n.Operation,id:$s,declaration:ja,version:1,inputs:[Fb,Ub],outputs:[o1],calledByError:[],process:null,calledByEntry:[],calledBySuccess:[l1],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:u1},y1={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:na},h1={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-parent-ref-id",entityType:n.Loop,entityId:Qt},f1={type:n.GenericReference,id:"current-iteration-number-to-check-map-reads-value-ref-id",entityType:n.OutputMap,entityId:ra},xb={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-ref-two-id",entityType:n.Condition,entityId:ia},m1={id:"current-iteration-number-to-check-map-id",version:1,type:n.InputMap,declaration:jr.fixedArguments[0],name:null,description:null,readsValue:f1,index:1,defaultValue:null,parent:xb},T1={type:n.GenericReference,id:"max-num-iterations-value-map-default-value-parent-ref-id",entityType:n.InputMap,entityId:"max-num-iterations-value-map-id"},E1={id:"max-num-iterations-value-map-id",version:1,type:n.InputMap,declaration:jr.fixedArguments[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:I.Number,value:10,autogeneration:null,valueAsType:null,parent:T1},parent:xb},b1={type:n.Condition,id:ia,version:1,declaration:jr,inputs:[E1,m1],calledByError:[],calledByEntry:[y1],calledBySuccess:[],successCalls:[Lb,p1],errorCalls:[Gb],x:0,y:0,parent:h1},R1={type:n.GenericReference,id:"base-string-map-ref-id",entityType:n.InputMap,entityId:"join-hello-world-and-number-base-string-map-id"},g1={type:n.GenericReference,id:"join-hello-world-and-number-base-string-map-parent-ref-id",entityType:n.Operation,entityId:Ls},v1={id:"join-hello-world-and-number-base-string-map-id",type:n.InputMap,version:1,declaration:Ua,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:I.String,parent:R1,valueAsType:null,autogeneration:null},index:0,parent:g1},I1={type:n.GenericReference,id:"assembly-string-map-parent-ref-id",entityType:n.Operation,entityId:Ls},D1={id:fc,type:n.OutputMap,version:1,writesValues:[Ub,$b],declaration:vi,index:0,parent:I1},P1={type:n.GenericReference,id:"join-hello-world-and-number-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:na},A1={type:n.GenericReference,id:"current-iteration-number-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:ra},O1={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:n.Operation,entityId:Ls},jb={id:"current-iteration-number-input-map-id",version:1,type:n.InputMap,declaration:xa,name:null,description:null,readsValue:A1,defaultValue:null,index:1,parent:O1},S1={type:n.GenericReference,id:"join-hello-world-and-number-parent-ref-id",entityType:n.FunctionDeclaration,entityId:Qt},C1={type:n.Operation,id:Ls,declaration:Ii,version:1,inputs:[v1,jb],outputs:[D1],process:null,calledByError:[],calledByEntry:[P1],calledBySuccess:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:S1},B1={id:"manual-hello-world-loop-iterations-results-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:hc,entityType:n.ArgumentDeclaration},w1={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:B1},_1={id:"manual-hello-world-loop-previous-iterations-results-output-map-parent-ref-id",type:n.GenericReference,entityId:na,entityType:n.FunctionDeclaration},N1={id:hc,type:n.ArgumentDeclaration,version:1,name:"Previous iterations results",description:"The results of the previous iterations of the loop.",required:!0,dataType:w1,implements:null,writesValues:[Fb],index:1,parent:_1},M1={id:"manual-hello-world-loop-current-iteration-number-output-map-parent-ref-id",type:n.GenericReference,entityId:na,entityType:n.FunctionDeclaration},V1={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:ra,entityType:n.ArgumentDeclaration};n.DataType;const L1={id:ra,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:dl,dataType:null,writesValues:[jb,Vb],index:0,parent:M1},$1={id:"manual-flow-loop-body-parent-ref-id",type:n.GenericReference,entityId:Qt,entityType:n.Loop},G1={id:na,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called multiple times, once for each iteration of the loop.",inputs:[L1,N1],calls:[b1,C1],implements:ul,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:$1},F1={type:n.GenericReference,id:"hello-world-loop-iteration-result-inline-output-declaration-parent-ref-id",entityType:n.Loop,entityId:Qt},kb={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:F1},U1={type:n.GenericReference,id:"hello-world-loop-break-statement-output-map-parent-ref-id",entityType:n.Loop,entityId:Qt},x1={type:n.OutputMap,id:wb,version:1,declaration:kb,writesValues:[_b],index:0,parent:U1},j1={id:"manual-hello-world-loop-parent-ref-id",type:n.GenericReference,entityId:z,entityType:n.Project},k1={id:"manual-hello-world-loop-called-by-ref-id",type:n.GenericReference,entityId:pc,entityType:n.FunctionDeclaration},q1={id:Qt,type:n.Loop,version:1,declaration:ll,inputs:[],outputsDeclarations:[kb],outputs:[x1],body:G1,successCalls:[Nb],errorCalls:[],process:null,error:null,calledByError:[],calledByEntry:[k1],calledBySuccess:[],breakStatements:[Lb],continueStatements:[Gb],x:0,y:0,parent:j1},J1={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref-id",entityType:n.Project,entityId:z},qb={type:n.FunctionDeclaration,id:pc,version:1,name:"Manual hello world loop",description:null,inputs:[],calls:[q1],returnStatements:[Nb],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:J1},W1={type:n.GenericReference,id:"call-hello-world-loop-parent-ref-id",entityType:n.Project,entityId:z},H1={id:"call-hello-world-loop-id",type:n.FunctionCall,version:1,declaration:qb,inputs:[],outputs:[],process:null,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:W1},yn="company-dto-function-declaration-id",mc="company-dto-func-declaration-argument-dcl-id",en="company-dto-function-company-variable-id",Fn="company-dto-function-company-dto-variable-id",Xr="iterate-over-employee-list-loop-id",Jb="iterate-over-employee-list-loop-employee-dto-output-map-id",Tc="iterate-over-employee-list-loop-body-current-employee-argument-declaration-id",aa="iterate-over-employee-list-loop-body-map-employee-dto-function-call-id",Wb="iterate-over-employee-list-continue-statement-employee-dto-output-decl-id",Y1="iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-id",Hb="iterate-over-employee-list-continue-statement-id",Gs="iterate-over-employee-list-loop-body-id",Yb="company-dto-func-declaration-return-statement-id",zb="company-dto-func-declaration-return-decl-id",Zb="company-dto-func-declaration-company-variable-id-output-map-id",Kb="company-dto-func-declaration-company-variable-employess-output-map-id",Xb="company-dto-func-declaration-company-variable-name-output-map-id",z1="company-dto-func-declaration-company-dto-variable-input-map-id",Z1="company-dto-func-declaration-company-dto-variable-employess-input-map-id",K1="company-dto-func-declaration-company-dto-variable-name-input-map-id",Fs="company-dto-func-declaration-owner-variable-id",X1="company-dto-func-declaration-company-dto-variable-owner-input-map-id",Qb="company-dto-func-declaration-company-variable-owner-output-map-id",eR="company-dto-func-declaration-owner-variable-id-output-map-id",Us="company-dto-func-declaration-bank-account-variable-id",Q1="company-dto-func-declaration-company-dto-variable-bank-account-input-map-id",tR="company-dto-func-declaration-company-variable-bank-account-output-map-id",nR="company-dto-func-declaration-bank-account-variable-id-output-map-id",eV={type:n.GenericReference,id:"company-dto-func-returned-company-dto-data-type-parent-ref-id",entityType:n.ReturnDeclaration,entityId:zb},tV={like:!1,inferred:!1,id:"company-dto-func-returned-company-dto-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:vt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:eV},nV={type:n.GenericReference,id:"company-dto-func-returned-company-dto-parent-ref-id",entityType:n.ReturnStatement,entityId:Yb},rV={type:n.GenericReference,id:"company-dto-func-returned-company-dto-reads-value-ref-id",entityType:n.VariableDeclaration,entityId:Fn},rR={isError:!1,id:zb,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:tV,readsValue:rV,required:!0,index:0,parent:nV},iV={type:n.GenericReference,id:"company-dto-func-return-statement-called-by-ref-id",entityType:n.Operation,entityId:Fn},aV={type:n.GenericReference,id:"company-dto-func-return-statement-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yn},Ec={type:n.ReturnStatement,id:Yb,version:1,outputs:[rR],calledByError:[],calledByEntry:[],calledBySuccess:[iV],throws:null,x:0,y:0,parent:aV},sV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-owner-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:eR},oV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-owner-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:Fn},iR={id:X1,type:n.InputMap,version:1,declaration:null,name:"owner_id",description:null,defaultValue:null,index:5,readsValue:sV,parent:oV},lV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:nR},cV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:Fn},aR={id:Q1,type:n.InputMap,version:1,declaration:null,name:"bank_account_id",description:null,defaultValue:null,index:4,readsValue:lV,parent:cV},dV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-name-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Xb},uV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-name-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:Fn},sR={id:K1,type:n.InputMap,version:1,declaration:null,name:"name",description:null,defaultValue:null,index:3,readsValue:dV,parent:uV},pV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-employess-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Jb},yV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-employess-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:Fn},oR={id:Z1,type:n.InputMap,version:1,declaration:null,name:"employees",description:null,defaultValue:null,index:2,readsValue:pV,parent:yV},hV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Zb},fV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:Fn},lR={id:z1,type:n.InputMap,version:1,declaration:null,name:"id",description:"The ID of the company",defaultValue:null,index:1,readsValue:hV,parent:fV},mV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yn},TV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-one-id",entityType:n.VariableDeclaration,entityId:Us},EV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-two-id",entityType:n.VariableDeclaration,entityId:Fs},bV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-three-id",entityType:n.VariableDeclaration,entityId:Xr},bc={id:Fn,type:n.VariableDeclaration,version:1,name:"Company DTO",dataType:null,description:"A variable holding the data of a mapped company DTO",calledByError:[],calledByEntry:[],calledBySuccess:[TV,EV,bV],successCalls:[Ec],errorCalls:[],readsValue:null,writesValues:[rR],inputs:[lR,sR,aR,iR,oR],outputs:[],internalCalls:[],parent:mV,x:0,y:0},or="employee-dto-func-declaration-id",Rc="employee-dto-func-declaration-argument-dcl-id",cR="employee-dto-func-declaration-return-statement-id",dR="employee-dto-func-declaration-return-decl-id",lr="employee-dto-func-declaration-employee-variable-id",cr="employee-dto-func-declaration-employee-dto-variable-id",xs="employee-dto-func-declaration-manager-variable-id",uR="employee-dto-func-declaration-employee-variable-id-output-map-id",pR="employee-dto-func-declaration-employee-variable-birth-date-output-map-id",yR="employee-dto-func-declaration-employee-variable-department-output-map-id",hR="employee-dto-func-declaration-employee-variable-manager-output-map-id",fR="employee-dto-func-declaration-manager-variable-id-output-map-id",RV="employee-dto-func-declaration-employee-dto-variable-input-map-id",gV="employee-dto-func-declaration-employee-dto-variable-birth-date-input-map-id",vV="employee-dto-func-declaration-employee-dto-variable-department-input-map-id",IV="employee-dto-func-declaration-employee-dto-variable-manager-input-map-id",DV={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-data-type-parent-ref-id",entityType:n.ReturnDeclaration,entityId:dR},PV={like:!1,inferred:!1,id:"employee-dto-func-returned-employee-dto-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:vt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:DV},AV={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-parent-ref-id",entityType:n.ReturnStatement,entityId:cR},OV={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-reads-value-ref-id",entityType:n.VariableDeclaration,entityId:cr},mR={isError:!1,id:dR,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:PV,implements:null,readsValue:OV,required:!0,index:0,parent:AV},SV={type:n.GenericReference,id:"employee-dto-func-return-statement-called-by-ref-id",entityType:n.Operation,entityId:cr},CV={type:n.GenericReference,id:"employee-dto-func-return-statement-parent-ref-id",entityType:n.FunctionDeclaration,entityId:or},gc={type:n.ReturnStatement,id:cR,version:1,outputs:[mR],calledByError:[],calledByEntry:[],calledBySuccess:[SV],throws:null,x:0,y:0,parent:CV},BV={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:fR},wV={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:cr},TR={id:IV,type:n.InputMap,version:1,declaration:null,name:"manager_id",description:null,defaultValue:null,index:4,readsValue:BV,parent:wV},_V={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-department-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:yR},NV={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-department-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:cr},ER={id:vV,type:n.InputMap,version:1,declaration:null,name:"department_name",description:null,defaultValue:null,index:3,readsValue:_V,parent:NV},MV={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:pR},VV={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:cr},bR={id:gV,type:n.InputMap,version:1,declaration:null,name:"birth_date",description:null,defaultValue:null,index:2,readsValue:MV,parent:VV},LV={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-reads-value-ref-id",entityType:n.OutputMap,entityId:uR},$V={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:cr},RR={id:RV,type:n.InputMap,version:1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:LV,parent:$V},GV={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:or},FV={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-called-by-ref-id",entityType:n.VariableDeclaration,entityId:xs},UV={id:cr,type:n.VariableDeclaration,version:1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",calledByError:[],calledByEntry:[],calledBySuccess:[FV],successCalls:[gc],errorCalls:[],readsValue:null,writesValues:[mR],inputs:[RR,bR,ER,TR],outputs:[],internalCalls:[],parent:GV,x:0,y:0},xV={type:n.GenericReference,id:"employee-dto-func-manager-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:xs},jV={id:fR,type:n.OutputMap,version:1,declaration:Fe.properties[1],index:0,writesValues:[TR],parent:xV},kV={type:n.GenericReference,id:"employee-dto-func-manager-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:xs},qV={like:!1,inferred:!1,id:"employee-dto-func-manager-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ct,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:kV,defaultValue:null},JV={type:n.GenericReference,id:"employee-dto-func-manager-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:hR},WV={type:n.GenericReference,id:"employee-dto-func-manager-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:or};n.GenericReference,n.VariableDeclaration;const gR={id:xs,type:n.VariableDeclaration,version:1,name:"Manager",dataType:qV,description:"A variable holding an inherited manager",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[UV],errorCalls:[],readsValue:JV,writesValues:[],inputs:[],outputs:[jV],internalCalls:[],parent:WV,x:0,y:0},HV={type:n.GenericReference,id:"employee-dto-func-employee-variable-manager-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:lr},YV={id:hR,type:n.OutputMap,version:1,declaration:Ct.properties[2],index:3,writesValues:[gR],parent:HV},zV={type:n.GenericReference,id:"employee-dto-func-employee-variable-department-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:lr},ZV={id:yR,type:n.OutputMap,version:1,declaration:Ct.properties[0],index:2,writesValues:[ER],parent:zV},KV={type:n.GenericReference,id:"employee-dto-func-employee-variable-birth-date-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:lr},XV={id:pR,type:n.OutputMap,version:1,declaration:yt.properties[1],index:1,writesValues:[bR],parent:KV},QV={type:n.GenericReference,id:"employee-dto-func-employee-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:lr},eL={id:uR,type:n.OutputMap,version:1,declaration:Fe.properties[1],index:0,writesValues:[RR],parent:QV},tL={type:n.GenericReference,id:"employee-dto-func-employee-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:lr},nL={like:!1,inferred:!1,id:"employee-dto-func-employee-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ct,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:tL,defaultValue:null},rL={type:n.GenericReference,id:"employee-dto-func-employee-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:or},iL={type:n.GenericReference,id:"employee-dto-func-employee-variable-reads-value-ref-id",entityType:n.ArgumentDeclaration,entityId:Rc},aL={type:n.GenericReference,id:"employee-dto-func-employee-variable-called-by-id",entityType:n.FunctionDeclaration,entityId:or},vR={id:lr,type:n.VariableDeclaration,version:1,name:"Company employee",dataType:nL,description:"A variable holding a company employee",calledByError:[],calledByEntry:[aL],calledBySuccess:[],successCalls:[gR],errorCalls:[],readsValue:iL,writesValues:[],inputs:[],outputs:[eL,XV,ZV,YV],internalCalls:[],parent:rL,x:0,y:0},sL={type:n.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-data-type-parent-ref-id",entityId:Rc,entityType:n.ArgumentDeclaration},oL={type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"employee-dto-func-declaration-employee-input-declaration-data-type-id",version:1,entity:Ct,asType:!1,isList:!1,isNullable:!1,constant:!1,like:!1,inferred:!1,parent:sL,defaultValue:null},lL={type:n.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-parent-ref-id",entityId:or,entityType:n.FunctionDeclaration},cL={type:n.ArgumentDeclaration,id:Rc,version:1,name:"Employee",description:"The employee to create a DTO for",required:!0,implements:null,dataType:oL,index:0,writesValues:[vR],parent:lL},dL={type:n.GenericReference,id:"employee-dto-function-declaration-parent-ref-id",entityType:n.Project,entityId:z},vc={type:n.FunctionDeclaration,id:or,version:1,name:"Employee DTO",description:"Takes a employee and returns a DTO of that employee",index:null,inputs:[cL],calls:[vR],implements:null,returnStatements:[gc],collapsed:!1,private:!1,x:0,y:0,parent:dL},uL={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:Wb,entityType:n.ReturnDeclaration},pL={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:Ct,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:uL},yL={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-reads-value-ref-id",type:n.GenericReference,entityId:aa,entityType:n.OutputMap},hL={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-parent-ref-id",type:n.GenericReference,entityId:Hb,entityType:n.ContinueStatement},IR={isError:!1,id:Wb,type:n.ReturnDeclaration,version:1,name:"Employee DTO",description:"The DTO of the employee entity.",readsValue:yL,dataType:pL,implements:null,required:!0,index:0,parent:hL},fL={id:"iterate-over-employee-list-continue-statement-called-by-ref-id",type:n.GenericReference,entityId:aa,entityType:n.FunctionCall},mL={id:"iterate-over-employee-list-continue-statement-parent-ref-id",type:n.GenericReference,entityId:Xr,entityType:n.Loop},DR={id:Hb,type:n.ContinueStatement,version:1,calledByError:[],calledByEntry:[],calledBySuccess:[fL],outputs:[IR],throws:null,x:0,y:0,parent:mL},TL={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-parent-ref-id",type:n.GenericReference,entityId:aa,entityType:n.FunctionCall},EL={id:Y1,type:n.OutputMap,version:1,declaration:gc.outputs[0],writesValues:[IR],index:0,parent:TL},bL={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-reads-value-ref-id",type:n.GenericReference,entityId:Tc,entityType:n.ArgumentDeclaration},RL={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-parent-ref-id",type:n.GenericReference,entityId:aa,entityType:n.FunctionCall},PR={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:vc.inputs[0],readsValue:bL,index:0,defaultValue:null,parent:RL},gL={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-called-by-ref-id",type:n.GenericReference,entityId:Gs,entityType:n.FunctionDeclaration},vL={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-parent-ref-id",type:n.GenericReference,entityId:Gs,entityType:n.FunctionDeclaration},IL={id:aa,type:n.FunctionCall,version:1,declaration:vc,inputs:[PR],process:null,outputs:[EL],calledByError:[],calledByEntry:[gL],calledBySuccess:[],successCalls:[DR],errorCalls:[],error:null,x:0,y:0,parent:vL},DL={type:n.GenericReference,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-parent-ref-id",entityId:Tc,entityType:n.ArgumentDeclaration},PL={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:Ct,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:DL},AL={id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Gs,entityType:n.FunctionDeclaration},OL={id:Tc,type:n.ArgumentDeclaration,version:1,name:"Current employee",description:"The current employee entity being processed.",dataType:PL,required:!0,implements:Ya,index:0,writesValues:[PR],parent:AL},SL={id:"iterate-over-employee-list-loop-body-parent-ref-id",type:n.GenericReference,entityId:Xr,entityType:n.Loop},CL={id:Gs,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[OL],calls:[IL],implements:za,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:SL},BL={id:"iterate-over-employee-list-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:Xr,entityType:n.Loop},wL={id:"iterate-over-employee-list-loop-iteration-list-input-map-reads-value-ref-id",type:n.GenericReference,entityId:Kb,entityType:n.OutputMap},AR={id:"iterate-over-employee-list-loop-iteration-list-input-map-id",type:n.InputMap,version:1,name:null,description:null,declaration:tr.fixedArguments[0],defaultValue:null,readsValue:wL,index:0,parent:BL},_L={id:"iterate-over-employee-list-loop-parent-ref-id",type:n.GenericReference,entityId:yn,entityType:n.FunctionDeclaration},NL={id:"iterate-over-employee-list-loop-employee-dto-output-map-parent-ref-id",type:n.GenericReference,entityId:Xr,entityType:n.Loop},ML={id:Jb,type:n.OutputMap,version:1,declaration:tr.fixedReturns[0],writesValues:[oR],index:0,parent:NL},VL={type:n.GenericReference,id:"iterate-over-employee-list-loop-called-by-ref-id",entityType:n.VariableDeclaration,entityId:en},LL={id:Xr,type:n.Loop,version:1,declaration:tr,inputs:[AR],successCalls:[bc],errorCalls:[],outputsDeclarations:[],outputs:[ML],body:CL,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[VL],breakStatements:[],continueStatements:[DR],error:null,x:0,y:0,parent:_L},$L={type:n.GenericReference,id:"company-dto-func-bank-account-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:Us},GL={id:nR,type:n.OutputMap,version:1,declaration:Fe.properties[1],index:0,writesValues:[aR],parent:$L},FL={type:n.GenericReference,id:"company-dto-func-bank-account-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:Us},UL={like:!1,inferred:!1,id:"company-dto-func-bank-account-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:vt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:FL,defaultValue:null},xL={type:n.GenericReference,id:"company-dto-func-bank-account-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:tR},jL={type:n.GenericReference,id:"company-dto-func-bank-account-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yn};n.GenericReference,n.VariableDeclaration;const OR={id:Us,type:n.VariableDeclaration,version:1,name:"Bank account",dataType:UL,description:"A variable holding an inherited bank account",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[bc],errorCalls:[],readsValue:xL,writesValues:[],inputs:[],outputs:[GL],internalCalls:[],parent:jL,x:0,y:0},kL={type:n.GenericReference,id:"company-dto-func-owner-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:Fs},qL={id:eR,type:n.OutputMap,version:1,declaration:Fe.properties[1],index:0,writesValues:[iR],parent:kL},JL={type:n.GenericReference,id:"company-dto-func-owner-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:Fs},WL={like:!1,inferred:!1,id:"company-dto-func-owner-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:vt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:JL,defaultValue:null},HL={type:n.GenericReference,id:"company-dto-func-owner-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:Qb},YL={type:n.GenericReference,id:"company-dto-func-owner-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yn};n.GenericReference,n.VariableDeclaration;const SR={id:Fs,type:n.VariableDeclaration,version:1,name:"Owner",dataType:WL,description:"A variable holding an inherited owner",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[bc],errorCalls:[],readsValue:HL,writesValues:[],inputs:[],outputs:[qL],internalCalls:[],parent:YL,x:0,y:0},zL={type:n.GenericReference,id:"company-dto-func-company-variable-owner-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:en},ZL={id:Qb,type:n.OutputMap,version:1,declaration:vt.properties[2],index:4,writesValues:[SR],parent:zL},KL={type:n.GenericReference,id:"company-dto-func-company-variable-bank-account-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:en},XL={id:tR,type:n.OutputMap,version:1,declaration:vt.properties[2],index:3,writesValues:[OR],parent:KL},QL={type:n.GenericReference,id:"company-dto-func-company-variable-name-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:en},e$={id:Xb,type:n.OutputMap,version:1,declaration:vt.properties[0],index:2,writesValues:[sR],parent:QL},t$={type:n.GenericReference,id:"company-dto-func-company-variable-employess-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:en},n$={id:Kb,type:n.OutputMap,version:1,declaration:vt.properties[3],index:1,writesValues:[AR],parent:t$},r$={type:n.GenericReference,id:"company-dto-func-company-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:en},i$={id:Zb,type:n.OutputMap,version:1,declaration:Fe.properties[1],index:0,writesValues:[lR],parent:r$},a$={type:n.GenericReference,id:"company-dto-func-company-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:en},s$={like:!1,inferred:!1,id:"company-dto-func-company-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:vt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:a$,defaultValue:null},o$={type:n.GenericReference,id:"company-dto-func-company-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yn},l$={type:n.GenericReference,id:"company-dto-func-company-variable-reads-value-ref-id",entityType:n.ArgumentDeclaration,entityId:mc},c$={type:n.GenericReference,id:"company-dto-func-company-variable-called-by-id",entityType:n.FunctionDeclaration,entityId:yn},CR={id:en,type:n.VariableDeclaration,version:1,name:"Company",dataType:s$,description:"A variable holding a company",calledByError:[],calledByEntry:[c$],calledBySuccess:[],successCalls:[OR,SR,LL],errorCalls:[],readsValue:l$,writesValues:[],inputs:[],outputs:[i$,n$,e$,XL,ZL],internalCalls:[],parent:o$,x:0,y:0},d$={type:n.GenericReference,id:"company-dto-func-declaration-company-input-declaration-data-type-parent-ref-id",entityId:mc,entityType:n.ArgumentDeclaration},u$={type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"company-dto-func-declaration-company-input-declaration-data-type-id",version:1,entity:vt,asType:!1,isList:!1,isNullable:!1,constant:!1,like:!1,inferred:!1,parent:d$,defaultValue:null},p$={type:n.GenericReference,id:"company-dto-func-declaration-company-input-declaration-parent-ref-id",entityId:yn,entityType:n.FunctionDeclaration},y$={type:n.ArgumentDeclaration,id:mc,version:1,name:"Company",description:"The company to create a DTO for",required:!0,implements:null,dataType:u$,index:0,writesValues:[CR],parent:p$},h$={type:n.GenericReference,id:"company-dto-function-declaration-parent-ref-id",entityType:n.Project,entityId:z},Ic={type:n.FunctionDeclaration,id:yn,version:1,name:"Company DTO",description:"Takes a company and returns a DTO of that company",inputs:[y$],calls:[CR],implements:null,index:null,returnStatements:[Ec],collapsed:!1,private:!1,x:0,y:0,parent:h$},sa="exec-in-parallel-operation-call-id",oa="exec-sequentially-operation-call-id",ht="concurrency-and-wait-function-declaration-id",BR="concurrency-and-wait-return-statement-id",wR="concurrency-and-wait-return-declaration-id",Dc="exec-in-parallel-argument-map-id",_R="exec-sequentially-argument-map-id",Pc="wait-for-2-seconds-operation-id",NR="wait-for-2-seconds-argument-map-id",Ac="map-company-dto-function-call-id",MR="map-company-dto-function-call-company-dto-output-map-id",la="company-dto-variable-one-id",Oc="company-dto-variable-one-instance-id",f$="company-dto-variable-two-id",m$={type:n.GenericReference,id:"returned-company-dto-data-type-parent-ref-id",entityType:n.ReturnDeclaration,entityId:wR},T$={like:!1,inferred:!1,id:"returned-company-dto-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:vt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:m$},E$={type:n.GenericReference,id:"returned-company-dto-parent-ref-id",entityType:n.ReturnStatement,entityId:BR},b$={type:n.GenericReference,id:"returned-company-dto-reads-value-ref-id",entityType:n.VariableDeclaration,entityId:la},VR={isError:!1,id:wR,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:T$,implements:null,readsValue:b$,required:!0,index:0,parent:E$},R$={type:n.GenericReference,id:"concurrency-and-wait-return-statement-called-by-ref-id",entityType:n.Operation,entityId:Pc},g$={type:n.GenericReference,id:"concurrency-and-wait-return-statement-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},LR={type:n.ReturnStatement,id:BR,version:1,outputs:[VR],calledByError:[],calledByEntry:[],calledBySuccess:[R$],throws:null,x:0,y:0,parent:g$},v$={type:n.GenericReference,id:"company-dto-variable-two-called-by-ref-id",entityType:n.VariableInstance,entityId:Oc},I$={type:n.GenericReference,id:"company-dto-variable-two-reads-value-ref-id",entityType:n.VariableInstance,entityId:Oc},D$={type:n.GenericReference,id:"company-dto-variable-two-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},$R={id:f$,type:n.VariableDeclaration,version:1,name:"Company DTO",description:null,dataType:null,inputs:[],outputs:[],successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[v$],internalCalls:[],writesValues:[VR],readsValue:I$,x:0,y:0,parent:D$},P$={type:n.GenericReference,id:"company-dto-variable-one-instance-called-by-ref-id",entityType:n.VariableDeclaration,entityId:la},A$={type:n.GenericReference,id:"company-dto-variable-one-instance-reads-value-ref-id",entityType:n.VariableDeclaration,entityId:la},O$={type:n.GenericReference,id:"company-dto-variable-one-instance-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},S$={type:n.GenericReference,id:"company-dto-variable-one-instance-declaration-ref-id",entityType:n.VariableDeclaration,entityId:la},GR={id:Oc,type:n.VariableInstance,version:1,declaration:S$,inputs:[],outputs:[],successCalls:[$R],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[P$],internalCalls:[],writesValues:[$R],readsValue:A$,x:0,y:0,parent:O$},C$={type:n.GenericReference,id:"company-dto-variable-one-called-by-ref-id",entityType:n.FunctionCall,entityId:Ac},B$={type:n.GenericReference,id:"company-dto-variable-one-reads-value-ref-id",entityType:n.OutputMap,entityId:MR},w$={type:n.GenericReference,id:"company-dto-variable-one-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},FR={id:la,type:n.VariableDeclaration,version:1,name:"Company DTO",description:null,dataType:null,inputs:[],outputs:[],successCalls:[GR],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[C$],internalCalls:[],writesValues:[GR],readsValue:B$,x:0,y:0,parent:w$},UR={type:n.GenericReference,id:"map-company-dto-function-call-company-input-map-parent-ref-id",entityType:n.FunctionCall,entityId:Ac},_$={id:"map-company-dto-function-call-company-input-map-id",type:n.InputMap,version:1,declaration:Ic.inputs[0],name:null,description:null,defaultValue:null,index:0,readsValue:null,parent:UR},N$={id:MR,type:n.OutputMap,version:1,declaration:Ec.outputs[0],writesValues:[FR],index:0,parent:UR},M$={id:"map-company-dto-function-call-called-by-ref-id",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:ht},V$={id:"map-company-dto-function-call-parent-ref-id",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:ht},L$={id:Ac,type:n.FunctionCall,version:1,declaration:Ic,successCalls:[FR],process:null,errorCalls:[],inputs:[_$],outputs:[N$],calledByError:[],calledByEntry:[M$],calledBySuccess:[],parent:V$,x:0,y:0,error:null},$$={type:n.GenericReference,id:"last-timestamp-variable-datatype-parent-ref-id",entityType:n.VariableDeclaration,entityId:$E},G$={type:n.GenericReference,id:"last-timestamp-variable-default-value-parent-ref-id",entityType:n.DataType,entityId:"last-timestamp-variable-datatype-id"},F$={like:!1,inferred:!1,id:"last-timestamp-variable-datatype-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:cn,version:1,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:$$,defaultValue:{id:"last-timestamp-variable-default-value-id",type:n.PrimitiveValue,version:1,name:I.Date,value:null,autogeneration:{type:qe.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:G$,valueAsType:null}},U$={type:n.GenericReference,id:"last-timestamp-variable-main-project-ref-id",entityType:n.Project,entityId:z},Sc={id:$E,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:F$,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:U$},x$={type:n.GenericReference,id:"wait-for-2-seconds-argument-default-value-parent-ref-id",entityType:n.InputMap,entityId:NR},j$={type:n.GenericReference,id:"wait-for-2-seconds-argument-map-parent-ref-id",entityType:n.Operation,entityId:Pc},k$={id:NR,type:n.InputMap,version:1,declaration:Xn,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:I.Number,parent:x$},index:0,parent:j$},q$={type:n.GenericReference,id:"wait-for-2-seconds-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},J$={type:n.GenericReference,id:"wait-for-2-seconds-called-by-ref-one-id",entityType:n.FunctionDeclaration,entityId:oa},W$={type:n.GenericReference,id:"wait-for-2-seconds-called-by-ref-two-id",entityType:n.FunctionDeclaration,entityId:sa},xR={id:Pc,type:n.Operation,version:1,declaration:xt,inputs:[k$],outputs:[],process:null,successCalls:[LR],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[J$,W$],calledBySuccess:[],error:null,parent:q$},H$={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"},Y$={type:n.GenericReference,id:"wait-for-random-amount-argument-map-parent-ref-id",entityType:n.Operation,entityId:"wait-for-random-amount-id"},z$={id:"wait-for-random-amount-input-map-id",type:n.InputMap,version:1,declaration:Xn,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:I.Number,parent:H$},index:0,parent:Y$},Z$={type:n.GenericReference,id:"wait-for-random-amount-parent-ref-id",entityType:n.Project,entityId:z},Qr={id:"wait-for-random-amount-id",type:n.Operation,version:1,declaration:xt,inputs:[z$],process:null,outputs:[],successCalls:[],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,parent:Z$},jR="list-of-functions-variable-id",K$={type:n.GenericReference,id:"list-of-functions-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:jR},X$={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.",argumentsType:M.Dynamic,dynamicArgumentTypes:null,fixedArguments:[],returnsType:M.Dynamic,error:null,dynamicReturnTypes:null,fixedReturns:[],parent:null},Q$={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"},eG={like:!1,inferred:!1,id:"list-of-functions-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:X$,asType:!1,isList:!0,isNullable:!1,defaultValue:{id:"list-of-functions-variable-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:I.ActionDescriptor,value:null,valueAsType:[Qr,Qr,Qr,Qr,Qr],autogeneration:null,parent:Q$},constant:!1,parent:K$},tG={type:n.GenericReference,id:"list-of-functions-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht};n.GenericReference,n.InputMap;const nG={type:n.GenericReference,id:"list-of-functions-variable-writes-value-one-ref-id",entityType:n.InputMap,entityId:_R},rG={type:n.GenericReference,id:"list-of-functions-variable-writes-value-two-ref-id",entityType:n.InputMap,entityId:Dc},kR={id:jR,type:n.VariableDeclaration,version:1,name:"List of functions to execute",description:"A list of functions to be executed in parallel",dataType:eG,parent:tG,readsValue:null,writesValues:[nG,rG],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],inputs:[],outputs:[],internalCalls:[],x:0,y:0},iG={type:n.GenericReference,id:"exec-in-parallel-return-map-parent-ref-id",entityType:n.Operation,entityId:sa},aG={type:n.GenericReference,id:"exec-in-parallel-result-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},sG={type:n.GenericReference,id:"exec-in-parallel-result-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:"exec-in-parallel-return-map-id"},oG={type:n.GenericReference,id:"exec-in-parallel-result-variable-called-by-ref-id",entityType:n.Operation,entityId:sa},qR={id:"exec-in-parallel-result-variable-id",type:n.VariableInstance,version:1,declaration:Sc,readsValue:sG,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[oG],successCalls:[],errorCalls:[],internalCalls:[],parent:aG,x:0,y:0},lG={id:"exec-in-parallel-return-map-id",type:n.OutputMap,version:1,declaration:nl,writesValues:[qR],index:0,parent:iG},cG={type:n.GenericReference,id:"exec-in-parallel-argument-map-parent-ref-id",entityType:n.Operation,entityId:sa},dG={id:Dc,type:n.InputMap,version:1,declaration:tl,name:null,description:null,readsValue:kR,defaultValue:null,index:0,parent:cG},uG={type:n.GenericReference,id:"exec-in-parallel-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},pG={type:n.GenericReference,id:"exec-in-parallel-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:ht},yG={process:null,id:sa,type:n.Operation,version:1,declaration:xt,inputs:[dG],outputs:[lG],successCalls:[xR,qR],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[pG],calledBySuccess:[],error:null,parent:uG},hG={type:n.GenericReference,id:"exec-sequentially-return-map-parent-ref-id",entityType:n.Operation,entityId:oa},fG={type:n.GenericReference,id:"exec-sequentially-result-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},mG={type:n.GenericReference,id:"exec-sequentially-result-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:"exec-sequentially-return-map-id"},TG={type:n.GenericReference,id:"exec-sequentially-result-variable-called-by-ref-id",entityType:n.Operation,entityId:oa},JR={id:"exec-sequentially-result-variable-id",type:n.VariableInstance,version:1,declaration:Sc,readsValue:mG,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[TG],successCalls:[],errorCalls:[],internalCalls:[],parent:fG,x:0,y:0},EG={id:"exec-sequentially-return-map-id",type:n.OutputMap,version:1,declaration:il,writesValues:[JR],index:0,parent:hG},bG={type:n.GenericReference,id:"exec-sequentially-argument-map-parent-ref-id",entityType:n.Operation,entityId:oa},RG={id:_R,type:n.InputMap,version:1,declaration:rl,name:null,description:null,readsValue:kR,defaultValue:null,index:0,parent:bG},gG={type:n.GenericReference,id:"exec-sequentially-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},vG={type:n.GenericReference,id:"exec-sequentially-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:ht},IG={id:oa,type:n.Operation,version:1,declaration:dn,inputs:[RG],process:null,outputs:[EG],successCalls:[xR,JR],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[vG],calledBySuccess:[],error:null,parent:gG},DG={type:n.GenericReference,id:"concurrency-and-wait-parent-ref-id",entityType:n.Project,entityId:z},PG={type:n.FunctionDeclaration,id:ht,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:[IG,yG,L$],returnStatements:[LR],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:DG},AG={type:n.GenericReference,id:"3521f2c8-a5c0-419c-8808-4fc6a73d0b78",entityType:n.ReturnDeclaration,entityId:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},OG={like:!1,inferred:!1,id:"ce8b9a30-afe9-4d4f-879f-1677efca2c47",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:vt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:AG},SG={type:n.GenericReference,id:"8ee66e38-b060-474e-a503-594063a8ec24",entityType:n.ReturnStatement,entityId:"40a23a98-d3b2-42b1-9652-b33779ad15aa"},CG={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:OG,readsValue:null,required:!0,index:0,parent:SG},BG={type:n.GenericReference,id:"9cb3c1e4-7250-4be6-be2a-69c2dd366d6f",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},wG={type:n.GenericReference,id:"c065fcdd-e054-4f95-941c-7eaa65c35d04",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},WR={type:n.ReturnStatement,id:"40a23a98-d3b2-42b1-9652-b33779ad15aa",version:1,outputs:[CG],calledByError:[],calledByEntry:[wG],calledBySuccess:[],throws:null,x:0,y:0,parent:BG},_G={type:n.GenericReference,id:"312ef836-9e40-4d57-b177-03b7145ed074",entityType:n.Project,entityId:z},NG={type:n.FunctionDeclaration,id:"5059c093-eda2-4efc-b7b4-aaaadd4d44de",version:1,name:"Create new company",description:null,inputs:[],calls:[WR],index:null,implements:null,returnStatements:[WR],collapsed:!1,private:!1,x:0,y:0,parent:_G},Cc="get-current-date-and-time-func-decl-id",HR="get-current-date-and-time-return-statement-id",YR="get-current-date-and-time-return-declaration-id",zR="get-current-date-and-time-return-declaration-data-type-id",MG={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-value-parent-ref-id",entityType:n.DataType,entityId:zR},VG={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-parent-ref-id",entityType:n.ReturnDeclaration,entityId:YR},LG={type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,id:zR,version:1,entity:cn,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:I.Date,valueAsType:null,autogeneration:{type:qe.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:MG},constant:!1,parent:VG},$G={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-parent-ref-id",entityType:n.ReturnStatement,entityId:HR};n.ReturnDeclaration;const GG={type:n.GenericReference,id:"get-current-date-and-time-return-statement-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:Cc},FG={type:n.GenericReference,id:"get-current-date-and-time-return-statement-parent-ref-id",entityType:n.FunctionDeclaration,entityId:Cc};n.ReturnStatement;const UG={type:n.GenericReference,id:"concurrency-and-wait-parent-ref-id",entityType:n.Project,entityId:z},xG={type:n.FunctionDeclaration,id:Cc,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:UG},ZR="do-math-return-statement-id",KR="do-math-return-declaration-id",jG={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"},kG={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:te,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:jG},qG={type:n.GenericReference,id:"do-math-func-decl-ref-two-id",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},JG={type:n.GenericReference,id:"do-math-func-var-to-return-one-map-ref-id",entityType:n.ReturnDeclaration,entityId:KR},WG={type:n.VariableDeclaration,id:"do-math-func-var-to-return-one-id",version:1,description:null,name:"Fixed result",dataType:kG,readsValue:null,writesValues:[JG],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:qG},HG={type:n.GenericReference,id:"96ec244e-594b-45f7-802b-6dc3056920f6",entityType:n.ReturnStatement,entityId:ZR},YG={type:n.GenericReference,id:"d120c0cc-9d13-4e45-90e2-4e1ee825ca46",entityType:n.ReturnDeclaration,entityId:"873a3556-4911-4141-b2a0-49c677b56fb4"},zG={like:!1,inferred:!1,id:"da91aa23-9985-49ac-a8bf-9d623ba1ba8f",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:YG},ZG={isError:!1,id:KR,version:1,type:n.ReturnDeclaration,name:"Result",description:null,implements:null,dataType:zG,readsValue:WG,required:!0,index:0,parent:HG},KG={type:n.GenericReference,id:"57fd93e4-93a1-484e-82eb-4dd15d2d0e24",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},XG={type:n.GenericReference,id:"0a86e8d5-ab21-476e-a482-b928cbf351e3",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},XR={type:n.ReturnStatement,id:ZR,version:1,outputs:[ZG],calledByError:[],calledByEntry:[],calledBySuccess:[KG],parent:XG,throws:null,x:0,y:0},QG={type:n.GenericReference,id:"a2db26be-57f2-48e5-9769-cdbf0d95dc7c",entityType:n.VariableDeclaration,entityId:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a"},eF={like:!1,inferred:!1,id:"c3e9d5f0-204f-45f9-85f7-e1b56b468388",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:QG},tF={type:n.GenericReference,id:"692122c5-610a-4504-90dd-f5a5202d116c",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},nF={type:n.GenericReference,id:"do-math-func-return-one-called-by",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},rF={type:n.GenericReference,id:"6dceb501-be5b-4252-afb4-3c0d08abba33",entityType:n.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},QR={type:n.VariableDeclaration,id:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a",version:1,name:"Result",dataType:eF,description:null,readsValue:rF,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[nF],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:tF},iF={type:n.GenericReference,id:"5440f523-af38-4981-8035-89d162fe8041",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},aF={type:n.GenericReference,id:"8c482c35-e674-4713-a1dd-63c3d13b611c",entityType:n.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},sF={type:n.GenericReference,id:"c0a299cd-5869-4930-8cf0-90e3ceb8a903",entityType:n.VariableDeclaration,entityId:"46b2fe23-b417-4887-a35d-09b186679172"},oF={like:!1,inferred:!1,id:"51c0c1df-2ee3-41df-ae52-ac512d8cf795",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:sF},lF={type:n.GenericReference,id:"do-math-func-return-two-called-by",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},eg={type:n.VariableDeclaration,id:"46b2fe23-b417-4887-a35d-09b186679172",version:1,name:"Total",description:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[lF],successCalls:[],errorCalls:[],dataType:oF,readsValue:aF,writesValues:[],internalCalls:[],parent:iF,x:0,y:0},tg={type:n.GenericReference,id:"6e4d776e-6af2-4321-b630-c78110fd677c",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},cF={type:n.GenericReference,id:"5b60955b-2486-40b6-bb24-ffd97ccd8902",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},dF={type:n.GenericReference,id:"1a49923f-bc6f-453f-a438-e74e5475c2a9",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},uF={type:n.GenericReference,id:"02bfde0a-b757-4072-9613-6e9c7c9a424a",entityType:n.ArgumentDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},ng={id:"928953b0-0e3f-4d8c-ae5a-84620b4b8c68",version:1,type:n.InputMap,declaration:Wo,name:null,description:null,readsValue:uF,defaultValue:null,index:0,parent:dF},pF={id:"64752080-ee0f-4cfe-9897-a0668f2b2aca",type:n.OutputMap,version:1,declaration:Yo,writesValues:[QR,eg],index:0,parent:cF},yF={type:n.GenericReference,id:"d235a7f6-07ff-4f35-98d2-8f42dd59cf9f",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},hF={id:"8827e8e9-9381-4ad7-8f61-5419c23c9136",type:n.GenericReference,entityType:n.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},rg={id:"a5525249-0eb5-472b-97bc-5e4cc0d75aee",version:1,type:n.InputMap,declaration:Ho,name:null,description:null,readsValue:hF,defaultValue:null,index:1,parent:yF},fF={type:n.Operation,id:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e",declaration:Fa,version:1,inputs:[ng,rg],outputs:[pF],calledByError:[],calledByEntry:[tg],calledBySuccess:[],process:null,successCalls:[XR,QR,eg],errorCalls:[],parent:tg,error:null,x:0,y:0},mF={type:n.GenericReference,id:"a2c40226-2270-4963-a865-c777ba79c551",entityType:n.DataType,entityId:"a350a9e9-25ee-477f-a83d-9e98ed2451662"},TF={id:"f47731b3-f278-4ab5-aeb2-24519c1119fb",type:n.GenericReference,entityId:"72a338d8-0183-4ca2-8760-227517854595",entityType:n.ArgumentDeclaration},ig={like:!1,inferred:!1,id:"a350a9e9-25ee-477f-a83d-9e98ed2451662",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"do-math-func-argument-two-default-value-id",type:n.PrimitiveValue,version:1,value:1,name:I.Number,parent:mF,valueAsType:null,autogeneration:null},constant:!1,parent:TF},EF={type:n.GenericReference,id:"5f5d8dd0-7f3b-40cd-9f84-83d976887eaf",entityType:n.ArgumentDeclaration,entityId:"649bf0a4-6532-44aa-9818-a03d1c6564e9"},bF={type:n.GenericReference,id:"ca018d0f-a8b3-4c7e-a408-c8b372d04aff",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},RF={type:n.GenericReference,id:"do-math-func-var-called-by-ref",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},ag={type:n.VariableDeclaration,id:"72a338d8-0183-4ca2-8760-227517854595",version:1,name:"Z",description:null,dataType:ig,inputs:[],outputs:[],calledByError:[],calledByEntry:[RF],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:EF,writesValues:[rg],internalCalls:[],x:0,y:0,parent:bF},gF={entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",type:n.GenericReference,id:"af0cf105-4075-425f-aecc-b25d3600fcc4"},vF={id:"649bf0a4-6532-44aa-9818-a03d1c6564e9",type:n.ArgumentDeclaration,version:1,name:"Z",description:"The number to add",dataType:ig,implements:null,writesValues:[ag],required:!0,index:1,parent:gF},IF={type:n.GenericReference,id:"56953b5d-3e43-4dea-a62c-f3e868ba81bb",entityType:n.Project,entityId:z},DF={id:"868defc8-5c95-48ed-942d-257e8b9b9b00",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},PF={type:n.GenericReference,id:"35167664-a793-49f1-9eaf-fb57eac30897",entityType:n.DataType,entityId:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2"},AF={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:n.GenericReference,entityId:"d8895765-f705-457e-85fa-25d130926769",entityType:n.ArgumentDeclaration},OF={like:!1,inferred:!1,id:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"do-math-func-argument-one-default-value-id",type:n.PrimitiveValue,version:1,value:5,name:I.Number,parent:PF,valueAsType:null,autogeneration:null},constant:!1,parent:AF},SF={id:"d8895765-f705-457e-85fa-25d130926769",type:n.ArgumentDeclaration,version:1,name:"N",dataType:OF,description:"The number to add",implements:null,writesValues:[ng],required:!0,index:0,parent:DF},CF={type:n.FunctionDeclaration,id:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",version:1,name:"Do math",description:"This function does math",inputs:[SF,vF],calls:[fF,ag],implements:null,index:null,collapsed:!1,returnStatements:[XR],private:!1,x:0,y:0,parent:IF},ft="replace-bank-account-in-company-func-declaration-id",Bc="company-entity-to-modify-arg-declaration-id",wc="account-number-to-create-arg-decl-id",ei="company-main-variable-id",ti="search-person-by-id-id",sg="new-bank-account-owner-arg-decl-id",og="search-person-by-id-output-declaration-id",_c="search-person-by-id-output-entity-map-id",ca="person-not-empty-condition-id",js="create-new-bank-account-instance-operation-id",lg="create-new-bank-account-instance-operation-output-entity-map-id",cg="company-bank-account-output-map-id",Nc="old-bank-account-var-declaration-id",dg="old-bank-account-var-instance-id",ug="company-variable-instance-id",Mc="delete-bank-account-internal-call-id",da="new-bank-account-data-variable-declaration-id",BF={type:n.GenericReference,id:"company-variable-instance-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ft},wF={type:n.GenericReference,id:"company-variable-instance-called-by-ref-id",entityType:n.InternalCall,entityId:Mc},_F={type:n.GenericReference,id:"company-variable-instance-declaration-ref-id",entityType:n.VariableDeclaration,entityId:ei},NF={type:n.GenericReference,id:"bank-account-input-map-parent-ref-id",entityType:n.VariableInstance,entityId:ug},MF={type:n.GenericReference,id:"bank-account-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:lg},pg={type:n.InputMap,id:"bank-account-input-map-id",version:1,readsValue:MF,declaration:oc,name:null,description:null,index:0,defaultValue:null,parent:NF},VF={type:n.VariableInstance,id:ug,version:1,declaration:_F,inputs:[pg],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[wF],successCalls:[],errorCalls:[],internalCalls:[],parent:BF,readsValue:null,writesValues:[],x:0,y:0},LF={type:n.GenericReference,id:"bank-account-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:ei},$F={type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"bank-account-variable-data-type-id",version:1,entity:Zr,asType:!1,isList:!1,isNullable:!1,constant:!1,like:!1,inferred:!1,defaultValue:null,parent:LF},GF={type:n.GenericReference,id:"bank-account-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:cg},FF={type:n.GenericReference,id:"bank-account-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ft},UF={type:n.GenericReference,id:"bank-account-variable-called-by-ref-id",entityType:n.VariableDeclaration,entityId:ei},xF={type:n.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-id",entityType:n.Operation,entityId:js};n.GenericReference,n.VariableInstance;const jF={type:n.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-two-id",entityType:n.VariableDeclaration,entityId:Nc},kF={type:n.GenericReference,id:"old-bank-account-variable-trigger-delete-decl-ref-id",entityType:n.VariableDeclaration,entityId:Nc},qF={type:n.GenericReference,id:"bank-account-variable-parent-ref-two-id",entityType:n.FunctionDeclaration,entityId:ft},JF={type:n.GenericReference,id:"old-bank-account-variable-trigger-delete-internal-call-ref-id",entityType:n.InternalCall,entityId:Mc},WF={type:n.VariableInstance,id:dg,version:1,declaration:kF,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],internalCalls:[JF],errorCalls:[],parent:qF,readsValue:null,writesValues:[],x:0,y:0},yg={process:null,type:n.InternalCall,id:Mc,version:1,declaration:_l,index:0,successCalls:[VF],errorCalls:[],inputs:[],outputs:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[xF,jF],parent:WF},hg={type:n.VariableDeclaration,id:Nc,version:1,name:"Old bank account",description:"The existing bank account that needs to be replaced in the company entity",dataType:$F,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[UF],successCalls:[yg],internalCalls:[],errorCalls:[],parent:FF,readsValue:GF,writesValues:[],x:0,y:0},HF={type:n.GenericReference,id:"company-variable-declaration-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:ei},YF={type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"company-variable-declaration-data-type-id",version:1,entity:vt,asType:!1,isList:!1,isNullable:!1,like:!1,inferred:!1,constant:!1,defaultValue:null,parent:HF},zF={type:n.GenericReference,id:"company-variable-declaration-reads-value-ref-id",entityType:n.ArgumentDeclaration,entityId:Bc},ZF={type:n.GenericReference,id:"company-variable-declaration-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ft},KF={type:n.GenericReference,id:"company-variable-declaration-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:ft},XF={type:n.GenericReference,id:"company-bank-account-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:ei},QF={id:cg,version:1,type:n.OutputMap,declaration:oc,index:0,parent:XF,writesValues:[hg]},fg={type:n.VariableDeclaration,id:ei,version:1,name:"Company",description:"The company entity that was passed as an argument to the parent function",dataType:YF,inputs:[],outputs:[QF],calledByError:[],calledByEntry:[KF],calledBySuccess:[],successCalls:[hg],errorCalls:[],parent:ZF,internalCalls:[],readsValue:zF,writesValues:[],x:0,y:0},eU={type:n.GenericReference,id:"create-new-bank-account-account-owner-dynamic-input-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:da},tU={id:"create-new-bank-account-account-owner-dynamic-input-map-reads-value-ref-id",type:n.GenericReference,entityType:n.OutputMap,entityId:_c},mg={id:"create-new-bank-account-account-owner-dynamic-input-map-id",version:1,type:n.InputMap,declaration:null,name:"Account owner",description:null,readsValue:tU,index:1,defaultValue:null,parent:eU},nU={id:"create-new-bank-account-account-number-dynamic-input-map-reads-value-ref-id",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:wc},rU={type:n.GenericReference,id:"create-new-bank-account-account-number-dynamic-input-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:da},Tg={id:"create-new-bank-account-account-number-dynamic-input-map-id",version:1,type:n.InputMap,declaration:null,name:"Account number",description:null,readsValue:nU,defaultValue:null,index:0,parent:rU},Eg={type:n.GenericReference,id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",entityType:n.Operation,entityId:js},iU={id:"create-new-bank-account-instance-operation-entity-to-create-input-map-id",version:1,type:n.InputMap,declaration:Qn.fixedArguments[0],name:null,description:null,index:0,readsValue:null,defaultValue:{type:n.PrimitiveValue,name:I.EntityTemplate,value:null,valueAsType:Zr,autogeneration:null},parent:Eg},aU={type:n.GenericReference,id:"create-new-bank-account-instance-operation-entity-data-input-map-reads-value-ref-id",entityType:n.VariableDeclaration,entityId:da},bg={id:"create-new-bank-account-instance-operation-entity-data-input-map-id",version:1,type:n.InputMap,declaration:Qn.fixedArguments[1],name:null,description:null,index:1,readsValue:aU,defaultValue:null,parent:Eg},sU={type:n.GenericReference,id:"create-new-bank-account-instance-operation-output-entity-map-parent-ref-id",entityType:n.Operation,entityId:js},oU={id:lg,version:1,type:n.OutputMap,declaration:Qn.fixedReturns[0],index:0,writesValues:[pg],parent:sU},lU={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",entityType:n.Condition,entityId:ca},cU={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",entityType:n.VariableDeclaration,entityId:da},dU={type:n.GenericReference,id:"create-new-bank-account-instance-operation-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ft},Rg={process:null,id:js,type:n.Operation,version:1,declaration:Qn,inputs:[iU,bg],error:null,outputs:[oU],successCalls:[yg],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[cU,lU],parent:dU,x:0,y:0},uU={type:n.GenericReference,id:"new-bank-account-data-variable-declaration-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ft},pU={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",entityType:n.Condition,entityId:ca},yU={id:da,type:n.VariableDeclaration,version:1,inputs:[Tg,mg],dataType:null,name:"New bank Account's data",description:null,readsValue:null,outputs:[],writesValues:[bg],successCalls:[Rg],errorCalls:[],internalCalls:[],calledByError:[],calledBySuccess:[pU],calledByEntry:[],x:0,y:0,parent:uU},hU={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},fU={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,I.String;const mU={id:"person-not-found-thrown-error-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-error-return-statement-id",entityType:n.ReturnStatement},TU={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:mU,implements:null,required:!0,index:0,readsValue:null},EU={id:"person-not-found-error-return-statement-called-by-ref-id",type:n.GenericReference,entityId:ca,entityType:n.Condition},bU={id:"person-not-found-error-return-statement-parent-ref-id",type:n.GenericReference,entityId:ft,entityType:n.FunctionDeclaration},RU={id:"person-not-found-error-return-statement-id",type:n.ReturnStatement,version:1,throws:TU,outputs:[],calledBySuccess:[],calledByError:[EU],calledByEntry:[],x:0,y:0,parent:bU},gU={type:n.GenericReference,id:"person-not-empty-condition-called-by-ref-id",entityType:n.Search,entityId:ti},vU={type:n.GenericReference,id:"person-not-empty-condition-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ft},IU={type:n.GenericReference,id:"person-entity-to-check-map-reads-value-ref-id",entityType:n.OutputMap,entityId:_c},DU={type:n.GenericReference,id:"person-not-empty-condition-ref-two-id",entityType:n.Condition,entityId:ca},gg={id:"person-entity-to-check-map-id",version:1,type:n.InputMap,declaration:nr.fixedArguments[0],name:null,description:null,readsValue:IU,index:0,defaultValue:null,parent:DU},PU={type:n.Condition,id:ca,version:1,declaration:nr,inputs:[gg],calledByError:[],calledByEntry:[],calledBySuccess:[gU],successCalls:[yU,Rg],errorCalls:[RU],x:0,y:0,parent:vU},AU={type:n.GenericReference,id:"search-person-by-id-output-entity-declaration-datatype-parent-ref-id",entityType:n.ValueDescriptor,entityId:og},OU={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:yt,defaultValue:null,parent:AU},SU={type:n.GenericReference,id:"search-person-by-id-output-entity-declaration-parent-ref-id",entityType:n.Search,entityId:ti},vg={id:og,type:n.ValueDescriptor,version:1,dataType:OU,name:"Found person",description:"The person entity that was found",parent:SU,required:!0,index:0},CU={type:n.GenericReference,id:"search-person-by-id-output-entity-map-parent-ref-id",entityType:n.Search,entityId:ti},BU={type:n.OutputMap,id:_c,version:1,declaration:vg,parent:CU,writesValues:[gg,mg],index:0},wU={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 _U={type:n.GenericReference,id:"search-person-by-id-input-declaration-parent-ref-id",entityType:n.Search,entityId:ti},Ig={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:_U,writesValues:[]},NU={type:n.GenericReference,id:"search-person-by-id-input-map-parent-ref-id",entityType:n.Search,entityId:ti},MU={id:"search-person-by-id-input-map-reads-value-ref-id",type:n.GenericReference,entityId:sg,entityType:n.ArgumentDeclaration},Dg={type:n.InputMap,id:"search-person-by-id-input-map",version:1,declaration:Ig,name:null,description:null,readsValue:MU,defaultValue:null,parent:NU,index:0},VU={from:{name:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},items:[{name:"*"}],where:[{name:"id",value:"{{dynamic_value_1}}"}]},LU={type:n.GenericReference,id:"search-person-by-id-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ft},$U={type:n.GenericReference,id:"search-person-by-id-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:ft},GU={type:n.Search,id:ti,version:1,name:"Search person by ID",description:"Searches for a person entity given the UUID",query:VU,inputsDeclarations:[Ig],inputs:[Dg],outputsDeclarations:[vg],outputs:[BU],calledByError:[],calledByEntry:[$U],calledBySuccess:[],error:null,successCalls:[PU],errorCalls:[],parent:LU,x:0,y:0};n.GenericReference,n.DataType;const FU={id:"account-number-to-create-arg-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:wc,entityType:n.ArgumentDeclaration},UU={like:!1,inferred:!1,id:"account-number-to-create-arg-decl-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:FU},xU={entityType:n.FunctionDeclaration,entityId:ft,type:n.GenericReference,id:"account-number-to-create-arg-decl-parent-ref-id"},jU={id:wc,type:n.ArgumentDeclaration,version:1,name:"Account number",description:"The account number of the new bank account entity",dataType:UU,implements:null,writesValues:[Tg],required:!0,index:1,parent:xU};n.GenericReference,n.DataType;const kU={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},qU={like:!1,inferred:!1,id:"new-bank-account-owner-arg-decl-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ga,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:kU},JU={entityType:n.FunctionDeclaration,entityId:ft,type:n.GenericReference,id:"new-bank-account-owner-arg-decl-parent-ref-id"},WU={id:sg,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:qU,implements:null,writesValues:[Dg],required:!1,index:1,parent:JU},HU={type:n.GenericReference,id:"replace-bank-account-in-company-parent-ref",entityType:n.Project,entityId:z},YU={type:n.GenericReference,id:"company-entity-to-modify-parent-ref",entityType:n.FunctionDeclaration,entityId:ft};n.GenericReference,n.DataType;const zU={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:n.GenericReference,entityId:Bc,entityType:n.ArgumentDeclaration},ZU={like:!1,inferred:!1,id:"company-entity-to-modify-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:zU},KU={id:Bc,type:n.ArgumentDeclaration,version:1,name:"Company",dataType:ZU,implements:null,description:"The company to replace the bank account for",writesValues:[fg],required:!0,index:0,parent:YU},XU={type:n.FunctionDeclaration,id:ft,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:[KU,jU,WU],index:null,implements:null,calls:[GU,fg],collapsed:!1,returnStatements:[],private:!1,x:0,y:0,parent:HU},QU={type:n.GenericReference,id:"e0a937bd-3a85-4037-a973-916985b9f94b",entityType:n.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},e4={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:QU,x:0,y:0},t4={type:n.GenericReference,id:"948e6869-ae5b-4914-bea0-b9f02ad6a014",entityType:n.Project,entityId:"23b23d8b-1929-4505-a350-745c8550e731"},n4={type:n.GenericReference,id:"f3d6f2c6-1b3e-4e9d-8c9d-5b5b9f0b8d9c",entityType:n.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},r4={type:n.InstalledProject,version:1,id:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6",name:"Third Party Installed Project",description:null,functions:[e4],events:[],implements:n4,parent:t4,x:0,y:0},Vc="global-counted-test-loop-id",Pg="global-counted-test-loop-body-id",Ag="global-counted-test-loop-body-current-iteration-argument-declaration-id",i4={type:n.GenericReference,id:"global-counted-test-loop-body-current-iteration-argument-declaration-data-type-parent-ref-id",entityId:Ag,entityType:n.ArgumentDeclaration},a4={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:i4},s4={id:"global-counted-test-loop-body-current-iteration-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Pg,entityType:n.FunctionDeclaration},o4={id:Ag,type:n.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",dataType:a4,implements:El,required:!0,index:0,writesValues:[],parent:s4},l4={id:"global-counted-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:Vc,entityType:n.Loop},c4={id:Pg,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[o4],calls:[],implements:bl,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:l4},ni="random-company-employee-test-variable-id",Lc="manager-global-variable-id",Og="global-user-instance-id",hn="employee-mapped-dto-variable-id",Un="employee-mapped-dto-variable-instance-id",Sg="random-employee-id-output-map-id",Cg="random-employee-birth-date-output-map-id",Bg="random-employee-department-output-map-id",wg="random-employee-manager-output-map-id",_g="manager-global-id-output-map-id",Ng="global-user-instance-id-output-map-id",d4="employee-mapped-dto-requester-id-input-map-id",Mg="employee-mapped-dto-now-timestamp-input-map-id",u4="employee-mapped-dto-id-input-map-id",p4="employee-mapped-dto-birth-date-input-map-id",y4="employee-mapped-dto-department-input-map-id",h4="employee-mapped-dto-manager-input-map-id",f4={id:"global-counted-test-loop-iteration-number-input-map-parent-ref-id",type:n.GenericReference,entityId:Vc,entityType:n.Loop};n.GenericReference,n.VariableDeclaration;const m4={id:"global-counted-test-loop-iteration-number-input-map-id",type:n.InputMap,version:1,name:null,description:null,declaration:Ka.fixedArguments[0],defaultValue:null,readsValue:null,index:0,parent:f4},T4={id:"global-counted-test-loop-parent-ref-id",type:n.GenericReference,entityId:z,entityType:n.Project},E4={id:"global-counted-test-loop-called-by-success-ref-id",type:n.GenericReference,entityId:Un,entityType:n.VariableDeclaration},b4={id:Vc,type:n.Loop,version:1,declaration:Ka,inputs:[m4],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:c4,calledByError:[],calledByEntry:[],calledBySuccess:[E4],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:T4},$c="global-object-keys-test-loop-id",Vg="global-object-keys-test-loop-body-id",Lg="global-object-keys-test-loop-body-current-iteration-argument-declaration-id",R4={type:n.GenericReference,id:"global-object-keys-test-loop-body-current-iteration-argument-declaration-data-type-parent-ref-id",entityId:Lg,entityType:n.ArgumentDeclaration},g4={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:R4},v4={id:"global-object-keys-test-loop-body-current-iteration-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Vg,entityType:n.FunctionDeclaration},I4={id:Lg,type:n.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",dataType:g4,implements:fl,required:!0,index:0,writesValues:[],parent:v4},D4={id:"global-object-keys-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:$c,entityType:n.Loop},P4={id:Vg,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[I4],calls:[],implements:Si,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:D4},A4={id:"global-object-keys-test-loop-iteration-object-input-map-parent-ref-id",type:n.GenericReference,entityId:$c,entityType:n.Loop},O4={id:"global-object-keys-test-loop-iteration-object-input-map-reads-value-ref-id",type:n.GenericReference,entityId:hn,entityType:n.VariableDeclaration},$g={id:"global-object-keys-test-loop-iteration-object-input-map-id",type:n.InputMap,version:1,name:null,description:null,declaration:Si.fixedArguments[0],defaultValue:null,readsValue:O4,index:0,parent:A4},S4={id:"global-object-keys-test-loop-parent-ref-id",type:n.GenericReference,entityId:z,entityType:n.Project},C4={id:"global-object-keys-test-loop-called-by-success-ref-two-id",type:n.GenericReference,entityId:Un,entityType:n.VariableDeclaration},B4={id:"global-object-keys-test-loop-called-by-success-ref-one-id",type:n.GenericReference,entityId:hn,entityType:n.VariableDeclaration},Gc={id:$c,type:n.Loop,version:1,declaration:Si,inputs:[$g],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:P4,calledByError:[],calledByEntry:[],calledBySuccess:[B4,C4],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:S4},Fc="global-object-values-test-loop-id",Gg="global-object-values-test-loop-body-id",Fg="global-object-values-test-loop-body-current-iteration-argument-declaration-id",w4={type:n.GenericReference,id:"global-object-values-test-loop-body-current-iteration-argument-declaration-data-type-parent-ref-id",entityId:Fg,entityType:n.ArgumentDeclaration},_4={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:w4},N4={id:"global-object-values-test-loop-body-current-iteration-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Gg,entityType:n.FunctionDeclaration},M4={id:Fg,type:n.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",dataType:_4,implements:ml,required:!0,index:0,writesValues:[],parent:N4},V4={id:"global-object-values-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:Fc,entityType:n.Loop},L4={id:Gg,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[M4],calls:[],implements:Bi,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:V4},$4={id:"global-object-values-test-loop-iteration-object-input-map-parent-ref-id",type:n.GenericReference,entityId:Fc,entityType:n.Loop},G4={id:"global-object-values-test-loop-iteration-object-input-map-reads-value-ref-id",type:n.GenericReference,entityId:Un,entityType:n.VariableDeclaration},Ug={id:"global-object-values-test-loop-iteration-object-input-map-id",type:n.InputMap,version:1,name:null,description:null,declaration:Bi.fixedArguments[0],defaultValue:null,readsValue:G4,index:0,parent:$4},F4={id:"global-object-values-test-loop-parent-ref-id",type:n.GenericReference,entityId:z,entityType:n.Project},U4={id:"global-object-values-test-loop-called-by-success-ref-id",type:n.GenericReference,entityId:Un,entityType:n.VariableDeclaration},xg={id:Fc,type:n.Loop,version:1,declaration:Bi,inputs:[Ug],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:L4,calledByError:[],calledByEntry:[],calledBySuccess:[U4],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:F4},Uc="global-test-iterate-over-string-loop-id",xc="global-test-iterate-over-string-loop-body-id",ks="global-test-iterate-over-string-loop-body-current-iteration-argument-declaration-id",jg="global-test-iterate-over-string-loop-iteration-list-input-map-id",x4={type:n.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-argument-declaration-data-type-parent-ref-id",entityId:ks,entityType:n.ArgumentDeclaration},j4={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:x4},k4={id:"global-test-iterate-over-string-loop-body-current-iteration-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:xc,entityType:n.FunctionDeclaration},q4={id:ks,type:n.ArgumentDeclaration,version:1,name:"Current character",description:"The current character value being processed.",dataType:j4,implements:pl,required:!0,index:1,writesValues:[],parent:k4},J4={type:n.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-argument-declaration-data-type-parent-ref-id",entityId:ks,entityType:n.ArgumentDeclaration},W4={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:J4},H4={id:"global-test-iterate-over-string-loop-body-current-iteration-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:xc,entityType:n.FunctionDeclaration},Y4={id:ks,type:n.ArgumentDeclaration,version:1,name:"Current character",description:"The current character value being processed.",dataType:W4,implements:yl,required:!0,index:0,writesValues:[],parent:H4},z4={id:"global-test-iterate-over-string-loop-body-parent-ref-id",type:n.GenericReference,entityId:Uc,entityType:n.Loop},Z4={id:xc,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[Y4,q4],calls:[],implements:hl,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:z4},K4={id:"global-test-iterate-over-string-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:Uc,entityType:n.Loop},X4={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-parent-ref-id",type:n.GenericReference,entityId:jg,entityType:n.InputMap},Q4={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-id",type:n.PrimitiveValue,name:I.String,version:1,value:"Hello",valueAsType:null,autogeneration:{type:qe.Random,rangeStart:4,rangeEnd:5},parent:X4},ex={id:jg,type:n.InputMap,version:1,name:null,description:null,declaration:Za.fixedArguments[0],defaultValue:Q4,readsValue:null,index:0,parent:K4},tx={id:"global-test-iterate-over-string-loop-parent-ref-id",type:n.GenericReference,entityId:z,entityType:n.Project},nx={id:Uc,type:n.Loop,version:1,declaration:Za,inputs:[ex],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:Z4,calledByError:[],calledByEntry:[],calledBySuccess:[],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:tx},jc="iterate-over-list-loop-id",kg="iterate-over-list-loop-body-id",qg="iterate-over-list-loop-body-current-iteration-argument-declaration-id",rx={type:n.GenericReference,id:"iterate-over-list-loop-body-current-iteration-argument-declaration-data-type-parent-ref-id",entityId:qg,entityType:n.ArgumentDeclaration},ix={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:rx},ax={id:"iterate-over-list-loop-body-current-iteration-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:kg,entityType:n.FunctionDeclaration},sx={id:qg,type:n.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",dataType:ix,implements:Ya,required:!0,index:0,writesValues:[],parent:ax},ox={id:"iterate-over-list-loop-body-parent-ref-id",type:n.GenericReference,entityId:jc,entityType:n.Loop},lx={id:kg,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[sx],calls:[],implements:za,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:ox},cx={id:"iterate-over-list-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:jc,entityType:n.Loop},dx={id:"iterate-over-list-loop-iteration-list-input-map-id",type:n.InputMap,version:1,name:null,description:null,declaration:tr.fixedArguments[0],defaultValue:null,readsValue:null,index:0,parent:cx},ux={id:"iterate-over-list-loop-parent-ref-id",type:n.GenericReference,entityId:z,entityType:n.Project},px={id:jc,type:n.Loop,version:1,declaration:tr,inputs:[dx],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:lx,calledByError:[],calledByEntry:[],calledBySuccess:[],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:ux};var kc=(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))(kc||{}),Jg=(r=>(r.COUNT="count",r.SUM="sum",r.AVG="avg",r.MIN="min",r.MAX="max",r))(Jg||{});const yx={from:{name:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},items:{from:{name:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},items:[{function:{name:Jg.COUNT,items:["f8310850-a87e-405c-b182-4f1d5fa49240"]},alias:"employee_count"}],where:[{name:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3",operation:kc.NEQ,value:null}]},where:[{name:"employee_count",operation:kc.GT,value:1}]},hx={id:"find-companies-with-multiple-employees-and-bank-account-search-parent-ref-id",type:n.GenericReference,entityId:z,entityType:n.Project},fx={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},Wg={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:fx},mx={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},Tx={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-id",type:n.OutputMap,version:1,declaration:Wg,writesValues:[],index:0,parent:mx},Ex={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:[Wg],inputs:[],outputs:[Tx],query:yx,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:hx},bx={type:n.GenericReference,id:"employee-mapped-dto-manager-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:_g},Rx={type:n.GenericReference,id:"employee-mapped-dto-manager-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:hn},Hg={id:h4,type:n.InputMap,version:1,declaration:null,name:"manager_id",description:null,defaultValue:null,index:4,readsValue:bx,parent:Rx},gx={type:n.GenericReference,id:"employee-mapped-dto-department-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Bg},vx={type:n.GenericReference,id:"employee-mapped-dto-department-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:hn},Yg={id:y4,type:n.InputMap,version:1,declaration:null,name:"department_name",description:null,defaultValue:null,index:3,readsValue:gx,parent:vx},Ix={type:n.GenericReference,id:"employee-mapped-dto-birth-date-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Cg},Dx={type:n.GenericReference,id:"employee-mapped-dto-birth-date-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:hn},zg={id:p4,type:n.InputMap,version:1,declaration:null,name:"birth_date",description:null,defaultValue:null,index:2,readsValue:Ix,parent:Dx},Px={type:n.GenericReference,id:"employee-mapped-dto-id-output-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Sg},Ax={type:n.GenericReference,id:"employee-mapped-dto-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:hn},Zg={id:u4,type:n.InputMap,version:1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:Px,parent:Ax},Ox={type:n.GenericReference,id:"employee-mapped-dto-requester-id-output-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Ng},Sx={type:n.GenericReference,id:"employee-mapped-dto-requester-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:hn},Kg={id:d4,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:Ox,parent:Sx},Cx={type:n.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:Lc},Bx={id:_g,type:n.OutputMap,version:1,declaration:Fe.properties[1],index:0,writesValues:[Hg],parent:Cx},wx={type:n.GenericReference,id:"manager-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:Lc},_x={like:!1,inferred:!1,id:"manager-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ct,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:wx,defaultValue:null},Nx={type:n.GenericReference,id:"manager-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:wg},Mx={type:n.GenericReference,id:"manager-variable-parent-ref-id",entityType:n.Project,entityId:z},Xg={id:Lc,type:n.VariableDeclaration,version:1,name:"Manager",dataType:_x,description:"A variable holding an inherited manager for testing purposes",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:Nx,writesValues:[],inputs:[],outputs:[Bx],internalCalls:[],parent:Mx,x:0,y:0},Vx={type:n.GenericReference,id:"random-company-employee-manager-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:ni},Lx={id:wg,type:n.OutputMap,version:1,declaration:Ct.properties[2],index:3,writesValues:[Xg],parent:Vx},$x={type:n.GenericReference,id:"random-company-employee-department-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:ni},Gx={id:Bg,type:n.OutputMap,version:1,declaration:Ct.properties[0],index:2,writesValues:[Yg],parent:$x},Fx={type:n.GenericReference,id:"random-company-employee-birth-date-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:ni},Ux={id:Cg,type:n.OutputMap,version:1,declaration:yt.properties[1],index:1,writesValues:[zg],parent:Fx},xx={type:n.GenericReference,id:"random-company-employee-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:ni},jx={id:Sg,type:n.OutputMap,version:1,declaration:Fe.properties[1],index:0,writesValues:[Zg],parent:xx},kx={type:n.GenericReference,id:"random-company-employee-test-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:ni},qx={like:!1,inferred:!1,id:"random-company-employee-test-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ct,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:kx,defaultValue:null},Jx={type:n.GenericReference,id:"random-company-employee-test-variable-parent-ref-id",entityType:n.Project,entityId:z},Wx={id:ni,type:n.VariableDeclaration,version:1,name:"Company employee",dataType:qx,description:"A variable holding a random company employee for testing purposes",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[jx,Ux,Gx,Lx],internalCalls:[],parent:Jx,x:0,y:0},Hx={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-parent-ref-id",entityType:n.InputMap,entityId:Mg},Yx={type:n.PrimitiveValue,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-id",name:I.Date,version:1,valueAsType:null,value:null,autogeneration:{type:qe.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:Hx},zx={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-parent-ref-id",entityType:n.VariableInstance,entityId:Un},Zx={id:Mg,type:n.InputMap,version:1,declaration:null,name:"now",description:"The current timestamp when the operation is executed",defaultValue:Yx,index:5,readsValue:null,parent:zx},Kx={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-decl-ref-id",entityType:n.VariableDeclaration,entityId:hn},Xx={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-called-by-success-ref-id",entityType:n.VariableDeclaration,entityId:Un},Qx={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-parent-ref-id",entityType:n.Project,entityId:z},e8={id:Un,type:n.VariableInstance,version:1,declaration:Kx,calledByError:[],calledByEntry:[],calledBySuccess:[Xx],successCalls:[Gc,xg],errorCalls:[],readsValue:null,writesValues:[Ug],inputs:[Zx],outputs:[],internalCalls:[],parent:Qx,x:0,y:0},t8={type:n.GenericReference,id:"employee-mapped-dto-variable-parent-ref-id",entityType:n.Project,entityId:z},n8={id:hn,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:[Gc,e8],errorCalls:[],readsValue:null,writesValues:[$g],inputs:[Kg,Zg,zg,Yg,Hg],outputs:[],internalCalls:[],parent:t8,x:0,y:0},r8={type:n.GenericReference,id:"0e63e617-f9d3-42e8-bde0-1bb0b1df7034",entityType:n.VariableDeclaration,entityId:tc},i8={like:!1,inferred:!1,id:"e75645ce-d3df-4f07-a897-ae9ef4d917fd",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:rc,version:1,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:r8,defaultValue:null},a8={type:n.GenericReference,id:"e92a8ff5-3fef-4e0c-8d8f-92c930b2890b",entityType:n.Project,entityId:z},Qg={id:tc,type:n.VariableDeclaration,version:1,name:"Current user",description:"The user that is currently logged in",dataType:i8,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:a8},s8={type:n.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",entityType:n.VariableInstance,entityId:Og},o8={id:Ng,type:n.OutputMap,version:1,declaration:Fe.properties[1],index:0,writesValues:[Kg],parent:s8},l8={type:n.GenericReference,id:"global-user-instance-parent-ref-id",entityType:n.Project,entityId:z},c8={id:Og,type:n.VariableInstance,version:1,declaration:Qg,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[o8],internalCalls:[],parent:l8,x:0,y:0},d8={type:n.GenericReference,id:"is-test-environment-variable-dcl-datatype-parent-ref-id",entityType:n.VariableDeclaration,entityId:tc},u8={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"},p8={like:!1,inferred:!1,id:"is-test-environment-variable-dcl-datatype-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Sn,version:1,asType:!1,isList:!1,isNullable:!1,constant:!0,parent:d8,defaultValue:{id:"is-test-environment-variable-dcl-datatype-default-value-id",name:I.Boolean,version:1,value:null,type:n.PrimitiveValue,autogeneration:{type:qe.Random,rangeStart:null,rangeEnd:null},valueAsType:null,parent:u8}},y8={type:n.GenericReference,id:"is-test-environment-variable-dcl-main-project-ref-id",entityType:n.Project,entityId:z},ev={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:p8,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:y8},h8={type:n.GenericReference,id:"is-test-environment-variable-instance-parent-ref-id",entityType:n.Project,entityId:z},f8={id:"is-test-environment-variable-instance-id",type:n.VariableInstance,version:1,declaration:ev,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[],internalCalls:[],parent:h8,x:0,y:0},tv={type:n.Project,id:z,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:[r4],entities:[nc,rc,yt,lM,Ct,Ns,tb,nb,Zr,nN,vt,KN,GE,WO,eN],functions:[PG,Sb,vc,NG,xG,qb,Ic,lc,XU,ub,CF],events:[xM],variableDeclarations:[ev,Qg,Sc,Wx,Xg,n8],variableInstances:[f8,c8],conditions:[],operations:[Qr],functionCalls:[F0,H1],loops:[px,Gc,xg,nx,b4],searches:[Ex]};var T=(r=>(r.Error="error",r.Warning="warning",r))(T||{}),D=(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))(D||{}),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||{}),N=(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))(N||{});class E{constructor(e){l(this,"id");l(this,"message");l(this,"issue");l(this,"severity");l(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 D?new dr({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:e}):null}}class dr{constructor(e){l(this,"id");l(this,"message");l(this,"issue");l(this,"severity");l(this,"code");l(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 dr({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:this.entity})}}function m8(r){const e=new Set;return r.filter(t=>e.has(t.id)?!1:(e.add(t.id),!0))}function Z(r){const e=r.entity.errors.find(i=>i.id===r.id);return e?{new:!1,error:e}:{new:!0,error:new dr(r)}}function T8(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 ua=d.union([d.string(),d.number(),d.boolean(),d.date()]),nv=d.enum([qe.CurrentDateAndTime,qe.Random,qe.Unique]),qs=d.object({type:nv,rangeStart:ua.nullable(),rangeEnd:ua.nullable()}),pa=qs.extend({type:d.literal(qe.Random),rangeStart:ua,rangeEnd:ua}),qc=qs.extend({type:d.literal(qe.Unique),rangeStart:d.null(),rangeEnd:d.null()}),rv=qs.extend({type:d.literal(qe.CurrentDateAndTime),rangeStart:d.null(),rangeEnd:d.null()}),Js=pa.extend({rangeStart:d.number().nullable(),rangeEnd:d.number().nullable()}),iv=Js.extend({rangeStart:d.number(),rangeEnd:d.null()}),av=Js.extend({rangeStart:d.null(),rangeEnd:d.number()}),sv=Js.extend({rangeStart:d.number(),rangeEnd:d.number()}),Ws=pa.extend({rangeStart:d.number().nullable(),rangeEnd:d.number().nullable()}),ov=Ws.extend({rangeStart:d.number(),rangeEnd:d.null()}),lv=Ws.extend({rangeStart:d.null(),rangeEnd:d.number()}),cv=Ws.extend({rangeStart:d.number(),rangeEnd:d.number()}),Hs=pa.extend({rangeStart:d.date().nullable(),rangeEnd:d.date().nullable()}),dv=Hs.extend({rangeStart:d.date(),rangeEnd:d.null()}),uv=Hs.extend({rangeStart:d.null(),rangeEnd:d.date()}),pv=Hs.extend({rangeStart:d.date(),rangeEnd:d.date()}),Jc=pa.extend({rangeStart:d.null(),rangeEnd:d.null()}),Wc=d.union([ov,lv,cv]),Hc=d.union([iv,av,sv]),Yc=d.union([dv,uv,pv,rv]),zc=d.union([Wc,Hc,Yc,qc,Jc]);function ya(){return d.union([d.object({type:d.literal(n.ValueDescriptor)}),d.record(d.string(),d.any())])}function yv(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.ValueDescriptor)})}function Zc(){return d.object({id:d.string(),type:d.literal(n.ValueDescriptor),name:d.string(),required:d.boolean()})}function E8(){return Zc().merge(d.object({version:d.number(),index:d.number()}))}function b8(){return Zc().merge(d.object({}))}function R8(){return d.object({dataType:Tn(),parent:xn()})}function g8(){return E8().merge(R8())}function Ys(){return d.union([d.object({type:d.literal(n.PrimitiveEntity)}),d.record(d.string(),d.any())])}function zs(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.PrimitiveEntity)})}function Zs(){return d.object({id:d.string(),type:d.literal(n.PrimitiveEntity),name:d.string(),description:d.string().nullable(),static:d.boolean(),abstract:d.boolean()})}function v8(){return Zs().merge(d.object({version:d.number()}))}function I8(){return Zs().merge(d.object({}))}function D8(){return d.object({properties:d.array(ur()),methods:d.array(Bt()),abstractMethods:d.array(tn()),extends:d.array(d.union([Ys(),ri()]))})}function P8(){return v8().merge(D8())}function ur(){return d.union([d.object({type:d.literal(n.Property)}),d.record(d.string(),d.any())])}function hv(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.Property)})}function Kc(){return d.object({id:d.string(),type:d.literal(n.Property),name:d.string(),description:d.string().nullable(),private:d.boolean(),static:d.boolean(),required:d.boolean(),abstract:d.boolean()})}function A8(){return Kc().merge(d.object({version:d.number(),index:d.number()}))}function O8(){return Kc().merge(d.object({}))}function S8(){return d.object({dataType:Tn(),implements:ur().nullable(),parent:d.union([fr(),zs(),Ks()])})}function C8(){return A8().merge(S8())}function B8(){return d.enum([L.CRON_JOB,L.EXECUTION,L.HTTP_ENDPOINT,L.PERSISTED_ENTITY,L.RELATIONAL_DATABASE])}function ri(){return d.union([d.object({type:d.literal(n.BuiltInBaseEntity)}),d.record(d.string(),d.any())])}function Ks(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.BuiltInBaseEntity)})}function Xc(){return d.object({id:d.string(),version:d.number(),type:d.literal(n.BuiltInBaseEntity),name:B8(),description:d.string().nullable(),abstract:d.boolean(),static:d.boolean()})}function w8(){return Xc()}function _8(){return Xc().merge(d.object({}))}function N8(){return d.object({properties:d.array(ur()),methods:d.array(Bt()),abstractMethods:d.array(tn()),extends:d.array(d.union([ri(),Ys()]))})}function M8(){return w8().merge(N8())}function fv(){return d.enum([M.Dynamic,M.Fixed,M.None])}function tn(){return d.union([d.object({type:d.literal(n.ActionDescriptor)}),d.record(d.string(),d.any())])}function xn(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.ActionDescriptor)})}function Xs(){return d.object({id:d.string(),type:d.literal(n.ActionDescriptor),name:d.string(),description:d.string().nullable(),argumentsType:fv(),returnsType:fv()})}function V8(){return Xs().merge(d.object({version:d.number()}))}function L8(){return Xs().merge(d.object({}))}function $8(){return d.object({fixedArguments:d.array(ya()),fixedReturns:d.array(ya()),dynamicArgumentTypes:Tn().nullable(),dynamicReturnTypes:Tn().nullable(),parent:d.union([It(),fr(),Ks(),zs()]).nullable()})}function mv(){return V8().merge($8())}function ii(){return d.union([d.object({type:d.literal(n.Loop)}),d.record(d.string(),d.any())])}function nn(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.Loop)})}function Tv(){return d.object({id:d.string(),type:d.literal(n.Loop)})}function G8(){return Tv().merge(d.object({version:d.number(),x:d.number(),y:d.number()}))}function F8(){return Tv().merge(d.object({declaration:d.union([d.string(),Bt()])}))}function U8(){return d.object({calledBySuccess:d.array(ye()),calledByError:d.array(ye()),calledByEntry:d.array(We()),declaration:tn(),inputs:d.array(Jt()),outputs:d.array(mt()),outputsDeclarations:d.array(ya()),successCalls:d.array(He()),errorCalls:d.array(He()),error:mt(),body:Bt(),parent:d.union([bn(),It()]),breakStatements:d.array(li()),continueStatements:d.array(ai())})}function x8(){return G8().merge(U8())}function ai(){return d.union([d.object({type:d.literal(n.ContinueStatement)}),d.record(d.string(),d.any())])}function si(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.ContinueStatement)})}function Qc(){return d.object({id:d.string(),type:d.literal(n.ContinueStatement)})}function j8(){return Qc().merge(d.object({version:d.number(),x:d.number(),y:d.number()}))}function k8(){return Qc().merge(d.object({}))}function q8(){return d.object({calledBySuccess:d.array(ye()),calledByError:d.array(ye()),calledByEntry:d.array(We()),outputs:d.array(fn()),throws:d.optional(fn()),parent:nn()})}function J8(){return j8().merge(q8())}function pr(){return d.union([d.object({type:d.literal(n.ReturnStatement)}),d.record(d.string(),d.any())])}function oi(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.ReturnStatement)})}function ed(){return d.object({id:d.string(),type:d.literal(n.ReturnStatement)})}function W8(){return ed().merge(d.object({version:d.number(),x:d.number(),y:d.number()}))}function H8(){return ed().merge(d.object({}))}function Y8(){return d.object({calledBySuccess:d.array(ye()),calledByError:d.array(ye()),calledByEntry:d.array(We()),outputs:d.array(fn()),throws:d.optional(fn()),parent:bn()})}function z8(){return W8().merge(Y8())}function fn(){return d.union([d.object({type:d.literal(n.ReturnDeclaration)}),d.record(d.string(),d.any())])}function Ev(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.ReturnDeclaration)})}function td(){return d.object({id:d.string(),type:d.literal(n.ReturnDeclaration),name:d.string(),description:d.string().nullable(),isError:d.boolean()})}function Z8(){return td().merge(d.object({version:d.number(),index:d.number()}))}function K8(){return td().merge(d.object({}))}function X8(){return d.object({dataType:Tn().nullable(),readsValue:ba().nullable(),parent:d.union([oi(),xn(),mn(),si()])})}function Q8(){return Z8().merge(X8())}function li(){return d.union([d.object({type:d.literal(n.BreakStatement)}),d.record(d.string(),d.any())])}function mn(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.BreakStatement)})}function nd(){return d.object({id:d.string(),type:d.literal(n.BreakStatement)})}function ej(){return nd().merge(d.object({version:d.number(),x:d.number(),y:d.number()}))}function tj(){return nd().merge(d.object({}))}function nj(){return d.object({calledBySuccess:d.array(ye()),calledByError:d.array(ye()),calledByEntry:d.array(We()),outputs:d.array(fn()),throws:d.optional(fn()),parent:nn()})}function rj(){return ej().merge(nj())}function mt(){return d.union([d.object({type:d.literal(n.OutputMap)}),d.record(d.string(),d.any())])}function rd(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.OutputMap)})}function id(){return d.object({id:d.string(),type:d.literal(n.OutputMap)})}function ij(){return id().merge(d.object({version:d.number(),index:d.number()}))}function aj(){return id().merge(d.object({}))}function sj(){return d.object({writesValues:d.array(En()),declaration:d.union([fn(),ur()]),parent:d.union([ye(),nn(),mn()])})}function oj(){return ij().merge(sj())}function ci(){return d.union([d.object({type:d.literal(n.FunctionCall)}),d.record(d.string(),d.any())])}function ha(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.FunctionCall)})}function ad(){return d.object({id:d.string(),type:d.literal(n.FunctionCall)})}function lj(){return ad().merge(d.object({version:d.number(),x:d.number(),y:d.number()}))}function cj(){return ad().merge(d.object({}))}function dj(){return d.object({successCalls:d.array(He()),errorCalls:d.array(He()),calledBySuccess:d.array(ye()),calledByError:d.array(ye()),calledByEntry:d.array(We()),writesValues:d.array(En()),declaration:Bt(),inputs:d.array(Jt()),outputs:d.array(mt()),error:d.optional(mt()),parent:d.union([bn(),It()])})}function uj(){return lj().merge(dj())}function pj(){return d.enum([Me.Equal,Me.NotEqual,Me.MoreThan,Me.MoreThanOrEqual,Me.LessThan,Me.LessThanOrEqual,Me.And,Me.Or,Mt.Empty,Mt.NotEmpty])}function fa(){return d.union([d.object({type:d.literal(n.Condition)}),d.record(d.string(),d.any())])}function Qs(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.Condition)})}function sd(){return d.object({id:d.string(),type:d.literal(n.Condition)})}function yj(){return sd().merge(d.object({version:d.number(),x:d.number(),y:d.number()}))}function hj(){return sd().merge(d.object({}))}function fj(){return d.object({successCalls:d.array(He()),errorCalls:d.array(He()),calledBySuccess:d.array(ye()),calledByError:d.array(ye()),calledByEntry:d.array(We()),leftValue:Jt(),rightValue:Jt().nullable(),operator:pj(),parent:d.union([bn(),It()])})}function mj(){return yj().merge(fj())}function ma(){return d.union([d.object({type:d.literal(n.Search)}),d.record(d.string(),d.any())])}function Ta(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.Search)})}function od(){return d.object({id:d.string(),type:d.literal(n.Search),name:d.string(),query:d.any(),description:d.string().nullable()})}function Tj(){return od().merge(d.object({version:d.number(),x:d.number(),y:d.number()}))}function Ej(){return od().merge(d.object({}))}function bj(){return d.object({successCalls:d.array(He()),errorCalls:d.array(He()),calledBySuccess:d.array(ye()),calledByError:d.array(ye()),calledByEntry:d.array(We()),inputsDeclarations:d.array(hr()),inputs:d.array(Jt()),outputsDeclarations:d.array(ya()),outputs:d.array(mt()),parent:d.union([bn(),It()]),error:mt().nullable()})}function Rj(){return Tj().merge(bj())}function Ea(){return d.union([d.object({type:d.literal(n.InternalCall)}),d.record(d.string(),d.any())])}function ld(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.InternalCall)})}function cd(){return d.object({id:d.string(),type:d.literal(n.InternalCall),index:d.number()})}function gj(){return cd().merge(d.object({version:d.number(),index:d.number()}))}function vj(){return cd().merge(d.object({declaration:d.union([d.string(),Bt()])}))}function Ij(){return d.object({successCalls:d.array(He()),errorCalls:d.array(He()),calledBySuccess:d.array(ye()),calledByError:d.array(ye()),calledByEntry:d.array(We()),writesValues:d.array(En()),declaration:Bt(),inputs:d.array(Jt()),outputs:d.array(mt()),parent:jn(),error:d.optional(mt())})}function Dj(){return gj().merge(Ij())}function Jt(){return d.union([d.object({type:d.literal(n.InputMap)}),d.record(d.string(),d.any())])}function eo(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.InputMap)})}function dd(){return d.object({id:d.string(),type:d.literal(n.InputMap),name:d.string().nullable().optional(),description:d.string().nullable().optional()})}function Pj(){return dd().merge(d.object({version:d.number(),index:d.number()}))}function Aj(){return dd().merge(d.object({}))}function Oj(){return d.object({defaultValue:ud().nullable(),declaration:d.union([hr(),ur()]).nullable(),readsValue:ba().nullable(),parent:d.union([ye(),eo(),nn(),mn()])})}function Sj(){return Pj().merge(Oj())}function di(){return d.union([d.object({type:d.literal(n.Operation)}),d.record(d.string(),d.any())])}function ui(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.Operation)})}function to(){return d.object({id:d.string(),type:d.literal(n.Operation)})}function Cj(){return to().merge(d.object({version:d.number(),x:d.number(),y:d.number()}))}function Bj(){return to().merge(d.object({}))}function wj(){return to().merge(d.object({successCalls:d.array(He()),errorCalls:d.array(He()),calledBySuccess:d.array(ye()),calledByError:d.array(ye()),calledByEntry:d.array(We()),writesValues:d.array(En()),declaration:tn(),inputs:d.array(Jt()),outputs:d.array(mt()),error:d.array(mt()),parent:d.union([bn(),It()])}))}function _j(){return Cj().merge(wj())}function no(){return d.union([d.string(),d.number(),d.boolean(),d.null(),d.date()])}function bv(){return d.record(d.string(),no())}function Nj(){return d.array(d.union([no(),bv()]))}function Rv(){return d.union([no(),bv(),Nj()])}function gv(){return d.union([no(),Rv()])}function vv(){return d.enum([I.String,I.Number,I.Boolean,I.Null,I.Date,I.JSON,I.Enum,I.File,I.UUID,I.EntityTemplate,I.ActionDescriptor])}function Mj(){return d.union([fr(),ui(),Ra()])}function Vj(){return d.object({id:d.string(),name:vv(),type:d.literal(n.PrimitiveValue),value:gv(),autogeneration:zc.nullable()})}function Lj(){return Vj().merge(d.object({}))}function Wt(){return d.object({id:d.string(),version:d.number(),name:vv(),type:d.literal(n.PrimitiveValue),value:gv(),valueAsType:Mj().nullable(),autogeneration:zc.nullable(),parent:d.union([pd(),eo()])})}function $j(){return Wt().extend({name:d.literal(I.String),value:d.string(),autogeneration:Wc.nullable()})}function Gj(){return Wt().extend({name:d.literal(I.Number),value:d.number(),autogeneration:Hc.nullable()})}function Fj(){return Wt().extend({name:d.literal(I.Boolean),value:d.boolean(),autogeneration:Jc.nullable()})}function Uj(){return Wt().extend({name:d.literal(I.Null),value:d.null(),autogeneration:d.null()})}function xj(){return Wt().extend({name:d.literal(I.Date),value:d.date(),autogeneration:Yc.nullable()})}function jj(){return Wt().extend({name:d.literal(I.JSON),value:Rv(),autogeneration:d.null()})}function kj(){return Wt().extend({name:d.literal(I.Enum),value:d.string(),autogeneration:d.null()})}function qj(){return Wt().extend({name:d.literal(I.File),value:d.string(),autogeneration:d.null()})}function Jj(){return Wt().extend({name:d.literal(I.UUID),value:d.string(),autogeneration:qc.nullable()})}function Wj(){return Wt().extend({name:d.literal(I.EntityTemplate),value:fr(),autogeneration:d.null()})}function Hj(){return Wt().extend({name:d.literal(I.ActionDescriptor),value:Ra(),autogeneration:d.null()})}function ud(){return d.union([$j(),Gj(),Fj(),Uj(),xj(),jj(),kj(),qj(),Jj(),Wj(),Hj()])}function Tn(){return d.union([d.object({type:d.literal(n.DataType)}),d.record(d.string(),d.any())])}function pd(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.DataType)})}function yd(){return d.object({id:d.string(),type:d.literal(n.DataType),isNullable:d.boolean(),isList:d.boolean(),constant:d.boolean(),asType:d.boolean(),options:d.array(d.string()).optional()})}function Yj(){return yd().merge(d.object({version:d.number()}))}function zj(){return yd().merge(d.object({}))}function Zj(){return d.object({defaultValue:ud().nullable(),entity:d.union([pi(),ri(),Ys(),tn()]).nullable(),parent:d.union([hv(),Pv(),xn(),yv()])})}function Kj(){return Yj().merge(Zj())}function hd(){return d.union([d.object({type:d.literal(n.VariableDeclaration)}),d.record(d.string(),d.any())])}function Xj(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.VariableDeclaration)})}function fd(){return d.object({id:d.string(),type:d.literal(n.VariableDeclaration),name:d.string(),description:d.string().nullable()})}function Qj(){return fd().merge(d.object({version:d.number(),x:d.number(),y:d.number()}))}function e6(){return fd().merge(d.object({}))}function t6(){return d.object({dataType:Tn().nullable(),readsValue:ba().nullable(),writesValues:d.array(En()),inputs:d.array(Jt()),outputs:d.array(mt()),successCalls:d.array(He()),errorCalls:d.array(He()),internalCalls:d.array(Ea()),calledBySuccess:d.array(ye()),calledByError:d.array(ye()),calledByEntry:d.array(We()),parent:d.union([bn(),It()])})}function n6(){return Qj().merge(t6())}function Iv(){return d.union([d.object({type:d.literal(n.VariableInstance)}),d.record(d.string(),d.any())])}function r6(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.VariableInstance)})}function md(){return d.object({id:d.string(),type:d.literal(n.VariableInstance)})}function i6(){return md().merge(d.object({version:d.number(),x:d.number(),y:d.number()}))}function a6(){return md().merge(d.object({}))}function s6(){return d.object({declaration:hd(),dataType:Tn().nullable(),readsValue:ba().nullable(),writesValues:d.array(En()),inputs:d.array(Jt()),outputs:d.array(mt()),successCalls:d.array(He()),errorCalls:d.array(He()),internalCalls:d.array(Ea()),calledBySuccess:d.array(ye()),calledByError:d.array(ye()),calledByEntry:d.array(We()),parent:d.union([bn(),It()])})}function o6(){return i6().merge(s6())}function Td(){return d.union([d.object({type:d.literal(n.InstalledProject)}),d.record(d.string(),d.any())])}function ro(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.InstalledProject)})}function l6(){return d.object({id:d.string(),type:d.literal(n.InstalledProject)})}function c6(){return d.object({version:d.number(),x:d.number(),y:d.number()})}function d6(){return d.object({})}function u6(){return d.object({implements:It(),description:d.string().nullable(),functions:d.array(Bt()),events:d.array(Ed()),parent:It()})}function p6(){return c6().merge(u6())}function Ed(){return d.union([d.object({type:d.literal(n.GlobalEvent)}),d.record(d.string(),d.any())])}function y6(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.GlobalEvent)})}function io(){return d.object({id:d.string(),type:d.literal(n.GlobalEvent),name:d.string(),collapsed:d.boolean()})}function h6(){return io().merge(d.object({version:d.number(),x:d.number(),y:d.number()}))}function f6(){return io().merge(d.object({}))}function m6(){return io().merge(d.object({returnStatements:d.array(pr()),implements:d.array(mv()),inputs:d.array(hr()),calls:d.array(He()),parent:d.union([It(),ro()])}))}function T6(){return h6().merge(m6())}function yr(){return d.union([hd(),Iv()])}function jn(){return d.union([Xj(),r6()])}function En(){return d.union([yr(),Jt(),fn()])}function Dv(){return d.union([jn(),eo(),Ev()])}function ba(){return d.union([yr(),hr(),mt(),di(),Ea(),ci()])}function E6(){return d.union([jn(),bd(),rd(),ui(),ld(),ha()])}function b6(){return d.union([hr(),mt(),En()])}function Pv(){return d.union([bd(),rd(),Dv()])}function ao(){return Ed()}function so(){return y6()}function oo(){return d.union([di(),ci(),fa(),ma(),yr(),Ea(),ii()])}function ye(){return d.union([ui(),ha(),Qs(),Ta(),jn(),ld(),nn()])}function lo(){return d.union([di(),ci(),fa(),ma(),yr(),ii()])}function co(){return d.union([ui(),ha(),Qs(),Ta(),jn(),nn()])}function Av(){return d.union([oo(),pr(),li(),ai()])}function He(){return d.union([ye(),oi(),mn(),si()])}function Ov(){return d.union([lo(),pr(),li(),ai()])}function Sv(){return d.union([co(),oi(),mn(),si()])}function kn(){return d.union([Bt(),ao()])}function We(){return d.union([Ra(),so()])}function R6(){return d.union([oo(),kn()])}function g6(){return d.union([ye(),We()])}function v6(){return d.union([lo(),kn()])}function I6(){return d.union([co(),We()])}function D6(){return d.union([Av(),kn()])}function P6(){return d.union([He(),We()])}function A6(){return d.union([Ov(),kn()])}function O6(){return d.union([Sv(),We()])}function S6(){return d.union([kn(),ii()])}function bn(){return d.union([We(),nn()])}function C6(){return d.union([oo(),kn()])}function B6(){return d.union([ye(),We()])}function w6(){return d.union([lo(),kn()])}function _6(){return d.union([co(),We()])}function N6(){return d.union([pr(),li(),ai()])}function M6(){return d.union([oi(),mn(),si()])}function V6(){return d.union([ri(),H6(),Td(),pi(),Bt(),ao(),yr(),Jt(),mt(),fa(),di(),ci(),fn(),hr(),Ys(),Tn(),ur(),tn(),pr(),ai(),li(),ii(),ma(),tn(),tn(),ya(),Ea()])}function L6(){return d.union([Ks(),It(),ro(),fr(),Ra(),so(),jn(),eo(),rd(),Qs(),ui(),ha(),Ev(),bd(),zs(),pd(),hv(),xn(),oi(),si(),mn(),nn(),Ta(),xn(),xn(),yv(),ld()])}function $6(){return d.union([Td(),pi(),Bt(),ao(),yr(),fa(),di(),ci(),pr(),ai(),li(),ii(),ma()])}function G6(){return d.union([ro(),fr(),Ra(),so(),jn(),Qs(),ui(),ha(),oi(),si(),mn(),nn(),Ta()])}function hr(){return d.union([d.object({type:d.literal(n.ArgumentDeclaration)}),d.record(d.string(),d.any())])}function bd(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.ArgumentDeclaration)})}function Rd(){return d.object({id:d.string(),type:d.literal(n.ArgumentDeclaration)})}function F6(){return Rd().merge(d.object({version:d.number(),x:d.number(),y:d.number()}))}function U6(){return Rd().merge(d.object({}))}function x6(){return d.object({dataType:Tn().nullable(),writesValues:d.array(En()),parent:d.union([We(),xn(),xn(),Ta(),mn()])})}function j6(){return F6().merge(x6())}function Bt(){return d.union([d.object({type:d.literal(n.FunctionDeclaration)}),d.record(d.string(),d.any())])}function Ra(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.FunctionDeclaration)})}function gd(){return d.object({id:d.string(),type:d.literal(n.FunctionDeclaration),name:d.string(),description:d.string().nullable()})}function k6(){return gd().merge(d.object({version:d.number(),x:d.number(),y:d.number(),index:d.number().nullable()}))}function q6(){return gd()}function J6(){return d.object({inputs:d.array(hr()),implements:tn().nullable(),returnStatements:d.array(pr()),parent:d.union([It(),ro(),fr(),nn(),Ks(),zs()])})}function W6(){return k6().merge(J6())}function H6(){return d.union([d.object({type:d.literal(n.Project)}),d.record(d.string(),d.any())])}function It(){return d.object({entityType:d.literal(n.Project),entityId:d.string(),id:d.string(),type:d.literal(n.GenericReference)})}function vd(){return d.object({id:d.string(),type:d.literal(n.Project),name:d.string(),description:d.string().nullable()})}function Y6(){return vd().merge(d.object({version:d.number()}))}function z6(){return vd()}function Z6(){return d.object({entities:d.array(pi()),functions:d.array(Bt()),events:d.array(Ed()),projects:d.array(Td()),variableDeclarations:d.array(hd()),variableInstances:d.array(Iv()),conditions:d.array(fa()),operations:d.array(di()),functionCalls:d.array(ci()),loops:d.array(ii()),searches:d.array(ma())})}function K6(){return Y6().merge(Z6())}function pi(){return d.union([d.object({type:d.literal(n.CustomEntity)}),d.record(d.string(),d.any())])}function fr(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.CustomEntity)})}function Id(){return d.object({id:d.string(),type:d.literal(n.CustomEntity),name:d.string(),description:d.string().nullable(),static:d.boolean(),abstract:d.boolean()})}function X6(){return Id().merge(d.object({version:d.number(),x:d.number(),y:d.number()}))}function Q6(){return Id().merge(d.object({}))}function e9(){return d.union([It(),pd()])}function t9(){return d.object({properties:d.array(ur()),methods:d.array(Bt()),abstractMethods:d.array(tn()),extends:d.array(d.union([pi(),ri()])),implements:d.array(d.union([pi(),ri()])),parent:e9()})}function n9(){return X6().merge(t9())}function r9(r){const e=n9(),t=r.toJSON();e.safeParse(t).success;const a=r.implements.flatMap(f=>s9(r,f)),s=r.extends.flatMap(f=>o9(r,f)),o=c9(r),c=l9(r);r.methods.flatMap(f=>f.validate());const p=[...a,...s,...o,...c];return ae(r.errors,p)}function i9(r,e){const t=e.properties.filter(s=>s.abstract),i=[];let a=[...r.properties];return t.forEach(s=>{const o=a.find(c=>{var p;return((p=c.implements)==null?void 0:p.id)===s.id});o?a=a.filter(c=>c.id!==o.id):i.push(s)}),i}function a9(r,e){const t=e.abstractMethods,i=[];let a=[...r.methods];return t.forEach(s=>{const o=a.find(c=>{var p;return((p=c.implements)==null?void 0:p.id)===s.id});o?a=a.filter(c=>c.id!==o.id):i.push(s)}),i}function s9(r,e){const t=[];if(!e.abstract){const f=Z({id:r.id+"--"+N.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:N.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=Z({id:r.id+"--"+N.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:N.MissingPropertyImplementation,entity:r});t.push(m.error)});const o=[];let c=[...r.methods];e.abstractMethods.forEach(f=>{const m=c.find(b=>{var v;return((v=b.implements)==null?void 0:v.id)===f.id});m?c=c.filter(b=>b.id!==m.id):o.push(f)}),o.length&&o.forEach(f=>{const m=Z({id:r.id+"--"+N.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:N.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=Z({id:r.id+"--"+D.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:D.PropertyOverwrite,entity:r});t.push(m.error)});const y=[];return e.methods.forEach(f=>{const m=c.find(b=>b.name===f.name);m&&y.push([m,f])}),y.length&&y.forEach(([f])=>{const m=Z({id:r.id+"--"+D.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:D.MethodOverwrite,entity:r});t.push(m.error)}),t}function o9(r,e){const t=[],i=[];if(e.abstract){const s=Z({id:r.id+"--"+N.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:N.ExtendingAbstractEntity,entity:r});return t.push(s.error),t}r.properties.forEach(s=>{var c;const o=e.properties.find(p=>p.name===s.name);((c=s.implements)==null?void 0:c.id)!==(o==null?void 0:o.id)&&o&&i.push(s)}),i.length&&i.forEach(s=>{const o=Z({id:r.id+"--"+D.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:D.PropertyOverwrite,entity:r});t.push(o.error)});const a=[];return r.methods.forEach(s=>{var c;const o=e.methods.find(p=>p.name===s.name);((c=s.implements)==null?void 0:c.id)!==(o==null?void 0:o.id)&&o&&a.push(s)}),a.length&&a.forEach(s=>{const o=Z({id:r.id+"--"+D.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:D.MethodOverwrite,entity:r});t.push(o.error)}),t}function l9(r){const e=[];if(!r.properties.length){const t=Z({id:r.id+"--"+N.NoProperties,message:"No properties implemented",issue:null,severity:T.Warning,code:N.NoProperties,entity:r});e.push(t.error)}return r.properties.forEach(t=>{t.validate()}),e}function c9(r){const e=[];if(r.abstract){if(r.methods.length){const t=Z({id:r.id+"--"+N.AbstractEntityWithNonAbstractMethods,message:`Entity "${r.name}" with id "${r.id}" is marked as abstract but has non-abstract methods`,issue:null,severity:T.Error,code:N.AbstractEntityWithNonAbstractMethods,entity:r});e.push(t.error)}if(r.properties.some(t=>!t.abstract)){const t=Z({id:r.id+"--"+N.AbstractEntityWithNonAbstractProperties,message:`Entity "${r.name}" with id "${r.id}" is marked as abstract but has non-abstract properties`,issue:null,severity:T.Error,code:N.AbstractEntityWithNonAbstractProperties,entity:r});e.push(t.error),r.properties.forEach(i=>{if(!i.abstract){const a=Z({id:r.id+"--"+N.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:N.StaticEntityWithNonStaticProperties,entity:r});e.push(a.error)}})}}else{if(r.abstractMethods.length){const t=Z({id:r.id+"--"+N.AbstractPropertyInNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is not marked as abstract but has abstract methods`,issue:null,severity:T.Error,code:N.AbstractPropertyInNonAbstractEntity,entity:r});e.push(t.error)}if(r.properties.some(t=>t.abstract)){const t=Z({id:r.id+"--"+N.AbstractMethodInNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is not marked as abstract but has abstract properties`,issue:null,severity:T.Error,code:N.AbstractMethodInNonAbstractEntity,entity:r});e.push(t.error),r.properties.forEach(i=>{if(i.abstract){const a=Z({id:r.id+"--"+N.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:N.AbstractMethodInNonAbstractEntity,entity:r});e.push(a.error)}})}}if(r.static&&r.properties.some(t=>!t.static)){const t=Z({id:r.id+"--"+N.StaticEntityWithNonStaticProperties,message:`Entity "${r.name}" with id "${r.id}" is marked as static but has non-static properties`,issue:null,severity:T.Error,code:N.StaticEntityWithNonStaticProperties,entity:r});e.push(t.error),r.properties.forEach(i=>{if(!i.static){const a=Z({id:r.id+"--"+N.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:N.NonStaticPropertyInStaticEntity,entity:r});e.push(a.error)}})}return e}function d9(r){return r instanceof Error&&r.name==="ZodError"&&"issues"in r&&Array.isArray(r.issues)}var u9=class extends Error{constructor(e,t){super(e,t);l(this,"name");l(this,"details");this.name="ZodValidationError",this.details=p9(t)}toString(){return this.message}};function p9(r){if(r){const e=r.cause;if(d9(e))return e.issues}return[]}var y9="; ",Cv="Validation error",h9=": ",f9=", or ";function m9(r,e,t){return e!==null?r.length>0?[e,r].join(t):e:r.length>0?r:Cv}var T9=/[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*/u;function E9(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+'["'+b9(t)+'"]';if(!T9.test(t))return e+'["'+t+'"]';const i=e.length===0?"":".";return e+i+t},"")}function b9(r){return r.replace(/"/g,'\\"')}function R9(r){return r.length!==0}function uo(r){const{issue:e,issueSeparator:t,unionSeparator:i,includePath:a}=r;if(e.code==="invalid_union")return e.unionErrors.reduce((s,o)=>{const c=o.issues.map(p=>uo({issue:p,issueSeparator:t,unionSeparator:i,includePath:a})).join(t);return s.includes(c)||s.push(c),s},[]).join(i);if(e.code==="invalid_arguments")return[e.message,...e.argumentsError.issues.map(s=>uo({issue:s,issueSeparator:t,unionSeparator:i,includePath:a}))].join(t);if(e.code==="invalid_return_type")return[e.message,...e.returnTypeError.issues.map(s=>uo({issue:s,issueSeparator:t,unionSeparator:i,includePath:a}))].join(t);if(a&&R9(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 "${E9(e.path)}"`}return e.message}function g9(r,e={}){const{issueSeparator:t=y9,unionSeparator:i=f9,prefixSeparator:a=h9,prefix:s=Cv,includePath:o=!0}=e,c=uo({issue:r,issueSeparator:t,unionSeparator:i,includePath:o}),p=m9(c,s,a);return new u9(p,{cause:new gt([r])})}var Bv="1.13.7",wv=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},po=Array.prototype,Dd=Object.prototype,_v=typeof Symbol<"u"?Symbol.prototype:null,v9=po.push,ga=po.slice,va=Dd.toString,I9=Dd.hasOwnProperty,Nv=typeof ArrayBuffer<"u",D9=typeof DataView<"u",P9=Array.isArray,Mv=Object.keys,Vv=Object.create,Lv=Nv&&ArrayBuffer.isView,A9=isNaN,O9=isFinite,$v=!{toString:null}.propertyIsEnumerable("toString"),Gv=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],S9=Math.pow(2,53)-1;function Dt(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 qn(r){var e=typeof r;return e==="function"||e==="object"&&!!r}function C9(r){return r===null}function Fv(r){return r===void 0}function Uv(r){return r===!0||r===!1||va.call(r)==="[object Boolean]"}function B9(r){return!!(r&&r.nodeType===1)}function ot(r){var e="[object "+r+"]";return function(t){return va.call(t)===e}}const Pd=ot("String"),xv=ot("Number"),w9=ot("Date"),_9=ot("RegExp"),N9=ot("Error"),jv=ot("Symbol"),kv=ot("ArrayBuffer");var qv=ot("Function"),M9=wv.document&&wv.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof M9!="function"&&(qv=function(r){return typeof r=="function"||!1});const Tt=qv,Jv=ot("Object");var Wv=D9&&(!/\[native code\]/.test(String(DataView))||Jv(new DataView(new ArrayBuffer(8)))),Ad=typeof Map<"u"&&Jv(new Map),V9=ot("DataView");function L9(r){return r!=null&&Tt(r.getInt8)&&kv(r.buffer)}const yo=Wv?L9:V9,mr=P9||ot("Array");function Jn(r,e){return r!=null&&I9.call(r,e)}var Od=ot("Arguments");(function(){Od(arguments)||(Od=function(r){return Jn(r,"callee")})})();const Sd=Od;function $9(r){return!jv(r)&&O9(r)&&!isNaN(parseFloat(r))}function Hv(r){return xv(r)&&A9(r)}function Yv(r){return function(){return r}}function zv(r){return function(e){var t=r(e);return typeof t=="number"&&t>=0&&t<=S9}}function Zv(r){return function(e){return e==null?void 0:e[r]}}const ho=Zv("byteLength"),G9=zv(ho);var F9=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function U9(r){return Lv?Lv(r)&&!yo(r):G9(r)&&F9.test(va.call(r))}const Kv=Nv?U9:Yv(!1),Pt=Zv("length");function x9(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 Xv(r,e){e=x9(e);var t=Gv.length,i=r.constructor,a=Tt(i)&&i.prototype||Dd,s="constructor";for(Jn(r,s)&&!e.contains(s)&&e.push(s);t--;)s=Gv[t],s in r&&r[s]!==a[s]&&!e.contains(s)&&e.push(s)}function Ze(r){if(!qn(r))return[];if(Mv)return Mv(r);var e=[];for(var t in r)Jn(r,t)&&e.push(t);return $v&&Xv(r,e),e}function Ia(r){if(r==null)return!0;var e=Pt(r);return typeof e=="number"&&(mr(r)||Pd(r)||Sd(r))?e===0:Pt(Ze(r))===0}function Qv(r,e){var t=Ze(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=Bv,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 eI(r){return new Uint8Array(r.buffer||r,r.byteOffset||0,ho(r))}var tI="[object DataView]";function Cd(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:nI(r,e,t,i)}function nI(r,e,t,i){r instanceof se&&(r=r._wrapped),e instanceof se&&(e=e._wrapped);var a=va.call(r);if(a!==va.call(e))return!1;if(Wv&&a=="[object Object]"&&yo(r)){if(!yo(e))return!1;a=tI}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 _v.valueOf.call(r)===_v.valueOf.call(e);case"[object ArrayBuffer]":case tI:return nI(eI(r),eI(e),t,i)}var s=a==="[object Array]";if(!s&&Kv(r)){var o=ho(r);if(o!==ho(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 c=r.constructor,p=e.constructor;if(c!==p&&!(Tt(c)&&c instanceof c&&Tt(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(!Cd(r[y],e[y],t,i))return!1}else{var f=Ze(r),m;if(y=f.length,Ze(e).length!==y)return!1;for(;y--;)if(m=f[y],!(Jn(e,m)&&Cd(r[m],e[m],t,i)))return!1}return t.pop(),i.pop(),!0}function j9(r,e){return Cd(r,e)}function Da(r){if(!qn(r))return[];var e=[];for(var t in r)e.push(t);return $v&&Xv(r,e),e}function Bd(r){var e=Pt(r);return function(t){if(t==null)return!1;var i=Da(t);if(Pt(i))return!1;for(var a=0;a<e;a++)if(!Tt(t[r[a]]))return!1;return r!==aI||!Tt(t[wd])}}var wd="forEach",rI="has",_d=["clear","delete"],iI=["get",rI,"set"],k9=_d.concat(wd,iI),aI=_d.concat(iI),q9=["add"].concat(_d,wd,rI);const J9=Ad?Bd(k9):ot("Map"),W9=Ad?Bd(aI):ot("WeakMap"),H9=Ad?Bd(q9):ot("Set"),Y9=ot("WeakSet");function yi(r){for(var e=Ze(r),t=e.length,i=Array(t),a=0;a<t;a++)i[a]=r[e[a]];return i}function z9(r){for(var e=Ze(r),t=e.length,i=Array(t),a=0;a<t;a++)i[a]=[e[a],r[e[a]]];return i}function sI(r){for(var e={},t=Ze(r),i=0,a=t.length;i<a;i++)e[r[t[i]]]=t[i];return e}function Nd(r){var e=[];for(var t in r)Tt(r[t])&&e.push(t);return e.sort()}function Md(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),c=o.length,p=0;p<c;p++){var y=o[p];(!e||t[y]===void 0)&&(t[y]=s[y])}return t}}const oI=Md(Da),fo=Md(Ze),lI=Md(Da,!0);function Z9(){return function(){}}function cI(r){if(!qn(r))return{};if(Vv)return Vv(r);var e=Z9();e.prototype=r;var t=new e;return e.prototype=null,t}function K9(r,e){var t=cI(r);return e&&fo(t,e),t}function X9(r){return qn(r)?mr(r)?r.slice():oI({},r):r}function Q9(r,e){return e(r),r}function dI(r){return mr(r)?r:[r]}se.toPath=dI;function Pa(r){return se.toPath(r)}function Vd(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 uI(r,e,t){var i=Vd(r,Pa(e));return Fv(i)?t:i}function e3(r,e){e=Pa(e);for(var t=e.length,i=0;i<t;i++){var a=e[i];if(!Jn(r,a))return!1;r=r[a]}return!!t}function Ld(r){return r}function Aa(r){return r=fo({},r),function(e){return Qv(e,r)}}function $d(r){return r=Pa(r),function(e){return Vd(e,r)}}function Oa(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 pI(r,e,t){return r==null?Ld:Tt(r)?Oa(r,e,t):qn(r)&&!mr(r)?Aa(r):$d(r)}function Gd(r,e){return pI(r,e,1/0)}se.iteratee=Gd;function At(r,e,t){return se.iteratee!==Gd?se.iteratee(r,e):pI(r,e,t)}function t3(r,e,t){e=At(e,t);for(var i=Ze(r),a=i.length,s={},o=0;o<a;o++){var c=i[o];s[c]=e(r[c],c,r)}return s}function yI(){}function n3(r){return r==null?yI:function(e){return uI(r,e)}}function r3(r,e,t){var i=Array(Math.max(0,r));e=Oa(e,t,1);for(var a=0;a<r;a++)i[a]=e(a);return i}function Fd(r,e){return e==null&&(e=r,r=0),r+Math.floor(Math.random()*(e-r+1))}const Sa=Date.now||function(){return new Date().getTime()};function hI(r){var e=function(s){return r[s]},t="(?:"+Ze(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 fI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},i3=hI(fI),a3=sI(fI),s3=hI(a3),o3=se.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var Ud=/(.)^/,l3={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},c3=/\\|'|\r|\n|\u2028|\u2029/g;function d3(r){return"\\"+l3[r]}var u3=/^\s*(\w|\$)+\s*$/;function p3(r,e,t){!e&&t&&(e=t),e=lI({},e,se.templateSettings);var i=RegExp([(e.escape||Ud).source,(e.interpolate||Ud).source,(e.evaluate||Ud).source].join("|")+"|$","g"),a=0,s="__p+='";r.replace(i,function(y,f,m,b,v){return s+=r.slice(a,v).replace(c3,d3),a=v+y.length,f?s+=`'+
1
+ (function(u,n){typeof exports=="object"&&typeof module<"u"?n(exports):typeof define=="function"&&define.amd?define(["exports"],n):(u=typeof globalThis<"u"?globalThis:u||self,n(u["@elyx-code/project-logic-tree"]={}))})(this,function(u){"use strict";var Uk=Object.defineProperty;var xk=(u,n,L)=>n in u?Uk(u,n,{enumerable:!0,configurable:!0,writable:!0,value:L}):u[n]=L;var l=(u,n,L)=>(xk(u,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||{}),St=(r=>(r.DeletePersistedEntity="base-delete-persisted-entity",r.SoftDeletePersistedEntity="base-soft-delete-persisted-entity",r.AbortExecution="base-abort-execution",r))(St||{}),M=(r=>(r.Fixed="fixed",r.None="none",r.Dynamic="dynamic",r.Any="any",r.FixedThenDynamic="fixed-then-dynamic",r.FixedThenAny="fixed-then-any",r))(M||{}),B=(r=>(r.FixedArguments="fixed-arguments",r.FixedReturns="fixed-returns",r.ReturnedError="returned-error",r.OngoingProcessExecution="ongoing-process-execution",r))(B||{}),I=(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))(I||{}),ct=(r=>(r.Addition="addition",r.Substraction="substraction",r.Multiplication="multiplication",r.Division="division",r.Remainder="remainder",r.Exponentiation="exponentiation",r))(ct||{}),Ce=(r=>(r.Join="string-join",r.Split="stringSsplit",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))(Ce||{}),Y=(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))(Y||{}),we=(r=>(r.Parallel="parallel",r.Sequential="sequential",r.Wait="wait",r))(we||{}),Xe=(r=>(r.CreateNewInstance="create-new-instance",r.Validate="validate",r))(Xe||{}),Qe=(r=>(r.HttpRequest="base-http-request",r))(Qe||{}),Me=(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))(Me||{}),Mt=(r=>(r.Empty="empty",r.NotEmpty="not-empty",r))(Mt||{}),q=(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))(q||{}),je=(r=>(r.OrDataTypeGroup="or-data-type-group",r.AndDataTypeGroup="and-data-type-group",r.DynamicArgumentTypes="dynamic-argument-types",r.DynamicReturnTypes="dynamic-return-types",r))(je||{}),on=(r=>(r.PROJECT_PUBLICATION_COMPLETED="GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED",r))(on||{}),Cu=(r=>(r.Error="error",r.Task="task",r.Return="return",r))(Cu||{});const An=[n.VariableDeclaration,n.VariableInstance,n.InputMap,n.ReturnDeclaration],$e=[n.VariableDeclaration,n.VariableInstance,n.ArgumentDeclaration,n.OutputMap],Bu=[...An,...$e],ke=[n.VariableDeclaration,n.VariableInstance],Fr=[n.GlobalEvent],Ge=[n.Operation,n.FunctionCall,n.Condition,n.Search,n.VariableDeclaration,n.VariableInstance,n.InternalCall,n.Loop],xo=[n.Operation,n.FunctionCall,n.Condition,n.Search,n.VariableDeclaration,n.VariableInstance,n.Loop],Ve=[n.FunctionDeclaration,...Fr],On=[...Ge,n.ReturnStatement,n.BreakStatement,n.ContinueStatement],jo=[...xo,n.ReturnStatement,n.BreakStatement,n.ContinueStatement],ln=[...Ge,...Ve],wu=[...xo,...Ve],WD=[...On,...Ve],HD=[...jo,...Ve],dt=[...Ve,n.Loop],Le=[n.ReturnStatement,n.BreakStatement,n.ContinueStatement],YD=[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],_u=[n.CustomEntity,n.FunctionDeclaration,n.ArgumentDeclaration,n.ReturnDeclaration,n.Property,n.VariableDeclaration,n.Search,n.Project,n.InstalledProject,n.ActionDescriptor,n.ValueDescriptor],Ur=[n.BuiltInBaseEntity,n.PrimitiveEntity],zD=[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 qo=(r=>(r.ActionOngoingProcessOutputValue="action-ongoing-process-output-value-descriptor-id",r))(qo||{});const G={[n.PrimitiveEntity]:{[I.String]:{id:"8b5fbe15-4c2b-48c0-9fd8-e5efbe3978dc",properties:{}},[I.Boolean]:{id:"f596545d-1565-4faa-9969-d95fa5edfea4",properties:{}},[I.Number]:{id:"ecb84c29-6153-4b82-86a5-fce2b5f92002",properties:{}},[I.JSON]:{id:"b6f3c3c4-9c3d-4f9d-9e9e-1c0f6a3c8c6b",properties:{}},[I.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"}}}}},[I.UUID]:{id:"4a6234aa-c0f6-4731-b4dd-750388029226",properties:{}},[I.Date]:{id:"dc58f38b-d574-4956-aac6-32ce9529b937",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]:{[Ce.Join]:{id:Ce.Join,inputs:{first:{id:"join-string-first-string-input-id"},second:{id:"join-string-second-string-input-id"}},outputs:{result:{id:"join-string-result-string-return-delaration-id"},error:{id:"join-string-error-return-delaration-id"}}},[Qe.HttpRequest]:{id:Qe.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"}}}},[n.Loop]:{[q.List]:{id:q.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"}}}},[q.String]:{id:q.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"}}}},[q.ObjectKeys]:{id:q.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"}}}},[q.ObjectValues]:{id:q.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"}}}},[q.ManualFlow]:{id:q.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"}}}},[q.Counted]:{id:q.Counted,inputs:{number:{id:"iterate-over-counted-loop-number-input-id"}},outputs:{results:{id:"iterate-over-counted-loop-output-id"}},body:{id:"iterate-over-counted-loop-body-descriptor-id",inputs:{iterationNumber:{id:"iterate-over-counted-loop-iteration-number-input-id"}}}}},[n.Condition]:{[Me.MoreThanOrEqual]:{id:Me.MoreThanOrEqual,inputs:{leftHand:{id:"condition-more-than-or-equal-left-hand-input-id"},rightHand:{id:"condition-more-than-or-equal-right-hand-input-id"}}},[Mt.NotEmpty]:{id:Mt.NotEmpty,inputs:{leftHand:{id:"condition-not-empty-input-id"}}}},[n.GlobalEvent]:{[on.PROJECT_PUBLICATION_COMPLETED]:{id:on.PROJECT_PUBLICATION_COMPLETED}}},Yt=G["primitive-entity"],x={type:n.PrimitiveEntity,id:Yt.string.id,description:"A string of characters.",version:1,name:I.String,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Sn={type:n.PrimitiveEntity,id:Yt.boolean.id,description:"A 'true' or 'false' value.",version:1,name:I.Boolean,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},te={type:n.PrimitiveEntity,id:Yt.number.id,description:"A number value.",version:1,name:I.Number,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Ye={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:I.JSON,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Nu={id:"c2f52f01-8f2e-490e-8083-72289c8189c1",type:n.GenericReference,entityId:"7dd59b70-f97b-43a7-a051-fde1842ce5d6",entityType:n.DataType},Mu={id:"4e803941-2e6a-4227-b803-b8877c0d7fee",type:n.GenericReference,entityId:"00ccfcae-2104-45ef-bf6c-50ddccd74286",entityType:n.Property},Vu={like:!1,inferred:!1,id:Yt.enum.properties.options.dataType.id,version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:x,asType:!1,defaultValue:{id:Yt.enum.properties.options.dataType.defaultValue.id,type:n.PrimitiveValue,version:1,name:I.JSON,autogeneration:null,value:[],valueAsType:null,parent:Nu},parent:Mu},Lu={id:"a2983c4c-0286-4ef1-8b5c-5a52904d3200",type:n.GenericReference,entityId:"9542b8b4-2642-4eee-9db9-def7963a17a0",entityType:n.PrimitiveEntity},$u={hidden:!1,required:!0,id:Yt.enum.properties.options.id,name:"Options",version:1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:Vu,description:"Options for the enum. Each option is a text value.",parent:Lu},Cn={type:n.PrimitiveEntity,id:Yt.enum.id,description:"A set of text options to choose from.",version:1,name:I.Enum,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[$u],methods:[]},cn={type:n.PrimitiveEntity,id:Yt.date.id,description:"A date and time value.",version:1,name:I.Date,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Ga={type:n.PrimitiveEntity,id:Yt.uuid.id,description:"A unique identifier in the form of a 36-character string.",version:1,name:I.UUID,static:!1,abstract:!1,abstractMethods:[],extends:[x],properties:[],methods:[]},Jo={type:n.PrimitiveEntity,id:Yt.json.id,description:"A complex data structure with any combination of properties with names and values.",version:1,name:I.JSON,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]};var Gu=(r=>(r.FirstInputNumber="number-addition-first-number-argument-declaration",r.SecondInputNumber="number-addition-second-number-argument-declaration",r))(Gu||{}),Fu=(r=>(r.ResultNumber="number-addition-result-number-return-delaration",r.Error="number-addition-error-return-delaration",r))(Fu||{});const Uu={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:"number-addition-first-number-argument-declaration",entityType:n.ValueDescriptor},xu={like:!1,inferred:!1,id:"number-addition-first-number-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Uu},ju={type:n.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:"number-addition-second-number-argument-declaration",entityType:n.ValueDescriptor},ku={like:!1,inferred:!1,id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:ju},qu={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:"number-addition-result-number-return-delaration",entityType:n.ValueDescriptor},Ju={like:!1,inferred:!1,id:"b761acec-0755-4582-a68b-76267038bbe1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:qu},Wu={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:ct.Addition,entityType:n.ActionDescriptor},Wo={id:"number-addition-first-number-argument-declaration",type:n.ValueDescriptor,version:1,name:"First value",description:"The first number to add",dataType:xu,required:!0,parentRelationType:B.FixedArguments,index:0,parent:Wu},Hu={type:n.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:ct.Addition,entityType:n.ActionDescriptor},Ho={id:"number-addition-second-number-argument-declaration",type:n.ValueDescriptor,description:"The second number to add",version:1,name:"Second value",dataType:ku,required:!0,parentRelationType:B.FixedArguments,index:1,parent:Hu},Yu={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:ct.Addition,entityType:n.ActionDescriptor},Yo={parentRelationType:B.FixedReturns,id:"number-addition-result-number-return-delaration",type:n.ValueDescriptor,description:"The result number of the addition",version:1,name:"Result",dataType:Ju,required:!0,index:0,parent:Yu},zu={type:n.GenericReference,id:"number-addition-operation-error-parent-ref",entityId:ct.Addition,entityType:n.ActionDescriptor},Zu={parentRelationType:B.FixedReturns,id:"number-addition-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:zu},Fa={id:ct.Addition,type:n.ActionDescriptor,description:"Add two numbers together",version:1,name:ct.Addition,fixedArguments:[Wo,Ho],error:Zu,fixedReturns:[Yo],argumentsType:M.Fixed,returnsType:M.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},Ku={[ct.Addition]:Fa};var Xu=(r=>(r.FirstInputString="join-string-first-string-argument-declaration",r.SecondInputString="join-string-second-string-argument-declaration",r))(Xu||{}),Qu=(r=>(r.ResultString="join-string-result-string-return-delaration",r.Error="join-string-error-return-delaration",r))(Qu||{});const ep={type:n.GenericReference,id:"join-string-first-string-argument-declaration",entityId:"join-string-first-string-argument-declaration",entityType:n.ValueDescriptor},tp={like:!1,inferred:!1,id:"join-string-first-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:ep},np={type:n.GenericReference,id:"join-string-second-string-argument-declaration",entityId:"join-string-second-string-argument-declaration",entityType:n.ValueDescriptor},rp={like:!1,inferred:!1,id:"join-string-second-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:np},ip={type:n.GenericReference,id:"join-string-result-string-return-delaration",entityId:"join-string-result-string-return-delaration",entityType:n.ValueDescriptor},ap={like:!1,inferred:!1,id:"join-string-result-string-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:ip},sp={type:n.GenericReference,id:"join-string-operation-first-string-argument-parent-ref",entityId:Ce.Join,entityType:n.ActionDescriptor},Ua={id:"join-string-first-string-argument-declaration",type:n.ValueDescriptor,version:1,name:"First value",description:"The first text to join to the second one. Its value will be at the beginning of the resulting text.",dataType:tp,parentRelationType:B.FixedArguments,required:!0,index:0,parent:sp},op={type:n.GenericReference,id:"join-string-operation-second-string-argument-parent-ref",entityId:Ce.Join,entityType:n.ActionDescriptor},xa={id:"join-string-second-string-argument-declaration",type:n.ValueDescriptor,version:1,name:"Second value",description:"The second text to join to the first one. Its value will be at the end of the resulting text.",dataType:rp,parentRelationType:B.FixedArguments,required:!0,index:1,parent:op},lp={type:n.GenericReference,id:"join-string-operation-result-string-return-parent-ref",entityId:Ce.Join,entityType:n.ActionDescriptor},vi={parentRelationType:B.FixedReturns,id:"join-string-result-string-return-delaration",type:n.ValueDescriptor,version:1,name:"Result",description:"The resulting text value.",dataType:ap,required:!0,index:0,parent:lp},cp={type:n.GenericReference,id:"join-string-operation-error-parent-ref",entityId:Ce.Join,entityType:n.ActionDescriptor},dp={parentRelationType:B.FixedReturns,id:"join-string-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:cp},Ii={id:Ce.Join,type:n.ActionDescriptor,version:1,name:Ce.Join,description:"Join two text together, to form a single resulting text value.",fixedArguments:[Ua,xa],fixedReturns:[vi],error:dp,argumentsType:M.Fixed,returnsType:M.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},up={[Ce.Join]:Ii};var pp=(r=>(r.FirstInputList="join-list-first-list-argument-declaration",r.SecondInputList="join-list-second-list-argument-declaration",r))(pp||{}),yp=(r=>(r.ResultList="join-list-result-list-return-delaration",r.Error="join-list-error-return-delaration",r))(yp||{});const hp={type:n.GenericReference,id:"join-list-operation-first-list-argument-ref",entityId:"join-list-first-list-argument-declaration",entityType:n.ValueDescriptor},fp={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:hp},mp={type:n.GenericReference,id:"join-list-operation-second-list-argument-ref",entityId:"join-list-second-list-argument-declaration",entityType:n.ValueDescriptor},Tp={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:mp},Ep={type:n.GenericReference,id:"join-list-operation-result-list-return-ref",entityId:"join-list-result-list-return-delaration",entityType:n.ValueDescriptor},bp={like:!1,inferred:!1,id:"join-list-result-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Ep},Rp={type:n.GenericReference,id:"join-list-operation-first-list-argument-parent-ref",entityId:Y.Join,entityType:n.ActionDescriptor},gp={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:fp,parentRelationType:B.FixedArguments,required:!0,index:0,parent:Rp},vp={type:n.GenericReference,id:"join-list-operation-second-list-argument-parent-ref",entityId:Y.Join,entityType:n.ActionDescriptor},Ip={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:Tp,parentRelationType:B.FixedArguments,required:!0,index:1,parent:vp},Dp={type:n.GenericReference,id:"join-list-operation-result-list-return-parent-ref",entityId:Y.Join,entityType:n.ActionDescriptor},Pp={parentRelationType:B.FixedReturns,id:"join-list-result-list-return-delaration",type:n.ValueDescriptor,version:1,name:"Result",description:"The resulting list value.",dataType:bp,required:!0,index:0,parent:Dp},Ap={type:n.GenericReference,id:"join-list-operation-error-parent-ref",entityId:Y.Join,entityType:n.ActionDescriptor},Op={parentRelationType:B.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:Ap},zo={id:Y.Join,type:n.ActionDescriptor,version:1,name:Y.Join,description:"Join two lists together, to form a single resulting list value.",fixedArguments:[gp,Ip],error:Op,fixedReturns:[Pp],argumentsType:M.Fixed,returnsType:M.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var Sp=(r=>(r.InputList="list-to-split-argument-declaration",r.SplitIndex="split-list-index-argument-declaration",r))(Sp||{}),Cp=(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))(Cp||{});const Bp={type:n.GenericReference,id:"split-list-operation-input-list-argument-ref",entityId:"list-to-split-argument-declaration",entityType:n.ValueDescriptor},wp={like:!1,inferred:!1,id:"split-list-operation-input-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Bp},_p={type:n.GenericReference,id:"split-list-operation-split-index-argument-ref",entityId:"split-list-index-argument-declaration",entityType:n.ValueDescriptor},Np={like:!1,inferred:!1,id:"split-list-operation-split-index-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:_p},Zo={type:n.GenericReference,id:"split-list-operation-first-output-list-return-ref",entityId:"split-list-first-output-list-return-delaration",entityType:n.ValueDescriptor},Mp={like:!1,inferred:!1,id:"split-list-operation-first-output-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Zo},Vp={type:n.GenericReference,id:"split-list-operation-input-list-argument-parent-ref",entityId:Y.Split,entityType:n.ActionDescriptor},Lp={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:wp,parentRelationType:B.FixedArguments,required:!0,index:0,parent:Vp},$p={type:n.GenericReference,id:"split-list-operation-split-index-argument-parent-ref",entityId:Y.Split,entityType:n.ActionDescriptor},Gp={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:Np,parentRelationType:B.FixedArguments,required:!0,index:1,parent:$p},Fp={type:n.GenericReference,id:"split-list-operation-first-output-list-return-parent-ref",entityId:Y.Split,entityType:n.ActionDescriptor},Up={parentRelationType:B.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:Mp,required:!0,index:0,parent:Fp},xp={like:!1,inferred:!1,id:"split-list-operation-second-output-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Zo},jp={type:n.GenericReference,id:"split-list-operation-second-output-list-return-parent-ref",entityId:Y.Split,entityType:n.ActionDescriptor},kp={parentRelationType:B.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:xp,required:!0,index:0,parent:jp},qp={type:n.GenericReference,id:"split-list-operation-error-parent-ref",entityId:Y.Split,entityType:n.ActionDescriptor},Jp={parentRelationType:B.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:qp},Ko={id:Y.Split,type:n.ActionDescriptor,version:1,name:Y.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",fixedArguments:[Lp,Gp],fixedReturns:[Up,kp],error:Jp,argumentsType:M.Fixed,returnsType:M.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var Wp=(r=>(r.InputList="get-last-in-list-input-list-argument-declaration",r))(Wp||{}),Hp=(r=>(r.OutputElement="get-last-in-list-output-element-return-delaration",r.Error="get-last-in-list-error-return-delaration",r))(Hp||{});const Yp={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},zp={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:Yp},Zp={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},Kp={like:!1,inferred:!1,id:"get-last-in-list-output-element-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Zp},Xp={type:n.GenericReference,id:"get-last-in-list-operation-input-list-argument-parent-ref",entityId:Y.GetLast,entityType:n.ActionDescriptor},Qp={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:zp,parentRelationType:B.FixedArguments,required:!0,index:0,parent:Xp},ey={type:n.GenericReference,id:"get-last-in-list-operation-output-element-return-parent-ref",entityId:Y.GetLast,entityType:n.ActionDescriptor},ty={parentRelationType:B.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:Kp,required:!0,index:0,parent:ey},ny={type:n.GenericReference,id:"get-last-in-list-operation-error-parent-ref",entityId:Y.GetLast,entityType:n.ActionDescriptor},ry={parentRelationType:B.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:ny},Xo={id:Y.GetLast,type:n.ActionDescriptor,version:1,name:Y.GetLast,description:"Outputs the last element of a given list.",fixedArguments:[Qp],fixedReturns:[ty],error:ry,argumentsType:M.Fixed,returnsType:M.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var iy=(r=>(r.List="append-to-list-lsit-argument-declaration",r.ElementToAppend="append-to-list-element-to-append-argument-declaration",r))(iy||{}),ay=(r=>(r.ResultList="append-to-list-result-list-return-delaration",r.Error="append-to-list-error-return-delaration",r))(ay||{});const sy={type:n.GenericReference,id:"append-to-list-operation-lsit-argument-ref",entityId:"append-to-list-lsit-argument-declaration",entityType:n.ValueDescriptor},oy={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:sy},ly={type:n.GenericReference,id:"append-to-list-operation-second-list-argument-ref",entityId:"append-to-list-element-to-append-argument-declaration",entityType:n.ValueDescriptor},cy={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:ly},dy={type:n.GenericReference,id:"append-to-list-operation-result-list-return-ref",entityId:"append-to-list-result-list-return-delaration",entityType:n.ValueDescriptor},uy={like:!1,inferred:!1,id:"append-to-list-result-list-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:dy},py={type:n.GenericReference,id:"append-to-list-operation-lsit-argument-parent-ref",entityId:Y.Append,entityType:n.ActionDescriptor},Qo={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:oy,parentRelationType:B.FixedArguments,required:!0,index:0,parent:py},yy={type:n.GenericReference,id:"append-to-list-operation-second-list-argument-parent-ref",entityId:Y.Append,entityType:n.ActionDescriptor},el={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:cy,parentRelationType:B.FixedArguments,required:!0,index:1,parent:yy},hy={type:n.GenericReference,id:"append-to-list-operation-result-list-return-parent-ref",entityId:Y.Append,entityType:n.ActionDescriptor},fy={parentRelationType:B.FixedReturns,id:"append-to-list-result-list-return-delaration",type:n.ValueDescriptor,version:1,name:"Result",description:"The resulting list value.",dataType:uy,required:!0,index:0,parent:hy},my={type:n.GenericReference,id:"append-to-list-operation-error-parent-ref",entityId:Y.Append,entityType:n.ActionDescriptor},Ty={parentRelationType:B.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:my},ja={id:Y.Append,type:n.ActionDescriptor,version:1,name:Y.Append,description:"Adds a given element to the end of a list value.",fixedArguments:[Qo,el],error:Ty,fixedReturns:[fy],argumentsType:M.Fixed,returnsType:M.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},Ey={[Y.Join]:zo,[Y.Split]:Ko,[Y.GetLast]:Xo,[Y.Append]:ja};var by=(r=>(r.ListOfFunctions="parallel-execution-list-of-functions-argument-declaration",r))(by||{}),Ry=(r=>(r.ListOfExecutionResults="parallel-execution-result-return-delaration",r.Error="parallel-execution-error-return-delaration",r))(Ry||{});const gy={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.",argumentsType:M.Dynamic,dynamicArgumentTypes:null,fixedArguments:[],returnsType:M.Dynamic,dynamicReturnTypes:null,fixedReturns:[],error:null,parent:null},vy={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:"parallel-execution-list-of-functions-argument-declaration",entityType:n.ValueDescriptor},Iy={like:!1,inferred:!1,id:"parallel-execution-list-of-functions-argument-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:gy,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:vy},Dy={type:n.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:"parallel-execution-result-return-delaration",entityType:n.ValueDescriptor},Py={like:!1,inferred:!1,id:"b761acec-0755-4582-a68b-76267038bbe1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Dy},Ay={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:we.Parallel,entityType:n.ActionDescriptor},tl={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:Iy,required:!0,index:0,parent:Ay,parentRelationType:B.FixedArguments},Oy={type:n.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:we.Parallel,entityType:n.ActionDescriptor},nl={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:Py,required:!0,index:0,parent:Oy,parentRelationType:B.FixedReturns},Sy={type:n.GenericReference,id:"parallel-execution-operation-error-parent-ref",entityId:we.Parallel,entityType:n.ActionDescriptor},Cy={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:Sy,parentRelationType:B.ReturnedError},xt={id:we.Parallel,type:n.ActionDescriptor,description:"Execute a list of actions in parallel",version:1,name:we.Parallel,fixedArguments:[tl],fixedReturns:[nl],argumentsType:M.Fixed,returnsType:M.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,error:Cy,parent:null};var By=(r=>(r.MillisecondsNumber="wait-milliseconds-number-argument-declaration",r))(By||{}),wy=(r=>(r.Error="wait-operation-error-return-delaration",r))(wy||{});const _y={type:n.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityType:n.ValueDescriptor,entityId:"wait-milliseconds-number-argument-declaration"},Ny={like:!1,inferred:!1,id:"wait-milliseconds-number-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:_y},My={type:n.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityType:n.ActionDescriptor,entityId:we.Wait},Xn={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:Ny,required:!0,index:0,parent:My,parentRelationType:B.FixedArguments},Vy={type:n.GenericReference,id:"wait-operation-error-parent-ref",entityId:we.Wait,entityType:n.ActionDescriptor},Ly={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:Vy,parentRelationType:B.ReturnedError},ut={id:we.Wait,type:n.ActionDescriptor,description:"Wait for the given amount of milliseconds before calling the next entity",version:1,name:we.Wait,fixedArguments:[Xn],fixedReturns:[],error:Ly,argumentsType:M.Fixed,returnsType:M.None,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var $y=(r=>(r.ListOfFunctions="sequential-execution-list-of-functions-argument-declaration",r))($y||{}),Gy=(r=>(r.ListOfExecutionResults="sequential-execution-result-return-delaration",r.Error="sequential-execution-error-return-delaration",r))(Gy||{});const Fy={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.",argumentsType:M.Dynamic,dynamicArgumentTypes:null,fixedArguments:[],returnsType:M.Dynamic,dynamicReturnTypes:null,fixedReturns:[],error:null,parent:null},Uy={type:n.GenericReference,id:"parallel-execution-list-of-functions-argument-declaration-id",entityId:"sequential-execution-list-of-functions-argument-declaration",entityType:n.ValueDescriptor},xy={like:!1,inferred:!1,id:"sequential-execution-list-of-functions-argument-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Fy,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Uy},jy={type:n.GenericReference,id:"sequential-execution-list-of-execution-results-return-declaration-id",entityId:"sequential-execution-result-return-delaration",entityType:n.ValueDescriptor},ky={like:!1,inferred:!1,id:"sequential-execution-list-of-execution-results-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:jy},qy={type:n.GenericReference,id:"parallel-execution-operation-list-of-functions-argument-parent-ref",entityId:we.Sequential,entityType:n.ActionDescriptor},rl={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:xy,required:!0,index:0,parent:qy,parentRelationType:B.FixedArguments},Jy={type:n.GenericReference,id:"parallel-execution-operation-list-of-execution-results-return-parent-ref",entityId:we.Sequential,entityType:n.ActionDescriptor},il={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:ky,required:!0,index:0,parent:Jy,parentRelationType:B.FixedReturns},Wy={type:n.GenericReference,id:"sequential-execution-operation-error-parent-ref",entityId:we.Sequential,entityType:n.ActionDescriptor},Hy={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:Wy,parentRelationType:B.ReturnedError},dn={id:we.Sequential,type:n.ActionDescriptor,description:"Execute a list of actions one after the other",version:1,name:we.Sequential,fixedArguments:[rl],fixedReturns:[il],error:Hy,returnsType:M.Fixed,argumentsType:M.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},Yy={[we.Parallel]:xt,[we.Wait]:ut,[we.Sequential]:dn};var zy=(r=>(r.EntityToInstanciate="entity-to-instanciate-argument-declaration",r.NewEntityData="new-entity-data-argument-declaration",r))(zy||{}),Zy=(r=>(r.Error="create-new-instance-error-return-delaration",r))(Zy||{});const Ky={type:n.GenericReference,id:"new-entity-data-argument-declaration-parent-ref",entityId:Xe.CreateNewInstance,entityType:n.ActionDescriptor},Xy={type:n.GenericReference,id:"new-entity-data-argument-data-type-parent-ref",entityId:"new-entity-data-argument-declaration",entityType:n.ValueDescriptor},Qy={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:Xy},eh={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:Qy,required:!0,parentRelationType:B.FixedArguments,index:1,parent:Ky},th={type:n.GenericReference,id:"entity-to-instanciate-argument-declaration-ref",entityType:n.ValueDescriptor,entityId:"entity-to-instanciate-argument-declaration"},nh={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:th},rh={type:n.GenericReference,id:"create-new-instance-operation-ref",entityType:n.ActionDescriptor,entityId:Xe.CreateNewInstance},ih={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:nh,required:!0,parentRelationType:B.FixedArguments,index:0,parent:rh},ah={type:n.GenericReference,id:"create-new-instance-output-entity-declaration-parent-ref",entityId:Xe.CreateNewInstance,entityType:n.ActionDescriptor},sh={parentRelationType:B.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:ah,required:!0,index:0},oh={type:n.GenericReference,id:"create-new-instance-error-parent-ref",entityId:Xe.CreateNewInstance,entityType:n.ActionDescriptor},lh={parentRelationType:B.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:oh},Qn={id:Xe.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:Xe.CreateNewInstance,fixedArguments:[ih,eh],fixedReturns:[sh],error:lh,argumentsType:M.Fixed,returnsType:M.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var ch=(r=>(r.EntityToMatchType="validate-data-operation-entity-to-match-type-argument-declaration",r.DataToValidate="validate-data-operation-data-to-validate-argument-declaration",r))(ch||{}),dh=(r=>(r.Error="validate-data-error-return-delaration",r.OutputEntity="validate-data-output-entity-declaration",r))(dh||{});const uh={type:n.GenericReference,id:"validate-data-operation-data-to-validate-argument-declaration-ref",entityType:n.ValueDescriptor,entityId:"validate-data-operation-data-to-validate-argument-declaration"},ph={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:uh},yh={type:n.GenericReference,id:"validate-data-operation-data-to-validate-argument-parent-ref",entityType:n.ActionDescriptor,entityId:Xe.Validate},hh={id:"validate-data-operation-data-to-validate-argument-declaration",type:n.ValueDescriptor,version:1,name:"Data to validate",description:"The value to validate against the given entity type",dataType:ph,required:!0,parentRelationType:B.FixedArguments,index:0,parent:yh},fh={type:n.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-declaration-ref",entityType:n.ValueDescriptor,entityId:"validate-data-operation-entity-to-match-type-argument-declaration"},mh={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:fh},Th={type:n.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-parent-ref",entityType:n.ActionDescriptor,entityId:Xe.Validate},Eh={id:"validate-data-operation-entity-to-match-type-argument-declaration",type:n.ValueDescriptor,version:1,name:"Entity to match",description:"The entity to match the data against",dataType:mh,required:!0,index:0,parentRelationType:B.FixedArguments,parent:Th},bh={type:n.GenericReference,id:"validate-data-operation-output-entity-declaration-parent-ref",entityId:Xe.Validate,entityType:n.ActionDescriptor},Rh={id:"validate-data-output-entity-declaration",type:n.ValueDescriptor,version:1,dataType:null,name:"Output value",description:"A value with the type of the entity that was validated",parent:bh,required:!0,index:0,parentRelationType:B.FixedReturns},gh={type:n.GenericReference,id:"wait-operation-error-parent-ref",entityId:Xe.Validate,entityType:n.ActionDescriptor},vh={id:"validate-data-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:gh,parentRelationType:B.ReturnedError},er={id:Xe.Validate,type:n.ActionDescriptor,description:"Validates the given data to see if it matches the structure of a given type/entity",version:1,name:Xe.Validate,fixedArguments:[Eh,hh],fixedReturns:[Rh],error:vh,argumentsType:M.Fixed,returnsType:M.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},Ih={[Xe.CreateNewInstance]:Qn,[Xe.Validate]:er},ze=G[n.Operation]["base-http-request"],Dh={type:n.GenericReference,id:"d87cf943-57e1-4d19-9f05-190fa8c8ebc4",entityType:n.DataType,entityId:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3"},Ph={id:"http-request-url-default-value-id",type:n.PrimitiveValue,version:1,value:"https://some-url.com",name:I.String,valueAsType:null,parent:Dh,autogeneration:null},Ah={type:n.GenericReference,id:"aed50d73-eab5-42ce-b00e-7f5c45a9026f",entityId:ze.inputs.url.id,entityType:n.ValueDescriptor},Oh={like:!1,inferred:!1,id:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!1,isNullable:!1,defaultValue:Ph,constant:!1,parent:Ah},Sh={type:n.GenericReference,id:"c3145af6-3387-464a-8887-272e483c856d",entityId:ze.inputs.query.id,entityType:n.ValueDescriptor},Ch={like:!1,inferred:!1,id:"2a5ba737-6335-4cc4-a2c0-16dca4052fac",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Sh},Bh={type:n.GenericReference,id:"075556b7-e468-48f7-8485-7159eaf389b2",entityType:n.DataType,entityId:"6df7ec2b-5dbd-44af-896b-17b314e88560"},wh={id:"http-request-method-default-value-id",type:n.PrimitiveValue,version:1,value:"GET",name:I.Enum,valueAsType:null,parent:Bh,autogeneration:null},_h={type:n.GenericReference,id:"aed647c8-a1b5-4cfc-9a3d-97887a567a80",entityId:ze.inputs.method.id,entityType:n.ValueDescriptor},Nh={like:!1,inferred:!1,id:"6df7ec2b-5dbd-44af-896b-17b314e88560",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Cn,isList:!1,asType:!1,isNullable:!1,defaultValue:wh,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],constant:!1,parent:_h},Mh={type:n.GenericReference,id:"77203dfa-d2f6-4804-9556-e1cce46228f3",entityId:ze.inputs.headers.id,entityType:n.ValueDescriptor},Vh={like:!1,inferred:!1,id:"2c8a2a07-69c6-40ad-b5c9-f0dc4d5955ce",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ye,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Mh},Lh={type:n.GenericReference,id:"03db68a0-7ab6-4c6a-85b6-f4b95ebb53ff",entityId:ze.inputs.body.id,entityType:n.ValueDescriptor},$h={like:!1,inferred:!1,id:"0397876c-ed54-4ee9-85a4-04fd16dad973",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ye,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Lh},Gh={type:n.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",entityType:n.ValueDescriptor,entityId:ze.outputs.code.id},Fh={like:!1,inferred:!1,id:"45e6d0bc-0c0e-4059-a7a1-6bee925d73d0",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Gh},Uh={type:n.GenericReference,id:"2baaa53a-9aef-4bd1-b06d-967c17b7b627",entityType:n.DataType,entityId:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe"},xh={type:n.GenericReference,id:"69f34d6c-c686-4165-b6ff-70dae8e1778b",entityType:n.ValueDescriptor,entityId:ze.outputs.headers.id},jh={like:!1,inferred:!1,id:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ye,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"http-response-headers-default-value-id",type:n.PrimitiveValue,version:1,value:{},name:I.JSON,parent:Uh,valueAsType:null,autogeneration:null},constant:!1,parent:xh},kh={type:n.GenericReference,id:"744334e0-5135-4214-85d0-809437cb620b",entityType:n.DataType,entityId:"05fc1a5d-151a-479a-9c4e-4063f3456177"},qh={type:n.GenericReference,id:"0e0e20df-1a46-432c-ba01-fd96508a6a61",entityType:n.ValueDescriptor,entityId:ze.outputs.body.id},Jh={like:!1,inferred:!1,id:"05fc1a5d-151a-479a-9c4e-4063f3456177",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ye,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"http-response-body-default-value-id",type:n.PrimitiveValue,version:1,value:{},name:I.JSON,parent:kh,valueAsType:null,autogeneration:null},constant:!1,parent:qh},Wh={type:n.GenericReference,id:"26911792-f707-4bf1-b6f7-03d04a84232c",entityType:n.ActionDescriptor,entityId:Qe.HttpRequest},ka={id:ze.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:Nh,required:!1,index:0,parentRelationType:B.FixedArguments,parent:Wh},Hh={type:n.GenericReference,id:"eee0c501-0ae6-4448-b914-aada76d63163",entityType:n.ActionDescriptor,entityId:Qe.HttpRequest},qa={id:ze.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:Oh,required:!1,index:1,parentRelationType:B.FixedArguments,parent:Hh},Yh={type:n.GenericReference,id:"670091a4-21b1-4223-ad4c-b6dada0aec49",entityType:n.ActionDescriptor,entityId:Qe.HttpRequest},al={id:ze.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:Ch,required:!1,index:2,parentRelationType:B.FixedArguments,parent:Yh},zh={type:n.GenericReference,id:"85aad3eb-22fe-45f9-b68c-1dc7061f41e0",entityType:n.ActionDescriptor,entityId:Qe.HttpRequest},Ja={id:ze.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:Vh,required:!1,index:3,parent:zh,parentRelationType:B.FixedArguments},Zh={type:n.GenericReference,id:"c3e2a4af-9b84-4574-8b30-5044ffc51776",entityType:n.ActionDescriptor,entityId:Qe.HttpRequest},Wa={id:ze.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:$h,required:!1,index:4,parentRelationType:B.FixedArguments,parent:Zh},Kh={type:n.GenericReference,id:"92e04dc7-2145-4a31-908e-03810f7235e8",entityType:n.ActionDescriptor,entityId:Qe.HttpRequest},sl={id:ze.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:Fh,required:!0,index:0,parentRelationType:B.FixedReturns,parent:Kh},Xh={type:n.GenericReference,id:"86aca556-bbf1-4679-9909-31db61b288e2",entityType:n.ActionDescriptor,entityId:Qe.HttpRequest},Ha={parentRelationType:B.FixedReturns,id:ze.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:jh,required:!0,index:1,parent:Xh},Qh={type:n.GenericReference,id:"ccf3d1be-04e4-4d03-99fd-5bc1e1919f90",entityType:n.ActionDescriptor,entityId:Qe.HttpRequest},Di={parentRelationType:B.FixedReturns,id:ze.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:Jh,required:!0,index:2,parent:Qh},ef={type:n.GenericReference,id:"21487ffc-82b9-473d-bc19-6e7d7c480ed7",entityType:n.ActionDescriptor,entityId:Qe.HttpRequest},tf={type:n.GenericReference,id:"ad69861b-32f7-4461-b7f7-aa84a82578d9",entityType:n.ValueDescriptor,entityId:ze.outputs.error.id},nf={like:!1,inferred:!1,id:"5da68b15-57bc-40c1-b79f-a9075e0f22c1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ye,isList:!1,asType:!1,isNullable:!1,constant:!1,defaultValue:null,parent:tf},ol={parentRelationType:B.ReturnedError,id:ze.outputs.error.id,type:n.ValueDescriptor,description:"Http request error, if any. Contains a payload describing what went wrong.",version:1,name:"Error",dataType:nf,required:!0,index:0,parent:ef},Pi={type:n.ActionDescriptor,id:Qe.HttpRequest,name:Qe.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,fixedArguments:[ka,qa,al,Ja,Wa],fixedReturns:[sl,Ha,Di],argumentsType:M.Fixed,returnsType:M.Fixed,error:ol,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},rf={[Qe.HttpRequest]:Pi},ZD={...up,...Ku,...Ey,...Yy,...Ih,...rf},ll={id:q.ManualFlow,type:n.ActionDescriptor,version:1,name:q.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.",fixedArguments:[],dynamicArgumentTypes:null,dynamicReturnTypes:null,fixedReturns:[],argumentsType:M.None,returnsType:M.Any,error:null,parent:null},cl=G[n.Loop]["manual-flow-loop"],af={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},sf={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:te,asType:!1,defaultValue:null,parent:af},of={id:"manual-flow-loop-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:cl.body.id,entityType:n.ActionDescriptor},dl={id:cl.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:sf,required:!0,index:0,parentRelationType:B.FixedArguments,parent:of},ul={id:cl.body.id,type:n.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the manual flow loop.",fixedArguments:[dl],dynamicArgumentTypes:null,dynamicReturnTypes:null,fixedReturns:[],argumentsType:M.FixedThenAny,returnsType:M.Any,error:null,parent:null},KD=G[n.Loop]["list-loop"],lf={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},cf={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:lf},df={id:"iterate-over-list-loop-list-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:q.List,entityType:n.ActionDescriptor},uf={id:KD.inputs.list.id,type:n.ValueDescriptor,version:1,name:"List",description:"The list to iterate over",required:!0,dataType:cf,index:0,parent:df,parentRelationType:B.FixedArguments},tr={id:q.List,type:n.ActionDescriptor,version:1,name:q.List,description:"Iterates over a list of entities",fixedArguments:[uf],fixedReturns:[],error:null,argumentsType:M.Fixed,returnsType:M.Any,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},Ai=G[n.Loop]["list-loop"],pf={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},yf={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:pf},hf={id:"iterate-over-list-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:Ai.body.id,entityType:n.ActionDescriptor},Ya={id:Ai.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:yf,required:!0,index:1,parentRelationType:B.FixedArguments,parent:hf},ff={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},mf={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:te,asType:!1,defaultValue:null,parent:ff},Tf={id:"iterate-over-list-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:Ai.body.id,entityType:n.ActionDescriptor},Ef={id:Ai.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:mf,required:!0,index:0,parentRelationType:B.FixedArguments,parent:Tf},za={id:Ai.body.id,type:n.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the list loop.",fixedArguments:[Ef,Ya],dynamicArgumentTypes:null,dynamicReturnTypes:null,fixedReturns:[],argumentsType:M.FixedThenAny,returnsType:M.Any,error:null,parent:null},XD=G[n.Loop]["string-loop"],bf={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},Rf={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:x,asType:!1,defaultValue:null,parent:bf},gf={id:"iterate-over-string-loop-string-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:q.String,entityType:n.ActionDescriptor},vf={id:XD.inputs.string.id,type:n.ValueDescriptor,version:1,name:"Texts",description:"The text to iterate over the characters of",required:!0,dataType:Rf,index:0,parent:gf,parentRelationType:B.FixedArguments},Za={id:q.String,type:n.ActionDescriptor,version:1,name:q.String,description:"Iterates over a string of entities",fixedArguments:[vf],fixedReturns:[],error:null,argumentsType:M.Fixed,returnsType:M.Any,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},Oi=G[n.Loop]["string-loop"],If={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},Df={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:x,asType:!1,defaultValue:null,parent:If},Pf={id:"iterate-over-string-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:Oi.body.id,entityType:n.ActionDescriptor},pl={id:Oi.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:Df,required:!0,index:1,parentRelationType:B.FixedArguments,parent:Pf},Af={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},Of={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:te,asType:!1,defaultValue:null,parent:Af},Sf={id:"iterate-over-string-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:Oi.body.id,entityType:n.ActionDescriptor},yl={id:Oi.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:Of,required:!0,index:0,parentRelationType:B.FixedArguments,parent:Sf},hl={id:Oi.body.id,type:n.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",fixedArguments:[yl,pl],dynamicArgumentTypes:null,dynamicReturnTypes:null,fixedReturns:[],argumentsType:M.FixedThenAny,returnsType:M.Any,error:null,parent:null},QD=G[n.Loop]["object-keys-loop"],Cf={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},Bf={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:Ye,asType:!1,defaultValue:null,parent:Cf},wf={id:"iterate-over-object-keys-loop-object-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:q.ObjectKeys,entityType:n.ActionDescriptor},_f={id:QD.inputs.object.id,type:n.ValueDescriptor,version:1,name:"Object",description:"The object to iterate over",required:!0,dataType:Bf,index:0,parent:wf,parentRelationType:B.FixedArguments},Si={id:q.ObjectKeys,type:n.ActionDescriptor,version:1,name:q.ObjectKeys,description:"Iterates over a object of entities",fixedArguments:[_f],fixedReturns:[],error:null,argumentsType:M.Fixed,returnsType:M.Any,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},Ci=G[n.Loop]["object-keys-loop"],Nf={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},Mf={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:x,asType:!1,defaultValue:null,parent:Nf},Vf={id:"iterate-over-object-keys-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:Ci.body.id,entityType:n.ActionDescriptor},fl={id:Ci.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:Mf,required:!0,index:1,parentRelationType:B.FixedArguments,parent:Vf},Lf={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},$f={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:te,asType:!1,defaultValue:null,parent:Lf},Gf={id:"iterate-over-object-keys-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:Ci.body.id,entityType:n.ActionDescriptor},Ff={id:Ci.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:$f,required:!0,index:0,parentRelationType:B.FixedArguments,parent:Gf},Uf={id:Ci.body.id,type:n.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the object-keys loop.",fixedArguments:[Ff,fl],dynamicArgumentTypes:null,dynamicReturnTypes:null,fixedReturns:[],argumentsType:M.FixedThenAny,returnsType:M.Any,error:null,parent:null},eP=G[n.Loop]["object-values-loop"],xf={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},jf={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:Ye,asType:!1,defaultValue:null,parent:xf},kf={id:"iterate-over-object-values-loop-object-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:q.ObjectValues,entityType:n.ActionDescriptor},qf={id:eP.inputs.object.id,type:n.ValueDescriptor,version:1,name:"Object",description:"The object to iterate over",required:!0,dataType:jf,index:0,parent:kf,parentRelationType:B.FixedArguments},Bi={id:q.ObjectValues,type:n.ActionDescriptor,version:1,name:q.ObjectValues,description:"Iterates over a object of entities",fixedArguments:[qf],fixedReturns:[],error:null,argumentsType:M.Fixed,returnsType:M.Any,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},wi=G[n.Loop]["object-values-loop"],Jf={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},Wf={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:Jf},Hf={id:"iterate-over-object-values-loop-body-current-value-declaration-parent-ref-id",type:n.GenericReference,entityId:wi.body.id,entityType:n.ActionDescriptor},ml={id:wi.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:Wf,required:!0,index:1,parentRelationType:B.FixedArguments,parent:Hf},Yf={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},zf={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:te,asType:!1,defaultValue:null,parent:Yf},Zf={id:"iterate-over-object-values-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:wi.body.id,entityType:n.ActionDescriptor},Kf={id:wi.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:zf,required:!0,index:0,parentRelationType:B.FixedArguments,parent:Zf},Xf={id:wi.body.id,type:n.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the object-values loop.",fixedArguments:[Kf,ml],dynamicArgumentTypes:null,dynamicReturnTypes:null,fixedReturns:[],argumentsType:M.FixedThenAny,returnsType:M.Any,error:null,parent:null},tP=G[n.Loop]["counted-loop"],Qf={id:"iterate-over-counted-loop-string-argument-declaration-data-type-default-value-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-counted-loop-string-argument-declaration-data-type-id",entityType:n.DataType},em={id:"iterate-over-counted-loop-string-argument-declaration-data-type-default-value-id",type:n.PrimitiveValue,name:I.Number,version:1,value:5,valueAsType:null,autogeneration:null,parent:Qf},tm={id:"iterate-over-counted-loop-string-argument-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-counted-loop-string-argument-declaration-id",entityType:n.ValueDescriptor},nm={like:!1,inferred:!1,id:"iterate-over-counted-loop-string-argument-declaration-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,isNullable:!1,constant:!1,entity:te,asType:!1,defaultValue:em,parent:tm},rm={id:"iterate-over-counted-loop-string-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:q.Counted,entityType:n.ActionDescriptor},im={id:tP.inputs.number.id,type:n.ValueDescriptor,version:1,name:"Number of iterations",description:"The number of iterations to perform",required:!0,dataType:nm,index:0,parent:rm,parentRelationType:B.FixedArguments},Ka={id:q.Counted,type:n.ActionDescriptor,version:1,name:q.Counted,description:"Iterates a given number of times",fixedArguments:[im],fixedReturns:[],error:null,argumentsType:M.Fixed,returnsType:M.Any,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},Tl=G[n.Loop]["counted-loop"],am={id:"iterate-over-counted-loop-body-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:"iterate-over-counted-loop-body-current-iteration-number-declaration-id",entityType:n.ValueDescriptor},sm={like:!1,inferred:!1,id:"iterate-over-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:te,asType:!1,defaultValue:null,parent:am},om={id:"iterate-over-counted-loop-body-current-iteration-number-declaration-parent-ref-id",type:n.GenericReference,entityId:Tl.body.id,entityType:n.ActionDescriptor},El={id:Tl.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:sm,required:!0,index:0,parentRelationType:B.FixedArguments,parent:om},bl={id:Tl.body.id,type:n.ActionDescriptor,version:1,name:"Iteration logic trigger",description:"Describes the body of the string loop.",fixedArguments:[El],dynamicArgumentTypes:null,dynamicReturnTypes:null,fixedReturns:[],argumentsType:M.FixedThenAny,returnsType:M.Any,error:null,parent:null},Xa=G[n.BuiltInBaseEntity][L.KEY_VALUE_PARAM],nP={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},lm={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},rP={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:x,asType:!1,defaultValue:null,parent:lm},cm={id:"key-value-param-built-in-base-entity-name-property-parent-ref",type:n.GenericReference,entityId:Xa.id,entityType:n.BuiltInBaseEntity},dm={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:rP,description:"The name of the path parameter",parent:cm},iP={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},um={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},aP={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:x,asType:!1,defaultValue:null,parent:um},pm={id:"key-value-param-built-in-base-entity-value-property-parent-ref",type:n.GenericReference,entityId:Xa.id,entityType:n.BuiltInBaseEntity},ym={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:aP,description:"The value of the path parameter",parent:pm},Qa={id:Xa.id,version:1,description:'An entity with a "name" and "value" property representing a breakdown of a key-value pair.',name:Xa.id,type:n.BuiltInBaseEntity,abstract:!1,static:!1,interactive:!0,properties:[dm,ym],abstractMethods:[],methods:[],extends:[]},_i=G[n.BuiltInBaseEntity][L.HTTP_ENDPOINT].properties,hm={id:"endpointBuiltInCorsPropertyDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointBuiltInCorsPropertyDataType"},fm={id:"endpointBuiltInCorsPropertyRef",type:n.GenericReference,entityType:n.Property,entityId:_i.cors.id},mm={like:!1,inferred:!1,id:"endpointBuiltInCorsPropertyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!0,entity:x,asType:!1,defaultValue:{id:"endpointBuiltInCorsPropertyDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:I.JSON,value:["*"],parent:hm,autogeneration:null,valueAsType:null},parent:fm},Tm={id:"endpointBuiltInBaseEntityRef",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},Em={hidden:!0,required:!0,id:_i.cors.id,name:"Allowed origins",version:1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:mm,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:Tm},bm={id:"endpointBuiltInPathPropertyDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointBuiltInPathPropertyDataType"},Rm={id:"endpointBuiltInPathPropertyRef",type:n.GenericReference,entityType:n.Property,entityId:_i.path.id},gm={like:!1,inferred:!1,id:"endpointBuiltInPathPropertyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:x,asType:!1,defaultValue:{id:"endpointBuiltInPathPropertyDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:I.String,value:"/",parent:bm,autogeneration:null,valueAsType:null},parent:Rm},vm={id:"endpointBuiltInBaseEntityRefTwo",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},Rl={hidden:!1,required:!0,id:_i.path.id,name:"Path",version:1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:1,dataType:gm,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:vm},Im={id:"endpointBuiltInMethodPropertyDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointBuiltInMethodPropertyDataType"},Dm={id:"endpointBuiltInMethodPropertyRef",type:n.GenericReference,entityType:n.Property,entityId:"endpointBuiltInMethodProperty"},Pm={like:!1,inferred:!1,id:"endpointBuiltInMethodPropertyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Cn,isList:!0,isNullable:!1,constant:!0,asType:!1,defaultValue:{id:"endpointBuiltInMethodPropertyDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,value:"GET",name:I.Enum,parent:Im,autogeneration:null,valueAsType:null},options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:Dm},Am={id:"endpointBuiltInBaseEntityRefThree",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},gl={hidden:!1,required:!0,id:_i.method.id,name:"Method",version:1,type:n.Property,private:!1,index:2,implements:null,abstract:!0,static:!0,dataType:Pm,description:"The HTTP method that this endpoint will respond to, for example GET, POST, PUT, DELETE, etc.",parent:Am},Om={id:"endpointRequestHeadersVariableDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointRequestHeadersVariableDataType"},Sm={id:"endpointRequestHeadersArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"endpointRequestHeadersArgumentDeclaration"},Cm={like:!1,inferred:!1,id:"endpointRequestHeadersVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Ye,asType:!1,defaultValue:{id:"endpointRequestHeadersVariableDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:I.JSON,value:{},parent:Om,autogeneration:null,valueAsType:null},parent:Sm},Bm={id:"endpointRequestBodyArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"endpointRequestBodyArgumentDeclaration"},wm={like:!1,inferred:!1,id:"endpointRequestBodyVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Ye,defaultValue:null,parent:Bm},_m={id:"endpointRequestQueryParamsVariableDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointRequestQueryParamsVariableDataType"},Nm={id:"endpointRequestQueryParamsArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"endpointRequestQueryParamsArgumentDeclaration"},Mm={like:!1,inferred:!1,id:"endpointRequestQueryParamsVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,asType:!1,entity:Qa,defaultValue:{id:"endpointRequestQueryParamsVariableDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:I.JSON,value:[],parent:_m,autogeneration:null,valueAsType:null},parent:Nm},Vm={id:"endpointPathParamsVariableDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointPathParamsVariableDataType"},Lm={id:"endpointPathParamsArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"endpointPathParamsArgumentDeclaration"},$m={like:!1,inferred:!1,id:"endpointPathParamsVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Qa,asType:!1,defaultValue:{id:"endpointPathParamsVariableDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:I.JSON,value:[],parent:Vm,autogeneration:null,valueAsType:null},parent:Lm},Gm={id:"endpointReachedTriggerActionDescriptorRef",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},vl={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:Cm,required:!0,index:0,parentRelationType:B.FixedArguments,parent:Gm},Fm={id:"endpointReachedTriggerActionDescriptorRefTwo",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Il={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:$m,required:!0,index:1,parentRelationType:B.FixedArguments,parent:Fm},Um={id:"endpointReachedTriggerActionDescriptorRefThree",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Dl={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:Mm,required:!0,index:2,parentRelationType:B.FixedArguments,parent:Um},xm={id:"endpointReachedTriggerActionDescriptorRefFour",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Pl={id:"endpointRequestBodyArgumentDeclaration",version:1,description:"The main data payload of the request.",type:n.ValueDescriptor,name:"Request body",dataType:wm,index:3,required:!0,parentRelationType:B.FixedArguments,parent:xm},jm={id:"endpointResponseCodeReturnDeclarationRef",type:n.GenericReference,entityType:n.ReturnDeclaration,entityId:"endpointResponseCodeReturnDeclaration"},km={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:jm},qm={id:"endpointReturnStatementRef",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},Al={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:km,required:!0,index:0,parentRelationType:B.FixedReturns,parent:qm},Jm={id:"endpointResponseHeadersDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"endpointResponseHeadersDataType"},Wm={id:"endpointResponseHeadersReturnDeclarationRef",type:n.GenericReference,entityType:n.ReturnDeclaration,entityId:"endpointResponseHeadersReturnDeclaration"},Hm={like:!1,inferred:!1,id:"endpointResponseHeadersDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Ye,asType:!1,defaultValue:{id:"endpointResponseHeadersDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:I.JSON,value:{},parent:Jm,autogeneration:null,valueAsType:null},parent:Wm},Ym={id:"endpointReturnStatementRefTwo",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},Ol={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:Hm,required:!1,index:1,parentRelationType:B.FixedReturns,parent:Ym},zm={id:"endpointResponseBodyReturnDeclarationRef",type:n.GenericReference,entityType:n.ReturnDeclaration,entityId:"endpointResponseBodyReturnDeclaration"},Zm={like:!1,inferred:!1,id:"endpointResponseBodyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Ye,defaultValue:null,parent:zm},Km={id:"endpointReturnStatementRefThree",type:n.GenericReference,entityType:n.ActionDescriptor,entityId:"endpointReturnStatement"},Sl={id:"endpointResponseBodyReturnDeclaration",version:1,description:"The main data payload of the response.",type:n.ValueDescriptor,name:"Response body",dataType:Zm,required:!1,index:2,parentRelationType:B.FixedReturns,parent:Km},Xm={id:"endpointBuiltInBaseEntityRefFour",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},Cl={id:"endpointReachedTriggerActionDescriptor",type:n.ActionDescriptor,version:1,name:"Endpoint reached",description:"Fired when the endpoint is reached.",argumentsType:M.Fixed,dynamicArgumentTypes:null,fixedArguments:[vl,Il,Dl,Pl],returnsType:M.Fixed,fixedReturns:[Al,Ol,Sl],error:null,dynamicReturnTypes:null,parent:Xm},es={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:[Em,Rl,gl],abstractMethods:[Cl],extends:[],methods:[]},Vt=G[n.BuiltInBaseEntity].BUILT_IN_RELATIONAL_DATABASE_ENTITY,Qm={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},eT={id:"relational-database-built-in-base-entity-identifier-property-ref-id",type:n.GenericReference,entityId:Vt.properties.identifier.id,entityType:n.Property},sP={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:x,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-identifier-property-default-value-id",type:n.PrimitiveValue,version:1,name:I.String,value:null,parent:Qm,autogeneration:{type:qe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:eT},xr={id:"relational-database-built-in-base-entity-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},ts={hidden:!1,required:!0,id:Vt.properties.identifier.id,name:"Identifier name",version:1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:0,dataType:sP,description:"The name of the main database inside of the server instance where the data will be stored.",parent:xr},oP={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},tT={id:"relational-database-built-in-base-entity-username-property-ref-id",type:n.GenericReference,entityId:Vt.properties.username.id,entityType:n.Property},lP={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:x,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-username-property-default-value-id",type:n.PrimitiveValue,version:1,name:I.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:tT},ns={hidden:!1,required:!0,id:Vt.properties.username.id,name:"Username",version:1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:1,dataType:lP,description:"The username that will be used to connect to the database.",parent:xr},cP={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},nT={id:"relational-database-built-in-base-entity-password-property-ref-id",type:n.GenericReference,entityId:Vt.properties.password.id,entityType:n.Property},dP={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:x,asType:!1,defaultValue:null,parent:nT},rs={hidden:!1,required:!0,id:Vt.properties.password.id,name:"Password",version:1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:2,dataType:dP,description:"The password that will be used to connect to the database.",parent:xr},rT={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},iT={id:"relational-database-built-in-base-entity-min-size-property-ref-id",type:n.GenericReference,entityId:Vt.properties.minSize.id,entityType:n.Property},uP={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:te,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-min-size-property-default-value-id",type:n.PrimitiveValue,version:1,name:I.Number,value:6,parent:rT,autogeneration:null,valueAsType:null},parent:iT},is={hidden:!0,required:!0,id:Vt.properties.minSize.id,name:"Minimum GB size",version:1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:3,dataType:uP,description:"The minimum size of the database in GB.",parent:xr},aT={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},sT={id:"relational-database-built-in-base-entity-default-property-ref-id",type:n.GenericReference,entityId:Vt.properties.default.id,entityType:n.Property},pP={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:Sn,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-default-property-default-value-id",type:n.PrimitiveValue,version:1,name:I.Boolean,value:!1,parent:aT,autogeneration:null,valueAsType:null},parent:sT},Bl={hidden:!0,required:!0,id:Vt.properties.default.id,name:"Default",version:1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,dataType:pP,description:"If true, this database will be the default database for the server instance and all the new entities.",parent:xr},oT={id:"relational-database-built-in-base-entity-autoscaling-property-ref-id",type:n.GenericReference,entityId:Vt.properties.autoscaling.id,entityType:n.Property},lT={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},yP={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:Sn,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-autoscaling-property-default-value-id",type:n.PrimitiveValue,version:1,name:I.Boolean,value:!1,parent:lT,autogeneration:null,valueAsType:null},parent:oT},cT={id:"relational-database-built-in-base-entity-autoscaling-property-parent-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},wl={hidden:!0,required:!0,id:Vt.properties.autoscaling.id,name:"Auto-scaling",version:1,type:n.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,dataType:yP,description:"If true, this database will automatically scale up or down in memory size, based on the usage.",parent:cT},Bn={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:[ts,ns,rs,is,Bl,wl],abstractMethods:[],methods:[],extends:[]},dT={type:n.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",entityType:n.BuiltInBaseEntity,id:St.DeletePersistedEntity},_l={type:n.FunctionDeclaration,id:St.DeletePersistedEntity,name:St.DeletePersistedEntity,description:"Permanently deletes the current copy of an entity from the database",version:1,parent:dT,inputs:[],calls:[],implements:null,collapsed:!1,returnStatements:[],index:0,private:!1,x:0,y:0},uT={type:n.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",entityType:n.BuiltInBaseEntity,id:St.SoftDeletePersistedEntity},pT={type:n.FunctionDeclaration,id:St.SoftDeletePersistedEntity,name:St.SoftDeletePersistedEntity,description:"Designates the entity as deleted, but does not remove it from the database.",version:1,parent:uT,inputs:[],calls:[],implements:null,collapsed:!1,returnStatements:[],index:0,private:!1,x:0,y:0},yT=G[n.BuiltInBaseEntity][L.PERSISTED_ENTITY].properties,hP={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},hT={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},fP={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:Bn,asType:!1,defaultValue:null,parent:hT},fT={id:"persisted-built-in-base-entity-database-property-parent-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},Ni={hidden:!0,required:!0,id:yT.database.id,name:"Database",version:1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:fP,description:"The database that the entity belongs to.",parent:fT},mT={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},TT={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},mP={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:Ga,asType:!1,defaultValue:{id:"persisted-built-in-base-entity-identifier-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:I.UUID,value:null,parent:mT,autogeneration:{type:qe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:TT},ET={id:"persisted-built-in-base-entity-identifier-property-parent-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},bT={hidden:!1,required:!0,id:yT.identifier.id,name:"Identifier",version:1,type:n.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:mP,description:"Auto-generated unique identifier for the entity, can be used to identify the entity among other entities of the same type.",parent:ET},TP={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},RT={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},gT={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:cn,asType:!1,defaultValue:null,parent:RT},vT={id:"persisted-built-in-base-entity-deleted-at-property-parent-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},IT={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:gT,description:"The date and time when the entity was deleted.",parent:vT},EP={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},DT={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},PT={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:cn,asType:!1,defaultValue:null,parent:DT},AT={id:"persisted-built-in-base-entity-created-at-property-parent-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},OT={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:PT,description:"The date and time when the entity was created.",parent:AT},bP={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},ST={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},CT={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:cn,asType:!1,defaultValue:null,parent:ST},BT={id:"persisted-built-in-base-entity-updated-at-property-parent-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},wT={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:CT,description:"The date and time when the entity was last updated.",parent:BT},Fe={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:[Ni,bT,IT,OT,wT],methods:[_l,pT],extends:[]},_T={id:"cron-job-triggered-function-declaration-blueprint-parent-ref-id",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},Nl={id:"cron-job-triggered-function-declaration-blueprint-id",name:"Cron job triggered",version:1,type:n.ActionDescriptor,argumentsType:M.None,returnsType:M.None,description:"Executed when the cron job is triggered",fixedArguments:[],dynamicArgumentTypes:null,error:null,fixedReturns:[],dynamicReturnTypes:null,parent:_T},NT=G[n.BuiltInBaseEntity].BUILT_IN_CRON_JOB_ENTITY,RP={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},MT={id:"cron-job-built-in-base-entity-expression-property-ref",type:n.GenericReference,entityId:NT.properties.expression.id,entityType:n.Property},gP={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:x,asType:!1,defaultValue:null,parent:MT},VT={id:"cron-job-built-in-base-entity-ref",type:n.GenericReference,entityId:L.CRON_JOB,entityType:n.BuiltInBaseEntity},LT={hidden:!1,required:!0,id:NT.properties.expression.id,name:"Cron expression",version:1,type:n.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:gP,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:VT},Ml={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:[LT],methods:[],abstractMethods:[Nl],extends:[]},$T={type:n.GenericReference,id:"execution-built-in-entity-abort-method-parent-ref-id",entityType:n.BuiltInBaseEntity,entityId:"execution-built-in-entity-id"},Vl={id:"execution-built-in-entity-abort-method-id",type:n.FunctionDeclaration,version:1,name:St.AbortExecution,description:"Aborts the execution of the entity",inputs:[],returnStatements:[],calls:[],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:$T},Ll={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:[Vl],abstractMethods:[]},vP=G[n.Condition]["not-empty"],GT={type:n.GenericReference,id:"not-empty-condition-ref",entityType:n.ActionDescriptor,entityId:Mt.NotEmpty},FT={id:vP.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:B.FixedArguments,index:0,parent:GT},nr={type:n.ActionDescriptor,id:Mt.NotEmpty,version:1,name:Mt.NotEmpty,description:"Checks if the value is not empty",parent:null,fixedArguments:[FT],fixedReturns:[],dynamicArgumentTypes:null,dynamicReturnTypes:null,argumentsType:M.Fixed,returnsType:M.None,error:null},UT={[Mt.NotEmpty]:nr},xT=G[n.Condition]["more-than-or-equal"],jT={type:n.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-parent-ref",entityType:n.ActionDescriptor,entityId:Me.MoreThanOrEqual},kT={id:xT.inputs.leftHand.id,type:n.ValueDescriptor,version:1,name:"First value",description:"The first value to compare",dataType:null,required:!0,parentRelationType:B.FixedArguments,index:0,parent:jT},qT={type:n.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-parent-ref",entityType:n.ActionDescriptor,entityId:Me.MoreThanOrEqual},JT={id:xT.inputs.rightHand.id,type:n.ValueDescriptor,version:1,name:"Second value",description:"The second value to compare",dataType:null,required:!0,parentRelationType:B.FixedArguments,index:1,parent:qT},jr={type:n.ActionDescriptor,id:Me.MoreThanOrEqual,version:1,name:Me.MoreThanOrEqual,description:"Checks if the value is not empty",parent:null,fixedArguments:[kT,JT],fixedReturns:[],dynamicArgumentTypes:null,dynamicReturnTypes:null,argumentsType:M.Fixed,returnsType:M.None,error:null},WT={[Me.MoreThanOrEqual]:jr},IP={...UT,...WT},as={type:n.ActionDescriptor,id:on.PROJECT_PUBLICATION_COMPLETED,version:1,name:on.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,fixedArguments:[],fixedReturns:[],dynamicArgumentTypes:null,dynamicReturnTypes:null,argumentsType:M.None,returnsType:M.None,error:null},DP={[on.PROJECT_PUBLICATION_COMPLETED]:as},$l=G[n.ValueDescriptor][qo.ActionOngoingProcessOutputValue],HT={type:n.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",entityType:n.ValueDescriptor,entityId:$l.id},YT={like:!1,inferred:!1,id:$l.dataType.id,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ll,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:HT},Gl={id:$l.id,type:n.ValueDescriptor,description:"A value that represents the ongoing process of the parent action",version:1,name:"Process",dataType:YT,required:!0,index:0,parent:null,parentRelationType:B.OngoingProcessExecution};var ee;(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(c=>typeof a[a[c]]!="number"),o={};for(const c of s)o[c]=a[c];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})(ee||(ee={}));var Fl;(function(r){r.mergeShapes=(e,t)=>({...e,...t})})(Fl||(Fl={}));const $=ee.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),wn=r=>{switch(typeof r){case"undefined":return $.undefined;case"string":return $.string;case"number":return isNaN(r)?$.nan:$.number;case"boolean":return $.boolean;case"function":return $.function;case"bigint":return $.bigint;case"symbol":return $.symbol;case"object":return Array.isArray(r)?$.array:r===null?$.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?$.promise:typeof Map<"u"&&r instanceof Map?$.map:typeof Set<"u"&&r instanceof Set?$.set:typeof Date<"u"&&r instanceof Date?$.date:$.object;default:return $.unknown}},C=ee.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"]),PP=r=>JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:");class gt 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 c=i,p=0;for(;p<o.path.length;){const y=o.path[p];p===o.path.length-1?(c[y]=c[y]||{_errors:[]},c[y]._errors.push(t(o))):c[y]=c[y]||{_errors:[]},c=c[y],p++}}};return a(this),i}static assert(e){if(!(e instanceof gt))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ee.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()}}gt.create=r=>new gt(r);const kr=(r,e)=>{let t;switch(r.code){case C.invalid_type:r.received===$.undefined?t="Required":t=`Expected ${r.expected}, received ${r.received}`;break;case C.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(r.expected,ee.jsonStringifyReplacer)}`;break;case C.unrecognized_keys:t=`Unrecognized key(s) in object: ${ee.joinValues(r.keys,", ")}`;break;case C.invalid_union:t="Invalid input";break;case C.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${ee.joinValues(r.options)}`;break;case C.invalid_enum_value:t=`Invalid enum value. Expected ${ee.joinValues(r.options)}, received '${r.received}'`;break;case C.invalid_arguments:t="Invalid function arguments";break;case C.invalid_return_type:t="Invalid function return type";break;case C.invalid_date:t="Invalid date";break;case C.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}"`:ee.assertNever(r.validation):r.validation!=="regex"?t=`Invalid ${r.validation}`:t="Invalid";break;case C.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 C.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 C.custom:t="Invalid input";break;case C.invalid_intersection_types:t="Intersection results could not be merged";break;case C.not_multiple_of:t=`Number must be a multiple of ${r.multipleOf}`;break;case C.not_finite:t="Number must be finite";break;default:t=e.defaultError,ee.assertNever(r)}return{message:t}};let zT=kr;function AP(r){zT=r}function ss(){return zT}const os=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 c="";const p=i.filter(y=>!!y).slice().reverse();for(const y of p)c=y(o,{data:e,defaultError:c}).message;return{...a,path:s,message:c}},OP=[];function V(r,e){const t=ss(),i=os({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 W;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 W;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 W=Object.freeze({status:"aborted"}),qr=r=>({status:"dirty",value:r}),pt=r=>({status:"valid",value:r}),Ul=r=>r.status==="aborted",xl=r=>r.status==="dirty",Mi=r=>r.status==="valid",Vi=r=>typeof Promise<"u"&&r instanceof Promise;function ls(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 ZT(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 U;(function(r){r.errToObj=e=>typeof e=="string"?{message:e}:e||{},r.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(U||(U={}));var Li,$i;class zt{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 KT=(r,e)=>{if(Mi(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 gt(r.common.issues);return this._error=t,this._error}}};function K(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,c)=>{var p,y;const{message:f}=r;return o.code==="invalid_enum_value"?{message:f??c.defaultError}:typeof c.data>"u"?{message:(p=f??i)!==null&&p!==void 0?p:c.defaultError}:o.code!=="invalid_type"?{message:c.defaultError}:{message:(y=f??t)!==null&&y!==void 0?y:c.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 wn(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:wn(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:wn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(Vi(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:wn(e)},s=this._parseSync({data:e,path:a.path,parent:a});return KT(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:wn(e)},a=this._parse({data:e,path:i.path,parent:i}),s=await(Vi(a)?a:Promise.resolve(a));return KT(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),c=()=>s.addIssue({code:C.custom,...i(a)});return typeof Promise<"u"&&o instanceof Promise?o.then(p=>p?!0:(c(),!1)):o?!0:(c(),!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 qt({schema:this,typeName:J.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Kt.create(this,this._def)}nullable(){return Vn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return kt.create(this,this._def)}promise(){return Yr.create(this,this._def)}or(e){return xi.create([this,e],this._def)}and(e){return ji.create(this,e,this._def)}transform(e){return new qt({...K(this._def),schema:this,typeName:J.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new Hi({...K(this._def),innerType:this,defaultValue:t,typeName:J.ZodDefault})}brand(){return new ql({typeName:J.ZodBranded,type:this,...K(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new Yi({...K(this._def),innerType:this,catchValue:t,typeName:J.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return zi.create(this,e)}readonly(){return Zi.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const SP=/^c[^\s-]{8,}$/i,CP=/^[0-9a-z]+$/,BP=/^[0-9A-HJKMNP-TV-Z]{26}$/,wP=/^[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,_P=/^[a-z0-9_-]{21}$/i,NP=/^[-+]?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)?)??$/,MP=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,VP="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let jl;const LP=/^(?:(?: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])$/,$P=/^(([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})))$/,GP=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,XT="((\\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])))",FP=new RegExp(`^${XT}$`);function QT(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 UP(r){return new RegExp(`^${QT(r)}$`)}function eE(r){let e=`${XT}T${QT(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 xP(r,e){return!!((e==="v4"||!e)&&LP.test(r)||(e==="v6"||!e)&&$P.test(r))}class jt extends X{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==$.string){const s=this._getOrReturnCtx(e);return V(s,{code:C.invalid_type,expected:$.string,received:s.parsedType}),W}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:C.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:C.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,c=e.data.length<s.value;(o||c)&&(a=this._getOrReturnCtx(e,a),o?V(a,{code:C.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):c&&V(a,{code:C.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),i.dirty())}else if(s.kind==="email")MP.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"email",code:C.invalid_string,message:s.message}),i.dirty());else if(s.kind==="emoji")jl||(jl=new RegExp(VP,"u")),jl.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"emoji",code:C.invalid_string,message:s.message}),i.dirty());else if(s.kind==="uuid")wP.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"uuid",code:C.invalid_string,message:s.message}),i.dirty());else if(s.kind==="nanoid")_P.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"nanoid",code:C.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid")SP.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"cuid",code:C.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid2")CP.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"cuid2",code:C.invalid_string,message:s.message}),i.dirty());else if(s.kind==="ulid")BP.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"ulid",code:C.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:C.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:C.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:C.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:C.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:C.invalid_string,validation:{endsWith:s.value},message:s.message}),i.dirty()):s.kind==="datetime"?eE(s).test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{code:C.invalid_string,validation:"datetime",message:s.message}),i.dirty()):s.kind==="date"?FP.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{code:C.invalid_string,validation:"date",message:s.message}),i.dirty()):s.kind==="time"?UP(s).test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{code:C.invalid_string,validation:"time",message:s.message}),i.dirty()):s.kind==="duration"?NP.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"duration",code:C.invalid_string,message:s.message}),i.dirty()):s.kind==="ip"?xP(e.data,s.version)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"ip",code:C.invalid_string,message:s.message}),i.dirty()):s.kind==="base64"?GP.test(e.data)||(a=this._getOrReturnCtx(e,a),V(a,{validation:"base64",code:C.invalid_string,message:s.message}),i.dirty()):ee.assertNever(s);return{status:i.value,value:e.data}}_regex(e,t,i){return this.refinement(a=>e.test(a),{validation:t,code:C.invalid_string,...U.errToObj(i)})}_addCheck(e){return new jt({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...U.errToObj(e)})}url(e){return this._addCheck({kind:"url",...U.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...U.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...U.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...U.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...U.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...U.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...U.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...U.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...U.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,...U.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,...U.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...U.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...U.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t==null?void 0:t.position,...U.errToObj(t==null?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...U.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...U.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...U.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...U.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...U.errToObj(t)})}nonempty(e){return this.min(1,U.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:J.ZodString,coerce:(e=r==null?void 0:r.coerce)!==null&&e!==void 0?e:!1,...K(r)})};function jP(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 _n 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)!==$.number){const s=this._getOrReturnCtx(e);return V(s,{code:C.invalid_type,expected:$.number,received:s.parsedType}),W}let i;const a=new nt;for(const s of this._def.checks)s.kind==="int"?ee.isInteger(e.data)||(i=this._getOrReturnCtx(e,i),V(i,{code:C.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:C.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:C.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="multipleOf"?jP(e.data,s.value)!==0&&(i=this._getOrReturnCtx(e,i),V(i,{code:C.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:C.not_finite,message:s.message}),a.dirty()):ee.assertNever(s);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,U.toString(t))}gt(e,t){return this.setLimit("min",e,!1,U.toString(t))}lte(e,t){return this.setLimit("max",e,!0,U.toString(t))}lt(e,t){return this.setLimit("max",e,!1,U.toString(t))}setLimit(e,t,i,a){return new _n({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:U.toString(a)}]})}_addCheck(e){return new _n({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:U.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:U.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:U.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:U.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:U.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:U.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:U.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:U.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:U.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"&&ee.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)}}_n.create=r=>new _n({checks:[],typeName:J.ZodNumber,coerce:(r==null?void 0:r.coerce)||!1,...K(r)});class Nn 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)!==$.bigint){const s=this._getOrReturnCtx(e);return V(s,{code:C.invalid_type,expected:$.bigint,received:s.parsedType}),W}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:C.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:C.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:C.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):ee.assertNever(s);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,U.toString(t))}gt(e,t){return this.setLimit("min",e,!1,U.toString(t))}lte(e,t){return this.setLimit("max",e,!0,U.toString(t))}lt(e,t){return this.setLimit("max",e,!1,U.toString(t))}setLimit(e,t,i,a){return new Nn({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:U.toString(a)}]})}_addCheck(e){return new Nn({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:U.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:U.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:U.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:U.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:U.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}}Nn.create=r=>{var e;return new Nn({checks:[],typeName:J.ZodBigInt,coerce:(e=r==null?void 0:r.coerce)!==null&&e!==void 0?e:!1,...K(r)})};class Gi extends X{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==$.boolean){const i=this._getOrReturnCtx(e);return V(i,{code:C.invalid_type,expected:$.boolean,received:i.parsedType}),W}return pt(e.data)}}Gi.create=r=>new Gi({typeName:J.ZodBoolean,coerce:(r==null?void 0:r.coerce)||!1,...K(r)});class rr extends X{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==$.date){const s=this._getOrReturnCtx(e);return V(s,{code:C.invalid_type,expected:$.date,received:s.parsedType}),W}if(isNaN(e.data.getTime())){const s=this._getOrReturnCtx(e);return V(s,{code:C.invalid_date}),W}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:C.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:C.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),i.dirty()):ee.assertNever(s);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new rr({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:U.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:U.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}}rr.create=r=>new rr({checks:[],coerce:(r==null?void 0:r.coerce)||!1,typeName:J.ZodDate,...K(r)});class cs extends X{_parse(e){if(this._getType(e)!==$.symbol){const i=this._getOrReturnCtx(e);return V(i,{code:C.invalid_type,expected:$.symbol,received:i.parsedType}),W}return pt(e.data)}}cs.create=r=>new cs({typeName:J.ZodSymbol,...K(r)});class Fi extends X{_parse(e){if(this._getType(e)!==$.undefined){const i=this._getOrReturnCtx(e);return V(i,{code:C.invalid_type,expected:$.undefined,received:i.parsedType}),W}return pt(e.data)}}Fi.create=r=>new Fi({typeName:J.ZodUndefined,...K(r)});class Ui extends X{_parse(e){if(this._getType(e)!==$.null){const i=this._getOrReturnCtx(e);return V(i,{code:C.invalid_type,expected:$.null,received:i.parsedType}),W}return pt(e.data)}}Ui.create=r=>new Ui({typeName:J.ZodNull,...K(r)});class Jr extends X{constructor(){super(...arguments),this._any=!0}_parse(e){return pt(e.data)}}Jr.create=r=>new Jr({typeName:J.ZodAny,...K(r)});class ir extends X{constructor(){super(...arguments),this._unknown=!0}_parse(e){return pt(e.data)}}ir.create=r=>new ir({typeName:J.ZodUnknown,...K(r)});class un extends X{_parse(e){const t=this._getOrReturnCtx(e);return V(t,{code:C.invalid_type,expected:$.never,received:t.parsedType}),W}}un.create=r=>new un({typeName:J.ZodNever,...K(r)});class ds extends X{_parse(e){if(this._getType(e)!==$.undefined){const i=this._getOrReturnCtx(e);return V(i,{code:C.invalid_type,expected:$.void,received:i.parsedType}),W}return pt(e.data)}}ds.create=r=>new ds({typeName:J.ZodVoid,...K(r)});class kt extends X{_parse(e){const{ctx:t,status:i}=this._processInputParams(e),a=this._def;if(t.parsedType!==$.array)return V(t,{code:C.invalid_type,expected:$.array,received:t.parsedType}),W;if(a.exactLength!==null){const o=t.data.length>a.exactLength.value,c=t.data.length<a.exactLength.value;(o||c)&&(V(t,{code:o?C.too_big:C.too_small,minimum:c?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:C.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:C.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,c)=>a.type._parseAsync(new zt(t,o,t.path,c)))).then(o=>nt.mergeArray(i,o));const s=[...t.data].map((o,c)=>a.type._parseSync(new zt(t,o,t.path,c)));return nt.mergeArray(i,s)}get element(){return this._def.type}min(e,t){return new kt({...this._def,minLength:{value:e,message:U.toString(t)}})}max(e,t){return new kt({...this._def,maxLength:{value:e,message:U.toString(t)}})}length(e,t){return new kt({...this._def,exactLength:{value:e,message:U.toString(t)}})}nonempty(e){return this.min(1,e)}}kt.create=(r,e)=>new kt({type:r,minLength:null,maxLength:null,exactLength:null,typeName:J.ZodArray,...K(e)});function Wr(r){if(r instanceof xe){const e={};for(const t in r.shape){const i=r.shape[t];e[t]=Kt.create(Wr(i))}return new xe({...r._def,shape:()=>e})}else return r instanceof kt?new kt({...r._def,type:Wr(r.element)}):r instanceof Kt?Kt.create(Wr(r.unwrap())):r instanceof Vn?Vn.create(Wr(r.unwrap())):r instanceof Zt?Zt.create(r.items.map(e=>Wr(e))):r}class xe 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=ee.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==$.object){const y=this._getOrReturnCtx(e);return V(y,{code:C.invalid_type,expected:$.object,received:y.parsedType}),W}const{status:i,ctx:a}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),c=[];if(!(this._def.catchall instanceof un&&this._def.unknownKeys==="strip"))for(const y in a.data)o.includes(y)||c.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 zt(a,m,a.path,y)),alwaysSet:y in a.data})}if(this._def.catchall instanceof un){const y=this._def.unknownKeys;if(y==="passthrough")for(const f of c)p.push({key:{status:"valid",value:f},value:{status:"valid",value:a.data[f]}});else if(y==="strict")c.length>0&&(V(a,{code:C.unrecognized_keys,keys:c}),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 c){const m=a.data[f];p.push({key:{status:"valid",value:f},value:y._parse(new zt(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 U.errToObj,new xe({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,i)=>{var a,s,o,c;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:(c=U.errToObj(e).message)!==null&&c!==void 0?c:p}:{message:p}}}:{}})}strip(){return new xe({...this._def,unknownKeys:"strip"})}passthrough(){return new xe({...this._def,unknownKeys:"passthrough"})}extend(e){return new xe({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new xe({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:J.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new xe({...this._def,catchall:e})}pick(e){const t={};return ee.objectKeys(e).forEach(i=>{e[i]&&this.shape[i]&&(t[i]=this.shape[i])}),new xe({...this._def,shape:()=>t})}omit(e){const t={};return ee.objectKeys(this.shape).forEach(i=>{e[i]||(t[i]=this.shape[i])}),new xe({...this._def,shape:()=>t})}deepPartial(){return Wr(this)}partial(e){const t={};return ee.objectKeys(this.shape).forEach(i=>{const a=this.shape[i];e&&!e[i]?t[i]=a:t[i]=a.optional()}),new xe({...this._def,shape:()=>t})}required(e){const t={};return ee.objectKeys(this.shape).forEach(i=>{if(e&&!e[i])t[i]=this.shape[i];else{let s=this.shape[i];for(;s instanceof Kt;)s=s._def.innerType;t[i]=s}}),new xe({...this._def,shape:()=>t})}keyof(){return tE(ee.objectKeys(this.shape))}}xe.create=(r,e)=>new xe({shape:()=>r,unknownKeys:"strip",catchall:un.create(),typeName:J.ZodObject,...K(e)}),xe.strictCreate=(r,e)=>new xe({shape:()=>r,unknownKeys:"strict",catchall:un.create(),typeName:J.ZodObject,...K(e)}),xe.lazycreate=(r,e)=>new xe({shape:r,unknownKeys:"strip",catchall:un.create(),typeName:J.ZodObject,...K(e)});class xi extends X{_parse(e){const{ctx:t}=this._processInputParams(e),i=this._def.options;function a(s){for(const c of s)if(c.result.status==="valid")return c.result;for(const c of s)if(c.result.status==="dirty")return t.common.issues.push(...c.ctx.common.issues),c.result;const o=s.map(c=>new gt(c.ctx.common.issues));return V(t,{code:C.invalid_union,unionErrors:o}),W}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 c=o.map(p=>new gt(p));return V(t,{code:C.invalid_union,unionErrors:c}),W}}get options(){return this._def.options}}xi.create=(r,e)=>new xi({options:r,typeName:J.ZodUnion,...K(e)});const pn=r=>r instanceof qi?pn(r.schema):r instanceof qt?pn(r.innerType()):r instanceof Ji?[r.value]:r instanceof Mn?r.options:r instanceof Wi?ee.objectValues(r.enum):r instanceof Hi?pn(r._def.innerType):r instanceof Fi?[void 0]:r instanceof Ui?[null]:r instanceof Kt?[void 0,...pn(r.unwrap())]:r instanceof Vn?[null,...pn(r.unwrap())]:r instanceof ql||r instanceof Zi?pn(r.unwrap()):r instanceof Yi?pn(r._def.innerType):[];class us extends X{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==$.object)return V(t,{code:C.invalid_type,expected:$.object,received:t.parsedType}),W;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:C.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),W)}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=pn(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 c of o){if(a.has(c))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(c)}`);a.set(c,s)}}return new us({typeName:J.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:a,...K(i)})}}function kl(r,e){const t=wn(r),i=wn(e);if(r===e)return{valid:!0,data:r};if(t===$.object&&i===$.object){const a=ee.objectKeys(e),s=ee.objectKeys(r).filter(c=>a.indexOf(c)!==-1),o={...r,...e};for(const c of s){const p=kl(r[c],e[c]);if(!p.valid)return{valid:!1};o[c]=p.data}return{valid:!0,data:o}}else if(t===$.array&&i===$.array){if(r.length!==e.length)return{valid:!1};const a=[];for(let s=0;s<r.length;s++){const o=r[s],c=e[s],p=kl(o,c);if(!p.valid)return{valid:!1};a.push(p.data)}return{valid:!0,data:a}}else return t===$.date&&i===$.date&&+r==+e?{valid:!0,data:r}:{valid:!1}}class ji extends X{_parse(e){const{status:t,ctx:i}=this._processInputParams(e),a=(s,o)=>{if(Ul(s)||Ul(o))return W;const c=kl(s.value,o.value);return c.valid?((xl(s)||xl(o))&&t.dirty(),{status:t.value,value:c.data}):(V(i,{code:C.invalid_intersection_types}),W)};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}))}}ji.create=(r,e,t)=>new ji({left:r,right:e,typeName:J.ZodIntersection,...K(t)});class Zt extends X{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==$.array)return V(i,{code:C.invalid_type,expected:$.array,received:i.parsedType}),W;if(i.data.length<this._def.items.length)return V(i,{code:C.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),W;!this._def.rest&&i.data.length>this._def.items.length&&(V(i,{code:C.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const s=[...i.data].map((o,c)=>{const p=this._def.items[c]||this._def.rest;return p?p._parse(new zt(i,o,i.path,c)):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 Zt({...this._def,rest:e})}}Zt.create=(r,e)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Zt({items:r,typeName:J.ZodTuple,rest:null,...K(e)})};class ki 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!==$.object)return V(i,{code:C.invalid_type,expected:$.object,received:i.parsedType}),W;const a=[],s=this._def.keyType,o=this._def.valueType;for(const c in i.data)a.push({key:s._parse(new zt(i,c,i.path,c)),value:o._parse(new zt(i,i.data[c],i.path,c)),alwaysSet:c 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 ki({keyType:e,valueType:t,typeName:J.ZodRecord,...K(i)}):new ki({keyType:jt.create(),valueType:e,typeName:J.ZodRecord,...K(t)})}}class ps 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!==$.map)return V(i,{code:C.invalid_type,expected:$.map,received:i.parsedType}),W;const a=this._def.keyType,s=this._def.valueType,o=[...i.data.entries()].map(([c,p],y)=>({key:a._parse(new zt(i,c,i.path,[y,"key"])),value:s._parse(new zt(i,p,i.path,[y,"value"]))}));if(i.common.async){const c=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 W;(y.status==="dirty"||f.status==="dirty")&&t.dirty(),c.set(y.value,f.value)}return{status:t.value,value:c}})}else{const c=new Map;for(const p of o){const y=p.key,f=p.value;if(y.status==="aborted"||f.status==="aborted")return W;(y.status==="dirty"||f.status==="dirty")&&t.dirty(),c.set(y.value,f.value)}return{status:t.value,value:c}}}}ps.create=(r,e,t)=>new ps({valueType:e,keyType:r,typeName:J.ZodMap,...K(t)});class ar extends X{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==$.set)return V(i,{code:C.invalid_type,expected:$.set,received:i.parsedType}),W;const a=this._def;a.minSize!==null&&i.data.size<a.minSize.value&&(V(i,{code:C.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:C.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 W;f.status==="dirty"&&t.dirty(),y.add(f.value)}return{status:t.value,value:y}}const c=[...i.data.values()].map((p,y)=>s._parse(new zt(i,p,i.path,y)));return i.common.async?Promise.all(c).then(p=>o(p)):o(c)}min(e,t){return new ar({...this._def,minSize:{value:e,message:U.toString(t)}})}max(e,t){return new ar({...this._def,maxSize:{value:e,message:U.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ar.create=(r,e)=>new ar({valueType:r,minSize:null,maxSize:null,typeName:J.ZodSet,...K(e)});class Hr extends X{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==$.function)return V(t,{code:C.invalid_type,expected:$.function,received:t.parsedType}),W;function i(c,p){return os({data:c,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,ss(),kr].filter(y=>!!y),issueData:{code:C.invalid_arguments,argumentsError:p}})}function a(c,p){return os({data:c,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,ss(),kr].filter(y=>!!y),issueData:{code:C.invalid_return_type,returnTypeError:p}})}const s={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof Yr){const c=this;return pt(async function(...p){const y=new gt([]),f=await c._def.args.parseAsync(p,s).catch(v=>{throw y.addIssue(i(p,v)),y}),m=await Reflect.apply(o,this,f);return await c._def.returns._def.type.parseAsync(m,s).catch(v=>{throw y.addIssue(a(m,v)),y})})}else{const c=this;return pt(function(...p){const y=c._def.args.safeParse(p,s);if(!y.success)throw new gt([i(p,y.error)]);const f=Reflect.apply(o,this,y.data),m=c._def.returns.safeParse(f,s);if(!m.success)throw new gt([a(f,m.error)]);return m.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Hr({...this._def,args:Zt.create(e).rest(ir.create())})}returns(e){return new Hr({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,i){return new Hr({args:e||Zt.create([]).rest(ir.create()),returns:t||ir.create(),typeName:J.ZodFunction,...K(i)})}}class qi 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})}}qi.create=(r,e)=>new qi({getter:r,typeName:J.ZodLazy,...K(e)});class Ji extends X{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return V(t,{received:t.data,code:C.invalid_literal,expected:this._def.value}),W}return{status:"valid",value:e.data}}get value(){return this._def.value}}Ji.create=(r,e)=>new Ji({value:r,typeName:J.ZodLiteral,...K(e)});function tE(r,e){return new Mn({values:r,typeName:J.ZodEnum,...K(e)})}class Mn extends X{constructor(){super(...arguments),Li.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),i=this._def.values;return V(t,{expected:ee.joinValues(i),received:t.parsedType,code:C.invalid_type}),W}if(ls(this,Li,"f")||ZT(this,Li,new Set(this._def.values),"f"),!ls(this,Li,"f").has(e.data)){const t=this._getOrReturnCtx(e),i=this._def.values;return V(t,{received:t.data,code:C.invalid_enum_value,options:i}),W}return pt(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 Mn.create(e,{...this._def,...t})}exclude(e,t=this._def){return Mn.create(this.options.filter(i=>!e.includes(i)),{...this._def,...t})}}Li=new WeakMap,Mn.create=tE;class Wi extends X{constructor(){super(...arguments),$i.set(this,void 0)}_parse(e){const t=ee.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==$.string&&i.parsedType!==$.number){const a=ee.objectValues(t);return V(i,{expected:ee.joinValues(a),received:i.parsedType,code:C.invalid_type}),W}if(ls(this,$i,"f")||ZT(this,$i,new Set(ee.getValidEnumValues(this._def.values)),"f"),!ls(this,$i,"f").has(e.data)){const a=ee.objectValues(t);return V(i,{received:i.data,code:C.invalid_enum_value,options:a}),W}return pt(e.data)}get enum(){return this._def.values}}$i=new WeakMap,Wi.create=(r,e)=>new Wi({values:r,typeName:J.ZodNativeEnum,...K(e)});class Yr extends X{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==$.promise&&t.common.async===!1)return V(t,{code:C.invalid_type,expected:$.promise,received:t.parsedType}),W;const i=t.parsedType===$.promise?t.data:Promise.resolve(t.data);return pt(i.then(a=>this._def.type.parseAsync(a,{path:t.path,errorMap:t.common.contextualErrorMap})))}}Yr.create=(r,e)=>new Yr({type:r,typeName:J.ZodPromise,...K(e)});class qt extends X{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===J.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 c=>{if(t.value==="aborted")return W;const p=await this._def.schema._parseAsync({data:c,path:i.path,parent:i});return p.status==="aborted"?W:p.status==="dirty"||t.value==="dirty"?qr(p.value):p});{if(t.value==="aborted")return W;const c=this._def.schema._parseSync({data:o,path:i.path,parent:i});return c.status==="aborted"?W:c.status==="dirty"||t.value==="dirty"?qr(c.value):c}}if(a.type==="refinement"){const o=c=>{const p=a.refinement(c,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 c};if(i.common.async===!1){const c=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return c.status==="aborted"?W:(c.status==="dirty"&&t.dirty(),o(c.value),{status:t.value,value:c.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(c=>c.status==="aborted"?W:(c.status==="dirty"&&t.dirty(),o(c.value).then(()=>({status:t.value,value:c.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(!Mi(o))return o;const c=a.transform(o.value,s);if(c instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:c}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(o=>Mi(o)?Promise.resolve(a.transform(o.value,s)).then(c=>({status:t.value,value:c})):o);ee.assertNever(a)}}qt.create=(r,e,t)=>new qt({schema:r,typeName:J.ZodEffects,effect:e,...K(t)}),qt.createWithPreprocess=(r,e,t)=>new qt({schema:e,effect:{type:"preprocess",transform:r},typeName:J.ZodEffects,...K(t)});class Kt extends X{_parse(e){return this._getType(e)===$.undefined?pt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Kt.create=(r,e)=>new Kt({innerType:r,typeName:J.ZodOptional,...K(e)});class Vn extends X{_parse(e){return this._getType(e)===$.null?pt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Vn.create=(r,e)=>new Vn({innerType:r,typeName:J.ZodNullable,...K(e)});class Hi extends X{_parse(e){const{ctx:t}=this._processInputParams(e);let i=t.data;return t.parsedType===$.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Hi.create=(r,e)=>new Hi({innerType:r,typeName:J.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...K(e)});class Yi 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 Vi(a)?a.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new gt(i.common.issues)},input:i.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new gt(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}Yi.create=(r,e)=>new Yi({innerType:r,typeName:J.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...K(e)});class ys extends X{_parse(e){if(this._getType(e)!==$.nan){const i=this._getOrReturnCtx(e);return V(i,{code:C.invalid_type,expected:$.nan,received:i.parsedType}),W}return{status:"valid",value:e.data}}}ys.create=r=>new ys({typeName:J.ZodNaN,...K(r)});const kP=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 zi 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"?W:s.status==="dirty"?(t.dirty(),qr(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"?W: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 zi({in:e,out:t,typeName:J.ZodPipeline})}}class Zi extends X{_parse(e){const t=this._def.innerType._parse(e),i=a=>(Mi(a)&&(a.value=Object.freeze(a.value)),a);return Vi(t)?t.then(a=>i(a)):i(t)}unwrap(){return this._def.innerType}}Zi.create=(r,e)=>new Zi({innerType:r,typeName:J.ZodReadonly,...K(e)});function nE(r,e={},t){return r?Jr.create().superRefine((i,a)=>{var s,o;if(!r(i)){const c=typeof e=="function"?e(i):typeof e=="string"?{message:e}:e,p=(o=(s=c.fatal)!==null&&s!==void 0?s:t)!==null&&o!==void 0?o:!0,y=typeof c=="string"?{message:c}:c;a.addIssue({code:"custom",...y,fatal:p})}}):Jr.create()}const qP={object:xe.lazycreate};var J;(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"})(J||(J={}));const JP=(r,e={message:`Input not instance of ${r.name}`})=>nE(t=>t instanceof r,e),hs=jt.create,Jl=_n.create,WP=ys.create,HP=Nn.create,Wl=Gi.create,rE=rr.create,YP=cs.create,zP=Fi.create,iE=Ui.create,ZP=Jr.create,fs=ir.create,KP=un.create,XP=ds.create,QP=kt.create,aE=xe.create,eA=xe.strictCreate,tA=xi.create,nA=us.create,rA=ji.create,iA=Zt.create,sE=ki.create,aA=ps.create,sA=ar.create,oA=Hr.create,lA=qi.create,cA=Ji.create,oE=Mn.create,dA=Wi.create,uA=Yr.create,lE=qt.create,pA=Kt.create,yA=Vn.create,hA=qt.createWithPreprocess,fA=zi.create;var d=Object.freeze({__proto__:null,defaultErrorMap:kr,setErrorMap:AP,getErrorMap:ss,makeIssue:os,EMPTY_PATH:OP,addIssueToContext:V,ParseStatus:nt,INVALID:W,DIRTY:qr,OK:pt,isAborted:Ul,isDirty:xl,isValid:Mi,isAsync:Vi,get util(){return ee},get objectUtil(){return Fl},ZodParsedType:$,getParsedType:wn,ZodType:X,datetimeRegex:eE,ZodString:jt,ZodNumber:_n,ZodBigInt:Nn,ZodBoolean:Gi,ZodDate:rr,ZodSymbol:cs,ZodUndefined:Fi,ZodNull:Ui,ZodAny:Jr,ZodUnknown:ir,ZodNever:un,ZodVoid:ds,ZodArray:kt,ZodObject:xe,ZodUnion:xi,ZodDiscriminatedUnion:us,ZodIntersection:ji,ZodTuple:Zt,ZodRecord:ki,ZodMap:ps,ZodSet:ar,ZodFunction:Hr,ZodLazy:qi,ZodLiteral:Ji,ZodEnum:Mn,ZodNativeEnum:Wi,ZodPromise:Yr,ZodEffects:qt,ZodTransformer:qt,ZodOptional:Kt,ZodNullable:Vn,ZodDefault:Hi,ZodCatch:Yi,ZodNaN:ys,BRAND:kP,ZodBranded:ql,ZodPipeline:zi,ZodReadonly:Zi,custom:nE,Schema:X,ZodSchema:X,late:qP,get ZodFirstPartyTypeKind(){return J},coerce:{string:r=>jt.create({...r,coerce:!0}),number:r=>_n.create({...r,coerce:!0}),boolean:r=>Gi.create({...r,coerce:!0}),bigint:r=>Nn.create({...r,coerce:!0}),date:r=>rr.create({...r,coerce:!0})},any:ZP,array:QP,bigint:HP,boolean:Wl,date:rE,discriminatedUnion:nA,effect:lE,enum:oE,function:oA,instanceof:JP,intersection:rA,lazy:lA,literal:cA,map:aA,nan:WP,nativeEnum:dA,never:KP,null:iE,nullable:yA,number:Jl,object:aE,oboolean:()=>Wl().optional(),onumber:()=>Jl().optional(),optional:pA,ostring:()=>hs().optional(),pipeline:fA,preprocess:hA,promise:uA,record:sE,set:sA,strictObject:eA,string:hs,symbol:YP,transformer:lE,tuple:iA,undefined:zP,union:tA,unknown:fs,void:XP,NEVER:W,ZodIssueCode:C,quotelessJson:PP,ZodError:gt});function cE(r){var a,s,o;if(!(r!=null&&r.dataType))return fs();const e=r.dataType.isNullable||!1,t=r.dataType.isList||!1;let i=fs();if(((a=r.dataType.entity)==null?void 0:a.type)===n.PrimitiveEntity)switch(r.dataType.entity.name){case I.String:i=hs();break;case I.JSON:i=sE(fs());break;case I.Number:i=Jl();break;case I.Boolean:i=Wl();break;case I.Date:i=rE();break;case I.Enum:{const c=r.dataType.options||[];if(c.length===0)throw new Error(`Enum property ${r.name} has no options`);i=oE(c);break}case I.Null:i=iE();break;case I.UUID:i=hs().uuid();break}else if(((s=r.dataType.entity)==null?void 0:s.type)===n.CustomEntity)i=dE(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 dE(r){const e=aE({});for(const t of r.properties){const i=cE(t);e.shape[t.name]=i}return e}function uE(r){const e=r.rangeStart;return new Date(e.getTime()+Math.random()*(Date.now()-e.getTime()))}function pE(r){const e=r.rangeEnd;return new Date(Math.random()*e.getTime())}function yE(r){const e=r.rangeStart,t=r.rangeEnd;return new Date(e.getTime()+Math.random()*(t.getTime()-e.getTime()))}function hE(r){return r.rangeStart&&r.rangeEnd?yE(r):r.rangeStart?uE(r):r.rangeEnd?pE(r):new Date}function mA(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var fE={},ms={},Ts={};Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.default=EA;let Es;const TA=new Uint8Array(16);function EA(){if(!Es&&(Es=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Es))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Es(TA)}var Ln={},sr={},bs={};Object.defineProperty(bs,"__esModule",{value:!0}),bs.default=void 0;var bA=/^(?:[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;bs.default=bA,Object.defineProperty(sr,"__esModule",{value:!0}),sr.default=void 0;var RA=gA(bs);function gA(r){return r&&r.__esModule?r:{default:r}}function vA(r){return typeof r=="string"&&RA.default.test(r)}var IA=vA;sr.default=IA,Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.default=void 0,Ln.unsafeStringify=mE;var DA=PA(sr);function PA(r){return r&&r.__esModule?r:{default:r}}const et=[];for(let r=0;r<256;++r)et.push((r+256).toString(16).slice(1));function mE(r,e=0){return et[r[e+0]]+et[r[e+1]]+et[r[e+2]]+et[r[e+3]]+"-"+et[r[e+4]]+et[r[e+5]]+"-"+et[r[e+6]]+et[r[e+7]]+"-"+et[r[e+8]]+et[r[e+9]]+"-"+et[r[e+10]]+et[r[e+11]]+et[r[e+12]]+et[r[e+13]]+et[r[e+14]]+et[r[e+15]]}function AA(r,e=0){const t=mE(r,e);if(!(0,DA.default)(t))throw TypeError("Stringified UUID is invalid");return t}var OA=AA;Ln.default=OA,Object.defineProperty(ms,"__esModule",{value:!0}),ms.default=void 0;var SA=BA(Ts),CA=Ln;function BA(r){return r&&r.__esModule?r:{default:r}}let TE,Hl,Yl=0,zl=0;function wA(r,e,t){let i=e&&t||0;const a=e||new Array(16);r=r||{};let s=r.node||TE,o=r.clockseq!==void 0?r.clockseq:Hl;if(s==null||o==null){const b=r.random||(r.rng||SA.default)();s==null&&(s=TE=[b[0]|1,b[1],b[2],b[3],b[4],b[5]]),o==null&&(o=Hl=(b[6]<<8|b[7])&16383)}let c=r.msecs!==void 0?r.msecs:Date.now(),p=r.nsecs!==void 0?r.nsecs:zl+1;const y=c-Yl+(p-zl)/1e4;if(y<0&&r.clockseq===void 0&&(o=o+1&16383),(y<0||c>Yl)&&r.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Yl=c,zl=p,Hl=o,c+=122192928e5;const f=((c&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=c/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,CA.unsafeStringify)(a)}var _A=wA;ms.default=_A;var Rs={},$n={},Ki={};Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.default=void 0;var NA=MA(sr);function MA(r){return r&&r.__esModule?r:{default:r}}function VA(r){if(!(0,NA.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 LA=VA;Ki.default=LA,Object.defineProperty($n,"__esModule",{value:!0}),$n.URL=$n.DNS=void 0,$n.default=xA;var $A=Ln,GA=FA(Ki);function FA(r){return r&&r.__esModule?r:{default:r}}function UA(r){r=unescape(encodeURIComponent(r));const e=[];for(let t=0;t<r.length;++t)e.push(r.charCodeAt(t));return e}const EE="6ba7b810-9dad-11d1-80b4-00c04fd430c8";$n.DNS=EE;const bE="6ba7b811-9dad-11d1-80b4-00c04fd430c8";$n.URL=bE;function xA(r,e,t){function i(a,s,o,c){var p;if(typeof a=="string"&&(a=UA(a)),typeof s=="string"&&(s=(0,GA.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){c=c||0;for(let f=0;f<16;++f)o[c+f]=y[f];return o}return(0,$A.unsafeStringify)(y)}try{i.name=r}catch{}return i.DNS=EE,i.URL=bE,i}var gs={};Object.defineProperty(gs,"__esModule",{value:!0}),gs.default=void 0;function jA(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 kA(qA(JA(r),r.length*8))}function kA(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 RE(r){return(r+64>>>9<<4)+14+1}function qA(r,e){r[e>>5]|=128<<e%32,r[RE(e)-1]=e;let t=1732584193,i=-271733879,a=-1732584194,s=271733878;for(let o=0;o<r.length;o+=16){const c=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=Gn(t,c),i=Gn(i,p),a=Gn(a,y),s=Gn(s,f)}return[t,i,a,s]}function JA(r){if(r.length===0)return[];const e=r.length*8,t=new Uint32Array(RE(e));for(let i=0;i<e;i+=8)t[i>>5]|=(r[i/8]&255)<<i%32;return t}function Gn(r,e){const t=(r&65535)+(e&65535);return(r>>16)+(e>>16)+(t>>16)<<16|t&65535}function WA(r,e){return r<<e|r>>>32-e}function vs(r,e,t,i,a,s){return Gn(WA(Gn(Gn(e,r),Gn(i,s)),a),t)}function rt(r,e,t,i,a,s,o){return vs(e&t|~e&i,r,e,a,s,o)}function it(r,e,t,i,a,s,o){return vs(e&i|t&~i,r,e,a,s,o)}function at(r,e,t,i,a,s,o){return vs(e^t^i,r,e,a,s,o)}function st(r,e,t,i,a,s,o){return vs(t^(e|~i),r,e,a,s,o)}var HA=jA;gs.default=HA,Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.default=void 0;var YA=gE($n),zA=gE(gs);function gE(r){return r&&r.__esModule?r:{default:r}}var ZA=(0,YA.default)("v3",48,zA.default);Rs.default=ZA;var Is={},Ds={};Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.default=void 0;var KA={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};Ds.default=KA,Object.defineProperty(Is,"__esModule",{value:!0}),Is.default=void 0;var vE=IE(Ds),XA=IE(Ts),QA=Ln;function IE(r){return r&&r.__esModule?r:{default:r}}function eO(r,e,t){if(vE.default.randomUUID&&!e&&!r)return vE.default.randomUUID();r=r||{};const i=r.random||(r.rng||XA.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,QA.unsafeStringify)(i)}var tO=eO;Is.default=tO;var Ps={},As={};Object.defineProperty(As,"__esModule",{value:!0}),As.default=void 0;function nO(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 Zl(r,e){return r<<e|r>>>32-e}function rO(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 c=0;c<o.length;++c)r.push(o.charCodeAt(c))}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 c=new Uint32Array(16);for(let p=0;p<16;++p)c[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]=c}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 c=new Uint32Array(80);for(let v=0;v<16;++v)c[v]=s[o][v];for(let v=16;v<80;++v)c[v]=Zl(c[v-3]^c[v-8]^c[v-14]^c[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=Zl(p,5)+nO(P,y,f,m)+b+e[P]+c[v]>>>0;b=m,m=f,f=Zl(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 iO=rO;As.default=iO,Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.default=void 0;var aO=DE($n),sO=DE(As);function DE(r){return r&&r.__esModule?r:{default:r}}var oO=(0,aO.default)("v5",80,sO.default);Ps.default=oO;var Os={};Object.defineProperty(Os,"__esModule",{value:!0}),Os.default=void 0;var lO="00000000-0000-0000-0000-000000000000";Os.default=lO;var Ss={};Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.default=void 0;var cO=dO(sr);function dO(r){return r&&r.__esModule?r:{default:r}}function uO(r){if(!(0,cO.default)(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}var pO=uO;Ss.default=pO,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 c.default}}),Object.defineProperty(r,"version",{enumerable:!0,get:function(){return o.default}});var e=f(ms),t=f(Rs),i=f(Is),a=f(Ps),s=f(Os),o=f(Ss),c=f(sr),p=f(Ln),y=f(Ki);function f(m){return m&&m.__esModule?m:{default:m}}}(fE);function Kl(r,e){if(!r||!e||!r.length||!e.length)throw new Error("Bad alphabet");this.srcAlphabet=r,this.dstAlphabet=e}Kl.prototype.convert=function(r){var e,t,i,a={},s=this.srcAlphabet.length,o=this.dstAlphabet.length,c=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<c;e++)a[e]=this.srcAlphabet.indexOf(r[e]);do{for(t=0,i=0,e=0;e<c;e++)t=t*s+a[e],t>=o?(a[i++]=parseInt(t/o,10),t=t%o):i>0&&(a[i++]=0);c=i,p=this.dstAlphabet.slice(t,t+1).concat(p)}while(i!==0);return p},Kl.prototype.isValid=function(r){for(var e=0;e<r.length;++e)if(this.srcAlphabet.indexOf(r[e])===-1)return!1;return!0};var yO=Kl,hO=yO;function Xi(r,e){var t=new hO(r,e);return function(i){return t.convert(i)}}Xi.BIN="01",Xi.OCT="01234567",Xi.DEC="0123456789",Xi.HEX="0123456789abcdef";var fO=Xi;const{v4:Xl,validate:mO}=fE,Cs=fO,Ql={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},TO={consistentLength:!0};let ec;const PE=(r,e,t)=>{const i=e(r.toLowerCase().replace(/-/g,""));return!t||!t.consistentLength?i:i.padStart(t.shortIdLength,t.paddingChar)},AE=(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("-")},EO=r=>Math.ceil(Math.log(2**128)/Math.log(r));var bO=(()=>{const r=(e,t)=>{const i=e||Ql.flickrBase58,a={...TO,...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=EO(i.length),o={shortIdLength:s,consistentLength:a.consistentLength,paddingChar:i[0]},c=Cs(Cs.HEX,i),p=Cs(i,Cs.HEX),y=()=>PE(Xl(),c,o),m={alphabet:i,fromUUID:b=>PE(b,c,o),maxLength:s,generate:y,new:y,toUUID:b=>AE(b,p),uuid:Xl,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(A=>i.includes(A));return v===!1?P&&O:P&&O&&mO(AE(b,p))}};return Object.freeze(m),m};return r.constants=Ql,r.uuid=Xl,r.generate=()=>(ec||(ec=r(Ql.flickrBase58).generate),ec()),r})();const Bs=mA(bO);function OE(){return Bs().uuid()}function SE(r){return r.rangeStart+Math.random()}function CE(r){const e=r.rangeEnd;return Math.random()*e}function BE(r){const e=r.rangeStart,t=r.rangeEnd;return Math.random()*(t-e)+e}function wE(r){return r.rangeStart&&r.rangeEnd?BE(r):r.rangeStart?SE(r):r.rangeEnd?CE(r):Math.random()}function _E(r){const e=r.rangeStart;return Math.random().toString(36).substring(e)}function NE(r){const e=r.rangeEnd;return Math.random().toString(36).substring(0,e)}function ME(r){const e=r.rangeStart,t=r.rangeEnd;return Math.random().toString(36).substring(e,t)}function VE(r){return r.rangeStart&&r.rangeEnd?ME(r):r.rangeStart?_E(r):r.rangeEnd?NE(r):Math.random().toString(36)}function LE(r){return Math.random()>=.5}function RO(r){if(!r||!r.autogeneration)return null;switch(r.autogeneration.type){case qe.CurrentDateAndTime:if(r.name===I.Date)return new Date;case qe.Random:{if(r.name===I.Date)return hE(r.autogeneration);if(r.name===I.Number)return wE(r.autogeneration);if(r.name===I.String)return VE(r.autogeneration);if(r.name===I.Boolean)return LE(r.autogeneration)}case qe.Unique:if(r.name===I.UUID)return OE();default:throw new Error(`Generating a ${r.autogeneration.type} value for a ${r.name} is not supported`)}}const z="e7eb5382-3d99-44fd-972a-b8b1e819f6be",tc="global-user-variable-id",$E="last-executed-timestamp-variable-id",gO={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},vO={id:"alternative-relational-database-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",entityType:n.Property},IO={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:x,asType:!1,defaultValue:{id:"alternative-relational-database-entity-identifier-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:I.String,value:null,parent:gO,autogeneration:{type:qe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:vO},ws={id:"alternative-relational-database-entity-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},DO={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:ts,static:!0,index:0,dataType:IO,description:"The name of the main database inside of the server instance where the data will be stored.",parent:ws};n.GenericReference,n.DataType;const PO={id:"alternative-relational-database-entity-username-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-username-property-id",entityType:n.Property},AO={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:x,asType:!1,defaultValue:null,parent:PO},OO={hidden:!1,required:!0,id:"alternative-relational-database-entity-username-property-id",name:"Username",version:1,type:n.Property,private:!1,abstract:!1,implements:ns,static:!0,index:1,dataType:AO,description:"The username that will be used to connect to the database.",parent:ws};n.GenericReference,n.DataType;const SO={id:"alternative-relational-database-entity-password-property-ref-id",type:n.GenericReference,entityId:"alternative-relational-database-entity-password-property-id",entityType:n.Property},CO={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:x,asType:!1,defaultValue:null,parent:SO},BO={hidden:!1,required:!0,id:"alternative-relational-database-entity-password-property-id",name:"Password",version:1,type:n.Property,private:!1,abstract:!1,implements:rs,static:!0,index:2,dataType:CO,description:"The password that will be used to connect to the database.",parent:ws},wO={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},_O={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},NO={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:te,asType:!1,defaultValue:{id:"alternative-relational-database-entity-min-size-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:I.Number,value:6,parent:wO,autogeneration:null,valueAsType:null},parent:_O},MO={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:is,static:!0,index:3,dataType:NO,description:"The minimum size of the database in GB.",parent:ws},VO={id:"alternative-relational-database-entity-parent-ref-id",type:n.GenericReference,entityId:z,entityType:n.Project},GE={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:[DO,OO,BO,MO],methods:[],abstractMethods:[],extends:[],implements:[Bn],x:0,y:0,parent:VO},LO={id:"animal-prototype-database-property-ref-id",type:n.GenericReference,entityId:"animal-prototype-database-property-id",entityType:n.Property},$O={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},GO={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:Bn,asType:!1,defaultValue:{id:"animal-prototype-database-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,value:null,name:I.EntityTemplate,valueAsType:GE,autogeneration:null,parent:$O},parent:LO},FO={id:"animal-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:n.CustomEntity},UO={hidden:!1,required:!0,id:"animal-prototype-database-property-id",name:"Database",version:1,type:n.Property,private:!1,abstract:!1,implements:Ni,static:!0,index:0,dataType:GO,description:"The database that the entity belongs to.",parent:FO},xO={type:n.GenericReference,id:"291e4d4f-01d8-40a0-90dc-5f1ac6636e9b",entityType:n.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},jO={like:!1,inferred:!1,id:"c1930577-9e79-48a6-8905-be24611015c1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:xO},kO={type:n.GenericReference,id:"e2b9e456-f2b3-4dc7-85a2-fbb68ed0c9c7",entityType:n.CustomEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},qO={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:jO,abstract:!1,parent:kO},JO={type:n.GenericReference,id:"abc565de-4c83-4936-bc48-4013bef213b8",entityType:n.Project,entityId:z},WO={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:[UO,qO],methods:[],extends:[],implements:[Fe],x:0,y:0,parent:JO},HO={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},YO={id:"default-relational-database-entity-identifier-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",entityType:n.Property},zO={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:x,asType:!1,defaultValue:{id:"default-relational-database-entity-identifier-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:I.String,value:"main",parent:HO,autogeneration:{type:qe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:YO},zr={id:"default-relational-database-entity-ref-id",type:n.GenericReference,entityId:L.PERSISTED_ENTITY,entityType:n.BuiltInBaseEntity},ZO={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:ts,static:!0,index:0,dataType:zO,description:"The name of the main database inside of the server instance where the data will be stored.",parent:zr};n.GenericReference,n.DataType;const KO={id:"default-relational-database-entity-username-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-username-property-id",entityType:n.Property},XO={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},QO={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:x,asType:!1,defaultValue:{id:"default-relational-database-entity-username-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:I.String,value:"root",parent:XO,autogeneration:null,valueAsType:null},parent:KO},eS={hidden:!1,required:!0,id:"default-relational-database-entity-username-property-id",name:"Username",version:1,type:n.Property,private:!1,abstract:!1,implements:ns,static:!0,index:1,dataType:QO,description:"The username that will be used to connect to the database.",parent:zr};n.GenericReference,n.DataType;const tS={id:"default-relational-database-entity-password-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-password-property-id",entityType:n.Property},nS={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},rS={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:x,asType:!1,defaultValue:{id:"default-relational-database-entity-password-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:I.String,value:"password",parent:nS,autogeneration:null,valueAsType:null},parent:tS},iS={hidden:!1,required:!0,id:"default-relational-database-entity-password-property-id",name:"Password",version:1,type:n.Property,private:!1,abstract:!1,implements:rs,static:!0,index:2,dataType:rS,description:"The password that will be used to connect to the database.",parent:zr},aS={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},sS={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},oS={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:te,asType:!1,defaultValue:{id:"default-relational-database-entity-min-size-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:I.Number,value:6,parent:aS,autogeneration:null,valueAsType:null},parent:sS},lS={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:is,static:!0,index:3,dataType:oS,description:"The minimum size of the database in GB.",parent:zr},cS={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},dS={id:"default-relational-database-entity-default-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-default-property-id",entityType:n.Property},uS={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:te,asType:!1,defaultValue:{id:"default-relational-database-entity-default-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:I.Boolean,value:!0,parent:cS,autogeneration:null,valueAsType:null},parent:dS},pS={hidden:!0,required:!0,id:"default-relational-database-entity-default-property-id",name:"Default",version:1,type:n.Property,private:!1,abstract:!1,implements:Bl,static:!0,index:4,dataType:uS,description:"Whether this database is automatically picked by other entities as the default database.",parent:zr},yS={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},hS={id:"default-relational-database-entity-autoscaling-property-ref-id",type:n.GenericReference,entityId:"default-relational-database-entity-autoscaling-property-id",entityType:n.Property},fS={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:te,asType:!1,defaultValue:{id:"default-relational-database-entity-autoscaling-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:I.Boolean,value:!0,parent:yS,autogeneration:null,valueAsType:null},parent:hS},mS={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:wl,static:!0,index:5,dataType:fS,description:"If true, this database will automatically scale up or down in memory size, based on the usage.s",parent:zr},TS={id:"default-relational-database-entity-parent-ref-id",type:n.GenericReference,entityId:z,entityType:n.Project},nc={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:[pS,mS,ZO,eS,iS,lS],methods:[],abstractMethods:[],extends:[],implements:[Bn],x:0,y:0,parent:TS},ES={id:"user-prototype-database-property-data-type-ref-id",type:n.GenericReference,entityId:"user-prototype-database-property-data-type-id",entityType:n.DataType},bS={id:"user-prototype-database-property-ref-id",type:n.GenericReference,entityId:"user-prototype-database-property-id",entityType:n.Property},RS={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:Bn,asType:!1,defaultValue:{id:"user-prototype-database-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,value:null,name:I.EntityTemplate,valueAsType:nc,autogeneration:null,parent:ES},parent:bS},gS={id:"user-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:n.CustomEntity},vS={hidden:!1,required:!0,id:"user-prototype-database-property-id",name:"Database",version:1,type:n.Property,private:!1,abstract:!1,implements:Ni,static:!0,index:0,dataType:RS,description:"The database that the entity belongs to.",parent:gS},IS={type:n.GenericReference,id:"user-prototype-parent-ref-id",entityType:n.Project,entityId:z},rc={type:n.CustomEntity,id:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:1,name:"User",description:"A user of the application",implements:[Fe],abstract:!1,static:!1,abstractMethods:[],extends:[],properties:[vS],methods:[],x:0,y:0,parent:IS},DS={type:n.GenericReference,id:"person-date-of-birth-property-data-type-parent-ref-id",entityType:n.Property,entityId:"person-date-of-birth-property-id"},PS={like:!1,inferred:!1,id:"person-date-of-birth-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:cn,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:DS},AS={type:n.GenericReference,id:"person-date-of-birth-property-parent-ref-id",entityType:n.CustomEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},OS={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:PS,abstract:!1,parent:AS},SS={type:n.GenericReference,id:"a2867827-2f8e-4c25-b18b-d91857d7f24e",entityType:n.Property,entityId:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7"},CS={like:!1,inferred:!1,id:"1d49f41b-17b9-4f48-87aa-3ce43498e5a9",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:SS},BS={type:n.GenericReference,id:"01cbe760-40a9-4f49-8e3d-194d2f57cb1e",entityType:n.CustomEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},wS={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:CS,abstract:!1,parent:BS},_S={type:n.GenericReference,id:"3542b22a-3a2f-41c6-876e-24c885572498",entityType:n.Project,entityId:z},yt={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:[wS,OS],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[rc],x:0,y:0,parent:_S},NS={type:n.GenericReference,id:"b59c80b7-b2e9-41e9-abcd-7c5652835efc",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},MS={type:n.GenericReference,id:"1190b5a2-f25e-46db-884d-8a3dd1a44d94",entityType:n.ReturnStatement,entityId:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e"},VS={type:n.GenericReference,id:"36c63126-7814-496f-a6cc-48662c2aabae",entityType:n.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},LS={type:n.GenericReference,id:"c567e55d-ec12-4e4e-958e-f07522892b4b",entityType:n.ReturnDeclaration,entityId:"9e070523-7e07-4100-8637-960a187f5f14"},$S={like:!1,inferred:!1,id:"3973c5a1-f0d8-49a0-a9a9-a0009bf3f0d8",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:yt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:LS},ic={isError:!1,id:"9e070523-7e07-4100-8637-960a187f5f14",type:n.ReturnDeclaration,version:1,name:"Output Account Owner",description:null,dataType:$S,implements:null,readsValue:VS,required:!0,index:0,parent:MS},GS={type:n.GenericReference,id:"567d923c-20da-4c1e-956d-962ea30c6d0b",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},FS={type:n.GenericReference,id:"da85e620-59f3-42ab-88c8-b38d33c2c833",entityType:n.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},FE={type:n.ReturnStatement,id:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e",version:1,outputs:[ic],calledByError:[],calledByEntry:[GS],calledBySuccess:[],throws:null,x:0,y:0,parent:FS},US={type:n.GenericReference,id:"1c806bb7-4c25-4bad-963b-93dfbb7c8304",entityType:n.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},xS={like:!1,inferred:!1,id:"d90fcc18-642b-433c-8fcb-4094b9031cd5",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:yt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:US},UE={id:"500dee3a-3435-4453-9699-0d053f646523",type:n.ArgumentDeclaration,version:1,name:"New Account Owner",description:null,dataType:xS,implements:null,required:!0,writesValues:[ic],index:0,parent:NS},jS={type:n.GenericReference,id:"83dceb60-f3c4-4085-824c-85f2003bfd27",entityType:n.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},xE={type:n.FunctionDeclaration,id:"36f29f96-c001-4b9a-b49c-83eff406a060",version:1,name:"Change owner of bank account",description:null,implements:null,inputs:[UE],calls:[FE],returnStatements:[FE],index:0,collapsed:!1,private:!1,x:0,y:0,parent:jS},kS={type:n.GenericReference,id:"adbaf302-ffa9-49b6-a3c6-83f9a75068e3",entityType:n.VariableDeclaration,entityId:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b"},qS={like:!1,inferred:!1,id:"79ee04aa-1ba4-4ae9-a406-ed45e5b03f7f",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:yt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:kS},JS={type:n.GenericReference,id:"55e212d1-f0ec-4bb6-acbe-60f741367daf",entityType:n.OutputMap,entityId:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4"},WS={type:n.GenericReference,id:"944e1171-3d9b-4559-9386-1d4974b15962",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},HS={id:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b",type:n.VariableDeclaration,version:1,name:"Output Account Owner",description:null,dataType:qS,readsValue:JS,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:WS},YS={type:n.GenericReference,id:"b89ebc83-52cf-4447-a5ae-62241f713079",entityType:n.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},zS={id:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4",type:n.OutputMap,version:1,declaration:ic,writesValues:[HS],index:0,parent:YS},ZS={type:n.GenericReference,id:"c1b9e125-1aad-48b7-9687-95c57a6bc10d",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},KS={type:n.GenericReference,id:"d2deaa02-e164-4425-905c-6dee47eb4eac",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},XS={type:n.GenericReference,id:"1109a655-ac62-4110-a933-42a72106f4f0",entityType:n.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},QS={like:!1,inferred:!1,id:"7d9a1307-512e-42ec-9797-2f7229796b97",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:yt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:XS},eC={type:n.GenericReference,id:"bb61ebf7-57b3-4d14-905d-82ec907205b5",entityType:n.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},tC={type:n.GenericReference,id:"6b8c7bf2-9fc8-4ea4-9ec0-f41679d513b1",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},nC={type:n.GenericReference,id:"6163d1a1-7a94-49b1-95bb-aecd8d6d335c",entityType:n.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},rC={type:n.GenericReference,id:"1f900f62-4bd2-4246-94aa-b8f5aad384fd",entityType:n.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},jE={id:"be8538be-e6f9-4b94-9314-a546003ebaa0",type:n.InputMap,version:1,declaration:UE,name:null,description:null,readsValue:rC,defaultValue:null,index:0,parent:nC},iC={type:n.VariableDeclaration,id:"8bea6986-8da2-487b-905d-2fb962db6728",version:1,name:"Changed Account Owner",description:null,dataType:QS,readsValue:eC,writesValues:[jE],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:tC},aC={type:n.FunctionCall,id:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e",version:1,declaration:xE,inputs:[jE],outputs:[zS],process:null,successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[ZS],calledBySuccess:[],parent:KS,error:null,x:0,y:0},sC={type:n.GenericReference,id:"2d47aba1-a918-46a7-8db7-78809928654a",entityType:n.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},oC={like:!1,inferred:!1,id:"5583766c-e9a5-484c-8f43-f4b0a6a1876c",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:yt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:sC},lC={type:n.GenericReference,id:"3e2a81e4-55b2-49f5-94eb-39135e95c3d7",entityType:n.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},cC={id:"38f6b236-98ac-47b0-ab9c-d2f9610137b9",type:n.ArgumentDeclaration,version:1,description:null,name:"New Company Owner",dataType:oC,implements:null,required:!0,index:0,writesValues:[iC],parent:lC},dC={type:n.GenericReference,id:"30291b01-1b94-4d03-b434-dec122c2bc7d",entityType:n.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},uC={type:n.FunctionDeclaration,id:"15ee556d-681f-47de-a31f-16d4ba73cc4e",version:1,description:null,name:"Change Account Owner",inputs:[cC],collapsed:!0,returnStatements:[],calls:[aC],private:!1,index:0,implements:null,x:0,y:0,parent:dC},pC={type:n.GenericReference,id:"72c7ac0a-886e-4e10-b7ed-2f5a819a0233",entityType:n.Property,entityId:"b8f4656a-2b77-43ab-af51-7c32ddede044"},yC={like:!1,inferred:!1,id:"c09dd282-73f6-4077-a467-b66db20b9fc6",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:pC},hC={type:n.GenericReference,id:"8a950024-512c-4580-81db-a705410aeb99",entityType:n.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},fC={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:yC,abstract:!1,parent:hC},mC={type:n.GenericReference,id:"b6704b6c-c3bd-49d0-8ebc-82d03e726cbb",entityType:n.Property,entityId:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea"},TC={like:!1,inferred:!1,id:"c03e0b0a-88ab-401a-8833-4806738bdc37",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:yt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:mC},EC={type:n.GenericReference,id:"1ef999a7-e9ed-406a-866e-e58277fc985b",entityType:n.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},bC={hidden:!1,required:!0,type:n.Property,id:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea",version:1,description:null,name:"Account Owner",index:1,dataType:TC,implements:null,static:!1,private:!0,abstract:!1,parent:EC},RC={type:n.GenericReference,id:"d41d7f41-98b8-4f67-be92-c349fdda5156",entityType:n.Project,entityId:z},Zr={type:n.CustomEntity,id:"506946aa-30da-48e6-918f-ffd9eac58813",version:1,name:"Bank Account",description:null,abstract:!1,static:!1,abstractMethods:[],properties:[fC,bC],methods:[xE,uC],extends:[],implements:[Fe],x:0,y:0,parent:RC},Qi="bitcoin-api-response-id",kE="time-property-id",qE="disclaimer-property-id",JE="chart-name-property-id",WE="bpi-property-id",_s="bpi-entity-id",HE="usd-property-id",YE="gbp-property-id",zE="eur-property-id",Kr="currency-entity-id",ZE="currency-code-property-id",KE="currency-symbol-property-id",XE="currency-rate-property-id",QE="currency-description-property-id",eb="currency-rate-number-property-id",gC={type:n.GenericReference,id:"code-property-data-type-parent-ref-id",entityType:n.Property,entityId:ZE},vC={like:!1,inferred:!1,id:"code-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Cn,isList:!1,asType:!1,isNullable:!1,defaultValue:null,options:["USD","GBP","EUR"],constant:!1,parent:gC},IC={type:n.GenericReference,id:"code-property-parent-ref-id",entityType:n.CustomEntity,entityId:Kr},DC={hidden:!1,required:!0,type:n.Property,id:ZE,version:1,name:"code",description:null,dataType:vC,index:0,implements:null,static:!1,private:!1,abstract:!1,parent:IC},PC={type:n.GenericReference,id:"symbol-property-data-type-parent-ref-id",entityType:n.Property,entityId:KE},AC={like:!1,inferred:!1,id:"symbol-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Cn,isList:!1,asType:!1,isNullable:!1,defaultValue:null,options:["&#36;","&pound;","&euro;"],constant:!1,parent:PC},OC={type:n.GenericReference,id:"symbol-property-parent-ref-id",entityType:n.CustomEntity,entityId:Kr},SC={hidden:!1,required:!0,type:n.Property,id:KE,version:1,name:"symbol",description:null,index:0,dataType:AC,implements:null,static:!1,private:!1,abstract:!1,parent:OC},CC={type:n.GenericReference,id:"rate-property-data-type-parent-ref-id",entityType:n.Property,entityId:XE},BC={like:!1,inferred:!1,id:"rate-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:CC},wC={type:n.GenericReference,id:"rate-property-parent-ref-id",entityType:n.CustomEntity,entityId:Kr},_C={hidden:!1,required:!0,type:n.Property,id:XE,version:1,name:"rate",description:null,index:0,dataType:BC,implements:null,static:!1,private:!1,abstract:!1,parent:wC},NC={type:n.GenericReference,id:"description-property-data-type-parent-ref-id",entityType:n.Property,entityId:QE},MC={like:!1,inferred:!1,id:"description-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:NC},VC={type:n.GenericReference,id:"description-property-parent-ref-id",entityType:n.CustomEntity,entityId:Kr},LC={hidden:!1,required:!0,type:n.Property,id:QE,version:1,name:"description",description:null,dataType:MC,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:VC},$C={type:n.GenericReference,id:"rate-number-property-data-type-parent-ref-id",entityType:n.Property,entityId:eb},GC={like:!1,inferred:!1,id:"rate-number-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:$C},FC={type:n.GenericReference,id:"rate-number-property-parent-ref-id",entityType:n.CustomEntity,entityId:Kr},UC={hidden:!1,required:!0,type:n.Property,id:eb,version:1,name:"rate_float",description:null,dataType:GC,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:FC},xC={type:n.GenericReference,id:"currency-prototype-parent-ref-id",entityType:n.Project,entityId:z},Ns={type:n.CustomEntity,id:Kr,version:1,name:"Currency",description:"This entity describes a currency in the Bitcoin Price Index.",properties:[DC,SC,_C,LC,UC],static:!1,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:xC},jC={type:n.GenericReference,id:"usd-property-data-type-parent-ref-id",entityType:n.Property,entityId:HE},kC={like:!1,inferred:!1,id:"usd-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ns,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:jC},qC={type:n.GenericReference,id:"usd-property-parent-ref-id",entityType:n.CustomEntity,entityId:_s},JC={hidden:!1,required:!0,id:HE,type:n.Property,version:1,name:"USD",description:null,index:0,dataType:kC,implements:null,static:!1,private:!1,abstract:!1,parent:qC},WC={type:n.GenericReference,id:"gbp-property-data-type-parent-ref-id",entityType:n.Property,entityId:YE},HC={like:!1,inferred:!1,id:"gbp-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ns,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:WC},YC={type:n.GenericReference,id:"gbp-property-parent-ref-id",entityType:n.CustomEntity,entityId:_s},zC={hidden:!1,required:!0,id:YE,type:n.Property,version:1,name:"GBP",description:null,index:0,dataType:HC,implements:null,static:!1,private:!1,abstract:!1,parent:YC},ZC={type:n.GenericReference,id:"eur-property-data-type-parent-ref-id",entityType:n.Property,entityId:zE},KC={like:!1,inferred:!1,id:"eur-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ns,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:ZC},XC={type:n.GenericReference,id:"eur-property-parent-ref-id",entityType:n.CustomEntity,entityId:_s},QC={hidden:!1,required:!0,id:zE,type:n.Property,version:1,name:"EUR",description:null,implements:null,static:!1,index:0,dataType:KC,private:!1,abstract:!1,parent:XC},eB={type:n.GenericReference,id:"bpi-prototype-parent-ref-id",entityType:n.Project,entityId:z},tb={type:n.CustomEntity,id:_s,version:1,name:"BPI",description:"The Bitcoin Price Index",properties:[JC,zC,QC],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:eB},tB={type:n.GenericReference,id:"time-property-data-type-parent-ref-id",entityType:n.Property,entityId:kE},nB={like:!1,inferred:!1,id:"time-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Jo,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:tB},rB={type:n.GenericReference,id:"time-property-parent-ref-id",entityType:n.CustomEntity,entityId:Qi},iB={hidden:!1,required:!0,type:n.Property,id:kE,version:1,name:"time",description:null,index:0,dataType:nB,implements:null,static:!1,private:!1,abstract:!1,parent:rB},aB={type:n.GenericReference,id:"disclaimer-property-data-type-parent-ref-id",entityType:n.Property,entityId:qE},sB={like:!1,inferred:!1,id:"disclaimer-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:aB},oB={type:n.GenericReference,id:"disclaimer-property-parent-ref-id",entityType:n.CustomEntity,entityId:Qi},lB={hidden:!1,required:!0,type:n.Property,id:qE,version:1,name:"disclaimer",description:null,index:0,dataType:sB,implements:null,static:!1,private:!1,abstract:!1,parent:oB},cB={type:n.GenericReference,id:"chart-name-property-data-type-parent-ref-id",entityType:n.Property,entityId:JE},dB={like:!1,inferred:!1,id:"chart-name-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:cB},uB={type:n.GenericReference,id:"chart-name-property-parent-ref-id",entityType:n.CustomEntity,entityId:Qi},pB={hidden:!1,required:!0,type:n.Property,id:JE,version:1,name:"chartName",description:null,index:0,dataType:dB,implements:null,static:!1,private:!1,abstract:!1,parent:uB},yB={type:n.GenericReference,id:"bpi-property-data-type-parent-ref-id",entityType:n.Property,entityId:WE},hB={like:!1,inferred:!1,id:"bpi-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:tb,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:yB},fB={type:n.GenericReference,id:"bpi-property-parent-ref-id",entityType:n.CustomEntity,entityId:Qi},mB={hidden:!1,required:!0,type:n.Property,id:WE,version:1,name:"bpi",description:null,implements:null,index:0,dataType:hB,static:!1,private:!1,abstract:!1,parent:fB},TB={type:n.GenericReference,id:"bitcoin-api-response-parent-ref-id",entityType:n.Project,entityId:z},nb={type:n.CustomEntity,id:Qi,version:1,name:"Bitcoin API Response type",description:"The type of the data structure response from the Bitcoin API call",properties:[iB,lB,pB,mB],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:TB},EB={type:n.GenericReference,id:"eefa0147-f873-484b-b4f3-9e6493aab183",entityType:n.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},bB={like:!1,inferred:!1,id:"b9f35112-dcb2-4b7c-8fb9-f196b3fa37f9",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:yt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:EB},RB={type:n.GenericReference,id:"128770d6-5e3a-4aff-bca0-ad1f32ebefa8",entityType:n.ReturnStatement,entityId:"e4e05975-c277-471a-b869-f0aed316045c"},gB={type:n.GenericReference,id:"0be84bf9-6421-42b9-980f-6a03f30cb809",entityType:n.ReturnDeclaration,entityId:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},vB={like:!1,inferred:!1,id:"43daa02a-237b-4b7c-a6e9-2b8c167f6e22",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:yt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:gB},IB={type:n.GenericReference,id:"ad380383-4a47-43da-968e-75a2d603b230",entityType:n.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},rb={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:vB,readsValue:IB,required:!0,index:0,parent:RB},DB={type:n.GenericReference,id:"4f24dc27-59a1-49bf-abcc-7d72b00926e4",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},PB={id:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",type:n.ArgumentDeclaration,version:1,name:"New Company Owner",description:null,implements:null,dataType:bB,writesValues:[rb],required:!0,index:0,parent:DB},AB={type:n.GenericReference,id:"5c9a02f0-d2cf-4efc-828e-467f33a74dd3",entityType:n.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},OB={type:n.GenericReference,id:"2ff8f3da-e0c5-4f0f-b688-2c051c588786",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},SB={type:n.GenericReference,id:"195ae28c-159b-42de-80b1-2ebb8be3619f",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},ib={type:n.ReturnStatement,id:"e4e05975-c277-471a-b869-f0aed316045c",version:1,outputs:[rb],calledByError:[],calledByEntry:[OB],calledBySuccess:[],throws:null,x:0,y:0,parent:SB},CB={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:[PB],calls:[ib],index:0,collapsed:!1,implements:null,returnStatements:[ib],private:!1,x:0,y:0,parent:AB},BB={type:n.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},wB={type:n.GenericReference,id:"29c4e3e0-1b66-4075-b559-45b27c5cf356",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},_B={type:n.GenericReference,id:"b1289358-b185-455d-8f58-7791b15cd52a",entityType:n.ReturnStatement,entityId:"9690cd1d-ea35-4e83-823d-0c7310265fee"},NB={type:n.GenericReference,id:"d847bb49-8789-4550-bb2d-e2d551993b28",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},MB={type:n.GenericReference,id:"06535500-c37c-4915-8398-1d4e184fa5e7",entityType:n.ReturnDeclaration,entityId:"e7a35277-a0c4-46d5-aca2-bddd0c26e931"},VB={like:!1,inferred:!1,id:"d358dd91-35f7-4095-b728-3fb3c71dbc05",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Sn,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:MB},ac={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:VB,implements:null,readsValue:NB,required:!0,index:0,parent:_B},LB={type:n.GenericReference,id:"gov-company-registry-return-statement-called-by-success-ref-id",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},sc={type:n.ReturnStatement,id:"9690cd1d-ea35-4e83-823d-0c7310265fee",version:1,outputs:[ac],calledByError:[],calledByEntry:[],calledBySuccess:[BB,LB],throws:null,x:0,y:0,parent:wB},$B={type:n.GenericReference,id:"b3126414-4c9b-495f-901e-59f5073c8d67",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},GB={type:n.GenericReference,id:"35115c48-618b-411b-a290-d746d22fdd10",entityType:n.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},ab={id:"a0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:n.InputMap,version:1,declaration:al,name:null,description:null,readsValue:GB,defaultValue:null,parent:$B,index:2},FB={type:n.GenericReference,id:"14f46eae-04a5-47d1-9c7f-28fb09b84d1d",entityType:n.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},UB={like:!1,inferred:!1,id:"990bd5d1-07ea-4253-acc1-d03bedd22a38",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Sn,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:FB},xB={type:n.GenericReference,id:"e4c3542a-8fb0-4b72-8d6e-3fdff812dd67",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},jB={type:n.GenericReference,id:"825f9f60-22a8-4cc6-9055-d7333f8e92f4",entityType:n.OutputMap,entityId:"8f30d787-9459-4d8d-98a2-b46fbc2006d5"},kB={type:n.GenericReference,id:"is-company-name-registered-var-called-by-ref",entityType:n.Operation,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},sb={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:UB,readsValue:jB,writesValues:[ac],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[kB],successCalls:[sc],errorCalls:[],internalCalls:[],x:0,y:0,parent:xB},qB={type:n.GenericReference,id:"1aba021e-48ef-44ac-93d0-eaecac5895da",entityType:n.InputMap,entityId:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a"},JB={type:n.GenericReference,id:"dffae7e0-0a5c-4c14-8ed2-8d680b4c4c86",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},WB={type:n.InputMap,id:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a",version:1,declaration:qa,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:I.String,valueAsType:null,parent:qB,autogeneration:null},index:1,parent:JB},HB={type:n.GenericReference,id:"64ae61f5-ace7-401b-926d-25f852daa60e",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},YB={id:"8f30d787-9459-4d8d-98a2-b46fbc2006d5",type:n.OutputMap,version:1,declaration:Di,index:2,writesValues:[sb],parent:HB},zB={type:n.GenericReference,id:"62a1a086-caea-4270-9c9f-a1695503e745",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},ZB={id:"48cf7654-8f3e-4fcd-abc6-740876c310a0",type:n.InputMap,version:1,declaration:ka,name:null,description:null,readsValue:null,index:0,defaultValue:null,parent:zB},KB={type:n.GenericReference,id:"b0c9c79f-f525-428d-99e7-087d3237ad62",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},XB={id:"2c1dc406-4b71-4023-87b2-abede3a111d2",type:n.InputMap,version:1,name:null,description:null,declaration:Ja,index:3,readsValue:null,defaultValue:null,parent:KB},QB={type:n.GenericReference,id:"9887d6c9-d75b-4c97-b722-e2e60945ea20",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},ew={id:"3fef94b2-0278-43ae-b0c5-bc7083f0a111",type:n.InputMap,version:1,declaration:Wa,name:null,description:null,readsValue:null,index:4,defaultValue:null,parent:QB},tw={type:n.GenericReference,id:"561275b6-5056-45d8-bf7d-8abaa4645593",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},nw={id:"3efe20a7-4d63-411e-89ef-63e277f48d66",type:n.OutputMap,version:1,declaration:Ha,index:1,writesValues:[],parent:tw},rw={type:n.GenericReference,id:"3170ccc2-13de-4bfc-802a-a643be41cd42",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},iw={id:"40d34323-d7e6-440a-8016-67c05a3b66dd",type:n.OutputMap,version:1,declaration:Di,index:0,writesValues:[],parent:rw},aw={type:n.GenericReference,id:"7432fa82-f574-4c54-a8fa-4cc4376da3d5",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},sw={type:n.GenericReference,id:"8f518502-9eea-462c-8753-8bc3bf3e29a9",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},ow={type:n.GenericReference,id:"123b8f18-79d9-4166-a5f6-78ec4b461680",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},lw={type:n.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",entityType:n.FunctionCall,entityId:"abb5d456-ee85-4800-bdd9-d409415f60d7"},cw={type:n.GenericReference,id:"a375eedf-4811-41aa-a998-4897c69c46b9",entityType:n.ReturnDeclaration,entityId:"024a9b77-c1cd-4b67-b3ba-1935046b590d"},dw={like:!1,inferred:!1,id:"767cc5ed-20ec-4fd1-89b1-c8d19daa87d1",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ye,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:cw},uw={type:n.GenericReference,id:"e64b0c23-129d-4d74-8ab4-eec60e1e5b9b",entityType:n.ReturnStatement,entityId:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3"},ob={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:dw,implements:null,required:!0,readsValue:null,index:0,parent:uw},pw={type:n.ReturnStatement,id:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3",version:1,outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[lw],throws:ob,x:0,y:0,parent:ow},yw={type:n.GenericReference,id:"323814fb-9723-49ef-bbba-f882384f18e4",entityType:n.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},hw={id:"2f63f7ba-0ff0-458a-92bc-65d1dd4df8c3",type:n.OutputMap,declaration:ol,version:1,writesValues:[ob],index:0,parent:yw},fw={type:n.Operation,id:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7",version:1,declaration:Pi,inputs:[ZB,WB,ab,XB,ew],outputs:[iw,nw,YB],process:null,calledByError:[],calledByEntry:[aw],calledBySuccess:[],successCalls:[sc,sb],errorCalls:[pw],error:hw,x:0,y:0,parent:sw},mw={type:n.GenericReference,id:"597b8aa2-f6f2-4f7d-bbb9-b703d02de96a",entityType:n.InputMap,entityId:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a"},Tw={type:n.GenericReference,id:"546d99b3-28c4-4186-93a0-ac53c1565e07",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},Ew={id:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:n.InputMap,version:1,declaration:Ua,name:null,description:null,readsValue:null,defaultValue:{id:"base-query-string-map-default-value-id",type:n.PrimitiveValue,version:1,value:"?name=",name:I.String,parent:mw,valueAsType:null,autogeneration:null},index:0,parent:Tw},bw={type:n.GenericReference,id:"6a56fb22-82e1-47c9-bf85-41c4e5986c74",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},Rw={type:n.GenericReference,id:"191c6a6d-9bcb-441e-bf98-de0da96f5f3a",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},gw={type:n.GenericReference,id:"d8fcbb76-dae2-40cf-847a-02364721b387",entityType:n.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},vw={like:!1,inferred:!1,id:"6a70c42b-024a-47c6-8a9d-af52be9c9b9a",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:gw},Iw={type:n.GenericReference,id:"2282e2c0-ed9e-4c7b-86fc-1a364fa0fdb8",entityType:n.OutputMap,entityId:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5"},Dw={type:n.GenericReference,id:"assembled-query-string-called-by-ref",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},lb={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:vw,readsValue:Iw,writesValues:[ab],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[Dw],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:Rw},Pw={id:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5",type:n.OutputMap,version:1,writesValues:[lb],declaration:vi,index:0,parent:bw},Aw={type:n.GenericReference,id:"a1b48e7c-0301-4747-b4dd-b5af79956f7f",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},Ow={type:n.GenericReference,id:"487c9235-be95-4c96-b9b5-2714b374a277",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},Sw={type:n.GenericReference,id:"f6471f4f-b269-46fa-80ec-885e87a449c2",entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69",entityType:n.ArgumentDeclaration},Cw={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:n.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},cb={id:"08f36e2b-bad2-425c-8129-93560bec8488",version:1,type:n.InputMap,declaration:xa,name:null,description:null,readsValue:Sw,defaultValue:null,index:1,parent:Cw},Bw={type:n.Operation,id:"8f2094c0-e27e-465e-9280-112da0de9019",declaration:Ii,version:1,inputs:[Ew,cb],outputs:[Pw],process:null,calledByError:[],calledByEntry:[Aw],calledBySuccess:[],successCalls:[lb],errorCalls:[],error:null,x:0,y:0,parent:Ow},ww={type:n.GenericReference,id:"c2e0e9b4-aa46-4974-bf8a-886b737b12fb",entityType:n.ArgumentDeclaration,entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69"},_w={like:!1,inferred:!1,id:"a4279518-3bf3-44b7-a2ac-65142ca37f1c",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:ww},Nw={type:n.GenericReference,id:"dc273f24-164b-4943-82f9-589b237141e2",entityType:n.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},db={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:_w,implements:null,required:!1,writesValues:[cb],index:0,parent:Nw},Mw={type:n.GenericReference,id:"2178a10c-1cc0-4dad-97c3-0941be6c9738",entityType:n.Project,entityId:z},ub={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:[db],calls:[Bw,fw],returnStatements:[sc],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:Mw},Vw={type:n.GenericReference,id:"4d66c53c-f0f7-496a-9955-1e6c8533c5e0",entityType:n.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},Lw={type:n.GenericReference,id:"6fa0c8e0-d104-4b4d-a035-d4f6e0c49f09",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},$w={type:n.GenericReference,id:"146408d5-5336-4877-941a-777dd5871926",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},Gw={type:n.GenericReference,id:"34ae8f8c-548d-4654-984a-6f36affdaf49",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},pb={id:"69b1215d-9ebf-4274-b9cb-d4a5888f5122",version:1,type:n.InputMap,declaration:db,name:null,description:null,readsValue:$w,defaultValue:null,index:0,parent:Gw},Fw={type:n.GenericReference,id:"07540a94-dda1-40b3-8452-f209bdc87b88",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},Uw={type:n.GenericReference,id:"eaddf12a-a995-429e-90a0-13bf06efeb28",entityType:n.VariableDeclaration,entityId:"faaf3bf6-917d-40d7-aee6-5164f6646c4b"},xw={like:!1,inferred:!1,id:"7fdaf943-3ffb-48e0-b766-b86cc24090cf",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Sn,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Uw},jw={type:n.GenericReference,id:"030fb5c5-af4d-4c85-8cf0-e99edd50d2bd",entityType:n.OutputMap,entityId:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},kw={type:n.GenericReference,id:"a8b618e9-c68c-48c1-8bd6-ef47c87d699e",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},qw={type:n.GenericReference,id:"is-company-name-valid-var-called-by-ref",entityType:n.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},yb={type:n.VariableDeclaration,id:"faaf3bf6-917d-40d7-aee6-5164f6646c4b",version:1,name:"Is name valid",description:"Whether the company name is valid",dataType:xw,readsValue:jw,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[qw],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:kw},Jw={id:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:n.OutputMap,version:1,declaration:ac,writesValues:[yb],index:0,parent:Fw},Ww={type:n.FunctionCall,id:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",version:1,declaration:ub,inputs:[pb],outputs:[Jw],calledByError:[],calledByEntry:[],process:null,calledBySuccess:[Vw],successCalls:[yb],errorCalls:[],error:null,x:0,y:0,parent:Lw},Hw={type:n.GenericReference,id:"9d0b87b4-bfed-4e02-9e84-6831c21feae2",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},Yw={type:n.GenericReference,id:"74345f4f-e80d-48be-adff-d12fcea25bec",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},zw={type:n.GenericReference,id:"b39279ea-969a-4efb-a9ec-353bfd13db65",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},Zw={type:n.GenericReference,id:"549db613-f225-4c5b-9634-7d096717f0ff",entityType:n.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},hb={id:"358e242c-7448-442e-ab8b-fd7fa119ea71",version:1,type:n.InputMap,declaration:nr.fixedArguments[0],name:null,description:null,readsValue:zw,defaultValue:null,index:0,parent:Zw},Kw={type:n.Condition,id:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b",version:1,declaration:nr,inputs:[hb],calledByError:[],calledByEntry:[Hw],calledBySuccess:[],successCalls:[Ww],errorCalls:[],x:0,y:0,parent:Yw},Xw={type:n.GenericReference,id:"43ba1e25-f805-488f-8ae8-c58bb6215b2f",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},Qw={type:n.GenericReference,id:"eb091bed-507f-4a1e-93b5-7cd2fccfe002",entityType:n.VariableDeclaration,entityId:"9c928995-0dd5-4f97-9962-56b343bc8a45"},e_={like:!1,inferred:!1,id:"d64152ea-831f-4426-9506-a39bfa170513",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Zr,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Qw},t_={type:n.GenericReference,id:"7e79c29f-f7bd-441a-a77e-c627604dae94",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},n_={type:n.GenericReference,id:"8995ce5f-d5cf-4341-a8b1-5c046cc78b89",entityType:n.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},r_={type:n.GenericReference,id:"new-company-bank-account-var-decl-1-called-by-ref",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},fb={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:e_,readsValue:n_,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[r_],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:t_},i_={type:n.GenericReference,id:"9a4887bf-d50d-43e4-bdd5-a5262f65f04b",entityType:n.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},a_={like:!1,inferred:!1,id:"ae148c06-3143-49e9-9614-c3aca3f6fa7b",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Zr,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:i_},s_={id:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071",type:n.ArgumentDeclaration,version:1,name:"New bank account",description:"The new bank account of the company",dataType:a_,implements:null,required:!0,index:1,writesValues:[fb],parent:Xw},o_={type:n.GenericReference,id:"caec9cf8-3133-48d4-a390-114fa71b2933",entityType:n.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},l_={type:n.GenericReference,id:"cebcbad8-ca87-4c4b-be8a-312293d49892",entityType:n.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},c_={type:n.GenericReference,id:"7b8ccfe5-f9cd-4776-a19b-80c689bbe3df",entityType:n.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},d_={like:!1,inferred:!1,id:"2a6b4703-ac8d-4d25-8abd-48a115577fec",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:c_},u_={id:"c6cf620c-1eee-4919-8578-1a0b6c088551",type:n.ArgumentDeclaration,version:1,name:"New company name",description:null,dataType:d_,implements:null,required:!0,index:0,writesValues:[hb,pb],parent:l_},p_={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:[u_,s_],calls:[Kw,fb],index:1,private:!1,implements:null,x:0,y:0,parent:o_},y_={type:n.GenericReference,id:"employee-manager-property-data-type-entity-ref-id",entityType:n.CustomEntity,entityId:"employee-entity-id"},h_={type:n.GenericReference,id:"employee-manager-property-data-type-parent-ref-id",entityType:n.Property,entityId:"employee-manager-property-id"},f_={like:!1,inferred:!1,id:"employee-manager-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:y_,isList:!1,isNullable:!0,asType:!1,defaultValue:null,constant:!1,parent:h_},m_={type:n.GenericReference,id:"employee-manager-property-parent-ref-id",entityType:n.CustomEntity,entityId:"employee-entity-id"},T_={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:f_,abstract:!1,parent:m_},E_={type:n.GenericReference,id:"employee-start-date-property-data-type-parent-ref-id",entityType:n.Property,entityId:"employee-start-date-property-id"},b_={like:!1,inferred:!1,id:"employee-start-date-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:cn,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:E_},R_={type:n.GenericReference,id:"employee-start-date-property-parent-ref-id",entityType:n.CustomEntity,entityId:"employee-entity-id"},g_={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:b_,abstract:!1,parent:R_},v_={type:n.GenericReference,id:"employee-department-property-ref-id",entityType:n.Property,entityId:"employee-department-property-id"},I_={like:!1,inferred:!1,id:"employee-department-property-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Cn,isList:!1,isNullable:!1,asType:!1,options:["Human Resources","Finance","IT","Sales","Marketing","Customer Service","Logistics","Product"],defaultValue:null,constant:!1,parent:v_},D_={type:n.GenericReference,id:"employee-department-property-parent-ref-id",entityType:n.CustomEntity,entityId:"employee-entity-id"},P_={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:I_,abstract:!1,parent:D_},A_={type:n.GenericReference,id:"employee-prototype-parent-ref-id",entityType:n.Project,entityId:z},Ct={type:n.CustomEntity,id:"employee-entity-id",version:1,name:"Employee",description:"A entity that represents an employee in the company",properties:[P_,g_,T_],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[yt],x:0,y:0,parent:A_},O_={type:n.GenericReference,id:"dec8fbfe-9124-41fd-9f1c-5b2f07cfd6ba",entityType:n.Property,entityId:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd"},S_={like:!1,inferred:!1,id:"bc0b8979-6c43-4d47-a712-6742b89e3c00",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:O_},C_={type:n.GenericReference,id:"4f8c0a05-466e-4672-b4c4-6bd408c0be9a",entityType:n.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},B_={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:S_,abstract:!1,parent:C_},w_={type:n.GenericReference,id:"95173fe0-a6e6-443c-94f3-f7c5cf171fcf",entityType:n.Property,entityId:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3"},__={like:!1,inferred:!1,id:"ddbb6f5c-0cf4-41fb-83b3-b6c47c0e338d",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Zr,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:w_},N_={type:n.GenericReference,id:"6a9a0b72-a05d-4169-b3f3-5afb01e8d0df",entityType:n.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},oc={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:__,abstract:!1,parent:N_},M_={type:n.GenericReference,id:"62892cc6-d227-4088-90d3-ae7c15ed4af4",entityType:n.Property,entityId:"19a31727-1fba-40a5-be25-18e0f149d5cb"},V_={like:!1,inferred:!1,id:"1f7629df-dc29-4c89-8369-c6d043e97a9e",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:yt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:M_},L_={type:n.GenericReference,id:"89384206-fd5a-4f0a-849c-f777473e5773",entityType:n.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},$_={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:V_,private:!0,abstract:!1,parent:L_},G_={type:n.GenericReference,id:"4d2ffb6c-5f38-436e-8339-fb9878ac2b5e",entityType:n.Property,entityId:"f8310850-a87e-405c-b182-4f1d5fa49240"},F_={like:!1,inferred:!1,id:"ad44250b-40c2-48f7-a480-381fa938f562",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ct,isList:!0,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:G_},U_={type:n.GenericReference,id:"aa5d4eee-6fac-4e72-bf21-9c8750024541",entityType:n.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},x_={hidden:!1,required:!0,type:n.Property,id:"f8310850-a87e-405c-b182-4f1d5fa49240",version:1,name:"Employees",description:null,index:3,dataType:F_,implements:null,private:!0,static:!1,abstract:!1,parent:U_},j_={type:n.GenericReference,id:"e3c03b6b-2ea0-4d99-865d-5e6a348672d0",entityType:n.Project,entityId:z},vt={type:n.CustomEntity,id:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:1,name:"Company",description:null,properties:[B_,oc,$_,x_],static:!1,abstract:!1,abstractMethods:[],methods:[CB,p_],extends:[],implements:[Fe],x:0,y:0,parent:j_},k_={type:n.GenericReference,id:"ffcad334-138d-4b67-8fb3-5f0e6f5fefbd",entityType:n.Project,entityId:z},lc={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:k_};n.GenericReference,n.DataType;const q_={id:"cron-job-entity-expression-property-ref-id",type:n.GenericReference,entityId:"cron-job-entity-expression-property-id",entityType:n.Property},J_={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:x,asType:!1,defaultValue:null,parent:q_},W_={id:"cron-job-entity-ref-id",type:n.GenericReference,entityId:"cron-job-entity-id",entityType:n.CustomEntity},H_={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:J_,implements:null,static:!0,private:!1,abstract:!1,index:0,parent:W_},Y_={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},z_={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},Z_={id:"cron-job-entity-trigger-show-popup-func-call-id",version:1,type:n.FunctionCall,declaration:lc,inputs:[],outputs:[],process:null,successCalls:[],calledByError:[],calledByEntry:[Y_],calledBySuccess:[],errorCalls:[],error:null,x:0,y:0,parent:z_},K_={id:"cron-job-entity-trigger-func-decl-parent-ref-id",type:n.GenericReference,entityId:"cron-job-entity-id",entityType:n.CustomEntity},X_={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:Nl,calls:[Z_],collapsed:!1,returnStatements:[],index:0,x:0,y:0,parent:K_},Q_={id:"cron-job-entity-parent-ref-id",type:n.GenericReference,entityId:z,entityType:n.Project},eN={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:[H_],static:!0,abstract:!1,abstractMethods:[],extends:[Ml],implements:[],methods:[X_],x:0,y:0,parent:Q_},tN={type:n.GenericReference,id:"52dbd85c-48b1-462a-8205-2437d6fb1cb4",entityType:n.Project,entityId:z},nN={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:[es],x:0,y:0,parent:tN},mb="f558fbf8-67de-4545-9804-6ae621e0b2d4",rN={id:"getCompanyByIdEndpointPathParamsVariableDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"getCompanyByIdEndpointPathParamsVariableDataType"},iN={id:"getCompanyByIdEndpointPathParamsArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},aN={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathParamsVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:x,asType:!1,defaultValue:{id:"getCompanyByIdEndpointPathParamsVariableDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:I.JSON,value:{},parent:rN,autogeneration:null,valueAsType:null},parent:iN},sN={id:"getCompanyByIdEndpointReachedEntityEventRef",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},oN={id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"getCompanyByIdEndpointRequestHeadersVariableDataType"},lN={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},cN={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestHeadersVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Ye,asType:!1,defaultValue:{id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:I.JSON,value:{},parent:oN,autogeneration:null,valueAsType:null},parent:lN},dN={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:cN,implements:vl,required:!0,index:0,parent:sN},uN={id:"getCompanyByIdEndpointReachedEntityEventRefTwo",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},pN={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:aN,implements:Il,required:!0,index:1,parent:uN},yN={id:"getCompanyByIdEndpointReachedEntityEventRefThree",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},hN={id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"getCompanyByIdEndpointRequestQueryParamsVariableDataType"},fN={id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},mN={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestQueryParamsVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,asType:!1,entity:x,defaultValue:{id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:I.JSON,value:{},parent:hN,autogeneration:null,valueAsType:null},parent:fN},TN={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:mN,implements:Dl,required:!0,index:2,parent:yN},EN={id:"getCompanyByIdEndpointReachedEntityEventRefFour",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},bN={id:"getCompanyByIdEndpointRequestBodyArgumentDeclarationRef",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestBodyArgumentDeclaration"},RN={like:!1,inferred:!1,id:"getCompanyByIdEndpointRequestBodyVariableDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Ye,defaultValue:null,parent:bN},gN={id:"getCompanyByIdEndpointRequestBodyArgumentDeclaration",version:1,description:"The main data payload of the request.",type:n.ArgumentDeclaration,writesValues:[],name:"Request body",dataType:RN,implements:Pl,index:3,required:!0,parent:EN},vN={id:"getCompanyByIdEndpointResponseCodeReturnDeclarationRef",type:n.GenericReference,entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseCodeReturnDeclaration"},IN={like:!1,inferred:!1,id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:vN},DN={id:"getCompanyByIdEndpointReturnStatementRef",type:n.GenericReference,entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},PN={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:IN,implements:Al,readsValue:null,required:!0,index:0,parent:DN},AN={id:"getCompanyByIdEndpointResponseHeadersDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"getCompanyByIdEndpointResponseHeadersDataType"},ON={id:"getCompanyByIdEndpointResponseHeadersReturnDeclarationRef",type:n.GenericReference,entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},SN={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseHeadersDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Ye,asType:!1,defaultValue:{id:"getCompanyByIdEndpointResponseHeadersDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:I.JSON,value:{},parent:AN,autogeneration:null,valueAsType:null},parent:ON},CN={id:"getCompanyByIdEndpointReturnStatementRefTwo",type:n.GenericReference,entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},BN={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:SN,implements:Ol,readsValue:null,required:!0,index:1,parent:CN},wN={id:"getCompanyByIdEndpointResponseBodyReturnDeclarationRef",type:n.GenericReference,entityType:n.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseBodyReturnDeclaration"},_N={like:!1,inferred:!1,id:"getCompanyByIdEndpointResponseBodyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Ye,defaultValue:null,parent:wN},NN={id:"getCompanyByIdEndpointReturnStatementRefThree",type:n.GenericReference,entityType:n.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},MN={isError:!1,id:"getCompanyByIdEndpointResponseBodyReturnDeclaration",version:1,description:"The main data payload of the response.",type:n.ReturnDeclaration,name:"Response body",implements:Sl,dataType:_N,readsValue:null,required:!0,index:2,parent:NN},VN={id:"getCompanyByIdEndpointReturnStatementCallerRef",type:n.GenericReference,entityId:"getCompanyByIdEndpointReachedEntityEvent",entityType:n.FunctionDeclaration},LN={id:"getCompanyByIdEndpointReachedEntityEventRefFive",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},$N={id:"getCompanyByIdEndpointReturnStatement",type:n.ReturnStatement,version:1,outputs:[PN,BN,MN],calledByError:[],calledByEntry:[VN],calledBySuccess:[],throws:null,x:0,y:0,parent:LN},GN={id:"endpointBuiltInBaseEntityRefFour",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:mb},FN={id:"getCompanyByIdEndpointReachedEntityEvent",name:"Endpoint reached",version:1,type:n.FunctionDeclaration,inputs:[dN,pN,TN,gN],returnStatements:[$N],description:"Fired when the endpoint is reached.",calls:[],collapsed:!1,implements:Cl,index:0,private:!1,x:0,y:0,parent:GN},UN={id:"getCompanyByIdEndpointPathPropertyDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"getCompanyByIdEndpointPathPropertyDataType"},xN={id:"getCompanyByIdEndpointPathPropertyRef",type:n.GenericReference,entityType:n.Property,entityId:"getCompanyByIdEndpointPathProperty"},jN={like:!1,inferred:!1,id:"getCompanyByIdEndpointPathPropertyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:x,asType:!1,defaultValue:{id:"getCompanyByIdEndpointPathPropertyDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,name:I.String,value:"/company/{id}",parent:UN,valueAsType:null,autogeneration:null},parent:xN},kN={id:"getCompanyByIdEndpointBaseEntityRefTwo",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},qN={hidden:!1,required:!0,id:"getCompanyByIdEndpointPathProperty",name:"Path",version:1,type:n.Property,private:!1,abstract:!1,static:!0,implements:Rl,dataType:jN,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:kN},JN={id:"getCompanyByIdEndpointMethodPropertyDataTypeRef",type:n.GenericReference,entityType:n.DataType,entityId:"getCompanyByIdEndpointMethodPropertyDataType"},WN={id:"getCompanyByIdEndpointMethodPropertyRef",type:n.GenericReference,entityType:n.Property,entityId:"getCompanyByIdEndpointMethodProperty"},HN={like:!1,inferred:!1,id:"getCompanyByIdEndpointMethodPropertyDataType",version:1,type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Cn,isList:!0,isNullable:!1,constant:!0,asType:!1,defaultValue:{id:"getCompanyByIdEndpointMethodPropertyDataTypeDefaultValueId",type:n.PrimitiveValue,version:1,value:"GET",name:I.Enum,parent:JN,valueAsType:null,autogeneration:null},options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:WN},YN={id:"getCompanyByIdEndpointBaseEntityRefThree",type:n.GenericReference,entityType:n.BuiltInBaseEntity,entityId:L.HTTP_ENDPOINT},zN={hidden:!1,required:!0,id:"getCompanyByIdEndpointMethodProperty",name:"Method",version:1,type:n.Property,private:!1,abstract:!1,static:!0,implements:gl,index:0,dataType:HN,description:null,parent:YN},ZN={type:n.GenericReference,id:"6a905153-8aa8-4424-bd7b-6415731a2725",entityType:n.Project,entityId:z},KN={type:n.CustomEntity,id:mb,version:1,name:"Get given company data by id",description:null,properties:[qN,zN],methods:[FN],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[es],x:0,y:0,parent:ZN},XN={id:"product-prototype-database-property-ref-id",type:n.GenericReference,entityId:"product-prototype-database-property-id",entityType:n.Property},QN={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},eM={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:Bn,asType:!1,defaultValue:{id:"product-prototype-database-property-data-type-default-value-id",type:n.PrimitiveValue,version:1,value:null,name:I.EntityTemplate,valueAsType:nc,autogeneration:null,parent:QN},parent:XN},tM={id:"product-prototype-database-property-parent-ref-id",type:n.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:n.CustomEntity},nM={hidden:!1,required:!0,id:"product-prototype-database-property-id",name:"Database",version:1,type:n.Property,private:!1,abstract:!1,implements:Ni,static:!0,index:0,dataType:eM,description:"The database that the entity belongs to.",parent:tM},rM={type:n.GenericReference,id:"13a4045e-dcb0-4159-8d33-10a646078b5a",entityType:n.Property,entityId:"d519c26a-15b8-40d8-ad09-13fa9342e9ba"},iM={like:!1,inferred:!1,id:"7449779e-1d4e-409c-81c6-4b611336ed18",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:rM},aM={type:n.GenericReference,id:"0969562f-d836-406f-8b48-dd9d417fbe72",entityType:n.CustomEntity,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c"},sM={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:iM,abstract:!1,parent:aM},oM={type:n.GenericReference,id:"833a5425-7bd0-41dd-9e97-e018acce9592",entityType:n.Project,entityId:z},lM={type:n.CustomEntity,id:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:1,name:"Product",description:"A product that can be sold",implements:[Fe],extends:[],abstract:!1,static:!1,abstractMethods:[],properties:[nM,sM],methods:[],x:0,y:0,parent:oM},ea="project-loaded-event-id",Xt="get-bitcoin-price-http-call-operation-id",Tb="get-bitcoin-price-http-call-response-body-id",Ms="validate-bitcoin-price-response-operation-ids",cM={type:n.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Tb},dM={type:n.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-parent-ref-id",entityType:n.Operation,entityId:Ms},Eb={id:"validate-bitcoin-data-to-validate-input-map-id",type:n.InputMap,version:1,declaration:er.fixedArguments[1],name:null,description:null,readsValue:cM,defaultValue:null,index:0,parent:dM},uM={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"},pM={type:n.GenericReference,id:"validate-bitcoin-type-to-match-input-map-parent-ref-id",entityType:n.Operation,entityId:Ms},yM={id:"validate-bitcoin-type-to-match-input-map-id",type:n.InputMap,version:1,declaration:er.fixedArguments[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:I.EntityTemplate,valueAsType:nb,value:null,parent:uM,autogeneration:null},index:0,parent:pM},hM={type:n.GenericReference,id:"validate-bitcoin-validated-entity-output-map-parent-ref-id",entityType:n.Operation,entityId:Ms},fM={id:"validate-bitcoin-validated-entity-output-map-id",type:n.OutputMap,version:1,declaration:er.fixedReturns[0],writesValues:[],index:0,parent:hM},mM={type:n.GenericReference,id:"validate-bitcoin-price-response-operation-parent-ref-id",entityType:n.GlobalEvent,entityId:ea},TM={type:n.GenericReference,id:"validate-bitcoin-price-response-operation-called-by-ref-id",entityType:n.Operation,entityId:Xt},EM={type:n.Operation,id:Ms,version:1,declaration:er,inputs:[yM,Eb],outputs:[fM],process:null,successCalls:[],errorCalls:[],error:null,x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[TM],parent:mM},bM={type:n.GenericReference,id:"96edb661-3f36-406c-8921-f1679dd796a3",entityType:n.FunctionCall,entityId:Xt},RM={id:"c93e1393-9b5e-4de2-b8da-7eae647d715a",version:1,type:n.InputMap,declaration:ka,name:null,description:null,readsValue:null,defaultValue:null,index:0,parent:bM},gM={type:n.GenericReference,id:"40312b28-71b8-4b01-a654-58b87191939d",entityType:n.FunctionCall,entityId:Xt},vM={type:n.GenericReference,id:"6ea96c7d-02a7-4971-82ad-2f32a0fec8b4",entityType:n.InputMap,entityId:"9f21cbac-5a83-4983-8923-9224ffd3ba9f"},IM={id:"9f21cbac-5a83-4983-8923-9224ffd3ba9f",version:1,type:n.InputMap,declaration:qa,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:I.String,parent:vM,valueAsType:null,autogeneration:null},index:1,parent:gM},DM={type:n.GenericReference,id:"2610bf4a-c8a2-4746-b6cc-eb15f7fa8e9c",entityType:n.FunctionCall,entityId:Xt},PM={id:"ffb3cd9d-c955-4104-bc7b-299120fe4ede",version:1,type:n.InputMap,declaration:Ja,name:null,description:null,readsValue:null,defaultValue:null,index:2,parent:DM},AM={type:n.GenericReference,id:"bfd29a6a-671a-448c-9f2f-f8c7e4ad8349",entityType:n.FunctionCall,entityId:Xt},OM={id:"412bf1f3-1a8e-4665-a95f-82117540e34e",version:1,type:n.InputMap,declaration:Wa,name:null,description:null,readsValue:null,defaultValue:null,index:3,parent:AM},SM={type:n.GenericReference,id:"616a15f3-c224-4b11-b95c-63314edef409",entityType:n.FunctionCall,entityId:Xt},CM={id:"4dd4651c-02e4-45f1-b50f-824f3bcb1648",version:1,type:n.OutputMap,declaration:Ha,writesValues:[],index:1,parent:SM},BM={type:n.GenericReference,id:"28793b68-4d7e-4826-aee1-f201a3499faf",entityType:n.FunctionCall,entityId:Xt},wM={id:"94fe9d35-4dd4-4729-a50c-5283ccd7e661",version:1,type:n.OutputMap,declaration:sl,writesValues:[],index:0,parent:BM},_M={type:n.GenericReference,id:"f13e04b2-49b4-4c69-85b8-cbbafafa3524",entityType:n.FunctionCall,entityId:Xt},NM={id:Tb,type:n.OutputMap,version:1,declaration:Di,writesValues:[Eb],index:2,parent:_M},MM={type:n.GenericReference,id:"6148d6d0-caaa-45fc-b601-ff2493dfc60f",entityType:n.FunctionDeclaration,entityId:Xt},VM={type:n.GenericReference,id:"b115f084-807b-44b3-ae01-b69cc342f761",entityType:n.GlobalEvent,entityId:ea},LM={type:n.Operation,id:Xt,version:1,declaration:Pi,inputs:[RM,IM,PM,OM],outputs:[wM,CM,NM],process:null,parent:VM,calledByError:[],calledByEntry:[MM],calledBySuccess:[],successCalls:[EM],errorCalls:[],error:null,x:0,y:0},$M={type:n.GenericReference,id:"24e76019-3f94-475b-91ce-297f76bbc224",entityType:n.GlobalEvent,entityId:ea},GM={type:n.GenericReference,id:"0eac8e29-cdf2-42f8-8ea7-ad76d4d79abe",entityType:n.GlobalEvent,entityId:ea},FM={process:null,type:n.FunctionCall,id:"2d2e7593-bfbf-457c-a607-5fce18eef457",version:1,declaration:lc,inputs:[],outputs:[],calledByError:[],calledByEntry:[$M],calledBySuccess:[],parent:GM,successCalls:[],errorCalls:[],error:null,x:0,y:0},UM={id:"793b5999-a9da-47fb-9665-0c17ebc6d5c9",type:n.GenericReference,entityType:n.Project,entityId:"2e7eb5382-3d99-44fd-972a-b8b1e819f6be"},xM={type:n.GlobalEvent,id:ea,version:1,name:on.PROJECT_PUBLICATION_COMPLETED,returnStatements:[],collapsed:!1,implements:as,parent:UM,inputs:[],calls:[FM,LM],x:0,y:0},Lt="abort-execution-func-declaration-id",ta="abort-execution-func-exec-var-declaration-id",Vs="abort-execution-func-small-wait-op-id",cc="abort-execution-func-long-wait-op-id",bb="abort-execution-func-long-wait-process-output-id",Rb="abort-execution-func-exec-var-instance-write-id",gb="abort-execution-func-long-wait-return-stmt-id",vb="abort-execution-func-small-wait-return-stmt-id",jM="abort-execution-func-exec-var-instance-abort-call-id",dc="abort-execution-func-exec-var-instance-abort-internal-call-id",Ib="abort-execution-func-exec-second-wait-op-id",kM={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"},qM={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"},JM={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:x,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:I.String,value:"Hello 2",autogeneration:null,valueAsType:null,parent:qM},constant:!1,parent:kM},WM={type:n.GenericReference,id:"short-wait-return-statement-returned-hello-string-parent-ref-id",entityType:n.ReturnStatement,entityId:vb},HM={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:JM,implements:null,readsValue:null,required:!0,index:0,parent:WM},YM={type:n.GenericReference,id:"short-wait-return-statement-called-by-ref-id",entityType:n.Operation,entityId:Vs},zM={type:n.GenericReference,id:"short-wait-return-statement-parent-ref-id",entityType:n.FunctionDeclaration,entityId:Lt},Db={type:n.ReturnStatement,id:vb,version:1,outputs:[HM],calledByError:[],calledByEntry:[],calledBySuccess:[YM],throws:null,x:0,y:0,parent:zM},ZM={type:n.GenericReference,id:"second-wait-argument-default-value-parent-ref-id",entityType:n.InputMap,entityId:"second-wait-argument-map-id"},KM={type:n.GenericReference,id:"second-wait-argument-map-parent-ref-id",entityType:n.Operation,entityId:Ib},XM={id:"second-wait-argument-map-id",type:n.InputMap,version:1,declaration:Xn,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:I.Number,parent:ZM},index:0,parent:KM},QM={type:n.GenericReference,id:"small-wait-parent-ref-id",entityType:n.FunctionDeclaration,entityId:Lt},e0={type:n.GenericReference,id:"small-wait-called-by-ref-one-id",entityType:n.InternalCall,entityId:dc},t0={id:Ib,type:n.Operation,version:1,declaration:ut,inputs:[XM],outputs:[],process:null,successCalls:[Db],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[e0],error:null,parent:QM},n0={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-one-id",entityType:n.VariableInstance,entityId:Rb},r0={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-two-id",entityType:n.Operation,entityId:Vs},i0={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-main-project-ref-id",entityType:n.FunctionDeclaration,entityId:Lt},a0={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",entityType:n.VariableDeclaration,entityId:ta},s0={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-internal-call-ref-one-id",entityType:n.InternalCall,entityId:dc},o0={id:jM,type:n.VariableInstance,version:1,declaration:a0,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[s0],parent:i0},Pb={id:dc,type:n.InternalCall,version:1,inputs:[],outputs:[],declaration:Vl,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[n0,r0],successCalls:[t0],errorCalls:[],error:null,index:0,parent:o0},l0={type:n.GenericReference,id:"abort-exec-func-var-write-instance-main-project-ref-id",entityType:n.FunctionDeclaration,entityId:Lt},c0={type:n.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-one-id",entityType:n.VariableDeclaration,entityId:ta},d0={type:n.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-two-id",entityType:n.FunctionDeclaration,entityId:Lt},u0={type:n.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",entityType:n.VariableDeclaration,entityId:ta},p0={type:n.GenericReference,id:"abort-exec-func-var-write-instance-reads-value-ref-id",entityType:n.OutputMap,entityId:bb},uc={id:Rb,type:n.VariableInstance,version:1,declaration:u0,inputs:[],outputs:[],calledByError:[],calledByEntry:[d0],calledBySuccess:[c0],successCalls:[Pb],errorCalls:[],x:0,y:0,readsValue:p0,writesValues:[],internalCalls:[],parent:l0},y0={type:n.GenericReference,id:"abort-exec-func-var-decl-datatype-parent-ref-id",entityType:n.VariableDeclaration,entityId:ta};n.GenericReference,n.DataType;const h0={like:!1,inferred:!1,id:"abort-exec-func-var-decl-datatype-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Ll,version:1,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:y0,defaultValue:null},f0={type:n.GenericReference,id:"abort-exec-func-var-decl-main-project-ref-id",entityType:n.FunctionDeclaration,entityId:Lt},m0={type:n.GenericReference,id:"abort-exec-func-var-decl-called-by-ref-one-id",entityType:n.FunctionDeclaration,entityId:Lt},T0={id:ta,type:n.VariableDeclaration,version:1,name:"Execution in progress",description:"A variable that holds an ongoing execution to abort it if needed",dataType:h0,inputs:[],outputs:[],calledByError:[],calledByEntry:[m0],calledBySuccess:[],successCalls:[uc],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:f0},E0={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"},b0={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:x,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:I.String,value:"Hello 1",autogeneration:null,valueAsType:null,parent:b0},constant:!1,parent:E0},g0={type:n.GenericReference,id:"long-wait-return-statement-returned-hello-string-parent-ref-id",entityType:n.ReturnStatement,entityId:gb},v0={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:g0},I0={type:n.GenericReference,id:"long-wait-return-statement-called-by-ref-id",entityType:n.Operation,entityId:cc},D0={type:n.GenericReference,id:"long-wait-return-statement-parent-ref-id",entityType:n.FunctionDeclaration,entityId:Lt},Ab={type:n.ReturnStatement,id:gb,version:1,outputs:[v0],calledByError:[],calledByEntry:[],calledBySuccess:[I0],throws:null,x:0,y:0,parent:D0},P0={type:n.GenericReference,id:"long-argument-default-value-parent-ref-id",entityType:n.InputMap,entityId:"long-argument-map-id"},Ob={type:n.GenericReference,id:"long-argument-map-parent-ref-id",entityType:n.Operation,entityId:cc},A0={id:"long-argument-map-id",type:n.InputMap,version:1,declaration:Xn,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:I.Number,parent:P0},index:0,parent:Ob},O0={type:n.GenericReference,id:"long-parent-ref-id",entityType:n.FunctionDeclaration,entityId:Lt},S0={type:n.GenericReference,id:"long-called-by-ref-one-id",entityType:n.FunctionDeclaration,entityId:Lt},C0={id:bb,type:n.OutputMap,version:1,declaration:Gl,writesValues:[uc],index:0,parent:Ob},B0={id:cc,type:n.Operation,version:1,declaration:ut,inputs:[A0],outputs:[],process:C0,successCalls:[Ab],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[S0],calledBySuccess:[],error:null,parent:O0},w0={type:n.GenericReference,id:"small-wait-argument-default-value-parent-ref-id",entityType:n.InputMap,entityId:"small-wait-argument-map-id"},_0={type:n.GenericReference,id:"small-wait-argument-map-parent-ref-id",entityType:n.Operation,entityId:Vs},N0={id:"small-wait-argument-map-id",type:n.InputMap,version:1,declaration:Xn,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:I.Number,parent:w0},index:0,parent:_0},M0={type:n.GenericReference,id:"small-wait-parent-ref-id",entityType:n.FunctionDeclaration,entityId:Lt},V0={type:n.GenericReference,id:"small-wait-called-by-ref-one-id",entityType:n.FunctionDeclaration,entityId:Lt},L0={id:Vs,type:n.Operation,version:1,declaration:ut,inputs:[N0],outputs:[],process:null,successCalls:[Pb],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[V0],calledBySuccess:[],error:null,parent:M0},$0={type:n.GenericReference,id:"abort-execution-func-decl-parent-ref-id",entityType:n.Project,entityId:z},Sb={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:[Ab,Db],calls:[L0,T0,uc,B0],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:$0},G0={type:n.GenericReference,id:"call-execution-abort-func-parent-ref-id",entityType:n.Project,entityId:z},F0={id:"call-execution-abort-func-id",type:n.FunctionCall,version:1,declaration:Sb,inputs:[],process:null,outputs:[],successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:G0},pc="manual-hello-world-loop-func-decl-id",Cb="manual-hello-world-loop-func-return-statement-id",Qt="manual-hello-world-loop-id",na="manual-hello-world-loop-body-id",yc="manual-hello-world-loop-break-statement-id",ra="manual-hello-world-loop-current-iteration-number-output-map-id",hc="manual-hello-world-loop-previous-iterations-results-output-map-id",fc="assembled-hello-world-text-output-id",Bb="assembled-hello-world-list-output-id",ia="iteration-number-is-equal-or-greater-than-10-condition-id",Ls="join-hello-world-and-number-operation-id",$s="append-string-to-list-operation-id",wb="hello-world-loop-output-map-id",U0={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-parent-ref",entityType:n.ReturnStatement,entityId:Cb},x0={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"},j0={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:x,isList:!0,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:x0},k0={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-reads-value-ref",entityType:n.OutputMap,entityId:wb},_b={isError:!1,id:"manual-hello-world-loop-function-declaration-output-declaration",version:1,type:n.ReturnDeclaration,name:"Results",description:null,dataType:j0,implements:null,readsValue:k0,required:!0,index:0,parent:U0},q0={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-return-statement-called-by-ref",entityType:n.Loop,entityId:Qt},J0={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref",entityType:n.FunctionDeclaration,entityId:pc},Nb={type:n.ReturnStatement,id:Cb,version:1,outputs:[_b],calledByError:[],calledByEntry:[],calledBySuccess:[q0],parent:J0,throws:null,x:0,y:0},W0={type:n.GenericReference,id:"hello-world-loop-break-statement-ref-id",entityType:n.BreakStatement,entityId:yc},H0={type:n.GenericReference,id:"hello-world-loop-break-statement-reads-value-ref-id",entityType:n.OutputMap,entityId:fc},Mb={isError:!1,id:"hello-world-loop-break-statement-output-id",version:1,type:n.ReturnDeclaration,name:"Iteration result",description:null,dataType:null,readsValue:H0,implements:null,required:!0,index:0,parent:W0},Y0={type:n.GenericReference,id:"hello-world-loop-break-statement-counter-reads-value-ref-id",entityType:n.ArgumentDeclaration,entityId:ra},z0={type:n.GenericReference,id:"hello-world-loop-break-statement-counter-ref-id",entityType:n.BreakStatement,entityId:yc},Vb={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:Y0,required:!0,index:1,parent:z0},Z0={type:n.GenericReference,id:"hello-world-loop-break-statement-called-by-ref-id",entityType:n.Condition,entityId:ia},K0={type:n.GenericReference,id:"hello-world-loop-break-statement-parent-ref-id",entityType:n.Loop,entityId:Qt},Lb={type:n.BreakStatement,id:yc,version:1,outputs:[Mb,Vb],calledByError:[],calledByEntry:[],calledBySuccess:[Z0],parent:K0,throws:null,x:0,y:0},X0={type:n.GenericReference,id:"hello-world-loop-continue-statement-ref-id",entityType:n.ContinueStatement,entityId:"hello-world-loop-continue-statement"},Q0={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"},e1={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:Q0},t1={type:n.GenericReference,id:"hello-world-loop-continue-statement-reads-value-ref-id",entityType:n.OutputMap,entityId:fc},$b={isError:!1,id:"hello-world-loop-continue-statement-output-id",version:1,type:n.ReturnDeclaration,name:"Iteration result",description:null,implements:null,dataType:e1,readsValue:t1,required:!0,index:0,parent:X0},n1={type:n.GenericReference,id:"hello-world-loop-continue-statement-called-by-ref-id",entityType:n.Condition,entityId:ia},r1={type:n.GenericReference,id:"hello-world-loop-continue-statement-parent-ref-id",entityType:n.Loop,entityId:Qt},Gb={type:n.ContinueStatement,id:"hello-world-loop-continue-statement",version:1,outputs:[$b],calledBySuccess:[],calledByError:[n1],calledByEntry:[],parent:r1,throws:null,x:0,y:0};n.GenericReference,n.InputMap;const i1={type:n.GenericReference,id:"append-string-to-list-base-string-map-parent-ref-id",entityType:n.Operation,entityId:$s},a1={type:n.GenericReference,id:"base-string-map-reads-value-ref-id",entityType:n.OutputMap,entityId:hc},Fb={id:"append-string-to-list-base-string-map-id",type:n.InputMap,version:1,declaration:Qo,name:null,description:null,readsValue:a1,defaultValue:null,index:0,parent:i1},s1={type:n.GenericReference,id:"assembly-string-map-parent-ref-id",entityType:n.Operation,entityId:$s},o1={id:Bb,type:n.OutputMap,version:1,writesValues:[Mb],declaration:vi,index:0,parent:s1},l1={type:n.GenericReference,id:"append-string-to-list-called-by-ref-id",entityType:n.Condition,entityId:ia},c1={type:n.GenericReference,id:"latest-string-to-add-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Bb},d1={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:n.Operation,entityId:$s},Ub={id:"latest-string-to-add-input-map-id",version:1,type:n.InputMap,declaration:el,name:null,description:null,readsValue:c1,defaultValue:null,index:1,parent:d1},u1={type:n.GenericReference,id:"append-string-to-list-parent-ref-id",entityType:n.FunctionDeclaration,entityId:Qt},p1={type:n.Operation,id:$s,declaration:ja,version:1,inputs:[Fb,Ub],outputs:[o1],calledByError:[],process:null,calledByEntry:[],calledBySuccess:[l1],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:u1},y1={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:na},h1={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-parent-ref-id",entityType:n.Loop,entityId:Qt},f1={type:n.GenericReference,id:"current-iteration-number-to-check-map-reads-value-ref-id",entityType:n.OutputMap,entityId:ra},xb={type:n.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-ref-two-id",entityType:n.Condition,entityId:ia},m1={id:"current-iteration-number-to-check-map-id",version:1,type:n.InputMap,declaration:jr.fixedArguments[0],name:null,description:null,readsValue:f1,index:1,defaultValue:null,parent:xb},T1={type:n.GenericReference,id:"max-num-iterations-value-map-default-value-parent-ref-id",entityType:n.InputMap,entityId:"max-num-iterations-value-map-id"},E1={id:"max-num-iterations-value-map-id",version:1,type:n.InputMap,declaration:jr.fixedArguments[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:I.Number,value:10,autogeneration:null,valueAsType:null,parent:T1},parent:xb},b1={type:n.Condition,id:ia,version:1,declaration:jr,inputs:[E1,m1],calledByError:[],calledByEntry:[y1],calledBySuccess:[],successCalls:[Lb,p1],errorCalls:[Gb],x:0,y:0,parent:h1},R1={type:n.GenericReference,id:"base-string-map-ref-id",entityType:n.InputMap,entityId:"join-hello-world-and-number-base-string-map-id"},g1={type:n.GenericReference,id:"join-hello-world-and-number-base-string-map-parent-ref-id",entityType:n.Operation,entityId:Ls},v1={id:"join-hello-world-and-number-base-string-map-id",type:n.InputMap,version:1,declaration:Ua,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:I.String,parent:R1,valueAsType:null,autogeneration:null},index:0,parent:g1},I1={type:n.GenericReference,id:"assembly-string-map-parent-ref-id",entityType:n.Operation,entityId:Ls},D1={id:fc,type:n.OutputMap,version:1,writesValues:[Ub,$b],declaration:vi,index:0,parent:I1},P1={type:n.GenericReference,id:"join-hello-world-and-number-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:na},A1={type:n.GenericReference,id:"current-iteration-number-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:ra},O1={type:n.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:n.Operation,entityId:Ls},jb={id:"current-iteration-number-input-map-id",version:1,type:n.InputMap,declaration:xa,name:null,description:null,readsValue:A1,defaultValue:null,index:1,parent:O1},S1={type:n.GenericReference,id:"join-hello-world-and-number-parent-ref-id",entityType:n.FunctionDeclaration,entityId:Qt},C1={type:n.Operation,id:Ls,declaration:Ii,version:1,inputs:[v1,jb],outputs:[D1],process:null,calledByError:[],calledByEntry:[P1],calledBySuccess:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:S1},B1={id:"manual-hello-world-loop-iterations-results-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:hc,entityType:n.ArgumentDeclaration},w1={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:B1},_1={id:"manual-hello-world-loop-previous-iterations-results-output-map-parent-ref-id",type:n.GenericReference,entityId:na,entityType:n.FunctionDeclaration},N1={id:hc,type:n.ArgumentDeclaration,version:1,name:"Previous iterations results",description:"The results of the previous iterations of the loop.",required:!0,dataType:w1,implements:null,writesValues:[Fb],index:1,parent:_1},M1={id:"manual-hello-world-loop-current-iteration-number-output-map-parent-ref-id",type:n.GenericReference,entityId:na,entityType:n.FunctionDeclaration},V1={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:n.GenericReference,entityId:ra,entityType:n.ArgumentDeclaration};n.DataType;const L1={id:ra,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:dl,dataType:null,writesValues:[jb,Vb],index:0,parent:M1},$1={id:"manual-flow-loop-body-parent-ref-id",type:n.GenericReference,entityId:Qt,entityType:n.Loop},G1={id:na,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called multiple times, once for each iteration of the loop.",inputs:[L1,N1],calls:[b1,C1],implements:ul,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:$1},F1={type:n.GenericReference,id:"hello-world-loop-iteration-result-inline-output-declaration-parent-ref-id",entityType:n.Loop,entityId:Qt},kb={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:F1},U1={type:n.GenericReference,id:"hello-world-loop-break-statement-output-map-parent-ref-id",entityType:n.Loop,entityId:Qt},x1={type:n.OutputMap,id:wb,version:1,declaration:kb,writesValues:[_b],index:0,parent:U1},j1={id:"manual-hello-world-loop-parent-ref-id",type:n.GenericReference,entityId:z,entityType:n.Project},k1={id:"manual-hello-world-loop-called-by-ref-id",type:n.GenericReference,entityId:pc,entityType:n.FunctionDeclaration},q1={id:Qt,type:n.Loop,version:1,declaration:ll,inputs:[],outputsDeclarations:[kb],outputs:[x1],body:G1,successCalls:[Nb],errorCalls:[],process:null,error:null,calledByError:[],calledByEntry:[k1],calledBySuccess:[],breakStatements:[Lb],continueStatements:[Gb],x:0,y:0,parent:j1},J1={type:n.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref-id",entityType:n.Project,entityId:z},qb={type:n.FunctionDeclaration,id:pc,version:1,name:"Manual hello world loop",description:null,inputs:[],calls:[q1],returnStatements:[Nb],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:J1},W1={type:n.GenericReference,id:"call-hello-world-loop-parent-ref-id",entityType:n.Project,entityId:z},H1={id:"call-hello-world-loop-id",type:n.FunctionCall,version:1,declaration:qb,inputs:[],outputs:[],process:null,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:W1},yn="company-dto-function-declaration-id",mc="company-dto-func-declaration-argument-dcl-id",en="company-dto-function-company-variable-id",Fn="company-dto-function-company-dto-variable-id",Xr="iterate-over-employee-list-loop-id",Jb="iterate-over-employee-list-loop-employee-dto-output-map-id",Tc="iterate-over-employee-list-loop-body-current-employee-argument-declaration-id",aa="iterate-over-employee-list-loop-body-map-employee-dto-function-call-id",Wb="iterate-over-employee-list-continue-statement-employee-dto-output-decl-id",Y1="iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-id",Hb="iterate-over-employee-list-continue-statement-id",Gs="iterate-over-employee-list-loop-body-id",Yb="company-dto-func-declaration-return-statement-id",zb="company-dto-func-declaration-return-decl-id",Zb="company-dto-func-declaration-company-variable-id-output-map-id",Kb="company-dto-func-declaration-company-variable-employess-output-map-id",Xb="company-dto-func-declaration-company-variable-name-output-map-id",z1="company-dto-func-declaration-company-dto-variable-input-map-id",Z1="company-dto-func-declaration-company-dto-variable-employess-input-map-id",K1="company-dto-func-declaration-company-dto-variable-name-input-map-id",Fs="company-dto-func-declaration-owner-variable-id",X1="company-dto-func-declaration-company-dto-variable-owner-input-map-id",Qb="company-dto-func-declaration-company-variable-owner-output-map-id",eR="company-dto-func-declaration-owner-variable-id-output-map-id",Us="company-dto-func-declaration-bank-account-variable-id",Q1="company-dto-func-declaration-company-dto-variable-bank-account-input-map-id",tR="company-dto-func-declaration-company-variable-bank-account-output-map-id",nR="company-dto-func-declaration-bank-account-variable-id-output-map-id",eV={type:n.GenericReference,id:"company-dto-func-returned-company-dto-data-type-parent-ref-id",entityType:n.ReturnDeclaration,entityId:zb},tV={like:!1,inferred:!1,id:"company-dto-func-returned-company-dto-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:vt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:eV},nV={type:n.GenericReference,id:"company-dto-func-returned-company-dto-parent-ref-id",entityType:n.ReturnStatement,entityId:Yb},rV={type:n.GenericReference,id:"company-dto-func-returned-company-dto-reads-value-ref-id",entityType:n.VariableDeclaration,entityId:Fn},rR={isError:!1,id:zb,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:tV,readsValue:rV,required:!0,index:0,parent:nV},iV={type:n.GenericReference,id:"company-dto-func-return-statement-called-by-ref-id",entityType:n.Operation,entityId:Fn},aV={type:n.GenericReference,id:"company-dto-func-return-statement-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yn},Ec={type:n.ReturnStatement,id:Yb,version:1,outputs:[rR],calledByError:[],calledByEntry:[],calledBySuccess:[iV],throws:null,x:0,y:0,parent:aV},sV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-owner-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:eR},oV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-owner-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:Fn},iR={id:X1,type:n.InputMap,version:1,declaration:null,name:"owner_id",description:null,defaultValue:null,index:5,readsValue:sV,parent:oV},lV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:nR},cV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:Fn},aR={id:Q1,type:n.InputMap,version:1,declaration:null,name:"bank_account_id",description:null,defaultValue:null,index:4,readsValue:lV,parent:cV},dV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-name-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Xb},uV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-name-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:Fn},sR={id:K1,type:n.InputMap,version:1,declaration:null,name:"name",description:null,defaultValue:null,index:3,readsValue:dV,parent:uV},pV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-employess-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Jb},yV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-employess-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:Fn},oR={id:Z1,type:n.InputMap,version:1,declaration:null,name:"employees",description:null,defaultValue:null,index:2,readsValue:pV,parent:yV},hV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Zb},fV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:Fn},lR={id:z1,type:n.InputMap,version:1,declaration:null,name:"id",description:"The ID of the company",defaultValue:null,index:1,readsValue:hV,parent:fV},mV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yn},TV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-one-id",entityType:n.VariableDeclaration,entityId:Us},EV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-two-id",entityType:n.VariableDeclaration,entityId:Fs},bV={type:n.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-three-id",entityType:n.VariableDeclaration,entityId:Xr},bc={id:Fn,type:n.VariableDeclaration,version:1,name:"Company DTO",dataType:null,description:"A variable holding the data of a mapped company DTO",calledByError:[],calledByEntry:[],calledBySuccess:[TV,EV,bV],successCalls:[Ec],errorCalls:[],readsValue:null,writesValues:[rR],inputs:[lR,sR,aR,iR,oR],outputs:[],internalCalls:[],parent:mV,x:0,y:0},or="employee-dto-func-declaration-id",Rc="employee-dto-func-declaration-argument-dcl-id",cR="employee-dto-func-declaration-return-statement-id",dR="employee-dto-func-declaration-return-decl-id",lr="employee-dto-func-declaration-employee-variable-id",cr="employee-dto-func-declaration-employee-dto-variable-id",xs="employee-dto-func-declaration-manager-variable-id",uR="employee-dto-func-declaration-employee-variable-id-output-map-id",pR="employee-dto-func-declaration-employee-variable-birth-date-output-map-id",yR="employee-dto-func-declaration-employee-variable-department-output-map-id",hR="employee-dto-func-declaration-employee-variable-manager-output-map-id",fR="employee-dto-func-declaration-manager-variable-id-output-map-id",RV="employee-dto-func-declaration-employee-dto-variable-input-map-id",gV="employee-dto-func-declaration-employee-dto-variable-birth-date-input-map-id",vV="employee-dto-func-declaration-employee-dto-variable-department-input-map-id",IV="employee-dto-func-declaration-employee-dto-variable-manager-input-map-id",DV={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-data-type-parent-ref-id",entityType:n.ReturnDeclaration,entityId:dR},PV={like:!1,inferred:!1,id:"employee-dto-func-returned-employee-dto-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:vt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:DV},AV={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-parent-ref-id",entityType:n.ReturnStatement,entityId:cR},OV={type:n.GenericReference,id:"employee-dto-func-returned-employee-dto-reads-value-ref-id",entityType:n.VariableDeclaration,entityId:cr},mR={isError:!1,id:dR,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:PV,implements:null,readsValue:OV,required:!0,index:0,parent:AV},SV={type:n.GenericReference,id:"employee-dto-func-return-statement-called-by-ref-id",entityType:n.Operation,entityId:cr},CV={type:n.GenericReference,id:"employee-dto-func-return-statement-parent-ref-id",entityType:n.FunctionDeclaration,entityId:or},gc={type:n.ReturnStatement,id:cR,version:1,outputs:[mR],calledByError:[],calledByEntry:[],calledBySuccess:[SV],throws:null,x:0,y:0,parent:CV},BV={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:fR},wV={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:cr},TR={id:IV,type:n.InputMap,version:1,declaration:null,name:"manager_id",description:null,defaultValue:null,index:4,readsValue:BV,parent:wV},_V={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-department-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:yR},NV={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-department-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:cr},ER={id:vV,type:n.InputMap,version:1,declaration:null,name:"department_name",description:null,defaultValue:null,index:3,readsValue:_V,parent:NV},MV={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:pR},VV={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:cr},bR={id:gV,type:n.InputMap,version:1,declaration:null,name:"birth_date",description:null,defaultValue:null,index:2,readsValue:MV,parent:VV},LV={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-reads-value-ref-id",entityType:n.OutputMap,entityId:uR},$V={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:cr},RR={id:RV,type:n.InputMap,version:1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:LV,parent:$V},GV={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:or},FV={type:n.GenericReference,id:"employee-dto-func-employee-dto-variable-called-by-ref-id",entityType:n.VariableDeclaration,entityId:xs},UV={id:cr,type:n.VariableDeclaration,version:1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",calledByError:[],calledByEntry:[],calledBySuccess:[FV],successCalls:[gc],errorCalls:[],readsValue:null,writesValues:[mR],inputs:[RR,bR,ER,TR],outputs:[],internalCalls:[],parent:GV,x:0,y:0},xV={type:n.GenericReference,id:"employee-dto-func-manager-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:xs},jV={id:fR,type:n.OutputMap,version:1,declaration:Fe.properties[1],index:0,writesValues:[TR],parent:xV},kV={type:n.GenericReference,id:"employee-dto-func-manager-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:xs},qV={like:!1,inferred:!1,id:"employee-dto-func-manager-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ct,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:kV,defaultValue:null},JV={type:n.GenericReference,id:"employee-dto-func-manager-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:hR},WV={type:n.GenericReference,id:"employee-dto-func-manager-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:or};n.GenericReference,n.VariableDeclaration;const gR={id:xs,type:n.VariableDeclaration,version:1,name:"Manager",dataType:qV,description:"A variable holding an inherited manager",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[UV],errorCalls:[],readsValue:JV,writesValues:[],inputs:[],outputs:[jV],internalCalls:[],parent:WV,x:0,y:0},HV={type:n.GenericReference,id:"employee-dto-func-employee-variable-manager-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:lr},YV={id:hR,type:n.OutputMap,version:1,declaration:Ct.properties[2],index:3,writesValues:[gR],parent:HV},zV={type:n.GenericReference,id:"employee-dto-func-employee-variable-department-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:lr},ZV={id:yR,type:n.OutputMap,version:1,declaration:Ct.properties[0],index:2,writesValues:[ER],parent:zV},KV={type:n.GenericReference,id:"employee-dto-func-employee-variable-birth-date-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:lr},XV={id:pR,type:n.OutputMap,version:1,declaration:yt.properties[1],index:1,writesValues:[bR],parent:KV},QV={type:n.GenericReference,id:"employee-dto-func-employee-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:lr},eL={id:uR,type:n.OutputMap,version:1,declaration:Fe.properties[1],index:0,writesValues:[RR],parent:QV},tL={type:n.GenericReference,id:"employee-dto-func-employee-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:lr},nL={like:!1,inferred:!1,id:"employee-dto-func-employee-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ct,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:tL,defaultValue:null},rL={type:n.GenericReference,id:"employee-dto-func-employee-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:or},iL={type:n.GenericReference,id:"employee-dto-func-employee-variable-reads-value-ref-id",entityType:n.ArgumentDeclaration,entityId:Rc},aL={type:n.GenericReference,id:"employee-dto-func-employee-variable-called-by-id",entityType:n.FunctionDeclaration,entityId:or},vR={id:lr,type:n.VariableDeclaration,version:1,name:"Company employee",dataType:nL,description:"A variable holding a company employee",calledByError:[],calledByEntry:[aL],calledBySuccess:[],successCalls:[gR],errorCalls:[],readsValue:iL,writesValues:[],inputs:[],outputs:[eL,XV,ZV,YV],internalCalls:[],parent:rL,x:0,y:0},sL={type:n.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-data-type-parent-ref-id",entityId:Rc,entityType:n.ArgumentDeclaration},oL={type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"employee-dto-func-declaration-employee-input-declaration-data-type-id",version:1,entity:Ct,asType:!1,isList:!1,isNullable:!1,constant:!1,like:!1,inferred:!1,parent:sL,defaultValue:null},lL={type:n.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-parent-ref-id",entityId:or,entityType:n.FunctionDeclaration},cL={type:n.ArgumentDeclaration,id:Rc,version:1,name:"Employee",description:"The employee to create a DTO for",required:!0,implements:null,dataType:oL,index:0,writesValues:[vR],parent:lL},dL={type:n.GenericReference,id:"employee-dto-function-declaration-parent-ref-id",entityType:n.Project,entityId:z},vc={type:n.FunctionDeclaration,id:or,version:1,name:"Employee DTO",description:"Takes a employee and returns a DTO of that employee",index:null,inputs:[cL],calls:[vR],implements:null,returnStatements:[gc],collapsed:!1,private:!1,x:0,y:0,parent:dL},uL={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:Wb,entityType:n.ReturnDeclaration},pL={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:Ct,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:uL},yL={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-reads-value-ref-id",type:n.GenericReference,entityId:aa,entityType:n.OutputMap},hL={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-parent-ref-id",type:n.GenericReference,entityId:Hb,entityType:n.ContinueStatement},IR={isError:!1,id:Wb,type:n.ReturnDeclaration,version:1,name:"Employee DTO",description:"The DTO of the employee entity.",readsValue:yL,dataType:pL,implements:null,required:!0,index:0,parent:hL},fL={id:"iterate-over-employee-list-continue-statement-called-by-ref-id",type:n.GenericReference,entityId:aa,entityType:n.FunctionCall},mL={id:"iterate-over-employee-list-continue-statement-parent-ref-id",type:n.GenericReference,entityId:Xr,entityType:n.Loop},DR={id:Hb,type:n.ContinueStatement,version:1,calledByError:[],calledByEntry:[],calledBySuccess:[fL],outputs:[IR],throws:null,x:0,y:0,parent:mL},TL={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-parent-ref-id",type:n.GenericReference,entityId:aa,entityType:n.FunctionCall},EL={id:Y1,type:n.OutputMap,version:1,declaration:gc.outputs[0],writesValues:[IR],index:0,parent:TL},bL={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-reads-value-ref-id",type:n.GenericReference,entityId:Tc,entityType:n.ArgumentDeclaration},RL={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-parent-ref-id",type:n.GenericReference,entityId:aa,entityType:n.FunctionCall},PR={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:vc.inputs[0],readsValue:bL,index:0,defaultValue:null,parent:RL},gL={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-called-by-ref-id",type:n.GenericReference,entityId:Gs,entityType:n.FunctionDeclaration},vL={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-parent-ref-id",type:n.GenericReference,entityId:Gs,entityType:n.FunctionDeclaration},IL={id:aa,type:n.FunctionCall,version:1,declaration:vc,inputs:[PR],process:null,outputs:[EL],calledByError:[],calledByEntry:[gL],calledBySuccess:[],successCalls:[DR],errorCalls:[],error:null,x:0,y:0,parent:vL},DL={type:n.GenericReference,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-parent-ref-id",entityId:Tc,entityType:n.ArgumentDeclaration},PL={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:Ct,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:DL},AL={id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Gs,entityType:n.FunctionDeclaration},OL={id:Tc,type:n.ArgumentDeclaration,version:1,name:"Current employee",description:"The current employee entity being processed.",dataType:PL,required:!0,implements:Ya,index:0,writesValues:[PR],parent:AL},SL={id:"iterate-over-employee-list-loop-body-parent-ref-id",type:n.GenericReference,entityId:Xr,entityType:n.Loop},CL={id:Gs,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[OL],calls:[IL],implements:za,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:SL},BL={id:"iterate-over-employee-list-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:Xr,entityType:n.Loop},wL={id:"iterate-over-employee-list-loop-iteration-list-input-map-reads-value-ref-id",type:n.GenericReference,entityId:Kb,entityType:n.OutputMap},AR={id:"iterate-over-employee-list-loop-iteration-list-input-map-id",type:n.InputMap,version:1,name:null,description:null,declaration:tr.fixedArguments[0],defaultValue:null,readsValue:wL,index:0,parent:BL},_L={id:"iterate-over-employee-list-loop-parent-ref-id",type:n.GenericReference,entityId:yn,entityType:n.FunctionDeclaration},NL={id:"iterate-over-employee-list-loop-employee-dto-output-map-parent-ref-id",type:n.GenericReference,entityId:Xr,entityType:n.Loop},ML={id:Jb,type:n.OutputMap,version:1,declaration:tr.fixedReturns[0],writesValues:[oR],index:0,parent:NL},VL={type:n.GenericReference,id:"iterate-over-employee-list-loop-called-by-ref-id",entityType:n.VariableDeclaration,entityId:en},LL={id:Xr,type:n.Loop,version:1,declaration:tr,inputs:[AR],successCalls:[bc],errorCalls:[],outputsDeclarations:[],outputs:[ML],body:CL,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[VL],breakStatements:[],continueStatements:[DR],error:null,x:0,y:0,parent:_L},$L={type:n.GenericReference,id:"company-dto-func-bank-account-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:Us},GL={id:nR,type:n.OutputMap,version:1,declaration:Fe.properties[1],index:0,writesValues:[aR],parent:$L},FL={type:n.GenericReference,id:"company-dto-func-bank-account-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:Us},UL={like:!1,inferred:!1,id:"company-dto-func-bank-account-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:vt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:FL,defaultValue:null},xL={type:n.GenericReference,id:"company-dto-func-bank-account-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:tR},jL={type:n.GenericReference,id:"company-dto-func-bank-account-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yn};n.GenericReference,n.VariableDeclaration;const OR={id:Us,type:n.VariableDeclaration,version:1,name:"Bank account",dataType:UL,description:"A variable holding an inherited bank account",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[bc],errorCalls:[],readsValue:xL,writesValues:[],inputs:[],outputs:[GL],internalCalls:[],parent:jL,x:0,y:0},kL={type:n.GenericReference,id:"company-dto-func-owner-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:Fs},qL={id:eR,type:n.OutputMap,version:1,declaration:Fe.properties[1],index:0,writesValues:[iR],parent:kL},JL={type:n.GenericReference,id:"company-dto-func-owner-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:Fs},WL={like:!1,inferred:!1,id:"company-dto-func-owner-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:vt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:JL,defaultValue:null},HL={type:n.GenericReference,id:"company-dto-func-owner-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:Qb},YL={type:n.GenericReference,id:"company-dto-func-owner-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yn};n.GenericReference,n.VariableDeclaration;const SR={id:Fs,type:n.VariableDeclaration,version:1,name:"Owner",dataType:WL,description:"A variable holding an inherited owner",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[bc],errorCalls:[],readsValue:HL,writesValues:[],inputs:[],outputs:[qL],internalCalls:[],parent:YL,x:0,y:0},zL={type:n.GenericReference,id:"company-dto-func-company-variable-owner-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:en},ZL={id:Qb,type:n.OutputMap,version:1,declaration:vt.properties[2],index:4,writesValues:[SR],parent:zL},KL={type:n.GenericReference,id:"company-dto-func-company-variable-bank-account-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:en},XL={id:tR,type:n.OutputMap,version:1,declaration:vt.properties[2],index:3,writesValues:[OR],parent:KL},QL={type:n.GenericReference,id:"company-dto-func-company-variable-name-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:en},e$={id:Xb,type:n.OutputMap,version:1,declaration:vt.properties[0],index:2,writesValues:[sR],parent:QL},t$={type:n.GenericReference,id:"company-dto-func-company-variable-employess-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:en},n$={id:Kb,type:n.OutputMap,version:1,declaration:vt.properties[3],index:1,writesValues:[AR],parent:t$},r$={type:n.GenericReference,id:"company-dto-func-company-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:en},i$={id:Zb,type:n.OutputMap,version:1,declaration:Fe.properties[1],index:0,writesValues:[lR],parent:r$},a$={type:n.GenericReference,id:"company-dto-func-company-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:en},s$={like:!1,inferred:!1,id:"company-dto-func-company-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:vt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:a$,defaultValue:null},o$={type:n.GenericReference,id:"company-dto-func-company-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:yn},l$={type:n.GenericReference,id:"company-dto-func-company-variable-reads-value-ref-id",entityType:n.ArgumentDeclaration,entityId:mc},c$={type:n.GenericReference,id:"company-dto-func-company-variable-called-by-id",entityType:n.FunctionDeclaration,entityId:yn},CR={id:en,type:n.VariableDeclaration,version:1,name:"Company",dataType:s$,description:"A variable holding a company",calledByError:[],calledByEntry:[c$],calledBySuccess:[],successCalls:[OR,SR,LL],errorCalls:[],readsValue:l$,writesValues:[],inputs:[],outputs:[i$,n$,e$,XL,ZL],internalCalls:[],parent:o$,x:0,y:0},d$={type:n.GenericReference,id:"company-dto-func-declaration-company-input-declaration-data-type-parent-ref-id",entityId:mc,entityType:n.ArgumentDeclaration},u$={type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"company-dto-func-declaration-company-input-declaration-data-type-id",version:1,entity:vt,asType:!1,isList:!1,isNullable:!1,constant:!1,like:!1,inferred:!1,parent:d$,defaultValue:null},p$={type:n.GenericReference,id:"company-dto-func-declaration-company-input-declaration-parent-ref-id",entityId:yn,entityType:n.FunctionDeclaration},y$={type:n.ArgumentDeclaration,id:mc,version:1,name:"Company",description:"The company to create a DTO for",required:!0,implements:null,dataType:u$,index:0,writesValues:[CR],parent:p$},h$={type:n.GenericReference,id:"company-dto-function-declaration-parent-ref-id",entityType:n.Project,entityId:z},Ic={type:n.FunctionDeclaration,id:yn,version:1,name:"Company DTO",description:"Takes a company and returns a DTO of that company",inputs:[y$],calls:[CR],implements:null,index:null,returnStatements:[Ec],collapsed:!1,private:!1,x:0,y:0,parent:h$},sa="exec-in-parallel-operation-call-id",oa="exec-sequentially-operation-call-id",ht="concurrency-and-wait-function-declaration-id",BR="concurrency-and-wait-return-statement-id",wR="concurrency-and-wait-return-declaration-id",Dc="exec-in-parallel-argument-map-id",_R="exec-sequentially-argument-map-id",Pc="wait-for-2-seconds-operation-id",NR="wait-for-2-seconds-argument-map-id",Ac="map-company-dto-function-call-id",MR="map-company-dto-function-call-company-dto-output-map-id",la="company-dto-variable-one-id",Oc="company-dto-variable-one-instance-id",f$="company-dto-variable-two-id",m$={type:n.GenericReference,id:"returned-company-dto-data-type-parent-ref-id",entityType:n.ReturnDeclaration,entityId:wR},T$={like:!1,inferred:!1,id:"returned-company-dto-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:vt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:m$},E$={type:n.GenericReference,id:"returned-company-dto-parent-ref-id",entityType:n.ReturnStatement,entityId:BR},b$={type:n.GenericReference,id:"returned-company-dto-reads-value-ref-id",entityType:n.VariableDeclaration,entityId:la},VR={isError:!1,id:wR,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:T$,implements:null,readsValue:b$,required:!0,index:0,parent:E$},R$={type:n.GenericReference,id:"concurrency-and-wait-return-statement-called-by-ref-id",entityType:n.Operation,entityId:Pc},g$={type:n.GenericReference,id:"concurrency-and-wait-return-statement-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},LR={type:n.ReturnStatement,id:BR,version:1,outputs:[VR],calledByError:[],calledByEntry:[],calledBySuccess:[R$],throws:null,x:0,y:0,parent:g$},v$={type:n.GenericReference,id:"company-dto-variable-two-called-by-ref-id",entityType:n.VariableInstance,entityId:Oc},I$={type:n.GenericReference,id:"company-dto-variable-two-reads-value-ref-id",entityType:n.VariableInstance,entityId:Oc},D$={type:n.GenericReference,id:"company-dto-variable-two-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},$R={id:f$,type:n.VariableDeclaration,version:1,name:"Company DTO",description:null,dataType:null,inputs:[],outputs:[],successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[v$],internalCalls:[],writesValues:[VR],readsValue:I$,x:0,y:0,parent:D$},P$={type:n.GenericReference,id:"company-dto-variable-one-instance-called-by-ref-id",entityType:n.VariableDeclaration,entityId:la},A$={type:n.GenericReference,id:"company-dto-variable-one-instance-reads-value-ref-id",entityType:n.VariableDeclaration,entityId:la},O$={type:n.GenericReference,id:"company-dto-variable-one-instance-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},S$={type:n.GenericReference,id:"company-dto-variable-one-instance-declaration-ref-id",entityType:n.VariableDeclaration,entityId:la},GR={id:Oc,type:n.VariableInstance,version:1,declaration:S$,inputs:[],outputs:[],successCalls:[$R],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[P$],internalCalls:[],writesValues:[$R],readsValue:A$,x:0,y:0,parent:O$},C$={type:n.GenericReference,id:"company-dto-variable-one-called-by-ref-id",entityType:n.FunctionCall,entityId:Ac},B$={type:n.GenericReference,id:"company-dto-variable-one-reads-value-ref-id",entityType:n.OutputMap,entityId:MR},w$={type:n.GenericReference,id:"company-dto-variable-one-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},FR={id:la,type:n.VariableDeclaration,version:1,name:"Company DTO",description:null,dataType:null,inputs:[],outputs:[],successCalls:[GR],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[C$],internalCalls:[],writesValues:[GR],readsValue:B$,x:0,y:0,parent:w$},UR={type:n.GenericReference,id:"map-company-dto-function-call-company-input-map-parent-ref-id",entityType:n.FunctionCall,entityId:Ac},_$={id:"map-company-dto-function-call-company-input-map-id",type:n.InputMap,version:1,declaration:Ic.inputs[0],name:null,description:null,defaultValue:null,index:0,readsValue:null,parent:UR},N$={id:MR,type:n.OutputMap,version:1,declaration:Ec.outputs[0],writesValues:[FR],index:0,parent:UR},M$={id:"map-company-dto-function-call-called-by-ref-id",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:ht},V$={id:"map-company-dto-function-call-parent-ref-id",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:ht},L$={id:Ac,type:n.FunctionCall,version:1,declaration:Ic,successCalls:[FR],process:null,errorCalls:[],inputs:[_$],outputs:[N$],calledByError:[],calledByEntry:[M$],calledBySuccess:[],parent:V$,x:0,y:0,error:null},$$={type:n.GenericReference,id:"last-timestamp-variable-datatype-parent-ref-id",entityType:n.VariableDeclaration,entityId:$E},G$={type:n.GenericReference,id:"last-timestamp-variable-default-value-parent-ref-id",entityType:n.DataType,entityId:"last-timestamp-variable-datatype-id"},F$={like:!1,inferred:!1,id:"last-timestamp-variable-datatype-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:cn,version:1,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:$$,defaultValue:{id:"last-timestamp-variable-default-value-id",type:n.PrimitiveValue,version:1,name:I.Date,value:null,autogeneration:{type:qe.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:G$,valueAsType:null}},U$={type:n.GenericReference,id:"last-timestamp-variable-main-project-ref-id",entityType:n.Project,entityId:z},Sc={id:$E,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:F$,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:U$},x$={type:n.GenericReference,id:"wait-for-2-seconds-argument-default-value-parent-ref-id",entityType:n.InputMap,entityId:NR},j$={type:n.GenericReference,id:"wait-for-2-seconds-argument-map-parent-ref-id",entityType:n.Operation,entityId:Pc},k$={id:NR,type:n.InputMap,version:1,declaration:Xn,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:I.Number,parent:x$},index:0,parent:j$},q$={type:n.GenericReference,id:"wait-for-2-seconds-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},J$={type:n.GenericReference,id:"wait-for-2-seconds-called-by-ref-one-id",entityType:n.FunctionDeclaration,entityId:oa},W$={type:n.GenericReference,id:"wait-for-2-seconds-called-by-ref-two-id",entityType:n.FunctionDeclaration,entityId:sa},xR={id:Pc,type:n.Operation,version:1,declaration:xt,inputs:[k$],outputs:[],process:null,successCalls:[LR],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[J$,W$],calledBySuccess:[],error:null,parent:q$},H$={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"},Y$={type:n.GenericReference,id:"wait-for-random-amount-argument-map-parent-ref-id",entityType:n.Operation,entityId:"wait-for-random-amount-id"},z$={id:"wait-for-random-amount-input-map-id",type:n.InputMap,version:1,declaration:Xn,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:I.Number,parent:H$},index:0,parent:Y$},Z$={type:n.GenericReference,id:"wait-for-random-amount-parent-ref-id",entityType:n.Project,entityId:z},Qr={id:"wait-for-random-amount-id",type:n.Operation,version:1,declaration:xt,inputs:[z$],process:null,outputs:[],successCalls:[],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,parent:Z$},jR="list-of-functions-variable-id",K$={type:n.GenericReference,id:"list-of-functions-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:jR},X$={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.",argumentsType:M.Dynamic,dynamicArgumentTypes:null,fixedArguments:[],returnsType:M.Dynamic,error:null,dynamicReturnTypes:null,fixedReturns:[],parent:null},Q$={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"},eG={like:!1,inferred:!1,id:"list-of-functions-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:X$,asType:!1,isList:!0,isNullable:!1,defaultValue:{id:"list-of-functions-variable-data-type-default-value-id",type:n.PrimitiveValue,version:1,name:I.ActionDescriptor,value:null,valueAsType:[Qr,Qr,Qr,Qr,Qr],autogeneration:null,parent:Q$},constant:!1,parent:K$},tG={type:n.GenericReference,id:"list-of-functions-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht};n.GenericReference,n.InputMap;const nG={type:n.GenericReference,id:"list-of-functions-variable-writes-value-one-ref-id",entityType:n.InputMap,entityId:_R},rG={type:n.GenericReference,id:"list-of-functions-variable-writes-value-two-ref-id",entityType:n.InputMap,entityId:Dc},kR={id:jR,type:n.VariableDeclaration,version:1,name:"List of functions to execute",description:"A list of functions to be executed in parallel",dataType:eG,parent:tG,readsValue:null,writesValues:[nG,rG],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],inputs:[],outputs:[],internalCalls:[],x:0,y:0},iG={type:n.GenericReference,id:"exec-in-parallel-return-map-parent-ref-id",entityType:n.Operation,entityId:sa},aG={type:n.GenericReference,id:"exec-in-parallel-result-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},sG={type:n.GenericReference,id:"exec-in-parallel-result-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:"exec-in-parallel-return-map-id"},oG={type:n.GenericReference,id:"exec-in-parallel-result-variable-called-by-ref-id",entityType:n.Operation,entityId:sa},qR={id:"exec-in-parallel-result-variable-id",type:n.VariableInstance,version:1,declaration:Sc,readsValue:sG,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[oG],successCalls:[],errorCalls:[],internalCalls:[],parent:aG,x:0,y:0},lG={id:"exec-in-parallel-return-map-id",type:n.OutputMap,version:1,declaration:nl,writesValues:[qR],index:0,parent:iG},cG={type:n.GenericReference,id:"exec-in-parallel-argument-map-parent-ref-id",entityType:n.Operation,entityId:sa},dG={id:Dc,type:n.InputMap,version:1,declaration:tl,name:null,description:null,readsValue:kR,defaultValue:null,index:0,parent:cG},uG={type:n.GenericReference,id:"exec-in-parallel-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},pG={type:n.GenericReference,id:"exec-in-parallel-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:ht},yG={process:null,id:sa,type:n.Operation,version:1,declaration:xt,inputs:[dG],outputs:[lG],successCalls:[xR,qR],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[pG],calledBySuccess:[],error:null,parent:uG},hG={type:n.GenericReference,id:"exec-sequentially-return-map-parent-ref-id",entityType:n.Operation,entityId:oa},fG={type:n.GenericReference,id:"exec-sequentially-result-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},mG={type:n.GenericReference,id:"exec-sequentially-result-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:"exec-sequentially-return-map-id"},TG={type:n.GenericReference,id:"exec-sequentially-result-variable-called-by-ref-id",entityType:n.Operation,entityId:oa},JR={id:"exec-sequentially-result-variable-id",type:n.VariableInstance,version:1,declaration:Sc,readsValue:mG,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[TG],successCalls:[],errorCalls:[],internalCalls:[],parent:fG,x:0,y:0},EG={id:"exec-sequentially-return-map-id",type:n.OutputMap,version:1,declaration:il,writesValues:[JR],index:0,parent:hG},bG={type:n.GenericReference,id:"exec-sequentially-argument-map-parent-ref-id",entityType:n.Operation,entityId:oa},RG={id:_R,type:n.InputMap,version:1,declaration:rl,name:null,description:null,readsValue:kR,defaultValue:null,index:0,parent:bG},gG={type:n.GenericReference,id:"exec-sequentially-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ht},vG={type:n.GenericReference,id:"exec-sequentially-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:ht},IG={id:oa,type:n.Operation,version:1,declaration:dn,inputs:[RG],process:null,outputs:[EG],successCalls:[xR,JR],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[vG],calledBySuccess:[],error:null,parent:gG},DG={type:n.GenericReference,id:"concurrency-and-wait-parent-ref-id",entityType:n.Project,entityId:z},PG={type:n.FunctionDeclaration,id:ht,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:[IG,yG,L$],returnStatements:[LR],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:DG},AG={type:n.GenericReference,id:"3521f2c8-a5c0-419c-8808-4fc6a73d0b78",entityType:n.ReturnDeclaration,entityId:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},OG={like:!1,inferred:!1,id:"ce8b9a30-afe9-4d4f-879f-1677efca2c47",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:vt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:AG},SG={type:n.GenericReference,id:"8ee66e38-b060-474e-a503-594063a8ec24",entityType:n.ReturnStatement,entityId:"40a23a98-d3b2-42b1-9652-b33779ad15aa"},CG={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:OG,readsValue:null,required:!0,index:0,parent:SG},BG={type:n.GenericReference,id:"9cb3c1e4-7250-4be6-be2a-69c2dd366d6f",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},wG={type:n.GenericReference,id:"c065fcdd-e054-4f95-941c-7eaa65c35d04",entityType:n.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},WR={type:n.ReturnStatement,id:"40a23a98-d3b2-42b1-9652-b33779ad15aa",version:1,outputs:[CG],calledByError:[],calledByEntry:[wG],calledBySuccess:[],throws:null,x:0,y:0,parent:BG},_G={type:n.GenericReference,id:"312ef836-9e40-4d57-b177-03b7145ed074",entityType:n.Project,entityId:z},NG={type:n.FunctionDeclaration,id:"5059c093-eda2-4efc-b7b4-aaaadd4d44de",version:1,name:"Create new company",description:null,inputs:[],calls:[WR],index:null,implements:null,returnStatements:[WR],collapsed:!1,private:!1,x:0,y:0,parent:_G},Cc="get-current-date-and-time-func-decl-id",HR="get-current-date-and-time-return-statement-id",YR="get-current-date-and-time-return-declaration-id",zR="get-current-date-and-time-return-declaration-data-type-id",MG={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-value-parent-ref-id",entityType:n.DataType,entityId:zR},VG={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-parent-ref-id",entityType:n.ReturnDeclaration,entityId:YR},LG={type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,id:zR,version:1,entity:cn,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:I.Date,valueAsType:null,autogeneration:{type:qe.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:MG},constant:!1,parent:VG},$G={type:n.GenericReference,id:"get-current-date-and-time-return-declaration-parent-ref-id",entityType:n.ReturnStatement,entityId:HR};n.ReturnDeclaration;const GG={type:n.GenericReference,id:"get-current-date-and-time-return-statement-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:Cc},FG={type:n.GenericReference,id:"get-current-date-and-time-return-statement-parent-ref-id",entityType:n.FunctionDeclaration,entityId:Cc};n.ReturnStatement;const UG={type:n.GenericReference,id:"concurrency-and-wait-parent-ref-id",entityType:n.Project,entityId:z},xG={type:n.FunctionDeclaration,id:Cc,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:UG},ZR="do-math-return-statement-id",KR="do-math-return-declaration-id",jG={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"},kG={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:te,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:jG},qG={type:n.GenericReference,id:"do-math-func-decl-ref-two-id",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},JG={type:n.GenericReference,id:"do-math-func-var-to-return-one-map-ref-id",entityType:n.ReturnDeclaration,entityId:KR},WG={type:n.VariableDeclaration,id:"do-math-func-var-to-return-one-id",version:1,description:null,name:"Fixed result",dataType:kG,readsValue:null,writesValues:[JG],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:qG},HG={type:n.GenericReference,id:"96ec244e-594b-45f7-802b-6dc3056920f6",entityType:n.ReturnStatement,entityId:ZR},YG={type:n.GenericReference,id:"d120c0cc-9d13-4e45-90e2-4e1ee825ca46",entityType:n.ReturnDeclaration,entityId:"873a3556-4911-4141-b2a0-49c677b56fb4"},zG={like:!1,inferred:!1,id:"da91aa23-9985-49ac-a8bf-9d623ba1ba8f",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:YG},ZG={isError:!1,id:KR,version:1,type:n.ReturnDeclaration,name:"Result",description:null,implements:null,dataType:zG,readsValue:WG,required:!0,index:0,parent:HG},KG={type:n.GenericReference,id:"57fd93e4-93a1-484e-82eb-4dd15d2d0e24",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},XG={type:n.GenericReference,id:"0a86e8d5-ab21-476e-a482-b928cbf351e3",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},XR={type:n.ReturnStatement,id:ZR,version:1,outputs:[ZG],calledByError:[],calledByEntry:[],calledBySuccess:[KG],parent:XG,throws:null,x:0,y:0},QG={type:n.GenericReference,id:"a2db26be-57f2-48e5-9769-cdbf0d95dc7c",entityType:n.VariableDeclaration,entityId:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a"},eF={like:!1,inferred:!1,id:"c3e9d5f0-204f-45f9-85f7-e1b56b468388",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:QG},tF={type:n.GenericReference,id:"692122c5-610a-4504-90dd-f5a5202d116c",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},nF={type:n.GenericReference,id:"do-math-func-return-one-called-by",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},rF={type:n.GenericReference,id:"6dceb501-be5b-4252-afb4-3c0d08abba33",entityType:n.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},QR={type:n.VariableDeclaration,id:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a",version:1,name:"Result",dataType:eF,description:null,readsValue:rF,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[nF],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:tF},iF={type:n.GenericReference,id:"5440f523-af38-4981-8035-89d162fe8041",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},aF={type:n.GenericReference,id:"8c482c35-e674-4713-a1dd-63c3d13b611c",entityType:n.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},sF={type:n.GenericReference,id:"c0a299cd-5869-4930-8cf0-90e3ceb8a903",entityType:n.VariableDeclaration,entityId:"46b2fe23-b417-4887-a35d-09b186679172"},oF={like:!1,inferred:!1,id:"51c0c1df-2ee3-41df-ae52-ac512d8cf795",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:sF},lF={type:n.GenericReference,id:"do-math-func-return-two-called-by",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},eg={type:n.VariableDeclaration,id:"46b2fe23-b417-4887-a35d-09b186679172",version:1,name:"Total",description:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[lF],successCalls:[],errorCalls:[],dataType:oF,readsValue:aF,writesValues:[],internalCalls:[],parent:iF,x:0,y:0},tg={type:n.GenericReference,id:"6e4d776e-6af2-4321-b630-c78110fd677c",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},cF={type:n.GenericReference,id:"5b60955b-2486-40b6-bb24-ffd97ccd8902",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},dF={type:n.GenericReference,id:"1a49923f-bc6f-453f-a438-e74e5475c2a9",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},uF={type:n.GenericReference,id:"02bfde0a-b757-4072-9613-6e9c7c9a424a",entityType:n.ArgumentDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},ng={id:"928953b0-0e3f-4d8c-ae5a-84620b4b8c68",version:1,type:n.InputMap,declaration:Wo,name:null,description:null,readsValue:uF,defaultValue:null,index:0,parent:dF},pF={id:"64752080-ee0f-4cfe-9897-a0668f2b2aca",type:n.OutputMap,version:1,declaration:Yo,writesValues:[QR,eg],index:0,parent:cF},yF={type:n.GenericReference,id:"d235a7f6-07ff-4f35-98d2-8f42dd59cf9f",entityType:n.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},hF={id:"8827e8e9-9381-4ad7-8f61-5419c23c9136",type:n.GenericReference,entityType:n.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},rg={id:"a5525249-0eb5-472b-97bc-5e4cc0d75aee",version:1,type:n.InputMap,declaration:Ho,name:null,description:null,readsValue:hF,defaultValue:null,index:1,parent:yF},fF={type:n.Operation,id:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e",declaration:Fa,version:1,inputs:[ng,rg],outputs:[pF],calledByError:[],calledByEntry:[tg],calledBySuccess:[],process:null,successCalls:[XR,QR,eg],errorCalls:[],parent:tg,error:null,x:0,y:0},mF={type:n.GenericReference,id:"a2c40226-2270-4963-a865-c777ba79c551",entityType:n.DataType,entityId:"a350a9e9-25ee-477f-a83d-9e98ed2451662"},TF={id:"f47731b3-f278-4ab5-aeb2-24519c1119fb",type:n.GenericReference,entityId:"72a338d8-0183-4ca2-8760-227517854595",entityType:n.ArgumentDeclaration},ig={like:!1,inferred:!1,id:"a350a9e9-25ee-477f-a83d-9e98ed2451662",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"do-math-func-argument-two-default-value-id",type:n.PrimitiveValue,version:1,value:1,name:I.Number,parent:mF,valueAsType:null,autogeneration:null},constant:!1,parent:TF},EF={type:n.GenericReference,id:"5f5d8dd0-7f3b-40cd-9f84-83d976887eaf",entityType:n.ArgumentDeclaration,entityId:"649bf0a4-6532-44aa-9818-a03d1c6564e9"},bF={type:n.GenericReference,id:"ca018d0f-a8b3-4c7e-a408-c8b372d04aff",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},RF={type:n.GenericReference,id:"do-math-func-var-called-by-ref",entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},ag={type:n.VariableDeclaration,id:"72a338d8-0183-4ca2-8760-227517854595",version:1,name:"Z",description:null,dataType:ig,inputs:[],outputs:[],calledByError:[],calledByEntry:[RF],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:EF,writesValues:[rg],internalCalls:[],x:0,y:0,parent:bF},gF={entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",type:n.GenericReference,id:"af0cf105-4075-425f-aecc-b25d3600fcc4"},vF={id:"649bf0a4-6532-44aa-9818-a03d1c6564e9",type:n.ArgumentDeclaration,version:1,name:"Z",description:"The number to add",dataType:ig,implements:null,writesValues:[ag],required:!0,index:1,parent:gF},IF={type:n.GenericReference,id:"56953b5d-3e43-4dea-a62c-f3e868ba81bb",entityType:n.Project,entityId:z},DF={id:"868defc8-5c95-48ed-942d-257e8b9b9b00",type:n.GenericReference,entityType:n.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},PF={type:n.GenericReference,id:"35167664-a793-49f1-9eaf-fb57eac30897",entityType:n.DataType,entityId:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2"},AF={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:n.GenericReference,entityId:"d8895765-f705-457e-85fa-25d130926769",entityType:n.ArgumentDeclaration},OF={like:!1,inferred:!1,id:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"do-math-func-argument-one-default-value-id",type:n.PrimitiveValue,version:1,value:5,name:I.Number,parent:PF,valueAsType:null,autogeneration:null},constant:!1,parent:AF},SF={id:"d8895765-f705-457e-85fa-25d130926769",type:n.ArgumentDeclaration,version:1,name:"N",dataType:OF,description:"The number to add",implements:null,writesValues:[ng],required:!0,index:0,parent:DF},CF={type:n.FunctionDeclaration,id:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",version:1,name:"Do math",description:"This function does math",inputs:[SF,vF],calls:[fF,ag],implements:null,index:null,collapsed:!1,returnStatements:[XR],private:!1,x:0,y:0,parent:IF},ft="replace-bank-account-in-company-func-declaration-id",Bc="company-entity-to-modify-arg-declaration-id",wc="account-number-to-create-arg-decl-id",ei="company-main-variable-id",ti="search-person-by-id-id",sg="new-bank-account-owner-arg-decl-id",og="search-person-by-id-output-declaration-id",_c="search-person-by-id-output-entity-map-id",ca="person-not-empty-condition-id",js="create-new-bank-account-instance-operation-id",lg="create-new-bank-account-instance-operation-output-entity-map-id",cg="company-bank-account-output-map-id",Nc="old-bank-account-var-declaration-id",dg="old-bank-account-var-instance-id",ug="company-variable-instance-id",Mc="delete-bank-account-internal-call-id",da="new-bank-account-data-variable-declaration-id",BF={type:n.GenericReference,id:"company-variable-instance-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ft},wF={type:n.GenericReference,id:"company-variable-instance-called-by-ref-id",entityType:n.InternalCall,entityId:Mc},_F={type:n.GenericReference,id:"company-variable-instance-declaration-ref-id",entityType:n.VariableDeclaration,entityId:ei},NF={type:n.GenericReference,id:"bank-account-input-map-parent-ref-id",entityType:n.VariableInstance,entityId:ug},MF={type:n.GenericReference,id:"bank-account-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:lg},pg={type:n.InputMap,id:"bank-account-input-map-id",version:1,readsValue:MF,declaration:oc,name:null,description:null,index:0,defaultValue:null,parent:NF},VF={type:n.VariableInstance,id:ug,version:1,declaration:_F,inputs:[pg],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[wF],successCalls:[],errorCalls:[],internalCalls:[],parent:BF,readsValue:null,writesValues:[],x:0,y:0},LF={type:n.GenericReference,id:"bank-account-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:ei},$F={type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"bank-account-variable-data-type-id",version:1,entity:Zr,asType:!1,isList:!1,isNullable:!1,constant:!1,like:!1,inferred:!1,defaultValue:null,parent:LF},GF={type:n.GenericReference,id:"bank-account-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:cg},FF={type:n.GenericReference,id:"bank-account-variable-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ft},UF={type:n.GenericReference,id:"bank-account-variable-called-by-ref-id",entityType:n.VariableDeclaration,entityId:ei},xF={type:n.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-id",entityType:n.Operation,entityId:js};n.GenericReference,n.VariableInstance;const jF={type:n.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-two-id",entityType:n.VariableDeclaration,entityId:Nc},kF={type:n.GenericReference,id:"old-bank-account-variable-trigger-delete-decl-ref-id",entityType:n.VariableDeclaration,entityId:Nc},qF={type:n.GenericReference,id:"bank-account-variable-parent-ref-two-id",entityType:n.FunctionDeclaration,entityId:ft},JF={type:n.GenericReference,id:"old-bank-account-variable-trigger-delete-internal-call-ref-id",entityType:n.InternalCall,entityId:Mc},WF={type:n.VariableInstance,id:dg,version:1,declaration:kF,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],internalCalls:[JF],errorCalls:[],parent:qF,readsValue:null,writesValues:[],x:0,y:0},yg={process:null,type:n.InternalCall,id:Mc,version:1,declaration:_l,index:0,successCalls:[VF],errorCalls:[],inputs:[],outputs:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[xF,jF],parent:WF},hg={type:n.VariableDeclaration,id:Nc,version:1,name:"Old bank account",description:"The existing bank account that needs to be replaced in the company entity",dataType:$F,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[UF],successCalls:[yg],internalCalls:[],errorCalls:[],parent:FF,readsValue:GF,writesValues:[],x:0,y:0},HF={type:n.GenericReference,id:"company-variable-declaration-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:ei},YF={type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"company-variable-declaration-data-type-id",version:1,entity:vt,asType:!1,isList:!1,isNullable:!1,like:!1,inferred:!1,constant:!1,defaultValue:null,parent:HF},zF={type:n.GenericReference,id:"company-variable-declaration-reads-value-ref-id",entityType:n.ArgumentDeclaration,entityId:Bc},ZF={type:n.GenericReference,id:"company-variable-declaration-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ft},KF={type:n.GenericReference,id:"company-variable-declaration-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:ft},XF={type:n.GenericReference,id:"company-bank-account-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:ei},QF={id:cg,version:1,type:n.OutputMap,declaration:oc,index:0,parent:XF,writesValues:[hg]},fg={type:n.VariableDeclaration,id:ei,version:1,name:"Company",description:"The company entity that was passed as an argument to the parent function",dataType:YF,inputs:[],outputs:[QF],calledByError:[],calledByEntry:[KF],calledBySuccess:[],successCalls:[hg],errorCalls:[],parent:ZF,internalCalls:[],readsValue:zF,writesValues:[],x:0,y:0},eU={type:n.GenericReference,id:"create-new-bank-account-account-owner-dynamic-input-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:da},tU={id:"create-new-bank-account-account-owner-dynamic-input-map-reads-value-ref-id",type:n.GenericReference,entityType:n.OutputMap,entityId:_c},mg={id:"create-new-bank-account-account-owner-dynamic-input-map-id",version:1,type:n.InputMap,declaration:null,name:"Account owner",description:null,readsValue:tU,index:1,defaultValue:null,parent:eU},nU={id:"create-new-bank-account-account-number-dynamic-input-map-reads-value-ref-id",type:n.GenericReference,entityType:n.ArgumentDeclaration,entityId:wc},rU={type:n.GenericReference,id:"create-new-bank-account-account-number-dynamic-input-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:da},Tg={id:"create-new-bank-account-account-number-dynamic-input-map-id",version:1,type:n.InputMap,declaration:null,name:"Account number",description:null,readsValue:nU,defaultValue:null,index:0,parent:rU},Eg={type:n.GenericReference,id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",entityType:n.Operation,entityId:js},iU={id:"create-new-bank-account-instance-operation-entity-to-create-input-map-id",version:1,type:n.InputMap,declaration:Qn.fixedArguments[0],name:null,description:null,index:0,readsValue:null,defaultValue:{type:n.PrimitiveValue,name:I.EntityTemplate,value:null,valueAsType:Zr,autogeneration:null},parent:Eg},aU={type:n.GenericReference,id:"create-new-bank-account-instance-operation-entity-data-input-map-reads-value-ref-id",entityType:n.VariableDeclaration,entityId:da},bg={id:"create-new-bank-account-instance-operation-entity-data-input-map-id",version:1,type:n.InputMap,declaration:Qn.fixedArguments[1],name:null,description:null,index:1,readsValue:aU,defaultValue:null,parent:Eg},sU={type:n.GenericReference,id:"create-new-bank-account-instance-operation-output-entity-map-parent-ref-id",entityType:n.Operation,entityId:js},oU={id:lg,version:1,type:n.OutputMap,declaration:Qn.fixedReturns[0],index:0,writesValues:[pg],parent:sU},lU={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",entityType:n.Condition,entityId:ca},cU={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",entityType:n.VariableDeclaration,entityId:da},dU={type:n.GenericReference,id:"create-new-bank-account-instance-operation-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ft},Rg={process:null,id:js,type:n.Operation,version:1,declaration:Qn,inputs:[iU,bg],error:null,outputs:[oU],successCalls:[yg],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[cU,lU],parent:dU,x:0,y:0},uU={type:n.GenericReference,id:"new-bank-account-data-variable-declaration-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ft},pU={type:n.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",entityType:n.Condition,entityId:ca},yU={id:da,type:n.VariableDeclaration,version:1,inputs:[Tg,mg],dataType:null,name:"New bank Account's data",description:null,readsValue:null,outputs:[],writesValues:[bg],successCalls:[Rg],errorCalls:[],internalCalls:[],calledByError:[],calledBySuccess:[pU],calledByEntry:[],x:0,y:0,parent:uU},hU={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},fU={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,I.String;const mU={id:"person-not-found-thrown-error-parent-ref-id",type:n.GenericReference,entityId:"person-not-found-error-return-statement-id",entityType:n.ReturnStatement},TU={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:mU,implements:null,required:!0,index:0,readsValue:null},EU={id:"person-not-found-error-return-statement-called-by-ref-id",type:n.GenericReference,entityId:ca,entityType:n.Condition},bU={id:"person-not-found-error-return-statement-parent-ref-id",type:n.GenericReference,entityId:ft,entityType:n.FunctionDeclaration},RU={id:"person-not-found-error-return-statement-id",type:n.ReturnStatement,version:1,throws:TU,outputs:[],calledBySuccess:[],calledByError:[EU],calledByEntry:[],x:0,y:0,parent:bU},gU={type:n.GenericReference,id:"person-not-empty-condition-called-by-ref-id",entityType:n.Search,entityId:ti},vU={type:n.GenericReference,id:"person-not-empty-condition-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ft},IU={type:n.GenericReference,id:"person-entity-to-check-map-reads-value-ref-id",entityType:n.OutputMap,entityId:_c},DU={type:n.GenericReference,id:"person-not-empty-condition-ref-two-id",entityType:n.Condition,entityId:ca},gg={id:"person-entity-to-check-map-id",version:1,type:n.InputMap,declaration:nr.fixedArguments[0],name:null,description:null,readsValue:IU,index:0,defaultValue:null,parent:DU},PU={type:n.Condition,id:ca,version:1,declaration:nr,inputs:[gg],calledByError:[],calledByEntry:[],calledBySuccess:[gU],successCalls:[yU,Rg],errorCalls:[RU],x:0,y:0,parent:vU},AU={type:n.GenericReference,id:"search-person-by-id-output-entity-declaration-datatype-parent-ref-id",entityType:n.ValueDescriptor,entityId:og},OU={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:yt,defaultValue:null,parent:AU},SU={type:n.GenericReference,id:"search-person-by-id-output-entity-declaration-parent-ref-id",entityType:n.Search,entityId:ti},vg={id:og,type:n.ValueDescriptor,version:1,dataType:OU,name:"Found person",description:"The person entity that was found",parent:SU,required:!0,index:0},CU={type:n.GenericReference,id:"search-person-by-id-output-entity-map-parent-ref-id",entityType:n.Search,entityId:ti},BU={type:n.OutputMap,id:_c,version:1,declaration:vg,parent:CU,writesValues:[gg,mg],index:0},wU={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 _U={type:n.GenericReference,id:"search-person-by-id-input-declaration-parent-ref-id",entityType:n.Search,entityId:ti},Ig={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:_U,writesValues:[]},NU={type:n.GenericReference,id:"search-person-by-id-input-map-parent-ref-id",entityType:n.Search,entityId:ti},MU={id:"search-person-by-id-input-map-reads-value-ref-id",type:n.GenericReference,entityId:sg,entityType:n.ArgumentDeclaration},Dg={type:n.InputMap,id:"search-person-by-id-input-map",version:1,declaration:Ig,name:null,description:null,readsValue:MU,defaultValue:null,parent:NU,index:0},VU={from:{name:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},items:[{name:"*"}],where:[{name:"id",value:"{{dynamic_value_1}}"}]},LU={type:n.GenericReference,id:"search-person-by-id-parent-ref-id",entityType:n.FunctionDeclaration,entityId:ft},$U={type:n.GenericReference,id:"search-person-by-id-called-by-ref-id",entityType:n.FunctionDeclaration,entityId:ft},GU={type:n.Search,id:ti,version:1,name:"Search person by ID",description:"Searches for a person entity given the UUID",query:VU,inputsDeclarations:[Ig],inputs:[Dg],outputsDeclarations:[vg],outputs:[BU],calledByError:[],calledByEntry:[$U],calledBySuccess:[],error:null,successCalls:[PU],errorCalls:[],parent:LU,x:0,y:0};n.GenericReference,n.DataType;const FU={id:"account-number-to-create-arg-decl-data-type-parent-ref-id",type:n.GenericReference,entityId:wc,entityType:n.ArgumentDeclaration},UU={like:!1,inferred:!1,id:"account-number-to-create-arg-decl-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:x,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:FU},xU={entityType:n.FunctionDeclaration,entityId:ft,type:n.GenericReference,id:"account-number-to-create-arg-decl-parent-ref-id"},jU={id:wc,type:n.ArgumentDeclaration,version:1,name:"Account number",description:"The account number of the new bank account entity",dataType:UU,implements:null,writesValues:[Tg],required:!0,index:1,parent:xU};n.GenericReference,n.DataType;const kU={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},qU={like:!1,inferred:!1,id:"new-bank-account-owner-arg-decl-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ga,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:kU},JU={entityType:n.FunctionDeclaration,entityId:ft,type:n.GenericReference,id:"new-bank-account-owner-arg-decl-parent-ref-id"},WU={id:sg,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:qU,implements:null,writesValues:[Dg],required:!1,index:1,parent:JU},HU={type:n.GenericReference,id:"replace-bank-account-in-company-parent-ref",entityType:n.Project,entityId:z},YU={type:n.GenericReference,id:"company-entity-to-modify-parent-ref",entityType:n.FunctionDeclaration,entityId:ft};n.GenericReference,n.DataType;const zU={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:n.GenericReference,entityId:Bc,entityType:n.ArgumentDeclaration},ZU={like:!1,inferred:!1,id:"company-entity-to-modify-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:te,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:zU},KU={id:Bc,type:n.ArgumentDeclaration,version:1,name:"Company",dataType:ZU,implements:null,description:"The company to replace the bank account for",writesValues:[fg],required:!0,index:0,parent:YU},XU={type:n.FunctionDeclaration,id:ft,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:[KU,jU,WU],index:null,implements:null,calls:[GU,fg],collapsed:!1,returnStatements:[],private:!1,x:0,y:0,parent:HU},QU={type:n.GenericReference,id:"e0a937bd-3a85-4037-a973-916985b9f94b",entityType:n.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},e4={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:QU,x:0,y:0},t4={type:n.GenericReference,id:"948e6869-ae5b-4914-bea0-b9f02ad6a014",entityType:n.Project,entityId:"23b23d8b-1929-4505-a350-745c8550e731"},n4={type:n.GenericReference,id:"f3d6f2c6-1b3e-4e9d-8c9d-5b5b9f0b8d9c",entityType:n.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},r4={type:n.InstalledProject,version:1,id:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6",name:"Third Party Installed Project",description:null,functions:[e4],events:[],implements:n4,parent:t4,x:0,y:0},Vc="global-counted-test-loop-id",Pg="global-counted-test-loop-body-id",Ag="global-counted-test-loop-body-current-iteration-argument-declaration-id",i4={type:n.GenericReference,id:"global-counted-test-loop-body-current-iteration-argument-declaration-data-type-parent-ref-id",entityId:Ag,entityType:n.ArgumentDeclaration},a4={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:i4},s4={id:"global-counted-test-loop-body-current-iteration-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Pg,entityType:n.FunctionDeclaration},o4={id:Ag,type:n.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",dataType:a4,implements:El,required:!0,index:0,writesValues:[],parent:s4},l4={id:"global-counted-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:Vc,entityType:n.Loop},c4={id:Pg,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[o4],calls:[],implements:bl,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:l4},ni="random-company-employee-test-variable-id",Lc="manager-global-variable-id",Og="global-user-instance-id",hn="employee-mapped-dto-variable-id",Un="employee-mapped-dto-variable-instance-id",Sg="random-employee-id-output-map-id",Cg="random-employee-birth-date-output-map-id",Bg="random-employee-department-output-map-id",wg="random-employee-manager-output-map-id",_g="manager-global-id-output-map-id",Ng="global-user-instance-id-output-map-id",d4="employee-mapped-dto-requester-id-input-map-id",Mg="employee-mapped-dto-now-timestamp-input-map-id",u4="employee-mapped-dto-id-input-map-id",p4="employee-mapped-dto-birth-date-input-map-id",y4="employee-mapped-dto-department-input-map-id",h4="employee-mapped-dto-manager-input-map-id",f4={id:"global-counted-test-loop-iteration-number-input-map-parent-ref-id",type:n.GenericReference,entityId:Vc,entityType:n.Loop};n.GenericReference,n.VariableDeclaration;const m4={id:"global-counted-test-loop-iteration-number-input-map-id",type:n.InputMap,version:1,name:null,description:null,declaration:Ka.fixedArguments[0],defaultValue:null,readsValue:null,index:0,parent:f4},T4={id:"global-counted-test-loop-parent-ref-id",type:n.GenericReference,entityId:z,entityType:n.Project},E4={id:"global-counted-test-loop-called-by-success-ref-id",type:n.GenericReference,entityId:Un,entityType:n.VariableDeclaration},b4={id:Vc,type:n.Loop,version:1,declaration:Ka,inputs:[m4],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:c4,calledByError:[],calledByEntry:[],calledBySuccess:[E4],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:T4},$c="global-object-keys-test-loop-id",Vg="global-object-keys-test-loop-body-id",Lg="global-object-keys-test-loop-body-current-iteration-argument-declaration-id",R4={type:n.GenericReference,id:"global-object-keys-test-loop-body-current-iteration-argument-declaration-data-type-parent-ref-id",entityId:Lg,entityType:n.ArgumentDeclaration},g4={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:R4},v4={id:"global-object-keys-test-loop-body-current-iteration-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Vg,entityType:n.FunctionDeclaration},I4={id:Lg,type:n.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",dataType:g4,implements:fl,required:!0,index:0,writesValues:[],parent:v4},D4={id:"global-object-keys-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:$c,entityType:n.Loop},P4={id:Vg,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[I4],calls:[],implements:Si,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:D4},A4={id:"global-object-keys-test-loop-iteration-object-input-map-parent-ref-id",type:n.GenericReference,entityId:$c,entityType:n.Loop},O4={id:"global-object-keys-test-loop-iteration-object-input-map-reads-value-ref-id",type:n.GenericReference,entityId:hn,entityType:n.VariableDeclaration},$g={id:"global-object-keys-test-loop-iteration-object-input-map-id",type:n.InputMap,version:1,name:null,description:null,declaration:Si.fixedArguments[0],defaultValue:null,readsValue:O4,index:0,parent:A4},S4={id:"global-object-keys-test-loop-parent-ref-id",type:n.GenericReference,entityId:z,entityType:n.Project},C4={id:"global-object-keys-test-loop-called-by-success-ref-two-id",type:n.GenericReference,entityId:Un,entityType:n.VariableDeclaration},B4={id:"global-object-keys-test-loop-called-by-success-ref-one-id",type:n.GenericReference,entityId:hn,entityType:n.VariableDeclaration},Gc={id:$c,type:n.Loop,version:1,declaration:Si,inputs:[$g],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:P4,calledByError:[],calledByEntry:[],calledBySuccess:[B4,C4],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:S4},Fc="global-object-values-test-loop-id",Gg="global-object-values-test-loop-body-id",Fg="global-object-values-test-loop-body-current-iteration-argument-declaration-id",w4={type:n.GenericReference,id:"global-object-values-test-loop-body-current-iteration-argument-declaration-data-type-parent-ref-id",entityId:Fg,entityType:n.ArgumentDeclaration},_4={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:w4},N4={id:"global-object-values-test-loop-body-current-iteration-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:Gg,entityType:n.FunctionDeclaration},M4={id:Fg,type:n.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",dataType:_4,implements:ml,required:!0,index:0,writesValues:[],parent:N4},V4={id:"global-object-values-test-loop-body-parent-ref-id",type:n.GenericReference,entityId:Fc,entityType:n.Loop},L4={id:Gg,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[M4],calls:[],implements:Bi,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:V4},$4={id:"global-object-values-test-loop-iteration-object-input-map-parent-ref-id",type:n.GenericReference,entityId:Fc,entityType:n.Loop},G4={id:"global-object-values-test-loop-iteration-object-input-map-reads-value-ref-id",type:n.GenericReference,entityId:Un,entityType:n.VariableDeclaration},Ug={id:"global-object-values-test-loop-iteration-object-input-map-id",type:n.InputMap,version:1,name:null,description:null,declaration:Bi.fixedArguments[0],defaultValue:null,readsValue:G4,index:0,parent:$4},F4={id:"global-object-values-test-loop-parent-ref-id",type:n.GenericReference,entityId:z,entityType:n.Project},U4={id:"global-object-values-test-loop-called-by-success-ref-id",type:n.GenericReference,entityId:Un,entityType:n.VariableDeclaration},xg={id:Fc,type:n.Loop,version:1,declaration:Bi,inputs:[Ug],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:L4,calledByError:[],calledByEntry:[],calledBySuccess:[U4],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:F4},Uc="global-test-iterate-over-string-loop-id",xc="global-test-iterate-over-string-loop-body-id",ks="global-test-iterate-over-string-loop-body-current-iteration-argument-declaration-id",jg="global-test-iterate-over-string-loop-iteration-list-input-map-id",x4={type:n.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-argument-declaration-data-type-parent-ref-id",entityId:ks,entityType:n.ArgumentDeclaration},j4={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:x4},k4={id:"global-test-iterate-over-string-loop-body-current-iteration-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:xc,entityType:n.FunctionDeclaration},q4={id:ks,type:n.ArgumentDeclaration,version:1,name:"Current character",description:"The current character value being processed.",dataType:j4,implements:pl,required:!0,index:1,writesValues:[],parent:k4},J4={type:n.GenericReference,id:"global-test-iterate-over-string-loop-body-current-iteration-argument-declaration-data-type-parent-ref-id",entityId:ks,entityType:n.ArgumentDeclaration},W4={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:J4},H4={id:"global-test-iterate-over-string-loop-body-current-iteration-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:xc,entityType:n.FunctionDeclaration},Y4={id:ks,type:n.ArgumentDeclaration,version:1,name:"Current character",description:"The current character value being processed.",dataType:W4,implements:yl,required:!0,index:0,writesValues:[],parent:H4},z4={id:"global-test-iterate-over-string-loop-body-parent-ref-id",type:n.GenericReference,entityId:Uc,entityType:n.Loop},Z4={id:xc,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[Y4,q4],calls:[],implements:hl,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:z4},K4={id:"global-test-iterate-over-string-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:Uc,entityType:n.Loop},X4={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-parent-ref-id",type:n.GenericReference,entityId:jg,entityType:n.InputMap},Q4={id:"global-test-iterate-over-string-loop-iteration-list-input-map-default-value-id",type:n.PrimitiveValue,name:I.String,version:1,value:"Hello",valueAsType:null,autogeneration:{type:qe.Random,rangeStart:4,rangeEnd:5},parent:X4},ex={id:jg,type:n.InputMap,version:1,name:null,description:null,declaration:Za.fixedArguments[0],defaultValue:Q4,readsValue:null,index:0,parent:K4},tx={id:"global-test-iterate-over-string-loop-parent-ref-id",type:n.GenericReference,entityId:z,entityType:n.Project},nx={id:Uc,type:n.Loop,version:1,declaration:Za,inputs:[ex],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:Z4,calledByError:[],calledByEntry:[],calledBySuccess:[],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:tx},jc="iterate-over-list-loop-id",kg="iterate-over-list-loop-body-id",qg="iterate-over-list-loop-body-current-iteration-argument-declaration-id",rx={type:n.GenericReference,id:"iterate-over-list-loop-body-current-iteration-argument-declaration-data-type-parent-ref-id",entityId:qg,entityType:n.ArgumentDeclaration},ix={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:rx},ax={id:"iterate-over-list-loop-body-current-iteration-argument-declaration-parent-ref-id",type:n.GenericReference,entityId:kg,entityType:n.FunctionDeclaration},sx={id:qg,type:n.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",dataType:ix,implements:Ya,required:!0,index:0,writesValues:[],parent:ax},ox={id:"iterate-over-list-loop-body-parent-ref-id",type:n.GenericReference,entityId:jc,entityType:n.Loop},lx={id:kg,type:n.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each iteration of the loop.",inputs:[sx],calls:[],implements:za,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:ox},cx={id:"iterate-over-list-loop-iteration-list-input-map-parent-ref-id",type:n.GenericReference,entityId:jc,entityType:n.Loop},dx={id:"iterate-over-list-loop-iteration-list-input-map-id",type:n.InputMap,version:1,name:null,description:null,declaration:tr.fixedArguments[0],defaultValue:null,readsValue:null,index:0,parent:cx},ux={id:"iterate-over-list-loop-parent-ref-id",type:n.GenericReference,entityId:z,entityType:n.Project},px={id:jc,type:n.Loop,version:1,declaration:tr,inputs:[dx],successCalls:[],errorCalls:[],outputsDeclarations:[],outputs:[],process:null,body:lx,calledByError:[],calledByEntry:[],calledBySuccess:[],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:ux};var kc=(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))(kc||{}),Jg=(r=>(r.COUNT="count",r.SUM="sum",r.AVG="avg",r.MIN="min",r.MAX="max",r))(Jg||{});const yx={from:{name:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},items:{from:{name:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},items:[{function:{name:Jg.COUNT,items:["f8310850-a87e-405c-b182-4f1d5fa49240"]},alias:"employee_count"}],where:[{name:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3",operation:kc.NEQ,value:null}]},where:[{name:"employee_count",operation:kc.GT,value:1}]},hx={id:"find-companies-with-multiple-employees-and-bank-account-search-parent-ref-id",type:n.GenericReference,entityId:z,entityType:n.Project},fx={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},Wg={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:fx},mx={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},Tx={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-id",type:n.OutputMap,version:1,declaration:Wg,writesValues:[],index:0,parent:mx},Ex={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:[Wg],inputs:[],outputs:[Tx],query:yx,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:hx},bx={type:n.GenericReference,id:"employee-mapped-dto-manager-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:_g},Rx={type:n.GenericReference,id:"employee-mapped-dto-manager-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:hn},Hg={id:h4,type:n.InputMap,version:1,declaration:null,name:"manager_id",description:null,defaultValue:null,index:4,readsValue:bx,parent:Rx},gx={type:n.GenericReference,id:"employee-mapped-dto-department-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Bg},vx={type:n.GenericReference,id:"employee-mapped-dto-department-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:hn},Yg={id:y4,type:n.InputMap,version:1,declaration:null,name:"department_name",description:null,defaultValue:null,index:3,readsValue:gx,parent:vx},Ix={type:n.GenericReference,id:"employee-mapped-dto-birth-date-input-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Cg},Dx={type:n.GenericReference,id:"employee-mapped-dto-birth-date-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:hn},zg={id:p4,type:n.InputMap,version:1,declaration:null,name:"birth_date",description:null,defaultValue:null,index:2,readsValue:Ix,parent:Dx},Px={type:n.GenericReference,id:"employee-mapped-dto-id-output-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Sg},Ax={type:n.GenericReference,id:"employee-mapped-dto-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:hn},Zg={id:u4,type:n.InputMap,version:1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,index:1,readsValue:Px,parent:Ax},Ox={type:n.GenericReference,id:"employee-mapped-dto-requester-id-output-map-reads-value-ref-id",entityType:n.OutputMap,entityId:Ng},Sx={type:n.GenericReference,id:"employee-mapped-dto-requester-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:hn},Kg={id:d4,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:Ox,parent:Sx},Cx={type:n.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:Lc},Bx={id:_g,type:n.OutputMap,version:1,declaration:Fe.properties[1],index:0,writesValues:[Hg],parent:Cx},wx={type:n.GenericReference,id:"manager-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:Lc},_x={like:!1,inferred:!1,id:"manager-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ct,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:wx,defaultValue:null},Nx={type:n.GenericReference,id:"manager-variable-reads-value-ref-id",entityType:n.OutputMap,entityId:wg},Mx={type:n.GenericReference,id:"manager-variable-parent-ref-id",entityType:n.Project,entityId:z},Xg={id:Lc,type:n.VariableDeclaration,version:1,name:"Manager",dataType:_x,description:"A variable holding an inherited manager for testing purposes",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:Nx,writesValues:[],inputs:[],outputs:[Bx],internalCalls:[],parent:Mx,x:0,y:0},Vx={type:n.GenericReference,id:"random-company-employee-manager-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:ni},Lx={id:wg,type:n.OutputMap,version:1,declaration:Ct.properties[2],index:3,writesValues:[Xg],parent:Vx},$x={type:n.GenericReference,id:"random-company-employee-department-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:ni},Gx={id:Bg,type:n.OutputMap,version:1,declaration:Ct.properties[0],index:2,writesValues:[Yg],parent:$x},Fx={type:n.GenericReference,id:"random-company-employee-birth-date-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:ni},Ux={id:Cg,type:n.OutputMap,version:1,declaration:yt.properties[1],index:1,writesValues:[zg],parent:Fx},xx={type:n.GenericReference,id:"random-company-employee-id-output-map-parent-ref-id",entityType:n.VariableDeclaration,entityId:ni},jx={id:Sg,type:n.OutputMap,version:1,declaration:Fe.properties[1],index:0,writesValues:[Zg],parent:xx},kx={type:n.GenericReference,id:"random-company-employee-test-variable-data-type-parent-ref-id",entityType:n.VariableDeclaration,entityId:ni},qx={like:!1,inferred:!1,id:"random-company-employee-test-variable-data-type-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ct,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:kx,defaultValue:null},Jx={type:n.GenericReference,id:"random-company-employee-test-variable-parent-ref-id",entityType:n.Project,entityId:z},Wx={id:ni,type:n.VariableDeclaration,version:1,name:"Company employee",dataType:qx,description:"A variable holding a random company employee for testing purposes",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[jx,Ux,Gx,Lx],internalCalls:[],parent:Jx,x:0,y:0},Hx={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-parent-ref-id",entityType:n.InputMap,entityId:Mg},Yx={type:n.PrimitiveValue,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-default-value-id",name:I.Date,version:1,valueAsType:null,value:null,autogeneration:{type:qe.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:Hx},zx={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-now-timestamp-input-map-parent-ref-id",entityType:n.VariableInstance,entityId:Un},Zx={id:Mg,type:n.InputMap,version:1,declaration:null,name:"now",description:"The current timestamp when the operation is executed",defaultValue:Yx,index:5,readsValue:null,parent:zx},Kx={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-decl-ref-id",entityType:n.VariableDeclaration,entityId:hn},Xx={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-called-by-success-ref-id",entityType:n.VariableDeclaration,entityId:Un},Qx={type:n.GenericReference,id:"employee-mapped-dto-variable-instance-parent-ref-id",entityType:n.Project,entityId:z},e8={id:Un,type:n.VariableInstance,version:1,declaration:Kx,calledByError:[],calledByEntry:[],calledBySuccess:[Xx],successCalls:[Gc,xg],errorCalls:[],readsValue:null,writesValues:[Ug],inputs:[Zx],outputs:[],internalCalls:[],parent:Qx,x:0,y:0},t8={type:n.GenericReference,id:"employee-mapped-dto-variable-parent-ref-id",entityType:n.Project,entityId:z},n8={id:hn,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:[Gc,e8],errorCalls:[],readsValue:null,writesValues:[$g],inputs:[Kg,Zg,zg,Yg,Hg],outputs:[],internalCalls:[],parent:t8,x:0,y:0},r8={type:n.GenericReference,id:"0e63e617-f9d3-42e8-bde0-1bb0b1df7034",entityType:n.VariableDeclaration,entityId:tc},i8={like:!1,inferred:!1,id:"e75645ce-d3df-4f07-a897-ae9ef4d917fd",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:rc,version:1,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:r8,defaultValue:null},a8={type:n.GenericReference,id:"e92a8ff5-3fef-4e0c-8d8f-92c930b2890b",entityType:n.Project,entityId:z},Qg={id:tc,type:n.VariableDeclaration,version:1,name:"Current user",description:"The user that is currently logged in",dataType:i8,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:a8},s8={type:n.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",entityType:n.VariableInstance,entityId:Og},o8={id:Ng,type:n.OutputMap,version:1,declaration:Fe.properties[1],index:0,writesValues:[Kg],parent:s8},l8={type:n.GenericReference,id:"global-user-instance-parent-ref-id",entityType:n.Project,entityId:z},c8={id:Og,type:n.VariableInstance,version:1,declaration:Qg,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[o8],internalCalls:[],parent:l8,x:0,y:0},d8={type:n.GenericReference,id:"is-test-environment-variable-dcl-datatype-parent-ref-id",entityType:n.VariableDeclaration,entityId:tc},u8={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"},p8={like:!1,inferred:!1,id:"is-test-environment-variable-dcl-datatype-id",type:n.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Sn,version:1,asType:!1,isList:!1,isNullable:!1,constant:!0,parent:d8,defaultValue:{id:"is-test-environment-variable-dcl-datatype-default-value-id",name:I.Boolean,version:1,value:null,type:n.PrimitiveValue,autogeneration:{type:qe.Random,rangeStart:null,rangeEnd:null},valueAsType:null,parent:u8}},y8={type:n.GenericReference,id:"is-test-environment-variable-dcl-main-project-ref-id",entityType:n.Project,entityId:z},ev={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:p8,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:y8},h8={type:n.GenericReference,id:"is-test-environment-variable-instance-parent-ref-id",entityType:n.Project,entityId:z},f8={id:"is-test-environment-variable-instance-id",type:n.VariableInstance,version:1,declaration:ev,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[],internalCalls:[],parent:h8,x:0,y:0},tv={type:n.Project,id:z,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:[r4],entities:[nc,rc,yt,lM,Ct,Ns,tb,nb,Zr,nN,vt,KN,GE,WO,eN],functions:[PG,Sb,vc,NG,xG,qb,Ic,lc,XU,ub,CF],events:[xM],variableDeclarations:[ev,Qg,Sc,Wx,Xg,n8],variableInstances:[f8,c8],conditions:[],operations:[Qr],functionCalls:[F0,H1],loops:[px,Gc,xg,nx,b4],searches:[Ex]};var T=(r=>(r.Error="error",r.Warning="warning",r))(T||{}),D=(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))(D||{}),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||{}),N=(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))(N||{});class E{constructor(e){l(this,"id");l(this,"message");l(this,"issue");l(this,"severity");l(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 D?new dr({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:e}):null}}class dr{constructor(e){l(this,"id");l(this,"message");l(this,"issue");l(this,"severity");l(this,"code");l(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 dr({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:this.entity})}}function m8(r){const e=new Set;return r.filter(t=>e.has(t.id)?!1:(e.add(t.id),!0))}function Z(r){const e=r.entity.errors.find(i=>i.id===r.id);return e?{new:!1,error:e}:{new:!0,error:new dr(r)}}function T8(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 ua=d.union([d.string(),d.number(),d.boolean(),d.date()]),nv=d.enum([qe.CurrentDateAndTime,qe.Random,qe.Unique]),qs=d.object({type:nv,rangeStart:ua.nullable(),rangeEnd:ua.nullable()}),pa=qs.extend({type:d.literal(qe.Random),rangeStart:ua,rangeEnd:ua}),qc=qs.extend({type:d.literal(qe.Unique),rangeStart:d.null(),rangeEnd:d.null()}),rv=qs.extend({type:d.literal(qe.CurrentDateAndTime),rangeStart:d.null(),rangeEnd:d.null()}),Js=pa.extend({rangeStart:d.number().nullable(),rangeEnd:d.number().nullable()}),iv=Js.extend({rangeStart:d.number(),rangeEnd:d.null()}),av=Js.extend({rangeStart:d.null(),rangeEnd:d.number()}),sv=Js.extend({rangeStart:d.number(),rangeEnd:d.number()}),Ws=pa.extend({rangeStart:d.number().nullable(),rangeEnd:d.number().nullable()}),ov=Ws.extend({rangeStart:d.number(),rangeEnd:d.null()}),lv=Ws.extend({rangeStart:d.null(),rangeEnd:d.number()}),cv=Ws.extend({rangeStart:d.number(),rangeEnd:d.number()}),Hs=pa.extend({rangeStart:d.date().nullable(),rangeEnd:d.date().nullable()}),dv=Hs.extend({rangeStart:d.date(),rangeEnd:d.null()}),uv=Hs.extend({rangeStart:d.null(),rangeEnd:d.date()}),pv=Hs.extend({rangeStart:d.date(),rangeEnd:d.date()}),Jc=pa.extend({rangeStart:d.null(),rangeEnd:d.null()}),Wc=d.union([ov,lv,cv]),Hc=d.union([iv,av,sv]),Yc=d.union([dv,uv,pv,rv]),zc=d.union([Wc,Hc,Yc,qc,Jc]);function ya(){return d.union([d.object({type:d.literal(n.ValueDescriptor)}),d.record(d.string(),d.any())])}function yv(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.ValueDescriptor)})}function Zc(){return d.object({id:d.string(),type:d.literal(n.ValueDescriptor),name:d.string(),required:d.boolean()})}function E8(){return Zc().merge(d.object({version:d.number(),index:d.number()}))}function b8(){return Zc().merge(d.object({}))}function R8(){return d.object({dataType:Tn(),parent:xn()})}function g8(){return E8().merge(R8())}function Ys(){return d.union([d.object({type:d.literal(n.PrimitiveEntity)}),d.record(d.string(),d.any())])}function zs(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.PrimitiveEntity)})}function Zs(){return d.object({id:d.string(),type:d.literal(n.PrimitiveEntity),name:d.string(),description:d.string().nullable(),static:d.boolean(),abstract:d.boolean()})}function v8(){return Zs().merge(d.object({version:d.number()}))}function I8(){return Zs().merge(d.object({}))}function D8(){return d.object({properties:d.array(ur()),methods:d.array(Bt()),abstractMethods:d.array(tn()),extends:d.array(d.union([Ys(),ri()]))})}function P8(){return v8().merge(D8())}function ur(){return d.union([d.object({type:d.literal(n.Property)}),d.record(d.string(),d.any())])}function hv(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.Property)})}function Kc(){return d.object({id:d.string(),type:d.literal(n.Property),name:d.string(),description:d.string().nullable(),private:d.boolean(),static:d.boolean(),required:d.boolean(),abstract:d.boolean()})}function A8(){return Kc().merge(d.object({version:d.number(),index:d.number()}))}function O8(){return Kc().merge(d.object({}))}function S8(){return d.object({dataType:Tn(),implements:ur().nullable(),parent:d.union([fr(),zs(),Ks()])})}function C8(){return A8().merge(S8())}function B8(){return d.enum([L.CRON_JOB,L.EXECUTION,L.HTTP_ENDPOINT,L.PERSISTED_ENTITY,L.RELATIONAL_DATABASE])}function ri(){return d.union([d.object({type:d.literal(n.BuiltInBaseEntity)}),d.record(d.string(),d.any())])}function Ks(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.BuiltInBaseEntity)})}function Xc(){return d.object({id:d.string(),version:d.number(),type:d.literal(n.BuiltInBaseEntity),name:B8(),description:d.string().nullable(),abstract:d.boolean(),static:d.boolean()})}function w8(){return Xc()}function _8(){return Xc().merge(d.object({}))}function N8(){return d.object({properties:d.array(ur()),methods:d.array(Bt()),abstractMethods:d.array(tn()),extends:d.array(d.union([ri(),Ys()]))})}function M8(){return w8().merge(N8())}function fv(){return d.enum([M.Dynamic,M.Fixed,M.None])}function tn(){return d.union([d.object({type:d.literal(n.ActionDescriptor)}),d.record(d.string(),d.any())])}function xn(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.ActionDescriptor)})}function Xs(){return d.object({id:d.string(),type:d.literal(n.ActionDescriptor),name:d.string(),description:d.string().nullable(),argumentsType:fv(),returnsType:fv()})}function V8(){return Xs().merge(d.object({version:d.number()}))}function L8(){return Xs().merge(d.object({}))}function $8(){return d.object({fixedArguments:d.array(ya()),fixedReturns:d.array(ya()),dynamicArgumentTypes:Tn().nullable(),dynamicReturnTypes:Tn().nullable(),parent:d.union([It(),fr(),Ks(),zs()]).nullable()})}function mv(){return V8().merge($8())}function ii(){return d.union([d.object({type:d.literal(n.Loop)}),d.record(d.string(),d.any())])}function nn(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.Loop)})}function Tv(){return d.object({id:d.string(),type:d.literal(n.Loop)})}function G8(){return Tv().merge(d.object({version:d.number(),x:d.number(),y:d.number()}))}function F8(){return Tv().merge(d.object({declaration:d.union([d.string(),Bt()])}))}function U8(){return d.object({calledBySuccess:d.array(ye()),calledByError:d.array(ye()),calledByEntry:d.array(We()),declaration:tn(),inputs:d.array(Jt()),outputs:d.array(mt()),outputsDeclarations:d.array(ya()),successCalls:d.array(He()),errorCalls:d.array(He()),error:mt(),body:Bt(),parent:d.union([bn(),It()]),breakStatements:d.array(li()),continueStatements:d.array(ai())})}function x8(){return G8().merge(U8())}function ai(){return d.union([d.object({type:d.literal(n.ContinueStatement)}),d.record(d.string(),d.any())])}function si(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.ContinueStatement)})}function Qc(){return d.object({id:d.string(),type:d.literal(n.ContinueStatement)})}function j8(){return Qc().merge(d.object({version:d.number(),x:d.number(),y:d.number()}))}function k8(){return Qc().merge(d.object({}))}function q8(){return d.object({calledBySuccess:d.array(ye()),calledByError:d.array(ye()),calledByEntry:d.array(We()),outputs:d.array(fn()),throws:d.optional(fn()),parent:nn()})}function J8(){return j8().merge(q8())}function pr(){return d.union([d.object({type:d.literal(n.ReturnStatement)}),d.record(d.string(),d.any())])}function oi(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.ReturnStatement)})}function ed(){return d.object({id:d.string(),type:d.literal(n.ReturnStatement)})}function W8(){return ed().merge(d.object({version:d.number(),x:d.number(),y:d.number()}))}function H8(){return ed().merge(d.object({}))}function Y8(){return d.object({calledBySuccess:d.array(ye()),calledByError:d.array(ye()),calledByEntry:d.array(We()),outputs:d.array(fn()),throws:d.optional(fn()),parent:bn()})}function z8(){return W8().merge(Y8())}function fn(){return d.union([d.object({type:d.literal(n.ReturnDeclaration)}),d.record(d.string(),d.any())])}function Ev(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.ReturnDeclaration)})}function td(){return d.object({id:d.string(),type:d.literal(n.ReturnDeclaration),name:d.string(),description:d.string().nullable(),isError:d.boolean()})}function Z8(){return td().merge(d.object({version:d.number(),index:d.number()}))}function K8(){return td().merge(d.object({}))}function X8(){return d.object({dataType:Tn().nullable(),readsValue:ba().nullable(),parent:d.union([oi(),xn(),mn(),si()])})}function Q8(){return Z8().merge(X8())}function li(){return d.union([d.object({type:d.literal(n.BreakStatement)}),d.record(d.string(),d.any())])}function mn(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.BreakStatement)})}function nd(){return d.object({id:d.string(),type:d.literal(n.BreakStatement)})}function ej(){return nd().merge(d.object({version:d.number(),x:d.number(),y:d.number()}))}function tj(){return nd().merge(d.object({}))}function nj(){return d.object({calledBySuccess:d.array(ye()),calledByError:d.array(ye()),calledByEntry:d.array(We()),outputs:d.array(fn()),throws:d.optional(fn()),parent:nn()})}function rj(){return ej().merge(nj())}function mt(){return d.union([d.object({type:d.literal(n.OutputMap)}),d.record(d.string(),d.any())])}function rd(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.OutputMap)})}function id(){return d.object({id:d.string(),type:d.literal(n.OutputMap)})}function ij(){return id().merge(d.object({version:d.number(),index:d.number()}))}function aj(){return id().merge(d.object({}))}function sj(){return d.object({writesValues:d.array(En()),declaration:d.union([fn(),ur()]),parent:d.union([ye(),nn(),mn()])})}function oj(){return ij().merge(sj())}function ci(){return d.union([d.object({type:d.literal(n.FunctionCall)}),d.record(d.string(),d.any())])}function ha(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.FunctionCall)})}function ad(){return d.object({id:d.string(),type:d.literal(n.FunctionCall)})}function lj(){return ad().merge(d.object({version:d.number(),x:d.number(),y:d.number()}))}function cj(){return ad().merge(d.object({}))}function dj(){return d.object({successCalls:d.array(He()),errorCalls:d.array(He()),calledBySuccess:d.array(ye()),calledByError:d.array(ye()),calledByEntry:d.array(We()),writesValues:d.array(En()),declaration:Bt(),inputs:d.array(Jt()),outputs:d.array(mt()),error:d.optional(mt()),parent:d.union([bn(),It()])})}function uj(){return lj().merge(dj())}function pj(){return d.enum([Me.Equal,Me.NotEqual,Me.MoreThan,Me.MoreThanOrEqual,Me.LessThan,Me.LessThanOrEqual,Me.And,Me.Or,Mt.Empty,Mt.NotEmpty])}function fa(){return d.union([d.object({type:d.literal(n.Condition)}),d.record(d.string(),d.any())])}function Qs(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.Condition)})}function sd(){return d.object({id:d.string(),type:d.literal(n.Condition)})}function yj(){return sd().merge(d.object({version:d.number(),x:d.number(),y:d.number()}))}function hj(){return sd().merge(d.object({}))}function fj(){return d.object({successCalls:d.array(He()),errorCalls:d.array(He()),calledBySuccess:d.array(ye()),calledByError:d.array(ye()),calledByEntry:d.array(We()),leftValue:Jt(),rightValue:Jt().nullable(),operator:pj(),parent:d.union([bn(),It()])})}function mj(){return yj().merge(fj())}function ma(){return d.union([d.object({type:d.literal(n.Search)}),d.record(d.string(),d.any())])}function Ta(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.Search)})}function od(){return d.object({id:d.string(),type:d.literal(n.Search),name:d.string(),query:d.any(),description:d.string().nullable()})}function Tj(){return od().merge(d.object({version:d.number(),x:d.number(),y:d.number()}))}function Ej(){return od().merge(d.object({}))}function bj(){return d.object({successCalls:d.array(He()),errorCalls:d.array(He()),calledBySuccess:d.array(ye()),calledByError:d.array(ye()),calledByEntry:d.array(We()),inputsDeclarations:d.array(hr()),inputs:d.array(Jt()),outputsDeclarations:d.array(ya()),outputs:d.array(mt()),parent:d.union([bn(),It()]),error:mt().nullable()})}function Rj(){return Tj().merge(bj())}function Ea(){return d.union([d.object({type:d.literal(n.InternalCall)}),d.record(d.string(),d.any())])}function ld(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.InternalCall)})}function cd(){return d.object({id:d.string(),type:d.literal(n.InternalCall),index:d.number()})}function gj(){return cd().merge(d.object({version:d.number(),index:d.number()}))}function vj(){return cd().merge(d.object({declaration:d.union([d.string(),Bt()])}))}function Ij(){return d.object({successCalls:d.array(He()),errorCalls:d.array(He()),calledBySuccess:d.array(ye()),calledByError:d.array(ye()),calledByEntry:d.array(We()),writesValues:d.array(En()),declaration:Bt(),inputs:d.array(Jt()),outputs:d.array(mt()),parent:jn(),error:d.optional(mt())})}function Dj(){return gj().merge(Ij())}function Jt(){return d.union([d.object({type:d.literal(n.InputMap)}),d.record(d.string(),d.any())])}function eo(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.InputMap)})}function dd(){return d.object({id:d.string(),type:d.literal(n.InputMap),name:d.string().nullable().optional(),description:d.string().nullable().optional()})}function Pj(){return dd().merge(d.object({version:d.number(),index:d.number()}))}function Aj(){return dd().merge(d.object({}))}function Oj(){return d.object({defaultValue:ud().nullable(),declaration:d.union([hr(),ur()]).nullable(),readsValue:ba().nullable(),parent:d.union([ye(),eo(),nn(),mn()])})}function Sj(){return Pj().merge(Oj())}function di(){return d.union([d.object({type:d.literal(n.Operation)}),d.record(d.string(),d.any())])}function ui(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.Operation)})}function to(){return d.object({id:d.string(),type:d.literal(n.Operation)})}function Cj(){return to().merge(d.object({version:d.number(),x:d.number(),y:d.number()}))}function Bj(){return to().merge(d.object({}))}function wj(){return to().merge(d.object({successCalls:d.array(He()),errorCalls:d.array(He()),calledBySuccess:d.array(ye()),calledByError:d.array(ye()),calledByEntry:d.array(We()),writesValues:d.array(En()),declaration:tn(),inputs:d.array(Jt()),outputs:d.array(mt()),error:d.array(mt()),parent:d.union([bn(),It()])}))}function _j(){return Cj().merge(wj())}function no(){return d.union([d.string(),d.number(),d.boolean(),d.null(),d.date()])}function bv(){return d.record(d.string(),no())}function Nj(){return d.array(d.union([no(),bv()]))}function Rv(){return d.union([no(),bv(),Nj()])}function gv(){return d.union([no(),Rv()])}function vv(){return d.enum([I.String,I.Number,I.Boolean,I.Null,I.Date,I.JSON,I.Enum,I.File,I.UUID,I.EntityTemplate,I.ActionDescriptor])}function Mj(){return d.union([fr(),ui(),Ra()])}function Vj(){return d.object({id:d.string(),name:vv(),type:d.literal(n.PrimitiveValue),value:gv(),autogeneration:zc.nullable()})}function Lj(){return Vj().merge(d.object({}))}function Wt(){return d.object({id:d.string(),version:d.number(),name:vv(),type:d.literal(n.PrimitiveValue),value:gv(),valueAsType:Mj().nullable(),autogeneration:zc.nullable(),parent:d.union([pd(),eo()])})}function $j(){return Wt().extend({name:d.literal(I.String),value:d.string(),autogeneration:Wc.nullable()})}function Gj(){return Wt().extend({name:d.literal(I.Number),value:d.number(),autogeneration:Hc.nullable()})}function Fj(){return Wt().extend({name:d.literal(I.Boolean),value:d.boolean(),autogeneration:Jc.nullable()})}function Uj(){return Wt().extend({name:d.literal(I.Null),value:d.null(),autogeneration:d.null()})}function xj(){return Wt().extend({name:d.literal(I.Date),value:d.date(),autogeneration:Yc.nullable()})}function jj(){return Wt().extend({name:d.literal(I.JSON),value:Rv(),autogeneration:d.null()})}function kj(){return Wt().extend({name:d.literal(I.Enum),value:d.string(),autogeneration:d.null()})}function qj(){return Wt().extend({name:d.literal(I.File),value:d.string(),autogeneration:d.null()})}function Jj(){return Wt().extend({name:d.literal(I.UUID),value:d.string(),autogeneration:qc.nullable()})}function Wj(){return Wt().extend({name:d.literal(I.EntityTemplate),value:fr(),autogeneration:d.null()})}function Hj(){return Wt().extend({name:d.literal(I.ActionDescriptor),value:Ra(),autogeneration:d.null()})}function ud(){return d.union([$j(),Gj(),Fj(),Uj(),xj(),jj(),kj(),qj(),Jj(),Wj(),Hj()])}function Tn(){return d.union([d.object({type:d.literal(n.DataType)}),d.record(d.string(),d.any())])}function pd(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.DataType)})}function yd(){return d.object({id:d.string(),type:d.literal(n.DataType),isNullable:d.boolean(),isList:d.boolean(),constant:d.boolean(),asType:d.boolean(),options:d.array(d.string()).optional()})}function Yj(){return yd().merge(d.object({version:d.number()}))}function zj(){return yd().merge(d.object({}))}function Zj(){return d.object({defaultValue:ud().nullable(),entity:d.union([pi(),ri(),Ys(),tn()]).nullable(),parent:d.union([hv(),Pv(),xn(),yv()])})}function Kj(){return Yj().merge(Zj())}function hd(){return d.union([d.object({type:d.literal(n.VariableDeclaration)}),d.record(d.string(),d.any())])}function Xj(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.VariableDeclaration)})}function fd(){return d.object({id:d.string(),type:d.literal(n.VariableDeclaration),name:d.string(),description:d.string().nullable()})}function Qj(){return fd().merge(d.object({version:d.number(),x:d.number(),y:d.number()}))}function e6(){return fd().merge(d.object({}))}function t6(){return d.object({dataType:Tn().nullable(),readsValue:ba().nullable(),writesValues:d.array(En()),inputs:d.array(Jt()),outputs:d.array(mt()),successCalls:d.array(He()),errorCalls:d.array(He()),internalCalls:d.array(Ea()),calledBySuccess:d.array(ye()),calledByError:d.array(ye()),calledByEntry:d.array(We()),parent:d.union([bn(),It()])})}function n6(){return Qj().merge(t6())}function Iv(){return d.union([d.object({type:d.literal(n.VariableInstance)}),d.record(d.string(),d.any())])}function r6(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.VariableInstance)})}function md(){return d.object({id:d.string(),type:d.literal(n.VariableInstance)})}function i6(){return md().merge(d.object({version:d.number(),x:d.number(),y:d.number()}))}function a6(){return md().merge(d.object({}))}function s6(){return d.object({declaration:hd(),dataType:Tn().nullable(),readsValue:ba().nullable(),writesValues:d.array(En()),inputs:d.array(Jt()),outputs:d.array(mt()),successCalls:d.array(He()),errorCalls:d.array(He()),internalCalls:d.array(Ea()),calledBySuccess:d.array(ye()),calledByError:d.array(ye()),calledByEntry:d.array(We()),parent:d.union([bn(),It()])})}function o6(){return i6().merge(s6())}function Td(){return d.union([d.object({type:d.literal(n.InstalledProject)}),d.record(d.string(),d.any())])}function ro(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.InstalledProject)})}function l6(){return d.object({id:d.string(),type:d.literal(n.InstalledProject)})}function c6(){return d.object({version:d.number(),x:d.number(),y:d.number()})}function d6(){return d.object({})}function u6(){return d.object({implements:It(),description:d.string().nullable(),functions:d.array(Bt()),events:d.array(Ed()),parent:It()})}function p6(){return c6().merge(u6())}function Ed(){return d.union([d.object({type:d.literal(n.GlobalEvent)}),d.record(d.string(),d.any())])}function y6(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.GlobalEvent)})}function io(){return d.object({id:d.string(),type:d.literal(n.GlobalEvent),name:d.string(),collapsed:d.boolean()})}function h6(){return io().merge(d.object({version:d.number(),x:d.number(),y:d.number()}))}function f6(){return io().merge(d.object({}))}function m6(){return io().merge(d.object({returnStatements:d.array(pr()),implements:d.array(mv()),inputs:d.array(hr()),calls:d.array(He()),parent:d.union([It(),ro()])}))}function T6(){return h6().merge(m6())}function yr(){return d.union([hd(),Iv()])}function jn(){return d.union([Xj(),r6()])}function En(){return d.union([yr(),Jt(),fn()])}function Dv(){return d.union([jn(),eo(),Ev()])}function ba(){return d.union([yr(),hr(),mt(),di(),Ea(),ci()])}function E6(){return d.union([jn(),bd(),rd(),ui(),ld(),ha()])}function b6(){return d.union([hr(),mt(),En()])}function Pv(){return d.union([bd(),rd(),Dv()])}function ao(){return Ed()}function so(){return y6()}function oo(){return d.union([di(),ci(),fa(),ma(),yr(),Ea(),ii()])}function ye(){return d.union([ui(),ha(),Qs(),Ta(),jn(),ld(),nn()])}function lo(){return d.union([di(),ci(),fa(),ma(),yr(),ii()])}function co(){return d.union([ui(),ha(),Qs(),Ta(),jn(),nn()])}function Av(){return d.union([oo(),pr(),li(),ai()])}function He(){return d.union([ye(),oi(),mn(),si()])}function Ov(){return d.union([lo(),pr(),li(),ai()])}function Sv(){return d.union([co(),oi(),mn(),si()])}function kn(){return d.union([Bt(),ao()])}function We(){return d.union([Ra(),so()])}function R6(){return d.union([oo(),kn()])}function g6(){return d.union([ye(),We()])}function v6(){return d.union([lo(),kn()])}function I6(){return d.union([co(),We()])}function D6(){return d.union([Av(),kn()])}function P6(){return d.union([He(),We()])}function A6(){return d.union([Ov(),kn()])}function O6(){return d.union([Sv(),We()])}function S6(){return d.union([kn(),ii()])}function bn(){return d.union([We(),nn()])}function C6(){return d.union([oo(),kn()])}function B6(){return d.union([ye(),We()])}function w6(){return d.union([lo(),kn()])}function _6(){return d.union([co(),We()])}function N6(){return d.union([pr(),li(),ai()])}function M6(){return d.union([oi(),mn(),si()])}function V6(){return d.union([ri(),H6(),Td(),pi(),Bt(),ao(),yr(),Jt(),mt(),fa(),di(),ci(),fn(),hr(),Ys(),Tn(),ur(),tn(),pr(),ai(),li(),ii(),ma(),tn(),tn(),ya(),Ea()])}function L6(){return d.union([Ks(),It(),ro(),fr(),Ra(),so(),jn(),eo(),rd(),Qs(),ui(),ha(),Ev(),bd(),zs(),pd(),hv(),xn(),oi(),si(),mn(),nn(),Ta(),xn(),xn(),yv(),ld()])}function $6(){return d.union([Td(),pi(),Bt(),ao(),yr(),fa(),di(),ci(),pr(),ai(),li(),ii(),ma()])}function G6(){return d.union([ro(),fr(),Ra(),so(),jn(),Qs(),ui(),ha(),oi(),si(),mn(),nn(),Ta()])}function hr(){return d.union([d.object({type:d.literal(n.ArgumentDeclaration)}),d.record(d.string(),d.any())])}function bd(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.ArgumentDeclaration)})}function Rd(){return d.object({id:d.string(),type:d.literal(n.ArgumentDeclaration)})}function F6(){return Rd().merge(d.object({version:d.number(),x:d.number(),y:d.number()}))}function U6(){return Rd().merge(d.object({}))}function x6(){return d.object({dataType:Tn().nullable(),writesValues:d.array(En()),parent:d.union([We(),xn(),xn(),Ta(),mn()])})}function j6(){return F6().merge(x6())}function Bt(){return d.union([d.object({type:d.literal(n.FunctionDeclaration)}),d.record(d.string(),d.any())])}function Ra(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.FunctionDeclaration)})}function gd(){return d.object({id:d.string(),type:d.literal(n.FunctionDeclaration),name:d.string(),description:d.string().nullable()})}function k6(){return gd().merge(d.object({version:d.number(),x:d.number(),y:d.number(),index:d.number().nullable()}))}function q6(){return gd()}function J6(){return d.object({inputs:d.array(hr()),implements:tn().nullable(),returnStatements:d.array(pr()),parent:d.union([It(),ro(),fr(),nn(),Ks(),zs()])})}function W6(){return k6().merge(J6())}function H6(){return d.union([d.object({type:d.literal(n.Project)}),d.record(d.string(),d.any())])}function It(){return d.object({entityType:d.literal(n.Project),entityId:d.string(),id:d.string(),type:d.literal(n.GenericReference)})}function vd(){return d.object({id:d.string(),type:d.literal(n.Project),name:d.string(),description:d.string().nullable()})}function Y6(){return vd().merge(d.object({version:d.number()}))}function z6(){return vd()}function Z6(){return d.object({entities:d.array(pi()),functions:d.array(Bt()),events:d.array(Ed()),projects:d.array(Td()),variableDeclarations:d.array(hd()),variableInstances:d.array(Iv()),conditions:d.array(fa()),operations:d.array(di()),functionCalls:d.array(ci()),loops:d.array(ii()),searches:d.array(ma())})}function K6(){return Y6().merge(Z6())}function pi(){return d.union([d.object({type:d.literal(n.CustomEntity)}),d.record(d.string(),d.any())])}function fr(){return d.object({id:d.string(),type:d.literal(n.GenericReference),entityId:d.string(),entityType:d.literal(n.CustomEntity)})}function Id(){return d.object({id:d.string(),type:d.literal(n.CustomEntity),name:d.string(),description:d.string().nullable(),static:d.boolean(),abstract:d.boolean()})}function X6(){return Id().merge(d.object({version:d.number(),x:d.number(),y:d.number()}))}function Q6(){return Id().merge(d.object({}))}function e9(){return d.union([It(),pd()])}function t9(){return d.object({properties:d.array(ur()),methods:d.array(Bt()),abstractMethods:d.array(tn()),extends:d.array(d.union([pi(),ri()])),implements:d.array(d.union([pi(),ri()])),parent:e9()})}function n9(){return X6().merge(t9())}function r9(r){const e=n9(),t=r.toJSON();e.safeParse(t).success;const a=r.implements.flatMap(f=>s9(r,f)),s=r.extends.flatMap(f=>o9(r,f)),o=c9(r),c=l9(r);r.methods.flatMap(f=>f.validate());const p=[...a,...s,...o,...c];return ae(r.errors,p)}function i9(r,e){const t=e.properties.filter(s=>s.abstract),i=[];let a=[...r.properties];return t.forEach(s=>{const o=a.find(c=>{var p;return((p=c.implements)==null?void 0:p.id)===s.id});o?a=a.filter(c=>c.id!==o.id):i.push(s)}),i}function a9(r,e){const t=e.abstractMethods,i=[];let a=[...r.methods];return t.forEach(s=>{const o=a.find(c=>{var p;return((p=c.implements)==null?void 0:p.id)===s.id});o?a=a.filter(c=>c.id!==o.id):i.push(s)}),i}function s9(r,e){const t=[];if(!e.abstract){const f=Z({id:r.id+"--"+N.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:N.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=Z({id:r.id+"--"+N.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:N.MissingPropertyImplementation,entity:r});t.push(m.error)});const o=[];let c=[...r.methods];e.abstractMethods.forEach(f=>{const m=c.find(b=>{var v;return((v=b.implements)==null?void 0:v.id)===f.id});m?c=c.filter(b=>b.id!==m.id):o.push(f)}),o.length&&o.forEach(f=>{const m=Z({id:r.id+"--"+N.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:N.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=Z({id:r.id+"--"+D.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:D.PropertyOverwrite,entity:r});t.push(m.error)});const y=[];return e.methods.forEach(f=>{const m=c.find(b=>b.name===f.name);m&&y.push([m,f])}),y.length&&y.forEach(([f])=>{const m=Z({id:r.id+"--"+D.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:D.MethodOverwrite,entity:r});t.push(m.error)}),t}function o9(r,e){const t=[],i=[];if(e.abstract){const s=Z({id:r.id+"--"+N.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:N.ExtendingAbstractEntity,entity:r});return t.push(s.error),t}r.properties.forEach(s=>{var c;const o=e.properties.find(p=>p.name===s.name);((c=s.implements)==null?void 0:c.id)!==(o==null?void 0:o.id)&&o&&i.push(s)}),i.length&&i.forEach(s=>{const o=Z({id:r.id+"--"+D.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:D.PropertyOverwrite,entity:r});t.push(o.error)});const a=[];return r.methods.forEach(s=>{var c;const o=e.methods.find(p=>p.name===s.name);((c=s.implements)==null?void 0:c.id)!==(o==null?void 0:o.id)&&o&&a.push(s)}),a.length&&a.forEach(s=>{const o=Z({id:r.id+"--"+D.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:D.MethodOverwrite,entity:r});t.push(o.error)}),t}function l9(r){const e=[];if(!r.properties.length){const t=Z({id:r.id+"--"+N.NoProperties,message:"No properties implemented",issue:null,severity:T.Warning,code:N.NoProperties,entity:r});e.push(t.error)}return r.properties.forEach(t=>{t.validate()}),e}function c9(r){const e=[];if(r.abstract){if(r.methods.length){const t=Z({id:r.id+"--"+N.AbstractEntityWithNonAbstractMethods,message:`Entity "${r.name}" with id "${r.id}" is marked as abstract but has non-abstract methods`,issue:null,severity:T.Error,code:N.AbstractEntityWithNonAbstractMethods,entity:r});e.push(t.error)}if(r.properties.some(t=>!t.abstract)){const t=Z({id:r.id+"--"+N.AbstractEntityWithNonAbstractProperties,message:`Entity "${r.name}" with id "${r.id}" is marked as abstract but has non-abstract properties`,issue:null,severity:T.Error,code:N.AbstractEntityWithNonAbstractProperties,entity:r});e.push(t.error),r.properties.forEach(i=>{if(!i.abstract){const a=Z({id:r.id+"--"+N.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:N.StaticEntityWithNonStaticProperties,entity:r});e.push(a.error)}})}}else{if(r.abstractMethods.length){const t=Z({id:r.id+"--"+N.AbstractPropertyInNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is not marked as abstract but has abstract methods`,issue:null,severity:T.Error,code:N.AbstractPropertyInNonAbstractEntity,entity:r});e.push(t.error)}if(r.properties.some(t=>t.abstract)){const t=Z({id:r.id+"--"+N.AbstractMethodInNonAbstractEntity,message:`Entity "${r.name}" with id "${r.id}" is not marked as abstract but has abstract properties`,issue:null,severity:T.Error,code:N.AbstractMethodInNonAbstractEntity,entity:r});e.push(t.error),r.properties.forEach(i=>{if(i.abstract){const a=Z({id:r.id+"--"+N.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:N.AbstractMethodInNonAbstractEntity,entity:r});e.push(a.error)}})}}if(r.static&&r.properties.some(t=>!t.static)){const t=Z({id:r.id+"--"+N.StaticEntityWithNonStaticProperties,message:`Entity "${r.name}" with id "${r.id}" is marked as static but has non-static properties`,issue:null,severity:T.Error,code:N.StaticEntityWithNonStaticProperties,entity:r});e.push(t.error),r.properties.forEach(i=>{if(!i.static){const a=Z({id:r.id+"--"+N.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:N.NonStaticPropertyInStaticEntity,entity:r});e.push(a.error)}})}return e}function d9(r){return r instanceof Error&&r.name==="ZodError"&&"issues"in r&&Array.isArray(r.issues)}var u9=class extends Error{constructor(e,t){super(e,t);l(this,"name");l(this,"details");this.name="ZodValidationError",this.details=p9(t)}toString(){return this.message}};function p9(r){if(r){const e=r.cause;if(d9(e))return e.issues}return[]}var y9="; ",Cv="Validation error",h9=": ",f9=", or ";function m9(r,e,t){return e!==null?r.length>0?[e,r].join(t):e:r.length>0?r:Cv}var T9=/[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*/u;function E9(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+'["'+b9(t)+'"]';if(!T9.test(t))return e+'["'+t+'"]';const i=e.length===0?"":".";return e+i+t},"")}function b9(r){return r.replace(/"/g,'\\"')}function R9(r){return r.length!==0}function uo(r){const{issue:e,issueSeparator:t,unionSeparator:i,includePath:a}=r;if(e.code==="invalid_union")return e.unionErrors.reduce((s,o)=>{const c=o.issues.map(p=>uo({issue:p,issueSeparator:t,unionSeparator:i,includePath:a})).join(t);return s.includes(c)||s.push(c),s},[]).join(i);if(e.code==="invalid_arguments")return[e.message,...e.argumentsError.issues.map(s=>uo({issue:s,issueSeparator:t,unionSeparator:i,includePath:a}))].join(t);if(e.code==="invalid_return_type")return[e.message,...e.returnTypeError.issues.map(s=>uo({issue:s,issueSeparator:t,unionSeparator:i,includePath:a}))].join(t);if(a&&R9(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 "${E9(e.path)}"`}return e.message}function g9(r,e={}){const{issueSeparator:t=y9,unionSeparator:i=f9,prefixSeparator:a=h9,prefix:s=Cv,includePath:o=!0}=e,c=uo({issue:r,issueSeparator:t,unionSeparator:i,includePath:o}),p=m9(c,s,a);return new u9(p,{cause:new gt([r])})}var Bv="1.13.7",wv=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},po=Array.prototype,Dd=Object.prototype,_v=typeof Symbol<"u"?Symbol.prototype:null,v9=po.push,ga=po.slice,va=Dd.toString,I9=Dd.hasOwnProperty,Nv=typeof ArrayBuffer<"u",D9=typeof DataView<"u",P9=Array.isArray,Mv=Object.keys,Vv=Object.create,Lv=Nv&&ArrayBuffer.isView,A9=isNaN,O9=isFinite,$v=!{toString:null}.propertyIsEnumerable("toString"),Gv=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],S9=Math.pow(2,53)-1;function Dt(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 qn(r){var e=typeof r;return e==="function"||e==="object"&&!!r}function C9(r){return r===null}function Fv(r){return r===void 0}function Uv(r){return r===!0||r===!1||va.call(r)==="[object Boolean]"}function B9(r){return!!(r&&r.nodeType===1)}function ot(r){var e="[object "+r+"]";return function(t){return va.call(t)===e}}const Pd=ot("String"),xv=ot("Number"),w9=ot("Date"),_9=ot("RegExp"),N9=ot("Error"),jv=ot("Symbol"),kv=ot("ArrayBuffer");var qv=ot("Function"),M9=wv.document&&wv.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof M9!="function"&&(qv=function(r){return typeof r=="function"||!1});const Tt=qv,Jv=ot("Object");var Wv=D9&&(!/\[native code\]/.test(String(DataView))||Jv(new DataView(new ArrayBuffer(8)))),Ad=typeof Map<"u"&&Jv(new Map),V9=ot("DataView");function L9(r){return r!=null&&Tt(r.getInt8)&&kv(r.buffer)}const yo=Wv?L9:V9,mr=P9||ot("Array");function Jn(r,e){return r!=null&&I9.call(r,e)}var Od=ot("Arguments");(function(){Od(arguments)||(Od=function(r){return Jn(r,"callee")})})();const Sd=Od;function $9(r){return!jv(r)&&O9(r)&&!isNaN(parseFloat(r))}function Hv(r){return xv(r)&&A9(r)}function Yv(r){return function(){return r}}function zv(r){return function(e){var t=r(e);return typeof t=="number"&&t>=0&&t<=S9}}function Zv(r){return function(e){return e==null?void 0:e[r]}}const ho=Zv("byteLength"),G9=zv(ho);var F9=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function U9(r){return Lv?Lv(r)&&!yo(r):G9(r)&&F9.test(va.call(r))}const Kv=Nv?U9:Yv(!1),Pt=Zv("length");function x9(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 Xv(r,e){e=x9(e);var t=Gv.length,i=r.constructor,a=Tt(i)&&i.prototype||Dd,s="constructor";for(Jn(r,s)&&!e.contains(s)&&e.push(s);t--;)s=Gv[t],s in r&&r[s]!==a[s]&&!e.contains(s)&&e.push(s)}function Ze(r){if(!qn(r))return[];if(Mv)return Mv(r);var e=[];for(var t in r)Jn(r,t)&&e.push(t);return $v&&Xv(r,e),e}function Ia(r){if(r==null)return!0;var e=Pt(r);return typeof e=="number"&&(mr(r)||Pd(r)||Sd(r))?e===0:Pt(Ze(r))===0}function Qv(r,e){var t=Ze(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=Bv,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 eI(r){return new Uint8Array(r.buffer||r,r.byteOffset||0,ho(r))}var tI="[object DataView]";function Cd(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:nI(r,e,t,i)}function nI(r,e,t,i){r instanceof se&&(r=r._wrapped),e instanceof se&&(e=e._wrapped);var a=va.call(r);if(a!==va.call(e))return!1;if(Wv&&a=="[object Object]"&&yo(r)){if(!yo(e))return!1;a=tI}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 _v.valueOf.call(r)===_v.valueOf.call(e);case"[object ArrayBuffer]":case tI:return nI(eI(r),eI(e),t,i)}var s=a==="[object Array]";if(!s&&Kv(r)){var o=ho(r);if(o!==ho(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 c=r.constructor,p=e.constructor;if(c!==p&&!(Tt(c)&&c instanceof c&&Tt(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(!Cd(r[y],e[y],t,i))return!1}else{var f=Ze(r),m;if(y=f.length,Ze(e).length!==y)return!1;for(;y--;)if(m=f[y],!(Jn(e,m)&&Cd(r[m],e[m],t,i)))return!1}return t.pop(),i.pop(),!0}function j9(r,e){return Cd(r,e)}function Da(r){if(!qn(r))return[];var e=[];for(var t in r)e.push(t);return $v&&Xv(r,e),e}function Bd(r){var e=Pt(r);return function(t){if(t==null)return!1;var i=Da(t);if(Pt(i))return!1;for(var a=0;a<e;a++)if(!Tt(t[r[a]]))return!1;return r!==aI||!Tt(t[wd])}}var wd="forEach",rI="has",_d=["clear","delete"],iI=["get",rI,"set"],k9=_d.concat(wd,iI),aI=_d.concat(iI),q9=["add"].concat(_d,wd,rI);const J9=Ad?Bd(k9):ot("Map"),W9=Ad?Bd(aI):ot("WeakMap"),H9=Ad?Bd(q9):ot("Set"),Y9=ot("WeakSet");function yi(r){for(var e=Ze(r),t=e.length,i=Array(t),a=0;a<t;a++)i[a]=r[e[a]];return i}function z9(r){for(var e=Ze(r),t=e.length,i=Array(t),a=0;a<t;a++)i[a]=[e[a],r[e[a]]];return i}function sI(r){for(var e={},t=Ze(r),i=0,a=t.length;i<a;i++)e[r[t[i]]]=t[i];return e}function Nd(r){var e=[];for(var t in r)Tt(r[t])&&e.push(t);return e.sort()}function Md(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),c=o.length,p=0;p<c;p++){var y=o[p];(!e||t[y]===void 0)&&(t[y]=s[y])}return t}}const oI=Md(Da),fo=Md(Ze),lI=Md(Da,!0);function Z9(){return function(){}}function cI(r){if(!qn(r))return{};if(Vv)return Vv(r);var e=Z9();e.prototype=r;var t=new e;return e.prototype=null,t}function K9(r,e){var t=cI(r);return e&&fo(t,e),t}function X9(r){return qn(r)?mr(r)?r.slice():oI({},r):r}function Q9(r,e){return e(r),r}function dI(r){return mr(r)?r:[r]}se.toPath=dI;function Pa(r){return se.toPath(r)}function Vd(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 uI(r,e,t){var i=Vd(r,Pa(e));return Fv(i)?t:i}function e3(r,e){e=Pa(e);for(var t=e.length,i=0;i<t;i++){var a=e[i];if(!Jn(r,a))return!1;r=r[a]}return!!t}function Ld(r){return r}function Aa(r){return r=fo({},r),function(e){return Qv(e,r)}}function $d(r){return r=Pa(r),function(e){return Vd(e,r)}}function Oa(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 pI(r,e,t){return r==null?Ld:Tt(r)?Oa(r,e,t):qn(r)&&!mr(r)?Aa(r):$d(r)}function Gd(r,e){return pI(r,e,1/0)}se.iteratee=Gd;function At(r,e,t){return se.iteratee!==Gd?se.iteratee(r,e):pI(r,e,t)}function t3(r,e,t){e=At(e,t);for(var i=Ze(r),a=i.length,s={},o=0;o<a;o++){var c=i[o];s[c]=e(r[c],c,r)}return s}function yI(){}function n3(r){return r==null?yI:function(e){return uI(r,e)}}function r3(r,e,t){var i=Array(Math.max(0,r));e=Oa(e,t,1);for(var a=0;a<r;a++)i[a]=e(a);return i}function Fd(r,e){return e==null&&(e=r,r=0),r+Math.floor(Math.random()*(e-r+1))}const Sa=Date.now||function(){return new Date().getTime()};function hI(r){var e=function(s){return r[s]},t="(?:"+Ze(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 fI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},i3=hI(fI),a3=sI(fI),s3=hI(a3),o3=se.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var Ud=/(.)^/,l3={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},c3=/\\|'|\r|\n|\u2028|\u2029/g;function d3(r){return"\\"+l3[r]}var u3=/^\s*(\w|\$)+\s*$/;function p3(r,e,t){!e&&t&&(e=t),e=lI({},e,se.templateSettings);var i=RegExp([(e.escape||Ud).source,(e.interpolate||Ud).source,(e.evaluate||Ud).source].join("|")+"|$","g"),a=0,s="__p+='";r.replace(i,function(y,f,m,b,v){return s+=r.slice(a,v).replace(c3,d3),a=v+y.length,f?s+=`'+
2
2
  ((__t=(`+f+`))==null?'':_.escape(__t))+
3
3
  '`:m?s+=`'+
4
4
  ((__t=(`+m+`))==null?'':__t)+
@@ -150,7 +150,7 @@ You can update the existing 'primitive-value' with the 'update' action, for exam
150
150
  }
151
151
  }\`\`\`
152
152
  Or 'delete' and then 'post' actions to replace it.`,issue:null})):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 'input-map' or 'data-type'.`,issue:null})):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 t.push(new E({id:`${r.id}--${D.InvalidObjectStructure}`,code:D.InvalidObjectStructure,severity:T.Error,message:`Entity of type "${r.type}" with id "${r.id}" is missing a 'parent' reference. The 'parent' of a primitive value entity must be a reference to an entity of type 'input-map' or 'data-type'.`,issue:null}));else return t.push(new E({id:`${r.id}--${D.InvalidObjectStructure}`,code:D.InvalidObjectStructure,severity:T.Error,message:`Entity of type "${r.type}" with id "${r.id}" is missing a 'parent' reference. The 'parent' of a primitive value entity must be a reference to an entity of type 'input-map' or 'data-type'.`,issue:null})),t;if(r.valueAsType){const i=[],a=[],s=r.valueAsType;Array.isArray(s)?s.forEach(o=>{typeof o=="string"?a.push(o):i.push(o)}):typeof s=="string"?a.push(s):i.push(s),i.forEach(o=>{const c=Do(o);t.push(...c),c.length===0&&a.push(o.entityId)}),a.forEach(o=>{const c=e.get(o);c?[n.CustomEntity,n.BuiltInBaseEntity].includes(c.type)||t.push(new E({id:`${r.id}--${o}--${h.InvalidImplementsReference}`,code:h.InvalidImplementsReference,severity:T.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'valueAsType' reference that isn't pointing to an entity of type 'custom-entity', 'function-declaration' or 'operation'.`,issue:null})):t.push(new E({id:`${r.id}--${o}--${h.ReferencedEntityNotFound}`,code:h.ReferencedEntityNotFound,severity:T.Error,message:`Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${o}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))})}return t}const ve=class ve{constructor(e,t){l(this,"initialData");l(this,"type",n.PrimitiveValue);l(this,"id");l(this,"version");l(this,"name");l(this,"autogeneration",null);l(this,"value",null);l(this,"valueAsType",null);l(this,"errors",[]);l(this,"parent");l(this,"standaloneParent");l(this,"project");l(this,"initialized",!1);l(this,"standalone",!1);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version,this.name=e.name,this.autogeneration=e.autogeneration,this.value=e.value}static fromGenerationTarget(e,t){const i=w(e.parent),a=t.get(i);let s=null;e.valueAsType&&(Array.isArray(e.valueAsType)?s=e.valueAsType.map(p=>t.get(p)||t.getBuiltIn(p)):s=t.get(e.valueAsType)||t.getBuiltIn(e.valueAsType));const o={id:e.id,version:1,type:n.PrimitiveValue,name:e.name,autogeneration:e.autogeneration,valueAsType:s,value:e.value||null,parent:a},c=R(o,t);return c.setParent(a),c.initChildren(),c}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[],s=x5(i,t);return a.push(...s,..._e(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.
153
- This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`,issue:null})),{errors:t,modifiedData:e}}addSelfToProject(){const e=[this],t=[],i=[];return this.parent.setDefaultValue(this),e.push(this.parent),{updated:g(e),added:g(t),removed:g(i),self:this}}setParent(e){return this.parent=e,this}setStandaloneParent(e){return this.standaloneParent=e,this}setValueAsType(e){return this.valueAsType=e,this}initChildren(){if(this.initialized)return this;if(this.initialized=!0,this.standalone){if(this.initialData.valueAsType)if(Array.isArray(this.initialData.valueAsType))this.valueAsType=this.initialData.valueAsType.map(e=>{const t=this.project.get(e.id);if(!t)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${e.type}' with id '${e.id}' that is not part of the project state.`);return t});else{const e=this.project.get(this.initialData.valueAsType.id);if(!e)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${this.initialData.valueAsType.type}' with id '${this.initialData.valueAsType.id}' that is not part of the project state.`);this.valueAsType=e}return this}return this.initialData.valueAsType&&(Array.isArray(this.initialData.valueAsType)?this.valueAsType=this.initialData.valueAsType.map(e=>R(e,this.project)):this.valueAsType=R(this.initialData.valueAsType,this.project)),this}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.subscribeInstance(this),this}sync(e){return this.version=e.version||this.version,this.name=e.name||this.name,this.autogeneration=e.autogeneration||this.autogeneration,e.value!==void 0&&(this.value=e.value),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=[];return t.has(this.id)?{affected:[],removed:[]}:(t.add(this.id),a.push(this),this.unsubscribe(),{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(),{affected:t,self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.valueAsType?Array.isArray(this.valueAsType)?this.valueAsType.flatMap(i=>i.toFlat(e)):this.valueAsType.toFlat(e):[]])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.valueAsType?Array.isArray(this.valueAsType)?this.valueAsType.flatMap(i=>i.toFlatIds(e)):this.valueAsType.toFlatIds(e):[]])}toJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,autogeneration:this.autogeneration,value:this.value,valueAsType:this.valueAsType?Array.isArray(this.valueAsType)?this.valueAsType.map(e=>e.toReference()):this.valueAsType.toReference():null,parent:this.parent.toReference()}}toReference(){return{id:this.id+"--"+_.UUID.uuid()+"--ref",type:n.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,valueAsType:this.valueAsType?Array.isArray(this.valueAsType)?this.valueAsType.map(e=>e.toReference()):this.valueAsType.toReference():null,value:this.value,autogeneration:this.autogeneration,parent:this.parent.toReference()}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.valueAsType?Array.isArray(this.valueAsType)?this.valueAsType.flatMap(i=>i.toFlatJSON(e)):this.valueAsType.toFlatJSON(e):[]])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,valueAsType:this.valueAsType?Array.isArray(this.valueAsType)?this.valueAsType.map(e=>e.id):this.valueAsType.id:null,value:this.value,autogeneration:this.autogeneration,parent:this.parent.id}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.valueAsType?Array.isArray(this.valueAsType)?this.valueAsType.flatMap(i=>i.toFlatGenerationTarget(e)):this.valueAsType.toFlatGenerationTarget(e):[]])}clearErrors(){return this.errors=[],this}validate(){const e=U5(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors]}getShallowErrors(){return this.errors}clone(e=null,t=null,i=!0){const a=this.toJSON(),s=t||tt(this.name,n.PrimitiveValue,this.project);a.id=s;const o=Ut(a,this.project);return e&&o.setParent(e),i&&o.subscribe(),o}merge(e){const t=[],i=[],a=[];return this.valueAsType!==(e==null?void 0:e.valueAsType)&&(this.setValueAsType(e.valueAsType),t.push(this)),this.value!==e.value&&(this.value=e.value,t.push(this)),this.autogeneration!==e.autogeneration&&(this.autogeneration=e.autogeneration,t.push(this)),this.name!==e.name&&(this.name=e.name,t.push(this)),{updated:g(t),added:g(i),removed:g(a),self:this}}};l(ve,"MUTABLE_BASE_PROPERTIES",["name","autogeneration","value"]),l(ve,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),l(ve,"BASE_PROPERTIES",[...ve.MUTABLE_BASE_PROPERTIES,...ve.INMUTABLE_BASE_PROPERTIES]),l(ve,"MUTABLE_META_PROPERTIES",[...ve.MUTABLE_BASE_PROPERTIES]),l(ve,"INMUTABLE_META_PROPERTIES",[...ve.INMUTABLE_BASE_PROPERTIES]),l(ve,"META_PROPERTIES",[...ve.MUTABLE_META_PROPERTIES,...ve.INMUTABLE_META_PROPERTIES]),l(ve,"MUTABLE_UPSTREAM_PROPERTIES",[]),l(ve,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),l(ve,"UPSTREAM_PROPERTIES",[...ve.MUTABLE_UPSTREAM_PROPERTIES,...ve.INMUTABLE_UPSTREAM_PROPERTIES]),l(ve,"MUTABLE_DOWNSTREAM_PROPERTIES",["valueAsType"]),l(ve,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),l(ve,"DOWNSTREAM_PROPERTIES",[...ve.MUTABLE_DOWNSTREAM_PROPERTIES,...ve.INMUTABLE_DOWNSTREAM_PROPERTIES]),l(ve,"PROPERTIES",[...ve.META_PROPERTIES,...ve.UPSTREAM_PROPERTIES,...ve.DOWNSTREAM_PROPERTIES]);let bi=ve;function j5(r){var s;const e=z8(),t=r.toJSON();e.safeParse(t).success,r.outputs.forEach(o=>o.validate()),(s=r.throws)==null||s.validate();const a=[];return ae(r.errors,a)}function k5(r){var s;const e=J8(),t=r.toJSON();e.safeParse(t).success,r.outputs.forEach(o=>o.validate()),(s=r.throws)==null||s.validate();const a=[];return ae(r.errors,a)}const Ie=class Ie{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"x");l(this,"y");l(this,"type",n.ContinueStatement);l(this,"outputs",[]);l(this,"calledBySuccess",[]);l(this,"calledByError",[]);l(this,"calledByEntry",[]);l(this,"throws",null);l(this,"project");l(this,"errors",[]);l(this,"parent");l(this,"initialized",!1);l(this,"suggestion",!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){const i=w(e.parent),a=t.get(i),s=e.calledByEntry.map(f=>{const m=w(f);return t.get(m)}),o=e.calledBySuccess.map(f=>{const m=w(f);return t.get(m)}),c=e.calledByError.map(f=>{const m=w(f);return t.get(m)}),p={id:e.id,version:1,type:n.ContinueStatement,x:0,y:0,outputs:[],calledBySuccess:o,calledByError:c,calledByEntry:s,throws:null,parent:a},y=R(p,t);return y.setParent(a),y.initChildren(),y}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[],s=Je(i,{parent:{list:!1,types:[n.Loop]}},t);return i=s.modifiedData,a.push(...s.errors,..._e(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. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
153
+ This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`,issue:null})),{errors:t,modifiedData:e}}addSelfToProject(){var a;const e=[this],t=[],i=[];return(a=this.parent)==null||a.setDefaultValue(this),e.push(this.parent),{updated:g(e),added:g(t),removed:g(i),self:this}}setParent(e){return this.parent=e,this}setStandaloneParent(e){return this.standaloneParent=e,this}setValueAsType(e){return this.valueAsType=e,this}initChildren(){if(this.initialized)return this;if(this.initialized=!0,this.standalone){if(this.initialData.valueAsType)if(Array.isArray(this.initialData.valueAsType))this.valueAsType=this.initialData.valueAsType.map(e=>{const t=this.project.get(e.id);if(!t)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${e.type}' with id '${e.id}' that is not part of the project state.`);return t});else{const e=this.project.get(this.initialData.valueAsType.id);if(!e)throw new Error(`Standalone entity of type '${this.type}' with id '${this.id}' has a reference to an entity of type '${this.initialData.valueAsType.type}' with id '${this.initialData.valueAsType.id}' that is not part of the project state.`);this.valueAsType=e}return this}return this.initialData.valueAsType&&(Array.isArray(this.initialData.valueAsType)?this.valueAsType=this.initialData.valueAsType.map(e=>R(e,this.project)):this.valueAsType=R(this.initialData.valueAsType,this.project)),this}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.subscribeInstance(this),this}sync(e){return this.version=e.version||this.version,this.name=e.name||this.name,this.autogeneration=e.autogeneration||this.autogeneration,e.value!==void 0&&(this.value=e.value),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=[];return t.has(this.id)?{affected:[],removed:[]}:(t.add(this.id),a.push(this),this.unsubscribe(),{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(),{affected:t,self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.valueAsType?Array.isArray(this.valueAsType)?this.valueAsType.flatMap(i=>i.toFlat(e)):this.valueAsType.toFlat(e):[]])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.valueAsType?Array.isArray(this.valueAsType)?this.valueAsType.flatMap(i=>i.toFlatIds(e)):this.valueAsType.toFlatIds(e):[]])}toJSON(){var e;return{id:this.id,version:this.version,type:this.type,name:this.name,autogeneration:this.autogeneration,value:this.value,valueAsType:this.valueAsType?Array.isArray(this.valueAsType)?this.valueAsType.map(t=>t.toReference()):this.valueAsType.toReference():null,parent:(e=this.parent)==null?void 0:e.toReference()}}toReference(){return{id:this.id+"--"+_.UUID.uuid()+"--ref",type:n.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){var e;return{id:this.id,version:this.version,type:this.type,name:this.name,valueAsType:this.valueAsType?Array.isArray(this.valueAsType)?this.valueAsType.map(t=>t.toReference()):this.valueAsType.toReference():null,value:this.value,autogeneration:this.autogeneration,parent:(e=this.parent)==null?void 0:e.toReference()}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.valueAsType?Array.isArray(this.valueAsType)?this.valueAsType.flatMap(i=>i.toFlatJSON(e)):this.valueAsType.toFlatJSON(e):[]])}toGenerationTarget(){var e;return{id:this.id,type:this.type,name:this.name,valueAsType:this.valueAsType?Array.isArray(this.valueAsType)?this.valueAsType.map(t=>t.id):this.valueAsType.id:null,value:this.value,autogeneration:this.autogeneration,parent:(e=this.parent)==null?void 0:e.id}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.valueAsType?Array.isArray(this.valueAsType)?this.valueAsType.flatMap(i=>i.toFlatGenerationTarget(e)):this.valueAsType.toFlatGenerationTarget(e):[]])}clearErrors(){return this.errors=[],this}validate(){const e=U5(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors]}getShallowErrors(){return this.errors}clone(e=null,t=null,i=!0){const a=this.toJSON(),s=t||tt(this.name,n.PrimitiveValue,this.project);a.id=s;const o=Ut(a,this.project);return e&&o.setParent(e),i&&o.subscribe(),o}merge(e){const t=[],i=[],a=[];return this.valueAsType!==(e==null?void 0:e.valueAsType)&&(this.setValueAsType(e.valueAsType),t.push(this)),this.value!==e.value&&(this.value=e.value,t.push(this)),this.autogeneration!==e.autogeneration&&(this.autogeneration=e.autogeneration,t.push(this)),this.name!==e.name&&(this.name=e.name,t.push(this)),{updated:g(t),added:g(i),removed:g(a),self:this}}};l(ve,"MUTABLE_BASE_PROPERTIES",["name","autogeneration","value"]),l(ve,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),l(ve,"BASE_PROPERTIES",[...ve.MUTABLE_BASE_PROPERTIES,...ve.INMUTABLE_BASE_PROPERTIES]),l(ve,"MUTABLE_META_PROPERTIES",[...ve.MUTABLE_BASE_PROPERTIES]),l(ve,"INMUTABLE_META_PROPERTIES",[...ve.INMUTABLE_BASE_PROPERTIES]),l(ve,"META_PROPERTIES",[...ve.MUTABLE_META_PROPERTIES,...ve.INMUTABLE_META_PROPERTIES]),l(ve,"MUTABLE_UPSTREAM_PROPERTIES",[]),l(ve,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),l(ve,"UPSTREAM_PROPERTIES",[...ve.MUTABLE_UPSTREAM_PROPERTIES,...ve.INMUTABLE_UPSTREAM_PROPERTIES]),l(ve,"MUTABLE_DOWNSTREAM_PROPERTIES",["valueAsType"]),l(ve,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),l(ve,"DOWNSTREAM_PROPERTIES",[...ve.MUTABLE_DOWNSTREAM_PROPERTIES,...ve.INMUTABLE_DOWNSTREAM_PROPERTIES]),l(ve,"PROPERTIES",[...ve.META_PROPERTIES,...ve.UPSTREAM_PROPERTIES,...ve.DOWNSTREAM_PROPERTIES]);let bi=ve;function j5(r){var s;const e=z8(),t=r.toJSON();e.safeParse(t).success,r.outputs.forEach(o=>o.validate()),(s=r.throws)==null||s.validate();const a=[];return ae(r.errors,a)}function k5(r){var s;const e=J8(),t=r.toJSON();e.safeParse(t).success,r.outputs.forEach(o=>o.validate()),(s=r.throws)==null||s.validate();const a=[];return ae(r.errors,a)}const Ie=class Ie{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"x");l(this,"y");l(this,"type",n.ContinueStatement);l(this,"outputs",[]);l(this,"calledBySuccess",[]);l(this,"calledByError",[]);l(this,"calledByEntry",[]);l(this,"throws",null);l(this,"project");l(this,"errors",[]);l(this,"parent");l(this,"initialized",!1);l(this,"suggestion",!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){const i=w(e.parent),a=t.get(i),s=e.calledByEntry.map(f=>{const m=w(f);return t.get(m)}),o=e.calledBySuccess.map(f=>{const m=w(f);return t.get(m)}),c=e.calledByError.map(f=>{const m=w(f);return t.get(m)}),p={id:e.id,version:1,type:n.ContinueStatement,x:0,y:0,outputs:[],calledBySuccess:o,calledByError:c,calledByEntry:s,throws:null,parent:a},y=R(p,t);return y.setParent(a),y.initChildren(),y}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[],s=Je(i,{parent:{list:!1,types:[n.Loop]}},t);return i=s.modifiedData,a.push(...s.errors,..._e(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. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
154
154
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
155
155
  You shouldn't have to manually update a 'parent' property.
156
156
  Specifically for continue statements the parent needs to always be the 'loop' entity that contains it.`,issue:null})),{errors:t,modifiedData:e}}addSelfToProject(){const e=[this],t=[],i=[];return 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)}),this.parent.addContinueStatement(this),e.push(this),{updated:g(e),added:g(t),removed:g(i),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}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}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}addOutputDeclaration(e){return this.outputs.find(t=>t.id===e.id)||this.outputs.push(e),this}removeOutputDeclaration(e){return this.outputs=this.outputs.filter(t=>t.id!==e.id),this}setParent(e){return this.parent=e,this}initChildren(){return this.initialized?this:(this.initialized=!0,this.outputs=this.initialData.outputs.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.initialData.throws&&(this.throws=R(this.initialData.throws,this.project),this.throws.setParent(this),this.throws.initChildren()),this.parent.addContinueStatement(this),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.outputs.forEach(s=>{const{affected:o,removed:c}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...c)}),this.throws){const{affected:s,removed:o}=this.throws.remove({ignoreUpstream:!0,seenEntities:t});i.push(...s),a.push(...o)}return this.parent.removeContinueStatement(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=[];if(e.has(this.id))return{affected:[],self:this};if(e.add(this.id),this.subscribe(),this.outputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.throws){const{affected:i}=this.throws.restore({seenEntities:e});t.push(...i)}return this.parent.addContinueStatement(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.outputs.flatMap(i=>i.toFlat(e)),...this.calledBy.flatMap(i=>i.toFlat(e)),...this.throws?this.throws.toFlat(e):[]])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.outputs.flatMap(i=>i.toFlatIds(e)),...this.calledBy.flatMap(i=>i.toFlatIds(e)),...this.throws?this.throws.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()),outputs:this.outputs.map(i=>i.toJSON()),throws:((e=this.throws)==null?void 0:e.toJSON())||null,parent:((t=this.parent)==null?void 0:t.toReference())||null}}toReference(){return{id:this.id+"--"+_.UUID.uuid()+"--ref",type:n.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){var e;return{id:this.id,version:this.version,type:this.type,x:this.x,y:this.y,outputs:this.outputs.map(t=>t.toReference()),calledBySuccess:this.calledBySuccess.map(t=>t.toReference()),calledByError:this.calledByError.map(t=>t.toReference()),calledByEntry:this.calledByEntry.map(t=>t.toReference()),throws:((e=this.throws)==null?void 0:e.toReference())||null,parent:this.parent.toReference()}}toFlatJSON(e=new Set){var i;return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.outputs.flatMap(a=>a.toFlatJSON(e)),...this.calledBy.flatMap(a=>a.toFlatJSON(e)),...((i=this.throws)==null?void 0:i.toFlatJSON(e))||[]])}toGenerationTarget(){return{id:this.id,type:this.type,calledByEntry:this.calledByEntry.map(e=>e.id),calledByError:this.calledByError.map(e=>e.id),calledBySuccess:this.calledBySuccess.map(e=>e.id),parent:this.parent.id}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.outputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.throws?this.throws.toFlatGenerationTarget(e):[]])}clearErrors(){var e;return this.errors=[],this.outputs.forEach(t=>t.clearErrors()),(e=this.throws)==null||e.clearErrors(),this}validate(){const e=k5(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.outputs.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(e){return new Ie(this.toJSON(),this.project)}};l(Ie,"MUTABLE_BASE_PROPERTIES",[]),l(Ie,"INMUTABLE_BASE_PROPERTIES",["id","version","type"]),l(Ie,"BASE_PROPERTIES",[...Ie.MUTABLE_BASE_PROPERTIES,...Ie.INMUTABLE_BASE_PROPERTIES]),l(Ie,"MUTABLE_META_PROPERTIES",["x","y"]),l(Ie,"INMUTABLE_META_PROPERTIES",[...Ie.INMUTABLE_BASE_PROPERTIES]),l(Ie,"META_PROPERTIES",[...Ie.MUTABLE_META_PROPERTIES,...Ie.INMUTABLE_META_PROPERTIES]),l(Ie,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry","parent"]),l(Ie,"INMUTABLE_UPSTREAM_PROPERTIES",[]),l(Ie,"UPSTREAM_PROPERTIES",[...Ie.MUTABLE_UPSTREAM_PROPERTIES,...Ie.INMUTABLE_UPSTREAM_PROPERTIES]),l(Ie,"MUTABLE_DOWNSTREAM_PROPERTIES",["outputs","throws"]),l(Ie,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),l(Ie,"DOWNSTREAM_PROPERTIES",[...Ie.MUTABLE_DOWNSTREAM_PROPERTIES,...Ie.INMUTABLE_DOWNSTREAM_PROPERTIES]),l(Ie,"PROPERTIES",[...Ie.META_PROPERTIES,...Ie.UPSTREAM_PROPERTIES,...Ie.DOWNSTREAM_PROPERTIES]);let Et=Ie;const lt=class lt{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"x");l(this,"y");l(this,"type",n.ReturnStatement);l(this,"outputs",[]);l(this,"calledBySuccess",[]);l(this,"calledByError",[]);l(this,"calledByEntry",[]);l(this,"throws",null);l(this,"project");l(this,"errors",[]);l(this,"parent");l(this,"initialized",!1);l(this,"suggestion",!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){const i=w(e.parent),a=t.get(i),s=e.calledByEntry.map(f=>{const m=w(f);return t.get(m)}),o=e.calledBySuccess.map(f=>{const m=w(f);return t.get(m)}),c=e.calledByError.map(f=>{const m=w(f);return t.get(m)}),p={id:e.id,version:1,type:n.ReturnStatement,x:0,y:0,outputs:[],calledBySuccess:o,calledByError:c,calledByEntry:s,throws:null,parent:a},y=R(p,t);return y.setParent(a),y.initChildren(),y}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[],s=Je(i,{parent:{list:!1,types:dt}},t);return i=s.modifiedData,a.push(...s.errors,..._e(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. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.