@elyx-code/project-logic-tree 0.0.597 → 0.0.598

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(d,r){typeof exports=="object"&&typeof module<"u"?r(exports):typeof define=="function"&&define.amd?define(["exports"],r):(d=typeof globalThis<"u"?globalThis:d||self,r(d["@elyx-code/project-logic-tree"]={}))})(this,function(d){"use strict";var f3=Object.defineProperty;var m3=(d,r,_)=>r in d?f3(d,r,{enumerable:!0,configurable:!0,writable:!0,value:_}):d[r]=_;var l=(d,r,_)=>(m3(d,typeof r!="symbol"?r+"":r,_),_);var r=(n=>(n.CustomEntity="custom-entity",n.BuiltInBaseEntity="built-in-base-entity",n.Project="project",n.InstalledProject="installed-project",n.GlobalEvent="global-event",n.DataType="data-type",n.FunctionCall="function-call",n.FunctionDeclaration="function-declaration",n.ActionDescriptor="action-descriptor",n.ValueDescriptor="value-descriptor",n.ArgumentDeclaration="argument-declaration",n.InputMap="input-map",n.ReturnStatement="return-statement",n.BreakStatement="break-statement",n.ContinueStatement="continue-statement",n.ReturnDeclaration="return-declaration",n.OutputMap="output-map",n.PrimitiveEntity="primitive-entity",n.PrimitiveValue="primitive-value",n.Property="property",n.Operation="operation",n.Condition="condition",n.VariableDeclaration="variable-declaration",n.VariableInstance="variable-instance",n.Search="search",n.Loop="loop",n.InternalCall="internal-call",n.GenericReference="generic-reference",n))(r||{}),_=(n=>(n.HTTP_ENDPOINT="BUILT_IN_HTTP_ENDPOINT_ENTITY",n.RELATIONAL_DATABASE="BUILT_IN_RELATIONAL_DATABASE_ENTITY",n.PERSISTED_ENTITY="BUILT_IN_PERSISTED_ENTITY_ENTITY",n.CRON_JOB="BUILT_IN_CRON_JOB_ENTITY",n.EXECUTION="BUILT_IN_EXECUTION_ENTITY",n.KEY_VALUE_PARAM="BUILT_IN_KEY_VALUE_PARAM_ENTITY",n))(_||{}),xe=(n=>(n.CurrentDateAndTime="current-date-and-time",n.Unique="unique",n.Random="random",n))(xe||{}),gt=(n=>(n.DeletePersistedEntity="base-delete-persisted-entity",n.SoftDeletePersistedEntity="base-soft-delete-persisted-entity",n.AbortExecution="base-abort-execution",n))(gt||{}),L=(n=>(n.Fixed="fixed",n.None="none",n.Dynamic="dynamic",n))(L||{}),C=(n=>(n.FixedArguments="fixed-arguments",n.FixedReturns="fixed-returns",n.ReturnedError="returned-error",n.OngoingProcessExecution="ongoing-process-execution",n))(C||{}),g=(n=>(n.EntityTemplate="entity-template",n.ActionDescriptor="action-descriptor",n.String="string",n.Number="number",n.Boolean="boolean",n.Null="null",n.Enum="enum",n.JSON="json",n.Date="date",n.UUID="uuid",n.File="file",n))(g||{}),at=(n=>(n.Addition="addition",n.Substraction="substraction",n.Multiplication="multiplication",n.Division="division",n.Remainder="remainder",n.Exponentiation="exponentiation",n))(at||{}),ge=(n=>(n.Join="string-join",n.Split="stringSsplit",n.DeleteLast="string-delete-last",n.DeleteFirst="string-delete-first",n.DeleteIndex="string-delete-index",n.AddIndex="string-add-index",n.ReplaceFirst="string-replace-first",n.ReplaceLast="string-replace-last",n.ReplaceIndex="string-replace-index",n.ReplaceSingleMatch="string-replace-single-match",n.ReplaceAllMatches="string-replace-all-matches",n.GetIndex="string-get-index",n.GetFirst="string-get-first",n.GetLast="string-get-last",n.Append="string-append",n.Prepend="string-prepend",n))(ge||{}),j=(n=>(n.Join="list-join",n.Split="list-split",n.DeleteLast="list-delete-last",n.DeleteFirst="list-delete-first",n.DeleteIndex="list-delete-index",n.AddIndex="list-add-index",n.ReplaceFirst="list-replace-first",n.ReplaceLast="list-replace-last",n.ReplaceIndex="list-replace-index",n.ReplaceSingleMatch="list-replace-single-match",n.ReplaceAllMatches="list-replace-all-matches",n.GetIndex="list-get-index",n.GetFirst="list-get-first",n.GetLast="list-get-last",n.Append="list-append",n.Prepend="list-prepend",n))(j||{}),Ie=(n=>(n.Parallel="parallel",n.Sequential="sequential",n.Wait="wait",n))(Ie||{}),Ze=(n=>(n.CreateNewInstance="create-new-instance",n.Validate="validate",n))(Ze||{}),Ye=(n=>(n.HttpRequest="base-http-request",n))(Ye||{}),Ae=(n=>(n.Equal="equal",n.NotEqual="not-equal",n.And="and",n.Or="or",n.LessThan="less-than",n.MoreThan="more-than",n.LessThanOrEqual="less-than-or-equal",n.MoreThanOrEqual="more-than-or-equal",n))(Ae||{}),Ct=(n=>(n.Empty="empty",n.NotEmpty="not-empty",n))(Ct||{}),je=(n=>(n.ManualFlow="manual-flow-loop",n.Counted="counted-loop",n.List="list-loop",n.ObjectKeys="object-keys-loop",n.ObjectValues="object-values-loop",n.String="string-loop",n))(je||{}),qe=(n=>(n.OrDataTypeGroup="or-data-type-group",n.AndDataTypeGroup="and-data-type-group",n.DynamicArgumentTypes="dynamic-argument-types",n.DynamicReturnTypes="dynamic-return-types",n))(qe||{}),Kt=(n=>(n.PROJECT_PUBLICATION_COMPLETED="GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED",n))(Kt||{}),Bd=(n=>(n.Error="error",n.Task="task",n))(Bd||{});const Tn=[r.VariableDeclaration,r.VariableInstance,r.InputMap,r.ReturnDeclaration],Hg=[r.VariableDeclaration,r.VariableInstance,r.InputMap,r.ReturnDeclaration];console.log("VALUE_READING_TYPES: ",[...Tn]);const Se=[r.VariableDeclaration,r.VariableInstance,r.ArgumentDeclaration,r.OutputMap],Yg=[r.VariableDeclaration,r.VariableInstance,r.ArgumentDeclaration,r.OutputMap];console.log("VALUE_WRITING_TYPES: ",[...Se]);const wd=[...Tn,...Se],Fe=[r.VariableDeclaration,r.VariableInstance],Dr=[r.GlobalEvent],Ne=[r.Operation,r.FunctionCall,r.Condition,r.Search,r.VariableDeclaration,r.VariableInstance,r.InternalCall,r.Loop],mo=[r.Operation,r.FunctionCall,r.Condition,r.Search,r.VariableDeclaration,r.VariableInstance,r.Loop],$e=[r.FunctionDeclaration,...Dr],En=[...Ne,r.ReturnStatement,r.BreakStatement,r.ContinueStatement],To=[...mo,r.ReturnStatement,r.BreakStatement,r.ContinueStatement],en=[...Ne,...$e],_d=[...mo,...$e],zg=[...En,...$e],Zg=[...To,...$e],st=[...$e,r.Loop],Oe=[r.ReturnStatement,r.BreakStatement,r.ContinueStatement],Xg=[r.CustomEntity,r.BuiltInBaseEntity,r.Project,r.InstalledProject,r.GlobalEvent,r.DataType,r.FunctionCall,r.FunctionDeclaration,r.ActionDescriptor,r.ValueDescriptor,r.ArgumentDeclaration,r.InputMap,r.ReturnStatement,r.BreakStatement,r.ContinueStatement,r.ReturnDeclaration,r.OutputMap,r.PrimitiveEntity,r.PrimitiveValue,r.Property,r.Operation,r.Condition,r.VariableDeclaration,r.VariableInstance,r.Search,r.Loop,r.InternalCall],Eo=[r.CustomEntity,r.GlobalEvent,r.FunctionDeclaration,r.FunctionCall,r.VariableDeclaration,r.VariableInstance,r.Operation,r.Condition,r.ReturnStatement,r.BreakStatement,r.ContinueStatement,r.InstalledProject,r.Loop,r.Search],Md=[r.CustomEntity,r.FunctionDeclaration,r.ArgumentDeclaration,r.ReturnDeclaration,r.Property,r.VariableDeclaration,r.Search,r.Project,r.InstalledProject,r.ActionDescriptor,r.ValueDescriptor],Ar=[r.BuiltInBaseEntity,r.PrimitiveEntity],Qg=[r.CustomEntity,r.FunctionDeclaration,r.ArgumentDeclaration,r.ReturnDeclaration,r.Property,r.VariableDeclaration,r.GlobalEvent,r.Search,r.Project,r.InstalledProject,r.ActionDescriptor,r.ValueDescriptor,r.InputMap,r.OutputMap,r.FunctionCall,r.Operation,r.Condition,r.ReturnStatement,r.BreakStatement,r.ContinueStatement,r.VariableInstance,r.PrimitiveValue,r.InternalCall],F={type:r.PrimitiveEntity,id:"8b5fbe15-4c2b-48c0-9fd8-e5efbe3978dc",description:"A string of characters.",version:1,name:g.String,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Fn={type:r.PrimitiveEntity,id:"f596545d-1565-4faa-9969-d95fa5edfea4",description:"A 'true' or 'false' value.",version:1,name:g.Boolean,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Ce={type:r.PrimitiveEntity,id:"ecb84c29-6153-4b82-86a5-fce2b5f92002",description:"A number value.",version:1,name:g.Number,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Xe={type:r.PrimitiveEntity,id:"730e8ea9-8498-439a-9001-b07de55aaa7d",description:"A complex data structure with any combination of properties with names and values.",version:1,name:g.JSON,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Nd={id:"c2f52f01-8f2e-490e-8083-72289c8189c1",type:r.GenericReference,entityId:"7dd59b70-f97b-43a7-a051-fde1842ce5d6",entityType:r.DataType},$d={id:"4e803941-2e6a-4227-b803-b8877c0d7fee",type:r.GenericReference,entityId:"00ccfcae-2104-45ef-bf6c-50ddccd74286",entityType:r.Property},Vd={id:"7dd59b70-f97b-43a7-a051-fde1842ce5d6",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:F,asType:!1,defaultValue:{id:"enum-options-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:g.JSON,autogeneration:null,value:[],valueAsType:null,parent:Nd},parent:$d},Ld={id:"a2983c4c-0286-4ef1-8b5c-5a52904d3200",type:r.GenericReference,entityId:"9542b8b4-2642-4eee-9db9-def7963a17a0",entityType:r.PrimitiveEntity},Gd={required:!0,id:"00ccfcae-2104-45ef-bf6c-50ddccd74286",name:"Options",version:1,type:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:Vd,description:"Options for the enum. Each option is a text value.",parent:Ld},Rn={type:r.PrimitiveEntity,id:"9542b8b4-2642-4eee-9db9-def7963a17a0",description:"A set of text options to choose from.",version:1,name:g.Enum,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[Gd],methods:[]},Sr={type:r.PrimitiveEntity,id:"dc58f38b-d574-4956-aac6-32ce9529b937",description:"A date and time value.",version:1,name:g.Date,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},fa={type:r.PrimitiveEntity,id:"4a6234aa-c0f6-4731-b4dd-750388029226",description:"A unique identifier in the form of a 36-character string.",version:1,name:g.UUID,static:!1,abstract:!1,abstractMethods:[],extends:[F],properties:[],methods:[]},Ro={type:r.PrimitiveEntity,id:"b6f3c3c4-9c3d-4f9d-9e9e-1c0f6a3c8c6b",description:"A complex data structure with any combination of properties with names and values.",version:1,name:g.JSON,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]};var Fd=(n=>(n.FirstInputNumber="number-addition-first-number-argument-declaration",n.SecondInputNumber="number-addition-second-number-argument-declaration",n))(Fd||{}),Ud=(n=>(n.ResultNumber="number-addition-result-number-return-delaration",n.Error="number-addition-error-return-delaration",n))(Ud||{});const xd={type:r.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:"number-addition-first-number-argument-declaration",entityType:r.ValueDescriptor},jd={id:"number-addition-first-number-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:xd},kd={type:r.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:"number-addition-second-number-argument-declaration",entityType:r.ValueDescriptor},qd={id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:kd},Jd={type:r.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:"number-addition-result-number-return-delaration",entityType:r.ValueDescriptor},Wd={id:"b761acec-0755-4582-a68b-76267038bbe1",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Jd},Hd={type:r.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:at.Addition,entityType:r.ActionDescriptor},bo={id:"number-addition-first-number-argument-declaration",type:r.ValueDescriptor,version:1,name:"First value",description:"The first number to add",dataType:jd,required:!0,parentRelationType:C.FixedArguments,index:0,parent:Hd},Yd={type:r.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:at.Addition,entityType:r.ActionDescriptor},vo={id:"number-addition-second-number-argument-declaration",type:r.ValueDescriptor,description:"The second number to add",version:1,name:"Second value",dataType:qd,required:!0,parentRelationType:C.FixedArguments,index:1,parent:Yd},zd={type:r.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:at.Addition,entityType:r.ActionDescriptor},go={parentRelationType:C.FixedReturns,id:"number-addition-result-number-return-delaration",type:r.ValueDescriptor,description:"The result number of the addition",version:1,name:"Result",dataType:Wd,required:!0,index:0,parent:zd},Zd={type:r.GenericReference,id:"number-addition-operation-error-parent-ref",entityId:at.Addition,entityType:r.ActionDescriptor},Xd={parentRelationType:C.FixedReturns,id:"number-addition-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Zd},ma={id:at.Addition,type:r.ActionDescriptor,description:"Add two numbers together",version:1,name:at.Addition,fixedArguments:[bo,vo],error:Xd,fixedReturns:[go],argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},Qd={[at.Addition]:ma};var Kd=(n=>(n.FirstInputString="join-string-first-string-argument-declaration",n.SecondInputString="join-string-second-string-argument-declaration",n))(Kd||{}),eu=(n=>(n.ResultString="join-string-result-string-return-delaration",n.Error="join-string-error-return-delaration",n))(eu||{});const tu={type:r.GenericReference,id:"join-string-first-string-argument-declaration",entityId:"join-string-first-string-argument-declaration",entityType:r.ValueDescriptor},nu={id:"join-string-first-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:tu},ru={type:r.GenericReference,id:"join-string-second-string-argument-declaration",entityId:"join-string-second-string-argument-declaration",entityType:r.ValueDescriptor},iu={id:"join-string-second-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:ru},au={type:r.GenericReference,id:"join-string-result-string-return-delaration",entityId:"join-string-result-string-return-delaration",entityType:r.ValueDescriptor},su={id:"join-string-result-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:au},ou={type:r.GenericReference,id:"join-string-operation-first-string-argument-parent-ref",entityId:ge.Join,entityType:r.ActionDescriptor},Ta={id:"join-string-first-string-argument-declaration",type:r.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:nu,parentRelationType:C.FixedArguments,required:!0,index:0,parent:ou},lu={type:r.GenericReference,id:"join-string-operation-second-string-argument-parent-ref",entityId:ge.Join,entityType:r.ActionDescriptor},Ea={id:"join-string-second-string-argument-declaration",type:r.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:iu,parentRelationType:C.FixedArguments,required:!0,index:1,parent:lu},cu={type:r.GenericReference,id:"join-string-operation-result-string-return-parent-ref",entityId:ge.Join,entityType:r.ActionDescriptor},ui={parentRelationType:C.FixedReturns,id:"join-string-result-string-return-delaration",type:r.ValueDescriptor,version:1,name:"Result",description:"The resulting text value.",dataType:su,required:!0,index:0,parent:cu},du={type:r.GenericReference,id:"join-string-operation-error-parent-ref",entityId:ge.Join,entityType:r.ActionDescriptor},uu={parentRelationType:C.FixedReturns,id:"join-string-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:du},pi={id:ge.Join,type:r.ActionDescriptor,version:1,name:ge.Join,description:"Join two text together, to form a single resulting text value.",fixedArguments:[Ta,Ea],fixedReturns:[ui],error:uu,argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},pu={[ge.Join]:pi};var yu=(n=>(n.FirstInputList="join-list-first-list-argument-declaration",n.SecondInputList="join-list-second-list-argument-declaration",n))(yu||{}),hu=(n=>(n.ResultList="join-list-result-list-return-delaration",n.Error="join-list-error-return-delaration",n))(hu||{});const fu={type:r.GenericReference,id:"join-list-operation-first-list-argument-ref",entityId:"join-list-first-list-argument-declaration",entityType:r.ValueDescriptor},mu={id:"join-list-first-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:fu},Tu={type:r.GenericReference,id:"join-list-operation-second-list-argument-ref",entityId:"join-list-second-list-argument-declaration",entityType:r.ValueDescriptor},Eu={id:"join-list-second-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Tu},Ru={type:r.GenericReference,id:"join-list-operation-result-list-return-ref",entityId:"join-list-result-list-return-delaration",entityType:r.ValueDescriptor},bu={id:"join-list-result-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Ru},vu={type:r.GenericReference,id:"join-list-operation-first-list-argument-parent-ref",entityId:j.Join,entityType:r.ActionDescriptor},gu={id:"join-list-first-list-argument-declaration",type:r.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:mu,parentRelationType:C.FixedArguments,required:!0,index:0,parent:vu},Iu={type:r.GenericReference,id:"join-list-operation-second-list-argument-parent-ref",entityId:j.Join,entityType:r.ActionDescriptor},Pu={id:"join-list-second-list-argument-declaration",type:r.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:Eu,parentRelationType:C.FixedArguments,required:!0,index:1,parent:Iu},Du={type:r.GenericReference,id:"join-list-operation-result-list-return-parent-ref",entityId:j.Join,entityType:r.ActionDescriptor},Au={parentRelationType:C.FixedReturns,id:"join-list-result-list-return-delaration",type:r.ValueDescriptor,version:1,name:"Result",description:"The resulting list value.",dataType:bu,required:!0,index:0,parent:Du},Su={type:r.GenericReference,id:"join-list-operation-error-parent-ref",entityId:j.Join,entityType:r.ActionDescriptor},Ou={parentRelationType:C.FixedReturns,id:"join-list-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Su},Io={id:j.Join,type:r.ActionDescriptor,version:1,name:j.Join,description:"Join two lists together, to form a single resulting list value.",fixedArguments:[gu,Pu],error:Ou,fixedReturns:[Au],argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var Cu=(n=>(n.InputList="list-to-split-argument-declaration",n.SplitIndex="split-list-index-argument-declaration",n))(Cu||{}),Bu=(n=>(n.FirstOutputList="split-list-first-output-list-return-delaration",n.SecondOutputList="split-list-second-output-list-return-delaration",n.Error="split-list-error-return-delaration",n))(Bu||{});const wu={type:r.GenericReference,id:"split-list-operation-input-list-argument-ref",entityId:"list-to-split-argument-declaration",entityType:r.ValueDescriptor},_u={id:"split-list-operation-input-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:wu},Mu={type:r.GenericReference,id:"split-list-operation-split-index-argument-ref",entityId:"split-list-index-argument-declaration",entityType:r.ValueDescriptor},Nu={id:"split-list-operation-split-index-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Mu},Po={type:r.GenericReference,id:"split-list-operation-first-output-list-return-ref",entityId:"split-list-first-output-list-return-delaration",entityType:r.ValueDescriptor},$u={id:"split-list-operation-first-output-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Po},Vu={type:r.GenericReference,id:"split-list-operation-input-list-argument-parent-ref",entityId:j.Split,entityType:r.ActionDescriptor},Lu={id:"list-to-split-argument-declaration",type:r.ValueDescriptor,version:1,name:"List to split",description:"The list to split at the given index",dataType:_u,parentRelationType:C.FixedArguments,required:!0,index:0,parent:Vu},Gu={type:r.GenericReference,id:"split-list-operation-split-index-argument-parent-ref",entityId:j.Split,entityType:r.ActionDescriptor},Fu={id:"split-list-index-argument-declaration",type:r.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:Nu,parentRelationType:C.FixedArguments,required:!0,index:1,parent:Gu},Uu={type:r.GenericReference,id:"split-list-operation-first-output-list-return-parent-ref",entityId:j.Split,entityType:r.ActionDescriptor},xu={parentRelationType:C.FixedReturns,id:"split-list-first-output-list-return-delaration",type:r.ValueDescriptor,version:1,name:"First list",description:"The list of values up to the split index",dataType:$u,required:!0,index:0,parent:Uu},ju={id:"split-list-operation-second-output-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Po},ku={type:r.GenericReference,id:"split-list-operation-second-output-list-return-parent-ref",entityId:j.Split,entityType:r.ActionDescriptor},qu={parentRelationType:C.FixedReturns,id:"split-list-second-output-list-return-delaration",type:r.ValueDescriptor,version:1,name:"Second list",description:"The list of values up to the split index",dataType:ju,required:!0,index:0,parent:ku},Ju={type:r.GenericReference,id:"split-list-operation-error-parent-ref",entityId:j.Split,entityType:r.ActionDescriptor},Wu={parentRelationType:C.FixedReturns,id:"split-list-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Ju},Do={id:j.Split,type:r.ActionDescriptor,version:1,name:j.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:[Lu,Fu],fixedReturns:[xu,qu],error:Wu,argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var Hu=(n=>(n.InputList="get-last-in-list-input-list-argument-declaration",n))(Hu||{}),Yu=(n=>(n.OutputElement="get-last-in-list-output-element-return-delaration",n.Error="get-last-in-list-error-return-delaration",n))(Yu||{});const zu={type:r.GenericReference,id:"get-last-in-list-operation-input-list-argument-ref",entityId:"get-last-in-list-input-list-argument-declaration",entityType:r.ValueDescriptor},Zu={id:"get-last-in-list-input-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:zu},Xu={type:r.GenericReference,id:"get-last-in-list-operation-output-element-return-ref",entityId:"get-last-in-list-output-element-return-delaration",entityType:r.ValueDescriptor},Qu={id:"get-last-in-list-output-element-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Xu},Ku={type:r.GenericReference,id:"get-last-in-list-operation-input-list-argument-parent-ref",entityId:j.GetLast,entityType:r.ActionDescriptor},ep={id:"get-last-in-list-input-list-argument-declaration",type:r.ValueDescriptor,version:1,name:"List",description:"The list to get the last element from.",dataType:Zu,parentRelationType:C.FixedArguments,required:!0,index:0,parent:Ku},tp={type:r.GenericReference,id:"get-last-in-list-operation-output-element-return-parent-ref",entityId:j.GetLast,entityType:r.ActionDescriptor},np={parentRelationType:C.FixedReturns,id:"get-last-in-list-output-element-return-delaration",type:r.ValueDescriptor,version:1,name:"Last element",description:"The last element of the given list.",dataType:Qu,required:!0,index:0,parent:tp},rp={type:r.GenericReference,id:"get-last-in-list-operation-error-parent-ref",entityId:j.GetLast,entityType:r.ActionDescriptor},ip={parentRelationType:C.FixedReturns,id:"get-last-in-list-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:rp},Ao={id:j.GetLast,type:r.ActionDescriptor,version:1,name:j.GetLast,description:"Outputs the last element of a given list.",fixedArguments:[ep],fixedReturns:[np],error:ip,argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var ap=(n=>(n.List="append-to-list-lsit-argument-declaration",n.ElementToAppend="append-to-list-element-to-append-argument-declaration",n))(ap||{}),sp=(n=>(n.ResultList="append-to-list-result-list-return-delaration",n.Error="append-to-list-error-return-delaration",n))(sp||{});const op={type:r.GenericReference,id:"append-to-list-operation-lsit-argument-ref",entityId:"append-to-list-lsit-argument-declaration",entityType:r.ValueDescriptor},lp={id:"append-to-list-lsit-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:op},cp={type:r.GenericReference,id:"append-to-list-operation-second-list-argument-ref",entityId:"append-to-list-element-to-append-argument-declaration",entityType:r.ValueDescriptor},dp={id:"append-to-list-second-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:cp},up={type:r.GenericReference,id:"append-to-list-operation-result-list-return-ref",entityId:"append-to-list-result-list-return-delaration",entityType:r.ValueDescriptor},pp={id:"append-to-list-result-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:up},yp={type:r.GenericReference,id:"append-to-list-operation-lsit-argument-parent-ref",entityId:j.Append,entityType:r.ActionDescriptor},So={id:"append-to-list-lsit-argument-declaration",type:r.ValueDescriptor,version:1,name:"List value",description:"The list to which the element will be appended",dataType:lp,parentRelationType:C.FixedArguments,required:!0,index:0,parent:yp},hp={type:r.GenericReference,id:"append-to-list-operation-second-list-argument-parent-ref",entityId:j.Append,entityType:r.ActionDescriptor},Oo={id:"append-to-list-element-to-append-argument-declaration",type:r.ValueDescriptor,version:1,name:"Element",description:"The element that will be added at the end of the list",dataType:dp,parentRelationType:C.FixedArguments,required:!0,index:1,parent:hp},fp={type:r.GenericReference,id:"append-to-list-operation-result-list-return-parent-ref",entityId:j.Append,entityType:r.ActionDescriptor},mp={parentRelationType:C.FixedReturns,id:"append-to-list-result-list-return-delaration",type:r.ValueDescriptor,version:1,name:"Result",description:"The resulting list value.",dataType:pp,required:!0,index:0,parent:fp},Tp={type:r.GenericReference,id:"append-to-list-operation-error-parent-ref",entityId:j.Append,entityType:r.ActionDescriptor},Ep={parentRelationType:C.FixedReturns,id:"append-to-list-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Tp},Ra={id:j.Append,type:r.ActionDescriptor,version:1,name:j.Append,description:"Adds a given element to the end of a list value.",fixedArguments:[So,Oo],error:Ep,fixedReturns:[mp],argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},Rp={[j.Join]:Io,[j.Split]:Do,[j.GetLast]:Ao,[j.Append]:Ra};var bp=(n=>(n.ListOfFunctions="parallel-execution-list-of-functions-argument-declaration",n))(bp||{}),vp=(n=>(n.ListOfExecutionResults="parallel-execution-result-return-delaration",n.Error="parallel-execution-error-return-delaration",n))(vp||{});const gp={id:"parallel-execution-list-of-functions-blueprint-id",type:r.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:L.Dynamic,dynamicArgumentTypes:null,fixedArguments:[],returnsType:L.Dynamic,dynamicReturnTypes:null,fixedReturns:[],error:null,parent:null},Ip={type:r.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:"parallel-execution-list-of-functions-argument-declaration",entityType:r.ValueDescriptor},Pp={id:"parallel-execution-list-of-functions-argument-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:gp,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Ip},Dp={type:r.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:"parallel-execution-result-return-delaration",entityType:r.ValueDescriptor},Ap={id:"b761acec-0755-4582-a68b-76267038bbe1",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Dp},Sp={type:r.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:Ie.Parallel,entityType:r.ActionDescriptor},Co={id:"parallel-execution-list-of-functions-argument-declaration",type:r.ValueDescriptor,version:1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",dataType:Pp,required:!0,index:0,parent:Sp,parentRelationType:C.FixedArguments},Op={type:r.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:Ie.Parallel,entityType:r.ActionDescriptor},Bo={id:"parallel-execution-result-return-delaration",type:r.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:Ap,required:!0,index:0,parent:Op,parentRelationType:C.FixedReturns},Cp={type:r.GenericReference,id:"parallel-execution-operation-error-parent-ref",entityId:Ie.Parallel,entityType:r.ActionDescriptor},Bp={id:"parallel-execution-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Cp,parentRelationType:C.ReturnedError},$t={id:Ie.Parallel,type:r.ActionDescriptor,description:"Execute a list of actions in parallel",version:1,name:Ie.Parallel,fixedArguments:[Co],fixedReturns:[Bo],argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,error:Bp,parent:null};var wp=(n=>(n.MillisecondsNumber="wait-milliseconds-number-argument-declaration",n))(wp||{}),_p=(n=>(n.Error="wait-operation-error-return-delaration",n))(_p||{});const Mp={type:r.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityType:r.ValueDescriptor,entityId:"wait-milliseconds-number-argument-declaration"},Np={id:"wait-milliseconds-number-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Mp},$p={type:r.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityType:r.ActionDescriptor,entityId:Ie.Wait},Un={id:"wait-milliseconds-number-argument-declaration",type:r.ValueDescriptor,version:1,name:"Milliseconds to wait",description:"The amount of milliseconds to wait before calling the next entity",dataType:Np,required:!0,index:0,parent:$p,parentRelationType:C.FixedArguments},Vp={type:r.GenericReference,id:"wait-operation-error-parent-ref",entityId:Ie.Wait,entityType:r.ActionDescriptor},Lp={id:"wait-operation-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Vp,parentRelationType:C.ReturnedError},ot={id:Ie.Wait,type:r.ActionDescriptor,description:"Wait for the given amount of milliseconds before calling the next entity",version:1,name:Ie.Wait,fixedArguments:[Un],fixedReturns:[],error:Lp,argumentsType:L.Fixed,returnsType:L.None,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var Gp=(n=>(n.ListOfFunctions="sequential-execution-list-of-functions-argument-declaration",n))(Gp||{}),Fp=(n=>(n.ListOfExecutionResults="sequential-execution-result-return-delaration",n.Error="sequential-execution-error-return-delaration",n))(Fp||{});const Up={id:"sequential-execution-list-of-functions-blueprint-id",type:r.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:L.Dynamic,dynamicArgumentTypes:null,fixedArguments:[],returnsType:L.Dynamic,dynamicReturnTypes:null,fixedReturns:[],error:null,parent:null},xp={type:r.GenericReference,id:"parallel-execution-list-of-functions-argument-declaration-id",entityId:"sequential-execution-list-of-functions-argument-declaration",entityType:r.ValueDescriptor},jp={id:"sequential-execution-list-of-functions-argument-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Up,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:xp},kp={type:r.GenericReference,id:"sequential-execution-list-of-execution-results-return-declaration-id",entityId:"sequential-execution-result-return-delaration",entityType:r.ValueDescriptor},qp={id:"sequential-execution-list-of-execution-results-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:kp},Jp={type:r.GenericReference,id:"parallel-execution-operation-list-of-functions-argument-parent-ref",entityId:Ie.Sequential,entityType:r.ActionDescriptor},wo={id:"sequential-execution-list-of-functions-argument-declaration",type:r.ValueDescriptor,version:1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",dataType:jp,required:!0,index:0,parent:Jp,parentRelationType:C.FixedArguments},Wp={type:r.GenericReference,id:"parallel-execution-operation-list-of-execution-results-return-parent-ref",entityId:Ie.Sequential,entityType:r.ActionDescriptor},_o={id:"sequential-execution-result-return-delaration",type:r.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:qp,required:!0,index:0,parent:Wp,parentRelationType:C.FixedReturns},Hp={type:r.GenericReference,id:"sequential-execution-operation-error-parent-ref",entityId:Ie.Sequential,entityType:r.ActionDescriptor},Yp={id:"sequential-execution-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Hp,parentRelationType:C.ReturnedError},tn={id:Ie.Sequential,type:r.ActionDescriptor,description:"Execute a list of actions one after the other",version:1,name:Ie.Sequential,fixedArguments:[wo],fixedReturns:[_o],error:Yp,returnsType:L.Fixed,argumentsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},zp={[Ie.Parallel]:$t,[Ie.Wait]:ot,[Ie.Sequential]:tn};var Zp=(n=>(n.EntityToInstanciate="entity-to-instanciate-argument-declaration",n))(Zp||{}),Xp=(n=>(n.Error="create-new-instance-error-return-delaration",n))(Xp||{});const Qp={type:r.GenericReference,id:"entity-to-instanciate-argument-declaration-ref",entityType:r.ValueDescriptor,entityId:"entity-to-instanciate-argument-declaration"},Kp={id:"entity-to-instanciate-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Qp},ey={type:r.GenericReference,id:"create-new-instance-operation-ref",entityType:r.ActionDescriptor,entityId:Ze.CreateNewInstance},ty={id:"entity-to-instanciate-argument-declaration",type:r.ValueDescriptor,version:1,name:"Entity to create a new copy of",description:"The entity of which a new copy will to be created",dataType:Kp,required:!0,parentRelationType:C.FixedArguments,index:0,parent:ey},ny={type:r.GenericReference,id:"create-new-instance-output-entity-declaration-parent-ref",entityId:Ze.CreateNewInstance,entityType:r.ActionDescriptor},ry={parentRelationType:C.FixedReturns,id:"create-new-instance-output-entity-declaration",type:r.ValueDescriptor,version:1,dataType:null,name:"Created entity",description:"The entity that was created",parent:ny,required:!0,index:0},iy={type:r.GenericReference,id:"create-new-instance-error-parent-ref",entityId:Ze.CreateNewInstance,entityType:r.ActionDescriptor},ay={parentRelationType:C.FixedReturns,id:"create-new-instance-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:iy},Or={id:Ze.CreateNewInstance,type:r.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:Ze.CreateNewInstance,fixedArguments:[ty],fixedReturns:[ry],error:ay,argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var sy=(n=>(n.EntityToMatchType="validate-data-operation-entity-to-match-type-argument-declaration",n.DataToValidate="validate-data-operation-data-to-validate-argument-declaration",n))(sy||{}),oy=(n=>(n.Error="validate-data-error-return-delaration",n.OutputEntity="validate-data-output-entity-declaration",n))(oy||{});const ly={type:r.GenericReference,id:"validate-data-operation-data-to-validate-argument-declaration-ref",entityType:r.ValueDescriptor,entityId:"validate-data-operation-data-to-validate-argument-declaration"},cy={id:"validate-data-operation-data-to-validate-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:ly},dy={type:r.GenericReference,id:"validate-data-operation-data-to-validate-argument-parent-ref",entityType:r.ActionDescriptor,entityId:Ze.Validate},uy={id:"validate-data-operation-data-to-validate-argument-declaration",type:r.ValueDescriptor,version:1,name:"Data to validate",description:"The value to validate against the given entity type",dataType:cy,required:!0,parentRelationType:C.FixedArguments,index:0,parent:dy},py={type:r.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-declaration-ref",entityType:r.ValueDescriptor,entityId:"validate-data-operation-entity-to-match-type-argument-declaration"},yy={id:"validate-data-operation-entity-to-match-type-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!0,isNullable:!1,defaultValue:null,constant:!1,parent:py},hy={type:r.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-parent-ref",entityType:r.ActionDescriptor,entityId:Ze.Validate},fy={id:"validate-data-operation-entity-to-match-type-argument-declaration",type:r.ValueDescriptor,version:1,name:"Entity to match",description:"The entity to match the data against",dataType:yy,required:!0,index:0,parentRelationType:C.FixedArguments,parent:hy},my={type:r.GenericReference,id:"validate-data-operation-output-entity-declaration-parent-ref",entityId:Ze.Validate,entityType:r.ActionDescriptor},Ty={id:"validate-data-output-entity-declaration",type:r.ValueDescriptor,version:1,dataType:null,name:"Output value",description:"A value with the type of the entity that was validated",parent:my,required:!0,index:0,parentRelationType:C.FixedReturns},Ey={type:r.GenericReference,id:"wait-operation-error-parent-ref",entityId:Ze.Validate,entityType:r.ActionDescriptor},Ry={id:"validate-data-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Ey,parentRelationType:C.ReturnedError},xn={id:Ze.Validate,type:r.ActionDescriptor,description:"Validates the given data to see if it matches the structure of a given type/entity",version:1,name:Ze.Validate,fixedArguments:[fy,uy],fixedReturns:[Ty],error:Ry,argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},by={[Ze.CreateNewInstance]:Or,[Ze.Validate]:xn};var Mo=(n=>(n.ActionOngoingProcessOutputValue="action-ongoing-process-output-value-descriptor-id",n))(Mo||{});const Ve={[r.ValueDescriptor]:{"action-ongoing-process-output-value-descriptor-id":{id:"action-ongoing-process-output-value-descriptor-id",dataType:{id:"process-output-value-data-type-id"}}},[r.BuiltInBaseEntity]:{[_.KEY_VALUE_PARAM]:{id:_.KEY_VALUE_PARAM},[_.HTTP_ENDPOINT]:{id:_.HTTP_ENDPOINT,properties:{method:"http-endpoint-built-in-method-property-id",path:"http-endpoint-built-in-path-property-id",cors:"http-endpoint-built-in-cors-property-id"}},[_.PERSISTED_ENTITY]:{id:_.PERSISTED_ENTITY,properties:{database:"persisted-built-in-base-entity-database-property-id",identifier:"persisted-built-in-base-entity-identifier-property-id"}},[_.RELATIONAL_DATABASE]:{id:_.RELATIONAL_DATABASE,properties:{identifier:"relational-database-built-in-base-entity-identifier-property-id",username:"relational-database-built-in-base-entity-username-property-id",password:"relational-database-built-in-base-entity-password-property-id",minSize:"relational-database-built-in-base-entity-min-size-property-id",default:"relational-database-built-in-base-entity-default-property-id"}},[_.CRON_JOB]:{id:_.CRON_JOB,properties:{expression:"cron-job-built-in-base-entity-expression-property-id"}}},[r.Operation]:{[ge.Join]:{id:ge.Join,inputs:{first:"join-string-first-string-input-id",second:"join-string-second-string-input-id"},outputs:{result:"join-string-result-string-return-delaration-id",error:"join-string-error-return-delaration-id"}},[Ye.HttpRequest]:{id:Ye.HttpRequest,inputs:{url:"http-request-url-input-id",query:"http-request-query-input-id",method:"http-request-method-input-id",headers:"http-request-headers-input-id",body:"http-request-body-string-input-id"},outputs:{code:"http-response-code-return-delaration-id",body:"http-response-body-return-delaration-id",headers:"http-response-headers-return-delaration-id",error:"http-request-error-return-delaration-id"}}},[r.Loop]:{[je.List]:{id:je.List,inputs:{list:"iterate-over-list-loop-list-input-id"},outputs:{results:"iterate-over-list-loop-output-id"}},[je.ManualFlow]:{id:je.ManualFlow,inputs:{},outputs:{results:"manual-flow-loop-output-id"}}},[r.Condition]:{[Ae.MoreThanOrEqual]:{id:Ae.MoreThanOrEqual,inputs:{leftHand:"condition-more-than-or-equal-left-hand-input-id",rightHand:"condition-more-than-or-equal-right-hand-input-id"}},[Ct.NotEmpty]:{id:Ct.NotEmpty,inputs:{leftHand:"condition-not-empty-input-id"}}},[r.GlobalEvent]:{[Kt.PROJECT_PUBLICATION_COMPLETED]:{id:Kt.PROJECT_PUBLICATION_COMPLETED}}},Je=Ve[r.Operation]["base-http-request"],vy={type:r.GenericReference,id:"d87cf943-57e1-4d19-9f05-190fa8c8ebc4",entityType:r.DataType,entityId:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3"},gy={id:"http-request-url-default-value-id",type:r.PrimitiveValue,version:1,value:"https://some-url.com",name:g.String,valueAsType:null,parent:vy,autogeneration:null},Iy={type:r.GenericReference,id:"aed50d73-eab5-42ce-b00e-7f5c45a9026f",entityId:Je.inputs.url,entityType:r.ValueDescriptor},Py={id:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:gy,constant:!1,parent:Iy},Dy={type:r.GenericReference,id:"c3145af6-3387-464a-8887-272e483c856d",entityId:Je.inputs.query,entityType:r.ValueDescriptor},Ay={id:"2a5ba737-6335-4cc4-a2c0-16dca4052fac",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Dy},Sy={type:r.GenericReference,id:"075556b7-e468-48f7-8485-7159eaf389b2",entityType:r.DataType,entityId:"6df7ec2b-5dbd-44af-896b-17b314e88560"},Oy={id:"http-request-method-default-value-id",type:r.PrimitiveValue,version:1,value:"GET",name:g.Enum,valueAsType:null,parent:Sy,autogeneration:null},Cy={type:r.GenericReference,id:"aed647c8-a1b5-4cfc-9a3d-97887a567a80",entityId:Je.inputs.method,entityType:r.ValueDescriptor},By={id:"6df7ec2b-5dbd-44af-896b-17b314e88560",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Rn,isList:!1,asType:!1,isNullable:!1,defaultValue:Oy,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],constant:!1,parent:Cy},wy={type:r.GenericReference,id:"77203dfa-d2f6-4804-9556-e1cce46228f3",entityId:Je.inputs.headers,entityType:r.ValueDescriptor},_y={id:"2c8a2a07-69c6-40ad-b5c9-f0dc4d5955ce",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Xe,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:wy},My={type:r.GenericReference,id:"03db68a0-7ab6-4c6a-85b6-f4b95ebb53ff",entityId:Je.inputs.body,entityType:r.ValueDescriptor},Ny={id:"0397876c-ed54-4ee9-85a4-04fd16dad973",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Xe,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:My},$y={type:r.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",entityType:r.ValueDescriptor,entityId:Je.outputs.code},Vy={id:"45e6d0bc-0c0e-4059-a7a1-6bee925d73d0",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:$y},Ly={type:r.GenericReference,id:"2baaa53a-9aef-4bd1-b06d-967c17b7b627",entityType:r.DataType,entityId:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe"},Gy={type:r.GenericReference,id:"69f34d6c-c686-4165-b6ff-70dae8e1778b",entityType:r.ValueDescriptor,entityId:Je.outputs.headers},Fy={id:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Xe,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"http-response-headers-default-value-id",type:r.PrimitiveValue,version:1,value:{},name:g.JSON,parent:Ly,valueAsType:null,autogeneration:null},constant:!1,parent:Gy},Uy={type:r.GenericReference,id:"744334e0-5135-4214-85d0-809437cb620b",entityType:r.DataType,entityId:"05fc1a5d-151a-479a-9c4e-4063f3456177"},xy={type:r.GenericReference,id:"0e0e20df-1a46-432c-ba01-fd96508a6a61",entityType:r.ValueDescriptor,entityId:Je.outputs.body},jy={id:"05fc1a5d-151a-479a-9c4e-4063f3456177",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Xe,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"http-response-body-default-value-id",type:r.PrimitiveValue,version:1,value:{},name:g.JSON,parent:Uy,valueAsType:null,autogeneration:null},constant:!1,parent:xy},ky={type:r.GenericReference,id:"26911792-f707-4bf1-b6f7-03d04a84232c",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},ba={id:Je.inputs.method,type:r.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:By,required:!1,index:0,parentRelationType:C.FixedArguments,parent:ky},qy={type:r.GenericReference,id:"eee0c501-0ae6-4448-b914-aada76d63163",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},va={id:Je.inputs.url,type:r.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:Py,required:!1,index:1,parentRelationType:C.FixedArguments,parent:qy},Jy={type:r.GenericReference,id:"670091a4-21b1-4223-ad4c-b6dada0aec49",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},No={id:Je.inputs.query,type:r.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:Ay,required:!1,index:2,parentRelationType:C.FixedArguments,parent:Jy},Wy={type:r.GenericReference,id:"85aad3eb-22fe-45f9-b68c-1dc7061f41e0",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},ga={id:Je.inputs.headers,type:r.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:_y,required:!1,index:3,parent:Wy,parentRelationType:C.FixedArguments},Hy={type:r.GenericReference,id:"c3e2a4af-9b84-4574-8b30-5044ffc51776",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},Ia={id:Je.inputs.body,type:r.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:Ny,required:!1,index:4,parentRelationType:C.FixedArguments,parent:Hy},Yy={type:r.GenericReference,id:"92e04dc7-2145-4a31-908e-03810f7235e8",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},$o={id:Je.outputs.code,type:r.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:Vy,required:!0,index:0,parentRelationType:C.FixedReturns,parent:Yy},zy={type:r.GenericReference,id:"86aca556-bbf1-4679-9909-31db61b288e2",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},Pa={parentRelationType:C.FixedReturns,id:Je.outputs.headers,type:r.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:Fy,required:!0,index:1,parent:zy},Zy={type:r.GenericReference,id:"ccf3d1be-04e4-4d03-99fd-5bc1e1919f90",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},yi={parentRelationType:C.FixedReturns,id:Je.outputs.body,type:r.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:jy,required:!0,index:2,parent:Zy},Xy={type:r.GenericReference,id:"21487ffc-82b9-473d-bc19-6e7d7c480ed7",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},Qy={type:r.GenericReference,id:"ad69861b-32f7-4461-b7f7-aa84a82578d9",entityType:r.ValueDescriptor,entityId:Je.outputs.error},Ky={id:"5da68b15-57bc-40c1-b79f-a9075e0f22c1",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Xe,isList:!1,asType:!1,isNullable:!1,constant:!1,defaultValue:null,parent:Qy},Vo={parentRelationType:C.ReturnedError,id:Je.outputs.error,type:r.ValueDescriptor,description:"Http request error, if any. Contains a payload describing what went wrong.",version:1,name:"Error",dataType:Ky,required:!0,index:0,parent:Xy},hi={type:r.ActionDescriptor,id:Ye.HttpRequest,name:Ye.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:[ba,va,No,ga,Ia],fixedReturns:[$o,Pa,yi],argumentsType:L.Fixed,returnsType:L.Fixed,error:Vo,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},eh={[Ye.HttpRequest]:hi},Kg={...pu,...Qd,...Rp,...zp,...by,...eh},th=Ve[r.Loop]["list-loop"],nh={id:"iterate-over-list-loop-return-declaration-parent-ref-id",type:r.GenericReference,entityId:je.List,entityType:r.ActionDescriptor},rh={id:th.outputs.results,type:r.ValueDescriptor,version:1,name:"Results",description:"List of results from the loop. One item in the list for each iteration of the loop.",dataType:null,required:!0,index:0,parent:nh,parentRelationType:C.FixedReturns},ih={id:"iterate-over-list-loop-list-argument-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-list-loop-list-argument-declaration-id",entityType:r.ArgumentDeclaration},ah={id:"iterate-over-list-loop-list-argument-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!0,isNullable:!1,constant:!1,entity:null,asType:!1,defaultValue:null,parent:ih},sh={id:"iterate-over-list-loop-list-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:je.List,entityType:r.ActionDescriptor},oh={id:th.inputs.list,type:r.ValueDescriptor,version:1,name:"List",description:"The list to iterate over",required:!0,dataType:ah,index:0,parent:sh,parentRelationType:C.FixedArguments},jn={id:je.List,type:r.ActionDescriptor,version:1,name:je.List,description:"Iterates over a list of entities",fixedArguments:[oh],fixedReturns:[rh],error:null,argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},eI=Ve[r.Loop]["list-loop"],lh={id:"manual-flow-loop-previous-iterations-results-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"manual-flow-loop-previous-iterations-results-declaration-id",entityType:r.ReturnDeclaration},ch={id:"manual-flow-loop-previous-iterations-results-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!0,isNullable:!1,constant:!1,entity:null,asType:!1,defaultValue:null,parent:lh},dh={id:"manual-flow-loop-previous-iterations-results-declaration-parent-ref-id",type:r.GenericReference,entityId:je.ManualFlow,entityType:r.ActionDescriptor},uh={id:eI.outputs.results,type:r.ValueDescriptor,version:1,name:"Results",description:"List of results from the loop. One item in the list for each iteration of the loop.",dataType:ch,required:!0,index:1,parentRelationType:C.FixedReturns,parent:dh},Lo={id:je.ManualFlow,type:r.ActionDescriptor,version:1,name:je.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:[uh],argumentsType:L.None,returnsType:L.Fixed,error:null,parent:null},Da=Ve[r.BuiltInBaseEntity][_.KEY_VALUE_PARAM],tI={id:"key-value-param-built-in-base-entity-name-property-data-type-ref",type:r.GenericReference,entityId:"key-value-param-built-in-base-entity-name-property-data-type",entityType:r.DataType},ph={id:"key-value-param-built-in-base-entity-name-property-ref",type:r.GenericReference,entityId:"key-value-param-built-in-base-entity-name-property",entityType:r.Property},nI={id:"key-value-param-built-in-base-entity-name-property-data-type",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:F,asType:!1,defaultValue:null,parent:ph},yh={id:"key-value-param-built-in-base-entity-name-property-parent-ref",type:r.GenericReference,entityId:Da.id,entityType:r.BuiltInBaseEntity},hh={required:!0,id:"key-value-param-built-in-base-entity-name-property",name:"Parameter name",version:1,type:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:nI,description:"The name of the path parameter",parent:yh},rI={id:"key-value-param-built-in-base-entity-value-property-data-type-ref",type:r.GenericReference,entityId:"key-value-param-built-in-base-entity-value-property-data-type",entityType:r.DataType},fh={id:"key-value-param-built-in-base-entity-value-property-ref",type:r.GenericReference,entityId:"key-value-param-built-in-base-entity-value-property",entityType:r.Property},iI={id:"key-value-param-built-in-base-entity-value-property-data-type",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:F,asType:!1,defaultValue:null,parent:fh},mh={id:"key-value-param-built-in-base-entity-value-property-parent-ref",type:r.GenericReference,entityId:Da.id,entityType:r.BuiltInBaseEntity},Th={required:!0,id:"key-value-param-built-in-base-entity-value-property",name:"Parameter Value",version:1,type:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:1,dataType:iI,description:"The value of the path parameter",parent:mh},Aa={id:Da.id,version:1,description:'An entity with a "name" and "value" property representing a breakdown of a key-value pair.',name:Da.id,type:r.BuiltInBaseEntity,abstract:!1,static:!1,interactive:!0,properties:[hh,Th],abstractMethods:[],methods:[],extends:[]},fi=Ve[r.BuiltInBaseEntity][_.HTTP_ENDPOINT].properties,Eh={id:"endpointBuiltInCorsPropertyDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointBuiltInCorsPropertyDataType"},Rh={id:"endpointBuiltInCorsPropertyRef",type:r.GenericReference,entityType:r.Property,entityId:fi.cors},bh={id:"endpointBuiltInCorsPropertyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"endpointBuiltInCorsPropertyDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:g.JSON,value:["*"],parent:Eh,autogeneration:null,valueAsType:null},parent:Rh},vh={id:"endpointBuiltInBaseEntityRef",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},gh={required:!0,id:fi.cors,name:"Allowed origins",version:1,type:r.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:bh,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:vh},Ih={id:"endpointBuiltInPathPropertyDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointBuiltInPathPropertyDataType"},Ph={id:"endpointBuiltInPathPropertyRef",type:r.GenericReference,entityType:r.Property,entityId:fi.path},Dh={id:"endpointBuiltInPathPropertyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"endpointBuiltInPathPropertyDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:g.String,value:"/",parent:Ih,autogeneration:null,valueAsType:null},parent:Ph},Ah={id:"endpointBuiltInBaseEntityRefTwo",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},Go={required:!0,id:fi.path,name:"Path",version:1,type:r.Property,private:!1,abstract:!0,implements:null,static:!0,index:1,dataType:Dh,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:Ah},Sh={id:"endpointBuiltInMethodPropertyDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointBuiltInMethodPropertyDataType"},Oh={id:"endpointBuiltInMethodPropertyRef",type:r.GenericReference,entityType:r.Property,entityId:"endpointBuiltInMethodProperty"},Ch={id:"endpointBuiltInMethodPropertyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Rn,isList:!0,isNullable:!1,constant:!0,asType:!1,defaultValue:{id:"endpointBuiltInMethodPropertyDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,value:"GET",name:g.Enum,parent:Sh,autogeneration:null,valueAsType:null},options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:Oh},Bh={id:"endpointBuiltInBaseEntityRefThree",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},Fo={required:!0,id:fi.method,name:"Method",version:1,type:r.Property,private:!1,index:2,implements:null,abstract:!0,static:!0,dataType:Ch,description:"The HTTP method that this endpoint will respond to, for example GET, POST, PUT, DELETE, etc.",parent:Bh},wh={id:"endpointRequestHeadersVariableDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointRequestHeadersVariableDataType"},_h={id:"endpointRequestHeadersArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"endpointRequestHeadersArgumentDeclaration"},Mh={id:"endpointRequestHeadersVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Xe,asType:!1,defaultValue:{id:"endpointRequestHeadersVariableDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:g.JSON,value:{},parent:wh,autogeneration:null,valueAsType:null},parent:_h},Nh={id:"endpointRequestBodyArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"endpointRequestBodyArgumentDeclaration"},$h={id:"endpointRequestBodyVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Xe,defaultValue:null,parent:Nh},Vh={id:"endpointRequestQueryParamsVariableDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointRequestQueryParamsVariableDataType"},Lh={id:"endpointRequestQueryParamsArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"endpointRequestQueryParamsArgumentDeclaration"},Gh={id:"endpointRequestQueryParamsVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,asType:!1,entity:Aa,defaultValue:{id:"endpointRequestQueryParamsVariableDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:g.JSON,value:[],parent:Vh,autogeneration:null,valueAsType:null},parent:Lh},Fh={id:"endpointPathParamsVariableDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointPathParamsVariableDataType"},Uh={id:"endpointPathParamsArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"endpointPathParamsArgumentDeclaration"},xh={id:"endpointPathParamsVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Aa,asType:!1,defaultValue:{id:"endpointPathParamsVariableDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:g.JSON,value:[],parent:Fh,autogeneration:null,valueAsType:null},parent:Uh},jh={id:"endpointReachedTriggerActionDescriptorRef",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},kh={id:"endpointRequestHeadersArgumentDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:r.ValueDescriptor,name:"Request headers",dataType:Mh,required:!0,index:0,parentRelationType:C.FixedArguments,parent:jh},qh={id:"endpointReachedTriggerActionDescriptorRefTwo",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Jh={id:"endpointPathParamsArgumentDeclaration",type:r.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:xh,required:!0,index:1,parentRelationType:C.FixedArguments,parent:qh},Wh={id:"endpointReachedTriggerActionDescriptorRefThree",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Hh={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:r.ValueDescriptor,name:"Request query params",dataType:Gh,required:!0,index:2,parentRelationType:C.FixedArguments,parent:Wh},Yh={id:"endpointReachedTriggerActionDescriptorRefFour",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},zh={id:"endpointRequestBodyArgumentDeclaration",version:1,description:"The main data payload of the request.",type:r.ValueDescriptor,name:"Request body",dataType:$h,index:3,required:!0,parentRelationType:C.FixedArguments,parent:Yh},Zh={id:"endpointResponseCodeReturnDeclarationRef",type:r.GenericReference,entityType:r.ReturnDeclaration,entityId:"endpointResponseCodeReturnDeclaration"},Xh={id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Zh},Qh={id:"endpointReturnStatementRef",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReturnStatement"},Kh={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:r.ValueDescriptor,name:"Response code",dataType:Xh,required:!0,index:0,parentRelationType:C.FixedReturns,parent:Qh},ef={id:"endpointResponseHeadersDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointResponseHeadersDataType"},tf={id:"endpointResponseHeadersReturnDeclarationRef",type:r.GenericReference,entityType:r.ReturnDeclaration,entityId:"endpointResponseHeadersReturnDeclaration"},nf={id:"endpointResponseHeadersDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Xe,asType:!1,defaultValue:{id:"endpointResponseHeadersDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:g.JSON,value:{},parent:ef,autogeneration:null,valueAsType:null},parent:tf},rf={id:"endpointReturnStatementRefTwo",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReturnStatement"},af={id:"endpointResponseHeadersReturnDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:r.ValueDescriptor,name:"Response headers",dataType:nf,required:!1,index:1,parentRelationType:C.FixedReturns,parent:rf},sf={id:"endpointResponseBodyReturnDeclarationRef",type:r.GenericReference,entityType:r.ReturnDeclaration,entityId:"endpointResponseBodyReturnDeclaration"},of={id:"endpointResponseBodyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Xe,defaultValue:null,parent:sf},lf={id:"endpointReturnStatementRefThree",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReturnStatement"},cf={id:"endpointResponseBodyReturnDeclaration",version:1,description:"The main data payload of the response.",type:r.ValueDescriptor,name:"Response body",dataType:of,required:!1,index:2,parentRelationType:C.FixedReturns,parent:lf},df={id:"endpointBuiltInBaseEntityRefFour",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},Uo={id:"endpointReachedTriggerActionDescriptor",type:r.ActionDescriptor,version:1,name:"Endpoint reached",description:"Fired when the endpoint is reached.",argumentsType:L.Fixed,dynamicArgumentTypes:null,fixedArguments:[kh,Jh,Hh,zh],returnsType:L.Fixed,fixedReturns:[Kh,af,cf],error:null,dynamicReturnTypes:null,parent:df},Sa={id:_.HTTP_ENDPOINT,version:1,description:"An HTTP endpoint that can be reached by a client from the internet.",name:_.HTTP_ENDPOINT,type:r.BuiltInBaseEntity,interactive:!1,abstract:!0,static:!0,properties:[gh,Go,Fo],abstractMethods:[Uo],extends:[],methods:[]},jt=Ve[r.BuiltInBaseEntity].BUILT_IN_RELATIONAL_DATABASE_ENTITY,uf={id:"relational-database-built-in-base-entity-identifier-property-data-type-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-identifier-property-data-type-id",entityType:r.DataType},pf={id:"relational-database-built-in-base-entity-identifier-property-ref-id",type:r.GenericReference,entityId:jt.properties.identifier,entityType:r.Property},aI={id:"relational-database-built-in-base-entity-identifier-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-identifier-property-default-value-id",type:r.PrimitiveValue,version:1,name:g.String,value:null,parent:uf,autogeneration:{type:xe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:pf},Cr={id:"relational-database-built-in-base-entity-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},Oa={required:!0,id:jt.properties.identifier,name:"Identifier name",version:1,type:r.Property,private:!1,abstract:!0,static:!0,implements:null,index:0,dataType:aI,description:"The name of the main database inside of the server instance where the data will be stored.",parent:Cr},sI={id:"relational-database-built-in-base-entity-username-property-data-type-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-username-property-data-type-idd",entityType:r.DataType},yf={id:"relational-database-built-in-base-entity-username-property-ref-id",type:r.GenericReference,entityId:jt.properties.username,entityType:r.Property},oI={id:"relational-database-built-in-base-entity-username-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-username-property-default-value-id",type:r.PrimitiveValue,version:1,name:g.String,value:"postgres",parent:{id:"relational-database-built-in-base-entity-username-property-data-type-default-value-parent-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-username-property-data-type-id",entityType:r.DataType},autogeneration:null,valueAsType:null},parent:yf},Ca={required:!0,id:jt.properties.username,name:"Username",version:1,type:r.Property,private:!1,abstract:!0,static:!0,implements:null,index:1,dataType:oI,description:"The username that will be used to connect to the database.",parent:Cr},lI={id:"relational-database-built-in-base-entity-password-property-data-type-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-password-property-data-type-id",entityType:r.DataType},hf={id:"relational-database-built-in-base-entity-password-property-ref-id",type:r.GenericReference,entityId:jt.properties.password,entityType:r.Property},cI={id:"relational-database-built-in-base-entity-password-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:hf},Ba={required:!0,id:jt.properties.password,name:"Password",version:1,type:r.Property,private:!1,abstract:!0,static:!0,implements:null,index:2,dataType:cI,description:"The password that will be used to connect to the database.",parent:Cr},ff={id:"relational-database-built-in-base-entity-min-size-property-data-type-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-min-size-property-data-type-id",entityType:r.DataType},mf={id:"relational-database-built-in-base-entity-min-size-property-ref-id",type:r.GenericReference,entityId:jt.properties.minSize,entityType:r.Property},dI={id:"relational-database-built-in-base-entity-min-size-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Ce,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-min-size-property-default-value-id",type:r.PrimitiveValue,version:1,name:g.Number,value:6,parent:ff,autogeneration:null,valueAsType:null},parent:mf},wa={required:!0,id:jt.properties.minSize,name:"Minimum GB size",version:1,type:r.Property,private:!1,abstract:!0,static:!0,implements:null,index:3,dataType:dI,description:"The minimum size of the database in GB.",parent:Cr},Tf={id:"relational-database-built-in-base-entity-default-property-data-type-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-default-property-data-type-id",entityType:r.DataType},Ef={id:"relational-database-built-in-base-entity-default-property-ref-id",type:r.GenericReference,entityId:jt.properties.default,entityType:r.Property},uI={id:"relational-database-built-in-base-entity-default-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Fn,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-default-property-default-value-id",type:r.PrimitiveValue,version:1,name:g.Boolean,value:!1,parent:Tf,autogeneration:null,valueAsType:null},parent:Ef},Rf={required:!0,id:jt.properties.default,name:"Default",version:1,type:r.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,dataType:uI,description:"If true, this database will be the default database for the server instance and all the new entities.",parent:Cr},bn={id:_.RELATIONAL_DATABASE,version:1,description:"This entity provisions a relational database in the cloud.",name:_.RELATIONAL_DATABASE,type:r.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[Oa,Ca,Ba,wa,Rf],abstractMethods:[],methods:[],extends:[]},bf={type:r.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",entityType:r.BuiltInBaseEntity,id:gt.DeletePersistedEntity},xo={type:r.FunctionDeclaration,id:gt.DeletePersistedEntity,name:gt.DeletePersistedEntity,description:"Permanently deletes the current copy of an entity from the database",version:1,parent:bf,inputs:[],calls:[],implements:null,collapsed:!1,returnStatements:[],index:0,private:!1,x:0,y:0},vf={type:r.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",entityType:r.BuiltInBaseEntity,id:gt.SoftDeletePersistedEntity},gf={type:r.FunctionDeclaration,id:gt.SoftDeletePersistedEntity,name:gt.SoftDeletePersistedEntity,description:"Designates the entity as deleted, but does not remove it from the database.",version:1,parent:vf,inputs:[],calls:[],implements:null,collapsed:!1,returnStatements:[],index:0,private:!1,x:0,y:0},If=Ve[r.BuiltInBaseEntity][_.PERSISTED_ENTITY].properties,pI={id:"persisted-built-in-base-entity-database-property-data-type-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-database-property-data-type-id",entityType:r.DataType},Pf={id:"persisted-built-in-base-entity-database-property-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-database-property-id",entityType:r.Property},yI={id:"persisted-built-in-base-entity-database-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:bn,asType:!1,defaultValue:null,parent:Pf},Df={id:"persisted-built-in-base-entity-database-property-parent-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},mi={required:!0,id:If.database,name:"Database",version:1,type:r.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:yI,description:"The database that the entity belongs to.",parent:Df},Af={id:"persisted-built-in-base-entity-identifier-property-data-type-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-identifier-property-data-type-id",entityType:r.DataType},Sf={id:"persisted-built-in-base-entity-identifier-property-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-identifier-property-id",entityType:r.Property},hI={id:"persisted-built-in-base-entity-identifier-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:fa,asType:!1,defaultValue:{id:"persisted-built-in-base-entity-identifier-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:g.UUID,value:null,parent:Af,autogeneration:{type:xe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:Sf},Of={id:"persisted-built-in-base-entity-identifier-property-parent-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},Cf={required:!0,id:If.identifier,name:"Identifier",version:1,type:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:hI,description:"Auto-generated unique identifier for the entity, can be used to identify the entity among other entities of the same type.",parent:Of},fI={id:"persisted-built-in-base-entity-deleted-at-property-data-type-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-deleted-at-property-data-type-id",entityType:r.DataType},Bf={id:"persisted-built-in-base-entity-deleted-at-property-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-deleted-at-property-id",entityType:r.Property},wf={id:"persisted-built-in-base-entity-deleted-at-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!0,constant:!1,entity:null,asType:!1,defaultValue:null,parent:Bf},_f={id:"persisted-built-in-base-entity-deleted-at-property-parent-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},Mf={required:!0,id:"persisted-built-in-base-entity-deleted-at-property-id",name:"Deleted at",version:1,type:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:wf,description:"The date and time when the entity was deleted.",parent:_f},mI={id:"persisted-built-in-base-entity-created-at-property-data-type-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-created-at-property-data-type-id",entityType:r.DataType},Nf={id:"persisted-built-in-base-entity-created-at-property-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-created-at-property-id",entityType:r.Property},$f={id:"persisted-built-in-base-entity-created-at-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:null,asType:!1,defaultValue:null,parent:Nf},Vf={id:"persisted-built-in-base-entity-created-at-property-parent-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},Lf={required:!0,id:"persisted-built-in-base-entity-created-at-property-id",name:"Created at",version:1,type:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:$f,description:"The date and time when the entity was created.",parent:Vf},TI={id:"persisted-built-in-base-entity-updated-at-property-data-type-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-updated-at-property-data-type-id",entityType:r.DataType},Gf={id:"persisted-built-in-base-entity-updated-at-property-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-updated-at-property-id",entityType:r.Property},Ff={id:"persisted-built-in-base-entity-updated-at-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:null,asType:!1,defaultValue:null,parent:Gf},Uf={id:"persisted-built-in-base-entity-updated-at-property-parent-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},xf={required:!0,id:"persisted-built-in-base-entity-updated-at-property-id",name:"Updated at",version:1,type:r.Property,private:!1,implements:null,abstract:!1,static:!1,index:0,dataType:Ff,description:"The date and time when the entity was last updated.",parent:Uf},Be={id:_.PERSISTED_ENTITY,version:1,description:"An entity that is permanently stored in the database and can be accessed at any point.",name:_.PERSISTED_ENTITY,type:r.BuiltInBaseEntity,abstract:!0,static:!1,interactive:!0,abstractMethods:[],properties:[mi,Cf,Mf,Lf,xf],methods:[xo,gf],extends:[]},jf={id:"cron-job-triggered-function-declaration-blueprint-parent-ref-id",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},jo={id:"cron-job-triggered-function-declaration-blueprint-id",name:"Cron job triggered",version:1,type:r.ActionDescriptor,argumentsType:L.None,returnsType:L.None,description:"Executed when the cron job is triggered",fixedArguments:[],dynamicArgumentTypes:null,error:null,fixedReturns:[],dynamicReturnTypes:null,parent:jf},kf=Ve[r.BuiltInBaseEntity].BUILT_IN_CRON_JOB_ENTITY,EI={id:"cron-job-built-in-base-entity-expression-property-data-type-ref",type:r.GenericReference,entityId:"cron-job-built-in-base-entity-expression-property-data-type",entityType:r.DataType},qf={id:"cron-job-built-in-base-entity-expression-property-ref",type:r.GenericReference,entityId:kf.properties.expression,entityType:r.Property},RI={id:"cron-job-built-in-base-entity-expression-property-data-type",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:qf},Jf={id:"cron-job-built-in-base-entity-ref",type:r.GenericReference,entityId:_.CRON_JOB,entityType:r.BuiltInBaseEntity},Wf={required:!0,id:kf.properties.expression,name:"Cron expression",version:1,type:r.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:RI,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:Jf},ko={id:_.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:_.CRON_JOB,type:r.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[Wf],methods:[],abstractMethods:[jo],extends:[]},Hf={type:r.GenericReference,id:"execution-built-in-entity-abort-method-parent-ref-id",entityType:r.BuiltInBaseEntity,entityId:"execution-built-in-entity-id"},qo={id:"execution-built-in-entity-abort-method-id",type:r.FunctionDeclaration,version:1,name:gt.AbortExecution,description:"Aborts the execution of the entity",inputs:[],returnStatements:[],calls:[],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:Hf},Jo={id:_.EXECUTION,type:r.BuiltInBaseEntity,version:1,name:_.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:[qo],abstractMethods:[]},bI=Ve[r.Condition]["not-empty"],Yf={type:r.GenericReference,id:"not-empty-condition-ref",entityType:r.ActionDescriptor,entityId:Ct.NotEmpty},zf={id:bI.inputs.leftHand,type:r.ValueDescriptor,version:1,name:"Value",description:"The value to check if it is not empty",dataType:null,required:!0,parentRelationType:C.FixedArguments,index:0,parent:Yf},kn={type:r.ActionDescriptor,id:Ct.NotEmpty,version:1,name:Ct.NotEmpty,description:"Checks if the value is not empty",parent:null,fixedArguments:[zf],fixedReturns:[],dynamicArgumentTypes:null,dynamicReturnTypes:null,argumentsType:L.Fixed,returnsType:L.None,error:null},Zf={[Ct.NotEmpty]:kn},Xf=Ve[r.Condition]["more-than-or-equal"],Qf={type:r.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-parent-ref",entityType:r.ActionDescriptor,entityId:Ae.MoreThanOrEqual},Kf={id:Xf.inputs.leftHand,type:r.ValueDescriptor,version:1,name:"First value",description:"The first value to compare",dataType:null,required:!0,parentRelationType:C.FixedArguments,index:0,parent:Qf},em={type:r.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-parent-ref",entityType:r.ActionDescriptor,entityId:Ae.MoreThanOrEqual},tm={id:Xf.inputs.rightHand,type:r.ValueDescriptor,version:1,name:"Second value",description:"The second value to compare",dataType:null,required:!0,parentRelationType:C.FixedArguments,index:1,parent:em},Br={type:r.ActionDescriptor,id:Ae.MoreThanOrEqual,version:1,name:Ae.MoreThanOrEqual,description:"Checks if the value is not empty",parent:null,fixedArguments:[Kf,tm],fixedReturns:[],dynamicArgumentTypes:null,dynamicReturnTypes:null,argumentsType:L.Fixed,returnsType:L.None,error:null},nm={[Ae.MoreThanOrEqual]:Br},vI={...Zf,...nm},_a={type:r.ActionDescriptor,id:Kt.PROJECT_PUBLICATION_COMPLETED,version:1,name:Kt.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:L.None,returnsType:L.None,error:null},gI={[Kt.PROJECT_PUBLICATION_COMPLETED]:_a},Wo=Ve[r.ValueDescriptor][Mo.ActionOngoingProcessOutputValue],rm={type:r.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",entityType:r.ValueDescriptor,entityId:Wo.id},im={id:Wo.dataType.id,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Jo,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:rm},Ho={id:Wo.id,type:r.ValueDescriptor,description:"A value that represents the ongoing process of the parent action",version:1,name:"Process",dataType:im,required:!0,index:0,parent:null,parentRelationType:C.OngoingProcessExecution};var Y;(function(n){n.assertEqual=a=>a;function e(a){}n.assertIs=e;function t(a){throw new Error}n.assertNever=t,n.arrayToEnum=a=>{const s={};for(const o of a)s[o]=o;return s},n.getValidEnumValues=a=>{const s=n.objectKeys(a).filter(u=>typeof a[a[u]]!="number"),o={};for(const u of s)o[u]=a[u];return n.objectValues(o)},n.objectValues=a=>n.objectKeys(a).map(function(s){return a[s]}),n.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},n.find=(a,s)=>{for(const o of a)if(s(o))return o},n.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)}n.joinValues=i,n.jsonStringifyReplacer=(a,s)=>typeof s=="bigint"?s.toString():s})(Y||(Y={}));var Yo;(function(n){n.mergeShapes=(e,t)=>({...e,...t})})(Yo||(Yo={}));const M=Y.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),vn=n=>{switch(typeof n){case"undefined":return M.undefined;case"string":return M.string;case"number":return isNaN(n)?M.nan:M.number;case"boolean":return M.boolean;case"function":return M.function;case"bigint":return M.bigint;case"symbol":return M.symbol;case"object":return Array.isArray(n)?M.array:n===null?M.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?M.promise:typeof Map<"u"&&n instanceof Map?M.map:typeof Set<"u"&&n instanceof Set?M.set:typeof Date<"u"&&n instanceof Date?M.date:M.object;default:return M.unknown}},P=Y.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"]),II=n=>JSON.stringify(n,null,2).replace(/"([^"]+)":/g,"$1:");class ft 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 u=i,p=0;for(;p<o.path.length;){const h=o.path[p];p===o.path.length-1?(u[h]=u[h]||{_errors:[]},u[h]._errors.push(t(o))):u[h]=u[h]||{_errors:[]},u=u[h],p++}}};return a(this),i}static assert(e){if(!(e instanceof ft))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Y.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()}}ft.create=n=>new ft(n);const wr=(n,e)=>{let t;switch(n.code){case P.invalid_type:n.received===M.undefined?t="Required":t=`Expected ${n.expected}, received ${n.received}`;break;case P.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(n.expected,Y.jsonStringifyReplacer)}`;break;case P.unrecognized_keys:t=`Unrecognized key(s) in object: ${Y.joinValues(n.keys,", ")}`;break;case P.invalid_union:t="Invalid input";break;case P.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${Y.joinValues(n.options)}`;break;case P.invalid_enum_value:t=`Invalid enum value. Expected ${Y.joinValues(n.options)}, received '${n.received}'`;break;case P.invalid_arguments:t="Invalid function arguments";break;case P.invalid_return_type:t="Invalid function return type";break;case P.invalid_date:t="Invalid date";break;case P.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(t=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?t=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?t=`Invalid input: must end with "${n.validation.endsWith}"`:Y.assertNever(n.validation):n.validation!=="regex"?t=`Invalid ${n.validation}`:t="Invalid";break;case P.too_small:n.type==="array"?t=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?t=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?t=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?t=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:t="Invalid input";break;case P.too_big:n.type==="array"?t=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?t=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?t=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?t=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?t=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:t="Invalid input";break;case P.custom:t="Invalid input";break;case P.invalid_intersection_types:t="Intersection results could not be merged";break;case P.not_multiple_of:t=`Number must be a multiple of ${n.multipleOf}`;break;case P.not_finite:t="Number must be finite";break;default:t=e.defaultError,Y.assertNever(n)}return{message:t}};let am=wr;function PI(n){am=n}function Ma(){return am}const Na=n=>{const{data:e,path:t,errorMaps:i,issueData:a}=n,s=[...t,...a.path||[]],o={...a,path:s};if(a.message!==void 0)return{...a,path:s,message:a.message};let u="";const p=i.filter(h=>!!h).slice().reverse();for(const h of p)u=h(o,{data:e,defaultError:u}).message;return{...a,path:s,message:u}},DI=[];function w(n,e){const t=Ma(),i=Na({issueData:e,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,t,t===wr?void 0:wr].filter(a=>!!a)});n.common.issues.push(i)}class Qe{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 x;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 Qe.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 x;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 x=Object.freeze({status:"aborted"}),_r=n=>({status:"dirty",value:n}),lt=n=>({status:"valid",value:n}),zo=n=>n.status==="aborted",Zo=n=>n.status==="dirty",Ti=n=>n.status==="valid",Ei=n=>typeof Promise<"u"&&n instanceof Promise;function $a(n,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!i:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(n):i?i.value:e.get(n)}function sm(n,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"?n!==e||!a:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?a.call(n,t):a?a.value=t:e.set(n,t),t}typeof SuppressedError=="function"&&SuppressedError;var V;(function(n){n.errToObj=e=>typeof e=="string"?{message:e}:e||{},n.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(V||(V={}));var Ri,bi;class kt{constructor(e,t,i,a){this._cachedPath=[],this.parent=e,this.data=t,this._path=i,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const om=(n,e)=>{if(Ti(e))return{success:!0,data:e.value};if(!n.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 ft(n.common.issues);return this._error=t,this._error}}};function q(n){if(!n)return{};const{errorMap:e,invalid_type_error:t,required_error:i,description:a}=n;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,u)=>{var p,h;const{message:m}=n;return o.code==="invalid_enum_value"?{message:m??u.defaultError}:typeof u.data>"u"?{message:(p=m??i)!==null&&p!==void 0?p:u.defaultError}:o.code!=="invalid_type"?{message:u.defaultError}:{message:(h=m??t)!==null&&h!==void 0?h:u.defaultError}},description:a}}class H{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 vn(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:vn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Qe,ctx:{common:e.parent.common,data:e.data,parsedType:vn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(Ei(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:vn(e)},s=this._parseSync({data:e,path:a.path,parent:a});return om(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:vn(e)},a=this._parse({data:e,path:i.path,parent:i}),s=await(Ei(a)?a:Promise.resolve(a));return om(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),u=()=>s.addIssue({code:P.custom,...i(a)});return typeof Promise<"u"&&o instanceof Promise?o.then(p=>p?!0:(u(),!1)):o?!0:(u(),!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 Gt({schema:this,typeName:U.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Jt.create(this,this._def)}nullable(){return Dn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Lt.create(this,this._def)}promise(){return Vr.create(this,this._def)}or(e){return Pi.create([this,e],this._def)}and(e){return Di.create(this,e,this._def)}transform(e){return new Gt({...q(this._def),schema:this,typeName:U.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new Bi({...q(this._def),innerType:this,defaultValue:t,typeName:U.ZodDefault})}brand(){return new Ko({typeName:U.ZodBranded,type:this,...q(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new wi({...q(this._def),innerType:this,catchValue:t,typeName:U.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return _i.create(this,e)}readonly(){return Mi.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const AI=/^c[^\s-]{8,}$/i,SI=/^[0-9a-z]+$/,OI=/^[0-9A-HJKMNP-TV-Z]{26}$/,CI=/^[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,BI=/^[a-z0-9_-]{21}$/i,wI=/^[-+]?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)?)??$/,_I=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,MI="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Xo;const NI=/^(?:(?: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])$/,$I=/^(([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})))$/,VI=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,lm="((\\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])))",LI=new RegExp(`^${lm}$`);function cm(n){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return n.precision?e=`${e}\\.\\d{${n.precision}}`:n.precision==null&&(e=`${e}(\\.\\d+)?`),e}function GI(n){return new RegExp(`^${cm(n)}$`)}function dm(n){let e=`${lm}T${cm(n)}`;const t=[];return t.push(n.local?"Z?":"Z"),n.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function FI(n,e){return!!((e==="v4"||!e)&&NI.test(n)||(e==="v6"||!e)&&$I.test(n))}class Vt extends H{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==M.string){const s=this._getOrReturnCtx(e);return w(s,{code:P.invalid_type,expected:M.string,received:s.parsedType}),x}const i=new Qe;let a;for(const s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(a=this._getOrReturnCtx(e,a),w(a,{code:P.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),w(a,{code:P.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,u=e.data.length<s.value;(o||u)&&(a=this._getOrReturnCtx(e,a),o?w(a,{code:P.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):u&&w(a,{code:P.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),i.dirty())}else if(s.kind==="email")_I.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"email",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="emoji")Xo||(Xo=new RegExp(MI,"u")),Xo.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"emoji",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="uuid")CI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"uuid",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="nanoid")BI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"nanoid",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid")AI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"cuid",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid2")SI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"cuid2",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="ulid")OI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"ulid",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),w(a,{validation:"url",code:P.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),w(a,{validation:"regex",code:P.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),w(a,{code:P.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),w(a,{code:P.invalid_string,validation:{startsWith:s.value},message:s.message}),i.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(a=this._getOrReturnCtx(e,a),w(a,{code:P.invalid_string,validation:{endsWith:s.value},message:s.message}),i.dirty()):s.kind==="datetime"?dm(s).test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{code:P.invalid_string,validation:"datetime",message:s.message}),i.dirty()):s.kind==="date"?LI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{code:P.invalid_string,validation:"date",message:s.message}),i.dirty()):s.kind==="time"?GI(s).test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{code:P.invalid_string,validation:"time",message:s.message}),i.dirty()):s.kind==="duration"?wI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"duration",code:P.invalid_string,message:s.message}),i.dirty()):s.kind==="ip"?FI(e.data,s.version)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"ip",code:P.invalid_string,message:s.message}),i.dirty()):s.kind==="base64"?VI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"base64",code:P.invalid_string,message:s.message}),i.dirty()):Y.assertNever(s);return{status:i.value,value:e.data}}_regex(e,t,i){return this.refinement(a=>e.test(a),{validation:t,code:P.invalid_string,...V.errToObj(i)})}_addCheck(e){return new Vt({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...V.errToObj(e)})}url(e){return this._addCheck({kind:"url",...V.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...V.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...V.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...V.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...V.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...V.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...V.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...V.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...V.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,...V.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,...V.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...V.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...V.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t==null?void 0:t.position,...V.errToObj(t==null?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...V.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...V.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...V.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...V.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...V.errToObj(t)})}nonempty(e){return this.min(1,V.errToObj(e))}trim(){return new Vt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Vt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Vt({...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}}Vt.create=n=>{var e;return new Vt({checks:[],typeName:U.ZodString,coerce:(e=n==null?void 0:n.coerce)!==null&&e!==void 0?e:!1,...q(n)})};function UI(n,e){const t=(n.toString().split(".")[1]||"").length,i=(e.toString().split(".")[1]||"").length,a=t>i?t:i,s=parseInt(n.toFixed(a).replace(".","")),o=parseInt(e.toFixed(a).replace(".",""));return s%o/Math.pow(10,a)}class gn extends H{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)!==M.number){const s=this._getOrReturnCtx(e);return w(s,{code:P.invalid_type,expected:M.number,received:s.parsedType}),x}let i;const a=new Qe;for(const s of this._def.checks)s.kind==="int"?Y.isInteger(e.data)||(i=this._getOrReturnCtx(e,i),w(i,{code:P.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),w(i,{code:P.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),w(i,{code:P.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="multipleOf"?UI(e.data,s.value)!==0&&(i=this._getOrReturnCtx(e,i),w(i,{code:P.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(i=this._getOrReturnCtx(e,i),w(i,{code:P.not_finite,message:s.message}),a.dirty()):Y.assertNever(s);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,V.toString(t))}gt(e,t){return this.setLimit("min",e,!1,V.toString(t))}lte(e,t){return this.setLimit("max",e,!0,V.toString(t))}lt(e,t){return this.setLimit("max",e,!1,V.toString(t))}setLimit(e,t,i,a){return new gn({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:V.toString(a)}]})}_addCheck(e){return new gn({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:V.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:V.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:V.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:V.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:V.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:V.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:V.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:V.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:V.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"&&Y.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)}}gn.create=n=>new gn({checks:[],typeName:U.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,...q(n)});class In extends H{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)!==M.bigint){const s=this._getOrReturnCtx(e);return w(s,{code:P.invalid_type,expected:M.bigint,received:s.parsedType}),x}let i;const a=new Qe;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),w(i,{code:P.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),w(i,{code:P.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),w(i,{code:P.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):Y.assertNever(s);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,V.toString(t))}gt(e,t){return this.setLimit("min",e,!1,V.toString(t))}lte(e,t){return this.setLimit("max",e,!0,V.toString(t))}lt(e,t){return this.setLimit("max",e,!1,V.toString(t))}setLimit(e,t,i,a){return new In({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:V.toString(a)}]})}_addCheck(e){return new In({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:V.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:V.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:V.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:V.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:V.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}}In.create=n=>{var e;return new In({checks:[],typeName:U.ZodBigInt,coerce:(e=n==null?void 0:n.coerce)!==null&&e!==void 0?e:!1,...q(n)})};class vi extends H{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==M.boolean){const i=this._getOrReturnCtx(e);return w(i,{code:P.invalid_type,expected:M.boolean,received:i.parsedType}),x}return lt(e.data)}}vi.create=n=>new vi({typeName:U.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,...q(n)});class qn extends H{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==M.date){const s=this._getOrReturnCtx(e);return w(s,{code:P.invalid_type,expected:M.date,received:s.parsedType}),x}if(isNaN(e.data.getTime())){const s=this._getOrReturnCtx(e);return w(s,{code:P.invalid_date}),x}const i=new Qe;let a;for(const s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(a=this._getOrReturnCtx(e,a),w(a,{code:P.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),w(a,{code:P.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),i.dirty()):Y.assertNever(s);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new qn({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:V.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:V.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}}qn.create=n=>new qn({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:U.ZodDate,...q(n)});class Va extends H{_parse(e){if(this._getType(e)!==M.symbol){const i=this._getOrReturnCtx(e);return w(i,{code:P.invalid_type,expected:M.symbol,received:i.parsedType}),x}return lt(e.data)}}Va.create=n=>new Va({typeName:U.ZodSymbol,...q(n)});class gi extends H{_parse(e){if(this._getType(e)!==M.undefined){const i=this._getOrReturnCtx(e);return w(i,{code:P.invalid_type,expected:M.undefined,received:i.parsedType}),x}return lt(e.data)}}gi.create=n=>new gi({typeName:U.ZodUndefined,...q(n)});class Ii extends H{_parse(e){if(this._getType(e)!==M.null){const i=this._getOrReturnCtx(e);return w(i,{code:P.invalid_type,expected:M.null,received:i.parsedType}),x}return lt(e.data)}}Ii.create=n=>new Ii({typeName:U.ZodNull,...q(n)});class Mr extends H{constructor(){super(...arguments),this._any=!0}_parse(e){return lt(e.data)}}Mr.create=n=>new Mr({typeName:U.ZodAny,...q(n)});class Jn extends H{constructor(){super(...arguments),this._unknown=!0}_parse(e){return lt(e.data)}}Jn.create=n=>new Jn({typeName:U.ZodUnknown,...q(n)});class nn extends H{_parse(e){const t=this._getOrReturnCtx(e);return w(t,{code:P.invalid_type,expected:M.never,received:t.parsedType}),x}}nn.create=n=>new nn({typeName:U.ZodNever,...q(n)});class La extends H{_parse(e){if(this._getType(e)!==M.undefined){const i=this._getOrReturnCtx(e);return w(i,{code:P.invalid_type,expected:M.void,received:i.parsedType}),x}return lt(e.data)}}La.create=n=>new La({typeName:U.ZodVoid,...q(n)});class Lt extends H{_parse(e){const{ctx:t,status:i}=this._processInputParams(e),a=this._def;if(t.parsedType!==M.array)return w(t,{code:P.invalid_type,expected:M.array,received:t.parsedType}),x;if(a.exactLength!==null){const o=t.data.length>a.exactLength.value,u=t.data.length<a.exactLength.value;(o||u)&&(w(t,{code:o?P.too_big:P.too_small,minimum:u?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&&(w(t,{code:P.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&&(w(t,{code:P.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,u)=>a.type._parseAsync(new kt(t,o,t.path,u)))).then(o=>Qe.mergeArray(i,o));const s=[...t.data].map((o,u)=>a.type._parseSync(new kt(t,o,t.path,u)));return Qe.mergeArray(i,s)}get element(){return this._def.type}min(e,t){return new Lt({...this._def,minLength:{value:e,message:V.toString(t)}})}max(e,t){return new Lt({...this._def,maxLength:{value:e,message:V.toString(t)}})}length(e,t){return new Lt({...this._def,exactLength:{value:e,message:V.toString(t)}})}nonempty(e){return this.min(1,e)}}Lt.create=(n,e)=>new Lt({type:n,minLength:null,maxLength:null,exactLength:null,typeName:U.ZodArray,...q(e)});function Nr(n){if(n instanceof we){const e={};for(const t in n.shape){const i=n.shape[t];e[t]=Jt.create(Nr(i))}return new we({...n._def,shape:()=>e})}else return n instanceof Lt?new Lt({...n._def,type:Nr(n.element)}):n instanceof Jt?Jt.create(Nr(n.unwrap())):n instanceof Dn?Dn.create(Nr(n.unwrap())):n instanceof qt?qt.create(n.items.map(e=>Nr(e))):n}class we extends H{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=Y.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==M.object){const h=this._getOrReturnCtx(e);return w(h,{code:P.invalid_type,expected:M.object,received:h.parsedType}),x}const{status:i,ctx:a}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),u=[];if(!(this._def.catchall instanceof nn&&this._def.unknownKeys==="strip"))for(const h in a.data)o.includes(h)||u.push(h);const p=[];for(const h of o){const m=s[h],T=a.data[h];p.push({key:{status:"valid",value:h},value:m._parse(new kt(a,T,a.path,h)),alwaysSet:h in a.data})}if(this._def.catchall instanceof nn){const h=this._def.unknownKeys;if(h==="passthrough")for(const m of u)p.push({key:{status:"valid",value:m},value:{status:"valid",value:a.data[m]}});else if(h==="strict")u.length>0&&(w(a,{code:P.unrecognized_keys,keys:u}),i.dirty());else if(h!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const h=this._def.catchall;for(const m of u){const T=a.data[m];p.push({key:{status:"valid",value:m},value:h._parse(new kt(a,T,a.path,m)),alwaysSet:m in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const h=[];for(const m of p){const T=await m.key,b=await m.value;h.push({key:T,value:b,alwaysSet:m.alwaysSet})}return h}).then(h=>Qe.mergeObjectSync(i,h)):Qe.mergeObjectSync(i,p)}get shape(){return this._def.shape()}strict(e){return V.errToObj,new we({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,i)=>{var a,s,o,u;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:(u=V.errToObj(e).message)!==null&&u!==void 0?u:p}:{message:p}}}:{}})}strip(){return new we({...this._def,unknownKeys:"strip"})}passthrough(){return new we({...this._def,unknownKeys:"passthrough"})}extend(e){return new we({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new we({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:U.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new we({...this._def,catchall:e})}pick(e){const t={};return Y.objectKeys(e).forEach(i=>{e[i]&&this.shape[i]&&(t[i]=this.shape[i])}),new we({...this._def,shape:()=>t})}omit(e){const t={};return Y.objectKeys(this.shape).forEach(i=>{e[i]||(t[i]=this.shape[i])}),new we({...this._def,shape:()=>t})}deepPartial(){return Nr(this)}partial(e){const t={};return Y.objectKeys(this.shape).forEach(i=>{const a=this.shape[i];e&&!e[i]?t[i]=a:t[i]=a.optional()}),new we({...this._def,shape:()=>t})}required(e){const t={};return Y.objectKeys(this.shape).forEach(i=>{if(e&&!e[i])t[i]=this.shape[i];else{let s=this.shape[i];for(;s instanceof Jt;)s=s._def.innerType;t[i]=s}}),new we({...this._def,shape:()=>t})}keyof(){return um(Y.objectKeys(this.shape))}}we.create=(n,e)=>new we({shape:()=>n,unknownKeys:"strip",catchall:nn.create(),typeName:U.ZodObject,...q(e)}),we.strictCreate=(n,e)=>new we({shape:()=>n,unknownKeys:"strict",catchall:nn.create(),typeName:U.ZodObject,...q(e)}),we.lazycreate=(n,e)=>new we({shape:n,unknownKeys:"strip",catchall:nn.create(),typeName:U.ZodObject,...q(e)});class Pi extends H{_parse(e){const{ctx:t}=this._processInputParams(e),i=this._def.options;function a(s){for(const u of s)if(u.result.status==="valid")return u.result;for(const u of s)if(u.result.status==="dirty")return t.common.issues.push(...u.ctx.common.issues),u.result;const o=s.map(u=>new ft(u.ctx.common.issues));return w(t,{code:P.invalid_union,unionErrors:o}),x}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 h={...t,common:{...t.common,issues:[]},parent:null},m=p._parseSync({data:t.data,path:t.path,parent:h});if(m.status==="valid")return m;m.status==="dirty"&&!s&&(s={result:m,ctx:h}),h.common.issues.length&&o.push(h.common.issues)}if(s)return t.common.issues.push(...s.ctx.common.issues),s.result;const u=o.map(p=>new ft(p));return w(t,{code:P.invalid_union,unionErrors:u}),x}}get options(){return this._def.options}}Pi.create=(n,e)=>new Pi({options:n,typeName:U.ZodUnion,...q(e)});const rn=n=>n instanceof Si?rn(n.schema):n instanceof Gt?rn(n.innerType()):n instanceof Oi?[n.value]:n instanceof Pn?n.options:n instanceof Ci?Y.objectValues(n.enum):n instanceof Bi?rn(n._def.innerType):n instanceof gi?[void 0]:n instanceof Ii?[null]:n instanceof Jt?[void 0,...rn(n.unwrap())]:n instanceof Dn?[null,...rn(n.unwrap())]:n instanceof Ko||n instanceof Mi?rn(n.unwrap()):n instanceof wi?rn(n._def.innerType):[];class Ga extends H{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==M.object)return w(t,{code:P.invalid_type,expected:M.object,received:t.parsedType}),x;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}):(w(t,{code:P.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),x)}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=rn(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 u of o){if(a.has(u))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(u)}`);a.set(u,s)}}return new Ga({typeName:U.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:a,...q(i)})}}function Qo(n,e){const t=vn(n),i=vn(e);if(n===e)return{valid:!0,data:n};if(t===M.object&&i===M.object){const a=Y.objectKeys(e),s=Y.objectKeys(n).filter(u=>a.indexOf(u)!==-1),o={...n,...e};for(const u of s){const p=Qo(n[u],e[u]);if(!p.valid)return{valid:!1};o[u]=p.data}return{valid:!0,data:o}}else if(t===M.array&&i===M.array){if(n.length!==e.length)return{valid:!1};const a=[];for(let s=0;s<n.length;s++){const o=n[s],u=e[s],p=Qo(o,u);if(!p.valid)return{valid:!1};a.push(p.data)}return{valid:!0,data:a}}else return t===M.date&&i===M.date&&+n==+e?{valid:!0,data:n}:{valid:!1}}class Di extends H{_parse(e){const{status:t,ctx:i}=this._processInputParams(e),a=(s,o)=>{if(zo(s)||zo(o))return x;const u=Qo(s.value,o.value);return u.valid?((Zo(s)||Zo(o))&&t.dirty(),{status:t.value,value:u.data}):(w(i,{code:P.invalid_intersection_types}),x)};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}))}}Di.create=(n,e,t)=>new Di({left:n,right:e,typeName:U.ZodIntersection,...q(t)});class qt extends H{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==M.array)return w(i,{code:P.invalid_type,expected:M.array,received:i.parsedType}),x;if(i.data.length<this._def.items.length)return w(i,{code:P.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),x;!this._def.rest&&i.data.length>this._def.items.length&&(w(i,{code:P.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const s=[...i.data].map((o,u)=>{const p=this._def.items[u]||this._def.rest;return p?p._parse(new kt(i,o,i.path,u)):null}).filter(o=>!!o);return i.common.async?Promise.all(s).then(o=>Qe.mergeArray(t,o)):Qe.mergeArray(t,s)}get items(){return this._def.items}rest(e){return new qt({...this._def,rest:e})}}qt.create=(n,e)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new qt({items:n,typeName:U.ZodTuple,rest:null,...q(e)})};class Ai extends H{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!==M.object)return w(i,{code:P.invalid_type,expected:M.object,received:i.parsedType}),x;const a=[],s=this._def.keyType,o=this._def.valueType;for(const u in i.data)a.push({key:s._parse(new kt(i,u,i.path,u)),value:o._parse(new kt(i,i.data[u],i.path,u)),alwaysSet:u in i.data});return i.common.async?Qe.mergeObjectAsync(t,a):Qe.mergeObjectSync(t,a)}get element(){return this._def.valueType}static create(e,t,i){return t instanceof H?new Ai({keyType:e,valueType:t,typeName:U.ZodRecord,...q(i)}):new Ai({keyType:Vt.create(),valueType:e,typeName:U.ZodRecord,...q(t)})}}class Fa extends H{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!==M.map)return w(i,{code:P.invalid_type,expected:M.map,received:i.parsedType}),x;const a=this._def.keyType,s=this._def.valueType,o=[...i.data.entries()].map(([u,p],h)=>({key:a._parse(new kt(i,u,i.path,[h,"key"])),value:s._parse(new kt(i,p,i.path,[h,"value"]))}));if(i.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const p of o){const h=await p.key,m=await p.value;if(h.status==="aborted"||m.status==="aborted")return x;(h.status==="dirty"||m.status==="dirty")&&t.dirty(),u.set(h.value,m.value)}return{status:t.value,value:u}})}else{const u=new Map;for(const p of o){const h=p.key,m=p.value;if(h.status==="aborted"||m.status==="aborted")return x;(h.status==="dirty"||m.status==="dirty")&&t.dirty(),u.set(h.value,m.value)}return{status:t.value,value:u}}}}Fa.create=(n,e,t)=>new Fa({valueType:e,keyType:n,typeName:U.ZodMap,...q(t)});class Wn extends H{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==M.set)return w(i,{code:P.invalid_type,expected:M.set,received:i.parsedType}),x;const a=this._def;a.minSize!==null&&i.data.size<a.minSize.value&&(w(i,{code:P.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&&(w(i,{code:P.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 h=new Set;for(const m of p){if(m.status==="aborted")return x;m.status==="dirty"&&t.dirty(),h.add(m.value)}return{status:t.value,value:h}}const u=[...i.data.values()].map((p,h)=>s._parse(new kt(i,p,i.path,h)));return i.common.async?Promise.all(u).then(p=>o(p)):o(u)}min(e,t){return new Wn({...this._def,minSize:{value:e,message:V.toString(t)}})}max(e,t){return new Wn({...this._def,maxSize:{value:e,message:V.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Wn.create=(n,e)=>new Wn({valueType:n,minSize:null,maxSize:null,typeName:U.ZodSet,...q(e)});class $r extends H{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==M.function)return w(t,{code:P.invalid_type,expected:M.function,received:t.parsedType}),x;function i(u,p){return Na({data:u,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Ma(),wr].filter(h=>!!h),issueData:{code:P.invalid_arguments,argumentsError:p}})}function a(u,p){return Na({data:u,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Ma(),wr].filter(h=>!!h),issueData:{code:P.invalid_return_type,returnTypeError:p}})}const s={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof Vr){const u=this;return lt(async function(...p){const h=new ft([]),m=await u._def.args.parseAsync(p,s).catch(I=>{throw h.addIssue(i(p,I)),h}),T=await Reflect.apply(o,this,m);return await u._def.returns._def.type.parseAsync(T,s).catch(I=>{throw h.addIssue(a(T,I)),h})})}else{const u=this;return lt(function(...p){const h=u._def.args.safeParse(p,s);if(!h.success)throw new ft([i(p,h.error)]);const m=Reflect.apply(o,this,h.data),T=u._def.returns.safeParse(m,s);if(!T.success)throw new ft([a(m,T.error)]);return T.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new $r({...this._def,args:qt.create(e).rest(Jn.create())})}returns(e){return new $r({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,i){return new $r({args:e||qt.create([]).rest(Jn.create()),returns:t||Jn.create(),typeName:U.ZodFunction,...q(i)})}}class Si extends H{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})}}Si.create=(n,e)=>new Si({getter:n,typeName:U.ZodLazy,...q(e)});class Oi extends H{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return w(t,{received:t.data,code:P.invalid_literal,expected:this._def.value}),x}return{status:"valid",value:e.data}}get value(){return this._def.value}}Oi.create=(n,e)=>new Oi({value:n,typeName:U.ZodLiteral,...q(e)});function um(n,e){return new Pn({values:n,typeName:U.ZodEnum,...q(e)})}class Pn extends H{constructor(){super(...arguments),Ri.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),i=this._def.values;return w(t,{expected:Y.joinValues(i),received:t.parsedType,code:P.invalid_type}),x}if($a(this,Ri,"f")||sm(this,Ri,new Set(this._def.values),"f"),!$a(this,Ri,"f").has(e.data)){const t=this._getOrReturnCtx(e),i=this._def.values;return w(t,{received:t.data,code:P.invalid_enum_value,options:i}),x}return lt(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 Pn.create(e,{...this._def,...t})}exclude(e,t=this._def){return Pn.create(this.options.filter(i=>!e.includes(i)),{...this._def,...t})}}Ri=new WeakMap,Pn.create=um;class Ci extends H{constructor(){super(...arguments),bi.set(this,void 0)}_parse(e){const t=Y.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==M.string&&i.parsedType!==M.number){const a=Y.objectValues(t);return w(i,{expected:Y.joinValues(a),received:i.parsedType,code:P.invalid_type}),x}if($a(this,bi,"f")||sm(this,bi,new Set(Y.getValidEnumValues(this._def.values)),"f"),!$a(this,bi,"f").has(e.data)){const a=Y.objectValues(t);return w(i,{received:i.data,code:P.invalid_enum_value,options:a}),x}return lt(e.data)}get enum(){return this._def.values}}bi=new WeakMap,Ci.create=(n,e)=>new Ci({values:n,typeName:U.ZodNativeEnum,...q(e)});class Vr extends H{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==M.promise&&t.common.async===!1)return w(t,{code:P.invalid_type,expected:M.promise,received:t.parsedType}),x;const i=t.parsedType===M.promise?t.data:Promise.resolve(t.data);return lt(i.then(a=>this._def.type.parseAsync(a,{path:t.path,errorMap:t.common.contextualErrorMap})))}}Vr.create=(n,e)=>new Vr({type:n,typeName:U.ZodPromise,...q(e)});class Gt extends H{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===U.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=>{w(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 u=>{if(t.value==="aborted")return x;const p=await this._def.schema._parseAsync({data:u,path:i.path,parent:i});return p.status==="aborted"?x:p.status==="dirty"||t.value==="dirty"?_r(p.value):p});{if(t.value==="aborted")return x;const u=this._def.schema._parseSync({data:o,path:i.path,parent:i});return u.status==="aborted"?x:u.status==="dirty"||t.value==="dirty"?_r(u.value):u}}if(a.type==="refinement"){const o=u=>{const p=a.refinement(u,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 u};if(i.common.async===!1){const u=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return u.status==="aborted"?x:(u.status==="dirty"&&t.dirty(),o(u.value),{status:t.value,value:u.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(u=>u.status==="aborted"?x:(u.status==="dirty"&&t.dirty(),o(u.value).then(()=>({status:t.value,value:u.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(!Ti(o))return o;const u=a.transform(o.value,s);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:u}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(o=>Ti(o)?Promise.resolve(a.transform(o.value,s)).then(u=>({status:t.value,value:u})):o);Y.assertNever(a)}}Gt.create=(n,e,t)=>new Gt({schema:n,typeName:U.ZodEffects,effect:e,...q(t)}),Gt.createWithPreprocess=(n,e,t)=>new Gt({schema:e,effect:{type:"preprocess",transform:n},typeName:U.ZodEffects,...q(t)});class Jt extends H{_parse(e){return this._getType(e)===M.undefined?lt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Jt.create=(n,e)=>new Jt({innerType:n,typeName:U.ZodOptional,...q(e)});class Dn extends H{_parse(e){return this._getType(e)===M.null?lt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Dn.create=(n,e)=>new Dn({innerType:n,typeName:U.ZodNullable,...q(e)});class Bi extends H{_parse(e){const{ctx:t}=this._processInputParams(e);let i=t.data;return t.parsedType===M.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Bi.create=(n,e)=>new Bi({innerType:n,typeName:U.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...q(e)});class wi extends H{_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 Ei(a)?a.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new ft(i.common.issues)},input:i.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new ft(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}wi.create=(n,e)=>new wi({innerType:n,typeName:U.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...q(e)});class Ua extends H{_parse(e){if(this._getType(e)!==M.nan){const i=this._getOrReturnCtx(e);return w(i,{code:P.invalid_type,expected:M.nan,received:i.parsedType}),x}return{status:"valid",value:e.data}}}Ua.create=n=>new Ua({typeName:U.ZodNaN,...q(n)});const xI=Symbol("zod_brand");class Ko extends H{_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 _i extends H{_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"?x:s.status==="dirty"?(t.dirty(),_r(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"?x: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 _i({in:e,out:t,typeName:U.ZodPipeline})}}class Mi extends H{_parse(e){const t=this._def.innerType._parse(e),i=a=>(Ti(a)&&(a.value=Object.freeze(a.value)),a);return Ei(t)?t.then(a=>i(a)):i(t)}unwrap(){return this._def.innerType}}Mi.create=(n,e)=>new Mi({innerType:n,typeName:U.ZodReadonly,...q(e)});function pm(n,e={},t){return n?Mr.create().superRefine((i,a)=>{var s,o;if(!n(i)){const u=typeof e=="function"?e(i):typeof e=="string"?{message:e}:e,p=(o=(s=u.fatal)!==null&&s!==void 0?s:t)!==null&&o!==void 0?o:!0,h=typeof u=="string"?{message:u}:u;a.addIssue({code:"custom",...h,fatal:p})}}):Mr.create()}const jI={object:we.lazycreate};var U;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(U||(U={}));const kI=(n,e={message:`Input not instance of ${n.name}`})=>pm(t=>t instanceof n,e),xa=Vt.create,el=gn.create,qI=Ua.create,JI=In.create,tl=vi.create,ym=qn.create,WI=Va.create,HI=gi.create,hm=Ii.create,YI=Mr.create,ja=Jn.create,zI=nn.create,ZI=La.create,XI=Lt.create,fm=we.create,QI=we.strictCreate,KI=Pi.create,eP=Ga.create,tP=Di.create,nP=qt.create,mm=Ai.create,rP=Fa.create,iP=Wn.create,aP=$r.create,sP=Si.create,oP=Oi.create,Tm=Pn.create,lP=Ci.create,cP=Vr.create,Em=Gt.create,dP=Jt.create,uP=Dn.create,pP=Gt.createWithPreprocess,yP=_i.create;var c=Object.freeze({__proto__:null,defaultErrorMap:wr,setErrorMap:PI,getErrorMap:Ma,makeIssue:Na,EMPTY_PATH:DI,addIssueToContext:w,ParseStatus:Qe,INVALID:x,DIRTY:_r,OK:lt,isAborted:zo,isDirty:Zo,isValid:Ti,isAsync:Ei,get util(){return Y},get objectUtil(){return Yo},ZodParsedType:M,getParsedType:vn,ZodType:H,datetimeRegex:dm,ZodString:Vt,ZodNumber:gn,ZodBigInt:In,ZodBoolean:vi,ZodDate:qn,ZodSymbol:Va,ZodUndefined:gi,ZodNull:Ii,ZodAny:Mr,ZodUnknown:Jn,ZodNever:nn,ZodVoid:La,ZodArray:Lt,ZodObject:we,ZodUnion:Pi,ZodDiscriminatedUnion:Ga,ZodIntersection:Di,ZodTuple:qt,ZodRecord:Ai,ZodMap:Fa,ZodSet:Wn,ZodFunction:$r,ZodLazy:Si,ZodLiteral:Oi,ZodEnum:Pn,ZodNativeEnum:Ci,ZodPromise:Vr,ZodEffects:Gt,ZodTransformer:Gt,ZodOptional:Jt,ZodNullable:Dn,ZodDefault:Bi,ZodCatch:wi,ZodNaN:Ua,BRAND:xI,ZodBranded:Ko,ZodPipeline:_i,ZodReadonly:Mi,custom:pm,Schema:H,ZodSchema:H,late:jI,get ZodFirstPartyTypeKind(){return U},coerce:{string:n=>Vt.create({...n,coerce:!0}),number:n=>gn.create({...n,coerce:!0}),boolean:n=>vi.create({...n,coerce:!0}),bigint:n=>In.create({...n,coerce:!0}),date:n=>qn.create({...n,coerce:!0})},any:YI,array:XI,bigint:JI,boolean:tl,date:ym,discriminatedUnion:eP,effect:Em,enum:Tm,function:aP,instanceof:kI,intersection:tP,lazy:sP,literal:oP,map:rP,nan:qI,nativeEnum:lP,never:zI,null:hm,nullable:uP,number:el,object:fm,oboolean:()=>tl().optional(),onumber:()=>el().optional(),optional:dP,ostring:()=>xa().optional(),pipeline:yP,preprocess:pP,promise:cP,record:mm,set:iP,strictObject:QI,string:xa,symbol:WI,transformer:Em,tuple:nP,undefined:HI,union:KI,unknown:ja,void:ZI,NEVER:x,ZodIssueCode:P,quotelessJson:II,ZodError:ft});function Rm(n){var a,s,o;if(!(n!=null&&n.dataType))return ja();const e=n.dataType.isNullable||!1,t=n.dataType.isList||!1;let i=ja();if(((a=n.dataType.entity)==null?void 0:a.type)===r.PrimitiveEntity)switch(n.dataType.entity.name){case g.String:i=xa();break;case g.JSON:i=mm(ja());break;case g.Number:i=el();break;case g.Boolean:i=tl();break;case g.Date:i=ym();break;case g.Enum:{const u=n.dataType.options||[];if(u.length===0)throw new Error(`Enum property ${n.name} has no options`);i=Tm(u);break}case g.Null:i=hm();break;case g.UUID:i=xa().uuid();break}else if(((s=n.dataType.entity)==null?void 0:s.type)===r.CustomEntity)i=bm(n.dataType.entity);else throw new Error(`Unsupported data type validation: ${(o=n.dataType.entity)==null?void 0:o.type}`);return e&&(i=i.nullable()),t&&(i=i.array()),i}function bm(n){const e=fm({});for(const t of n.properties){const i=Rm(t);e.shape[t.name]=i}return e}function vm(n){const e=n.rangeStart;return new Date(e.getTime()+Math.random()*(Date.now()-e.getTime()))}function gm(n){const e=n.rangeEnd;return new Date(Math.random()*e.getTime())}function Im(n){const e=n.rangeStart,t=n.rangeEnd;return new Date(e.getTime()+Math.random()*(t.getTime()-e.getTime()))}function Pm(n){return n.rangeStart&&n.rangeEnd?Im(n):n.rangeStart?vm(n):n.rangeEnd?gm(n):new Date}function hP(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Dm={},ka={},qa={};Object.defineProperty(qa,"__esModule",{value:!0}),qa.default=mP;let Ja;const fP=new Uint8Array(16);function mP(){if(!Ja&&(Ja=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ja))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ja(fP)}var An={},Hn={},Wa={};Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.default=void 0;var TP=/^(?:[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;Wa.default=TP,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.default=void 0;var EP=RP(Wa);function RP(n){return n&&n.__esModule?n:{default:n}}function bP(n){return typeof n=="string"&&EP.default.test(n)}var vP=bP;Hn.default=vP,Object.defineProperty(An,"__esModule",{value:!0}),An.default=void 0,An.unsafeStringify=Am;var gP=IP(Hn);function IP(n){return n&&n.__esModule?n:{default:n}}const ze=[];for(let n=0;n<256;++n)ze.push((n+256).toString(16).slice(1));function Am(n,e=0){return ze[n[e+0]]+ze[n[e+1]]+ze[n[e+2]]+ze[n[e+3]]+"-"+ze[n[e+4]]+ze[n[e+5]]+"-"+ze[n[e+6]]+ze[n[e+7]]+"-"+ze[n[e+8]]+ze[n[e+9]]+"-"+ze[n[e+10]]+ze[n[e+11]]+ze[n[e+12]]+ze[n[e+13]]+ze[n[e+14]]+ze[n[e+15]]}function PP(n,e=0){const t=Am(n,e);if(!(0,gP.default)(t))throw TypeError("Stringified UUID is invalid");return t}var DP=PP;An.default=DP,Object.defineProperty(ka,"__esModule",{value:!0}),ka.default=void 0;var AP=OP(qa),SP=An;function OP(n){return n&&n.__esModule?n:{default:n}}let Sm,nl,rl=0,il=0;function CP(n,e,t){let i=e&&t||0;const a=e||new Array(16);n=n||{};let s=n.node||Sm,o=n.clockseq!==void 0?n.clockseq:nl;if(s==null||o==null){const b=n.random||(n.rng||AP.default)();s==null&&(s=Sm=[b[0]|1,b[1],b[2],b[3],b[4],b[5]]),o==null&&(o=nl=(b[6]<<8|b[7])&16383)}let u=n.msecs!==void 0?n.msecs:Date.now(),p=n.nsecs!==void 0?n.nsecs:il+1;const h=u-rl+(p-il)/1e4;if(h<0&&n.clockseq===void 0&&(o=o+1&16383),(h<0||u>rl)&&n.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");rl=u,il=p,nl=o,u+=122192928e5;const m=((u&268435455)*1e4+p)%4294967296;a[i++]=m>>>24&255,a[i++]=m>>>16&255,a[i++]=m>>>8&255,a[i++]=m&255;const T=u/4294967296*1e4&268435455;a[i++]=T>>>8&255,a[i++]=T&255,a[i++]=T>>>24&15|16,a[i++]=T>>>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,SP.unsafeStringify)(a)}var BP=CP;ka.default=BP;var Ha={},Sn={},Ni={};Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.default=void 0;var wP=_P(Hn);function _P(n){return n&&n.__esModule?n:{default:n}}function MP(n){if(!(0,wP.default)(n))throw TypeError("Invalid UUID");let e;const t=new Uint8Array(16);return t[0]=(e=parseInt(n.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t[4]=(e=parseInt(n.slice(9,13),16))>>>8,t[5]=e&255,t[6]=(e=parseInt(n.slice(14,18),16))>>>8,t[7]=e&255,t[8]=(e=parseInt(n.slice(19,23),16))>>>8,t[9]=e&255,t[10]=(e=parseInt(n.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 NP=MP;Ni.default=NP,Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.URL=Sn.DNS=void 0,Sn.default=FP;var $P=An,VP=LP(Ni);function LP(n){return n&&n.__esModule?n:{default:n}}function GP(n){n=unescape(encodeURIComponent(n));const e=[];for(let t=0;t<n.length;++t)e.push(n.charCodeAt(t));return e}const Om="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Sn.DNS=Om;const Cm="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Sn.URL=Cm;function FP(n,e,t){function i(a,s,o,u){var p;if(typeof a=="string"&&(a=GP(a)),typeof s=="string"&&(s=(0,VP.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 h=new Uint8Array(16+a.length);if(h.set(s),h.set(a,s.length),h=t(h),h[6]=h[6]&15|e,h[8]=h[8]&63|128,o){u=u||0;for(let m=0;m<16;++m)o[u+m]=h[m];return o}return(0,$P.unsafeStringify)(h)}try{i.name=n}catch{}return i.DNS=Om,i.URL=Cm,i}var Ya={};Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.default=void 0;function UP(n){if(typeof n=="string"){const e=unescape(encodeURIComponent(n));n=new Uint8Array(e.length);for(let t=0;t<e.length;++t)n[t]=e.charCodeAt(t)}return xP(jP(kP(n),n.length*8))}function xP(n){const e=[],t=n.length*32,i="0123456789abcdef";for(let a=0;a<t;a+=8){const s=n[a>>5]>>>a%32&255,o=parseInt(i.charAt(s>>>4&15)+i.charAt(s&15),16);e.push(o)}return e}function Bm(n){return(n+64>>>9<<4)+14+1}function jP(n,e){n[e>>5]|=128<<e%32,n[Bm(e)-1]=e;let t=1732584193,i=-271733879,a=-1732584194,s=271733878;for(let o=0;o<n.length;o+=16){const u=t,p=i,h=a,m=s;t=Ke(t,i,a,s,n[o],7,-680876936),s=Ke(s,t,i,a,n[o+1],12,-389564586),a=Ke(a,s,t,i,n[o+2],17,606105819),i=Ke(i,a,s,t,n[o+3],22,-1044525330),t=Ke(t,i,a,s,n[o+4],7,-176418897),s=Ke(s,t,i,a,n[o+5],12,1200080426),a=Ke(a,s,t,i,n[o+6],17,-1473231341),i=Ke(i,a,s,t,n[o+7],22,-45705983),t=Ke(t,i,a,s,n[o+8],7,1770035416),s=Ke(s,t,i,a,n[o+9],12,-1958414417),a=Ke(a,s,t,i,n[o+10],17,-42063),i=Ke(i,a,s,t,n[o+11],22,-1990404162),t=Ke(t,i,a,s,n[o+12],7,1804603682),s=Ke(s,t,i,a,n[o+13],12,-40341101),a=Ke(a,s,t,i,n[o+14],17,-1502002290),i=Ke(i,a,s,t,n[o+15],22,1236535329),t=et(t,i,a,s,n[o+1],5,-165796510),s=et(s,t,i,a,n[o+6],9,-1069501632),a=et(a,s,t,i,n[o+11],14,643717713),i=et(i,a,s,t,n[o],20,-373897302),t=et(t,i,a,s,n[o+5],5,-701558691),s=et(s,t,i,a,n[o+10],9,38016083),a=et(a,s,t,i,n[o+15],14,-660478335),i=et(i,a,s,t,n[o+4],20,-405537848),t=et(t,i,a,s,n[o+9],5,568446438),s=et(s,t,i,a,n[o+14],9,-1019803690),a=et(a,s,t,i,n[o+3],14,-187363961),i=et(i,a,s,t,n[o+8],20,1163531501),t=et(t,i,a,s,n[o+13],5,-1444681467),s=et(s,t,i,a,n[o+2],9,-51403784),a=et(a,s,t,i,n[o+7],14,1735328473),i=et(i,a,s,t,n[o+12],20,-1926607734),t=tt(t,i,a,s,n[o+5],4,-378558),s=tt(s,t,i,a,n[o+8],11,-2022574463),a=tt(a,s,t,i,n[o+11],16,1839030562),i=tt(i,a,s,t,n[o+14],23,-35309556),t=tt(t,i,a,s,n[o+1],4,-1530992060),s=tt(s,t,i,a,n[o+4],11,1272893353),a=tt(a,s,t,i,n[o+7],16,-155497632),i=tt(i,a,s,t,n[o+10],23,-1094730640),t=tt(t,i,a,s,n[o+13],4,681279174),s=tt(s,t,i,a,n[o],11,-358537222),a=tt(a,s,t,i,n[o+3],16,-722521979),i=tt(i,a,s,t,n[o+6],23,76029189),t=tt(t,i,a,s,n[o+9],4,-640364487),s=tt(s,t,i,a,n[o+12],11,-421815835),a=tt(a,s,t,i,n[o+15],16,530742520),i=tt(i,a,s,t,n[o+2],23,-995338651),t=nt(t,i,a,s,n[o],6,-198630844),s=nt(s,t,i,a,n[o+7],10,1126891415),a=nt(a,s,t,i,n[o+14],15,-1416354905),i=nt(i,a,s,t,n[o+5],21,-57434055),t=nt(t,i,a,s,n[o+12],6,1700485571),s=nt(s,t,i,a,n[o+3],10,-1894986606),a=nt(a,s,t,i,n[o+10],15,-1051523),i=nt(i,a,s,t,n[o+1],21,-2054922799),t=nt(t,i,a,s,n[o+8],6,1873313359),s=nt(s,t,i,a,n[o+15],10,-30611744),a=nt(a,s,t,i,n[o+6],15,-1560198380),i=nt(i,a,s,t,n[o+13],21,1309151649),t=nt(t,i,a,s,n[o+4],6,-145523070),s=nt(s,t,i,a,n[o+11],10,-1120210379),a=nt(a,s,t,i,n[o+2],15,718787259),i=nt(i,a,s,t,n[o+9],21,-343485551),t=On(t,u),i=On(i,p),a=On(a,h),s=On(s,m)}return[t,i,a,s]}function kP(n){if(n.length===0)return[];const e=n.length*8,t=new Uint32Array(Bm(e));for(let i=0;i<e;i+=8)t[i>>5]|=(n[i/8]&255)<<i%32;return t}function On(n,e){const t=(n&65535)+(e&65535);return(n>>16)+(e>>16)+(t>>16)<<16|t&65535}function qP(n,e){return n<<e|n>>>32-e}function za(n,e,t,i,a,s){return On(qP(On(On(e,n),On(i,s)),a),t)}function Ke(n,e,t,i,a,s,o){return za(e&t|~e&i,n,e,a,s,o)}function et(n,e,t,i,a,s,o){return za(e&i|t&~i,n,e,a,s,o)}function tt(n,e,t,i,a,s,o){return za(e^t^i,n,e,a,s,o)}function nt(n,e,t,i,a,s,o){return za(t^(e|~i),n,e,a,s,o)}var JP=UP;Ya.default=JP,Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.default=void 0;var WP=wm(Sn),HP=wm(Ya);function wm(n){return n&&n.__esModule?n:{default:n}}var YP=(0,WP.default)("v3",48,HP.default);Ha.default=YP;var Za={},Xa={};Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.default=void 0;var zP={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};Xa.default=zP,Object.defineProperty(Za,"__esModule",{value:!0}),Za.default=void 0;var _m=Mm(Xa),ZP=Mm(qa),XP=An;function Mm(n){return n&&n.__esModule?n:{default:n}}function QP(n,e,t){if(_m.default.randomUUID&&!e&&!n)return _m.default.randomUUID();n=n||{};const i=n.random||(n.rng||ZP.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,XP.unsafeStringify)(i)}var KP=QP;Za.default=KP;var Qa={},Ka={};Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.default=void 0;function eD(n,e,t,i){switch(n){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 al(n,e){return n<<e|n>>>32-e}function tD(n){const e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof n=="string"){const o=unescape(encodeURIComponent(n));n=[];for(let u=0;u<o.length;++u)n.push(o.charCodeAt(u))}else Array.isArray(n)||(n=Array.prototype.slice.call(n));n.push(128);const i=n.length/4+2,a=Math.ceil(i/16),s=new Array(a);for(let o=0;o<a;++o){const u=new Uint32Array(16);for(let p=0;p<16;++p)u[p]=n[o*64+p*4]<<24|n[o*64+p*4+1]<<16|n[o*64+p*4+2]<<8|n[o*64+p*4+3];s[o]=u}s[a-1][14]=(n.length-1)*8/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=(n.length-1)*8&4294967295;for(let o=0;o<a;++o){const u=new Uint32Array(80);for(let I=0;I<16;++I)u[I]=s[o][I];for(let I=16;I<80;++I)u[I]=al(u[I-3]^u[I-8]^u[I-14]^u[I-16],1);let p=t[0],h=t[1],m=t[2],T=t[3],b=t[4];for(let I=0;I<80;++I){const B=Math.floor(I/20),G=al(p,5)+eD(B,h,m,T)+b+e[B]+u[I]>>>0;b=T,T=m,m=al(h,30)>>>0,h=p,p=G}t[0]=t[0]+p>>>0,t[1]=t[1]+h>>>0,t[2]=t[2]+m>>>0,t[3]=t[3]+T>>>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 nD=tD;Ka.default=nD,Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.default=void 0;var rD=Nm(Sn),iD=Nm(Ka);function Nm(n){return n&&n.__esModule?n:{default:n}}var aD=(0,rD.default)("v5",80,iD.default);Qa.default=aD;var es={};Object.defineProperty(es,"__esModule",{value:!0}),es.default=void 0;var sD="00000000-0000-0000-0000-000000000000";es.default=sD;var ts={};Object.defineProperty(ts,"__esModule",{value:!0}),ts.default=void 0;var oD=lD(Hn);function lD(n){return n&&n.__esModule?n:{default:n}}function cD(n){if(!(0,oD.default)(n))throw TypeError("Invalid UUID");return parseInt(n.slice(14,15),16)}var dD=cD;ts.default=dD,function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(n,"v1",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(n,"v3",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(n,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"validate",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(n,"version",{enumerable:!0,get:function(){return o.default}});var e=m(ka),t=m(Ha),i=m(Za),a=m(Qa),s=m(es),o=m(ts),u=m(Hn),p=m(An),h=m(Ni);function m(T){return T&&T.__esModule?T:{default:T}}}(Dm);function sl(n,e){if(!n||!e||!n.length||!e.length)throw new Error("Bad alphabet");this.srcAlphabet=n,this.dstAlphabet=e}sl.prototype.convert=function(n){var e,t,i,a={},s=this.srcAlphabet.length,o=this.dstAlphabet.length,u=n.length,p=typeof n=="string"?"":[];if(!this.isValid(n))throw new Error('Number "'+n+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return n;for(e=0;e<u;e++)a[e]=this.srcAlphabet.indexOf(n[e]);do{for(t=0,i=0,e=0;e<u;e++)t=t*s+a[e],t>=o?(a[i++]=parseInt(t/o,10),t=t%o):i>0&&(a[i++]=0);u=i,p=this.dstAlphabet.slice(t,t+1).concat(p)}while(i!==0);return p},sl.prototype.isValid=function(n){for(var e=0;e<n.length;++e)if(this.srcAlphabet.indexOf(n[e])===-1)return!1;return!0};var uD=sl,pD=uD;function $i(n,e){var t=new pD(n,e);return function(i){return t.convert(i)}}$i.BIN="01",$i.OCT="01234567",$i.DEC="0123456789",$i.HEX="0123456789abcdef";var yD=$i;const{v4:ol,validate:hD}=Dm,ns=yD,ll={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},fD={consistentLength:!0};let cl;const $m=(n,e,t)=>{const i=e(n.toLowerCase().replace(/-/g,""));return!t||!t.consistentLength?i:i.padStart(t.shortIdLength,t.paddingChar)},Vm=(n,e)=>{const i=e(n).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("-")},mD=n=>Math.ceil(Math.log(2**128)/Math.log(n));var TD=(()=>{const n=(e,t)=>{const i=e||ll.flickrBase58,a={...fD,...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=mD(i.length),o={shortIdLength:s,consistentLength:a.consistentLength,paddingChar:i[0]},u=ns(ns.HEX,i),p=ns(i,ns.HEX),h=()=>$m(ol(),u,o),T={alphabet:i,fromUUID:b=>$m(b,u,o),maxLength:s,generate:h,new:h,toUUID:b=>Vm(b,p),uuid:ol,validate:(b,I=!1)=>{if(!b||typeof b!="string")return!1;const B=a.consistentLength?b.length===s:b.length<=s,G=b.split("").every(W=>i.includes(W));return I===!1?B&&G:B&&G&&hD(Vm(b,p))}};return Object.freeze(T),T};return n.constants=ll,n.uuid=ol,n.generate=()=>(cl||(cl=n(ll.flickrBase58).generate),cl()),n})();const Lm=hP(TD),ED=Lm();function Gm(){return ED.uuid()}function Fm(n){return n.rangeStart+Math.random()}function Um(n){const e=n.rangeEnd;return Math.random()*e}function xm(n){const e=n.rangeStart,t=n.rangeEnd;return Math.random()*(t-e)+e}function jm(n){return n.rangeStart&&n.rangeEnd?xm(n):n.rangeStart?Fm(n):n.rangeEnd?Um(n):Math.random()}function km(n){const e=n.rangeStart;return Math.random().toString(36).substring(e)}function qm(n){const e=n.rangeEnd;return Math.random().toString(36).substring(0,e)}function Jm(n){const e=n.rangeStart,t=n.rangeEnd;return Math.random().toString(36).substring(e,t)}function Wm(n){return n.rangeStart&&n.rangeEnd?Jm(n):n.rangeStart?km(n):n.rangeEnd?qm(n):Math.random().toString(36)}function Hm(n){return Math.random()>=.5}function RD(n){if(!n||!n.autogeneration)return null;switch(n.autogeneration.type){case xe.CurrentDateAndTime:if(n.name===g.Date)return new Date;case xe.Random:{if(n.name===g.Date)return Pm(n.autogeneration);if(n.name===g.Number)return jm(n.autogeneration);if(n.name===g.String)return Wm(n.autogeneration);if(n.name===g.Boolean)return Hm(n.autogeneration)}case xe.Unique:if(n.name===g.UUID)return Gm();default:throw new Error(`Generating a ${n.autogeneration.type} value for a ${n.name} is not supported`)}}const J="e7eb5382-3d99-44fd-972a-b8b1e819f6be",dl="global-user-variable-id",Ym="last-executed-timestamp-variable-id",bD={id:"alternative-relational-database-entity-identifier-property-data-type-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-data-type-id",entityType:r.DataType},vD={id:"alternative-relational-database-entity-identifier-property-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",entityType:r.Property},gD={id:"alternative-relational-database-entity-identifier-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"alternative-relational-database-entity-identifier-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:g.String,value:null,parent:bD,autogeneration:{type:xe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:vD},rs={id:"alternative-relational-database-entity-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},ID={required:!0,id:"alternative-relational-database-entity-identifier-property-id",name:"Identifier name",version:1,type:r.Property,private:!1,abstract:!1,implements:Oa,static:!0,index:0,dataType:gD,description:"The name of the main database inside of the server instance where the data will be stored.",parent:rs};r.GenericReference,r.DataType;const PD={id:"alternative-relational-database-entity-username-property-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-username-property-id",entityType:r.Property},DD={id:"alternative-relational-database-entity-username-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:PD},AD={required:!0,id:"alternative-relational-database-entity-username-property-id",name:"Username",version:1,type:r.Property,private:!1,abstract:!1,implements:Ca,static:!0,index:1,dataType:DD,description:"The username that will be used to connect to the database.",parent:rs};r.GenericReference,r.DataType;const SD={id:"alternative-relational-database-entity-password-property-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-password-property-id",entityType:r.Property},OD={id:"alternative-relational-database-entity-password-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:SD},CD={required:!0,id:"alternative-relational-database-entity-password-property-id",name:"Password",version:1,type:r.Property,private:!1,abstract:!1,implements:Ba,static:!0,index:2,dataType:OD,description:"The password that will be used to connect to the database.",parent:rs},BD={id:"alternative-relational-database-entity-min-size-property-data-type-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-data-type-id",entityType:r.DataType},wD={id:"alternative-relational-database-entity-min-size-property-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",entityType:r.Property},_D={id:"alternative-relational-database-entity-min-size-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Ce,asType:!1,defaultValue:{id:"alternative-relational-database-entity-min-size-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:g.Number,value:6,parent:BD,autogeneration:null,valueAsType:null},parent:wD},MD={required:!0,id:"alternative-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:1,type:r.Property,private:!1,abstract:!1,implements:wa,static:!0,index:3,dataType:_D,description:"The minimum size of the database in GB.",parent:rs},ND={id:"alternative-relational-database-entity-parent-ref-id",type:r.GenericReference,entityId:J,entityType:r.Project},zm={id:"alternative-relational-database-entity-id",type:r.CustomEntity,version:1,name:"Alternative relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[ID,AD,CD,MD],methods:[],abstractMethods:[],extends:[],implements:[bn],x:0,y:0,parent:ND},$D={id:"animal-prototype-database-property-ref-id",type:r.GenericReference,entityId:"animal-prototype-database-property-id",entityType:r.Property},VD={id:"animal-prototype-database-property-data-type-default-value-parent-ref-id",type:r.GenericReference,entityId:"animal-prototype-database-property-data-type-default-value-id",entityType:r.DataType},LD={id:"animal-prototype-database-property-data-type-id",version:1,type:r.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:r.PrimitiveValue,version:1,value:null,name:g.EntityTemplate,valueAsType:zm,autogeneration:null,parent:VD},parent:$D},GD={id:"animal-prototype-database-property-parent-ref-id",type:r.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:r.CustomEntity},FD={required:!0,id:"animal-prototype-database-property-id",name:"Database",version:1,type:r.Property,private:!1,abstract:!1,implements:mi,static:!0,index:0,dataType:LD,description:"The database that the entity belongs to.",parent:GD},UD={type:r.GenericReference,id:"291e4d4f-01d8-40a0-90dc-5f1ac6636e9b",entityType:r.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},xD={id:"c1930577-9e79-48a6-8905-be24611015c1",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:UD},jD={type:r.GenericReference,id:"e2b9e456-f2b3-4dc7-85a2-fbb68ed0c9c7",entityType:r.CustomEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},kD={required:!0,type:r.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:xD,abstract:!1,parent:jD},qD={type:r.GenericReference,id:"abc565de-4c83-4936-bc48-4013bef213b8",entityType:r.Project,entityId:J},JD={type:r.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:[FD,kD],methods:[],extends:[],implements:[Be],x:0,y:0,parent:qD},WD={id:"default-relational-database-entity-identifier-property-data-type-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-identifier-property-data-type-id",entityType:r.DataType},HD={id:"default-relational-database-entity-identifier-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",entityType:r.Property},YD={id:"default-relational-database-entity-identifier-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"default-relational-database-entity-identifier-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:g.String,value:null,parent:WD,autogeneration:{type:xe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:HD},is={id:"default-relational-database-entity-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},zD={required:!0,id:"default-relational-database-entity-identifier-property-id",name:"Identifier name",version:1,type:r.Property,private:!1,abstract:!1,implements:Oa,static:!0,index:0,dataType:YD,description:"The name of the main database inside of the server instance where the data will be stored.",parent:is};r.GenericReference,r.DataType;const ZD={id:"default-relational-database-entity-username-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-username-property-id",entityType:r.Property},XD={id:"default-relational-database-entity-username-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:ZD},QD={required:!0,id:"default-relational-database-entity-username-property-id",name:"Username",version:1,type:r.Property,private:!1,abstract:!1,implements:Ca,static:!0,index:1,dataType:XD,description:"The username that will be used to connect to the database.",parent:is};r.GenericReference,r.DataType;const KD={id:"default-relational-database-entity-password-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-password-property-id",entityType:r.Property},eA={id:"default-relational-database-entity-password-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:KD},tA={required:!0,id:"default-relational-database-entity-password-property-id",name:"Password",version:1,type:r.Property,private:!1,abstract:!1,implements:Ba,static:!0,index:2,dataType:eA,description:"The password that will be used to connect to the database.",parent:is},nA={id:"default-relational-database-entity-min-size-property-data-type-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-min-size-property-data-type-id",entityType:r.DataType},rA={id:"default-relational-database-entity-min-size-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",entityType:r.Property},iA={id:"default-relational-database-entity-min-size-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Ce,asType:!1,defaultValue:{id:"default-relational-database-entity-min-size-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:g.Number,value:6,parent:nA,autogeneration:null,valueAsType:null},parent:rA},aA={required:!0,id:"default-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:1,type:r.Property,private:!1,abstract:!1,implements:wa,static:!0,index:3,dataType:iA,description:"The minimum size of the database in GB.",parent:is},sA={id:"default-relational-database-entity-parent-ref-id",type:r.GenericReference,entityId:J,entityType:r.Project},ul={id:"default-relational-database-entity-id",type:r.CustomEntity,version:1,name:"Relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[zD,QD,tA,aA],methods:[],abstractMethods:[],extends:[],implements:[bn],x:0,y:0,parent:sA},oA={id:"user-prototype-database-property-data-type-ref-id",type:r.GenericReference,entityId:"user-prototype-database-property-data-type-id",entityType:r.DataType},lA={id:"user-prototype-database-property-ref-id",type:r.GenericReference,entityId:"user-prototype-database-property-id",entityType:r.Property},cA={id:"user-prototype-database-property-data-type-id",version:1,type:r.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:r.PrimitiveValue,version:1,value:null,name:g.EntityTemplate,valueAsType:ul,autogeneration:null,parent:oA},parent:lA},dA={id:"user-prototype-database-property-parent-ref-id",type:r.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:r.CustomEntity},uA={required:!0,id:"user-prototype-database-property-id",name:"Database",version:1,type:r.Property,private:!1,abstract:!1,implements:mi,static:!0,index:0,dataType:cA,description:"The database that the entity belongs to.",parent:dA},pA={type:r.GenericReference,id:"user-prototype-parent-ref-id",entityType:r.Project,entityId:J},pl={type:r.CustomEntity,id:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:1,name:"User",description:"A user of the application",implements:[Be],abstract:!1,static:!1,abstractMethods:[],extends:[],properties:[uA],methods:[],x:0,y:0,parent:pA},yA={type:r.GenericReference,id:"person-date-of-birth-property-data-type-parent-ref-id",entityType:r.Property,entityId:"person-date-of-birth-property-id"},hA={id:"person-date-of-birth-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Sr,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:yA},fA={type:r.GenericReference,id:"person-date-of-birth-property-parent-ref-id",entityType:r.CustomEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},mA={required:!0,type:r.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:hA,abstract:!1,parent:fA},TA={type:r.GenericReference,id:"a2867827-2f8e-4c25-b18b-d91857d7f24e",entityType:r.Property,entityId:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7"},EA={id:"1d49f41b-17b9-4f48-87aa-3ce43498e5a9",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:TA},RA={type:r.GenericReference,id:"01cbe760-40a9-4f49-8e3d-194d2f57cb1e",entityType:r.CustomEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},bA={required:!0,type:r.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:EA,abstract:!1,parent:RA},vA={type:r.GenericReference,id:"3542b22a-3a2f-41c6-876e-24c885572498",entityType:r.Project,entityId:J},ct={type:r.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:[bA,mA],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[pl],x:0,y:0,parent:vA},gA={type:r.GenericReference,id:"b59c80b7-b2e9-41e9-abcd-7c5652835efc",entityType:r.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},IA={type:r.GenericReference,id:"1190b5a2-f25e-46db-884d-8a3dd1a44d94",entityType:r.ReturnStatement,entityId:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e"},PA={type:r.GenericReference,id:"36c63126-7814-496f-a6cc-48662c2aabae",entityType:r.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},DA={type:r.GenericReference,id:"c567e55d-ec12-4e4e-958e-f07522892b4b",entityType:r.ReturnDeclaration,entityId:"9e070523-7e07-4100-8637-960a187f5f14"},AA={id:"3973c5a1-f0d8-49a0-a9a9-a0009bf3f0d8",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:DA},yl={isError:!1,id:"9e070523-7e07-4100-8637-960a187f5f14",type:r.ReturnDeclaration,version:1,name:"Output Account Owner",description:null,dataType:AA,readsValue:PA,required:!0,index:0,parent:IA},SA={type:r.GenericReference,id:"567d923c-20da-4c1e-956d-962ea30c6d0b",entityType:r.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},OA={type:r.GenericReference,id:"da85e620-59f3-42ab-88c8-b38d33c2c833",entityType:r.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},Zm={type:r.ReturnStatement,id:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e",version:1,outputs:[yl],calledByError:[],calledByEntry:[SA],calledBySuccess:[],throws:null,x:0,y:0,parent:OA},CA={type:r.GenericReference,id:"1c806bb7-4c25-4bad-963b-93dfbb7c8304",entityType:r.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},BA={id:"d90fcc18-642b-433c-8fcb-4094b9031cd5",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:CA},Xm={id:"500dee3a-3435-4453-9699-0d053f646523",type:r.ArgumentDeclaration,version:1,name:"New Account Owner",description:null,dataType:BA,required:!0,writesValues:[yl],index:0,parent:gA},wA={type:r.GenericReference,id:"83dceb60-f3c4-4085-824c-85f2003bfd27",entityType:r.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},Qm={type:r.FunctionDeclaration,id:"36f29f96-c001-4b9a-b49c-83eff406a060",version:1,name:"Change owner of bank account",description:null,implements:null,inputs:[Xm],calls:[Zm],returnStatements:[Zm],index:0,collapsed:!1,private:!1,x:0,y:0,parent:wA},_A={type:r.GenericReference,id:"adbaf302-ffa9-49b6-a3c6-83f9a75068e3",entityType:r.VariableDeclaration,entityId:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b"},MA={id:"79ee04aa-1ba4-4ae9-a406-ed45e5b03f7f",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:_A},NA={type:r.GenericReference,id:"55e212d1-f0ec-4bb6-acbe-60f741367daf",entityType:r.OutputMap,entityId:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4"},$A={type:r.GenericReference,id:"944e1171-3d9b-4559-9386-1d4974b15962",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},VA={id:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b",type:r.VariableDeclaration,version:1,name:"Output Account Owner",description:null,dataType:MA,readsValue:NA,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:$A},LA={type:r.GenericReference,id:"b89ebc83-52cf-4447-a5ae-62241f713079",entityType:r.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},GA={id:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4",type:r.OutputMap,version:1,declaration:yl,writesValues:[VA],index:0,parent:LA},FA={type:r.GenericReference,id:"c1b9e125-1aad-48b7-9687-95c57a6bc10d",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},UA={type:r.GenericReference,id:"d2deaa02-e164-4425-905c-6dee47eb4eac",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},xA={type:r.GenericReference,id:"1109a655-ac62-4110-a933-42a72106f4f0",entityType:r.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},jA={id:"7d9a1307-512e-42ec-9797-2f7229796b97",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:xA},kA={type:r.GenericReference,id:"bb61ebf7-57b3-4d14-905d-82ec907205b5",entityType:r.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},qA={type:r.GenericReference,id:"6b8c7bf2-9fc8-4ea4-9ec0-f41679d513b1",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},JA={type:r.GenericReference,id:"6163d1a1-7a94-49b1-95bb-aecd8d6d335c",entityType:r.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},WA={type:r.GenericReference,id:"1f900f62-4bd2-4246-94aa-b8f5aad384fd",entityType:r.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},Km={id:"be8538be-e6f9-4b94-9314-a546003ebaa0",type:r.InputMap,version:1,declaration:Xm,name:null,description:null,readsValue:WA,dynamicArguments:[],defaultValue:null,index:0,parent:JA},HA={type:r.VariableDeclaration,id:"8bea6986-8da2-487b-905d-2fb962db6728",version:1,name:"Changed Account Owner",description:null,dataType:jA,readsValue:kA,writesValues:[Km],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:qA},YA={type:r.FunctionCall,id:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e",version:1,declaration:Qm,inputs:[Km],outputs:[GA],process:null,successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[FA],calledBySuccess:[],parent:UA,error:null,x:0,y:0},zA={type:r.GenericReference,id:"2d47aba1-a918-46a7-8db7-78809928654a",entityType:r.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},ZA={id:"5583766c-e9a5-484c-8f43-f4b0a6a1876c",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:zA},XA={type:r.GenericReference,id:"3e2a81e4-55b2-49f5-94eb-39135e95c3d7",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},QA={id:"38f6b236-98ac-47b0-ab9c-d2f9610137b9",type:r.ArgumentDeclaration,version:1,description:null,name:"New Company Owner",dataType:ZA,required:!0,index:0,writesValues:[HA],parent:XA},KA={type:r.GenericReference,id:"30291b01-1b94-4d03-b434-dec122c2bc7d",entityType:r.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},eS={type:r.FunctionDeclaration,id:"15ee556d-681f-47de-a31f-16d4ba73cc4e",version:1,description:null,name:"Change Account Owner",inputs:[QA],collapsed:!0,returnStatements:[],calls:[YA],private:!1,index:0,implements:null,x:0,y:0,parent:KA},tS={type:r.GenericReference,id:"72c7ac0a-886e-4e10-b7ed-2f5a819a0233",entityType:r.Property,entityId:"b8f4656a-2b77-43ab-af51-7c32ddede044"},nS={id:"c09dd282-73f6-4077-a467-b66db20b9fc6",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:tS},rS={type:r.GenericReference,id:"8a950024-512c-4580-81db-a705410aeb99",entityType:r.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},eT={required:!0,type:r.Property,id:"b8f4656a-2b77-43ab-af51-7c32ddede044",version:1,name:"Account number",description:null,private:!0,implements:null,static:!1,index:0,dataType:nS,abstract:!1,parent:rS},iS={type:r.GenericReference,id:"b6704b6c-c3bd-49d0-8ebc-82d03e726cbb",entityType:r.Property,entityId:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea"},aS={id:"c03e0b0a-88ab-401a-8833-4806738bdc37",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:iS},sS={type:r.GenericReference,id:"1ef999a7-e9ed-406a-866e-e58277fc985b",entityType:r.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},tT={required:!0,type:r.Property,id:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea",version:1,description:null,name:"Account Owner",index:1,dataType:aS,implements:null,static:!1,private:!0,abstract:!1,parent:sS},oS={type:r.GenericReference,id:"d41d7f41-98b8-4f67-be92-c349fdda5156",entityType:r.Project,entityId:J},Lr={type:r.CustomEntity,id:"506946aa-30da-48e6-918f-ffd9eac58813",version:1,name:"Bank Account",description:null,abstract:!1,static:!1,abstractMethods:[],properties:[eT,tT],methods:[Qm,eS],extends:[],implements:[Be],x:0,y:0,parent:oS},Vi="bitcoin-api-response-id",nT="time-property-id",rT="disclamer-property-id",iT="chart-name-property-id",aT="bpi-property-id",as="bpi-entity-id",sT="usd-property-id",oT="gbp-property-id",lT="eur-property-id",Gr="currency-entity-id",cT="currency-code-property-id",dT="currency-symbol-property-id",uT="currency-rate-property-id",pT="currency-description-property-id",yT="currency-rate-number-property-id",lS={type:r.GenericReference,id:"code-property-data-type-parent-ref-id",entityType:r.Property,entityId:cT},cS={id:"code-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Rn,isList:!1,asType:!1,isNullable:!1,defaultValue:null,options:["USD","GBP","EUR"],constant:!1,parent:lS},dS={type:r.GenericReference,id:"code-property-parent-ref-id",entityType:r.CustomEntity,entityId:Gr},uS={required:!0,type:r.Property,id:cT,version:1,name:"code",description:null,dataType:cS,index:0,implements:null,static:!1,private:!1,abstract:!1,parent:dS},pS={type:r.GenericReference,id:"symbol-property-data-type-parent-ref-id",entityType:r.Property,entityId:dT},yS={id:"symbol-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Rn,isList:!1,asType:!1,isNullable:!1,defaultValue:null,options:["&#36;","&pound;","&euro;"],constant:!1,parent:pS},hS={type:r.GenericReference,id:"symbol-property-parent-ref-id",entityType:r.CustomEntity,entityId:Gr},fS={required:!0,type:r.Property,id:dT,version:1,name:"symbol",description:null,index:0,dataType:yS,implements:null,static:!1,private:!1,abstract:!1,parent:hS},mS={type:r.GenericReference,id:"rate-property-data-type-parent-ref-id",entityType:r.Property,entityId:uT},TS={id:"rate-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:mS},ES={type:r.GenericReference,id:"rate-property-parent-ref-id",entityType:r.CustomEntity,entityId:Gr},RS={required:!0,type:r.Property,id:uT,version:1,name:"rate",description:null,index:0,dataType:TS,implements:null,static:!1,private:!1,abstract:!1,parent:ES},bS={type:r.GenericReference,id:"description-property-data-type-parent-ref-id",entityType:r.Property,entityId:pT},vS={id:"description-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:bS},gS={type:r.GenericReference,id:"description-property-parent-ref-id",entityType:r.CustomEntity,entityId:Gr},IS={required:!0,type:r.Property,id:pT,version:1,name:"description",description:null,dataType:vS,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:gS},PS={type:r.GenericReference,id:"rate-number-property-data-type-parent-ref-id",entityType:r.Property,entityId:yT},DS={id:"rate-number-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:PS},AS={type:r.GenericReference,id:"rate-number-property-parent-ref-id",entityType:r.CustomEntity,entityId:Gr},SS={required:!0,type:r.Property,id:yT,version:1,name:"rate_float",description:null,dataType:DS,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:AS},OS={type:r.GenericReference,id:"currency-prototype-parent-ref-id",entityType:r.Project,entityId:J},ss={type:r.CustomEntity,id:Gr,version:1,name:"Currency",description:"This entity describes a currency in the Bitcoin Price Index.",properties:[uS,fS,RS,IS,SS],static:!1,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:OS},CS={type:r.GenericReference,id:"usd-property-data-type-parent-ref-id",entityType:r.Property,entityId:sT},BS={id:"usd-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ss,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:CS},wS={type:r.GenericReference,id:"usd-property-parent-ref-id",entityType:r.CustomEntity,entityId:as},_S={required:!0,id:sT,type:r.Property,version:1,name:"USD",description:null,index:0,dataType:BS,implements:null,static:!1,private:!1,abstract:!1,parent:wS},MS={type:r.GenericReference,id:"gbp-property-data-type-parent-ref-id",entityType:r.Property,entityId:oT},NS={id:"gbp-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ss,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:MS},$S={type:r.GenericReference,id:"gbp-property-parent-ref-id",entityType:r.CustomEntity,entityId:as},VS={required:!0,id:oT,type:r.Property,version:1,name:"GBP",description:null,index:0,dataType:NS,implements:null,static:!1,private:!1,abstract:!1,parent:$S},LS={type:r.GenericReference,id:"eur-property-data-type-parent-ref-id",entityType:r.Property,entityId:lT},GS={id:"eur-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ss,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:LS},FS={type:r.GenericReference,id:"eur-property-parent-ref-id",entityType:r.CustomEntity,entityId:as},US={required:!0,id:lT,type:r.Property,version:1,name:"EUR",description:null,implements:null,static:!1,index:0,dataType:GS,private:!1,abstract:!1,parent:FS},xS={type:r.GenericReference,id:"bpi-prototype-parent-ref-id",entityType:r.Project,entityId:J},hT={type:r.CustomEntity,id:as,version:1,name:"BPI",description:"The Bitcoin Price Index",properties:[_S,VS,US],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:xS},jS={type:r.GenericReference,id:"time-property-data-type-parent-ref-id",entityType:r.Property,entityId:nT},kS={id:"time-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ro,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:jS},qS={type:r.GenericReference,id:"time-property-parent-ref-id",entityType:r.CustomEntity,entityId:Vi},JS={required:!0,type:r.Property,id:nT,version:1,name:"time",description:null,index:0,dataType:kS,implements:null,static:!1,private:!1,abstract:!1,parent:qS},WS={type:r.GenericReference,id:"disclamer-property-data-type-parent-ref-id",entityType:r.Property,entityId:rT},HS={id:"disclamer-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:WS},YS={type:r.GenericReference,id:"disclamer-property-parent-ref-id",entityType:r.CustomEntity,entityId:Vi},zS={required:!0,type:r.Property,id:rT,version:1,name:"disclamer",description:null,index:0,dataType:HS,implements:null,static:!1,private:!1,abstract:!1,parent:YS},ZS={type:r.GenericReference,id:"chart-name-property-data-type-parent-ref-id",entityType:r.Property,entityId:iT},XS={id:"chart-name-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:ZS},QS={type:r.GenericReference,id:"chart-name-property-parent-ref-id",entityType:r.CustomEntity,entityId:Vi},KS={required:!0,type:r.Property,id:iT,version:1,name:"chartName",description:null,index:0,dataType:XS,implements:null,static:!1,private:!1,abstract:!1,parent:QS},eO={type:r.GenericReference,id:"bpi-property-data-type-parent-ref-id",entityType:r.Property,entityId:aT},tO={id:"bpi-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:hT,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:eO},nO={type:r.GenericReference,id:"bpi-property-parent-ref-id",entityType:r.CustomEntity,entityId:Vi},rO={required:!0,type:r.Property,id:aT,version:1,name:"bpi",description:null,implements:null,index:0,dataType:tO,static:!1,private:!1,abstract:!1,parent:nO},iO={type:r.GenericReference,id:"bitcoin-api-response-parent-ref-id",entityType:r.Project,entityId:J},fT={type:r.CustomEntity,id:Vi,version:1,name:"Bitcoin API Response type",description:"The type of the data structure response from the Bitcoin API call",properties:[JS,zS,KS,rO],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:iO},aO={type:r.GenericReference,id:"eefa0147-f873-484b-b4f3-9e6493aab183",entityType:r.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},sO={id:"b9f35112-dcb2-4b7c-8fb9-f196b3fa37f9",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:aO},oO={type:r.GenericReference,id:"128770d6-5e3a-4aff-bca0-ad1f32ebefa8",entityType:r.ReturnStatement,entityId:"e4e05975-c277-471a-b869-f0aed316045c"},lO={type:r.GenericReference,id:"0be84bf9-6421-42b9-980f-6a03f30cb809",entityType:r.ReturnDeclaration,entityId:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},cO={id:"43daa02a-237b-4b7c-a6e9-2b8c167f6e22",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:lO},dO={type:r.GenericReference,id:"ad380383-4a47-43da-968e-75a2d603b230",entityType:r.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},mT={isError:!1,id:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:r.ReturnDeclaration,version:1,name:"New Company Owner",description:"The new owner of the company",dataType:cO,readsValue:dO,required:!0,index:0,parent:oO},uO={type:r.GenericReference,id:"4f24dc27-59a1-49bf-abcc-7d72b00926e4",entityType:r.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},pO={id:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",type:r.ArgumentDeclaration,version:1,name:"New Company Owner",description:null,dataType:sO,writesValues:[mT],required:!0,index:0,parent:uO},yO={type:r.GenericReference,id:"5c9a02f0-d2cf-4efc-828e-467f33a74dd3",entityType:r.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},hO={type:r.GenericReference,id:"2ff8f3da-e0c5-4f0f-b688-2c051c588786",entityType:r.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},fO={type:r.GenericReference,id:"195ae28c-159b-42de-80b1-2ebb8be3619f",entityType:r.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},TT={type:r.ReturnStatement,id:"e4e05975-c277-471a-b869-f0aed316045c",version:1,outputs:[mT],calledByError:[],calledByEntry:[hO],calledBySuccess:[],throws:null,x:0,y:0,parent:fO},mO={type:r.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:[pO],calls:[TT],index:0,collapsed:!1,implements:null,returnStatements:[TT],private:!1,x:0,y:0,parent:yO},TO={type:r.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},EO={type:r.GenericReference,id:"29c4e3e0-1b66-4075-b559-45b27c5cf356",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},RO={type:r.GenericReference,id:"b1289358-b185-455d-8f58-7791b15cd52a",entityType:r.ReturnStatement,entityId:"9690cd1d-ea35-4e83-823d-0c7310265fee"},bO={type:r.GenericReference,id:"d847bb49-8789-4550-bb2d-e2d551993b28",entityType:r.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},vO={type:r.GenericReference,id:"06535500-c37c-4915-8398-1d4e184fa5e7",entityType:r.ReturnDeclaration,entityId:"e7a35277-a0c4-46d5-aca2-bddd0c26e931"},gO={id:"d358dd91-35f7-4095-b728-3fb3c71dbc05",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Fn,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:vO},hl={isError:!1,id:"e7a35277-a0c4-46d5-aca2-bddd0c26e931",type:r.ReturnDeclaration,version:1,name:"Is name registered",description:"Whether the company name is already registered",dataType:gO,readsValue:bO,required:!0,index:0,parent:RO},ET={type:r.ReturnStatement,id:"9690cd1d-ea35-4e83-823d-0c7310265fee",version:1,outputs:[hl],calledByError:[],calledByEntry:[],calledBySuccess:[TO],throws:null,x:0,y:0,parent:EO},IO={type:r.GenericReference,id:"b3126414-4c9b-495f-901e-59f5073c8d67",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},PO={type:r.GenericReference,id:"35115c48-618b-411b-a290-d746d22fdd10",entityType:r.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},RT={id:"a0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:r.InputMap,version:1,declaration:No,name:null,description:null,dynamicArguments:[],readsValue:PO,defaultValue:null,parent:IO,index:2},DO={type:r.GenericReference,id:"14f46eae-04a5-47d1-9c7f-28fb09b84d1d",entityType:r.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},AO={id:"990bd5d1-07ea-4253-acc1-d03bedd22a38",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Fn,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:DO},SO={type:r.GenericReference,id:"e4c3542a-8fb0-4b72-8d6e-3fdff812dd67",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},OO={type:r.GenericReference,id:"825f9f60-22a8-4cc6-9055-d7333f8e92f4",entityType:r.OutputMap,entityId:"8f30d787-9459-4d8d-98a2-b46fbc2006d5"},CO={type:r.GenericReference,id:"is-company-name-registered-var-called-by-ref",entityType:r.Operation,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},bT={type:r.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:AO,readsValue:OO,writesValues:[hl],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[CO],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:SO},BO={type:r.GenericReference,id:"1aba021e-48ef-44ac-93d0-eaecac5895da",entityType:r.InputMap,entityId:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a"},wO={type:r.GenericReference,id:"dffae7e0-0a5c-4c14-8ed2-8d680b4c4c86",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},_O={type:r.InputMap,id:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a",version:1,declaration:va,name:null,description:null,readsValue:null,defaultValue:{id:"gov-http-request-url-argument-default-value-id",type:r.PrimitiveValue,version:1,value:"https://api.publicapis.org/entries",name:g.String,valueAsType:null,parent:BO,autogeneration:null},index:1,dynamicArguments:[],parent:wO},MO={type:r.GenericReference,id:"64ae61f5-ace7-401b-926d-25f852daa60e",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},NO={id:"8f30d787-9459-4d8d-98a2-b46fbc2006d5",type:r.OutputMap,version:1,declaration:yi,index:2,writesValues:[bT],parent:MO},$O={type:r.GenericReference,id:"62a1a086-caea-4270-9c9f-a1695503e745",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},VO={id:"48cf7654-8f3e-4fcd-abc6-740876c310a0",type:r.InputMap,version:1,declaration:ba,name:null,description:null,dynamicArguments:[],readsValue:null,index:0,defaultValue:null,parent:$O},LO={type:r.GenericReference,id:"b0c9c79f-f525-428d-99e7-087d3237ad62",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},GO={id:"2c1dc406-4b71-4023-87b2-abede3a111d2",type:r.InputMap,version:1,name:null,description:null,declaration:ga,dynamicArguments:[],index:3,readsValue:null,defaultValue:null,parent:LO},FO={type:r.GenericReference,id:"9887d6c9-d75b-4c97-b722-e2e60945ea20",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},UO={id:"3fef94b2-0278-43ae-b0c5-bc7083f0a111",type:r.InputMap,version:1,declaration:Ia,name:null,description:null,dynamicArguments:[],readsValue:null,index:4,defaultValue:null,parent:FO},xO={type:r.GenericReference,id:"561275b6-5056-45d8-bf7d-8abaa4645593",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},jO={id:"3efe20a7-4d63-411e-89ef-63e277f48d66",type:r.OutputMap,version:1,declaration:Pa,index:1,writesValues:[],parent:xO},kO={type:r.GenericReference,id:"3170ccc2-13de-4bfc-802a-a643be41cd42",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},qO={id:"40d34323-d7e6-440a-8016-67c05a3b66dd",type:r.OutputMap,version:1,declaration:yi,index:0,writesValues:[],parent:kO},JO={type:r.GenericReference,id:"7432fa82-f574-4c54-a8fa-4cc4376da3d5",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},WO={type:r.GenericReference,id:"8f518502-9eea-462c-8753-8bc3bf3e29a9",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},HO={type:r.GenericReference,id:"123b8f18-79d9-4166-a5f6-78ec4b461680",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},YO={type:r.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",entityType:r.FunctionCall,entityId:"abb5d456-ee85-4800-bdd9-d409415f60d7"},zO={type:r.GenericReference,id:"a375eedf-4811-41aa-a998-4897c69c46b9",entityType:r.ReturnDeclaration,entityId:"024a9b77-c1cd-4b67-b3ba-1935046b590d"},ZO={id:"767cc5ed-20ec-4fd1-89b1-c8d19daa87d1",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Xe,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:zO},XO={type:r.GenericReference,id:"e64b0c23-129d-4d74-8ab4-eec60e1e5b9b",entityType:r.ReturnStatement,entityId:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3"},vT={isError:!0,id:"024a9b77-c1cd-4b67-b3ba-1935046b590d",type:r.ReturnDeclaration,version:1,name:"Error",description:"The error that occurred during the HTTP request to the government company registry",dataType:ZO,required:!0,readsValue:null,index:0,parent:XO},QO={type:r.ReturnStatement,id:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3",version:1,outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[YO],throws:vT,x:0,y:0,parent:HO},KO={type:r.GenericReference,id:"323814fb-9723-49ef-bbba-f882384f18e4",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},eC={id:"2f63f7ba-0ff0-458a-92bc-65d1dd4df8c3",type:r.OutputMap,declaration:Vo,version:1,writesValues:[vT],index:0,parent:KO},tC={type:r.Operation,id:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7",version:1,declaration:hi,inputs:[VO,_O,RT,GO,UO],outputs:[qO,jO,NO],process:null,calledByError:[],calledByEntry:[JO],calledBySuccess:[],successCalls:[ET,bT],errorCalls:[QO],error:eC,dynamicArguments:[],x:0,y:0,parent:WO},nC={type:r.GenericReference,id:"597b8aa2-f6f2-4f7d-bbb9-b703d02de96a",entityType:r.InputMap,entityId:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a"},rC={type:r.GenericReference,id:"546d99b3-28c4-4186-93a0-ac53c1565e07",entityType:r.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},iC={id:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:r.InputMap,version:1,declaration:Ta,name:null,description:null,readsValue:null,defaultValue:{id:"base-query-string-map-default-value-id",type:r.PrimitiveValue,version:1,value:"?name=",name:g.String,parent:nC,valueAsType:null,autogeneration:null},dynamicArguments:[],index:0,parent:rC},aC={type:r.GenericReference,id:"6a56fb22-82e1-47c9-bf85-41c4e5986c74",entityType:r.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},sC={type:r.GenericReference,id:"191c6a6d-9bcb-441e-bf98-de0da96f5f3a",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},oC={type:r.GenericReference,id:"d8fcbb76-dae2-40cf-847a-02364721b387",entityType:r.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},lC={id:"6a70c42b-024a-47c6-8a9d-af52be9c9b9a",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:oC},cC={type:r.GenericReference,id:"2282e2c0-ed9e-4c7b-86fc-1a364fa0fdb8",entityType:r.OutputMap,entityId:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5"},dC={type:r.GenericReference,id:"assembled-query-string-called-by-ref",entityType:r.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},gT={type:r.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:lC,readsValue:cC,writesValues:[RT],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[dC],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:sC},uC={id:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5",type:r.OutputMap,version:1,writesValues:[gT],declaration:ui,index:0,parent:aC},pC={type:r.GenericReference,id:"a1b48e7c-0301-4747-b4dd-b5af79956f7f",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},yC={type:r.GenericReference,id:"487c9235-be95-4c96-b9b5-2714b374a277",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},hC={type:r.GenericReference,id:"f6471f4f-b269-46fa-80ec-885e87a449c2",entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69",entityType:r.ArgumentDeclaration},fC={type:r.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:r.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},IT={id:"08f36e2b-bad2-425c-8129-93560bec8488",version:1,type:r.InputMap,declaration:Ea,name:null,description:null,readsValue:hC,dynamicArguments:[],defaultValue:null,index:1,parent:fC},mC={type:r.Operation,id:"8f2094c0-e27e-465e-9280-112da0de9019",declaration:pi,version:1,inputs:[iC,IT],outputs:[uC],process:null,calledByError:[],calledByEntry:[pC],calledBySuccess:[],dynamicArguments:[],successCalls:[gT],errorCalls:[],error:null,x:0,y:0,parent:yC},TC={type:r.GenericReference,id:"c2e0e9b4-aa46-4974-bf8a-886b737b12fb",entityType:r.ArgumentDeclaration,entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69"},EC={id:"a4279518-3bf3-44b7-a2ac-65142ca37f1c",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:TC},RC={type:r.GenericReference,id:"dc273f24-164b-4943-82f9-589b237141e2",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},PT={id:"a4106e8e-ec4f-4633-a636-09ae73135f69",type:r.ArgumentDeclaration,version:1,name:"Company Name to check",description:"The name of the company to check in the government registry",dataType:EC,required:!1,writesValues:[IT],index:0,parent:RC},bC={type:r.GenericReference,id:"2178a10c-1cc0-4dad-97c3-0941be6c9738",entityType:r.Project,entityId:J},DT={type:r.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:[PT],calls:[mC,tC],returnStatements:[ET],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:bC},vC={type:r.GenericReference,id:"4d66c53c-f0f7-496a-9955-1e6c8533c5e0",entityType:r.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},gC={type:r.GenericReference,id:"6fa0c8e0-d104-4b4d-a035-d4f6e0c49f09",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},IC={type:r.GenericReference,id:"146408d5-5336-4877-941a-777dd5871926",entityType:r.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},PC={type:r.GenericReference,id:"34ae8f8c-548d-4654-984a-6f36affdaf49",entityType:r.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},AT={id:"69b1215d-9ebf-4274-b9cb-d4a5888f5122",version:1,type:r.InputMap,declaration:PT,name:null,description:null,readsValue:IC,dynamicArguments:[],defaultValue:null,index:0,parent:PC},DC={type:r.GenericReference,id:"07540a94-dda1-40b3-8452-f209bdc87b88",entityType:r.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},AC={type:r.GenericReference,id:"eaddf12a-a995-429e-90a0-13bf06efeb28",entityType:r.VariableDeclaration,entityId:"faaf3bf6-917d-40d7-aee6-5164f6646c4b"},SC={id:"7fdaf943-3ffb-48e0-b766-b86cc24090cf",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Fn,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:AC},OC={type:r.GenericReference,id:"030fb5c5-af4d-4c85-8cf0-e99edd50d2bd",entityType:r.OutputMap,entityId:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},CC={type:r.GenericReference,id:"a8b618e9-c68c-48c1-8bd6-ef47c87d699e",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},BC={type:r.GenericReference,id:"is-company-name-valid-var-called-by-ref",entityType:r.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},ST={type:r.VariableDeclaration,id:"faaf3bf6-917d-40d7-aee6-5164f6646c4b",version:1,name:"Is name valid",description:"Whether the company name is valid",dataType:SC,readsValue:OC,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[BC],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:CC},wC={id:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:r.OutputMap,version:1,declaration:hl,writesValues:[ST],index:0,parent:DC},_C={type:r.FunctionCall,id:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",version:1,declaration:DT,inputs:[AT],outputs:[wC],calledByError:[],calledByEntry:[],process:null,calledBySuccess:[vC],successCalls:[ST],errorCalls:[],error:null,x:0,y:0,parent:gC},MC={type:r.GenericReference,id:"9d0b87b4-bfed-4e02-9e84-6831c21feae2",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},NC={type:r.GenericReference,id:"74345f4f-e80d-48be-adff-d12fcea25bec",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},$C={type:r.GenericReference,id:"b39279ea-969a-4efb-a9ec-353bfd13db65",entityType:r.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},VC={type:r.GenericReference,id:"549db613-f225-4c5b-9634-7d096717f0ff",entityType:r.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},OT={id:"358e242c-7448-442e-ab8b-fd7fa119ea71",version:1,type:r.InputMap,declaration:kn.fixedArguments[0],name:null,description:null,dynamicArguments:[],readsValue:$C,defaultValue:null,index:0,parent:VC},LC={type:r.Condition,id:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b",version:1,declaration:kn,inputs:[OT],calledByError:[],calledByEntry:[MC],calledBySuccess:[],successCalls:[_C],errorCalls:[],x:0,y:0,parent:NC},GC={type:r.GenericReference,id:"43ba1e25-f805-488f-8ae8-c58bb6215b2f",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},FC={type:r.GenericReference,id:"eb091bed-507f-4a1e-93b5-7cd2fccfe002",entityType:r.VariableDeclaration,entityId:"9c928995-0dd5-4f97-9962-56b343bc8a45"},UC={id:"d64152ea-831f-4426-9506-a39bfa170513",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Lr,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:FC},xC={type:r.GenericReference,id:"7e79c29f-f7bd-441a-a77e-c627604dae94",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},jC={type:r.GenericReference,id:"8995ce5f-d5cf-4341-a8b1-5c046cc78b89",entityType:r.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},kC={type:r.GenericReference,id:"new-company-bank-account-var-decl-1-called-by-ref",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},CT={type:r.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:UC,readsValue:jC,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[kC],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:xC},qC={type:r.GenericReference,id:"9a4887bf-d50d-43e4-bdd5-a5262f65f04b",entityType:r.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},JC={id:"ae148c06-3143-49e9-9614-c3aca3f6fa7b",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Lr,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:qC},WC={id:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071",type:r.ArgumentDeclaration,version:1,name:"New bank account",description:"The new bank account of the company",dataType:JC,required:!0,index:1,writesValues:[CT],parent:GC},HC={type:r.GenericReference,id:"caec9cf8-3133-48d4-a390-114fa71b2933",entityType:r.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},YC={type:r.GenericReference,id:"cebcbad8-ca87-4c4b-be8a-312293d49892",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},zC={type:r.GenericReference,id:"7b8ccfe5-f9cd-4776-a19b-80c689bbe3df",entityType:r.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},ZC={id:"2a6b4703-ac8d-4d25-8abd-48a115577fec",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:zC},XC={id:"c6cf620c-1eee-4919-8578-1a0b6c088551",type:r.ArgumentDeclaration,version:1,name:"New company name",description:null,dataType:ZC,required:!0,index:0,writesValues:[OT,AT],parent:YC},QC={type:r.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:[XC,WC],calls:[LC,CT],index:1,private:!1,implements:null,x:0,y:0,parent:HC},KC={type:r.GenericReference,id:"employee-manager-property-data-type-entity-ref-id",entityType:r.CustomEntity,entityId:"employee-entity-id"},eB={type:r.GenericReference,id:"employee-manager-property-data-type-parent-ref-id",entityType:r.Property,entityId:"employee-manager-property-id"},tB={id:"employee-manager-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:KC,isList:!1,isNullable:!0,asType:!1,defaultValue:null,constant:!1,parent:eB},nB={type:r.GenericReference,id:"employee-manager-property-parent-ref-id",entityType:r.CustomEntity,entityId:"employee-entity-id"},rB={required:!0,type:r.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:tB,abstract:!1,parent:nB},iB={type:r.GenericReference,id:"employee-start-date-property-data-type-parent-ref-id",entityType:r.Property,entityId:"employee-start-date-property-id"},aB={id:"employee-start-date-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Sr,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:iB},sB={type:r.GenericReference,id:"employee-start-date-property-parent-ref-id",entityType:r.CustomEntity,entityId:"employee-entity-id"},oB={required:!0,type:r.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:aB,abstract:!1,parent:sB},lB={type:r.GenericReference,id:"employee-department-property-ref-id",entityType:r.Property,entityId:"employee-department-property-id"},cB={id:"employee-department-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Rn,isList:!1,isNullable:!1,asType:!1,options:["Human Resources","Finance","IT","Sales","Marketing","Customer Service","Logistics","Product"],defaultValue:null,constant:!1,parent:lB},dB={type:r.GenericReference,id:"employee-department-property-parent-ref-id",entityType:r.CustomEntity,entityId:"employee-entity-id"},uB={required:!0,type:r.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:cB,abstract:!1,parent:dB},pB={type:r.GenericReference,id:"employee-prototype-parent-ref-id",entityType:r.Project,entityId:J},It={type:r.CustomEntity,id:"employee-entity-id",version:1,name:"Employee",description:"A entity that represents an employee in the company",properties:[uB,oB,rB],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[ct],x:0,y:0,parent:pB},yB={type:r.GenericReference,id:"dec8fbfe-9124-41fd-9f1c-5b2f07cfd6ba",entityType:r.Property,entityId:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd"},hB={id:"bc0b8979-6c43-4d47-a712-6742b89e3c00",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:yB},fB={type:r.GenericReference,id:"4f8c0a05-466e-4672-b4c4-6bd408c0be9a",entityType:r.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},mB={required:!0,type:r.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:hB,abstract:!1,parent:fB},TB={type:r.GenericReference,id:"95173fe0-a6e6-443c-94f3-f7c5cf171fcf",entityType:r.Property,entityId:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3"},EB={id:"ddbb6f5c-0cf4-41fb-83b3-b6c47c0e338d",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Lr,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:TB},RB={type:r.GenericReference,id:"6a9a0b72-a05d-4169-b3f3-5afb01e8d0df",entityType:r.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},fl={required:!0,type:r.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:EB,abstract:!1,parent:RB},bB={type:r.GenericReference,id:"62892cc6-d227-4088-90d3-ae7c15ed4af4",entityType:r.Property,entityId:"19a31727-1fba-40a5-be25-18e0f149d5cb"},vB={id:"1f7629df-dc29-4c89-8369-c6d043e97a9e",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:bB},gB={type:r.GenericReference,id:"89384206-fd5a-4f0a-849c-f777473e5773",entityType:r.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},IB={required:!0,type:r.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:vB,private:!0,abstract:!1,parent:gB},PB={type:r.GenericReference,id:"4d2ffb6c-5f38-436e-8339-fb9878ac2b5e",entityType:r.Property,entityId:"f8310850-a87e-405c-b182-4f1d5fa49240"},DB={id:"ad44250b-40c2-48f7-a480-381fa938f562",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:It,isList:!0,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:PB},AB={type:r.GenericReference,id:"aa5d4eee-6fac-4e72-bf21-9c8750024541",entityType:r.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},SB={required:!0,type:r.Property,id:"f8310850-a87e-405c-b182-4f1d5fa49240",version:1,name:"Employees",description:null,index:3,dataType:DB,implements:null,private:!0,static:!1,abstract:!1,parent:AB},OB={type:r.GenericReference,id:"e3c03b6b-2ea0-4d99-865d-5e6a348672d0",entityType:r.Project,entityId:J},mt={type:r.CustomEntity,id:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:1,name:"Company",description:null,properties:[mB,fl,IB,SB],static:!1,abstract:!1,abstractMethods:[],methods:[mO,QC],extends:[],implements:[Be],x:0,y:0,parent:OB},CB={type:r.GenericReference,id:"ffcad334-138d-4b67-8fb3-5f0e6f5fefbd",entityType:r.Project,entityId:J},ml={type:r.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:CB};r.GenericReference,r.DataType;const BB={id:"cron-job-entity-expression-property-ref-id",type:r.GenericReference,entityId:"cron-job-entity-expression-property-id",entityType:r.Property},wB={id:"cron-job-entity-expression-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:BB},_B={id:"cron-job-entity-ref-id",type:r.GenericReference,entityId:"cron-job-entity-id",entityType:r.CustomEntity},MB={required:!0,id:"cron-job-entity-expression-property-id",type:r.Property,version:1,name:"Cron expression",description:"The cron expression that defines when the cron job should be triggered",dataType:wB,implements:null,static:!0,private:!1,abstract:!1,index:0,parent:_B},NB={id:"cron-job-entity-trigger-show-popup-func-call-called-by-ref-one-id",type:r.GenericReference,entityId:"show-popup-func-decl-id",entityType:r.FunctionDeclaration},$B={id:"cron-job-entity-trigger-show-popup-func-call-parent-ref-id",type:r.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",entityType:r.FunctionDeclaration},VB={id:"cron-job-entity-trigger-show-popup-func-call-id",version:1,type:r.FunctionCall,declaration:ml,inputs:[],outputs:[],process:null,successCalls:[],calledByError:[],calledByEntry:[NB],calledBySuccess:[],errorCalls:[],error:null,x:0,y:0,parent:$B},LB={id:"cron-job-entity-trigger-func-decl-parent-ref-id",type:r.GenericReference,entityId:"cron-job-entity-id",entityType:r.CustomEntity},GB={id:"cron-job-entity-trigger-func-decl-id",version:1,type:r.FunctionDeclaration,name:"Scheduled trigger",description:"The function that is called when the cron job is triggered",inputs:[],private:!1,implements:jo,calls:[VB],collapsed:!1,returnStatements:[],index:0,x:0,y:0,parent:LB},FB={id:"cron-job-entity-parent-ref-id",type:r.GenericReference,entityId:J,entityType:r.Project},UB={id:"cron-job-entity-id",version:1,type:r.CustomEntity,name:"Run at 12pm on Christmas day",description:"A cron job that runs at 12pm on Christmas day",properties:[MB],static:!0,abstract:!1,abstractMethods:[],extends:[ko],implements:[],methods:[GB],x:0,y:0,parent:FB},xB={type:r.GenericReference,id:"52dbd85c-48b1-462a-8205-2437d6fb1cb4",entityType:r.Project,entityId:J},jB={type:r.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:[Sa],x:0,y:0,parent:xB},BT="f558fbf8-67de-4545-9804-6ae621e0b2d4",kB={id:"getCompanyByIdEndpointPathParamsVariableDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"getCompanyByIdEndpointPathParamsVariableDataType"},qB={id:"getCompanyByIdEndpointPathParamsArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},JB={id:"getCompanyByIdEndpointPathParamsVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:F,asType:!1,defaultValue:{id:"getCompanyByIdEndpointPathParamsVariableDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:g.JSON,value:{},parent:kB,autogeneration:null,valueAsType:null},parent:qB},WB={id:"getCompanyByIdEndpointReachedEntityEventRef",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},HB={id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"getCompanyByIdEndpointRequestHeadersVariableDataType"},YB={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},zB={id:"getCompanyByIdEndpointRequestHeadersVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Xe,asType:!1,defaultValue:{id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:g.JSON,value:{},parent:HB,autogeneration:null,valueAsType:null},parent:YB},ZB={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:r.ArgumentDeclaration,writesValues:[],name:"Request headers",dataType:zB,required:!0,index:0,parent:WB},XB={id:"getCompanyByIdEndpointReachedEntityEventRefTwo",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},QB={id:"getCompanyByIdEndpointPathParamsArgumentDeclaration",type:r.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:JB,required:!0,index:1,parent:XB},KB={id:"getCompanyByIdEndpointReachedEntityEventRefThree",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},ew={id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"getCompanyByIdEndpointRequestQueryParamsVariableDataType"},tw={id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},nw={id:"getCompanyByIdEndpointRequestQueryParamsVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,asType:!1,entity:F,defaultValue:{id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:g.JSON,value:{},parent:ew,autogeneration:null,valueAsType:null},parent:tw},rw={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:r.ArgumentDeclaration,writesValues:[],name:"Request query params",dataType:nw,required:!0,index:2,parent:KB},iw={id:"getCompanyByIdEndpointReachedEntityEventRefFour",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},aw={id:"getCompanyByIdEndpointRequestBodyArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestBodyArgumentDeclaration"},sw={id:"getCompanyByIdEndpointRequestBodyVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Xe,defaultValue:null,parent:aw},ow={id:"getCompanyByIdEndpointRequestBodyArgumentDeclaration",version:1,description:"The main data payload of the request.",type:r.ArgumentDeclaration,writesValues:[],name:"Request body",dataType:sw,index:3,required:!0,parent:iw},lw={id:"getCompanyByIdEndpointResponseCodeReturnDeclarationRef",type:r.GenericReference,entityType:r.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseCodeReturnDeclaration"},cw={id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:lw},dw={id:"getCompanyByIdEndpointReturnStatementRef",type:r.GenericReference,entityType:r.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},uw={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:r.ReturnDeclaration,name:"Response code",dataType:cw,readsValue:null,required:!0,index:0,parent:dw},pw={id:"getCompanyByIdEndpointResponseHeadersDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"getCompanyByIdEndpointResponseHeadersDataType"},yw={id:"getCompanyByIdEndpointResponseHeadersReturnDeclarationRef",type:r.GenericReference,entityType:r.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},hw={id:"getCompanyByIdEndpointResponseHeadersDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Xe,asType:!1,defaultValue:{id:"getCompanyByIdEndpointResponseHeadersDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:g.JSON,value:{},parent:pw,autogeneration:null,valueAsType:null},parent:yw},fw={id:"getCompanyByIdEndpointReturnStatementRefTwo",type:r.GenericReference,entityType:r.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},mw={isError:!1,id:"getCompanyByIdEndpointResponseHeadersReturnDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:r.ReturnDeclaration,name:"Response headers",dataType:hw,readsValue:null,required:!0,index:1,parent:fw},Tw={id:"getCompanyByIdEndpointResponseBodyReturnDeclarationRef",type:r.GenericReference,entityType:r.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseBodyReturnDeclaration"},Ew={id:"getCompanyByIdEndpointResponseBodyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Xe,defaultValue:null,parent:Tw},Rw={id:"getCompanyByIdEndpointReturnStatementRefThree",type:r.GenericReference,entityType:r.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},bw={isError:!1,id:"getCompanyByIdEndpointResponseBodyReturnDeclaration",version:1,description:"The main data payload of the response.",type:r.ReturnDeclaration,name:"Response body",dataType:Ew,readsValue:null,required:!0,index:2,parent:Rw},vw={id:"getCompanyByIdEndpointReturnStatementCallerRef",type:r.GenericReference,entityId:"getCompanyByIdEndpointReachedEntityEvent",entityType:r.FunctionDeclaration},gw={id:"getCompanyByIdEndpointReachedEntityEventRefFive",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},Iw={id:"getCompanyByIdEndpointReturnStatement",type:r.ReturnStatement,version:1,outputs:[uw,mw,bw],calledByError:[],calledByEntry:[vw],calledBySuccess:[],throws:null,x:0,y:0,parent:gw},Pw={id:"endpointBuiltInBaseEntityRefFour",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:BT},Dw={id:"getCompanyByIdEndpointReachedEntityEvent",name:"Endpoint reached",version:1,type:r.FunctionDeclaration,inputs:[ZB,QB,rw,ow],returnStatements:[Iw],description:"Fired when the endpoint is reached.",calls:[],collapsed:!1,implements:Uo,index:0,private:!1,x:0,y:0,parent:Pw},Aw={id:"getCompanyByIdEndpointPathPropertyDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"getCompanyByIdEndpointPathPropertyDataType"},Sw={id:"getCompanyByIdEndpointPathPropertyRef",type:r.GenericReference,entityType:r.Property,entityId:"getCompanyByIdEndpointPathProperty"},Ow={id:"getCompanyByIdEndpointPathPropertyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"getCompanyByIdEndpointPathPropertyDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:g.String,value:"/company/{id}",parent:Aw,valueAsType:null,autogeneration:null},parent:Sw},Cw={id:"getCompanyByIdEndpointBaseEntityRefTwo",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},Bw={required:!0,id:"getCompanyByIdEndpointPathProperty",name:"Path",version:1,type:r.Property,private:!1,abstract:!1,static:!0,implements:Go,dataType:Ow,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:Cw},ww={id:"getCompanyByIdEndpointMethodPropertyDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"getCompanyByIdEndpointMethodPropertyDataType"},_w={id:"getCompanyByIdEndpointMethodPropertyRef",type:r.GenericReference,entityType:r.Property,entityId:"getCompanyByIdEndpointMethodProperty"},Mw={id:"getCompanyByIdEndpointMethodPropertyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Rn,isList:!0,isNullable:!1,constant:!0,asType:!1,defaultValue:{id:"getCompanyByIdEndpointMethodPropertyDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,value:"GET",name:g.Enum,parent:ww,valueAsType:null,autogeneration:null},options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:_w},Nw={id:"getCompanyByIdEndpointBaseEntityRefThree",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},$w={required:!0,id:"getCompanyByIdEndpointMethodProperty",name:"Method",version:1,type:r.Property,private:!1,abstract:!1,static:!0,implements:Fo,index:0,dataType:Mw,description:null,parent:Nw},Vw={type:r.GenericReference,id:"6a905153-8aa8-4424-bd7b-6415731a2725",entityType:r.Project,entityId:J},Lw={type:r.CustomEntity,id:BT,version:1,name:"Get given company data by id",description:null,properties:[Bw,$w],methods:[Dw],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[Sa],x:0,y:0,parent:Vw},Gw={id:"product-prototype-database-property-ref-id",type:r.GenericReference,entityId:"product-prototype-database-property-id",entityType:r.Property},Fw={id:"product-prototype-database-property-data-type-default-value-parent-ref-id",type:r.GenericReference,entityId:"product-prototype-database-property-data-type-default-value-id",entityType:r.DataType},Uw={id:"product-prototype-database-property-data-type-id",version:1,type:r.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:r.PrimitiveValue,version:1,value:null,name:g.EntityTemplate,valueAsType:ul,autogeneration:null,parent:Fw},parent:Gw},xw={id:"product-prototype-database-property-parent-ref-id",type:r.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:r.CustomEntity},jw={required:!0,id:"product-prototype-database-property-id",name:"Database",version:1,type:r.Property,private:!1,abstract:!1,implements:mi,static:!0,index:0,dataType:Uw,description:"The database that the entity belongs to.",parent:xw},kw={type:r.GenericReference,id:"13a4045e-dcb0-4159-8d33-10a646078b5a",entityType:r.Property,entityId:"d519c26a-15b8-40d8-ad09-13fa9342e9ba"},qw={id:"7449779e-1d4e-409c-81c6-4b611336ed18",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:kw},Jw={type:r.GenericReference,id:"0969562f-d836-406f-8b48-dd9d417fbe72",entityType:r.CustomEntity,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c"},Ww={required:!0,type:r.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:qw,abstract:!1,parent:Jw},Hw={type:r.GenericReference,id:"833a5425-7bd0-41dd-9e97-e018acce9592",entityType:r.Project,entityId:J},Yw={type:r.CustomEntity,id:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:1,name:"Product",description:"A product that can be sold",implements:[Be],extends:[],abstract:!1,static:!1,abstractMethods:[],properties:[jw,Ww],methods:[],x:0,y:0,parent:Hw},Li="project-loaded-event-id",Wt="get-bitcoin-price-http-call-operation-id",wT="get-bitcoin-price-http-call-response-body-id",os="validate-bitcoin-price-response-operation-ids",zw={type:r.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:wT},Zw={type:r.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-parent-ref-id",entityType:r.Operation,entityId:os},_T={id:"validate-bitcoin-data-to-validate-input-map-id",type:r.InputMap,version:1,declaration:xn.fixedArguments[1],name:null,description:null,readsValue:zw,defaultValue:null,dynamicArguments:[],index:0,parent:Zw},Xw={type:r.GenericReference,id:"validate-bitcoin-type-to-match-input-map-default-value-parent-ref-id",entityType:r.InputMap,entityId:"validate-bitcoin-type-to-match-input-map-id"},Qw={type:r.GenericReference,id:"validate-bitcoin-type-to-match-input-map-parent-ref-id",entityType:r.Operation,entityId:os},Kw={id:"validate-bitcoin-type-to-match-input-map-id",type:r.InputMap,version:1,declaration:xn.fixedArguments[0],name:null,description:null,readsValue:null,defaultValue:{id:"validate-bitcoin-type-to-match-input-map-default-value-id",type:r.PrimitiveValue,version:1,name:g.EntityTemplate,valueAsType:fT,value:null,parent:Xw,autogeneration:null},dynamicArguments:[],index:0,parent:Qw},e_={type:r.GenericReference,id:"validate-bitcoin-validated-entity-output-map-parent-ref-id",entityType:r.Operation,entityId:os},t_={id:"validate-bitcoin-validated-entity-output-map-id",type:r.OutputMap,version:1,declaration:xn.fixedReturns[0],writesValues:[],index:0,parent:e_},n_={type:r.GenericReference,id:"validate-bitcoin-price-response-operation-parent-ref-id",entityType:r.GlobalEvent,entityId:Li},r_={type:r.GenericReference,id:"validate-bitcoin-price-response-operation-called-by-ref-id",entityType:r.Operation,entityId:Wt},i_={type:r.Operation,id:os,version:1,declaration:xn,inputs:[Kw,_T],outputs:[t_],process:null,dynamicArguments:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[r_],parent:n_},a_={type:r.GenericReference,id:"96edb661-3f36-406c-8921-f1679dd796a3",entityType:r.FunctionCall,entityId:Wt},s_={id:"c93e1393-9b5e-4de2-b8da-7eae647d715a",version:1,type:r.InputMap,declaration:ba,name:null,description:null,readsValue:null,defaultValue:null,dynamicArguments:[],index:0,parent:a_},o_={type:r.GenericReference,id:"40312b28-71b8-4b01-a654-58b87191939d",entityType:r.FunctionCall,entityId:Wt},l_={type:r.GenericReference,id:"6ea96c7d-02a7-4971-82ad-2f32a0fec8b4",entityType:r.InputMap,entityId:"9f21cbac-5a83-4983-8923-9224ffd3ba9f"},c_={id:"9f21cbac-5a83-4983-8923-9224ffd3ba9f",version:1,type:r.InputMap,declaration:va,name:null,description:null,readsValue:null,defaultValue:{id:"get-bitcoin-price-http-request-url-argument-default-value-id",type:r.PrimitiveValue,version:1,value:"https://api.coindesk.com/v1/bpi/currentprice.json",name:g.String,parent:l_,valueAsType:null,autogeneration:null},index:1,dynamicArguments:[],parent:o_},d_={type:r.GenericReference,id:"2610bf4a-c8a2-4746-b6cc-eb15f7fa8e9c",entityType:r.FunctionCall,entityId:Wt},u_={id:"ffb3cd9d-c955-4104-bc7b-299120fe4ede",version:1,type:r.InputMap,declaration:ga,name:null,description:null,readsValue:null,dynamicArguments:[],defaultValue:null,index:2,parent:d_},p_={type:r.GenericReference,id:"bfd29a6a-671a-448c-9f2f-f8c7e4ad8349",entityType:r.FunctionCall,entityId:Wt},y_={id:"412bf1f3-1a8e-4665-a95f-82117540e34e",version:1,type:r.InputMap,declaration:Ia,name:null,description:null,readsValue:null,dynamicArguments:[],defaultValue:null,index:3,parent:p_},h_={type:r.GenericReference,id:"616a15f3-c224-4b11-b95c-63314edef409",entityType:r.FunctionCall,entityId:Wt},f_={id:"4dd4651c-02e4-45f1-b50f-824f3bcb1648",version:1,type:r.OutputMap,declaration:Pa,writesValues:[],index:1,parent:h_},m_={type:r.GenericReference,id:"28793b68-4d7e-4826-aee1-f201a3499faf",entityType:r.FunctionCall,entityId:Wt},T_={id:"94fe9d35-4dd4-4729-a50c-5283ccd7e661",version:1,type:r.OutputMap,declaration:$o,writesValues:[],index:0,parent:m_},E_={type:r.GenericReference,id:"f13e04b2-49b4-4c69-85b8-cbbafafa3524",entityType:r.FunctionCall,entityId:Wt},R_={id:wT,type:r.OutputMap,version:1,declaration:yi,writesValues:[_T],index:2,parent:E_},b_={type:r.GenericReference,id:"6148d6d0-caaa-45fc-b601-ff2493dfc60f",entityType:r.FunctionDeclaration,entityId:Wt},v_={type:r.GenericReference,id:"b115f084-807b-44b3-ae01-b69cc342f761",entityType:r.GlobalEvent,entityId:Li},g_={type:r.Operation,id:Wt,version:1,declaration:hi,inputs:[s_,c_,u_,y_],outputs:[T_,f_,R_],process:null,parent:v_,calledByError:[],calledByEntry:[b_],calledBySuccess:[],dynamicArguments:[],successCalls:[i_],errorCalls:[],error:null,x:0,y:0},I_={type:r.GenericReference,id:"24e76019-3f94-475b-91ce-297f76bbc224",entityType:r.GlobalEvent,entityId:Li},P_={type:r.GenericReference,id:"0eac8e29-cdf2-42f8-8ea7-ad76d4d79abe",entityType:r.GlobalEvent,entityId:Li},D_={process:null,type:r.FunctionCall,id:"2d2e7593-bfbf-457c-a607-5fce18eef457",version:1,declaration:ml,inputs:[],outputs:[],calledByError:[],calledByEntry:[I_],calledBySuccess:[],parent:P_,successCalls:[],errorCalls:[],error:null,x:0,y:0},A_={id:"793b5999-a9da-47fb-9665-0c17ebc6d5c9",type:r.GenericReference,entityType:r.Project,entityId:"2e7eb5382-3d99-44fd-972a-b8b1e819f6be"},S_={type:r.GlobalEvent,id:Li,version:1,name:Kt.PROJECT_PUBLICATION_COMPLETED,returnStatements:[],collapsed:!1,implements:_a,parent:A_,inputs:[],calls:[D_,g_],x:0,y:0},Bt="abort-execution-func-declaration-id",Gi="abort-execution-func-exec-var-declaration-id",ls="abort-execution-func-small-wait-op-id",Tl="abort-execution-func-long-wait-op-id",MT="abort-execution-func-long-wait-process-output-id",NT="abort-execution-func-exec-var-instance-write-id",$T="abort-execution-func-long-wait-return-stmt-id",VT="abort-execution-func-small-wait-return-stmt-id",O_="abort-execution-func-exec-var-instance-abort-call-id",El="abort-execution-func-exec-var-instance-abort-internal-call-id",LT="abort-execution-func-exec-second-wait-op-id",C_={type:r.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-parent-ref-id",entityType:r.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},B_={type:r.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",entityType:r.DataType,entityId:"short-wait-return-statement-returned-hello-string-data-type-id"},w_={id:"short-wait-return-statement-returned-hello-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:{id:"short-wait-return-statement-returned-hello-string-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:g.String,value:"Hello 2",autogeneration:null,valueAsType:null,parent:B_},constant:!1,parent:C_},__={type:r.GenericReference,id:"short-wait-return-statement-returned-hello-string-parent-ref-id",entityType:r.ReturnStatement,entityId:VT},M_={isError:!1,id:"short-wait-return-statement-returned-hello-string-id",type:r.ReturnDeclaration,version:1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",dataType:w_,readsValue:null,required:!0,index:0,parent:__},N_={type:r.GenericReference,id:"short-wait-return-statement-called-by-ref-id",entityType:r.Operation,entityId:ls},$_={type:r.GenericReference,id:"short-wait-return-statement-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Bt},GT={type:r.ReturnStatement,id:VT,version:1,outputs:[M_],calledByError:[],calledByEntry:[],calledBySuccess:[N_],throws:null,x:0,y:0,parent:$_},V_={type:r.GenericReference,id:"second-wait-argument-default-value-parent-ref-id",entityType:r.InputMap,entityId:"second-wait-argument-map-id"},L_={type:r.GenericReference,id:"second-wait-argument-map-parent-ref-id",entityType:r.Operation,entityId:LT},G_={id:"second-wait-argument-map-id",type:r.InputMap,version:1,declaration:Un,name:null,description:null,dynamicArguments:[],readsValue:null,defaultValue:{id:"second-wait-argument-default-value-id",type:r.PrimitiveValue,version:1,value:2e3,valueAsType:null,autogeneration:null,name:g.Number,parent:V_},index:0,parent:L_},F_={type:r.GenericReference,id:"small-wait-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Bt},U_={type:r.GenericReference,id:"small-wait-called-by-ref-one-id",entityType:r.InternalCall,entityId:El},x_={id:LT,type:r.Operation,version:1,declaration:ot,inputs:[G_],dynamicArguments:[],outputs:[],process:null,successCalls:[GT],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[U_],error:null,parent:F_},j_={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-one-id",entityType:r.VariableInstance,entityId:NT},k_={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-two-id",entityType:r.Operation,entityId:ls},q_={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-main-project-ref-id",entityType:r.FunctionDeclaration,entityId:Bt},J_={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",entityType:r.VariableDeclaration,entityId:Gi},W_={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-internal-call-ref-one-id",entityType:r.InternalCall,entityId:El},H_={id:O_,type:r.VariableInstance,version:1,declaration:J_,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[W_],parent:q_},FT={id:El,type:r.InternalCall,version:1,inputs:[],outputs:[],declaration:qo,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[j_,k_],successCalls:[x_],errorCalls:[],error:null,index:0,parent:H_},Y_={type:r.GenericReference,id:"abort-exec-func-var-write-instance-main-project-ref-id",entityType:r.FunctionDeclaration,entityId:Bt},z_={type:r.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-one-id",entityType:r.VariableDeclaration,entityId:Gi},Z_={type:r.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-two-id",entityType:r.FunctionDeclaration,entityId:Bt},X_={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",entityType:r.VariableDeclaration,entityId:Gi},Q_={type:r.GenericReference,id:"abort-exec-func-var-write-instance-reads-value-ref-id",entityType:r.OutputMap,entityId:MT},Rl={id:NT,type:r.VariableInstance,version:1,declaration:X_,inputs:[],outputs:[],calledByError:[],calledByEntry:[Z_],calledBySuccess:[z_],successCalls:[FT],errorCalls:[],x:0,y:0,readsValue:Q_,writesValues:[],internalCalls:[],parent:Y_},K_={type:r.GenericReference,id:"abort-exec-func-var-decl-datatype-parent-ref-id",entityType:r.VariableDeclaration,entityId:Gi};r.GenericReference,r.DataType;const eM={id:"abort-exec-func-var-decl-datatype-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Jo,version:1,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:K_,defaultValue:null},tM={type:r.GenericReference,id:"abort-exec-func-var-decl-main-project-ref-id",entityType:r.FunctionDeclaration,entityId:Bt},nM={type:r.GenericReference,id:"abort-exec-func-var-decl-called-by-ref-one-id",entityType:r.FunctionDeclaration,entityId:Bt},rM={id:Gi,type:r.VariableDeclaration,version:1,name:"Execution in progress",description:"A variable that holds an ongoing execution to abort it if needed",dataType:eM,inputs:[],outputs:[],calledByError:[],calledByEntry:[nM],calledBySuccess:[],successCalls:[Rl],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:tM},iM={type:r.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-parent-ref-id",entityType:r.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},aM={type:r.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",entityType:r.DataType,entityId:"long-wait-return-statement-returned-hello-string-data-type-id"},sM={id:"long-wait-return-statement-returned-hello-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:{id:"long-wait-return-statement-returned-hello-string-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:g.String,value:"Hello 1",autogeneration:null,valueAsType:null,parent:aM},constant:!1,parent:iM},oM={type:r.GenericReference,id:"long-wait-return-statement-returned-hello-string-parent-ref-id",entityType:r.ReturnStatement,entityId:$T},lM={isError:!1,id:"long-wait-return-statement-returned-hello-string-id",type:r.ReturnDeclaration,version:1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",dataType:sM,readsValue:null,required:!0,index:0,parent:oM},cM={type:r.GenericReference,id:"long-wait-return-statement-called-by-ref-id",entityType:r.Operation,entityId:Tl},dM={type:r.GenericReference,id:"long-wait-return-statement-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Bt},UT={type:r.ReturnStatement,id:$T,version:1,outputs:[lM],calledByError:[],calledByEntry:[],calledBySuccess:[cM],throws:null,x:0,y:0,parent:dM},uM={type:r.GenericReference,id:"long-argument-default-value-parent-ref-id",entityType:r.InputMap,entityId:"long-argument-map-id"},xT={type:r.GenericReference,id:"long-argument-map-parent-ref-id",entityType:r.Operation,entityId:Tl},pM={id:"long-argument-map-id",type:r.InputMap,version:1,declaration:Un,name:null,description:null,dynamicArguments:[],readsValue:null,defaultValue:{id:"long-argument-default-value-id",type:r.PrimitiveValue,version:1,value:1500,valueAsType:null,autogeneration:null,name:g.Number,parent:uM},index:0,parent:xT},yM={type:r.GenericReference,id:"long-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Bt},hM={type:r.GenericReference,id:"long-called-by-ref-one-id",entityType:r.FunctionDeclaration,entityId:Bt},fM={id:MT,type:r.OutputMap,version:1,declaration:Ho,writesValues:[Rl],index:0,parent:xT},mM={id:Tl,type:r.Operation,version:1,declaration:ot,inputs:[pM],dynamicArguments:[],outputs:[],process:fM,successCalls:[UT],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[hM],calledBySuccess:[],error:null,parent:yM},TM={type:r.GenericReference,id:"small-wait-argument-default-value-parent-ref-id",entityType:r.InputMap,entityId:"small-wait-argument-map-id"},EM={type:r.GenericReference,id:"small-wait-argument-map-parent-ref-id",entityType:r.Operation,entityId:ls},RM={id:"small-wait-argument-map-id",type:r.InputMap,version:1,declaration:Un,name:null,description:null,dynamicArguments:[],readsValue:null,defaultValue:{id:"small-wait-argument-default-value-id",type:r.PrimitiveValue,version:1,value:500,valueAsType:null,autogeneration:null,name:g.Number,parent:TM},index:0,parent:EM},bM={type:r.GenericReference,id:"small-wait-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Bt},vM={type:r.GenericReference,id:"small-wait-called-by-ref-one-id",entityType:r.FunctionDeclaration,entityId:Bt},gM={id:ls,type:r.Operation,version:1,declaration:ot,inputs:[RM],dynamicArguments:[],outputs:[],process:null,successCalls:[FT],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[vM],calledBySuccess:[],error:null,parent:bM},IM={type:r.GenericReference,id:"abort-execution-func-decl-parent-ref-id",entityType:r.Project,entityId:J},jT={id:"abort-execution-func-decl-id",type:r.FunctionDeclaration,version:1,name:"Test aborting execution",description:"Executes a wait and then aborts the execution of that wait",inputs:[],returnStatements:[UT,GT],calls:[gM,rM,Rl,mM],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:IM},PM={type:r.GenericReference,id:"call-execution-abort-func-parent-ref-id",entityType:r.Project,entityId:J},DM={id:"call-execution-abort-func-id",type:r.FunctionCall,version:1,declaration:jT,inputs:[],process:null,outputs:[],successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:PM},bl="manual-hello-world-loop-func-decl-id",kT="manual-hello-world-loop-func-return-statement-id",an="manual-hello-world-loop-id",Fi="manual-hello-world-loop-body-id",qT="manual-hello-world-loop-break-statement-id",cs="manual-hello-world-loop-current-iteration-number-output-map-id",vl="manual-hello-world-loop-previous-iterations-results-output-map-id",gl="assembled-hello-world-text-output-id",JT="assembled-hello-world-list-output-id",Ui="iteration-number-is-equal-or-greater-than-10-condition-id",ds="join-hello-world-and-number-operation-id",us="append-string-to-list-operation-id",WT="hello-world-loop-output-map-id",AM={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-parent-ref",entityType:r.ReturnStatement,entityId:kT},SM={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type-parent-ref",entityType:r.ReturnDeclaration,entityId:"manual-hello-world-loop-function-declaration-output-declaration"},OM={id:"manual-hello-world-loop-function-declaration-output-declaration-data-type",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!0,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:SM},CM={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-reads-value-ref",entityType:r.OutputMap,entityId:WT},HT={isError:!1,id:"manual-hello-world-loop-function-declaration-output-declaration",version:1,type:r.ReturnDeclaration,name:"Results",description:null,dataType:OM,readsValue:CM,required:!0,index:0,parent:AM},BM={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-return-statement-called-by-ref",entityType:r.Loop,entityId:an},wM={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref",entityType:r.FunctionDeclaration,entityId:bl},YT={type:r.ReturnStatement,id:kT,version:1,outputs:[HT],calledByError:[],calledByEntry:[],calledBySuccess:[BM],parent:wM,throws:null,x:0,y:0},_M={type:r.GenericReference,id:"hello-world-loop-break-statement-ref-id",entityType:r.BreakStatement,entityId:qT},MM={type:r.GenericReference,id:"hello-world-loop-break-statement-output-data-type-ref-id",entityType:r.ReturnDeclaration,entityId:"hello-world-loop-break-statement-output-id"},NM={id:"hello-world-loop-break-statement-output-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!0,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:MM},$M={type:r.GenericReference,id:"hello-world-loop-break-statement-reads-value-ref-id",entityType:r.OutputMap,entityId:gl},Il={isError:!1,id:"hello-world-loop-break-statement-output-id",version:1,type:r.ReturnDeclaration,name:"Iteration result",description:null,dataType:NM,readsValue:$M,required:!0,index:0,parent:_M},VM={type:r.GenericReference,id:"hello-world-loop-break-statement-called-by-ref-id",entityType:r.Condition,entityId:Ui},LM={type:r.GenericReference,id:"hello-world-loop-break-statement-parent-ref-id",entityType:r.Loop,entityId:an},zT={type:r.BreakStatement,id:qT,version:1,outputs:[Il],calledByError:[],calledByEntry:[],calledBySuccess:[VM],parent:LM,throws:null,x:0,y:0},GM={type:r.GenericReference,id:"hello-world-loop-continue-statement-ref-id",entityType:r.ContinueStatement,entityId:"hello-world-loop-continue-statement"},FM={type:r.GenericReference,id:"hello-world-loop-continue-statement-output-data-type-ref-id",entityType:r.ReturnDeclaration,entityId:"hello-world-loop-continue-statement-output-id"},UM={id:"hello-world-loop-continue-statement-output-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:FM},xM={type:r.GenericReference,id:"hello-world-loop-continue-statement-reads-value-ref-id",entityType:r.OutputMap,entityId:gl},ZT={isError:!1,id:"hello-world-loop-continue-statement-output-id",version:1,type:r.ReturnDeclaration,name:"Iteration result",description:null,dataType:UM,readsValue:xM,required:!0,index:0,parent:GM},jM={type:r.GenericReference,id:"hello-world-loop-continue-statement-called-by-ref-id",entityType:r.Condition,entityId:Ui},kM={type:r.GenericReference,id:"hello-world-loop-continue-statement-parent-ref-id",entityType:r.Loop,entityId:an},XT={type:r.ContinueStatement,id:"hello-world-loop-continue-statement",version:1,outputs:[ZT],calledBySuccess:[],calledByError:[jM],calledByEntry:[],parent:kM,throws:null,x:0,y:0};r.GenericReference,r.InputMap;const qM={type:r.GenericReference,id:"append-string-to-list-base-string-map-parent-ref-id",entityType:r.Operation,entityId:us},JM={type:r.GenericReference,id:"base-string-map-reads-value-ref-id",entityType:r.OutputMap,entityId:vl},QT={id:"append-string-to-list-base-string-map-id",type:r.InputMap,version:1,declaration:So,name:null,description:null,readsValue:JM,defaultValue:null,dynamicArguments:[],index:0,parent:qM},WM={type:r.GenericReference,id:"assembly-string-map-parent-ref-id",entityType:r.Operation,entityId:us},HM={id:JT,type:r.OutputMap,version:1,writesValues:[Il],declaration:ui,index:0,parent:WM},YM={type:r.GenericReference,id:"append-string-to-list-called-by-ref-id",entityType:r.Condition,entityId:Ui},zM={type:r.GenericReference,id:"latest-string-to-add-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:JT},ZM={type:r.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:r.Operation,entityId:us},KT={id:"latest-string-to-add-input-map-id",version:1,type:r.InputMap,declaration:Oo,name:null,description:null,readsValue:zM,dynamicArguments:[],defaultValue:null,index:1,parent:ZM},XM={type:r.GenericReference,id:"append-string-to-list-parent-ref-id",entityType:r.FunctionDeclaration,entityId:an},QM={type:r.Operation,id:us,declaration:Ra,version:1,inputs:[QT,KT],outputs:[HM],calledByError:[],process:null,calledByEntry:[],calledBySuccess:[YM],dynamicArguments:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:XM},KM={type:r.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:Fi},eN={type:r.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-parent-ref-id",entityType:r.Loop,entityId:an},tN={type:r.GenericReference,id:"current-iteration-number-to-check-map-reads-value-ref-id",entityType:r.OutputMap,entityId:cs},eE={type:r.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-ref-two-id",entityType:r.Condition,entityId:Ui},nN={id:"current-iteration-number-to-check-map-id",version:1,type:r.InputMap,declaration:Br.fixedArguments[0],name:null,description:null,dynamicArguments:[],readsValue:tN,index:1,defaultValue:null,parent:eE},rN={type:r.GenericReference,id:"max-num-iterations-value-map-default-value-parent-ref-id",entityType:r.InputMap,entityId:"max-num-iterations-value-map-id"},iN={id:"max-num-iterations-value-map-id",version:1,type:r.InputMap,declaration:Br.fixedArguments[1],name:null,description:null,dynamicArguments:[],readsValue:null,index:0,defaultValue:{id:"max-num-iterations-value-map-default-value-id",type:r.PrimitiveValue,version:1,name:g.Number,value:10,autogeneration:null,valueAsType:null,parent:rN},parent:eE},aN={type:r.Condition,id:Ui,version:1,declaration:Br,inputs:[iN,nN],calledByError:[],calledByEntry:[KM],calledBySuccess:[],successCalls:[zT,QM],errorCalls:[XT],x:0,y:0,parent:eN},sN={type:r.GenericReference,id:"base-string-map-ref-id",entityType:r.InputMap,entityId:"join-hello-world-and-number-base-string-map-id"},oN={type:r.GenericReference,id:"join-hello-world-and-number-base-string-map-parent-ref-id",entityType:r.Operation,entityId:ds},lN={id:"join-hello-world-and-number-base-string-map-id",type:r.InputMap,version:1,declaration:Ta,name:null,description:null,readsValue:null,defaultValue:{id:"join-hello-world-and-number-base-string-map-default-value-id",type:r.PrimitiveValue,version:1,value:"Hello world ",name:g.String,parent:sN,valueAsType:null,autogeneration:null},dynamicArguments:[],index:0,parent:oN},cN={type:r.GenericReference,id:"assembly-string-map-parent-ref-id",entityType:r.Operation,entityId:ds},dN={id:gl,type:r.OutputMap,version:1,writesValues:[KT,ZT],declaration:ui,index:0,parent:cN},uN={type:r.GenericReference,id:"join-hello-world-and-number-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:Fi},pN={type:r.GenericReference,id:"current-iteration-number-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:cs},yN={type:r.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:r.Operation,entityId:ds},tE={id:"current-iteration-number-input-map-id",version:1,type:r.InputMap,declaration:Ea,name:null,description:null,readsValue:pN,dynamicArguments:[],defaultValue:null,index:1,parent:yN},hN={type:r.GenericReference,id:"join-hello-world-and-number-parent-ref-id",entityType:r.FunctionDeclaration,entityId:an},fN={type:r.Operation,id:ds,declaration:pi,version:1,inputs:[lN,tE],outputs:[dN],process:null,calledByError:[],calledByEntry:[uN],calledBySuccess:[],dynamicArguments:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:hN},mN={id:"manual-hello-world-loop-iterations-results-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:vl,entityType:r.ArgumentDeclaration},TN={id:"manual-hello-world-loop-iterations-results-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!0,isNullable:!1,constant:!1,entity:null,asType:!1,defaultValue:null,parent:mN},EN={id:"manual-hello-world-loop-previous-iterations-results-output-map-parent-ref-id",type:r.GenericReference,entityId:Fi,entityType:r.FunctionDeclaration},RN={id:vl,type:r.ArgumentDeclaration,version:1,name:"Previous iterations results",description:"The results of the previous iterations of the loop.",required:!0,dataType:TN,writesValues:[QT],index:1,parent:EN},bN={id:"manual-hello-world-loop-current-iteration-number-output-map-parent-ref-id",type:r.GenericReference,entityId:Fi,entityType:r.FunctionDeclaration},vN={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:cs,entityType:r.ArgumentDeclaration};r.DataType;const gN={id:cs,type:r.ArgumentDeclaration,version:1,name:"Current iteration number",description:"The number of the current iteration of the loop. Starts at 1.",required:!0,dataType:null,writesValues:[tE],index:0,parent:bN},IN={id:"manual-flow-loop-body-parent-ref-id",type:r.GenericReference,entityId:an,entityType:r.Loop},PN={id:Fi,type:r.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called multiple times, once for each iteration of the loop.",inputs:[gN,RN],calls:[aN,fN],implements:null,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:IN},DN={type:r.GenericReference,id:"hello-world-loop-break-statement-output-map-parent-ref-id",entityType:r.Loop,entityId:an},AN={type:r.OutputMap,id:WT,version:1,declaration:Il,writesValues:[HT],index:0,parent:DN},SN={id:"manual-hello-world-loop-parent-ref-id",type:r.GenericReference,entityId:J,entityType:r.Project},ON={id:"manual-hello-world-loop-called-by-ref-id",type:r.GenericReference,entityId:bl,entityType:r.FunctionDeclaration},CN={id:an,type:r.Loop,version:1,declaration:Lo,inputs:[],outputs:[AN],body:PN,successCalls:[YT],errorCalls:[],process:null,error:null,calledByError:[],calledByEntry:[ON],calledBySuccess:[],breakStatements:[zT],continueStatements:[XT],x:0,y:0,parent:SN},BN={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref-id",entityType:r.Project,entityId:J},nE={type:r.FunctionDeclaration,id:bl,version:1,name:"Manual hello world loop",description:null,inputs:[],calls:[CN],returnStatements:[YT],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:BN},wN={type:r.GenericReference,id:"call-hello-world-loop-parent-ref-id",entityType:r.Project,entityId:J},_N={id:"call-hello-world-loop-id",type:r.FunctionCall,version:1,declaration:nE,inputs:[],outputs:[],process:null,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:wN},sn="company-dto-function-declaration-id",Pl="company-dto-func-declaration-argument-dcl-id",Ht="company-dto-function-company-variable-id",Cn="company-dto-function-company-dto-variable-id",Fr="iterate-over-employee-list-loop-id",rE="iterate-over-employee-list-loop-employee-dto-output-map-id",Dl="iterate-over-employee-list-loop-body-current-employee-argument-declaration-id",xi="iterate-over-employee-list-loop-body-map-employee-dto-function-call-id",iE="iterate-over-employee-list-continue-statement-employee-dto-output-decl-id",MN="iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-id",aE="iterate-over-employee-list-continue-statement-id",ps="iterate-over-employee-list-loop-body-id",sE="company-dto-func-declaration-return-statement-id",oE="company-dto-func-declaration-return-decl-id",lE="company-dto-func-declaration-company-variable-id-output-map-id",cE="company-dto-func-declaration-company-variable-employess-output-map-id",dE="company-dto-func-declaration-company-variable-name-output-map-id",NN="company-dto-func-declaration-company-dto-variable-input-map-id",$N="company-dto-func-declaration-company-dto-variable-employess-input-map-id",VN="company-dto-func-declaration-company-dto-variable-name-input-map-id",ys="company-dto-func-declaration-owner-variable-id",LN="company-dto-func-declaration-company-dto-variable-owner-input-map-id",uE="company-dto-func-declaration-company-variable-owner-output-map-id",pE="company-dto-func-declaration-owner-variable-id-output-map-id",hs="company-dto-func-declaration-bank-account-variable-id",GN="company-dto-func-declaration-company-dto-variable-bank-account-input-map-id",yE="company-dto-func-declaration-company-variable-bank-account-output-map-id",hE="company-dto-func-declaration-bank-account-variable-id-output-map-id",FN={type:r.GenericReference,id:"company-dto-func-returned-company-dto-data-type-parent-ref-id",entityType:r.ReturnDeclaration,entityId:oE},UN={id:"company-dto-func-returned-company-dto-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:FN},xN={type:r.GenericReference,id:"company-dto-func-returned-company-dto-parent-ref-id",entityType:r.ReturnStatement,entityId:sE},jN={type:r.GenericReference,id:"company-dto-func-returned-company-dto-reads-value-ref-id",entityType:r.VariableDeclaration,entityId:Cn},fE={isError:!1,id:oE,type:r.ReturnDeclaration,version:1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",dataType:UN,readsValue:jN,required:!0,index:0,parent:xN},kN={type:r.GenericReference,id:"company-dto-func-return-statement-called-by-ref-id",entityType:r.Operation,entityId:Cn},qN={type:r.GenericReference,id:"company-dto-func-return-statement-parent-ref-id",entityType:r.FunctionDeclaration,entityId:sn},Al={type:r.ReturnStatement,id:sE,version:1,outputs:[fE],calledByError:[],calledByEntry:[],calledBySuccess:[kN],throws:null,x:0,y:0,parent:qN},JN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-owner-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:pE},WN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-owner-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Cn},mE={id:LN,type:r.InputMap,version:1,declaration:null,name:"owner_id",description:null,defaultValue:null,dynamicArguments:[],index:5,readsValue:JN,parent:WN},HN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:hE},YN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Cn},TE={id:GN,type:r.InputMap,version:1,declaration:null,name:"bank_account_id",description:null,defaultValue:null,dynamicArguments:[],index:4,readsValue:HN,parent:YN},zN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-name-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:dE},ZN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-name-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Cn},EE={id:VN,type:r.InputMap,version:1,declaration:null,name:"name",description:null,defaultValue:null,dynamicArguments:[],index:3,readsValue:zN,parent:ZN},XN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-employess-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:rE},QN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-employess-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Cn},RE={id:$N,type:r.InputMap,version:1,declaration:null,name:"employees",description:null,defaultValue:null,dynamicArguments:[],index:2,readsValue:XN,parent:QN},KN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-reads-value-ref-id",entityType:r.OutputMap,entityId:lE},e0={type:r.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Cn},bE={id:NN,type:r.InputMap,version:1,declaration:null,name:"id",description:"The ID of the company",defaultValue:null,dynamicArguments:[],index:1,readsValue:KN,parent:e0},t0={type:r.GenericReference,id:"company-dto-func-company-dto-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:sn},n0={type:r.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-one-id",entityType:r.VariableDeclaration,entityId:hs},r0={type:r.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-two-id",entityType:r.VariableDeclaration,entityId:ys},i0={type:r.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-three-id",entityType:r.VariableDeclaration,entityId:Fr},Sl={id:Cn,type:r.VariableDeclaration,version:1,name:"Company DTO",dataType:null,description:"A variable holding the data of a mapped company DTO",calledByError:[],calledByEntry:[],calledBySuccess:[n0,r0,i0],successCalls:[Al],errorCalls:[],readsValue:null,writesValues:[fE],inputs:[bE,EE,TE,mE,RE],outputs:[],internalCalls:[],parent:t0,x:0,y:0},Yn="employee-dto-func-declaration-id",Ol="employee-dto-func-declaration-argument-dcl-id",vE="employee-dto-func-declaration-return-statement-id",gE="employee-dto-func-declaration-return-decl-id",zn="employee-dto-func-declaration-employee-variable-id",Zn="employee-dto-func-declaration-employee-dto-variable-id",fs="employee-dto-func-declaration-manager-variable-id",IE="employee-dto-func-declaration-employee-variable-id-output-map-id",PE="employee-dto-func-declaration-employee-variable-birth-date-output-map-id",DE="employee-dto-func-declaration-employee-variable-department-output-map-id",AE="employee-dto-func-declaration-employee-variable-manager-output-map-id",SE="employee-dto-func-declaration-manager-variable-id-output-map-id",a0="employee-dto-func-declaration-employee-dto-variable-input-map-id",s0="employee-dto-func-declaration-employee-dto-variable-birth-date-input-map-id",o0="employee-dto-func-declaration-employee-dto-variable-department-input-map-id",l0="employee-dto-func-declaration-employee-dto-variable-manager-input-map-id",c0={type:r.GenericReference,id:"employee-dto-func-returned-employee-dto-data-type-parent-ref-id",entityType:r.ReturnDeclaration,entityId:gE},d0={id:"employee-dto-func-returned-employee-dto-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:c0},u0={type:r.GenericReference,id:"employee-dto-func-returned-employee-dto-parent-ref-id",entityType:r.ReturnStatement,entityId:vE},p0={type:r.GenericReference,id:"employee-dto-func-returned-employee-dto-reads-value-ref-id",entityType:r.VariableDeclaration,entityId:Zn},OE={isError:!1,id:gE,type:r.ReturnDeclaration,version:1,name:"Employee DTO",description:"Output the employee data in the format that it will be sent through an HTTP request.",dataType:d0,readsValue:p0,required:!0,index:0,parent:u0},y0={type:r.GenericReference,id:"employee-dto-func-return-statement-called-by-ref-id",entityType:r.Operation,entityId:Zn},h0={type:r.GenericReference,id:"employee-dto-func-return-statement-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Yn},Cl={type:r.ReturnStatement,id:vE,version:1,outputs:[OE],calledByError:[],calledByEntry:[],calledBySuccess:[y0],throws:null,x:0,y:0,parent:h0},f0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:SE},m0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Zn},CE={id:l0,type:r.InputMap,version:1,declaration:null,name:"manager_id",description:null,defaultValue:null,dynamicArguments:[],index:4,readsValue:f0,parent:m0},T0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-department-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:DE},E0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-department-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Zn},BE={id:o0,type:r.InputMap,version:1,declaration:null,name:"department_name",description:null,defaultValue:null,dynamicArguments:[],index:3,readsValue:T0,parent:E0},R0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:PE},b0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Zn},wE={id:s0,type:r.InputMap,version:1,declaration:null,name:"birth_date",description:null,defaultValue:null,dynamicArguments:[],index:2,readsValue:R0,parent:b0},v0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-reads-value-ref-id",entityType:r.OutputMap,entityId:IE},g0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Zn},_E={id:a0,type:r.InputMap,version:1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,dynamicArguments:[],index:1,readsValue:v0,parent:g0},I0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Yn},P0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-called-by-ref-id",entityType:r.VariableDeclaration,entityId:fs},D0={id:Zn,type:r.VariableDeclaration,version:1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",calledByError:[],calledByEntry:[],calledBySuccess:[P0],successCalls:[Cl],errorCalls:[],readsValue:null,writesValues:[OE],inputs:[_E,wE,BE,CE],outputs:[],internalCalls:[],parent:I0,x:0,y:0},A0={type:r.GenericReference,id:"employee-dto-func-manager-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:fs},S0={id:SE,type:r.OutputMap,version:1,declaration:Be.properties[1],index:0,writesValues:[CE],parent:A0},O0={type:r.GenericReference,id:"employee-dto-func-manager-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:fs},C0={id:"employee-dto-func-manager-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:It,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:O0,defaultValue:null},B0={type:r.GenericReference,id:"employee-dto-func-manager-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:AE},w0={type:r.GenericReference,id:"employee-dto-func-manager-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Yn};r.GenericReference,r.VariableDeclaration;const ME={id:fs,type:r.VariableDeclaration,version:1,name:"Manager",dataType:C0,description:"A variable holding an inherited manager",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[D0],errorCalls:[],readsValue:B0,writesValues:[],inputs:[],outputs:[S0],internalCalls:[],parent:w0,x:0,y:0},_0={type:r.GenericReference,id:"employee-dto-func-employee-variable-manager-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:zn},M0={id:AE,type:r.OutputMap,version:1,declaration:It.properties[2],index:3,writesValues:[ME],parent:_0},N0={type:r.GenericReference,id:"employee-dto-func-employee-variable-department-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:zn},$0={id:DE,type:r.OutputMap,version:1,declaration:It.properties[0],index:2,writesValues:[BE],parent:N0},V0={type:r.GenericReference,id:"employee-dto-func-employee-variable-birth-date-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:zn},L0={id:PE,type:r.OutputMap,version:1,declaration:ct.properties[1],index:1,writesValues:[wE],parent:V0},G0={type:r.GenericReference,id:"employee-dto-func-employee-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:zn},F0={id:IE,type:r.OutputMap,version:1,declaration:Be.properties[1],index:0,writesValues:[_E],parent:G0},U0={type:r.GenericReference,id:"employee-dto-func-employee-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:zn},x0={id:"employee-dto-func-employee-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:It,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:U0,defaultValue:null},j0={type:r.GenericReference,id:"employee-dto-func-employee-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Yn},k0={type:r.GenericReference,id:"employee-dto-func-employee-variable-reads-value-ref-id",entityType:r.ArgumentDeclaration,entityId:Ol},q0={type:r.GenericReference,id:"employee-dto-func-employee-variable-called-by-id",entityType:r.FunctionDeclaration,entityId:Yn},NE={id:zn,type:r.VariableDeclaration,version:1,name:"Company employee",dataType:x0,description:"A variable holding a company employee",calledByError:[],calledByEntry:[q0],calledBySuccess:[],successCalls:[ME],errorCalls:[],readsValue:k0,writesValues:[],inputs:[],outputs:[F0,L0,$0,M0],internalCalls:[],parent:j0,x:0,y:0},J0={type:r.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-data-type-parent-ref-id",entityId:Ol,entityType:r.ArgumentDeclaration},W0={type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"employee-dto-func-declaration-employee-input-declaration-data-type-id",version:1,entity:It,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:J0,defaultValue:null},H0={type:r.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-parent-ref-id",entityId:Yn,entityType:r.FunctionDeclaration},Y0={type:r.ArgumentDeclaration,id:Ol,version:1,name:"Employee",description:"The employee to create a DTO for",required:!0,dataType:W0,index:0,writesValues:[NE],parent:H0},z0={type:r.GenericReference,id:"employee-dto-function-declaration-parent-ref-id",entityType:r.Project,entityId:J},Bl={type:r.FunctionDeclaration,id:Yn,version:1,name:"Employee DTO",description:"Takes a employee and returns a DTO of that employee",index:null,inputs:[Y0],calls:[NE],implements:null,returnStatements:[Cl],collapsed:!1,private:!1,x:0,y:0,parent:z0},Z0={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-parent-ref-id",type:r.GenericReference,entityId:iE,entityType:r.ReturnDeclaration},X0={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:It,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:Z0},Q0={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-reads-value-ref-id",type:r.GenericReference,entityId:xi,entityType:r.OutputMap},K0={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-parent-ref-id",type:r.GenericReference,entityId:aE,entityType:r.ContinueStatement},$E={isError:!1,id:iE,type:r.ReturnDeclaration,version:1,name:"Employee DTO",description:"The DTO of the employee entity.",readsValue:Q0,dataType:X0,required:!0,index:0,parent:K0},e1={id:"iterate-over-employee-list-continue-statement-called-by-ref-id",type:r.GenericReference,entityId:xi,entityType:r.FunctionCall},t1={id:"iterate-over-employee-list-continue-statement-parent-ref-id",type:r.GenericReference,entityId:Fr,entityType:r.Loop},VE={id:aE,type:r.ContinueStatement,version:1,calledByError:[],calledByEntry:[],calledBySuccess:[e1],outputs:[$E],throws:null,x:0,y:0,parent:t1},n1={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-parent-ref-id",type:r.GenericReference,entityId:xi,entityType:r.FunctionCall},r1={id:MN,type:r.OutputMap,version:1,declaration:Cl.outputs[0],writesValues:[$E],index:0,parent:n1},i1={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-reads-value-ref-id",type:r.GenericReference,entityId:Dl,entityType:r.ArgumentDeclaration},a1={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-parent-ref-id",type:r.GenericReference,entityId:xi,entityType:r.FunctionCall},LE={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-id",type:r.InputMap,version:1,name:null,description:null,declaration:Bl.inputs[0],readsValue:i1,index:0,defaultValue:null,dynamicArguments:[],parent:a1},s1={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-called-by-ref-id",type:r.GenericReference,entityId:ps,entityType:r.FunctionDeclaration},o1={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-parent-ref-id",type:r.GenericReference,entityId:ps,entityType:r.FunctionDeclaration},l1={id:xi,type:r.FunctionCall,version:1,declaration:Bl,inputs:[LE],process:null,outputs:[r1],calledByError:[],calledByEntry:[s1],calledBySuccess:[],successCalls:[VE],errorCalls:[],error:null,x:0,y:0,parent:o1},c1={type:r.GenericReference,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-parent-ref-id",entityId:Dl,entityType:r.ArgumentDeclaration},d1={id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:It,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:c1},u1={id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:ps,entityType:r.FunctionDeclaration},p1={id:Dl,type:r.ArgumentDeclaration,version:1,name:"Current employee",description:"The current employee entity being processed.",dataType:d1,required:!0,index:0,writesValues:[LE],parent:u1},y1={id:"iterate-over-employee-list-loop-body-parent-ref-id",type:r.GenericReference,entityId:Fr,entityType:r.Loop},h1={id:ps,type:r.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each entity in the list.",inputs:[p1],calls:[l1],implements:null,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:y1},f1={id:"iterate-over-employee-list-loop-iteration-list-input-map-parent-ref-id",type:r.GenericReference,entityId:Fr,entityType:r.Loop},m1={id:"iterate-over-employee-list-loop-iteration-list-input-map-reads-value-ref-id",type:r.GenericReference,entityId:cE,entityType:r.OutputMap},GE={id:"iterate-over-employee-list-loop-iteration-list-input-map-id",type:r.InputMap,version:1,name:null,description:null,declaration:jn.fixedArguments[0],defaultValue:null,dynamicArguments:[],readsValue:m1,index:0,parent:f1},T1={id:"iterate-over-employee-list-loop-parent-ref-id",type:r.GenericReference,entityId:sn,entityType:r.FunctionDeclaration},E1={id:"iterate-over-employee-list-loop-employee-dto-output-map-parent-ref-id",type:r.GenericReference,entityId:Fr,entityType:r.Loop},R1={id:rE,type:r.OutputMap,version:1,declaration:jn.fixedReturns[0],writesValues:[RE],index:0,parent:E1},b1={type:r.GenericReference,id:"iterate-over-employee-list-loop-called-by-ref-id",entityType:r.VariableDeclaration,entityId:Ht},v1={id:Fr,type:r.Loop,version:1,declaration:jn,inputs:[GE],successCalls:[Sl],errorCalls:[],outputs:[R1],body:h1,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[b1],breakStatements:[],continueStatements:[VE],error:null,x:0,y:0,parent:T1},g1={type:r.GenericReference,id:"company-dto-func-bank-account-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:hs},I1={id:hE,type:r.OutputMap,version:1,declaration:Be.properties[1],index:0,writesValues:[TE],parent:g1},P1={type:r.GenericReference,id:"company-dto-func-bank-account-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:hs},D1={id:"company-dto-func-bank-account-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:P1,defaultValue:null},A1={type:r.GenericReference,id:"company-dto-func-bank-account-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:yE},S1={type:r.GenericReference,id:"company-dto-func-bank-account-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:sn};r.GenericReference,r.VariableDeclaration;const FE={id:hs,type:r.VariableDeclaration,version:1,name:"Bank account",dataType:D1,description:"A variable holding an inherited bank account",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[Sl],errorCalls:[],readsValue:A1,writesValues:[],inputs:[],outputs:[I1],internalCalls:[],parent:S1,x:0,y:0},O1={type:r.GenericReference,id:"company-dto-func-owner-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:ys},C1={id:pE,type:r.OutputMap,version:1,declaration:Be.properties[1],index:0,writesValues:[mE],parent:O1},B1={type:r.GenericReference,id:"company-dto-func-owner-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:ys},w1={id:"company-dto-func-owner-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:B1,defaultValue:null},_1={type:r.GenericReference,id:"company-dto-func-owner-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:uE},M1={type:r.GenericReference,id:"company-dto-func-owner-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:sn};r.GenericReference,r.VariableDeclaration;const UE={id:ys,type:r.VariableDeclaration,version:1,name:"Owner",dataType:w1,description:"A variable holding an inherited owner",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[Sl],errorCalls:[],readsValue:_1,writesValues:[],inputs:[],outputs:[C1],internalCalls:[],parent:M1,x:0,y:0},N1={type:r.GenericReference,id:"company-dto-func-company-variable-owner-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ht},$1={id:uE,type:r.OutputMap,version:1,declaration:mt.properties[2],index:4,writesValues:[UE],parent:N1},V1={type:r.GenericReference,id:"company-dto-func-company-variable-bank-account-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ht},L1={id:yE,type:r.OutputMap,version:1,declaration:mt.properties[2],index:3,writesValues:[FE],parent:V1},G1={type:r.GenericReference,id:"company-dto-func-company-variable-name-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ht},F1={id:dE,type:r.OutputMap,version:1,declaration:mt.properties[0],index:2,writesValues:[EE],parent:G1},U1={type:r.GenericReference,id:"company-dto-func-company-variable-employess-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ht},x1={id:cE,type:r.OutputMap,version:1,declaration:mt.properties[3],index:1,writesValues:[GE],parent:U1},j1={type:r.GenericReference,id:"company-dto-func-company-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ht},k1={id:lE,type:r.OutputMap,version:1,declaration:Be.properties[1],index:0,writesValues:[bE],parent:j1},q1={type:r.GenericReference,id:"company-dto-func-company-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ht},J1={id:"company-dto-func-company-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:q1,defaultValue:null},W1={type:r.GenericReference,id:"company-dto-func-company-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:sn},H1={type:r.GenericReference,id:"company-dto-func-company-variable-reads-value-ref-id",entityType:r.ArgumentDeclaration,entityId:Pl},Y1={type:r.GenericReference,id:"company-dto-func-company-variable-called-by-id",entityType:r.FunctionDeclaration,entityId:sn},xE={id:Ht,type:r.VariableDeclaration,version:1,name:"Company",dataType:J1,description:"A variable holding a company",calledByError:[],calledByEntry:[Y1],calledBySuccess:[],successCalls:[FE,UE,v1],errorCalls:[],readsValue:H1,writesValues:[],inputs:[],outputs:[k1,x1,F1,L1,$1],internalCalls:[],parent:W1,x:0,y:0},z1={type:r.GenericReference,id:"company-dto-func-declaration-company-input-declaration-data-type-parent-ref-id",entityId:Pl,entityType:r.ArgumentDeclaration},Z1={type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"company-dto-func-declaration-company-input-declaration-data-type-id",version:1,entity:mt,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:z1,defaultValue:null},X1={type:r.GenericReference,id:"company-dto-func-declaration-company-input-declaration-parent-ref-id",entityId:sn,entityType:r.FunctionDeclaration},Q1={type:r.ArgumentDeclaration,id:Pl,version:1,name:"Company",description:"The company to create a DTO for",required:!0,dataType:Z1,index:0,writesValues:[xE],parent:X1},K1={type:r.GenericReference,id:"company-dto-function-declaration-parent-ref-id",entityType:r.Project,entityId:J},wl={type:r.FunctionDeclaration,id:sn,version:1,name:"Company DTO",description:"Takes a company and returns a DTO of that company",inputs:[Q1],calls:[xE],implements:null,index:null,returnStatements:[Al],collapsed:!1,private:!1,x:0,y:0,parent:K1},ji="exec-in-parallel-operation-call-id",ki="exec-sequentially-operation-call-id",dt="concurrency-and-wait-function-declaration-id",jE="concurrency-and-wait-return-statement-id",kE="concurrency-and-wait-return-declaration-id",_l="exec-in-parallel-argument-map-id",qE="exec-sequentially-argument-map-id",Ml="wait-for-2-seconds-operation-id",JE="wait-for-2-seconds-argument-map-id",Nl="map-company-dto-function-call-id",WE="map-company-dto-function-call-company-dto-output-map-id",qi="company-dto-variable-one-id",$l="company-dto-variable-one-instance-id",e$="company-dto-variable-two-id",t$={type:r.GenericReference,id:"returned-company-dto-data-type-parent-ref-id",entityType:r.ReturnDeclaration,entityId:kE},n$={id:"returned-company-dto-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:t$},r$={type:r.GenericReference,id:"returned-company-dto-parent-ref-id",entityType:r.ReturnStatement,entityId:jE},i$={type:r.GenericReference,id:"returned-company-dto-reads-value-ref-id",entityType:r.VariableDeclaration,entityId:qi},HE={isError:!1,id:kE,type:r.ReturnDeclaration,version:1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",dataType:n$,readsValue:i$,required:!0,index:0,parent:r$},a$={type:r.GenericReference,id:"concurrency-and-wait-return-statement-called-by-ref-id",entityType:r.Operation,entityId:Ml},s$={type:r.GenericReference,id:"concurrency-and-wait-return-statement-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},YE={type:r.ReturnStatement,id:jE,version:1,outputs:[HE],calledByError:[],calledByEntry:[],calledBySuccess:[a$],throws:null,x:0,y:0,parent:s$},o$={type:r.GenericReference,id:"company-dto-variable-two-called-by-ref-id",entityType:r.VariableInstance,entityId:$l},l$={type:r.GenericReference,id:"company-dto-variable-two-reads-value-ref-id",entityType:r.VariableInstance,entityId:$l},c$={type:r.GenericReference,id:"company-dto-variable-two-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},zE={id:e$,type:r.VariableDeclaration,version:1,name:"Company DTO",description:null,dataType:null,inputs:[],outputs:[],successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[o$],internalCalls:[],writesValues:[HE],readsValue:l$,x:0,y:0,parent:c$},d$={type:r.GenericReference,id:"company-dto-variable-one-instance-called-by-ref-id",entityType:r.VariableDeclaration,entityId:qi},u$={type:r.GenericReference,id:"company-dto-variable-one-instance-reads-value-ref-id",entityType:r.VariableDeclaration,entityId:qi},p$={type:r.GenericReference,id:"company-dto-variable-one-instance-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},y$={type:r.GenericReference,id:"company-dto-variable-one-instance-declaration-ref-id",entityType:r.VariableDeclaration,entityId:qi},ZE={id:$l,type:r.VariableInstance,version:1,declaration:y$,inputs:[],outputs:[],successCalls:[zE],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[d$],internalCalls:[],writesValues:[zE],readsValue:u$,x:0,y:0,parent:p$},h$={type:r.GenericReference,id:"company-dto-variable-one-called-by-ref-id",entityType:r.FunctionCall,entityId:Nl},f$={type:r.GenericReference,id:"company-dto-variable-one-reads-value-ref-id",entityType:r.OutputMap,entityId:WE},m$={type:r.GenericReference,id:"company-dto-variable-one-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},XE={id:qi,type:r.VariableDeclaration,version:1,name:"Company DTO",description:null,dataType:null,inputs:[],outputs:[],successCalls:[ZE],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[h$],internalCalls:[],writesValues:[ZE],readsValue:f$,x:0,y:0,parent:m$},QE={type:r.GenericReference,id:"map-company-dto-function-call-company-input-map-parent-ref-id",entityType:r.FunctionCall,entityId:Nl},T$={id:"map-company-dto-function-call-company-input-map-id",type:r.InputMap,version:1,declaration:wl.inputs[0],name:null,description:null,defaultValue:null,dynamicArguments:[],index:0,readsValue:null,parent:QE},E$={id:WE,type:r.OutputMap,version:1,declaration:Al.outputs[0],writesValues:[XE],index:0,parent:QE},R$={id:"map-company-dto-function-call-called-by-ref-id",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:dt},b$={id:"map-company-dto-function-call-parent-ref-id",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:dt},v$={id:Nl,type:r.FunctionCall,version:1,declaration:wl,successCalls:[XE],process:null,errorCalls:[],inputs:[T$],outputs:[E$],calledByError:[],calledByEntry:[R$],calledBySuccess:[],parent:b$,x:0,y:0,error:null},g$={type:r.GenericReference,id:"last-timestamp-variable-datatype-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ym},I$={type:r.GenericReference,id:"last-timestamp-variable-default-value-parent-ref-id",entityType:r.DataType,entityId:"last-timestamp-variable-datatype-id"},P$={id:"last-timestamp-variable-datatype-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Sr,version:1,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:g$,defaultValue:{id:"last-timestamp-variable-default-value-id",type:r.PrimitiveValue,version:1,name:g.Date,value:null,autogeneration:{type:xe.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:I$,valueAsType:null}},D$={type:r.GenericReference,id:"last-timestamp-variable-main-project-ref-id",entityType:r.Project,entityId:J},Vl={id:Ym,type:r.VariableDeclaration,version:1,name:"Last registered current time",description:"A test variable that holds the last current date and time that was registered.",dataType:P$,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:D$},A$={type:r.GenericReference,id:"wait-for-2-seconds-argument-default-value-parent-ref-id",entityType:r.InputMap,entityId:JE},S$={type:r.GenericReference,id:"wait-for-2-seconds-argument-map-parent-ref-id",entityType:r.Operation,entityId:Ml},O$={id:JE,type:r.InputMap,version:1,declaration:Un,name:null,description:null,dynamicArguments:[],readsValue:null,defaultValue:{id:"wait-for-2-seconds-argument-default-value-id",type:r.PrimitiveValue,version:1,value:2e3,valueAsType:null,autogeneration:null,name:g.Number,parent:A$},index:0,parent:S$},C$={type:r.GenericReference,id:"wait-for-2-seconds-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},B$={type:r.GenericReference,id:"wait-for-2-seconds-called-by-ref-one-id",entityType:r.FunctionDeclaration,entityId:ki},w$={type:r.GenericReference,id:"wait-for-2-seconds-called-by-ref-two-id",entityType:r.FunctionDeclaration,entityId:ji},KE={id:Ml,type:r.Operation,version:1,declaration:$t,inputs:[O$],dynamicArguments:[],outputs:[],process:null,successCalls:[YE],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[B$,w$],calledBySuccess:[],error:null,parent:C$},_$={type:r.GenericReference,id:"wait-for-random-amount-argument-default-value-parent-ref-id",entityType:r.InputMap,entityId:"wait-for-random-amount-input-map-id"},M$={type:r.GenericReference,id:"wait-for-random-amount-argument-map-parent-ref-id",entityType:r.Operation,entityId:"wait-for-random-amount-id"},N$={id:"wait-for-random-amount-input-map-id",type:r.InputMap,version:1,declaration:Un,name:null,description:null,dynamicArguments:[],readsValue:null,defaultValue:{id:"wait-for-random-amount-argument-default-value-id",type:r.PrimitiveValue,version:1,value:null,valueAsType:null,autogeneration:{type:xe.Random,rangeStart:1e3,rangeEnd:4e3},name:g.Number,parent:_$},index:0,parent:M$},$$={type:r.GenericReference,id:"wait-for-random-amount-parent-ref-id",entityType:r.Project,entityId:J},Ur={id:"wait-for-random-amount-id",type:r.Operation,version:1,declaration:$t,inputs:[N$],dynamicArguments:[],process:null,outputs:[],successCalls:[],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,parent:$$},eR="list-of-functions-variable-id",V$={type:r.GenericReference,id:"list-of-functions-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:eR},L$={id:"list-of-functions-variable-action-descriptor-id",type:r.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:L.Dynamic,dynamicArgumentTypes:null,fixedArguments:[],returnsType:L.Dynamic,error:null,dynamicReturnTypes:null,fixedReturns:[],parent:null},G$={type:r.GenericReference,id:"list-of-functions-variable-data-type-default-parent-ref-id",entityType:r.DataType,entityId:"list-of-functions-variable-data-type-id"},F$={id:"list-of-functions-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:L$,asType:!1,isList:!0,isNullable:!1,defaultValue:{id:"list-of-functions-variable-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:g.ActionDescriptor,value:null,valueAsType:[Ur,Ur,Ur,Ur,Ur],autogeneration:null,parent:G$},constant:!1,parent:V$},U$={type:r.GenericReference,id:"list-of-functions-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt};r.GenericReference,r.InputMap;const x$={type:r.GenericReference,id:"list-of-functions-variable-writes-value-one-ref-id",entityType:r.InputMap,entityId:qE},j$={type:r.GenericReference,id:"list-of-functions-variable-writes-value-two-ref-id",entityType:r.InputMap,entityId:_l},tR={id:eR,type:r.VariableDeclaration,version:1,name:"List of functions to execute",description:"A list of functions to be executed in parallel",dataType:F$,parent:U$,readsValue:null,writesValues:[x$,j$],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],inputs:[],outputs:[],internalCalls:[],x:0,y:0},k$={type:r.GenericReference,id:"exec-in-parallel-return-map-parent-ref-id",entityType:r.Operation,entityId:ji},q$={type:r.GenericReference,id:"exec-in-parallel-result-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},J$={type:r.GenericReference,id:"exec-in-parallel-result-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:"exec-in-parallel-return-map-id"},W$={type:r.GenericReference,id:"exec-in-parallel-result-variable-called-by-ref-id",entityType:r.Operation,entityId:ji},nR={id:"exec-in-parallel-result-variable-id",type:r.VariableInstance,version:1,declaration:Vl,readsValue:J$,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[W$],successCalls:[],errorCalls:[],internalCalls:[],parent:q$,x:0,y:0},H$={id:"exec-in-parallel-return-map-id",type:r.OutputMap,version:1,declaration:Bo,writesValues:[nR],index:0,parent:k$},Y$={type:r.GenericReference,id:"exec-in-parallel-argument-map-parent-ref-id",entityType:r.Operation,entityId:ji},z$={id:_l,type:r.InputMap,version:1,declaration:Co,name:null,description:null,dynamicArguments:[],readsValue:tR,defaultValue:null,index:0,parent:Y$},Z$={type:r.GenericReference,id:"exec-in-parallel-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},X$={type:r.GenericReference,id:"exec-in-parallel-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:dt},Q$={process:null,id:ji,type:r.Operation,version:1,declaration:$t,inputs:[z$],dynamicArguments:[],outputs:[H$],successCalls:[KE,nR],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[X$],calledBySuccess:[],error:null,parent:Z$},K$={type:r.GenericReference,id:"exec-sequentially-return-map-parent-ref-id",entityType:r.Operation,entityId:ki},eV={type:r.GenericReference,id:"exec-sequentially-result-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},tV={type:r.GenericReference,id:"exec-sequentially-result-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:"exec-sequentially-return-map-id"},nV={type:r.GenericReference,id:"exec-sequentially-result-variable-called-by-ref-id",entityType:r.Operation,entityId:ki},rR={id:"exec-sequentially-result-variable-id",type:r.VariableInstance,version:1,declaration:Vl,readsValue:tV,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[nV],successCalls:[],errorCalls:[],internalCalls:[],parent:eV,x:0,y:0},rV={id:"exec-sequentially-return-map-id",type:r.OutputMap,version:1,declaration:_o,writesValues:[rR],index:0,parent:K$},iV={type:r.GenericReference,id:"exec-sequentially-argument-map-parent-ref-id",entityType:r.Operation,entityId:ki},aV={id:qE,type:r.InputMap,version:1,declaration:wo,name:null,description:null,dynamicArguments:[],readsValue:tR,defaultValue:null,index:0,parent:iV},sV={type:r.GenericReference,id:"exec-sequentially-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},oV={type:r.GenericReference,id:"exec-sequentially-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:dt},lV={id:ki,type:r.Operation,version:1,declaration:tn,inputs:[aV],process:null,dynamicArguments:[],outputs:[rV],successCalls:[KE,rR],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[oV],calledBySuccess:[],error:null,parent:sV},cV={type:r.GenericReference,id:"concurrency-and-wait-parent-ref-id",entityType:r.Project,entityId:J},dV={type:r.FunctionDeclaration,id:dt,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:[lV,Q$,v$],returnStatements:[YE],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:cV},uV={type:r.GenericReference,id:"3521f2c8-a5c0-419c-8808-4fc6a73d0b78",entityType:r.ReturnDeclaration,entityId:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},pV={id:"ce8b9a30-afe9-4d4f-879f-1677efca2c47",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:uV},yV={type:r.GenericReference,id:"8ee66e38-b060-474e-a503-594063a8ec24",entityType:r.ReturnStatement,entityId:"40a23a98-d3b2-42b1-9652-b33779ad15aa"},hV={isError:!1,id:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:r.ReturnDeclaration,version:1,name:"Created company",description:"The new company that was created",dataType:pV,readsValue:null,required:!0,index:0,parent:yV},fV={type:r.GenericReference,id:"9cb3c1e4-7250-4be6-be2a-69c2dd366d6f",entityType:r.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},mV={type:r.GenericReference,id:"c065fcdd-e054-4f95-941c-7eaa65c35d04",entityType:r.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},iR={type:r.ReturnStatement,id:"40a23a98-d3b2-42b1-9652-b33779ad15aa",version:1,outputs:[hV],calledByError:[],calledByEntry:[mV],calledBySuccess:[],throws:null,x:0,y:0,parent:fV},TV={type:r.GenericReference,id:"312ef836-9e40-4d57-b177-03b7145ed074",entityType:r.Project,entityId:J},EV={type:r.FunctionDeclaration,id:"5059c093-eda2-4efc-b7b4-aaaadd4d44de",version:1,name:"Create new company",description:null,inputs:[],calls:[iR],index:null,implements:null,returnStatements:[iR],collapsed:!1,private:!1,x:0,y:0,parent:TV},Ll="get-current-date-and-time-func-decl-id",aR="get-current-date-and-time-return-statement-id",sR="get-current-date-and-time-return-declaration-id",oR="get-current-date-and-time-return-declaration-data-type-id",RV={type:r.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-value-parent-ref-id",entityType:r.DataType,entityId:oR},bV={type:r.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-parent-ref-id",entityType:r.ReturnDeclaration,entityId:sR},vV={type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,id:oR,version:1,entity:Sr,asType:!1,isList:!1,isNullable:!1,defaultValue:{id:"last-timestamp-variable-default-value-id",type:r.PrimitiveValue,version:1,value:null,name:g.Date,valueAsType:null,autogeneration:{type:xe.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:RV},constant:!1,parent:bV},gV={type:r.GenericReference,id:"get-current-date-and-time-return-declaration-parent-ref-id",entityType:r.ReturnStatement,entityId:aR};r.ReturnDeclaration;const IV={type:r.GenericReference,id:"get-current-date-and-time-return-statement-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:Ll},PV={type:r.GenericReference,id:"get-current-date-and-time-return-statement-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Ll};r.ReturnStatement;const DV={type:r.GenericReference,id:"concurrency-and-wait-parent-ref-id",entityType:r.Project,entityId:J},AV={type:r.FunctionDeclaration,id:Ll,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:DV},lR="do-math-return-statement-id",cR="do-math-return-declaration-id",SV={type:r.GenericReference,id:"do-math-func-var-to-return-one-ref-id",entityType:r.VariableDeclaration,entityId:"do-math-func-var-to-return-one-id"},OV={id:"do-math-func-var-to-return-one-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:SV},CV={type:r.GenericReference,id:"do-math-func-decl-ref-two-id",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},BV={type:r.GenericReference,id:"do-math-func-var-to-return-one-map-ref-id",entityType:r.ReturnDeclaration,entityId:cR},wV={type:r.VariableDeclaration,id:"do-math-func-var-to-return-one-id",version:1,description:null,name:"Fixed result",dataType:OV,readsValue:null,writesValues:[BV],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:CV},_V={type:r.GenericReference,id:"96ec244e-594b-45f7-802b-6dc3056920f6",entityType:r.ReturnStatement,entityId:lR},MV={type:r.GenericReference,id:"d120c0cc-9d13-4e45-90e2-4e1ee825ca46",entityType:r.ReturnDeclaration,entityId:"873a3556-4911-4141-b2a0-49c677b56fb4"},NV={id:"da91aa23-9985-49ac-a8bf-9d623ba1ba8f",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:MV},$V={isError:!1,id:cR,version:1,type:r.ReturnDeclaration,name:"Result",description:null,dataType:NV,readsValue:wV,required:!0,index:0,parent:_V},VV={type:r.GenericReference,id:"57fd93e4-93a1-484e-82eb-4dd15d2d0e24",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},LV={type:r.GenericReference,id:"0a86e8d5-ab21-476e-a482-b928cbf351e3",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},dR={type:r.ReturnStatement,id:lR,version:1,outputs:[$V],calledByError:[],calledByEntry:[],calledBySuccess:[VV],parent:LV,throws:null,x:0,y:0},GV={type:r.GenericReference,id:"a2db26be-57f2-48e5-9769-cdbf0d95dc7c",entityType:r.VariableDeclaration,entityId:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a"},FV={id:"c3e9d5f0-204f-45f9-85f7-e1b56b468388",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:GV},UV={type:r.GenericReference,id:"692122c5-610a-4504-90dd-f5a5202d116c",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},xV={type:r.GenericReference,id:"do-math-func-return-one-called-by",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},jV={type:r.GenericReference,id:"6dceb501-be5b-4252-afb4-3c0d08abba33",entityType:r.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},uR={type:r.VariableDeclaration,id:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a",version:1,name:"Result",dataType:FV,description:null,readsValue:jV,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[xV],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:UV},kV={type:r.GenericReference,id:"5440f523-af38-4981-8035-89d162fe8041",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},qV={type:r.GenericReference,id:"8c482c35-e674-4713-a1dd-63c3d13b611c",entityType:r.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},JV={type:r.GenericReference,id:"c0a299cd-5869-4930-8cf0-90e3ceb8a903",entityType:r.VariableDeclaration,entityId:"46b2fe23-b417-4887-a35d-09b186679172"},WV={id:"51c0c1df-2ee3-41df-ae52-ac512d8cf795",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:JV},HV={type:r.GenericReference,id:"do-math-func-return-two-called-by",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},pR={type:r.VariableDeclaration,id:"46b2fe23-b417-4887-a35d-09b186679172",version:1,name:"Total",description:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[HV],successCalls:[],errorCalls:[],dataType:WV,readsValue:qV,writesValues:[],internalCalls:[],parent:kV,x:0,y:0},yR={type:r.GenericReference,id:"6e4d776e-6af2-4321-b630-c78110fd677c",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},YV={type:r.GenericReference,id:"5b60955b-2486-40b6-bb24-ffd97ccd8902",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},zV={type:r.GenericReference,id:"1a49923f-bc6f-453f-a438-e74e5475c2a9",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},ZV={type:r.GenericReference,id:"02bfde0a-b757-4072-9613-6e9c7c9a424a",entityType:r.ArgumentDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},hR={id:"928953b0-0e3f-4d8c-ae5a-84620b4b8c68",version:1,type:r.InputMap,declaration:bo,name:null,description:null,dynamicArguments:[],readsValue:ZV,defaultValue:null,index:0,parent:zV},XV={id:"64752080-ee0f-4cfe-9897-a0668f2b2aca",type:r.OutputMap,version:1,declaration:go,writesValues:[uR,pR],index:0,parent:YV},QV={type:r.GenericReference,id:"d235a7f6-07ff-4f35-98d2-8f42dd59cf9f",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},KV={id:"8827e8e9-9381-4ad7-8f61-5419c23c9136",type:r.GenericReference,entityType:r.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},fR={id:"a5525249-0eb5-472b-97bc-5e4cc0d75aee",version:1,type:r.InputMap,declaration:vo,name:null,description:null,dynamicArguments:[],readsValue:KV,defaultValue:null,index:1,parent:QV},eL={type:r.Operation,id:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e",declaration:ma,version:1,inputs:[hR,fR],dynamicArguments:[],outputs:[XV],calledByError:[],calledByEntry:[yR],calledBySuccess:[],process:null,successCalls:[dR,uR,pR],errorCalls:[],parent:yR,error:null,x:0,y:0},tL={type:r.GenericReference,id:"a2c40226-2270-4963-a865-c777ba79c551",entityType:r.DataType,entityId:"a350a9e9-25ee-477f-a83d-9e98ed2451662"},nL={id:"f47731b3-f278-4ab5-aeb2-24519c1119fb",type:r.GenericReference,entityId:"72a338d8-0183-4ca2-8760-227517854595",entityType:r.ArgumentDeclaration},mR={id:"a350a9e9-25ee-477f-a83d-9e98ed2451662",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"do-math-func-argument-two-default-value-id",type:r.PrimitiveValue,version:1,value:1,name:g.Number,parent:tL,valueAsType:null,autogeneration:null},constant:!1,parent:nL},rL={type:r.GenericReference,id:"5f5d8dd0-7f3b-40cd-9f84-83d976887eaf",entityType:r.ArgumentDeclaration,entityId:"649bf0a4-6532-44aa-9818-a03d1c6564e9"},iL={type:r.GenericReference,id:"ca018d0f-a8b3-4c7e-a408-c8b372d04aff",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},aL={type:r.GenericReference,id:"do-math-func-var-called-by-ref",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},TR={type:r.VariableDeclaration,id:"72a338d8-0183-4ca2-8760-227517854595",version:1,name:"Z",description:null,dataType:mR,inputs:[],outputs:[],calledByError:[],calledByEntry:[aL],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:rL,writesValues:[fR],internalCalls:[],x:0,y:0,parent:iL},sL={entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",type:r.GenericReference,id:"af0cf105-4075-425f-aecc-b25d3600fcc4"},oL={id:"649bf0a4-6532-44aa-9818-a03d1c6564e9",type:r.ArgumentDeclaration,version:1,name:"Z",description:"The number to add",dataType:mR,writesValues:[TR],required:!0,index:1,parent:sL},lL={type:r.GenericReference,id:"56953b5d-3e43-4dea-a62c-f3e868ba81bb",entityType:r.Project,entityId:J},cL={id:"868defc8-5c95-48ed-942d-257e8b9b9b00",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},dL={type:r.GenericReference,id:"35167664-a793-49f1-9eaf-fb57eac30897",entityType:r.DataType,entityId:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2"},uL={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:r.GenericReference,entityId:"d8895765-f705-457e-85fa-25d130926769",entityType:r.ArgumentDeclaration},pL={id:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"do-math-func-argument-one-default-value-id",type:r.PrimitiveValue,version:1,value:5,name:g.Number,parent:dL,valueAsType:null,autogeneration:null},constant:!1,parent:uL},yL={id:"d8895765-f705-457e-85fa-25d130926769",type:r.ArgumentDeclaration,version:1,name:"N",dataType:pL,description:"The number to add",writesValues:[hR],required:!0,index:0,parent:cL},hL={type:r.FunctionDeclaration,id:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",version:1,name:"Do math",description:"This function does math",inputs:[yL,oL],calls:[eL,TR],implements:null,index:null,collapsed:!1,returnStatements:[dR],private:!1,x:0,y:0,parent:lL},Pt="replace-bank-account-in-company-func-declaration-id",Gl="company-entity-to-modify-arg-declaration-id",fL="account-number-to-create-arg-decl-id",xr="company-variable-id",jr="search-person-by-id-id",ER="new-bank-account-owner-arg-decl-id",RR="search-person-by-id-output-declaration-id",Fl="search-person-by-id-output-entity-map-id",ms="person-not-empty-condition-id",Ts="create-new-bank-account-instance-operation-id",bR="create-new-bank-account-instance-operation-output-entity-map-id",vR="company-bank-account-output-map-id",gR="old-bank-account-var-declaration-id",IR="company-variable-instance-id",mL="delete-bank-account-internal-call-id",TL={type:r.GenericReference,id:"company-variable-instance-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Pt},EL={type:r.GenericReference,id:"company-variable-instance-called-by-ref-id",entityType:r.InternalCall,entityId:mL},RL={type:r.GenericReference,id:"company-variable-instance-declaration-ref-id",entityType:r.VariableDeclaration,entityId:xr},bL={type:r.GenericReference,id:"bank-account-input-map-parent-ref-id",entityType:r.VariableInstance,entityId:IR},vL={type:r.GenericReference,id:"bank-account-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:bR},PR={type:r.InputMap,id:"bank-account-input-map-id",version:1,readsValue:vL,declaration:fl,name:null,description:null,index:0,defaultValue:null,dynamicArguments:[],parent:bL},gL={type:r.VariableInstance,id:IR,version:1,declaration:RL,inputs:[PR],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[EL],successCalls:[],errorCalls:[],internalCalls:[],parent:TL,readsValue:null,writesValues:[],x:0,y:0},IL={type:r.GenericReference,id:"bank-account-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:xr},PL={type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"bank-account-variable-data-type-id",version:1,entity:Lr,asType:!1,isList:!1,isNullable:!1,constant:!1,defaultValue:null,parent:IL},DL={type:r.GenericReference,id:"bank-account-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:vR},AL={type:r.GenericReference,id:"bank-account-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Pt},SL={type:r.GenericReference,id:"bank-account-variable-called-by-ref-id",entityType:r.VariableDeclaration,entityId:xr},OL={type:r.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-id",entityType:r.Operation,entityId:Ts},CL={type:r.GenericReference,id:"delete-bank-account-internal-call-parent-ref-id",entityType:r.VariableDeclaration,entityId:gR},DR={process:null,type:r.InternalCall,id:"delete-bank-account-internal-call-id",version:1,declaration:xo,index:0,successCalls:[gL],errorCalls:[],inputs:[],outputs:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[OL],parent:CL},AR={type:r.VariableDeclaration,id:gR,version:1,name:"Old bank account",description:"The existing bank account that needs to be replaced in the company entity",dataType:PL,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[SL],successCalls:[],internalCalls:[DR],errorCalls:[],parent:AL,readsValue:DL,writesValues:[],x:0,y:0},BL={type:r.GenericReference,id:"company-variable-declaration-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:xr},wL={type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"company-variable-declaration-data-type-id",version:1,entity:mt,asType:!1,isList:!1,isNullable:!1,constant:!1,defaultValue:null,parent:BL},_L={type:r.GenericReference,id:"company-variable-declaration-reads-value-ref-id",entityType:r.ArgumentDeclaration,entityId:Gl},ML={type:r.GenericReference,id:"company-variable-declaration-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Pt},NL={type:r.GenericReference,id:"company-variable-declaration-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:Pt},$L={type:r.GenericReference,id:"company-bank-account-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:xr},VL={id:vR,version:1,type:r.OutputMap,declaration:fl,index:0,parent:$L,writesValues:[AR]},SR={type:r.VariableDeclaration,id:xr,version:1,name:"Company",description:"The company entity that was passed as an argument to the parent function",dataType:wL,inputs:[],outputs:[VL],calledByError:[],calledByEntry:[NL],calledBySuccess:[],successCalls:[AR],errorCalls:[],parent:ML,internalCalls:[],readsValue:_L,writesValues:[],x:0,y:0},LL={type:r.GenericReference,id:"create-new-bank-account-account-owner-dynamic-input-map-parent-ref-id",entityType:r.InputMap,entityId:"create-new-bank-account-instance-operation-entity-to-create-input-map-id"},GL={id:"create-new-bank-account-account-owner-dynamic-input-map-reads-value-ref-id",type:r.GenericReference,entityType:r.OutputMap,entityId:Fl},OR={id:"create-new-bank-account-account-owner-dynamic-input-map-id",version:1,type:r.InputMap,declaration:tT,name:null,description:null,dynamicArguments:[],readsValue:GL,index:1,defaultValue:null,parent:LL},FL={id:"create-new-bank-account-account-number-dynamic-input-map-reads-value-ref-id",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:fL},UL={type:r.GenericReference,id:"create-new-bank-account-account-number-dynamic-input-map-parent-ref-id",entityType:r.InputMap,entityId:"create-new-bank-account-instance-operation-entity-to-create-input-map-id"},CR={id:"create-new-bank-account-account-number-dynamic-input-map-id",version:1,type:r.InputMap,declaration:eT,name:null,description:null,dynamicArguments:[],readsValue:FL,defaultValue:null,index:0,parent:UL},xL={type:r.GenericReference,id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",entityType:r.Operation,entityId:Ts},jL={id:"create-new-bank-account-instance-operation-entity-to-create-input-map-id",version:1,type:r.InputMap,declaration:Or.fixedArguments[0],name:null,description:null,dynamicArguments:[CR,OR],index:0,readsValue:null,defaultValue:{type:r.PrimitiveValue,name:g.EntityTemplate,value:null,valueAsType:Lr,autogeneration:null},parent:xL},kL={type:r.GenericReference,id:"create-new-bank-account-instance-operation-output-entity-map-parent-ref-id",entityType:r.Operation,entityId:Ts},qL={id:bR,version:1,type:r.OutputMap,declaration:Or.fixedReturns[0],index:0,writesValues:[PR],parent:kL},JL={type:r.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",entityType:r.Condition,entityId:ms},WL={type:r.GenericReference,id:"create-new-bank-account-instance-operation-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Pt},HL={process:null,id:Ts,type:r.Operation,version:1,declaration:Or,inputs:[jL],dynamicArguments:[],error:null,outputs:[qL],successCalls:[DR],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[JL],parent:WL,x:0,y:0},YL={id:"person-not-found-thrown-error-datatype-default-value-parent-ref-id",type:r.GenericReference,entityId:"person-not-found-thrown-error-datatype-id",entityType:r.DataType},zL={id:"person-not-found-thrown-error-datatype-parent-ref-id",type:r.GenericReference,entityId:"person-not-found-thrown-error-id",entityType:r.ReturnDeclaration};r.DataType,r.PrimitiveValue,g.String;const ZL={id:"person-not-found-thrown-error-parent-ref-id",type:r.GenericReference,entityId:"person-not-found-error-return-statement-id",entityType:r.ReturnStatement},XL={isError:!0,id:"person-not-found-thrown-error-id",type:r.ReturnDeclaration,version:1,dataType:null,name:"Person not found error",description:"If the person entity was not found this error is outputted",parent:ZL,required:!0,index:0,readsValue:null},QL={id:"person-not-found-error-return-statement-called-by-ref-id",type:r.GenericReference,entityId:ms,entityType:r.Condition},KL={id:"person-not-found-error-return-statement-parent-ref-id",type:r.GenericReference,entityId:Pt,entityType:r.FunctionDeclaration},eG={id:"person-not-found-error-return-statement-id",type:r.ReturnStatement,version:1,throws:XL,outputs:[],calledBySuccess:[],calledByError:[QL],calledByEntry:[],x:0,y:0,parent:KL},tG={type:r.GenericReference,id:"person-not-empty-condition-called-by-ref-id",entityType:r.Search,entityId:jr},nG={type:r.GenericReference,id:"person-not-empty-condition-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Pt},rG={type:r.GenericReference,id:"person-entity-to-check-map-reads-value-ref-id",entityType:r.OutputMap,entityId:Fl},iG={type:r.GenericReference,id:"person-not-empty-condition-ref-two-id",entityType:r.Condition,entityId:ms},BR={id:"person-entity-to-check-map-id",version:1,type:r.InputMap,declaration:kn.fixedArguments[0],name:null,description:null,dynamicArguments:[],readsValue:rG,index:0,defaultValue:null,parent:iG},aG={type:r.Condition,id:ms,version:1,declaration:kn,inputs:[BR],calledByError:[],calledByEntry:[],calledBySuccess:[tG],successCalls:[HL],errorCalls:[eG],x:0,y:0,parent:nG},sG={type:r.GenericReference,id:"search-person-by-id-output-entity-declaration-datatype-parent-ref-id",entityType:r.ReturnDeclaration,entityId:RR},oG={id:"search-person-by-id-output-entity-declaration-datatype-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,constant:!1,asType:!1,isNullable:!1,entity:ct,defaultValue:null,parent:sG},lG={type:r.GenericReference,id:"search-person-by-id-output-entity-declaration-parent-ref-id",entityType:r.Search,entityId:jr},wR={isError:!1,id:RR,type:r.ReturnDeclaration,version:1,dataType:oG,name:"Found person",description:"The person entity that was found",parent:lG,required:!0,index:0,readsValue:null},cG={type:r.GenericReference,id:"search-person-by-id-output-entity-map-parent-ref-id",entityType:r.Search,entityId:jr},dG={type:r.OutputMap,id:Fl,version:1,declaration:wR,parent:cG,writesValues:[BR,OR],index:0},uG={id:"search-person-by-id-input-declaration-datatype-parent-ref-id",type:r.GenericReference,entityId:"search-person-by-id-input-declaration-id",entityType:r.ArgumentDeclaration};r.DataType;const pG={type:r.GenericReference,id:"search-person-by-id-input-declaration-parent-ref-id",entityType:r.Search,entityId:jr},_R={id:"search-person-by-id-input-declaration-id",type:r.ArgumentDeclaration,version:1,dataType:null,name:"Person ID",description:"The unique identifier (ID) property of the person entity",index:0,required:!0,parent:pG,writesValues:[]},yG={type:r.GenericReference,id:"search-person-by-id-input-map-parent-ref-id",entityType:r.Search,entityId:jr},hG={id:"search-person-by-id-input-map-reads-value-ref-id",type:r.GenericReference,entityId:ER,entityType:r.ArgumentDeclaration},MR={type:r.InputMap,id:"search-person-by-id-input-map",version:1,declaration:_R,name:null,description:null,readsValue:hG,defaultValue:null,parent:yG,dynamicArguments:[],index:0},fG={from:{name:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},items:[{name:"*"}],where:[{name:"id",value:"{{dynamic_value_1}}"}]},mG={type:r.GenericReference,id:"search-person-by-id-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Pt},TG={type:r.GenericReference,id:"search-person-by-id-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:Pt},EG={type:r.Search,id:jr,version:1,name:"Search person by ID",description:"Searches for a person entity given the UUID",query:fG,inputsDeclarations:[_R],inputs:[MR],outputsDeclarations:[wR],outputs:[dG],calledByError:[],calledByEntry:[TG],calledBySuccess:[],error:null,successCalls:[aG],errorCalls:[],parent:mG,x:0,y:0};r.GenericReference,r.DataType;const RG={id:"account-number-to-create-arg-decl-data-type-parent-ref-id",type:r.GenericReference,entityId:"account-number-to-create-arg-decl-id",entityType:r.ArgumentDeclaration},bG={id:"account-number-to-create-arg-decl-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:RG},vG={entityType:r.FunctionDeclaration,entityId:Pt,type:r.GenericReference,id:"account-number-to-create-arg-decl-parent-ref-id"},gG={id:"account-number-to-create-arg-decl-id",type:r.ArgumentDeclaration,version:1,name:"Account number",description:"The account number of the new bank account entity",dataType:bG,writesValues:[CR],required:!0,index:1,parent:vG};r.GenericReference,r.DataType;const IG={id:"new-bank-account-owner-arg-decl-data-type-parent-ref-id",type:r.GenericReference,entityId:"new-bank-account-owner-arg-decl-id",entityType:r.ArgumentDeclaration},PG={id:"new-bank-account-owner-arg-decl-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:fa,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:IG},DG={entityType:r.FunctionDeclaration,entityId:Pt,type:r.GenericReference,id:"new-bank-account-owner-arg-decl-parent-ref-id"},AG={id:ER,type:r.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:PG,writesValues:[MR],required:!1,index:1,parent:DG},SG={type:r.GenericReference,id:"replace-bank-account-in-company-parent-ref",entityType:r.Project,entityId:J},OG={type:r.GenericReference,id:"company-entity-to-modify-parent-ref",entityType:r.FunctionDeclaration,entityId:Pt};r.GenericReference,r.DataType;const CG={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:r.GenericReference,entityId:Gl,entityType:r.ArgumentDeclaration},BG={id:"company-entity-to-modify-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:CG},wG={id:Gl,type:r.ArgumentDeclaration,version:1,name:"Company",dataType:BG,description:"The company to replace the bank account for",writesValues:[SR],required:!0,index:0,parent:OG},_G={type:r.FunctionDeclaration,id:Pt,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:[wG,gG,AG],index:null,implements:null,calls:[EG,SR],collapsed:!1,returnStatements:[],private:!1,x:0,y:0,parent:SG},MG={type:r.GenericReference,id:"e0a937bd-3a85-4037-a973-916985b9f94b",entityType:r.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},NG={type:r.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:MG,x:0,y:0},$G={type:r.GenericReference,id:"948e6869-ae5b-4914-bea0-b9f02ad6a014",entityType:r.Project,entityId:"23b23d8b-1929-4505-a350-745c8550e731"},VG={type:r.GenericReference,id:"f3d6f2c6-1b3e-4e9d-8c9d-5b5b9f0b8d9c",entityType:r.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},LG={type:r.InstalledProject,version:1,id:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6",name:"Third Party Installed Project",description:null,functions:[NG],events:[],implements:VG,parent:$G,x:0,y:0},Ul="iterate-over-list-loop-id",NR="iterate-over-list-loop-body-id",$R="iterate-over-list-loop-body-current-iteration-argument-declaration-id",GG={type:r.GenericReference,id:"iterate-over-list-loop-body-current-iteration-argument-declaration-data-type-parent-ref-id",entityId:$R,entityType:r.ArgumentDeclaration},FG={id:"iterate-over-list-loop-body-current-iteration-argument-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:null,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:GG},UG={id:"iterate-over-list-loop-body-current-iteration-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:NR,entityType:r.FunctionDeclaration},xG={id:$R,type:r.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",dataType:FG,required:!0,index:0,writesValues:[],parent:UG},jG={id:"iterate-over-list-loop-body-parent-ref-id",type:r.GenericReference,entityId:Ul,entityType:r.Loop},kG={id:NR,type:r.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each entity in the list.",inputs:[xG],calls:[],implements:null,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:jG},qG={id:"iterate-over-list-loop-iteration-list-input-map-parent-ref-id",type:r.GenericReference,entityId:Ul,entityType:r.Loop},JG={id:"iterate-over-list-loop-iteration-list-input-map-id",type:r.InputMap,version:1,name:null,description:null,declaration:jn.fixedArguments[0],defaultValue:null,dynamicArguments:[],readsValue:null,index:0,parent:qG},WG={id:"iterate-over-list-loop-parent-ref-id",type:r.GenericReference,entityId:J,entityType:r.Project},HG={id:Ul,type:r.Loop,version:1,declaration:jn,inputs:[JG],successCalls:[],errorCalls:[],outputs:[],process:null,body:kG,calledByError:[],calledByEntry:[],calledBySuccess:[],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:WG};var xl=(n=>(n.EQ="eq",n.NEQ="neq",n.GT="gt",n.GTE="gte",n.LT="lt",n.LTE="lte",n.LIKE="like",n.ILIKE="ilike",n))(xl||{}),VR=(n=>(n.COUNT="count",n.SUM="sum",n.AVG="avg",n.MIN="min",n.MAX="max",n))(VR||{});const YG={from:{name:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},items:{from:{name:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},items:[{function:{name:VR.COUNT,items:["f8310850-a87e-405c-b182-4f1d5fa49240"]},alias:"employee_count"}],where:[{name:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3",operation:xl.NEQ,value:null}]},where:[{name:"employee_count",operation:xl.GT,value:1}]},zG={id:"find-companies-with-multiple-employees-and-bank-account-search-parent-ref-id",type:r.GenericReference,entityId:J,entityType:r.Project},ZG={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-parent-ref-id",type:r.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",entityType:r.Search},LR={isError:!1,id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-id",type:r.ReturnDeclaration,version:1,name:"companies",description:"List of companies with multiple employees and an existing bank account",dataType:null,readsValue:null,required:!0,index:0,parent:ZG},XG={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-parent-ref-id",type:r.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",entityType:r.Search},QG={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-id",type:r.OutputMap,version:1,declaration:LR,writesValues:[],index:0,parent:XG},KG={id:"find-companies-with-multiple-employees-and-bank-account",type:r.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:[LR],inputs:[],outputs:[QG],query:YG,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:zG},kr="random-company-employee-test-variable-id",jl="manager-global-variable-id",GR="global-user-instance-id",qr="employee-mapped-dto-variable-id",FR="random-employee-id-output-map-id",UR="random-employee-birth-date-output-map-id",xR="random-employee-department-output-map-id",jR="random-employee-manager-output-map-id",kR="manager-global-id-output-map-id",qR="global-user-instance-id-output-map-id",eF="employee-mapped-dto-requester-id-input-map-id",tF="employee-mapped-dto-id-input-map-id",nF="employee-mapped-dto-birth-date-input-map-id",rF="employee-mapped-dto-department-input-map-id",iF="employee-mapped-dto-manager-input-map-id",aF={type:r.GenericReference,id:"employee-mapped-dto-manager-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:kR},sF={type:r.GenericReference,id:"employee-mapped-dto-manager-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:qr},JR={id:iF,type:r.InputMap,version:1,declaration:null,name:"manager_id",description:null,defaultValue:null,dynamicArguments:[],index:4,readsValue:aF,parent:sF},oF={type:r.GenericReference,id:"employee-mapped-dto-department-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:xR},lF={type:r.GenericReference,id:"employee-mapped-dto-department-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:qr},WR={id:rF,type:r.InputMap,version:1,declaration:null,name:"department_name",description:null,defaultValue:null,dynamicArguments:[],index:3,readsValue:oF,parent:lF},cF={type:r.GenericReference,id:"employee-mapped-dto-birth-date-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:UR},dF={type:r.GenericReference,id:"employee-mapped-dto-birth-date-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:qr},HR={id:nF,type:r.InputMap,version:1,declaration:null,name:"birth_date",description:null,defaultValue:null,dynamicArguments:[],index:2,readsValue:cF,parent:dF},uF={type:r.GenericReference,id:"employee-mapped-dto-id-output-map-reads-value-ref-id",entityType:r.OutputMap,entityId:FR},pF={type:r.GenericReference,id:"employee-mapped-dto-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:qr},YR={id:tF,type:r.InputMap,version:1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,dynamicArguments:[],index:1,readsValue:uF,parent:pF},yF={type:r.GenericReference,id:"employee-mapped-dto-requester-id-output-map-reads-value-ref-id",entityType:r.OutputMap,entityId:qR},hF={type:r.GenericReference,id:"employee-mapped-dto-requester-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:qr},zR={id:eF,type:r.InputMap,version:1,declaration:null,name:"requester_id",description:"The ID of the current user making the request",defaultValue:null,dynamicArguments:[],index:0,readsValue:yF,parent:hF},fF={type:r.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:jl},mF={id:kR,type:r.OutputMap,version:1,declaration:Be.properties[1],index:0,writesValues:[JR],parent:fF},TF={type:r.GenericReference,id:"manager-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:jl},EF={id:"manager-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:It,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:TF,defaultValue:null},RF={type:r.GenericReference,id:"manager-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:jR},bF={type:r.GenericReference,id:"manager-variable-parent-ref-id",entityType:r.Project,entityId:J},ZR={id:jl,type:r.VariableDeclaration,version:1,name:"Manager",dataType:EF,description:"A variable holding an inherited manager for testing purposes",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:RF,writesValues:[],inputs:[],outputs:[mF],internalCalls:[],parent:bF,x:0,y:0},vF={type:r.GenericReference,id:"random-company-employee-manager-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:kr},gF={id:jR,type:r.OutputMap,version:1,declaration:It.properties[2],index:3,writesValues:[ZR],parent:vF},IF={type:r.GenericReference,id:"random-company-employee-department-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:kr},PF={id:xR,type:r.OutputMap,version:1,declaration:It.properties[0],index:2,writesValues:[WR],parent:IF},DF={type:r.GenericReference,id:"random-company-employee-birth-date-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:kr},AF={id:UR,type:r.OutputMap,version:1,declaration:ct.properties[1],index:1,writesValues:[HR],parent:DF},SF={type:r.GenericReference,id:"random-company-employee-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:kr},OF={id:FR,type:r.OutputMap,version:1,declaration:Be.properties[1],index:0,writesValues:[YR],parent:SF},CF={type:r.GenericReference,id:"random-company-employee-test-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:kr},BF={id:"random-company-employee-test-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:It,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:CF,defaultValue:null},wF={type:r.GenericReference,id:"random-company-employee-test-variable-parent-ref-id",entityType:r.Project,entityId:J},_F={id:kr,type:r.VariableDeclaration,version:1,name:"Company employee",dataType:BF,description:"A variable holding a random company employee for testing purposes",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[OF,AF,PF,gF],internalCalls:[],parent:wF,x:0,y:0},MF={type:r.GenericReference,id:"employee-mapped-dto-variable-parent-ref-id",entityType:r.Project,entityId:J},NF={id:qr,type:r.VariableDeclaration,version:1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[zR,YR,HR,WR,JR],outputs:[],internalCalls:[],parent:MF,x:0,y:0},$F={type:r.GenericReference,id:"0e63e617-f9d3-42e8-bde0-1bb0b1df7034",entityType:r.VariableDeclaration,entityId:dl},VF={id:"e75645ce-d3df-4f07-a897-ae9ef4d917fd",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:pl,version:1,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:$F,defaultValue:null},LF={type:r.GenericReference,id:"e92a8ff5-3fef-4e0c-8d8f-92c930b2890b",entityType:r.Project,entityId:J},XR={id:dl,type:r.VariableDeclaration,version:1,name:"Current user",description:"The user that is currently logged in",dataType:VF,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:LF},GF={type:r.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",entityType:r.VariableInstance,entityId:GR},FF={id:qR,type:r.OutputMap,version:1,declaration:Be.properties[1],index:0,writesValues:[zR],parent:GF},UF={type:r.GenericReference,id:"global-user-instance-parent-ref-id",entityType:r.Project,entityId:J},xF={id:GR,type:r.VariableInstance,version:1,declaration:XR,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[FF],internalCalls:[],parent:UF,x:0,y:0},jF={type:r.GenericReference,id:"is-test-environment-variable-dcl-datatype-parent-ref-id",entityType:r.VariableDeclaration,entityId:dl},kF={type:r.GenericReference,id:"is-test-environment-variable-dcl-datatype-default-value-parent-ref-id",entityType:r.DataType,entityId:"is-test-environment-variable-dcl-datatype-id"},qF={id:"is-test-environment-variable-dcl-datatype-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Fn,version:1,asType:!1,isList:!1,isNullable:!1,constant:!0,parent:jF,defaultValue:{id:"is-test-environment-variable-dcl-datatype-default-value-id",name:g.Boolean,version:1,value:null,type:r.PrimitiveValue,autogeneration:{type:xe.Random,rangeStart:null,rangeEnd:null},valueAsType:null,parent:kF}},JF={type:r.GenericReference,id:"is-test-environment-variable-dcl-main-project-ref-id",entityType:r.Project,entityId:J},QR={id:"is-test-environment-variable-dcl-id",type:r.VariableDeclaration,version:1,name:"Is test envrioment",description:"Indicates whether the current environment is a test environment or not.",dataType:qF,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:JF},WF={type:r.GenericReference,id:"is-test-environment-variable-instance-parent-ref-id",entityType:r.Project,entityId:J},HF={id:"is-test-environment-variable-instance-id",type:r.VariableInstance,version:1,declaration:QR,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[],internalCalls:[],parent:WF,x:0,y:0},KR={type:r.Project,id:J,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:[LG],entities:[ul,pl,ct,Yw,It,ss,hT,fT,Lr,jB,mt,Lw,zm,JD,UB],functions:[dV,jT,Bl,EV,AV,nE,wl,ml,_G,DT,hL],events:[S_],variableDeclarations:[QR,XR,Vl,_F,ZR,NF],variableInstances:[HF,xF],conditions:[],operations:[Ur],functionCalls:[DM,_N],loops:[HG],searches:[KG]};var f=(n=>(n.Error="error",n.Warning="warning",n))(f||{}),v=(n=>(n.InvalidObjectStructure="invalid-object-structure",n.NameNotUniqueInScope="name-not-unique-in-scope",n.EmptyName="empty-name",n.MissingCaller="missing-caller",n.PropertyOverwrite="property-overwrite",n.MethodOverwrite="method-overwrite",n.NoOverlapWithImplementedSignature="no-overlap-with-implemented-signature",n.ReaderWriterIncompatibleDataType="reader-writer-incompatible-data-type",n.UnreachableEntity="unreachable-entity",n.InvalidInternalCallParentDeclarationRelation="invalid-internal-call-parent-declaration-relation",n))(v||{}),y=(n=>(n.RootReference="root-reference",n.ReferencedEntityNotFound="referenced-entity-not-found",n.EntityIdNotUnique="entity-id-not-unique",n.BuiltInEntityGenerated="built-in-entity-generated",n.BuiltInEntityUpdated="built-in-entity-updated",n.BuiltInEntityDeleted="built-in-entity-deleted",n.UnknownEntityType="unknown-entity-type",n.MissingTypeProperty="missing-type-property",n.MissingIdProperty="missing-id-property",n.BuiltInEntityParent="built-in-entity-parent",n.InvalidBuiltInEntityReference="invalid-built-in-entity-reference",n.RecommendedImplementAbstractEntityAction="recommended-implement-abstract-entity-action",n.RecommendedImplementOperationAction="recommended-implement-operation-action",n.RecommendedImplementFunctionCallAction="recommended-implement-function-call-action",n.RecommendedImplementVariableDeclarationAction="recommended-implement-variable-declaration-action",n.RecommendedImplementVariableInstanceAction="recommended-implement-variable-instance-action",n.RecommendedImplementConditionAction="recommended-implement-condition-action",n.InvalidReferenceObjectStructure="invalid-reference-object-structure",n.ContainsSingleButShouldBeReferenceList="contains-single-but-should-be-reference-list",n.ContainsListButShouldReferenceSingle="contains-list-but-should-reference-single",n.InvalidParentReference="invalid-parent-reference",n.InvalidImplementsReference="invalid-implements-reference",n.InvalidExtendsReference="invalid-extends-reference",n.InvalidGenerationActionPayload="invalid-generation-action-payload",n.InvalidReference="invalid-reference",n.InvalidInternalCallParentDeclarationRelation="invalid-internal-call-parent-declaration-relation",n.InvalidInternalCallParentRelation="invalid-internal-call-parent-relation",n.InvalidUpdateEntityOperation="invalid-update-entity-operation",n.NewEntityWouldOverriteExisting="new-entity-would-overrite-existing",n.InvalidDownstreamPropertyOverride="invalid-downstream-property-override",n.UnrecognizedProperty="unrecognized-property",n.SelfReference="self-reference",n.DuplicateReference="duplicate-reference",n.CallerWithIncompatibleScope="caller-with-incompatible-scope",n.InvalidFunctionDeclarationForFunctionCall="invalid-function-declaration-for-function-call",n.InvalidInputMapDeclaration="invalid-input-map-declaration",n.InvalidActionDescriptorForOperation="invalid-action-descriptor-for-operation",n.InvalidActionDescriptorForCondition="invalid-action-descriptor-for-condition",n.InvalidActionDescriptorForLoop="invalid-action-descriptor-for-loop",n.InvalidInmutablePropertyOverride="invalid-inmutable-property-override",n.OutputOverwrite="output-overwrite",n.InputOverwrite="input-overwrite",n.IncompatibleScope="incompatible-scope",n.InvalidParentUpdate="invalid-parent-update",n.NonInteractiveEntityReferenced="non-interactive-entity-referenced",n.InvalidParentRelationType="invalid-parent-relation-type",n))(y||{}),O=(n=>(n.ScopeWithoutLogic="scope-without-logic",n.ExtendingAbstractEntity="extending-abstract-entity",n.ImplementingNonAbstractEntity="implementing-non-abstract-entity",n.AbstractEntityWithNonAbstractMethods="abstract-entity-with-non-abstract-methods",n.AbstractEntityWithNonAbstractProperties="abstract-entity-with-non-abstract-properties",n.StaticEntityWithNonStaticProperties="static-entity-with-non-static-properties",n.NonStaticPropertyInStaticEntity="non-static-property-in-static-entity",n.AbstractPropertyInNonAbstractEntity="abstract-property-in-non-abstract-entity",n.AbstractMethodInNonAbstractEntity="abstract-method-in-non-abstract-entity",n.IncorrectEntityImplementation="incorrect-entity-implementation",n.IncorrectMethodImplementation="incorrect-method-implementation",n.IncorrectPropertyImplementation="incorrect-property-implementation",n.PropertyImplementsNonAbstact="property-implements-non-abstract",n.NonStaticPropertyImplementsStatic="non-static-property-implements-static",n.StaticPropertyImplementsNonStatic="static-property-implements-non-static",n.PropertyImplementsIncompatibleType="property-implements-incompatible-type",n.MissingPropertyImplementation="missing-property-implementation",n.MissingMethodImplementation="missing-method-implementation",n.NoProperties="no-properties",n.ReadingFromIncompatibleType="reading-from-incompatible-type",n.WritingToIncompatibleType="writing-to-incompatible-type",n.InvalidPropertiesCombination="invalid-properties-combination",n.DisconnectedCallableEntity="disconnected-callable-entity",n.VariableHasInputsAndInternalCall="variable-has-inputs-and-internal-calls",n.VariableHasOutputsAndInternalCall="variable-has-outputs-and-internal-call",n.VariableIsCalledAndHasInternalCall="variable-is-called-and-has-internal-call",n.VariableCallsOthersAndHasInternalCall="variable-calls-others-and-has-internal-call",n))(O||{});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 v?new Xn({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:e}):null}}class Xn{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 Xn({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:this.entity})}}function YF(n){const e=new Set;return n.filter(t=>e.has(t.id)?!1:(e.add(t.id),!0))}function k(n){const e=n.entity.errors.find(i=>i.id===n.id);return e?{new:!1,error:e}:{new:!0,error:new Xn(n)}}function zF(n,e){const t=new Map;return n.forEach(i=>{t.set(i.id,i)}),e.forEach(i=>{t.set(i.id,i)}),Array.from(t.values())}function X(n,e){const t=[];return e.forEach(i=>{const a=n.find(s=>s.id===i.id);a?t.push(a):t.push(i)}),t}const Ji=c.union([c.string(),c.number(),c.boolean(),c.date()]),eb=c.enum([xe.CurrentDateAndTime,xe.Random,xe.Unique]),Es=c.object({type:eb,rangeStart:Ji.nullable(),rangeEnd:Ji.nullable()}),Wi=Es.extend({type:c.literal(xe.Random),rangeStart:Ji,rangeEnd:Ji}),kl=Es.extend({type:c.literal(xe.Unique),rangeStart:c.null(),rangeEnd:c.null()}),tb=Es.extend({type:c.literal(xe.CurrentDateAndTime),rangeStart:c.null(),rangeEnd:c.null()}),Rs=Wi.extend({rangeStart:c.number().nullable(),rangeEnd:c.number().nullable()}),nb=Rs.extend({rangeStart:c.number(),rangeEnd:c.null()}),rb=Rs.extend({rangeStart:c.null(),rangeEnd:c.number()}),ib=Rs.extend({rangeStart:c.number(),rangeEnd:c.number()}),bs=Wi.extend({rangeStart:c.number().nullable(),rangeEnd:c.number().nullable()}),ab=bs.extend({rangeStart:c.number(),rangeEnd:c.null()}),sb=bs.extend({rangeStart:c.null(),rangeEnd:c.number()}),ob=bs.extend({rangeStart:c.number(),rangeEnd:c.number()}),vs=Wi.extend({rangeStart:c.date().nullable(),rangeEnd:c.date().nullable()}),lb=vs.extend({rangeStart:c.date(),rangeEnd:c.null()}),cb=vs.extend({rangeStart:c.null(),rangeEnd:c.date()}),db=vs.extend({rangeStart:c.date(),rangeEnd:c.date()}),ql=Wi.extend({rangeStart:c.null(),rangeEnd:c.null()}),Jl=c.union([ab,sb,ob]),Wl=c.union([nb,rb,ib]),Hl=c.union([lb,cb,db,tb]),Yl=c.union([Jl,Wl,Hl,kl,ql]);function zl(){return c.union([c.object({type:c.literal(r.ValueDescriptor)}),c.record(c.string(),c.any())])}function ub(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.ValueDescriptor)})}function Zl(){return c.object({id:c.string(),type:c.literal(r.ValueDescriptor),name:c.string(),required:c.boolean()})}function ZF(){return Zl().merge(c.object({version:c.number(),index:c.number()}))}function XF(){return Zl().merge(c.object({}))}function QF(){return c.object({dataType:cn(),parent:on()})}function KF(){return ZF().merge(QF())}function gs(){return c.union([c.object({type:c.literal(r.PrimitiveEntity)}),c.record(c.string(),c.any())])}function Is(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.PrimitiveEntity)})}function Ps(){return c.object({id:c.string(),type:c.literal(r.PrimitiveEntity),name:c.string(),description:c.string().nullable(),static:c.boolean(),abstract:c.boolean()})}function e4(){return Ps().merge(c.object({version:c.number()}))}function t4(){return Ps().merge(c.object({}))}function n4(){return c.object({properties:c.array(Qn()),methods:c.array(At()),abstractMethods:c.array(Yt()),extends:c.array(c.union([gs(),Jr()]))})}function r4(){return e4().merge(n4())}function Qn(){return c.union([c.object({type:c.literal(r.Property)}),c.record(c.string(),c.any())])}function pb(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.Property)})}function Xl(){return c.object({id:c.string(),type:c.literal(r.Property),name:c.string(),description:c.string().nullable(),private:c.boolean(),static:c.boolean(),required:c.boolean(),abstract:c.boolean()})}function i4(){return Xl().merge(c.object({version:c.number(),index:c.number()}))}function a4(){return Xl().merge(c.object({}))}function s4(){return c.object({dataType:cn(),implements:Qn().nullable(),parent:c.union([nr(),Is(),Ds()])})}function o4(){return i4().merge(s4())}function l4(){return c.enum([_.CRON_JOB,_.EXECUTION,_.HTTP_ENDPOINT,_.PERSISTED_ENTITY,_.RELATIONAL_DATABASE])}function Jr(){return c.union([c.object({type:c.literal(r.BuiltInBaseEntity)}),c.record(c.string(),c.any())])}function Ds(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.BuiltInBaseEntity)})}function Ql(){return c.object({id:c.string(),version:c.number(),type:c.literal(r.BuiltInBaseEntity),name:l4(),description:c.string().nullable(),abstract:c.boolean(),static:c.boolean()})}function c4(){return Ql()}function d4(){return Ql().merge(c.object({}))}function u4(){return c.object({properties:c.array(Qn()),methods:c.array(At()),abstractMethods:c.array(Yt()),extends:c.array(c.union([Jr(),gs()]))})}function p4(){return c4().merge(u4())}function yb(){return c.enum([L.Dynamic,L.Fixed,L.None])}function Yt(){return c.union([c.object({type:c.literal(r.ActionDescriptor)}),c.record(c.string(),c.any())])}function on(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.ActionDescriptor)})}function As(){return c.object({id:c.string(),type:c.literal(r.ActionDescriptor),name:c.string(),description:c.string().nullable(),argumentsType:yb(),returnsType:yb()})}function y4(){return As().merge(c.object({version:c.number()}))}function h4(){return As().merge(c.object({}))}function f4(){return c.object({fixedArguments:c.array(zl()),fixedReturns:c.array(zl()),dynamicArgumentTypes:cn().nullable(),dynamicReturnTypes:cn().nullable(),parent:c.union([Tt(),nr(),Ds(),Is()]).nullable()})}function hb(){return y4().merge(f4())}function Wr(){return c.union([c.object({type:c.literal(r.Loop)}),c.record(c.string(),c.any())])}function zt(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.Loop)})}function fb(){return c.object({id:c.string(),type:c.literal(r.Loop)})}function m4(){return fb().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function T4(){return fb().merge(c.object({declaration:c.union([c.string(),At()])}))}function E4(){return c.object({calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),declaration:Yt(),inputs:c.array(Dt()),outputs:c.array(ut()),successCalls:c.array(ke()),errorCalls:c.array(ke()),error:ut(),body:At(),parent:c.union([un(),Tt()]),breakStatements:c.array(Xr()),continueStatements:c.array(Hr())})}function R4(){return m4().merge(E4())}function Hr(){return c.union([c.object({type:c.literal(r.ContinueStatement)}),c.record(c.string(),c.any())])}function Yr(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.ContinueStatement)})}function Kl(){return c.object({id:c.string(),type:c.literal(r.ContinueStatement)})}function b4(){return Kl().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function v4(){return Kl().merge(c.object({}))}function g4(){return c.object({calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),outputs:c.array(Zt()),throws:c.optional(Zt()),parent:zt()})}function I4(){return b4().merge(g4())}function Kn(){return c.union([c.object({type:c.literal(r.ReturnStatement)}),c.record(c.string(),c.any())])}function zr(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.ReturnStatement)})}function ec(){return c.object({id:c.string(),type:c.literal(r.ReturnStatement)})}function P4(){return ec().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function D4(){return ec().merge(c.object({}))}function A4(){return c.object({calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),outputs:c.array(Zt()),throws:c.optional(Zt()),parent:un()})}function S4(){return P4().merge(A4())}function Hi(){return c.union([c.object({type:c.literal(r.Search)}),c.record(c.string(),c.any())])}function Zr(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.Search)})}function tc(){return c.object({id:c.string(),type:c.literal(r.Search),name:c.string(),query:c.any(),description:c.string().nullable()})}function O4(){return tc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function C4(){return tc().merge(c.object({}))}function B4(){return c.object({successCalls:c.array(ke()),errorCalls:c.array(ke()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),inputsDeclarations:c.array(tr()),inputs:c.array(Dt()),outputsDeclarations:c.array(Zt()),outputs:c.array(ut()),parent:c.union([un(),Tt()]),error:ut().nullable()})}function w4(){return O4().merge(B4())}function Zt(){return c.union([c.object({type:c.literal(r.ReturnDeclaration)}),c.record(c.string(),c.any())])}function mb(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.ReturnDeclaration)})}function nc(){return c.object({id:c.string(),type:c.literal(r.ReturnDeclaration),name:c.string(),description:c.string().nullable(),isError:c.boolean()})}function _4(){return nc().merge(c.object({version:c.number(),index:c.number()}))}function M4(){return nc().merge(c.object({}))}function N4(){return c.object({dataType:cn().nullable(),readsValue:Xi().nullable(),parent:c.union([zr(),on(),on(),Zr(),ln(),Yr()])})}function $4(){return _4().merge(N4())}function Xr(){return c.union([c.object({type:c.literal(r.BreakStatement)}),c.record(c.string(),c.any())])}function ln(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.BreakStatement)})}function rc(){return c.object({id:c.string(),type:c.literal(r.BreakStatement)})}function V4(){return rc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function L4(){return rc().merge(c.object({}))}function G4(){return c.object({calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),outputs:c.array(Zt()),throws:c.optional(Zt()),parent:zt()})}function F4(){return V4().merge(G4())}function ut(){return c.union([c.object({type:c.literal(r.OutputMap)}),c.record(c.string(),c.any())])}function ic(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.OutputMap)})}function ac(){return c.object({id:c.string(),type:c.literal(r.OutputMap)})}function U4(){return ac().merge(c.object({version:c.number(),index:c.number()}))}function x4(){return ac().merge(c.object({}))}function j4(){return c.object({writesValues:c.array(dn()),declaration:c.union([Zt(),Qn()]),parent:c.union([ye(),zt(),ln()])})}function k4(){return U4().merge(j4())}function Qr(){return c.union([c.object({type:c.literal(r.FunctionCall)}),c.record(c.string(),c.any())])}function Yi(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.FunctionCall)})}function sc(){return c.object({id:c.string(),type:c.literal(r.FunctionCall)})}function q4(){return sc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function J4(){return sc().merge(c.object({}))}function W4(){return c.object({successCalls:c.array(ke()),errorCalls:c.array(ke()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),writesValues:c.array(dn()),declaration:At(),inputs:c.array(Dt()),outputs:c.array(ut()),error:c.optional(ut()),parent:c.union([un(),Tt()])})}function H4(){return q4().merge(W4())}function Y4(){return c.enum([Ae.Equal,Ae.NotEqual,Ae.MoreThan,Ae.MoreThanOrEqual,Ae.LessThan,Ae.LessThanOrEqual,Ae.And,Ae.Or,Ct.Empty,Ct.NotEmpty])}function zi(){return c.union([c.object({type:c.literal(r.Condition)}),c.record(c.string(),c.any())])}function Ss(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.Condition)})}function oc(){return c.object({id:c.string(),type:c.literal(r.Condition)})}function z4(){return oc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function Z4(){return oc().merge(c.object({}))}function X4(){return c.object({successCalls:c.array(ke()),errorCalls:c.array(ke()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),leftValue:Dt(),rightValue:Dt().nullable(),operator:Y4(),parent:c.union([un(),Tt()])})}function Q4(){return z4().merge(X4())}function Zi(){return c.union([c.object({type:c.literal(r.InternalCall)}),c.record(c.string(),c.any())])}function lc(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.InternalCall)})}function cc(){return c.object({id:c.string(),type:c.literal(r.InternalCall),index:c.number()})}function K4(){return cc().merge(c.object({version:c.number(),index:c.number()}))}function eU(){return cc().merge(c.object({declaration:c.union([c.string(),At()])}))}function tU(){return c.object({successCalls:c.array(ke()),errorCalls:c.array(ke()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),writesValues:c.array(dn()),declaration:At(),inputs:c.array(Dt()),outputs:c.array(ut()),parent:Bn(),error:c.optional(ut())})}function nU(){return K4().merge(tU())}function Dt(){return c.union([c.object({type:c.literal(r.InputMap)}),c.record(c.string(),c.any())])}function Os(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.InputMap)})}function dc(){return c.object({id:c.string(),type:c.literal(r.InputMap),name:c.string().nullable().optional(),description:c.string().nullable().optional()})}function rU(){return dc().merge(c.object({version:c.number(),index:c.number()}))}function iU(){return dc().merge(c.object({}))}function aU(){return c.object({defaultValue:uc().nullable(),declaration:c.union([tr(),Qn()]).nullable(),readsValue:Xi().nullable(),parent:c.union([ye(),Os(),zt(),ln()]),dynamicArguments:c.array(Dt())})}function sU(){return rU().merge(aU())}function Kr(){return c.union([c.object({type:c.literal(r.Operation)}),c.record(c.string(),c.any())])}function ei(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.Operation)})}function Cs(){return c.object({id:c.string(),type:c.literal(r.Operation)})}function oU(){return Cs().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function lU(){return Cs().merge(c.object({}))}function cU(){return Cs().merge(c.object({successCalls:c.array(ke()),errorCalls:c.array(ke()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),writesValues:c.array(dn()),declaration:Yt(),inputs:c.array(Dt()),outputs:c.array(ut()),error:c.array(ut()),dynamicArguments:c.array(Dt()),parent:c.union([un(),Tt()])}))}function dU(){return oU().merge(cU())}function Bs(){return c.union([c.string(),c.number(),c.boolean(),c.null(),c.date()])}function Tb(){return c.record(c.string(),Bs())}function uU(){return c.array(c.union([Bs(),Tb()]))}function Eb(){return c.union([Bs(),Tb(),uU()])}function Rb(){return c.union([Bs(),Eb()])}function bb(){return c.enum([g.String,g.Number,g.Boolean,g.Null,g.Date,g.JSON,g.Enum,g.File,g.UUID,g.EntityTemplate,g.ActionDescriptor])}function pU(){return c.union([nr(),ei(),Qi()])}function yU(){return c.object({id:c.string(),name:bb(),type:c.literal(r.PrimitiveValue),value:Rb(),autogeneration:Yl.nullable()})}function hU(){return yU().merge(c.object({}))}function Ft(){return c.object({id:c.string(),version:c.number(),name:bb(),type:c.literal(r.PrimitiveValue),value:Rb(),valueAsType:pU().nullable(),autogeneration:Yl.nullable(),parent:c.union([pc(),Os()])})}function fU(){return Ft().extend({name:c.literal(g.String),value:c.string(),autogeneration:Jl.nullable()})}function mU(){return Ft().extend({name:c.literal(g.Number),value:c.number(),autogeneration:Wl.nullable()})}function TU(){return Ft().extend({name:c.literal(g.Boolean),value:c.boolean(),autogeneration:ql.nullable()})}function EU(){return Ft().extend({name:c.literal(g.Null),value:c.null(),autogeneration:c.null()})}function RU(){return Ft().extend({name:c.literal(g.Date),value:c.date(),autogeneration:Hl.nullable()})}function bU(){return Ft().extend({name:c.literal(g.JSON),value:Eb(),autogeneration:c.null()})}function vU(){return Ft().extend({name:c.literal(g.Enum),value:c.string(),autogeneration:c.null()})}function gU(){return Ft().extend({name:c.literal(g.File),value:c.string(),autogeneration:c.null()})}function IU(){return Ft().extend({name:c.literal(g.UUID),value:c.string(),autogeneration:kl.nullable()})}function PU(){return Ft().extend({name:c.literal(g.EntityTemplate),value:nr(),autogeneration:c.null()})}function DU(){return Ft().extend({name:c.literal(g.ActionDescriptor),value:Qi(),autogeneration:c.null()})}function uc(){return c.union([fU(),mU(),TU(),EU(),RU(),bU(),vU(),gU(),IU(),PU(),DU()])}function cn(){return c.union([c.object({type:c.literal(r.DataType)}),c.record(c.string(),c.any())])}function pc(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.DataType)})}function yc(){return c.object({id:c.string(),type:c.literal(r.DataType),isNullable:c.boolean(),isList:c.boolean(),constant:c.boolean(),asType:c.boolean(),options:c.array(c.string()).optional()})}function AU(){return yc().merge(c.object({version:c.number()}))}function SU(){return yc().merge(c.object({}))}function OU(){return c.object({defaultValue:uc().nullable(),entity:c.union([ti(),Jr(),gs(),Yt()]).nullable(),parent:c.union([pb(),Ib(),on(),ub()])})}function CU(){return AU().merge(OU())}function hc(){return c.union([c.object({type:c.literal(r.VariableDeclaration)}),c.record(c.string(),c.any())])}function BU(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.VariableDeclaration)})}function fc(){return c.object({id:c.string(),type:c.literal(r.VariableDeclaration),name:c.string(),description:c.string().nullable()})}function wU(){return fc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function _U(){return fc().merge(c.object({}))}function MU(){return c.object({dataType:cn().nullable(),readsValue:Xi().nullable(),writesValues:c.array(dn()),inputs:c.array(Dt()),outputs:c.array(ut()),successCalls:c.array(ke()),errorCalls:c.array(ke()),internalCalls:c.array(Zi()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),parent:c.union([un(),Tt()])})}function NU(){return wU().merge(MU())}function vb(){return c.union([c.object({type:c.literal(r.VariableInstance)}),c.record(c.string(),c.any())])}function $U(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.VariableInstance)})}function mc(){return c.object({id:c.string(),type:c.literal(r.VariableInstance)})}function VU(){return mc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function LU(){return mc().merge(c.object({}))}function GU(){return c.object({declaration:hc(),dataType:cn().nullable(),readsValue:Xi().nullable(),writesValues:c.array(dn()),inputs:c.array(Dt()),outputs:c.array(ut()),successCalls:c.array(ke()),errorCalls:c.array(ke()),internalCalls:c.array(Zi()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),parent:c.union([un(),Tt()])})}function FU(){return VU().merge(GU())}function Tc(){return c.union([c.object({type:c.literal(r.InstalledProject)}),c.record(c.string(),c.any())])}function ws(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.InstalledProject)})}function UU(){return c.object({id:c.string(),type:c.literal(r.InstalledProject)})}function xU(){return c.object({version:c.number(),x:c.number(),y:c.number()})}function jU(){return c.object({})}function kU(){return c.object({implements:Tt(),description:c.string().nullable(),functions:c.array(At()),events:c.array(Ec()),parent:Tt()})}function qU(){return xU().merge(kU())}function Ec(){return c.union([c.object({type:c.literal(r.GlobalEvent)}),c.record(c.string(),c.any())])}function JU(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.GlobalEvent)})}function _s(){return c.object({id:c.string(),type:c.literal(r.GlobalEvent),name:c.string(),collapsed:c.boolean()})}function WU(){return _s().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function HU(){return _s().merge(c.object({}))}function YU(){return _s().merge(c.object({returnStatements:c.array(Kn()),implements:c.array(hb()),inputs:c.array(tr()),calls:c.array(ke()),parent:c.union([Tt(),ws()])}))}function zU(){return WU().merge(YU())}function er(){return c.union([hc(),vb()])}function Bn(){return c.union([BU(),$U()])}function dn(){return c.union([er(),Dt(),Zt()])}function gb(){return c.union([Bn(),Os(),mb()])}function Xi(){return c.union([er(),tr(),ut(),Kr(),Zi(),Qr()])}function ZU(){return c.union([Bn(),Rc(),ic(),ei(),lc(),Yi()])}function XU(){return c.union([tr(),ut(),dn()])}function Ib(){return c.union([Rc(),ic(),gb()])}function Ms(){return Ec()}function Ns(){return JU()}function $s(){return c.union([Kr(),Qr(),zi(),Hi(),er(),Zi(),Wr()])}function ye(){return c.union([ei(),Yi(),Ss(),Zr(),Bn(),lc(),zt()])}function Vs(){return c.union([Kr(),Qr(),zi(),Hi(),er(),Wr()])}function Ls(){return c.union([ei(),Yi(),Ss(),Zr(),Bn(),zt()])}function Pb(){return c.union([$s(),Kn(),Xr(),Hr()])}function ke(){return c.union([ye(),zr(),ln(),Yr()])}function Db(){return c.union([Vs(),Kn(),Xr(),Hr()])}function Ab(){return c.union([Ls(),zr(),ln(),Yr()])}function wn(){return c.union([At(),Ms()])}function Ue(){return c.union([Qi(),Ns()])}function QU(){return c.union([$s(),wn()])}function KU(){return c.union([ye(),Ue()])}function ex(){return c.union([Vs(),wn()])}function tx(){return c.union([Ls(),Ue()])}function nx(){return c.union([Pb(),wn()])}function rx(){return c.union([ke(),Ue()])}function ix(){return c.union([Db(),wn()])}function ax(){return c.union([Ab(),Ue()])}function sx(){return c.union([wn(),Wr()])}function un(){return c.union([Ue(),zt()])}function ox(){return c.union([$s(),wn()])}function lx(){return c.union([ye(),Ue()])}function cx(){return c.union([Vs(),wn()])}function dx(){return c.union([Ls(),Ue()])}function ux(){return c.union([Kn(),Xr(),Hr()])}function px(){return c.union([zr(),ln(),Yr()])}function yx(){return c.union([Jr(),Dx(),Tc(),ti(),At(),Ms(),er(),Dt(),ut(),zi(),Kr(),Qr(),Zt(),tr(),gs(),cn(),Qn(),Yt(),Kn(),Hr(),Xr(),Wr(),Hi(),Yt(),Yt(),zl(),Zi()])}function hx(){return c.union([Ds(),Tt(),ws(),nr(),Qi(),Ns(),Bn(),Os(),ic(),Ss(),ei(),Yi(),mb(),Rc(),Is(),pc(),pb(),on(),zr(),Yr(),ln(),zt(),Zr(),on(),on(),ub(),lc()])}function fx(){return c.union([Tc(),ti(),At(),Ms(),er(),zi(),Kr(),Qr(),Kn(),Hr(),Xr(),Wr(),Hi()])}function mx(){return c.union([ws(),nr(),Qi(),Ns(),Bn(),Ss(),ei(),Yi(),zr(),Yr(),ln(),zt(),Zr()])}function tr(){return c.union([c.object({type:c.literal(r.ArgumentDeclaration)}),c.record(c.string(),c.any())])}function Rc(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.ArgumentDeclaration)})}function bc(){return c.object({id:c.string(),type:c.literal(r.ArgumentDeclaration)})}function Tx(){return bc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function Ex(){return bc().merge(c.object({}))}function Rx(){return c.object({dataType:cn().nullable(),writesValues:c.array(dn()),parent:c.union([Ue(),on(),on(),Zr(),ln()])})}function bx(){return Tx().merge(Rx())}function At(){return c.union([c.object({type:c.literal(r.FunctionDeclaration)}),c.record(c.string(),c.any())])}function Qi(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.FunctionDeclaration)})}function vc(){return c.object({id:c.string(),type:c.literal(r.FunctionDeclaration),name:c.string(),description:c.string().nullable()})}function vx(){return vc().merge(c.object({version:c.number(),x:c.number(),y:c.number(),index:c.number().nullable()}))}function gx(){return vc()}function Ix(){return c.object({inputs:c.array(tr()),implements:Yt().nullable(),returnStatements:c.array(Kn()),parent:c.union([Tt(),ws(),nr(),zt(),Ds(),Is()])})}function Px(){return vx().merge(Ix())}function Dx(){return c.union([c.object({type:c.literal(r.Project)}),c.record(c.string(),c.any())])}function Tt(){return c.object({entityType:c.literal(r.Project),entityId:c.string(),id:c.string(),type:c.literal(r.GenericReference)})}function gc(){return c.object({id:c.string(),type:c.literal(r.Project),name:c.string(),description:c.string().nullable()})}function Ax(){return gc().merge(c.object({version:c.number()}))}function Sx(){return gc()}function Ox(){return c.object({entities:c.array(ti()),functions:c.array(At()),events:c.array(Ec()),projects:c.array(Tc()),variableDeclarations:c.array(hc()),variableInstances:c.array(vb()),conditions:c.array(zi()),operations:c.array(Kr()),functionCalls:c.array(Qr()),loops:c.array(Wr()),searches:c.array(Hi())})}function Cx(){return Ax().merge(Ox())}function ti(){return c.union([c.object({type:c.literal(r.CustomEntity)}),c.record(c.string(),c.any())])}function nr(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.CustomEntity)})}function Ic(){return c.object({id:c.string(),type:c.literal(r.CustomEntity),name:c.string(),description:c.string().nullable(),static:c.boolean(),abstract:c.boolean()})}function Bx(){return Ic().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function wx(){return Ic().merge(c.object({}))}function _x(){return c.union([Tt(),pc()])}function Mx(){return c.object({properties:c.array(Qn()),methods:c.array(At()),abstractMethods:c.array(Yt()),extends:c.array(c.union([ti(),Jr()])),implements:c.array(c.union([ti(),Jr()])),parent:_x()})}function Nx(){return Bx().merge(Mx())}function $x(n){const e=Nx(),t=n.toJSON();e.safeParse(t).success;const a=n.implements.flatMap(m=>Gx(n,m)),s=n.extends.flatMap(m=>Fx(n,m)),o=xx(n),u=Ux(n);n.methods.flatMap(m=>m.validate());const p=[...a,...s,...o,...u];return X(n.errors,p)}function Vx(n,e){const t=e.properties.filter(s=>s.abstract),i=[];let a=[...n.properties];return t.forEach(s=>{const o=a.find(u=>{var p;return((p=u.implements)==null?void 0:p.id)===s.id});o?a=a.filter(u=>u.id!==o.id):i.push(s)}),i}function Lx(n,e){const t=e.abstractMethods,i=[];let a=[...n.methods];return t.forEach(s=>{const o=a.find(u=>{var p;return((p=u.implements)==null?void 0:p.id)===s.id});o?a=a.filter(u=>u.id!==o.id):i.push(s)}),i}function Gx(n,e){const t=[];if(!e.abstract){const m=k({id:n.id+"--"+O.ImplementingNonAbstractEntity,message:`Entity "${n.name}" with id "${n.id}" is implementing a non-abstract entity "${e.name}" with id "${e.id}"`,issue:null,severity:f.Error,code:O.ImplementingNonAbstractEntity,entity:n});return t.push(m.error),t}const i=e.properties.filter(m=>m.abstract),a=[];let s=[...n.properties];i.forEach(m=>{const T=s.find(b=>{var I;return((I=b.implements)==null?void 0:I.id)===m.id});T?s=s.filter(b=>b.id!==T.id):a.push(m)}),a.length&&a.forEach(m=>{const T=k({id:n.id+"--"+O.MissingPropertyImplementation+"--"+m.id,message:`Property "${m.name}" with id "${m.id}" of entity "${e.name}" with id "${e.id}" is not implemented when entity "${n.name}" with id "${n.id}" implements it`,issue:null,severity:f.Error,code:O.MissingPropertyImplementation,entity:n});t.push(T.error)});const o=[];let u=[...n.methods];e.abstractMethods.forEach(m=>{const T=u.find(b=>{var I;return((I=b.implements)==null?void 0:I.id)===m.id});T?u=u.filter(b=>b.id!==T.id):o.push(m)}),o.length&&o.forEach(m=>{const T=k({id:n.id+"--"+O.MissingMethodImplementation+"--"+m.id,message:`Method "${m.name}" with id "${m.id}" of entity "${e.name}" with id "${e.id}" is not implemented when entity "${n.name}" with id "${n.id}" implements it`,issue:null,severity:f.Error,code:O.MissingMethodImplementation,entity:n});t.push(T.error)});const p=[];e.properties.forEach(m=>{const T=s.find(b=>b.name===m.name);T&&p.push([T,m])}),p.length&&p.forEach(([m])=>{const T=k({id:n.id+"--"+v.PropertyOverwrite+"--"+m.id,message:`Property "${m.name}" with id "${m.id}" of entity "${n.name}" with id "${n.id}" overwrites the property with the same name from the base entity "${e.name}" with id "${e.id}"`,issue:null,severity:f.Error,code:v.PropertyOverwrite,entity:n});t.push(T.error)});const h=[];return e.methods.forEach(m=>{const T=u.find(b=>b.name===m.name);T&&h.push([T,m])}),h.length&&h.forEach(([m])=>{const T=k({id:n.id+"--"+v.MethodOverwrite+"--"+m.id,message:`Method "${m.name}" with id "${m.id}" of entity "${n.name}" with id "${n.id}" overwrites the method with the same name from the base entity "${e.name}" with id "${e.id}"`,issue:null,severity:f.Error,code:v.MethodOverwrite,entity:n});t.push(T.error)}),t}function Fx(n,e){const t=[],i=[];if(e.abstract){const s=k({id:n.id+"--"+O.ExtendingAbstractEntity,message:`Entity "${n.name}" with id "${n.id}" is extending an abstract entity "${e.name}" with id "${e.id}"`,issue:null,severity:f.Error,code:O.ExtendingAbstractEntity,entity:n});return t.push(s.error),t}n.properties.forEach(s=>{var u;const o=e.properties.find(p=>p.name===s.name);((u=s.implements)==null?void 0:u.id)!==(o==null?void 0:o.id)&&o&&i.push(s)}),i.length&&i.forEach(s=>{const o=k({id:n.id+"--"+v.PropertyOverwrite,message:`Property "${s.name}" with id "${s.id}" of entity "${n.name}" with id "${n.id}" overwrites the property with the same name from the extended entity "${e.name}" with id "${e.id}"`,issue:null,severity:f.Error,code:v.PropertyOverwrite,entity:n});t.push(o.error)});const a=[];return n.methods.forEach(s=>{var u;const o=e.methods.find(p=>p.name===s.name);((u=s.implements)==null?void 0:u.id)!==(o==null?void 0:o.id)&&o&&a.push(s)}),a.length&&a.forEach(s=>{const o=k({id:n.id+"--"+v.MethodOverwrite,message:`Method "${s.name}" with id "${s.id}" of entity "${n.name}" with id "${n.id}" overwrites the method with the same name from the extended entity "${e.name}" with id "${e.id}"`,issue:null,severity:f.Error,code:v.MethodOverwrite,entity:n});t.push(o.error)}),t}function Ux(n){const e=[];if(!n.properties.length){const t=k({id:n.id+"--"+O.NoProperties,message:"No properties implemented",issue:null,severity:f.Warning,code:O.NoProperties,entity:n});e.push(t.error)}return n.properties.forEach(t=>{t.validate()}),e}function xx(n){const e=[];if(n.abstract){if(n.methods.length){const t=k({id:n.id+"--"+O.AbstractEntityWithNonAbstractMethods,message:`Entity "${n.name}" with id "${n.id}" is marked as abstract but has non-abstract methods`,issue:null,severity:f.Error,code:O.AbstractEntityWithNonAbstractMethods,entity:n});e.push(t.error)}if(n.properties.some(t=>!t.abstract)){const t=k({id:n.id+"--"+O.AbstractEntityWithNonAbstractProperties,message:`Entity "${n.name}" with id "${n.id}" is marked as abstract but has non-abstract properties`,issue:null,severity:f.Error,code:O.AbstractEntityWithNonAbstractProperties,entity:n});e.push(t.error),n.properties.forEach(i=>{if(!i.abstract){const a=k({id:n.id+"--"+O.StaticEntityWithNonStaticProperties+"--"+i.id,message:`Property "${i.name}" with id "${i.id}" of entity "${n.name}" with id "${n.id}" is not marked as abstract but the entity is marked as abstract`,issue:null,severity:f.Error,code:O.StaticEntityWithNonStaticProperties,entity:n});e.push(a.error)}})}}else{if(n.abstractMethods.length){const t=k({id:n.id+"--"+O.AbstractPropertyInNonAbstractEntity,message:`Entity "${n.name}" with id "${n.id}" is not marked as abstract but has abstract methods`,issue:null,severity:f.Error,code:O.AbstractPropertyInNonAbstractEntity,entity:n});e.push(t.error)}if(n.properties.some(t=>t.abstract)){const t=k({id:n.id+"--"+O.AbstractMethodInNonAbstractEntity,message:`Entity "${n.name}" with id "${n.id}" is not marked as abstract but has abstract properties`,issue:null,severity:f.Error,code:O.AbstractMethodInNonAbstractEntity,entity:n});e.push(t.error),n.properties.forEach(i=>{if(i.abstract){const a=k({id:n.id+"--"+O.AbstractMethodInNonAbstractEntity+"--"+i.id,message:`Property "${i.name}" with id "${i.id}" of entity "${n.name}" with id "${n.id}" is marked as abstract but the entity is not marked as abstract`,issue:null,severity:f.Error,code:O.AbstractMethodInNonAbstractEntity,entity:n});e.push(a.error)}})}}if(n.static&&n.properties.some(t=>!t.static)){const t=k({id:n.id+"--"+O.StaticEntityWithNonStaticProperties,message:`Entity "${n.name}" with id "${n.id}" is marked as static but has non-static properties`,issue:null,severity:f.Error,code:O.StaticEntityWithNonStaticProperties,entity:n});e.push(t.error),n.properties.forEach(i=>{if(!i.static){const a=k({id:n.id+"--"+O.NonStaticPropertyInStaticEntity+"--"+i.id,message:`Property "${i.name}" with id "${i.id}" of entity "${n.name}" with id "${n.id}" is not marked as static but the entity is marked as static`,issue:null,severity:f.Error,code:O.NonStaticPropertyInStaticEntity,entity:n});e.push(a.error)}})}return e}function jx(n){return n instanceof Error&&n.name==="ZodError"&&"issues"in n&&Array.isArray(n.issues)}var kx=class extends Error{constructor(e,t){super(e,t);l(this,"name");l(this,"details");this.name="ZodValidationError",this.details=qx(t)}toString(){return this.message}};function qx(n){if(n){const e=n.cause;if(jx(e))return e.issues}return[]}var Jx="; ",Sb="Validation error",Wx=": ",Hx=", or ";function Yx(n,e,t){return e!==null?n.length>0?[e,n].join(t):e:n.length>0?n:Sb}var zx=/[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*/u;function Zx(n){return n.length===1?n[0].toString():n.reduce((e,t)=>{if(typeof t=="number")return e+"["+t.toString()+"]";if(t.includes('"'))return e+'["'+Xx(t)+'"]';if(!zx.test(t))return e+'["'+t+'"]';const i=e.length===0?"":".";return e+i+t},"")}function Xx(n){return n.replace(/"/g,'\\"')}function Qx(n){return n.length!==0}function Gs(n){const{issue:e,issueSeparator:t,unionSeparator:i,includePath:a}=n;if(e.code==="invalid_union")return e.unionErrors.reduce((s,o)=>{const u=o.issues.map(p=>Gs({issue:p,issueSeparator:t,unionSeparator:i,includePath:a})).join(t);return s.includes(u)||s.push(u),s},[]).join(i);if(e.code==="invalid_arguments")return[e.message,...e.argumentsError.issues.map(s=>Gs({issue:s,issueSeparator:t,unionSeparator:i,includePath:a}))].join(t);if(e.code==="invalid_return_type")return[e.message,...e.returnTypeError.issues.map(s=>Gs({issue:s,issueSeparator:t,unionSeparator:i,includePath:a}))].join(t);if(a&&Qx(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 "${Zx(e.path)}"`}return e.message}function Kx(n,e={}){const{issueSeparator:t=Jx,unionSeparator:i=Hx,prefixSeparator:a=Wx,prefix:s=Sb,includePath:o=!0}=e,u=Gs({issue:n,issueSeparator:t,unionSeparator:i,includePath:o}),p=Yx(u,s,a);return new kx(p,{cause:new ft([n])})}var Ob="1.13.7",Cb=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},Fs=Array.prototype,Pc=Object.prototype,Bb=typeof Symbol<"u"?Symbol.prototype:null,e8=Fs.push,Ki=Fs.slice,ea=Pc.toString,t8=Pc.hasOwnProperty,wb=typeof ArrayBuffer<"u",n8=typeof DataView<"u",r8=Array.isArray,_b=Object.keys,Mb=Object.create,Nb=wb&&ArrayBuffer.isView,i8=isNaN,a8=isFinite,$b=!{toString:null}.propertyIsEnumerable("toString"),Vb=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],s8=Math.pow(2,53)-1;function Et(n,e){return e=e==null?n.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 n.call(this,i);case 1:return n.call(this,arguments[0],i);case 2:return n.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,n.apply(this,s)}}function _n(n){var e=typeof n;return e==="function"||e==="object"&&!!n}function o8(n){return n===null}function Lb(n){return n===void 0}function Gb(n){return n===!0||n===!1||ea.call(n)==="[object Boolean]"}function l8(n){return!!(n&&n.nodeType===1)}function rt(n){var e="[object "+n+"]";return function(t){return ea.call(t)===e}}const Dc=rt("String"),Fb=rt("Number"),c8=rt("Date"),d8=rt("RegExp"),u8=rt("Error"),Ub=rt("Symbol"),xb=rt("ArrayBuffer");var jb=rt("Function"),p8=Cb.document&&Cb.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof p8!="function"&&(jb=function(n){return typeof n=="function"||!1});const pt=jb,kb=rt("Object");var qb=n8&&(!/\[native code\]/.test(String(DataView))||kb(new DataView(new ArrayBuffer(8)))),Ac=typeof Map<"u"&&kb(new Map),y8=rt("DataView");function h8(n){return n!=null&&pt(n.getInt8)&&xb(n.buffer)}const Us=qb?h8:y8,rr=r8||rt("Array");function Mn(n,e){return n!=null&&t8.call(n,e)}var Sc=rt("Arguments");(function(){Sc(arguments)||(Sc=function(n){return Mn(n,"callee")})})();const Oc=Sc;function f8(n){return!Ub(n)&&a8(n)&&!isNaN(parseFloat(n))}function Jb(n){return Fb(n)&&i8(n)}function Wb(n){return function(){return n}}function Hb(n){return function(e){var t=n(e);return typeof t=="number"&&t>=0&&t<=s8}}function Yb(n){return function(e){return e==null?void 0:e[n]}}const xs=Yb("byteLength"),m8=Hb(xs);var T8=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function E8(n){return Nb?Nb(n)&&!Us(n):m8(n)&&T8.test(ea.call(n))}const zb=wb?E8:Wb(!1),Rt=Yb("length");function R8(n){for(var e={},t=n.length,i=0;i<t;++i)e[n[i]]=!0;return{contains:function(a){return e[a]===!0},push:function(a){return e[a]=!0,n.push(a)}}}function Zb(n,e){e=R8(e);var t=Vb.length,i=n.constructor,a=pt(i)&&i.prototype||Pc,s="constructor";for(Mn(n,s)&&!e.contains(s)&&e.push(s);t--;)s=Vb[t],s in n&&n[s]!==a[s]&&!e.contains(s)&&e.push(s)}function We(n){if(!_n(n))return[];if(_b)return _b(n);var e=[];for(var t in n)Mn(n,t)&&e.push(t);return $b&&Zb(n,e),e}function ta(n){if(n==null)return!0;var e=Rt(n);return typeof e=="number"&&(rr(n)||Dc(n)||Oc(n))?e===0:Rt(We(n))===0}function Xb(n,e){var t=We(e),i=t.length;if(n==null)return!i;for(var a=Object(n),s=0;s<i;s++){var o=t[s];if(e[o]!==a[o]||!(o in a))return!1}return!0}function Q(n){if(n instanceof Q)return n;if(!(this instanceof Q))return new Q(n);this._wrapped=n}Q.VERSION=Ob,Q.prototype.value=function(){return this._wrapped},Q.prototype.valueOf=Q.prototype.toJSON=Q.prototype.value,Q.prototype.toString=function(){return String(this._wrapped)};function Qb(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,xs(n))}var Kb="[object DataView]";function Cc(n,e,t,i){if(n===e)return n!==0||1/n===1/e;if(n==null||e==null)return!1;if(n!==n)return e!==e;var a=typeof n;return a!=="function"&&a!=="object"&&typeof e!="object"?!1:ev(n,e,t,i)}function ev(n,e,t,i){n instanceof Q&&(n=n._wrapped),e instanceof Q&&(e=e._wrapped);var a=ea.call(n);if(a!==ea.call(e))return!1;if(qb&&a=="[object Object]"&&Us(n)){if(!Us(e))return!1;a=Kb}switch(a){case"[object RegExp]":case"[object String]":return""+n==""+e;case"[object Number]":return+n!=+n?+e!=+e:+n==0?1/+n===1/e:+n==+e;case"[object Date]":case"[object Boolean]":return+n==+e;case"[object Symbol]":return Bb.valueOf.call(n)===Bb.valueOf.call(e);case"[object ArrayBuffer]":case Kb:return ev(Qb(n),Qb(e),t,i)}var s=a==="[object Array]";if(!s&&zb(n)){var o=xs(n);if(o!==xs(e))return!1;if(n.buffer===e.buffer&&n.byteOffset===e.byteOffset)return!0;s=!0}if(!s){if(typeof n!="object"||typeof e!="object")return!1;var u=n.constructor,p=e.constructor;if(u!==p&&!(pt(u)&&u instanceof u&&pt(p)&&p instanceof p)&&"constructor"in n&&"constructor"in e)return!1}t=t||[],i=i||[];for(var h=t.length;h--;)if(t[h]===n)return i[h]===e;if(t.push(n),i.push(e),s){if(h=n.length,h!==e.length)return!1;for(;h--;)if(!Cc(n[h],e[h],t,i))return!1}else{var m=We(n),T;if(h=m.length,We(e).length!==h)return!1;for(;h--;)if(T=m[h],!(Mn(e,T)&&Cc(n[T],e[T],t,i)))return!1}return t.pop(),i.pop(),!0}function b8(n,e){return Cc(n,e)}function na(n){if(!_n(n))return[];var e=[];for(var t in n)e.push(t);return $b&&Zb(n,e),e}function Bc(n){var e=Rt(n);return function(t){if(t==null)return!1;var i=na(t);if(Rt(i))return!1;for(var a=0;a<e;a++)if(!pt(t[n[a]]))return!1;return n!==rv||!pt(t[wc])}}var wc="forEach",tv="has",_c=["clear","delete"],nv=["get",tv,"set"],v8=_c.concat(wc,nv),rv=_c.concat(nv),g8=["add"].concat(_c,wc,tv);const I8=Ac?Bc(v8):rt("Map"),P8=Ac?Bc(rv):rt("WeakMap"),D8=Ac?Bc(g8):rt("Set"),A8=rt("WeakSet");function ni(n){for(var e=We(n),t=e.length,i=Array(t),a=0;a<t;a++)i[a]=n[e[a]];return i}function S8(n){for(var e=We(n),t=e.length,i=Array(t),a=0;a<t;a++)i[a]=[e[a],n[e[a]]];return i}function iv(n){for(var e={},t=We(n),i=0,a=t.length;i<a;i++)e[n[t[i]]]=t[i];return e}function Mc(n){var e=[];for(var t in n)pt(n[t])&&e.push(t);return e.sort()}function Nc(n,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=n(s),u=o.length,p=0;p<u;p++){var h=o[p];(!e||t[h]===void 0)&&(t[h]=s[h])}return t}}const av=Nc(na),js=Nc(We),sv=Nc(na,!0);function O8(){return function(){}}function ov(n){if(!_n(n))return{};if(Mb)return Mb(n);var e=O8();e.prototype=n;var t=new e;return e.prototype=null,t}function C8(n,e){var t=ov(n);return e&&js(t,e),t}function B8(n){return _n(n)?rr(n)?n.slice():av({},n):n}function w8(n,e){return e(n),n}function lv(n){return rr(n)?n:[n]}Q.toPath=lv;function ra(n){return Q.toPath(n)}function $c(n,e){for(var t=e.length,i=0;i<t;i++){if(n==null)return;n=n[e[i]]}return t?n:void 0}function cv(n,e,t){var i=$c(n,ra(e));return Lb(i)?t:i}function _8(n,e){e=ra(e);for(var t=e.length,i=0;i<t;i++){var a=e[i];if(!Mn(n,a))return!1;n=n[a]}return!!t}function Vc(n){return n}function ia(n){return n=js({},n),function(e){return Xb(e,n)}}function Lc(n){return n=ra(n),function(e){return $c(e,n)}}function aa(n,e,t){if(e===void 0)return n;switch(t??3){case 1:return function(i){return n.call(e,i)};case 3:return function(i,a,s){return n.call(e,i,a,s)};case 4:return function(i,a,s,o){return n.call(e,i,a,s,o)}}return function(){return n.apply(e,arguments)}}function dv(n,e,t){return n==null?Vc:pt(n)?aa(n,e,t):_n(n)&&!rr(n)?ia(n):Lc(n)}function Gc(n,e){return dv(n,e,1/0)}Q.iteratee=Gc;function bt(n,e,t){return Q.iteratee!==Gc?Q.iteratee(n,e):dv(n,e,t)}function M8(n,e,t){e=bt(e,t);for(var i=We(n),a=i.length,s={},o=0;o<a;o++){var u=i[o];s[u]=e(n[u],u,n)}return s}function uv(){}function N8(n){return n==null?uv:function(e){return cv(n,e)}}function $8(n,e,t){var i=Array(Math.max(0,n));e=aa(e,t,1);for(var a=0;a<n;a++)i[a]=e(a);return i}function Fc(n,e){return e==null&&(e=n,n=0),n+Math.floor(Math.random()*(e-n+1))}const sa=Date.now||function(){return new Date().getTime()};function pv(n){var e=function(s){return n[s]},t="(?:"+We(n).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 yv={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},V8=pv(yv),L8=iv(yv),G8=pv(L8),F8=Q.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var Uc=/(.)^/,U8={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},x8=/\\|'|\r|\n|\u2028|\u2029/g;function j8(n){return"\\"+U8[n]}var k8=/^\s*(\w|\$)+\s*$/;function q8(n,e,t){!e&&t&&(e=t),e=sv({},e,Q.templateSettings);var i=RegExp([(e.escape||Uc).source,(e.interpolate||Uc).source,(e.evaluate||Uc).source].join("|")+"|$","g"),a=0,s="__p+='";n.replace(i,function(h,m,T,b,I){return s+=n.slice(a,I).replace(x8,j8),a=I+h.length,m?s+=`'+
1
+ (function(d,r){typeof exports=="object"&&typeof module<"u"?r(exports):typeof define=="function"&&define.amd?define(["exports"],r):(d=typeof globalThis<"u"?globalThis:d||self,r(d["@elyx-code/project-logic-tree"]={}))})(this,function(d){"use strict";var f3=Object.defineProperty;var m3=(d,r,_)=>r in d?f3(d,r,{enumerable:!0,configurable:!0,writable:!0,value:_}):d[r]=_;var l=(d,r,_)=>(m3(d,typeof r!="symbol"?r+"":r,_),_);var r=(n=>(n.CustomEntity="custom-entity",n.BuiltInBaseEntity="built-in-base-entity",n.Project="project",n.InstalledProject="installed-project",n.GlobalEvent="global-event",n.DataType="data-type",n.FunctionCall="function-call",n.FunctionDeclaration="function-declaration",n.ActionDescriptor="action-descriptor",n.ValueDescriptor="value-descriptor",n.ArgumentDeclaration="argument-declaration",n.InputMap="input-map",n.ReturnStatement="return-statement",n.BreakStatement="break-statement",n.ContinueStatement="continue-statement",n.ReturnDeclaration="return-declaration",n.OutputMap="output-map",n.PrimitiveEntity="primitive-entity",n.PrimitiveValue="primitive-value",n.Property="property",n.Operation="operation",n.Condition="condition",n.VariableDeclaration="variable-declaration",n.VariableInstance="variable-instance",n.Search="search",n.Loop="loop",n.InternalCall="internal-call",n.GenericReference="generic-reference",n))(r||{}),_=(n=>(n.HTTP_ENDPOINT="BUILT_IN_HTTP_ENDPOINT_ENTITY",n.RELATIONAL_DATABASE="BUILT_IN_RELATIONAL_DATABASE_ENTITY",n.PERSISTED_ENTITY="BUILT_IN_PERSISTED_ENTITY_ENTITY",n.CRON_JOB="BUILT_IN_CRON_JOB_ENTITY",n.EXECUTION="BUILT_IN_EXECUTION_ENTITY",n.KEY_VALUE_PARAM="BUILT_IN_KEY_VALUE_PARAM_ENTITY",n))(_||{}),xe=(n=>(n.CurrentDateAndTime="current-date-and-time",n.Unique="unique",n.Random="random",n))(xe||{}),gt=(n=>(n.DeletePersistedEntity="base-delete-persisted-entity",n.SoftDeletePersistedEntity="base-soft-delete-persisted-entity",n.AbortExecution="base-abort-execution",n))(gt||{}),L=(n=>(n.Fixed="fixed",n.None="none",n.Dynamic="dynamic",n))(L||{}),C=(n=>(n.FixedArguments="fixed-arguments",n.FixedReturns="fixed-returns",n.ReturnedError="returned-error",n.OngoingProcessExecution="ongoing-process-execution",n))(C||{}),g=(n=>(n.EntityTemplate="entity-template",n.ActionDescriptor="action-descriptor",n.String="string",n.Number="number",n.Boolean="boolean",n.Null="null",n.Enum="enum",n.JSON="json",n.Date="date",n.UUID="uuid",n.File="file",n))(g||{}),at=(n=>(n.Addition="addition",n.Substraction="substraction",n.Multiplication="multiplication",n.Division="division",n.Remainder="remainder",n.Exponentiation="exponentiation",n))(at||{}),ge=(n=>(n.Join="string-join",n.Split="stringSsplit",n.DeleteLast="string-delete-last",n.DeleteFirst="string-delete-first",n.DeleteIndex="string-delete-index",n.AddIndex="string-add-index",n.ReplaceFirst="string-replace-first",n.ReplaceLast="string-replace-last",n.ReplaceIndex="string-replace-index",n.ReplaceSingleMatch="string-replace-single-match",n.ReplaceAllMatches="string-replace-all-matches",n.GetIndex="string-get-index",n.GetFirst="string-get-first",n.GetLast="string-get-last",n.Append="string-append",n.Prepend="string-prepend",n))(ge||{}),j=(n=>(n.Join="list-join",n.Split="list-split",n.DeleteLast="list-delete-last",n.DeleteFirst="list-delete-first",n.DeleteIndex="list-delete-index",n.AddIndex="list-add-index",n.ReplaceFirst="list-replace-first",n.ReplaceLast="list-replace-last",n.ReplaceIndex="list-replace-index",n.ReplaceSingleMatch="list-replace-single-match",n.ReplaceAllMatches="list-replace-all-matches",n.GetIndex="list-get-index",n.GetFirst="list-get-first",n.GetLast="list-get-last",n.Append="list-append",n.Prepend="list-prepend",n))(j||{}),Ie=(n=>(n.Parallel="parallel",n.Sequential="sequential",n.Wait="wait",n))(Ie||{}),Ze=(n=>(n.CreateNewInstance="create-new-instance",n.Validate="validate",n))(Ze||{}),Ye=(n=>(n.HttpRequest="base-http-request",n))(Ye||{}),Ae=(n=>(n.Equal="equal",n.NotEqual="not-equal",n.And="and",n.Or="or",n.LessThan="less-than",n.MoreThan="more-than",n.LessThanOrEqual="less-than-or-equal",n.MoreThanOrEqual="more-than-or-equal",n))(Ae||{}),Ct=(n=>(n.Empty="empty",n.NotEmpty="not-empty",n))(Ct||{}),je=(n=>(n.ManualFlow="manual-flow-loop",n.Counted="counted-loop",n.List="list-loop",n.ObjectKeys="object-keys-loop",n.ObjectValues="object-values-loop",n.String="string-loop",n))(je||{}),qe=(n=>(n.OrDataTypeGroup="or-data-type-group",n.AndDataTypeGroup="and-data-type-group",n.DynamicArgumentTypes="dynamic-argument-types",n.DynamicReturnTypes="dynamic-return-types",n))(qe||{}),Kt=(n=>(n.PROJECT_PUBLICATION_COMPLETED="GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED",n))(Kt||{}),Bd=(n=>(n.Error="error",n.Task="task",n))(Bd||{});const Tn=[r.VariableDeclaration,r.VariableInstance,r.InputMap,r.ReturnDeclaration],Hg=[r.VariableDeclaration,r.VariableInstance,r.InputMap,r.ReturnDeclaration];console.log("VALUE_READING_TYPES: ",[...Tn]);const Se=[r.VariableDeclaration,r.VariableInstance,r.ArgumentDeclaration,r.OutputMap],Yg=[r.VariableDeclaration,r.VariableInstance,r.ArgumentDeclaration,r.OutputMap];console.log("VALUE_WRITING_TYPES: ",[...Se]);const wd=[...Tn,...Se],Fe=[r.VariableDeclaration,r.VariableInstance],Dr=[r.GlobalEvent],Ne=[r.Operation,r.FunctionCall,r.Condition,r.Search,r.VariableDeclaration,r.VariableInstance,r.InternalCall,r.Loop],mo=[r.Operation,r.FunctionCall,r.Condition,r.Search,r.VariableDeclaration,r.VariableInstance,r.Loop],$e=[r.FunctionDeclaration,...Dr],En=[...Ne,r.ReturnStatement,r.BreakStatement,r.ContinueStatement],To=[...mo,r.ReturnStatement,r.BreakStatement,r.ContinueStatement],en=[...Ne,...$e],_d=[...mo,...$e],zg=[...En,...$e],Zg=[...To,...$e],st=[...$e,r.Loop],Oe=[r.ReturnStatement,r.BreakStatement,r.ContinueStatement],Xg=[r.CustomEntity,r.BuiltInBaseEntity,r.Project,r.InstalledProject,r.GlobalEvent,r.DataType,r.FunctionCall,r.FunctionDeclaration,r.ActionDescriptor,r.ValueDescriptor,r.ArgumentDeclaration,r.InputMap,r.ReturnStatement,r.BreakStatement,r.ContinueStatement,r.ReturnDeclaration,r.OutputMap,r.PrimitiveEntity,r.PrimitiveValue,r.Property,r.Operation,r.Condition,r.VariableDeclaration,r.VariableInstance,r.Search,r.Loop,r.InternalCall],Eo=[r.CustomEntity,r.GlobalEvent,r.FunctionDeclaration,r.FunctionCall,r.VariableDeclaration,r.VariableInstance,r.Operation,r.Condition,r.ReturnStatement,r.BreakStatement,r.ContinueStatement,r.InstalledProject,r.Loop,r.Search],Md=[r.CustomEntity,r.FunctionDeclaration,r.ArgumentDeclaration,r.ReturnDeclaration,r.Property,r.VariableDeclaration,r.Search,r.Project,r.InstalledProject,r.ActionDescriptor,r.ValueDescriptor],Ar=[r.BuiltInBaseEntity,r.PrimitiveEntity],Qg=[r.CustomEntity,r.FunctionDeclaration,r.ArgumentDeclaration,r.ReturnDeclaration,r.Property,r.VariableDeclaration,r.GlobalEvent,r.Search,r.Project,r.InstalledProject,r.ActionDescriptor,r.ValueDescriptor,r.InputMap,r.OutputMap,r.FunctionCall,r.Operation,r.Condition,r.ReturnStatement,r.BreakStatement,r.ContinueStatement,r.VariableInstance,r.PrimitiveValue,r.InternalCall],F={type:r.PrimitiveEntity,id:"8b5fbe15-4c2b-48c0-9fd8-e5efbe3978dc",description:"A string of characters.",version:1,name:g.String,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Fn={type:r.PrimitiveEntity,id:"f596545d-1565-4faa-9969-d95fa5edfea4",description:"A 'true' or 'false' value.",version:1,name:g.Boolean,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Ce={type:r.PrimitiveEntity,id:"ecb84c29-6153-4b82-86a5-fce2b5f92002",description:"A number value.",version:1,name:g.Number,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Xe={type:r.PrimitiveEntity,id:"730e8ea9-8498-439a-9001-b07de55aaa7d",description:"A complex data structure with any combination of properties with names and values.",version:1,name:g.JSON,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},Nd={id:"c2f52f01-8f2e-490e-8083-72289c8189c1",type:r.GenericReference,entityId:"7dd59b70-f97b-43a7-a051-fde1842ce5d6",entityType:r.DataType},$d={id:"4e803941-2e6a-4227-b803-b8877c0d7fee",type:r.GenericReference,entityId:"00ccfcae-2104-45ef-bf6c-50ddccd74286",entityType:r.Property},Vd={id:"7dd59b70-f97b-43a7-a051-fde1842ce5d6",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:F,asType:!1,defaultValue:{id:"enum-options-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:g.JSON,autogeneration:null,value:[],valueAsType:null,parent:Nd},parent:$d},Ld={id:"a2983c4c-0286-4ef1-8b5c-5a52904d3200",type:r.GenericReference,entityId:"9542b8b4-2642-4eee-9db9-def7963a17a0",entityType:r.PrimitiveEntity},Gd={required:!0,id:"00ccfcae-2104-45ef-bf6c-50ddccd74286",name:"Options",version:1,type:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:Vd,description:"Options for the enum. Each option is a text value.",parent:Ld},Rn={type:r.PrimitiveEntity,id:"9542b8b4-2642-4eee-9db9-def7963a17a0",description:"A set of text options to choose from.",version:1,name:g.Enum,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[Gd],methods:[]},Sr={type:r.PrimitiveEntity,id:"dc58f38b-d574-4956-aac6-32ce9529b937",description:"A date and time value.",version:1,name:g.Date,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]},fa={type:r.PrimitiveEntity,id:"4a6234aa-c0f6-4731-b4dd-750388029226",description:"A unique identifier in the form of a 36-character string.",version:1,name:g.UUID,static:!1,abstract:!1,abstractMethods:[],extends:[F],properties:[],methods:[]},Ro={type:r.PrimitiveEntity,id:"b6f3c3c4-9c3d-4f9d-9e9e-1c0f6a3c8c6b",description:"A complex data structure with any combination of properties with names and values.",version:1,name:g.JSON,static:!1,abstract:!1,abstractMethods:[],extends:[],properties:[],methods:[]};var Fd=(n=>(n.FirstInputNumber="number-addition-first-number-argument-declaration",n.SecondInputNumber="number-addition-second-number-argument-declaration",n))(Fd||{}),Ud=(n=>(n.ResultNumber="number-addition-result-number-return-delaration",n.Error="number-addition-error-return-delaration",n))(Ud||{});const xd={type:r.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:"number-addition-first-number-argument-declaration",entityType:r.ValueDescriptor},jd={id:"number-addition-first-number-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:xd},kd={type:r.GenericReference,id:"9f486db2-a983-4293-9eef-81d4fc8d2d3e",entityId:"number-addition-second-number-argument-declaration",entityType:r.ValueDescriptor},qd={id:"1d4abe83-3e87-4f74-99be-c1fd8c2f8d2d",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:kd},Jd={type:r.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:"number-addition-result-number-return-delaration",entityType:r.ValueDescriptor},Wd={id:"b761acec-0755-4582-a68b-76267038bbe1",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Jd},Hd={type:r.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:at.Addition,entityType:r.ActionDescriptor},bo={id:"number-addition-first-number-argument-declaration",type:r.ValueDescriptor,version:1,name:"First value",description:"The first number to add",dataType:jd,required:!0,parentRelationType:C.FixedArguments,index:0,parent:Hd},Yd={type:r.GenericReference,id:"c5015128-4a65-462c-9da0-1c86e83ef897",entityId:at.Addition,entityType:r.ActionDescriptor},vo={id:"number-addition-second-number-argument-declaration",type:r.ValueDescriptor,description:"The second number to add",version:1,name:"Second value",dataType:qd,required:!0,parentRelationType:C.FixedArguments,index:1,parent:Yd},zd={type:r.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:at.Addition,entityType:r.ActionDescriptor},go={parentRelationType:C.FixedReturns,id:"number-addition-result-number-return-delaration",type:r.ValueDescriptor,description:"The result number of the addition",version:1,name:"Result",dataType:Wd,required:!0,index:0,parent:zd},Zd={type:r.GenericReference,id:"number-addition-operation-error-parent-ref",entityId:at.Addition,entityType:r.ActionDescriptor},Xd={parentRelationType:C.FixedReturns,id:"number-addition-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Zd},ma={id:at.Addition,type:r.ActionDescriptor,description:"Add two numbers together",version:1,name:at.Addition,fixedArguments:[bo,vo],error:Xd,fixedReturns:[go],argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},Qd={[at.Addition]:ma};var Kd=(n=>(n.FirstInputString="join-string-first-string-argument-declaration",n.SecondInputString="join-string-second-string-argument-declaration",n))(Kd||{}),eu=(n=>(n.ResultString="join-string-result-string-return-delaration",n.Error="join-string-error-return-delaration",n))(eu||{});const tu={type:r.GenericReference,id:"join-string-first-string-argument-declaration",entityId:"join-string-first-string-argument-declaration",entityType:r.ValueDescriptor},nu={id:"join-string-first-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:tu},ru={type:r.GenericReference,id:"join-string-second-string-argument-declaration",entityId:"join-string-second-string-argument-declaration",entityType:r.ValueDescriptor},iu={id:"join-string-second-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:ru},au={type:r.GenericReference,id:"join-string-result-string-return-delaration",entityId:"join-string-result-string-return-delaration",entityType:r.ValueDescriptor},su={id:"join-string-result-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:au},ou={type:r.GenericReference,id:"join-string-operation-first-string-argument-parent-ref",entityId:ge.Join,entityType:r.ActionDescriptor},Ta={id:"join-string-first-string-argument-declaration",type:r.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:nu,parentRelationType:C.FixedArguments,required:!0,index:0,parent:ou},lu={type:r.GenericReference,id:"join-string-operation-second-string-argument-parent-ref",entityId:ge.Join,entityType:r.ActionDescriptor},Ea={id:"join-string-second-string-argument-declaration",type:r.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:iu,parentRelationType:C.FixedArguments,required:!0,index:1,parent:lu},cu={type:r.GenericReference,id:"join-string-operation-result-string-return-parent-ref",entityId:ge.Join,entityType:r.ActionDescriptor},ui={parentRelationType:C.FixedReturns,id:"join-string-result-string-return-delaration",type:r.ValueDescriptor,version:1,name:"Result",description:"The resulting text value.",dataType:su,required:!0,index:0,parent:cu},du={type:r.GenericReference,id:"join-string-operation-error-parent-ref",entityId:ge.Join,entityType:r.ActionDescriptor},uu={parentRelationType:C.FixedReturns,id:"join-string-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:du},pi={id:ge.Join,type:r.ActionDescriptor,version:1,name:ge.Join,description:"Join two text together, to form a single resulting text value.",fixedArguments:[Ta,Ea],fixedReturns:[ui],error:uu,argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},pu={[ge.Join]:pi};var yu=(n=>(n.FirstInputList="join-list-first-list-argument-declaration",n.SecondInputList="join-list-second-list-argument-declaration",n))(yu||{}),hu=(n=>(n.ResultList="join-list-result-list-return-delaration",n.Error="join-list-error-return-delaration",n))(hu||{});const fu={type:r.GenericReference,id:"join-list-operation-first-list-argument-ref",entityId:"join-list-first-list-argument-declaration",entityType:r.ValueDescriptor},mu={id:"join-list-first-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:fu},Tu={type:r.GenericReference,id:"join-list-operation-second-list-argument-ref",entityId:"join-list-second-list-argument-declaration",entityType:r.ValueDescriptor},Eu={id:"join-list-second-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Tu},Ru={type:r.GenericReference,id:"join-list-operation-result-list-return-ref",entityId:"join-list-result-list-return-delaration",entityType:r.ValueDescriptor},bu={id:"join-list-result-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Ru},vu={type:r.GenericReference,id:"join-list-operation-first-list-argument-parent-ref",entityId:j.Join,entityType:r.ActionDescriptor},gu={id:"join-list-first-list-argument-declaration",type:r.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:mu,parentRelationType:C.FixedArguments,required:!0,index:0,parent:vu},Iu={type:r.GenericReference,id:"join-list-operation-second-list-argument-parent-ref",entityId:j.Join,entityType:r.ActionDescriptor},Pu={id:"join-list-second-list-argument-declaration",type:r.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:Eu,parentRelationType:C.FixedArguments,required:!0,index:1,parent:Iu},Du={type:r.GenericReference,id:"join-list-operation-result-list-return-parent-ref",entityId:j.Join,entityType:r.ActionDescriptor},Au={parentRelationType:C.FixedReturns,id:"join-list-result-list-return-delaration",type:r.ValueDescriptor,version:1,name:"Result",description:"The resulting list value.",dataType:bu,required:!0,index:0,parent:Du},Su={type:r.GenericReference,id:"join-list-operation-error-parent-ref",entityId:j.Join,entityType:r.ActionDescriptor},Ou={parentRelationType:C.FixedReturns,id:"join-list-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Su},Io={id:j.Join,type:r.ActionDescriptor,version:1,name:j.Join,description:"Join two lists together, to form a single resulting list value.",fixedArguments:[gu,Pu],error:Ou,fixedReturns:[Au],argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var Cu=(n=>(n.InputList="list-to-split-argument-declaration",n.SplitIndex="split-list-index-argument-declaration",n))(Cu||{}),Bu=(n=>(n.FirstOutputList="split-list-first-output-list-return-delaration",n.SecondOutputList="split-list-second-output-list-return-delaration",n.Error="split-list-error-return-delaration",n))(Bu||{});const wu={type:r.GenericReference,id:"split-list-operation-input-list-argument-ref",entityId:"list-to-split-argument-declaration",entityType:r.ValueDescriptor},_u={id:"split-list-operation-input-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:wu},Mu={type:r.GenericReference,id:"split-list-operation-split-index-argument-ref",entityId:"split-list-index-argument-declaration",entityType:r.ValueDescriptor},Nu={id:"split-list-operation-split-index-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Mu},Po={type:r.GenericReference,id:"split-list-operation-first-output-list-return-ref",entityId:"split-list-first-output-list-return-delaration",entityType:r.ValueDescriptor},$u={id:"split-list-operation-first-output-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Po},Vu={type:r.GenericReference,id:"split-list-operation-input-list-argument-parent-ref",entityId:j.Split,entityType:r.ActionDescriptor},Lu={id:"list-to-split-argument-declaration",type:r.ValueDescriptor,version:1,name:"List to split",description:"The list to split at the given index",dataType:_u,parentRelationType:C.FixedArguments,required:!0,index:0,parent:Vu},Gu={type:r.GenericReference,id:"split-list-operation-split-index-argument-parent-ref",entityId:j.Split,entityType:r.ActionDescriptor},Fu={id:"split-list-index-argument-declaration",type:r.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:Nu,parentRelationType:C.FixedArguments,required:!0,index:1,parent:Gu},Uu={type:r.GenericReference,id:"split-list-operation-first-output-list-return-parent-ref",entityId:j.Split,entityType:r.ActionDescriptor},xu={parentRelationType:C.FixedReturns,id:"split-list-first-output-list-return-delaration",type:r.ValueDescriptor,version:1,name:"First list",description:"The list of values up to the split index",dataType:$u,required:!0,index:0,parent:Uu},ju={id:"split-list-operation-second-output-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Po},ku={type:r.GenericReference,id:"split-list-operation-second-output-list-return-parent-ref",entityId:j.Split,entityType:r.ActionDescriptor},qu={parentRelationType:C.FixedReturns,id:"split-list-second-output-list-return-delaration",type:r.ValueDescriptor,version:1,name:"Second list",description:"The list of values up to the split index",dataType:ju,required:!0,index:0,parent:ku},Ju={type:r.GenericReference,id:"split-list-operation-error-parent-ref",entityId:j.Split,entityType:r.ActionDescriptor},Wu={parentRelationType:C.FixedReturns,id:"split-list-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Ju},Do={id:j.Split,type:r.ActionDescriptor,version:1,name:j.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:[Lu,Fu],fixedReturns:[xu,qu],error:Wu,argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var Hu=(n=>(n.InputList="get-last-in-list-input-list-argument-declaration",n))(Hu||{}),Yu=(n=>(n.OutputElement="get-last-in-list-output-element-return-delaration",n.Error="get-last-in-list-error-return-delaration",n))(Yu||{});const zu={type:r.GenericReference,id:"get-last-in-list-operation-input-list-argument-ref",entityId:"get-last-in-list-input-list-argument-declaration",entityType:r.ValueDescriptor},Zu={id:"get-last-in-list-input-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:zu},Xu={type:r.GenericReference,id:"get-last-in-list-operation-output-element-return-ref",entityId:"get-last-in-list-output-element-return-delaration",entityType:r.ValueDescriptor},Qu={id:"get-last-in-list-output-element-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Xu},Ku={type:r.GenericReference,id:"get-last-in-list-operation-input-list-argument-parent-ref",entityId:j.GetLast,entityType:r.ActionDescriptor},ep={id:"get-last-in-list-input-list-argument-declaration",type:r.ValueDescriptor,version:1,name:"List",description:"The list to get the last element from.",dataType:Zu,parentRelationType:C.FixedArguments,required:!0,index:0,parent:Ku},tp={type:r.GenericReference,id:"get-last-in-list-operation-output-element-return-parent-ref",entityId:j.GetLast,entityType:r.ActionDescriptor},np={parentRelationType:C.FixedReturns,id:"get-last-in-list-output-element-return-delaration",type:r.ValueDescriptor,version:1,name:"Last element",description:"The last element of the given list.",dataType:Qu,required:!0,index:0,parent:tp},rp={type:r.GenericReference,id:"get-last-in-list-operation-error-parent-ref",entityId:j.GetLast,entityType:r.ActionDescriptor},ip={parentRelationType:C.FixedReturns,id:"get-last-in-list-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:rp},Ao={id:j.GetLast,type:r.ActionDescriptor,version:1,name:j.GetLast,description:"Outputs the last element of a given list.",fixedArguments:[ep],fixedReturns:[np],error:ip,argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var ap=(n=>(n.List="append-to-list-lsit-argument-declaration",n.ElementToAppend="append-to-list-element-to-append-argument-declaration",n))(ap||{}),sp=(n=>(n.ResultList="append-to-list-result-list-return-delaration",n.Error="append-to-list-error-return-delaration",n))(sp||{});const op={type:r.GenericReference,id:"append-to-list-operation-lsit-argument-ref",entityId:"append-to-list-lsit-argument-declaration",entityType:r.ValueDescriptor},lp={id:"append-to-list-lsit-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:op},cp={type:r.GenericReference,id:"append-to-list-operation-second-list-argument-ref",entityId:"append-to-list-element-to-append-argument-declaration",entityType:r.ValueDescriptor},dp={id:"append-to-list-second-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:cp},up={type:r.GenericReference,id:"append-to-list-operation-result-list-return-ref",entityId:"append-to-list-result-list-return-delaration",entityType:r.ValueDescriptor},pp={id:"append-to-list-result-list-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:up},yp={type:r.GenericReference,id:"append-to-list-operation-lsit-argument-parent-ref",entityId:j.Append,entityType:r.ActionDescriptor},So={id:"append-to-list-lsit-argument-declaration",type:r.ValueDescriptor,version:1,name:"List value",description:"The list to which the element will be appended",dataType:lp,parentRelationType:C.FixedArguments,required:!0,index:0,parent:yp},hp={type:r.GenericReference,id:"append-to-list-operation-second-list-argument-parent-ref",entityId:j.Append,entityType:r.ActionDescriptor},Oo={id:"append-to-list-element-to-append-argument-declaration",type:r.ValueDescriptor,version:1,name:"Element",description:"The element that will be added at the end of the list",dataType:dp,parentRelationType:C.FixedArguments,required:!0,index:1,parent:hp},fp={type:r.GenericReference,id:"append-to-list-operation-result-list-return-parent-ref",entityId:j.Append,entityType:r.ActionDescriptor},mp={parentRelationType:C.FixedReturns,id:"append-to-list-result-list-return-delaration",type:r.ValueDescriptor,version:1,name:"Result",description:"The resulting list value.",dataType:pp,required:!0,index:0,parent:fp},Tp={type:r.GenericReference,id:"append-to-list-operation-error-parent-ref",entityId:j.Append,entityType:r.ActionDescriptor},Ep={parentRelationType:C.FixedReturns,id:"append-to-list-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Tp},Ra={id:j.Append,type:r.ActionDescriptor,version:1,name:j.Append,description:"Adds a given element to the end of a list value.",fixedArguments:[So,Oo],error:Ep,fixedReturns:[mp],argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},Rp={[j.Join]:Io,[j.Split]:Do,[j.GetLast]:Ao,[j.Append]:Ra};var bp=(n=>(n.ListOfFunctions="parallel-execution-list-of-functions-argument-declaration",n))(bp||{}),vp=(n=>(n.ListOfExecutionResults="parallel-execution-result-return-delaration",n.Error="parallel-execution-error-return-delaration",n))(vp||{});const gp={id:"parallel-execution-list-of-functions-blueprint-id",type:r.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:L.Dynamic,dynamicArgumentTypes:null,fixedArguments:[],returnsType:L.Dynamic,dynamicReturnTypes:null,fixedReturns:[],error:null,parent:null},Ip={type:r.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityId:"parallel-execution-list-of-functions-argument-declaration",entityType:r.ValueDescriptor},Pp={id:"parallel-execution-list-of-functions-argument-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:gp,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Ip},Dp={type:r.GenericReference,id:"da5e9fe9-f18a-49e3-98e5-c1bf7b9b3153",entityId:"parallel-execution-result-return-delaration",entityType:r.ValueDescriptor},Ap={id:"b761acec-0755-4582-a68b-76267038bbe1",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Dp},Sp={type:r.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityId:Ie.Parallel,entityType:r.ActionDescriptor},Co={id:"parallel-execution-list-of-functions-argument-declaration",type:r.ValueDescriptor,version:1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",dataType:Pp,required:!0,index:0,parent:Sp,parentRelationType:C.FixedArguments},Op={type:r.GenericReference,id:"caac2bc7-c23c-4f01-9581-a515c2e4637f",entityId:Ie.Parallel,entityType:r.ActionDescriptor},Bo={id:"parallel-execution-result-return-delaration",type:r.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:Ap,required:!0,index:0,parent:Op,parentRelationType:C.FixedReturns},Cp={type:r.GenericReference,id:"parallel-execution-operation-error-parent-ref",entityId:Ie.Parallel,entityType:r.ActionDescriptor},Bp={id:"parallel-execution-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Cp,parentRelationType:C.ReturnedError},$t={id:Ie.Parallel,type:r.ActionDescriptor,description:"Execute a list of actions in parallel",version:1,name:Ie.Parallel,fixedArguments:[Co],fixedReturns:[Bo],argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,error:Bp,parent:null};var wp=(n=>(n.MillisecondsNumber="wait-milliseconds-number-argument-declaration",n))(wp||{}),_p=(n=>(n.Error="wait-operation-error-return-delaration",n))(_p||{});const Mp={type:r.GenericReference,id:"3bd4aeb2-e3b7-4120-b289-011ebb03dba5",entityType:r.ValueDescriptor,entityId:"wait-milliseconds-number-argument-declaration"},Np={id:"wait-milliseconds-number-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Mp},$p={type:r.GenericReference,id:"a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",entityType:r.ActionDescriptor,entityId:Ie.Wait},Un={id:"wait-milliseconds-number-argument-declaration",type:r.ValueDescriptor,version:1,name:"Milliseconds to wait",description:"The amount of milliseconds to wait before calling the next entity",dataType:Np,required:!0,index:0,parent:$p,parentRelationType:C.FixedArguments},Vp={type:r.GenericReference,id:"wait-operation-error-parent-ref",entityId:Ie.Wait,entityType:r.ActionDescriptor},Lp={id:"wait-operation-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Vp,parentRelationType:C.ReturnedError},ot={id:Ie.Wait,type:r.ActionDescriptor,description:"Wait for the given amount of milliseconds before calling the next entity",version:1,name:Ie.Wait,fixedArguments:[Un],fixedReturns:[],error:Lp,argumentsType:L.Fixed,returnsType:L.None,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var Gp=(n=>(n.ListOfFunctions="sequential-execution-list-of-functions-argument-declaration",n))(Gp||{}),Fp=(n=>(n.ListOfExecutionResults="sequential-execution-result-return-delaration",n.Error="sequential-execution-error-return-delaration",n))(Fp||{});const Up={id:"sequential-execution-list-of-functions-blueprint-id",type:r.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:L.Dynamic,dynamicArgumentTypes:null,fixedArguments:[],returnsType:L.Dynamic,dynamicReturnTypes:null,fixedReturns:[],error:null,parent:null},xp={type:r.GenericReference,id:"parallel-execution-list-of-functions-argument-declaration-id",entityId:"sequential-execution-list-of-functions-argument-declaration",entityType:r.ValueDescriptor},jp={id:"sequential-execution-list-of-functions-argument-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Up,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:xp},kp={type:r.GenericReference,id:"sequential-execution-list-of-execution-results-return-declaration-id",entityId:"sequential-execution-result-return-delaration",entityType:r.ValueDescriptor},qp={id:"sequential-execution-list-of-execution-results-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,asType:!1,isList:!0,isNullable:!1,defaultValue:null,constant:!1,parent:kp},Jp={type:r.GenericReference,id:"parallel-execution-operation-list-of-functions-argument-parent-ref",entityId:Ie.Sequential,entityType:r.ActionDescriptor},wo={id:"sequential-execution-list-of-functions-argument-declaration",type:r.ValueDescriptor,version:1,name:"Actions to execute",description:"A value, of a list of actions to be executed in parallel",dataType:jp,required:!0,index:0,parent:Jp,parentRelationType:C.FixedArguments},Wp={type:r.GenericReference,id:"parallel-execution-operation-list-of-execution-results-return-parent-ref",entityId:Ie.Sequential,entityType:r.ActionDescriptor},_o={id:"sequential-execution-result-return-delaration",type:r.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:qp,required:!0,index:0,parent:Wp,parentRelationType:C.FixedReturns},Hp={type:r.GenericReference,id:"sequential-execution-operation-error-parent-ref",entityId:Ie.Sequential,entityType:r.ActionDescriptor},Yp={id:"sequential-execution-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Hp,parentRelationType:C.ReturnedError},tn={id:Ie.Sequential,type:r.ActionDescriptor,description:"Execute a list of actions one after the other",version:1,name:Ie.Sequential,fixedArguments:[wo],fixedReturns:[_o],error:Yp,returnsType:L.Fixed,argumentsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},zp={[Ie.Parallel]:$t,[Ie.Wait]:ot,[Ie.Sequential]:tn};var Zp=(n=>(n.EntityToInstanciate="entity-to-instanciate-argument-declaration",n))(Zp||{}),Xp=(n=>(n.Error="create-new-instance-error-return-delaration",n))(Xp||{});const Qp={type:r.GenericReference,id:"entity-to-instanciate-argument-declaration-ref",entityType:r.ValueDescriptor,entityId:"entity-to-instanciate-argument-declaration"},Kp={id:"entity-to-instanciate-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!0,isNullable:!1,defaultValue:null,constant:!1,parent:Qp},ey={type:r.GenericReference,id:"create-new-instance-operation-ref",entityType:r.ActionDescriptor,entityId:Ze.CreateNewInstance},ty={id:"entity-to-instanciate-argument-declaration",type:r.ValueDescriptor,version:1,name:"Entity to create a new copy of",description:"The entity of which a new copy will to be created",dataType:Kp,required:!0,parentRelationType:C.FixedArguments,index:0,parent:ey},ny={type:r.GenericReference,id:"create-new-instance-output-entity-declaration-parent-ref",entityId:Ze.CreateNewInstance,entityType:r.ActionDescriptor},ry={parentRelationType:C.FixedReturns,id:"create-new-instance-output-entity-declaration",type:r.ValueDescriptor,version:1,dataType:null,name:"Created entity",description:"The entity that was created",parent:ny,required:!0,index:0},iy={type:r.GenericReference,id:"create-new-instance-error-parent-ref",entityId:Ze.CreateNewInstance,entityType:r.ActionDescriptor},ay={parentRelationType:C.FixedReturns,id:"create-new-instance-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:iy},Or={id:Ze.CreateNewInstance,type:r.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:Ze.CreateNewInstance,fixedArguments:[ty],fixedReturns:[ry],error:ay,argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null};var sy=(n=>(n.EntityToMatchType="validate-data-operation-entity-to-match-type-argument-declaration",n.DataToValidate="validate-data-operation-data-to-validate-argument-declaration",n))(sy||{}),oy=(n=>(n.Error="validate-data-error-return-delaration",n.OutputEntity="validate-data-output-entity-declaration",n))(oy||{});const ly={type:r.GenericReference,id:"validate-data-operation-data-to-validate-argument-declaration-ref",entityType:r.ValueDescriptor,entityId:"validate-data-operation-data-to-validate-argument-declaration"},cy={id:"validate-data-operation-data-to-validate-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:ly},dy={type:r.GenericReference,id:"validate-data-operation-data-to-validate-argument-parent-ref",entityType:r.ActionDescriptor,entityId:Ze.Validate},uy={id:"validate-data-operation-data-to-validate-argument-declaration",type:r.ValueDescriptor,version:1,name:"Data to validate",description:"The value to validate against the given entity type",dataType:cy,required:!0,parentRelationType:C.FixedArguments,index:0,parent:dy},py={type:r.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-declaration-ref",entityType:r.ValueDescriptor,entityId:"validate-data-operation-entity-to-match-type-argument-declaration"},yy={id:"validate-data-operation-entity-to-match-type-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!0,isNullable:!1,defaultValue:null,constant:!1,parent:py},hy={type:r.GenericReference,id:"validate-data-operation-entity-to-match-type-argument-parent-ref",entityType:r.ActionDescriptor,entityId:Ze.Validate},fy={id:"validate-data-operation-entity-to-match-type-argument-declaration",type:r.ValueDescriptor,version:1,name:"Entity to match",description:"The entity to match the data against",dataType:yy,required:!0,index:0,parentRelationType:C.FixedArguments,parent:hy},my={type:r.GenericReference,id:"validate-data-operation-output-entity-declaration-parent-ref",entityId:Ze.Validate,entityType:r.ActionDescriptor},Ty={id:"validate-data-output-entity-declaration",type:r.ValueDescriptor,version:1,dataType:null,name:"Output value",description:"A value with the type of the entity that was validated",parent:my,required:!0,index:0,parentRelationType:C.FixedReturns},Ey={type:r.GenericReference,id:"wait-operation-error-parent-ref",entityId:Ze.Validate,entityType:r.ActionDescriptor},Ry={id:"validate-data-error-return-delaration",type:r.ValueDescriptor,version:1,name:"Error",description:"An error that occurred during the operation.",dataType:null,required:!0,index:1,parent:Ey,parentRelationType:C.ReturnedError},xn={id:Ze.Validate,type:r.ActionDescriptor,description:"Validates the given data to see if it matches the structure of a given type/entity",version:1,name:Ze.Validate,fixedArguments:[fy,uy],fixedReturns:[Ty],error:Ry,argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},by={[Ze.CreateNewInstance]:Or,[Ze.Validate]:xn};var Mo=(n=>(n.ActionOngoingProcessOutputValue="action-ongoing-process-output-value-descriptor-id",n))(Mo||{});const Ve={[r.ValueDescriptor]:{"action-ongoing-process-output-value-descriptor-id":{id:"action-ongoing-process-output-value-descriptor-id",dataType:{id:"process-output-value-data-type-id"}}},[r.BuiltInBaseEntity]:{[_.KEY_VALUE_PARAM]:{id:_.KEY_VALUE_PARAM},[_.HTTP_ENDPOINT]:{id:_.HTTP_ENDPOINT,properties:{method:"http-endpoint-built-in-method-property-id",path:"http-endpoint-built-in-path-property-id",cors:"http-endpoint-built-in-cors-property-id"}},[_.PERSISTED_ENTITY]:{id:_.PERSISTED_ENTITY,properties:{database:"persisted-built-in-base-entity-database-property-id",identifier:"persisted-built-in-base-entity-identifier-property-id"}},[_.RELATIONAL_DATABASE]:{id:_.RELATIONAL_DATABASE,properties:{identifier:"relational-database-built-in-base-entity-identifier-property-id",username:"relational-database-built-in-base-entity-username-property-id",password:"relational-database-built-in-base-entity-password-property-id",minSize:"relational-database-built-in-base-entity-min-size-property-id",default:"relational-database-built-in-base-entity-default-property-id"}},[_.CRON_JOB]:{id:_.CRON_JOB,properties:{expression:"cron-job-built-in-base-entity-expression-property-id"}}},[r.Operation]:{[ge.Join]:{id:ge.Join,inputs:{first:"join-string-first-string-input-id",second:"join-string-second-string-input-id"},outputs:{result:"join-string-result-string-return-delaration-id",error:"join-string-error-return-delaration-id"}},[Ye.HttpRequest]:{id:Ye.HttpRequest,inputs:{url:"http-request-url-input-id",query:"http-request-query-input-id",method:"http-request-method-input-id",headers:"http-request-headers-input-id",body:"http-request-body-string-input-id"},outputs:{code:"http-response-code-return-delaration-id",body:"http-response-body-return-delaration-id",headers:"http-response-headers-return-delaration-id",error:"http-request-error-return-delaration-id"}}},[r.Loop]:{[je.List]:{id:je.List,inputs:{list:"iterate-over-list-loop-list-input-id"},outputs:{results:"iterate-over-list-loop-output-id"}},[je.ManualFlow]:{id:je.ManualFlow,inputs:{},outputs:{results:"manual-flow-loop-output-id"}}},[r.Condition]:{[Ae.MoreThanOrEqual]:{id:Ae.MoreThanOrEqual,inputs:{leftHand:"condition-more-than-or-equal-left-hand-input-id",rightHand:"condition-more-than-or-equal-right-hand-input-id"}},[Ct.NotEmpty]:{id:Ct.NotEmpty,inputs:{leftHand:"condition-not-empty-input-id"}}},[r.GlobalEvent]:{[Kt.PROJECT_PUBLICATION_COMPLETED]:{id:Kt.PROJECT_PUBLICATION_COMPLETED}}},Je=Ve[r.Operation]["base-http-request"],vy={type:r.GenericReference,id:"d87cf943-57e1-4d19-9f05-190fa8c8ebc4",entityType:r.DataType,entityId:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3"},gy={id:"http-request-url-default-value-id",type:r.PrimitiveValue,version:1,value:"https://some-url.com",name:g.String,valueAsType:null,parent:vy,autogeneration:null},Iy={type:r.GenericReference,id:"aed50d73-eab5-42ce-b00e-7f5c45a9026f",entityId:Je.inputs.url,entityType:r.ValueDescriptor},Py={id:"0deb4ef7-d739-4ddc-a4d6-50bd6fababe3",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:gy,constant:!1,parent:Iy},Dy={type:r.GenericReference,id:"c3145af6-3387-464a-8887-272e483c856d",entityId:Je.inputs.query,entityType:r.ValueDescriptor},Ay={id:"2a5ba737-6335-4cc4-a2c0-16dca4052fac",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Dy},Sy={type:r.GenericReference,id:"075556b7-e468-48f7-8485-7159eaf389b2",entityType:r.DataType,entityId:"6df7ec2b-5dbd-44af-896b-17b314e88560"},Oy={id:"http-request-method-default-value-id",type:r.PrimitiveValue,version:1,value:"GET",name:g.Enum,valueAsType:null,parent:Sy,autogeneration:null},Cy={type:r.GenericReference,id:"aed647c8-a1b5-4cfc-9a3d-97887a567a80",entityId:Je.inputs.method,entityType:r.ValueDescriptor},By={id:"6df7ec2b-5dbd-44af-896b-17b314e88560",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Rn,isList:!1,asType:!1,isNullable:!1,defaultValue:Oy,options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],constant:!1,parent:Cy},wy={type:r.GenericReference,id:"77203dfa-d2f6-4804-9556-e1cce46228f3",entityId:Je.inputs.headers,entityType:r.ValueDescriptor},_y={id:"2c8a2a07-69c6-40ad-b5c9-f0dc4d5955ce",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Xe,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:wy},My={type:r.GenericReference,id:"03db68a0-7ab6-4c6a-85b6-f4b95ebb53ff",entityId:Je.inputs.body,entityType:r.ValueDescriptor},Ny={id:"0397876c-ed54-4ee9-85a4-04fd16dad973",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Xe,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:My},$y={type:r.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",entityType:r.ValueDescriptor,entityId:Je.outputs.code},Vy={id:"45e6d0bc-0c0e-4059-a7a1-6bee925d73d0",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:$y},Ly={type:r.GenericReference,id:"2baaa53a-9aef-4bd1-b06d-967c17b7b627",entityType:r.DataType,entityId:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe"},Gy={type:r.GenericReference,id:"69f34d6c-c686-4165-b6ff-70dae8e1778b",entityType:r.ValueDescriptor,entityId:Je.outputs.headers},Fy={id:"dac63bfa-640d-4f4e-ba0f-86c2401bcfbe",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Xe,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"http-response-headers-default-value-id",type:r.PrimitiveValue,version:1,value:{},name:g.JSON,parent:Ly,valueAsType:null,autogeneration:null},constant:!1,parent:Gy},Uy={type:r.GenericReference,id:"744334e0-5135-4214-85d0-809437cb620b",entityType:r.DataType,entityId:"05fc1a5d-151a-479a-9c4e-4063f3456177"},xy={type:r.GenericReference,id:"0e0e20df-1a46-432c-ba01-fd96508a6a61",entityType:r.ValueDescriptor,entityId:Je.outputs.body},jy={id:"05fc1a5d-151a-479a-9c4e-4063f3456177",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Xe,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"http-response-body-default-value-id",type:r.PrimitiveValue,version:1,value:{},name:g.JSON,parent:Uy,valueAsType:null,autogeneration:null},constant:!1,parent:xy},ky={type:r.GenericReference,id:"26911792-f707-4bf1-b6f7-03d04a84232c",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},ba={id:Je.inputs.method,type:r.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:By,required:!1,index:0,parentRelationType:C.FixedArguments,parent:ky},qy={type:r.GenericReference,id:"eee0c501-0ae6-4448-b914-aada76d63163",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},va={id:Je.inputs.url,type:r.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:Py,required:!1,index:1,parentRelationType:C.FixedArguments,parent:qy},Jy={type:r.GenericReference,id:"670091a4-21b1-4223-ad4c-b6dada0aec49",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},No={id:Je.inputs.query,type:r.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:Ay,required:!1,index:2,parentRelationType:C.FixedArguments,parent:Jy},Wy={type:r.GenericReference,id:"85aad3eb-22fe-45f9-b68c-1dc7061f41e0",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},ga={id:Je.inputs.headers,type:r.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:_y,required:!1,index:3,parent:Wy,parentRelationType:C.FixedArguments},Hy={type:r.GenericReference,id:"c3e2a4af-9b84-4574-8b30-5044ffc51776",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},Ia={id:Je.inputs.body,type:r.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:Ny,required:!1,index:4,parentRelationType:C.FixedArguments,parent:Hy},Yy={type:r.GenericReference,id:"92e04dc7-2145-4a31-908e-03810f7235e8",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},$o={id:Je.outputs.code,type:r.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:Vy,required:!0,index:0,parentRelationType:C.FixedReturns,parent:Yy},zy={type:r.GenericReference,id:"86aca556-bbf1-4679-9909-31db61b288e2",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},Pa={parentRelationType:C.FixedReturns,id:Je.outputs.headers,type:r.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:Fy,required:!0,index:1,parent:zy},Zy={type:r.GenericReference,id:"ccf3d1be-04e4-4d03-99fd-5bc1e1919f90",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},yi={parentRelationType:C.FixedReturns,id:Je.outputs.body,type:r.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:jy,required:!0,index:2,parent:Zy},Xy={type:r.GenericReference,id:"21487ffc-82b9-473d-bc19-6e7d7c480ed7",entityType:r.ActionDescriptor,entityId:Ye.HttpRequest},Qy={type:r.GenericReference,id:"ad69861b-32f7-4461-b7f7-aa84a82578d9",entityType:r.ValueDescriptor,entityId:Je.outputs.error},Ky={id:"5da68b15-57bc-40c1-b79f-a9075e0f22c1",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Xe,isList:!1,asType:!1,isNullable:!1,constant:!1,defaultValue:null,parent:Qy},Vo={parentRelationType:C.ReturnedError,id:Je.outputs.error,type:r.ValueDescriptor,description:"Http request error, if any. Contains a payload describing what went wrong.",version:1,name:"Error",dataType:Ky,required:!0,index:0,parent:Xy},hi={type:r.ActionDescriptor,id:Ye.HttpRequest,name:Ye.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:[ba,va,No,ga,Ia],fixedReturns:[$o,Pa,yi],argumentsType:L.Fixed,returnsType:L.Fixed,error:Vo,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},eh={[Ye.HttpRequest]:hi},Kg={...pu,...Qd,...Rp,...zp,...by,...eh},th=Ve[r.Loop]["list-loop"],nh={id:"iterate-over-list-loop-return-declaration-parent-ref-id",type:r.GenericReference,entityId:je.List,entityType:r.ActionDescriptor},rh={id:th.outputs.results,type:r.ValueDescriptor,version:1,name:"Results",description:"List of results from the loop. One item in the list for each iteration of the loop.",dataType:null,required:!0,index:0,parent:nh,parentRelationType:C.FixedReturns},ih={id:"iterate-over-list-loop-list-argument-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"iterate-over-list-loop-list-argument-declaration-id",entityType:r.ArgumentDeclaration},ah={id:"iterate-over-list-loop-list-argument-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!0,isNullable:!1,constant:!1,entity:null,asType:!1,defaultValue:null,parent:ih},sh={id:"iterate-over-list-loop-list-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:je.List,entityType:r.ActionDescriptor},oh={id:th.inputs.list,type:r.ValueDescriptor,version:1,name:"List",description:"The list to iterate over",required:!0,dataType:ah,index:0,parent:sh,parentRelationType:C.FixedArguments},jn={id:je.List,type:r.ActionDescriptor,version:1,name:je.List,description:"Iterates over a list of entities",fixedArguments:[oh],fixedReturns:[rh],error:null,argumentsType:L.Fixed,returnsType:L.Fixed,dynamicArgumentTypes:null,dynamicReturnTypes:null,parent:null},eI=Ve[r.Loop]["list-loop"],lh={id:"manual-flow-loop-previous-iterations-results-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:"manual-flow-loop-previous-iterations-results-declaration-id",entityType:r.ReturnDeclaration},ch={id:"manual-flow-loop-previous-iterations-results-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!0,isNullable:!1,constant:!1,entity:null,asType:!1,defaultValue:null,parent:lh},dh={id:"manual-flow-loop-previous-iterations-results-declaration-parent-ref-id",type:r.GenericReference,entityId:je.ManualFlow,entityType:r.ActionDescriptor},uh={id:eI.outputs.results,type:r.ValueDescriptor,version:1,name:"Results",description:"List of results from the loop. One item in the list for each iteration of the loop.",dataType:ch,required:!0,index:1,parentRelationType:C.FixedReturns,parent:dh},Lo={id:je.ManualFlow,type:r.ActionDescriptor,version:1,name:je.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:[uh],argumentsType:L.None,returnsType:L.Fixed,error:null,parent:null},Da=Ve[r.BuiltInBaseEntity][_.KEY_VALUE_PARAM],tI={id:"key-value-param-built-in-base-entity-name-property-data-type-ref",type:r.GenericReference,entityId:"key-value-param-built-in-base-entity-name-property-data-type",entityType:r.DataType},ph={id:"key-value-param-built-in-base-entity-name-property-ref",type:r.GenericReference,entityId:"key-value-param-built-in-base-entity-name-property",entityType:r.Property},nI={id:"key-value-param-built-in-base-entity-name-property-data-type",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:F,asType:!1,defaultValue:null,parent:ph},yh={id:"key-value-param-built-in-base-entity-name-property-parent-ref",type:r.GenericReference,entityId:Da.id,entityType:r.BuiltInBaseEntity},hh={required:!0,id:"key-value-param-built-in-base-entity-name-property",name:"Parameter name",version:1,type:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:nI,description:"The name of the path parameter",parent:yh},rI={id:"key-value-param-built-in-base-entity-value-property-data-type-ref",type:r.GenericReference,entityId:"key-value-param-built-in-base-entity-value-property-data-type",entityType:r.DataType},fh={id:"key-value-param-built-in-base-entity-value-property-ref",type:r.GenericReference,entityId:"key-value-param-built-in-base-entity-value-property",entityType:r.Property},iI={id:"key-value-param-built-in-base-entity-value-property-data-type",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:F,asType:!1,defaultValue:null,parent:fh},mh={id:"key-value-param-built-in-base-entity-value-property-parent-ref",type:r.GenericReference,entityId:Da.id,entityType:r.BuiltInBaseEntity},Th={required:!0,id:"key-value-param-built-in-base-entity-value-property",name:"Parameter Value",version:1,type:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:1,dataType:iI,description:"The value of the path parameter",parent:mh},Aa={id:Da.id,version:1,description:'An entity with a "name" and "value" property representing a breakdown of a key-value pair.',name:Da.id,type:r.BuiltInBaseEntity,abstract:!1,static:!1,interactive:!0,properties:[hh,Th],abstractMethods:[],methods:[],extends:[]},fi=Ve[r.BuiltInBaseEntity][_.HTTP_ENDPOINT].properties,Eh={id:"endpointBuiltInCorsPropertyDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointBuiltInCorsPropertyDataType"},Rh={id:"endpointBuiltInCorsPropertyRef",type:r.GenericReference,entityType:r.Property,entityId:fi.cors},bh={id:"endpointBuiltInCorsPropertyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"endpointBuiltInCorsPropertyDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:g.JSON,value:["*"],parent:Eh,autogeneration:null,valueAsType:null},parent:Rh},vh={id:"endpointBuiltInBaseEntityRef",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},gh={required:!0,id:fi.cors,name:"Allowed origins",version:1,type:r.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:bh,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:vh},Ih={id:"endpointBuiltInPathPropertyDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointBuiltInPathPropertyDataType"},Ph={id:"endpointBuiltInPathPropertyRef",type:r.GenericReference,entityType:r.Property,entityId:fi.path},Dh={id:"endpointBuiltInPathPropertyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"endpointBuiltInPathPropertyDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:g.String,value:"/",parent:Ih,autogeneration:null,valueAsType:null},parent:Ph},Ah={id:"endpointBuiltInBaseEntityRefTwo",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},Go={required:!0,id:fi.path,name:"Path",version:1,type:r.Property,private:!1,abstract:!0,implements:null,static:!0,index:1,dataType:Dh,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:Ah},Sh={id:"endpointBuiltInMethodPropertyDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointBuiltInMethodPropertyDataType"},Oh={id:"endpointBuiltInMethodPropertyRef",type:r.GenericReference,entityType:r.Property,entityId:"endpointBuiltInMethodProperty"},Ch={id:"endpointBuiltInMethodPropertyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Rn,isList:!0,isNullable:!1,constant:!0,asType:!1,defaultValue:{id:"endpointBuiltInMethodPropertyDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,value:"GET",name:g.Enum,parent:Sh,autogeneration:null,valueAsType:null},options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:Oh},Bh={id:"endpointBuiltInBaseEntityRefThree",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},Fo={required:!0,id:fi.method,name:"Method",version:1,type:r.Property,private:!1,index:2,implements:null,abstract:!0,static:!0,dataType:Ch,description:"The HTTP method that this endpoint will respond to, for example GET, POST, PUT, DELETE, etc.",parent:Bh},wh={id:"endpointRequestHeadersVariableDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointRequestHeadersVariableDataType"},_h={id:"endpointRequestHeadersArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"endpointRequestHeadersArgumentDeclaration"},Mh={id:"endpointRequestHeadersVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Xe,asType:!1,defaultValue:{id:"endpointRequestHeadersVariableDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:g.JSON,value:{},parent:wh,autogeneration:null,valueAsType:null},parent:_h},Nh={id:"endpointRequestBodyArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"endpointRequestBodyArgumentDeclaration"},$h={id:"endpointRequestBodyVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Xe,defaultValue:null,parent:Nh},Vh={id:"endpointRequestQueryParamsVariableDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointRequestQueryParamsVariableDataType"},Lh={id:"endpointRequestQueryParamsArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"endpointRequestQueryParamsArgumentDeclaration"},Gh={id:"endpointRequestQueryParamsVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,asType:!1,entity:Aa,defaultValue:{id:"endpointRequestQueryParamsVariableDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:g.JSON,value:[],parent:Vh,autogeneration:null,valueAsType:null},parent:Lh},Fh={id:"endpointPathParamsVariableDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointPathParamsVariableDataType"},Uh={id:"endpointPathParamsArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"endpointPathParamsArgumentDeclaration"},xh={id:"endpointPathParamsVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Aa,asType:!1,defaultValue:{id:"endpointPathParamsVariableDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:g.JSON,value:[],parent:Fh,autogeneration:null,valueAsType:null},parent:Uh},jh={id:"endpointReachedTriggerActionDescriptorRef",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},kh={id:"endpointRequestHeadersArgumentDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:r.ValueDescriptor,name:"Request headers",dataType:Mh,required:!0,index:0,parentRelationType:C.FixedArguments,parent:jh},qh={id:"endpointReachedTriggerActionDescriptorRefTwo",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Jh={id:"endpointPathParamsArgumentDeclaration",type:r.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:xh,required:!0,index:1,parentRelationType:C.FixedArguments,parent:qh},Wh={id:"endpointReachedTriggerActionDescriptorRefThree",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},Hh={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:r.ValueDescriptor,name:"Request query params",dataType:Gh,required:!0,index:2,parentRelationType:C.FixedArguments,parent:Wh},Yh={id:"endpointReachedTriggerActionDescriptorRefFour",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReachedTriggerActionDescriptor"},zh={id:"endpointRequestBodyArgumentDeclaration",version:1,description:"The main data payload of the request.",type:r.ValueDescriptor,name:"Request body",dataType:$h,index:3,required:!0,parentRelationType:C.FixedArguments,parent:Yh},Zh={id:"endpointResponseCodeReturnDeclarationRef",type:r.GenericReference,entityType:r.ReturnDeclaration,entityId:"endpointResponseCodeReturnDeclaration"},Xh={id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:Zh},Qh={id:"endpointReturnStatementRef",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReturnStatement"},Kh={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:r.ValueDescriptor,name:"Response code",dataType:Xh,required:!0,index:0,parentRelationType:C.FixedReturns,parent:Qh},ef={id:"endpointResponseHeadersDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"endpointResponseHeadersDataType"},tf={id:"endpointResponseHeadersReturnDeclarationRef",type:r.GenericReference,entityType:r.ReturnDeclaration,entityId:"endpointResponseHeadersReturnDeclaration"},nf={id:"endpointResponseHeadersDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Xe,asType:!1,defaultValue:{id:"endpointResponseHeadersDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:g.JSON,value:{},parent:ef,autogeneration:null,valueAsType:null},parent:tf},rf={id:"endpointReturnStatementRefTwo",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReturnStatement"},af={id:"endpointResponseHeadersReturnDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:r.ValueDescriptor,name:"Response headers",dataType:nf,required:!1,index:1,parentRelationType:C.FixedReturns,parent:rf},sf={id:"endpointResponseBodyReturnDeclarationRef",type:r.GenericReference,entityType:r.ReturnDeclaration,entityId:"endpointResponseBodyReturnDeclaration"},of={id:"endpointResponseBodyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Xe,defaultValue:null,parent:sf},lf={id:"endpointReturnStatementRefThree",type:r.GenericReference,entityType:r.ActionDescriptor,entityId:"endpointReturnStatement"},cf={id:"endpointResponseBodyReturnDeclaration",version:1,description:"The main data payload of the response.",type:r.ValueDescriptor,name:"Response body",dataType:of,required:!1,index:2,parentRelationType:C.FixedReturns,parent:lf},df={id:"endpointBuiltInBaseEntityRefFour",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},Uo={id:"endpointReachedTriggerActionDescriptor",type:r.ActionDescriptor,version:1,name:"Endpoint reached",description:"Fired when the endpoint is reached.",argumentsType:L.Fixed,dynamicArgumentTypes:null,fixedArguments:[kh,Jh,Hh,zh],returnsType:L.Fixed,fixedReturns:[Kh,af,cf],error:null,dynamicReturnTypes:null,parent:df},Sa={id:_.HTTP_ENDPOINT,version:1,description:"An HTTP endpoint that can be reached by a client from the internet.",name:_.HTTP_ENDPOINT,type:r.BuiltInBaseEntity,interactive:!1,abstract:!0,static:!0,properties:[gh,Go,Fo],abstractMethods:[Uo],extends:[],methods:[]},jt=Ve[r.BuiltInBaseEntity].BUILT_IN_RELATIONAL_DATABASE_ENTITY,uf={id:"relational-database-built-in-base-entity-identifier-property-data-type-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-identifier-property-data-type-id",entityType:r.DataType},pf={id:"relational-database-built-in-base-entity-identifier-property-ref-id",type:r.GenericReference,entityId:jt.properties.identifier,entityType:r.Property},aI={id:"relational-database-built-in-base-entity-identifier-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-identifier-property-default-value-id",type:r.PrimitiveValue,version:1,name:g.String,value:null,parent:uf,autogeneration:{type:xe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:pf},Cr={id:"relational-database-built-in-base-entity-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},Oa={required:!0,id:jt.properties.identifier,name:"Identifier name",version:1,type:r.Property,private:!1,abstract:!0,static:!0,implements:null,index:0,dataType:aI,description:"The name of the main database inside of the server instance where the data will be stored.",parent:Cr},sI={id:"relational-database-built-in-base-entity-username-property-data-type-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-username-property-data-type-idd",entityType:r.DataType},yf={id:"relational-database-built-in-base-entity-username-property-ref-id",type:r.GenericReference,entityId:jt.properties.username,entityType:r.Property},oI={id:"relational-database-built-in-base-entity-username-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-username-property-default-value-id",type:r.PrimitiveValue,version:1,name:g.String,value:"postgres",parent:{id:"relational-database-built-in-base-entity-username-property-data-type-default-value-parent-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-username-property-data-type-id",entityType:r.DataType},autogeneration:null,valueAsType:null},parent:yf},Ca={required:!0,id:jt.properties.username,name:"Username",version:1,type:r.Property,private:!1,abstract:!0,static:!0,implements:null,index:1,dataType:oI,description:"The username that will be used to connect to the database.",parent:Cr},lI={id:"relational-database-built-in-base-entity-password-property-data-type-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-password-property-data-type-id",entityType:r.DataType},hf={id:"relational-database-built-in-base-entity-password-property-ref-id",type:r.GenericReference,entityId:jt.properties.password,entityType:r.Property},cI={id:"relational-database-built-in-base-entity-password-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:hf},Ba={required:!0,id:jt.properties.password,name:"Password",version:1,type:r.Property,private:!1,abstract:!0,static:!0,implements:null,index:2,dataType:cI,description:"The password that will be used to connect to the database.",parent:Cr},ff={id:"relational-database-built-in-base-entity-min-size-property-data-type-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-min-size-property-data-type-id",entityType:r.DataType},mf={id:"relational-database-built-in-base-entity-min-size-property-ref-id",type:r.GenericReference,entityId:jt.properties.minSize,entityType:r.Property},dI={id:"relational-database-built-in-base-entity-min-size-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Ce,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-min-size-property-default-value-id",type:r.PrimitiveValue,version:1,name:g.Number,value:6,parent:ff,autogeneration:null,valueAsType:null},parent:mf},wa={required:!0,id:jt.properties.minSize,name:"Minimum GB size",version:1,type:r.Property,private:!1,abstract:!0,static:!0,implements:null,index:3,dataType:dI,description:"The minimum size of the database in GB.",parent:Cr},Tf={id:"relational-database-built-in-base-entity-default-property-data-type-ref-id",type:r.GenericReference,entityId:"relational-database-built-in-base-entity-default-property-data-type-id",entityType:r.DataType},Ef={id:"relational-database-built-in-base-entity-default-property-ref-id",type:r.GenericReference,entityId:jt.properties.default,entityType:r.Property},uI={id:"relational-database-built-in-base-entity-default-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Fn,asType:!1,defaultValue:{id:"relational-database-built-in-base-entity-default-property-default-value-id",type:r.PrimitiveValue,version:1,name:g.Boolean,value:!1,parent:Tf,autogeneration:null,valueAsType:null},parent:Ef},Rf={required:!0,id:jt.properties.default,name:"Default",version:1,type:r.Property,private:!1,abstract:!0,static:!0,implements:null,index:4,dataType:uI,description:"If true, this database will be the default database for the server instance and all the new entities.",parent:Cr},bn={id:_.RELATIONAL_DATABASE,version:1,description:"This entity provisions a relational database in the cloud.",name:_.RELATIONAL_DATABASE,type:r.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[Oa,Ca,Ba,wa,Rf],abstractMethods:[],methods:[],extends:[]},bf={type:r.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",entityType:r.BuiltInBaseEntity,id:gt.DeletePersistedEntity},xo={type:r.FunctionDeclaration,id:gt.DeletePersistedEntity,name:gt.DeletePersistedEntity,description:"Permanently deletes the current copy of an entity from the database",version:1,parent:bf,inputs:[],calls:[],implements:null,collapsed:!1,returnStatements:[],index:0,private:!1,x:0,y:0},vf={type:r.GenericReference,entityId:"persisted-built-in-base-entity-ref-id",entityType:r.BuiltInBaseEntity,id:gt.SoftDeletePersistedEntity},gf={type:r.FunctionDeclaration,id:gt.SoftDeletePersistedEntity,name:gt.SoftDeletePersistedEntity,description:"Designates the entity as deleted, but does not remove it from the database.",version:1,parent:vf,inputs:[],calls:[],implements:null,collapsed:!1,returnStatements:[],index:0,private:!1,x:0,y:0},If=Ve[r.BuiltInBaseEntity][_.PERSISTED_ENTITY].properties,pI={id:"persisted-built-in-base-entity-database-property-data-type-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-database-property-data-type-id",entityType:r.DataType},Pf={id:"persisted-built-in-base-entity-database-property-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-database-property-id",entityType:r.Property},yI={id:"persisted-built-in-base-entity-database-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:bn,asType:!1,defaultValue:null,parent:Pf},Df={id:"persisted-built-in-base-entity-database-property-parent-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},mi={required:!0,id:If.database,name:"Database",version:1,type:r.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:yI,description:"The database that the entity belongs to.",parent:Df},Af={id:"persisted-built-in-base-entity-identifier-property-data-type-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-identifier-property-data-type-id",entityType:r.DataType},Sf={id:"persisted-built-in-base-entity-identifier-property-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-identifier-property-id",entityType:r.Property},hI={id:"persisted-built-in-base-entity-identifier-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:fa,asType:!1,defaultValue:{id:"persisted-built-in-base-entity-identifier-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:g.UUID,value:null,parent:Af,autogeneration:{type:xe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:Sf},Of={id:"persisted-built-in-base-entity-identifier-property-parent-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},Cf={required:!0,id:If.identifier,name:"Identifier",version:1,type:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:hI,description:"Auto-generated unique identifier for the entity, can be used to identify the entity among other entities of the same type.",parent:Of},fI={id:"persisted-built-in-base-entity-deleted-at-property-data-type-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-deleted-at-property-data-type-id",entityType:r.DataType},Bf={id:"persisted-built-in-base-entity-deleted-at-property-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-deleted-at-property-id",entityType:r.Property},wf={id:"persisted-built-in-base-entity-deleted-at-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!0,constant:!1,entity:null,asType:!1,defaultValue:null,parent:Bf},_f={id:"persisted-built-in-base-entity-deleted-at-property-parent-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},Mf={required:!0,id:"persisted-built-in-base-entity-deleted-at-property-id",name:"Deleted at",version:1,type:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:wf,description:"The date and time when the entity was deleted.",parent:_f},mI={id:"persisted-built-in-base-entity-created-at-property-data-type-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-created-at-property-data-type-id",entityType:r.DataType},Nf={id:"persisted-built-in-base-entity-created-at-property-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-created-at-property-id",entityType:r.Property},$f={id:"persisted-built-in-base-entity-created-at-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:null,asType:!1,defaultValue:null,parent:Nf},Vf={id:"persisted-built-in-base-entity-created-at-property-parent-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},Lf={required:!0,id:"persisted-built-in-base-entity-created-at-property-id",name:"Created at",version:1,type:r.Property,private:!1,abstract:!1,implements:null,static:!1,index:0,dataType:$f,description:"The date and time when the entity was created.",parent:Vf},TI={id:"persisted-built-in-base-entity-updated-at-property-data-type-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-updated-at-property-data-type-id",entityType:r.DataType},Gf={id:"persisted-built-in-base-entity-updated-at-property-ref-id",type:r.GenericReference,entityId:"persisted-built-in-base-entity-updated-at-property-id",entityType:r.Property},Ff={id:"persisted-built-in-base-entity-updated-at-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!1,entity:null,asType:!1,defaultValue:null,parent:Gf},Uf={id:"persisted-built-in-base-entity-updated-at-property-parent-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},xf={required:!0,id:"persisted-built-in-base-entity-updated-at-property-id",name:"Updated at",version:1,type:r.Property,private:!1,implements:null,abstract:!1,static:!1,index:0,dataType:Ff,description:"The date and time when the entity was last updated.",parent:Uf},Be={id:_.PERSISTED_ENTITY,version:1,description:"An entity that is permanently stored in the database and can be accessed at any point.",name:_.PERSISTED_ENTITY,type:r.BuiltInBaseEntity,abstract:!0,static:!1,interactive:!0,abstractMethods:[],properties:[mi,Cf,Mf,Lf,xf],methods:[xo,gf],extends:[]},jf={id:"cron-job-triggered-function-declaration-blueprint-parent-ref-id",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},jo={id:"cron-job-triggered-function-declaration-blueprint-id",name:"Cron job triggered",version:1,type:r.ActionDescriptor,argumentsType:L.None,returnsType:L.None,description:"Executed when the cron job is triggered",fixedArguments:[],dynamicArgumentTypes:null,error:null,fixedReturns:[],dynamicReturnTypes:null,parent:jf},kf=Ve[r.BuiltInBaseEntity].BUILT_IN_CRON_JOB_ENTITY,EI={id:"cron-job-built-in-base-entity-expression-property-data-type-ref",type:r.GenericReference,entityId:"cron-job-built-in-base-entity-expression-property-data-type",entityType:r.DataType},qf={id:"cron-job-built-in-base-entity-expression-property-ref",type:r.GenericReference,entityId:kf.properties.expression,entityType:r.Property},RI={id:"cron-job-built-in-base-entity-expression-property-data-type",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:qf},Jf={id:"cron-job-built-in-base-entity-ref",type:r.GenericReference,entityId:_.CRON_JOB,entityType:r.BuiltInBaseEntity},Wf={required:!0,id:kf.properties.expression,name:"Cron expression",version:1,type:r.Property,private:!1,abstract:!0,implements:null,static:!0,index:0,dataType:RI,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:Jf},ko={id:_.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:_.CRON_JOB,type:r.BuiltInBaseEntity,abstract:!0,static:!0,interactive:!1,properties:[Wf],methods:[],abstractMethods:[jo],extends:[]},Hf={type:r.GenericReference,id:"execution-built-in-entity-abort-method-parent-ref-id",entityType:r.BuiltInBaseEntity,entityId:"execution-built-in-entity-id"},qo={id:"execution-built-in-entity-abort-method-id",type:r.FunctionDeclaration,version:1,name:gt.AbortExecution,description:"Aborts the execution of the entity",inputs:[],returnStatements:[],calls:[],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:Hf},Jo={id:_.EXECUTION,type:r.BuiltInBaseEntity,version:1,name:_.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:[qo],abstractMethods:[]},bI=Ve[r.Condition]["not-empty"],Yf={type:r.GenericReference,id:"not-empty-condition-ref",entityType:r.ActionDescriptor,entityId:Ct.NotEmpty},zf={id:bI.inputs.leftHand,type:r.ValueDescriptor,version:1,name:"Value",description:"The value to check if it is not empty",dataType:null,required:!0,parentRelationType:C.FixedArguments,index:0,parent:Yf},kn={type:r.ActionDescriptor,id:Ct.NotEmpty,version:1,name:Ct.NotEmpty,description:"Checks if the value is not empty",parent:null,fixedArguments:[zf],fixedReturns:[],dynamicArgumentTypes:null,dynamicReturnTypes:null,argumentsType:L.Fixed,returnsType:L.None,error:null},Zf={[Ct.NotEmpty]:kn},Xf=Ve[r.Condition]["more-than-or-equal"],Qf={type:r.GenericReference,id:"more-than-or-equal-condition-left-hand-argument-parent-ref",entityType:r.ActionDescriptor,entityId:Ae.MoreThanOrEqual},Kf={id:Xf.inputs.leftHand,type:r.ValueDescriptor,version:1,name:"First value",description:"The first value to compare",dataType:null,required:!0,parentRelationType:C.FixedArguments,index:0,parent:Qf},em={type:r.GenericReference,id:"more-than-or-equal-condition-right-hand-argument-parent-ref",entityType:r.ActionDescriptor,entityId:Ae.MoreThanOrEqual},tm={id:Xf.inputs.rightHand,type:r.ValueDescriptor,version:1,name:"Second value",description:"The second value to compare",dataType:null,required:!0,parentRelationType:C.FixedArguments,index:1,parent:em},Br={type:r.ActionDescriptor,id:Ae.MoreThanOrEqual,version:1,name:Ae.MoreThanOrEqual,description:"Checks if the value is not empty",parent:null,fixedArguments:[Kf,tm],fixedReturns:[],dynamicArgumentTypes:null,dynamicReturnTypes:null,argumentsType:L.Fixed,returnsType:L.None,error:null},nm={[Ae.MoreThanOrEqual]:Br},vI={...Zf,...nm},_a={type:r.ActionDescriptor,id:Kt.PROJECT_PUBLICATION_COMPLETED,version:1,name:Kt.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:L.None,returnsType:L.None,error:null},gI={[Kt.PROJECT_PUBLICATION_COMPLETED]:_a},Wo=Ve[r.ValueDescriptor][Mo.ActionOngoingProcessOutputValue],rm={type:r.GenericReference,id:"182f767f-50e8-4394-ba5f-43e78c232733",entityType:r.ValueDescriptor,entityId:Wo.id},im={id:Wo.dataType.id,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Jo,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:rm},Ho={id:Wo.id,type:r.ValueDescriptor,description:"A value that represents the ongoing process of the parent action",version:1,name:"Process",dataType:im,required:!0,index:0,parent:null,parentRelationType:C.OngoingProcessExecution};var Y;(function(n){n.assertEqual=a=>a;function e(a){}n.assertIs=e;function t(a){throw new Error}n.assertNever=t,n.arrayToEnum=a=>{const s={};for(const o of a)s[o]=o;return s},n.getValidEnumValues=a=>{const s=n.objectKeys(a).filter(u=>typeof a[a[u]]!="number"),o={};for(const u of s)o[u]=a[u];return n.objectValues(o)},n.objectValues=a=>n.objectKeys(a).map(function(s){return a[s]}),n.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},n.find=(a,s)=>{for(const o of a)if(s(o))return o},n.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)}n.joinValues=i,n.jsonStringifyReplacer=(a,s)=>typeof s=="bigint"?s.toString():s})(Y||(Y={}));var Yo;(function(n){n.mergeShapes=(e,t)=>({...e,...t})})(Yo||(Yo={}));const M=Y.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),vn=n=>{switch(typeof n){case"undefined":return M.undefined;case"string":return M.string;case"number":return isNaN(n)?M.nan:M.number;case"boolean":return M.boolean;case"function":return M.function;case"bigint":return M.bigint;case"symbol":return M.symbol;case"object":return Array.isArray(n)?M.array:n===null?M.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?M.promise:typeof Map<"u"&&n instanceof Map?M.map:typeof Set<"u"&&n instanceof Set?M.set:typeof Date<"u"&&n instanceof Date?M.date:M.object;default:return M.unknown}},P=Y.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"]),II=n=>JSON.stringify(n,null,2).replace(/"([^"]+)":/g,"$1:");class ft 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 u=i,p=0;for(;p<o.path.length;){const h=o.path[p];p===o.path.length-1?(u[h]=u[h]||{_errors:[]},u[h]._errors.push(t(o))):u[h]=u[h]||{_errors:[]},u=u[h],p++}}};return a(this),i}static assert(e){if(!(e instanceof ft))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Y.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()}}ft.create=n=>new ft(n);const wr=(n,e)=>{let t;switch(n.code){case P.invalid_type:n.received===M.undefined?t="Required":t=`Expected ${n.expected}, received ${n.received}`;break;case P.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(n.expected,Y.jsonStringifyReplacer)}`;break;case P.unrecognized_keys:t=`Unrecognized key(s) in object: ${Y.joinValues(n.keys,", ")}`;break;case P.invalid_union:t="Invalid input";break;case P.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${Y.joinValues(n.options)}`;break;case P.invalid_enum_value:t=`Invalid enum value. Expected ${Y.joinValues(n.options)}, received '${n.received}'`;break;case P.invalid_arguments:t="Invalid function arguments";break;case P.invalid_return_type:t="Invalid function return type";break;case P.invalid_date:t="Invalid date";break;case P.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(t=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?t=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?t=`Invalid input: must end with "${n.validation.endsWith}"`:Y.assertNever(n.validation):n.validation!=="regex"?t=`Invalid ${n.validation}`:t="Invalid";break;case P.too_small:n.type==="array"?t=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?t=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?t=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?t=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:t="Invalid input";break;case P.too_big:n.type==="array"?t=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?t=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?t=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?t=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?t=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:t="Invalid input";break;case P.custom:t="Invalid input";break;case P.invalid_intersection_types:t="Intersection results could not be merged";break;case P.not_multiple_of:t=`Number must be a multiple of ${n.multipleOf}`;break;case P.not_finite:t="Number must be finite";break;default:t=e.defaultError,Y.assertNever(n)}return{message:t}};let am=wr;function PI(n){am=n}function Ma(){return am}const Na=n=>{const{data:e,path:t,errorMaps:i,issueData:a}=n,s=[...t,...a.path||[]],o={...a,path:s};if(a.message!==void 0)return{...a,path:s,message:a.message};let u="";const p=i.filter(h=>!!h).slice().reverse();for(const h of p)u=h(o,{data:e,defaultError:u}).message;return{...a,path:s,message:u}},DI=[];function w(n,e){const t=Ma(),i=Na({issueData:e,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,t,t===wr?void 0:wr].filter(a=>!!a)});n.common.issues.push(i)}class Qe{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 x;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 Qe.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 x;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 x=Object.freeze({status:"aborted"}),_r=n=>({status:"dirty",value:n}),lt=n=>({status:"valid",value:n}),zo=n=>n.status==="aborted",Zo=n=>n.status==="dirty",Ti=n=>n.status==="valid",Ei=n=>typeof Promise<"u"&&n instanceof Promise;function $a(n,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!i:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(n):i?i.value:e.get(n)}function sm(n,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"?n!==e||!a:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?a.call(n,t):a?a.value=t:e.set(n,t),t}typeof SuppressedError=="function"&&SuppressedError;var V;(function(n){n.errToObj=e=>typeof e=="string"?{message:e}:e||{},n.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(V||(V={}));var Ri,bi;class kt{constructor(e,t,i,a){this._cachedPath=[],this.parent=e,this.data=t,this._path=i,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const om=(n,e)=>{if(Ti(e))return{success:!0,data:e.value};if(!n.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 ft(n.common.issues);return this._error=t,this._error}}};function q(n){if(!n)return{};const{errorMap:e,invalid_type_error:t,required_error:i,description:a}=n;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,u)=>{var p,h;const{message:m}=n;return o.code==="invalid_enum_value"?{message:m??u.defaultError}:typeof u.data>"u"?{message:(p=m??i)!==null&&p!==void 0?p:u.defaultError}:o.code!=="invalid_type"?{message:u.defaultError}:{message:(h=m??t)!==null&&h!==void 0?h:u.defaultError}},description:a}}class H{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 vn(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:vn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Qe,ctx:{common:e.parent.common,data:e.data,parsedType:vn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(Ei(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:vn(e)},s=this._parseSync({data:e,path:a.path,parent:a});return om(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:vn(e)},a=this._parse({data:e,path:i.path,parent:i}),s=await(Ei(a)?a:Promise.resolve(a));return om(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),u=()=>s.addIssue({code:P.custom,...i(a)});return typeof Promise<"u"&&o instanceof Promise?o.then(p=>p?!0:(u(),!1)):o?!0:(u(),!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 Gt({schema:this,typeName:U.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Jt.create(this,this._def)}nullable(){return Dn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Lt.create(this,this._def)}promise(){return Vr.create(this,this._def)}or(e){return Pi.create([this,e],this._def)}and(e){return Di.create(this,e,this._def)}transform(e){return new Gt({...q(this._def),schema:this,typeName:U.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new Bi({...q(this._def),innerType:this,defaultValue:t,typeName:U.ZodDefault})}brand(){return new Ko({typeName:U.ZodBranded,type:this,...q(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new wi({...q(this._def),innerType:this,catchValue:t,typeName:U.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return _i.create(this,e)}readonly(){return Mi.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const AI=/^c[^\s-]{8,}$/i,SI=/^[0-9a-z]+$/,OI=/^[0-9A-HJKMNP-TV-Z]{26}$/,CI=/^[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,BI=/^[a-z0-9_-]{21}$/i,wI=/^[-+]?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)?)??$/,_I=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,MI="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Xo;const NI=/^(?:(?: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])$/,$I=/^(([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})))$/,VI=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,lm="((\\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])))",LI=new RegExp(`^${lm}$`);function cm(n){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return n.precision?e=`${e}\\.\\d{${n.precision}}`:n.precision==null&&(e=`${e}(\\.\\d+)?`),e}function GI(n){return new RegExp(`^${cm(n)}$`)}function dm(n){let e=`${lm}T${cm(n)}`;const t=[];return t.push(n.local?"Z?":"Z"),n.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function FI(n,e){return!!((e==="v4"||!e)&&NI.test(n)||(e==="v6"||!e)&&$I.test(n))}class Vt extends H{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==M.string){const s=this._getOrReturnCtx(e);return w(s,{code:P.invalid_type,expected:M.string,received:s.parsedType}),x}const i=new Qe;let a;for(const s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(a=this._getOrReturnCtx(e,a),w(a,{code:P.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),w(a,{code:P.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,u=e.data.length<s.value;(o||u)&&(a=this._getOrReturnCtx(e,a),o?w(a,{code:P.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):u&&w(a,{code:P.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),i.dirty())}else if(s.kind==="email")_I.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"email",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="emoji")Xo||(Xo=new RegExp(MI,"u")),Xo.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"emoji",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="uuid")CI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"uuid",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="nanoid")BI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"nanoid",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid")AI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"cuid",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid2")SI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"cuid2",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="ulid")OI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"ulid",code:P.invalid_string,message:s.message}),i.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),w(a,{validation:"url",code:P.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),w(a,{validation:"regex",code:P.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),w(a,{code:P.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),w(a,{code:P.invalid_string,validation:{startsWith:s.value},message:s.message}),i.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(a=this._getOrReturnCtx(e,a),w(a,{code:P.invalid_string,validation:{endsWith:s.value},message:s.message}),i.dirty()):s.kind==="datetime"?dm(s).test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{code:P.invalid_string,validation:"datetime",message:s.message}),i.dirty()):s.kind==="date"?LI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{code:P.invalid_string,validation:"date",message:s.message}),i.dirty()):s.kind==="time"?GI(s).test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{code:P.invalid_string,validation:"time",message:s.message}),i.dirty()):s.kind==="duration"?wI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"duration",code:P.invalid_string,message:s.message}),i.dirty()):s.kind==="ip"?FI(e.data,s.version)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"ip",code:P.invalid_string,message:s.message}),i.dirty()):s.kind==="base64"?VI.test(e.data)||(a=this._getOrReturnCtx(e,a),w(a,{validation:"base64",code:P.invalid_string,message:s.message}),i.dirty()):Y.assertNever(s);return{status:i.value,value:e.data}}_regex(e,t,i){return this.refinement(a=>e.test(a),{validation:t,code:P.invalid_string,...V.errToObj(i)})}_addCheck(e){return new Vt({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...V.errToObj(e)})}url(e){return this._addCheck({kind:"url",...V.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...V.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...V.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...V.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...V.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...V.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...V.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...V.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...V.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,...V.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,...V.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...V.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...V.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t==null?void 0:t.position,...V.errToObj(t==null?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...V.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...V.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...V.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...V.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...V.errToObj(t)})}nonempty(e){return this.min(1,V.errToObj(e))}trim(){return new Vt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Vt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Vt({...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}}Vt.create=n=>{var e;return new Vt({checks:[],typeName:U.ZodString,coerce:(e=n==null?void 0:n.coerce)!==null&&e!==void 0?e:!1,...q(n)})};function UI(n,e){const t=(n.toString().split(".")[1]||"").length,i=(e.toString().split(".")[1]||"").length,a=t>i?t:i,s=parseInt(n.toFixed(a).replace(".","")),o=parseInt(e.toFixed(a).replace(".",""));return s%o/Math.pow(10,a)}class gn extends H{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)!==M.number){const s=this._getOrReturnCtx(e);return w(s,{code:P.invalid_type,expected:M.number,received:s.parsedType}),x}let i;const a=new Qe;for(const s of this._def.checks)s.kind==="int"?Y.isInteger(e.data)||(i=this._getOrReturnCtx(e,i),w(i,{code:P.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),w(i,{code:P.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),w(i,{code:P.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="multipleOf"?UI(e.data,s.value)!==0&&(i=this._getOrReturnCtx(e,i),w(i,{code:P.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(i=this._getOrReturnCtx(e,i),w(i,{code:P.not_finite,message:s.message}),a.dirty()):Y.assertNever(s);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,V.toString(t))}gt(e,t){return this.setLimit("min",e,!1,V.toString(t))}lte(e,t){return this.setLimit("max",e,!0,V.toString(t))}lt(e,t){return this.setLimit("max",e,!1,V.toString(t))}setLimit(e,t,i,a){return new gn({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:V.toString(a)}]})}_addCheck(e){return new gn({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:V.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:V.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:V.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:V.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:V.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:V.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:V.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:V.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:V.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"&&Y.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)}}gn.create=n=>new gn({checks:[],typeName:U.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,...q(n)});class In extends H{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)!==M.bigint){const s=this._getOrReturnCtx(e);return w(s,{code:P.invalid_type,expected:M.bigint,received:s.parsedType}),x}let i;const a=new Qe;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),w(i,{code:P.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),w(i,{code:P.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),w(i,{code:P.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):Y.assertNever(s);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,V.toString(t))}gt(e,t){return this.setLimit("min",e,!1,V.toString(t))}lte(e,t){return this.setLimit("max",e,!0,V.toString(t))}lt(e,t){return this.setLimit("max",e,!1,V.toString(t))}setLimit(e,t,i,a){return new In({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:V.toString(a)}]})}_addCheck(e){return new In({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:V.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:V.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:V.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:V.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:V.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}}In.create=n=>{var e;return new In({checks:[],typeName:U.ZodBigInt,coerce:(e=n==null?void 0:n.coerce)!==null&&e!==void 0?e:!1,...q(n)})};class vi extends H{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==M.boolean){const i=this._getOrReturnCtx(e);return w(i,{code:P.invalid_type,expected:M.boolean,received:i.parsedType}),x}return lt(e.data)}}vi.create=n=>new vi({typeName:U.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,...q(n)});class qn extends H{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==M.date){const s=this._getOrReturnCtx(e);return w(s,{code:P.invalid_type,expected:M.date,received:s.parsedType}),x}if(isNaN(e.data.getTime())){const s=this._getOrReturnCtx(e);return w(s,{code:P.invalid_date}),x}const i=new Qe;let a;for(const s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(a=this._getOrReturnCtx(e,a),w(a,{code:P.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),w(a,{code:P.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),i.dirty()):Y.assertNever(s);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new qn({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:V.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:V.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}}qn.create=n=>new qn({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:U.ZodDate,...q(n)});class Va extends H{_parse(e){if(this._getType(e)!==M.symbol){const i=this._getOrReturnCtx(e);return w(i,{code:P.invalid_type,expected:M.symbol,received:i.parsedType}),x}return lt(e.data)}}Va.create=n=>new Va({typeName:U.ZodSymbol,...q(n)});class gi extends H{_parse(e){if(this._getType(e)!==M.undefined){const i=this._getOrReturnCtx(e);return w(i,{code:P.invalid_type,expected:M.undefined,received:i.parsedType}),x}return lt(e.data)}}gi.create=n=>new gi({typeName:U.ZodUndefined,...q(n)});class Ii extends H{_parse(e){if(this._getType(e)!==M.null){const i=this._getOrReturnCtx(e);return w(i,{code:P.invalid_type,expected:M.null,received:i.parsedType}),x}return lt(e.data)}}Ii.create=n=>new Ii({typeName:U.ZodNull,...q(n)});class Mr extends H{constructor(){super(...arguments),this._any=!0}_parse(e){return lt(e.data)}}Mr.create=n=>new Mr({typeName:U.ZodAny,...q(n)});class Jn extends H{constructor(){super(...arguments),this._unknown=!0}_parse(e){return lt(e.data)}}Jn.create=n=>new Jn({typeName:U.ZodUnknown,...q(n)});class nn extends H{_parse(e){const t=this._getOrReturnCtx(e);return w(t,{code:P.invalid_type,expected:M.never,received:t.parsedType}),x}}nn.create=n=>new nn({typeName:U.ZodNever,...q(n)});class La extends H{_parse(e){if(this._getType(e)!==M.undefined){const i=this._getOrReturnCtx(e);return w(i,{code:P.invalid_type,expected:M.void,received:i.parsedType}),x}return lt(e.data)}}La.create=n=>new La({typeName:U.ZodVoid,...q(n)});class Lt extends H{_parse(e){const{ctx:t,status:i}=this._processInputParams(e),a=this._def;if(t.parsedType!==M.array)return w(t,{code:P.invalid_type,expected:M.array,received:t.parsedType}),x;if(a.exactLength!==null){const o=t.data.length>a.exactLength.value,u=t.data.length<a.exactLength.value;(o||u)&&(w(t,{code:o?P.too_big:P.too_small,minimum:u?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&&(w(t,{code:P.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&&(w(t,{code:P.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,u)=>a.type._parseAsync(new kt(t,o,t.path,u)))).then(o=>Qe.mergeArray(i,o));const s=[...t.data].map((o,u)=>a.type._parseSync(new kt(t,o,t.path,u)));return Qe.mergeArray(i,s)}get element(){return this._def.type}min(e,t){return new Lt({...this._def,minLength:{value:e,message:V.toString(t)}})}max(e,t){return new Lt({...this._def,maxLength:{value:e,message:V.toString(t)}})}length(e,t){return new Lt({...this._def,exactLength:{value:e,message:V.toString(t)}})}nonempty(e){return this.min(1,e)}}Lt.create=(n,e)=>new Lt({type:n,minLength:null,maxLength:null,exactLength:null,typeName:U.ZodArray,...q(e)});function Nr(n){if(n instanceof we){const e={};for(const t in n.shape){const i=n.shape[t];e[t]=Jt.create(Nr(i))}return new we({...n._def,shape:()=>e})}else return n instanceof Lt?new Lt({...n._def,type:Nr(n.element)}):n instanceof Jt?Jt.create(Nr(n.unwrap())):n instanceof Dn?Dn.create(Nr(n.unwrap())):n instanceof qt?qt.create(n.items.map(e=>Nr(e))):n}class we extends H{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=Y.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==M.object){const h=this._getOrReturnCtx(e);return w(h,{code:P.invalid_type,expected:M.object,received:h.parsedType}),x}const{status:i,ctx:a}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),u=[];if(!(this._def.catchall instanceof nn&&this._def.unknownKeys==="strip"))for(const h in a.data)o.includes(h)||u.push(h);const p=[];for(const h of o){const m=s[h],T=a.data[h];p.push({key:{status:"valid",value:h},value:m._parse(new kt(a,T,a.path,h)),alwaysSet:h in a.data})}if(this._def.catchall instanceof nn){const h=this._def.unknownKeys;if(h==="passthrough")for(const m of u)p.push({key:{status:"valid",value:m},value:{status:"valid",value:a.data[m]}});else if(h==="strict")u.length>0&&(w(a,{code:P.unrecognized_keys,keys:u}),i.dirty());else if(h!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const h=this._def.catchall;for(const m of u){const T=a.data[m];p.push({key:{status:"valid",value:m},value:h._parse(new kt(a,T,a.path,m)),alwaysSet:m in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const h=[];for(const m of p){const T=await m.key,b=await m.value;h.push({key:T,value:b,alwaysSet:m.alwaysSet})}return h}).then(h=>Qe.mergeObjectSync(i,h)):Qe.mergeObjectSync(i,p)}get shape(){return this._def.shape()}strict(e){return V.errToObj,new we({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,i)=>{var a,s,o,u;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:(u=V.errToObj(e).message)!==null&&u!==void 0?u:p}:{message:p}}}:{}})}strip(){return new we({...this._def,unknownKeys:"strip"})}passthrough(){return new we({...this._def,unknownKeys:"passthrough"})}extend(e){return new we({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new we({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:U.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new we({...this._def,catchall:e})}pick(e){const t={};return Y.objectKeys(e).forEach(i=>{e[i]&&this.shape[i]&&(t[i]=this.shape[i])}),new we({...this._def,shape:()=>t})}omit(e){const t={};return Y.objectKeys(this.shape).forEach(i=>{e[i]||(t[i]=this.shape[i])}),new we({...this._def,shape:()=>t})}deepPartial(){return Nr(this)}partial(e){const t={};return Y.objectKeys(this.shape).forEach(i=>{const a=this.shape[i];e&&!e[i]?t[i]=a:t[i]=a.optional()}),new we({...this._def,shape:()=>t})}required(e){const t={};return Y.objectKeys(this.shape).forEach(i=>{if(e&&!e[i])t[i]=this.shape[i];else{let s=this.shape[i];for(;s instanceof Jt;)s=s._def.innerType;t[i]=s}}),new we({...this._def,shape:()=>t})}keyof(){return um(Y.objectKeys(this.shape))}}we.create=(n,e)=>new we({shape:()=>n,unknownKeys:"strip",catchall:nn.create(),typeName:U.ZodObject,...q(e)}),we.strictCreate=(n,e)=>new we({shape:()=>n,unknownKeys:"strict",catchall:nn.create(),typeName:U.ZodObject,...q(e)}),we.lazycreate=(n,e)=>new we({shape:n,unknownKeys:"strip",catchall:nn.create(),typeName:U.ZodObject,...q(e)});class Pi extends H{_parse(e){const{ctx:t}=this._processInputParams(e),i=this._def.options;function a(s){for(const u of s)if(u.result.status==="valid")return u.result;for(const u of s)if(u.result.status==="dirty")return t.common.issues.push(...u.ctx.common.issues),u.result;const o=s.map(u=>new ft(u.ctx.common.issues));return w(t,{code:P.invalid_union,unionErrors:o}),x}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 h={...t,common:{...t.common,issues:[]},parent:null},m=p._parseSync({data:t.data,path:t.path,parent:h});if(m.status==="valid")return m;m.status==="dirty"&&!s&&(s={result:m,ctx:h}),h.common.issues.length&&o.push(h.common.issues)}if(s)return t.common.issues.push(...s.ctx.common.issues),s.result;const u=o.map(p=>new ft(p));return w(t,{code:P.invalid_union,unionErrors:u}),x}}get options(){return this._def.options}}Pi.create=(n,e)=>new Pi({options:n,typeName:U.ZodUnion,...q(e)});const rn=n=>n instanceof Si?rn(n.schema):n instanceof Gt?rn(n.innerType()):n instanceof Oi?[n.value]:n instanceof Pn?n.options:n instanceof Ci?Y.objectValues(n.enum):n instanceof Bi?rn(n._def.innerType):n instanceof gi?[void 0]:n instanceof Ii?[null]:n instanceof Jt?[void 0,...rn(n.unwrap())]:n instanceof Dn?[null,...rn(n.unwrap())]:n instanceof Ko||n instanceof Mi?rn(n.unwrap()):n instanceof wi?rn(n._def.innerType):[];class Ga extends H{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==M.object)return w(t,{code:P.invalid_type,expected:M.object,received:t.parsedType}),x;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}):(w(t,{code:P.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),x)}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=rn(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 u of o){if(a.has(u))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(u)}`);a.set(u,s)}}return new Ga({typeName:U.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:a,...q(i)})}}function Qo(n,e){const t=vn(n),i=vn(e);if(n===e)return{valid:!0,data:n};if(t===M.object&&i===M.object){const a=Y.objectKeys(e),s=Y.objectKeys(n).filter(u=>a.indexOf(u)!==-1),o={...n,...e};for(const u of s){const p=Qo(n[u],e[u]);if(!p.valid)return{valid:!1};o[u]=p.data}return{valid:!0,data:o}}else if(t===M.array&&i===M.array){if(n.length!==e.length)return{valid:!1};const a=[];for(let s=0;s<n.length;s++){const o=n[s],u=e[s],p=Qo(o,u);if(!p.valid)return{valid:!1};a.push(p.data)}return{valid:!0,data:a}}else return t===M.date&&i===M.date&&+n==+e?{valid:!0,data:n}:{valid:!1}}class Di extends H{_parse(e){const{status:t,ctx:i}=this._processInputParams(e),a=(s,o)=>{if(zo(s)||zo(o))return x;const u=Qo(s.value,o.value);return u.valid?((Zo(s)||Zo(o))&&t.dirty(),{status:t.value,value:u.data}):(w(i,{code:P.invalid_intersection_types}),x)};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}))}}Di.create=(n,e,t)=>new Di({left:n,right:e,typeName:U.ZodIntersection,...q(t)});class qt extends H{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==M.array)return w(i,{code:P.invalid_type,expected:M.array,received:i.parsedType}),x;if(i.data.length<this._def.items.length)return w(i,{code:P.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),x;!this._def.rest&&i.data.length>this._def.items.length&&(w(i,{code:P.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const s=[...i.data].map((o,u)=>{const p=this._def.items[u]||this._def.rest;return p?p._parse(new kt(i,o,i.path,u)):null}).filter(o=>!!o);return i.common.async?Promise.all(s).then(o=>Qe.mergeArray(t,o)):Qe.mergeArray(t,s)}get items(){return this._def.items}rest(e){return new qt({...this._def,rest:e})}}qt.create=(n,e)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new qt({items:n,typeName:U.ZodTuple,rest:null,...q(e)})};class Ai extends H{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!==M.object)return w(i,{code:P.invalid_type,expected:M.object,received:i.parsedType}),x;const a=[],s=this._def.keyType,o=this._def.valueType;for(const u in i.data)a.push({key:s._parse(new kt(i,u,i.path,u)),value:o._parse(new kt(i,i.data[u],i.path,u)),alwaysSet:u in i.data});return i.common.async?Qe.mergeObjectAsync(t,a):Qe.mergeObjectSync(t,a)}get element(){return this._def.valueType}static create(e,t,i){return t instanceof H?new Ai({keyType:e,valueType:t,typeName:U.ZodRecord,...q(i)}):new Ai({keyType:Vt.create(),valueType:e,typeName:U.ZodRecord,...q(t)})}}class Fa extends H{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!==M.map)return w(i,{code:P.invalid_type,expected:M.map,received:i.parsedType}),x;const a=this._def.keyType,s=this._def.valueType,o=[...i.data.entries()].map(([u,p],h)=>({key:a._parse(new kt(i,u,i.path,[h,"key"])),value:s._parse(new kt(i,p,i.path,[h,"value"]))}));if(i.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const p of o){const h=await p.key,m=await p.value;if(h.status==="aborted"||m.status==="aborted")return x;(h.status==="dirty"||m.status==="dirty")&&t.dirty(),u.set(h.value,m.value)}return{status:t.value,value:u}})}else{const u=new Map;for(const p of o){const h=p.key,m=p.value;if(h.status==="aborted"||m.status==="aborted")return x;(h.status==="dirty"||m.status==="dirty")&&t.dirty(),u.set(h.value,m.value)}return{status:t.value,value:u}}}}Fa.create=(n,e,t)=>new Fa({valueType:e,keyType:n,typeName:U.ZodMap,...q(t)});class Wn extends H{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==M.set)return w(i,{code:P.invalid_type,expected:M.set,received:i.parsedType}),x;const a=this._def;a.minSize!==null&&i.data.size<a.minSize.value&&(w(i,{code:P.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&&(w(i,{code:P.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 h=new Set;for(const m of p){if(m.status==="aborted")return x;m.status==="dirty"&&t.dirty(),h.add(m.value)}return{status:t.value,value:h}}const u=[...i.data.values()].map((p,h)=>s._parse(new kt(i,p,i.path,h)));return i.common.async?Promise.all(u).then(p=>o(p)):o(u)}min(e,t){return new Wn({...this._def,minSize:{value:e,message:V.toString(t)}})}max(e,t){return new Wn({...this._def,maxSize:{value:e,message:V.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Wn.create=(n,e)=>new Wn({valueType:n,minSize:null,maxSize:null,typeName:U.ZodSet,...q(e)});class $r extends H{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==M.function)return w(t,{code:P.invalid_type,expected:M.function,received:t.parsedType}),x;function i(u,p){return Na({data:u,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Ma(),wr].filter(h=>!!h),issueData:{code:P.invalid_arguments,argumentsError:p}})}function a(u,p){return Na({data:u,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Ma(),wr].filter(h=>!!h),issueData:{code:P.invalid_return_type,returnTypeError:p}})}const s={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof Vr){const u=this;return lt(async function(...p){const h=new ft([]),m=await u._def.args.parseAsync(p,s).catch(I=>{throw h.addIssue(i(p,I)),h}),T=await Reflect.apply(o,this,m);return await u._def.returns._def.type.parseAsync(T,s).catch(I=>{throw h.addIssue(a(T,I)),h})})}else{const u=this;return lt(function(...p){const h=u._def.args.safeParse(p,s);if(!h.success)throw new ft([i(p,h.error)]);const m=Reflect.apply(o,this,h.data),T=u._def.returns.safeParse(m,s);if(!T.success)throw new ft([a(m,T.error)]);return T.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new $r({...this._def,args:qt.create(e).rest(Jn.create())})}returns(e){return new $r({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,i){return new $r({args:e||qt.create([]).rest(Jn.create()),returns:t||Jn.create(),typeName:U.ZodFunction,...q(i)})}}class Si extends H{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})}}Si.create=(n,e)=>new Si({getter:n,typeName:U.ZodLazy,...q(e)});class Oi extends H{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return w(t,{received:t.data,code:P.invalid_literal,expected:this._def.value}),x}return{status:"valid",value:e.data}}get value(){return this._def.value}}Oi.create=(n,e)=>new Oi({value:n,typeName:U.ZodLiteral,...q(e)});function um(n,e){return new Pn({values:n,typeName:U.ZodEnum,...q(e)})}class Pn extends H{constructor(){super(...arguments),Ri.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),i=this._def.values;return w(t,{expected:Y.joinValues(i),received:t.parsedType,code:P.invalid_type}),x}if($a(this,Ri,"f")||sm(this,Ri,new Set(this._def.values),"f"),!$a(this,Ri,"f").has(e.data)){const t=this._getOrReturnCtx(e),i=this._def.values;return w(t,{received:t.data,code:P.invalid_enum_value,options:i}),x}return lt(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 Pn.create(e,{...this._def,...t})}exclude(e,t=this._def){return Pn.create(this.options.filter(i=>!e.includes(i)),{...this._def,...t})}}Ri=new WeakMap,Pn.create=um;class Ci extends H{constructor(){super(...arguments),bi.set(this,void 0)}_parse(e){const t=Y.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==M.string&&i.parsedType!==M.number){const a=Y.objectValues(t);return w(i,{expected:Y.joinValues(a),received:i.parsedType,code:P.invalid_type}),x}if($a(this,bi,"f")||sm(this,bi,new Set(Y.getValidEnumValues(this._def.values)),"f"),!$a(this,bi,"f").has(e.data)){const a=Y.objectValues(t);return w(i,{received:i.data,code:P.invalid_enum_value,options:a}),x}return lt(e.data)}get enum(){return this._def.values}}bi=new WeakMap,Ci.create=(n,e)=>new Ci({values:n,typeName:U.ZodNativeEnum,...q(e)});class Vr extends H{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==M.promise&&t.common.async===!1)return w(t,{code:P.invalid_type,expected:M.promise,received:t.parsedType}),x;const i=t.parsedType===M.promise?t.data:Promise.resolve(t.data);return lt(i.then(a=>this._def.type.parseAsync(a,{path:t.path,errorMap:t.common.contextualErrorMap})))}}Vr.create=(n,e)=>new Vr({type:n,typeName:U.ZodPromise,...q(e)});class Gt extends H{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===U.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=>{w(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 u=>{if(t.value==="aborted")return x;const p=await this._def.schema._parseAsync({data:u,path:i.path,parent:i});return p.status==="aborted"?x:p.status==="dirty"||t.value==="dirty"?_r(p.value):p});{if(t.value==="aborted")return x;const u=this._def.schema._parseSync({data:o,path:i.path,parent:i});return u.status==="aborted"?x:u.status==="dirty"||t.value==="dirty"?_r(u.value):u}}if(a.type==="refinement"){const o=u=>{const p=a.refinement(u,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 u};if(i.common.async===!1){const u=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return u.status==="aborted"?x:(u.status==="dirty"&&t.dirty(),o(u.value),{status:t.value,value:u.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(u=>u.status==="aborted"?x:(u.status==="dirty"&&t.dirty(),o(u.value).then(()=>({status:t.value,value:u.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(!Ti(o))return o;const u=a.transform(o.value,s);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:u}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(o=>Ti(o)?Promise.resolve(a.transform(o.value,s)).then(u=>({status:t.value,value:u})):o);Y.assertNever(a)}}Gt.create=(n,e,t)=>new Gt({schema:n,typeName:U.ZodEffects,effect:e,...q(t)}),Gt.createWithPreprocess=(n,e,t)=>new Gt({schema:e,effect:{type:"preprocess",transform:n},typeName:U.ZodEffects,...q(t)});class Jt extends H{_parse(e){return this._getType(e)===M.undefined?lt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Jt.create=(n,e)=>new Jt({innerType:n,typeName:U.ZodOptional,...q(e)});class Dn extends H{_parse(e){return this._getType(e)===M.null?lt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Dn.create=(n,e)=>new Dn({innerType:n,typeName:U.ZodNullable,...q(e)});class Bi extends H{_parse(e){const{ctx:t}=this._processInputParams(e);let i=t.data;return t.parsedType===M.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Bi.create=(n,e)=>new Bi({innerType:n,typeName:U.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...q(e)});class wi extends H{_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 Ei(a)?a.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new ft(i.common.issues)},input:i.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new ft(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}wi.create=(n,e)=>new wi({innerType:n,typeName:U.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...q(e)});class Ua extends H{_parse(e){if(this._getType(e)!==M.nan){const i=this._getOrReturnCtx(e);return w(i,{code:P.invalid_type,expected:M.nan,received:i.parsedType}),x}return{status:"valid",value:e.data}}}Ua.create=n=>new Ua({typeName:U.ZodNaN,...q(n)});const xI=Symbol("zod_brand");class Ko extends H{_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 _i extends H{_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"?x:s.status==="dirty"?(t.dirty(),_r(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"?x: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 _i({in:e,out:t,typeName:U.ZodPipeline})}}class Mi extends H{_parse(e){const t=this._def.innerType._parse(e),i=a=>(Ti(a)&&(a.value=Object.freeze(a.value)),a);return Ei(t)?t.then(a=>i(a)):i(t)}unwrap(){return this._def.innerType}}Mi.create=(n,e)=>new Mi({innerType:n,typeName:U.ZodReadonly,...q(e)});function pm(n,e={},t){return n?Mr.create().superRefine((i,a)=>{var s,o;if(!n(i)){const u=typeof e=="function"?e(i):typeof e=="string"?{message:e}:e,p=(o=(s=u.fatal)!==null&&s!==void 0?s:t)!==null&&o!==void 0?o:!0,h=typeof u=="string"?{message:u}:u;a.addIssue({code:"custom",...h,fatal:p})}}):Mr.create()}const jI={object:we.lazycreate};var U;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(U||(U={}));const kI=(n,e={message:`Input not instance of ${n.name}`})=>pm(t=>t instanceof n,e),xa=Vt.create,el=gn.create,qI=Ua.create,JI=In.create,tl=vi.create,ym=qn.create,WI=Va.create,HI=gi.create,hm=Ii.create,YI=Mr.create,ja=Jn.create,zI=nn.create,ZI=La.create,XI=Lt.create,fm=we.create,QI=we.strictCreate,KI=Pi.create,eP=Ga.create,tP=Di.create,nP=qt.create,mm=Ai.create,rP=Fa.create,iP=Wn.create,aP=$r.create,sP=Si.create,oP=Oi.create,Tm=Pn.create,lP=Ci.create,cP=Vr.create,Em=Gt.create,dP=Jt.create,uP=Dn.create,pP=Gt.createWithPreprocess,yP=_i.create;var c=Object.freeze({__proto__:null,defaultErrorMap:wr,setErrorMap:PI,getErrorMap:Ma,makeIssue:Na,EMPTY_PATH:DI,addIssueToContext:w,ParseStatus:Qe,INVALID:x,DIRTY:_r,OK:lt,isAborted:zo,isDirty:Zo,isValid:Ti,isAsync:Ei,get util(){return Y},get objectUtil(){return Yo},ZodParsedType:M,getParsedType:vn,ZodType:H,datetimeRegex:dm,ZodString:Vt,ZodNumber:gn,ZodBigInt:In,ZodBoolean:vi,ZodDate:qn,ZodSymbol:Va,ZodUndefined:gi,ZodNull:Ii,ZodAny:Mr,ZodUnknown:Jn,ZodNever:nn,ZodVoid:La,ZodArray:Lt,ZodObject:we,ZodUnion:Pi,ZodDiscriminatedUnion:Ga,ZodIntersection:Di,ZodTuple:qt,ZodRecord:Ai,ZodMap:Fa,ZodSet:Wn,ZodFunction:$r,ZodLazy:Si,ZodLiteral:Oi,ZodEnum:Pn,ZodNativeEnum:Ci,ZodPromise:Vr,ZodEffects:Gt,ZodTransformer:Gt,ZodOptional:Jt,ZodNullable:Dn,ZodDefault:Bi,ZodCatch:wi,ZodNaN:Ua,BRAND:xI,ZodBranded:Ko,ZodPipeline:_i,ZodReadonly:Mi,custom:pm,Schema:H,ZodSchema:H,late:jI,get ZodFirstPartyTypeKind(){return U},coerce:{string:n=>Vt.create({...n,coerce:!0}),number:n=>gn.create({...n,coerce:!0}),boolean:n=>vi.create({...n,coerce:!0}),bigint:n=>In.create({...n,coerce:!0}),date:n=>qn.create({...n,coerce:!0})},any:YI,array:XI,bigint:JI,boolean:tl,date:ym,discriminatedUnion:eP,effect:Em,enum:Tm,function:aP,instanceof:kI,intersection:tP,lazy:sP,literal:oP,map:rP,nan:qI,nativeEnum:lP,never:zI,null:hm,nullable:uP,number:el,object:fm,oboolean:()=>tl().optional(),onumber:()=>el().optional(),optional:dP,ostring:()=>xa().optional(),pipeline:yP,preprocess:pP,promise:cP,record:mm,set:iP,strictObject:QI,string:xa,symbol:WI,transformer:Em,tuple:nP,undefined:HI,union:KI,unknown:ja,void:ZI,NEVER:x,ZodIssueCode:P,quotelessJson:II,ZodError:ft});function Rm(n){var a,s,o;if(!(n!=null&&n.dataType))return ja();const e=n.dataType.isNullable||!1,t=n.dataType.isList||!1;let i=ja();if(((a=n.dataType.entity)==null?void 0:a.type)===r.PrimitiveEntity)switch(n.dataType.entity.name){case g.String:i=xa();break;case g.JSON:i=mm(ja());break;case g.Number:i=el();break;case g.Boolean:i=tl();break;case g.Date:i=ym();break;case g.Enum:{const u=n.dataType.options||[];if(u.length===0)throw new Error(`Enum property ${n.name} has no options`);i=Tm(u);break}case g.Null:i=hm();break;case g.UUID:i=xa().uuid();break}else if(((s=n.dataType.entity)==null?void 0:s.type)===r.CustomEntity)i=bm(n.dataType.entity);else throw new Error(`Unsupported data type validation: ${(o=n.dataType.entity)==null?void 0:o.type}`);return e&&(i=i.nullable()),t&&(i=i.array()),i}function bm(n){const e=fm({});for(const t of n.properties){const i=Rm(t);e.shape[t.name]=i}return e}function vm(n){const e=n.rangeStart;return new Date(e.getTime()+Math.random()*(Date.now()-e.getTime()))}function gm(n){const e=n.rangeEnd;return new Date(Math.random()*e.getTime())}function Im(n){const e=n.rangeStart,t=n.rangeEnd;return new Date(e.getTime()+Math.random()*(t.getTime()-e.getTime()))}function Pm(n){return n.rangeStart&&n.rangeEnd?Im(n):n.rangeStart?vm(n):n.rangeEnd?gm(n):new Date}function hP(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Dm={},ka={},qa={};Object.defineProperty(qa,"__esModule",{value:!0}),qa.default=mP;let Ja;const fP=new Uint8Array(16);function mP(){if(!Ja&&(Ja=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ja))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ja(fP)}var An={},Hn={},Wa={};Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.default=void 0;var TP=/^(?:[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;Wa.default=TP,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.default=void 0;var EP=RP(Wa);function RP(n){return n&&n.__esModule?n:{default:n}}function bP(n){return typeof n=="string"&&EP.default.test(n)}var vP=bP;Hn.default=vP,Object.defineProperty(An,"__esModule",{value:!0}),An.default=void 0,An.unsafeStringify=Am;var gP=IP(Hn);function IP(n){return n&&n.__esModule?n:{default:n}}const ze=[];for(let n=0;n<256;++n)ze.push((n+256).toString(16).slice(1));function Am(n,e=0){return ze[n[e+0]]+ze[n[e+1]]+ze[n[e+2]]+ze[n[e+3]]+"-"+ze[n[e+4]]+ze[n[e+5]]+"-"+ze[n[e+6]]+ze[n[e+7]]+"-"+ze[n[e+8]]+ze[n[e+9]]+"-"+ze[n[e+10]]+ze[n[e+11]]+ze[n[e+12]]+ze[n[e+13]]+ze[n[e+14]]+ze[n[e+15]]}function PP(n,e=0){const t=Am(n,e);if(!(0,gP.default)(t))throw TypeError("Stringified UUID is invalid");return t}var DP=PP;An.default=DP,Object.defineProperty(ka,"__esModule",{value:!0}),ka.default=void 0;var AP=OP(qa),SP=An;function OP(n){return n&&n.__esModule?n:{default:n}}let Sm,nl,rl=0,il=0;function CP(n,e,t){let i=e&&t||0;const a=e||new Array(16);n=n||{};let s=n.node||Sm,o=n.clockseq!==void 0?n.clockseq:nl;if(s==null||o==null){const b=n.random||(n.rng||AP.default)();s==null&&(s=Sm=[b[0]|1,b[1],b[2],b[3],b[4],b[5]]),o==null&&(o=nl=(b[6]<<8|b[7])&16383)}let u=n.msecs!==void 0?n.msecs:Date.now(),p=n.nsecs!==void 0?n.nsecs:il+1;const h=u-rl+(p-il)/1e4;if(h<0&&n.clockseq===void 0&&(o=o+1&16383),(h<0||u>rl)&&n.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");rl=u,il=p,nl=o,u+=122192928e5;const m=((u&268435455)*1e4+p)%4294967296;a[i++]=m>>>24&255,a[i++]=m>>>16&255,a[i++]=m>>>8&255,a[i++]=m&255;const T=u/4294967296*1e4&268435455;a[i++]=T>>>8&255,a[i++]=T&255,a[i++]=T>>>24&15|16,a[i++]=T>>>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,SP.unsafeStringify)(a)}var BP=CP;ka.default=BP;var Ha={},Sn={},Ni={};Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.default=void 0;var wP=_P(Hn);function _P(n){return n&&n.__esModule?n:{default:n}}function MP(n){if(!(0,wP.default)(n))throw TypeError("Invalid UUID");let e;const t=new Uint8Array(16);return t[0]=(e=parseInt(n.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t[4]=(e=parseInt(n.slice(9,13),16))>>>8,t[5]=e&255,t[6]=(e=parseInt(n.slice(14,18),16))>>>8,t[7]=e&255,t[8]=(e=parseInt(n.slice(19,23),16))>>>8,t[9]=e&255,t[10]=(e=parseInt(n.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 NP=MP;Ni.default=NP,Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.URL=Sn.DNS=void 0,Sn.default=FP;var $P=An,VP=LP(Ni);function LP(n){return n&&n.__esModule?n:{default:n}}function GP(n){n=unescape(encodeURIComponent(n));const e=[];for(let t=0;t<n.length;++t)e.push(n.charCodeAt(t));return e}const Om="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Sn.DNS=Om;const Cm="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Sn.URL=Cm;function FP(n,e,t){function i(a,s,o,u){var p;if(typeof a=="string"&&(a=GP(a)),typeof s=="string"&&(s=(0,VP.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 h=new Uint8Array(16+a.length);if(h.set(s),h.set(a,s.length),h=t(h),h[6]=h[6]&15|e,h[8]=h[8]&63|128,o){u=u||0;for(let m=0;m<16;++m)o[u+m]=h[m];return o}return(0,$P.unsafeStringify)(h)}try{i.name=n}catch{}return i.DNS=Om,i.URL=Cm,i}var Ya={};Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.default=void 0;function UP(n){if(typeof n=="string"){const e=unescape(encodeURIComponent(n));n=new Uint8Array(e.length);for(let t=0;t<e.length;++t)n[t]=e.charCodeAt(t)}return xP(jP(kP(n),n.length*8))}function xP(n){const e=[],t=n.length*32,i="0123456789abcdef";for(let a=0;a<t;a+=8){const s=n[a>>5]>>>a%32&255,o=parseInt(i.charAt(s>>>4&15)+i.charAt(s&15),16);e.push(o)}return e}function Bm(n){return(n+64>>>9<<4)+14+1}function jP(n,e){n[e>>5]|=128<<e%32,n[Bm(e)-1]=e;let t=1732584193,i=-271733879,a=-1732584194,s=271733878;for(let o=0;o<n.length;o+=16){const u=t,p=i,h=a,m=s;t=Ke(t,i,a,s,n[o],7,-680876936),s=Ke(s,t,i,a,n[o+1],12,-389564586),a=Ke(a,s,t,i,n[o+2],17,606105819),i=Ke(i,a,s,t,n[o+3],22,-1044525330),t=Ke(t,i,a,s,n[o+4],7,-176418897),s=Ke(s,t,i,a,n[o+5],12,1200080426),a=Ke(a,s,t,i,n[o+6],17,-1473231341),i=Ke(i,a,s,t,n[o+7],22,-45705983),t=Ke(t,i,a,s,n[o+8],7,1770035416),s=Ke(s,t,i,a,n[o+9],12,-1958414417),a=Ke(a,s,t,i,n[o+10],17,-42063),i=Ke(i,a,s,t,n[o+11],22,-1990404162),t=Ke(t,i,a,s,n[o+12],7,1804603682),s=Ke(s,t,i,a,n[o+13],12,-40341101),a=Ke(a,s,t,i,n[o+14],17,-1502002290),i=Ke(i,a,s,t,n[o+15],22,1236535329),t=et(t,i,a,s,n[o+1],5,-165796510),s=et(s,t,i,a,n[o+6],9,-1069501632),a=et(a,s,t,i,n[o+11],14,643717713),i=et(i,a,s,t,n[o],20,-373897302),t=et(t,i,a,s,n[o+5],5,-701558691),s=et(s,t,i,a,n[o+10],9,38016083),a=et(a,s,t,i,n[o+15],14,-660478335),i=et(i,a,s,t,n[o+4],20,-405537848),t=et(t,i,a,s,n[o+9],5,568446438),s=et(s,t,i,a,n[o+14],9,-1019803690),a=et(a,s,t,i,n[o+3],14,-187363961),i=et(i,a,s,t,n[o+8],20,1163531501),t=et(t,i,a,s,n[o+13],5,-1444681467),s=et(s,t,i,a,n[o+2],9,-51403784),a=et(a,s,t,i,n[o+7],14,1735328473),i=et(i,a,s,t,n[o+12],20,-1926607734),t=tt(t,i,a,s,n[o+5],4,-378558),s=tt(s,t,i,a,n[o+8],11,-2022574463),a=tt(a,s,t,i,n[o+11],16,1839030562),i=tt(i,a,s,t,n[o+14],23,-35309556),t=tt(t,i,a,s,n[o+1],4,-1530992060),s=tt(s,t,i,a,n[o+4],11,1272893353),a=tt(a,s,t,i,n[o+7],16,-155497632),i=tt(i,a,s,t,n[o+10],23,-1094730640),t=tt(t,i,a,s,n[o+13],4,681279174),s=tt(s,t,i,a,n[o],11,-358537222),a=tt(a,s,t,i,n[o+3],16,-722521979),i=tt(i,a,s,t,n[o+6],23,76029189),t=tt(t,i,a,s,n[o+9],4,-640364487),s=tt(s,t,i,a,n[o+12],11,-421815835),a=tt(a,s,t,i,n[o+15],16,530742520),i=tt(i,a,s,t,n[o+2],23,-995338651),t=nt(t,i,a,s,n[o],6,-198630844),s=nt(s,t,i,a,n[o+7],10,1126891415),a=nt(a,s,t,i,n[o+14],15,-1416354905),i=nt(i,a,s,t,n[o+5],21,-57434055),t=nt(t,i,a,s,n[o+12],6,1700485571),s=nt(s,t,i,a,n[o+3],10,-1894986606),a=nt(a,s,t,i,n[o+10],15,-1051523),i=nt(i,a,s,t,n[o+1],21,-2054922799),t=nt(t,i,a,s,n[o+8],6,1873313359),s=nt(s,t,i,a,n[o+15],10,-30611744),a=nt(a,s,t,i,n[o+6],15,-1560198380),i=nt(i,a,s,t,n[o+13],21,1309151649),t=nt(t,i,a,s,n[o+4],6,-145523070),s=nt(s,t,i,a,n[o+11],10,-1120210379),a=nt(a,s,t,i,n[o+2],15,718787259),i=nt(i,a,s,t,n[o+9],21,-343485551),t=On(t,u),i=On(i,p),a=On(a,h),s=On(s,m)}return[t,i,a,s]}function kP(n){if(n.length===0)return[];const e=n.length*8,t=new Uint32Array(Bm(e));for(let i=0;i<e;i+=8)t[i>>5]|=(n[i/8]&255)<<i%32;return t}function On(n,e){const t=(n&65535)+(e&65535);return(n>>16)+(e>>16)+(t>>16)<<16|t&65535}function qP(n,e){return n<<e|n>>>32-e}function za(n,e,t,i,a,s){return On(qP(On(On(e,n),On(i,s)),a),t)}function Ke(n,e,t,i,a,s,o){return za(e&t|~e&i,n,e,a,s,o)}function et(n,e,t,i,a,s,o){return za(e&i|t&~i,n,e,a,s,o)}function tt(n,e,t,i,a,s,o){return za(e^t^i,n,e,a,s,o)}function nt(n,e,t,i,a,s,o){return za(t^(e|~i),n,e,a,s,o)}var JP=UP;Ya.default=JP,Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.default=void 0;var WP=wm(Sn),HP=wm(Ya);function wm(n){return n&&n.__esModule?n:{default:n}}var YP=(0,WP.default)("v3",48,HP.default);Ha.default=YP;var Za={},Xa={};Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.default=void 0;var zP={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};Xa.default=zP,Object.defineProperty(Za,"__esModule",{value:!0}),Za.default=void 0;var _m=Mm(Xa),ZP=Mm(qa),XP=An;function Mm(n){return n&&n.__esModule?n:{default:n}}function QP(n,e,t){if(_m.default.randomUUID&&!e&&!n)return _m.default.randomUUID();n=n||{};const i=n.random||(n.rng||ZP.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,XP.unsafeStringify)(i)}var KP=QP;Za.default=KP;var Qa={},Ka={};Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.default=void 0;function eD(n,e,t,i){switch(n){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 al(n,e){return n<<e|n>>>32-e}function tD(n){const e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof n=="string"){const o=unescape(encodeURIComponent(n));n=[];for(let u=0;u<o.length;++u)n.push(o.charCodeAt(u))}else Array.isArray(n)||(n=Array.prototype.slice.call(n));n.push(128);const i=n.length/4+2,a=Math.ceil(i/16),s=new Array(a);for(let o=0;o<a;++o){const u=new Uint32Array(16);for(let p=0;p<16;++p)u[p]=n[o*64+p*4]<<24|n[o*64+p*4+1]<<16|n[o*64+p*4+2]<<8|n[o*64+p*4+3];s[o]=u}s[a-1][14]=(n.length-1)*8/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=(n.length-1)*8&4294967295;for(let o=0;o<a;++o){const u=new Uint32Array(80);for(let I=0;I<16;++I)u[I]=s[o][I];for(let I=16;I<80;++I)u[I]=al(u[I-3]^u[I-8]^u[I-14]^u[I-16],1);let p=t[0],h=t[1],m=t[2],T=t[3],b=t[4];for(let I=0;I<80;++I){const B=Math.floor(I/20),G=al(p,5)+eD(B,h,m,T)+b+e[B]+u[I]>>>0;b=T,T=m,m=al(h,30)>>>0,h=p,p=G}t[0]=t[0]+p>>>0,t[1]=t[1]+h>>>0,t[2]=t[2]+m>>>0,t[3]=t[3]+T>>>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 nD=tD;Ka.default=nD,Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.default=void 0;var rD=Nm(Sn),iD=Nm(Ka);function Nm(n){return n&&n.__esModule?n:{default:n}}var aD=(0,rD.default)("v5",80,iD.default);Qa.default=aD;var es={};Object.defineProperty(es,"__esModule",{value:!0}),es.default=void 0;var sD="00000000-0000-0000-0000-000000000000";es.default=sD;var ts={};Object.defineProperty(ts,"__esModule",{value:!0}),ts.default=void 0;var oD=lD(Hn);function lD(n){return n&&n.__esModule?n:{default:n}}function cD(n){if(!(0,oD.default)(n))throw TypeError("Invalid UUID");return parseInt(n.slice(14,15),16)}var dD=cD;ts.default=dD,function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(n,"v1",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(n,"v3",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(n,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"validate",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(n,"version",{enumerable:!0,get:function(){return o.default}});var e=m(ka),t=m(Ha),i=m(Za),a=m(Qa),s=m(es),o=m(ts),u=m(Hn),p=m(An),h=m(Ni);function m(T){return T&&T.__esModule?T:{default:T}}}(Dm);function sl(n,e){if(!n||!e||!n.length||!e.length)throw new Error("Bad alphabet");this.srcAlphabet=n,this.dstAlphabet=e}sl.prototype.convert=function(n){var e,t,i,a={},s=this.srcAlphabet.length,o=this.dstAlphabet.length,u=n.length,p=typeof n=="string"?"":[];if(!this.isValid(n))throw new Error('Number "'+n+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return n;for(e=0;e<u;e++)a[e]=this.srcAlphabet.indexOf(n[e]);do{for(t=0,i=0,e=0;e<u;e++)t=t*s+a[e],t>=o?(a[i++]=parseInt(t/o,10),t=t%o):i>0&&(a[i++]=0);u=i,p=this.dstAlphabet.slice(t,t+1).concat(p)}while(i!==0);return p},sl.prototype.isValid=function(n){for(var e=0;e<n.length;++e)if(this.srcAlphabet.indexOf(n[e])===-1)return!1;return!0};var uD=sl,pD=uD;function $i(n,e){var t=new pD(n,e);return function(i){return t.convert(i)}}$i.BIN="01",$i.OCT="01234567",$i.DEC="0123456789",$i.HEX="0123456789abcdef";var yD=$i;const{v4:ol,validate:hD}=Dm,ns=yD,ll={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},fD={consistentLength:!0};let cl;const $m=(n,e,t)=>{const i=e(n.toLowerCase().replace(/-/g,""));return!t||!t.consistentLength?i:i.padStart(t.shortIdLength,t.paddingChar)},Vm=(n,e)=>{const i=e(n).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("-")},mD=n=>Math.ceil(Math.log(2**128)/Math.log(n));var TD=(()=>{const n=(e,t)=>{const i=e||ll.flickrBase58,a={...fD,...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=mD(i.length),o={shortIdLength:s,consistentLength:a.consistentLength,paddingChar:i[0]},u=ns(ns.HEX,i),p=ns(i,ns.HEX),h=()=>$m(ol(),u,o),T={alphabet:i,fromUUID:b=>$m(b,u,o),maxLength:s,generate:h,new:h,toUUID:b=>Vm(b,p),uuid:ol,validate:(b,I=!1)=>{if(!b||typeof b!="string")return!1;const B=a.consistentLength?b.length===s:b.length<=s,G=b.split("").every(W=>i.includes(W));return I===!1?B&&G:B&&G&&hD(Vm(b,p))}};return Object.freeze(T),T};return n.constants=ll,n.uuid=ol,n.generate=()=>(cl||(cl=n(ll.flickrBase58).generate),cl()),n})();const Lm=hP(TD),ED=Lm();function Gm(){return ED.uuid()}function Fm(n){return n.rangeStart+Math.random()}function Um(n){const e=n.rangeEnd;return Math.random()*e}function xm(n){const e=n.rangeStart,t=n.rangeEnd;return Math.random()*(t-e)+e}function jm(n){return n.rangeStart&&n.rangeEnd?xm(n):n.rangeStart?Fm(n):n.rangeEnd?Um(n):Math.random()}function km(n){const e=n.rangeStart;return Math.random().toString(36).substring(e)}function qm(n){const e=n.rangeEnd;return Math.random().toString(36).substring(0,e)}function Jm(n){const e=n.rangeStart,t=n.rangeEnd;return Math.random().toString(36).substring(e,t)}function Wm(n){return n.rangeStart&&n.rangeEnd?Jm(n):n.rangeStart?km(n):n.rangeEnd?qm(n):Math.random().toString(36)}function Hm(n){return Math.random()>=.5}function RD(n){if(!n||!n.autogeneration)return null;switch(n.autogeneration.type){case xe.CurrentDateAndTime:if(n.name===g.Date)return new Date;case xe.Random:{if(n.name===g.Date)return Pm(n.autogeneration);if(n.name===g.Number)return jm(n.autogeneration);if(n.name===g.String)return Wm(n.autogeneration);if(n.name===g.Boolean)return Hm(n.autogeneration)}case xe.Unique:if(n.name===g.UUID)return Gm();default:throw new Error(`Generating a ${n.autogeneration.type} value for a ${n.name} is not supported`)}}const J="e7eb5382-3d99-44fd-972a-b8b1e819f6be",dl="global-user-variable-id",Ym="last-executed-timestamp-variable-id",bD={id:"alternative-relational-database-entity-identifier-property-data-type-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-data-type-id",entityType:r.DataType},vD={id:"alternative-relational-database-entity-identifier-property-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-identifier-property-id",entityType:r.Property},gD={id:"alternative-relational-database-entity-identifier-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"alternative-relational-database-entity-identifier-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:g.String,value:null,parent:bD,autogeneration:{type:xe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:vD},rs={id:"alternative-relational-database-entity-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},ID={required:!0,id:"alternative-relational-database-entity-identifier-property-id",name:"Identifier name",version:1,type:r.Property,private:!1,abstract:!1,implements:Oa,static:!0,index:0,dataType:gD,description:"The name of the main database inside of the server instance where the data will be stored.",parent:rs};r.GenericReference,r.DataType;const PD={id:"alternative-relational-database-entity-username-property-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-username-property-id",entityType:r.Property},DD={id:"alternative-relational-database-entity-username-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:PD},AD={required:!0,id:"alternative-relational-database-entity-username-property-id",name:"Username",version:1,type:r.Property,private:!1,abstract:!1,implements:Ca,static:!0,index:1,dataType:DD,description:"The username that will be used to connect to the database.",parent:rs};r.GenericReference,r.DataType;const SD={id:"alternative-relational-database-entity-password-property-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-password-property-id",entityType:r.Property},OD={id:"alternative-relational-database-entity-password-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:SD},CD={required:!0,id:"alternative-relational-database-entity-password-property-id",name:"Password",version:1,type:r.Property,private:!1,abstract:!1,implements:Ba,static:!0,index:2,dataType:OD,description:"The password that will be used to connect to the database.",parent:rs},BD={id:"alternative-relational-database-entity-min-size-property-data-type-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-data-type-id",entityType:r.DataType},wD={id:"alternative-relational-database-entity-min-size-property-ref-id",type:r.GenericReference,entityId:"alternative-relational-database-entity-min-size-property-id",entityType:r.Property},_D={id:"alternative-relational-database-entity-min-size-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Ce,asType:!1,defaultValue:{id:"alternative-relational-database-entity-min-size-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:g.Number,value:6,parent:BD,autogeneration:null,valueAsType:null},parent:wD},MD={required:!0,id:"alternative-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:1,type:r.Property,private:!1,abstract:!1,implements:wa,static:!0,index:3,dataType:_D,description:"The minimum size of the database in GB.",parent:rs},ND={id:"alternative-relational-database-entity-parent-ref-id",type:r.GenericReference,entityId:J,entityType:r.Project},zm={id:"alternative-relational-database-entity-id",type:r.CustomEntity,version:1,name:"Alternative relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[ID,AD,CD,MD],methods:[],abstractMethods:[],extends:[],implements:[bn],x:0,y:0,parent:ND},$D={id:"animal-prototype-database-property-ref-id",type:r.GenericReference,entityId:"animal-prototype-database-property-id",entityType:r.Property},VD={id:"animal-prototype-database-property-data-type-default-value-parent-ref-id",type:r.GenericReference,entityId:"animal-prototype-database-property-data-type-default-value-id",entityType:r.DataType},LD={id:"animal-prototype-database-property-data-type-id",version:1,type:r.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:r.PrimitiveValue,version:1,value:null,name:g.EntityTemplate,valueAsType:zm,autogeneration:null,parent:VD},parent:$D},GD={id:"animal-prototype-database-property-parent-ref-id",type:r.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:r.CustomEntity},FD={required:!0,id:"animal-prototype-database-property-id",name:"Database",version:1,type:r.Property,private:!1,abstract:!1,implements:mi,static:!0,index:0,dataType:LD,description:"The database that the entity belongs to.",parent:GD},UD={type:r.GenericReference,id:"291e4d4f-01d8-40a0-90dc-5f1ac6636e9b",entityType:r.Property,entityId:"5cb617b0-92be-4dbe-a007-49093368d94f"},xD={id:"c1930577-9e79-48a6-8905-be24611015c1",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:UD},jD={type:r.GenericReference,id:"e2b9e456-f2b3-4dc7-85a2-fbb68ed0c9c7",entityType:r.CustomEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},kD={required:!0,type:r.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:xD,abstract:!1,parent:jD},qD={type:r.GenericReference,id:"abc565de-4c83-4936-bc48-4013bef213b8",entityType:r.Project,entityId:J},JD={type:r.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:[FD,kD],methods:[],extends:[],implements:[Be],x:0,y:0,parent:qD},WD={id:"default-relational-database-entity-identifier-property-data-type-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-identifier-property-data-type-id",entityType:r.DataType},HD={id:"default-relational-database-entity-identifier-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-identifier-property-id",entityType:r.Property},YD={id:"default-relational-database-entity-identifier-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"default-relational-database-entity-identifier-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:g.String,value:null,parent:WD,autogeneration:{type:xe.Unique,rangeStart:null,rangeEnd:null},valueAsType:null},parent:HD},is={id:"default-relational-database-entity-ref-id",type:r.GenericReference,entityId:_.PERSISTED_ENTITY,entityType:r.BuiltInBaseEntity},zD={required:!0,id:"default-relational-database-entity-identifier-property-id",name:"Identifier name",version:1,type:r.Property,private:!1,abstract:!1,implements:Oa,static:!0,index:0,dataType:YD,description:"The name of the main database inside of the server instance where the data will be stored.",parent:is};r.GenericReference,r.DataType;const ZD={id:"default-relational-database-entity-username-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-username-property-id",entityType:r.Property},XD={id:"default-relational-database-entity-username-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:ZD},QD={required:!0,id:"default-relational-database-entity-username-property-id",name:"Username",version:1,type:r.Property,private:!1,abstract:!1,implements:Ca,static:!0,index:1,dataType:XD,description:"The username that will be used to connect to the database.",parent:is};r.GenericReference,r.DataType;const KD={id:"default-relational-database-entity-password-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-password-property-id",entityType:r.Property},eA={id:"default-relational-database-entity-password-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:KD},tA={required:!0,id:"default-relational-database-entity-password-property-id",name:"Password",version:1,type:r.Property,private:!1,abstract:!1,implements:Ba,static:!0,index:2,dataType:eA,description:"The password that will be used to connect to the database.",parent:is},nA={id:"default-relational-database-entity-min-size-property-data-type-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-min-size-property-data-type-id",entityType:r.DataType},rA={id:"default-relational-database-entity-min-size-property-ref-id",type:r.GenericReference,entityId:"default-relational-database-entity-min-size-property-id",entityType:r.Property},iA={id:"default-relational-database-entity-min-size-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:Ce,asType:!1,defaultValue:{id:"default-relational-database-entity-min-size-property-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:g.Number,value:6,parent:nA,autogeneration:null,valueAsType:null},parent:rA},aA={required:!0,id:"default-relational-database-entity-min-size-property-id",name:"Minimum GB size",version:1,type:r.Property,private:!1,abstract:!1,implements:wa,static:!0,index:3,dataType:iA,description:"The minimum size of the database in GB.",parent:is},sA={id:"default-relational-database-entity-parent-ref-id",type:r.GenericReference,entityId:J,entityType:r.Project},ul={id:"default-relational-database-entity-id",type:r.CustomEntity,version:1,name:"Relational Database",description:"A database that permanently stores the persisted entities attached to it.",abstract:!1,static:!0,properties:[zD,QD,tA,aA],methods:[],abstractMethods:[],extends:[],implements:[bn],x:0,y:0,parent:sA},oA={id:"user-prototype-database-property-data-type-ref-id",type:r.GenericReference,entityId:"user-prototype-database-property-data-type-id",entityType:r.DataType},lA={id:"user-prototype-database-property-ref-id",type:r.GenericReference,entityId:"user-prototype-database-property-id",entityType:r.Property},cA={id:"user-prototype-database-property-data-type-id",version:1,type:r.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:r.PrimitiveValue,version:1,value:null,name:g.EntityTemplate,valueAsType:ul,autogeneration:null,parent:oA},parent:lA},dA={id:"user-prototype-database-property-parent-ref-id",type:r.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:r.CustomEntity},uA={required:!0,id:"user-prototype-database-property-id",name:"Database",version:1,type:r.Property,private:!1,abstract:!1,implements:mi,static:!0,index:0,dataType:cA,description:"The database that the entity belongs to.",parent:dA},pA={type:r.GenericReference,id:"user-prototype-parent-ref-id",entityType:r.Project,entityId:J},pl={type:r.CustomEntity,id:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",version:1,name:"User",description:"A user of the application",implements:[Be],abstract:!1,static:!1,abstractMethods:[],extends:[],properties:[uA],methods:[],x:0,y:0,parent:pA},yA={type:r.GenericReference,id:"person-date-of-birth-property-data-type-parent-ref-id",entityType:r.Property,entityId:"person-date-of-birth-property-id"},hA={id:"person-date-of-birth-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Sr,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:yA},fA={type:r.GenericReference,id:"person-date-of-birth-property-parent-ref-id",entityType:r.CustomEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},mA={required:!0,type:r.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:hA,abstract:!1,parent:fA},TA={type:r.GenericReference,id:"a2867827-2f8e-4c25-b18b-d91857d7f24e",entityType:r.Property,entityId:"cacfec92-46c3-4fca-a1d9-fd1ba94d78c7"},EA={id:"1d49f41b-17b9-4f48-87aa-3ce43498e5a9",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:TA},RA={type:r.GenericReference,id:"01cbe760-40a9-4f49-8e3d-194d2f57cb1e",entityType:r.CustomEntity,entityId:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},bA={required:!0,type:r.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:EA,abstract:!1,parent:RA},vA={type:r.GenericReference,id:"3542b22a-3a2f-41c6-876e-24c885572498",entityType:r.Project,entityId:J},ct={type:r.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:[bA,mA],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[pl],x:0,y:0,parent:vA},gA={type:r.GenericReference,id:"b59c80b7-b2e9-41e9-abcd-7c5652835efc",entityType:r.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},IA={type:r.GenericReference,id:"1190b5a2-f25e-46db-884d-8a3dd1a44d94",entityType:r.ReturnStatement,entityId:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e"},PA={type:r.GenericReference,id:"36c63126-7814-496f-a6cc-48662c2aabae",entityType:r.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},DA={type:r.GenericReference,id:"c567e55d-ec12-4e4e-958e-f07522892b4b",entityType:r.ReturnDeclaration,entityId:"9e070523-7e07-4100-8637-960a187f5f14"},AA={id:"3973c5a1-f0d8-49a0-a9a9-a0009bf3f0d8",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:DA},yl={isError:!1,id:"9e070523-7e07-4100-8637-960a187f5f14",type:r.ReturnDeclaration,version:1,name:"Output Account Owner",description:null,dataType:AA,readsValue:PA,required:!0,index:0,parent:IA},SA={type:r.GenericReference,id:"567d923c-20da-4c1e-956d-962ea30c6d0b",entityType:r.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},OA={type:r.GenericReference,id:"da85e620-59f3-42ab-88c8-b38d33c2c833",entityType:r.FunctionDeclaration,entityId:"36f29f96-c001-4b9a-b49c-83eff406a060"},Zm={type:r.ReturnStatement,id:"3ebc4342-c9e8-42e7-a61c-7937081e1d2e",version:1,outputs:[yl],calledByError:[],calledByEntry:[SA],calledBySuccess:[],throws:null,x:0,y:0,parent:OA},CA={type:r.GenericReference,id:"1c806bb7-4c25-4bad-963b-93dfbb7c8304",entityType:r.ArgumentDeclaration,entityId:"500dee3a-3435-4453-9699-0d053f646523"},BA={id:"d90fcc18-642b-433c-8fcb-4094b9031cd5",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:CA},Xm={id:"500dee3a-3435-4453-9699-0d053f646523",type:r.ArgumentDeclaration,version:1,name:"New Account Owner",description:null,dataType:BA,required:!0,writesValues:[yl],index:0,parent:gA},wA={type:r.GenericReference,id:"83dceb60-f3c4-4085-824c-85f2003bfd27",entityType:r.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},Qm={type:r.FunctionDeclaration,id:"36f29f96-c001-4b9a-b49c-83eff406a060",version:1,name:"Change owner of bank account",description:null,implements:null,inputs:[Xm],calls:[Zm],returnStatements:[Zm],index:0,collapsed:!1,private:!1,x:0,y:0,parent:wA},_A={type:r.GenericReference,id:"adbaf302-ffa9-49b6-a3c6-83f9a75068e3",entityType:r.VariableDeclaration,entityId:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b"},MA={id:"79ee04aa-1ba4-4ae9-a406-ed45e5b03f7f",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:_A},NA={type:r.GenericReference,id:"55e212d1-f0ec-4bb6-acbe-60f741367daf",entityType:r.OutputMap,entityId:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4"},$A={type:r.GenericReference,id:"944e1171-3d9b-4559-9386-1d4974b15962",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},VA={id:"8e36a476-766e-4cc2-a8a7-27a07dfb5a4b",type:r.VariableDeclaration,version:1,name:"Output Account Owner",description:null,dataType:MA,readsValue:NA,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:$A},LA={type:r.GenericReference,id:"b89ebc83-52cf-4447-a5ae-62241f713079",entityType:r.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},GA={id:"dc9ddb8f-02a0-4a43-aea6-270ec7b7f8a4",type:r.OutputMap,version:1,declaration:yl,writesValues:[VA],index:0,parent:LA},FA={type:r.GenericReference,id:"c1b9e125-1aad-48b7-9687-95c57a6bc10d",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},UA={type:r.GenericReference,id:"d2deaa02-e164-4425-905c-6dee47eb4eac",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},xA={type:r.GenericReference,id:"1109a655-ac62-4110-a933-42a72106f4f0",entityType:r.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},jA={id:"7d9a1307-512e-42ec-9797-2f7229796b97",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:xA},kA={type:r.GenericReference,id:"bb61ebf7-57b3-4d14-905d-82ec907205b5",entityType:r.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},qA={type:r.GenericReference,id:"6b8c7bf2-9fc8-4ea4-9ec0-f41679d513b1",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},JA={type:r.GenericReference,id:"6163d1a1-7a94-49b1-95bb-aecd8d6d335c",entityType:r.FunctionCall,entityId:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e"},WA={type:r.GenericReference,id:"1f900f62-4bd2-4246-94aa-b8f5aad384fd",entityType:r.VariableDeclaration,entityId:"8bea6986-8da2-487b-905d-2fb962db6728"},Km={id:"be8538be-e6f9-4b94-9314-a546003ebaa0",type:r.InputMap,version:1,declaration:Xm,name:null,description:null,readsValue:WA,dynamicArguments:[],defaultValue:null,index:0,parent:JA},HA={type:r.VariableDeclaration,id:"8bea6986-8da2-487b-905d-2fb962db6728",version:1,name:"Changed Account Owner",description:null,dataType:jA,readsValue:kA,writesValues:[Km],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:qA},YA={type:r.FunctionCall,id:"78f6dba8-bed8-44cd-8b0f-6dcc787d1e1e",version:1,declaration:Qm,inputs:[Km],outputs:[GA],process:null,successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[FA],calledBySuccess:[],parent:UA,error:null,x:0,y:0},zA={type:r.GenericReference,id:"2d47aba1-a918-46a7-8db7-78809928654a",entityType:r.ArgumentDeclaration,entityId:"38f6b236-98ac-47b0-ab9c-d2f9610137b9"},ZA={id:"5583766c-e9a5-484c-8f43-f4b0a6a1876c",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:zA},XA={type:r.GenericReference,id:"3e2a81e4-55b2-49f5-94eb-39135e95c3d7",entityType:r.FunctionDeclaration,entityId:"15ee556d-681f-47de-a31f-16d4ba73cc4e"},QA={id:"38f6b236-98ac-47b0-ab9c-d2f9610137b9",type:r.ArgumentDeclaration,version:1,description:null,name:"New Company Owner",dataType:ZA,required:!0,index:0,writesValues:[HA],parent:XA},KA={type:r.GenericReference,id:"30291b01-1b94-4d03-b434-dec122c2bc7d",entityType:r.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},eS={type:r.FunctionDeclaration,id:"15ee556d-681f-47de-a31f-16d4ba73cc4e",version:1,description:null,name:"Change Account Owner",inputs:[QA],collapsed:!0,returnStatements:[],calls:[YA],private:!1,index:0,implements:null,x:0,y:0,parent:KA},tS={type:r.GenericReference,id:"72c7ac0a-886e-4e10-b7ed-2f5a819a0233",entityType:r.Property,entityId:"b8f4656a-2b77-43ab-af51-7c32ddede044"},nS={id:"c09dd282-73f6-4077-a467-b66db20b9fc6",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:tS},rS={type:r.GenericReference,id:"8a950024-512c-4580-81db-a705410aeb99",entityType:r.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},eT={required:!0,type:r.Property,id:"b8f4656a-2b77-43ab-af51-7c32ddede044",version:1,name:"Account number",description:null,private:!0,implements:null,static:!1,index:0,dataType:nS,abstract:!1,parent:rS},iS={type:r.GenericReference,id:"b6704b6c-c3bd-49d0-8ebc-82d03e726cbb",entityType:r.Property,entityId:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea"},aS={id:"c03e0b0a-88ab-401a-8833-4806738bdc37",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:iS},sS={type:r.GenericReference,id:"1ef999a7-e9ed-406a-866e-e58277fc985b",entityType:r.CustomEntity,entityId:"506946aa-30da-48e6-918f-ffd9eac58813"},tT={required:!0,type:r.Property,id:"733d06a6-b8c5-44f3-a1f7-a8c9bd9e44ea",version:1,description:null,name:"Account Owner",index:1,dataType:aS,implements:null,static:!1,private:!0,abstract:!1,parent:sS},oS={type:r.GenericReference,id:"d41d7f41-98b8-4f67-be92-c349fdda5156",entityType:r.Project,entityId:J},Lr={type:r.CustomEntity,id:"506946aa-30da-48e6-918f-ffd9eac58813",version:1,name:"Bank Account",description:null,abstract:!1,static:!1,abstractMethods:[],properties:[eT,tT],methods:[Qm,eS],extends:[],implements:[Be],x:0,y:0,parent:oS},Vi="bitcoin-api-response-id",nT="time-property-id",rT="disclamer-property-id",iT="chart-name-property-id",aT="bpi-property-id",as="bpi-entity-id",sT="usd-property-id",oT="gbp-property-id",lT="eur-property-id",Gr="currency-entity-id",cT="currency-code-property-id",dT="currency-symbol-property-id",uT="currency-rate-property-id",pT="currency-description-property-id",yT="currency-rate-number-property-id",lS={type:r.GenericReference,id:"code-property-data-type-parent-ref-id",entityType:r.Property,entityId:cT},cS={id:"code-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Rn,isList:!1,asType:!1,isNullable:!1,defaultValue:null,options:["USD","GBP","EUR"],constant:!1,parent:lS},dS={type:r.GenericReference,id:"code-property-parent-ref-id",entityType:r.CustomEntity,entityId:Gr},uS={required:!0,type:r.Property,id:cT,version:1,name:"code",description:null,dataType:cS,index:0,implements:null,static:!1,private:!1,abstract:!1,parent:dS},pS={type:r.GenericReference,id:"symbol-property-data-type-parent-ref-id",entityType:r.Property,entityId:dT},yS={id:"symbol-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Rn,isList:!1,asType:!1,isNullable:!1,defaultValue:null,options:["&#36;","&pound;","&euro;"],constant:!1,parent:pS},hS={type:r.GenericReference,id:"symbol-property-parent-ref-id",entityType:r.CustomEntity,entityId:Gr},fS={required:!0,type:r.Property,id:dT,version:1,name:"symbol",description:null,index:0,dataType:yS,implements:null,static:!1,private:!1,abstract:!1,parent:hS},mS={type:r.GenericReference,id:"rate-property-data-type-parent-ref-id",entityType:r.Property,entityId:uT},TS={id:"rate-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:mS},ES={type:r.GenericReference,id:"rate-property-parent-ref-id",entityType:r.CustomEntity,entityId:Gr},RS={required:!0,type:r.Property,id:uT,version:1,name:"rate",description:null,index:0,dataType:TS,implements:null,static:!1,private:!1,abstract:!1,parent:ES},bS={type:r.GenericReference,id:"description-property-data-type-parent-ref-id",entityType:r.Property,entityId:pT},vS={id:"description-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:bS},gS={type:r.GenericReference,id:"description-property-parent-ref-id",entityType:r.CustomEntity,entityId:Gr},IS={required:!0,type:r.Property,id:pT,version:1,name:"description",description:null,dataType:vS,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:gS},PS={type:r.GenericReference,id:"rate-number-property-data-type-parent-ref-id",entityType:r.Property,entityId:yT},DS={id:"rate-number-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:PS},AS={type:r.GenericReference,id:"rate-number-property-parent-ref-id",entityType:r.CustomEntity,entityId:Gr},SS={required:!0,type:r.Property,id:yT,version:1,name:"rate_float",description:null,dataType:DS,implements:null,static:!1,index:0,private:!1,abstract:!1,parent:AS},OS={type:r.GenericReference,id:"currency-prototype-parent-ref-id",entityType:r.Project,entityId:J},ss={type:r.CustomEntity,id:Gr,version:1,name:"Currency",description:"This entity describes a currency in the Bitcoin Price Index.",properties:[uS,fS,RS,IS,SS],static:!1,abstract:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:OS},CS={type:r.GenericReference,id:"usd-property-data-type-parent-ref-id",entityType:r.Property,entityId:sT},BS={id:"usd-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ss,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:CS},wS={type:r.GenericReference,id:"usd-property-parent-ref-id",entityType:r.CustomEntity,entityId:as},_S={required:!0,id:sT,type:r.Property,version:1,name:"USD",description:null,index:0,dataType:BS,implements:null,static:!1,private:!1,abstract:!1,parent:wS},MS={type:r.GenericReference,id:"gbp-property-data-type-parent-ref-id",entityType:r.Property,entityId:oT},NS={id:"gbp-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ss,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:MS},$S={type:r.GenericReference,id:"gbp-property-parent-ref-id",entityType:r.CustomEntity,entityId:as},VS={required:!0,id:oT,type:r.Property,version:1,name:"GBP",description:null,index:0,dataType:NS,implements:null,static:!1,private:!1,abstract:!1,parent:$S},LS={type:r.GenericReference,id:"eur-property-data-type-parent-ref-id",entityType:r.Property,entityId:lT},GS={id:"eur-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ss,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:LS},FS={type:r.GenericReference,id:"eur-property-parent-ref-id",entityType:r.CustomEntity,entityId:as},US={required:!0,id:lT,type:r.Property,version:1,name:"EUR",description:null,implements:null,static:!1,index:0,dataType:GS,private:!1,abstract:!1,parent:FS},xS={type:r.GenericReference,id:"bpi-prototype-parent-ref-id",entityType:r.Project,entityId:J},hT={type:r.CustomEntity,id:as,version:1,name:"BPI",description:"The Bitcoin Price Index",properties:[_S,VS,US],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:xS},jS={type:r.GenericReference,id:"time-property-data-type-parent-ref-id",entityType:r.Property,entityId:nT},kS={id:"time-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ro,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:jS},qS={type:r.GenericReference,id:"time-property-parent-ref-id",entityType:r.CustomEntity,entityId:Vi},JS={required:!0,type:r.Property,id:nT,version:1,name:"time",description:null,index:0,dataType:kS,implements:null,static:!1,private:!1,abstract:!1,parent:qS},WS={type:r.GenericReference,id:"disclamer-property-data-type-parent-ref-id",entityType:r.Property,entityId:rT},HS={id:"disclamer-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:WS},YS={type:r.GenericReference,id:"disclamer-property-parent-ref-id",entityType:r.CustomEntity,entityId:Vi},zS={required:!0,type:r.Property,id:rT,version:1,name:"disclamer",description:null,index:0,dataType:HS,implements:null,static:!1,private:!1,abstract:!1,parent:YS},ZS={type:r.GenericReference,id:"chart-name-property-data-type-parent-ref-id",entityType:r.Property,entityId:iT},XS={id:"chart-name-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:ZS},QS={type:r.GenericReference,id:"chart-name-property-parent-ref-id",entityType:r.CustomEntity,entityId:Vi},KS={required:!0,type:r.Property,id:iT,version:1,name:"chartName",description:null,index:0,dataType:XS,implements:null,static:!1,private:!1,abstract:!1,parent:QS},eO={type:r.GenericReference,id:"bpi-property-data-type-parent-ref-id",entityType:r.Property,entityId:aT},tO={id:"bpi-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:hT,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:eO},nO={type:r.GenericReference,id:"bpi-property-parent-ref-id",entityType:r.CustomEntity,entityId:Vi},rO={required:!0,type:r.Property,id:aT,version:1,name:"bpi",description:null,implements:null,index:0,dataType:tO,static:!1,private:!1,abstract:!1,parent:nO},iO={type:r.GenericReference,id:"bitcoin-api-response-parent-ref-id",entityType:r.Project,entityId:J},fT={type:r.CustomEntity,id:Vi,version:1,name:"Bitcoin API Response type",description:"The type of the data structure response from the Bitcoin API call",properties:[JS,zS,KS,rO],abstract:!1,static:!1,abstractMethods:[],methods:[],extends:[],implements:[],x:0,y:0,parent:iO},aO={type:r.GenericReference,id:"eefa0147-f873-484b-b4f3-9e6493aab183",entityType:r.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},sO={id:"b9f35112-dcb2-4b7c-8fb9-f196b3fa37f9",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:aO},oO={type:r.GenericReference,id:"128770d6-5e3a-4aff-bca0-ad1f32ebefa8",entityType:r.ReturnStatement,entityId:"e4e05975-c277-471a-b869-f0aed316045c"},lO={type:r.GenericReference,id:"0be84bf9-6421-42b9-980f-6a03f30cb809",entityType:r.ReturnDeclaration,entityId:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},cO={id:"43daa02a-237b-4b7c-a6e9-2b8c167f6e22",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:lO},dO={type:r.GenericReference,id:"ad380383-4a47-43da-968e-75a2d603b230",entityType:r.ArgumentDeclaration,entityId:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},mT={isError:!1,id:"a1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:r.ReturnDeclaration,version:1,name:"New Company Owner",description:"The new owner of the company",dataType:cO,readsValue:dO,required:!0,index:0,parent:oO},uO={type:r.GenericReference,id:"4f24dc27-59a1-49bf-abcc-7d72b00926e4",entityType:r.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},pO={id:"f2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",type:r.ArgumentDeclaration,version:1,name:"New Company Owner",description:null,dataType:sO,writesValues:[mT],required:!0,index:0,parent:uO},yO={type:r.GenericReference,id:"5c9a02f0-d2cf-4efc-828e-467f33a74dd3",entityType:r.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},hO={type:r.GenericReference,id:"2ff8f3da-e0c5-4f0f-b688-2c051c588786",entityType:r.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},fO={type:r.GenericReference,id:"195ae28c-159b-42de-80b1-2ebb8be3619f",entityType:r.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},TT={type:r.ReturnStatement,id:"e4e05975-c277-471a-b869-f0aed316045c",version:1,outputs:[mT],calledByError:[],calledByEntry:[hO],calledBySuccess:[],throws:null,x:0,y:0,parent:fO},mO={type:r.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:[pO],calls:[TT],index:0,collapsed:!1,implements:null,returnStatements:[TT],private:!1,x:0,y:0,parent:yO},TO={type:r.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},EO={type:r.GenericReference,id:"29c4e3e0-1b66-4075-b559-45b27c5cf356",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},RO={type:r.GenericReference,id:"b1289358-b185-455d-8f58-7791b15cd52a",entityType:r.ReturnStatement,entityId:"9690cd1d-ea35-4e83-823d-0c7310265fee"},bO={type:r.GenericReference,id:"d847bb49-8789-4550-bb2d-e2d551993b28",entityType:r.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},vO={type:r.GenericReference,id:"06535500-c37c-4915-8398-1d4e184fa5e7",entityType:r.ReturnDeclaration,entityId:"e7a35277-a0c4-46d5-aca2-bddd0c26e931"},gO={id:"d358dd91-35f7-4095-b728-3fb3c71dbc05",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Fn,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:vO},hl={isError:!1,id:"e7a35277-a0c4-46d5-aca2-bddd0c26e931",type:r.ReturnDeclaration,version:1,name:"Is name registered",description:"Whether the company name is already registered",dataType:gO,readsValue:bO,required:!0,index:0,parent:RO},ET={type:r.ReturnStatement,id:"9690cd1d-ea35-4e83-823d-0c7310265fee",version:1,outputs:[hl],calledByError:[],calledByEntry:[],calledBySuccess:[TO],throws:null,x:0,y:0,parent:EO},IO={type:r.GenericReference,id:"b3126414-4c9b-495f-901e-59f5073c8d67",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},PO={type:r.GenericReference,id:"35115c48-618b-411b-a290-d746d22fdd10",entityType:r.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},RT={id:"a0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:r.InputMap,version:1,declaration:No,name:null,description:null,dynamicArguments:[],readsValue:PO,defaultValue:null,parent:IO,index:2},DO={type:r.GenericReference,id:"14f46eae-04a5-47d1-9c7f-28fb09b84d1d",entityType:r.VariableDeclaration,entityId:"e5a8b6d0-0e6f-4e9a-9b1e-8a2b5c7f0d5a"},AO={id:"990bd5d1-07ea-4253-acc1-d03bedd22a38",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Fn,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:DO},SO={type:r.GenericReference,id:"e4c3542a-8fb0-4b72-8d6e-3fdff812dd67",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},OO={type:r.GenericReference,id:"825f9f60-22a8-4cc6-9055-d7333f8e92f4",entityType:r.OutputMap,entityId:"8f30d787-9459-4d8d-98a2-b46fbc2006d5"},CO={type:r.GenericReference,id:"is-company-name-registered-var-called-by-ref",entityType:r.Operation,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},bT={type:r.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:AO,readsValue:OO,writesValues:[hl],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[CO],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:SO},BO={type:r.GenericReference,id:"1aba021e-48ef-44ac-93d0-eaecac5895da",entityType:r.InputMap,entityId:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a"},wO={type:r.GenericReference,id:"dffae7e0-0a5c-4c14-8ed2-8d680b4c4c86",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},_O={type:r.InputMap,id:"c3c8d6c1-3e0d-4e6c-9f9c-6b8c7d7f8e9a",version:1,declaration:va,name:null,description:null,readsValue:null,defaultValue:{id:"gov-http-request-url-argument-default-value-id",type:r.PrimitiveValue,version:1,value:"https://api.publicapis.org/entries",name:g.String,valueAsType:null,parent:BO,autogeneration:null},index:1,dynamicArguments:[],parent:wO},MO={type:r.GenericReference,id:"64ae61f5-ace7-401b-926d-25f852daa60e",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},NO={id:"8f30d787-9459-4d8d-98a2-b46fbc2006d5",type:r.OutputMap,version:1,declaration:yi,index:2,writesValues:[bT],parent:MO},$O={type:r.GenericReference,id:"62a1a086-caea-4270-9c9f-a1695503e745",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},VO={id:"48cf7654-8f3e-4fcd-abc6-740876c310a0",type:r.InputMap,version:1,declaration:ba,name:null,description:null,dynamicArguments:[],readsValue:null,index:0,defaultValue:null,parent:$O},LO={type:r.GenericReference,id:"b0c9c79f-f525-428d-99e7-087d3237ad62",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},GO={id:"2c1dc406-4b71-4023-87b2-abede3a111d2",type:r.InputMap,version:1,name:null,description:null,declaration:ga,dynamicArguments:[],index:3,readsValue:null,defaultValue:null,parent:LO},FO={type:r.GenericReference,id:"9887d6c9-d75b-4c97-b722-e2e60945ea20",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},UO={id:"3fef94b2-0278-43ae-b0c5-bc7083f0a111",type:r.InputMap,version:1,declaration:Ia,name:null,description:null,dynamicArguments:[],readsValue:null,index:4,defaultValue:null,parent:FO},xO={type:r.GenericReference,id:"561275b6-5056-45d8-bf7d-8abaa4645593",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},jO={id:"3efe20a7-4d63-411e-89ef-63e277f48d66",type:r.OutputMap,version:1,declaration:Pa,index:1,writesValues:[],parent:xO},kO={type:r.GenericReference,id:"3170ccc2-13de-4bfc-802a-a643be41cd42",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},qO={id:"40d34323-d7e6-440a-8016-67c05a3b66dd",type:r.OutputMap,version:1,declaration:yi,index:0,writesValues:[],parent:kO},JO={type:r.GenericReference,id:"7432fa82-f574-4c54-a8fa-4cc4376da3d5",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},WO={type:r.GenericReference,id:"8f518502-9eea-462c-8753-8bc3bf3e29a9",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},HO={type:r.GenericReference,id:"123b8f18-79d9-4166-a5f6-78ec4b461680",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},YO={type:r.GenericReference,id:"e691026f-6db0-43ec-93cd-805ae7d713e3",entityType:r.FunctionCall,entityId:"abb5d456-ee85-4800-bdd9-d409415f60d7"},zO={type:r.GenericReference,id:"a375eedf-4811-41aa-a998-4897c69c46b9",entityType:r.ReturnDeclaration,entityId:"024a9b77-c1cd-4b67-b3ba-1935046b590d"},ZO={id:"767cc5ed-20ec-4fd1-89b1-c8d19daa87d1",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Xe,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:zO},XO={type:r.GenericReference,id:"e64b0c23-129d-4d74-8ab4-eec60e1e5b9b",entityType:r.ReturnStatement,entityId:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3"},vT={isError:!0,id:"024a9b77-c1cd-4b67-b3ba-1935046b590d",type:r.ReturnDeclaration,version:1,name:"Error",description:"The error that occurred during the HTTP request to the government company registry",dataType:ZO,required:!0,readsValue:null,index:0,parent:XO},QO={type:r.ReturnStatement,id:"ea444a9e-6a5b-4138-b81f-0d5618c3c6f3",version:1,outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[YO],throws:vT,x:0,y:0,parent:HO},KO={type:r.GenericReference,id:"323814fb-9723-49ef-bbba-f882384f18e4",entityType:r.FunctionCall,entityId:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7"},eC={id:"2f63f7ba-0ff0-458a-92bc-65d1dd4df8c3",type:r.OutputMap,declaration:Vo,version:1,writesValues:[vT],index:0,parent:KO},tC={type:r.Operation,id:"4eb96d0b-025b-4ed1-ae34-0cebbb07f1e7",version:1,declaration:hi,inputs:[VO,_O,RT,GO,UO],outputs:[qO,jO,NO],process:null,calledByError:[],calledByEntry:[JO],calledBySuccess:[],successCalls:[ET,bT],errorCalls:[QO],error:eC,dynamicArguments:[],x:0,y:0,parent:WO},nC={type:r.GenericReference,id:"597b8aa2-f6f2-4f7d-bbb9-b703d02de96a",entityType:r.InputMap,entityId:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a"},rC={type:r.GenericReference,id:"546d99b3-28c4-4186-93a0-ac53c1565e07",entityType:r.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},iC={id:"b0e7b4e5-2f5f-4d4c-8f5c-1e1f1e1a1b1a",type:r.InputMap,version:1,declaration:Ta,name:null,description:null,readsValue:null,defaultValue:{id:"base-query-string-map-default-value-id",type:r.PrimitiveValue,version:1,value:"?name=",name:g.String,parent:nC,valueAsType:null,autogeneration:null},dynamicArguments:[],index:0,parent:rC},aC={type:r.GenericReference,id:"6a56fb22-82e1-47c9-bf85-41c4e5986c74",entityType:r.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},sC={type:r.GenericReference,id:"191c6a6d-9bcb-441e-bf98-de0da96f5f3a",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},oC={type:r.GenericReference,id:"d8fcbb76-dae2-40cf-847a-02364721b387",entityType:r.VariableDeclaration,entityId:"83e12ebb-c958-4dee-b750-8ab9930f0f4e"},lC={id:"6a70c42b-024a-47c6-8a9d-af52be9c9b9a",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:oC},cC={type:r.GenericReference,id:"2282e2c0-ed9e-4c7b-86fc-1a364fa0fdb8",entityType:r.OutputMap,entityId:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5"},dC={type:r.GenericReference,id:"assembled-query-string-called-by-ref",entityType:r.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},gT={type:r.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:lC,readsValue:cC,writesValues:[RT],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[dC],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:sC},uC={id:"f6c22cf8-63e4-4b2d-b649-b5ab884cf9a5",type:r.OutputMap,version:1,writesValues:[gT],declaration:ui,index:0,parent:aC},pC={type:r.GenericReference,id:"a1b48e7c-0301-4747-b4dd-b5af79956f7f",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},yC={type:r.GenericReference,id:"487c9235-be95-4c96-b9b5-2714b374a277",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},hC={type:r.GenericReference,id:"f6471f4f-b269-46fa-80ec-885e87a449c2",entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69",entityType:r.ArgumentDeclaration},fC={type:r.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:r.Operation,entityId:"8f2094c0-e27e-465e-9280-112da0de9019"},IT={id:"08f36e2b-bad2-425c-8129-93560bec8488",version:1,type:r.InputMap,declaration:Ea,name:null,description:null,readsValue:hC,dynamicArguments:[],defaultValue:null,index:1,parent:fC},mC={type:r.Operation,id:"8f2094c0-e27e-465e-9280-112da0de9019",declaration:pi,version:1,inputs:[iC,IT],outputs:[uC],process:null,calledByError:[],calledByEntry:[pC],calledBySuccess:[],dynamicArguments:[],successCalls:[gT],errorCalls:[],error:null,x:0,y:0,parent:yC},TC={type:r.GenericReference,id:"c2e0e9b4-aa46-4974-bf8a-886b737b12fb",entityType:r.ArgumentDeclaration,entityId:"a4106e8e-ec4f-4633-a636-09ae73135f69"},EC={id:"a4279518-3bf3-44b7-a2ac-65142ca37f1c",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:TC},RC={type:r.GenericReference,id:"dc273f24-164b-4943-82f9-589b237141e2",entityType:r.FunctionDeclaration,entityId:"e0f6e8a7-6e4b-4d0e-8a1a-6b4c1b0b7e9d"},PT={id:"a4106e8e-ec4f-4633-a636-09ae73135f69",type:r.ArgumentDeclaration,version:1,name:"Company Name to check",description:"The name of the company to check in the government registry",dataType:EC,required:!1,writesValues:[IT],index:0,parent:RC},bC={type:r.GenericReference,id:"2178a10c-1cc0-4dad-97c3-0941be6c9738",entityType:r.Project,entityId:J},DT={type:r.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:[PT],calls:[mC,tC],returnStatements:[ET],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:bC},vC={type:r.GenericReference,id:"4d66c53c-f0f7-496a-9955-1e6c8533c5e0",entityType:r.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},gC={type:r.GenericReference,id:"6fa0c8e0-d104-4b4d-a035-d4f6e0c49f09",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},IC={type:r.GenericReference,id:"146408d5-5336-4877-941a-777dd5871926",entityType:r.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},PC={type:r.GenericReference,id:"34ae8f8c-548d-4654-984a-6f36affdaf49",entityType:r.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},AT={id:"69b1215d-9ebf-4274-b9cb-d4a5888f5122",version:1,type:r.InputMap,declaration:PT,name:null,description:null,readsValue:IC,dynamicArguments:[],defaultValue:null,index:0,parent:PC},DC={type:r.GenericReference,id:"07540a94-dda1-40b3-8452-f209bdc87b88",entityType:r.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},AC={type:r.GenericReference,id:"eaddf12a-a995-429e-90a0-13bf06efeb28",entityType:r.VariableDeclaration,entityId:"faaf3bf6-917d-40d7-aee6-5164f6646c4b"},SC={id:"7fdaf943-3ffb-48e0-b766-b86cc24090cf",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Fn,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:AC},OC={type:r.GenericReference,id:"030fb5c5-af4d-4c85-8cf0-e99edd50d2bd",entityType:r.OutputMap,entityId:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},CC={type:r.GenericReference,id:"a8b618e9-c68c-48c1-8bd6-ef47c87d699e",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},BC={type:r.GenericReference,id:"is-company-name-valid-var-called-by-ref",entityType:r.FunctionCall,entityId:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a"},ST={type:r.VariableDeclaration,id:"faaf3bf6-917d-40d7-aee6-5164f6646c4b",version:1,name:"Is name valid",description:"Whether the company name is valid",dataType:SC,readsValue:OC,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[BC],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:CC},wC={id:"c1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:r.OutputMap,version:1,declaration:hl,writesValues:[ST],index:0,parent:DC},_C={type:r.FunctionCall,id:"d2c2c3b0-5f3c-4d0d-9e4c-2d5a2c1f1e2a",version:1,declaration:DT,inputs:[AT],outputs:[wC],calledByError:[],calledByEntry:[],process:null,calledBySuccess:[vC],successCalls:[ST],errorCalls:[],error:null,x:0,y:0,parent:gC},MC={type:r.GenericReference,id:"9d0b87b4-bfed-4e02-9e84-6831c21feae2",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},NC={type:r.GenericReference,id:"74345f4f-e80d-48be-adff-d12fcea25bec",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},$C={type:r.GenericReference,id:"b39279ea-969a-4efb-a9ec-353bfd13db65",entityType:r.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},VC={type:r.GenericReference,id:"549db613-f225-4c5b-9634-7d096717f0ff",entityType:r.Condition,entityId:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b"},OT={id:"358e242c-7448-442e-ab8b-fd7fa119ea71",version:1,type:r.InputMap,declaration:kn.fixedArguments[0],name:null,description:null,dynamicArguments:[],readsValue:$C,defaultValue:null,index:0,parent:VC},LC={type:r.Condition,id:"a8f4b0f2-5e5e-4e8f-9d7b-1b5b9b6e9a4b",version:1,declaration:kn,inputs:[OT],calledByError:[],calledByEntry:[MC],calledBySuccess:[],successCalls:[_C],errorCalls:[],x:0,y:0,parent:NC},GC={type:r.GenericReference,id:"43ba1e25-f805-488f-8ae8-c58bb6215b2f",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},FC={type:r.GenericReference,id:"eb091bed-507f-4a1e-93b5-7cd2fccfe002",entityType:r.VariableDeclaration,entityId:"9c928995-0dd5-4f97-9962-56b343bc8a45"},UC={id:"d64152ea-831f-4426-9506-a39bfa170513",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Lr,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:FC},xC={type:r.GenericReference,id:"7e79c29f-f7bd-441a-a77e-c627604dae94",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},jC={type:r.GenericReference,id:"8995ce5f-d5cf-4341-a8b1-5c046cc78b89",entityType:r.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},kC={type:r.GenericReference,id:"new-company-bank-account-var-decl-1-called-by-ref",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},CT={type:r.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:UC,readsValue:jC,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[kC],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:xC},qC={type:r.GenericReference,id:"9a4887bf-d50d-43e4-bdd5-a5262f65f04b",entityType:r.ArgumentDeclaration,entityId:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071"},JC={id:"ae148c06-3143-49e9-9614-c3aca3f6fa7b",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Lr,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:qC},WC={id:"7ed0f7bb-2df0-44e2-b0b3-0709dcca8071",type:r.ArgumentDeclaration,version:1,name:"New bank account",description:"The new bank account of the company",dataType:JC,required:!0,index:1,writesValues:[CT],parent:GC},HC={type:r.GenericReference,id:"caec9cf8-3133-48d4-a390-114fa71b2933",entityType:r.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},YC={type:r.GenericReference,id:"cebcbad8-ca87-4c4b-be8a-312293d49892",entityType:r.FunctionDeclaration,entityId:"183fd975-a5d3-4dff-8d6a-c62f5a4d5a84"},zC={type:r.GenericReference,id:"7b8ccfe5-f9cd-4776-a19b-80c689bbe3df",entityType:r.ArgumentDeclaration,entityId:"c6cf620c-1eee-4919-8578-1a0b6c088551"},ZC={id:"2a6b4703-ac8d-4d25-8abd-48a115577fec",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:zC},XC={id:"c6cf620c-1eee-4919-8578-1a0b6c088551",type:r.ArgumentDeclaration,version:1,name:"New company name",description:null,dataType:ZC,required:!0,index:0,writesValues:[OT,AT],parent:YC},QC={type:r.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:[XC,WC],calls:[LC,CT],index:1,private:!1,implements:null,x:0,y:0,parent:HC},KC={type:r.GenericReference,id:"employee-manager-property-data-type-entity-ref-id",entityType:r.CustomEntity,entityId:"employee-entity-id"},eB={type:r.GenericReference,id:"employee-manager-property-data-type-parent-ref-id",entityType:r.Property,entityId:"employee-manager-property-id"},tB={id:"employee-manager-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:KC,isList:!1,isNullable:!0,asType:!1,defaultValue:null,constant:!1,parent:eB},nB={type:r.GenericReference,id:"employee-manager-property-parent-ref-id",entityType:r.CustomEntity,entityId:"employee-entity-id"},rB={required:!0,type:r.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:tB,abstract:!1,parent:nB},iB={type:r.GenericReference,id:"employee-start-date-property-data-type-parent-ref-id",entityType:r.Property,entityId:"employee-start-date-property-id"},aB={id:"employee-start-date-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Sr,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:iB},sB={type:r.GenericReference,id:"employee-start-date-property-parent-ref-id",entityType:r.CustomEntity,entityId:"employee-entity-id"},oB={required:!0,type:r.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:aB,abstract:!1,parent:sB},lB={type:r.GenericReference,id:"employee-department-property-ref-id",entityType:r.Property,entityId:"employee-department-property-id"},cB={id:"employee-department-property-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Rn,isList:!1,isNullable:!1,asType:!1,options:["Human Resources","Finance","IT","Sales","Marketing","Customer Service","Logistics","Product"],defaultValue:null,constant:!1,parent:lB},dB={type:r.GenericReference,id:"employee-department-property-parent-ref-id",entityType:r.CustomEntity,entityId:"employee-entity-id"},uB={required:!0,type:r.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:cB,abstract:!1,parent:dB},pB={type:r.GenericReference,id:"employee-prototype-parent-ref-id",entityType:r.Project,entityId:J},It={type:r.CustomEntity,id:"employee-entity-id",version:1,name:"Employee",description:"A entity that represents an employee in the company",properties:[uB,oB,rB],abstract:!1,static:!1,abstractMethods:[],methods:[],implements:[],extends:[ct],x:0,y:0,parent:pB},yB={type:r.GenericReference,id:"dec8fbfe-9124-41fd-9f1c-5b2f07cfd6ba",entityType:r.Property,entityId:"4f52d044-f3dd-4bdf-927e-637c3b92e8bd"},hB={id:"bc0b8979-6c43-4d47-a712-6742b89e3c00",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:yB},fB={type:r.GenericReference,id:"4f8c0a05-466e-4672-b4c4-6bd408c0be9a",entityType:r.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},mB={required:!0,type:r.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:hB,abstract:!1,parent:fB},TB={type:r.GenericReference,id:"95173fe0-a6e6-443c-94f3-f7c5cf171fcf",entityType:r.Property,entityId:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3"},EB={id:"ddbb6f5c-0cf4-41fb-83b3-b6c47c0e338d",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Lr,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:TB},RB={type:r.GenericReference,id:"6a9a0b72-a05d-4169-b3f3-5afb01e8d0df",entityType:r.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},fl={required:!0,type:r.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:EB,abstract:!1,parent:RB},bB={type:r.GenericReference,id:"62892cc6-d227-4088-90d3-ae7c15ed4af4",entityType:r.Property,entityId:"19a31727-1fba-40a5-be25-18e0f149d5cb"},vB={id:"1f7629df-dc29-4c89-8369-c6d043e97a9e",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:ct,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:bB},gB={type:r.GenericReference,id:"89384206-fd5a-4f0a-849c-f777473e5773",entityType:r.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},IB={required:!0,type:r.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:vB,private:!0,abstract:!1,parent:gB},PB={type:r.GenericReference,id:"4d2ffb6c-5f38-436e-8339-fb9878ac2b5e",entityType:r.Property,entityId:"f8310850-a87e-405c-b182-4f1d5fa49240"},DB={id:"ad44250b-40c2-48f7-a480-381fa938f562",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:It,isList:!0,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:PB},AB={type:r.GenericReference,id:"aa5d4eee-6fac-4e72-bf21-9c8750024541",entityType:r.CustomEntity,entityId:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},SB={required:!0,type:r.Property,id:"f8310850-a87e-405c-b182-4f1d5fa49240",version:1,name:"Employees",description:null,index:3,dataType:DB,implements:null,private:!0,static:!1,abstract:!1,parent:AB},OB={type:r.GenericReference,id:"e3c03b6b-2ea0-4d99-865d-5e6a348672d0",entityType:r.Project,entityId:J},mt={type:r.CustomEntity,id:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d",version:1,name:"Company",description:null,properties:[mB,fl,IB,SB],static:!1,abstract:!1,abstractMethods:[],methods:[mO,QC],extends:[],implements:[Be],x:0,y:0,parent:OB},CB={type:r.GenericReference,id:"ffcad334-138d-4b67-8fb3-5f0e6f5fefbd",entityType:r.Project,entityId:J},ml={type:r.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:CB};r.GenericReference,r.DataType;const BB={id:"cron-job-entity-expression-property-ref-id",type:r.GenericReference,entityId:"cron-job-entity-expression-property-id",entityType:r.Property},wB={id:"cron-job-entity-expression-property-data-type-id",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:null,parent:BB},_B={id:"cron-job-entity-ref-id",type:r.GenericReference,entityId:"cron-job-entity-id",entityType:r.CustomEntity},MB={required:!0,id:"cron-job-entity-expression-property-id",type:r.Property,version:1,name:"Cron expression",description:"The cron expression that defines when the cron job should be triggered",dataType:wB,implements:null,static:!0,private:!1,abstract:!1,index:0,parent:_B},NB={id:"cron-job-entity-trigger-show-popup-func-call-called-by-ref-one-id",type:r.GenericReference,entityId:"show-popup-func-decl-id",entityType:r.FunctionDeclaration},$B={id:"cron-job-entity-trigger-show-popup-func-call-parent-ref-id",type:r.GenericReference,entityId:"cron-job-entity-trigger-func-decl-id",entityType:r.FunctionDeclaration},VB={id:"cron-job-entity-trigger-show-popup-func-call-id",version:1,type:r.FunctionCall,declaration:ml,inputs:[],outputs:[],process:null,successCalls:[],calledByError:[],calledByEntry:[NB],calledBySuccess:[],errorCalls:[],error:null,x:0,y:0,parent:$B},LB={id:"cron-job-entity-trigger-func-decl-parent-ref-id",type:r.GenericReference,entityId:"cron-job-entity-id",entityType:r.CustomEntity},GB={id:"cron-job-entity-trigger-func-decl-id",version:1,type:r.FunctionDeclaration,name:"Scheduled trigger",description:"The function that is called when the cron job is triggered",inputs:[],private:!1,implements:jo,calls:[VB],collapsed:!1,returnStatements:[],index:0,x:0,y:0,parent:LB},FB={id:"cron-job-entity-parent-ref-id",type:r.GenericReference,entityId:J,entityType:r.Project},UB={id:"cron-job-entity-id",version:1,type:r.CustomEntity,name:"Run at 12pm on Christmas day",description:"A cron job that runs at 12pm on Christmas day",properties:[MB],static:!0,abstract:!1,abstractMethods:[],extends:[ko],implements:[],methods:[GB],x:0,y:0,parent:FB},xB={type:r.GenericReference,id:"52dbd85c-48b1-462a-8205-2437d6fb1cb4",entityType:r.Project,entityId:J},jB={type:r.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:[Sa],x:0,y:0,parent:xB},BT="f558fbf8-67de-4545-9804-6ae621e0b2d4",kB={id:"getCompanyByIdEndpointPathParamsVariableDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"getCompanyByIdEndpointPathParamsVariableDataType"},qB={id:"getCompanyByIdEndpointPathParamsArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointPathParamsArgumentDeclaration"},JB={id:"getCompanyByIdEndpointPathParamsVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:F,asType:!1,defaultValue:{id:"getCompanyByIdEndpointPathParamsVariableDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:g.JSON,value:{},parent:kB,autogeneration:null,valueAsType:null},parent:qB},WB={id:"getCompanyByIdEndpointReachedEntityEventRef",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},HB={id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"getCompanyByIdEndpointRequestHeadersVariableDataType"},YB={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration"},zB={id:"getCompanyByIdEndpointRequestHeadersVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Xe,asType:!1,defaultValue:{id:"getCompanyByIdEndpointRequestHeadersVariableDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:g.JSON,value:{},parent:HB,autogeneration:null,valueAsType:null},parent:YB},ZB={id:"getCompanyByIdEndpointRequestHeadersArgumentDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the request.",type:r.ArgumentDeclaration,writesValues:[],name:"Request headers",dataType:zB,required:!0,index:0,parent:WB},XB={id:"getCompanyByIdEndpointReachedEntityEventRefTwo",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},QB={id:"getCompanyByIdEndpointPathParamsArgumentDeclaration",type:r.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:JB,required:!0,index:1,parent:XB},KB={id:"getCompanyByIdEndpointReachedEntityEventRefThree",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},ew={id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"getCompanyByIdEndpointRequestQueryParamsVariableDataType"},tw={id:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestQueryParamsArgumentDeclaration"},nw={id:"getCompanyByIdEndpointRequestQueryParamsVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,asType:!1,entity:F,defaultValue:{id:"getCompanyByIdEndpointRequestQueryParamsVariableDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:g.JSON,value:{},parent:ew,autogeneration:null,valueAsType:null},parent:tw},rw={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:r.ArgumentDeclaration,writesValues:[],name:"Request query params",dataType:nw,required:!0,index:2,parent:KB},iw={id:"getCompanyByIdEndpointReachedEntityEventRefFour",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},aw={id:"getCompanyByIdEndpointRequestBodyArgumentDeclarationRef",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:"getCompanyByIdEndpointRequestBodyArgumentDeclaration"},sw={id:"getCompanyByIdEndpointRequestBodyVariableDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Xe,defaultValue:null,parent:aw},ow={id:"getCompanyByIdEndpointRequestBodyArgumentDeclaration",version:1,description:"The main data payload of the request.",type:r.ArgumentDeclaration,writesValues:[],name:"Request body",dataType:sw,index:3,required:!0,parent:iw},lw={id:"getCompanyByIdEndpointResponseCodeReturnDeclarationRef",type:r.GenericReference,entityType:r.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseCodeReturnDeclaration"},cw={id:"9ba575b0-6f8e-436d-a3de-3b843622aa17",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:lw},dw={id:"getCompanyByIdEndpointReturnStatementRef",type:r.GenericReference,entityType:r.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},uw={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:r.ReturnDeclaration,name:"Response code",dataType:cw,readsValue:null,required:!0,index:0,parent:dw},pw={id:"getCompanyByIdEndpointResponseHeadersDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"getCompanyByIdEndpointResponseHeadersDataType"},yw={id:"getCompanyByIdEndpointResponseHeadersReturnDeclarationRef",type:r.GenericReference,entityType:r.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseHeadersReturnDeclaration"},hw={id:"getCompanyByIdEndpointResponseHeadersDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!0,isNullable:!1,constant:!1,entity:Xe,asType:!1,defaultValue:{id:"getCompanyByIdEndpointResponseHeadersDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:g.JSON,value:{},parent:pw,autogeneration:null,valueAsType:null},parent:yw},fw={id:"getCompanyByIdEndpointReturnStatementRefTwo",type:r.GenericReference,entityType:r.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},mw={isError:!1,id:"getCompanyByIdEndpointResponseHeadersReturnDeclaration",version:1,description:"A set of any properties, with names and value that transmit metadata about the response.",type:r.ReturnDeclaration,name:"Response headers",dataType:hw,readsValue:null,required:!0,index:1,parent:fw},Tw={id:"getCompanyByIdEndpointResponseBodyReturnDeclarationRef",type:r.GenericReference,entityType:r.ReturnDeclaration,entityId:"getCompanyByIdEndpointResponseBodyReturnDeclaration"},Ew={id:"getCompanyByIdEndpointResponseBodyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,asType:!1,constant:!1,entity:Xe,defaultValue:null,parent:Tw},Rw={id:"getCompanyByIdEndpointReturnStatementRefThree",type:r.GenericReference,entityType:r.ReturnStatement,entityId:"getCompanyByIdEndpointReturnStatement"},bw={isError:!1,id:"getCompanyByIdEndpointResponseBodyReturnDeclaration",version:1,description:"The main data payload of the response.",type:r.ReturnDeclaration,name:"Response body",dataType:Ew,readsValue:null,required:!0,index:2,parent:Rw},vw={id:"getCompanyByIdEndpointReturnStatementCallerRef",type:r.GenericReference,entityId:"getCompanyByIdEndpointReachedEntityEvent",entityType:r.FunctionDeclaration},gw={id:"getCompanyByIdEndpointReachedEntityEventRefFive",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:"getCompanyByIdEndpointReachedEntityEvent"},Iw={id:"getCompanyByIdEndpointReturnStatement",type:r.ReturnStatement,version:1,outputs:[uw,mw,bw],calledByError:[],calledByEntry:[vw],calledBySuccess:[],throws:null,x:0,y:0,parent:gw},Pw={id:"endpointBuiltInBaseEntityRefFour",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:BT},Dw={id:"getCompanyByIdEndpointReachedEntityEvent",name:"Endpoint reached",version:1,type:r.FunctionDeclaration,inputs:[ZB,QB,rw,ow],returnStatements:[Iw],description:"Fired when the endpoint is reached.",calls:[],collapsed:!1,implements:Uo,index:0,private:!1,x:0,y:0,parent:Pw},Aw={id:"getCompanyByIdEndpointPathPropertyDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"getCompanyByIdEndpointPathPropertyDataType"},Sw={id:"getCompanyByIdEndpointPathPropertyRef",type:r.GenericReference,entityType:r.Property,entityId:"getCompanyByIdEndpointPathProperty"},Ow={id:"getCompanyByIdEndpointPathPropertyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,isList:!1,isNullable:!1,constant:!0,entity:F,asType:!1,defaultValue:{id:"getCompanyByIdEndpointPathPropertyDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,name:g.String,value:"/company/{id}",parent:Aw,valueAsType:null,autogeneration:null},parent:Sw},Cw={id:"getCompanyByIdEndpointBaseEntityRefTwo",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},Bw={required:!0,id:"getCompanyByIdEndpointPathProperty",name:"Path",version:1,type:r.Property,private:!1,abstract:!1,static:!0,implements:Go,dataType:Ow,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:Cw},ww={id:"getCompanyByIdEndpointMethodPropertyDataTypeRef",type:r.GenericReference,entityType:r.DataType,entityId:"getCompanyByIdEndpointMethodPropertyDataType"},_w={id:"getCompanyByIdEndpointMethodPropertyRef",type:r.GenericReference,entityType:r.Property,entityId:"getCompanyByIdEndpointMethodProperty"},Mw={id:"getCompanyByIdEndpointMethodPropertyDataType",version:1,type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Rn,isList:!0,isNullable:!1,constant:!0,asType:!1,defaultValue:{id:"getCompanyByIdEndpointMethodPropertyDataTypeDefaultValueId",type:r.PrimitiveValue,version:1,value:"GET",name:g.Enum,parent:ww,valueAsType:null,autogeneration:null},options:["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","CUSTOM"],parent:_w},Nw={id:"getCompanyByIdEndpointBaseEntityRefThree",type:r.GenericReference,entityType:r.BuiltInBaseEntity,entityId:_.HTTP_ENDPOINT},$w={required:!0,id:"getCompanyByIdEndpointMethodProperty",name:"Method",version:1,type:r.Property,private:!1,abstract:!1,static:!0,implements:Fo,index:0,dataType:Mw,description:null,parent:Nw},Vw={type:r.GenericReference,id:"6a905153-8aa8-4424-bd7b-6415731a2725",entityType:r.Project,entityId:J},Lw={type:r.CustomEntity,id:BT,version:1,name:"Get given company data by id",description:null,properties:[Bw,$w],methods:[Dw],static:!0,abstract:!1,abstractMethods:[],extends:[],implements:[Sa],x:0,y:0,parent:Vw},Gw={id:"product-prototype-database-property-ref-id",type:r.GenericReference,entityId:"product-prototype-database-property-id",entityType:r.Property},Fw={id:"product-prototype-database-property-data-type-default-value-parent-ref-id",type:r.GenericReference,entityId:"product-prototype-database-property-data-type-default-value-id",entityType:r.DataType},Uw={id:"product-prototype-database-property-data-type-id",version:1,type:r.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:r.PrimitiveValue,version:1,value:null,name:g.EntityTemplate,valueAsType:ul,autogeneration:null,parent:Fw},parent:Gw},xw={id:"product-prototype-database-property-parent-ref-id",type:r.GenericReference,entityId:"de67fc84-3719-46fd-9ab4-3fca3a3cc50d",entityType:r.CustomEntity},jw={required:!0,id:"product-prototype-database-property-id",name:"Database",version:1,type:r.Property,private:!1,abstract:!1,implements:mi,static:!0,index:0,dataType:Uw,description:"The database that the entity belongs to.",parent:xw},kw={type:r.GenericReference,id:"13a4045e-dcb0-4159-8d33-10a646078b5a",entityType:r.Property,entityId:"d519c26a-15b8-40d8-ad09-13fa9342e9ba"},qw={id:"7449779e-1d4e-409c-81c6-4b611336ed18",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:kw},Jw={type:r.GenericReference,id:"0969562f-d836-406f-8b48-dd9d417fbe72",entityType:r.CustomEntity,entityId:"a2d0ec83-72ce-4f54-b059-a39e018fa86c"},Ww={required:!0,type:r.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:qw,abstract:!1,parent:Jw},Hw={type:r.GenericReference,id:"833a5425-7bd0-41dd-9e97-e018acce9592",entityType:r.Project,entityId:J},Yw={type:r.CustomEntity,id:"a2d0ec83-72ce-4f54-b059-a39e018fa86c",version:1,name:"Product",description:"A product that can be sold",implements:[Be],extends:[],abstract:!1,static:!1,abstractMethods:[],properties:[jw,Ww],methods:[],x:0,y:0,parent:Hw},Li="project-loaded-event-id",Wt="get-bitcoin-price-http-call-operation-id",wT="get-bitcoin-price-http-call-response-body-id",os="validate-bitcoin-price-response-operation-ids",zw={type:r.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:wT},Zw={type:r.GenericReference,id:"validate-bitcoin-data-to-validate-input-map-parent-ref-id",entityType:r.Operation,entityId:os},_T={id:"validate-bitcoin-data-to-validate-input-map-id",type:r.InputMap,version:1,declaration:xn.fixedArguments[1],name:null,description:null,readsValue:zw,defaultValue:null,dynamicArguments:[],index:0,parent:Zw},Xw={type:r.GenericReference,id:"validate-bitcoin-type-to-match-input-map-default-value-parent-ref-id",entityType:r.InputMap,entityId:"validate-bitcoin-type-to-match-input-map-id"},Qw={type:r.GenericReference,id:"validate-bitcoin-type-to-match-input-map-parent-ref-id",entityType:r.Operation,entityId:os},Kw={id:"validate-bitcoin-type-to-match-input-map-id",type:r.InputMap,version:1,declaration:xn.fixedArguments[0],name:null,description:null,readsValue:null,defaultValue:{id:"validate-bitcoin-type-to-match-input-map-default-value-id",type:r.PrimitiveValue,version:1,name:g.EntityTemplate,valueAsType:fT,value:null,parent:Xw,autogeneration:null},dynamicArguments:[],index:0,parent:Qw},e_={type:r.GenericReference,id:"validate-bitcoin-validated-entity-output-map-parent-ref-id",entityType:r.Operation,entityId:os},t_={id:"validate-bitcoin-validated-entity-output-map-id",type:r.OutputMap,version:1,declaration:xn.fixedReturns[0],writesValues:[],index:0,parent:e_},n_={type:r.GenericReference,id:"validate-bitcoin-price-response-operation-parent-ref-id",entityType:r.GlobalEvent,entityId:Li},r_={type:r.GenericReference,id:"validate-bitcoin-price-response-operation-called-by-ref-id",entityType:r.Operation,entityId:Wt},i_={type:r.Operation,id:os,version:1,declaration:xn,inputs:[Kw,_T],outputs:[t_],process:null,dynamicArguments:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[r_],parent:n_},a_={type:r.GenericReference,id:"96edb661-3f36-406c-8921-f1679dd796a3",entityType:r.FunctionCall,entityId:Wt},s_={id:"c93e1393-9b5e-4de2-b8da-7eae647d715a",version:1,type:r.InputMap,declaration:ba,name:null,description:null,readsValue:null,defaultValue:null,dynamicArguments:[],index:0,parent:a_},o_={type:r.GenericReference,id:"40312b28-71b8-4b01-a654-58b87191939d",entityType:r.FunctionCall,entityId:Wt},l_={type:r.GenericReference,id:"6ea96c7d-02a7-4971-82ad-2f32a0fec8b4",entityType:r.InputMap,entityId:"9f21cbac-5a83-4983-8923-9224ffd3ba9f"},c_={id:"9f21cbac-5a83-4983-8923-9224ffd3ba9f",version:1,type:r.InputMap,declaration:va,name:null,description:null,readsValue:null,defaultValue:{id:"get-bitcoin-price-http-request-url-argument-default-value-id",type:r.PrimitiveValue,version:1,value:"https://api.coindesk.com/v1/bpi/currentprice.json",name:g.String,parent:l_,valueAsType:null,autogeneration:null},index:1,dynamicArguments:[],parent:o_},d_={type:r.GenericReference,id:"2610bf4a-c8a2-4746-b6cc-eb15f7fa8e9c",entityType:r.FunctionCall,entityId:Wt},u_={id:"ffb3cd9d-c955-4104-bc7b-299120fe4ede",version:1,type:r.InputMap,declaration:ga,name:null,description:null,readsValue:null,dynamicArguments:[],defaultValue:null,index:2,parent:d_},p_={type:r.GenericReference,id:"bfd29a6a-671a-448c-9f2f-f8c7e4ad8349",entityType:r.FunctionCall,entityId:Wt},y_={id:"412bf1f3-1a8e-4665-a95f-82117540e34e",version:1,type:r.InputMap,declaration:Ia,name:null,description:null,readsValue:null,dynamicArguments:[],defaultValue:null,index:3,parent:p_},h_={type:r.GenericReference,id:"616a15f3-c224-4b11-b95c-63314edef409",entityType:r.FunctionCall,entityId:Wt},f_={id:"4dd4651c-02e4-45f1-b50f-824f3bcb1648",version:1,type:r.OutputMap,declaration:Pa,writesValues:[],index:1,parent:h_},m_={type:r.GenericReference,id:"28793b68-4d7e-4826-aee1-f201a3499faf",entityType:r.FunctionCall,entityId:Wt},T_={id:"94fe9d35-4dd4-4729-a50c-5283ccd7e661",version:1,type:r.OutputMap,declaration:$o,writesValues:[],index:0,parent:m_},E_={type:r.GenericReference,id:"f13e04b2-49b4-4c69-85b8-cbbafafa3524",entityType:r.FunctionCall,entityId:Wt},R_={id:wT,type:r.OutputMap,version:1,declaration:yi,writesValues:[_T],index:2,parent:E_},b_={type:r.GenericReference,id:"6148d6d0-caaa-45fc-b601-ff2493dfc60f",entityType:r.FunctionDeclaration,entityId:Wt},v_={type:r.GenericReference,id:"b115f084-807b-44b3-ae01-b69cc342f761",entityType:r.GlobalEvent,entityId:Li},g_={type:r.Operation,id:Wt,version:1,declaration:hi,inputs:[s_,c_,u_,y_],outputs:[T_,f_,R_],process:null,parent:v_,calledByError:[],calledByEntry:[b_],calledBySuccess:[],dynamicArguments:[],successCalls:[i_],errorCalls:[],error:null,x:0,y:0},I_={type:r.GenericReference,id:"24e76019-3f94-475b-91ce-297f76bbc224",entityType:r.GlobalEvent,entityId:Li},P_={type:r.GenericReference,id:"0eac8e29-cdf2-42f8-8ea7-ad76d4d79abe",entityType:r.GlobalEvent,entityId:Li},D_={process:null,type:r.FunctionCall,id:"2d2e7593-bfbf-457c-a607-5fce18eef457",version:1,declaration:ml,inputs:[],outputs:[],calledByError:[],calledByEntry:[I_],calledBySuccess:[],parent:P_,successCalls:[],errorCalls:[],error:null,x:0,y:0},A_={id:"793b5999-a9da-47fb-9665-0c17ebc6d5c9",type:r.GenericReference,entityType:r.Project,entityId:"2e7eb5382-3d99-44fd-972a-b8b1e819f6be"},S_={type:r.GlobalEvent,id:Li,version:1,name:Kt.PROJECT_PUBLICATION_COMPLETED,returnStatements:[],collapsed:!1,implements:_a,parent:A_,inputs:[],calls:[D_,g_],x:0,y:0},Bt="abort-execution-func-declaration-id",Gi="abort-execution-func-exec-var-declaration-id",ls="abort-execution-func-small-wait-op-id",Tl="abort-execution-func-long-wait-op-id",MT="abort-execution-func-long-wait-process-output-id",NT="abort-execution-func-exec-var-instance-write-id",$T="abort-execution-func-long-wait-return-stmt-id",VT="abort-execution-func-small-wait-return-stmt-id",O_="abort-execution-func-exec-var-instance-abort-call-id",El="abort-execution-func-exec-var-instance-abort-internal-call-id",LT="abort-execution-func-exec-second-wait-op-id",C_={type:r.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-parent-ref-id",entityType:r.ReturnDeclaration,entityId:"short-wait-return-statement-returned-hello-string-id"},B_={type:r.GenericReference,id:"short-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",entityType:r.DataType,entityId:"short-wait-return-statement-returned-hello-string-data-type-id"},w_={id:"short-wait-return-statement-returned-hello-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:{id:"short-wait-return-statement-returned-hello-string-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:g.String,value:"Hello 2",autogeneration:null,valueAsType:null,parent:B_},constant:!1,parent:C_},__={type:r.GenericReference,id:"short-wait-return-statement-returned-hello-string-parent-ref-id",entityType:r.ReturnStatement,entityId:VT},M_={isError:!1,id:"short-wait-return-statement-returned-hello-string-id",type:r.ReturnDeclaration,version:1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",dataType:w_,readsValue:null,required:!0,index:0,parent:__},N_={type:r.GenericReference,id:"short-wait-return-statement-called-by-ref-id",entityType:r.Operation,entityId:ls},$_={type:r.GenericReference,id:"short-wait-return-statement-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Bt},GT={type:r.ReturnStatement,id:VT,version:1,outputs:[M_],calledByError:[],calledByEntry:[],calledBySuccess:[N_],throws:null,x:0,y:0,parent:$_},V_={type:r.GenericReference,id:"second-wait-argument-default-value-parent-ref-id",entityType:r.InputMap,entityId:"second-wait-argument-map-id"},L_={type:r.GenericReference,id:"second-wait-argument-map-parent-ref-id",entityType:r.Operation,entityId:LT},G_={id:"second-wait-argument-map-id",type:r.InputMap,version:1,declaration:Un,name:null,description:null,dynamicArguments:[],readsValue:null,defaultValue:{id:"second-wait-argument-default-value-id",type:r.PrimitiveValue,version:1,value:2e3,valueAsType:null,autogeneration:null,name:g.Number,parent:V_},index:0,parent:L_},F_={type:r.GenericReference,id:"small-wait-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Bt},U_={type:r.GenericReference,id:"small-wait-called-by-ref-one-id",entityType:r.InternalCall,entityId:El},x_={id:LT,type:r.Operation,version:1,declaration:ot,inputs:[G_],dynamicArguments:[],outputs:[],process:null,successCalls:[GT],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[U_],error:null,parent:F_},j_={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-one-id",entityType:r.VariableInstance,entityId:NT},k_={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-abort-internal-call-called-by-ref-two-id",entityType:r.Operation,entityId:ls},q_={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-main-project-ref-id",entityType:r.FunctionDeclaration,entityId:Bt},J_={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",entityType:r.VariableDeclaration,entityId:Gi},W_={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-internal-call-ref-one-id",entityType:r.InternalCall,entityId:El},H_={id:O_,type:r.VariableInstance,version:1,declaration:J_,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[W_],parent:q_},FT={id:El,type:r.InternalCall,version:1,inputs:[],outputs:[],declaration:qo,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[j_,k_],successCalls:[x_],errorCalls:[],error:null,index:0,parent:H_},Y_={type:r.GenericReference,id:"abort-exec-func-var-write-instance-main-project-ref-id",entityType:r.FunctionDeclaration,entityId:Bt},z_={type:r.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-one-id",entityType:r.VariableDeclaration,entityId:Gi},Z_={type:r.GenericReference,id:"abort-exec-func-var-write-instance-called-by-ref-two-id",entityType:r.FunctionDeclaration,entityId:Bt},X_={type:r.GenericReference,id:"abort-exec-func-abort-call-var-instance-declaration-ref-id",entityType:r.VariableDeclaration,entityId:Gi},Q_={type:r.GenericReference,id:"abort-exec-func-var-write-instance-reads-value-ref-id",entityType:r.OutputMap,entityId:MT},Rl={id:NT,type:r.VariableInstance,version:1,declaration:X_,inputs:[],outputs:[],calledByError:[],calledByEntry:[Z_],calledBySuccess:[z_],successCalls:[FT],errorCalls:[],x:0,y:0,readsValue:Q_,writesValues:[],internalCalls:[],parent:Y_},K_={type:r.GenericReference,id:"abort-exec-func-var-decl-datatype-parent-ref-id",entityType:r.VariableDeclaration,entityId:Gi};r.GenericReference,r.DataType;const eM={id:"abort-exec-func-var-decl-datatype-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Jo,version:1,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:K_,defaultValue:null},tM={type:r.GenericReference,id:"abort-exec-func-var-decl-main-project-ref-id",entityType:r.FunctionDeclaration,entityId:Bt},nM={type:r.GenericReference,id:"abort-exec-func-var-decl-called-by-ref-one-id",entityType:r.FunctionDeclaration,entityId:Bt},rM={id:Gi,type:r.VariableDeclaration,version:1,name:"Execution in progress",description:"A variable that holds an ongoing execution to abort it if needed",dataType:eM,inputs:[],outputs:[],calledByError:[],calledByEntry:[nM],calledBySuccess:[],successCalls:[Rl],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:tM},iM={type:r.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-parent-ref-id",entityType:r.ReturnDeclaration,entityId:"long-wait-return-statement-returned-hello-string-id"},aM={type:r.GenericReference,id:"long-wait-return-statement-returned-hello-string-data-type-default-value-parent-ref-id",entityType:r.DataType,entityId:"long-wait-return-statement-returned-hello-string-data-type-id"},sM={id:"long-wait-return-statement-returned-hello-string-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,asType:!1,isList:!1,isNullable:!1,defaultValue:{id:"long-wait-return-statement-returned-hello-string-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:g.String,value:"Hello 1",autogeneration:null,valueAsType:null,parent:aM},constant:!1,parent:iM},oM={type:r.GenericReference,id:"long-wait-return-statement-returned-hello-string-parent-ref-id",entityType:r.ReturnStatement,entityId:$T},lM={isError:!1,id:"long-wait-return-statement-returned-hello-string-id",type:r.ReturnDeclaration,version:1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",dataType:sM,readsValue:null,required:!0,index:0,parent:oM},cM={type:r.GenericReference,id:"long-wait-return-statement-called-by-ref-id",entityType:r.Operation,entityId:Tl},dM={type:r.GenericReference,id:"long-wait-return-statement-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Bt},UT={type:r.ReturnStatement,id:$T,version:1,outputs:[lM],calledByError:[],calledByEntry:[],calledBySuccess:[cM],throws:null,x:0,y:0,parent:dM},uM={type:r.GenericReference,id:"long-argument-default-value-parent-ref-id",entityType:r.InputMap,entityId:"long-argument-map-id"},xT={type:r.GenericReference,id:"long-argument-map-parent-ref-id",entityType:r.Operation,entityId:Tl},pM={id:"long-argument-map-id",type:r.InputMap,version:1,declaration:Un,name:null,description:null,dynamicArguments:[],readsValue:null,defaultValue:{id:"long-argument-default-value-id",type:r.PrimitiveValue,version:1,value:1500,valueAsType:null,autogeneration:null,name:g.Number,parent:uM},index:0,parent:xT},yM={type:r.GenericReference,id:"long-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Bt},hM={type:r.GenericReference,id:"long-called-by-ref-one-id",entityType:r.FunctionDeclaration,entityId:Bt},fM={id:MT,type:r.OutputMap,version:1,declaration:Ho,writesValues:[Rl],index:0,parent:xT},mM={id:Tl,type:r.Operation,version:1,declaration:ot,inputs:[pM],dynamicArguments:[],outputs:[],process:fM,successCalls:[UT],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[hM],calledBySuccess:[],error:null,parent:yM},TM={type:r.GenericReference,id:"small-wait-argument-default-value-parent-ref-id",entityType:r.InputMap,entityId:"small-wait-argument-map-id"},EM={type:r.GenericReference,id:"small-wait-argument-map-parent-ref-id",entityType:r.Operation,entityId:ls},RM={id:"small-wait-argument-map-id",type:r.InputMap,version:1,declaration:Un,name:null,description:null,dynamicArguments:[],readsValue:null,defaultValue:{id:"small-wait-argument-default-value-id",type:r.PrimitiveValue,version:1,value:500,valueAsType:null,autogeneration:null,name:g.Number,parent:TM},index:0,parent:EM},bM={type:r.GenericReference,id:"small-wait-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Bt},vM={type:r.GenericReference,id:"small-wait-called-by-ref-one-id",entityType:r.FunctionDeclaration,entityId:Bt},gM={id:ls,type:r.Operation,version:1,declaration:ot,inputs:[RM],dynamicArguments:[],outputs:[],process:null,successCalls:[FT],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[vM],calledBySuccess:[],error:null,parent:bM},IM={type:r.GenericReference,id:"abort-execution-func-decl-parent-ref-id",entityType:r.Project,entityId:J},jT={id:"abort-execution-func-decl-id",type:r.FunctionDeclaration,version:1,name:"Test aborting execution",description:"Executes a wait and then aborts the execution of that wait",inputs:[],returnStatements:[UT,GT],calls:[gM,rM,Rl,mM],implements:null,private:!1,collapsed:!1,index:null,x:0,y:0,parent:IM},PM={type:r.GenericReference,id:"call-execution-abort-func-parent-ref-id",entityType:r.Project,entityId:J},DM={id:"call-execution-abort-func-id",type:r.FunctionCall,version:1,declaration:jT,inputs:[],process:null,outputs:[],successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:PM},bl="manual-hello-world-loop-func-decl-id",kT="manual-hello-world-loop-func-return-statement-id",an="manual-hello-world-loop-id",Fi="manual-hello-world-loop-body-id",qT="manual-hello-world-loop-break-statement-id",cs="manual-hello-world-loop-current-iteration-number-output-map-id",vl="manual-hello-world-loop-previous-iterations-results-output-map-id",gl="assembled-hello-world-text-output-id",JT="assembled-hello-world-list-output-id",Ui="iteration-number-is-equal-or-greater-than-10-condition-id",ds="join-hello-world-and-number-operation-id",us="append-string-to-list-operation-id",WT="hello-world-loop-output-map-id",AM={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-parent-ref",entityType:r.ReturnStatement,entityId:kT},SM={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-data-type-parent-ref",entityType:r.ReturnDeclaration,entityId:"manual-hello-world-loop-function-declaration-output-declaration"},OM={id:"manual-hello-world-loop-function-declaration-output-declaration-data-type",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!0,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:SM},CM={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-output-declaration-reads-value-ref",entityType:r.OutputMap,entityId:WT},HT={isError:!1,id:"manual-hello-world-loop-function-declaration-output-declaration",version:1,type:r.ReturnDeclaration,name:"Results",description:null,dataType:OM,readsValue:CM,required:!0,index:0,parent:AM},BM={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-return-statement-called-by-ref",entityType:r.Loop,entityId:an},wM={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref",entityType:r.FunctionDeclaration,entityId:bl},YT={type:r.ReturnStatement,id:kT,version:1,outputs:[HT],calledByError:[],calledByEntry:[],calledBySuccess:[BM],parent:wM,throws:null,x:0,y:0},_M={type:r.GenericReference,id:"hello-world-loop-break-statement-ref-id",entityType:r.BreakStatement,entityId:qT},MM={type:r.GenericReference,id:"hello-world-loop-break-statement-output-data-type-ref-id",entityType:r.ReturnDeclaration,entityId:"hello-world-loop-break-statement-output-id"},NM={id:"hello-world-loop-break-statement-output-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!0,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:MM},$M={type:r.GenericReference,id:"hello-world-loop-break-statement-reads-value-ref-id",entityType:r.OutputMap,entityId:gl},Il={isError:!1,id:"hello-world-loop-break-statement-output-id",version:1,type:r.ReturnDeclaration,name:"Iteration result",description:null,dataType:NM,readsValue:$M,required:!0,index:0,parent:_M},VM={type:r.GenericReference,id:"hello-world-loop-break-statement-called-by-ref-id",entityType:r.Condition,entityId:Ui},LM={type:r.GenericReference,id:"hello-world-loop-break-statement-parent-ref-id",entityType:r.Loop,entityId:an},zT={type:r.BreakStatement,id:qT,version:1,outputs:[Il],calledByError:[],calledByEntry:[],calledBySuccess:[VM],parent:LM,throws:null,x:0,y:0},GM={type:r.GenericReference,id:"hello-world-loop-continue-statement-ref-id",entityType:r.ContinueStatement,entityId:"hello-world-loop-continue-statement"},FM={type:r.GenericReference,id:"hello-world-loop-continue-statement-output-data-type-ref-id",entityType:r.ReturnDeclaration,entityId:"hello-world-loop-continue-statement-output-id"},UM={id:"hello-world-loop-continue-statement-output-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:null,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:FM},xM={type:r.GenericReference,id:"hello-world-loop-continue-statement-reads-value-ref-id",entityType:r.OutputMap,entityId:gl},ZT={isError:!1,id:"hello-world-loop-continue-statement-output-id",version:1,type:r.ReturnDeclaration,name:"Iteration result",description:null,dataType:UM,readsValue:xM,required:!0,index:0,parent:GM},jM={type:r.GenericReference,id:"hello-world-loop-continue-statement-called-by-ref-id",entityType:r.Condition,entityId:Ui},kM={type:r.GenericReference,id:"hello-world-loop-continue-statement-parent-ref-id",entityType:r.Loop,entityId:an},XT={type:r.ContinueStatement,id:"hello-world-loop-continue-statement",version:1,outputs:[ZT],calledBySuccess:[],calledByError:[jM],calledByEntry:[],parent:kM,throws:null,x:0,y:0};r.GenericReference,r.InputMap;const qM={type:r.GenericReference,id:"append-string-to-list-base-string-map-parent-ref-id",entityType:r.Operation,entityId:us},JM={type:r.GenericReference,id:"base-string-map-reads-value-ref-id",entityType:r.OutputMap,entityId:vl},QT={id:"append-string-to-list-base-string-map-id",type:r.InputMap,version:1,declaration:So,name:null,description:null,readsValue:JM,defaultValue:null,dynamicArguments:[],index:0,parent:qM},WM={type:r.GenericReference,id:"assembly-string-map-parent-ref-id",entityType:r.Operation,entityId:us},HM={id:JT,type:r.OutputMap,version:1,writesValues:[Il],declaration:ui,index:0,parent:WM},YM={type:r.GenericReference,id:"append-string-to-list-called-by-ref-id",entityType:r.Condition,entityId:Ui},zM={type:r.GenericReference,id:"latest-string-to-add-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:JT},ZM={type:r.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:r.Operation,entityId:us},KT={id:"latest-string-to-add-input-map-id",version:1,type:r.InputMap,declaration:Oo,name:null,description:null,readsValue:zM,dynamicArguments:[],defaultValue:null,index:1,parent:ZM},XM={type:r.GenericReference,id:"append-string-to-list-parent-ref-id",entityType:r.FunctionDeclaration,entityId:an},QM={type:r.Operation,id:us,declaration:Ra,version:1,inputs:[QT,KT],outputs:[HM],calledByError:[],process:null,calledByEntry:[],calledBySuccess:[YM],dynamicArguments:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:XM},KM={type:r.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:Fi},eN={type:r.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-parent-ref-id",entityType:r.Loop,entityId:an},tN={type:r.GenericReference,id:"current-iteration-number-to-check-map-reads-value-ref-id",entityType:r.OutputMap,entityId:cs},eE={type:r.GenericReference,id:"iteration-number-is-equal-or-greater-than-10-condition-ref-two-id",entityType:r.Condition,entityId:Ui},nN={id:"current-iteration-number-to-check-map-id",version:1,type:r.InputMap,declaration:Br.fixedArguments[0],name:null,description:null,dynamicArguments:[],readsValue:tN,index:1,defaultValue:null,parent:eE},rN={type:r.GenericReference,id:"max-num-iterations-value-map-default-value-parent-ref-id",entityType:r.InputMap,entityId:"max-num-iterations-value-map-id"},iN={id:"max-num-iterations-value-map-id",version:1,type:r.InputMap,declaration:Br.fixedArguments[1],name:null,description:null,dynamicArguments:[],readsValue:null,index:0,defaultValue:{id:"max-num-iterations-value-map-default-value-id",type:r.PrimitiveValue,version:1,name:g.Number,value:10,autogeneration:null,valueAsType:null,parent:rN},parent:eE},aN={type:r.Condition,id:Ui,version:1,declaration:Br,inputs:[iN,nN],calledByError:[],calledByEntry:[KM],calledBySuccess:[],successCalls:[zT,QM],errorCalls:[XT],x:0,y:0,parent:eN},sN={type:r.GenericReference,id:"base-string-map-ref-id",entityType:r.InputMap,entityId:"join-hello-world-and-number-base-string-map-id"},oN={type:r.GenericReference,id:"join-hello-world-and-number-base-string-map-parent-ref-id",entityType:r.Operation,entityId:ds},lN={id:"join-hello-world-and-number-base-string-map-id",type:r.InputMap,version:1,declaration:Ta,name:null,description:null,readsValue:null,defaultValue:{id:"join-hello-world-and-number-base-string-map-default-value-id",type:r.PrimitiveValue,version:1,value:"Hello world ",name:g.String,parent:sN,valueAsType:null,autogeneration:null},dynamicArguments:[],index:0,parent:oN},cN={type:r.GenericReference,id:"assembly-string-map-parent-ref-id",entityType:r.Operation,entityId:ds},dN={id:gl,type:r.OutputMap,version:1,writesValues:[KT,ZT],declaration:ui,index:0,parent:cN},uN={type:r.GenericReference,id:"join-hello-world-and-number-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:Fi},pN={type:r.GenericReference,id:"current-iteration-number-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:cs},yN={type:r.GenericReference,id:"62b4afb0-6c21-4b0f-abd3-cebef7b17c28",entityType:r.Operation,entityId:ds},tE={id:"current-iteration-number-input-map-id",version:1,type:r.InputMap,declaration:Ea,name:null,description:null,readsValue:pN,dynamicArguments:[],defaultValue:null,index:1,parent:yN},hN={type:r.GenericReference,id:"join-hello-world-and-number-parent-ref-id",entityType:r.FunctionDeclaration,entityId:an},fN={type:r.Operation,id:ds,declaration:pi,version:1,inputs:[lN,tE],outputs:[dN],process:null,calledByError:[],calledByEntry:[uN],calledBySuccess:[],dynamicArguments:[],successCalls:[],errorCalls:[],error:null,x:0,y:0,parent:hN},mN={id:"manual-hello-world-loop-iterations-results-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:vl,entityType:r.ArgumentDeclaration},TN={id:"manual-hello-world-loop-iterations-results-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!0,isNullable:!1,constant:!1,entity:null,asType:!1,defaultValue:null,parent:mN},EN={id:"manual-hello-world-loop-previous-iterations-results-output-map-parent-ref-id",type:r.GenericReference,entityId:Fi,entityType:r.FunctionDeclaration},RN={id:vl,type:r.ArgumentDeclaration,version:1,name:"Previous iterations results",description:"The results of the previous iterations of the loop.",required:!0,dataType:TN,writesValues:[QT],index:1,parent:EN},bN={id:"manual-hello-world-loop-current-iteration-number-output-map-parent-ref-id",type:r.GenericReference,entityId:Fi,entityType:r.FunctionDeclaration},vN={id:"manual-flow-loop-current-iteration-number-declaration-data-type-parent-ref-id",type:r.GenericReference,entityId:cs,entityType:r.ArgumentDeclaration};r.DataType;const gN={id:cs,type:r.ArgumentDeclaration,version:1,name:"Current iteration number",description:"The number of the current iteration of the loop. Starts at 1.",required:!0,dataType:null,writesValues:[tE],index:0,parent:bN},IN={id:"manual-flow-loop-body-parent-ref-id",type:r.GenericReference,entityId:an,entityType:r.Loop},PN={id:Fi,type:r.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called multiple times, once for each iteration of the loop.",inputs:[gN,RN],calls:[aN,fN],implements:null,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:IN},DN={type:r.GenericReference,id:"hello-world-loop-break-statement-output-map-parent-ref-id",entityType:r.Loop,entityId:an},AN={type:r.OutputMap,id:WT,version:1,declaration:Il,writesValues:[HT],index:0,parent:DN},SN={id:"manual-hello-world-loop-parent-ref-id",type:r.GenericReference,entityId:J,entityType:r.Project},ON={id:"manual-hello-world-loop-called-by-ref-id",type:r.GenericReference,entityId:bl,entityType:r.FunctionDeclaration},CN={id:an,type:r.Loop,version:1,declaration:Lo,inputs:[],outputs:[AN],body:PN,successCalls:[YT],errorCalls:[],process:null,error:null,calledByError:[],calledByEntry:[ON],calledBySuccess:[],breakStatements:[zT],continueStatements:[XT],x:0,y:0,parent:SN},BN={type:r.GenericReference,id:"manual-hello-world-loop-function-declaration-parent-ref-id",entityType:r.Project,entityId:J},nE={type:r.FunctionDeclaration,id:bl,version:1,name:"Manual hello world loop",description:null,inputs:[],calls:[CN],returnStatements:[YT],implements:null,collapsed:!1,private:!1,index:null,x:0,y:0,parent:BN},wN={type:r.GenericReference,id:"call-hello-world-loop-parent-ref-id",entityType:r.Project,entityId:J},_N={id:"call-hello-world-loop-id",type:r.FunctionCall,version:1,declaration:nE,inputs:[],outputs:[],process:null,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:wN},sn="company-dto-function-declaration-id",Pl="company-dto-func-declaration-argument-dcl-id",Ht="company-dto-function-company-variable-id",Cn="company-dto-function-company-dto-variable-id",Fr="iterate-over-employee-list-loop-id",rE="iterate-over-employee-list-loop-employee-dto-output-map-id",Dl="iterate-over-employee-list-loop-body-current-employee-argument-declaration-id",xi="iterate-over-employee-list-loop-body-map-employee-dto-function-call-id",iE="iterate-over-employee-list-continue-statement-employee-dto-output-decl-id",MN="iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-id",aE="iterate-over-employee-list-continue-statement-id",ps="iterate-over-employee-list-loop-body-id",sE="company-dto-func-declaration-return-statement-id",oE="company-dto-func-declaration-return-decl-id",lE="company-dto-func-declaration-company-variable-id-output-map-id",cE="company-dto-func-declaration-company-variable-employess-output-map-id",dE="company-dto-func-declaration-company-variable-name-output-map-id",NN="company-dto-func-declaration-company-dto-variable-input-map-id",$N="company-dto-func-declaration-company-dto-variable-employess-input-map-id",VN="company-dto-func-declaration-company-dto-variable-name-input-map-id",ys="company-dto-func-declaration-owner-variable-id",LN="company-dto-func-declaration-company-dto-variable-owner-input-map-id",uE="company-dto-func-declaration-company-variable-owner-output-map-id",pE="company-dto-func-declaration-owner-variable-id-output-map-id",hs="company-dto-func-declaration-bank-account-variable-id",GN="company-dto-func-declaration-company-dto-variable-bank-account-input-map-id",yE="company-dto-func-declaration-company-variable-bank-account-output-map-id",hE="company-dto-func-declaration-bank-account-variable-id-output-map-id",FN={type:r.GenericReference,id:"company-dto-func-returned-company-dto-data-type-parent-ref-id",entityType:r.ReturnDeclaration,entityId:oE},UN={id:"company-dto-func-returned-company-dto-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:FN},xN={type:r.GenericReference,id:"company-dto-func-returned-company-dto-parent-ref-id",entityType:r.ReturnStatement,entityId:sE},jN={type:r.GenericReference,id:"company-dto-func-returned-company-dto-reads-value-ref-id",entityType:r.VariableDeclaration,entityId:Cn},fE={isError:!1,id:oE,type:r.ReturnDeclaration,version:1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",dataType:UN,readsValue:jN,required:!0,index:0,parent:xN},kN={type:r.GenericReference,id:"company-dto-func-return-statement-called-by-ref-id",entityType:r.Operation,entityId:Cn},qN={type:r.GenericReference,id:"company-dto-func-return-statement-parent-ref-id",entityType:r.FunctionDeclaration,entityId:sn},Al={type:r.ReturnStatement,id:sE,version:1,outputs:[fE],calledByError:[],calledByEntry:[],calledBySuccess:[kN],throws:null,x:0,y:0,parent:qN},JN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-owner-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:pE},WN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-owner-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Cn},mE={id:LN,type:r.InputMap,version:1,declaration:null,name:"owner_id",description:null,defaultValue:null,dynamicArguments:[],index:5,readsValue:JN,parent:WN},HN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:hE},YN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-bank-account-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Cn},TE={id:GN,type:r.InputMap,version:1,declaration:null,name:"bank_account_id",description:null,defaultValue:null,dynamicArguments:[],index:4,readsValue:HN,parent:YN},zN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-name-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:dE},ZN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-name-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Cn},EE={id:VN,type:r.InputMap,version:1,declaration:null,name:"name",description:null,defaultValue:null,dynamicArguments:[],index:3,readsValue:zN,parent:ZN},XN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-employess-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:rE},QN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-employess-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Cn},RE={id:$N,type:r.InputMap,version:1,declaration:null,name:"employees",description:null,defaultValue:null,dynamicArguments:[],index:2,readsValue:XN,parent:QN},KN={type:r.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-reads-value-ref-id",entityType:r.OutputMap,entityId:lE},e0={type:r.GenericReference,id:"company-dto-func-company-dto-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Cn},bE={id:NN,type:r.InputMap,version:1,declaration:null,name:"id",description:"The ID of the company",defaultValue:null,dynamicArguments:[],index:1,readsValue:KN,parent:e0},t0={type:r.GenericReference,id:"company-dto-func-company-dto-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:sn},n0={type:r.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-one-id",entityType:r.VariableDeclaration,entityId:hs},r0={type:r.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-two-id",entityType:r.VariableDeclaration,entityId:ys},i0={type:r.GenericReference,id:"company-dto-func-company-dto-variable-called-by-ref-three-id",entityType:r.VariableDeclaration,entityId:Fr},Sl={id:Cn,type:r.VariableDeclaration,version:1,name:"Company DTO",dataType:null,description:"A variable holding the data of a mapped company DTO",calledByError:[],calledByEntry:[],calledBySuccess:[n0,r0,i0],successCalls:[Al],errorCalls:[],readsValue:null,writesValues:[fE],inputs:[bE,EE,TE,mE,RE],outputs:[],internalCalls:[],parent:t0,x:0,y:0},Yn="employee-dto-func-declaration-id",Ol="employee-dto-func-declaration-argument-dcl-id",vE="employee-dto-func-declaration-return-statement-id",gE="employee-dto-func-declaration-return-decl-id",zn="employee-dto-func-declaration-employee-variable-id",Zn="employee-dto-func-declaration-employee-dto-variable-id",fs="employee-dto-func-declaration-manager-variable-id",IE="employee-dto-func-declaration-employee-variable-id-output-map-id",PE="employee-dto-func-declaration-employee-variable-birth-date-output-map-id",DE="employee-dto-func-declaration-employee-variable-department-output-map-id",AE="employee-dto-func-declaration-employee-variable-manager-output-map-id",SE="employee-dto-func-declaration-manager-variable-id-output-map-id",a0="employee-dto-func-declaration-employee-dto-variable-input-map-id",s0="employee-dto-func-declaration-employee-dto-variable-birth-date-input-map-id",o0="employee-dto-func-declaration-employee-dto-variable-department-input-map-id",l0="employee-dto-func-declaration-employee-dto-variable-manager-input-map-id",c0={type:r.GenericReference,id:"employee-dto-func-returned-employee-dto-data-type-parent-ref-id",entityType:r.ReturnDeclaration,entityId:gE},d0={id:"employee-dto-func-returned-employee-dto-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:c0},u0={type:r.GenericReference,id:"employee-dto-func-returned-employee-dto-parent-ref-id",entityType:r.ReturnStatement,entityId:vE},p0={type:r.GenericReference,id:"employee-dto-func-returned-employee-dto-reads-value-ref-id",entityType:r.VariableDeclaration,entityId:Zn},OE={isError:!1,id:gE,type:r.ReturnDeclaration,version:1,name:"Employee DTO",description:"Output the employee data in the format that it will be sent through an HTTP request.",dataType:d0,readsValue:p0,required:!0,index:0,parent:u0},y0={type:r.GenericReference,id:"employee-dto-func-return-statement-called-by-ref-id",entityType:r.Operation,entityId:Zn},h0={type:r.GenericReference,id:"employee-dto-func-return-statement-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Yn},Cl={type:r.ReturnStatement,id:vE,version:1,outputs:[OE],calledByError:[],calledByEntry:[],calledBySuccess:[y0],throws:null,x:0,y:0,parent:h0},f0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:SE},m0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-manager-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Zn},CE={id:l0,type:r.InputMap,version:1,declaration:null,name:"manager_id",description:null,defaultValue:null,dynamicArguments:[],index:4,readsValue:f0,parent:m0},T0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-department-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:DE},E0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-department-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Zn},BE={id:o0,type:r.InputMap,version:1,declaration:null,name:"department_name",description:null,defaultValue:null,dynamicArguments:[],index:3,readsValue:T0,parent:E0},R0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:PE},b0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-birth-date-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Zn},wE={id:s0,type:r.InputMap,version:1,declaration:null,name:"birth_date",description:null,defaultValue:null,dynamicArguments:[],index:2,readsValue:R0,parent:b0},v0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-reads-value-ref-id",entityType:r.OutputMap,entityId:IE},g0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Zn},_E={id:a0,type:r.InputMap,version:1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,dynamicArguments:[],index:1,readsValue:v0,parent:g0},I0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Yn},P0={type:r.GenericReference,id:"employee-dto-func-employee-dto-variable-called-by-ref-id",entityType:r.VariableDeclaration,entityId:fs},D0={id:Zn,type:r.VariableDeclaration,version:1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",calledByError:[],calledByEntry:[],calledBySuccess:[P0],successCalls:[Cl],errorCalls:[],readsValue:null,writesValues:[OE],inputs:[_E,wE,BE,CE],outputs:[],internalCalls:[],parent:I0,x:0,y:0},A0={type:r.GenericReference,id:"employee-dto-func-manager-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:fs},S0={id:SE,type:r.OutputMap,version:1,declaration:Be.properties[1],index:0,writesValues:[CE],parent:A0},O0={type:r.GenericReference,id:"employee-dto-func-manager-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:fs},C0={id:"employee-dto-func-manager-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:It,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:O0,defaultValue:null},B0={type:r.GenericReference,id:"employee-dto-func-manager-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:AE},w0={type:r.GenericReference,id:"employee-dto-func-manager-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Yn};r.GenericReference,r.VariableDeclaration;const ME={id:fs,type:r.VariableDeclaration,version:1,name:"Manager",dataType:C0,description:"A variable holding an inherited manager",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[D0],errorCalls:[],readsValue:B0,writesValues:[],inputs:[],outputs:[S0],internalCalls:[],parent:w0,x:0,y:0},_0={type:r.GenericReference,id:"employee-dto-func-employee-variable-manager-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:zn},M0={id:AE,type:r.OutputMap,version:1,declaration:It.properties[2],index:3,writesValues:[ME],parent:_0},N0={type:r.GenericReference,id:"employee-dto-func-employee-variable-department-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:zn},$0={id:DE,type:r.OutputMap,version:1,declaration:It.properties[0],index:2,writesValues:[BE],parent:N0},V0={type:r.GenericReference,id:"employee-dto-func-employee-variable-birth-date-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:zn},L0={id:PE,type:r.OutputMap,version:1,declaration:ct.properties[1],index:1,writesValues:[wE],parent:V0},G0={type:r.GenericReference,id:"employee-dto-func-employee-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:zn},F0={id:IE,type:r.OutputMap,version:1,declaration:Be.properties[1],index:0,writesValues:[_E],parent:G0},U0={type:r.GenericReference,id:"employee-dto-func-employee-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:zn},x0={id:"employee-dto-func-employee-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:It,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:U0,defaultValue:null},j0={type:r.GenericReference,id:"employee-dto-func-employee-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Yn},k0={type:r.GenericReference,id:"employee-dto-func-employee-variable-reads-value-ref-id",entityType:r.ArgumentDeclaration,entityId:Ol},q0={type:r.GenericReference,id:"employee-dto-func-employee-variable-called-by-id",entityType:r.FunctionDeclaration,entityId:Yn},NE={id:zn,type:r.VariableDeclaration,version:1,name:"Company employee",dataType:x0,description:"A variable holding a company employee",calledByError:[],calledByEntry:[q0],calledBySuccess:[],successCalls:[ME],errorCalls:[],readsValue:k0,writesValues:[],inputs:[],outputs:[F0,L0,$0,M0],internalCalls:[],parent:j0,x:0,y:0},J0={type:r.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-data-type-parent-ref-id",entityId:Ol,entityType:r.ArgumentDeclaration},W0={type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"employee-dto-func-declaration-employee-input-declaration-data-type-id",version:1,entity:It,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:J0,defaultValue:null},H0={type:r.GenericReference,id:"employee-dto-func-declaration-employee-input-declaration-parent-ref-id",entityId:Yn,entityType:r.FunctionDeclaration},Y0={type:r.ArgumentDeclaration,id:Ol,version:1,name:"Employee",description:"The employee to create a DTO for",required:!0,dataType:W0,index:0,writesValues:[NE],parent:H0},z0={type:r.GenericReference,id:"employee-dto-function-declaration-parent-ref-id",entityType:r.Project,entityId:J},Bl={type:r.FunctionDeclaration,id:Yn,version:1,name:"Employee DTO",description:"Takes a employee and returns a DTO of that employee",index:null,inputs:[Y0],calls:[NE],implements:null,returnStatements:[Cl],collapsed:!1,private:!1,x:0,y:0,parent:z0},Z0={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-parent-ref-id",type:r.GenericReference,entityId:iE,entityType:r.ReturnDeclaration},X0={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:It,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:Z0},Q0={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-reads-value-ref-id",type:r.GenericReference,entityId:xi,entityType:r.OutputMap},K0={id:"iterate-over-employee-list-continue-statement-employee-dto-output-decl-parent-ref-id",type:r.GenericReference,entityId:aE,entityType:r.ContinueStatement},$E={isError:!1,id:iE,type:r.ReturnDeclaration,version:1,name:"Employee DTO",description:"The DTO of the employee entity.",readsValue:Q0,dataType:X0,required:!0,index:0,parent:K0},e1={id:"iterate-over-employee-list-continue-statement-called-by-ref-id",type:r.GenericReference,entityId:xi,entityType:r.FunctionCall},t1={id:"iterate-over-employee-list-continue-statement-parent-ref-id",type:r.GenericReference,entityId:Fr,entityType:r.Loop},VE={id:aE,type:r.ContinueStatement,version:1,calledByError:[],calledByEntry:[],calledBySuccess:[e1],outputs:[$E],throws:null,x:0,y:0,parent:t1},n1={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-dto-output-map-parent-ref-id",type:r.GenericReference,entityId:xi,entityType:r.FunctionCall},r1={id:MN,type:r.OutputMap,version:1,declaration:Cl.outputs[0],writesValues:[$E],index:0,parent:n1},i1={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-reads-value-ref-id",type:r.GenericReference,entityId:Dl,entityType:r.ArgumentDeclaration},a1={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-parent-ref-id",type:r.GenericReference,entityId:xi,entityType:r.FunctionCall},LE={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-employee-input-map-id",type:r.InputMap,version:1,name:null,description:null,declaration:Bl.inputs[0],readsValue:i1,index:0,defaultValue:null,dynamicArguments:[],parent:a1},s1={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-called-by-ref-id",type:r.GenericReference,entityId:ps,entityType:r.FunctionDeclaration},o1={id:"iterate-over-employee-list-loop-body-map-employee-dto-function-call-parent-ref-id",type:r.GenericReference,entityId:ps,entityType:r.FunctionDeclaration},l1={id:xi,type:r.FunctionCall,version:1,declaration:Bl,inputs:[LE],process:null,outputs:[r1],calledByError:[],calledByEntry:[s1],calledBySuccess:[],successCalls:[VE],errorCalls:[],error:null,x:0,y:0,parent:o1},c1={type:r.GenericReference,id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-parent-ref-id",entityId:Dl,entityType:r.ArgumentDeclaration},d1={id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:It,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:c1},u1={id:"iterate-over-employee-list-loop-body-current-employee-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:ps,entityType:r.FunctionDeclaration},p1={id:Dl,type:r.ArgumentDeclaration,version:1,name:"Current employee",description:"The current employee entity being processed.",dataType:d1,required:!0,index:0,writesValues:[LE],parent:u1},y1={id:"iterate-over-employee-list-loop-body-parent-ref-id",type:r.GenericReference,entityId:Fr,entityType:r.Loop},h1={id:ps,type:r.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each entity in the list.",inputs:[p1],calls:[l1],implements:null,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:y1},f1={id:"iterate-over-employee-list-loop-iteration-list-input-map-parent-ref-id",type:r.GenericReference,entityId:Fr,entityType:r.Loop},m1={id:"iterate-over-employee-list-loop-iteration-list-input-map-reads-value-ref-id",type:r.GenericReference,entityId:cE,entityType:r.OutputMap},GE={id:"iterate-over-employee-list-loop-iteration-list-input-map-id",type:r.InputMap,version:1,name:null,description:null,declaration:jn.fixedArguments[0],defaultValue:null,dynamicArguments:[],readsValue:m1,index:0,parent:f1},T1={id:"iterate-over-employee-list-loop-parent-ref-id",type:r.GenericReference,entityId:sn,entityType:r.FunctionDeclaration},E1={id:"iterate-over-employee-list-loop-employee-dto-output-map-parent-ref-id",type:r.GenericReference,entityId:Fr,entityType:r.Loop},R1={id:rE,type:r.OutputMap,version:1,declaration:jn.fixedReturns[0],writesValues:[RE],index:0,parent:E1},b1={type:r.GenericReference,id:"iterate-over-employee-list-loop-called-by-ref-id",entityType:r.VariableDeclaration,entityId:Ht},v1={id:Fr,type:r.Loop,version:1,declaration:jn,inputs:[GE],successCalls:[Sl],errorCalls:[],outputs:[R1],body:h1,process:null,calledByError:[],calledByEntry:[],calledBySuccess:[b1],breakStatements:[],continueStatements:[VE],error:null,x:0,y:0,parent:T1},g1={type:r.GenericReference,id:"company-dto-func-bank-account-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:hs},I1={id:hE,type:r.OutputMap,version:1,declaration:Be.properties[1],index:0,writesValues:[TE],parent:g1},P1={type:r.GenericReference,id:"company-dto-func-bank-account-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:hs},D1={id:"company-dto-func-bank-account-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:P1,defaultValue:null},A1={type:r.GenericReference,id:"company-dto-func-bank-account-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:yE},S1={type:r.GenericReference,id:"company-dto-func-bank-account-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:sn};r.GenericReference,r.VariableDeclaration;const FE={id:hs,type:r.VariableDeclaration,version:1,name:"Bank account",dataType:D1,description:"A variable holding an inherited bank account",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[Sl],errorCalls:[],readsValue:A1,writesValues:[],inputs:[],outputs:[I1],internalCalls:[],parent:S1,x:0,y:0},O1={type:r.GenericReference,id:"company-dto-func-owner-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:ys},C1={id:pE,type:r.OutputMap,version:1,declaration:Be.properties[1],index:0,writesValues:[mE],parent:O1},B1={type:r.GenericReference,id:"company-dto-func-owner-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:ys},w1={id:"company-dto-func-owner-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:B1,defaultValue:null},_1={type:r.GenericReference,id:"company-dto-func-owner-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:uE},M1={type:r.GenericReference,id:"company-dto-func-owner-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:sn};r.GenericReference,r.VariableDeclaration;const UE={id:ys,type:r.VariableDeclaration,version:1,name:"Owner",dataType:w1,description:"A variable holding an inherited owner",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[Sl],errorCalls:[],readsValue:_1,writesValues:[],inputs:[],outputs:[C1],internalCalls:[],parent:M1,x:0,y:0},N1={type:r.GenericReference,id:"company-dto-func-company-variable-owner-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ht},$1={id:uE,type:r.OutputMap,version:1,declaration:mt.properties[2],index:4,writesValues:[UE],parent:N1},V1={type:r.GenericReference,id:"company-dto-func-company-variable-bank-account-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ht},L1={id:yE,type:r.OutputMap,version:1,declaration:mt.properties[2],index:3,writesValues:[FE],parent:V1},G1={type:r.GenericReference,id:"company-dto-func-company-variable-name-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ht},F1={id:dE,type:r.OutputMap,version:1,declaration:mt.properties[0],index:2,writesValues:[EE],parent:G1},U1={type:r.GenericReference,id:"company-dto-func-company-variable-employess-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ht},x1={id:cE,type:r.OutputMap,version:1,declaration:mt.properties[3],index:1,writesValues:[GE],parent:U1},j1={type:r.GenericReference,id:"company-dto-func-company-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ht},k1={id:lE,type:r.OutputMap,version:1,declaration:Be.properties[1],index:0,writesValues:[bE],parent:j1},q1={type:r.GenericReference,id:"company-dto-func-company-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ht},J1={id:"company-dto-func-company-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:q1,defaultValue:null},W1={type:r.GenericReference,id:"company-dto-func-company-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:sn},H1={type:r.GenericReference,id:"company-dto-func-company-variable-reads-value-ref-id",entityType:r.ArgumentDeclaration,entityId:Pl},Y1={type:r.GenericReference,id:"company-dto-func-company-variable-called-by-id",entityType:r.FunctionDeclaration,entityId:sn},xE={id:Ht,type:r.VariableDeclaration,version:1,name:"Company",dataType:J1,description:"A variable holding a company",calledByError:[],calledByEntry:[Y1],calledBySuccess:[],successCalls:[FE,UE,v1],errorCalls:[],readsValue:H1,writesValues:[],inputs:[],outputs:[k1,x1,F1,L1,$1],internalCalls:[],parent:W1,x:0,y:0},z1={type:r.GenericReference,id:"company-dto-func-declaration-company-input-declaration-data-type-parent-ref-id",entityId:Pl,entityType:r.ArgumentDeclaration},Z1={type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"company-dto-func-declaration-company-input-declaration-data-type-id",version:1,entity:mt,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:z1,defaultValue:null},X1={type:r.GenericReference,id:"company-dto-func-declaration-company-input-declaration-parent-ref-id",entityId:sn,entityType:r.FunctionDeclaration},Q1={type:r.ArgumentDeclaration,id:Pl,version:1,name:"Company",description:"The company to create a DTO for",required:!0,dataType:Z1,index:0,writesValues:[xE],parent:X1},K1={type:r.GenericReference,id:"company-dto-function-declaration-parent-ref-id",entityType:r.Project,entityId:J},wl={type:r.FunctionDeclaration,id:sn,version:1,name:"Company DTO",description:"Takes a company and returns a DTO of that company",inputs:[Q1],calls:[xE],implements:null,index:null,returnStatements:[Al],collapsed:!1,private:!1,x:0,y:0,parent:K1},ji="exec-in-parallel-operation-call-id",ki="exec-sequentially-operation-call-id",dt="concurrency-and-wait-function-declaration-id",jE="concurrency-and-wait-return-statement-id",kE="concurrency-and-wait-return-declaration-id",_l="exec-in-parallel-argument-map-id",qE="exec-sequentially-argument-map-id",Ml="wait-for-2-seconds-operation-id",JE="wait-for-2-seconds-argument-map-id",Nl="map-company-dto-function-call-id",WE="map-company-dto-function-call-company-dto-output-map-id",qi="company-dto-variable-one-id",$l="company-dto-variable-one-instance-id",e$="company-dto-variable-two-id",t$={type:r.GenericReference,id:"returned-company-dto-data-type-parent-ref-id",entityType:r.ReturnDeclaration,entityId:kE},n$={id:"returned-company-dto-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:t$},r$={type:r.GenericReference,id:"returned-company-dto-parent-ref-id",entityType:r.ReturnStatement,entityId:jE},i$={type:r.GenericReference,id:"returned-company-dto-reads-value-ref-id",entityType:r.VariableDeclaration,entityId:qi},HE={isError:!1,id:kE,type:r.ReturnDeclaration,version:1,name:"Company DTO",description:"Output the company data in the format that it will be sent through an HTTP request.",dataType:n$,readsValue:i$,required:!0,index:0,parent:r$},a$={type:r.GenericReference,id:"concurrency-and-wait-return-statement-called-by-ref-id",entityType:r.Operation,entityId:Ml},s$={type:r.GenericReference,id:"concurrency-and-wait-return-statement-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},YE={type:r.ReturnStatement,id:jE,version:1,outputs:[HE],calledByError:[],calledByEntry:[],calledBySuccess:[a$],throws:null,x:0,y:0,parent:s$},o$={type:r.GenericReference,id:"company-dto-variable-two-called-by-ref-id",entityType:r.VariableInstance,entityId:$l},l$={type:r.GenericReference,id:"company-dto-variable-two-reads-value-ref-id",entityType:r.VariableInstance,entityId:$l},c$={type:r.GenericReference,id:"company-dto-variable-two-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},zE={id:e$,type:r.VariableDeclaration,version:1,name:"Company DTO",description:null,dataType:null,inputs:[],outputs:[],successCalls:[],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[o$],internalCalls:[],writesValues:[HE],readsValue:l$,x:0,y:0,parent:c$},d$={type:r.GenericReference,id:"company-dto-variable-one-instance-called-by-ref-id",entityType:r.VariableDeclaration,entityId:qi},u$={type:r.GenericReference,id:"company-dto-variable-one-instance-reads-value-ref-id",entityType:r.VariableDeclaration,entityId:qi},p$={type:r.GenericReference,id:"company-dto-variable-one-instance-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},y$={type:r.GenericReference,id:"company-dto-variable-one-instance-declaration-ref-id",entityType:r.VariableDeclaration,entityId:qi},ZE={id:$l,type:r.VariableInstance,version:1,declaration:y$,inputs:[],outputs:[],successCalls:[zE],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[d$],internalCalls:[],writesValues:[zE],readsValue:u$,x:0,y:0,parent:p$},h$={type:r.GenericReference,id:"company-dto-variable-one-called-by-ref-id",entityType:r.FunctionCall,entityId:Nl},f$={type:r.GenericReference,id:"company-dto-variable-one-reads-value-ref-id",entityType:r.OutputMap,entityId:WE},m$={type:r.GenericReference,id:"company-dto-variable-one-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},XE={id:qi,type:r.VariableDeclaration,version:1,name:"Company DTO",description:null,dataType:null,inputs:[],outputs:[],successCalls:[ZE],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[h$],internalCalls:[],writesValues:[ZE],readsValue:f$,x:0,y:0,parent:m$},QE={type:r.GenericReference,id:"map-company-dto-function-call-company-input-map-parent-ref-id",entityType:r.FunctionCall,entityId:Nl},T$={id:"map-company-dto-function-call-company-input-map-id",type:r.InputMap,version:1,declaration:wl.inputs[0],name:null,description:null,defaultValue:null,dynamicArguments:[],index:0,readsValue:null,parent:QE},E$={id:WE,type:r.OutputMap,version:1,declaration:Al.outputs[0],writesValues:[XE],index:0,parent:QE},R$={id:"map-company-dto-function-call-called-by-ref-id",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:dt},b$={id:"map-company-dto-function-call-parent-ref-id",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:dt},v$={id:Nl,type:r.FunctionCall,version:1,declaration:wl,successCalls:[XE],process:null,errorCalls:[],inputs:[T$],outputs:[E$],calledByError:[],calledByEntry:[R$],calledBySuccess:[],parent:b$,x:0,y:0,error:null},g$={type:r.GenericReference,id:"last-timestamp-variable-datatype-parent-ref-id",entityType:r.VariableDeclaration,entityId:Ym},I$={type:r.GenericReference,id:"last-timestamp-variable-default-value-parent-ref-id",entityType:r.DataType,entityId:"last-timestamp-variable-datatype-id"},P$={id:"last-timestamp-variable-datatype-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Sr,version:1,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:g$,defaultValue:{id:"last-timestamp-variable-default-value-id",type:r.PrimitiveValue,version:1,name:g.Date,value:null,autogeneration:{type:xe.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:I$,valueAsType:null}},D$={type:r.GenericReference,id:"last-timestamp-variable-main-project-ref-id",entityType:r.Project,entityId:J},Vl={id:Ym,type:r.VariableDeclaration,version:1,name:"Last registered current time",description:"A test variable that holds the last current date and time that was registered.",dataType:P$,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:D$},A$={type:r.GenericReference,id:"wait-for-2-seconds-argument-default-value-parent-ref-id",entityType:r.InputMap,entityId:JE},S$={type:r.GenericReference,id:"wait-for-2-seconds-argument-map-parent-ref-id",entityType:r.Operation,entityId:Ml},O$={id:JE,type:r.InputMap,version:1,declaration:Un,name:null,description:null,dynamicArguments:[],readsValue:null,defaultValue:{id:"wait-for-2-seconds-argument-default-value-id",type:r.PrimitiveValue,version:1,value:2e3,valueAsType:null,autogeneration:null,name:g.Number,parent:A$},index:0,parent:S$},C$={type:r.GenericReference,id:"wait-for-2-seconds-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},B$={type:r.GenericReference,id:"wait-for-2-seconds-called-by-ref-one-id",entityType:r.FunctionDeclaration,entityId:ki},w$={type:r.GenericReference,id:"wait-for-2-seconds-called-by-ref-two-id",entityType:r.FunctionDeclaration,entityId:ji},KE={id:Ml,type:r.Operation,version:1,declaration:$t,inputs:[O$],dynamicArguments:[],outputs:[],process:null,successCalls:[YE],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[B$,w$],calledBySuccess:[],error:null,parent:C$},_$={type:r.GenericReference,id:"wait-for-random-amount-argument-default-value-parent-ref-id",entityType:r.InputMap,entityId:"wait-for-random-amount-input-map-id"},M$={type:r.GenericReference,id:"wait-for-random-amount-argument-map-parent-ref-id",entityType:r.Operation,entityId:"wait-for-random-amount-id"},N$={id:"wait-for-random-amount-input-map-id",type:r.InputMap,version:1,declaration:Un,name:null,description:null,dynamicArguments:[],readsValue:null,defaultValue:{id:"wait-for-random-amount-argument-default-value-id",type:r.PrimitiveValue,version:1,value:null,valueAsType:null,autogeneration:{type:xe.Random,rangeStart:1e3,rangeEnd:4e3},name:g.Number,parent:_$},index:0,parent:M$},$$={type:r.GenericReference,id:"wait-for-random-amount-parent-ref-id",entityType:r.Project,entityId:J},Ur={id:"wait-for-random-amount-id",type:r.Operation,version:1,declaration:$t,inputs:[N$],dynamicArguments:[],process:null,outputs:[],successCalls:[],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[],calledBySuccess:[],error:null,parent:$$},eR="list-of-functions-variable-id",V$={type:r.GenericReference,id:"list-of-functions-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:eR},L$={id:"list-of-functions-variable-action-descriptor-id",type:r.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:L.Dynamic,dynamicArgumentTypes:null,fixedArguments:[],returnsType:L.Dynamic,error:null,dynamicReturnTypes:null,fixedReturns:[],parent:null},G$={type:r.GenericReference,id:"list-of-functions-variable-data-type-default-parent-ref-id",entityType:r.DataType,entityId:"list-of-functions-variable-data-type-id"},F$={id:"list-of-functions-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:L$,asType:!1,isList:!0,isNullable:!1,defaultValue:{id:"list-of-functions-variable-data-type-default-value-id",type:r.PrimitiveValue,version:1,name:g.ActionDescriptor,value:null,valueAsType:[Ur,Ur,Ur,Ur,Ur],autogeneration:null,parent:G$},constant:!1,parent:V$},U$={type:r.GenericReference,id:"list-of-functions-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt};r.GenericReference,r.InputMap;const x$={type:r.GenericReference,id:"list-of-functions-variable-writes-value-one-ref-id",entityType:r.InputMap,entityId:qE},j$={type:r.GenericReference,id:"list-of-functions-variable-writes-value-two-ref-id",entityType:r.InputMap,entityId:_l},tR={id:eR,type:r.VariableDeclaration,version:1,name:"List of functions to execute",description:"A list of functions to be executed in parallel",dataType:F$,parent:U$,readsValue:null,writesValues:[x$,j$],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],inputs:[],outputs:[],internalCalls:[],x:0,y:0},k$={type:r.GenericReference,id:"exec-in-parallel-return-map-parent-ref-id",entityType:r.Operation,entityId:ji},q$={type:r.GenericReference,id:"exec-in-parallel-result-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},J$={type:r.GenericReference,id:"exec-in-parallel-result-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:"exec-in-parallel-return-map-id"},W$={type:r.GenericReference,id:"exec-in-parallel-result-variable-called-by-ref-id",entityType:r.Operation,entityId:ji},nR={id:"exec-in-parallel-result-variable-id",type:r.VariableInstance,version:1,declaration:Vl,readsValue:J$,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[W$],successCalls:[],errorCalls:[],internalCalls:[],parent:q$,x:0,y:0},H$={id:"exec-in-parallel-return-map-id",type:r.OutputMap,version:1,declaration:Bo,writesValues:[nR],index:0,parent:k$},Y$={type:r.GenericReference,id:"exec-in-parallel-argument-map-parent-ref-id",entityType:r.Operation,entityId:ji},z$={id:_l,type:r.InputMap,version:1,declaration:Co,name:null,description:null,dynamicArguments:[],readsValue:tR,defaultValue:null,index:0,parent:Y$},Z$={type:r.GenericReference,id:"exec-in-parallel-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},X$={type:r.GenericReference,id:"exec-in-parallel-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:dt},Q$={process:null,id:ji,type:r.Operation,version:1,declaration:$t,inputs:[z$],dynamicArguments:[],outputs:[H$],successCalls:[KE,nR],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[X$],calledBySuccess:[],error:null,parent:Z$},K$={type:r.GenericReference,id:"exec-sequentially-return-map-parent-ref-id",entityType:r.Operation,entityId:ki},eV={type:r.GenericReference,id:"exec-sequentially-result-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},tV={type:r.GenericReference,id:"exec-sequentially-result-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:"exec-sequentially-return-map-id"},nV={type:r.GenericReference,id:"exec-sequentially-result-variable-called-by-ref-id",entityType:r.Operation,entityId:ki},rR={id:"exec-sequentially-result-variable-id",type:r.VariableInstance,version:1,declaration:Vl,readsValue:tV,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[nV],successCalls:[],errorCalls:[],internalCalls:[],parent:eV,x:0,y:0},rV={id:"exec-sequentially-return-map-id",type:r.OutputMap,version:1,declaration:_o,writesValues:[rR],index:0,parent:K$},iV={type:r.GenericReference,id:"exec-sequentially-argument-map-parent-ref-id",entityType:r.Operation,entityId:ki},aV={id:qE,type:r.InputMap,version:1,declaration:wo,name:null,description:null,dynamicArguments:[],readsValue:tR,defaultValue:null,index:0,parent:iV},sV={type:r.GenericReference,id:"exec-sequentially-parent-ref-id",entityType:r.FunctionDeclaration,entityId:dt},oV={type:r.GenericReference,id:"exec-sequentially-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:dt},lV={id:ki,type:r.Operation,version:1,declaration:tn,inputs:[aV],process:null,dynamicArguments:[],outputs:[rV],successCalls:[KE,rR],errorCalls:[],x:0,y:0,calledByError:[],calledByEntry:[oV],calledBySuccess:[],error:null,parent:sV},cV={type:r.GenericReference,id:"concurrency-and-wait-parent-ref-id",entityType:r.Project,entityId:J},dV={type:r.FunctionDeclaration,id:dt,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:[lV,Q$,v$],returnStatements:[YE],implements:null,index:null,collapsed:!1,private:!1,x:0,y:0,parent:cV},uV={type:r.GenericReference,id:"3521f2c8-a5c0-419c-8808-4fc6a73d0b78",entityType:r.ReturnDeclaration,entityId:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b"},pV={id:"ce8b9a30-afe9-4d4f-879f-1677efca2c47",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:mt,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:uV},yV={type:r.GenericReference,id:"8ee66e38-b060-474e-a503-594063a8ec24",entityType:r.ReturnStatement,entityId:"40a23a98-d3b2-42b1-9652-b33779ad15aa"},hV={isError:!1,id:"e1ec31f0-25ca-42ac-a4c4-c9ec2255f55b",type:r.ReturnDeclaration,version:1,name:"Created company",description:"The new company that was created",dataType:pV,readsValue:null,required:!0,index:0,parent:yV},fV={type:r.GenericReference,id:"9cb3c1e4-7250-4be6-be2a-69c2dd366d6f",entityType:r.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},mV={type:r.GenericReference,id:"c065fcdd-e054-4f95-941c-7eaa65c35d04",entityType:r.FunctionDeclaration,entityId:"d683bfc1-a464-4810-8ec0-1dd8eaa0c3c4"},iR={type:r.ReturnStatement,id:"40a23a98-d3b2-42b1-9652-b33779ad15aa",version:1,outputs:[hV],calledByError:[],calledByEntry:[mV],calledBySuccess:[],throws:null,x:0,y:0,parent:fV},TV={type:r.GenericReference,id:"312ef836-9e40-4d57-b177-03b7145ed074",entityType:r.Project,entityId:J},EV={type:r.FunctionDeclaration,id:"5059c093-eda2-4efc-b7b4-aaaadd4d44de",version:1,name:"Create new company",description:null,inputs:[],calls:[iR],index:null,implements:null,returnStatements:[iR],collapsed:!1,private:!1,x:0,y:0,parent:TV},Ll="get-current-date-and-time-func-decl-id",aR="get-current-date-and-time-return-statement-id",sR="get-current-date-and-time-return-declaration-id",oR="get-current-date-and-time-return-declaration-data-type-id",RV={type:r.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-value-parent-ref-id",entityType:r.DataType,entityId:oR},bV={type:r.GenericReference,id:"get-current-date-and-time-return-declaration-data-type-parent-ref-id",entityType:r.ReturnDeclaration,entityId:sR},vV={type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,id:oR,version:1,entity:Sr,asType:!1,isList:!1,isNullable:!1,defaultValue:{id:"last-timestamp-variable-default-value-id",type:r.PrimitiveValue,version:1,value:null,name:g.Date,valueAsType:null,autogeneration:{type:xe.CurrentDateAndTime,rangeStart:null,rangeEnd:null},parent:RV},constant:!1,parent:bV},gV={type:r.GenericReference,id:"get-current-date-and-time-return-declaration-parent-ref-id",entityType:r.ReturnStatement,entityId:aR};r.ReturnDeclaration;const IV={type:r.GenericReference,id:"get-current-date-and-time-return-statement-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:Ll},PV={type:r.GenericReference,id:"get-current-date-and-time-return-statement-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Ll};r.ReturnStatement;const DV={type:r.GenericReference,id:"concurrency-and-wait-parent-ref-id",entityType:r.Project,entityId:J},AV={type:r.FunctionDeclaration,id:Ll,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:DV},lR="do-math-return-statement-id",cR="do-math-return-declaration-id",SV={type:r.GenericReference,id:"do-math-func-var-to-return-one-ref-id",entityType:r.VariableDeclaration,entityId:"do-math-func-var-to-return-one-id"},OV={id:"do-math-func-var-to-return-one-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:SV},CV={type:r.GenericReference,id:"do-math-func-decl-ref-two-id",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},BV={type:r.GenericReference,id:"do-math-func-var-to-return-one-map-ref-id",entityType:r.ReturnDeclaration,entityId:cR},wV={type:r.VariableDeclaration,id:"do-math-func-var-to-return-one-id",version:1,description:null,name:"Fixed result",dataType:OV,readsValue:null,writesValues:[BV],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:CV},_V={type:r.GenericReference,id:"96ec244e-594b-45f7-802b-6dc3056920f6",entityType:r.ReturnStatement,entityId:lR},MV={type:r.GenericReference,id:"d120c0cc-9d13-4e45-90e2-4e1ee825ca46",entityType:r.ReturnDeclaration,entityId:"873a3556-4911-4141-b2a0-49c677b56fb4"},NV={id:"da91aa23-9985-49ac-a8bf-9d623ba1ba8f",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:MV},$V={isError:!1,id:cR,version:1,type:r.ReturnDeclaration,name:"Result",description:null,dataType:NV,readsValue:wV,required:!0,index:0,parent:_V},VV={type:r.GenericReference,id:"57fd93e4-93a1-484e-82eb-4dd15d2d0e24",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},LV={type:r.GenericReference,id:"0a86e8d5-ab21-476e-a482-b928cbf351e3",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},dR={type:r.ReturnStatement,id:lR,version:1,outputs:[$V],calledByError:[],calledByEntry:[],calledBySuccess:[VV],parent:LV,throws:null,x:0,y:0},GV={type:r.GenericReference,id:"a2db26be-57f2-48e5-9769-cdbf0d95dc7c",entityType:r.VariableDeclaration,entityId:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a"},FV={id:"c3e9d5f0-204f-45f9-85f7-e1b56b468388",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,asType:!1,isList:!1,isNullable:!1,defaultValue:null,constant:!1,parent:GV},UV={type:r.GenericReference,id:"692122c5-610a-4504-90dd-f5a5202d116c",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},xV={type:r.GenericReference,id:"do-math-func-return-one-called-by",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},jV={type:r.GenericReference,id:"6dceb501-be5b-4252-afb4-3c0d08abba33",entityType:r.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},uR={type:r.VariableDeclaration,id:"d0e9f1f3-7e9f-4e1f-8d8e-7b4b3e6c6a6a",version:1,name:"Result",dataType:FV,description:null,readsValue:jV,writesValues:[],inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[xV],successCalls:[],errorCalls:[],internalCalls:[],x:0,y:0,parent:UV},kV={type:r.GenericReference,id:"5440f523-af38-4981-8035-89d162fe8041",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},qV={type:r.GenericReference,id:"8c482c35-e674-4713-a1dd-63c3d13b611c",entityType:r.OutputMap,entityId:"64752080-ee0f-4cfe-9897-a0668f2b2aca"},JV={type:r.GenericReference,id:"c0a299cd-5869-4930-8cf0-90e3ceb8a903",entityType:r.VariableDeclaration,entityId:"46b2fe23-b417-4887-a35d-09b186679172"},WV={id:"51c0c1df-2ee3-41df-ae52-ac512d8cf795",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,isList:!1,asType:!1,isNullable:!1,defaultValue:null,constant:!1,parent:JV},HV={type:r.GenericReference,id:"do-math-func-return-two-called-by",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},pR={type:r.VariableDeclaration,id:"46b2fe23-b417-4887-a35d-09b186679172",version:1,name:"Total",description:null,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[HV],successCalls:[],errorCalls:[],dataType:WV,readsValue:qV,writesValues:[],internalCalls:[],parent:kV,x:0,y:0},yR={type:r.GenericReference,id:"6e4d776e-6af2-4321-b630-c78110fd677c",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},YV={type:r.GenericReference,id:"5b60955b-2486-40b6-bb24-ffd97ccd8902",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},zV={type:r.GenericReference,id:"1a49923f-bc6f-453f-a438-e74e5475c2a9",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},ZV={type:r.GenericReference,id:"02bfde0a-b757-4072-9613-6e9c7c9a424a",entityType:r.ArgumentDeclaration,entityId:"d8895765-f705-457e-85fa-25d130926769"},hR={id:"928953b0-0e3f-4d8c-ae5a-84620b4b8c68",version:1,type:r.InputMap,declaration:bo,name:null,description:null,dynamicArguments:[],readsValue:ZV,defaultValue:null,index:0,parent:zV},XV={id:"64752080-ee0f-4cfe-9897-a0668f2b2aca",type:r.OutputMap,version:1,declaration:go,writesValues:[uR,pR],index:0,parent:YV},QV={type:r.GenericReference,id:"d235a7f6-07ff-4f35-98d2-8f42dd59cf9f",entityType:r.Operation,entityId:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e"},KV={id:"8827e8e9-9381-4ad7-8f61-5419c23c9136",type:r.GenericReference,entityType:r.VariableDeclaration,entityId:"72a338d8-0183-4ca2-8760-227517854595"},fR={id:"a5525249-0eb5-472b-97bc-5e4cc0d75aee",version:1,type:r.InputMap,declaration:vo,name:null,description:null,dynamicArguments:[],readsValue:KV,defaultValue:null,index:1,parent:QV},eL={type:r.Operation,id:"e8c8c0a3-2e3e-4f6a-8e3d-8e0a0f9d7d8e",declaration:ma,version:1,inputs:[hR,fR],dynamicArguments:[],outputs:[XV],calledByError:[],calledByEntry:[yR],calledBySuccess:[],process:null,successCalls:[dR,uR,pR],errorCalls:[],parent:yR,error:null,x:0,y:0},tL={type:r.GenericReference,id:"a2c40226-2270-4963-a865-c777ba79c551",entityType:r.DataType,entityId:"a350a9e9-25ee-477f-a83d-9e98ed2451662"},nL={id:"f47731b3-f278-4ab5-aeb2-24519c1119fb",type:r.GenericReference,entityId:"72a338d8-0183-4ca2-8760-227517854595",entityType:r.ArgumentDeclaration},mR={id:"a350a9e9-25ee-477f-a83d-9e98ed2451662",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"do-math-func-argument-two-default-value-id",type:r.PrimitiveValue,version:1,value:1,name:g.Number,parent:tL,valueAsType:null,autogeneration:null},constant:!1,parent:nL},rL={type:r.GenericReference,id:"5f5d8dd0-7f3b-40cd-9f84-83d976887eaf",entityType:r.ArgumentDeclaration,entityId:"649bf0a4-6532-44aa-9818-a03d1c6564e9"},iL={type:r.GenericReference,id:"ca018d0f-a8b3-4c7e-a408-c8b372d04aff",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},aL={type:r.GenericReference,id:"do-math-func-var-called-by-ref",entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},TR={type:r.VariableDeclaration,id:"72a338d8-0183-4ca2-8760-227517854595",version:1,name:"Z",description:null,dataType:mR,inputs:[],outputs:[],calledByError:[],calledByEntry:[aL],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:rL,writesValues:[fR],internalCalls:[],x:0,y:0,parent:iL},sL={entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",type:r.GenericReference,id:"af0cf105-4075-425f-aecc-b25d3600fcc4"},oL={id:"649bf0a4-6532-44aa-9818-a03d1c6564e9",type:r.ArgumentDeclaration,version:1,name:"Z",description:"The number to add",dataType:mR,writesValues:[TR],required:!0,index:1,parent:sL},lL={type:r.GenericReference,id:"56953b5d-3e43-4dea-a62c-f3e868ba81bb",entityType:r.Project,entityId:J},cL={id:"868defc8-5c95-48ed-942d-257e8b9b9b00",type:r.GenericReference,entityType:r.FunctionDeclaration,entityId:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b"},dL={type:r.GenericReference,id:"35167664-a793-49f1-9eaf-fb57eac30897",entityType:r.DataType,entityId:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2"},uL={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:r.GenericReference,entityId:"d8895765-f705-457e-85fa-25d130926769",entityType:r.ArgumentDeclaration},pL={id:"55b12914-91b1-48b7-9a3e-9c5d0d2a2ec2",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,isList:!1,isNullable:!1,asType:!1,defaultValue:{id:"do-math-func-argument-one-default-value-id",type:r.PrimitiveValue,version:1,value:5,name:g.Number,parent:dL,valueAsType:null,autogeneration:null},constant:!1,parent:uL},yL={id:"d8895765-f705-457e-85fa-25d130926769",type:r.ArgumentDeclaration,version:1,name:"N",dataType:pL,description:"The number to add",writesValues:[hR],required:!0,index:0,parent:cL},hL={type:r.FunctionDeclaration,id:"b4c1d8d2-9c5e-4e0c-bd5e-3a6a0e4d2f0b",version:1,name:"Do math",description:"This function does math",inputs:[yL,oL],calls:[eL,TR],implements:null,index:null,collapsed:!1,returnStatements:[dR],private:!1,x:0,y:0,parent:lL},Pt="replace-bank-account-in-company-func-declaration-id",Gl="company-entity-to-modify-arg-declaration-id",fL="account-number-to-create-arg-decl-id",xr="company-variable-id",jr="search-person-by-id-id",ER="new-bank-account-owner-arg-decl-id",RR="search-person-by-id-output-declaration-id",Fl="search-person-by-id-output-entity-map-id",ms="person-not-empty-condition-id",Ts="create-new-bank-account-instance-operation-id",bR="create-new-bank-account-instance-operation-output-entity-map-id",vR="company-bank-account-output-map-id",gR="old-bank-account-var-declaration-id",IR="company-variable-instance-id",mL="delete-bank-account-internal-call-id",TL={type:r.GenericReference,id:"company-variable-instance-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Pt},EL={type:r.GenericReference,id:"company-variable-instance-called-by-ref-id",entityType:r.InternalCall,entityId:mL},RL={type:r.GenericReference,id:"company-variable-instance-declaration-ref-id",entityType:r.VariableDeclaration,entityId:xr},bL={type:r.GenericReference,id:"bank-account-input-map-parent-ref-id",entityType:r.VariableInstance,entityId:IR},vL={type:r.GenericReference,id:"bank-account-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:bR},PR={type:r.InputMap,id:"bank-account-input-map-id",version:1,readsValue:vL,declaration:fl,name:null,description:null,index:0,defaultValue:null,dynamicArguments:[],parent:bL},gL={type:r.VariableInstance,id:IR,version:1,declaration:RL,inputs:[PR],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[EL],successCalls:[],errorCalls:[],internalCalls:[],parent:TL,readsValue:null,writesValues:[],x:0,y:0},IL={type:r.GenericReference,id:"bank-account-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:xr},PL={type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"bank-account-variable-data-type-id",version:1,entity:Lr,asType:!1,isList:!1,isNullable:!1,constant:!1,defaultValue:null,parent:IL},DL={type:r.GenericReference,id:"bank-account-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:vR},AL={type:r.GenericReference,id:"bank-account-variable-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Pt},SL={type:r.GenericReference,id:"bank-account-variable-called-by-ref-id",entityType:r.VariableDeclaration,entityId:xr},OL={type:r.GenericReference,id:"delete-bank-account-internal-call-called-by-ref-id",entityType:r.Operation,entityId:Ts},CL={type:r.GenericReference,id:"delete-bank-account-internal-call-parent-ref-id",entityType:r.VariableDeclaration,entityId:gR},DR={process:null,type:r.InternalCall,id:"delete-bank-account-internal-call-id",version:1,declaration:xo,index:0,successCalls:[gL],errorCalls:[],inputs:[],outputs:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[OL],parent:CL},AR={type:r.VariableDeclaration,id:gR,version:1,name:"Old bank account",description:"The existing bank account that needs to be replaced in the company entity",dataType:PL,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[SL],successCalls:[],internalCalls:[DR],errorCalls:[],parent:AL,readsValue:DL,writesValues:[],x:0,y:0},BL={type:r.GenericReference,id:"company-variable-declaration-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:xr},wL={type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,id:"company-variable-declaration-data-type-id",version:1,entity:mt,asType:!1,isList:!1,isNullable:!1,constant:!1,defaultValue:null,parent:BL},_L={type:r.GenericReference,id:"company-variable-declaration-reads-value-ref-id",entityType:r.ArgumentDeclaration,entityId:Gl},ML={type:r.GenericReference,id:"company-variable-declaration-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Pt},NL={type:r.GenericReference,id:"company-variable-declaration-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:Pt},$L={type:r.GenericReference,id:"company-bank-account-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:xr},VL={id:vR,version:1,type:r.OutputMap,declaration:fl,index:0,parent:$L,writesValues:[AR]},SR={type:r.VariableDeclaration,id:xr,version:1,name:"Company",description:"The company entity that was passed as an argument to the parent function",dataType:wL,inputs:[],outputs:[VL],calledByError:[],calledByEntry:[NL],calledBySuccess:[],successCalls:[AR],errorCalls:[],parent:ML,internalCalls:[],readsValue:_L,writesValues:[],x:0,y:0},LL={type:r.GenericReference,id:"create-new-bank-account-account-owner-dynamic-input-map-parent-ref-id",entityType:r.InputMap,entityId:"create-new-bank-account-instance-operation-entity-to-create-input-map-id"},GL={id:"create-new-bank-account-account-owner-dynamic-input-map-reads-value-ref-id",type:r.GenericReference,entityType:r.OutputMap,entityId:Fl},OR={id:"create-new-bank-account-account-owner-dynamic-input-map-id",version:1,type:r.InputMap,declaration:tT,name:null,description:null,dynamicArguments:[],readsValue:GL,index:1,defaultValue:null,parent:LL},FL={id:"create-new-bank-account-account-number-dynamic-input-map-reads-value-ref-id",type:r.GenericReference,entityType:r.ArgumentDeclaration,entityId:fL},UL={type:r.GenericReference,id:"create-new-bank-account-account-number-dynamic-input-map-parent-ref-id",entityType:r.InputMap,entityId:"create-new-bank-account-instance-operation-entity-to-create-input-map-id"},CR={id:"create-new-bank-account-account-number-dynamic-input-map-id",version:1,type:r.InputMap,declaration:eT,name:null,description:null,dynamicArguments:[],readsValue:FL,defaultValue:null,index:0,parent:UL},xL={type:r.GenericReference,id:"create-new-bank-account-instance-operation-entity-to-create-input-map-parent-ref-id",entityType:r.Operation,entityId:Ts},jL={id:"create-new-bank-account-instance-operation-entity-to-create-input-map-id",version:1,type:r.InputMap,declaration:Or.fixedArguments[0],name:null,description:null,dynamicArguments:[CR,OR],index:0,readsValue:null,defaultValue:{type:r.PrimitiveValue,name:g.EntityTemplate,value:null,valueAsType:Lr,autogeneration:null},parent:xL},kL={type:r.GenericReference,id:"create-new-bank-account-instance-operation-output-entity-map-parent-ref-id",entityType:r.Operation,entityId:Ts},qL={id:bR,version:1,type:r.OutputMap,declaration:Or.fixedReturns[0],index:0,writesValues:[PR],parent:kL},JL={type:r.GenericReference,id:"create-new-bank-account-instance-operation-called-by-ref-id",entityType:r.Condition,entityId:ms},WL={type:r.GenericReference,id:"create-new-bank-account-instance-operation-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Pt},HL={process:null,id:Ts,type:r.Operation,version:1,declaration:Or,inputs:[jL],dynamicArguments:[],error:null,outputs:[qL],successCalls:[DR],errorCalls:[],calledByError:[],calledByEntry:[],calledBySuccess:[JL],parent:WL,x:0,y:0},YL={id:"person-not-found-thrown-error-datatype-default-value-parent-ref-id",type:r.GenericReference,entityId:"person-not-found-thrown-error-datatype-id",entityType:r.DataType},zL={id:"person-not-found-thrown-error-datatype-parent-ref-id",type:r.GenericReference,entityId:"person-not-found-thrown-error-id",entityType:r.ReturnDeclaration};r.DataType,r.PrimitiveValue,g.String;const ZL={id:"person-not-found-thrown-error-parent-ref-id",type:r.GenericReference,entityId:"person-not-found-error-return-statement-id",entityType:r.ReturnStatement},XL={isError:!0,id:"person-not-found-thrown-error-id",type:r.ReturnDeclaration,version:1,dataType:null,name:"Person not found error",description:"If the person entity was not found this error is outputted",parent:ZL,required:!0,index:0,readsValue:null},QL={id:"person-not-found-error-return-statement-called-by-ref-id",type:r.GenericReference,entityId:ms,entityType:r.Condition},KL={id:"person-not-found-error-return-statement-parent-ref-id",type:r.GenericReference,entityId:Pt,entityType:r.FunctionDeclaration},eG={id:"person-not-found-error-return-statement-id",type:r.ReturnStatement,version:1,throws:XL,outputs:[],calledBySuccess:[],calledByError:[QL],calledByEntry:[],x:0,y:0,parent:KL},tG={type:r.GenericReference,id:"person-not-empty-condition-called-by-ref-id",entityType:r.Search,entityId:jr},nG={type:r.GenericReference,id:"person-not-empty-condition-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Pt},rG={type:r.GenericReference,id:"person-entity-to-check-map-reads-value-ref-id",entityType:r.OutputMap,entityId:Fl},iG={type:r.GenericReference,id:"person-not-empty-condition-ref-two-id",entityType:r.Condition,entityId:ms},BR={id:"person-entity-to-check-map-id",version:1,type:r.InputMap,declaration:kn.fixedArguments[0],name:null,description:null,dynamicArguments:[],readsValue:rG,index:0,defaultValue:null,parent:iG},aG={type:r.Condition,id:ms,version:1,declaration:kn,inputs:[BR],calledByError:[],calledByEntry:[],calledBySuccess:[tG],successCalls:[HL],errorCalls:[eG],x:0,y:0,parent:nG},sG={type:r.GenericReference,id:"search-person-by-id-output-entity-declaration-datatype-parent-ref-id",entityType:r.ReturnDeclaration,entityId:RR},oG={id:"search-person-by-id-output-entity-declaration-datatype-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,isList:!1,constant:!1,asType:!1,isNullable:!1,entity:ct,defaultValue:null,parent:sG},lG={type:r.GenericReference,id:"search-person-by-id-output-entity-declaration-parent-ref-id",entityType:r.Search,entityId:jr},wR={isError:!1,id:RR,type:r.ReturnDeclaration,version:1,dataType:oG,name:"Found person",description:"The person entity that was found",parent:lG,required:!0,index:0,readsValue:null},cG={type:r.GenericReference,id:"search-person-by-id-output-entity-map-parent-ref-id",entityType:r.Search,entityId:jr},dG={type:r.OutputMap,id:Fl,version:1,declaration:wR,parent:cG,writesValues:[BR,OR],index:0},uG={id:"search-person-by-id-input-declaration-datatype-parent-ref-id",type:r.GenericReference,entityId:"search-person-by-id-input-declaration-id",entityType:r.ArgumentDeclaration};r.DataType;const pG={type:r.GenericReference,id:"search-person-by-id-input-declaration-parent-ref-id",entityType:r.Search,entityId:jr},_R={id:"search-person-by-id-input-declaration-id",type:r.ArgumentDeclaration,version:1,dataType:null,name:"Person ID",description:"The unique identifier (ID) property of the person entity",index:0,required:!0,parent:pG,writesValues:[]},yG={type:r.GenericReference,id:"search-person-by-id-input-map-parent-ref-id",entityType:r.Search,entityId:jr},hG={id:"search-person-by-id-input-map-reads-value-ref-id",type:r.GenericReference,entityId:ER,entityType:r.ArgumentDeclaration},MR={type:r.InputMap,id:"search-person-by-id-input-map",version:1,declaration:_R,name:null,description:null,readsValue:hG,defaultValue:null,parent:yG,dynamicArguments:[],index:0},fG={from:{name:"c9bc312a-10d3-48a7-9ab4-ea483a9e2416"},items:[{name:"*"}],where:[{name:"id",value:"{{dynamic_value_1}}"}]},mG={type:r.GenericReference,id:"search-person-by-id-parent-ref-id",entityType:r.FunctionDeclaration,entityId:Pt},TG={type:r.GenericReference,id:"search-person-by-id-called-by-ref-id",entityType:r.FunctionDeclaration,entityId:Pt},EG={type:r.Search,id:jr,version:1,name:"Search person by ID",description:"Searches for a person entity given the UUID",query:fG,inputsDeclarations:[_R],inputs:[MR],outputsDeclarations:[wR],outputs:[dG],calledByError:[],calledByEntry:[TG],calledBySuccess:[],error:null,successCalls:[aG],errorCalls:[],parent:mG,x:0,y:0};r.GenericReference,r.DataType;const RG={id:"account-number-to-create-arg-decl-data-type-parent-ref-id",type:r.GenericReference,entityId:"account-number-to-create-arg-decl-id",entityType:r.ArgumentDeclaration},bG={id:"account-number-to-create-arg-decl-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:F,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:RG},vG={entityType:r.FunctionDeclaration,entityId:Pt,type:r.GenericReference,id:"account-number-to-create-arg-decl-parent-ref-id"},gG={id:"account-number-to-create-arg-decl-id",type:r.ArgumentDeclaration,version:1,name:"Account number",description:"The account number of the new bank account entity",dataType:bG,writesValues:[CR],required:!0,index:1,parent:vG};r.GenericReference,r.DataType;const IG={id:"new-bank-account-owner-arg-decl-data-type-parent-ref-id",type:r.GenericReference,entityId:"new-bank-account-owner-arg-decl-id",entityType:r.ArgumentDeclaration},PG={id:"new-bank-account-owner-arg-decl-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:fa,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:IG},DG={entityType:r.FunctionDeclaration,entityId:Pt,type:r.GenericReference,id:"new-bank-account-owner-arg-decl-parent-ref-id"},AG={id:ER,type:r.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:PG,writesValues:[MR],required:!1,index:1,parent:DG},SG={type:r.GenericReference,id:"replace-bank-account-in-company-parent-ref",entityType:r.Project,entityId:J},OG={type:r.GenericReference,id:"company-entity-to-modify-parent-ref",entityType:r.FunctionDeclaration,entityId:Pt};r.GenericReference,r.DataType;const CG={id:"d47ceef6-be6f-40f1-a7b3-c73c8d8a6c6a",type:r.GenericReference,entityId:Gl,entityType:r.ArgumentDeclaration},BG={id:"company-entity-to-modify-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:Ce,isList:!1,isNullable:!1,asType:!1,defaultValue:null,constant:!1,parent:CG},wG={id:Gl,type:r.ArgumentDeclaration,version:1,name:"Company",dataType:BG,description:"The company to replace the bank account for",writesValues:[SR],required:!0,index:0,parent:OG},_G={type:r.FunctionDeclaration,id:Pt,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:[wG,gG,AG],index:null,implements:null,calls:[EG,SR],collapsed:!1,returnStatements:[],private:!1,x:0,y:0,parent:SG},MG={type:r.GenericReference,id:"e0a937bd-3a85-4037-a973-916985b9f94b",entityType:r.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},NG={type:r.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:MG,x:0,y:0},$G={type:r.GenericReference,id:"948e6869-ae5b-4914-bea0-b9f02ad6a014",entityType:r.Project,entityId:"23b23d8b-1929-4505-a350-745c8550e731"},VG={type:r.GenericReference,id:"f3d6f2c6-1b3e-4e9d-8c9d-5b5b9f0b8d9c",entityType:r.Project,entityId:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6"},LG={type:r.InstalledProject,version:1,id:"7268bc97-c0e6-4d88-b37e-d3241b5f77a6",name:"Third Party Installed Project",description:null,functions:[NG],events:[],implements:VG,parent:$G,x:0,y:0},Ul="iterate-over-list-loop-id",NR="iterate-over-list-loop-body-id",$R="iterate-over-list-loop-body-current-iteration-argument-declaration-id",GG={type:r.GenericReference,id:"iterate-over-list-loop-body-current-iteration-argument-declaration-data-type-parent-ref-id",entityId:$R,entityType:r.ArgumentDeclaration},FG={id:"iterate-over-list-loop-body-current-iteration-argument-declaration-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,defaultValue:null,entity:null,isList:!1,isNullable:!1,asType:!1,constant:!1,parent:GG},UG={id:"iterate-over-list-loop-body-current-iteration-argument-declaration-parent-ref-id",type:r.GenericReference,entityId:NR,entityType:r.FunctionDeclaration},xG={id:$R,type:r.ArgumentDeclaration,version:1,name:"Current value",description:"The current value being processed.",dataType:FG,required:!0,index:0,writesValues:[],parent:UG},jG={id:"iterate-over-list-loop-body-parent-ref-id",type:r.GenericReference,entityId:Ul,entityType:r.Loop},kG={id:NR,type:r.FunctionDeclaration,version:1,name:"Iteration logic trigger",description:"This function is called once for each entity in the list.",inputs:[xG],calls:[],implements:null,collapsed:!1,returnStatements:[],private:!1,index:0,x:0,y:0,parent:jG},qG={id:"iterate-over-list-loop-iteration-list-input-map-parent-ref-id",type:r.GenericReference,entityId:Ul,entityType:r.Loop},JG={id:"iterate-over-list-loop-iteration-list-input-map-id",type:r.InputMap,version:1,name:null,description:null,declaration:jn.fixedArguments[0],defaultValue:null,dynamicArguments:[],readsValue:null,index:0,parent:qG},WG={id:"iterate-over-list-loop-parent-ref-id",type:r.GenericReference,entityId:J,entityType:r.Project},HG={id:Ul,type:r.Loop,version:1,declaration:jn,inputs:[JG],successCalls:[],errorCalls:[],outputs:[],process:null,body:kG,calledByError:[],calledByEntry:[],calledBySuccess:[],breakStatements:[],continueStatements:[],error:null,x:0,y:0,parent:WG};var xl=(n=>(n.EQ="eq",n.NEQ="neq",n.GT="gt",n.GTE="gte",n.LT="lt",n.LTE="lte",n.LIKE="like",n.ILIKE="ilike",n))(xl||{}),VR=(n=>(n.COUNT="count",n.SUM="sum",n.AVG="avg",n.MIN="min",n.MAX="max",n))(VR||{});const YG={from:{name:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},items:{from:{name:"ed3a6098-12ee-4632-a6dd-c2e6c542f66d"},items:[{function:{name:VR.COUNT,items:["f8310850-a87e-405c-b182-4f1d5fa49240"]},alias:"employee_count"}],where:[{name:"80c86e1b-caca-4ba5-9b1f-38f72d10e4a3",operation:xl.NEQ,value:null}]},where:[{name:"employee_count",operation:xl.GT,value:1}]},zG={id:"find-companies-with-multiple-employees-and-bank-account-search-parent-ref-id",type:r.GenericReference,entityId:J,entityType:r.Project},ZG={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-parent-ref-id",type:r.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",entityType:r.Search},LR={isError:!1,id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-declaration-id",type:r.ReturnDeclaration,version:1,name:"companies",description:"List of companies with multiple employees and an existing bank account",dataType:null,readsValue:null,required:!0,index:0,parent:ZG},XG={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-parent-ref-id",type:r.GenericReference,entityId:"find-companies-with-multiple-employees-and-bank-account",entityType:r.Search},QG={id:"find-companies-with-multiple-employees-and-bank-account-search-companies-list-output-id",type:r.OutputMap,version:1,declaration:LR,writesValues:[],index:0,parent:XG},KG={id:"find-companies-with-multiple-employees-and-bank-account",type:r.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:[LR],inputs:[],outputs:[QG],query:YG,successCalls:[],errorCalls:[],error:null,calledByError:[],calledByEntry:[],calledBySuccess:[],x:0,y:0,parent:zG},kr="random-company-employee-test-variable-id",jl="manager-global-variable-id",GR="global-user-instance-id",qr="employee-mapped-dto-variable-id",FR="random-employee-id-output-map-id",UR="random-employee-birth-date-output-map-id",xR="random-employee-department-output-map-id",jR="random-employee-manager-output-map-id",kR="manager-global-id-output-map-id",qR="global-user-instance-id-output-map-id",eF="employee-mapped-dto-requester-id-input-map-id",tF="employee-mapped-dto-id-input-map-id",nF="employee-mapped-dto-birth-date-input-map-id",rF="employee-mapped-dto-department-input-map-id",iF="employee-mapped-dto-manager-input-map-id",aF={type:r.GenericReference,id:"employee-mapped-dto-manager-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:kR},sF={type:r.GenericReference,id:"employee-mapped-dto-manager-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:qr},JR={id:iF,type:r.InputMap,version:1,declaration:null,name:"manager_id",description:null,defaultValue:null,dynamicArguments:[],index:4,readsValue:aF,parent:sF},oF={type:r.GenericReference,id:"employee-mapped-dto-department-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:xR},lF={type:r.GenericReference,id:"employee-mapped-dto-department-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:qr},WR={id:rF,type:r.InputMap,version:1,declaration:null,name:"department_name",description:null,defaultValue:null,dynamicArguments:[],index:3,readsValue:oF,parent:lF},cF={type:r.GenericReference,id:"employee-mapped-dto-birth-date-input-map-reads-value-ref-id",entityType:r.OutputMap,entityId:UR},dF={type:r.GenericReference,id:"employee-mapped-dto-birth-date-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:qr},HR={id:nF,type:r.InputMap,version:1,declaration:null,name:"birth_date",description:null,defaultValue:null,dynamicArguments:[],index:2,readsValue:cF,parent:dF},uF={type:r.GenericReference,id:"employee-mapped-dto-id-output-map-reads-value-ref-id",entityType:r.OutputMap,entityId:FR},pF={type:r.GenericReference,id:"employee-mapped-dto-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:qr},YR={id:tF,type:r.InputMap,version:1,declaration:null,name:"id",description:"The ID of the employee",defaultValue:null,dynamicArguments:[],index:1,readsValue:uF,parent:pF},yF={type:r.GenericReference,id:"employee-mapped-dto-requester-id-output-map-reads-value-ref-id",entityType:r.OutputMap,entityId:qR},hF={type:r.GenericReference,id:"employee-mapped-dto-requester-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:qr},zR={id:eF,type:r.InputMap,version:1,declaration:null,name:"requester_id",description:"The ID of the current user making the request",defaultValue:null,dynamicArguments:[],index:0,readsValue:yF,parent:hF},fF={type:r.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:jl},mF={id:kR,type:r.OutputMap,version:1,declaration:Be.properties[1],index:0,writesValues:[JR],parent:fF},TF={type:r.GenericReference,id:"manager-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:jl},EF={id:"manager-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:It,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:TF,defaultValue:null},RF={type:r.GenericReference,id:"manager-variable-reads-value-ref-id",entityType:r.OutputMap,entityId:jR},bF={type:r.GenericReference,id:"manager-variable-parent-ref-id",entityType:r.Project,entityId:J},ZR={id:jl,type:r.VariableDeclaration,version:1,name:"Manager",dataType:EF,description:"A variable holding an inherited manager for testing purposes",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:RF,writesValues:[],inputs:[],outputs:[mF],internalCalls:[],parent:bF,x:0,y:0},vF={type:r.GenericReference,id:"random-company-employee-manager-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:kr},gF={id:jR,type:r.OutputMap,version:1,declaration:It.properties[2],index:3,writesValues:[ZR],parent:vF},IF={type:r.GenericReference,id:"random-company-employee-department-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:kr},PF={id:xR,type:r.OutputMap,version:1,declaration:It.properties[0],index:2,writesValues:[WR],parent:IF},DF={type:r.GenericReference,id:"random-company-employee-birth-date-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:kr},AF={id:UR,type:r.OutputMap,version:1,declaration:ct.properties[1],index:1,writesValues:[HR],parent:DF},SF={type:r.GenericReference,id:"random-company-employee-id-output-map-parent-ref-id",entityType:r.VariableDeclaration,entityId:kr},OF={id:FR,type:r.OutputMap,version:1,declaration:Be.properties[1],index:0,writesValues:[YR],parent:SF},CF={type:r.GenericReference,id:"random-company-employee-test-variable-data-type-parent-ref-id",entityType:r.VariableDeclaration,entityId:kr},BF={id:"random-company-employee-test-variable-data-type-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,version:1,entity:It,asType:!1,isList:!1,isNullable:!0,constant:!1,parent:CF,defaultValue:null},wF={type:r.GenericReference,id:"random-company-employee-test-variable-parent-ref-id",entityType:r.Project,entityId:J},_F={id:kr,type:r.VariableDeclaration,version:1,name:"Company employee",dataType:BF,description:"A variable holding a random company employee for testing purposes",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[OF,AF,PF,gF],internalCalls:[],parent:wF,x:0,y:0},MF={type:r.GenericReference,id:"employee-mapped-dto-variable-parent-ref-id",entityType:r.Project,entityId:J},NF={id:qr,type:r.VariableDeclaration,version:1,name:"Employee DTO",dataType:null,description:"A variable holding the data of a mapped employee DTO",calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[zR,YR,HR,WR,JR],outputs:[],internalCalls:[],parent:MF,x:0,y:0},$F={type:r.GenericReference,id:"0e63e617-f9d3-42e8-bde0-1bb0b1df7034",entityType:r.VariableDeclaration,entityId:dl},VF={id:"e75645ce-d3df-4f07-a897-ae9ef4d917fd",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:pl,version:1,asType:!1,isList:!1,isNullable:!1,constant:!1,parent:$F,defaultValue:null},LF={type:r.GenericReference,id:"e92a8ff5-3fef-4e0c-8d8f-92c930b2890b",entityType:r.Project,entityId:J},XR={id:dl,type:r.VariableDeclaration,version:1,name:"Current user",description:"The user that is currently logged in",dataType:VF,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:LF},GF={type:r.GenericReference,id:"manager-variable-id-output-map-parent-ref-id",entityType:r.VariableInstance,entityId:GR},FF={id:qR,type:r.OutputMap,version:1,declaration:Be.properties[1],index:0,writesValues:[zR],parent:GF},UF={type:r.GenericReference,id:"global-user-instance-parent-ref-id",entityType:r.Project,entityId:J},xF={id:GR,type:r.VariableInstance,version:1,declaration:XR,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[FF],internalCalls:[],parent:UF,x:0,y:0},jF={type:r.GenericReference,id:"is-test-environment-variable-dcl-datatype-parent-ref-id",entityType:r.VariableDeclaration,entityId:dl},kF={type:r.GenericReference,id:"is-test-environment-variable-dcl-datatype-default-value-parent-ref-id",entityType:r.DataType,entityId:"is-test-environment-variable-dcl-datatype-id"},qF={id:"is-test-environment-variable-dcl-datatype-id",type:r.DataType,andChildrenGroup:null,orChildrenGroup:null,entity:Fn,version:1,asType:!1,isList:!1,isNullable:!1,constant:!0,parent:jF,defaultValue:{id:"is-test-environment-variable-dcl-datatype-default-value-id",name:g.Boolean,version:1,value:null,type:r.PrimitiveValue,autogeneration:{type:xe.Random,rangeStart:null,rangeEnd:null},valueAsType:null,parent:kF}},JF={type:r.GenericReference,id:"is-test-environment-variable-dcl-main-project-ref-id",entityType:r.Project,entityId:J},QR={id:"is-test-environment-variable-dcl-id",type:r.VariableDeclaration,version:1,name:"Is test envrioment",description:"Indicates whether the current environment is a test environment or not.",dataType:qF,inputs:[],outputs:[],calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],x:0,y:0,readsValue:null,writesValues:[],internalCalls:[],parent:JF},WF={type:r.GenericReference,id:"is-test-environment-variable-instance-parent-ref-id",entityType:r.Project,entityId:J},HF={id:"is-test-environment-variable-instance-id",type:r.VariableInstance,version:1,declaration:QR,calledByError:[],calledByEntry:[],calledBySuccess:[],successCalls:[],errorCalls:[],readsValue:null,writesValues:[],inputs:[],outputs:[],internalCalls:[],parent:WF,x:0,y:0},KR={type:r.Project,id:J,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:[LG],entities:[ul,pl,ct,Yw,It,ss,hT,fT,Lr,jB,mt,Lw,zm,JD,UB],functions:[dV,jT,Bl,EV,AV,nE,wl,ml,_G,DT,hL],events:[S_],variableDeclarations:[QR,XR,Vl,_F,ZR,NF],variableInstances:[HF,xF],conditions:[],operations:[Ur],functionCalls:[DM,_N],loops:[HG],searches:[KG]};var f=(n=>(n.Error="error",n.Warning="warning",n))(f||{}),v=(n=>(n.InvalidObjectStructure="invalid-object-structure",n.NameNotUniqueInScope="name-not-unique-in-scope",n.EmptyName="empty-name",n.MissingCaller="missing-caller",n.PropertyOverwrite="property-overwrite",n.MethodOverwrite="method-overwrite",n.NoOverlapWithImplementedSignature="no-overlap-with-implemented-signature",n.ReaderWriterIncompatibleDataType="reader-writer-incompatible-data-type",n.UnreachableEntity="unreachable-entity",n.InternalCallParentMissingDataType="internal-call-parent-missing-data-type",n.InternalCallParentDeclarationEntityInvalidType="internal-call-parent-declaration-entity-invalid-type",n.InternalCallDeclarationNotFoundInParentDatatypeEntity="internal-call-declaration-not-found-in-parent-datatype-entity",n.InternalCallDeclarationIsNotFunctionDeclaration="internal-call-declaration-is-not-function-declaration",n.InternalCallDeclarationNotInParentDatatypeEntity="internal-call-declaration-not-in-parent-datatype-entity",n))(v||{}),y=(n=>(n.RootReference="root-reference",n.ReferencedEntityNotFound="referenced-entity-not-found",n.EntityIdNotUnique="entity-id-not-unique",n.BuiltInEntityGenerated="built-in-entity-generated",n.BuiltInEntityUpdated="built-in-entity-updated",n.BuiltInEntityDeleted="built-in-entity-deleted",n.UnknownEntityType="unknown-entity-type",n.MissingTypeProperty="missing-type-property",n.MissingIdProperty="missing-id-property",n.BuiltInEntityParent="built-in-entity-parent",n.InvalidBuiltInEntityReference="invalid-built-in-entity-reference",n.RecommendedImplementAbstractEntityAction="recommended-implement-abstract-entity-action",n.RecommendedImplementOperationAction="recommended-implement-operation-action",n.RecommendedImplementFunctionCallAction="recommended-implement-function-call-action",n.RecommendedImplementVariableDeclarationAction="recommended-implement-variable-declaration-action",n.RecommendedImplementVariableInstanceAction="recommended-implement-variable-instance-action",n.RecommendedImplementConditionAction="recommended-implement-condition-action",n.InvalidReferenceObjectStructure="invalid-reference-object-structure",n.ContainsSingleButShouldBeReferenceList="contains-single-but-should-be-reference-list",n.ContainsListButShouldReferenceSingle="contains-list-but-should-reference-single",n.InvalidParentReference="invalid-parent-reference",n.InvalidImplementsReference="invalid-implements-reference",n.InvalidExtendsReference="invalid-extends-reference",n.InvalidGenerationActionPayload="invalid-generation-action-payload",n.InvalidReference="invalid-reference",n.InvalidInternalCallParentRelation="invalid-internal-call-parent-relation",n.InvalidUpdateEntityOperation="invalid-update-entity-operation",n.NewEntityWouldOverriteExisting="new-entity-would-overrite-existing",n.InvalidDownstreamPropertyOverride="invalid-downstream-property-override",n.UnrecognizedProperty="unrecognized-property",n.SelfReference="self-reference",n.DuplicateReference="duplicate-reference",n.CallerWithIncompatibleScope="caller-with-incompatible-scope",n.InvalidFunctionDeclarationForFunctionCall="invalid-function-declaration-for-function-call",n.InvalidInputMapDeclaration="invalid-input-map-declaration",n.InvalidActionDescriptorForOperation="invalid-action-descriptor-for-operation",n.InvalidActionDescriptorForCondition="invalid-action-descriptor-for-condition",n.InvalidActionDescriptorForLoop="invalid-action-descriptor-for-loop",n.InvalidInmutablePropertyOverride="invalid-inmutable-property-override",n.OutputOverwrite="output-overwrite",n.InputOverwrite="input-overwrite",n.IncompatibleScope="incompatible-scope",n.InvalidParentUpdate="invalid-parent-update",n.NonInteractiveEntityReferenced="non-interactive-entity-referenced",n.InvalidParentRelationType="invalid-parent-relation-type",n))(y||{}),O=(n=>(n.ScopeWithoutLogic="scope-without-logic",n.ExtendingAbstractEntity="extending-abstract-entity",n.ImplementingNonAbstractEntity="implementing-non-abstract-entity",n.AbstractEntityWithNonAbstractMethods="abstract-entity-with-non-abstract-methods",n.AbstractEntityWithNonAbstractProperties="abstract-entity-with-non-abstract-properties",n.StaticEntityWithNonStaticProperties="static-entity-with-non-static-properties",n.NonStaticPropertyInStaticEntity="non-static-property-in-static-entity",n.AbstractPropertyInNonAbstractEntity="abstract-property-in-non-abstract-entity",n.AbstractMethodInNonAbstractEntity="abstract-method-in-non-abstract-entity",n.IncorrectEntityImplementation="incorrect-entity-implementation",n.IncorrectMethodImplementation="incorrect-method-implementation",n.IncorrectPropertyImplementation="incorrect-property-implementation",n.PropertyImplementsNonAbstact="property-implements-non-abstract",n.NonStaticPropertyImplementsStatic="non-static-property-implements-static",n.StaticPropertyImplementsNonStatic="static-property-implements-non-static",n.PropertyImplementsIncompatibleType="property-implements-incompatible-type",n.MissingPropertyImplementation="missing-property-implementation",n.MissingMethodImplementation="missing-method-implementation",n.NoProperties="no-properties",n.ReadingFromIncompatibleType="reading-from-incompatible-type",n.WritingToIncompatibleType="writing-to-incompatible-type",n.InvalidPropertiesCombination="invalid-properties-combination",n.DisconnectedCallableEntity="disconnected-callable-entity",n.VariableHasInputsAndInternalCall="variable-has-inputs-and-internal-calls",n.VariableHasOutputsAndInternalCall="variable-has-outputs-and-internal-call",n.VariableIsCalledAndHasInternalCall="variable-is-called-and-has-internal-call",n.VariableCallsOthersAndHasInternalCall="variable-calls-others-and-has-internal-call",n))(O||{});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 v?new Xn({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:e}):null}}class Xn{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 Xn({id:this.id,message:this.message,issue:this.issue,severity:this.severity,code:this.code,entity:this.entity})}}function YF(n){const e=new Set;return n.filter(t=>e.has(t.id)?!1:(e.add(t.id),!0))}function k(n){const e=n.entity.errors.find(i=>i.id===n.id);return e?{new:!1,error:e}:{new:!0,error:new Xn(n)}}function zF(n,e){const t=new Map;return n.forEach(i=>{t.set(i.id,i)}),e.forEach(i=>{t.set(i.id,i)}),Array.from(t.values())}function X(n,e){const t=[];return e.forEach(i=>{const a=n.find(s=>s.id===i.id);a?t.push(a):t.push(i)}),t}const Ji=c.union([c.string(),c.number(),c.boolean(),c.date()]),eb=c.enum([xe.CurrentDateAndTime,xe.Random,xe.Unique]),Es=c.object({type:eb,rangeStart:Ji.nullable(),rangeEnd:Ji.nullable()}),Wi=Es.extend({type:c.literal(xe.Random),rangeStart:Ji,rangeEnd:Ji}),kl=Es.extend({type:c.literal(xe.Unique),rangeStart:c.null(),rangeEnd:c.null()}),tb=Es.extend({type:c.literal(xe.CurrentDateAndTime),rangeStart:c.null(),rangeEnd:c.null()}),Rs=Wi.extend({rangeStart:c.number().nullable(),rangeEnd:c.number().nullable()}),nb=Rs.extend({rangeStart:c.number(),rangeEnd:c.null()}),rb=Rs.extend({rangeStart:c.null(),rangeEnd:c.number()}),ib=Rs.extend({rangeStart:c.number(),rangeEnd:c.number()}),bs=Wi.extend({rangeStart:c.number().nullable(),rangeEnd:c.number().nullable()}),ab=bs.extend({rangeStart:c.number(),rangeEnd:c.null()}),sb=bs.extend({rangeStart:c.null(),rangeEnd:c.number()}),ob=bs.extend({rangeStart:c.number(),rangeEnd:c.number()}),vs=Wi.extend({rangeStart:c.date().nullable(),rangeEnd:c.date().nullable()}),lb=vs.extend({rangeStart:c.date(),rangeEnd:c.null()}),cb=vs.extend({rangeStart:c.null(),rangeEnd:c.date()}),db=vs.extend({rangeStart:c.date(),rangeEnd:c.date()}),ql=Wi.extend({rangeStart:c.null(),rangeEnd:c.null()}),Jl=c.union([ab,sb,ob]),Wl=c.union([nb,rb,ib]),Hl=c.union([lb,cb,db,tb]),Yl=c.union([Jl,Wl,Hl,kl,ql]);function zl(){return c.union([c.object({type:c.literal(r.ValueDescriptor)}),c.record(c.string(),c.any())])}function ub(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.ValueDescriptor)})}function Zl(){return c.object({id:c.string(),type:c.literal(r.ValueDescriptor),name:c.string(),required:c.boolean()})}function ZF(){return Zl().merge(c.object({version:c.number(),index:c.number()}))}function XF(){return Zl().merge(c.object({}))}function QF(){return c.object({dataType:cn(),parent:on()})}function KF(){return ZF().merge(QF())}function gs(){return c.union([c.object({type:c.literal(r.PrimitiveEntity)}),c.record(c.string(),c.any())])}function Is(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.PrimitiveEntity)})}function Ps(){return c.object({id:c.string(),type:c.literal(r.PrimitiveEntity),name:c.string(),description:c.string().nullable(),static:c.boolean(),abstract:c.boolean()})}function e4(){return Ps().merge(c.object({version:c.number()}))}function t4(){return Ps().merge(c.object({}))}function n4(){return c.object({properties:c.array(Qn()),methods:c.array(At()),abstractMethods:c.array(Yt()),extends:c.array(c.union([gs(),Jr()]))})}function r4(){return e4().merge(n4())}function Qn(){return c.union([c.object({type:c.literal(r.Property)}),c.record(c.string(),c.any())])}function pb(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.Property)})}function Xl(){return c.object({id:c.string(),type:c.literal(r.Property),name:c.string(),description:c.string().nullable(),private:c.boolean(),static:c.boolean(),required:c.boolean(),abstract:c.boolean()})}function i4(){return Xl().merge(c.object({version:c.number(),index:c.number()}))}function a4(){return Xl().merge(c.object({}))}function s4(){return c.object({dataType:cn(),implements:Qn().nullable(),parent:c.union([nr(),Is(),Ds()])})}function o4(){return i4().merge(s4())}function l4(){return c.enum([_.CRON_JOB,_.EXECUTION,_.HTTP_ENDPOINT,_.PERSISTED_ENTITY,_.RELATIONAL_DATABASE])}function Jr(){return c.union([c.object({type:c.literal(r.BuiltInBaseEntity)}),c.record(c.string(),c.any())])}function Ds(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.BuiltInBaseEntity)})}function Ql(){return c.object({id:c.string(),version:c.number(),type:c.literal(r.BuiltInBaseEntity),name:l4(),description:c.string().nullable(),abstract:c.boolean(),static:c.boolean()})}function c4(){return Ql()}function d4(){return Ql().merge(c.object({}))}function u4(){return c.object({properties:c.array(Qn()),methods:c.array(At()),abstractMethods:c.array(Yt()),extends:c.array(c.union([Jr(),gs()]))})}function p4(){return c4().merge(u4())}function yb(){return c.enum([L.Dynamic,L.Fixed,L.None])}function Yt(){return c.union([c.object({type:c.literal(r.ActionDescriptor)}),c.record(c.string(),c.any())])}function on(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.ActionDescriptor)})}function As(){return c.object({id:c.string(),type:c.literal(r.ActionDescriptor),name:c.string(),description:c.string().nullable(),argumentsType:yb(),returnsType:yb()})}function y4(){return As().merge(c.object({version:c.number()}))}function h4(){return As().merge(c.object({}))}function f4(){return c.object({fixedArguments:c.array(zl()),fixedReturns:c.array(zl()),dynamicArgumentTypes:cn().nullable(),dynamicReturnTypes:cn().nullable(),parent:c.union([Tt(),nr(),Ds(),Is()]).nullable()})}function hb(){return y4().merge(f4())}function Wr(){return c.union([c.object({type:c.literal(r.Loop)}),c.record(c.string(),c.any())])}function zt(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.Loop)})}function fb(){return c.object({id:c.string(),type:c.literal(r.Loop)})}function m4(){return fb().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function T4(){return fb().merge(c.object({declaration:c.union([c.string(),At()])}))}function E4(){return c.object({calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),declaration:Yt(),inputs:c.array(Dt()),outputs:c.array(ut()),successCalls:c.array(ke()),errorCalls:c.array(ke()),error:ut(),body:At(),parent:c.union([un(),Tt()]),breakStatements:c.array(Xr()),continueStatements:c.array(Hr())})}function R4(){return m4().merge(E4())}function Hr(){return c.union([c.object({type:c.literal(r.ContinueStatement)}),c.record(c.string(),c.any())])}function Yr(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.ContinueStatement)})}function Kl(){return c.object({id:c.string(),type:c.literal(r.ContinueStatement)})}function b4(){return Kl().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function v4(){return Kl().merge(c.object({}))}function g4(){return c.object({calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),outputs:c.array(Zt()),throws:c.optional(Zt()),parent:zt()})}function I4(){return b4().merge(g4())}function Kn(){return c.union([c.object({type:c.literal(r.ReturnStatement)}),c.record(c.string(),c.any())])}function zr(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.ReturnStatement)})}function ec(){return c.object({id:c.string(),type:c.literal(r.ReturnStatement)})}function P4(){return ec().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function D4(){return ec().merge(c.object({}))}function A4(){return c.object({calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),outputs:c.array(Zt()),throws:c.optional(Zt()),parent:un()})}function S4(){return P4().merge(A4())}function Hi(){return c.union([c.object({type:c.literal(r.Search)}),c.record(c.string(),c.any())])}function Zr(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.Search)})}function tc(){return c.object({id:c.string(),type:c.literal(r.Search),name:c.string(),query:c.any(),description:c.string().nullable()})}function O4(){return tc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function C4(){return tc().merge(c.object({}))}function B4(){return c.object({successCalls:c.array(ke()),errorCalls:c.array(ke()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),inputsDeclarations:c.array(tr()),inputs:c.array(Dt()),outputsDeclarations:c.array(Zt()),outputs:c.array(ut()),parent:c.union([un(),Tt()]),error:ut().nullable()})}function w4(){return O4().merge(B4())}function Zt(){return c.union([c.object({type:c.literal(r.ReturnDeclaration)}),c.record(c.string(),c.any())])}function mb(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.ReturnDeclaration)})}function nc(){return c.object({id:c.string(),type:c.literal(r.ReturnDeclaration),name:c.string(),description:c.string().nullable(),isError:c.boolean()})}function _4(){return nc().merge(c.object({version:c.number(),index:c.number()}))}function M4(){return nc().merge(c.object({}))}function N4(){return c.object({dataType:cn().nullable(),readsValue:Xi().nullable(),parent:c.union([zr(),on(),on(),Zr(),ln(),Yr()])})}function $4(){return _4().merge(N4())}function Xr(){return c.union([c.object({type:c.literal(r.BreakStatement)}),c.record(c.string(),c.any())])}function ln(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.BreakStatement)})}function rc(){return c.object({id:c.string(),type:c.literal(r.BreakStatement)})}function V4(){return rc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function L4(){return rc().merge(c.object({}))}function G4(){return c.object({calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),outputs:c.array(Zt()),throws:c.optional(Zt()),parent:zt()})}function F4(){return V4().merge(G4())}function ut(){return c.union([c.object({type:c.literal(r.OutputMap)}),c.record(c.string(),c.any())])}function ic(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.OutputMap)})}function ac(){return c.object({id:c.string(),type:c.literal(r.OutputMap)})}function U4(){return ac().merge(c.object({version:c.number(),index:c.number()}))}function x4(){return ac().merge(c.object({}))}function j4(){return c.object({writesValues:c.array(dn()),declaration:c.union([Zt(),Qn()]),parent:c.union([ye(),zt(),ln()])})}function k4(){return U4().merge(j4())}function Qr(){return c.union([c.object({type:c.literal(r.FunctionCall)}),c.record(c.string(),c.any())])}function Yi(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.FunctionCall)})}function sc(){return c.object({id:c.string(),type:c.literal(r.FunctionCall)})}function q4(){return sc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function J4(){return sc().merge(c.object({}))}function W4(){return c.object({successCalls:c.array(ke()),errorCalls:c.array(ke()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),writesValues:c.array(dn()),declaration:At(),inputs:c.array(Dt()),outputs:c.array(ut()),error:c.optional(ut()),parent:c.union([un(),Tt()])})}function H4(){return q4().merge(W4())}function Y4(){return c.enum([Ae.Equal,Ae.NotEqual,Ae.MoreThan,Ae.MoreThanOrEqual,Ae.LessThan,Ae.LessThanOrEqual,Ae.And,Ae.Or,Ct.Empty,Ct.NotEmpty])}function zi(){return c.union([c.object({type:c.literal(r.Condition)}),c.record(c.string(),c.any())])}function Ss(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.Condition)})}function oc(){return c.object({id:c.string(),type:c.literal(r.Condition)})}function z4(){return oc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function Z4(){return oc().merge(c.object({}))}function X4(){return c.object({successCalls:c.array(ke()),errorCalls:c.array(ke()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),leftValue:Dt(),rightValue:Dt().nullable(),operator:Y4(),parent:c.union([un(),Tt()])})}function Q4(){return z4().merge(X4())}function Zi(){return c.union([c.object({type:c.literal(r.InternalCall)}),c.record(c.string(),c.any())])}function lc(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.InternalCall)})}function cc(){return c.object({id:c.string(),type:c.literal(r.InternalCall),index:c.number()})}function K4(){return cc().merge(c.object({version:c.number(),index:c.number()}))}function eU(){return cc().merge(c.object({declaration:c.union([c.string(),At()])}))}function tU(){return c.object({successCalls:c.array(ke()),errorCalls:c.array(ke()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),writesValues:c.array(dn()),declaration:At(),inputs:c.array(Dt()),outputs:c.array(ut()),parent:Bn(),error:c.optional(ut())})}function nU(){return K4().merge(tU())}function Dt(){return c.union([c.object({type:c.literal(r.InputMap)}),c.record(c.string(),c.any())])}function Os(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.InputMap)})}function dc(){return c.object({id:c.string(),type:c.literal(r.InputMap),name:c.string().nullable().optional(),description:c.string().nullable().optional()})}function rU(){return dc().merge(c.object({version:c.number(),index:c.number()}))}function iU(){return dc().merge(c.object({}))}function aU(){return c.object({defaultValue:uc().nullable(),declaration:c.union([tr(),Qn()]).nullable(),readsValue:Xi().nullable(),parent:c.union([ye(),Os(),zt(),ln()]),dynamicArguments:c.array(Dt())})}function sU(){return rU().merge(aU())}function Kr(){return c.union([c.object({type:c.literal(r.Operation)}),c.record(c.string(),c.any())])}function ei(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.Operation)})}function Cs(){return c.object({id:c.string(),type:c.literal(r.Operation)})}function oU(){return Cs().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function lU(){return Cs().merge(c.object({}))}function cU(){return Cs().merge(c.object({successCalls:c.array(ke()),errorCalls:c.array(ke()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),writesValues:c.array(dn()),declaration:Yt(),inputs:c.array(Dt()),outputs:c.array(ut()),error:c.array(ut()),dynamicArguments:c.array(Dt()),parent:c.union([un(),Tt()])}))}function dU(){return oU().merge(cU())}function Bs(){return c.union([c.string(),c.number(),c.boolean(),c.null(),c.date()])}function Tb(){return c.record(c.string(),Bs())}function uU(){return c.array(c.union([Bs(),Tb()]))}function Eb(){return c.union([Bs(),Tb(),uU()])}function Rb(){return c.union([Bs(),Eb()])}function bb(){return c.enum([g.String,g.Number,g.Boolean,g.Null,g.Date,g.JSON,g.Enum,g.File,g.UUID,g.EntityTemplate,g.ActionDescriptor])}function pU(){return c.union([nr(),ei(),Qi()])}function yU(){return c.object({id:c.string(),name:bb(),type:c.literal(r.PrimitiveValue),value:Rb(),autogeneration:Yl.nullable()})}function hU(){return yU().merge(c.object({}))}function Ft(){return c.object({id:c.string(),version:c.number(),name:bb(),type:c.literal(r.PrimitiveValue),value:Rb(),valueAsType:pU().nullable(),autogeneration:Yl.nullable(),parent:c.union([pc(),Os()])})}function fU(){return Ft().extend({name:c.literal(g.String),value:c.string(),autogeneration:Jl.nullable()})}function mU(){return Ft().extend({name:c.literal(g.Number),value:c.number(),autogeneration:Wl.nullable()})}function TU(){return Ft().extend({name:c.literal(g.Boolean),value:c.boolean(),autogeneration:ql.nullable()})}function EU(){return Ft().extend({name:c.literal(g.Null),value:c.null(),autogeneration:c.null()})}function RU(){return Ft().extend({name:c.literal(g.Date),value:c.date(),autogeneration:Hl.nullable()})}function bU(){return Ft().extend({name:c.literal(g.JSON),value:Eb(),autogeneration:c.null()})}function vU(){return Ft().extend({name:c.literal(g.Enum),value:c.string(),autogeneration:c.null()})}function gU(){return Ft().extend({name:c.literal(g.File),value:c.string(),autogeneration:c.null()})}function IU(){return Ft().extend({name:c.literal(g.UUID),value:c.string(),autogeneration:kl.nullable()})}function PU(){return Ft().extend({name:c.literal(g.EntityTemplate),value:nr(),autogeneration:c.null()})}function DU(){return Ft().extend({name:c.literal(g.ActionDescriptor),value:Qi(),autogeneration:c.null()})}function uc(){return c.union([fU(),mU(),TU(),EU(),RU(),bU(),vU(),gU(),IU(),PU(),DU()])}function cn(){return c.union([c.object({type:c.literal(r.DataType)}),c.record(c.string(),c.any())])}function pc(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.DataType)})}function yc(){return c.object({id:c.string(),type:c.literal(r.DataType),isNullable:c.boolean(),isList:c.boolean(),constant:c.boolean(),asType:c.boolean(),options:c.array(c.string()).optional()})}function AU(){return yc().merge(c.object({version:c.number()}))}function SU(){return yc().merge(c.object({}))}function OU(){return c.object({defaultValue:uc().nullable(),entity:c.union([ti(),Jr(),gs(),Yt()]).nullable(),parent:c.union([pb(),Ib(),on(),ub()])})}function CU(){return AU().merge(OU())}function hc(){return c.union([c.object({type:c.literal(r.VariableDeclaration)}),c.record(c.string(),c.any())])}function BU(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.VariableDeclaration)})}function fc(){return c.object({id:c.string(),type:c.literal(r.VariableDeclaration),name:c.string(),description:c.string().nullable()})}function wU(){return fc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function _U(){return fc().merge(c.object({}))}function MU(){return c.object({dataType:cn().nullable(),readsValue:Xi().nullable(),writesValues:c.array(dn()),inputs:c.array(Dt()),outputs:c.array(ut()),successCalls:c.array(ke()),errorCalls:c.array(ke()),internalCalls:c.array(Zi()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),parent:c.union([un(),Tt()])})}function NU(){return wU().merge(MU())}function vb(){return c.union([c.object({type:c.literal(r.VariableInstance)}),c.record(c.string(),c.any())])}function $U(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.VariableInstance)})}function mc(){return c.object({id:c.string(),type:c.literal(r.VariableInstance)})}function VU(){return mc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function LU(){return mc().merge(c.object({}))}function GU(){return c.object({declaration:hc(),dataType:cn().nullable(),readsValue:Xi().nullable(),writesValues:c.array(dn()),inputs:c.array(Dt()),outputs:c.array(ut()),successCalls:c.array(ke()),errorCalls:c.array(ke()),internalCalls:c.array(Zi()),calledBySuccess:c.array(ye()),calledByError:c.array(ye()),calledByEntry:c.array(Ue()),parent:c.union([un(),Tt()])})}function FU(){return VU().merge(GU())}function Tc(){return c.union([c.object({type:c.literal(r.InstalledProject)}),c.record(c.string(),c.any())])}function ws(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.InstalledProject)})}function UU(){return c.object({id:c.string(),type:c.literal(r.InstalledProject)})}function xU(){return c.object({version:c.number(),x:c.number(),y:c.number()})}function jU(){return c.object({})}function kU(){return c.object({implements:Tt(),description:c.string().nullable(),functions:c.array(At()),events:c.array(Ec()),parent:Tt()})}function qU(){return xU().merge(kU())}function Ec(){return c.union([c.object({type:c.literal(r.GlobalEvent)}),c.record(c.string(),c.any())])}function JU(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.GlobalEvent)})}function _s(){return c.object({id:c.string(),type:c.literal(r.GlobalEvent),name:c.string(),collapsed:c.boolean()})}function WU(){return _s().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function HU(){return _s().merge(c.object({}))}function YU(){return _s().merge(c.object({returnStatements:c.array(Kn()),implements:c.array(hb()),inputs:c.array(tr()),calls:c.array(ke()),parent:c.union([Tt(),ws()])}))}function zU(){return WU().merge(YU())}function er(){return c.union([hc(),vb()])}function Bn(){return c.union([BU(),$U()])}function dn(){return c.union([er(),Dt(),Zt()])}function gb(){return c.union([Bn(),Os(),mb()])}function Xi(){return c.union([er(),tr(),ut(),Kr(),Zi(),Qr()])}function ZU(){return c.union([Bn(),Rc(),ic(),ei(),lc(),Yi()])}function XU(){return c.union([tr(),ut(),dn()])}function Ib(){return c.union([Rc(),ic(),gb()])}function Ms(){return Ec()}function Ns(){return JU()}function $s(){return c.union([Kr(),Qr(),zi(),Hi(),er(),Zi(),Wr()])}function ye(){return c.union([ei(),Yi(),Ss(),Zr(),Bn(),lc(),zt()])}function Vs(){return c.union([Kr(),Qr(),zi(),Hi(),er(),Wr()])}function Ls(){return c.union([ei(),Yi(),Ss(),Zr(),Bn(),zt()])}function Pb(){return c.union([$s(),Kn(),Xr(),Hr()])}function ke(){return c.union([ye(),zr(),ln(),Yr()])}function Db(){return c.union([Vs(),Kn(),Xr(),Hr()])}function Ab(){return c.union([Ls(),zr(),ln(),Yr()])}function wn(){return c.union([At(),Ms()])}function Ue(){return c.union([Qi(),Ns()])}function QU(){return c.union([$s(),wn()])}function KU(){return c.union([ye(),Ue()])}function ex(){return c.union([Vs(),wn()])}function tx(){return c.union([Ls(),Ue()])}function nx(){return c.union([Pb(),wn()])}function rx(){return c.union([ke(),Ue()])}function ix(){return c.union([Db(),wn()])}function ax(){return c.union([Ab(),Ue()])}function sx(){return c.union([wn(),Wr()])}function un(){return c.union([Ue(),zt()])}function ox(){return c.union([$s(),wn()])}function lx(){return c.union([ye(),Ue()])}function cx(){return c.union([Vs(),wn()])}function dx(){return c.union([Ls(),Ue()])}function ux(){return c.union([Kn(),Xr(),Hr()])}function px(){return c.union([zr(),ln(),Yr()])}function yx(){return c.union([Jr(),Dx(),Tc(),ti(),At(),Ms(),er(),Dt(),ut(),zi(),Kr(),Qr(),Zt(),tr(),gs(),cn(),Qn(),Yt(),Kn(),Hr(),Xr(),Wr(),Hi(),Yt(),Yt(),zl(),Zi()])}function hx(){return c.union([Ds(),Tt(),ws(),nr(),Qi(),Ns(),Bn(),Os(),ic(),Ss(),ei(),Yi(),mb(),Rc(),Is(),pc(),pb(),on(),zr(),Yr(),ln(),zt(),Zr(),on(),on(),ub(),lc()])}function fx(){return c.union([Tc(),ti(),At(),Ms(),er(),zi(),Kr(),Qr(),Kn(),Hr(),Xr(),Wr(),Hi()])}function mx(){return c.union([ws(),nr(),Qi(),Ns(),Bn(),Ss(),ei(),Yi(),zr(),Yr(),ln(),zt(),Zr()])}function tr(){return c.union([c.object({type:c.literal(r.ArgumentDeclaration)}),c.record(c.string(),c.any())])}function Rc(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.ArgumentDeclaration)})}function bc(){return c.object({id:c.string(),type:c.literal(r.ArgumentDeclaration)})}function Tx(){return bc().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function Ex(){return bc().merge(c.object({}))}function Rx(){return c.object({dataType:cn().nullable(),writesValues:c.array(dn()),parent:c.union([Ue(),on(),on(),Zr(),ln()])})}function bx(){return Tx().merge(Rx())}function At(){return c.union([c.object({type:c.literal(r.FunctionDeclaration)}),c.record(c.string(),c.any())])}function Qi(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.FunctionDeclaration)})}function vc(){return c.object({id:c.string(),type:c.literal(r.FunctionDeclaration),name:c.string(),description:c.string().nullable()})}function vx(){return vc().merge(c.object({version:c.number(),x:c.number(),y:c.number(),index:c.number().nullable()}))}function gx(){return vc()}function Ix(){return c.object({inputs:c.array(tr()),implements:Yt().nullable(),returnStatements:c.array(Kn()),parent:c.union([Tt(),ws(),nr(),zt(),Ds(),Is()])})}function Px(){return vx().merge(Ix())}function Dx(){return c.union([c.object({type:c.literal(r.Project)}),c.record(c.string(),c.any())])}function Tt(){return c.object({entityType:c.literal(r.Project),entityId:c.string(),id:c.string(),type:c.literal(r.GenericReference)})}function gc(){return c.object({id:c.string(),type:c.literal(r.Project),name:c.string(),description:c.string().nullable()})}function Ax(){return gc().merge(c.object({version:c.number()}))}function Sx(){return gc()}function Ox(){return c.object({entities:c.array(ti()),functions:c.array(At()),events:c.array(Ec()),projects:c.array(Tc()),variableDeclarations:c.array(hc()),variableInstances:c.array(vb()),conditions:c.array(zi()),operations:c.array(Kr()),functionCalls:c.array(Qr()),loops:c.array(Wr()),searches:c.array(Hi())})}function Cx(){return Ax().merge(Ox())}function ti(){return c.union([c.object({type:c.literal(r.CustomEntity)}),c.record(c.string(),c.any())])}function nr(){return c.object({id:c.string(),type:c.literal(r.GenericReference),entityId:c.string(),entityType:c.literal(r.CustomEntity)})}function Ic(){return c.object({id:c.string(),type:c.literal(r.CustomEntity),name:c.string(),description:c.string().nullable(),static:c.boolean(),abstract:c.boolean()})}function Bx(){return Ic().merge(c.object({version:c.number(),x:c.number(),y:c.number()}))}function wx(){return Ic().merge(c.object({}))}function _x(){return c.union([Tt(),pc()])}function Mx(){return c.object({properties:c.array(Qn()),methods:c.array(At()),abstractMethods:c.array(Yt()),extends:c.array(c.union([ti(),Jr()])),implements:c.array(c.union([ti(),Jr()])),parent:_x()})}function Nx(){return Bx().merge(Mx())}function $x(n){const e=Nx(),t=n.toJSON();e.safeParse(t).success;const a=n.implements.flatMap(m=>Gx(n,m)),s=n.extends.flatMap(m=>Fx(n,m)),o=xx(n),u=Ux(n);n.methods.flatMap(m=>m.validate());const p=[...a,...s,...o,...u];return X(n.errors,p)}function Vx(n,e){const t=e.properties.filter(s=>s.abstract),i=[];let a=[...n.properties];return t.forEach(s=>{const o=a.find(u=>{var p;return((p=u.implements)==null?void 0:p.id)===s.id});o?a=a.filter(u=>u.id!==o.id):i.push(s)}),i}function Lx(n,e){const t=e.abstractMethods,i=[];let a=[...n.methods];return t.forEach(s=>{const o=a.find(u=>{var p;return((p=u.implements)==null?void 0:p.id)===s.id});o?a=a.filter(u=>u.id!==o.id):i.push(s)}),i}function Gx(n,e){const t=[];if(!e.abstract){const m=k({id:n.id+"--"+O.ImplementingNonAbstractEntity,message:`Entity "${n.name}" with id "${n.id}" is implementing a non-abstract entity "${e.name}" with id "${e.id}"`,issue:null,severity:f.Error,code:O.ImplementingNonAbstractEntity,entity:n});return t.push(m.error),t}const i=e.properties.filter(m=>m.abstract),a=[];let s=[...n.properties];i.forEach(m=>{const T=s.find(b=>{var I;return((I=b.implements)==null?void 0:I.id)===m.id});T?s=s.filter(b=>b.id!==T.id):a.push(m)}),a.length&&a.forEach(m=>{const T=k({id:n.id+"--"+O.MissingPropertyImplementation+"--"+m.id,message:`Property "${m.name}" with id "${m.id}" of entity "${e.name}" with id "${e.id}" is not implemented when entity "${n.name}" with id "${n.id}" implements it`,issue:null,severity:f.Error,code:O.MissingPropertyImplementation,entity:n});t.push(T.error)});const o=[];let u=[...n.methods];e.abstractMethods.forEach(m=>{const T=u.find(b=>{var I;return((I=b.implements)==null?void 0:I.id)===m.id});T?u=u.filter(b=>b.id!==T.id):o.push(m)}),o.length&&o.forEach(m=>{const T=k({id:n.id+"--"+O.MissingMethodImplementation+"--"+m.id,message:`Method "${m.name}" with id "${m.id}" of entity "${e.name}" with id "${e.id}" is not implemented when entity "${n.name}" with id "${n.id}" implements it`,issue:null,severity:f.Error,code:O.MissingMethodImplementation,entity:n});t.push(T.error)});const p=[];e.properties.forEach(m=>{const T=s.find(b=>b.name===m.name);T&&p.push([T,m])}),p.length&&p.forEach(([m])=>{const T=k({id:n.id+"--"+v.PropertyOverwrite+"--"+m.id,message:`Property "${m.name}" with id "${m.id}" of entity "${n.name}" with id "${n.id}" overwrites the property with the same name from the base entity "${e.name}" with id "${e.id}"`,issue:null,severity:f.Error,code:v.PropertyOverwrite,entity:n});t.push(T.error)});const h=[];return e.methods.forEach(m=>{const T=u.find(b=>b.name===m.name);T&&h.push([T,m])}),h.length&&h.forEach(([m])=>{const T=k({id:n.id+"--"+v.MethodOverwrite+"--"+m.id,message:`Method "${m.name}" with id "${m.id}" of entity "${n.name}" with id "${n.id}" overwrites the method with the same name from the base entity "${e.name}" with id "${e.id}"`,issue:null,severity:f.Error,code:v.MethodOverwrite,entity:n});t.push(T.error)}),t}function Fx(n,e){const t=[],i=[];if(e.abstract){const s=k({id:n.id+"--"+O.ExtendingAbstractEntity,message:`Entity "${n.name}" with id "${n.id}" is extending an abstract entity "${e.name}" with id "${e.id}"`,issue:null,severity:f.Error,code:O.ExtendingAbstractEntity,entity:n});return t.push(s.error),t}n.properties.forEach(s=>{var u;const o=e.properties.find(p=>p.name===s.name);((u=s.implements)==null?void 0:u.id)!==(o==null?void 0:o.id)&&o&&i.push(s)}),i.length&&i.forEach(s=>{const o=k({id:n.id+"--"+v.PropertyOverwrite,message:`Property "${s.name}" with id "${s.id}" of entity "${n.name}" with id "${n.id}" overwrites the property with the same name from the extended entity "${e.name}" with id "${e.id}"`,issue:null,severity:f.Error,code:v.PropertyOverwrite,entity:n});t.push(o.error)});const a=[];return n.methods.forEach(s=>{var u;const o=e.methods.find(p=>p.name===s.name);((u=s.implements)==null?void 0:u.id)!==(o==null?void 0:o.id)&&o&&a.push(s)}),a.length&&a.forEach(s=>{const o=k({id:n.id+"--"+v.MethodOverwrite,message:`Method "${s.name}" with id "${s.id}" of entity "${n.name}" with id "${n.id}" overwrites the method with the same name from the extended entity "${e.name}" with id "${e.id}"`,issue:null,severity:f.Error,code:v.MethodOverwrite,entity:n});t.push(o.error)}),t}function Ux(n){const e=[];if(!n.properties.length){const t=k({id:n.id+"--"+O.NoProperties,message:"No properties implemented",issue:null,severity:f.Warning,code:O.NoProperties,entity:n});e.push(t.error)}return n.properties.forEach(t=>{t.validate()}),e}function xx(n){const e=[];if(n.abstract){if(n.methods.length){const t=k({id:n.id+"--"+O.AbstractEntityWithNonAbstractMethods,message:`Entity "${n.name}" with id "${n.id}" is marked as abstract but has non-abstract methods`,issue:null,severity:f.Error,code:O.AbstractEntityWithNonAbstractMethods,entity:n});e.push(t.error)}if(n.properties.some(t=>!t.abstract)){const t=k({id:n.id+"--"+O.AbstractEntityWithNonAbstractProperties,message:`Entity "${n.name}" with id "${n.id}" is marked as abstract but has non-abstract properties`,issue:null,severity:f.Error,code:O.AbstractEntityWithNonAbstractProperties,entity:n});e.push(t.error),n.properties.forEach(i=>{if(!i.abstract){const a=k({id:n.id+"--"+O.StaticEntityWithNonStaticProperties+"--"+i.id,message:`Property "${i.name}" with id "${i.id}" of entity "${n.name}" with id "${n.id}" is not marked as abstract but the entity is marked as abstract`,issue:null,severity:f.Error,code:O.StaticEntityWithNonStaticProperties,entity:n});e.push(a.error)}})}}else{if(n.abstractMethods.length){const t=k({id:n.id+"--"+O.AbstractPropertyInNonAbstractEntity,message:`Entity "${n.name}" with id "${n.id}" is not marked as abstract but has abstract methods`,issue:null,severity:f.Error,code:O.AbstractPropertyInNonAbstractEntity,entity:n});e.push(t.error)}if(n.properties.some(t=>t.abstract)){const t=k({id:n.id+"--"+O.AbstractMethodInNonAbstractEntity,message:`Entity "${n.name}" with id "${n.id}" is not marked as abstract but has abstract properties`,issue:null,severity:f.Error,code:O.AbstractMethodInNonAbstractEntity,entity:n});e.push(t.error),n.properties.forEach(i=>{if(i.abstract){const a=k({id:n.id+"--"+O.AbstractMethodInNonAbstractEntity+"--"+i.id,message:`Property "${i.name}" with id "${i.id}" of entity "${n.name}" with id "${n.id}" is marked as abstract but the entity is not marked as abstract`,issue:null,severity:f.Error,code:O.AbstractMethodInNonAbstractEntity,entity:n});e.push(a.error)}})}}if(n.static&&n.properties.some(t=>!t.static)){const t=k({id:n.id+"--"+O.StaticEntityWithNonStaticProperties,message:`Entity "${n.name}" with id "${n.id}" is marked as static but has non-static properties`,issue:null,severity:f.Error,code:O.StaticEntityWithNonStaticProperties,entity:n});e.push(t.error),n.properties.forEach(i=>{if(!i.static){const a=k({id:n.id+"--"+O.NonStaticPropertyInStaticEntity+"--"+i.id,message:`Property "${i.name}" with id "${i.id}" of entity "${n.name}" with id "${n.id}" is not marked as static but the entity is marked as static`,issue:null,severity:f.Error,code:O.NonStaticPropertyInStaticEntity,entity:n});e.push(a.error)}})}return e}function jx(n){return n instanceof Error&&n.name==="ZodError"&&"issues"in n&&Array.isArray(n.issues)}var kx=class extends Error{constructor(e,t){super(e,t);l(this,"name");l(this,"details");this.name="ZodValidationError",this.details=qx(t)}toString(){return this.message}};function qx(n){if(n){const e=n.cause;if(jx(e))return e.issues}return[]}var Jx="; ",Sb="Validation error",Wx=": ",Hx=", or ";function Yx(n,e,t){return e!==null?n.length>0?[e,n].join(t):e:n.length>0?n:Sb}var zx=/[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*/u;function Zx(n){return n.length===1?n[0].toString():n.reduce((e,t)=>{if(typeof t=="number")return e+"["+t.toString()+"]";if(t.includes('"'))return e+'["'+Xx(t)+'"]';if(!zx.test(t))return e+'["'+t+'"]';const i=e.length===0?"":".";return e+i+t},"")}function Xx(n){return n.replace(/"/g,'\\"')}function Qx(n){return n.length!==0}function Gs(n){const{issue:e,issueSeparator:t,unionSeparator:i,includePath:a}=n;if(e.code==="invalid_union")return e.unionErrors.reduce((s,o)=>{const u=o.issues.map(p=>Gs({issue:p,issueSeparator:t,unionSeparator:i,includePath:a})).join(t);return s.includes(u)||s.push(u),s},[]).join(i);if(e.code==="invalid_arguments")return[e.message,...e.argumentsError.issues.map(s=>Gs({issue:s,issueSeparator:t,unionSeparator:i,includePath:a}))].join(t);if(e.code==="invalid_return_type")return[e.message,...e.returnTypeError.issues.map(s=>Gs({issue:s,issueSeparator:t,unionSeparator:i,includePath:a}))].join(t);if(a&&Qx(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 "${Zx(e.path)}"`}return e.message}function Kx(n,e={}){const{issueSeparator:t=Jx,unionSeparator:i=Hx,prefixSeparator:a=Wx,prefix:s=Sb,includePath:o=!0}=e,u=Gs({issue:n,issueSeparator:t,unionSeparator:i,includePath:o}),p=Yx(u,s,a);return new kx(p,{cause:new ft([n])})}var Ob="1.13.7",Cb=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},Fs=Array.prototype,Pc=Object.prototype,Bb=typeof Symbol<"u"?Symbol.prototype:null,e8=Fs.push,Ki=Fs.slice,ea=Pc.toString,t8=Pc.hasOwnProperty,wb=typeof ArrayBuffer<"u",n8=typeof DataView<"u",r8=Array.isArray,_b=Object.keys,Mb=Object.create,Nb=wb&&ArrayBuffer.isView,i8=isNaN,a8=isFinite,$b=!{toString:null}.propertyIsEnumerable("toString"),Vb=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],s8=Math.pow(2,53)-1;function Et(n,e){return e=e==null?n.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 n.call(this,i);case 1:return n.call(this,arguments[0],i);case 2:return n.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,n.apply(this,s)}}function _n(n){var e=typeof n;return e==="function"||e==="object"&&!!n}function o8(n){return n===null}function Lb(n){return n===void 0}function Gb(n){return n===!0||n===!1||ea.call(n)==="[object Boolean]"}function l8(n){return!!(n&&n.nodeType===1)}function rt(n){var e="[object "+n+"]";return function(t){return ea.call(t)===e}}const Dc=rt("String"),Fb=rt("Number"),c8=rt("Date"),d8=rt("RegExp"),u8=rt("Error"),Ub=rt("Symbol"),xb=rt("ArrayBuffer");var jb=rt("Function"),p8=Cb.document&&Cb.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof p8!="function"&&(jb=function(n){return typeof n=="function"||!1});const pt=jb,kb=rt("Object");var qb=n8&&(!/\[native code\]/.test(String(DataView))||kb(new DataView(new ArrayBuffer(8)))),Ac=typeof Map<"u"&&kb(new Map),y8=rt("DataView");function h8(n){return n!=null&&pt(n.getInt8)&&xb(n.buffer)}const Us=qb?h8:y8,rr=r8||rt("Array");function Mn(n,e){return n!=null&&t8.call(n,e)}var Sc=rt("Arguments");(function(){Sc(arguments)||(Sc=function(n){return Mn(n,"callee")})})();const Oc=Sc;function f8(n){return!Ub(n)&&a8(n)&&!isNaN(parseFloat(n))}function Jb(n){return Fb(n)&&i8(n)}function Wb(n){return function(){return n}}function Hb(n){return function(e){var t=n(e);return typeof t=="number"&&t>=0&&t<=s8}}function Yb(n){return function(e){return e==null?void 0:e[n]}}const xs=Yb("byteLength"),m8=Hb(xs);var T8=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function E8(n){return Nb?Nb(n)&&!Us(n):m8(n)&&T8.test(ea.call(n))}const zb=wb?E8:Wb(!1),Rt=Yb("length");function R8(n){for(var e={},t=n.length,i=0;i<t;++i)e[n[i]]=!0;return{contains:function(a){return e[a]===!0},push:function(a){return e[a]=!0,n.push(a)}}}function Zb(n,e){e=R8(e);var t=Vb.length,i=n.constructor,a=pt(i)&&i.prototype||Pc,s="constructor";for(Mn(n,s)&&!e.contains(s)&&e.push(s);t--;)s=Vb[t],s in n&&n[s]!==a[s]&&!e.contains(s)&&e.push(s)}function We(n){if(!_n(n))return[];if(_b)return _b(n);var e=[];for(var t in n)Mn(n,t)&&e.push(t);return $b&&Zb(n,e),e}function ta(n){if(n==null)return!0;var e=Rt(n);return typeof e=="number"&&(rr(n)||Dc(n)||Oc(n))?e===0:Rt(We(n))===0}function Xb(n,e){var t=We(e),i=t.length;if(n==null)return!i;for(var a=Object(n),s=0;s<i;s++){var o=t[s];if(e[o]!==a[o]||!(o in a))return!1}return!0}function Q(n){if(n instanceof Q)return n;if(!(this instanceof Q))return new Q(n);this._wrapped=n}Q.VERSION=Ob,Q.prototype.value=function(){return this._wrapped},Q.prototype.valueOf=Q.prototype.toJSON=Q.prototype.value,Q.prototype.toString=function(){return String(this._wrapped)};function Qb(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,xs(n))}var Kb="[object DataView]";function Cc(n,e,t,i){if(n===e)return n!==0||1/n===1/e;if(n==null||e==null)return!1;if(n!==n)return e!==e;var a=typeof n;return a!=="function"&&a!=="object"&&typeof e!="object"?!1:ev(n,e,t,i)}function ev(n,e,t,i){n instanceof Q&&(n=n._wrapped),e instanceof Q&&(e=e._wrapped);var a=ea.call(n);if(a!==ea.call(e))return!1;if(qb&&a=="[object Object]"&&Us(n)){if(!Us(e))return!1;a=Kb}switch(a){case"[object RegExp]":case"[object String]":return""+n==""+e;case"[object Number]":return+n!=+n?+e!=+e:+n==0?1/+n===1/e:+n==+e;case"[object Date]":case"[object Boolean]":return+n==+e;case"[object Symbol]":return Bb.valueOf.call(n)===Bb.valueOf.call(e);case"[object ArrayBuffer]":case Kb:return ev(Qb(n),Qb(e),t,i)}var s=a==="[object Array]";if(!s&&zb(n)){var o=xs(n);if(o!==xs(e))return!1;if(n.buffer===e.buffer&&n.byteOffset===e.byteOffset)return!0;s=!0}if(!s){if(typeof n!="object"||typeof e!="object")return!1;var u=n.constructor,p=e.constructor;if(u!==p&&!(pt(u)&&u instanceof u&&pt(p)&&p instanceof p)&&"constructor"in n&&"constructor"in e)return!1}t=t||[],i=i||[];for(var h=t.length;h--;)if(t[h]===n)return i[h]===e;if(t.push(n),i.push(e),s){if(h=n.length,h!==e.length)return!1;for(;h--;)if(!Cc(n[h],e[h],t,i))return!1}else{var m=We(n),T;if(h=m.length,We(e).length!==h)return!1;for(;h--;)if(T=m[h],!(Mn(e,T)&&Cc(n[T],e[T],t,i)))return!1}return t.pop(),i.pop(),!0}function b8(n,e){return Cc(n,e)}function na(n){if(!_n(n))return[];var e=[];for(var t in n)e.push(t);return $b&&Zb(n,e),e}function Bc(n){var e=Rt(n);return function(t){if(t==null)return!1;var i=na(t);if(Rt(i))return!1;for(var a=0;a<e;a++)if(!pt(t[n[a]]))return!1;return n!==rv||!pt(t[wc])}}var wc="forEach",tv="has",_c=["clear","delete"],nv=["get",tv,"set"],v8=_c.concat(wc,nv),rv=_c.concat(nv),g8=["add"].concat(_c,wc,tv);const I8=Ac?Bc(v8):rt("Map"),P8=Ac?Bc(rv):rt("WeakMap"),D8=Ac?Bc(g8):rt("Set"),A8=rt("WeakSet");function ni(n){for(var e=We(n),t=e.length,i=Array(t),a=0;a<t;a++)i[a]=n[e[a]];return i}function S8(n){for(var e=We(n),t=e.length,i=Array(t),a=0;a<t;a++)i[a]=[e[a],n[e[a]]];return i}function iv(n){for(var e={},t=We(n),i=0,a=t.length;i<a;i++)e[n[t[i]]]=t[i];return e}function Mc(n){var e=[];for(var t in n)pt(n[t])&&e.push(t);return e.sort()}function Nc(n,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=n(s),u=o.length,p=0;p<u;p++){var h=o[p];(!e||t[h]===void 0)&&(t[h]=s[h])}return t}}const av=Nc(na),js=Nc(We),sv=Nc(na,!0);function O8(){return function(){}}function ov(n){if(!_n(n))return{};if(Mb)return Mb(n);var e=O8();e.prototype=n;var t=new e;return e.prototype=null,t}function C8(n,e){var t=ov(n);return e&&js(t,e),t}function B8(n){return _n(n)?rr(n)?n.slice():av({},n):n}function w8(n,e){return e(n),n}function lv(n){return rr(n)?n:[n]}Q.toPath=lv;function ra(n){return Q.toPath(n)}function $c(n,e){for(var t=e.length,i=0;i<t;i++){if(n==null)return;n=n[e[i]]}return t?n:void 0}function cv(n,e,t){var i=$c(n,ra(e));return Lb(i)?t:i}function _8(n,e){e=ra(e);for(var t=e.length,i=0;i<t;i++){var a=e[i];if(!Mn(n,a))return!1;n=n[a]}return!!t}function Vc(n){return n}function ia(n){return n=js({},n),function(e){return Xb(e,n)}}function Lc(n){return n=ra(n),function(e){return $c(e,n)}}function aa(n,e,t){if(e===void 0)return n;switch(t??3){case 1:return function(i){return n.call(e,i)};case 3:return function(i,a,s){return n.call(e,i,a,s)};case 4:return function(i,a,s,o){return n.call(e,i,a,s,o)}}return function(){return n.apply(e,arguments)}}function dv(n,e,t){return n==null?Vc:pt(n)?aa(n,e,t):_n(n)&&!rr(n)?ia(n):Lc(n)}function Gc(n,e){return dv(n,e,1/0)}Q.iteratee=Gc;function bt(n,e,t){return Q.iteratee!==Gc?Q.iteratee(n,e):dv(n,e,t)}function M8(n,e,t){e=bt(e,t);for(var i=We(n),a=i.length,s={},o=0;o<a;o++){var u=i[o];s[u]=e(n[u],u,n)}return s}function uv(){}function N8(n){return n==null?uv:function(e){return cv(n,e)}}function $8(n,e,t){var i=Array(Math.max(0,n));e=aa(e,t,1);for(var a=0;a<n;a++)i[a]=e(a);return i}function Fc(n,e){return e==null&&(e=n,n=0),n+Math.floor(Math.random()*(e-n+1))}const sa=Date.now||function(){return new Date().getTime()};function pv(n){var e=function(s){return n[s]},t="(?:"+We(n).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 yv={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},V8=pv(yv),L8=iv(yv),G8=pv(L8),F8=Q.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var Uc=/(.)^/,U8={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},x8=/\\|'|\r|\n|\u2028|\u2029/g;function j8(n){return"\\"+U8[n]}var k8=/^\s*(\w|\$)+\s*$/;function q8(n,e,t){!e&&t&&(e=t),e=sv({},e,Q.templateSettings);var i=RegExp([(e.escape||Uc).source,(e.interpolate||Uc).source,(e.evaluate||Uc).source].join("|")+"|$","g"),a=0,s="__p+='";n.replace(i,function(h,m,T,b,I){return s+=n.slice(a,I).replace(x8,j8),a=I+h.length,m?s+=`'+
2
2
  ((__t=(`+m+`))==null?'':_.escape(__t))+
3
3
  '`:T?s+=`'+
4
4
  ((__t=(`+T+`))==null?'':__t)+
@@ -72,7 +72,7 @@ ${xt}`,issue:null}))}else T.returnsType===L.Dynamic||T.returnsType===L.None&&a.p
72
72
  Adding a new return would make the implementation invalid.`,issue:null}))}}}return a.push(...s.errors,...o,...Pe(i)),{errors:a,modifiedData:i}}validateGeneratedUpdate(e){const t=[];let i=JSON.parse(JSON.stringify(e));const a=da(i,this);return i=a.modifiedData,t.push(...a.errors),i.parent&&t.push(new E({id:`${this.id}--${y.InvalidParentUpdate}`,code:y.InvalidParentUpdate,severity:f.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.
73
73
  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:i}}addSelfToProject(){var e;return this.parent.addOutputDeclaration(this),(e=this.readsValue)==null||e.addValueReader(this),this}setParent(e){return this.parent=e,this}initChildren(){return this.initialized?this:(this.initialized=!0,this.initialData.dataType&&(this.dataType=R(this.initialData.dataType,this.project),this.dataType.setParent(this),this.dataType.initChildren()),oa.initReadsValue(this),this)}setValueWriter(e){return this.readsValue=e,this}removeValueWriter(){return this.readsValue=null,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.index=e.index||this.index,this.name=e.name||this.name,this.description=e.description||this.description,this.required=e.required||this.required,this.isError=e.isError||this.isError,this}async load(){return this}async create(){return this}async update(e){return this.sync(e),ya(e,this),this}async delete(){return this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const i=[],a=[];if(t.has(this.id))return{affected:[],removed:[]};if(t.add(this.id),a.push(this),this.unsubscribe(),this.dataType){const s=this.dataType.remove({ignoreUpstream:!0,seenEntities:t});i.push(...s.affected),a.push(...s.removed)}return{affected:S(i),removed:S(a)}}restore({seenEntities:e}={seenEntities:new Set}){const t=[];if(e.has(this.id))return{affected:[],self:this};if(e.add(this.id),this.subscribe(),this.dataType){const i=this.dataType.restore({seenEntities:e});t.push(...i.affected)}return{affected:[],self:this}}toFlat(e=new Set){var i;return e.has(this.id)?[]:(e.add(this.id),[this,...((i=this.dataType)==null?void 0:i.toFlat(e))||[]])}toFlatIds(e=new Set){var i;return e.has(this.id)?[]:(e.add(this.id),[this.id,...((i=this.dataType)==null?void 0:i.toFlatIds(e))||[]])}toJSON(){var e,t;return{id:this.id,version:this.version,name:this.name,description:this.description,type:this.type,index:this.index,required:this.required,isError:this.isError,dataType:((e=this.dataType)==null?void 0:e.toJSON())||null,readsValue:((t=this.readsValue)==null?void 0:t.toReference())||null,parent:this.parent.toReference()}}toReference(){return{id:this.id+"--"+$.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){var e,t;return{id:this.id,version:this.version,name:this.name,description:this.description,type:this.type,index:this.index,required:this.required,isError:this.isError,readsValue:((e=this.readsValue)==null?void 0:e.toReference())||null,dataType:((t=this.dataType)==null?void 0:t.toReference())||null,parent:this.parent.toReference()}}toFlatJSON(e=new Set){var i;return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...((i=this.dataType)==null?void 0:i.toFlatJSON(e))||[]])}toGenerationTarget(){var e;return{id:this.id,name:this.name,description:this.description,type:this.type,isError:this.isError,readsValue:(e=this.readsValue)==null?void 0:e.id,required:this.required,parent:this.parent.id}}toFlatGenerationTarget(e=new Set){var i,a;return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...((i=this.readsValue)==null?void 0:i.toFlatGenerationTarget(e))||[],...((a=this.dataType)==null?void 0:a.toFlatGenerationTarget(e))||[]])}clearErrors(){var e;return this.errors=[],(e=this.dataType)==null||e.clearErrors(),this}validate(){const e=a6(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){var t;return[...this.errors,...((t=this.dataType)==null?void 0:t.getErrors())||[]]}getShallowErrors(){return this.errors}getDefaultValue(){var e;return((e=this.dataType)==null?void 0:e.defaultValue)||null}clone(e){return new ae(this.toJSON(),this.project)}setDataType(e){return this.dataType=e,this}removeDataType(){return this.dataType=null,this}getDataType(){return this.dataType}};l(ae,"MUTABLE_BASE_PROPERTIES",["name","description","required","isError"]),l(ae,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),l(ae,"BASE_PROPERTIES",[...ae.MUTABLE_BASE_PROPERTIES,...ae.INMUTABLE_BASE_PROPERTIES]),l(ae,"MUTABLE_META_PROPERTIES",[...ae.MUTABLE_BASE_PROPERTIES,"index"]),l(ae,"INMUTABLE_META_PROPERTIES",[...ae.INMUTABLE_BASE_PROPERTIES]),l(ae,"META_PROPERTIES",[...ae.MUTABLE_META_PROPERTIES,...ae.INMUTABLE_META_PROPERTIES]),l(ae,"MUTABLE_UPSTREAM_PROPERTIES",["readsValue"]),l(ae,"INMUTABLE_UPSTREAM_PROPERTIES",["parent","dataType"]),l(ae,"UPSTREAM_PROPERTIES",[...ae.MUTABLE_UPSTREAM_PROPERTIES,...ae.INMUTABLE_UPSTREAM_PROPERTIES]),l(ae,"MUTABLE_DOWNSTREAM_PROPERTIES",[]),l(ae,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),l(ae,"DOWNSTREAM_PROPERTIES",[...ae.MUTABLE_DOWNSTREAM_PROPERTIES,...ae.INMUTABLE_DOWNSTREAM_PROPERTIES]),l(ae,"PROPERTIES",[...ae.META_PROPERTIES,...ae.UPSTREAM_PROPERTIES,...ae.DOWNSTREAM_PROPERTIES]);let Ot=ae;function s6(n){var o;const e=w4(),t=n.toJSON();e.safeParse(t).success,n.inputsDeclarations.forEach(u=>u.validate()),n.inputs.forEach(u=>u.validate()),n.outputsDeclarations.forEach(u=>u.validate()),n.outputs.forEach(u=>u.validate()),(o=n.error)==null||o.validate();const s=[...mn(n)];if(n.id==="search-person-by-id-id"){const u=k({id:`${n.id}--${O.PropertyImplementsNonAbstact}`,message:`Property "${A(n,n.project)}" with id "${n.id}" implements a non-abstract property "${A(n,n.project)}" with id "${n.id}".`,issue:null,severity:f.Error,code:O.PropertyImplementsNonAbstact,entity:n});s.push(u.error)}return X(n.errors,s)}const De=class De{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"name");l(this,"description",null);l(this,"x");l(this,"y");l(this,"query");l(this,"type",r.Search);l(this,"successCalls",[]);l(this,"errorCalls",[]);l(this,"inputsDeclarations",[]);l(this,"inputs",[]);l(this,"outputsDeclarations",[]);l(this,"outputs",[]);l(this,"calledBySuccess",[]);l(this,"calledByError",[]);l(this,"calledByEntry",[]);l(this,"error",null);l(this,"parent");l(this,"errors",[]);l(this,"project");l(this,"initialized",!1);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version,this.x=e.x,this.y=e.y,this.name=e.name,this.query=e.query,this.description=e.description}static fromGenerationTarget(e,t){let i=t;if(e.parent){const h=D(e.parent);i=t.get(h)}const a=e.calledByEntry.map(h=>{const m=D(h);return t.get(m)}),s=e.calledBySuccess.map(h=>{const m=D(h);return t.get(m)}),o=e.calledByError.map(h=>{const m=D(h);return t.get(m)}),u={id:e.id,version:1,type:r.Search,name:e.name,description:e.description,query:e.query,calledByEntry:a,calledBySuccess:s,calledByError:o,errorCalls:[],successCalls:[],inputsDeclarations:[],inputs:[],outputsDeclarations:[],outputs:[],error:null,x:0,y:0,parent:i},p=R(u,t);return p.setParent(i),p.initChildren(),p}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[],s=Ge(i,{parent:{list:!1,types:[...st,r.Project],optional:!0}},t);return i=s.modifiedData,a.push(...s.errors,...Pe(i)),{errors:a,modifiedData:i}}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new E({id:`${this.id}--${y.InvalidParentUpdate}`,code:y.InvalidParentUpdate,severity:f.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.
74
74
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
75
- You shouldn't have to manually update a 'parent' property. The equivalent result is to change its callers, the value writters of its inputs, or the value readers of its outputs.`,issue:null})),{errors:t,modifiedData:e}}addSelfToProject(){return this.parent===this.project&&this.project.addSearch(this),this.successCalls.forEach(e=>{e.addSuccessCaller(this)}),this.errorCalls.forEach(e=>{e.addErrorCaller(this)}),this.calledByEntry.forEach(e=>{e.addCall(this)}),this.calledBySuccess.forEach(e=>{e.addSuccessCall(this)}),this.calledByError.forEach(e=>{e.addErrorCall(this)}),this}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(e){const t=this.inputs.findIndex(a=>a.id===e.id);t>-1&&this.inputs.splice(t,1);const i=this.inputsDeclarations.findIndex(a=>a.id===e.declaration.id);return i>-1&&this.inputsDeclarations.splice(i,1),this}addInput(e){return this.inputs.includes(e)?this:(this.inputs.push(e),this)}addInputDeclaration(e){return this.inputsDeclarations.includes(e)?this:(this.inputsDeclarations.push(e),this)}removeInputDeclaration(e){const t=this.inputsDeclarations.findIndex(i=>i.id===e.id);return t>-1&&this.inputsDeclarations.splice(t,1),this}addOutputDeclaration(e){return this.outputsDeclarations.includes(e)?this:(this.outputsDeclarations.push(e),this)}removeOutputDeclaration(e){const t=this.outputsDeclarations.findIndex(i=>i.id===e.id);return t>-1&&this.outputsDeclarations.splice(t,1),this}addOutput(e){return this.outputs.includes(e)?this:(this.outputs.push(e),this)}removeOutput(e){const t=this.outputs.findIndex(i=>i.id===e.id);return t>-1&&this.outputs.splice(t,1),this}addSuccessCaller(e){return this.calledBySuccess.find(t=>t.id===e.id)||this.calledBySuccess.push(e),this}addErrorCaller(e){return this.calledByError.find(t=>t.id===e.id)||this.calledByError.push(e),this}addEntryCaller(e){return this.calledByEntry.find(t=>t.id===e.id)||this.calledByEntry.push(e),this}addErrorCall(e){return this.errorCalls.push(e),this}addSuccessCall(e){return this.successCalls.push(e),this}removeCall(e){const t=this.successCalls.findIndex(a=>a.id===e.id);t>-1&&this.successCalls.splice(t,1);const i=this.errorCalls.findIndex(a=>a.id===e.id);return i>-1&&this.errorCalls.splice(i,1),this}removeCaller(e){return this.calledBySuccess=this.calledBySuccess.filter(t=>t.id!==e.id),this.calledByError=this.calledByError.filter(t=>t.id!==e.id),this.calledByEntry=this.calledByEntry.filter(t=>t.id!==e.id),this}setParent(e){return this.parent=e,this}initChildren(){return this.initialized?this:(this.initialized=!0,this.successCalls=this.initialData.successCalls.map(e=>{const t=R(e,this.project);return[r.BreakStatement,r.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==r.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.errorCalls=this.initialData.errorCalls.map(e=>{const t=R(e,this.project);return t.addErrorCaller(this),[r.BreakStatement,r.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==r.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.inputsDeclarations=this.initialData.inputsDeclarations.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.inputs=this.initialData.inputs.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.outputsDeclarations=this.initialData.outputsDeclarations.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.outputs=this.initialData.outputs.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.initialData.error&&(this.error=R(this.initialData.error,this.project),this.error.setParent(this),this.error.initChildren()),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.name=e.name||this.name,this.query=e.query||this.query,this.description=e.description||this.description,this}async load(){return this}async create(){return this}async update(e){return this}async delete(){return this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const i=[],a=[];if(t.has(this.id))return{affected:[],removed:[]};if(t.add(this.id),a.push(this),this.unsubscribe(),this.inputs.forEach(s=>{const{affected:o,removed:u}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...u)}),this.inputsDeclarations.forEach(s=>{const{affected:o,removed:u}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...u)}),this.outputs.forEach(s=>{const{affected:o,removed:u}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...u)}),this.outputsDeclarations.forEach(s=>{const{affected:o,removed:u}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...u)}),this.error){const{affected:s,removed:o}=this.error.remove({ignoreUpstream:!0,seenEntities:t});i.push(...s),a.push(...o)}return this.successCalls.forEach(s=>{i.push(s),s.removeCaller(this)}),this.errorCalls.forEach(s=>{i.push(s),s.removeCaller(this)}),e||this.calledBy.forEach(s=>{i.push(s),s.removeCall(this)}),{affected:S(i),removed:S(a)}}restore({seenEntities:e}={seenEntities:new Set}){const t=[];return e.has(this.id)?{affected:[],self:this}:(e.add(this.id),this.subscribe(),this.inputsDeclarations.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.inputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.outputsDeclarations.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.outputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.successCalls.forEach(i=>{t.push(i),i.addSuccessCaller(this)}),this.errorCalls.forEach(i=>{t.push(i),i.addErrorCaller(this)}),this.calledBySuccess.forEach(i=>{t.push(i),i.addSuccessCall(this)}),this.calledByError.forEach(i=>{t.push(i),i.addErrorCall(this)}),this.calledByEntry.forEach(i=>{t.push(i),i.addCall(this)}),{affected:S(t),self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.successCalls.flatMap(i=>i.toFlat(e)),...this.errorCalls.flatMap(i=>i.toFlat(e)),...this.inputs.flatMap(i=>i.toFlat(e)),...this.inputsDeclarations.flatMap(i=>i.toFlat(e)),...this.outputs.flatMap(i=>i.toFlat(e)),...this.outputsDeclarations.flatMap(i=>i.toFlat(e)),...this.calledBy.flatMap(i=>i.toFlat(e)),...this.error?this.error.toFlat(e):[]])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.successCalls.flatMap(i=>i.toFlatIds(e)),...this.errorCalls.flatMap(i=>i.toFlatIds(e)),...this.inputs.flatMap(i=>i.toFlatIds(e)),...this.inputsDeclarations.flatMap(i=>i.toFlatIds(e)),...this.outputs.flatMap(i=>i.toFlatIds(e)),...this.outputsDeclarations.flatMap(i=>i.toFlatIds(e)),...this.calledBy.flatMap(i=>i.toFlatIds(e)),...this.error?this.error.toFlatIds(e):[]])}toJSON(){var e;return{id:this.id,version:this.version,type:this.type,name:this.name,query:this.query,description:this.description,x:this.x,y:this.y,successCalls:this.successCalls.map(t=>t.toJSON()),errorCalls:this.errorCalls.map(t=>t.toJSON()),calledBySuccess:this.calledBySuccess.map(t=>t.toReference()),calledByError:this.calledByError.map(t=>t.toReference()),calledByEntry:this.calledByEntry.map(t=>t.toReference()),inputsDeclarations:this.inputsDeclarations.map(t=>t.toJSON()),inputs:this.inputs.map(t=>t.toJSON()),outputsDeclarations:this.outputsDeclarations.map(t=>t.toJSON()),outputs:this.outputs.map(t=>t.toJSON()),parent:this.parent.toReference(),error:((e=this.error)==null?void 0:e.toJSON())||null}}toReference(){return{id:this.id+"--"+$.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,query:this.query,x:this.x,y:this.y,inputs:this.inputs.map(e=>e.toReference()),inputsDeclarations:this.inputsDeclarations.map(e=>e.toReference()),outputs:this.outputs.map(e=>e.toReference()),outputsDeclarations:this.outputsDeclarations.map(e=>e.toReference()),successCalls:this.successCalls.map(e=>e.toReference()),errorCalls:this.errorCalls.map(e=>e.toReference()),calledBySuccess:this.calledBySuccess.map(e=>e.toReference()),calledByError:this.calledByError.map(e=>e.toReference()),calledByEntry:this.calledByEntry.map(e=>e.toReference()),error:this.error?this.error.toReference():null,parent:this.parent.toReference()}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.successCalls.flatMap(i=>i.toFlatJSON(e)),...this.errorCalls.flatMap(i=>i.toFlatJSON(e)),...this.inputs.flatMap(i=>i.toFlatJSON(e)),...this.inputsDeclarations.flatMap(i=>i.toFlatJSON(e)),...this.outputs.flatMap(i=>i.toFlatJSON(e)),...this.outputsDeclarations.flatMap(i=>i.toFlatJSON(e)),...this.calledBy.flatMap(i=>i.toFlatJSON(e)),...this.error?this.error.toFlatJSON(e):[]])}toGenerationTarget(){const e=this.parent.type===r.Project?void 0:this.parent.id;return{id:this.id,name:this.name,description:this.description,type:this.type,query:this.query,calledByEntry:this.calledByEntry.map(t=>t.id),calledBySuccess:this.calledBySuccess.map(t=>t.id),calledByError:this.calledByError.map(t=>t.id),parent:e}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.successCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.errorCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.inputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.inputsDeclarations.flatMap(i=>i.toFlatGenerationTarget(e)),...this.outputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.outputsDeclarations.flatMap(i=>i.toFlatGenerationTarget(e)),...this.error?this.error.toFlatGenerationTarget(e):[]])}clearErrors(){var e;return this.errors=[],this.inputsDeclarations.forEach(t=>t.clearErrors()),this.inputs.forEach(t=>t.clearErrors()),this.outputs.forEach(t=>t.clearErrors()),this.successCalls.forEach(t=>t.clearErrors()),this.errorCalls.forEach(t=>t.clearErrors()),(e=this.error)==null||e.clearErrors(),this}validate(){const e=s6(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.inputsDeclarations.flatMap(t=>t.getErrors()),...this.inputs.flatMap(t=>t.getErrors()),...this.outputsDeclarations.flatMap(t=>t.getErrors()),...this.outputs.flatMap(t=>t.getErrors()),...this.error?this.error.getErrors():[]]}getShallowErrors(){return this.errors}clone(e){return new De(this.toJSON(),this.project)}};l(De,"MUTABLE_BASE_PROPERTIES",["name","description","query"]),l(De,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),l(De,"BASE_PROPERTIES",[...De.MUTABLE_BASE_PROPERTIES,...De.INMUTABLE_BASE_PROPERTIES]),l(De,"MUTABLE_META_PROPERTIES",[...De.MUTABLE_BASE_PROPERTIES,"x","y"]),l(De,"INMUTABLE_META_PROPERTIES",[...De.INMUTABLE_BASE_PROPERTIES]),l(De,"META_PROPERTIES",[...De.MUTABLE_META_PROPERTIES,...De.INMUTABLE_META_PROPERTIES]),l(De,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),l(De,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),l(De,"UPSTREAM_PROPERTIES",[...De.MUTABLE_UPSTREAM_PROPERTIES,...De.INMUTABLE_UPSTREAM_PROPERTIES]),l(De,"MUTABLE_DOWNSTREAM_PROPERTIES",["successCalls","errorCalls","inputsDeclarations","inputs","outputsDeclarations","outputs","error"]),l(De,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),l(De,"DOWNSTREAM_PROPERTIES",[...De.MUTABLE_DOWNSTREAM_PROPERTIES,...De.INMUTABLE_DOWNSTREAM_PROPERTIES]),l(De,"PROPERTIES",[...Ot.META_PROPERTIES,...Ot.UPSTREAM_PROPERTIES,...Ot.DOWNSTREAM_PROPERTIES]);let hr=De;function o6(n){const e=qU(),t=n.toJSON();e.safeParse(t).success,n.functions.forEach(s=>s.validate()),n.events.forEach(s=>s.validate());const a=[];return X(n.errors,a)}const Te=class Te{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"name");l(this,"description",null);l(this,"x");l(this,"y");l(this,"type",r.InstalledProject);l(this,"implements");l(this,"functions",[]);l(this,"events",[]);l(this,"parent");l(this,"errors",[]);l(this,"project");l(this,"initialized",!1);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version,this.name=e.name,this.description=e.description,this.x=e.x,this.y=e.y,this.implements=e.implements}static fromGenerationTarget(e,t){const i=t,a={id:e.id,version:1,name:e.name,type:r.InstalledProject,description:e.description,functions:[],events:[],implements:{entityId:e.implements,entityType:r.Project,type:r.GenericReference,id:$.UUID.uuid()},x:0,y:0,parent:i},s=R(a,t);return s.setParent(i),s.initChildren(),s}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[];return a.push(...Pe(i)),{errors:a,modifiedData:i}}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new E({id:`${this.id}--${y.InvalidParentUpdate}`,code:y.InvalidParentUpdate,severity:f.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on an installed project, must be the root project as it is a globally declared entity.`,issue:null})),{errors:t,modifiedData:e}}addSelfToProject(){return this}setParent(e){return this.parent=e,this}initChildren(){return this.initialized?this:(this.initialized=!0,this.functions=this.initialData.functions.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.events=this.initialData.events.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return 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=[];return t.has(this.id)?{affected:[],removed:[]}:(t.add(this.id),a.push(this),this.unsubscribe(),this.functions.forEach(s=>{const{affected:o,removed:u}=s.remove({ignoreUpstream:!1,seenEntities:t});i.push(...o),a.push(...u)}),this.events.forEach(s=>{const{affected:o,removed:u}=s.remove({ignoreUpstream:!1,seenEntities:t});i.push(...o),a.push(...u)}),{affected:[],removed:[]})}restore({seenEntities:e}={seenEntities:new Set}){return e.has(this.id)?{affected:[],self:this}:(e.add(this.id),this.subscribe(),this.functions.forEach(t=>{t.restore({seenEntities:e})}),this.events.forEach(t=>{t.restore({seenEntities:e})}),{affected:[],self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.functions.flatMap(i=>i.toFlat(e)),...this.events.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.functions.flatMap(i=>i.toFlatIds(e)),...this.events.flatMap(i=>i.toFlatIds(e))])}toJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,implements:this.implements,functions:this.functions.map(e=>e.toJSON()),events:this.events.map(e=>e.toJSON()),parent:this.parent.toReference(),x:this.x,y:this.y}}toReference(){return{id:this.id+"--"+$.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,x:this.x,y:this.y,implements:this.implements,functions:this.functions.map(e=>e.toReference()),events:this.events.map(e=>e.toReference()),parent:this.parent.toReference()}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.functions.flatMap(i=>i.toFlatJSON(e)),...this.events.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,name:this.name,description:this.description,type:this.type,implements:this.implements.id}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.functions.flatMap(i=>i.toFlatGenerationTarget(e)),...this.events.flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.functions.forEach(e=>e.clearErrors()),this.events.forEach(e=>e.clearErrors()),this}validate(){const e=o6(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.functions.flatMap(t=>t.getErrors()),...this.events.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(){return new Te(this.toJSON(),this.project)}};l(Te,"MUTABLE_BASE_PROPERTIES",[]),l(Te,"INMUTABLE_BASE_PROPERTIES",["id","version","name","description","type"]),l(Te,"BASE_PROPERTIES",[...Te.MUTABLE_BASE_PROPERTIES,...Te.INMUTABLE_BASE_PROPERTIES]),l(Te,"MUTABLE_META_PROPERTIES",["x","y"]),l(Te,"INMUTABLE_META_PROPERTIES",[...Te.INMUTABLE_BASE_PROPERTIES]),l(Te,"META_PROPERTIES",[...Te.MUTABLE_META_PROPERTIES,...Te.INMUTABLE_META_PROPERTIES]),l(Te,"MUTABLE_UPSTREAM_PROPERTIES",[]),l(Te,"INMUTABLE_UPSTREAM_PROPERTIES",["implements","parent"]),l(Te,"UPSTREAM_PROPERTIES",[...Te.MUTABLE_UPSTREAM_PROPERTIES,...Te.INMUTABLE_UPSTREAM_PROPERTIES]),l(Te,"MUTABLE_DOWNSTREAM_PROPERTIES",["functions","events"]),l(Te,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),l(Te,"DOWNSTREAM_PROPERTIES",[...Te.MUTABLE_DOWNSTREAM_PROPERTIES,...Te.INMUTABLE_DOWNSTREAM_PROPERTIES]),l(Te,"PROPERTIES",[...Te.META_PROPERTIES,...Te.UPSTREAM_PROPERTIES,...Te.DOWNSTREAM_PROPERTIES]);let fr=Te;function l6(n){var u;const e=nU(),t=n.toJSON();e.safeParse(t).success,n.inputs.forEach(p=>p.validate()),n.outputs.forEach(p=>p.validate()),(u=n.error)==null||u.validate();const a=mn(n),s=c6(n),o=[...a,...s];return X(n.errors,o)}function c6(n){const e=[],t=Ys(n.parent),i=t==null?void 0:t.entity;if(!i)e.push(k({id:`${n.id}--${v.InvalidInternalCallParentDeclarationRelation}`,code:v.InvalidInternalCallParentDeclarationRelation,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) its id "${n.declaration}".`,issue:null,entity:n}).error);else if(![r.CustomEntity,r.BuiltInBaseEntity,r.PrimitiveEntity].includes(i.type))e.push(k({id:`${n.id}--${v.InvalidInternalCallParentDeclarationRelation}`,code:v.InvalidInternalCallParentDeclarationRelation,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", belongs to a variable whose data type 'entity' is not a custom entity, built-in base entity or primitive entity.
75
+ You shouldn't have to manually update a 'parent' property. The equivalent result is to change its callers, the value writters of its inputs, or the value readers of its outputs.`,issue:null})),{errors:t,modifiedData:e}}addSelfToProject(){return this.parent===this.project&&this.project.addSearch(this),this.successCalls.forEach(e=>{e.addSuccessCaller(this)}),this.errorCalls.forEach(e=>{e.addErrorCaller(this)}),this.calledByEntry.forEach(e=>{e.addCall(this)}),this.calledBySuccess.forEach(e=>{e.addSuccessCall(this)}),this.calledByError.forEach(e=>{e.addErrorCall(this)}),this}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(e){const t=this.inputs.findIndex(a=>a.id===e.id);t>-1&&this.inputs.splice(t,1);const i=this.inputsDeclarations.findIndex(a=>a.id===e.declaration.id);return i>-1&&this.inputsDeclarations.splice(i,1),this}addInput(e){return this.inputs.includes(e)?this:(this.inputs.push(e),this)}addInputDeclaration(e){return this.inputsDeclarations.includes(e)?this:(this.inputsDeclarations.push(e),this)}removeInputDeclaration(e){const t=this.inputsDeclarations.findIndex(i=>i.id===e.id);return t>-1&&this.inputsDeclarations.splice(t,1),this}addOutputDeclaration(e){return this.outputsDeclarations.includes(e)?this:(this.outputsDeclarations.push(e),this)}removeOutputDeclaration(e){const t=this.outputsDeclarations.findIndex(i=>i.id===e.id);return t>-1&&this.outputsDeclarations.splice(t,1),this}addOutput(e){return this.outputs.includes(e)?this:(this.outputs.push(e),this)}removeOutput(e){const t=this.outputs.findIndex(i=>i.id===e.id);return t>-1&&this.outputs.splice(t,1),this}addSuccessCaller(e){return this.calledBySuccess.find(t=>t.id===e.id)||this.calledBySuccess.push(e),this}addErrorCaller(e){return this.calledByError.find(t=>t.id===e.id)||this.calledByError.push(e),this}addEntryCaller(e){return this.calledByEntry.find(t=>t.id===e.id)||this.calledByEntry.push(e),this}addErrorCall(e){return this.errorCalls.push(e),this}addSuccessCall(e){return this.successCalls.push(e),this}removeCall(e){const t=this.successCalls.findIndex(a=>a.id===e.id);t>-1&&this.successCalls.splice(t,1);const i=this.errorCalls.findIndex(a=>a.id===e.id);return i>-1&&this.errorCalls.splice(i,1),this}removeCaller(e){return this.calledBySuccess=this.calledBySuccess.filter(t=>t.id!==e.id),this.calledByError=this.calledByError.filter(t=>t.id!==e.id),this.calledByEntry=this.calledByEntry.filter(t=>t.id!==e.id),this}setParent(e){return this.parent=e,this}initChildren(){return this.initialized?this:(this.initialized=!0,this.successCalls=this.initialData.successCalls.map(e=>{const t=R(e,this.project);return[r.BreakStatement,r.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==r.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.errorCalls=this.initialData.errorCalls.map(e=>{const t=R(e,this.project);return t.addErrorCaller(this),[r.BreakStatement,r.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==r.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.inputsDeclarations=this.initialData.inputsDeclarations.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.inputs=this.initialData.inputs.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.outputsDeclarations=this.initialData.outputsDeclarations.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.outputs=this.initialData.outputs.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.initialData.error&&(this.error=R(this.initialData.error,this.project),this.error.setParent(this),this.error.initChildren()),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.name=e.name||this.name,this.query=e.query||this.query,this.description=e.description||this.description,this}async load(){return this}async create(){return this}async update(e){return this}async delete(){return this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){const i=[],a=[];if(t.has(this.id))return{affected:[],removed:[]};if(t.add(this.id),a.push(this),this.unsubscribe(),this.inputs.forEach(s=>{const{affected:o,removed:u}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...u)}),this.inputsDeclarations.forEach(s=>{const{affected:o,removed:u}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...u)}),this.outputs.forEach(s=>{const{affected:o,removed:u}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...u)}),this.outputsDeclarations.forEach(s=>{const{affected:o,removed:u}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...u)}),this.error){const{affected:s,removed:o}=this.error.remove({ignoreUpstream:!0,seenEntities:t});i.push(...s),a.push(...o)}return this.successCalls.forEach(s=>{i.push(s),s.removeCaller(this)}),this.errorCalls.forEach(s=>{i.push(s),s.removeCaller(this)}),e||this.calledBy.forEach(s=>{i.push(s),s.removeCall(this)}),{affected:S(i),removed:S(a)}}restore({seenEntities:e}={seenEntities:new Set}){const t=[];return e.has(this.id)?{affected:[],self:this}:(e.add(this.id),this.subscribe(),this.inputsDeclarations.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.inputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.outputsDeclarations.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.outputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.successCalls.forEach(i=>{t.push(i),i.addSuccessCaller(this)}),this.errorCalls.forEach(i=>{t.push(i),i.addErrorCaller(this)}),this.calledBySuccess.forEach(i=>{t.push(i),i.addSuccessCall(this)}),this.calledByError.forEach(i=>{t.push(i),i.addErrorCall(this)}),this.calledByEntry.forEach(i=>{t.push(i),i.addCall(this)}),{affected:S(t),self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.successCalls.flatMap(i=>i.toFlat(e)),...this.errorCalls.flatMap(i=>i.toFlat(e)),...this.inputs.flatMap(i=>i.toFlat(e)),...this.inputsDeclarations.flatMap(i=>i.toFlat(e)),...this.outputs.flatMap(i=>i.toFlat(e)),...this.outputsDeclarations.flatMap(i=>i.toFlat(e)),...this.calledBy.flatMap(i=>i.toFlat(e)),...this.error?this.error.toFlat(e):[]])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.successCalls.flatMap(i=>i.toFlatIds(e)),...this.errorCalls.flatMap(i=>i.toFlatIds(e)),...this.inputs.flatMap(i=>i.toFlatIds(e)),...this.inputsDeclarations.flatMap(i=>i.toFlatIds(e)),...this.outputs.flatMap(i=>i.toFlatIds(e)),...this.outputsDeclarations.flatMap(i=>i.toFlatIds(e)),...this.calledBy.flatMap(i=>i.toFlatIds(e)),...this.error?this.error.toFlatIds(e):[]])}toJSON(){var e;return{id:this.id,version:this.version,type:this.type,name:this.name,query:this.query,description:this.description,x:this.x,y:this.y,successCalls:this.successCalls.map(t=>t.toJSON()),errorCalls:this.errorCalls.map(t=>t.toJSON()),calledBySuccess:this.calledBySuccess.map(t=>t.toReference()),calledByError:this.calledByError.map(t=>t.toReference()),calledByEntry:this.calledByEntry.map(t=>t.toReference()),inputsDeclarations:this.inputsDeclarations.map(t=>t.toJSON()),inputs:this.inputs.map(t=>t.toJSON()),outputsDeclarations:this.outputsDeclarations.map(t=>t.toJSON()),outputs:this.outputs.map(t=>t.toJSON()),parent:this.parent.toReference(),error:((e=this.error)==null?void 0:e.toJSON())||null}}toReference(){return{id:this.id+"--"+$.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,query:this.query,x:this.x,y:this.y,inputs:this.inputs.map(e=>e.toReference()),inputsDeclarations:this.inputsDeclarations.map(e=>e.toReference()),outputs:this.outputs.map(e=>e.toReference()),outputsDeclarations:this.outputsDeclarations.map(e=>e.toReference()),successCalls:this.successCalls.map(e=>e.toReference()),errorCalls:this.errorCalls.map(e=>e.toReference()),calledBySuccess:this.calledBySuccess.map(e=>e.toReference()),calledByError:this.calledByError.map(e=>e.toReference()),calledByEntry:this.calledByEntry.map(e=>e.toReference()),error:this.error?this.error.toReference():null,parent:this.parent.toReference()}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.successCalls.flatMap(i=>i.toFlatJSON(e)),...this.errorCalls.flatMap(i=>i.toFlatJSON(e)),...this.inputs.flatMap(i=>i.toFlatJSON(e)),...this.inputsDeclarations.flatMap(i=>i.toFlatJSON(e)),...this.outputs.flatMap(i=>i.toFlatJSON(e)),...this.outputsDeclarations.flatMap(i=>i.toFlatJSON(e)),...this.calledBy.flatMap(i=>i.toFlatJSON(e)),...this.error?this.error.toFlatJSON(e):[]])}toGenerationTarget(){const e=this.parent.type===r.Project?void 0:this.parent.id;return{id:this.id,name:this.name,description:this.description,type:this.type,query:this.query,calledByEntry:this.calledByEntry.map(t=>t.id),calledBySuccess:this.calledBySuccess.map(t=>t.id),calledByError:this.calledByError.map(t=>t.id),parent:e}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.successCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.errorCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.inputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.inputsDeclarations.flatMap(i=>i.toFlatGenerationTarget(e)),...this.outputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.outputsDeclarations.flatMap(i=>i.toFlatGenerationTarget(e)),...this.error?this.error.toFlatGenerationTarget(e):[]])}clearErrors(){var e;return this.errors=[],this.inputsDeclarations.forEach(t=>t.clearErrors()),this.inputs.forEach(t=>t.clearErrors()),this.outputs.forEach(t=>t.clearErrors()),this.successCalls.forEach(t=>t.clearErrors()),this.errorCalls.forEach(t=>t.clearErrors()),(e=this.error)==null||e.clearErrors(),this}validate(){const e=s6(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.inputsDeclarations.flatMap(t=>t.getErrors()),...this.inputs.flatMap(t=>t.getErrors()),...this.outputsDeclarations.flatMap(t=>t.getErrors()),...this.outputs.flatMap(t=>t.getErrors()),...this.error?this.error.getErrors():[]]}getShallowErrors(){return this.errors}clone(e){return new De(this.toJSON(),this.project)}};l(De,"MUTABLE_BASE_PROPERTIES",["name","description","query"]),l(De,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),l(De,"BASE_PROPERTIES",[...De.MUTABLE_BASE_PROPERTIES,...De.INMUTABLE_BASE_PROPERTIES]),l(De,"MUTABLE_META_PROPERTIES",[...De.MUTABLE_BASE_PROPERTIES,"x","y"]),l(De,"INMUTABLE_META_PROPERTIES",[...De.INMUTABLE_BASE_PROPERTIES]),l(De,"META_PROPERTIES",[...De.MUTABLE_META_PROPERTIES,...De.INMUTABLE_META_PROPERTIES]),l(De,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),l(De,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),l(De,"UPSTREAM_PROPERTIES",[...De.MUTABLE_UPSTREAM_PROPERTIES,...De.INMUTABLE_UPSTREAM_PROPERTIES]),l(De,"MUTABLE_DOWNSTREAM_PROPERTIES",["successCalls","errorCalls","inputsDeclarations","inputs","outputsDeclarations","outputs","error"]),l(De,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),l(De,"DOWNSTREAM_PROPERTIES",[...De.MUTABLE_DOWNSTREAM_PROPERTIES,...De.INMUTABLE_DOWNSTREAM_PROPERTIES]),l(De,"PROPERTIES",[...Ot.META_PROPERTIES,...Ot.UPSTREAM_PROPERTIES,...Ot.DOWNSTREAM_PROPERTIES]);let hr=De;function o6(n){const e=qU(),t=n.toJSON();e.safeParse(t).success,n.functions.forEach(s=>s.validate()),n.events.forEach(s=>s.validate());const a=[];return X(n.errors,a)}const Te=class Te{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"name");l(this,"description",null);l(this,"x");l(this,"y");l(this,"type",r.InstalledProject);l(this,"implements");l(this,"functions",[]);l(this,"events",[]);l(this,"parent");l(this,"errors",[]);l(this,"project");l(this,"initialized",!1);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version,this.name=e.name,this.description=e.description,this.x=e.x,this.y=e.y,this.implements=e.implements}static fromGenerationTarget(e,t){const i=t,a={id:e.id,version:1,name:e.name,type:r.InstalledProject,description:e.description,functions:[],events:[],implements:{entityId:e.implements,entityType:r.Project,type:r.GenericReference,id:$.UUID.uuid()},x:0,y:0,parent:i},s=R(a,t);return s.setParent(i),s.initChildren(),s}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[];return a.push(...Pe(i)),{errors:a,modifiedData:i}}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new E({id:`${this.id}--${y.InvalidParentUpdate}`,code:y.InvalidParentUpdate,severity:f.Error,message:`Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on an installed project, must be the root project as it is a globally declared entity.`,issue:null})),{errors:t,modifiedData:e}}addSelfToProject(){return this}setParent(e){return this.parent=e,this}initChildren(){return this.initialized?this:(this.initialized=!0,this.functions=this.initialData.functions.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.events=this.initialData.events.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this)}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return 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=[];return t.has(this.id)?{affected:[],removed:[]}:(t.add(this.id),a.push(this),this.unsubscribe(),this.functions.forEach(s=>{const{affected:o,removed:u}=s.remove({ignoreUpstream:!1,seenEntities:t});i.push(...o),a.push(...u)}),this.events.forEach(s=>{const{affected:o,removed:u}=s.remove({ignoreUpstream:!1,seenEntities:t});i.push(...o),a.push(...u)}),{affected:[],removed:[]})}restore({seenEntities:e}={seenEntities:new Set}){return e.has(this.id)?{affected:[],self:this}:(e.add(this.id),this.subscribe(),this.functions.forEach(t=>{t.restore({seenEntities:e})}),this.events.forEach(t=>{t.restore({seenEntities:e})}),{affected:[],self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.functions.flatMap(i=>i.toFlat(e)),...this.events.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.functions.flatMap(i=>i.toFlatIds(e)),...this.events.flatMap(i=>i.toFlatIds(e))])}toJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,implements:this.implements,functions:this.functions.map(e=>e.toJSON()),events:this.events.map(e=>e.toJSON()),parent:this.parent.toReference(),x:this.x,y:this.y}}toReference(){return{id:this.id+"--"+$.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,x:this.x,y:this.y,implements:this.implements,functions:this.functions.map(e=>e.toReference()),events:this.events.map(e=>e.toReference()),parent:this.parent.toReference()}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.functions.flatMap(i=>i.toFlatJSON(e)),...this.events.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,name:this.name,description:this.description,type:this.type,implements:this.implements.id}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.functions.flatMap(i=>i.toFlatGenerationTarget(e)),...this.events.flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.functions.forEach(e=>e.clearErrors()),this.events.forEach(e=>e.clearErrors()),this}validate(){const e=o6(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.functions.flatMap(t=>t.getErrors()),...this.events.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(){return new Te(this.toJSON(),this.project)}};l(Te,"MUTABLE_BASE_PROPERTIES",[]),l(Te,"INMUTABLE_BASE_PROPERTIES",["id","version","name","description","type"]),l(Te,"BASE_PROPERTIES",[...Te.MUTABLE_BASE_PROPERTIES,...Te.INMUTABLE_BASE_PROPERTIES]),l(Te,"MUTABLE_META_PROPERTIES",["x","y"]),l(Te,"INMUTABLE_META_PROPERTIES",[...Te.INMUTABLE_BASE_PROPERTIES]),l(Te,"META_PROPERTIES",[...Te.MUTABLE_META_PROPERTIES,...Te.INMUTABLE_META_PROPERTIES]),l(Te,"MUTABLE_UPSTREAM_PROPERTIES",[]),l(Te,"INMUTABLE_UPSTREAM_PROPERTIES",["implements","parent"]),l(Te,"UPSTREAM_PROPERTIES",[...Te.MUTABLE_UPSTREAM_PROPERTIES,...Te.INMUTABLE_UPSTREAM_PROPERTIES]),l(Te,"MUTABLE_DOWNSTREAM_PROPERTIES",["functions","events"]),l(Te,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),l(Te,"DOWNSTREAM_PROPERTIES",[...Te.MUTABLE_DOWNSTREAM_PROPERTIES,...Te.INMUTABLE_DOWNSTREAM_PROPERTIES]),l(Te,"PROPERTIES",[...Te.META_PROPERTIES,...Te.UPSTREAM_PROPERTIES,...Te.DOWNSTREAM_PROPERTIES]);let fr=Te;function l6(n){var u;const e=nU(),t=n.toJSON();e.safeParse(t).success,n.inputs.forEach(p=>p.validate()),n.outputs.forEach(p=>p.validate()),(u=n.error)==null||u.validate();const a=mn(n),s=c6(n),o=[...a,...s];return X(n.errors,o)}function c6(n){const e=[],t=Ys(n.parent),i=t==null?void 0:t.entity;if(!i)e.push(k({id:`${n.id}--${v.InternalCallParentMissingDataType}`,code:v.InternalCallParentMissingDataType,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) its id "${n.declaration}".`,issue:null,entity:n}).error);else if(![r.CustomEntity,r.BuiltInBaseEntity,r.PrimitiveEntity].includes(i.type))e.push(k({id:`${n.id}--${v.InternalCallParentDeclarationEntityInvalidType}`,code:v.InternalCallParentDeclarationEntityInvalidType,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", belongs to a variable whose data type 'entity' is not a custom entity, built-in base entity or primitive entity.
76
76
  This variable's data-type has an 'entity' field that references an entity with id '${i.id}' and of type '${i.type}'.`,issue:null,entity:n}).error);else{const a=Dd(i);let s="";a?i.methods.length?s=`
77
77
  All 'function-declaration' entities attached as methods to the parent data-type 'entity' field, available to be called as 'internal-calls' in this variable are:
78
78
  - ${i.methods.map(p=>p.id).join(`
@@ -83,9 +83,9 @@ You can attach methods to it by creating 'function-declaration' entities which h
83
83
  This variable's data-type 'entity' is a ${i.type} which doesn't have any methods attached to it yet.
84
84
  Built-in entity types can't have methods attached to them by the user. They are predefined entities that can't be modified. You can reference them as the 'declaration' property on a new 'internal-call' entity in a variable`):i.type===r.CustomEntity?s=`
85
85
  This variable's data-type 'entity' is a custom entity which extends or implements a non-interactive 'built-in-base-entity'.s`:i.type===r.BuiltInBaseEntity&&(s=`
86
- This variable's data-type 'entity' is a non-interactive 'built-in-base-entity'.s`);const o=(i.methods||[]).find(u=>u.id===n.declaration.id);o?o.type!==r.FunctionDeclaration?e.push(k({id:`${n.id}--${v.InvalidInternalCallParentDeclarationRelation}`,code:v.InvalidInternalCallParentDeclarationRelation,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", points to a 'declaration' that isn't a 'function-declaration' entity.
87
- The declaration of the internal-call must be a 'function-declaration' entity which exists as a method in the entity of the data-type of the parent variable.${s}`,issue:null,entity:n}).error):n.declaration.parent.id!==i.id&&e.push(k({id:`${n.id}--${v.InvalidInternalCallParentDeclarationRelation}`,code:v.InvalidInternalCallParentDeclarationRelation,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", has a declaration method (function-declaration) that doesn't belong to its parent's data type entity.
88
- The data type on this variable points to a different entity than the declaration of the internal-call.${s}`,issue:null,entity:n}).error):e.push(k({id:`${n.id}--${v.InvalidInternalCallParentDeclarationRelation}`,code:v.InvalidInternalCallParentDeclarationRelation,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) with id "${n.declaration}".${s}`,issue:null,entity:n}).error)}return e}const se=class se{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"index");l(this,"type",r.InternalCall);l(this,"declaration");l(this,"inputs",[]);l(this,"outputs",[]);l(this,"process",null);l(this,"successCalls",[]);l(this,"errorCalls",[]);l(this,"error",null);l(this,"calledBySuccess",[]);l(this,"calledByError",[]);l(this,"calledByEntry",[]);l(this,"parent");l(this,"project");l(this,"errors",[]);l(this,"initialized",!1);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version}static fromGenerationTarget(e,t){const i=D(e.parent),a=t.get(i),s=D(e.declaration),o=t.get(s),u=e.calledByEntry.map(b=>{const I=D(b);return t.get(I)}),p=e.calledBySuccess.map(b=>{const I=D(b);return t.get(I)}),h=e.calledByError.map(b=>{const I=D(b);return t.get(I)}),m={id:e.id,version:1,type:r.InternalCall,index:a.internalCalls.length,declaration:o.toReference(),calledByEntry:u,calledBySuccess:p,calledByError:h,errorCalls:[],successCalls:[],inputs:[],outputs:[],process:null,error:null,parent:a},T=R(m,t);return T.setParent(a),T.initChildren(),T}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[],s=Ge(i,{parent:{list:!1,types:Fe}},t);i=s.modifiedData;const o=D(i.parent),u=t.get(o);if(u){const p=Ys(u),h=p==null?void 0:p.entity;if(!h)a.push(new E({id:`${i.id}--${y.InvalidInternalCallParentDeclarationRelation}`,code:y.InvalidInternalCallParentDeclarationRelation,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) its id "${i.declaration}".`,issue:null}));else if(![r.CustomEntity,r.BuiltInBaseEntity,r.PrimitiveEntity].includes(h.type))a.push(new E({id:`${i.id}--${y.InvalidInternalCallParentDeclarationRelation}`,code:y.InvalidInternalCallParentDeclarationRelation,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}", belongs to a variable whose data type 'entity' is not a custom entity, built-in base entity or primitive entity.
86
+ This variable's data-type 'entity' is a non-interactive 'built-in-base-entity'.s`);const o=(i.methods||[]).find(u=>u.id===n.declaration.id);o?o.type!==r.FunctionDeclaration?e.push(k({id:`${n.id}--${v.InternalCallDeclarationIsNotFunctionDeclaration}`,code:v.InternalCallDeclarationIsNotFunctionDeclaration,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", points to a 'declaration' that isn't a 'function-declaration' entity.
87
+ The declaration of the internal-call must be a 'function-declaration' entity which exists as a method in the entity of the data-type of the parent variable.${s}`,issue:null,entity:n}).error):n.declaration.parent.id!==i.id&&e.push(k({id:`${n.id}--${v.InternalCallDeclarationNotInParentDatatypeEntity}`,code:v.InternalCallDeclarationNotInParentDatatypeEntity,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", has a declaration method (function-declaration) that doesn't belong to its parent's data type entity.
88
+ The data type on this variable points to a different entity than the declaration of the internal-call.${s}`,issue:null,entity:n}).error):e.push(k({id:`${n.id}--${v.InternalCallDeclarationNotFoundInParentDatatypeEntity}`,code:v.InternalCallDeclarationNotFoundInParentDatatypeEntity,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) with id "${n.declaration}".${s}`,issue:null,entity:n}).error)}return e}const se=class se{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"index");l(this,"type",r.InternalCall);l(this,"declaration");l(this,"inputs",[]);l(this,"outputs",[]);l(this,"process",null);l(this,"successCalls",[]);l(this,"errorCalls",[]);l(this,"error",null);l(this,"calledBySuccess",[]);l(this,"calledByError",[]);l(this,"calledByEntry",[]);l(this,"parent");l(this,"project");l(this,"errors",[]);l(this,"initialized",!1);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version}static fromGenerationTarget(e,t){const i=D(e.parent),a=t.get(i),s=D(e.declaration),o=t.get(s),u=e.calledByEntry.map(b=>{const I=D(b);return t.get(I)}),p=e.calledBySuccess.map(b=>{const I=D(b);return t.get(I)}),h=e.calledByError.map(b=>{const I=D(b);return t.get(I)}),m={id:e.id,version:1,type:r.InternalCall,index:a.internalCalls.length,declaration:o.toReference(),calledByEntry:u,calledBySuccess:p,calledByError:h,errorCalls:[],successCalls:[],inputs:[],outputs:[],process:null,error:null,parent:a},T=R(m,t);return T.setParent(a),T.initChildren(),T}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[],s=Ge(i,{parent:{list:!1,types:Fe}},t);i=s.modifiedData;const o=D(i.parent),u=t.get(o);if(u){const p=Ys(u),h=p==null?void 0:p.entity;if(!h)a.push(new E({id:`${i.id}--${v.InternalCallParentMissingDataType}`,code:v.InternalCallParentMissingDataType,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) its id "${i.declaration}".`,issue:null}));else if(![r.CustomEntity,r.BuiltInBaseEntity,r.PrimitiveEntity].includes(h.type))a.push(new E({id:`${i.id}--${v.InternalCallParentDeclarationEntityInvalidType}`,code:v.InternalCallParentDeclarationEntityInvalidType,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}", belongs to a variable whose data type 'entity' is not a custom entity, built-in base entity or primitive entity.
89
89
  This variable's data-type has an 'entity' field that references an entity with id '${h.id}' and of type '${h.type}'.`,issue:null}));else{const m=Dd(h);let T="";m?h.methods.length?T=`
90
90
  All 'function-declaration' entities attached as methods to the parent data-type 'entity' field, available to be called as 'internal-calls' in this variable are:
91
91
  - ${h.methods.map(G=>G.id).join(`
@@ -98,9 +98,9 @@ Built-in entity types can't have methods attached to them by the user. They are
98
98
  This variable's data-type 'entity' is a custom entity which extends or implements a non-interactive 'built-in-base-entity'.
99
99
  ${Vn}`:h.type===r.BuiltInBaseEntity&&(T=`
100
100
  This variable's data-type 'entity' is a non-interactive 'built-in-base-entity'.
101
- ${Vn}`);const b=i.declaration,I=t.get(b);if(!I)a.push(new E({id:`${i.id}--${y.ReferencedEntityNotFound}`,code:y.ReferencedEntityNotFound,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}", has a declaration method (function-declaration) that doesn't exist in the project.${T}`,issue:null}));else{const B=(h.methods||[]).find(G=>G.id===i.declaration);B?B.type!==r.FunctionDeclaration?a.push(new E({id:`${i.id}--${y.InvalidInternalCallParentDeclarationRelation}`,code:y.InvalidInternalCallParentDeclarationRelation,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}", points to a 'declaration' that isn't a 'function-declaration' entity.
102
- The declaration of the internal-call must be a 'function-declaration' entity which exists as a method in the entity of the data-type of the parent variable.${T}`,issue:null})):I.parent.id!==h.id&&a.push(new E({id:`${i.id}--${y.InvalidInternalCallParentDeclarationRelation}`,code:y.InvalidInternalCallParentDeclarationRelation,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}", has a declaration method (function-declaration) that doesn't belong to its parent's data type entity.
103
- The data type on this variable points to a different entity than the declaration of the internal-call.${T}`,issue:null})):a.push(new E({id:`${i.id}--${y.InvalidInternalCallParentDeclarationRelation}`,code:y.InvalidInternalCallParentDeclarationRelation,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) with id "${i.declaration}".${T}`,issue:null}))}}(u.inputs.length||u.outputs.length||u.internalCalls.length)&&a.push(new E({id:`${i.id}--${y.InvalidInternalCallParentRelation}`,code:y.InvalidInternalCallParentRelation,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}", can only be added to a variable declaration or variable instance parent if the parent doesn't already have inputs, outputs or other internal calls.
101
+ ${Vn}`);const b=i.declaration,I=t.get(b);if(!I)a.push(new E({id:`${i.id}--${y.ReferencedEntityNotFound}`,code:y.ReferencedEntityNotFound,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}", has a declaration method (function-declaration) that doesn't exist in the project.${T}`,issue:null}));else{const B=(h.methods||[]).find(G=>G.id===i.declaration);B?B.type!==r.FunctionDeclaration?a.push(new E({id:`${i.id}--${v.InternalCallDeclarationIsNotFunctionDeclaration}`,code:v.InternalCallDeclarationIsNotFunctionDeclaration,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}", points to a 'declaration' that isn't a 'function-declaration' entity.
102
+ The declaration of the internal-call must be a 'function-declaration' entity which exists as a method in the entity of the data-type of the parent variable.${T}`,issue:null})):I.parent.id!==h.id&&a.push(new E({id:`${i.id}--${v.InternalCallDeclarationNotInParentDatatypeEntity}`,code:v.InternalCallDeclarationNotInParentDatatypeEntity,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}", has a declaration method (function-declaration) that doesn't belong to its parent's data type entity.
103
+ The data type on this variable points to a different entity than the declaration of the internal-call.${T}`,issue:null})):a.push(new E({id:`${i.id}--${v.InternalCallDeclarationNotFoundInParentDatatypeEntity}`,code:v.InternalCallDeclarationNotFoundInParentDatatypeEntity,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) with id "${i.declaration}".${T}`,issue:null}))}}(u.inputs.length||u.outputs.length||u.internalCalls.length)&&a.push(new E({id:`${i.id}--${y.InvalidInternalCallParentRelation}`,code:y.InvalidInternalCallParentRelation,severity:f.Error,message:`Entity of type "${i.type}" with id "${i.id}", can only be added to a variable declaration or variable instance parent if the parent doesn't already have inputs, outputs or other internal calls.
104
104
  If you need a new variable-instance for this, consider using the 'implement_variable_instance' generation action to create one and give it a caller.
105
105
  The you can attach the new internal-call to it.`,issue:null}))}return a.push(...s.errors,...Pe(i)),{errors:a,modifiedData:i}}validateGeneratedUpdate(e){const t=[];return e.parent&&t.push(new E({id:`${this.id}--${y.InvalidParentUpdate}`,code:y.InvalidParentUpdate,severity:f.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.
106
106
  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 e;return this.parent.addInternalCall(this),(e=this.process)==null||e.writesValues.forEach(t=>{t.setValueWriter(this.process)}),this.successCalls.forEach(t=>{t.addSuccessCaller(this)}),this.errorCalls.forEach(t=>{t.addErrorCaller(this)}),this.calledBySuccess.forEach(t=>{t.addSuccessCall(this)}),this.calledByError.forEach(t=>{t.addErrorCall(this)}),this.calledByEntry.forEach(t=>{t.addCall(this)}),this}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(e){const t=this.inputs.findIndex(i=>i.id===e.id);return t>-1&&this.inputs.splice(t,1),this}addInput(e){return this.inputs.includes(e)?this:(this.inputs.push(e),this)}addOutput(e){return this.outputs.includes(e)?this:(this.outputs.push(e),this)}removeOutput(e){const t=this.outputs.findIndex(i=>i.id===e.id);return t>-1&&this.outputs.splice(t,1),this}addValueReader(e){var t;return(t=this.process)==null||t.addValueReader(e),this}removeValueReader(e){var t;return(t=this.process)==null||t.removeValueReader(e),this}addSuccessCaller(e){return this.calledBySuccess.find(t=>t.id===e.id)||this.calledBySuccess.push(e),this}addErrorCaller(e){return this.calledByError.find(t=>t.id===e.id)||this.calledByError.push(e),this}addEntryCaller(e){return this.calledByEntry.find(t=>t.id===e.id)||this.calledByEntry.push(e),this}addErrorCall(e){return this.errorCalls.push(e),this}addSuccessCall(e){return this.successCalls.push(e),this}removeCall(e){const t=this.successCalls.findIndex(a=>a.id===e.id);t>-1&&this.successCalls.splice(t,1);const i=this.errorCalls.findIndex(a=>a.id===e.id);return i>-1&&this.errorCalls.splice(i,1),this}removeCaller(e){return this.calledBySuccess=this.calledBySuccess.filter(t=>t.id!==e.id),this.calledByError=this.calledByError.filter(t=>t.id!==e.id),this.calledByEntry=this.calledByEntry.filter(t=>t.id!==e.id),this}setParent(e){return this.parent=e,this}initChildren(){if(this.initialized)return this;if(this.initialized=!0,this.initialData.parent.type!==r.GenericReference){const e=R(this.initialData.parent,this.project);this.setParent(e),this.parent.initChildren(),this.parent.addInternalCall(this);const t=this.calledBy.find(i=>!!i.parent&&st.includes(i.parent.type));if(t){const i=R(t.parent,this.project);this.parent.setParent(i)}else if(!t&&!this.parent.calledBy.length)throw new Error("Parent of internal call parent could not be resolved")}return this.declaration=R(this.initialData.declaration,this.project),this.successCalls=this.initialData.successCalls.map(e=>{const t=R(e,this.project);return t.addSuccessCaller(this),[r.BreakStatement,r.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==r.InternalCall&&(t.setParent(this.parent.parent),t.initChildren()),t}),this.errorCalls=this.initialData.errorCalls.map(e=>{const t=R(e,this.project);return t.addErrorCaller(this),[r.BreakStatement,r.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent.parent),t.initChildren()):t.type!==r.InternalCall&&(t.setParent(this.parent.parent),t.initChildren()),t}),this.inputs=this.initialData.inputs.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.outputs=this.initialData.outputs.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.initialData.error&&(this.error=R(this.initialData.error,this.project),this.error.setParent(this),this.error.initChildren()),this.initialData.process&&(this.process=R(this.initialData.process,this.project),this.process.setParent(this),this.process.initChildren()),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.index=e.index||this.index,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}){var s;const i=[],a=[];if(t.has(this.id))return{affected:[],removed:[]};if(t.add(this.id),a.push(this),this.unsubscribe(),this.process){const{affected:o,removed:u}=(s=this.process)==null?void 0:s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...u)}if(this.inputs.forEach(o=>{const{affected:u,removed:p}=o.remove({ignoreUpstream:!0,seenEntities:t});i.push(...u),a.push(...p)}),this.outputs.forEach(o=>{const{affected:u,removed:p}=o.remove({ignoreUpstream:!0,seenEntities:t});i.push(...u),a.push(...p)}),this.error){const{affected:o,removed:u}=this.error.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...u)}return this.successCalls.forEach(o=>{i.push(o),o.removeCaller(this)}),this.errorCalls.forEach(o=>{i.push(o),o.removeCaller(this)}),e||this.calledBy.forEach(o=>{i.push(o),o.removeCall(this)}),{affected:S(i),removed:S(a)}}restore({seenEntities:e}={seenEntities:new Set}){const t=[];if(e.has(this.id))return{affected:[],self:this};if(e.add(this.id),this.subscribe(),this.process){const{affected:i}=this.process.restore({seenEntities:e});t.push(...i)}return this.inputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.outputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.successCalls.forEach(i=>{t.push(i),i.addSuccessCaller(this)}),this.errorCalls.forEach(i=>{t.push(i),i.addErrorCaller(this)}),this.calledBySuccess.forEach(i=>{t.push(i),i.addSuccessCall(this)}),this.calledByError.forEach(i=>{t.push(i),i.addErrorCall(this)}),this.calledByEntry.forEach(i=>{t.push(i),i.addCall(this)}),{affected:S(t),self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.successCalls.flatMap(i=>i.toFlat(e)),...this.errorCalls.flatMap(i=>i.toFlat(e)),...this.inputs.flatMap(i=>i.toFlat(e)),...this.outputs.flatMap(i=>i.toFlat(e)),...this.calledBy.flatMap(i=>i.toFlat(e)),...this.process?this.process.toFlat(e):[],...this.error?this.error.toFlat(e):[]])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.successCalls.flatMap(i=>i.toFlatIds(e)),...this.errorCalls.flatMap(i=>i.toFlatIds(e)),...this.inputs.flatMap(i=>i.toFlatIds(e)),...this.outputs.flatMap(i=>i.toFlatIds(e)),...this.calledBy.flatMap(i=>i.toFlatIds(e)),...this.process?this.process.toFlatIds(e):[],...this.error?this.error.toFlatIds(e):[]])}toJSON(){var e,t;return{id:this.id,version:this.version,type:this.type,index:this.index,successCalls:this.successCalls.map(i=>i.toJSON()),errorCalls:this.errorCalls.map(i=>i.toJSON()),calledBySuccess:this.calledBySuccess.map(i=>i.toReference()),calledByError:this.calledByError.map(i=>i.toReference()),calledByEntry:this.calledByEntry.map(i=>i.toReference()),process:(e=this.process)==null?void 0:e.toJSON(),declaration:this.declaration.toJSON(),inputs:this.inputs.map(i=>i.toJSON()),outputs:this.outputs.map(i=>i.toJSON()),parent:this.parent.toReference(),error:(t=this.error)==null?void 0:t.toJSON()}}toReference(){return{id:this.id+"--"+$.UUID.uuid()+"--ref",type:r.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,type:this.type,index:this.index,process:this.process?this.process.toReference():null,inputs:this.inputs.map(e=>e.toReference()),outputs:this.outputs.map(e=>e.toReference()),declaration:this.declaration.toReference(),successCalls:this.successCalls.map(e=>e.toReference()),errorCalls:this.errorCalls.map(e=>e.toReference()),calledBySuccess:this.calledBySuccess.map(e=>e.toReference()),calledByError:this.calledByError.map(e=>e.toReference()),calledByEntry:this.calledByEntry.map(e=>e.toReference()),error:this.error?this.error.toReference():null,parent:this.parent.toReference()}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.process?this.process.toFlatJSON(e):[],...this.successCalls.flatMap(i=>i.toFlatJSON(e)),...this.errorCalls.flatMap(i=>i.toFlatJSON(e)),...this.inputs.flatMap(i=>i.toFlatJSON(e)),...this.outputs.flatMap(i=>i.toFlatJSON(e)),...this.calledBy.flatMap(i=>i.toFlatJSON(e)),...this.error?this.error.toFlatJSON(e):[]])}toGenerationTarget(){return{id:this.id,type:this.type,calledByEntry:this.calledByEntry.map(e=>e.id),calledBySuccess:this.calledBySuccess.map(e=>e.id),calledByError:this.calledByError.map(e=>e.id),declaration:this.declaration.id,parent:this.parent.id}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.process?this.process.toFlatGenerationTarget(e):[],...this.successCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.errorCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.inputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.outputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.error?this.error.toFlatGenerationTarget(e):[]])}clearErrors(){var e,t;return this.errors=[],this.inputs.forEach(i=>i.clearErrors()),this.outputs.forEach(i=>i.clearErrors()),this.successCalls.forEach(i=>i.clearErrors()),this.errorCalls.forEach(i=>i.clearErrors()),(e=this.process)==null||e.clearErrors(),(t=this.error)==null||t.clearErrors(),this}validate(){const e=l6(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.inputs.flatMap(t=>t.getErrors()),...this.outputs.flatMap(t=>t.getErrors()),...this.error?this.error.getErrors():[],...this.process?this.process.getErrors():[]]}getShallowErrors(){return this.errors}clone(e){return new se(this.toJSON(),this.project)}};l(se,"MUTABLE_BASE_PROPERTIES",[]),l(se,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),l(se,"BASE_PROPERTIES",[...se.MUTABLE_BASE_PROPERTIES,...se.INMUTABLE_BASE_PROPERTIES]),l(se,"MUTABLE_META_PROPERTIES",[...se.MUTABLE_BASE_PROPERTIES,"index"]),l(se,"INMUTABLE_META_PROPERTIES",[...se.INMUTABLE_BASE_PROPERTIES]),l(se,"META_PROPERTIES",[...se.MUTABLE_META_PROPERTIES,...se.INMUTABLE_META_PROPERTIES]),l(se,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),l(se,"INMUTABLE_UPSTREAM_PROPERTIES",["parent","declaration"]),l(se,"UPSTREAM_PROPERTIES",[...se.MUTABLE_UPSTREAM_PROPERTIES,...se.INMUTABLE_UPSTREAM_PROPERTIES]),l(se,"MUTABLE_DOWNSTREAM_PROPERTIES",["inputs","outputs","writesValues","successCalls","errorCalls","error"]),l(se,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),l(se,"DOWNSTREAM_PROPERTIES",[...se.MUTABLE_DOWNSTREAM_PROPERTIES,...se.INMUTABLE_DOWNSTREAM_PROPERTIES]),l(se,"PROPERTIES",[...se.META_PROPERTIES,...se.UPSTREAM_PROPERTIES,...se.DOWNSTREAM_PROPERTIES]);let oi=se;function d6(n){const e=sU(),t=n.toJSON();e.safeParse(t).success;const a=[];if(n.id==="exec-sequentially-argument-map-id"){const s=k({id:`${n.id}--${O.PropertyImplementsNonAbstact}`,message:`Property "${A(n,n.project)}" with id "${n.id}" implements a non-abstract property "${A(n,n.project)}" with id "${n.id}".`,issue:null,severity:f.Error,code:O.PropertyImplementsNonAbstact,entity:n});a.push(s.error)}return X(n.errors,a)}const oe=class oe{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"index");l(this,"name",null);l(this,"description",null);l(this,"declaration",null);l(this,"type",r.InputMap);l(this,"defaultValue",null);l(this,"readsValue",null);l(this,"dynamicArguments",[]);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.index=e.index,this.name=e.name||null,this.description=e.description||null}static fromGenerationTarget(e,t){const i=D(e.parent),a=t.get(i);let s=null;if(e.declaration){const h=D(e.declaration);s=t.get(h)}let o=null;if(e.readsValue){const h=D(e.readsValue);o=t.get(h)}const u={id:e.id,version:1,name:e.name||null,type:r.InputMap,index:(a.inputs||a.dynamicArguments||[]).length,description:e.description||null,declaration:s,readsValue:o,dynamicArguments:[],defaultValue:null,parent:a},p=R(u,t);return p.setParent(a),p.initChildren(),p}static validateGenerationTarget(e,t){var h;let i=JSON.parse(JSON.stringify(e));const a=[],s=Ge(i,{parent:{list:!1,types:[...Ne,r.InputMap]}},t);i=s.modifiedData;const o=t.get(i.parent),u=i.declaration&&(t.get(i.declaration)||t.getBuiltIn(i.declaration)),p=((o==null?void 0:o.inputs)||[]).find(m=>{var T;return i.declaration&&((T=m.declaration)==null?void 0:T.id)===i.declaration});if(i.declaration?u?[r.Property,r.ArgumentDeclaration,r.ValueDescriptor].includes(u.type)?o&&u.type===r.ArgumentDeclaration&&![r.FunctionCall,r.Search,r.InternalCall].includes(o.type)?a.push(new E({id:`${i.id}--${y.InvalidInputMapDeclaration}`,code:y.InvalidInputMapDeclaration,severity:f.Error,message:`Entity of type '${r.InputMap}' with id '${i.id}' has a 'declaration' property pointing to an entity with type '${r.ArgumentDeclaration}' with id '${i.declaration}'.