@elyx-code/project-logic-tree 0.0.5 → 0.0.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -39832,15 +39832,11 @@ function W8(n) {
39832
39832
  }), n.conditionDeclarations = e, e;
39833
39833
  }
39834
39834
  const er = {}, Ki = {};
39835
- async function H8(n) {
39836
- var i, a, s;
39837
- const e = {
39835
+ async function H8(n, e = {}) {
39836
+ const t = {
39838
39837
  ...bV
39839
39838
  };
39840
- return e.id = n.id, ((s = (a = (i = window == null ? void 0 : window.location) == null ? void 0 : i.href) == null ? void 0 : a.includes) == null ? void 0 : s.call(
39841
- a,
39842
- "starting-logic-generation"
39843
- )) ? {
39839
+ return t.id = n.id, e.empty ? {
39844
39840
  data: {
39845
39841
  id: n.id,
39846
39842
  type: r.Project,
@@ -39859,7 +39855,7 @@ async function H8(n) {
39859
39855
  searches: [],
39860
39856
  events: []
39861
39857
  }
39862
- } : { data: e };
39858
+ } : { data: t };
39863
39859
  }
39864
39860
  function Y8(n) {
39865
39861
  const e = new Pr(n);
@@ -359,4 +359,4 @@ Please provide a unique 'name' string.`,severity:f.Error,code:v.NameNotUniqueInS
359
359
  Please provide a unique 'name' string.`,severity:f.Error,code:v.NameNotUniqueInScope,issue:null}))}}return t}function e6(n,e){switch(n.type){case r.CustomEntity:return to(n,e);case r.FunctionDeclaration:return yd(n,e);case r.VariableDeclaration:return hd(n,e);case r.Property:return fd(n,e);case r.ArgumentDeclaration:return md(n,e);case r.ReturnDeclaration:return Td(n,e);default:return[]}}const G=bm();function Qt(n,e,t){const a=`${Ks(n)}-${e}-id`;return t.instances[a]?G.uuid():a}function Ed(n,e){let t="",i=null;if(n.parent){const s=e.get(n.parent);s&&(i=s)}let a="";return i&&(a=`${Ks(A(i,e))}-`),t=`${a}${Ks(A(n,e))}-id`,e.instances[t]?G.uuid():t}function t6(n){const e=Qx(),t=n.toJSON();e.safeParse(t).success;const a=n.implements.flatMap(m=>i6(n,m)),s=n.extends.flatMap(m=>a6(n,m)),o=o6(n),u=s6(n);n.methods.flatMap(m=>m.validate());const p=[...a,...s,...o,...u];return Z(n.errors,p)}function n6(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 r6(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 i6(n,e){const t=[];if(!e.abstract){const m=H({id:n.id+"--"+_.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:_.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 P;return((P=b.implements)==null?void 0:P.id)===m.id});T?s=s.filter(b=>b.id!==T.id):a.push(m)}),a.length&&a.forEach(m=>{const T=H({id:n.id+"--"+_.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:_.MissingPropertyImplementation,entity:n});t.push(T.error)});const o=[];let u=[...n.methods];e.abstractMethods.forEach(m=>{const T=u.find(b=>{var P;return((P=b.implements)==null?void 0:P.id)===m.id});T?u=u.filter(b=>b.id!==T.id):o.push(m)}),o.length&&o.forEach(m=>{const T=H({id:n.id+"--"+_.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:_.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=H({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=H({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 a6(n,e){const t=[],i=[];if(e.abstract){const s=H({id:n.id+"--"+_.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:_.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=H({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=H({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 s6(n){const e=[];if(!n.properties.length){const t=H({id:n.id+"--"+_.NoProperties,message:"No properties implemented",issue:null,severity:f.Warning,code:_.NoProperties,entity:n});e.push(t.error)}return n.properties.forEach(t=>{t.validate()}),e}function o6(n){const e=[];if(n.abstract){if(n.methods.length){const t=H({id:n.id+"--"+_.AbstractEntityWithNonAbstractMethods,message:`Entity "${n.name}" with id "${n.id}" is marked as abstract but has non-abstract methods`,issue:null,severity:f.Error,code:_.AbstractEntityWithNonAbstractMethods,entity:n});e.push(t.error)}if(n.properties.some(t=>!t.abstract)){const t=H({id:n.id+"--"+_.AbstractEntityWithNonAbstractProperties,message:`Entity "${n.name}" with id "${n.id}" is marked as abstract but has non-abstract properties`,issue:null,severity:f.Error,code:_.AbstractEntityWithNonAbstractProperties,entity:n});e.push(t.error),n.properties.forEach(i=>{if(!i.abstract){const a=H({id:n.id+"--"+_.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:_.StaticEntityWithNonStaticProperties,entity:n});e.push(a.error)}})}}else{if(n.abstractMethods.length){const t=H({id:n.id+"--"+_.AbstractPropertyInNonAbstractEntity,message:`Entity "${n.name}" with id "${n.id}" is not marked as abstract but has abstract methods`,issue:null,severity:f.Error,code:_.AbstractPropertyInNonAbstractEntity,entity:n});e.push(t.error)}if(n.properties.some(t=>t.abstract)){const t=H({id:n.id+"--"+_.AbstractMethodInNonAbstractEntity,message:`Entity "${n.name}" with id "${n.id}" is not marked as abstract but has abstract properties`,issue:null,severity:f.Error,code:_.AbstractMethodInNonAbstractEntity,entity:n});e.push(t.error),n.properties.forEach(i=>{if(i.abstract){const a=H({id:n.id+"--"+_.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:_.AbstractMethodInNonAbstractEntity,entity:n});e.push(a.error)}})}}if(n.static&&n.properties.some(t=>!t.static)){const t=H({id:n.id+"--"+_.StaticEntityWithNonStaticProperties,message:`Entity "${n.name}" with id "${n.id}" is marked as static but has non-static properties`,issue:null,severity:f.Error,code:_.StaticEntityWithNonStaticProperties,entity:n});e.push(t.error),n.properties.forEach(i=>{if(!i.static){const a=H({id:n.id+"--"+_.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:_.NonStaticPropertyInStaticEntity,entity:n});e.push(a.error)}})}return e}function l6(n,e){const t=[];if(n.parent)if(n.id===n.parent)t.push(new E({id:`${n.id}--${n.parent}--${y.SelfReference}`,code:y.SelfReference,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", has a reference to itself at 'parent'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,issue:null}));else{const i=e.get(n.parent);i?[r.Project,r.DataType].includes(i.type)||t.push(new E({id:`${n.id}--${n.parent}--${y.InvalidParentReference}`,code:y.InvalidParentReference,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", has a parent reference that isn't pointing to an entity of type 'project' or 'data-type'.`,issue:null})):t.push(new E({id:`${n.id}--${n.parent}--${y.ReferencedEntityNotFound}`,code:y.ReferencedEntityNotFound,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${n.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}return n.implements&&Array.isArray(n.implements)?n.implements.forEach(i=>{if(n.id===i){t.push(new E({id:`${n.id}--${i}--${y.SelfReference}`,code:y.SelfReference,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", has a reference to itself at one of the 'implements' references. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,issue:null}));return}const a=e.get(i);a?[r.CustomEntity,r.BuiltInBaseEntity].includes(a.type)?a.abstract||t.push(new E({id:`${n.id}--${i}--${y.InvalidImplementsReference}`,code:y.InvalidImplementsReference,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", has an 'implements' reference that isn't pointing to an abstract entity.`,issue:null})):t.push(new E({id:`${n.id}--${i}--${y.InvalidImplementsReference}`,code:y.InvalidImplementsReference,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", has an 'implements' reference that isn't pointing to an entity of type 'custom-entity' or 'built-in-base-entity'.`,issue:null})):t.push(new E({id:`${n.id}--${i}--${y.ReferencedEntityNotFound}`,code:y.ReferencedEntityNotFound,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${i}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}):t.push(new E({id:`${n.id}--${v.InvalidObjectStructure}`,code:v.InvalidObjectStructure,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", has an 'implements' property that isn't an array.`,issue:null})),n.extends&&Array.isArray(n.extends)&&n.extends.forEach(i=>{const a=e.get(i);a?[r.CustomEntity,r.BuiltInBaseEntity].includes(a.type)?a.abstract&&t.push(new E({id:`${n.id}--${i}--${y.InvalidExtendsReference}`,code:y.InvalidExtendsReference,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", has an 'extends' reference that isn't pointing to a non-abstract entity. Did you want to use the property 'implements', which holds a list of references to absract entities, instead?`,issue:null})):t.push(new E({id:`${n.id}--${i}--${y.InvalidExtendsReference}`,code:y.InvalidExtendsReference,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", has an 'extends' reference that isn't pointing to an entity of type 'custom-entity' or 'built-in-base-entity'.`,issue:null})):t.push(new E({id:`${n.id}--${i}--${y.ReferencedEntityNotFound}`,code:y.ReferencedEntityNotFound,severity:f.Error,message:`Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${i}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}),t}const ue=class ue{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,"static");l(this,"abstract");l(this,"type",r.CustomEntity);l(this,"properties",[]);l(this,"methods",[]);l(this,"abstractMethods",[]);l(this,"extends",[]);l(this,"implements",[]);l(this,"project");l(this,"errors",[]);l(this,"parent");l(this,"initialized",!1);l(this,"suggestedProperties",[]);l(this,"suggestedMethods",[]);this.initialData=e,this.project=t,this.id=e.id,this.version=e.version,this.name=e.name,this.x=e.x,this.y=e.y,this.static=e.static,this.abstract=e.abstract}static fromGenerationTarget(e,t){let i=t;if(e.parent){const p=D(e.parent);i=t.get(p)}const a=[];e.implements&&e.implements.forEach(p=>{a.push(t.get(p)||t.getBuiltIn(p))});const s=[];e.extends&&e.extends.forEach(p=>{s.push(t.get(p)||t.getBuiltIn(p))});const o={id:e.id,version:1,name:e.name,type:r.CustomEntity,description:e.description,static:e.static,abstract:e.abstract,properties:[],methods:[],abstractMethods:[],extends:s,implements:a,x:0,y:0,parent:i},u=R(o,t);return u.setParent(i),u.initChildren(),u}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[],s=l6(i,t),o=to(i,t);a.push(...s,...o,...De(i));const u=i.parent?t.get(i.parent):null;if(u&&u.type===r.DataType){const p=u;p.entity&&a.push(new E({id:`${e.id}--${y.NewEntityWouldOverriteExisting}`,code:y.NewEntityWouldOverriteExisting,severity:f.Error,message:`The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${p.id}' because it already has an 'entity' child. Data type entities can only have one 'entity' as children.
360
360
  You can inspect the existing 'entity' field with the 'describe_entity' action. Like so:
361
361
  ${Xt({describe_entity:p.entity.id})}
362
- Alternatively you can update the parent data-type entity with 'update' action to remove the existing value of the field.`,issue:null}))}return{errors:a,modifiedData:i}}get extendedProperties(){return S(this.extends.reduce((e,t)=>[...[...t.properties,...t.extendedProperties].filter(a=>!a.abstract),...e],[]))}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 '${this.type}', must be the root project as it is a globally declared entity.`,issue:null})),{errors:t,modifiedData:e}}addSelfToProject(){if(this.parent.type===r.DataType){const e=this.parent;e.entity=this}else this.project.addCustomEntity(this);return this}setParent(e){return this.parent=e,this}removeProperty(e){return this.properties=this.properties.filter(t=>t.id!==e.id),this}addMethod(e){return this.methods.includes(e)||(this.methods.push(e),this.suggestedMethods=this.suggestedMethods.filter(t=>t.name!==e.name)),this}removeMethod(e){return this.methods=this.methods.filter(t=>t.id!==e.id),this}addProperty(e){return this.properties.includes(e)||(this.properties.push(e),this.suggestedProperties=this.suggestedProperties.filter(t=>t.name!==e.name)),this}addSuggestedProperty(e){return this.suggestedProperties.includes(e)||this.suggestedProperties.push(e),this}addSuggestedMethod(e){return this.suggestedMethods.includes(e)||this.suggestedMethods.push(e),this}removeSuggestedProperty(e){return this.suggestedProperties=this.suggestedProperties.filter(t=>t.id!==e.id),this}removeSuggestedMethod(e){return this.suggestedMethods=this.suggestedMethods.filter(t=>t.id!==e.id),this}addAbstractMethod(e){return this.abstractMethods.includes(e)||this.abstractMethods.push(e),this}removeAbstractMethod(e){return this.abstractMethods=this.abstractMethods.filter(t=>t.id!==e.id),this}initChildren(){return this.initialized?this:(this.initialized=!0,this.properties=this.initialData.properties.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.methods=this.initialData.methods.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.abstractMethods=this.initialData.abstractMethods.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.extends=this.initialData.extends.map(e=>R(e,this.project)),this.implements=this.initialData.implements.map(e=>R(e,this.project)),this.addSuggestions(),this)}addSuggestions(){return this.implements.forEach(e=>{n6(this,e).forEach(a=>{const s=a.toJSON();s.id=`_suggestion--parent--${this.id}--${a.id}`;const o=R(s,this.project);o.suggestion=!0,o.setParent(this),o.initChildren(),this.addSuggestedProperty(o)}),r6(this,e).forEach(a=>{const s=`_suggestion--parent--${this.id}--${a.id}`,o=a.implementAsFunctionDeclaration(s),u=R(o,this.project);if(u.suggestion=!0,u.setParent(this),u.initChildren(),u.inputs.forEach(p=>{p.suggestion=!0}),u.returnStatements.length){const p=u.returnStatements[0];p.suggestion=!0,p.outputs.forEach(h=>{h.suggestion=!0})}this.addSuggestedMethod(u)})}),this}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return this.version=e.version||this.version,this.name=e.name||this.name,this.x=e.x||this.x,this.y=e.y||this.y,this.static=e.static||this.static,this.abstract=e.abstract||this.abstract,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.properties.forEach(s=>{const{affected:o,removed:u}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...u)}),this.methods.forEach(s=>{const{affected:o,removed:u}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...u)}),this.abstractMethods.forEach(s=>{const{affected:o,removed:u}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...u)}),this.suggestedProperties.forEach(s=>{const{affected:o,removed:u}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...u)}),this.suggestedMethods.forEach(s=>{const{affected:o,removed:u}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...u)}),{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.properties.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.methods.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.abstractMethods.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.suggestedProperties.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.suggestedMethods.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),{affected:S(t),self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.extends.flatMap(i=>i.toFlat(e)),...this.implements.flatMap(i=>i.toFlat(e)),...this.properties.flatMap(i=>i.toFlat(e)),...this.methods.flatMap(i=>i.toFlat(e)),...this.abstractMethods.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.extends.flatMap(i=>i.toFlatIds(e)),...this.implements.flatMap(i=>i.toFlatIds(e)),...this.properties.flatMap(i=>i.toFlatIds(e)),...this.methods.flatMap(i=>i.toFlatIds(e)),...this.abstractMethods.flatMap(i=>i.toFlatIds(e))])}toJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(e=>e.toJSON()),methods:this.methods.map(e=>e.toJSON()),abstractMethods:this.abstractMethods.map(e=>e.toJSON()),implements:this.implements.map(e=>e.toJSON()),extends:this.extends.map(e=>e.toJSON()),parent:this.parent.toReference()}}toReference(){return{id:this.id+"--"+G.uuid()+"--ref",type:r.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,name:this.name,description:this.description,type:this.type,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(e=>e.toReference()),methods:this.methods.map(e=>e.toReference()),abstractMethods:this.abstractMethods.map(e=>e.toReference()),implements:this.implements.map(e=>e.toReference()),extends:this.extends.map(e=>e.toReference()),parent:this.parent.toReference()}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(i=>i.toFlatJSON(e)),...this.methods.flatMap(i=>i.toFlatJSON(e)),...this.abstractMethods.flatMap(i=>i.toFlatJSON(e)),...this.implements.flatMap(i=>i.toFlatJSON(e)),...this.extends.flatMap(i=>i.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,static:this.static,abstract:this.abstract,extends:this.extends.map(t=>t.id),implements:this.implements.map(t=>t.id),parent:e}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(i=>i.toFlatGenerationTarget(e)),...this.methods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.implements.filter(i=>i.type===r.CustomEntity).flatMap(i=>i.toFlatGenerationTarget(e)),...this.implements.filter(i=>i.type===r.CustomEntity).flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.properties.forEach(e=>e.clearErrors()),this.methods.forEach(e=>e.clearErrors()),this.abstractMethods.forEach(e=>e.clearErrors()),this}validate(){return this.errors=t6(this),{success:!0,error:null,data:null}}getErrors(){return[...this.errors,...this.properties.flatMap(t=>t.getErrors()),...this.methods.flatMap(t=>t.getErrors()),...this.abstractMethods.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(){return new ue(this.toJSON(),this.project)}getFunctionDeclaration(e){return this.methods.find(t=>t.id===e)}implement(e,t){return Js(this,e,t)}};l(ue,"MUTABLE_BASE_PROPERTIES",["name","description","static","abstract"]),l(ue,"INMUTABLE_BASE_PROPERTIES",["id","version","type"]),l(ue,"BASE_PROPERTIES",[...ue.MUTABLE_BASE_PROPERTIES,...ue.INMUTABLE_BASE_PROPERTIES]),l(ue,"MUTABLE_META_PROPERTIES",[...ue.MUTABLE_BASE_PROPERTIES,"x","y"]),l(ue,"INMUTABLE_META_PROPERTIES",[...ue.INMUTABLE_BASE_PROPERTIES]),l(ue,"META_PROPERTIES",[...ue.MUTABLE_META_PROPERTIES,...ue.INMUTABLE_META_PROPERTIES]),l(ue,"MUTABLE_UPSTREAM_PROPERTIES",["extends","implements"]),l(ue,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),l(ue,"UPSTREAM_PROPERTIES",[...ue.MUTABLE_UPSTREAM_PROPERTIES,...ue.INMUTABLE_UPSTREAM_PROPERTIES]),l(ue,"MUTABLE_DOWNSTREAM_PROPERTIES",["properties","methods","abstractMethods"]),l(ue,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),l(ue,"DOWNSTREAM_PROPERTIES",[...ue.MUTABLE_DOWNSTREAM_PROPERTIES,...ue.INMUTABLE_DOWNSTREAM_PROPERTIES]),l(ue,"PROPERTIES",[...ue.META_PROPERTIES,...ue.UPSTREAM_PROPERTIES,...ue.DOWNSTREAM_PROPERTIES]);let br=ue;function c6(n){const e=kx(),t=n.toJSON();e.safeParse(t).success;const a=[];return Z(n.errors,a)}class $t{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"name");l(this,"description",null);l(this,"type",r.PrimitiveEntity);l(this,"static");l(this,"abstract");l(this,"properties",[]);l(this,"methods",[]);l(this,"abstractMethods",[]);l(this,"extends",[]);l(this,"errors",[]);l(this,"project");this.initialData=e,this.project=t,this.id=e.id,this.version=e.version,this.name=e.name,this.static=e.static,this.abstract=e.abstract,this.properties=this.initialData.properties.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.methods=this.initialData.methods.map(i=>{const a=R(i,this.project);return a.parent=this,a}),this.abstractMethods=this.initialData.abstractMethods.map(i=>{const a=R(i,this.project);return a.parent=this,a})}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}async load(){return this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){return{affected:[],removed:[]}}restore({seenEntities:e}={seenEntities:new Set}){return{affected:[],self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.properties.flatMap(i=>i.toFlat(e)),...this.methods.flatMap(i=>i.toFlat(e)),...this.abstractMethods.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.properties.flatMap(i=>i.toFlatIds(e)),...this.methods.flatMap(i=>i.toFlatIds(e)),...this.abstractMethods.flatMap(i=>i.toFlatIds(e))])}toJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,properties:this.properties.map(e=>e.toJSON()),methods:this.methods.map(e=>e.toJSON()),abstractMethods:this.abstractMethods.map(e=>e.toJSON()),extends:this.extends.map(e=>e.toJSON())}}toReference(){return{id:this.id+"--"+G.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,abstract:this.abstract,static:this.static,properties:this.properties.map(e=>e.toReference()),methods:this.methods.map(e=>e.toReference()),abstractMethods:this.abstractMethods.map(e=>e.toReference()),extends:this.extends.map(e=>e.toReference())}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(i=>i.toFlatJSON(e)),...this.methods.flatMap(i=>i.toFlatJSON(e)),...this.abstractMethods.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,extends:this.extends.map(e=>e.id)}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(i=>i.toFlatGenerationTarget(e)),...this.methods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.properties.forEach(e=>e.clearErrors()),this.methods.forEach(e=>e.clearErrors()),this.abstractMethods.forEach(e=>e.clearErrors()),this}validate(){const e=c6(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.properties.flatMap(t=>t.getErrors()),...this.methods.flatMap(t=>t.getErrors()),...this.abstractMethods.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(){return new $t(this.toJSON(),this.project)}}function d6(n){const e=Fx(),t=n.toJSON();e.safeParse(t).success;const a=[];return Z(n.errors,a)}class Ut{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"name");l(this,"description",null);l(this,"type",r.BuiltInBaseEntity);l(this,"abstract",!1);l(this,"static");l(this,"properties",[]);l(this,"methods",[]);l(this,"abstractMethods",[]);l(this,"extends",[]);l(this,"interactive",!1);l(this,"errors",[]);l(this,"project");this.initialData=this.initialData||e,this.project=this.project||t,this.id=this.id||e.id,this.version=this.version||e.version,this.name=this.name||e.name,this.static=this.static||e.static,this.interactive=this.interactive||e.interactive,this.abstract=e.abstract,this.properties=this.initialData.properties.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.methods=this.initialData.methods.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.abstractMethods=this.initialData.abstractMethods.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.extends=this.initialData.extends.map(i=>R(i,this.project))}get extendedProperties(){return S(this.extends.reduce((e,t)=>{if(t instanceof Ut){const i=[...t.properties,...t.extendedProperties].filter(a=>!a.abstract);e.push(...i)}return e},[]))}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}async load(){return this}remove(e={ignoreUpstream:!1,seenEntities:new Set}){return{affected:[],removed:[]}}restore({seenEntities:e}={seenEntities:new Set}){return{affected:[],self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.properties.flatMap(i=>i.toFlat(e)),...this.methods.flatMap(i=>i.toFlat(e)),...this.abstractMethods.flatMap(i=>i.toFlat(e)),...this.extends.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.properties.flatMap(i=>i.toFlatIds(e)),...this.methods.flatMap(i=>i.toFlatIds(e)),...this.abstractMethods.flatMap(i=>i.toFlatIds(e)),...this.extends.flatMap(i=>i.toFlatIds(e))])}toJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,interactive:this.interactive,properties:this.properties.map(e=>e.toJSON()),methods:this.methods.map(e=>e.toJSON()),abstractMethods:this.abstractMethods.map(e=>e.toJSON()),extends:this.extends.map(e=>e.toJSON())}}toReference(){return{id:this.id+"--"+G.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,abstract:this.abstract,static:this.static,interactive:this.interactive,properties:this.properties.map(e=>e.toReference()),methods:this.methods.map(e=>e.toReference()),abstractMethods:this.abstractMethods.map(e=>e.toReference()),extends:this.extends.map(e=>e.toReference())}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(i=>i.toFlatJSON(e)),...this.methods.flatMap(i=>i.toFlatJSON(e)),...this.abstractMethods.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,interactive:this.interactive,extends:this.extends.map(e=>e.id)}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(i=>i.toFlatGenerationTarget(e)),...this.methods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.properties.forEach(e=>e.clearErrors()),this.methods.forEach(e=>e.clearErrors()),this.abstractMethods.forEach(e=>e.clearErrors()),this}validate(){const e=d6(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.properties.flatMap(t=>t.getErrors()),...this.methods.flatMap(t=>t.getErrors()),...this.abstractMethods.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(){return new Ut(this.toJSON(),this.project)}implement(e,t){return Js(this,e,t)}}function pa(n,e){if(!n)throw new Error("Entity is null");const t=e.findSubscribedInstance(n);switch(n.type){case r.PrimitiveValue:return t||new si(n,e);case r.CustomEntity:return t||new br(n,e);case r.PrimitiveEntity:return t||new $t(n,e);case r.FunctionDeclaration:return t||new ir(n,e);case r.GlobalEvent:return t||new ii(n,e);case r.DataType:return t||new ri(n,e);case r.Property:return t||new rr(n,e);case r.FunctionCall:return t||new fr(n,e);case r.Condition:return t||new or(n,e);case r.Operation:return t||new ar(n,e);case r.VariableDeclaration:return t||new lr(n,e);case r.VariableInstance:return t||new cr(n,e);case r.OutputMap:return t||new fn(n,e);case r.ReturnDeclaration:return t||new Ct(n,e);case r.ArgumentDeclaration:return t||new pr(n,e);case r.InputMap:return t||new hn(n,e);case r.Project:return t||new gr(n);case r.InstalledProject:return t||new ur(n,e);case r.ActionDescriptor:return t||new _e(n,e);case r.ReturnStatement:return t||new yr(n,e);case r.Loop:return t||new sr(n,e);case r.Search:return t||new dr(n,e);case r.ValueDescriptor:return t||new hr(n,e);case r.BuiltInBaseEntity:return t||new Ut(n,e);case r.InternalCall:return t||new ai(n,e);case r.ContinueStatement:return t||new ht(n,e);case r.BreakStatement:return t||new oi(n,e);default:throw new Error("Invalid entity type: "+n.type)}}function R(n,e){if(!n)throw new Error("Entity is null");const t=pa(n,e);return t.subscribe(),t}function u6(n,e){if(!n)throw new Error("Entity is null");switch(n.type){case r.PrimitiveValue:return si.fromGenerationTarget(n,e);case r.CustomEntity:return br.fromGenerationTarget(n,e);case r.FunctionDeclaration:return ir.fromGenerationTarget(n,e);case r.GlobalEvent:return ii.fromGenerationTarget(n,e);case r.DataType:return ri.fromGenerationTarget(n,e);case r.Property:return rr.fromGenerationTarget(n,e);case r.FunctionCall:return fr.fromGenerationTarget(n,e);case r.Condition:return or.fromGenerationTarget(n,e);case r.Operation:return ar.fromGenerationTarget(n,e);case r.VariableDeclaration:return lr.fromGenerationTarget(n,e);case r.VariableInstance:return cr.fromGenerationTarget(n,e);case r.OutputMap:return fn.fromGenerationTarget(n,e);case r.ReturnDeclaration:return Ct.fromGenerationTarget(n,e);case r.ArgumentDeclaration:return pr.fromGenerationTarget(n,e);case r.InputMap:return hn.fromGenerationTarget(n,e);case r.InstalledProject:return ur.fromGenerationTarget(n,e);case r.ReturnStatement:return yr.fromGenerationTarget(n,e);case r.Loop:return sr.fromGenerationTarget(n,e);case r.Search:return dr.fromGenerationTarget(n,e);case r.ActionDescriptor:return _e.fromGenerationTarget(n,e);case r.ValueDescriptor:return hr.fromGenerationTarget(n,e);case r.InternalCall:return ai.fromGenerationTarget(n,e);case r.ContinueStatement:return ht.fromGenerationTarget(n,e);case r.BreakStatement:return oi.fromGenerationTarget(n,e);default:throw new Error("Invalid entity type: "+n.type)}}const pe=class pe{constructor(e){l(this,"initialData");l(this,"id");l(this,"version");l(this,"type",r.Project);l(this,"name",null);l(this,"description",null);l(this,"x");l(this,"y");l(this,"entities",[]);l(this,"projects",[]);l(this,"functions",[]);l(this,"events",[]);l(this,"variableDeclarations",[]);l(this,"variableInstances",[]);l(this,"conditions",[]);l(this,"operations",[]);l(this,"functionCalls",[]);l(this,"loops",[]);l(this,"searches",[]);l(this,"primitives",[]);l(this,"builtInBaseEntities",[]);l(this,"operationDeclarations",[]);l(this,"globalEventActionDescriptors",[]);l(this,"loopDeclarations",[]);l(this,"conditionDeclarations",[]);l(this,"valueDescriptors",[]);l(this,"dataTypes",[]);l(this,"project");l(this,"instances",{});l(this,"builtInInstances",{});l(this,"errors",[]);l(this,"references",[]);this.initialData=e,this.id=e.id,this.version=e.version,this.name=e.name,this.description=e.description,this.x=0,this.y=0}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[];return a.push(...De(i)),{errors:a,modifiedData:i}}async inject(...e){return await Promise.all(e.map(t=>new Promise(async i=>{await t.init(this),i(null)}))),this}validateGeneratedUpdate(e){return{errors:[],modifiedData:e}}addSelfToProject(){return this}get instancesList(){return Object.values(this.instances)}isOperationDeclaration(e){return this.operationDeclarations.includes(e)}isGlobalEventActionDescriptor(e){return this.globalEventActionDescriptors.includes(e)}isLoopDeclaration(e){return this.loopDeclarations.includes(e)}isConditionDeclaration(e){return this.conditionDeclarations.includes(e)}initChildren(){return this.entities=this.initialData.entities.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.projects=this.initialData.projects.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.functions=this.initialData.functions.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.events=this.initialData.events.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.variableDeclarations=this.initialData.variableDeclarations.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.variableInstances=this.initialData.variableInstances.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.conditions=this.initialData.conditions.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.operations=this.initialData.operations.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.functionCalls=this.initialData.functionCalls.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.loops=this.initialData.loops.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.searches=this.initialData.searches.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.attachOrphanReferences(),this.validate(),this}subscribeInstance(e){return(!this.instances[e.id]||this.instances[e.id]!==e)&&(this.instances[e.id]=e),this}subscribeBuiltInInstance(e){return(!this.builtInInstances[e.id]||this.builtInInstances[e.id]!==e)&&(this.builtInInstances[e.id]=e),this}subscribe(){return this}unsubscribe(){return this}unsubscribeInstance(e){return delete this.instances[e.id],this}findSubscribedInstance(e){return this.instances[e.id]||null}findSubscribedBuiltInInstance(e){return this.builtInInstances[e.id]||null}get(e){return this.instances[e]||this.builtInInstances[e]||null}getManaged(e){return this.instances[e]||null}getBuiltIn(e){return this.builtInInstances[e]||null}findSubscribedInstanceFromReference(e){return this.instances[e.entityId]||null}findSubscribedBuiltInInstanceFromReference(e){return this.builtInInstances[e.entityId]||null}sync(e){return this.version=e.version||this.version,this.name=e.name||this.name,this.description=e.description||this.description,this.x=e.x||this.x,this.y=e.y||this.y,this}async load(){return this}async create(){return this}async update(e){return this}async delete(){return this}remove({ignoreUpstream:e}={ignoreUpstream:!1}){return{affected:[],removed:[]}}restore({seenEntities:e}={seenEntities:new Set}){return{affected:[],self:this}}getAllBuiltInIds(){const e=new Set;return[...this.primitives.flatMap(t=>t.toFlatIds(e)),...this.builtInBaseEntities.flatMap(t=>t.toFlatIds(e)),...this.operationDeclarations.flatMap(t=>t.toFlatIds(e)),...this.globalEventActionDescriptors.flatMap(t=>t.toFlatIds(e)),...this.loopDeclarations.flatMap(t=>t.toFlatIds(e)),...this.conditionDeclarations.flatMap(t=>t.toFlatIds(e)),...this.valueDescriptors.flatMap(t=>t.toFlatIds(e)),...this.dataTypes.flatMap(t=>t.toFlatIds(e))]}getAllBuiltIn(){const e=new Set;return[...this.primitives.flatMap(t=>t.toFlat(e)),...this.builtInBaseEntities.flatMap(t=>t.toFlat(e)),...this.operationDeclarations.flatMap(t=>t.toFlat(e)),...this.globalEventActionDescriptors.flatMap(t=>t.toFlat(e)),...this.loopDeclarations.flatMap(t=>t.toFlat(e)),...this.conditionDeclarations.flatMap(t=>t.toFlat(e)),...this.valueDescriptors.flatMap(t=>t.toFlat(e)),...this.dataTypes.flatMap(t=>t.toFlat(e))]}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[...this.entities.flatMap(i=>i.toFlat(e)),...this.functions.flatMap(i=>i.toFlat(e)),...this.events.flatMap(i=>i.toFlat(e)),...this.projects.flatMap(i=>i.toFlat(e)),...this.variableDeclarations.flatMap(i=>i.toFlat(e)),...this.variableInstances.flatMap(i=>i.toFlat(e)),...this.conditions.flatMap(i=>i.toFlat(e)),...this.operations.flatMap(i=>i.toFlat(e)),...this.functionCalls.flatMap(i=>i.toFlat(e)),...this.loops.flatMap(i=>i.toFlat(e)),...this.searches.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),Array.from(e))}toJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,entities:this.entities.map(e=>e.toJSON()),functions:this.functions.map(e=>e.toJSON()),events:this.events.map(e=>e.toJSON()),projects:this.projects.map(e=>e.toJSON()),variableDeclarations:this.variableDeclarations.map(e=>e.toJSON()),variableInstances:this.variableInstances.map(e=>e.toJSON()),conditions:this.conditions.map(e=>e.toJSON()),operations:this.operations.map(e=>e.toJSON()),functionCalls:this.functionCalls.map(e=>e.toJSON()),loops:this.loops.map(e=>e.toJSON()),searches:this.searches.map(e=>e.toJSON())}}toReference(){return{id:this.id+"--"+G.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,entities:this.entities.map(e=>e.toReference()),functions:this.functions.map(e=>e.toReference()),events:this.events.map(e=>e.toReference()),projects:this.projects.map(e=>e.toReference()),variableDeclarations:this.variableDeclarations.map(e=>e.toReference()),variableInstances:this.variableInstances.map(e=>e.toReference()),conditions:this.conditions.map(e=>e.toReference()),operations:this.operations.map(e=>e.toReference()),functionCalls:this.functionCalls.map(e=>e.toReference()),loops:this.loops.map(e=>e.toReference()),searches:this.searches.map(e=>e.toReference())}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[...this.entities.flatMap(i=>i.toFlatJSON(e)),...this.functions.flatMap(i=>i.toFlatJSON(e)),...this.events.flatMap(i=>i.toFlatJSON(e)),...this.projects.flatMap(i=>i.toFlatJSON(e)),...this.variableDeclarations.flatMap(i=>i.toFlatJSON(e)),...this.variableInstances.flatMap(i=>i.toFlatJSON(e)),...this.conditions.flatMap(i=>i.toFlatJSON(e)),...this.operations.flatMap(i=>i.toFlatJSON(e)),...this.functionCalls.flatMap(i=>i.toFlatJSON(e)),...this.loops.flatMap(i=>i.toFlatJSON(e)),...this.searches.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[...this.entities.flatMap(i=>i.toFlatGenerationTarget(e)),...this.functions.flatMap(i=>i.toFlatGenerationTarget(e)),...this.events.flatMap(i=>i.toFlatGenerationTarget(e)),...this.projects.flatMap(i=>i.toFlatGenerationTarget(e)),...this.variableDeclarations.flatMap(i=>i.toFlatGenerationTarget(e)),...this.variableInstances.flatMap(i=>i.toFlatGenerationTarget(e)),...this.conditions.flatMap(i=>i.toFlatGenerationTarget(e)),...this.operations.flatMap(i=>i.toFlatGenerationTarget(e)),...this.functionCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.loops.flatMap(i=>i.toFlatGenerationTarget(e)),...this.searches.flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.entities.forEach(e=>e.clearErrors()),this.projects.forEach(e=>e.clearErrors()),this.functions.forEach(e=>e.clearErrors()),this.events.forEach(e=>e.clearErrors()),this.variableDeclarations.forEach(e=>e.clearErrors()),this.variableInstances.forEach(e=>e.clearErrors()),this.conditions.forEach(e=>e.clearErrors()),this.operations.forEach(e=>e.clearErrors()),this.functionCalls.forEach(e=>e.clearErrors()),this.loops.forEach(e=>e.clearErrors()),this.searches.forEach(e=>e.clearErrors()),this}validate(){const e=DU(),t=this.toJSON();return e.safeParse(t),this.validateChildren(),{success:!0,error:null,data:t}}validateChildren(){this.entities.forEach(e=>e.validate()),this.projects.forEach(e=>e.validate()),this.functions.forEach(e=>e.validate()),this.events.forEach(e=>e.validate()),this.variableDeclarations.forEach(e=>e.validate()),this.variableInstances.forEach(e=>e.validate()),this.conditions.forEach(e=>e.validate()),this.operations.forEach(e=>e.validate()),this.functionCalls.forEach(e=>e.validate()),this.loops.forEach(e=>e.validate()),this.searches.forEach(e=>e.validate())}getErrors(){return[...this.errors,...this.entities.flatMap(t=>t.getErrors()),...this.projects.flatMap(t=>t.getErrors()),...this.functions.flatMap(t=>t.getErrors()),...this.events.flatMap(t=>t.getErrors()),...this.variableDeclarations.flatMap(t=>t.getErrors()),...this.variableInstances.flatMap(t=>t.getErrors()),...this.conditions.flatMap(t=>t.getErrors()),...this.operations.flatMap(t=>t.getErrors()),...this.functionCalls.flatMap(t=>t.getErrors()),...this.loops.flatMap(t=>t.getErrors()),...this.searches.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(){return new pe(this.toJSON())}getCustomEntity(e){return this.entities.find(t=>t.id===e)||null}addCustomEntityFromTransfer(e){const t=R(e,this);return this.addCustomEntity(t),t}addCustomEntity(e){return this.entities.includes(e)||this.entities.push(e),e}addFunctionDeclarationFromTransfer(e){const t=R(e,this);return this.addFunctionDeclaration(t),t}addFunctionDeclaration(e){return this.functions.includes(e)||this.functions.push(e),e}addFunctionCallFromTransfer(e){const t=R(e,this);return this.addFunctionCall(t),t}addFunctionCall(e){return this.functionCalls.includes(e)||this.functionCalls.push(e),e}addVariableDeclarationFromTransfer(e){const t=R(e,this);return this.addVariableDeclaration(t),t}addVariableDeclaration(e){return this.variableDeclarations.includes(e)||this.variableDeclarations.push(e),e}addVariableInstanceFromTransfer(e){const t=R(e,this);return this.addVariableInstance(t),t}addVariableInstance(e){return this.variableInstances.includes(e)||this.variableInstances.push(e),e}addInstalledProjectFromTransfer(e){const t=R(e,this);return this.addInstalledProject(t),this}addInstalledProject(e){return this.projects.includes(e)||this.projects.push(e),this}addGlobalEventFromTransfer(e){const t=R(e,this);return this.addGlobalEvent(t),this}addGlobalEvent(e){return this.events.includes(e)||this.events.push(e),this}addConditionFromTransfer(e){const t=R(e,this);return this.addCondition(t),this}addCondition(e){return this.conditions.includes(e)||this.conditions.push(e),this}addOperationFromTransfer(e){const t=R(e,this);return this.addOperation(t),this}addOperation(e){return this.operations.includes(e)||this.operations.push(e),this}addLoopFromTransfer(e){const t=R(e,this);return this.addLoop(t),this}addLoop(e){return this.loops.includes(e)||this.loops.push(e),this}addSearchFromTransfer(e){const t=R(e,this);return this.addSearch(t),this}addSearch(e){return this.searches.includes(e)||this.searches.push(e),this}removeCustomEntity(e){const t=this.entities.findIndex(i=>i.id===e.id);if(t>-1){const i=this.entities[t];return this.entities.splice(t,1),i}return null}removeFunctionDeclaration(e){const t=this.functions.findIndex(i=>i.id===e.id);if(t>-1){const i=this.functions[t];return this.functions.splice(t,1),i}return null}removeExternalProject(e){const t=this.projects.findIndex(i=>i.id===e.id);if(t>-1){const i=this.projects[t];return this.projects.splice(t,1),i}return null}removeGlobalEvent(e){const t=this.events.findIndex(i=>i.id===e.id);if(t>-1){const i=this.events[t];return this.events.splice(t,1),i}return null}removeTopLevelVariableDeclaration(e){if(e.type!==r.VariableDeclaration)return null;const t=this.variableDeclarations.findIndex(i=>i.id===e.id);if(t>-1){const i=this.variableDeclarations[t];return this.variableDeclarations.splice(t,1),i}return null}getEntryPoints(){return[...this.functions,...this.events,...this.entities.flatMap(t=>t.methods)]}getFunctionDeclaration(e){return this.functions.find(t=>t.id===e)||null}getConditions(){return[...this.conditions,...this.getEntryPoints().reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.Condition)]},[]),...this.functionCalls.reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.Condition)]},[]),...this.operations.reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.Condition)]},[]),...this.loops.reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.Condition)]},[]),...this.searches.reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.Condition)]},[])]}getOperations(){return[...this.operations,...this.getEntryPoints().reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.Operation)]},[]),...this.functionCalls.reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.Operation)]},[]),...this.conditions.reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.Operation)]},[]),...this.loops.reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.Operation)]},[]),...this.searches.reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.Operation)]},[])]}getFunctionCalls(){return[...this.functionCalls,...this.getEntryPoints().reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.FunctionCall)]},[]),...this.conditions.reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.FunctionCall)]},[]),...this.operations.reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.FunctionCall)]},[]),...this.loops.reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.FunctionCall)]},[]),...this.searches.reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.FunctionCall)]},[])]}getVariables(){return[...this.variableDeclarations,...this.getEntryPoints().reduce((t,i)=>{const a=z(i);return[...t,...a]},[]),...this.functionCalls.reduce((t,i)=>{const a=z(i);return[...t,...a]},[]),...this.conditions.reduce((t,i)=>{const a=z(i);return[...t,...a]},[]),...this.operations.reduce((t,i)=>{const a=z(i);return[...t,...a]},[]),...this.loops.reduce((t,i)=>{const a=z(i);return[...t,...a]},[]),...this.searches.reduce((t,i)=>{const a=z(i);return[...t,...a]},[])]}getVariableInstances(){return[...this.variableInstances,...this.getEntryPoints().reduce((t,i)=>{const s=z(i).filter(o=>o.type===r.VariableInstance);return[...t,...s]},[]),...this.functionCalls.reduce((t,i)=>{const s=z(i).filter(o=>o.type===r.VariableInstance);return[...t,...s]},[]),...this.conditions.reduce((t,i)=>{const s=z(i).filter(o=>o.type===r.VariableInstance);return[...t,...s]},[]),...this.operations.reduce((t,i)=>{const s=z(i).filter(o=>o.type===r.VariableInstance);return[...t,...s]},[]),...this.loops.reduce((t,i)=>{const s=z(i).filter(o=>o.type===r.VariableInstance);return[...t,...s]},[]),...this.searches.reduce((t,i)=>{const s=z(i).filter(o=>o.type===r.VariableInstance);return[...t,...s]},[])]}getVariableDeclarations(){return S([...this.variableDeclarations,...this.getEntryPoints().reduce((t,i)=>{const s=z(i).filter(o=>o.type===r.VariableDeclaration);return[...t,...s]},[]),...this.functionCalls.reduce((t,i)=>{const s=z(i).filter(o=>o.type===r.VariableDeclaration);return[...t,...s]},[]),...this.conditions.reduce((t,i)=>{const s=z(i).filter(o=>o.type===r.VariableDeclaration);return[...t,...s]},[]),...this.operations.reduce((t,i)=>{const s=z(i).filter(o=>o.type===r.VariableDeclaration);return[...t,...s]},[]),...this.loops.reduce((t,i)=>{const s=z(i).filter(o=>o.type===r.VariableDeclaration);return[...t,...s]},[]),...this.searches.reduce((t,i)=>{const s=z(i).filter(o=>o.type===r.VariableDeclaration);return[...t,...s]},[])])}attachOrphanReferences(){const e=this.getVariableInstances(),t=this.getVariableDeclarations();return e.forEach(i=>{if(!i.declaration){const a=i.initialData,s=a.declaration.entityId||a.declaration.id,o=t.find(u=>u.id===s);o&&i.setDeclaration(o)}}),this}getBuiltInPersistedEntity(){return this.builtInBaseEntities.find(e=>e.name===w.PERSISTED_ENTITY)||null}};l(pe,"MUTABLE_BASE_PROPERTIES",["name","description"]),l(pe,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),l(pe,"BASE_PROPERTIES",[...pe.MUTABLE_BASE_PROPERTIES,...pe.INMUTABLE_BASE_PROPERTIES]),l(pe,"MUTABLE_META_PROPERTIES",[...pe.MUTABLE_BASE_PROPERTIES,"x","y"]),l(pe,"INMUTABLE_META_PROPERTIES",[...pe.INMUTABLE_BASE_PROPERTIES]),l(pe,"META_PROPERTIES",[...pe.MUTABLE_META_PROPERTIES,...pe.INMUTABLE_META_PROPERTIES]),l(pe,"MUTABLE_UPSTREAM_PROPERTIES",[]),l(pe,"INMUTABLE_UPSTREAM_PROPERTIES",["primitives","builtInBaseEntities","operationDeclarations","globalEventActionDescriptors","loopDeclarations","builtInInstances"]),l(pe,"UPSTREAM_PROPERTIES",[...pe.MUTABLE_UPSTREAM_PROPERTIES,...pe.INMUTABLE_UPSTREAM_PROPERTIES]),l(pe,"MUTABLE_DOWNSTREAM_PROPERTIES",["entities","projects","functions","events","variableDeclarations","variableInstances","conditions","operations","functionCalls","loops","searches"]),l(pe,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),l(pe,"DOWNSTREAM_PROPERTIES",[...pe.MUTABLE_DOWNSTREAM_PROPERTIES,...pe.INMUTABLE_DOWNSTREAM_PROPERTIES]),l(pe,"PROPERTIES",[...pe.META_PROPERTIES,...pe.UPSTREAM_PROPERTIES,...pe.DOWNSTREAM_PROPERTIES]);let gr=pe;class Dv extends _e{constructor(t){super(Vt,t);l(this,"id",Pe.Parallel);l(this,"name",Pe.Parallel);l(this,"description","Execute a list of actions one after the other");l(this,"version",1);l(this,"autoexecutable",!0);l(this,"initialData",Vt);l(this,"type",r.ActionDescriptor);l(this,"fixedArguments",[]);l(this,"fixedReturns",[]);l(this,"error",null);l(this,"dynamicArgumentTypes",null);l(this,"dynamicReturnTypes",null);l(this,"project");l(this,"implementation",async()=>{});this.project=t,this.fixedArguments=Vt.fixedArguments.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.fixedReturns=Vt.fixedReturns.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.error=Vt.error?R(Vt.error,this.project):null}}class Av extends _e{constructor(t){super(lt,t);l(this,"id",lt.id);l(this,"name",lt.name);l(this,"description",lt.description);l(this,"version",lt.version);l(this,"autoexecutable",!1);l(this,"initialData",lt);l(this,"type",r.ActionDescriptor);l(this,"fixedArguments",[]);l(this,"fixedReturns",[]);l(this,"error",null);l(this,"dynamicArgumentTypes",null);l(this,"dynamicReturnTypes",null);l(this,"project");l(this,"implementation",async(t=[0])=>{const i=t[0];return[new Promise(s=>{setTimeout(()=>{s()},i)})]});this.project=t,this.fixedArguments=lt.fixedArguments.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.fixedReturns=lt.fixedReturns.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.error=lt.error?R(lt.error,this.project):null}}class Sv extends _e{constructor(t){super(tn,t);l(this,"id",Pe.Sequential);l(this,"name",Pe.Sequential);l(this,"description","Execute a list of actions one after the other");l(this,"version",1);l(this,"autoexecutable",!0);l(this,"initialData",tn);l(this,"type",r.ActionDescriptor);l(this,"fixedArguments",[]);l(this,"fixedReturns",[]);l(this,"error",null);l(this,"dynamicArgumentTypes",null);l(this,"dynamicReturnTypes",null);l(this,"project");l(this,"implementation",async(t=[[]])=>[[]]);this.project=t,this.fixedArguments=tn.fixedArguments.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.fixedReturns=tn.fixedReturns.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.error=tn.error?R(tn.error,this.project):null}}function p6(n){const e=[new Sv(n),new Dv(n),new Av(n),new _e(yi,n),new _e(Ar,n),new _e(Fn,n),new _e(Ta,n),new _e(po,n),new _e(fo,n),new _e(ho,n),new _e(ha,n),new _e(ui,n)];return e.forEach(t=>{t.initChildren(),n.subscribeBuiltInInstance(t)}),n.operationDeclarations=e,e}class Ov extends Ut{constructor(t){super(we,t);l(this,"initialData");l(this,"id",w.PERSISTED_ENTITY);l(this,"version",1);l(this,"name",w.PERSISTED_ENTITY);l(this,"description",we.description);l(this,"type",r.BuiltInBaseEntity);l(this,"abstract",we.abstract);l(this,"static",we.static);l(this,"properties",[]);l(this,"methods",[]);l(this,"abstractMethods",[]);l(this,"extends",[]);l(this,"errors",[]);l(this,"project");this.initialData=we,this.project=t,this.id=we.id,this.version=we.version,this.name=we.name,this.static=we.static,this.abstract=we.abstract,this.properties=this.initialData.properties.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.methods=this.initialData.methods.map(i=>{const a=R(i,this.project);return a.parent=this,a}),this.abstractMethods=this.initialData.abstractMethods.map(i=>{const a=R(i,this.project);return a.parent=this,a}),this.extends=this.initialData.extends.map(i=>R(i,this.project))}}function y6(n){const e=[new Ov(n),new Ut(Da,n),new Ut(Rn,n),new Ut(Mo,n),new Ut(Pa,n)];return e.forEach(t=>{n.subscribeBuiltInInstance(t)}),n.builtInBaseEntities=e,e}function h6(n){const e=[new $t(F,n),new $t(Ln,n),new $t(Be,n),new $t(Xe,n),new $t(En,n),new $t(Dr,n),new $t(ya,n),new $t(oo,n)];return e.forEach(t=>{n.subscribeBuiltInInstance(t)}),n.primitives=e,e}function f6(n){const e=[new _e(Ba,n)];return e.forEach(t=>{t.initChildren(),n.subscribeBuiltInInstance(t)}),n.globalEventActionDescriptors=e,e}function m6(n){const e=[new _e(xn,n),new _e(Ao,n)];return e.forEach(t=>{t.initChildren(),n.subscribeBuiltInInstance(t)}),n.loopDeclarations=e,e}function T6(n){const e=[new hr(Vo,n)];return e.forEach(t=>{t.initChildren(),n.subscribeBuiltInInstance(t)}),n.valueDescriptors=e,e}function E6(n){const e=[new _e(Un,n),new _e(Or,n)];return e.forEach(t=>{t.initChildren()}),n.conditionDeclarations=e,e}const ci={},no={};async function R6(n){var i,a,s;const e={...VR};return e.id=n.id,((s=(a=(i=window==null?void 0:window.location)==null?void 0:i.href)==null?void 0:a.includes)==null?void 0:s.call(a,"starting-logic-generation"))?{data:{id:n.id,type:r.Project,version:1,name:null,description:null,projects:[],entities:[],operations:[],functions:[],variableDeclarations:[],variableInstances:[],functionCalls:[],conditions:[],loops:[],searches:[],events:[]}}:{data:e}}function Cv(n){const e=new gr(n);return h6(e),y6(e),p6(e),f6(e),m6(e),T6(e),E6(e),e.initChildren(),e}async function b6(n){try{if(n.id&&ci[n.id])return ci[n.id];if(n.id&&no[n.id])return await no[n.id],ci[n.id];const e=R6(n);n.id&&(no[n.id]=e);const t=await e;if(t.data){const i=Cv(t.data);return ci[n.id]=i,n.id&&delete no[n.id],i}return null}catch(e){return console.error("Error fetching project",e),null}}function g6(n){return ci[n.id]&&delete ci[n.id],null}const v6="test_primitive_entities_export";d.AI_VALUE_CONNECTION_GENERATION_ACTION_EXPLANATION=Xc,d.ActionDescriptorState=_e,d.ActionDescriptorValuesType=V,d.ActionInputMapState=c9,d.ActionOutputMapState=p9,d.AppendToListOperationInputIds=Yu,d.AppendToListOperationOutputIds=zu,d.ArgumentDeclarationState=pr,d.BREAK_AND_CONTINUE_STATEMENTS_RETURN_DECLARATIONS_EXPLANATION=Hc,d.BUILT_IN_BASE_ENTITY_IDS=Le,d.BUILT_IN_ENTITY_TYPES=Pr,d.BaseCanvasDraggableState=H8,d.BaseEntityNames=w,d.BaseState=W8,d.BaseValueDescriptorIds=vo,d.BreakStatementState=oi,d.BuiltInBaseEntityState=Ut,d.CALLABLE_ENTITIES_EXPLANATION=P9,d.CALLABLE_TYPES=Tn,d.CALLER_ENTITIES_EXPLANATION=wg,d.CALLER_TYPES=en,d.CALLS_UPDATE_EXPLANATION=Mn,d.COMPARISON_CONDITIONS=Jf,d.CONDITIONS=rI,d.CUSTOM_ENTITY_OPERATIONS=cy,d.CallableEntityClass=z8,d.CallerEntityClass=Uc,d.ChildEntityState=Y8,d.ComparisonOperatorTypes=Se,d.ConditionState=or,d.ContinueStatementState=ht,d.CreateNewInputIds=Fp,d.CreateNewOutputIds=xp,d.CustomEntityState=br,d.DRAGGABLE_CALLABLE_TYPES=ao,d.DRAGGABLE_CALLER_TYPES=gd,d.DRAGGABLE_ELEMENT_TYPES=so,d.DRAGGABLE_EXECUTABLE_TYPES=Mv,d.DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES=io,d.DataTypeCompatibilityTypes=Mt,d.DataTypeParentChildRelation=qe,d.DataTypeState=ri,d.ENTITIES_WITH_VALLUES_EXPLANATION=xs,d.ENTITY_TYPES=_v,d.ENTITY_WITH_LOGIC_SCOPE_TYPES=ot,d.ENTITY_WITH_NAMES_TYPES=vd,d.ENTITY_WITH_VALUE_TYPES=bd,d.ENTRY_POINT_ENTITIES_EXPLANATION=oa,d.ENTRY_POINT_TYPES=Ve,d.EVENT_TYPES=Ir,d.EXECUTABLE_TYPES=wv,d.EXECUTION_OPERATIONS=Gp,d.EntityError=Yn,d.EntityErrorSeverity=f,d.EntityGenerationError=E,d.EntityGenerationErrorCode=y,d.EntityInstanceErrorCode=_,d.EntityOperations=Ze,d.EntityType=r,d.EntityWithLogicScopeClass=K8,d.EntityWithValueClass=Q8,d.EntryPointEntityClass=Z8,d.ExecutionOperations=Pe,d.FunctionCallState=fr,d.FunctionDeclarationState=ir,d.GLOBAL_EVENT_DECLARATIONS=iI,d.GetLastInListOperationInputIds=Vu,d.GetLastInListOperationOutputIds=Lu,d.GlobalEventNames=Kt,d.GlobalEventState=ii,d.HTTPOperations=Ye,d.HTTP_OPERATIONS=ky,d.InputMapState=hn,d.InstalledProjectState=ur,d.InternalCallState=ai,d.JoinListOperationInputIds=nu,d.JoinListOperationOutputIds=ru,d.JoinStringOperationInputIds=jd,d.JoinStringOperationOutputIds=kd,d.LIST_OPERATIONS=lp,d.ListOperations=j,d.LoopState=sr,d.LoopTypes=je,d.NON_INTERACTIVE_BASE_ENTITIES_EXPLANATION=_n,d.NUMBER_OPERATIONS=Ud,d.NumberAdditionOperationInputIds=Od,d.NumberAdditionOperationOutputIds=Cd,d.NumberOperations=st,d.OPERATION_DECLARATIONS=$v,d.OperationState=ar,d.OutputMapParentChildRelation=Rd,d.OutputMapState=fn,d.PARENT_AUTO_CALCULATION_FROM_CALLER_EXPLANATION=Us,d.PASS_THROUGH_CALLABLE_ENTITIES_EXPLANATION=wn,d.PASS_THROUGH_CALLABLE_TYPES=$e,d.PROPERTY_NOT_VALUE_READER_WRITTER_EXPLANATION=Zc,d.ParallelExecutionOperation=Dv,d.ParallelExecutionOperationInputIds=cp,d.ParallelExecutionOperationOutputIds=dp,d.PassThroughCallableEntityClass=X8,d.PersistedEntity=Ov,d.PersistedEntityMethods=It,d.PrimitiveEntityState=$t,d.PrimitiveTypes=g,d.PrimitiveValueState=si,d.ProjectState=gr,d.PropertyState=rr,d.RETURN_STATEMENT_RETURN_DECLARATIONS_EXPLANATION=D9,d.ReturnDeclarationState=Ct,d.ReturnStatementState=yr,d.STANDALONE_CONDITIONS=Ff,d.STRING_OPERATIONS=tu,d.ScopeCompatibilityType=Qs,d.SearchState=dr,d.SequentialExecutionOperation=Sv,d.SequentialExecutionOperationInputIds=Sp,d.SequentialExecutionOperationOutputIds=Op,d.SharedEntityErrorCode=v,d.SharedStateFunctionality=Og,d.SplitListOperationInputIds=Eu,d.SplitListOperationOutputIds=Ru,d.StandaloneOperatorTypes=Bt,d.StringOperations=ve,d.TERMINATION_TYPES=Ce,d.USER_MANAGED_ENTITY_TYPES=Nv,d.UUID=G,d.UserManagedEntityStateFunctionality=J8,d.VALUE_READING_ENTITIES_EXPLANATION=zc,d.VALUE_READING_TYPES=Vn,d.VALUE_WRITING_ENTITIES_EXPLANATION=Mg,d.VALUE_WRITING_TYPES=Oe,d.VARIABLE_DATA_TYPE_INFERRANCE_EXPLANATION=Yc,d.VARIABLE_TYPES=Fe,d.ValidationInputIds=zp,d.ValidationOutputIds=Zp,d.ValueAutogenerationType=Ue,d.ValueDescriptorParentChildRelation=C,d.ValueDescriptorState=hr,d.ValueReadingEntityClass=aa,d.ValueWritingEntityClass=sa,d.VariableDeclarationState=lr,d.VariableInputMapState=l9,d.VariableInstanceState=cr,d.VariableOutputMapState=u9,d.WaitOperation=Av,d.WaitOperationInputIds=bp,d.WaitOperationOutputIds=gp,d.appendToListOperation=Ta,d.appendToListOperationElementToAppendArgument=To,d.appendToListOperationElementToAppendArgumentParentRef=rp,d.appendToListOperationElementToAppendArgumentRef=Qu,d.appendToListOperationError=op,d.appendToListOperationErrorParentRef=sp,d.appendToListOperationListArgument=mo,d.appendToListOperationListArgumentParentRef=np,d.appendToListOperationListArgumentRef=Zu,d.appendToListOperationListDataType=Xu,d.appendToListOperationResultListDataType=tp,d.appendToListOperationResultListReturn=ap,d.appendToListOperationResultListReturnParentRef=ip,d.appendToListOperationResultListReturnRef=ep,d.appendToListOperationSecondListDataType=Ku,d.asGenerationActionExample=Xt,d.baseHttpRequestFunctionDeclaration=yi,d.baseHttpRequestFunctionDeclarationErrorValueDescriptor=Do,d.baseHttpRequestFunctionDeclarationErrorValueDescriptorDatatype=jy,d.baseHttpRequestFunctionDeclarationErrorValueDescriptorRef=Uy,d.baseHttpRequestFunctionDeclarationRef=Ly,d.baseHttpRequestFunctionDeclarationRefEight=Fy,d.baseHttpRequestFunctionDeclarationRefFive=$y,d.baseHttpRequestFunctionDeclarationRefFour=Ny,d.baseHttpRequestFunctionDeclarationRefNine=xy,d.baseHttpRequestFunctionDeclarationRefSeven=Gy,d.baseHttpRequestFunctionDeclarationRefSix=Vy,d.baseHttpRequestFunctionDeclarationRefThree=_y,d.baseHttpRequestFunctionDeclarationRefTwo=My,d.booleanPrototype=Ln,d.capitalizeFirstLetter=os,d.checkAreCustomEntitiesCompatibleAsDataType=Yb,d.checkAreDataTypesCompatible=fs,d.checkArePropertiesCompatibleAsDataType=Hb,d.checkIsBranchDependentButNotDirectlyOnBranch=ca,d.checkIsBranchDependentOnBranch=N9,d.checkIsCallableEntityReachable=dd,d.checkIsCanvasEntity=z9,d.checkIsDetachedBranch=cv,d.checkIsDetachedBranchShallow=ld,d.checkIsGlobalVariable=Y9,d.checkIsGloballyDeclared=od,d.checkIsMethod=pv,d.checkIsNestedScope=Xs,d.checkScopeCompatibility=da,d.createEntityError=H,d.createNewInstanceOperation=Ar,d.createNewInstanceOperationEntityToInstanciateArgument=qp,d.createNewInstanceOperationEntityToInstanciateArgumentRef=Up,d.createNewInstanceOperationEntityToInstanciateDataType=jp,d.createNewInstanceOperationError=Yp,d.createNewInstanceOperationErrorParentRef=Hp,d.createNewInstanceOperationOutputEntityDeclaration=Wp,d.createNewInstanceOperationOutputEntityDeclarationParentRef=Jp,d.createNewInstanceOperationRef=kp,d.createSemanticId=Qt,d.createStateFromGenerationTargetType=u6,d.createStateFromType=pa,d.createStateFromTypeAndSubscribe=R,d.cronJobBuiltInBaseEntity=Mo,d.cronJobBuiltInBaseEntityExpressionProperty=$f,d.cronJobBuiltInBaseEntityExpressionPropertyDataTypeRef=eI,d.cronJobBuiltInBaseEntityExpressionPropertyRef=_f,d.cronJobBuiltInBaseEntityRef=Nf,d.cronJobTriggeredFunctionDeclarationBlueprint=wo,d.cronJobTriggeredFunctionDeclarationBlueprintParentRef=wf,d.customEntityToZodSchema=cm,d.dataTypeCompatibilityToErrorExplanation=xg,d.datePrototype=Dr,d.dateValueAutogenerationSchema=Mc,d.deletePersistedEntityMethod=Bo,d.deletePersistedEntityMethodParentRef=cf,d.deleteRootProject=g6,d.endpointBuiltInBaseEntity=Da,d.endpointBuiltInBaseEntityRef=dh,d.endpointBuiltInBaseEntityRefFour=Qh,d.endpointBuiltInBaseEntityRefThree=Rh,d.endpointBuiltInBaseEntityRefTwo=fh,d.endpointBuiltInCorsProperty=uh,d.endpointBuiltInCorsPropertyDataType=ch,d.endpointBuiltInCorsPropertyDataTypeRef=oh,d.endpointBuiltInCorsPropertyRef=lh,d.endpointBuiltInMethodProperty=Oo,d.endpointBuiltInMethodPropertyDataType=Eh,d.endpointBuiltInMethodPropertyDataTypeRef=mh,d.endpointBuiltInMethodPropertyRef=Th,d.endpointBuiltInPathProperty=So,d.endpointBuiltInPathPropertyDataType=hh,d.endpointBuiltInPathPropertyDataTypeRef=ph,d.endpointBuiltInPathPropertyRef=yh,d.endpointPathParamsArgumentDeclaration=Nh,d.endpointPathParamsArgumentDeclarationRef=Ch,d.endpointPathParamsVariableDataType=Bh,d.endpointPathParamsVariableDataTypeRef=Oh,d.endpointReachedTriggerActionDescriptor=Co,d.endpointReachedTriggerActionDescriptorRef=wh,d.endpointReachedTriggerActionDescriptorRefFour=Lh,d.endpointReachedTriggerActionDescriptorRefThree=$h,d.endpointReachedTriggerActionDescriptorRefTwo=_h,d.endpointRequestBodyArgumentDeclaration=Gh,d.endpointRequestBodyArgumentDeclarationRef=Ih,d.endpointRequestBodyVariableDataType=Ph,d.endpointRequestHeadersArgumentDeclaration=Mh,d.endpointRequestHeadersArgumentDeclarationRef=gh,d.endpointRequestHeadersVariableDataType=vh,d.endpointRequestHeadersVariableDataTypeRef=bh,d.endpointRequestQueryParamsArgumentDeclaration=Vh,d.endpointRequestQueryParamsArgumentDeclarationRef=Ah,d.endpointRequestQueryParamsVariableDataType=Sh,d.endpointRequestQueryParamsVariableDataTypeRef=Dh,d.endpointResponseBodyDataType=zh,d.endpointResponseBodyReturnDeclaration=Xh,d.endpointResponseBodyReturnDeclarationRef=Yh,d.endpointResponseCodeDataType=xh,d.endpointResponseCodeReturnDeclaration=jh,d.endpointResponseCodeReturnDeclarationRef=Fh,d.endpointResponseHeadersDataType=Jh,d.endpointResponseHeadersDataTypeRef=kh,d.endpointResponseHeadersReturnDeclaration=Hh,d.endpointResponseHeadersReturnDeclarationRef=qh,d.endpointReturnStatementRef=Uh,d.endpointReturnStatementRefThree=Zh,d.endpointReturnStatementRefTwo=Wh,d.enumOptionsProperty=Sd,d.enumOptionsPropertyDataType=Dd,d.enumOptionsPropertyDataTypeRef=Id,d.enumOptionsPropertyRef=Pd,d.enumPrototype=En,d.enumPrototypeRef=Ad,d.executionBuiltInEntity=No,d.executionBuiltInEntityAbortMethod=_o,d.executionBuiltInEntityAbortMethodParentRef=Vf,d.filterOutDuplicateEntities=S,d.filterOutDuplicateErrors=rF,d.findReferenceToSelfInList=ev,d.findReferencesToSelfInProject=j9,d.flattenCalls=mr,d.flattenCanvasAncestorsUntil=Ws,d.flattenCustomEntityExtensionAndImplementationTypes=av,d.flattenCustomEntityExtensionTypes=zs,d.flattenCustomEntityExtensions=ad,d.flattenCustomEntityImplementations=sd,d.flattenCustomEntityImplementionTypes=Ys,d.flattenDerivedCanvasEntities=vt,d.flattenDetachedBranch=uv,d.flattenElementCalls=Ne,d.flattenProjectElements=Kg,d.flattenRelatedCanvasElementsOnTheLeft=iv,d.flattenRelatedCanvasElementsOnTheRight=rv,d.flattenVariableReads=Qg,d.flattenVariableWrites=Xg,d.flattenVariables=z,d.fromZodParseToEntityGenerationErrors=qc,d.generate=OP,d.generateActionExample=A9,d.generateExecutionDataType=zb,d.generateMutablePropertiesExplanation=Ls,d.generateRandomBoolean=Bm,d.generateRandomDate=ym,d.generateRandomDateAfter=dm,d.generateRandomDateBefore=um,d.generateRandomDateBetweenRange=pm,d.generateRandomNumber=Dm,d.generateRandomNumberAfter=vm,d.generateRandomNumberBefore=Im,d.generateRandomNumberBetweenRange=Pm,d.generateRandomText=Cm,d.generateRandomTextAfter=Am,d.generateRandomTextBefore=Sm,d.generateRandomTextBetweenRange=Om,d.generateUniqueUUID=gm,d.getAllActionDescriptorsForConditions=qs,d.getAllActionDescriptorsForGlobalEvents=js,d.getAllActionDescriptorsForLoops=ks,d.getAllActionDescriptorsForOperations=B9,d.getAllGloballyDeclaredFunctionDeclarationsExplanation=Lg,d.getBaseBuiltInEntities=$n,d.getBaseSchemaBasedOnType=Cg,d.getBuiltInEntityOwner=Er,d.getCallableEntityReferenceSchema=ke,d.getCallableEntityTypeSchema=Pg,d.getCallerEntityReferenceSchema=s8,d.getCallerEntityTypeSchema=a8,d.getCalls=ed,d.getCanvasEntitiesDerivedFromInternalCalls=nv,d.getCanvasEntitiesDerivedFromWrites=li,d.getCanvasEntityDerivedFromValueReadingEntity=id,d.getCanvasEntityReferenceSchema=I8,d.getCanvasEntityTypeSchema=v8,d.getChildrenEntityWithValues=V9,d.getCommonAncestor=Kc,d.getCommonChildren=kg,d.getDeclaration=jc,d.getDeepestScope=fv,d.getDraggableCallableEntityReferenceSchema=Ag,d.getDraggableCallableEntityTypeSchema=Dg,d.getDraggableCallerEntityReferenceSchema=l8,d.getDraggableCallerEntityTypeSchema=o8,d.getDraggableExecutableEntityReferenceSchema=p8,d.getDraggableExecutableEntityTypeSchema=u8,d.getDraggablePassThroughCallableEntityReferenceSchema=Vs,d.getDraggablePassThroughCallableEntityTypeSchema=$s,d.getDraggablePlayableEntityReferenceSchema=T8,d.getDraggablePlayableEntityTypeSchema=m8,d.getEntityArgumentDeclarations=nd,d.getEntityInputMaps=tv,d.getEntityOutputMaps=J9,d.getEntityReferenceSchema=g8,d.getEntityReturnDeclarations=rd,d.getEntityTypeSchema=b8,d.getEntityWithLogicScopeReferenceSchema=pn,d.getEntityWithLogicScopeTypeSchema=y8,d.getEntityWithValueReferenceSchema=Ig,d.getEntityWithValueTypeSchema=i8,d.getEntryPointEntityReferenceSchema=xe,d.getEntryPointEntityTypeSchema=Bn,d.getEventEntityReferenceSchema=_s,d.getEventEntityTypeSchema=Ms,d.getExecutableEntityReferenceSchema=d8,d.getExecutableEntityTypeSchema=c8,d.getExtendedBuiltInEntity=W9,d.getExtendedCustomEntity=ov,d.getGenerationTargetSchemaBasedOnType=Bg,d.getHeadIfPartOfDetachedBranch=dv,d.getHighestScope=hv,d.getImplementedBuiltInEntity=H9,d.getIsInteractive=lv,d.getLastInListOperation=fo,d.getLastInListOperationError=Hu,d.getLastInListOperationErrorParentRef=Wu,d.getLastInListOperationInputListArgument=ku,d.getLastInListOperationInputListArgumentParentRef=ju,d.getLastInListOperationInputListArgumentRef=Gu,d.getLastInListOperationInputListDataType=Fu,d.getLastInListOperationOutputElementDataType=Uu,d.getLastInListOperationOutputElementReturn=Ju,d.getLastInListOperationOutputElementReturnParentRef=qu,d.getLastInListOperationOutputElementReturnRef=xu,d.getLinkedEntitiesFromArgumentDeclaration=U9,d.getLowestPersistedEntityImplementation=sv,d.getParentCanvasEntities=_t,d.getParentCanvasEntity=He,d.getParentEntryPoint=$9,d.getPassThroughCallableEntityReferenceSchema=ye,d.getPassThroughCallableEntityTypeSchema=Ns,d.getPlayableEntityReferenceSchema=f8,d.getPlayableEntityTypeSchema=h8,d.getProject=b6,d.getPrototypeByType=Zs,d.getReferenceEntityId=D,d.getReferencedEntitiesStateOrErrors=Fs,d.getReferencedEntityStateOrErrors=Jc,d.getRelatedCanvasElementsOnTheLeft=Tr,d.getRelatedCanvasElementsOnTheRight=Nn,d.getRootEntryPointScopeOwner=cd,d.getScopeOwner=ft,d.getTerminationReferenceSchema=R8,d.getTerminationTypeSchema=E8,d.getUsedArgFromDeclaration=k9,d.getUsedReturnFromDeclaration=q9,d.getValueReadingEntityReferenceSchema=vg,d.getValueReadingEntityTypeSchema=un,d.getValueWritingEntityReferenceSchema=r8,d.getValueWritingEntityTypeSchema=ia,d.getVariableFromInputMapping=Jg,d.getVariableFromReturnVariablePointer=Yg,d.getVariableReferenceSchema=Cn,d.getVariableTypeSchema=tr,d.getVariablesFromArgumentDeclarations=Hs,d.getVariablesFromInputMaps=Wg,d.getVariablesFromOutputMapping=zg,d.getVariablesFromOutputMaps=Zg,d.getVariablesFromReturnDeclarations=Hg,d.getVariablesInSameOrHigherScope=kc,d.getWrites=td,d.groupCallsBasedOnParallelizableExecution=G9,d.handleAfterEntityImplementationSideEffects=jg,d.handleBeforeEntityImplementationSideEffects=Ug,d.httpRequestBodyArgument=ga,d.httpRequestBodyArgumentRef=vy,d.httpRequestBodyDataType=Iy,d.httpRequestHeadersArgument=ba,d.httpRequestHeadersArgumentRef=by,d.httpRequestHeadersDataType=gy,d.httpRequestMethodArgument=Ea,d.httpRequestMethodArgumentRef=Ey,d.httpRequestMethodDataType=Ry,d.httpRequestMethodDataTypeRef=my,d.httpRequestQueryParamsArgument=Io,d.httpRequestQueryParamsArgumentRef=hy,d.httpRequestQueryParamsDataType=fy,d.httpRequestVariableURLArgument=Ra,d.httpRequestVariableURLArgumentRef=py,d.httpRequestVariableURLDataType=yy,d.httpRequestVariableURLDataTypeRef=dy,d.httpResponseBodyReturnDataType=wy,d.httpResponseBodyReturnDataTypeRef=Cy,d.httpResponseBodyReturnReturn=pi,d.httpResponseBodyReturnReturnRef=By,d.httpResponseCodeDataType=Dy,d.httpResponseCodeReturn=Po,d.httpResponseCodeReturnRef=Py,d.httpResponseHeadersDataType=Oy,d.httpResponseHeadersDataTypeRef=Ay,d.httpResponseHeadersReturn=va,d.httpResponseHeadersReturnRef=Sy,d.implement=Js,d.inferArgumentDeclarationDataType=Zb,d.inferDataType=ms,d.inferInputMapDataType=Xb,d.inferOutputMapDataType=eg,d.inferVariableDeclarationDataType=Kb,d.inferVariableInstanceDataType=Qb,d.initProject=Cv,d.iterateOverListActionDescriptor=xn,d.iterateOverListActionDescriptorListArgumentDeclaration=Zy,d.iterateOverListActionDescriptorListArgumentDeclarationDataType=Yy,d.iterateOverListActionDescriptorListArgumentDeclarationDataTypeParentRef=Hy,d.iterateOverListActionDescriptorListArgumentDeclarationParentRef=zy,d.iterateOverListActionDescriptorReturnDeclaration=Wy,d.iterateOverListActionDescriptorReturnDeclarationParentRef=Jy,d.joinListOperation=po,d.joinListOperationError=Tu,d.joinListOperationErrorParentRef=mu,d.joinListOperationFirstListArgument=uu,d.joinListOperationFirstListArgumentParentRef=du,d.joinListOperationFirstListArgumentRef=iu,d.joinListOperationFirstListDataType=au,d.joinListOperationResultListDataType=cu,d.joinListOperationResultListReturn=fu,d.joinListOperationResultListReturnParentRef=hu,d.joinListOperationResultListReturnRef=lu,d.joinListOperationSecondListArgument=yu,d.joinListOperationSecondListArgumentParentRef=pu,d.joinListOperationSecondListArgumentRef=su,d.joinListOperationSecondListDataType=ou,d.joinListWithLastSeparator=N,d.joinStringOperation=ui,d.joinStringOperationError=eu,d.joinStringOperationErrorParentRef=Kd,d.joinStringOperationFirstStringArgument=fa,d.joinStringOperationFirstStringArgumentParentRef=Zd,d.joinStringOperationFirstStringArgumentRef=qd,d.joinStringOperationFirstStringDataType=Jd,d.joinStringOperationResultStringDataType=zd,d.joinStringOperationResultStringReturn=di,d.joinStringOperationResultStringReturnParentRef=Qd,d.joinStringOperationResultStringReturnRef=Yd,d.joinStringOperationSecondStringArgument=ma,d.joinStringOperationSecondStringArgumentParentRef=Xd,d.joinStringOperationSecondStringArgumentRef=Wd,d.joinStringOperationSecondStringDataType=Hd,d.jsonPrototype=oo,d.keyValueParamBuiltInBaseEntity=Pa,d.keyValueParamBuiltInBaseEntityNameProperty=rh,d.keyValueParamBuiltInBaseEntityNamePropertyDataTypeRef=Lv,d.keyValueParamBuiltInBaseEntityNamePropertyParentRef=nh,d.keyValueParamBuiltInBaseEntityNamePropertyRef=th,d.keyValueParamBuiltInBaseEntityValueProperty=sh,d.keyValueParamBuiltInBaseEntityValuePropertyDataTypeRef=Fv,d.keyValueParamBuiltInBaseEntityValuePropertyParentRef=ah,d.keyValueParamBuiltInBaseEntityValuePropertyRef=ih,d.lowercaseFirstLetter=LR,d.manualFlowActionDescriptor=Ao,d.manualFlowActionDescriptorDeclarationReturnDeclaration=eh,d.manualFlowActionDescriptorDeclarationReturnDeclarationDataType=Qy,d.manualFlowActionDescriptorDeclarationReturnDeclarationDataTypeParentRef=Xy,d.manualFlowActionDescriptorDeclarationReturnDeclarationParentRef=Ky,d.mapActionDescriptorToTypeItRepresents=Z9,d.mergeEntityErrorsList=iF,d.mergeListOfEntities=yv,d.methodDefaultValue=Ty,d.mockClientProject=VR,d.moreThanOrEqualCondition=Or,d.moreThanOrEqualConditionLeftHandArgument=jf,d.moreThanOrEqualConditionLeftHandArgumentParentRef=Uf,d.moreThanOrEqualConditionRightHandArgument=qf,d.moreThanOrEqualConditionRightHandArgumentParentRef=kf,d.notEmptyCondition=Un,d.notEmptyConditionArgument=Gf,d.notEmptyConditionRef=Lf,d.numberAdditionOperation=ha,d.numberAdditionOperationError=xd,d.numberAdditionOperationErrorParentRef=Fd,d.numberAdditionOperationFirstNumberArgument=lo,d.numberAdditionOperationFirstNumberArgumentRef=Bd,d.numberAdditionOperationFirstNumberDataType=wd,d.numberAdditionOperationRef=Vd,d.numberAdditionOperationRefThree=Gd,d.numberAdditionOperationRefTwo=Ld,d.numberAdditionOperationResultNumberDataType=$d,d.numberAdditionOperationResultNumberReturn=uo,d.numberAdditionOperationResultNumberReturnRef=Nd,d.numberAdditionOperationSecondNumberArgument=co,d.numberAdditionOperationSecondNumberArgumentRef=Md,d.numberAdditionOperationSecondNumberDataType=_d,d.numberPrototype=Be,d.numberValueAutogenerationSchema=wc,d.parallelExecutionOperation=Vt,d.parallelExecutionOperationError=Rp,d.parallelExecutionOperationErrorParentRef=Ep,d.parallelExecutionOperationListOfExecutionResultsDataType=fp,d.parallelExecutionOperationListOfExecutionResultsReturn=Ro,d.parallelExecutionOperationListOfExecutionResultsReturnRef=hp,d.parallelExecutionOperationListOfFunctionsArgument=Eo,d.parallelExecutionOperationListOfFunctionsArgumentDatatype=yp,d.parallelExecutionOperationListOfFunctionsArgumentRef=pp,d.parallelExecutionOperationListOfFunctionsBlueprint=up,d.parallelExecutionOperationRef=mp,d.parallelExecutionOperationRefThree=Tp,d.persistedBuiltInBaseEntity=we,d.persistedBuiltInBaseEntityCreatedAtProperty=Af,d.persistedBuiltInBaseEntityCreatedAtPropertyDataType=Pf,d.persistedBuiltInBaseEntityCreatedAtPropertyDataTypeRef=Qv,d.persistedBuiltInBaseEntityCreatedAtPropertyParentRef=Df,d.persistedBuiltInBaseEntityCreatedAtPropertyRef=If,d.persistedBuiltInBaseEntityDatabaseProperty=fi,d.persistedBuiltInBaseEntityDatabasePropertyDataTypeRef=Yv,d.persistedBuiltInBaseEntityDatabasePropertyParentRef=hf,d.persistedBuiltInBaseEntityDatabasePropertyRef=yf,d.persistedBuiltInBaseEntityDeletedAtProperty=vf,d.persistedBuiltInBaseEntityDeletedAtPropertyDataType=bf,d.persistedBuiltInBaseEntityDeletedAtPropertyDataTypeRef=Xv,d.persistedBuiltInBaseEntityDeletedAtPropertyParentRef=gf,d.persistedBuiltInBaseEntityDeletedAtPropertyRef=Rf,d.persistedBuiltInBaseEntityIdentifierProperty=Ef,d.persistedBuiltInBaseEntityIdentifierPropertyDataTypeRef=ff,d.persistedBuiltInBaseEntityIdentifierPropertyParentRef=Tf,d.persistedBuiltInBaseEntityIdentifierPropertyRef=mf,d.persistedBuiltInBaseEntityUpdatedAtProperty=Bf,d.persistedBuiltInBaseEntityUpdatedAtPropertyDataType=Of,d.persistedBuiltInBaseEntityUpdatedAtPropertyDataTypeRef=Kv,d.persistedBuiltInBaseEntityUpdatedAtPropertyParentRef=Cf,d.persistedBuiltInBaseEntityUpdatedAtPropertyRef=Sf,d.processOutputGlobalValueDescriptorDataType=Hf,d.processOutputGlobalValueDescriptorReturn=Vo,d.processOutputGlobalValueDescriptorReturnRef=Wf,d.projectPublicationCompletedGlobalEvent=Ba,d.propertyToZodSchema=lm,d.relationalDatabaseBuiltInBaseEntity=Rn,d.relationalDatabaseBuiltInBaseEntityDefaultProperty=lf,d.relationalDatabaseBuiltInBaseEntityDefaultPropertyDataTypeRef=sf,d.relationalDatabaseBuiltInBaseEntityDefaultPropertyRef=of,d.relationalDatabaseBuiltInBaseEntityIdentifierProperty=Aa,d.relationalDatabaseBuiltInBaseEntityIdentifierPropertyDataTypeRef=Kh,d.relationalDatabaseBuiltInBaseEntityIdentifierPropertyRef=ef,d.relationalDatabaseBuiltInBaseEntityMinSizeProperty=Ca,d.relationalDatabaseBuiltInBaseEntityMinSizePropertyDataTypeRef=rf,d.relationalDatabaseBuiltInBaseEntityMinSizePropertyRef=af,d.relationalDatabaseBuiltInBaseEntityPasswordProperty=Oa,d.relationalDatabaseBuiltInBaseEntityPasswordPropertyDataTypeRef=qv,d.relationalDatabaseBuiltInBaseEntityPasswordPropertyRef=nf,d.relationalDatabaseBuiltInBaseEntityRef=Sr,d.relationalDatabaseBuiltInBaseEntityUsernameProperty=Sa,d.relationalDatabaseBuiltInBaseEntityUsernamePropertyDataTypeRef=jv,d.relationalDatabaseBuiltInBaseEntityUsernamePropertyRef=tf,d.resolveActionDescriptorName=Pv,d.resolveBaseEntityName=gv,d.resolveBuiltInBaseEntityDataTypeLabel=ud,d.resolveConditionOperatorLabel=eo,d.resolveCustomEntityDataTypeLabel=pd,d.resolveDataType=ac,d.resolveDataTypeLabel=Ev,d.resolveEntityDataTypeLabel=bv,d.resolveEntityName=A,d.resolveFirstCallsSecond=F9,d.resolveFirstWritesSecond=x9,d.resolvePrimitiveEntityName=Iv,d.resolvePropertyDataTypeLabel=Rv,d.resolveSearchName=vv,d.resolveVariableDataTypeLabel=K9,d.resolveVariableDeclarationDataTypeLabel=Rr,d.resolveVariableInstanceDataTypeLabel=Tv,d.resolveVariableScope=o9,d.sequentialExecutionOperation=tn,d.sequentialExecutionOperationError=Lp,d.sequentialExecutionOperationErrorParentRef=Vp,d.sequentialExecutionOperationListOfExecutionResultsDataType=_p,d.sequentialExecutionOperationListOfExecutionResultsReturn=go,d.sequentialExecutionOperationListOfExecutionResultsReturnParentRef=$p,d.sequentialExecutionOperationListOfExecutionResultsReturnRef=Mp,d.sequentialExecutionOperationListOfFunctionsArgument=bo,d.sequentialExecutionOperationListOfFunctionsArgumentDatatype=wp,d.sequentialExecutionOperationListOfFunctionsArgumentParentRef=Np,d.sequentialExecutionOperationListOfFunctionsArgumentRef=Bp,d.sequentialExecutionOperationListOfFunctionsBlueprint=Cp,d.softDeletePersistedEntityMethod=uf,d.softDeletePersistedEntityMethodParentRef=df,d.sortCallsBasedOnExecutionDependencies=qg,d.sortChildrenEntitiesBasedOnExecutionDependencies=L9,d.splitListOperation=ho,d.splitListOperationError=$u,d.splitListOperationErrorParentRef=Nu,d.splitListOperationFirstOutputListDataType=Pu,d.splitListOperationFirstOutputListReturn=Bu,d.splitListOperationFirstOutputListReturnParentRef=Cu,d.splitListOperationFirstOutputListReturnRef=yo,d.splitListOperationInputListArgument=Au,d.splitListOperationInputListArgumentParentRef=Du,d.splitListOperationInputListArgumentRef=bu,d.splitListOperationInputListDataType=gu,d.splitListOperationSecondOutputListDataType=wu,d.splitListOperationSecondOutputListReturn=_u,d.splitListOperationSecondOutputListReturnParentRef=Mu,d.splitListOperationSplitIndexArgument=Ou,d.splitListOperationSplitIndexArgumentParentRef=Su,d.splitListOperationSplitIndexArgumentRef=vu,d.splitListOperationSplitIndexDataType=Iu,d.stringPrototype=F,d.stringValueAutogenerationSchema=Bc,d.suggestNewIdForEntity=Ed,d.test_primitive_entities_export=v6,d.toCamelCase=X9,d.toEntityState=Nt,d.toKebabCase=mv,d.toLowerCaseKebabCase=Ks,d.toPascalCase=Q9,d.untypedObjectPrototype=Xe,d.updateErrorsList=Z,d.updateValueReader=ua,d.urlDefaultValue=uy,d.uuidPrototype=ya,d.validateArgumentDeclarationName=md,d.validateCalledByErrorIdInAction=O9,d.validateCalledByIdInAction=S9,d.validateCallers=Vg,d.validateConditionEntityDeclaration=w9,d.validateCustomEntityName=to,d.validateDataOperation=Fn,d.validateDataOperationDataToValidateArgument=ey,d.validateDataOperationDataToValidateArgumentParentRef=Kp,d.validateDataOperationDataToValidateArgumentRef=Xp,d.validateDataOperationDataToValidateDataType=Qp,d.validateDataOperationEntityToMatchTypeArgument=iy,d.validateDataOperationEntityToMatchTypeArgumentParentRef=ry,d.validateDataOperationEntityToMatchTypeArgumentRef=ty,d.validateDataOperationEntityToMatchTypeDataType=ny,d.validateDataOperationError=ly,d.validateDataOperationErrorParentRef=oy,d.validateDataOperationOutputEntityDeclaration=sy,d.validateDataOperationOutputEntityDeclarationParentRef=ay,d.validateEntryCaller=$g,d.validateErrorCaller=Ng,d.validateFunctionCallDeclaration=Gg,d.validateFunctionDeclarationName=yd,d.validateGeneratedEntityParentIsNotBuiltInEntity=I9,d.validateGeneration=g9,d.validateGenerationTarget=De,d.validateGenerationUpdate=v9,d.validateLoopEntityDeclaration=M9,d.validateName=e6,d.validateOperationEntityDeclaration=Fg,d.validatePropertyName=fd,d.validateReachability=mn,d.validateReadsValueInActionPayload=C9,d.validateReferenceObject=Gs,d.validateReferenceToOne=Wc,d.validateReferences=Ge,d.validateReturnDeclarationName=Td,d.validateSuccessCaller=_g,d.validateValueReaderGenerationUpdate=la,d.validateValueWritter=Qc,d.validateVariableDeclarationName=hd,d.valueAutogenerationCurrentDateAndTimeSchema=lg,d.valueAutogenerationGenericSchema=As,d.valueAutogenerationOptions=_c,d.valueAutogenerationOptionsSchema=og,d.valueAutogenerationRandomBooleanSchema=Cc,d.valueAutogenerationRandomDateBetweenSchema=Tg,d.valueAutogenerationRandomDateFromSchema=fg,d.valueAutogenerationRandomDateSchema=Cs,d.valueAutogenerationRandomDateUntilSchema=mg,d.valueAutogenerationRandomNumberBetweenSchema=ug,d.valueAutogenerationRandomNumberFromSchema=cg,d.valueAutogenerationRandomNumberSchema=Ss,d.valueAutogenerationRandomNumberUntilSchema=dg,d.valueAutogenerationRandomSchema=ra,d.valueAutogenerationRandomTextBetweenSchema=hg,d.valueAutogenerationRandomTextFromSchema=pg,d.valueAutogenerationRandomTextSchema=Os,d.valueAutogenerationRandomTextUntilSchema=yg,d.valueAutogenerationRangeValueTypesSchema=na,d.valueAutogenerationUniqueSchema=Oc,d.waitOperation=lt,d.waitOperationMillisecondsNumberArgument=Gn,d.waitOperationMillisecondsNumberArgumentRef=vp,d.waitOperationMillisecondsNumberDataType=Ip,d.waitOperationOperationError=Ap,d.waitOperationOperationErrorParentRef=Dp,d.waitOperationRef=Pp,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
362
+ Alternatively you can update the parent data-type entity with 'update' action to remove the existing value of the field.`,issue:null}))}return{errors:a,modifiedData:i}}get extendedProperties(){return S(this.extends.reduce((e,t)=>[...[...t.properties,...t.extendedProperties].filter(a=>!a.abstract),...e],[]))}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 '${this.type}', must be the root project as it is a globally declared entity.`,issue:null})),{errors:t,modifiedData:e}}addSelfToProject(){if(this.parent.type===r.DataType){const e=this.parent;e.entity=this}else this.project.addCustomEntity(this);return this}setParent(e){return this.parent=e,this}removeProperty(e){return this.properties=this.properties.filter(t=>t.id!==e.id),this}addMethod(e){return this.methods.includes(e)||(this.methods.push(e),this.suggestedMethods=this.suggestedMethods.filter(t=>t.name!==e.name)),this}removeMethod(e){return this.methods=this.methods.filter(t=>t.id!==e.id),this}addProperty(e){return this.properties.includes(e)||(this.properties.push(e),this.suggestedProperties=this.suggestedProperties.filter(t=>t.name!==e.name)),this}addSuggestedProperty(e){return this.suggestedProperties.includes(e)||this.suggestedProperties.push(e),this}addSuggestedMethod(e){return this.suggestedMethods.includes(e)||this.suggestedMethods.push(e),this}removeSuggestedProperty(e){return this.suggestedProperties=this.suggestedProperties.filter(t=>t.id!==e.id),this}removeSuggestedMethod(e){return this.suggestedMethods=this.suggestedMethods.filter(t=>t.id!==e.id),this}addAbstractMethod(e){return this.abstractMethods.includes(e)||this.abstractMethods.push(e),this}removeAbstractMethod(e){return this.abstractMethods=this.abstractMethods.filter(t=>t.id!==e.id),this}initChildren(){return this.initialized?this:(this.initialized=!0,this.properties=this.initialData.properties.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.methods=this.initialData.methods.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.abstractMethods=this.initialData.abstractMethods.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.extends=this.initialData.extends.map(e=>R(e,this.project)),this.implements=this.initialData.implements.map(e=>R(e,this.project)),this.addSuggestions(),this)}addSuggestions(){return this.implements.forEach(e=>{n6(this,e).forEach(a=>{const s=a.toJSON();s.id=`_suggestion--parent--${this.id}--${a.id}`;const o=R(s,this.project);o.suggestion=!0,o.setParent(this),o.initChildren(),this.addSuggestedProperty(o)}),r6(this,e).forEach(a=>{const s=`_suggestion--parent--${this.id}--${a.id}`,o=a.implementAsFunctionDeclaration(s),u=R(o,this.project);if(u.suggestion=!0,u.setParent(this),u.initChildren(),u.inputs.forEach(p=>{p.suggestion=!0}),u.returnStatements.length){const p=u.returnStatements[0];p.suggestion=!0,p.outputs.forEach(h=>{h.suggestion=!0})}this.addSuggestedMethod(u)})}),this}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return this.version=e.version||this.version,this.name=e.name||this.name,this.x=e.x||this.x,this.y=e.y||this.y,this.static=e.static||this.static,this.abstract=e.abstract||this.abstract,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.properties.forEach(s=>{const{affected:o,removed:u}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...u)}),this.methods.forEach(s=>{const{affected:o,removed:u}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...u)}),this.abstractMethods.forEach(s=>{const{affected:o,removed:u}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...u)}),this.suggestedProperties.forEach(s=>{const{affected:o,removed:u}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...u)}),this.suggestedMethods.forEach(s=>{const{affected:o,removed:u}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...u)}),{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.properties.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.methods.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.abstractMethods.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.suggestedProperties.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.suggestedMethods.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),{affected:S(t),self:this})}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.extends.flatMap(i=>i.toFlat(e)),...this.implements.flatMap(i=>i.toFlat(e)),...this.properties.flatMap(i=>i.toFlat(e)),...this.methods.flatMap(i=>i.toFlat(e)),...this.abstractMethods.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.extends.flatMap(i=>i.toFlatIds(e)),...this.implements.flatMap(i=>i.toFlatIds(e)),...this.properties.flatMap(i=>i.toFlatIds(e)),...this.methods.flatMap(i=>i.toFlatIds(e)),...this.abstractMethods.flatMap(i=>i.toFlatIds(e))])}toJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(e=>e.toJSON()),methods:this.methods.map(e=>e.toJSON()),abstractMethods:this.abstractMethods.map(e=>e.toJSON()),implements:this.implements.map(e=>e.toJSON()),extends:this.extends.map(e=>e.toJSON()),parent:this.parent.toReference()}}toReference(){return{id:this.id+"--"+G.uuid()+"--ref",type:r.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,name:this.name,description:this.description,type:this.type,x:this.x,y:this.y,static:this.static,abstract:this.abstract,properties:this.properties.map(e=>e.toReference()),methods:this.methods.map(e=>e.toReference()),abstractMethods:this.abstractMethods.map(e=>e.toReference()),implements:this.implements.map(e=>e.toReference()),extends:this.extends.map(e=>e.toReference()),parent:this.parent.toReference()}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(i=>i.toFlatJSON(e)),...this.methods.flatMap(i=>i.toFlatJSON(e)),...this.abstractMethods.flatMap(i=>i.toFlatJSON(e)),...this.implements.flatMap(i=>i.toFlatJSON(e)),...this.extends.flatMap(i=>i.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,static:this.static,abstract:this.abstract,extends:this.extends.map(t=>t.id),implements:this.implements.map(t=>t.id),parent:e}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(i=>i.toFlatGenerationTarget(e)),...this.methods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.implements.filter(i=>i.type===r.CustomEntity).flatMap(i=>i.toFlatGenerationTarget(e)),...this.implements.filter(i=>i.type===r.CustomEntity).flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.properties.forEach(e=>e.clearErrors()),this.methods.forEach(e=>e.clearErrors()),this.abstractMethods.forEach(e=>e.clearErrors()),this}validate(){return this.errors=t6(this),{success:!0,error:null,data:null}}getErrors(){return[...this.errors,...this.properties.flatMap(t=>t.getErrors()),...this.methods.flatMap(t=>t.getErrors()),...this.abstractMethods.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(){return new ue(this.toJSON(),this.project)}getFunctionDeclaration(e){return this.methods.find(t=>t.id===e)}implement(e,t){return Js(this,e,t)}};l(ue,"MUTABLE_BASE_PROPERTIES",["name","description","static","abstract"]),l(ue,"INMUTABLE_BASE_PROPERTIES",["id","version","type"]),l(ue,"BASE_PROPERTIES",[...ue.MUTABLE_BASE_PROPERTIES,...ue.INMUTABLE_BASE_PROPERTIES]),l(ue,"MUTABLE_META_PROPERTIES",[...ue.MUTABLE_BASE_PROPERTIES,"x","y"]),l(ue,"INMUTABLE_META_PROPERTIES",[...ue.INMUTABLE_BASE_PROPERTIES]),l(ue,"META_PROPERTIES",[...ue.MUTABLE_META_PROPERTIES,...ue.INMUTABLE_META_PROPERTIES]),l(ue,"MUTABLE_UPSTREAM_PROPERTIES",["extends","implements"]),l(ue,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),l(ue,"UPSTREAM_PROPERTIES",[...ue.MUTABLE_UPSTREAM_PROPERTIES,...ue.INMUTABLE_UPSTREAM_PROPERTIES]),l(ue,"MUTABLE_DOWNSTREAM_PROPERTIES",["properties","methods","abstractMethods"]),l(ue,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),l(ue,"DOWNSTREAM_PROPERTIES",[...ue.MUTABLE_DOWNSTREAM_PROPERTIES,...ue.INMUTABLE_DOWNSTREAM_PROPERTIES]),l(ue,"PROPERTIES",[...ue.META_PROPERTIES,...ue.UPSTREAM_PROPERTIES,...ue.DOWNSTREAM_PROPERTIES]);let br=ue;function c6(n){const e=kx(),t=n.toJSON();e.safeParse(t).success;const a=[];return Z(n.errors,a)}class $t{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"name");l(this,"description",null);l(this,"type",r.PrimitiveEntity);l(this,"static");l(this,"abstract");l(this,"properties",[]);l(this,"methods",[]);l(this,"abstractMethods",[]);l(this,"extends",[]);l(this,"errors",[]);l(this,"project");this.initialData=e,this.project=t,this.id=e.id,this.version=e.version,this.name=e.name,this.static=e.static,this.abstract=e.abstract,this.properties=this.initialData.properties.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.methods=this.initialData.methods.map(i=>{const a=R(i,this.project);return a.parent=this,a}),this.abstractMethods=this.initialData.abstractMethods.map(i=>{const a=R(i,this.project);return a.parent=this,a})}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}async load(){return this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){return{affected:[],removed:[]}}restore({seenEntities:e}={seenEntities:new Set}){return{affected:[],self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.properties.flatMap(i=>i.toFlat(e)),...this.methods.flatMap(i=>i.toFlat(e)),...this.abstractMethods.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.properties.flatMap(i=>i.toFlatIds(e)),...this.methods.flatMap(i=>i.toFlatIds(e)),...this.abstractMethods.flatMap(i=>i.toFlatIds(e))])}toJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,properties:this.properties.map(e=>e.toJSON()),methods:this.methods.map(e=>e.toJSON()),abstractMethods:this.abstractMethods.map(e=>e.toJSON()),extends:this.extends.map(e=>e.toJSON())}}toReference(){return{id:this.id+"--"+G.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,abstract:this.abstract,static:this.static,properties:this.properties.map(e=>e.toReference()),methods:this.methods.map(e=>e.toReference()),abstractMethods:this.abstractMethods.map(e=>e.toReference()),extends:this.extends.map(e=>e.toReference())}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(i=>i.toFlatJSON(e)),...this.methods.flatMap(i=>i.toFlatJSON(e)),...this.abstractMethods.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,extends:this.extends.map(e=>e.id)}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(i=>i.toFlatGenerationTarget(e)),...this.methods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.properties.forEach(e=>e.clearErrors()),this.methods.forEach(e=>e.clearErrors()),this.abstractMethods.forEach(e=>e.clearErrors()),this}validate(){const e=c6(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.properties.flatMap(t=>t.getErrors()),...this.methods.flatMap(t=>t.getErrors()),...this.abstractMethods.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(){return new $t(this.toJSON(),this.project)}}function d6(n){const e=Fx(),t=n.toJSON();e.safeParse(t).success;const a=[];return Z(n.errors,a)}class Ut{constructor(e,t){l(this,"initialData");l(this,"id");l(this,"version");l(this,"name");l(this,"description",null);l(this,"type",r.BuiltInBaseEntity);l(this,"abstract",!1);l(this,"static");l(this,"properties",[]);l(this,"methods",[]);l(this,"abstractMethods",[]);l(this,"extends",[]);l(this,"interactive",!1);l(this,"errors",[]);l(this,"project");this.initialData=this.initialData||e,this.project=this.project||t,this.id=this.id||e.id,this.version=this.version||e.version,this.name=this.name||e.name,this.static=this.static||e.static,this.interactive=this.interactive||e.interactive,this.abstract=e.abstract,this.properties=this.initialData.properties.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.methods=this.initialData.methods.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.abstractMethods=this.initialData.abstractMethods.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.extends=this.initialData.extends.map(i=>R(i,this.project))}get extendedProperties(){return S(this.extends.reduce((e,t)=>{if(t instanceof Ut){const i=[...t.properties,...t.extendedProperties].filter(a=>!a.abstract);e.push(...i)}return e},[]))}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}async load(){return this}remove(e={ignoreUpstream:!1,seenEntities:new Set}){return{affected:[],removed:[]}}restore({seenEntities:e}={seenEntities:new Set}){return{affected:[],self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.properties.flatMap(i=>i.toFlat(e)),...this.methods.flatMap(i=>i.toFlat(e)),...this.abstractMethods.flatMap(i=>i.toFlat(e)),...this.extends.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.properties.flatMap(i=>i.toFlatIds(e)),...this.methods.flatMap(i=>i.toFlatIds(e)),...this.abstractMethods.flatMap(i=>i.toFlatIds(e)),...this.extends.flatMap(i=>i.toFlatIds(e))])}toJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,abstract:this.abstract,static:this.static,interactive:this.interactive,properties:this.properties.map(e=>e.toJSON()),methods:this.methods.map(e=>e.toJSON()),abstractMethods:this.abstractMethods.map(e=>e.toJSON()),extends:this.extends.map(e=>e.toJSON())}}toReference(){return{id:this.id+"--"+G.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,abstract:this.abstract,static:this.static,interactive:this.interactive,properties:this.properties.map(e=>e.toReference()),methods:this.methods.map(e=>e.toReference()),abstractMethods:this.abstractMethods.map(e=>e.toReference()),extends:this.extends.map(e=>e.toReference())}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.properties.flatMap(i=>i.toFlatJSON(e)),...this.methods.flatMap(i=>i.toFlatJSON(e)),...this.abstractMethods.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description,static:this.static,abstract:this.abstract,interactive:this.interactive,extends:this.extends.map(e=>e.id)}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.properties.flatMap(i=>i.toFlatGenerationTarget(e)),...this.methods.flatMap(i=>i.toFlatGenerationTarget(e)),...this.abstractMethods.flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.properties.forEach(e=>e.clearErrors()),this.methods.forEach(e=>e.clearErrors()),this.abstractMethods.forEach(e=>e.clearErrors()),this}validate(){const e=d6(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.properties.flatMap(t=>t.getErrors()),...this.methods.flatMap(t=>t.getErrors()),...this.abstractMethods.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(){return new Ut(this.toJSON(),this.project)}implement(e,t){return Js(this,e,t)}}function pa(n,e){if(!n)throw new Error("Entity is null");const t=e.findSubscribedInstance(n);switch(n.type){case r.PrimitiveValue:return t||new si(n,e);case r.CustomEntity:return t||new br(n,e);case r.PrimitiveEntity:return t||new $t(n,e);case r.FunctionDeclaration:return t||new ir(n,e);case r.GlobalEvent:return t||new ii(n,e);case r.DataType:return t||new ri(n,e);case r.Property:return t||new rr(n,e);case r.FunctionCall:return t||new fr(n,e);case r.Condition:return t||new or(n,e);case r.Operation:return t||new ar(n,e);case r.VariableDeclaration:return t||new lr(n,e);case r.VariableInstance:return t||new cr(n,e);case r.OutputMap:return t||new fn(n,e);case r.ReturnDeclaration:return t||new Ct(n,e);case r.ArgumentDeclaration:return t||new pr(n,e);case r.InputMap:return t||new hn(n,e);case r.Project:return t||new gr(n);case r.InstalledProject:return t||new ur(n,e);case r.ActionDescriptor:return t||new _e(n,e);case r.ReturnStatement:return t||new yr(n,e);case r.Loop:return t||new sr(n,e);case r.Search:return t||new dr(n,e);case r.ValueDescriptor:return t||new hr(n,e);case r.BuiltInBaseEntity:return t||new Ut(n,e);case r.InternalCall:return t||new ai(n,e);case r.ContinueStatement:return t||new ht(n,e);case r.BreakStatement:return t||new oi(n,e);default:throw new Error("Invalid entity type: "+n.type)}}function R(n,e){if(!n)throw new Error("Entity is null");const t=pa(n,e);return t.subscribe(),t}function u6(n,e){if(!n)throw new Error("Entity is null");switch(n.type){case r.PrimitiveValue:return si.fromGenerationTarget(n,e);case r.CustomEntity:return br.fromGenerationTarget(n,e);case r.FunctionDeclaration:return ir.fromGenerationTarget(n,e);case r.GlobalEvent:return ii.fromGenerationTarget(n,e);case r.DataType:return ri.fromGenerationTarget(n,e);case r.Property:return rr.fromGenerationTarget(n,e);case r.FunctionCall:return fr.fromGenerationTarget(n,e);case r.Condition:return or.fromGenerationTarget(n,e);case r.Operation:return ar.fromGenerationTarget(n,e);case r.VariableDeclaration:return lr.fromGenerationTarget(n,e);case r.VariableInstance:return cr.fromGenerationTarget(n,e);case r.OutputMap:return fn.fromGenerationTarget(n,e);case r.ReturnDeclaration:return Ct.fromGenerationTarget(n,e);case r.ArgumentDeclaration:return pr.fromGenerationTarget(n,e);case r.InputMap:return hn.fromGenerationTarget(n,e);case r.InstalledProject:return ur.fromGenerationTarget(n,e);case r.ReturnStatement:return yr.fromGenerationTarget(n,e);case r.Loop:return sr.fromGenerationTarget(n,e);case r.Search:return dr.fromGenerationTarget(n,e);case r.ActionDescriptor:return _e.fromGenerationTarget(n,e);case r.ValueDescriptor:return hr.fromGenerationTarget(n,e);case r.InternalCall:return ai.fromGenerationTarget(n,e);case r.ContinueStatement:return ht.fromGenerationTarget(n,e);case r.BreakStatement:return oi.fromGenerationTarget(n,e);default:throw new Error("Invalid entity type: "+n.type)}}const pe=class pe{constructor(e){l(this,"initialData");l(this,"id");l(this,"version");l(this,"type",r.Project);l(this,"name",null);l(this,"description",null);l(this,"x");l(this,"y");l(this,"entities",[]);l(this,"projects",[]);l(this,"functions",[]);l(this,"events",[]);l(this,"variableDeclarations",[]);l(this,"variableInstances",[]);l(this,"conditions",[]);l(this,"operations",[]);l(this,"functionCalls",[]);l(this,"loops",[]);l(this,"searches",[]);l(this,"primitives",[]);l(this,"builtInBaseEntities",[]);l(this,"operationDeclarations",[]);l(this,"globalEventActionDescriptors",[]);l(this,"loopDeclarations",[]);l(this,"conditionDeclarations",[]);l(this,"valueDescriptors",[]);l(this,"dataTypes",[]);l(this,"project");l(this,"instances",{});l(this,"builtInInstances",{});l(this,"errors",[]);l(this,"references",[]);this.initialData=e,this.id=e.id,this.version=e.version,this.name=e.name,this.description=e.description,this.x=0,this.y=0}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[];return a.push(...De(i)),{errors:a,modifiedData:i}}async inject(...e){return await Promise.all(e.map(t=>new Promise(async i=>{await t.init(this),i(null)}))),this}validateGeneratedUpdate(e){return{errors:[],modifiedData:e}}addSelfToProject(){return this}get instancesList(){return Object.values(this.instances)}isOperationDeclaration(e){return this.operationDeclarations.includes(e)}isGlobalEventActionDescriptor(e){return this.globalEventActionDescriptors.includes(e)}isLoopDeclaration(e){return this.loopDeclarations.includes(e)}isConditionDeclaration(e){return this.conditionDeclarations.includes(e)}initChildren(){return this.entities=this.initialData.entities.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.projects=this.initialData.projects.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.functions=this.initialData.functions.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.events=this.initialData.events.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.variableDeclarations=this.initialData.variableDeclarations.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.variableInstances=this.initialData.variableInstances.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.conditions=this.initialData.conditions.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.operations=this.initialData.operations.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.functionCalls=this.initialData.functionCalls.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.loops=this.initialData.loops.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.searches=this.initialData.searches.map(e=>{const t=R(e,this);return t.setParent(this),t.initChildren(),t}),this.attachOrphanReferences(),this.validate(),this}subscribeInstance(e){return(!this.instances[e.id]||this.instances[e.id]!==e)&&(this.instances[e.id]=e),this}subscribeBuiltInInstance(e){return(!this.builtInInstances[e.id]||this.builtInInstances[e.id]!==e)&&(this.builtInInstances[e.id]=e),this}subscribe(){return this}unsubscribe(){return this}unsubscribeInstance(e){return delete this.instances[e.id],this}findSubscribedInstance(e){return this.instances[e.id]||null}findSubscribedBuiltInInstance(e){return this.builtInInstances[e.id]||null}get(e){return this.instances[e]||this.builtInInstances[e]||null}getManaged(e){return this.instances[e]||null}getBuiltIn(e){return this.builtInInstances[e]||null}findSubscribedInstanceFromReference(e){return this.instances[e.entityId]||null}findSubscribedBuiltInInstanceFromReference(e){return this.builtInInstances[e.entityId]||null}sync(e){return this.version=e.version||this.version,this.name=e.name||this.name,this.description=e.description||this.description,this.x=e.x||this.x,this.y=e.y||this.y,this}async load(){return this}async create(){return this}async update(e){return this}async delete(){return this}remove({ignoreUpstream:e}={ignoreUpstream:!1}){return{affected:[],removed:[]}}restore({seenEntities:e}={seenEntities:new Set}){return{affected:[],self:this}}getAllBuiltInIds(){const e=new Set;return[...this.primitives.flatMap(t=>t.toFlatIds(e)),...this.builtInBaseEntities.flatMap(t=>t.toFlatIds(e)),...this.operationDeclarations.flatMap(t=>t.toFlatIds(e)),...this.globalEventActionDescriptors.flatMap(t=>t.toFlatIds(e)),...this.loopDeclarations.flatMap(t=>t.toFlatIds(e)),...this.conditionDeclarations.flatMap(t=>t.toFlatIds(e)),...this.valueDescriptors.flatMap(t=>t.toFlatIds(e)),...this.dataTypes.flatMap(t=>t.toFlatIds(e))]}getAllBuiltIn(){const e=new Set;return[...this.primitives.flatMap(t=>t.toFlat(e)),...this.builtInBaseEntities.flatMap(t=>t.toFlat(e)),...this.operationDeclarations.flatMap(t=>t.toFlat(e)),...this.globalEventActionDescriptors.flatMap(t=>t.toFlat(e)),...this.loopDeclarations.flatMap(t=>t.toFlat(e)),...this.conditionDeclarations.flatMap(t=>t.toFlat(e)),...this.valueDescriptors.flatMap(t=>t.toFlat(e)),...this.dataTypes.flatMap(t=>t.toFlat(e))]}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[...this.entities.flatMap(i=>i.toFlat(e)),...this.functions.flatMap(i=>i.toFlat(e)),...this.events.flatMap(i=>i.toFlat(e)),...this.projects.flatMap(i=>i.toFlat(e)),...this.variableDeclarations.flatMap(i=>i.toFlat(e)),...this.variableInstances.flatMap(i=>i.toFlat(e)),...this.conditions.flatMap(i=>i.toFlat(e)),...this.operations.flatMap(i=>i.toFlat(e)),...this.functionCalls.flatMap(i=>i.toFlat(e)),...this.loops.flatMap(i=>i.toFlat(e)),...this.searches.flatMap(i=>i.toFlat(e))])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),Array.from(e))}toJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,description:this.description,entities:this.entities.map(e=>e.toJSON()),functions:this.functions.map(e=>e.toJSON()),events:this.events.map(e=>e.toJSON()),projects:this.projects.map(e=>e.toJSON()),variableDeclarations:this.variableDeclarations.map(e=>e.toJSON()),variableInstances:this.variableInstances.map(e=>e.toJSON()),conditions:this.conditions.map(e=>e.toJSON()),operations:this.operations.map(e=>e.toJSON()),functionCalls:this.functionCalls.map(e=>e.toJSON()),loops:this.loops.map(e=>e.toJSON()),searches:this.searches.map(e=>e.toJSON())}}toReference(){return{id:this.id+"--"+G.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,entities:this.entities.map(e=>e.toReference()),functions:this.functions.map(e=>e.toReference()),events:this.events.map(e=>e.toReference()),projects:this.projects.map(e=>e.toReference()),variableDeclarations:this.variableDeclarations.map(e=>e.toReference()),variableInstances:this.variableInstances.map(e=>e.toReference()),conditions:this.conditions.map(e=>e.toReference()),operations:this.operations.map(e=>e.toReference()),functionCalls:this.functionCalls.map(e=>e.toReference()),loops:this.loops.map(e=>e.toReference()),searches:this.searches.map(e=>e.toReference())}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[...this.entities.flatMap(i=>i.toFlatJSON(e)),...this.functions.flatMap(i=>i.toFlatJSON(e)),...this.events.flatMap(i=>i.toFlatJSON(e)),...this.projects.flatMap(i=>i.toFlatJSON(e)),...this.variableDeclarations.flatMap(i=>i.toFlatJSON(e)),...this.variableInstances.flatMap(i=>i.toFlatJSON(e)),...this.conditions.flatMap(i=>i.toFlatJSON(e)),...this.operations.flatMap(i=>i.toFlatJSON(e)),...this.functionCalls.flatMap(i=>i.toFlatJSON(e)),...this.loops.flatMap(i=>i.toFlatJSON(e)),...this.searches.flatMap(i=>i.toFlatJSON(e))])}toGenerationTarget(){return{id:this.id,type:this.type,name:this.name,description:this.description}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[...this.entities.flatMap(i=>i.toFlatGenerationTarget(e)),...this.functions.flatMap(i=>i.toFlatGenerationTarget(e)),...this.events.flatMap(i=>i.toFlatGenerationTarget(e)),...this.projects.flatMap(i=>i.toFlatGenerationTarget(e)),...this.variableDeclarations.flatMap(i=>i.toFlatGenerationTarget(e)),...this.variableInstances.flatMap(i=>i.toFlatGenerationTarget(e)),...this.conditions.flatMap(i=>i.toFlatGenerationTarget(e)),...this.operations.flatMap(i=>i.toFlatGenerationTarget(e)),...this.functionCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.loops.flatMap(i=>i.toFlatGenerationTarget(e)),...this.searches.flatMap(i=>i.toFlatGenerationTarget(e))])}clearErrors(){return this.errors=[],this.entities.forEach(e=>e.clearErrors()),this.projects.forEach(e=>e.clearErrors()),this.functions.forEach(e=>e.clearErrors()),this.events.forEach(e=>e.clearErrors()),this.variableDeclarations.forEach(e=>e.clearErrors()),this.variableInstances.forEach(e=>e.clearErrors()),this.conditions.forEach(e=>e.clearErrors()),this.operations.forEach(e=>e.clearErrors()),this.functionCalls.forEach(e=>e.clearErrors()),this.loops.forEach(e=>e.clearErrors()),this.searches.forEach(e=>e.clearErrors()),this}validate(){const e=DU(),t=this.toJSON();return e.safeParse(t),this.validateChildren(),{success:!0,error:null,data:t}}validateChildren(){this.entities.forEach(e=>e.validate()),this.projects.forEach(e=>e.validate()),this.functions.forEach(e=>e.validate()),this.events.forEach(e=>e.validate()),this.variableDeclarations.forEach(e=>e.validate()),this.variableInstances.forEach(e=>e.validate()),this.conditions.forEach(e=>e.validate()),this.operations.forEach(e=>e.validate()),this.functionCalls.forEach(e=>e.validate()),this.loops.forEach(e=>e.validate()),this.searches.forEach(e=>e.validate())}getErrors(){return[...this.errors,...this.entities.flatMap(t=>t.getErrors()),...this.projects.flatMap(t=>t.getErrors()),...this.functions.flatMap(t=>t.getErrors()),...this.events.flatMap(t=>t.getErrors()),...this.variableDeclarations.flatMap(t=>t.getErrors()),...this.variableInstances.flatMap(t=>t.getErrors()),...this.conditions.flatMap(t=>t.getErrors()),...this.operations.flatMap(t=>t.getErrors()),...this.functionCalls.flatMap(t=>t.getErrors()),...this.loops.flatMap(t=>t.getErrors()),...this.searches.flatMap(t=>t.getErrors())]}getShallowErrors(){return this.errors}clone(){return new pe(this.toJSON())}getCustomEntity(e){return this.entities.find(t=>t.id===e)||null}addCustomEntityFromTransfer(e){const t=R(e,this);return this.addCustomEntity(t),t}addCustomEntity(e){return this.entities.includes(e)||this.entities.push(e),e}addFunctionDeclarationFromTransfer(e){const t=R(e,this);return this.addFunctionDeclaration(t),t}addFunctionDeclaration(e){return this.functions.includes(e)||this.functions.push(e),e}addFunctionCallFromTransfer(e){const t=R(e,this);return this.addFunctionCall(t),t}addFunctionCall(e){return this.functionCalls.includes(e)||this.functionCalls.push(e),e}addVariableDeclarationFromTransfer(e){const t=R(e,this);return this.addVariableDeclaration(t),t}addVariableDeclaration(e){return this.variableDeclarations.includes(e)||this.variableDeclarations.push(e),e}addVariableInstanceFromTransfer(e){const t=R(e,this);return this.addVariableInstance(t),t}addVariableInstance(e){return this.variableInstances.includes(e)||this.variableInstances.push(e),e}addInstalledProjectFromTransfer(e){const t=R(e,this);return this.addInstalledProject(t),this}addInstalledProject(e){return this.projects.includes(e)||this.projects.push(e),this}addGlobalEventFromTransfer(e){const t=R(e,this);return this.addGlobalEvent(t),this}addGlobalEvent(e){return this.events.includes(e)||this.events.push(e),this}addConditionFromTransfer(e){const t=R(e,this);return this.addCondition(t),this}addCondition(e){return this.conditions.includes(e)||this.conditions.push(e),this}addOperationFromTransfer(e){const t=R(e,this);return this.addOperation(t),this}addOperation(e){return this.operations.includes(e)||this.operations.push(e),this}addLoopFromTransfer(e){const t=R(e,this);return this.addLoop(t),this}addLoop(e){return this.loops.includes(e)||this.loops.push(e),this}addSearchFromTransfer(e){const t=R(e,this);return this.addSearch(t),this}addSearch(e){return this.searches.includes(e)||this.searches.push(e),this}removeCustomEntity(e){const t=this.entities.findIndex(i=>i.id===e.id);if(t>-1){const i=this.entities[t];return this.entities.splice(t,1),i}return null}removeFunctionDeclaration(e){const t=this.functions.findIndex(i=>i.id===e.id);if(t>-1){const i=this.functions[t];return this.functions.splice(t,1),i}return null}removeExternalProject(e){const t=this.projects.findIndex(i=>i.id===e.id);if(t>-1){const i=this.projects[t];return this.projects.splice(t,1),i}return null}removeGlobalEvent(e){const t=this.events.findIndex(i=>i.id===e.id);if(t>-1){const i=this.events[t];return this.events.splice(t,1),i}return null}removeTopLevelVariableDeclaration(e){if(e.type!==r.VariableDeclaration)return null;const t=this.variableDeclarations.findIndex(i=>i.id===e.id);if(t>-1){const i=this.variableDeclarations[t];return this.variableDeclarations.splice(t,1),i}return null}getEntryPoints(){return[...this.functions,...this.events,...this.entities.flatMap(t=>t.methods)]}getFunctionDeclaration(e){return this.functions.find(t=>t.id===e)||null}getConditions(){return[...this.conditions,...this.getEntryPoints().reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.Condition)]},[]),...this.functionCalls.reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.Condition)]},[]),...this.operations.reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.Condition)]},[]),...this.loops.reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.Condition)]},[]),...this.searches.reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.Condition)]},[])]}getOperations(){return[...this.operations,...this.getEntryPoints().reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.Operation)]},[]),...this.functionCalls.reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.Operation)]},[]),...this.conditions.reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.Operation)]},[]),...this.loops.reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.Operation)]},[]),...this.searches.reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.Operation)]},[])]}getFunctionCalls(){return[...this.functionCalls,...this.getEntryPoints().reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.FunctionCall)]},[]),...this.conditions.reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.FunctionCall)]},[]),...this.operations.reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.FunctionCall)]},[]),...this.loops.reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.FunctionCall)]},[]),...this.searches.reduce((t,i)=>{const a=Ne(i);return[...t,...a.filter(s=>s.type===r.FunctionCall)]},[])]}getVariables(){return[...this.variableDeclarations,...this.getEntryPoints().reduce((t,i)=>{const a=z(i);return[...t,...a]},[]),...this.functionCalls.reduce((t,i)=>{const a=z(i);return[...t,...a]},[]),...this.conditions.reduce((t,i)=>{const a=z(i);return[...t,...a]},[]),...this.operations.reduce((t,i)=>{const a=z(i);return[...t,...a]},[]),...this.loops.reduce((t,i)=>{const a=z(i);return[...t,...a]},[]),...this.searches.reduce((t,i)=>{const a=z(i);return[...t,...a]},[])]}getVariableInstances(){return[...this.variableInstances,...this.getEntryPoints().reduce((t,i)=>{const s=z(i).filter(o=>o.type===r.VariableInstance);return[...t,...s]},[]),...this.functionCalls.reduce((t,i)=>{const s=z(i).filter(o=>o.type===r.VariableInstance);return[...t,...s]},[]),...this.conditions.reduce((t,i)=>{const s=z(i).filter(o=>o.type===r.VariableInstance);return[...t,...s]},[]),...this.operations.reduce((t,i)=>{const s=z(i).filter(o=>o.type===r.VariableInstance);return[...t,...s]},[]),...this.loops.reduce((t,i)=>{const s=z(i).filter(o=>o.type===r.VariableInstance);return[...t,...s]},[]),...this.searches.reduce((t,i)=>{const s=z(i).filter(o=>o.type===r.VariableInstance);return[...t,...s]},[])]}getVariableDeclarations(){return S([...this.variableDeclarations,...this.getEntryPoints().reduce((t,i)=>{const s=z(i).filter(o=>o.type===r.VariableDeclaration);return[...t,...s]},[]),...this.functionCalls.reduce((t,i)=>{const s=z(i).filter(o=>o.type===r.VariableDeclaration);return[...t,...s]},[]),...this.conditions.reduce((t,i)=>{const s=z(i).filter(o=>o.type===r.VariableDeclaration);return[...t,...s]},[]),...this.operations.reduce((t,i)=>{const s=z(i).filter(o=>o.type===r.VariableDeclaration);return[...t,...s]},[]),...this.loops.reduce((t,i)=>{const s=z(i).filter(o=>o.type===r.VariableDeclaration);return[...t,...s]},[]),...this.searches.reduce((t,i)=>{const s=z(i).filter(o=>o.type===r.VariableDeclaration);return[...t,...s]},[])])}attachOrphanReferences(){const e=this.getVariableInstances(),t=this.getVariableDeclarations();return e.forEach(i=>{if(!i.declaration){const a=i.initialData,s=a.declaration.entityId||a.declaration.id,o=t.find(u=>u.id===s);o&&i.setDeclaration(o)}}),this}getBuiltInPersistedEntity(){return this.builtInBaseEntities.find(e=>e.name===w.PERSISTED_ENTITY)||null}};l(pe,"MUTABLE_BASE_PROPERTIES",["name","description"]),l(pe,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),l(pe,"BASE_PROPERTIES",[...pe.MUTABLE_BASE_PROPERTIES,...pe.INMUTABLE_BASE_PROPERTIES]),l(pe,"MUTABLE_META_PROPERTIES",[...pe.MUTABLE_BASE_PROPERTIES,"x","y"]),l(pe,"INMUTABLE_META_PROPERTIES",[...pe.INMUTABLE_BASE_PROPERTIES]),l(pe,"META_PROPERTIES",[...pe.MUTABLE_META_PROPERTIES,...pe.INMUTABLE_META_PROPERTIES]),l(pe,"MUTABLE_UPSTREAM_PROPERTIES",[]),l(pe,"INMUTABLE_UPSTREAM_PROPERTIES",["primitives","builtInBaseEntities","operationDeclarations","globalEventActionDescriptors","loopDeclarations","builtInInstances"]),l(pe,"UPSTREAM_PROPERTIES",[...pe.MUTABLE_UPSTREAM_PROPERTIES,...pe.INMUTABLE_UPSTREAM_PROPERTIES]),l(pe,"MUTABLE_DOWNSTREAM_PROPERTIES",["entities","projects","functions","events","variableDeclarations","variableInstances","conditions","operations","functionCalls","loops","searches"]),l(pe,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),l(pe,"DOWNSTREAM_PROPERTIES",[...pe.MUTABLE_DOWNSTREAM_PROPERTIES,...pe.INMUTABLE_DOWNSTREAM_PROPERTIES]),l(pe,"PROPERTIES",[...pe.META_PROPERTIES,...pe.UPSTREAM_PROPERTIES,...pe.DOWNSTREAM_PROPERTIES]);let gr=pe;class Dv extends _e{constructor(t){super(Vt,t);l(this,"id",Pe.Parallel);l(this,"name",Pe.Parallel);l(this,"description","Execute a list of actions one after the other");l(this,"version",1);l(this,"autoexecutable",!0);l(this,"initialData",Vt);l(this,"type",r.ActionDescriptor);l(this,"fixedArguments",[]);l(this,"fixedReturns",[]);l(this,"error",null);l(this,"dynamicArgumentTypes",null);l(this,"dynamicReturnTypes",null);l(this,"project");l(this,"implementation",async()=>{});this.project=t,this.fixedArguments=Vt.fixedArguments.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.fixedReturns=Vt.fixedReturns.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.error=Vt.error?R(Vt.error,this.project):null}}class Av extends _e{constructor(t){super(lt,t);l(this,"id",lt.id);l(this,"name",lt.name);l(this,"description",lt.description);l(this,"version",lt.version);l(this,"autoexecutable",!1);l(this,"initialData",lt);l(this,"type",r.ActionDescriptor);l(this,"fixedArguments",[]);l(this,"fixedReturns",[]);l(this,"error",null);l(this,"dynamicArgumentTypes",null);l(this,"dynamicReturnTypes",null);l(this,"project");l(this,"implementation",async(t=[0])=>{const i=t[0];return[new Promise(s=>{setTimeout(()=>{s()},i)})]});this.project=t,this.fixedArguments=lt.fixedArguments.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.fixedReturns=lt.fixedReturns.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.error=lt.error?R(lt.error,this.project):null}}class Sv extends _e{constructor(t){super(tn,t);l(this,"id",Pe.Sequential);l(this,"name",Pe.Sequential);l(this,"description","Execute a list of actions one after the other");l(this,"version",1);l(this,"autoexecutable",!0);l(this,"initialData",tn);l(this,"type",r.ActionDescriptor);l(this,"fixedArguments",[]);l(this,"fixedReturns",[]);l(this,"error",null);l(this,"dynamicArgumentTypes",null);l(this,"dynamicReturnTypes",null);l(this,"project");l(this,"implementation",async(t=[[]])=>[[]]);this.project=t,this.fixedArguments=tn.fixedArguments.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.fixedReturns=tn.fixedReturns.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.error=tn.error?R(tn.error,this.project):null}}function p6(n){const e=[new Sv(n),new Dv(n),new Av(n),new _e(yi,n),new _e(Ar,n),new _e(Fn,n),new _e(Ta,n),new _e(po,n),new _e(fo,n),new _e(ho,n),new _e(ha,n),new _e(ui,n)];return e.forEach(t=>{t.initChildren(),n.subscribeBuiltInInstance(t)}),n.operationDeclarations=e,e}class Ov extends Ut{constructor(t){super(we,t);l(this,"initialData");l(this,"id",w.PERSISTED_ENTITY);l(this,"version",1);l(this,"name",w.PERSISTED_ENTITY);l(this,"description",we.description);l(this,"type",r.BuiltInBaseEntity);l(this,"abstract",we.abstract);l(this,"static",we.static);l(this,"properties",[]);l(this,"methods",[]);l(this,"abstractMethods",[]);l(this,"extends",[]);l(this,"errors",[]);l(this,"project");this.initialData=we,this.project=t,this.id=we.id,this.version=we.version,this.name=we.name,this.static=we.static,this.abstract=we.abstract,this.properties=this.initialData.properties.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.methods=this.initialData.methods.map(i=>{const a=R(i,this.project);return a.parent=this,a}),this.abstractMethods=this.initialData.abstractMethods.map(i=>{const a=R(i,this.project);return a.parent=this,a}),this.extends=this.initialData.extends.map(i=>R(i,this.project))}}function y6(n){const e=[new Ov(n),new Ut(Da,n),new Ut(Rn,n),new Ut(Mo,n),new Ut(Pa,n)];return e.forEach(t=>{n.subscribeBuiltInInstance(t)}),n.builtInBaseEntities=e,e}function h6(n){const e=[new $t(F,n),new $t(Ln,n),new $t(Be,n),new $t(Xe,n),new $t(En,n),new $t(Dr,n),new $t(ya,n),new $t(oo,n)];return e.forEach(t=>{n.subscribeBuiltInInstance(t)}),n.primitives=e,e}function f6(n){const e=[new _e(Ba,n)];return e.forEach(t=>{t.initChildren(),n.subscribeBuiltInInstance(t)}),n.globalEventActionDescriptors=e,e}function m6(n){const e=[new _e(xn,n),new _e(Ao,n)];return e.forEach(t=>{t.initChildren(),n.subscribeBuiltInInstance(t)}),n.loopDeclarations=e,e}function T6(n){const e=[new hr(Vo,n)];return e.forEach(t=>{t.initChildren(),n.subscribeBuiltInInstance(t)}),n.valueDescriptors=e,e}function E6(n){const e=[new _e(Un,n),new _e(Or,n)];return e.forEach(t=>{t.initChildren()}),n.conditionDeclarations=e,e}const ci={},no={};async function R6(n,e={}){const t={...VR};return t.id=n.id,e.empty?{data:{id:n.id,type:r.Project,version:1,name:null,description:null,projects:[],entities:[],operations:[],functions:[],variableDeclarations:[],variableInstances:[],functionCalls:[],conditions:[],loops:[],searches:[],events:[]}}:{data:t}}function Cv(n){const e=new gr(n);return h6(e),y6(e),p6(e),f6(e),m6(e),T6(e),E6(e),e.initChildren(),e}async function b6(n){try{if(n.id&&ci[n.id])return ci[n.id];if(n.id&&no[n.id])return await no[n.id],ci[n.id];const e=R6(n);n.id&&(no[n.id]=e);const t=await e;if(t.data){const i=Cv(t.data);return ci[n.id]=i,n.id&&delete no[n.id],i}return null}catch(e){return console.error("Error fetching project",e),null}}function g6(n){return ci[n.id]&&delete ci[n.id],null}const v6="test_primitive_entities_export";d.AI_VALUE_CONNECTION_GENERATION_ACTION_EXPLANATION=Xc,d.ActionDescriptorState=_e,d.ActionDescriptorValuesType=V,d.ActionInputMapState=c9,d.ActionOutputMapState=p9,d.AppendToListOperationInputIds=Yu,d.AppendToListOperationOutputIds=zu,d.ArgumentDeclarationState=pr,d.BREAK_AND_CONTINUE_STATEMENTS_RETURN_DECLARATIONS_EXPLANATION=Hc,d.BUILT_IN_BASE_ENTITY_IDS=Le,d.BUILT_IN_ENTITY_TYPES=Pr,d.BaseCanvasDraggableState=H8,d.BaseEntityNames=w,d.BaseState=W8,d.BaseValueDescriptorIds=vo,d.BreakStatementState=oi,d.BuiltInBaseEntityState=Ut,d.CALLABLE_ENTITIES_EXPLANATION=P9,d.CALLABLE_TYPES=Tn,d.CALLER_ENTITIES_EXPLANATION=wg,d.CALLER_TYPES=en,d.CALLS_UPDATE_EXPLANATION=Mn,d.COMPARISON_CONDITIONS=Jf,d.CONDITIONS=rI,d.CUSTOM_ENTITY_OPERATIONS=cy,d.CallableEntityClass=z8,d.CallerEntityClass=Uc,d.ChildEntityState=Y8,d.ComparisonOperatorTypes=Se,d.ConditionState=or,d.ContinueStatementState=ht,d.CreateNewInputIds=Fp,d.CreateNewOutputIds=xp,d.CustomEntityState=br,d.DRAGGABLE_CALLABLE_TYPES=ao,d.DRAGGABLE_CALLER_TYPES=gd,d.DRAGGABLE_ELEMENT_TYPES=so,d.DRAGGABLE_EXECUTABLE_TYPES=Mv,d.DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES=io,d.DataTypeCompatibilityTypes=Mt,d.DataTypeParentChildRelation=qe,d.DataTypeState=ri,d.ENTITIES_WITH_VALLUES_EXPLANATION=xs,d.ENTITY_TYPES=_v,d.ENTITY_WITH_LOGIC_SCOPE_TYPES=ot,d.ENTITY_WITH_NAMES_TYPES=vd,d.ENTITY_WITH_VALUE_TYPES=bd,d.ENTRY_POINT_ENTITIES_EXPLANATION=oa,d.ENTRY_POINT_TYPES=Ve,d.EVENT_TYPES=Ir,d.EXECUTABLE_TYPES=wv,d.EXECUTION_OPERATIONS=Gp,d.EntityError=Yn,d.EntityErrorSeverity=f,d.EntityGenerationError=E,d.EntityGenerationErrorCode=y,d.EntityInstanceErrorCode=_,d.EntityOperations=Ze,d.EntityType=r,d.EntityWithLogicScopeClass=K8,d.EntityWithValueClass=Q8,d.EntryPointEntityClass=Z8,d.ExecutionOperations=Pe,d.FunctionCallState=fr,d.FunctionDeclarationState=ir,d.GLOBAL_EVENT_DECLARATIONS=iI,d.GetLastInListOperationInputIds=Vu,d.GetLastInListOperationOutputIds=Lu,d.GlobalEventNames=Kt,d.GlobalEventState=ii,d.HTTPOperations=Ye,d.HTTP_OPERATIONS=ky,d.InputMapState=hn,d.InstalledProjectState=ur,d.InternalCallState=ai,d.JoinListOperationInputIds=nu,d.JoinListOperationOutputIds=ru,d.JoinStringOperationInputIds=jd,d.JoinStringOperationOutputIds=kd,d.LIST_OPERATIONS=lp,d.ListOperations=j,d.LoopState=sr,d.LoopTypes=je,d.NON_INTERACTIVE_BASE_ENTITIES_EXPLANATION=_n,d.NUMBER_OPERATIONS=Ud,d.NumberAdditionOperationInputIds=Od,d.NumberAdditionOperationOutputIds=Cd,d.NumberOperations=st,d.OPERATION_DECLARATIONS=$v,d.OperationState=ar,d.OutputMapParentChildRelation=Rd,d.OutputMapState=fn,d.PARENT_AUTO_CALCULATION_FROM_CALLER_EXPLANATION=Us,d.PASS_THROUGH_CALLABLE_ENTITIES_EXPLANATION=wn,d.PASS_THROUGH_CALLABLE_TYPES=$e,d.PROPERTY_NOT_VALUE_READER_WRITTER_EXPLANATION=Zc,d.ParallelExecutionOperation=Dv,d.ParallelExecutionOperationInputIds=cp,d.ParallelExecutionOperationOutputIds=dp,d.PassThroughCallableEntityClass=X8,d.PersistedEntity=Ov,d.PersistedEntityMethods=It,d.PrimitiveEntityState=$t,d.PrimitiveTypes=g,d.PrimitiveValueState=si,d.ProjectState=gr,d.PropertyState=rr,d.RETURN_STATEMENT_RETURN_DECLARATIONS_EXPLANATION=D9,d.ReturnDeclarationState=Ct,d.ReturnStatementState=yr,d.STANDALONE_CONDITIONS=Ff,d.STRING_OPERATIONS=tu,d.ScopeCompatibilityType=Qs,d.SearchState=dr,d.SequentialExecutionOperation=Sv,d.SequentialExecutionOperationInputIds=Sp,d.SequentialExecutionOperationOutputIds=Op,d.SharedEntityErrorCode=v,d.SharedStateFunctionality=Og,d.SplitListOperationInputIds=Eu,d.SplitListOperationOutputIds=Ru,d.StandaloneOperatorTypes=Bt,d.StringOperations=ve,d.TERMINATION_TYPES=Ce,d.USER_MANAGED_ENTITY_TYPES=Nv,d.UUID=G,d.UserManagedEntityStateFunctionality=J8,d.VALUE_READING_ENTITIES_EXPLANATION=zc,d.VALUE_READING_TYPES=Vn,d.VALUE_WRITING_ENTITIES_EXPLANATION=Mg,d.VALUE_WRITING_TYPES=Oe,d.VARIABLE_DATA_TYPE_INFERRANCE_EXPLANATION=Yc,d.VARIABLE_TYPES=Fe,d.ValidationInputIds=zp,d.ValidationOutputIds=Zp,d.ValueAutogenerationType=Ue,d.ValueDescriptorParentChildRelation=C,d.ValueDescriptorState=hr,d.ValueReadingEntityClass=aa,d.ValueWritingEntityClass=sa,d.VariableDeclarationState=lr,d.VariableInputMapState=l9,d.VariableInstanceState=cr,d.VariableOutputMapState=u9,d.WaitOperation=Av,d.WaitOperationInputIds=bp,d.WaitOperationOutputIds=gp,d.appendToListOperation=Ta,d.appendToListOperationElementToAppendArgument=To,d.appendToListOperationElementToAppendArgumentParentRef=rp,d.appendToListOperationElementToAppendArgumentRef=Qu,d.appendToListOperationError=op,d.appendToListOperationErrorParentRef=sp,d.appendToListOperationListArgument=mo,d.appendToListOperationListArgumentParentRef=np,d.appendToListOperationListArgumentRef=Zu,d.appendToListOperationListDataType=Xu,d.appendToListOperationResultListDataType=tp,d.appendToListOperationResultListReturn=ap,d.appendToListOperationResultListReturnParentRef=ip,d.appendToListOperationResultListReturnRef=ep,d.appendToListOperationSecondListDataType=Ku,d.asGenerationActionExample=Xt,d.baseHttpRequestFunctionDeclaration=yi,d.baseHttpRequestFunctionDeclarationErrorValueDescriptor=Do,d.baseHttpRequestFunctionDeclarationErrorValueDescriptorDatatype=jy,d.baseHttpRequestFunctionDeclarationErrorValueDescriptorRef=Uy,d.baseHttpRequestFunctionDeclarationRef=Ly,d.baseHttpRequestFunctionDeclarationRefEight=Fy,d.baseHttpRequestFunctionDeclarationRefFive=$y,d.baseHttpRequestFunctionDeclarationRefFour=Ny,d.baseHttpRequestFunctionDeclarationRefNine=xy,d.baseHttpRequestFunctionDeclarationRefSeven=Gy,d.baseHttpRequestFunctionDeclarationRefSix=Vy,d.baseHttpRequestFunctionDeclarationRefThree=_y,d.baseHttpRequestFunctionDeclarationRefTwo=My,d.booleanPrototype=Ln,d.capitalizeFirstLetter=os,d.checkAreCustomEntitiesCompatibleAsDataType=Yb,d.checkAreDataTypesCompatible=fs,d.checkArePropertiesCompatibleAsDataType=Hb,d.checkIsBranchDependentButNotDirectlyOnBranch=ca,d.checkIsBranchDependentOnBranch=N9,d.checkIsCallableEntityReachable=dd,d.checkIsCanvasEntity=z9,d.checkIsDetachedBranch=cv,d.checkIsDetachedBranchShallow=ld,d.checkIsGlobalVariable=Y9,d.checkIsGloballyDeclared=od,d.checkIsMethod=pv,d.checkIsNestedScope=Xs,d.checkScopeCompatibility=da,d.createEntityError=H,d.createNewInstanceOperation=Ar,d.createNewInstanceOperationEntityToInstanciateArgument=qp,d.createNewInstanceOperationEntityToInstanciateArgumentRef=Up,d.createNewInstanceOperationEntityToInstanciateDataType=jp,d.createNewInstanceOperationError=Yp,d.createNewInstanceOperationErrorParentRef=Hp,d.createNewInstanceOperationOutputEntityDeclaration=Wp,d.createNewInstanceOperationOutputEntityDeclarationParentRef=Jp,d.createNewInstanceOperationRef=kp,d.createSemanticId=Qt,d.createStateFromGenerationTargetType=u6,d.createStateFromType=pa,d.createStateFromTypeAndSubscribe=R,d.cronJobBuiltInBaseEntity=Mo,d.cronJobBuiltInBaseEntityExpressionProperty=$f,d.cronJobBuiltInBaseEntityExpressionPropertyDataTypeRef=eI,d.cronJobBuiltInBaseEntityExpressionPropertyRef=_f,d.cronJobBuiltInBaseEntityRef=Nf,d.cronJobTriggeredFunctionDeclarationBlueprint=wo,d.cronJobTriggeredFunctionDeclarationBlueprintParentRef=wf,d.customEntityToZodSchema=cm,d.dataTypeCompatibilityToErrorExplanation=xg,d.datePrototype=Dr,d.dateValueAutogenerationSchema=Mc,d.deletePersistedEntityMethod=Bo,d.deletePersistedEntityMethodParentRef=cf,d.deleteRootProject=g6,d.endpointBuiltInBaseEntity=Da,d.endpointBuiltInBaseEntityRef=dh,d.endpointBuiltInBaseEntityRefFour=Qh,d.endpointBuiltInBaseEntityRefThree=Rh,d.endpointBuiltInBaseEntityRefTwo=fh,d.endpointBuiltInCorsProperty=uh,d.endpointBuiltInCorsPropertyDataType=ch,d.endpointBuiltInCorsPropertyDataTypeRef=oh,d.endpointBuiltInCorsPropertyRef=lh,d.endpointBuiltInMethodProperty=Oo,d.endpointBuiltInMethodPropertyDataType=Eh,d.endpointBuiltInMethodPropertyDataTypeRef=mh,d.endpointBuiltInMethodPropertyRef=Th,d.endpointBuiltInPathProperty=So,d.endpointBuiltInPathPropertyDataType=hh,d.endpointBuiltInPathPropertyDataTypeRef=ph,d.endpointBuiltInPathPropertyRef=yh,d.endpointPathParamsArgumentDeclaration=Nh,d.endpointPathParamsArgumentDeclarationRef=Ch,d.endpointPathParamsVariableDataType=Bh,d.endpointPathParamsVariableDataTypeRef=Oh,d.endpointReachedTriggerActionDescriptor=Co,d.endpointReachedTriggerActionDescriptorRef=wh,d.endpointReachedTriggerActionDescriptorRefFour=Lh,d.endpointReachedTriggerActionDescriptorRefThree=$h,d.endpointReachedTriggerActionDescriptorRefTwo=_h,d.endpointRequestBodyArgumentDeclaration=Gh,d.endpointRequestBodyArgumentDeclarationRef=Ih,d.endpointRequestBodyVariableDataType=Ph,d.endpointRequestHeadersArgumentDeclaration=Mh,d.endpointRequestHeadersArgumentDeclarationRef=gh,d.endpointRequestHeadersVariableDataType=vh,d.endpointRequestHeadersVariableDataTypeRef=bh,d.endpointRequestQueryParamsArgumentDeclaration=Vh,d.endpointRequestQueryParamsArgumentDeclarationRef=Ah,d.endpointRequestQueryParamsVariableDataType=Sh,d.endpointRequestQueryParamsVariableDataTypeRef=Dh,d.endpointResponseBodyDataType=zh,d.endpointResponseBodyReturnDeclaration=Xh,d.endpointResponseBodyReturnDeclarationRef=Yh,d.endpointResponseCodeDataType=xh,d.endpointResponseCodeReturnDeclaration=jh,d.endpointResponseCodeReturnDeclarationRef=Fh,d.endpointResponseHeadersDataType=Jh,d.endpointResponseHeadersDataTypeRef=kh,d.endpointResponseHeadersReturnDeclaration=Hh,d.endpointResponseHeadersReturnDeclarationRef=qh,d.endpointReturnStatementRef=Uh,d.endpointReturnStatementRefThree=Zh,d.endpointReturnStatementRefTwo=Wh,d.enumOptionsProperty=Sd,d.enumOptionsPropertyDataType=Dd,d.enumOptionsPropertyDataTypeRef=Id,d.enumOptionsPropertyRef=Pd,d.enumPrototype=En,d.enumPrototypeRef=Ad,d.executionBuiltInEntity=No,d.executionBuiltInEntityAbortMethod=_o,d.executionBuiltInEntityAbortMethodParentRef=Vf,d.filterOutDuplicateEntities=S,d.filterOutDuplicateErrors=rF,d.findReferenceToSelfInList=ev,d.findReferencesToSelfInProject=j9,d.flattenCalls=mr,d.flattenCanvasAncestorsUntil=Ws,d.flattenCustomEntityExtensionAndImplementationTypes=av,d.flattenCustomEntityExtensionTypes=zs,d.flattenCustomEntityExtensions=ad,d.flattenCustomEntityImplementations=sd,d.flattenCustomEntityImplementionTypes=Ys,d.flattenDerivedCanvasEntities=vt,d.flattenDetachedBranch=uv,d.flattenElementCalls=Ne,d.flattenProjectElements=Kg,d.flattenRelatedCanvasElementsOnTheLeft=iv,d.flattenRelatedCanvasElementsOnTheRight=rv,d.flattenVariableReads=Qg,d.flattenVariableWrites=Xg,d.flattenVariables=z,d.fromZodParseToEntityGenerationErrors=qc,d.generate=OP,d.generateActionExample=A9,d.generateExecutionDataType=zb,d.generateMutablePropertiesExplanation=Ls,d.generateRandomBoolean=Bm,d.generateRandomDate=ym,d.generateRandomDateAfter=dm,d.generateRandomDateBefore=um,d.generateRandomDateBetweenRange=pm,d.generateRandomNumber=Dm,d.generateRandomNumberAfter=vm,d.generateRandomNumberBefore=Im,d.generateRandomNumberBetweenRange=Pm,d.generateRandomText=Cm,d.generateRandomTextAfter=Am,d.generateRandomTextBefore=Sm,d.generateRandomTextBetweenRange=Om,d.generateUniqueUUID=gm,d.getAllActionDescriptorsForConditions=qs,d.getAllActionDescriptorsForGlobalEvents=js,d.getAllActionDescriptorsForLoops=ks,d.getAllActionDescriptorsForOperations=B9,d.getAllGloballyDeclaredFunctionDeclarationsExplanation=Lg,d.getBaseBuiltInEntities=$n,d.getBaseSchemaBasedOnType=Cg,d.getBuiltInEntityOwner=Er,d.getCallableEntityReferenceSchema=ke,d.getCallableEntityTypeSchema=Pg,d.getCallerEntityReferenceSchema=s8,d.getCallerEntityTypeSchema=a8,d.getCalls=ed,d.getCanvasEntitiesDerivedFromInternalCalls=nv,d.getCanvasEntitiesDerivedFromWrites=li,d.getCanvasEntityDerivedFromValueReadingEntity=id,d.getCanvasEntityReferenceSchema=I8,d.getCanvasEntityTypeSchema=v8,d.getChildrenEntityWithValues=V9,d.getCommonAncestor=Kc,d.getCommonChildren=kg,d.getDeclaration=jc,d.getDeepestScope=fv,d.getDraggableCallableEntityReferenceSchema=Ag,d.getDraggableCallableEntityTypeSchema=Dg,d.getDraggableCallerEntityReferenceSchema=l8,d.getDraggableCallerEntityTypeSchema=o8,d.getDraggableExecutableEntityReferenceSchema=p8,d.getDraggableExecutableEntityTypeSchema=u8,d.getDraggablePassThroughCallableEntityReferenceSchema=Vs,d.getDraggablePassThroughCallableEntityTypeSchema=$s,d.getDraggablePlayableEntityReferenceSchema=T8,d.getDraggablePlayableEntityTypeSchema=m8,d.getEntityArgumentDeclarations=nd,d.getEntityInputMaps=tv,d.getEntityOutputMaps=J9,d.getEntityReferenceSchema=g8,d.getEntityReturnDeclarations=rd,d.getEntityTypeSchema=b8,d.getEntityWithLogicScopeReferenceSchema=pn,d.getEntityWithLogicScopeTypeSchema=y8,d.getEntityWithValueReferenceSchema=Ig,d.getEntityWithValueTypeSchema=i8,d.getEntryPointEntityReferenceSchema=xe,d.getEntryPointEntityTypeSchema=Bn,d.getEventEntityReferenceSchema=_s,d.getEventEntityTypeSchema=Ms,d.getExecutableEntityReferenceSchema=d8,d.getExecutableEntityTypeSchema=c8,d.getExtendedBuiltInEntity=W9,d.getExtendedCustomEntity=ov,d.getGenerationTargetSchemaBasedOnType=Bg,d.getHeadIfPartOfDetachedBranch=dv,d.getHighestScope=hv,d.getImplementedBuiltInEntity=H9,d.getIsInteractive=lv,d.getLastInListOperation=fo,d.getLastInListOperationError=Hu,d.getLastInListOperationErrorParentRef=Wu,d.getLastInListOperationInputListArgument=ku,d.getLastInListOperationInputListArgumentParentRef=ju,d.getLastInListOperationInputListArgumentRef=Gu,d.getLastInListOperationInputListDataType=Fu,d.getLastInListOperationOutputElementDataType=Uu,d.getLastInListOperationOutputElementReturn=Ju,d.getLastInListOperationOutputElementReturnParentRef=qu,d.getLastInListOperationOutputElementReturnRef=xu,d.getLinkedEntitiesFromArgumentDeclaration=U9,d.getLowestPersistedEntityImplementation=sv,d.getParentCanvasEntities=_t,d.getParentCanvasEntity=He,d.getParentEntryPoint=$9,d.getPassThroughCallableEntityReferenceSchema=ye,d.getPassThroughCallableEntityTypeSchema=Ns,d.getPlayableEntityReferenceSchema=f8,d.getPlayableEntityTypeSchema=h8,d.getProject=b6,d.getPrototypeByType=Zs,d.getReferenceEntityId=D,d.getReferencedEntitiesStateOrErrors=Fs,d.getReferencedEntityStateOrErrors=Jc,d.getRelatedCanvasElementsOnTheLeft=Tr,d.getRelatedCanvasElementsOnTheRight=Nn,d.getRootEntryPointScopeOwner=cd,d.getScopeOwner=ft,d.getTerminationReferenceSchema=R8,d.getTerminationTypeSchema=E8,d.getUsedArgFromDeclaration=k9,d.getUsedReturnFromDeclaration=q9,d.getValueReadingEntityReferenceSchema=vg,d.getValueReadingEntityTypeSchema=un,d.getValueWritingEntityReferenceSchema=r8,d.getValueWritingEntityTypeSchema=ia,d.getVariableFromInputMapping=Jg,d.getVariableFromReturnVariablePointer=Yg,d.getVariableReferenceSchema=Cn,d.getVariableTypeSchema=tr,d.getVariablesFromArgumentDeclarations=Hs,d.getVariablesFromInputMaps=Wg,d.getVariablesFromOutputMapping=zg,d.getVariablesFromOutputMaps=Zg,d.getVariablesFromReturnDeclarations=Hg,d.getVariablesInSameOrHigherScope=kc,d.getWrites=td,d.groupCallsBasedOnParallelizableExecution=G9,d.handleAfterEntityImplementationSideEffects=jg,d.handleBeforeEntityImplementationSideEffects=Ug,d.httpRequestBodyArgument=ga,d.httpRequestBodyArgumentRef=vy,d.httpRequestBodyDataType=Iy,d.httpRequestHeadersArgument=ba,d.httpRequestHeadersArgumentRef=by,d.httpRequestHeadersDataType=gy,d.httpRequestMethodArgument=Ea,d.httpRequestMethodArgumentRef=Ey,d.httpRequestMethodDataType=Ry,d.httpRequestMethodDataTypeRef=my,d.httpRequestQueryParamsArgument=Io,d.httpRequestQueryParamsArgumentRef=hy,d.httpRequestQueryParamsDataType=fy,d.httpRequestVariableURLArgument=Ra,d.httpRequestVariableURLArgumentRef=py,d.httpRequestVariableURLDataType=yy,d.httpRequestVariableURLDataTypeRef=dy,d.httpResponseBodyReturnDataType=wy,d.httpResponseBodyReturnDataTypeRef=Cy,d.httpResponseBodyReturnReturn=pi,d.httpResponseBodyReturnReturnRef=By,d.httpResponseCodeDataType=Dy,d.httpResponseCodeReturn=Po,d.httpResponseCodeReturnRef=Py,d.httpResponseHeadersDataType=Oy,d.httpResponseHeadersDataTypeRef=Ay,d.httpResponseHeadersReturn=va,d.httpResponseHeadersReturnRef=Sy,d.implement=Js,d.inferArgumentDeclarationDataType=Zb,d.inferDataType=ms,d.inferInputMapDataType=Xb,d.inferOutputMapDataType=eg,d.inferVariableDeclarationDataType=Kb,d.inferVariableInstanceDataType=Qb,d.initProject=Cv,d.iterateOverListActionDescriptor=xn,d.iterateOverListActionDescriptorListArgumentDeclaration=Zy,d.iterateOverListActionDescriptorListArgumentDeclarationDataType=Yy,d.iterateOverListActionDescriptorListArgumentDeclarationDataTypeParentRef=Hy,d.iterateOverListActionDescriptorListArgumentDeclarationParentRef=zy,d.iterateOverListActionDescriptorReturnDeclaration=Wy,d.iterateOverListActionDescriptorReturnDeclarationParentRef=Jy,d.joinListOperation=po,d.joinListOperationError=Tu,d.joinListOperationErrorParentRef=mu,d.joinListOperationFirstListArgument=uu,d.joinListOperationFirstListArgumentParentRef=du,d.joinListOperationFirstListArgumentRef=iu,d.joinListOperationFirstListDataType=au,d.joinListOperationResultListDataType=cu,d.joinListOperationResultListReturn=fu,d.joinListOperationResultListReturnParentRef=hu,d.joinListOperationResultListReturnRef=lu,d.joinListOperationSecondListArgument=yu,d.joinListOperationSecondListArgumentParentRef=pu,d.joinListOperationSecondListArgumentRef=su,d.joinListOperationSecondListDataType=ou,d.joinListWithLastSeparator=N,d.joinStringOperation=ui,d.joinStringOperationError=eu,d.joinStringOperationErrorParentRef=Kd,d.joinStringOperationFirstStringArgument=fa,d.joinStringOperationFirstStringArgumentParentRef=Zd,d.joinStringOperationFirstStringArgumentRef=qd,d.joinStringOperationFirstStringDataType=Jd,d.joinStringOperationResultStringDataType=zd,d.joinStringOperationResultStringReturn=di,d.joinStringOperationResultStringReturnParentRef=Qd,d.joinStringOperationResultStringReturnRef=Yd,d.joinStringOperationSecondStringArgument=ma,d.joinStringOperationSecondStringArgumentParentRef=Xd,d.joinStringOperationSecondStringArgumentRef=Wd,d.joinStringOperationSecondStringDataType=Hd,d.jsonPrototype=oo,d.keyValueParamBuiltInBaseEntity=Pa,d.keyValueParamBuiltInBaseEntityNameProperty=rh,d.keyValueParamBuiltInBaseEntityNamePropertyDataTypeRef=Lv,d.keyValueParamBuiltInBaseEntityNamePropertyParentRef=nh,d.keyValueParamBuiltInBaseEntityNamePropertyRef=th,d.keyValueParamBuiltInBaseEntityValueProperty=sh,d.keyValueParamBuiltInBaseEntityValuePropertyDataTypeRef=Fv,d.keyValueParamBuiltInBaseEntityValuePropertyParentRef=ah,d.keyValueParamBuiltInBaseEntityValuePropertyRef=ih,d.lowercaseFirstLetter=LR,d.manualFlowActionDescriptor=Ao,d.manualFlowActionDescriptorDeclarationReturnDeclaration=eh,d.manualFlowActionDescriptorDeclarationReturnDeclarationDataType=Qy,d.manualFlowActionDescriptorDeclarationReturnDeclarationDataTypeParentRef=Xy,d.manualFlowActionDescriptorDeclarationReturnDeclarationParentRef=Ky,d.mapActionDescriptorToTypeItRepresents=Z9,d.mergeEntityErrorsList=iF,d.mergeListOfEntities=yv,d.methodDefaultValue=Ty,d.mockClientProject=VR,d.moreThanOrEqualCondition=Or,d.moreThanOrEqualConditionLeftHandArgument=jf,d.moreThanOrEqualConditionLeftHandArgumentParentRef=Uf,d.moreThanOrEqualConditionRightHandArgument=qf,d.moreThanOrEqualConditionRightHandArgumentParentRef=kf,d.notEmptyCondition=Un,d.notEmptyConditionArgument=Gf,d.notEmptyConditionRef=Lf,d.numberAdditionOperation=ha,d.numberAdditionOperationError=xd,d.numberAdditionOperationErrorParentRef=Fd,d.numberAdditionOperationFirstNumberArgument=lo,d.numberAdditionOperationFirstNumberArgumentRef=Bd,d.numberAdditionOperationFirstNumberDataType=wd,d.numberAdditionOperationRef=Vd,d.numberAdditionOperationRefThree=Gd,d.numberAdditionOperationRefTwo=Ld,d.numberAdditionOperationResultNumberDataType=$d,d.numberAdditionOperationResultNumberReturn=uo,d.numberAdditionOperationResultNumberReturnRef=Nd,d.numberAdditionOperationSecondNumberArgument=co,d.numberAdditionOperationSecondNumberArgumentRef=Md,d.numberAdditionOperationSecondNumberDataType=_d,d.numberPrototype=Be,d.numberValueAutogenerationSchema=wc,d.parallelExecutionOperation=Vt,d.parallelExecutionOperationError=Rp,d.parallelExecutionOperationErrorParentRef=Ep,d.parallelExecutionOperationListOfExecutionResultsDataType=fp,d.parallelExecutionOperationListOfExecutionResultsReturn=Ro,d.parallelExecutionOperationListOfExecutionResultsReturnRef=hp,d.parallelExecutionOperationListOfFunctionsArgument=Eo,d.parallelExecutionOperationListOfFunctionsArgumentDatatype=yp,d.parallelExecutionOperationListOfFunctionsArgumentRef=pp,d.parallelExecutionOperationListOfFunctionsBlueprint=up,d.parallelExecutionOperationRef=mp,d.parallelExecutionOperationRefThree=Tp,d.persistedBuiltInBaseEntity=we,d.persistedBuiltInBaseEntityCreatedAtProperty=Af,d.persistedBuiltInBaseEntityCreatedAtPropertyDataType=Pf,d.persistedBuiltInBaseEntityCreatedAtPropertyDataTypeRef=Qv,d.persistedBuiltInBaseEntityCreatedAtPropertyParentRef=Df,d.persistedBuiltInBaseEntityCreatedAtPropertyRef=If,d.persistedBuiltInBaseEntityDatabaseProperty=fi,d.persistedBuiltInBaseEntityDatabasePropertyDataTypeRef=Yv,d.persistedBuiltInBaseEntityDatabasePropertyParentRef=hf,d.persistedBuiltInBaseEntityDatabasePropertyRef=yf,d.persistedBuiltInBaseEntityDeletedAtProperty=vf,d.persistedBuiltInBaseEntityDeletedAtPropertyDataType=bf,d.persistedBuiltInBaseEntityDeletedAtPropertyDataTypeRef=Xv,d.persistedBuiltInBaseEntityDeletedAtPropertyParentRef=gf,d.persistedBuiltInBaseEntityDeletedAtPropertyRef=Rf,d.persistedBuiltInBaseEntityIdentifierProperty=Ef,d.persistedBuiltInBaseEntityIdentifierPropertyDataTypeRef=ff,d.persistedBuiltInBaseEntityIdentifierPropertyParentRef=Tf,d.persistedBuiltInBaseEntityIdentifierPropertyRef=mf,d.persistedBuiltInBaseEntityUpdatedAtProperty=Bf,d.persistedBuiltInBaseEntityUpdatedAtPropertyDataType=Of,d.persistedBuiltInBaseEntityUpdatedAtPropertyDataTypeRef=Kv,d.persistedBuiltInBaseEntityUpdatedAtPropertyParentRef=Cf,d.persistedBuiltInBaseEntityUpdatedAtPropertyRef=Sf,d.processOutputGlobalValueDescriptorDataType=Hf,d.processOutputGlobalValueDescriptorReturn=Vo,d.processOutputGlobalValueDescriptorReturnRef=Wf,d.projectPublicationCompletedGlobalEvent=Ba,d.propertyToZodSchema=lm,d.relationalDatabaseBuiltInBaseEntity=Rn,d.relationalDatabaseBuiltInBaseEntityDefaultProperty=lf,d.relationalDatabaseBuiltInBaseEntityDefaultPropertyDataTypeRef=sf,d.relationalDatabaseBuiltInBaseEntityDefaultPropertyRef=of,d.relationalDatabaseBuiltInBaseEntityIdentifierProperty=Aa,d.relationalDatabaseBuiltInBaseEntityIdentifierPropertyDataTypeRef=Kh,d.relationalDatabaseBuiltInBaseEntityIdentifierPropertyRef=ef,d.relationalDatabaseBuiltInBaseEntityMinSizeProperty=Ca,d.relationalDatabaseBuiltInBaseEntityMinSizePropertyDataTypeRef=rf,d.relationalDatabaseBuiltInBaseEntityMinSizePropertyRef=af,d.relationalDatabaseBuiltInBaseEntityPasswordProperty=Oa,d.relationalDatabaseBuiltInBaseEntityPasswordPropertyDataTypeRef=qv,d.relationalDatabaseBuiltInBaseEntityPasswordPropertyRef=nf,d.relationalDatabaseBuiltInBaseEntityRef=Sr,d.relationalDatabaseBuiltInBaseEntityUsernameProperty=Sa,d.relationalDatabaseBuiltInBaseEntityUsernamePropertyDataTypeRef=jv,d.relationalDatabaseBuiltInBaseEntityUsernamePropertyRef=tf,d.resolveActionDescriptorName=Pv,d.resolveBaseEntityName=gv,d.resolveBuiltInBaseEntityDataTypeLabel=ud,d.resolveConditionOperatorLabel=eo,d.resolveCustomEntityDataTypeLabel=pd,d.resolveDataType=ac,d.resolveDataTypeLabel=Ev,d.resolveEntityDataTypeLabel=bv,d.resolveEntityName=A,d.resolveFirstCallsSecond=F9,d.resolveFirstWritesSecond=x9,d.resolvePrimitiveEntityName=Iv,d.resolvePropertyDataTypeLabel=Rv,d.resolveSearchName=vv,d.resolveVariableDataTypeLabel=K9,d.resolveVariableDeclarationDataTypeLabel=Rr,d.resolveVariableInstanceDataTypeLabel=Tv,d.resolveVariableScope=o9,d.sequentialExecutionOperation=tn,d.sequentialExecutionOperationError=Lp,d.sequentialExecutionOperationErrorParentRef=Vp,d.sequentialExecutionOperationListOfExecutionResultsDataType=_p,d.sequentialExecutionOperationListOfExecutionResultsReturn=go,d.sequentialExecutionOperationListOfExecutionResultsReturnParentRef=$p,d.sequentialExecutionOperationListOfExecutionResultsReturnRef=Mp,d.sequentialExecutionOperationListOfFunctionsArgument=bo,d.sequentialExecutionOperationListOfFunctionsArgumentDatatype=wp,d.sequentialExecutionOperationListOfFunctionsArgumentParentRef=Np,d.sequentialExecutionOperationListOfFunctionsArgumentRef=Bp,d.sequentialExecutionOperationListOfFunctionsBlueprint=Cp,d.softDeletePersistedEntityMethod=uf,d.softDeletePersistedEntityMethodParentRef=df,d.sortCallsBasedOnExecutionDependencies=qg,d.sortChildrenEntitiesBasedOnExecutionDependencies=L9,d.splitListOperation=ho,d.splitListOperationError=$u,d.splitListOperationErrorParentRef=Nu,d.splitListOperationFirstOutputListDataType=Pu,d.splitListOperationFirstOutputListReturn=Bu,d.splitListOperationFirstOutputListReturnParentRef=Cu,d.splitListOperationFirstOutputListReturnRef=yo,d.splitListOperationInputListArgument=Au,d.splitListOperationInputListArgumentParentRef=Du,d.splitListOperationInputListArgumentRef=bu,d.splitListOperationInputListDataType=gu,d.splitListOperationSecondOutputListDataType=wu,d.splitListOperationSecondOutputListReturn=_u,d.splitListOperationSecondOutputListReturnParentRef=Mu,d.splitListOperationSplitIndexArgument=Ou,d.splitListOperationSplitIndexArgumentParentRef=Su,d.splitListOperationSplitIndexArgumentRef=vu,d.splitListOperationSplitIndexDataType=Iu,d.stringPrototype=F,d.stringValueAutogenerationSchema=Bc,d.suggestNewIdForEntity=Ed,d.test_primitive_entities_export=v6,d.toCamelCase=X9,d.toEntityState=Nt,d.toKebabCase=mv,d.toLowerCaseKebabCase=Ks,d.toPascalCase=Q9,d.untypedObjectPrototype=Xe,d.updateErrorsList=Z,d.updateValueReader=ua,d.urlDefaultValue=uy,d.uuidPrototype=ya,d.validateArgumentDeclarationName=md,d.validateCalledByErrorIdInAction=O9,d.validateCalledByIdInAction=S9,d.validateCallers=Vg,d.validateConditionEntityDeclaration=w9,d.validateCustomEntityName=to,d.validateDataOperation=Fn,d.validateDataOperationDataToValidateArgument=ey,d.validateDataOperationDataToValidateArgumentParentRef=Kp,d.validateDataOperationDataToValidateArgumentRef=Xp,d.validateDataOperationDataToValidateDataType=Qp,d.validateDataOperationEntityToMatchTypeArgument=iy,d.validateDataOperationEntityToMatchTypeArgumentParentRef=ry,d.validateDataOperationEntityToMatchTypeArgumentRef=ty,d.validateDataOperationEntityToMatchTypeDataType=ny,d.validateDataOperationError=ly,d.validateDataOperationErrorParentRef=oy,d.validateDataOperationOutputEntityDeclaration=sy,d.validateDataOperationOutputEntityDeclarationParentRef=ay,d.validateEntryCaller=$g,d.validateErrorCaller=Ng,d.validateFunctionCallDeclaration=Gg,d.validateFunctionDeclarationName=yd,d.validateGeneratedEntityParentIsNotBuiltInEntity=I9,d.validateGeneration=g9,d.validateGenerationTarget=De,d.validateGenerationUpdate=v9,d.validateLoopEntityDeclaration=M9,d.validateName=e6,d.validateOperationEntityDeclaration=Fg,d.validatePropertyName=fd,d.validateReachability=mn,d.validateReadsValueInActionPayload=C9,d.validateReferenceObject=Gs,d.validateReferenceToOne=Wc,d.validateReferences=Ge,d.validateReturnDeclarationName=Td,d.validateSuccessCaller=_g,d.validateValueReaderGenerationUpdate=la,d.validateValueWritter=Qc,d.validateVariableDeclarationName=hd,d.valueAutogenerationCurrentDateAndTimeSchema=lg,d.valueAutogenerationGenericSchema=As,d.valueAutogenerationOptions=_c,d.valueAutogenerationOptionsSchema=og,d.valueAutogenerationRandomBooleanSchema=Cc,d.valueAutogenerationRandomDateBetweenSchema=Tg,d.valueAutogenerationRandomDateFromSchema=fg,d.valueAutogenerationRandomDateSchema=Cs,d.valueAutogenerationRandomDateUntilSchema=mg,d.valueAutogenerationRandomNumberBetweenSchema=ug,d.valueAutogenerationRandomNumberFromSchema=cg,d.valueAutogenerationRandomNumberSchema=Ss,d.valueAutogenerationRandomNumberUntilSchema=dg,d.valueAutogenerationRandomSchema=ra,d.valueAutogenerationRandomTextBetweenSchema=hg,d.valueAutogenerationRandomTextFromSchema=pg,d.valueAutogenerationRandomTextSchema=Os,d.valueAutogenerationRandomTextUntilSchema=yg,d.valueAutogenerationRangeValueTypesSchema=na,d.valueAutogenerationUniqueSchema=Oc,d.waitOperation=lt,d.waitOperationMillisecondsNumberArgument=Gn,d.waitOperationMillisecondsNumberArgumentRef=vp,d.waitOperationMillisecondsNumberDataType=Ip,d.waitOperationOperationError=Ap,d.waitOperationOperationErrorParentRef=Dp,d.waitOperationRef=Pp,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elyx-code/project-logic-tree",
3
- "version": "0.0.5",
3
+ "version": "0.0.51",
4
4
  "author": "Sergio Herrero",
5
5
  "license": "UNLICENSED",
6
6
  "description": "An installable module which contains the type definitions and ephemeral state management for a projects' logic tree data structure",