@elyx-code/project-logic-tree 0.0.6051 → 0.0.6052

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
@@ -43507,7 +43507,7 @@ class Vt {
43507
43507
  function qt(r, e) {
43508
43508
  if (!r)
43509
43509
  throw new Error("Entity is null");
43510
- const t = e.findSubscribedInstance(r);
43510
+ const t = e.get(r.id);
43511
43511
  switch (r.type) {
43512
43512
  case n.PrimitiveValue:
43513
43513
  return t || new qi(r, e);
@@ -44917,7 +44917,7 @@ class Fk extends ee {
44917
44917
  }
44918
44918
  syncDataToValidateInputMapDataType(e) {
44919
44919
  var s, o, l;
44920
- if (((s = e.declaration) == null ? void 0 : s.id) !== B.operation[Oe.Validate].inputs.entityToMatch.id)
44920
+ if (((s = e.declaration) == null ? void 0 : s.id) !== B.operation[Oe.Validate].inputs.dataToValidate.id)
44921
44921
  return null;
44922
44922
  const t = this.getEntityToMatchInputMap(
44923
44923
  e.parent
@@ -44951,7 +44951,9 @@ class Fk extends ee {
44951
44951
  like: !0,
44952
44952
  asType: !1
44953
44953
  });
44954
- const a = this.getEntityToMatch(e);
44954
+ const a = this.getEntityToMatch(
44955
+ t
44956
+ );
44955
44957
  return (l = e.dataType) == null || l.setEntity(a), e.dataType;
44956
44958
  }
44957
44959
  syncOutputDataOutputMapDataType(e) {
@@ -45001,11 +45003,11 @@ class Fk extends ee {
45001
45003
  */
45002
45004
  inferInputMapDataType(e) {
45003
45005
  var t, i;
45004
- return ((t = e.declaration) == null ? void 0 : t.id) === B.operation[Oe.Validate].inputs.entityToMatch.id ? this.syncEntityToMatchInputMapDataType(e) : ((i = e.declaration) == null ? void 0 : i.id) === B.operation[Oe.Validate].inputs.dataToValidate.id && this.syncDataToValidateInputMapDataType(e), null;
45006
+ return ((t = e.declaration) == null ? void 0 : t.id) === B.operation[Oe.Validate].inputs.entityToMatch.id ? this.syncEntityToMatchInputMapDataType(e) : ((i = e.declaration) == null ? void 0 : i.id) === B.operation[Oe.Validate].inputs.dataToValidate.id ? this.syncDataToValidateInputMapDataType(e) : null;
45005
45007
  }
45006
45008
  inferOutputMapDataType(e) {
45007
45009
  var t;
45008
- return ((t = e.declaration) == null ? void 0 : t.id) === B.operation[Oe.Validate].outputs.outputEntity.id && this.syncOutputDataOutputMapDataType(e), null;
45010
+ return ((t = e.declaration) == null ? void 0 : t.id) === B.operation[Oe.Validate].outputs.outputEntity.id ? this.syncOutputDataOutputMapDataType(e) : null;
45009
45011
  }
45010
45012
  }
45011
45013
  class Uk extends ee {
@@ -45219,7 +45221,7 @@ async function t2(r, e = {}) {
45219
45221
  function n2(r) {
45220
45222
  const e = new _(r);
45221
45223
  return Zk(e), zk(e), Yk(e), Kk(e), Xk(e), Qk(e), e2(e), e.getAllBuiltIn().forEach((i) => {
45222
- e.builtInInstances[i.id] || (e.builtInInstances[i.id] = i);
45224
+ e.builtInInstances[i.id] || (e.builtInInstances[i.id] = i, delete e.instances[i.id]);
45223
45225
  }), e.initChildren(), e;
45224
45226
  }
45225
45227
  async function j7(r, e = {}) {
@@ -368,4 +368,4 @@ If an entity is called by another, they must be in the same scope, which means t
368
368
  You shouldn't have to manually update a 'parent' property. The equivalent result is to change its callers, the value writters of its inputs, or the value readers of its outputs.`,issue:null})),{errors:t,modifiedData:e}}addSelfToProject(){var a;const e=[this],t=[],i=[];return this.parent===this.project&&this.project.addFunctionCall(this),(a=this.process)==null||a.writesValues.forEach(s=>{s.setValueWriter(this.process),e.push(s)}),this.successCalls.forEach(s=>{s.addSuccessCaller(this),e.push(s)}),this.errorCalls.forEach(s=>{s.addErrorCaller(this),e.push(s)}),this.calledBySuccess.forEach(s=>{s.addSuccessCall(this),e.push(s)}),this.calledByError.forEach(s=>{s.addErrorCall(this),e.push(s)}),this.calledByEntry.forEach(s=>{s.addCall(this),e.push(s)}),{updated:v(e),added:v(t),removed:v(i),self:this}}get calledBy(){return[...this.calledByEntry,...this.calledBySuccess,...this.calledByError]}removeInput(e){const t=this.inputs.findIndex(i=>i.id===e.id);return t>-1&&this.inputs.splice(t,1),this}addInput(e){return this.inputs.includes(e)?this:(this.inputs.push(e),this)}addOutput(e){return this.outputs.includes(e)?this:(this.outputs.push(e),this)}removeOutput(e){const t=this.outputs.findIndex(i=>i.id===e.id);return t>-1&&this.outputs.splice(t,1),this}addValueReader(e){var t;return(t=this.process)==null||t.addValueReader(e),this}removeValueReader(e){var t;return(t=this.process)==null||t.removeValueReader(e),this}addSuccessCaller(e){return this.calledBySuccess.find(t=>t.id===e.id)||this.calledBySuccess.push(e),this}addErrorCaller(e){return this.calledByError.find(t=>t.id===e.id)||this.calledByError.push(e),this}addEntryCaller(e){return this.calledByEntry.find(t=>t.id===e.id)||this.calledByEntry.push(e),this}addErrorCall(e){return this.errorCalls.push(e),this}addSuccessCall(e){return this.successCalls.push(e),this}removeCall(e){const t=this.successCalls.findIndex(a=>a.id===e.id);t>-1&&this.successCalls.splice(t,1);const i=this.errorCalls.findIndex(a=>a.id===e.id);return i>-1&&this.errorCalls.splice(i,1),this}removeCaller(e){return this.calledBySuccess=this.calledBySuccess.filter(t=>t.id!==e.id),this.calledByError=this.calledByError.filter(t=>t.id!==e.id),this.calledByEntry=this.calledByEntry.filter(t=>t.id!==e.id),this}setParent(e){return this.parent=e,this}initChildren(){if(this.initialized)return this;if(this.initialized=!0,this.initialData.declaration.type===n.FunctionDeclaration){const e=R(this.initialData.declaration,this.project);this.declaration=e}else{const e=w(this.initialData.declaration),t=this.project.get(e);this.declaration=t}return this.successCalls=this.initialData.successCalls.map(e=>{const t=R(e,this.project);return t.addSuccessCaller(this),[n.BreakStatement,n.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==n.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.errorCalls=this.initialData.errorCalls.map(e=>{const t=R(e,this.project);return t.addErrorCaller(this),[n.BreakStatement,n.ContinueStatement].includes(t.type)?(t.setParent(this.parent.parent),t.initChildren()):t.type!==n.InternalCall&&(t.setParent(this.parent),t.initChildren()),t}),this.inputs=this.initialData.inputs.map(e=>{const t=R(e,this.project);return t.setParent(this),t.initChildren(),t}),this.initOutputs(),this.initialData.process&&(this.process=R(this.initialData.process,this.project),this.process.setParent(this),this.process.initChildren()),this.initialData.error&&(this.error=R(this.initialData.error,this.project),this.error.setParent(this),this.error.initChildren()),this}initOutputs(){const e=[];this.outputs=this.initialData.outputs.map(s=>{const o=R(s,this.project);return e.push(o.index),o.setParent(this),o.initChildren(),o});const i=Cu(this).filter(s=>!this.outputs.find(o=>o.declaration.id===s.id));i.sort((s,o)=>s.index-o.index);const a=i.map((s,o)=>{const l=e.includes(s.index)?this.outputs.length-1+o:s.index,p={id:N.UUID.uuid(),type:n.OutputMap,version:1,declaration:s,index:l,parent:this,writesValues:[]},y=R(p,this.project);return y.setParent(this),y.initChildren(),y});return this.outputs.push(...a),this}subscribe(){return this.project.subscribeInstance(this),this}unsubscribe(){return this.project.unsubscribeInstance(this),this}sync(e){return this.version=e.version||this.version,this.x=e.x||this.x,this.y=e.y||this.y,this}async load(){return this}async create(){return this}async update(e){return this}async delete(){return this}remove({ignoreUpstream:e,seenEntities:t}={ignoreUpstream:!1,seenEntities:new Set}){var s;const i=[],a=[];if(t.has(this.id))return{affected:[],removed:[]};if(t.add(this.id),a.push(this),this.unsubscribe(),this.process){const{affected:o,removed:l}=(s=this.process)==null?void 0:s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...l)}if(this.inputs.forEach(o=>{const{affected:l,removed:p}=o.remove({ignoreUpstream:!0,seenEntities:t});i.push(...l),a.push(...p)}),this.outputs.forEach(o=>{const{affected:l,removed:p}=o.remove({ignoreUpstream:!0,seenEntities:t});i.push(...l),a.push(...p)}),this.error){const{affected:o,removed:l}=this.error.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...l)}return this.successCalls.forEach(o=>{i.push(o),o.removeCaller(this)}),this.errorCalls.forEach(o=>{i.push(o),o.removeCaller(this)}),e||this.calledBy.forEach(o=>{i.push(o),o.removeCall(this)}),{affected:v(i),removed:v(a)}}restore({seenEntities:e}={seenEntities:new Set}){const t=[];if(e.has(this.id))return{affected:[],self:this};if(e.add(this.id),this.subscribe(),this.process){const{affected:i}=this.process.restore({seenEntities:e});t.push(...i)}return this.inputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.outputs.forEach(i=>{const{affected:a}=i.restore({seenEntities:e});t.push(...a)}),this.successCalls.forEach(i=>{t.push(i),i.addSuccessCaller(this)}),this.errorCalls.forEach(i=>{t.push(i),i.addErrorCaller(this)}),this.calledBySuccess.forEach(i=>{t.push(i),i.addSuccessCall(this)}),this.calledByError.forEach(i=>{t.push(i),i.addErrorCall(this)}),this.calledByEntry.forEach(i=>{t.push(i),i.addCall(this)}),{affected:v(t),self:this}}toFlat(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this,...this.successCalls.flatMap(i=>i.toFlat(e)),...this.errorCalls.flatMap(i=>i.toFlat(e)),...this.inputs.flatMap(i=>i.toFlat(e)),...this.outputs.flatMap(i=>i.toFlat(e)),...this.process?this.process.toFlat(e):[],...this.error?this.error.toFlat(e):[]])}toFlatIds(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.id,...this.successCalls.flatMap(i=>i.toFlatIds(e)),...this.errorCalls.flatMap(i=>i.toFlatIds(e)),...this.inputs.flatMap(i=>i.toFlatIds(e)),...this.outputs.flatMap(i=>i.toFlatIds(e))])}toJSON(){var e,t;return{id:this.id,version:this.version,type:this.type,x:this.x,y:this.y,successCalls:this.successCalls.map(i=>i.toJSON()),errorCalls:this.errorCalls.map(i=>i.toJSON()),calledBySuccess:this.calledBySuccess.map(i=>i.toReference()),calledByError:this.calledByError.map(i=>i.toReference()),calledByEntry:this.calledByEntry.map(i=>i.toReference()),process:(e=this.process)==null?void 0:e.toJSON(),declaration:this.declaration.toJSON(),inputs:this.inputs.map(i=>i.toJSON()),outputs:this.outputs.map(i=>i.toJSON()),parent:this.parent.toReference(),error:(t=this.error)==null?void 0:t.toJSON()}}toReference(){return{id:this.id+"--"+N.UUID.uuid()+"--ref",type:n.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,type:this.type,x:this.x,y:this.y,process:this.process?this.process.toReference():null,inputs:this.inputs.map(e=>e.toReference()),outputs:this.outputs.map(e=>e.toReference()),declaration:this.declaration.toReference(),successCalls:this.successCalls.map(e=>e.toReference()),errorCalls:this.errorCalls.map(e=>e.toReference()),calledBySuccess:this.calledBySuccess.map(e=>e.toReference()),calledByError:this.calledByError.map(e=>e.toReference()),calledByEntry:this.calledByEntry.map(e=>e.toReference()),error:this.error?this.error.toReference():null,parent:this.parent.toReference()}}toFlatJSON(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toShallowJSON(),...this.successCalls.flatMap(i=>i.toFlatJSON(e)),...this.errorCalls.flatMap(i=>i.toFlatJSON(e)),...this.inputs.flatMap(i=>i.toFlatJSON(e)),...this.outputs.flatMap(i=>i.toFlatJSON(e)),...this.process?this.process.toFlatJSON(e):[],...this.error?this.error.toFlatJSON(e):[]])}toGenerationTarget(){const e=this.parent.type===n.Project?void 0:this.parent.id;return{id:this.id,version:this.version,type:this.type,calledByEntry:this.calledByEntry.map(t=>t.id),calledBySuccess:this.calledBySuccess.map(t=>t.id),calledByError:this.calledByError.map(t=>t.id),declaration:this.declaration.id,parent:e}}toFlatGenerationTarget(e=new Set){return e.has(this.id)?[]:(e.add(this.id),[this.toGenerationTarget(),...this.successCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.errorCalls.flatMap(i=>i.toFlatGenerationTarget(e)),...this.inputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.outputs.flatMap(i=>i.toFlatGenerationTarget(e)),...this.process?this.process.toFlatGenerationTarget(e):[],...this.error?this.error.toFlatGenerationTarget(e):[]])}clearErrors(){var e,t;return this.errors=[],this.inputs.forEach(i=>i.clearErrors()),this.outputs.forEach(i=>i.clearErrors()),this.successCalls.forEach(i=>i.clearErrors()),this.errorCalls.forEach(i=>i.clearErrors()),(e=this.process)==null||e.clearErrors(),(t=this.error)==null||t.clearErrors(),this}validate(){const e=q2(this);return this.errors=e,{success:!0,error:null,data:this.toJSON()}}getErrors(){return[...this.errors,...this.inputs.flatMap(t=>t.getErrors()),...this.outputs.flatMap(t=>t.getErrors()),...this.error?this.error.getErrors():[],...this.process?this.process.getErrors():[]]}getShallowErrors(){return this.errors}clone(e){return new Ce(this.toJSON(),this.project)}};c(Ce,"MUTABLE_BASE_PROPERTIES",[]),c(Ce,"INMUTABLE_BASE_PROPERTIES",["id","version","type"]),c(Ce,"BASE_PROPERTIES",[...Ce.MUTABLE_BASE_PROPERTIES,...Ce.INMUTABLE_BASE_PROPERTIES]),c(Ce,"MUTABLE_META_PROPERTIES",["x","y"]),c(Ce,"INMUTABLE_META_PROPERTIES",[...Ce.INMUTABLE_BASE_PROPERTIES]),c(Ce,"META_PROPERTIES",[...Ce.MUTABLE_META_PROPERTIES,...Ce.INMUTABLE_META_PROPERTIES]),c(Ce,"MUTABLE_UPSTREAM_PROPERTIES",["calledBySuccess","calledByError","calledByEntry"]),c(Ce,"INMUTABLE_UPSTREAM_PROPERTIES",["declaration","parent"]),c(Ce,"UPSTREAM_PROPERTIES",[...Ce.MUTABLE_UPSTREAM_PROPERTIES,...Ce.INMUTABLE_UPSTREAM_PROPERTIES]),c(Ce,"MUTABLE_DOWNSTREAM_PROPERTIES",["successCalls","errorCalls","writesValues","inputs","outputs","error"]),c(Ce,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),c(Ce,"DOWNSTREAM_PROPERTIES",[...Ce.MUTABLE_DOWNSTREAM_PROPERTIES,...Ce.INMUTABLE_DOWNSTREAM_PROPERTIES]),c(Ce,"PROPERTIES",[...Ce.META_PROPERTIES,...Ce.UPSTREAM_PROPERTIES,...Ce.DOWNSTREAM_PROPERTIES]);let Fr=Ce;function zA(r){var e,t,i;switch(r.id){case _["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id:{const a=r.project.entities.filter(h=>!!h.implements.find(m=>m.id===_["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id));if(a.find(h=>!!h.properties.find(m=>{var b;return m.implements&&m.implements.id===_["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id&&((b=m.getDefaultValue())==null?void 0:b.value)===!0}))){const m=a[0].properties.find(g=>g.implements&&g.implements.id===_["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id),b=(e=m==null?void 0:m.dataType)==null?void 0:e.defaultValue;if(b)b.value=!0;else if(m!=null&&m.dataType){const g=(t=m==null?void 0:m.dataType)==null?void 0:t.id.split("-id")[0],P=R({id:g+"-default-value-id",version:1,type:n.PrimitiveValue,name:I.EntityTemplate,autogeneration:null,value:!0,valueAsType:null,parent:m==null?void 0:m.dataType.toReference()},r.project);return P.setParent(m==null?void 0:m.dataType),P.initChildren(),P.addSelfToProject(),{newEntities:[P]}}return{newEntities:[]}}const o=r.project.get(_["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id),l=Lo(o,"Main database");if(l.errors.length>0)return{newEntities:[]};const p=l.implemented.properties.find(h=>h.implements&&h.implements.id===_["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id),y=(i=p==null?void 0:p.dataType)==null?void 0:i.defaultValue;if(y)y.value=!0;else if(p!=null&&p.dataType){const h=p==null?void 0:p.dataType.id.split("-id")[0],m=R({id:h+"-default-value-id",version:1,type:n.PrimitiveValue,name:I.EntityTemplate,autogeneration:null,value:!0,valueAsType:null,parent:p==null?void 0:p.dataType.toReference()},r.project);m.setParent(p==null?void 0:p.dataType),m.initChildren(),m.addSelfToProject()}return{newEntities:[l.implemented]}}}return{newEntities:[]}}function ZA(r){return r.implements.filter(t=>t.type===n.BuiltInBaseEntity).map(t=>{var i;switch(t.id){case _["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id:{const s=r.project.entities.filter(p=>p.implements.find(y=>y.id===_["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id)).find(p=>!!p.properties.find(y=>{var h;return y.implements&&y.implements.id===_["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id&&((h=y.getDefaultValue())==null?void 0:h.value)===!0}));if(!s)return{newEntities:[]};const o=r.properties.find(p=>p.implements&&p.implements.id===_["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.properties.database.id),l=(i=o==null?void 0:o.dataType)==null?void 0:i.defaultValue;if(o&&(o!=null&&o.dataType)&&!l){const p=o==null?void 0:o.dataType.id.split("-id")[0],y=R({id:p+"-default-value-id",version:1,type:n.PrimitiveValue,name:I.EntityTemplate,autogeneration:null,value:null,valueAsType:s,parent:o==null?void 0:o.dataType.toReference()},r.project);return y.setParent(o==null?void 0:o.dataType),y.initChildren(),y.addSelfToProject(),{newEntities:[y]}}return{newEntities:[]}}}}),{newEntities:[]}}function Lo(r,e,t){const i=t||et(e,n.CustomEntity,r.project),a=i.split("-id"),s=a[a.length-1||0]||i,o={id:i,version:1,name:e,type:n.CustomEntity,description:null,static:!1,abstract:!1,properties:[],methods:[],abstractMethods:[],extends:[],implements:[r],x:0,y:0,parent:r.project},l=Oo(o,r.project);if(l.length>0)return{errors:l,implemented:null,entitiesChanges:{new:[],updated:[],deleted:[]}};const p=zA(r),y=R(o,r.project);y.setParent(r.project),y.initChildren();const h=r.properties.map(g=>{const P=s+"-"+et(C(g,r.project),n.Property,r.project),S=g.clone(y,P);return S.abstract=!1,S.implements=g,S.setParent(y),y.addProperty(S),S}),m=r.abstractMethods.map(g=>{const P=s+et(g.name,n.FunctionDeclaration,r.project),S=g.implementAsFunctionDeclaration(P),O={id:P+"-parent-ref-id",type:n.GenericReference,entityId:i,entityType:n.CustomEntity},k={...S,implements:g,parent:O},j=R(k,r.project);return y.addMethod(j),j.setParent(y),j.initChildren(),j.implements=g,j});o.properties=h,o.methods=m;const b=ZA(y);return{implemented:y,errors:[],entitiesChanges:{new:[y,...p.newEntities,...b.newEntities],updated:[y],deleted:[]}}}function Go(r,e){const t=Ur(r);if(t.length===0)return{list:[],last:null};let i=null;return{list:t.flatMap(s=>{if(s===e)return i=s,[s];const o=Go(s,e);return o.last&&(i=o.last),[s,...o.list]}),last:i}}function KA(r,e,t=new Set){const i=Zn(r),a=Zn(e),s=i.filter(p=>!a.includes(p)),o=i.filter(p=>a.includes(p)),l=s.reduce((p,y)=>t.has(y.id)?p:(t.add(y.id),v([...p,...KA(y,e,t)])),[]);return v([...o,...l])}function $a(r,e){const t=Go(r,e);return t.last===e&&t.list.length>0&&t.list[0]!==e}function J2(r,e){return!!Go(r,e).last}function W2(r){if(Le.includes(r.type))return r;if([...Cn,n.VariableDeclaration].includes(r.type)){const e=r.parent;return Le.includes(e.type)?e:null}return null}function Au(r,e){if(!r||!e)throw new Error("Both entities must be defined to find a common ancestor");if(r===e)return r;const t=r.parent;if(t){if(t===e)return e;if(t.type===n.Project)return null}else return null;const i=e.parent;if(i){if(i===r)return r;if(i.type===n.Project)return null}else return null;return Au(t,i)}function Ke(r){if(Ho.includes(r.type)){if(r.type===n.FunctionDeclaration){const e=r.parent;if(e.type===n.CustomEntity)return e;if(e.type===n.Loop)return e}return r}else{const e=r.parent;return e?Ke(e):null}}function Y2(r){return r.type===n.VariableDeclaration?[r]:Fe.includes(r.type)?[...r.inputs,...r.outputs||[]]:r.type===n.ReturnStatement?r.outputs:Jr.includes(r.type)||r.type===n.FunctionDeclaration?r.inputs:[]}function H2(r){const e=Zn(r),t=[],i=[];Fu.includes(r.type)&&t.push(...Pu(r));const a=e.filter(s=>{const o=t.includes(s);return o?!1:Cn.includes(s.type)&&!o?(i.push(s),!1):!0});return t.sort((s,o)=>$a(o,s)?-1:0),i.sort((s,o)=>$a(o,s)?-1:0),[...t,...i,...a]}function XA(r){return[...r].sort((e,t)=>$a(t,e)?-1:0)}function z2(r){const e=XA(r),t=[];return e.forEach(i=>{const a=t[t.length-1];if(a){const s=a[a.length-1];$a(i,s)?t.push([i]):a.push(i)}else t.push([i])}),t}function Tt(r){const e=r.map(t=>Ke(t));return v(e)}function Pu(r){return Fe.includes(r.type)?[...Tt(r.successCalls),...Tt(r.errorCalls)]:Le.includes(r.type)?Tt(r.calls):[]}function Z2(r,e){return Pu(r).includes(e)}function Ou(r){return r.writesValues||[]}function K2(r,e){return Ou(r).includes(e)}function QA(r){var e;return ke.includes((e=r==null?void 0:r.readsValue)==null?void 0:e.type)?r.readsValue:null}function X2(r){return r.writesValues}function eP(r=[]){return r.map(QA).filter(e=>!!e)}function $o(r=[]){return r.map(e=>e.writesValues).flat().filter(e=>ke.includes(e.type))}function tP(r=[]){return r.map(e=>e.readsValue).filter(e=>!!e&&ke.includes(e.type))}function nP(r){return ke.includes(r.type)?r:null}function rP(r){return r.writesValues.map(nP).filter(e=>!!e)}function iP(r=[]){return r.reduce((e,t)=>t.type===n.OutputMap?[...e,...rP(t)]:e,[])}function we(r){return Fe.includes(r.type)?[...sn(Tt(r.successCalls)),...sn(Tt(r.errorCalls))]:Le.includes(r.type)?sn(Tt(r.calls)):[]}function Q2(r){return Fe.includes(r.type)?[...sn(Tt(r.successCalls)),...sn(Tt(r.errorCalls))]:Le.includes(r.type)?sn(Tt(r.calls)):[]}function aP(r,e=new Set){return r.writesValues.filter(i=>ke.includes(i.type)&&!e.has(i.id)).reduce((i,a)=>e.has(a.id)?i:[...i,...ie(a,e)],[])}function sP(r,e=new Set){var i;return(((i=r.readsValue)==null?void 0:i.writesValues)||[]).filter(a=>ke.includes(a.type)&&!e.has(a.id)).reduce((a,s)=>e.has(s.id)?a:[...a,...ie(s,e)],[])}function ie(r,e=new Set){if(e.has(r.id))return[];if(r.type===n.ReturnStatement)return tP(r.outputs).reduce((i,a)=>[...i,...ie(a,e)],[]);if(r.type===n.FunctionCall||r.type===n.Operation||r.type===n.Condition)return[...we(r).reduce((s,o)=>{const l=Ke(o);return[...s,...ie(l||o,e)]},[]),...eP(r.inputs),...iP(r.outputs)].reduce((s,o)=>[...s,...ie(o,e)],[]);if(Jr.includes(r.type)){const t=$o(r.inputs),a=we(r).reduce((s,o)=>{const l=Ke(o);return[...s,...ie(l||o,e)]},[]);return t.push(...a),t.reduce((s,o)=>[...s,...ie(o,e)],[])}if(r.type===n.FunctionDeclaration){const t=[...$o(r.inputs)],a=we(r).reduce((s,o)=>{const l=Ke(o);return[...s,...ie(l||o,e)]},[]);return t.push(...a),t.reduce((s,o)=>[...s,...ie(o)],[])}if(ke.includes(r.type)){e.add(r.id);const i=we(r).reduce((a,s)=>{const o=Ke(s);return[...a,...ie(o||s,e)]},[]);return[r,...i,...sP(r,e),...aP(r,e)]}return[]}function Pt(r,e=new Set){return e.has(r.id)?[]:(e.add(r.id),[...Zn(r).reduce((a,s)=>[...a,s,...Pt(s,e)],[])])}function sn(r){return r.reduce((e,t)=>t.type===n.ReturnStatement||t.type===n.ContinueStatement||t.type===n.BreakStatement?[...e,t]:[...e,t,...we(t)],[])}function oP(r){const e=r.entities||[],t=[...e,...r.functions||[],...r.events||[],...r.projects||[]],i=e.reduce((p,y)=>[...p,...y.properties],[]),a=e.reduce((p,y)=>[...p,...y.methods],[]),s=a.reduce((p,y)=>[...p,...$o(y.inputs),...sn(Tt(y.calls)),...y.returnStatements],[]),o=r.functions.reduce((p,y)=>[...p,...sn(Tt(y.calls)),...y.returnStatements],[]),l=r.events.reduce((p,y)=>[...p,...sn(Tt(y.calls)),...y.returnStatements],[]);return[...t,...i,...a,...s,...o,...l]}function lP(r,e){return e.filter(i=>{if(!i)return!1;switch(i.type){case n.FunctionCall:return i.inputs.find(a=>a.id===r.id)!==void 0||i.outputs.find(a=>a.id===r.id)!==void 0;case n.Condition:return i.successCalls.find(a=>a.id===r.id)!==void 0||i.errorCalls.find(a=>a.id===r.id)!==void 0||i.inputs.find(a=>a.id===r.id)!==void 0;case n.Operation:return i.outputs.find(a=>a.id===r.id)!==void 0;case n.VariableDeclaration:return Fe.includes(r.type)?cP(r).find(s=>{var o;return((o=s.readsValue)==null?void 0:o.id)===i.id})!==void 0:!1;case n.CustomEntity:return i.properties.find(a=>a.id===r.id)!==void 0||i.methods.find(a=>a.id===r.id)!==void 0;case n.FunctionDeclaration:return i.inputs.find(a=>a.id===r.id)!==void 0||(i.returnStatements.map(a=>a.outputs).flat()||[]).find(a=>a.id===r.id)!==void 0;default:return!1}})}function e7(r){const e=oP(r.project);return lP(r,e)}function Ur(r){const e=[];if(Cn.includes(r.type)){r.calledBy.forEach(a=>{const s=Ke(a);s&&e.push(s)});const i=[...r.inputs||[],...r.outputs||[]].map(a=>Bu(a)).filter(a=>a!==null);e.push(...v(i))}if(ke.includes(r.type)){const t=Bu(r);t&&e.push(t)}return v(e)}function Su(r){return r.type===n.FunctionCall||r.type===n.InternalCall||[n.Operation,n.Condition,n.Loop].includes(r.type)?r.declaration.inputs:r.type===n.FunctionDeclaration||Jr.includes(r.type)?r.inputs:r.type===n.Search?r.inputsDeclarations:[]}function t7(r,e){return e.type===n.Condition?e.inputs.find(t=>t.declaration.id===r.id):e.type===n.FunctionCall||e.type===n.Operation?e.inputs.find(t=>t.declaration.id===r.id):null}function cP(r){return Fe.includes(r.type)?r.inputs:[]}function Cu(r){var e;return r.type===n.FunctionCall?((e=r.declaration.returnStatements[0])==null?void 0:e.outputs)||[]:[n.Operation,n.Condition,n.Loop].includes(r.type)?r.declaration.outputs:r.type===n.Search?r.outputsDeclarations:Ge.includes(r.type)?r.outputs:[]}function n7(r,e){return e.type===n.Condition?null:e.type===n.FunctionCall||e.type===n.Operation?e.outputs.find(t=>t.declaration.id===r.id):null}function r7(r){return r.type===n.Condition?[]:Fe.includes(r.type)?r.outputs:[]}function Bu(r){const e=r.readsValue;return e?Ke(e):null}function dP(r){const e=r.internalCalls||[];return v(Tt(v(e.flatMap(t=>[...t.successCalls,...t.errorCalls]))))}function Si(r){const e=Ou(r),t=[];return e.forEach(i=>{if(ke.includes(i.type))t.push(i);else if(Sn.includes(i.type)){const a=i.parent;t.push(a)}}),t}function v(r){const e=new Set;return r.filter(t=>!t||e.has(t.id)?!1:(e.add(t.id),!0))}function Zn(r,e=!1){const t=[];if(r.type===n.Project&&t.push(...(r==null?void 0:r.entities)||[],...(r==null?void 0:r.functions)||[],...(r==null?void 0:r.variableDeclarations)||[],...(r==null?void 0:r.variableInstances)||[],...(r==null?void 0:r.searches)||[],...(r==null?void 0:r.loops)||[],...(r==null?void 0:r.operations)||[],...(r==null?void 0:r.conditions)||[],...(r==null?void 0:r.functionCalls)||[],...(r==null?void 0:r.events)||[],...(r==null?void 0:r.projects)||[]),lt.includes(r.type)&&t.push(...(r==null?void 0:r.detachedChildren)||[]),r.type===n.CustomEntity){const i=[...r.suggestedMethods,...r.methods].flatMap(a=>a.collapsed&&e?[]:Zn(a));t.push(...i)}if(r.type===n.Condition){const i=r.successCalls.map(s=>Ke(s)),a=r.errorCalls.map(s=>Ke(s));t.push(...i,...a)}if(Jr.includes(r.type)){if(r.collapsed&&e)return[];const i=r.inputs.map(s=>Si(s)).flat(),a=r.calls.map(s=>Ke(s));t.push(...v(i),...a)}if(Fe.includes(r.type)&&r.type!==n.Condition){const i=r==null?void 0:r.outputs.map(o=>Si(o)).flat(),a=r.successCalls.map(o=>Ke(o)),s=r.errorCalls.map(o=>Ke(o));t.push(...v(i),...a,...s)}if(ke.includes(r.type)){const i=Si(r),a=dP(r);t.push(...i,...a)}if(r.type===n.Loop){const i=r.outputs.map(o=>Si(o)).flat();if(r.body){const o=Zn(r.body,e);t.push(...o)}const a=r.errorCalls.map(o=>Ke(o)),s=r.successCalls.map(o=>Ke(o));t.push(...v(i),...s,...a)}if(r.type===n.FunctionDeclaration){if(r.collapsed&&e)return[];const i=r.inputs.map(s=>Si(s)).flat(),a=r.calls.map(s=>Ke(s));t.push(...v(i),...a)}return v(t)}function uP(r,e=!1){const t=Zn(r,e),i=[...t,...t.reduce((a,s)=>[...a,...uP(s,e)],[])];return v(i)}function pP(r){const e=Ur(r),t=[...e,...e.reduce((i,a)=>[...i,...pP(a)],[])];return v(t)}function Fo(r){return r.implements.reduce((e,t)=>t.type===n.CustomEntity?[...e,n.CustomEntity,...Fo(t),...Uo(t)]:[...e,t.name],[])}function Uo(r){return r.extends.reduce((e,t)=>t.type===n.CustomEntity?[...e,n.CustomEntity,...Uo(t),...Fo(t)]:[...e,t.name],[])}function wu(r){return r.extends.reduce((e,t)=>t.type===n.CustomEntity?[...e,t,...wu(t),..._u(t)]:[...e,t],[])}function _u(r){return r.implements.reduce((e,t)=>t.type===n.CustomEntity?[...e,t,..._u(t),...wu(t)]:[...e,t],[])}function yP(r){return[...Uo(r),...Fo(r)].filter((t,i,a)=>a.indexOf(t)===i)}function fP(r){return r.implements.length===0&&r.extends.length===0?null:r.implements.find(i=>i.type===n.BuiltInBaseEntity&&i.name===L.PERSISTED_ENTITY)?r:[...r.implements,...r.extends].reduce((i,a)=>{if(a.type===n.CustomEntity){const s=fP(a);if(s)return s}return i},null)}function i7(r){const e=r.extends.find(t=>t.type===n.BuiltInBaseEntity);return e&&e.type===n.BuiltInBaseEntity?e:null}function a7(r){const e=r.implements.find(t=>t.type===n.BuiltInBaseEntity);return e&&e.type===n.BuiltInBaseEntity?e:null}function hP(r){const e=r.extends.find(t=>t.type===n.CustomEntity);return e&&e.type===n.CustomEntity?e:null}function Kn(r){const e=[...r.implements,...r.extends].reduce((t,i)=>i.type===n.BuiltInBaseEntity?[...t,i]:i.type===n.CustomEntity?[...t,...Kn(i)]:t,[]);return v(e)}function Nu(r){return r.type===n.PrimitiveEntity?!0:r.type===n.BuiltInBaseEntity?r.interactive:!Kn(r).find(i=>!i.interactive)}function s7(r){return r.parent===r.project&&r.project.variableDeclarations.includes(r)}function Mu(r){return r.parent!==r.project?!1:n.VariableDeclaration===r.type?r.project.variableDeclarations.includes(r):n.VariableInstance===r.type?r.project.variableInstances.includes(r):n.FunctionCall===r.type?r.project.functionCalls.includes(r):n.Condition===r.type?r.project.conditions.includes(r):n.Operation===r.type?r.project.operations.includes(r):n.Loop===r.type?r.project.loops.includes(r):n.Search===r.type?r.project.searches.includes(r):!1}function mP(r){if([...Le,n.CustomEntity,n.InstalledProject,n.Project].includes(r.type)||Mu(r))return!1;const e=Ur(r);return e.length===0?!0:e.some(t=>mP(t))}function Vu(r){return[...Le,n.CustomEntity,n.InstalledProject,n.Project].includes(r.type)||Mu(r)?!1:Ur(r).length===0}function TP(r,e=0){if(Vu(r)){const t=Ur(r);return t.length===0?r:t.map(a=>TP(a,e+1)).reduce((a,s)=>a?s&&s.x<a.x?s:a:s,null)}return null}function EP(r){const e=[];if(Vu(r))e.push(r);else return[];return Ur(r).forEach(i=>{e.push(...EP(i))}),e}function bP(r){return r.type===n.FunctionDeclaration&&r.parent!==r.project&&!![n.CustomEntity,n.Loop,n.InstalledProject].includes(r.parent.type)}function o7(r,e){const t=new Map;return r.forEach(i=>{t.set(i.id,i)}),e.forEach(i=>{t.set(i.id,i)}),Array.from(t.values())}function xo(r){switch(r){case n.CustomEntity:return xr;case n.FunctionDeclaration:return Sr;case n.VariableDeclaration:return _r;case n.VariableInstance:return Nr;case n.FunctionCall:return Fr;case n.Operation:return Cr;case n.Condition:return wr;case n.ReturnStatement:return Gr;case n.Loop:return Br;case n.Search:return Mr;case n.InputMap:return Dn;case n.OutputMap:return An;case n.ArgumentDeclaration:return Lr;case n.ReturnDeclaration:return wt;case n.Property:return Or;case n.InstalledProject:return Vr;case n.Project:return N;case n.BuiltInBaseEntity:return Gt;default:return null}}function Et(r,e){if(lt.includes(r.type))return r;if(Wr.includes(r.type))return null;const t=r.parent;if(!t)return null;if(t.type===n.GenericReference){const i=w(t);if(!i)return null;const a=e.get(i);return a?Et(a,e):null}else return t===e?e:Et(t,e)}function Lu(r,e){if(Wr.includes(r.type)||e.getBuiltIn(r.id))return null;const t=_t(r.parent,e);return t?t===e?lt.includes(r.type)?r:null:t.type===n.CustomEntity?r:Lu(t,e):null}function jo(r,e,t){if(r===e||e===t||r===t)return!1;const i=Et(e.parent,t);return i===r?!0:jo(i,e,t)}var ko=(r=>(r.SameBothLocal="same-both-local",r.AInB="a-in-b",r.BInA="b-in-a",r.ParallelInCommonParent="parallel-in-common-parent",r.ParallelInProject="parallel-in-project",r.AIsGlobalBIsNot="a-is-global-b-is-not",r.BIsGlobalAIsNot="b-is-global-a-is-not",r.SameBothGlobal="same-both-global",r))(ko||{});function Fa(r,e,t){const i=Et(r,t),a=Et(e,t);if(!i)throw new Error("Could not find scope owner for the entity: "+r.id);if(!a)throw new Error("Could not find scope owner for the entity: "+e.id);if(i===a&&i.type!==n.Project)return{compatible:!0,type:"same-both-local",commonAncestorScope:i};if(i===a&&i.type===n.Project)return{compatible:!0,type:"same-both-global",commonAncestorScope:i};if(i.type===n.Project&&a.type!==n.Project)return{compatible:!1,type:"a-is-global-b-is-not",commonAncestorScope:i};if(i.type!==n.Project&&a.type===n.Project)return{compatible:!1,type:"b-is-global-a-is-not",commonAncestorScope:a};if(jo(i,a,t))return{compatible:!0,type:"b-in-a",commonAncestorScope:i};if(jo(a,i,t))return{compatible:!0,type:"a-in-b",commonAncestorScope:a};const l=Au(i,a);return l===t?{compatible:!1,type:"parallel-in-project",commonAncestorScope:l}:l?{compatible:!1,type:"parallel-in-common-parent",commonAncestorScope:Et(l,t)}:{compatible:!1,type:"parallel-in-project",commonAncestorScope:t}}function RP(r,e,t){const i=Fa(r,e,t);if(!i.compatible||i.type!=="same-both-local")return null;if(r===e)return r;let a=Et(r.parent,t);if(a){if(a===e)return e;if(a.type===n.Project)return r}else return r;for(;a;){if(a){if(a===e)return e;if(a.type===n.Project)return r}else return r;a=Et(a.parent,t)}let s=Et(e.parent,t);if(s){if(s===r)return r;if(s.type===n.Project)return e}else return e;for(;s;){if(s){if(s===r)return r;if(s.type===n.Project)return e}else return e;s=Et(s.parent,t)}return null}function vP(r){return r.length===0?null:r.length===1?r[0]:r.reduce((t,i)=>{const a=RP(t,i,i.project);return!a||a===i?t:i},r[0])}function _t(r,e){let t;return typeof r=="string"?t=r:r.type===n.GenericReference?t=w(r):t=r.id,t===e.id?e:e.get(t)}function Xn(r){if(!r)return null;if(Wr.includes(r.type))return r;if(r.type===n.Project)return null;if(r.project.getBuiltIn(r.id))return r;const e=r.parent;return!e||e.type===n.Project?null:Xn(e)}function Ua(r,e){var t;if(r.readsValue){const i=_t(r.readsValue,e.project);e.setValueWriter(i),i.addValueReader(e)}else r.readsValue===null&&((t=e.readsValue)==null||t.removeValueReader(e),e.readsValue=null);return e}function xa(r){const e=[];function t(s,o){return e.some(l=>l.blockedByCaller===s&&l.blockedByCalling===o)}function i(s,o){t(s,o)||e.push({blockedByCaller:s,blockedByCalling:o})}const a=Lu(r,r.project);return r.calledBySuccess.forEach(s=>{[...s.successCalls||[]].forEach(p=>{Ge.includes(p.type)&&p!==r&&(we(r).find(m=>m===p)||i(s,p))});let l;if(Fe.includes(s.type)&&(l=s),l){const p=xa(l);p.reachable||we(r).find(m=>m===s)||p.blocks.forEach(m=>{i(s,m.blockedByCalling)})}}),r.calledByError.forEach(s=>{[...s.errorCalls||[]].forEach(p=>{Ge.includes(p.type)&&p!==r&&(we(r).find(m=>m===p)||i(s,p))});let l;if(Fe.includes(s.type)&&(l=s),l){const p=xa(l);p.reachable||we(r).find(m=>m===s)||p.blocks.forEach(m=>{i(s,m.blockedByCalling)})}}),r.calledByEntry.forEach(s=>{if([...s.calls||[]].forEach(p=>{Ge.includes(p.type)&&p!==r&&(we(r).find(m=>m===p)||i(s,p))}),s===a)return;let l;if(s.type===n.FunctionDeclaration){const p=Ke(s);if(p.type===n.CustomEntity)return;p.type===n.Loop&&(l=p)}if(l){const p=xa(l);p.reachable||p.blocks.forEach(y=>{i(s,y.blockedByCalling)})}}),{reachable:e.length===0,entryPoint:a,blocks:e}}function l7(r){return Ho.includes(r.type)?r.type===n.FunctionDeclaration?!bP(r):!0:!1}function c7(r){if(n.ActionDescriptor===r.type){if(r.project.operationDeclarations.find(s=>s.id===r.id))return n.Operation;if(r.project.globalEventActionDescriptors.find(s=>s.id===r.id))return n.GlobalEvent;if(r.project.loopDeclarations.find(s=>s.id===r.id))return n.Loop;if(r.project.conditionDeclarations.find(s=>s.id===r.id))return n.Condition}return r.type}function d7(r,e){const t=[];if(r.parent)if(r.id===r.parent)t.push(new E({id:`${r.id}--${r.parent}--${f.SelfReference}`,code:f.SelfReference,severity:T.Error,message:`Entity of type "${r.type}" with id "${r.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(r.parent);i?[n.Project,n.DataType].includes(i.type)||t.push(new E({id:`${r.id}--${r.parent}--${f.InvalidParentReference}`,code:f.InvalidParentReference,severity:T.Error,message:`Entity of type "${r.type}" with id "${r.id}", has a parent reference that isn't pointing to an entity of type 'project' or 'data-type'.`,issue:null})):t.push(new E({id:`${r.id}--${r.parent}--${f.ReferencedEntityNotFound}`,code:f.ReferencedEntityNotFound,severity:T.Error,message:`Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${r.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,issue:null}))}return r.implements&&Array.isArray(r.implements)?r.implements.forEach(i=>{if(r.id===i){t.push(new E({id:`${r.id}--${i}--${f.SelfReference}`,code:f.SelfReference,severity:T.Error,message:`Entity of type "${r.type}" with id "${r.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?[n.CustomEntity,n.BuiltInBaseEntity].includes(a.type)?a.abstract||t.push(new E({id:`${r.id}--${i}--${f.InvalidImplementsReference}`,code:f.InvalidImplementsReference,severity:T.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'implements' reference that isn't pointing to an abstract entity.`,issue:null})):t.push(new E({id:`${r.id}--${i}--${f.InvalidImplementsReference}`,code:f.InvalidImplementsReference,severity:T.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'implements' reference that isn't pointing to an entity of type 'custom-entity' or 'built-in-base-entity'.`,issue:null})):t.push(new E({id:`${r.id}--${i}--${f.ReferencedEntityNotFound}`,code:f.ReferencedEntityNotFound,severity:T.Error,message:`Entity of type "${r.type}" with id "${r.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:`${r.id}--${A.InvalidObjectStructure}`,code:A.InvalidObjectStructure,severity:T.Error,message:`Entity of type "${r.type}" with id "${r.id}", has an 'implements' property that isn't an array.`,issue:null})),r.extends&&Array.isArray(r.extends)&&r.extends.forEach(i=>{const a=e.get(i);a?[n.CustomEntity,n.BuiltInBaseEntity].includes(a.type)?a.abstract&&t.push(new E({id:`${r.id}--${i}--${f.InvalidExtendsReference}`,code:f.InvalidExtendsReference,severity:T.Error,message:`Entity of type "${r.type}" with id "${r.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:`${r.id}--${i}--${f.InvalidExtendsReference}`,code:f.InvalidExtendsReference,severity:T.Error,message:`Entity of type "${r.type}" with id "${r.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:`${r.id}--${i}--${f.ReferencedEntityNotFound}`,code:f.ReferencedEntityNotFound,severity:T.Error,message:`Entity of type "${r.type}" with id "${r.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 Be=class Be{constructor(e,t){c(this,"initialData");c(this,"id");c(this,"version");c(this,"name");c(this,"description",null);c(this,"x");c(this,"y");c(this,"static");c(this,"abstract");c(this,"type",n.CustomEntity);c(this,"properties",[]);c(this,"methods",[]);c(this,"abstractMethods",[]);c(this,"extends",[]);c(this,"implements",[]);c(this,"project");c(this,"errors",[]);c(this,"parent");c(this,"initialized",!1);c(this,"suggestedProperties",[]);c(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=w(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:n.CustomEntity,description:e.description,static:e.static,abstract:e.abstract,properties:[],methods:[],abstractMethods:[],extends:s,implements:a,x:0,y:0,parent:i},l=R(o,t);return l.setParent(i),l.initChildren(),l}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[],s=d7(i,t),o=Oo(i,t);a.push(...s,...o,...Ne(i));const l=i.parent?t.get(i.parent):null;if(l&&l.type===n.DataType){const p=l;p.entity&&a.push(new E({id:`${e.id}--${f.NewEntityWouldOverriteExisting}`,code:f.NewEntityWouldOverriteExisting,severity:T.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.
369
369
  You can inspect the existing 'entity' field with the 'describe_entity' action. Like so:
370
370
  ${an({describe_entity:p.entity.id})}
371
- 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 v([...this.extends.reduce((e,t)=>[...[...t.properties,...t.extendedProperties].filter(a=>!a.abstract),...e],[]),...this.implements.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}--${f.InvalidParentUpdate}`,code:f.InvalidParentUpdate,severity:T.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(){const e=[this],t=[],i=[];if(this.parent.type===n.DataType){const a=this.parent;a.entity=this,e.push(a)}else this.project.addCustomEntity(this);return{updated:v(e),added:v(t),removed:v(i),self: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=>{U3(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)}),x3(this,e).forEach(a=>{const s=`_suggestion--parent--${this.id}--${a.id}`,o=a.implementAsFunctionDeclaration(s),l=R(o,this.project);if(l.suggestion=!0,l.setParent(this),l.initChildren(),l.inputs.forEach(p=>{p.suggestion=!0}),l.returnStatements.length){const p=l.returnStatements[0];p.suggestion=!0,p.outputs.forEach(y=>{y.suggestion=!0})}this.addSuggestedMethod(l)})}),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:l}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...l)}),this.methods.forEach(s=>{const{affected:o,removed:l}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...l)}),this.abstractMethods.forEach(s=>{const{affected:o,removed:l}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...l)}),this.suggestedProperties.forEach(s=>{const{affected:o,removed:l}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...l)}),this.suggestedMethods.forEach(s=>{const{affected:o,removed:l}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...l)}),{affected:v(i),removed:v(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:v(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+"--"+N.UUID.uuid()+"--ref",type:n.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===n.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===n.CustomEntity).flatMap(i=>i.toFlatGenerationTarget(e)),...this.implements.filter(i=>i.type===n.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=F3(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(e=null,t=null,i=!0){var b,g,P;const a=this.toJSON(),s=t||et(C(this,this.project),n.CustomEntity,this.project);a.properties=[],a.methods=[],a.abstractMethods=[];const o=s.split("-id"),l=o[o.length-1||0]||s;a.id=s;const p=Ft(a,this.project);e&&p.setParent(e),i&&p.subscribe(),p.initChildren();const y=(b=this.properties)==null?void 0:b.map((S,O)=>S.clone(this,l+"-property-"+O+"-id",i));p.properties=y;const h=(g=this.methods)==null?void 0:g.map((S,O)=>S.clone(this,l+"-method-"+O+"-id",i));p.methods=h;const m=(P=this.abstractMethods)==null?void 0:P.map((S,O)=>S.clone(this,l+"-abstract-method-"+O+"-id",i));return p.abstractMethods=m,p}getFunctionDeclaration(e){return this.methods.find(t=>t.id===e)}implement(e,t){return Lo(this,e,t)}getAllInteractiveMethods(){const e=this.implements.filter(i=>i.type===n.CustomEntity||i.type===n.BuiltInBaseEntity&&i.interactive);return v([...this.methods,...this.extends.flatMap(i=>i.getAllInteractiveMethods()),...e.flatMap(i=>i.getAllInteractiveMethods())])}inferFromInputs(e){if(this.parent.type!==n.DataType||!this.parent.inferred)return this;const t=[];e.forEach(s=>{t.find(l=>C(l,this.project)===C(s,this.project))||t.push(s)});const i=this.properties.filter(s=>!s.getDataType());t.forEach(s=>{const o=i.find(m=>C(m,this.project)===C(s,this.project));if(!o)return;const p=Pr(s.parent).getMasterInputWithValueWritterFromAllInstances(s),y=rn(p),h=y==null?void 0:y.clone(o,o.id+"--data-type",!0);h&&o.setDataType(h),s.setDeclaration(o)});const a=[];return t.forEach(s=>{if(!s.declaration){a.push(s);return}}),a.length===0?this:(a.forEach(s=>{const o=this.properties.find(g=>C(g,this.project)===C(s,this.project));if(o){if(s.setDeclaration(o),!o.getDataType()){const P=Pr(s.parent).getMasterInputWithValueWritterFromAllInstances(s),S=rn(P),O=S==null?void 0:S.clone(o,o.id+"--data-type",!0);O&&o.setDataType(O)}return}const l={id:s.id+"--inferred-property",type:n.Property,version:1,name:C(s,this.project),description:s.description,static:!0,abstract:!1,private:!1,hidden:!1,required:!1,index:s.index,implements:null,dataType:null,parent:this.toReference()},p=R(l,this.project);p.setParent(this),p.initChildren();const h=Pr(s.parent).getMasterInputWithValueWritterFromAllInstances(s),m=rn(h),b=m==null?void 0:m.clone(p,l.id+"--data-type",!0);return b&&p.setDataType(b),this.addProperty(p),s.setDeclaration(p),p}),this)}};c(Be,"MUTABLE_BASE_PROPERTIES",["name","description","static","abstract"]),c(Be,"INMUTABLE_BASE_PROPERTIES",["id","version","type"]),c(Be,"BASE_PROPERTIES",[...Be.MUTABLE_BASE_PROPERTIES,...Be.INMUTABLE_BASE_PROPERTIES]),c(Be,"MUTABLE_META_PROPERTIES",[...Be.MUTABLE_BASE_PROPERTIES,"x","y"]),c(Be,"INMUTABLE_META_PROPERTIES",[...Be.INMUTABLE_BASE_PROPERTIES]),c(Be,"META_PROPERTIES",[...Be.MUTABLE_META_PROPERTIES,...Be.INMUTABLE_META_PROPERTIES]),c(Be,"MUTABLE_UPSTREAM_PROPERTIES",["extends","implements"]),c(Be,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),c(Be,"UPSTREAM_PROPERTIES",[...Be.MUTABLE_UPSTREAM_PROPERTIES,...Be.INMUTABLE_UPSTREAM_PROPERTIES]),c(Be,"MUTABLE_DOWNSTREAM_PROPERTIES",["properties","methods","abstractMethods"]),c(Be,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),c(Be,"DOWNSTREAM_PROPERTIES",[...Be.MUTABLE_DOWNSTREAM_PROPERTIES,...Be.INMUTABLE_DOWNSTREAM_PROPERTIES]),c(Be,"PROPERTIES",[...Be.META_PROPERTIES,...Be.UPSTREAM_PROPERTIES,...Be.DOWNSTREAM_PROPERTIES]);let xr=Be;function u7(r){const e=m9(),t=r.toJSON();e.safeParse(t).success;const a=[];return ae(r.errors,a)}class Gt{constructor(e,t){c(this,"initialData");c(this,"id");c(this,"version");c(this,"name");c(this,"description",null);c(this,"type",n.BuiltInBaseEntity);c(this,"abstract",!1);c(this,"static");c(this,"properties",[]);c(this,"methods",[]);c(this,"abstractMethods",[]);c(this,"extends",[]);c(this,"interactive",!1);c(this,"errors",[]);c(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 v(this.extends.reduce((e,t)=>{const i=[...t.properties,...t.extendedProperties].filter(a=>!a.abstract);return[...e,...i]},[]))}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+"--"+N.UUID.uuid()+"--ref",type:n.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,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=u7(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 Gt(this.toJSON(),this.project)}implement(e,t){return Lo(this,e,t)}getAllInteractiveMethods(){const e=[];return this.interactive&&(e.push(...this.methods),this.extends.filter(i=>i.type===n.BuiltInBaseEntity&&i.interactive||i.type===n.PrimitiveEntity).forEach(i=>{i instanceof Gt&&e.push(...i.getAllInteractiveMethods())})),v(e)}}function p7(r){const e=o9(),t=r.toJSON();e.safeParse(t).success;const a=[];return ae(r.errors,a)}class $t{constructor(e,t){c(this,"initialData");c(this,"id");c(this,"version");c(this,"name");c(this,"description",null);c(this,"type",n.PrimitiveEntity);c(this,"static");c(this,"abstract");c(this,"properties",[]);c(this,"methods",[]);c(this,"abstractMethods",[]);c(this,"extends",[]);c(this,"errors",[]);c(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})}get extendedProperties(){return v(this.extends.reduce((e,t)=>{const i=[...t.properties,...t.extendedProperties].filter(a=>!a.abstract);return[...e,...i]},[]))}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+"--"+N.UUID.uuid()+"--ref",type:n.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,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=p7(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)}getAllInteractiveMethods(){const e=[];return e.push(...this.methods),this.extends.filter(i=>i.type===n.BuiltInBaseEntity&&i.interactive||i.type===n.PrimitiveEntity).forEach(i=>{i instanceof Gt&&e.push(...i.getAllInteractiveMethods())}),v(e)}}function Ft(r,e){if(!r)throw new Error("Entity is null");const t=e.findSubscribedInstance(r);switch(r.type){case n.PrimitiveValue:return t||new Pi(r,e);case n.CustomEntity:return t||new xr(r,e);case n.PrimitiveEntity:return t||new $t(r,e);case n.FunctionDeclaration:return t||new Sr(r,e);case n.GlobalEvent:return t||new Di(r,e);case n.DataType:return t||new Ii(r,e);case n.Property:return t||new Or(r,e);case n.FunctionCall:return t||new Fr(r,e);case n.Condition:return t||new wr(r,e);case n.Operation:return t||new Cr(r,e);case n.VariableDeclaration:return t||new _r(r,e);case n.VariableInstance:return t||new Nr(r,e);case n.OutputMap:return t||new An(r,e);case n.ReturnDeclaration:return t||new wt(r,e);case n.ArgumentDeclaration:return t||new Lr(r,e);case n.InputMap:return t||new Dn(r,e);case n.Project:return t||new N(r);case n.InstalledProject:return t||new Vr(r,e);case n.ActionDescriptor:return t||new te(r,e);case n.ReturnStatement:return t||new Gr(r,e);case n.Loop:return t||new Br(r,e);case n.Search:return t||new Mr(r,e);case n.ValueDescriptor:return t||new $r(r,e);case n.BuiltInBaseEntity:return t||new Gt(r,e);case n.InternalCall:return t||new Ai(r,e);case n.ContinueStatement:return t||new mt(r,e);case n.BreakStatement:return t||new Oi(r,e);default:throw new Error("Invalid entity type: "+r.type)}}function R(r,e){if(!r)throw new Error("Entity is null");const t=Ft(r,e);return t.subscribe(),t}function y7(r,e){if(!r)throw new Error("Entity is null");switch(r.type){case n.PrimitiveValue:return Pi.fromGenerationTarget(r,e);case n.CustomEntity:return xr.fromGenerationTarget(r,e);case n.FunctionDeclaration:return Sr.fromGenerationTarget(r,e);case n.GlobalEvent:return Di.fromGenerationTarget(r,e);case n.DataType:return Ii.fromGenerationTarget(r,e);case n.Property:return Or.fromGenerationTarget(r,e);case n.FunctionCall:return Fr.fromGenerationTarget(r,e);case n.Condition:return wr.fromGenerationTarget(r,e);case n.Operation:return Cr.fromGenerationTarget(r,e);case n.VariableDeclaration:return _r.fromGenerationTarget(r,e);case n.VariableInstance:return Nr.fromGenerationTarget(r,e);case n.OutputMap:return An.fromGenerationTarget(r,e);case n.ReturnDeclaration:return wt.fromGenerationTarget(r,e);case n.ArgumentDeclaration:return Lr.fromGenerationTarget(r,e);case n.InputMap:return Dn.fromGenerationTarget(r,e);case n.InstalledProject:return Vr.fromGenerationTarget(r,e);case n.ReturnStatement:return Gr.fromGenerationTarget(r,e);case n.Loop:return Br.fromGenerationTarget(r,e);case n.Search:return Mr.fromGenerationTarget(r,e);case n.ActionDescriptor:return te.fromGenerationTarget(r,e);case n.ValueDescriptor:return $r.fromGenerationTarget(r,e);case n.InternalCall:return Ai.fromGenerationTarget(r,e);case n.ContinueStatement:return mt.fromGenerationTarget(r,e);case n.BreakStatement:return Oi.fromGenerationTarget(r,e);default:throw new Error("Invalid entity type: "+r.type)}}const ee=class ee{constructor(e){c(this,"initialData");c(this,"id");c(this,"version");c(this,"type",n.Project);c(this,"name",null);c(this,"description",null);c(this,"x");c(this,"y");c(this,"entities",[]);c(this,"projects",[]);c(this,"functions",[]);c(this,"events",[]);c(this,"variableDeclarations",[]);c(this,"variableInstances",[]);c(this,"conditions",[]);c(this,"operations",[]);c(this,"functionCalls",[]);c(this,"loops",[]);c(this,"searches",[]);c(this,"primitives",[]);c(this,"builtInBaseEntities",[]);c(this,"operationDeclarations",[]);c(this,"globalEventActionDescriptors",[]);c(this,"loopDeclarations",[]);c(this,"loopDeclarationsBodies",[]);c(this,"conditionDeclarations",[]);c(this,"valueDescriptors",[]);c(this,"dataTypes",[]);c(this,"project");c(this,"instances",{});c(this,"builtInInstances",{});c(this,"errors",[]);c(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;try{(!ee.UUID||ee.UUID.isBackup)&&(ee.UUID=Vs==null?void 0:Vs()),ee.UUID||(ee.UUID={isBackup:!0,uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:t=>t})}catch(t){console.error("Error initializing UUID module",t),ee.UUID={isBackup:!0,uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:i=>i}}}static injectUUIDModule(e){ee.UUID=e}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[];return a.push(...Ne(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(){const e=[this],t=[],i=[];return{updated:v(e),added:v(t),removed:v(i),self: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+"--"+ee.UUID.uuid()+"--ref",type:n.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,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=N3(),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 ee(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!==n.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=we(i);return[...t,...a.filter(s=>s.type===n.Condition)]},[]),...this.functionCalls.reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.Condition)]},[]),...this.operations.reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.Condition)]},[]),...this.loops.reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.Condition)]},[]),...this.searches.reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.Condition)]},[])]}getOperations(){return[...this.operations,...this.getEntryPoints().reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.Operation)]},[]),...this.functionCalls.reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.Operation)]},[]),...this.conditions.reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.Operation)]},[]),...this.loops.reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.Operation)]},[]),...this.searches.reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.Operation)]},[])]}getFunctionCalls(){return[...this.functionCalls,...this.getEntryPoints().reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.FunctionCall)]},[]),...this.conditions.reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.FunctionCall)]},[]),...this.operations.reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.FunctionCall)]},[]),...this.loops.reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.FunctionCall)]},[]),...this.searches.reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.FunctionCall)]},[])]}getVariables(){return[...this.variableDeclarations,...this.getEntryPoints().reduce((t,i)=>{const a=ie(i);return[...t,...a]},[]),...this.functionCalls.reduce((t,i)=>{const a=ie(i);return[...t,...a]},[]),...this.conditions.reduce((t,i)=>{const a=ie(i);return[...t,...a]},[]),...this.operations.reduce((t,i)=>{const a=ie(i);return[...t,...a]},[]),...this.loops.reduce((t,i)=>{const a=ie(i);return[...t,...a]},[]),...this.searches.reduce((t,i)=>{const a=ie(i);return[...t,...a]},[])]}getVariableInstances(){return[...this.variableInstances,...this.getEntryPoints().reduce((t,i)=>{const s=ie(i).filter(o=>o.type===n.VariableInstance);return[...t,...s]},[]),...this.functionCalls.reduce((t,i)=>{const s=ie(i).filter(o=>o.type===n.VariableInstance);return[...t,...s]},[]),...this.conditions.reduce((t,i)=>{const s=ie(i).filter(o=>o.type===n.VariableInstance);return[...t,...s]},[]),...this.operations.reduce((t,i)=>{const s=ie(i).filter(o=>o.type===n.VariableInstance);return[...t,...s]},[]),...this.loops.reduce((t,i)=>{const s=ie(i).filter(o=>o.type===n.VariableInstance);return[...t,...s]},[]),...this.searches.reduce((t,i)=>{const s=ie(i).filter(o=>o.type===n.VariableInstance);return[...t,...s]},[])]}getVariableDeclarations(){return v([...this.variableDeclarations,...this.getEntryPoints().reduce((t,i)=>{const s=ie(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...s]},[]),...this.functionCalls.reduce((t,i)=>{const s=ie(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...s]},[]),...this.conditions.reduce((t,i)=>{const s=ie(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...s]},[]),...this.operations.reduce((t,i)=>{const s=ie(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...s]},[]),...this.loops.reduce((t,i)=>{const s=ie(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...s]},[]),...this.searches.reduce((t,i)=>{const s=ie(i).filter(o=>o.type===n.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(l=>l.id===s);o&&i.setDeclaration(o)}}),this}getBuiltInPersistedEntity(){return this.builtInBaseEntities.find(e=>e.name===L.PERSISTED_ENTITY)||null}};c(ee,"UUID",{isBackup:!0,uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:e=>e}),c(ee,"MUTABLE_BASE_PROPERTIES",["name","description"]),c(ee,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),c(ee,"BASE_PROPERTIES",[...ee.MUTABLE_BASE_PROPERTIES,...ee.INMUTABLE_BASE_PROPERTIES]),c(ee,"MUTABLE_META_PROPERTIES",[...ee.MUTABLE_BASE_PROPERTIES,"x","y"]),c(ee,"INMUTABLE_META_PROPERTIES",[...ee.INMUTABLE_BASE_PROPERTIES]),c(ee,"META_PROPERTIES",[...ee.MUTABLE_META_PROPERTIES,...ee.INMUTABLE_META_PROPERTIES]),c(ee,"MUTABLE_UPSTREAM_PROPERTIES",[]),c(ee,"INMUTABLE_UPSTREAM_PROPERTIES",["primitives","builtInBaseEntities","operationDeclarations","globalEventActionDescriptors","loopDeclarations","builtInInstances"]),c(ee,"UPSTREAM_PROPERTIES",[...ee.MUTABLE_UPSTREAM_PROPERTIES,...ee.INMUTABLE_UPSTREAM_PROPERTIES]),c(ee,"MUTABLE_DOWNSTREAM_PROPERTIES",["entities","projects","functions","events","variableDeclarations","variableInstances","conditions","operations","functionCalls","loops","searches"]),c(ee,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),c(ee,"DOWNSTREAM_PROPERTIES",[...ee.MUTABLE_DOWNSTREAM_PROPERTIES,...ee.INMUTABLE_DOWNSTREAM_PROPERTIES]),c(ee,"PROPERTIES",[...ee.META_PROPERTIES,...ee.UPSTREAM_PROPERTIES,...ee.DOWNSTREAM_PROPERTIES]);let N=ee;class gP extends te{constructor(t){super(xt,t);c(this,"id",_e.Parallel);c(this,"name",_e.Parallel);c(this,"description","Execute a list of actions one after the other");c(this,"version",1);c(this,"autoexecutable",!0);c(this,"initialData",xt);c(this,"type",n.ActionDescriptor);c(this,"inputs",[]);c(this,"outputs",[]);c(this,"error",null);c(this,"project");this.project=t,this.inputs=xt.inputs.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.outputs=xt.outputs.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.error=xt.error?R(xt.error,this.project):null}}class IP extends te{constructor(t){super(ct,t);c(this,"id",ct.id);c(this,"name",ct.name);c(this,"description",ct.description);c(this,"version",ct.version);c(this,"autoexecutable",!1);c(this,"initialData",ct);c(this,"type",n.ActionDescriptor);c(this,"inputs",[]);c(this,"outputs",[]);c(this,"error",null);c(this,"project");this.project=t,this.inputs=ct.inputs.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.outputs=ct.outputs.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.error=ct.error?R(ct.error,this.project):null}}class DP extends te{constructor(t){super(yn,t);c(this,"id",_e.Sequential);c(this,"name",_e.Sequential);c(this,"description","Execute a list of actions one after the other");c(this,"version",1);c(this,"autoexecutable",!0);c(this,"initialData",yn);c(this,"type",n.ActionDescriptor);c(this,"inputs",[]);c(this,"outputs",[]);c(this,"error",null);c(this,"project");this.project=t,this.inputs=yn.inputs.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.outputs=yn.outputs.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.error=yn.error?R(yn.error,this.project):null}}class f7 extends te{constructor(e){super(_i,e)}}class h7 extends te{constructor(e){super(er,e)}}class m7 extends te{constructor(e){super(tr,e)}getEntityToMatchInputMap(e){return e.inputs.find(t=>{var i;return((i=t.declaration)==null?void 0:i.id)===_.operation[oe.Validate].inputs.entityToMatch.id})||null}getDataToValidateInputMap(e){return e.inputs.find(t=>{var i;return((i=t.declaration)==null?void 0:i.id)===_.operation[oe.Validate].inputs.dataToValidate.id})||null}getOutputDataOutputMap(e){return e.outputs.find(t=>{var i;return((i=t.declaration)==null?void 0:i.id)===_.operation[oe.Validate].outputs.outputEntity.id})||null}getEntityToMatch(e){let t=null;if(e.readsValue){const a=e.readsValue.getDataType();a&&a.entity&&a.entity.type===n.CustomEntity&&(t=a.entity)}const i=e.getDefaultValue();return!t&&i&&i.valueAsType&&!Array.isArray(i.valueAsType)&&i.valueAsType.type===n.CustomEntity&&(t=i.valueAsType),t}syncOperationInstance(e){const t=this.getEntityToMatchInputMap(e);t&&this.syncEntityToMatchInputMapDataType(t);const i=this.getDataToValidateInputMap(e);i&&this.syncDataToValidateInputMapDataType(i);const a=this.getOutputDataOutputMap(e);return a&&this.syncOutputDataOutputMapDataType(a),e}syncEntityToMatchInputMapDataType(e){var i,a,s;if(((i=e.declaration)==null?void 0:i.id)!==_.operation[oe.Validate].inputs.entityToMatch.id)return null;if(!e.dataType){const o={id:e.id+"--infered-data-type",version:1,type:n.DataType,isList:!1,isNullable:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!0,entity:null,constant:!1,like:!0,inferred:!0,defaultValue:null,parent:e.toReference()},l=R(o,e.project);l.setParent(e),l.initChildren(),e.setDataType(l)}(a=e.dataType)==null||a.sync({inferred:!0,like:!1,asType:!0});const t=this.getEntityToMatch(e);return(s=e.dataType)==null||s.setEntity(t),e.dataType}syncDataToValidateInputMapDataType(e){var s,o,l;if(((s=e.declaration)==null?void 0:s.id)!==_.operation[oe.Validate].inputs.entityToMatch.id)return null;const t=this.getEntityToMatchInputMap(e.parent);if(!t||!this.getEntityToMatch(t))return null;if(!e.dataType){const p={id:e.id+"--infered-data-type",version:1,type:n.DataType,isList:!1,isNullable:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,constant:!1,like:!0,inferred:!0,defaultValue:null,parent:e.toReference()},y=R(p,e.project);y.setParent(e),y.initChildren(),e.setDataType(y)}(o=e.dataType)==null||o.sync({inferred:!0,like:!0,asType:!1});const a=this.getEntityToMatch(e);return(l=e.dataType)==null||l.setEntity(a),e.dataType}syncOutputDataOutputMapDataType(e){var s,o,l;if(((s=e.declaration)==null?void 0:s.id)!==_.operation[oe.Validate].outputs.outputEntity.id)return null;const t=this.getEntityToMatchInputMap(e.parent);if(!t||!this.getEntityToMatch(t))return null;if(!e.dataType){const p={id:e.id+"--infered-data-type",version:1,type:n.DataType,isList:!1,isNullable:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,constant:!1,like:!0,inferred:!0,defaultValue:null,parent:e.toReference()},y=R(p,e.project);y.setParent(e),y.initChildren(),e.setDataType(y)}(o=e.dataType)==null||o.sync({inferred:!0,like:!0,asType:!1});const a=this.getEntityToMatch(t);return(l=e.dataType)==null||l.setEntity(a),e.dataType}inferInputMapDataType(e){var t,i;return((t=e.declaration)==null?void 0:t.id)===_.operation[oe.Validate].inputs.entityToMatch.id?this.syncEntityToMatchInputMapDataType(e):((i=e.declaration)==null?void 0:i.id)===_.operation[oe.Validate].inputs.dataToValidate.id&&this.syncDataToValidateInputMapDataType(e),null}inferOutputMapDataType(e){var t;return((t=e.declaration)==null?void 0:t.id)===_.operation[oe.Validate].outputs.outputEntity.id&&this.syncOutputDataOutputMapDataType(e),null}}class T7 extends te{constructor(e){super(il,e)}}class E7 extends te{constructor(e){super(sl,e)}}class b7 extends te{constructor(e){super(ol,e)}}class R7 extends te{constructor(e){super(Ya,e)}}class v7 extends te{constructor(e){super(qa,e)}}class g7 extends te{constructor(e){super(Bi,e)}}function I7(r){const e=[new DP(r),new gP(r),new IP(r),new f7(r),new h7(r),new m7(r),new R7(r),new T7(r),new b7(r),new E7(r),new v7(r),new g7(r),new te(rl,r),new te(nl,r)];return e.forEach(t=>{t.initChildren(),r.subscribeBuiltInInstance(t)}),r.operationDeclarations=e,e}class AP extends Gt{constructor(t){super(Ue,t);c(this,"initialData");c(this,"id",L.PERSISTED_ENTITY);c(this,"version",1);c(this,"name",L.PERSISTED_ENTITY);c(this,"description",Ue.description);c(this,"type",n.BuiltInBaseEntity);c(this,"abstract",Ue.abstract);c(this,"static",Ue.static);c(this,"properties",[]);c(this,"methods",[]);c(this,"abstractMethods",[]);c(this,"extends",[]);c(this,"errors",[]);c(this,"project");this.initialData=Ue,this.project=t,this.id=Ue.id,this.version=Ue.version,this.name=Ue.name,this.static=Ue.static,this.abstract=Ue.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 D7(r){const e=[new AP(r),new Gt(as,r),new Gt(_n,r),new Gt(xl,r),new Gt(is,r)];return e.forEach(t=>{r.subscribeBuiltInInstance(t)}),r.builtInBaseEntities=e,e}function A7(r){const e=[new $t(F,r),new $t(Bn,r),new $t(Q,r),new $t(He,r),new $t(wn,r),new $t(cn,r),new $t(ka,r),new $t(Zo,r)];return e.forEach(t=>{r.subscribeBuiltInInstance(t)}),r.primitives=e,e}function P7(r){const e=[new te(ds,r)];return e.forEach(t=>{t.initChildren(),r.subscribeBuiltInInstance(t)}),r.globalEventActionDescriptors=e,e}function O7(r){const e=[new te(ns,r),new te(nr,r),new te(ts,r),new te(Mi,r),new te(Vi,r),new te(Tl,r)];e.forEach(i=>{i.initChildren(),r.subscribeBuiltInInstance(i)}),r.loopDeclarations=e;const t=[new te(Pl,r),new te(es,r),new te(gl,r),new te(dT,r),new te(CT,r),new te(bl,r)];return t.forEach(i=>{i.initChildren(),r.subscribeBuiltInInstance(i)}),r.loopDeclarationsBodies=t,e}function S7(r){const e=[new $r(Jl,r)];return e.forEach(t=>{t.initChildren(),r.subscribeBuiltInInstance(t)}),r.valueDescriptors=e,e}function C7(r){const e=[new te(or,r),new te(zr,r)];return e.forEach(t=>{t.initChildren()}),r.conditionDeclarations=e,e}const jr={},qo={};async function B7(r,e={}){const t={...FI};return t.id=r.id,e.empty?{data:{id:r.id,type:n.Project,version:1,name:null,description:null,projects:[],entities:[],operations:[],functions:[],variableDeclarations:[],variableInstances:[],functionCalls:[],conditions:[],loops:[],searches:[],events:[]}}:{data:t}}function PP(r){const e=new N(r);return A7(e),D7(e),I7(e),P7(e),O7(e),S7(e),C7(e),e.getAllBuiltIn().forEach(i=>{e.builtInInstances[i.id]||(e.builtInInstances[i.id]=i)}),e.initChildren(),e}async function w7(r,e={}){if(r.id&&jr[r.id])return jr[r.id];if(r.id&&qo[r.id])return await qo[r.id],jr[r.id];const t=B7(r,e);r.id&&(qo[r.id]=t);const i=await t;if(i.data){const a=PP(i.data);return jr[r.id]=a,r.id&&delete qo[r.id],a}return null}function _7(r){return jr[r.id]&&delete jr[r.id],null}const N7="test_primitive_entities_export";d.AI_VALUE_CONNECTION_GENERATION_ACTION_EXPLANATION=gu,d.ActionDescriptorState=te,d.ActionInputMapState=R2,d.ActionOutputMapState=I2,d.AppendToListOperationInputIds=Qy,d.AppendToListOperationOutputIds=ef,d.ArgumentDeclarationState=Lr,d.BREAK_AND_CONTINUE_STATEMENTS_RETURN_DECLARATIONS_EXPLANATION=Eu,d.BUILT_IN_BASE_ENTITY_IDS=_,d.BUILT_IN_ENTITY_TYPES=Wr,d.BaseCanvasDraggableState=i2,d.BaseEntityNames=L,d.BaseState=r2,d.BaseValueDescriptorIds=zo,d.BreakStatementState=Oi,d.BuiltInBaseEntityState=Gt,d.CACHED_PROJECTS_BY_ID=jr,d.CALLABLE_ENTITIES_EXPLANATION=V2,d.CALLABLE_TYPES=Cn,d.CALLER_ENTITIES_EXPLANATION=FA,d.CALLER_TYPES=ln,d.CALLS_UPDATE_EXPLANATION=Hn,d.COMPARISON_CONDITIONS=Bb,d.CONDITIONS=tO,d.CUSTOM_ENTITY_OPERATIONS=vh,d.CallableEntityClass=s2,d.CallerEntityClass=fu,d.ChildEntityState=a2,d.ComparisonOperatorTypes=Ve,d.ConditionState=wr,d.ContinueStatementState=mt,d.CreateNewInputIds=zf,d.CreateNewOutputIds=Zf,d.CustomEntityState=xr,d.DRAGGABLE_CALLABLE_TYPES=Yo,d.DRAGGABLE_CALLER_TYPES=Fu,d.DRAGGABLE_ELEMENT_TYPES=Ho,d.DRAGGABLE_EXECUTABLE_TYPES=SP,d.DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES=Wo,d.DataTypeCompatibilityTypes=Lt,d.DataTypeParentChildRelation=bt,d.DataTypeState=Ii,d.ENTITIES_WITH_VALLUES_EXPLANATION=wo,d.ENTITY_TYPES=CP,d.ENTITY_WITH_LOGIC_SCOPE_TYPES=lt,d.ENTITY_WITH_NAMES_TYPES=Uu,d.ENTITY_WITH_VALUE_TYPES=$u,d.ENTRY_POINT_ENTITIES_EXPLANATION=La,d.ENTRY_POINT_TYPES=Le,d.EVENT_TYPES=Jr,d.EXECUTABLE_TYPES=OP,d.EXECUTION_OPERATIONS=Hf,d.EntityError=hr,d.EntityErrorSeverity=T,d.EntityGenerationError=E,d.EntityGenerationErrorCode=f,d.EntityInstanceErrorCode=M,d.EntityOperations=oe,d.EntityType=n,d.EntityWithLogicScopeClass=d2,d.EntityWithValueClass=c2,d.EntryPointEntityClass=o2,d.ExecutionOperations=_e,d.FunctionCallState=Fr,d.FunctionDeclarationState=Sr,d.GLOBAL_EVENT_DECLARATIONS=nO,d.GetLastInListOperationInputIds=xy,d.GetLastInListOperationOutputIds=jy,d.GlobalEventNames=on,d.GlobalEventState=Di,d.HTTPOperations=Xe,d.HTTP_OPERATIONS=tm,d.InputMapState=Dn,d.InstalledProjectState=Vr,d.InternalCallState=Ai,d.JoinListOperationInputIds=oy,d.JoinListOperationOutputIds=ly,d.LIST_OPERATIONS=ff,d.ListOperations=Y,d.LoopState=Br,d.LoopTypes=x,d.NON_INTERACTIVE_BASE_ENTITIES_EXPLANATION=zn,d.NUMBER_OPERATIONS=vp,d.NumberOperations=fe,d.OPERATION_DECLARATIONS=_P,d.OperationState=Cr,d.OutputMapParentChildRelation=Gu,d.OutputMapState=An,d.PARENT_AUTO_CALCULATION_FROM_CALLER_EXPLANATION=_o,d.PASS_THROUGH_CALLABLE_ENTITIES_EXPLANATION=Yn,d.PASS_THROUGH_CALLABLE_TYPES=Fe,d.PROPERTY_NOT_VALUE_READER_WRITTER_EXPLANATION=vu,d.ParallelExecutionOperation=gP,d.ParallelExecutionOperationInputIds=hf,d.ParallelExecutionOperationOutputIds=mf,d.PassThroughCallableEntityClass=l2,d.PersistedEntity=AP,d.PersistedEntityMethods=Ot,d.PrimitiveEntityState=$t,d.PrimitiveTypes=I,d.PrimitiveValueState=Pi,d.ProjectState=N,d.PropertyState=Or,d.RETURN_STATEMENT_RETURN_DECLARATIONS_EXPLANATION=L2,d.ReturnDeclarationState=wt,d.ReturnStatementState=Gr,d.STANDALONE_CONDITIONS=Db,d.STRING_OPERATIONS=sy,d.ScopeCompatibilityType=ko,d.SearchState=Mr,d.SequentialExecutionOperation=DP,d.SequentialExecutionOperationInputIds=Vf,d.SequentialExecutionOperationOutputIds=Lf,d.SharedEntityErrorCode=A,d.SharedStateFunctionality=LA,d.SplitListOperationInputIds=Iy,d.SplitListOperationOutputIds=Dy,d.StandaloneOperatorTypes=Nt,d.StringOperations=K,d.TERMINATION_TYPES=Ge,d.USER_MANAGED_ENTITY_TYPES=BP,d.UserManagedEntityStateFunctionality=n2,d.VALUE_READING_ENTITIES_EXPLANATION=Ru,d.VALUE_READING_TYPES=Sn,d.VALUE_WRITING_ENTITIES_EXPLANATION=UA,d.VALUE_WRITING_TYPES=$e,d.VARIABLE_DATA_TYPE_INFERRANCE_EXPLANATION=bu,d.VARIABLE_TYPES=ke,d.ValueAutogenerationType=qe,d.ValueDescriptorParentChildRelation=D,d.ValueDescriptorState=$r,d.ValueReadingEntityClass=Ma,d.ValueWritingEntityClass=Va,d.VariableDeclarationState=_r,d.VariableInputMapState=b2,d.VariableInstanceState=Nr,d.VariableOutputMapState=g2,d.WaitOperation=IP,d.WaitOperationInputIds=Sf,d.WaitOperationOutputIds=Cf,d.appendToListOperation=Ya,d.appendToListOperationElementToAppendArgument=cl,d.appendToListOperationElementToAppendArgumentParentRef=cf,d.appendToListOperationElementToAppendArgumentRef=rf,d.appendToListOperationError=yf,d.appendToListOperationErrorParentRef=pf,d.appendToListOperationListArgument=ll,d.appendToListOperationListArgumentParentRef=lf,d.appendToListOperationListArgumentRef=tf,d.appendToListOperationListDataType=nf,d.appendToListOperationResultListDataType=of,d.appendToListOperationResultListReturn=uf,d.appendToListOperationResultListReturnParentRef=df,d.appendToListOperationResultListReturnRef=sf,d.appendToListOperationSecondListDataType=af,d.asGenerationActionExample=an,d.booleanPrototype=Bn,d.capitalizeFirstLetter=Io,d.checkAreCustomEntitiesCompatibleAsDataType=IA,d.checkAreDataTypesCompatible=Yt,d.checkArePropertiesCompatibleAsDataType=gA,d.checkIsBranchDependentButNotDirectlyOnBranch=$a,d.checkIsBranchDependentOnBranch=J2,d.checkIsCallableEntityReachable=xa,d.checkIsCanvasEntity=l7,d.checkIsDetachedBranch=mP,d.checkIsDetachedBranchShallow=Vu,d.checkIsGlobalVariable=s7,d.checkIsGloballyDeclared=Mu,d.checkIsMethod=bP,d.checkIsNestedScope=jo,d.checkScopeCompatibility=Fa,d.countedLoopActionDescriptor=ns,d.countedLoopActionDescriptorDynamicReturnDeclaration=$T,d.countedLoopActionDescriptorDynamicReturnDeclarationParentRef=GT,d.countedLoopActionDescriptorStringArgumentDeclaration=LT,d.countedLoopActionDescriptorStringArgumentDeclarationDataType=MT,d.countedLoopActionDescriptorStringArgumentDeclarationDataTypeDefaultValue=_T,d.countedLoopActionDescriptorStringArgumentDeclarationDataTypeDefaultValueParentRef=wT,d.countedLoopActionDescriptorStringArgumentDeclarationDataTypeParentRef=NT,d.countedLoopActionDescriptorStringArgumentDeclarationParentRef=VT,d.countedLoopBodyActionDescriptor=Pl,d.countedLoopBodyActionDescriptorAnyDynamicArgument=kT,d.countedLoopBodyActionDescriptorAnyDynamicArgumentParentRef=jT,d.countedLoopBodyActionDescriptorAnyDynamicReturn=JT,d.countedLoopBodyActionDescriptorAnyDynamicReturnParentRef=qT,d.countedLoopBodyActionDescriptorIterationNumberArgumentDeclaration=Al,d.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=UT,d.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=FT,d.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=xT,d.createEntityError=z,d.createNewInstanceOperation=er,d.createNewInstanceOperationEntityToInstanciateArgument=ih,d.createNewInstanceOperationEntityToInstanciateArgumentRef=th,d.createNewInstanceOperationEntityToInstanciateDataType=nh,d.createNewInstanceOperationError=lh,d.createNewInstanceOperationErrorParentRef=oh,d.createNewInstanceOperationNewEntityDataArgument=eh,d.createNewInstanceOperationNewEntityDataArgumentDataType=Qf,d.createNewInstanceOperationNewEntityDataArgumentDataTypeParentRef=Xf,d.createNewInstanceOperationNewEntityDataArgumentParentRef=Kf,d.createNewInstanceOperationOutputEntityDeclaration=sh,d.createNewInstanceOperationOutputEntityDeclarationParentRef=ah,d.createNewInstanceOperationRef=rh,d.createSemanticId=et,d.createStateFromGenerationTargetType=y7,d.createStateFromType=Ft,d.createStateFromTypeAndSubscribe=R,d.cronJobBuiltInBaseEntity=xl,d.cronJobBuiltInBaseEntityExpressionProperty=Rb,d.cronJobBuiltInBaseEntityExpressionPropertyDataTypeRef=XP,d.cronJobBuiltInBaseEntityExpressionPropertyRef=Eb,d.cronJobBuiltInBaseEntityRef=bb,d.cronJobTriggeredFunctionDeclarationBlueprint=Ul,d.cronJobTriggeredFunctionDeclarationBlueprintParentRef=mb,d.customEntityToZodSchema=Hb,d.dataTypeCompatibilityToErrorExplanation=HA,d.datePrototype=cn,d.dateValueAutogenerationSchema=td,d.deletePersistedEntityMethod=Fl,d.deletePersistedEntityMethodParentRef=HE,d.deleteRootProject=_7,d.endpointBuiltInBaseEntity=as,d.endpointBuiltInBaseEntityRef=tE,d.endpointBuiltInBaseEntityRefFour=LE,d.endpointBuiltInBaseEntityRefThree=dE,d.endpointBuiltInBaseEntityRefTwo=sE,d.endpointBuiltInCorsProperty=nE,d.endpointBuiltInCorsPropertyDataType=eE,d.endpointBuiltInCorsPropertyDataTypeRef=XT,d.endpointBuiltInCorsPropertyRef=QT,d.endpointBuiltInMethodProperty=Sl,d.endpointBuiltInMethodPropertyDataType=cE,d.endpointBuiltInMethodPropertyDataTypeRef=oE,d.endpointBuiltInMethodPropertyRef=lE,d.endpointBuiltInPathProperty=Ol,d.endpointBuiltInPathPropertyDataType=aE,d.endpointBuiltInPathPropertyDataTypeRef=rE,d.endpointBuiltInPathPropertyRef=iE,d.endpointPathParamsArgumentDeclaration=Bl,d.endpointPathParamsArgumentDeclarationRef=RE,d.endpointPathParamsVariableDataType=vE,d.endpointPathParamsVariableDataTypeRef=bE,d.endpointReachedTriggerActionDescriptor=Ll,d.endpointReachedTriggerActionDescriptorRef=gE,d.endpointReachedTriggerActionDescriptorRefFour=AE,d.endpointReachedTriggerActionDescriptorRefThree=DE,d.endpointReachedTriggerActionDescriptorRefTwo=IE,d.endpointRequestBodyArgumentDeclaration=_l,d.endpointRequestBodyArgumentDeclarationRef=fE,d.endpointRequestBodyVariableDataType=hE,d.endpointRequestHeadersArgumentDeclaration=Cl,d.endpointRequestHeadersArgumentDeclarationRef=pE,d.endpointRequestHeadersVariableDataType=yE,d.endpointRequestHeadersVariableDataTypeRef=uE,d.endpointRequestQueryParamsArgumentDeclaration=wl,d.endpointRequestQueryParamsArgumentDeclarationRef=TE,d.endpointRequestQueryParamsVariableDataType=EE,d.endpointRequestQueryParamsVariableDataTypeRef=mE,d.endpointResponseBodyDataType=ME,d.endpointResponseBodyReturnDeclaration=Vl,d.endpointResponseBodyReturnDeclarationRef=NE,d.endpointResponseCodeDataType=OE,d.endpointResponseCodeReturnDeclaration=Nl,d.endpointResponseCodeReturnDeclarationRef=PE,d.endpointResponseHeadersDataType=wE,d.endpointResponseHeadersDataTypeRef=CE,d.endpointResponseHeadersReturnDeclaration=Ml,d.endpointResponseHeadersReturnDeclarationRef=BE,d.endpointReturnStatementRef=SE,d.endpointReturnStatementRefThree=VE,d.endpointReturnStatementRefTwo=_E,d.enumOptionsProperty=Ju,d.enumOptionsPropertyDataType=ku,d.enumOptionsPropertyDataTypeRef=xu,d.enumOptionsPropertyRef=ju,d.enumPrototype=wn,d.enumPrototypeRef=qu,d.executionBuiltInEntity=kl,d.executionBuiltInEntityAbortMethod=jl,d.executionBuiltInEntityAbortMethodParentRef=vb,d.filterOutDuplicateEntities=v,d.filterOutDuplicateErrors=Xj,d.findReferenceToSelfInList=lP,d.findReferencesToSelfInProject=e7,d.flattenCalls=sn,d.flattenCanvasAncestorsUntil=Go,d.flattenCustomEntityExtensionAndImplementationTypes=yP,d.flattenCustomEntityExtensionTypes=Uo,d.flattenCustomEntityExtensions=wu,d.flattenCustomEntityImplementations=_u,d.flattenCustomEntityImplementionTypes=Fo,d.flattenDerivedCanvasEntities=Pt,d.flattenDetachedBranch=EP,d.flattenElementCalls=we,d.flattenElementCallsOnTheSameScope=Q2,d.flattenProjectElements=oP,d.flattenRelatedCanvasElementsOnTheLeft=pP,d.flattenRelatedCanvasElementsOnTheRight=uP,d.flattenVariableReads=sP,d.flattenVariableWrites=aP,d.flattenVariables=ie,d.fromZodParseToEntityGenerationErrors=hu,d.generate=XS,d.generateActionExample=G2,d.generateExecutionDataType=Gk,d.generateMutablePropertiesExplanation=So,d.generateRandomBoolean=RR,d.generateRandomDate=Xb,d.generateRandomDateAfter=zb,d.generateRandomDateBefore=Zb,d.generateRandomDateBetweenRange=Kb,d.generateRandomNumber=hR,d.generateRandomNumberAfter=pR,d.generateRandomNumberBefore=yR,d.generateRandomNumberBetweenRange=fR,d.generateRandomText=bR,d.generateRandomTextAfter=mR,d.generateRandomTextBefore=TR,d.generateRandomTextBetweenRange=ER,d.generateUniqueUUID=uR,d.getAllActionDescriptorsForConditions=Vo,d.getAllActionDescriptorsForGlobalEvents=No,d.getAllActionDescriptorsForLoops=Mo,d.getAllActionDescriptorsForOperations=x2,d.getAllGloballyDeclaredFunctionDeclarationsExplanation=JA,d.getBaseBuiltInEntities=Kn,d.getBaseSchemaBasedOnType=GA,d.getBuiltInEntityOwner=Xn,d.getCallableEntityReferenceSchema=Ye,d.getCallableEntityTypeSchema=cD,d.getCallerEntityReferenceSchema=r3,d.getCallerEntityTypeSchema=n3,d.getCalls=Pu,d.getCanvasEntitiesDerivedFromInternalCalls=dP,d.getCanvasEntitiesDerivedFromWrites=Si,d.getCanvasEntityDerivedFromValueReadingEntity=Bu,d.getCanvasEntityReferenceSchema=R3,d.getCanvasEntityTypeSchema=b3,d.getChildrenEntityWithValues=Y2,d.getCommonAncestor=Au,d.getCommonChildren=KA,d.getDeclaration=Pr,d.getDeepestScope=vP,d.getDraggableCallableEntityReferenceSchema=uD,d.getDraggableCallableEntityTypeSchema=dD,d.getDraggableCallerEntityReferenceSchema=a3,d.getDraggableCallerEntityTypeSchema=i3,d.getDraggableExecutableEntityReferenceSchema=c3,d.getDraggableExecutableEntityTypeSchema=l3,d.getDraggablePassThroughCallableEntityReferenceSchema=ho,d.getDraggablePassThroughCallableEntityTypeSchema=fo,d.getDraggablePlayableEntityReferenceSchema=f3,d.getDraggablePlayableEntityTypeSchema=y3,d.getEntityArgumentDeclarations=Su,d.getEntityInputMaps=cP,d.getEntityOutputMaps=r7,d.getEntityReferenceSchema=E3,d.getEntityReturnDeclarations=Cu,d.getEntityTypeSchema=T3,d.getEntityWithLogicScopeReferenceSchema=vn,d.getEntityWithLogicScopeTypeSchema=d3,d.getEntityWithValueReferenceSchema=lD,d.getEntityWithValueTypeSchema=t3,d.getEntryPointEntityReferenceSchema=We,d.getEntryPointEntityTypeSchema=qn,d.getEventEntityReferenceSchema=po,d.getEventEntityTypeSchema=uo,d.getExecutableEntityReferenceSchema=o3,d.getExecutableEntityTypeSchema=s3,d.getExtendedBuiltInEntity=i7,d.getExtendedCustomEntity=hP,d.getGenerationTargetSchemaBasedOnType=$A,d.getHeadIfPartOfDetachedBranch=TP,d.getHighestScope=RP,d.getImplementedBuiltInEntity=a7,d.getIsInteractive=Nu,d.getLastInListOperation=ol,d.getLastInListOperationError=Xy,d.getLastInListOperationErrorParentRef=Ky,d.getLastInListOperationInputListArgument=Hy,d.getLastInListOperationInputListArgumentParentRef=Yy,d.getLastInListOperationInputListArgumentRef=ky,d.getLastInListOperationInputListDataType=qy,d.getLastInListOperationOutputElementDataType=Wy,d.getLastInListOperationOutputElementReturn=Zy,d.getLastInListOperationOutputElementReturnParentRef=zy,d.getLastInListOperationOutputElementReturnRef=Jy,d.getLinkedEntitiesFromArgumentDeclaration=X2,d.getLowestPersistedEntityImplementation=fP,d.getParentCanvasEntities=Tt,d.getParentCanvasEntity=Ke,d.getParentEntryPoint=W2,d.getPassThroughCallableEntityReferenceSchema=he,d.getPassThroughCallableEntityTypeSchema=yo,d.getPlayableEntityReferenceSchema=p3,d.getPlayableEntityTypeSchema=u3,d.getProject=w7,d.getPrototypeByType=xo,d.getReferenceEntityId=w,d.getReferencedEntitiesStateOrErrors=Bo,d.getReferencedEntityStateOrErrors=mu,d.getRelatedCanvasElementsOnTheLeft=Ur,d.getRelatedCanvasElementsOnTheRight=Zn,d.getRootEntryPointScopeOwner=Lu,d.getScopeOwner=Et,d.getTerminationReferenceSchema=m3,d.getTerminationTypeSchema=h3,d.getUsedArgFromDeclaration=t7,d.getUsedReturnFromDeclaration=n7,d.getValueReadingEntityReferenceSchema=oD,d.getValueReadingEntityTypeSchema=Rn,d.getValueWritingEntityReferenceSchema=e3,d.getValueWritingEntityTypeSchema=Da,d.getVariableFromInputMapping=QA,d.getVariableFromReturnVariablePointer=nP,d.getVariableReferenceSchema=kn,d.getVariableTypeSchema=Rr,d.getVariablesFromArgumentDeclarations=$o,d.getVariablesFromInputMaps=eP,d.getVariablesFromOutputMapping=rP,d.getVariablesFromOutputMaps=iP,d.getVariablesFromReturnDeclarations=tP,d.getVariablesInSameOrHigherScope=su,d.getWrites=Ou,d.groupCallsBasedOnParallelizableExecution=z2,d.handleAfterEntityImplementationSideEffects=ZA,d.handleBeforeEntityImplementationSideEffects=zA,d.httpRequestBodyArgument=Ka,d.httpRequestBodyArgumentRef=Mh,d.httpRequestBodyDataType=Vh,d.httpRequestHeadersArgument=Za,d.httpRequestHeadersArgumentRef=_h,d.httpRequestHeadersDataType=Nh,d.httpRequestMethodArgument=Ha,d.httpRequestMethodArgumentRef=Bh,d.httpRequestMethodDataType=wh,d.httpRequestMethodDataTypeRef=Sh,d.httpRequestOperation=_i,d.httpRequestOperationErrorValueDescriptor=ml,d.httpRequestOperationErrorValueDescriptorDatatype=em,d.httpRequestOperationErrorValueDescriptorRef=Qh,d.httpRequestOperationRef=zh,d.httpRequestOperationRefEight=Kh,d.httpRequestOperationRefFive=Yh,d.httpRequestOperationRefFour=Wh,d.httpRequestOperationRefNine=Xh,d.httpRequestOperationRefSeven=Zh,d.httpRequestOperationRefSix=Hh,d.httpRequestOperationRefThree=Jh,d.httpRequestOperationRefTwo=qh,d.httpRequestQueryParamsArgument=fl,d.httpRequestQueryParamsArgumentRef=Ph,d.httpRequestQueryParamsDataType=Oh,d.httpRequestVariableURLArgument=za,d.httpRequestVariableURLArgumentRef=Dh,d.httpRequestVariableURLDataType=Ah,d.httpRequestVariableURLDataTypeRef=gh,d.httpResponseBodyReturnDataType=kh,d.httpResponseBodyReturnDataTypeRef=xh,d.httpResponseBodyReturnReturn=wi,d.httpResponseBodyReturnReturnRef=jh,d.httpResponseCodeDataType=Gh,d.httpResponseCodeReturn=hl,d.httpResponseCodeReturnRef=Lh,d.httpResponseHeadersDataType=Uh,d.httpResponseHeadersDataTypeRef=$h,d.httpResponseHeadersReturn=Xa,d.httpResponseHeadersReturnRef=Fh,d.implement=Lo,d.inferArgumentDeclarationDataType=DA,d.inferDataType=rn,d.inferInputMapDataType=ru,d.inferOutputMapDataType=au,d.inferPropertyDataType=OA,d.inferReturnDeclarationDataType=iu,d.inferValueDescriptorDataType=SA,d.inferVariableDeclarationDataType=PA,d.inferVariableInstanceDataType=AA,d.initProject=PP,d.iterateOverListActionDescriptorListArgumentDeclaration=hm,d.iterateOverListActionDescriptorListArgumentDeclarationDataType=ym,d.iterateOverListActionDescriptorListArgumentDeclarationDataTypeParentRef=pm,d.iterateOverListActionDescriptorListArgumentDeclarationParentRef=fm,d.iterateOverListLoopActionDescriptor=nr,d.iterateOverListLoopActionDescriptorDynamicReturnDeclaration=Tm,d.iterateOverListLoopActionDescriptorDynamicReturnDeclarationParentRef=mm,d.iterateOverListLoopBodyActionDescriptor=es,d.iterateOverListLoopBodyActionDescriptorAnyDynamicArgument=Pm,d.iterateOverListLoopBodyActionDescriptorAnyDynamicArgumentParentRef=Am,d.iterateOverListLoopBodyActionDescriptorAnyDynamicReturn=Sm,d.iterateOverListLoopBodyActionDescriptorAnyDynamicReturnParentRef=Om,d.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclaration=Qa,d.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=bm,d.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=Em,d.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=Rm,d.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclaration=Dm,d.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=gm,d.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=vm,d.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=Im,d.iterateOverObjectKeysActionDescriptorObjectArgumentDeclaration=Zm,d.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationDataType=Hm,d.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationDataTypeParentRef=Ym,d.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationParentRef=zm,d.iterateOverObjectKeysLoopActionDescriptor=Mi,d.iterateOverObjectKeysLoopActionDescriptorDynamicReturnDeclaration=Xm,d.iterateOverObjectKeysLoopActionDescriptorDynamicReturnDeclarationParentRef=Km,d.iterateOverObjectKeysLoopBodyActionDescriptor=dT,d.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicArgument=oT,d.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicArgumentParentRef=sT,d.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicReturn=cT,d.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicReturnParentRef=lT,d.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclaration=Il,d.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=eT,d.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=Qm,d.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=tT,d.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclaration=aT,d.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=rT,d.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=nT,d.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=iT,d.iterateOverObjectValuesActionDescriptorObjectArgumentDeclaration=hT,d.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationDataType=yT,d.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationDataTypeParentRef=pT,d.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationParentRef=fT,d.iterateOverObjectValuesLoopActionDescriptor=Vi,d.iterateOverObjectValuesLoopActionDescriptorDynamicReturnDeclaration=TT,d.iterateOverObjectValuesLoopActionDescriptorDynamicReturnDeclarationParentRef=mT,d.iterateOverObjectValuesLoopBodyActionDescriptor=CT,d.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicArgument=PT,d.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicArgumentParentRef=AT,d.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicReturn=ST,d.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicReturnParentRef=OT,d.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclaration=Dl,d.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=bT,d.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=ET,d.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=RT,d.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclaration=DT,d.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=gT,d.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=vT,d.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=IT,d.iterateOverStringActionDescriptorDynamicReturnDeclaration=Vm,d.iterateOverStringActionDescriptorDynamicReturnDeclarationParentRef=Mm,d.iterateOverStringActionDescriptorStringArgumentDeclaration=Nm,d.iterateOverStringActionDescriptorStringArgumentDeclarationDataType=wm,d.iterateOverStringActionDescriptorStringArgumentDeclarationDataTypeParentRef=Bm,d.iterateOverStringActionDescriptorStringArgumentDeclarationParentRef=_m,d.iterateOverStringLoopActionDescriptor=ts,d.iterateOverStringLoopBodyActionDescriptor=gl,d.iterateOverStringLoopBodyActionDescriptorAnyDynamicArgument=km,d.iterateOverStringLoopBodyActionDescriptorAnyDynamicArgumentParentRef=jm,d.iterateOverStringLoopBodyActionDescriptorAnyDynamicReturn=Jm,d.iterateOverStringLoopBodyActionDescriptorAnyDynamicReturnParentRef=qm,d.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclaration=Rl,d.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=Gm,d.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=Lm,d.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=$m,d.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclaration=vl,d.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=Um,d.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=Fm,d.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=xm,d.joinListOperation=il,d.joinListOperationError=gy,d.joinListOperationErrorParentRef=vy,d.joinListOperationFirstListArgument=my,d.joinListOperationFirstListArgumentParentRef=hy,d.joinListOperationFirstListArgumentRef=cy,d.joinListOperationFirstListDataType=dy,d.joinListOperationResultListDataType=fy,d.joinListOperationResultListReturn=Ry,d.joinListOperationResultListReturnParentRef=by,d.joinListOperationResultListReturnRef=yy,d.joinListOperationSecondListArgument=Ey,d.joinListOperationSecondListArgumentParentRef=Ty,d.joinListOperationSecondListArgumentRef=uy,d.joinListOperationSecondListDataType=py,d.joinListWithLastSeparator=$,d.joinStringsOperation=Bi,d.joinStringsOperationDynamicStringArgument=jp,d.joinStringsOperationDynamicStringArgumentParentRef=xp,d.joinStringsOperationDynamicStringArgumentRef=Fp,d.joinStringsOperationDynamicStringDataType=Up,d.joinStringsOperationError=$p,d.joinStringsOperationErrorParentRef=Gp,d.joinStringsOperationFirstStringArgument=Ja,d.joinStringsOperationFirstStringArgumentParentRef=Sp,d.joinStringsOperationFirstStringArgumentRef=gp,d.joinStringsOperationFirstStringDataType=Ip,d.joinStringsOperationResultStringDataType=Op,d.joinStringsOperationResultStringReturn=Ci,d.joinStringsOperationResultStringReturnParentRef=Lp,d.joinStringsOperationResultStringReturnRef=Pp,d.joinStringsOperationSecondStringArgument=Wa,d.joinStringsOperationSecondStringArgumentParentRef=Vp,d.joinStringsOperationSecondStringArgumentRef=Dp,d.joinStringsOperationSecondStringDataType=Ap,d.joinStringsOperationSeparatorStringArgument=Mp,d.joinStringsOperationSeparatorStringArgumentParentRef=Np,d.joinStringsOperationSeparatorStringArgumentRef=Cp,d.joinStringsOperationSeparatorStringDataType=_p,d.joinStringsOperationSeparatorStringDataTypeDefaultValue=wp,d.joinStringsOperationSeparatorStringDataTypeDefaultValueParentRef=Bp,d.jsonPrototype=Zo,d.keyValueParamBuiltInBaseEntity=is,d.keyValueParamBuiltInBaseEntityNameProperty=HT,d.keyValueParamBuiltInBaseEntityNamePropertyDataTypeRef=MP,d.keyValueParamBuiltInBaseEntityNamePropertyParentRef=YT,d.keyValueParamBuiltInBaseEntityNamePropertyRef=WT,d.keyValueParamBuiltInBaseEntityValueProperty=KT,d.keyValueParamBuiltInBaseEntityValuePropertyDataTypeRef=LP,d.keyValueParamBuiltInBaseEntityValuePropertyParentRef=ZT,d.keyValueParamBuiltInBaseEntityValuePropertyRef=zT,d.lowercaseFirstLetter=vA,d.manualFlowActionDescriptorDeclarationArgumentDeclaration=El,d.manualFlowActionDescriptorDeclarationArgumentDeclarationDataType=am,d.manualFlowActionDescriptorDeclarationArgumentDeclarationDataTypeParentRef=im,d.manualFlowActionDescriptorDeclarationArgumentDeclarationParentRef=sm,d.manualFlowLoopActionDescriptor=Tl,d.manualFlowLoopActionDescriptorDynamicReturnDeclaration=rm,d.manualFlowLoopActionDescriptorDynamicReturnDeclarationParentRef=nm,d.manualFlowLoopBodyActionDescriptor=bl,d.manualFlowLoopBodyActionDescriptorAnyDynamicArgument=lm,d.manualFlowLoopBodyActionDescriptorAnyDynamicArgumentParentRef=om,d.manualFlowLoopBodyActionDescriptorAnyDynamicReturn=dm,d.manualFlowLoopBodyActionDescriptorAnyDynamicReturnParentRef=cm,d.mapActionDescriptorToTypeItRepresents=c7,d.mergeEntityErrorsList=Qj,d.mergeListOfEntities=o7,d.methodDefaultValue=Ch,d.mockClientProject=FI,d.moreThanOrEqualCondition=zr,d.moreThanOrEqualConditionLeftHandArgument=Ob,d.moreThanOrEqualConditionLeftHandArgumentParentRef=Pb,d.moreThanOrEqualConditionRightHandArgument=Cb,d.moreThanOrEqualConditionRightHandArgumentParentRef=Sb,d.notEmptyCondition=or,d.notEmptyConditionArgument=Ib,d.notEmptyConditionRef=gb,d.numberAdditionOperation=qa,d.numberAdditionOperationDynamicSummandArgument=ip,d.numberAdditionOperationDynamicSummandArgumentType=rp,d.numberAdditionOperationDynamicSummandArgumentTypeParentRef=np,d.numberAdditionOperationError=tp,d.numberAdditionOperationErrorParentRef=ep,d.numberAdditionOperationFirstNumberArgument=Ko,d.numberAdditionOperationFirstNumberArgumentRef=Wu,d.numberAdditionOperationFirstNumberDataType=Yu,d.numberAdditionOperationRef=Xu,d.numberAdditionOperationRefThree=Qo,d.numberAdditionOperationRefTwo=Qu,d.numberAdditionOperationResultNumberDataType=Ku,d.numberAdditionOperationResultNumberReturn=el,d.numberAdditionOperationResultNumberReturnRef=Zu,d.numberAdditionOperationSecondNumberArgument=Xo,d.numberAdditionOperationSecondNumberArgumentRef=Hu,d.numberAdditionOperationSecondNumberDataType=zu,d.numberPrototype=Q,d.numberSubtractionOperation=nl,d.numberSubtractionOperationDynamicSubtrahendArgument=Rp,d.numberSubtractionOperationDynamicSubtrahendArgumentType=bp,d.numberSubtractionOperationDynamicSubtrahendArgumentTypeParentRef=Ep,d.numberSubtractionOperationError=Tp,d.numberSubtractionOperationErrorParentRef=mp,d.numberSubtractionOperationFirstNumberArgument=up,d.numberSubtractionOperationFirstNumberArgumentRef=ap,d.numberSubtractionOperationFirstNumberDataType=sp,d.numberSubtractionOperationRef=tl,d.numberSubtractionOperationRefThree=fp,d.numberSubtractionOperationRefTwo=pp,d.numberSubtractionOperationResultNumberDataType=dp,d.numberSubtractionOperationResultNumberReturn=hp,d.numberSubtractionOperationResultNumberReturnRef=cp,d.numberSubtractionOperationSecondNumberArgument=yp,d.numberSubtractionOperationSecondNumberArgumentRef=op,d.numberSubtractionOperationSecondNumberDataType=lp,d.numberValueAutogenerationSchema=ed,d.parallelExecutionOperation=xt,d.parallelExecutionOperationError=Of,d.parallelExecutionOperationErrorParentRef=Pf,d.parallelExecutionOperationListOfExecutionResultsDataType=If,d.parallelExecutionOperationListOfExecutionResultsReturn=ul,d.parallelExecutionOperationListOfExecutionResultsReturnRef=gf,d.parallelExecutionOperationListOfFunctionsArgument=dl,d.parallelExecutionOperationListOfFunctionsArgumentDatatype=vf,d.parallelExecutionOperationListOfFunctionsArgumentRef=Rf,d.parallelExecutionOperationListOfFunctionsBlueprint=bf,d.parallelExecutionOperationListOfFunctionsBlueprintDynamicInput=Ef,d.parallelExecutionOperationListOfFunctionsBlueprintDynamicOutput=Tf,d.parallelExecutionOperationRef=Df,d.parallelExecutionOperationRefThree=Af,d.persistedBuiltInBaseEntity=Ue,d.persistedBuiltInBaseEntityCreatedAtProperty=ub,d.persistedBuiltInBaseEntityCreatedAtPropertyDataType=cb,d.persistedBuiltInBaseEntityCreatedAtPropertyDataTypeRef=ZP,d.persistedBuiltInBaseEntityCreatedAtPropertyParentRef=db,d.persistedBuiltInBaseEntityCreatedAtPropertyRef=lb,d.persistedBuiltInBaseEntityDatabaseProperty=$i,d.persistedBuiltInBaseEntityDatabasePropertyDataTypeRef=WP,d.persistedBuiltInBaseEntityDatabasePropertyParentRef=QE,d.persistedBuiltInBaseEntityDatabasePropertyRef=XE,d.persistedBuiltInBaseEntityDeletedAtProperty=ob,d.persistedBuiltInBaseEntityDeletedAtPropertyDataType=ab,d.persistedBuiltInBaseEntityDeletedAtPropertyDataTypeRef=zP,d.persistedBuiltInBaseEntityDeletedAtPropertyParentRef=sb,d.persistedBuiltInBaseEntityDeletedAtPropertyRef=ib,d.persistedBuiltInBaseEntityIdentifierProperty=rb,d.persistedBuiltInBaseEntityIdentifierPropertyDataTypeRef=eb,d.persistedBuiltInBaseEntityIdentifierPropertyParentRef=nb,d.persistedBuiltInBaseEntityIdentifierPropertyRef=tb,d.persistedBuiltInBaseEntityUpdatedAtProperty=hb,d.persistedBuiltInBaseEntityUpdatedAtPropertyDataType=yb,d.persistedBuiltInBaseEntityUpdatedAtPropertyDataTypeRef=KP,d.persistedBuiltInBaseEntityUpdatedAtPropertyParentRef=fb,d.persistedBuiltInBaseEntityUpdatedAtPropertyRef=pb,d.processOutputGlobalValueDescriptorDataType=_b,d.processOutputGlobalValueDescriptorReturn=Jl,d.processOutputGlobalValueDescriptorReturnRef=wb,d.projectPublicationCompletedGlobalEvent=ds,d.propertyToZodSchema=Yb,d.relationalDatabaseBuiltInBaseEntity=_n,d.relationalDatabaseBuiltInBaseEntityAutoscalingProperty=$l,d.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyDataTypeRef=WE,d.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyParentRef=YE,d.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyRef=JE,d.relationalDatabaseBuiltInBaseEntityDefaultProperty=Gl,d.relationalDatabaseBuiltInBaseEntityDefaultPropertyDataTypeRef=kE,d.relationalDatabaseBuiltInBaseEntityDefaultPropertyRef=qE,d.relationalDatabaseBuiltInBaseEntityIdentifierProperty=ss,d.relationalDatabaseBuiltInBaseEntityIdentifierPropertyDataTypeRef=GE,d.relationalDatabaseBuiltInBaseEntityIdentifierPropertyRef=$E,d.relationalDatabaseBuiltInBaseEntityMinSizeProperty=cs,d.relationalDatabaseBuiltInBaseEntityMinSizePropertyDataTypeRef=xE,d.relationalDatabaseBuiltInBaseEntityMinSizePropertyRef=jE,d.relationalDatabaseBuiltInBaseEntityPasswordProperty=ls,d.relationalDatabaseBuiltInBaseEntityPasswordPropertyDataTypeRef=xP,d.relationalDatabaseBuiltInBaseEntityPasswordPropertyRef=UE,d.relationalDatabaseBuiltInBaseEntityRef=Hr,d.relationalDatabaseBuiltInBaseEntityUsernameProperty=os,d.relationalDatabaseBuiltInBaseEntityUsernamePropertyDataTypeRef=FP,d.relationalDatabaseBuiltInBaseEntityUsernamePropertyRef=FE,d.resolveActionDescriptorName=VA,d.resolveBaseEntityName=BA,d.resolveBuiltInBaseEntityDataTypeLabel=wA,d.resolveConditionOperatorLabel=Po,d.resolveCustomEntityDataTypeLabel=_A,d.resolveDataType=Do,d.resolveDataTypeLabel=ou,d.resolveEntityDataTypeLabel=xk,d.resolveEntityName=C,d.resolveFirstCallsSecond=Z2,d.resolveFirstWritesSecond=K2,d.resolvePrimitiveEntityName=MA,d.resolveSearchName=NA,d.resolveVariableScope=$k,d.sequentialExecutionOperation=yn,d.sequentialExecutionOperationError=Yf,d.sequentialExecutionOperationErrorParentRef=Wf,d.sequentialExecutionOperationListOfExecutionResultsDataType=kf,d.sequentialExecutionOperationListOfExecutionResultsReturn=yl,d.sequentialExecutionOperationListOfExecutionResultsReturnParentRef=Jf,d.sequentialExecutionOperationListOfExecutionResultsReturnRef=jf,d.sequentialExecutionOperationListOfFunctionsArgument=pl,d.sequentialExecutionOperationListOfFunctionsArgumentDatatype=xf,d.sequentialExecutionOperationListOfFunctionsArgumentParentRef=qf,d.sequentialExecutionOperationListOfFunctionsArgumentRef=Uf,d.sequentialExecutionOperationListOfFunctionsBlueprint=Ff,d.sequentialExecutionOperationListOfFunctionsBlueprintDynamicInput=$f,d.sequentialExecutionOperationListOfFunctionsBlueprintDynamicOutput=Gf,d.softDeletePersistedEntityMethod=ZE,d.softDeletePersistedEntityMethodParentRef=zE,d.sortCallsBasedOnExecutionDependencies=XA,d.sortChildrenEntitiesBasedOnExecutionDependencies=H2,d.splitListOperation=sl,d.splitListOperationError=Uy,d.splitListOperationErrorParentRef=Fy,d.splitListOperationFirstOutputListDataType=Cy,d.splitListOperationFirstOutputListReturn=Vy,d.splitListOperationFirstOutputListReturnParentRef=My,d.splitListOperationFirstOutputListReturnRef=al,d.splitListOperationInputListArgument=wy,d.splitListOperationInputListArgumentParentRef=By,d.splitListOperationInputListArgumentRef=Ay,d.splitListOperationInputListDataType=Py,d.splitListOperationSecondOutputListDataType=Ly,d.splitListOperationSecondOutputListReturn=$y,d.splitListOperationSecondOutputListReturnParentRef=Gy,d.splitListOperationSplitIndexArgument=Ny,d.splitListOperationSplitIndexArgumentParentRef=_y,d.splitListOperationSplitIndexArgumentRef=Oy,d.splitListOperationSplitIndexDataType=Sy,d.splitStringOperation=rl,d.splitStringOperationError=ay,d.splitStringOperationErrorParentRef=iy,d.splitStringOperationFirstPartResultStringDataType=Hp,d.splitStringOperationFirstPartResultStringReturn=ry,d.splitStringOperationFirstPartResultStringReturnParentRef=ny,d.splitStringOperationFirstPartResultStringReturnRef=Yp,d.splitStringOperationIndexArgument=ey,d.splitStringOperationIndexArgumentParentRef=Qp,d.splitStringOperationIndexArgumentRef=Jp,d.splitStringOperationIndexDataType=Wp,d.splitStringOperationSecondPartResultStringDataType=Zp,d.splitStringOperationSecondPartResultStringReturn=wP,d.splitStringOperationSecondPartResultStringReturnParentRef=ty,d.splitStringOperationSecondPartResultStringReturnRef=zp,d.splitStringOperationStringArgument=Xp,d.splitStringOperationStringArgumentParentRef=Kp,d.splitStringOperationStringArgumentRef=kp,d.splitStringOperationStringDataType=qp,d.stringPrototype=F,d.stringValueAutogenerationSchema=Qc,d.suggestNewIdForEntity=yu,d.test_primitive_entities_export=N7,d.toCamelCase=Fk,d.toEntityState=_t,d.toKebabCase=CA,d.toLowerCaseKebabCase=Ao,d.toPascalCase=Uk,d.untypedObjectPrototype=He,d.updateErrorsList=ae,d.updateValueReader=Ua,d.urlDefaultValue=Ih,d.uuidPrototype=ka,d.validateArgumentDeclarationName=uu,d.validateCalledByErrorIdInAction=F2,d.validateCalledByIdInAction=$2,d.validateCallers=qA,d.validateConditionEntityDeclaration=j2,d.validateCustomEntityName=Oo,d.validateDataOperation=tr,d.validateDataOperationDataToValidateArgument=ph,d.validateDataOperationDataToValidateArgumentParentRef=uh,d.validateDataOperationDataToValidateArgumentRef=ch,d.validateDataOperationDataToValidateDataType=dh,d.validateDataOperationEntityToMatchTypeArgument=mh,d.validateDataOperationEntityToMatchTypeArgumentParentRef=hh,d.validateDataOperationEntityToMatchTypeArgumentRef=yh,d.validateDataOperationEntityToMatchTypeDataType=fh,d.validateDataOperationError=Rh,d.validateDataOperationErrorParentRef=bh,d.validateDataOperationOutputEntityDeclaration=Eh,d.validateDataOperationOutputEntityDeclarationParentRef=Th,d.validateEntryCaller=kA,d.validateErrorCaller=jA,d.validateFunctionCallDeclaration=WA,d.validateFunctionDeclarationName=lu,d.validateGeneratedEntityParentIsNotBuiltInEntity=M2,d.validateGeneration=_2,d.validateGenerationTarget=Ne,d.validateGenerationUpdate=N2,d.validateLoopEntityDeclaration=k2,d.validateName=jk,d.validateOperationEntityDeclaration=YA,d.validatePropertyName=du,d.validateReachability=Pn,d.validateReadsValueInActionPayload=U2,d.validateReferenceObject=Co,d.validateReferenceToOne=Tu,d.validateReferences=Je,d.validateReturnDeclarationName=pu,d.validateSuccessCaller=xA,d.validateValueReaderGenerationUpdate=Ga,d.validateValueWritter=Iu,d.validateVariableDeclarationName=cu,d.validateVariableInternalCallUse=Du,d.valueAutogenerationCurrentDateAndTimeSchema=xI,d.valueAutogenerationGenericSchema=zs,d.valueAutogenerationOptions=nd,d.valueAutogenerationOptionsSchema=UI,d.valueAutogenerationRandomBooleanSchema=Xc,d.valueAutogenerationRandomDateBetweenSchema=ZI,d.valueAutogenerationRandomDateFromSchema=HI,d.valueAutogenerationRandomDateSchema=Xs,d.valueAutogenerationRandomDateUntilSchema=zI,d.valueAutogenerationRandomNumberBetweenSchema=qI,d.valueAutogenerationRandomNumberFromSchema=jI,d.valueAutogenerationRandomNumberSchema=Zs,d.valueAutogenerationRandomNumberUntilSchema=kI,d.valueAutogenerationRandomSchema=Ta,d.valueAutogenerationRandomTextBetweenSchema=YI,d.valueAutogenerationRandomTextFromSchema=JI,d.valueAutogenerationRandomTextSchema=Ks,d.valueAutogenerationRandomTextUntilSchema=WI,d.valueAutogenerationRangeValueTypesSchema=ma,d.valueAutogenerationUniqueSchema=Kc,d.waitOperation=ct,d.waitOperationMillisecondsNumberArgument=Qn,d.waitOperationMillisecondsNumberArgumentRef=Bf,d.waitOperationMillisecondsNumberDataType=wf,d.waitOperationOperationError=Mf,d.waitOperationOperationErrorParentRef=Nf,d.waitOperationRef=_f,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
371
+ 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 v([...this.extends.reduce((e,t)=>[...[...t.properties,...t.extendedProperties].filter(a=>!a.abstract),...e],[]),...this.implements.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}--${f.InvalidParentUpdate}`,code:f.InvalidParentUpdate,severity:T.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(){const e=[this],t=[],i=[];if(this.parent.type===n.DataType){const a=this.parent;a.entity=this,e.push(a)}else this.project.addCustomEntity(this);return{updated:v(e),added:v(t),removed:v(i),self: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=>{U3(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)}),x3(this,e).forEach(a=>{const s=`_suggestion--parent--${this.id}--${a.id}`,o=a.implementAsFunctionDeclaration(s),l=R(o,this.project);if(l.suggestion=!0,l.setParent(this),l.initChildren(),l.inputs.forEach(p=>{p.suggestion=!0}),l.returnStatements.length){const p=l.returnStatements[0];p.suggestion=!0,p.outputs.forEach(y=>{y.suggestion=!0})}this.addSuggestedMethod(l)})}),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:l}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...l)}),this.methods.forEach(s=>{const{affected:o,removed:l}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...l)}),this.abstractMethods.forEach(s=>{const{affected:o,removed:l}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...l)}),this.suggestedProperties.forEach(s=>{const{affected:o,removed:l}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...l)}),this.suggestedMethods.forEach(s=>{const{affected:o,removed:l}=s.remove({ignoreUpstream:!0,seenEntities:t});i.push(...o),a.push(...l)}),{affected:v(i),removed:v(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:v(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+"--"+N.UUID.uuid()+"--ref",type:n.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===n.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===n.CustomEntity).flatMap(i=>i.toFlatGenerationTarget(e)),...this.implements.filter(i=>i.type===n.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=F3(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(e=null,t=null,i=!0){var b,g,P;const a=this.toJSON(),s=t||et(C(this,this.project),n.CustomEntity,this.project);a.properties=[],a.methods=[],a.abstractMethods=[];const o=s.split("-id"),l=o[o.length-1||0]||s;a.id=s;const p=Ft(a,this.project);e&&p.setParent(e),i&&p.subscribe(),p.initChildren();const y=(b=this.properties)==null?void 0:b.map((S,O)=>S.clone(this,l+"-property-"+O+"-id",i));p.properties=y;const h=(g=this.methods)==null?void 0:g.map((S,O)=>S.clone(this,l+"-method-"+O+"-id",i));p.methods=h;const m=(P=this.abstractMethods)==null?void 0:P.map((S,O)=>S.clone(this,l+"-abstract-method-"+O+"-id",i));return p.abstractMethods=m,p}getFunctionDeclaration(e){return this.methods.find(t=>t.id===e)}implement(e,t){return Lo(this,e,t)}getAllInteractiveMethods(){const e=this.implements.filter(i=>i.type===n.CustomEntity||i.type===n.BuiltInBaseEntity&&i.interactive);return v([...this.methods,...this.extends.flatMap(i=>i.getAllInteractiveMethods()),...e.flatMap(i=>i.getAllInteractiveMethods())])}inferFromInputs(e){if(this.parent.type!==n.DataType||!this.parent.inferred)return this;const t=[];e.forEach(s=>{t.find(l=>C(l,this.project)===C(s,this.project))||t.push(s)});const i=this.properties.filter(s=>!s.getDataType());t.forEach(s=>{const o=i.find(m=>C(m,this.project)===C(s,this.project));if(!o)return;const p=Pr(s.parent).getMasterInputWithValueWritterFromAllInstances(s),y=rn(p),h=y==null?void 0:y.clone(o,o.id+"--data-type",!0);h&&o.setDataType(h),s.setDeclaration(o)});const a=[];return t.forEach(s=>{if(!s.declaration){a.push(s);return}}),a.length===0?this:(a.forEach(s=>{const o=this.properties.find(g=>C(g,this.project)===C(s,this.project));if(o){if(s.setDeclaration(o),!o.getDataType()){const P=Pr(s.parent).getMasterInputWithValueWritterFromAllInstances(s),S=rn(P),O=S==null?void 0:S.clone(o,o.id+"--data-type",!0);O&&o.setDataType(O)}return}const l={id:s.id+"--inferred-property",type:n.Property,version:1,name:C(s,this.project),description:s.description,static:!0,abstract:!1,private:!1,hidden:!1,required:!1,index:s.index,implements:null,dataType:null,parent:this.toReference()},p=R(l,this.project);p.setParent(this),p.initChildren();const h=Pr(s.parent).getMasterInputWithValueWritterFromAllInstances(s),m=rn(h),b=m==null?void 0:m.clone(p,l.id+"--data-type",!0);return b&&p.setDataType(b),this.addProperty(p),s.setDeclaration(p),p}),this)}};c(Be,"MUTABLE_BASE_PROPERTIES",["name","description","static","abstract"]),c(Be,"INMUTABLE_BASE_PROPERTIES",["id","version","type"]),c(Be,"BASE_PROPERTIES",[...Be.MUTABLE_BASE_PROPERTIES,...Be.INMUTABLE_BASE_PROPERTIES]),c(Be,"MUTABLE_META_PROPERTIES",[...Be.MUTABLE_BASE_PROPERTIES,"x","y"]),c(Be,"INMUTABLE_META_PROPERTIES",[...Be.INMUTABLE_BASE_PROPERTIES]),c(Be,"META_PROPERTIES",[...Be.MUTABLE_META_PROPERTIES,...Be.INMUTABLE_META_PROPERTIES]),c(Be,"MUTABLE_UPSTREAM_PROPERTIES",["extends","implements"]),c(Be,"INMUTABLE_UPSTREAM_PROPERTIES",["parent"]),c(Be,"UPSTREAM_PROPERTIES",[...Be.MUTABLE_UPSTREAM_PROPERTIES,...Be.INMUTABLE_UPSTREAM_PROPERTIES]),c(Be,"MUTABLE_DOWNSTREAM_PROPERTIES",["properties","methods","abstractMethods"]),c(Be,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),c(Be,"DOWNSTREAM_PROPERTIES",[...Be.MUTABLE_DOWNSTREAM_PROPERTIES,...Be.INMUTABLE_DOWNSTREAM_PROPERTIES]),c(Be,"PROPERTIES",[...Be.META_PROPERTIES,...Be.UPSTREAM_PROPERTIES,...Be.DOWNSTREAM_PROPERTIES]);let xr=Be;function u7(r){const e=m9(),t=r.toJSON();e.safeParse(t).success;const a=[];return ae(r.errors,a)}class Gt{constructor(e,t){c(this,"initialData");c(this,"id");c(this,"version");c(this,"name");c(this,"description",null);c(this,"type",n.BuiltInBaseEntity);c(this,"abstract",!1);c(this,"static");c(this,"properties",[]);c(this,"methods",[]);c(this,"abstractMethods",[]);c(this,"extends",[]);c(this,"interactive",!1);c(this,"errors",[]);c(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 v(this.extends.reduce((e,t)=>{const i=[...t.properties,...t.extendedProperties].filter(a=>!a.abstract);return[...e,...i]},[]))}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+"--"+N.UUID.uuid()+"--ref",type:n.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,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=u7(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 Gt(this.toJSON(),this.project)}implement(e,t){return Lo(this,e,t)}getAllInteractiveMethods(){const e=[];return this.interactive&&(e.push(...this.methods),this.extends.filter(i=>i.type===n.BuiltInBaseEntity&&i.interactive||i.type===n.PrimitiveEntity).forEach(i=>{i instanceof Gt&&e.push(...i.getAllInteractiveMethods())})),v(e)}}function p7(r){const e=o9(),t=r.toJSON();e.safeParse(t).success;const a=[];return ae(r.errors,a)}class $t{constructor(e,t){c(this,"initialData");c(this,"id");c(this,"version");c(this,"name");c(this,"description",null);c(this,"type",n.PrimitiveEntity);c(this,"static");c(this,"abstract");c(this,"properties",[]);c(this,"methods",[]);c(this,"abstractMethods",[]);c(this,"extends",[]);c(this,"errors",[]);c(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})}get extendedProperties(){return v(this.extends.reduce((e,t)=>{const i=[...t.properties,...t.extendedProperties].filter(a=>!a.abstract);return[...e,...i]},[]))}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+"--"+N.UUID.uuid()+"--ref",type:n.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,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=p7(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)}getAllInteractiveMethods(){const e=[];return e.push(...this.methods),this.extends.filter(i=>i.type===n.BuiltInBaseEntity&&i.interactive||i.type===n.PrimitiveEntity).forEach(i=>{i instanceof Gt&&e.push(...i.getAllInteractiveMethods())}),v(e)}}function Ft(r,e){if(!r)throw new Error("Entity is null");const t=e.get(r.id);switch(r.type){case n.PrimitiveValue:return t||new Pi(r,e);case n.CustomEntity:return t||new xr(r,e);case n.PrimitiveEntity:return t||new $t(r,e);case n.FunctionDeclaration:return t||new Sr(r,e);case n.GlobalEvent:return t||new Di(r,e);case n.DataType:return t||new Ii(r,e);case n.Property:return t||new Or(r,e);case n.FunctionCall:return t||new Fr(r,e);case n.Condition:return t||new wr(r,e);case n.Operation:return t||new Cr(r,e);case n.VariableDeclaration:return t||new _r(r,e);case n.VariableInstance:return t||new Nr(r,e);case n.OutputMap:return t||new An(r,e);case n.ReturnDeclaration:return t||new wt(r,e);case n.ArgumentDeclaration:return t||new Lr(r,e);case n.InputMap:return t||new Dn(r,e);case n.Project:return t||new N(r);case n.InstalledProject:return t||new Vr(r,e);case n.ActionDescriptor:return t||new te(r,e);case n.ReturnStatement:return t||new Gr(r,e);case n.Loop:return t||new Br(r,e);case n.Search:return t||new Mr(r,e);case n.ValueDescriptor:return t||new $r(r,e);case n.BuiltInBaseEntity:return t||new Gt(r,e);case n.InternalCall:return t||new Ai(r,e);case n.ContinueStatement:return t||new mt(r,e);case n.BreakStatement:return t||new Oi(r,e);default:throw new Error("Invalid entity type: "+r.type)}}function R(r,e){if(!r)throw new Error("Entity is null");const t=Ft(r,e);return t.subscribe(),t}function y7(r,e){if(!r)throw new Error("Entity is null");switch(r.type){case n.PrimitiveValue:return Pi.fromGenerationTarget(r,e);case n.CustomEntity:return xr.fromGenerationTarget(r,e);case n.FunctionDeclaration:return Sr.fromGenerationTarget(r,e);case n.GlobalEvent:return Di.fromGenerationTarget(r,e);case n.DataType:return Ii.fromGenerationTarget(r,e);case n.Property:return Or.fromGenerationTarget(r,e);case n.FunctionCall:return Fr.fromGenerationTarget(r,e);case n.Condition:return wr.fromGenerationTarget(r,e);case n.Operation:return Cr.fromGenerationTarget(r,e);case n.VariableDeclaration:return _r.fromGenerationTarget(r,e);case n.VariableInstance:return Nr.fromGenerationTarget(r,e);case n.OutputMap:return An.fromGenerationTarget(r,e);case n.ReturnDeclaration:return wt.fromGenerationTarget(r,e);case n.ArgumentDeclaration:return Lr.fromGenerationTarget(r,e);case n.InputMap:return Dn.fromGenerationTarget(r,e);case n.InstalledProject:return Vr.fromGenerationTarget(r,e);case n.ReturnStatement:return Gr.fromGenerationTarget(r,e);case n.Loop:return Br.fromGenerationTarget(r,e);case n.Search:return Mr.fromGenerationTarget(r,e);case n.ActionDescriptor:return te.fromGenerationTarget(r,e);case n.ValueDescriptor:return $r.fromGenerationTarget(r,e);case n.InternalCall:return Ai.fromGenerationTarget(r,e);case n.ContinueStatement:return mt.fromGenerationTarget(r,e);case n.BreakStatement:return Oi.fromGenerationTarget(r,e);default:throw new Error("Invalid entity type: "+r.type)}}const ee=class ee{constructor(e){c(this,"initialData");c(this,"id");c(this,"version");c(this,"type",n.Project);c(this,"name",null);c(this,"description",null);c(this,"x");c(this,"y");c(this,"entities",[]);c(this,"projects",[]);c(this,"functions",[]);c(this,"events",[]);c(this,"variableDeclarations",[]);c(this,"variableInstances",[]);c(this,"conditions",[]);c(this,"operations",[]);c(this,"functionCalls",[]);c(this,"loops",[]);c(this,"searches",[]);c(this,"primitives",[]);c(this,"builtInBaseEntities",[]);c(this,"operationDeclarations",[]);c(this,"globalEventActionDescriptors",[]);c(this,"loopDeclarations",[]);c(this,"loopDeclarationsBodies",[]);c(this,"conditionDeclarations",[]);c(this,"valueDescriptors",[]);c(this,"dataTypes",[]);c(this,"project");c(this,"instances",{});c(this,"builtInInstances",{});c(this,"errors",[]);c(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;try{(!ee.UUID||ee.UUID.isBackup)&&(ee.UUID=Vs==null?void 0:Vs()),ee.UUID||(ee.UUID={isBackup:!0,uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:t=>t})}catch(t){console.error("Error initializing UUID module",t),ee.UUID={isBackup:!0,uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:i=>i}}}static injectUUIDModule(e){ee.UUID=e}static validateGenerationTarget(e,t){let i=JSON.parse(JSON.stringify(e));const a=[];return a.push(...Ne(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(){const e=[this],t=[],i=[];return{updated:v(e),added:v(t),removed:v(i),self: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+"--"+ee.UUID.uuid()+"--ref",type:n.GenericReference,entityId:this.id,entityType:this.type}}toShallowJSON(){return{id:this.id,version:this.version,type:this.type,name:this.name,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=N3(),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 ee(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!==n.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=we(i);return[...t,...a.filter(s=>s.type===n.Condition)]},[]),...this.functionCalls.reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.Condition)]},[]),...this.operations.reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.Condition)]},[]),...this.loops.reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.Condition)]},[]),...this.searches.reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.Condition)]},[])]}getOperations(){return[...this.operations,...this.getEntryPoints().reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.Operation)]},[]),...this.functionCalls.reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.Operation)]},[]),...this.conditions.reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.Operation)]},[]),...this.loops.reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.Operation)]},[]),...this.searches.reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.Operation)]},[])]}getFunctionCalls(){return[...this.functionCalls,...this.getEntryPoints().reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.FunctionCall)]},[]),...this.conditions.reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.FunctionCall)]},[]),...this.operations.reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.FunctionCall)]},[]),...this.loops.reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.FunctionCall)]},[]),...this.searches.reduce((t,i)=>{const a=we(i);return[...t,...a.filter(s=>s.type===n.FunctionCall)]},[])]}getVariables(){return[...this.variableDeclarations,...this.getEntryPoints().reduce((t,i)=>{const a=ie(i);return[...t,...a]},[]),...this.functionCalls.reduce((t,i)=>{const a=ie(i);return[...t,...a]},[]),...this.conditions.reduce((t,i)=>{const a=ie(i);return[...t,...a]},[]),...this.operations.reduce((t,i)=>{const a=ie(i);return[...t,...a]},[]),...this.loops.reduce((t,i)=>{const a=ie(i);return[...t,...a]},[]),...this.searches.reduce((t,i)=>{const a=ie(i);return[...t,...a]},[])]}getVariableInstances(){return[...this.variableInstances,...this.getEntryPoints().reduce((t,i)=>{const s=ie(i).filter(o=>o.type===n.VariableInstance);return[...t,...s]},[]),...this.functionCalls.reduce((t,i)=>{const s=ie(i).filter(o=>o.type===n.VariableInstance);return[...t,...s]},[]),...this.conditions.reduce((t,i)=>{const s=ie(i).filter(o=>o.type===n.VariableInstance);return[...t,...s]},[]),...this.operations.reduce((t,i)=>{const s=ie(i).filter(o=>o.type===n.VariableInstance);return[...t,...s]},[]),...this.loops.reduce((t,i)=>{const s=ie(i).filter(o=>o.type===n.VariableInstance);return[...t,...s]},[]),...this.searches.reduce((t,i)=>{const s=ie(i).filter(o=>o.type===n.VariableInstance);return[...t,...s]},[])]}getVariableDeclarations(){return v([...this.variableDeclarations,...this.getEntryPoints().reduce((t,i)=>{const s=ie(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...s]},[]),...this.functionCalls.reduce((t,i)=>{const s=ie(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...s]},[]),...this.conditions.reduce((t,i)=>{const s=ie(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...s]},[]),...this.operations.reduce((t,i)=>{const s=ie(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...s]},[]),...this.loops.reduce((t,i)=>{const s=ie(i).filter(o=>o.type===n.VariableDeclaration);return[...t,...s]},[]),...this.searches.reduce((t,i)=>{const s=ie(i).filter(o=>o.type===n.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(l=>l.id===s);o&&i.setDeclaration(o)}}),this}getBuiltInPersistedEntity(){return this.builtInBaseEntities.find(e=>e.name===L.PERSISTED_ENTITY)||null}};c(ee,"UUID",{isBackup:!0,uuid:()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),fromUUID:e=>e}),c(ee,"MUTABLE_BASE_PROPERTIES",["name","description"]),c(ee,"INMUTABLE_BASE_PROPERTIES",["id","type","version"]),c(ee,"BASE_PROPERTIES",[...ee.MUTABLE_BASE_PROPERTIES,...ee.INMUTABLE_BASE_PROPERTIES]),c(ee,"MUTABLE_META_PROPERTIES",[...ee.MUTABLE_BASE_PROPERTIES,"x","y"]),c(ee,"INMUTABLE_META_PROPERTIES",[...ee.INMUTABLE_BASE_PROPERTIES]),c(ee,"META_PROPERTIES",[...ee.MUTABLE_META_PROPERTIES,...ee.INMUTABLE_META_PROPERTIES]),c(ee,"MUTABLE_UPSTREAM_PROPERTIES",[]),c(ee,"INMUTABLE_UPSTREAM_PROPERTIES",["primitives","builtInBaseEntities","operationDeclarations","globalEventActionDescriptors","loopDeclarations","builtInInstances"]),c(ee,"UPSTREAM_PROPERTIES",[...ee.MUTABLE_UPSTREAM_PROPERTIES,...ee.INMUTABLE_UPSTREAM_PROPERTIES]),c(ee,"MUTABLE_DOWNSTREAM_PROPERTIES",["entities","projects","functions","events","variableDeclarations","variableInstances","conditions","operations","functionCalls","loops","searches"]),c(ee,"INMUTABLE_DOWNSTREAM_PROPERTIES",[]),c(ee,"DOWNSTREAM_PROPERTIES",[...ee.MUTABLE_DOWNSTREAM_PROPERTIES,...ee.INMUTABLE_DOWNSTREAM_PROPERTIES]),c(ee,"PROPERTIES",[...ee.META_PROPERTIES,...ee.UPSTREAM_PROPERTIES,...ee.DOWNSTREAM_PROPERTIES]);let N=ee;class gP extends te{constructor(t){super(xt,t);c(this,"id",_e.Parallel);c(this,"name",_e.Parallel);c(this,"description","Execute a list of actions one after the other");c(this,"version",1);c(this,"autoexecutable",!0);c(this,"initialData",xt);c(this,"type",n.ActionDescriptor);c(this,"inputs",[]);c(this,"outputs",[]);c(this,"error",null);c(this,"project");this.project=t,this.inputs=xt.inputs.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.outputs=xt.outputs.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.error=xt.error?R(xt.error,this.project):null}}class IP extends te{constructor(t){super(ct,t);c(this,"id",ct.id);c(this,"name",ct.name);c(this,"description",ct.description);c(this,"version",ct.version);c(this,"autoexecutable",!1);c(this,"initialData",ct);c(this,"type",n.ActionDescriptor);c(this,"inputs",[]);c(this,"outputs",[]);c(this,"error",null);c(this,"project");this.project=t,this.inputs=ct.inputs.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.outputs=ct.outputs.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.error=ct.error?R(ct.error,this.project):null}}class DP extends te{constructor(t){super(yn,t);c(this,"id",_e.Sequential);c(this,"name",_e.Sequential);c(this,"description","Execute a list of actions one after the other");c(this,"version",1);c(this,"autoexecutable",!0);c(this,"initialData",yn);c(this,"type",n.ActionDescriptor);c(this,"inputs",[]);c(this,"outputs",[]);c(this,"error",null);c(this,"project");this.project=t,this.inputs=yn.inputs.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.outputs=yn.outputs.map(i=>{const a=R(i,this.project);return a.setParent(this),a.initChildren(),a}),this.error=yn.error?R(yn.error,this.project):null}}class f7 extends te{constructor(e){super(_i,e)}}class h7 extends te{constructor(e){super(er,e)}}class m7 extends te{constructor(e){super(tr,e)}getEntityToMatchInputMap(e){return e.inputs.find(t=>{var i;return((i=t.declaration)==null?void 0:i.id)===_.operation[oe.Validate].inputs.entityToMatch.id})||null}getDataToValidateInputMap(e){return e.inputs.find(t=>{var i;return((i=t.declaration)==null?void 0:i.id)===_.operation[oe.Validate].inputs.dataToValidate.id})||null}getOutputDataOutputMap(e){return e.outputs.find(t=>{var i;return((i=t.declaration)==null?void 0:i.id)===_.operation[oe.Validate].outputs.outputEntity.id})||null}getEntityToMatch(e){let t=null;if(e.readsValue){const a=e.readsValue.getDataType();a&&a.entity&&a.entity.type===n.CustomEntity&&(t=a.entity)}const i=e.getDefaultValue();return!t&&i&&i.valueAsType&&!Array.isArray(i.valueAsType)&&i.valueAsType.type===n.CustomEntity&&(t=i.valueAsType),t}syncOperationInstance(e){const t=this.getEntityToMatchInputMap(e);t&&this.syncEntityToMatchInputMapDataType(t);const i=this.getDataToValidateInputMap(e);i&&this.syncDataToValidateInputMapDataType(i);const a=this.getOutputDataOutputMap(e);return a&&this.syncOutputDataOutputMapDataType(a),e}syncEntityToMatchInputMapDataType(e){var i,a,s;if(((i=e.declaration)==null?void 0:i.id)!==_.operation[oe.Validate].inputs.entityToMatch.id)return null;if(!e.dataType){const o={id:e.id+"--infered-data-type",version:1,type:n.DataType,isList:!1,isNullable:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!0,entity:null,constant:!1,like:!0,inferred:!0,defaultValue:null,parent:e.toReference()},l=R(o,e.project);l.setParent(e),l.initChildren(),e.setDataType(l)}(a=e.dataType)==null||a.sync({inferred:!0,like:!1,asType:!0});const t=this.getEntityToMatch(e);return(s=e.dataType)==null||s.setEntity(t),e.dataType}syncDataToValidateInputMapDataType(e){var s,o,l;if(((s=e.declaration)==null?void 0:s.id)!==_.operation[oe.Validate].inputs.dataToValidate.id)return null;const t=this.getEntityToMatchInputMap(e.parent);if(!t||!this.getEntityToMatch(t))return null;if(!e.dataType){const p={id:e.id+"--infered-data-type",version:1,type:n.DataType,isList:!1,isNullable:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,constant:!1,like:!0,inferred:!0,defaultValue:null,parent:e.toReference()},y=R(p,e.project);y.setParent(e),y.initChildren(),e.setDataType(y)}(o=e.dataType)==null||o.sync({inferred:!0,like:!0,asType:!1});const a=this.getEntityToMatch(t);return(l=e.dataType)==null||l.setEntity(a),e.dataType}syncOutputDataOutputMapDataType(e){var s,o,l;if(((s=e.declaration)==null?void 0:s.id)!==_.operation[oe.Validate].outputs.outputEntity.id)return null;const t=this.getEntityToMatchInputMap(e.parent);if(!t||!this.getEntityToMatch(t))return null;if(!e.dataType){const p={id:e.id+"--infered-data-type",version:1,type:n.DataType,isList:!1,isNullable:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,constant:!1,like:!0,inferred:!0,defaultValue:null,parent:e.toReference()},y=R(p,e.project);y.setParent(e),y.initChildren(),e.setDataType(y)}(o=e.dataType)==null||o.sync({inferred:!0,like:!0,asType:!1});const a=this.getEntityToMatch(t);return(l=e.dataType)==null||l.setEntity(a),e.dataType}inferInputMapDataType(e){var t,i;return((t=e.declaration)==null?void 0:t.id)===_.operation[oe.Validate].inputs.entityToMatch.id?this.syncEntityToMatchInputMapDataType(e):((i=e.declaration)==null?void 0:i.id)===_.operation[oe.Validate].inputs.dataToValidate.id?this.syncDataToValidateInputMapDataType(e):null}inferOutputMapDataType(e){var t;return((t=e.declaration)==null?void 0:t.id)===_.operation[oe.Validate].outputs.outputEntity.id?this.syncOutputDataOutputMapDataType(e):null}}class T7 extends te{constructor(e){super(il,e)}}class E7 extends te{constructor(e){super(sl,e)}}class b7 extends te{constructor(e){super(ol,e)}}class R7 extends te{constructor(e){super(Ya,e)}}class v7 extends te{constructor(e){super(qa,e)}}class g7 extends te{constructor(e){super(Bi,e)}}function I7(r){const e=[new DP(r),new gP(r),new IP(r),new f7(r),new h7(r),new m7(r),new R7(r),new T7(r),new b7(r),new E7(r),new v7(r),new g7(r),new te(rl,r),new te(nl,r)];return e.forEach(t=>{t.initChildren(),r.subscribeBuiltInInstance(t)}),r.operationDeclarations=e,e}class AP extends Gt{constructor(t){super(Ue,t);c(this,"initialData");c(this,"id",L.PERSISTED_ENTITY);c(this,"version",1);c(this,"name",L.PERSISTED_ENTITY);c(this,"description",Ue.description);c(this,"type",n.BuiltInBaseEntity);c(this,"abstract",Ue.abstract);c(this,"static",Ue.static);c(this,"properties",[]);c(this,"methods",[]);c(this,"abstractMethods",[]);c(this,"extends",[]);c(this,"errors",[]);c(this,"project");this.initialData=Ue,this.project=t,this.id=Ue.id,this.version=Ue.version,this.name=Ue.name,this.static=Ue.static,this.abstract=Ue.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 D7(r){const e=[new AP(r),new Gt(as,r),new Gt(_n,r),new Gt(xl,r),new Gt(is,r)];return e.forEach(t=>{r.subscribeBuiltInInstance(t)}),r.builtInBaseEntities=e,e}function A7(r){const e=[new $t(F,r),new $t(Bn,r),new $t(Q,r),new $t(He,r),new $t(wn,r),new $t(cn,r),new $t(ka,r),new $t(Zo,r)];return e.forEach(t=>{r.subscribeBuiltInInstance(t)}),r.primitives=e,e}function P7(r){const e=[new te(ds,r)];return e.forEach(t=>{t.initChildren(),r.subscribeBuiltInInstance(t)}),r.globalEventActionDescriptors=e,e}function O7(r){const e=[new te(ns,r),new te(nr,r),new te(ts,r),new te(Mi,r),new te(Vi,r),new te(Tl,r)];e.forEach(i=>{i.initChildren(),r.subscribeBuiltInInstance(i)}),r.loopDeclarations=e;const t=[new te(Pl,r),new te(es,r),new te(gl,r),new te(dT,r),new te(CT,r),new te(bl,r)];return t.forEach(i=>{i.initChildren(),r.subscribeBuiltInInstance(i)}),r.loopDeclarationsBodies=t,e}function S7(r){const e=[new $r(Jl,r)];return e.forEach(t=>{t.initChildren(),r.subscribeBuiltInInstance(t)}),r.valueDescriptors=e,e}function C7(r){const e=[new te(or,r),new te(zr,r)];return e.forEach(t=>{t.initChildren()}),r.conditionDeclarations=e,e}const jr={},qo={};async function B7(r,e={}){const t={...FI};return t.id=r.id,e.empty?{data:{id:r.id,type:n.Project,version:1,name:null,description:null,projects:[],entities:[],operations:[],functions:[],variableDeclarations:[],variableInstances:[],functionCalls:[],conditions:[],loops:[],searches:[],events:[]}}:{data:t}}function PP(r){const e=new N(r);return A7(e),D7(e),I7(e),P7(e),O7(e),S7(e),C7(e),e.getAllBuiltIn().forEach(i=>{e.builtInInstances[i.id]||(e.builtInInstances[i.id]=i,delete e.instances[i.id])}),e.initChildren(),e}async function w7(r,e={}){if(r.id&&jr[r.id])return jr[r.id];if(r.id&&qo[r.id])return await qo[r.id],jr[r.id];const t=B7(r,e);r.id&&(qo[r.id]=t);const i=await t;if(i.data){const a=PP(i.data);return jr[r.id]=a,r.id&&delete qo[r.id],a}return null}function _7(r){return jr[r.id]&&delete jr[r.id],null}const N7="test_primitive_entities_export";d.AI_VALUE_CONNECTION_GENERATION_ACTION_EXPLANATION=gu,d.ActionDescriptorState=te,d.ActionInputMapState=R2,d.ActionOutputMapState=I2,d.AppendToListOperationInputIds=Qy,d.AppendToListOperationOutputIds=ef,d.ArgumentDeclarationState=Lr,d.BREAK_AND_CONTINUE_STATEMENTS_RETURN_DECLARATIONS_EXPLANATION=Eu,d.BUILT_IN_BASE_ENTITY_IDS=_,d.BUILT_IN_ENTITY_TYPES=Wr,d.BaseCanvasDraggableState=i2,d.BaseEntityNames=L,d.BaseState=r2,d.BaseValueDescriptorIds=zo,d.BreakStatementState=Oi,d.BuiltInBaseEntityState=Gt,d.CACHED_PROJECTS_BY_ID=jr,d.CALLABLE_ENTITIES_EXPLANATION=V2,d.CALLABLE_TYPES=Cn,d.CALLER_ENTITIES_EXPLANATION=FA,d.CALLER_TYPES=ln,d.CALLS_UPDATE_EXPLANATION=Hn,d.COMPARISON_CONDITIONS=Bb,d.CONDITIONS=tO,d.CUSTOM_ENTITY_OPERATIONS=vh,d.CallableEntityClass=s2,d.CallerEntityClass=fu,d.ChildEntityState=a2,d.ComparisonOperatorTypes=Ve,d.ConditionState=wr,d.ContinueStatementState=mt,d.CreateNewInputIds=zf,d.CreateNewOutputIds=Zf,d.CustomEntityState=xr,d.DRAGGABLE_CALLABLE_TYPES=Yo,d.DRAGGABLE_CALLER_TYPES=Fu,d.DRAGGABLE_ELEMENT_TYPES=Ho,d.DRAGGABLE_EXECUTABLE_TYPES=SP,d.DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES=Wo,d.DataTypeCompatibilityTypes=Lt,d.DataTypeParentChildRelation=bt,d.DataTypeState=Ii,d.ENTITIES_WITH_VALLUES_EXPLANATION=wo,d.ENTITY_TYPES=CP,d.ENTITY_WITH_LOGIC_SCOPE_TYPES=lt,d.ENTITY_WITH_NAMES_TYPES=Uu,d.ENTITY_WITH_VALUE_TYPES=$u,d.ENTRY_POINT_ENTITIES_EXPLANATION=La,d.ENTRY_POINT_TYPES=Le,d.EVENT_TYPES=Jr,d.EXECUTABLE_TYPES=OP,d.EXECUTION_OPERATIONS=Hf,d.EntityError=hr,d.EntityErrorSeverity=T,d.EntityGenerationError=E,d.EntityGenerationErrorCode=f,d.EntityInstanceErrorCode=M,d.EntityOperations=oe,d.EntityType=n,d.EntityWithLogicScopeClass=d2,d.EntityWithValueClass=c2,d.EntryPointEntityClass=o2,d.ExecutionOperations=_e,d.FunctionCallState=Fr,d.FunctionDeclarationState=Sr,d.GLOBAL_EVENT_DECLARATIONS=nO,d.GetLastInListOperationInputIds=xy,d.GetLastInListOperationOutputIds=jy,d.GlobalEventNames=on,d.GlobalEventState=Di,d.HTTPOperations=Xe,d.HTTP_OPERATIONS=tm,d.InputMapState=Dn,d.InstalledProjectState=Vr,d.InternalCallState=Ai,d.JoinListOperationInputIds=oy,d.JoinListOperationOutputIds=ly,d.LIST_OPERATIONS=ff,d.ListOperations=Y,d.LoopState=Br,d.LoopTypes=x,d.NON_INTERACTIVE_BASE_ENTITIES_EXPLANATION=zn,d.NUMBER_OPERATIONS=vp,d.NumberOperations=fe,d.OPERATION_DECLARATIONS=_P,d.OperationState=Cr,d.OutputMapParentChildRelation=Gu,d.OutputMapState=An,d.PARENT_AUTO_CALCULATION_FROM_CALLER_EXPLANATION=_o,d.PASS_THROUGH_CALLABLE_ENTITIES_EXPLANATION=Yn,d.PASS_THROUGH_CALLABLE_TYPES=Fe,d.PROPERTY_NOT_VALUE_READER_WRITTER_EXPLANATION=vu,d.ParallelExecutionOperation=gP,d.ParallelExecutionOperationInputIds=hf,d.ParallelExecutionOperationOutputIds=mf,d.PassThroughCallableEntityClass=l2,d.PersistedEntity=AP,d.PersistedEntityMethods=Ot,d.PrimitiveEntityState=$t,d.PrimitiveTypes=I,d.PrimitiveValueState=Pi,d.ProjectState=N,d.PropertyState=Or,d.RETURN_STATEMENT_RETURN_DECLARATIONS_EXPLANATION=L2,d.ReturnDeclarationState=wt,d.ReturnStatementState=Gr,d.STANDALONE_CONDITIONS=Db,d.STRING_OPERATIONS=sy,d.ScopeCompatibilityType=ko,d.SearchState=Mr,d.SequentialExecutionOperation=DP,d.SequentialExecutionOperationInputIds=Vf,d.SequentialExecutionOperationOutputIds=Lf,d.SharedEntityErrorCode=A,d.SharedStateFunctionality=LA,d.SplitListOperationInputIds=Iy,d.SplitListOperationOutputIds=Dy,d.StandaloneOperatorTypes=Nt,d.StringOperations=K,d.TERMINATION_TYPES=Ge,d.USER_MANAGED_ENTITY_TYPES=BP,d.UserManagedEntityStateFunctionality=n2,d.VALUE_READING_ENTITIES_EXPLANATION=Ru,d.VALUE_READING_TYPES=Sn,d.VALUE_WRITING_ENTITIES_EXPLANATION=UA,d.VALUE_WRITING_TYPES=$e,d.VARIABLE_DATA_TYPE_INFERRANCE_EXPLANATION=bu,d.VARIABLE_TYPES=ke,d.ValueAutogenerationType=qe,d.ValueDescriptorParentChildRelation=D,d.ValueDescriptorState=$r,d.ValueReadingEntityClass=Ma,d.ValueWritingEntityClass=Va,d.VariableDeclarationState=_r,d.VariableInputMapState=b2,d.VariableInstanceState=Nr,d.VariableOutputMapState=g2,d.WaitOperation=IP,d.WaitOperationInputIds=Sf,d.WaitOperationOutputIds=Cf,d.appendToListOperation=Ya,d.appendToListOperationElementToAppendArgument=cl,d.appendToListOperationElementToAppendArgumentParentRef=cf,d.appendToListOperationElementToAppendArgumentRef=rf,d.appendToListOperationError=yf,d.appendToListOperationErrorParentRef=pf,d.appendToListOperationListArgument=ll,d.appendToListOperationListArgumentParentRef=lf,d.appendToListOperationListArgumentRef=tf,d.appendToListOperationListDataType=nf,d.appendToListOperationResultListDataType=of,d.appendToListOperationResultListReturn=uf,d.appendToListOperationResultListReturnParentRef=df,d.appendToListOperationResultListReturnRef=sf,d.appendToListOperationSecondListDataType=af,d.asGenerationActionExample=an,d.booleanPrototype=Bn,d.capitalizeFirstLetter=Io,d.checkAreCustomEntitiesCompatibleAsDataType=IA,d.checkAreDataTypesCompatible=Yt,d.checkArePropertiesCompatibleAsDataType=gA,d.checkIsBranchDependentButNotDirectlyOnBranch=$a,d.checkIsBranchDependentOnBranch=J2,d.checkIsCallableEntityReachable=xa,d.checkIsCanvasEntity=l7,d.checkIsDetachedBranch=mP,d.checkIsDetachedBranchShallow=Vu,d.checkIsGlobalVariable=s7,d.checkIsGloballyDeclared=Mu,d.checkIsMethod=bP,d.checkIsNestedScope=jo,d.checkScopeCompatibility=Fa,d.countedLoopActionDescriptor=ns,d.countedLoopActionDescriptorDynamicReturnDeclaration=$T,d.countedLoopActionDescriptorDynamicReturnDeclarationParentRef=GT,d.countedLoopActionDescriptorStringArgumentDeclaration=LT,d.countedLoopActionDescriptorStringArgumentDeclarationDataType=MT,d.countedLoopActionDescriptorStringArgumentDeclarationDataTypeDefaultValue=_T,d.countedLoopActionDescriptorStringArgumentDeclarationDataTypeDefaultValueParentRef=wT,d.countedLoopActionDescriptorStringArgumentDeclarationDataTypeParentRef=NT,d.countedLoopActionDescriptorStringArgumentDeclarationParentRef=VT,d.countedLoopBodyActionDescriptor=Pl,d.countedLoopBodyActionDescriptorAnyDynamicArgument=kT,d.countedLoopBodyActionDescriptorAnyDynamicArgumentParentRef=jT,d.countedLoopBodyActionDescriptorAnyDynamicReturn=JT,d.countedLoopBodyActionDescriptorAnyDynamicReturnParentRef=qT,d.countedLoopBodyActionDescriptorIterationNumberArgumentDeclaration=Al,d.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=UT,d.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=FT,d.countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=xT,d.createEntityError=z,d.createNewInstanceOperation=er,d.createNewInstanceOperationEntityToInstanciateArgument=ih,d.createNewInstanceOperationEntityToInstanciateArgumentRef=th,d.createNewInstanceOperationEntityToInstanciateDataType=nh,d.createNewInstanceOperationError=lh,d.createNewInstanceOperationErrorParentRef=oh,d.createNewInstanceOperationNewEntityDataArgument=eh,d.createNewInstanceOperationNewEntityDataArgumentDataType=Qf,d.createNewInstanceOperationNewEntityDataArgumentDataTypeParentRef=Xf,d.createNewInstanceOperationNewEntityDataArgumentParentRef=Kf,d.createNewInstanceOperationOutputEntityDeclaration=sh,d.createNewInstanceOperationOutputEntityDeclarationParentRef=ah,d.createNewInstanceOperationRef=rh,d.createSemanticId=et,d.createStateFromGenerationTargetType=y7,d.createStateFromType=Ft,d.createStateFromTypeAndSubscribe=R,d.cronJobBuiltInBaseEntity=xl,d.cronJobBuiltInBaseEntityExpressionProperty=Rb,d.cronJobBuiltInBaseEntityExpressionPropertyDataTypeRef=XP,d.cronJobBuiltInBaseEntityExpressionPropertyRef=Eb,d.cronJobBuiltInBaseEntityRef=bb,d.cronJobTriggeredFunctionDeclarationBlueprint=Ul,d.cronJobTriggeredFunctionDeclarationBlueprintParentRef=mb,d.customEntityToZodSchema=Hb,d.dataTypeCompatibilityToErrorExplanation=HA,d.datePrototype=cn,d.dateValueAutogenerationSchema=td,d.deletePersistedEntityMethod=Fl,d.deletePersistedEntityMethodParentRef=HE,d.deleteRootProject=_7,d.endpointBuiltInBaseEntity=as,d.endpointBuiltInBaseEntityRef=tE,d.endpointBuiltInBaseEntityRefFour=LE,d.endpointBuiltInBaseEntityRefThree=dE,d.endpointBuiltInBaseEntityRefTwo=sE,d.endpointBuiltInCorsProperty=nE,d.endpointBuiltInCorsPropertyDataType=eE,d.endpointBuiltInCorsPropertyDataTypeRef=XT,d.endpointBuiltInCorsPropertyRef=QT,d.endpointBuiltInMethodProperty=Sl,d.endpointBuiltInMethodPropertyDataType=cE,d.endpointBuiltInMethodPropertyDataTypeRef=oE,d.endpointBuiltInMethodPropertyRef=lE,d.endpointBuiltInPathProperty=Ol,d.endpointBuiltInPathPropertyDataType=aE,d.endpointBuiltInPathPropertyDataTypeRef=rE,d.endpointBuiltInPathPropertyRef=iE,d.endpointPathParamsArgumentDeclaration=Bl,d.endpointPathParamsArgumentDeclarationRef=RE,d.endpointPathParamsVariableDataType=vE,d.endpointPathParamsVariableDataTypeRef=bE,d.endpointReachedTriggerActionDescriptor=Ll,d.endpointReachedTriggerActionDescriptorRef=gE,d.endpointReachedTriggerActionDescriptorRefFour=AE,d.endpointReachedTriggerActionDescriptorRefThree=DE,d.endpointReachedTriggerActionDescriptorRefTwo=IE,d.endpointRequestBodyArgumentDeclaration=_l,d.endpointRequestBodyArgumentDeclarationRef=fE,d.endpointRequestBodyVariableDataType=hE,d.endpointRequestHeadersArgumentDeclaration=Cl,d.endpointRequestHeadersArgumentDeclarationRef=pE,d.endpointRequestHeadersVariableDataType=yE,d.endpointRequestHeadersVariableDataTypeRef=uE,d.endpointRequestQueryParamsArgumentDeclaration=wl,d.endpointRequestQueryParamsArgumentDeclarationRef=TE,d.endpointRequestQueryParamsVariableDataType=EE,d.endpointRequestQueryParamsVariableDataTypeRef=mE,d.endpointResponseBodyDataType=ME,d.endpointResponseBodyReturnDeclaration=Vl,d.endpointResponseBodyReturnDeclarationRef=NE,d.endpointResponseCodeDataType=OE,d.endpointResponseCodeReturnDeclaration=Nl,d.endpointResponseCodeReturnDeclarationRef=PE,d.endpointResponseHeadersDataType=wE,d.endpointResponseHeadersDataTypeRef=CE,d.endpointResponseHeadersReturnDeclaration=Ml,d.endpointResponseHeadersReturnDeclarationRef=BE,d.endpointReturnStatementRef=SE,d.endpointReturnStatementRefThree=VE,d.endpointReturnStatementRefTwo=_E,d.enumOptionsProperty=Ju,d.enumOptionsPropertyDataType=ku,d.enumOptionsPropertyDataTypeRef=xu,d.enumOptionsPropertyRef=ju,d.enumPrototype=wn,d.enumPrototypeRef=qu,d.executionBuiltInEntity=kl,d.executionBuiltInEntityAbortMethod=jl,d.executionBuiltInEntityAbortMethodParentRef=vb,d.filterOutDuplicateEntities=v,d.filterOutDuplicateErrors=Xj,d.findReferenceToSelfInList=lP,d.findReferencesToSelfInProject=e7,d.flattenCalls=sn,d.flattenCanvasAncestorsUntil=Go,d.flattenCustomEntityExtensionAndImplementationTypes=yP,d.flattenCustomEntityExtensionTypes=Uo,d.flattenCustomEntityExtensions=wu,d.flattenCustomEntityImplementations=_u,d.flattenCustomEntityImplementionTypes=Fo,d.flattenDerivedCanvasEntities=Pt,d.flattenDetachedBranch=EP,d.flattenElementCalls=we,d.flattenElementCallsOnTheSameScope=Q2,d.flattenProjectElements=oP,d.flattenRelatedCanvasElementsOnTheLeft=pP,d.flattenRelatedCanvasElementsOnTheRight=uP,d.flattenVariableReads=sP,d.flattenVariableWrites=aP,d.flattenVariables=ie,d.fromZodParseToEntityGenerationErrors=hu,d.generate=XS,d.generateActionExample=G2,d.generateExecutionDataType=Gk,d.generateMutablePropertiesExplanation=So,d.generateRandomBoolean=RR,d.generateRandomDate=Xb,d.generateRandomDateAfter=zb,d.generateRandomDateBefore=Zb,d.generateRandomDateBetweenRange=Kb,d.generateRandomNumber=hR,d.generateRandomNumberAfter=pR,d.generateRandomNumberBefore=yR,d.generateRandomNumberBetweenRange=fR,d.generateRandomText=bR,d.generateRandomTextAfter=mR,d.generateRandomTextBefore=TR,d.generateRandomTextBetweenRange=ER,d.generateUniqueUUID=uR,d.getAllActionDescriptorsForConditions=Vo,d.getAllActionDescriptorsForGlobalEvents=No,d.getAllActionDescriptorsForLoops=Mo,d.getAllActionDescriptorsForOperations=x2,d.getAllGloballyDeclaredFunctionDeclarationsExplanation=JA,d.getBaseBuiltInEntities=Kn,d.getBaseSchemaBasedOnType=GA,d.getBuiltInEntityOwner=Xn,d.getCallableEntityReferenceSchema=Ye,d.getCallableEntityTypeSchema=cD,d.getCallerEntityReferenceSchema=r3,d.getCallerEntityTypeSchema=n3,d.getCalls=Pu,d.getCanvasEntitiesDerivedFromInternalCalls=dP,d.getCanvasEntitiesDerivedFromWrites=Si,d.getCanvasEntityDerivedFromValueReadingEntity=Bu,d.getCanvasEntityReferenceSchema=R3,d.getCanvasEntityTypeSchema=b3,d.getChildrenEntityWithValues=Y2,d.getCommonAncestor=Au,d.getCommonChildren=KA,d.getDeclaration=Pr,d.getDeepestScope=vP,d.getDraggableCallableEntityReferenceSchema=uD,d.getDraggableCallableEntityTypeSchema=dD,d.getDraggableCallerEntityReferenceSchema=a3,d.getDraggableCallerEntityTypeSchema=i3,d.getDraggableExecutableEntityReferenceSchema=c3,d.getDraggableExecutableEntityTypeSchema=l3,d.getDraggablePassThroughCallableEntityReferenceSchema=ho,d.getDraggablePassThroughCallableEntityTypeSchema=fo,d.getDraggablePlayableEntityReferenceSchema=f3,d.getDraggablePlayableEntityTypeSchema=y3,d.getEntityArgumentDeclarations=Su,d.getEntityInputMaps=cP,d.getEntityOutputMaps=r7,d.getEntityReferenceSchema=E3,d.getEntityReturnDeclarations=Cu,d.getEntityTypeSchema=T3,d.getEntityWithLogicScopeReferenceSchema=vn,d.getEntityWithLogicScopeTypeSchema=d3,d.getEntityWithValueReferenceSchema=lD,d.getEntityWithValueTypeSchema=t3,d.getEntryPointEntityReferenceSchema=We,d.getEntryPointEntityTypeSchema=qn,d.getEventEntityReferenceSchema=po,d.getEventEntityTypeSchema=uo,d.getExecutableEntityReferenceSchema=o3,d.getExecutableEntityTypeSchema=s3,d.getExtendedBuiltInEntity=i7,d.getExtendedCustomEntity=hP,d.getGenerationTargetSchemaBasedOnType=$A,d.getHeadIfPartOfDetachedBranch=TP,d.getHighestScope=RP,d.getImplementedBuiltInEntity=a7,d.getIsInteractive=Nu,d.getLastInListOperation=ol,d.getLastInListOperationError=Xy,d.getLastInListOperationErrorParentRef=Ky,d.getLastInListOperationInputListArgument=Hy,d.getLastInListOperationInputListArgumentParentRef=Yy,d.getLastInListOperationInputListArgumentRef=ky,d.getLastInListOperationInputListDataType=qy,d.getLastInListOperationOutputElementDataType=Wy,d.getLastInListOperationOutputElementReturn=Zy,d.getLastInListOperationOutputElementReturnParentRef=zy,d.getLastInListOperationOutputElementReturnRef=Jy,d.getLinkedEntitiesFromArgumentDeclaration=X2,d.getLowestPersistedEntityImplementation=fP,d.getParentCanvasEntities=Tt,d.getParentCanvasEntity=Ke,d.getParentEntryPoint=W2,d.getPassThroughCallableEntityReferenceSchema=he,d.getPassThroughCallableEntityTypeSchema=yo,d.getPlayableEntityReferenceSchema=p3,d.getPlayableEntityTypeSchema=u3,d.getProject=w7,d.getPrototypeByType=xo,d.getReferenceEntityId=w,d.getReferencedEntitiesStateOrErrors=Bo,d.getReferencedEntityStateOrErrors=mu,d.getRelatedCanvasElementsOnTheLeft=Ur,d.getRelatedCanvasElementsOnTheRight=Zn,d.getRootEntryPointScopeOwner=Lu,d.getScopeOwner=Et,d.getTerminationReferenceSchema=m3,d.getTerminationTypeSchema=h3,d.getUsedArgFromDeclaration=t7,d.getUsedReturnFromDeclaration=n7,d.getValueReadingEntityReferenceSchema=oD,d.getValueReadingEntityTypeSchema=Rn,d.getValueWritingEntityReferenceSchema=e3,d.getValueWritingEntityTypeSchema=Da,d.getVariableFromInputMapping=QA,d.getVariableFromReturnVariablePointer=nP,d.getVariableReferenceSchema=kn,d.getVariableTypeSchema=Rr,d.getVariablesFromArgumentDeclarations=$o,d.getVariablesFromInputMaps=eP,d.getVariablesFromOutputMapping=rP,d.getVariablesFromOutputMaps=iP,d.getVariablesFromReturnDeclarations=tP,d.getVariablesInSameOrHigherScope=su,d.getWrites=Ou,d.groupCallsBasedOnParallelizableExecution=z2,d.handleAfterEntityImplementationSideEffects=ZA,d.handleBeforeEntityImplementationSideEffects=zA,d.httpRequestBodyArgument=Ka,d.httpRequestBodyArgumentRef=Mh,d.httpRequestBodyDataType=Vh,d.httpRequestHeadersArgument=Za,d.httpRequestHeadersArgumentRef=_h,d.httpRequestHeadersDataType=Nh,d.httpRequestMethodArgument=Ha,d.httpRequestMethodArgumentRef=Bh,d.httpRequestMethodDataType=wh,d.httpRequestMethodDataTypeRef=Sh,d.httpRequestOperation=_i,d.httpRequestOperationErrorValueDescriptor=ml,d.httpRequestOperationErrorValueDescriptorDatatype=em,d.httpRequestOperationErrorValueDescriptorRef=Qh,d.httpRequestOperationRef=zh,d.httpRequestOperationRefEight=Kh,d.httpRequestOperationRefFive=Yh,d.httpRequestOperationRefFour=Wh,d.httpRequestOperationRefNine=Xh,d.httpRequestOperationRefSeven=Zh,d.httpRequestOperationRefSix=Hh,d.httpRequestOperationRefThree=Jh,d.httpRequestOperationRefTwo=qh,d.httpRequestQueryParamsArgument=fl,d.httpRequestQueryParamsArgumentRef=Ph,d.httpRequestQueryParamsDataType=Oh,d.httpRequestVariableURLArgument=za,d.httpRequestVariableURLArgumentRef=Dh,d.httpRequestVariableURLDataType=Ah,d.httpRequestVariableURLDataTypeRef=gh,d.httpResponseBodyReturnDataType=kh,d.httpResponseBodyReturnDataTypeRef=xh,d.httpResponseBodyReturnReturn=wi,d.httpResponseBodyReturnReturnRef=jh,d.httpResponseCodeDataType=Gh,d.httpResponseCodeReturn=hl,d.httpResponseCodeReturnRef=Lh,d.httpResponseHeadersDataType=Uh,d.httpResponseHeadersDataTypeRef=$h,d.httpResponseHeadersReturn=Xa,d.httpResponseHeadersReturnRef=Fh,d.implement=Lo,d.inferArgumentDeclarationDataType=DA,d.inferDataType=rn,d.inferInputMapDataType=ru,d.inferOutputMapDataType=au,d.inferPropertyDataType=OA,d.inferReturnDeclarationDataType=iu,d.inferValueDescriptorDataType=SA,d.inferVariableDeclarationDataType=PA,d.inferVariableInstanceDataType=AA,d.initProject=PP,d.iterateOverListActionDescriptorListArgumentDeclaration=hm,d.iterateOverListActionDescriptorListArgumentDeclarationDataType=ym,d.iterateOverListActionDescriptorListArgumentDeclarationDataTypeParentRef=pm,d.iterateOverListActionDescriptorListArgumentDeclarationParentRef=fm,d.iterateOverListLoopActionDescriptor=nr,d.iterateOverListLoopActionDescriptorDynamicReturnDeclaration=Tm,d.iterateOverListLoopActionDescriptorDynamicReturnDeclarationParentRef=mm,d.iterateOverListLoopBodyActionDescriptor=es,d.iterateOverListLoopBodyActionDescriptorAnyDynamicArgument=Pm,d.iterateOverListLoopBodyActionDescriptorAnyDynamicArgumentParentRef=Am,d.iterateOverListLoopBodyActionDescriptorAnyDynamicReturn=Sm,d.iterateOverListLoopBodyActionDescriptorAnyDynamicReturnParentRef=Om,d.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclaration=Qa,d.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=bm,d.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=Em,d.iterateOverListLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=Rm,d.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclaration=Dm,d.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=gm,d.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=vm,d.iterateOverListLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=Im,d.iterateOverObjectKeysActionDescriptorObjectArgumentDeclaration=Zm,d.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationDataType=Hm,d.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationDataTypeParentRef=Ym,d.iterateOverObjectKeysActionDescriptorObjectArgumentDeclarationParentRef=zm,d.iterateOverObjectKeysLoopActionDescriptor=Mi,d.iterateOverObjectKeysLoopActionDescriptorDynamicReturnDeclaration=Xm,d.iterateOverObjectKeysLoopActionDescriptorDynamicReturnDeclarationParentRef=Km,d.iterateOverObjectKeysLoopBodyActionDescriptor=dT,d.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicArgument=oT,d.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicArgumentParentRef=sT,d.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicReturn=cT,d.iterateOverObjectKeysLoopBodyActionDescriptorAnyDynamicReturnParentRef=lT,d.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclaration=Il,d.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=eT,d.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=Qm,d.iterateOverObjectKeysLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=tT,d.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclaration=aT,d.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=rT,d.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=nT,d.iterateOverObjectKeysLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=iT,d.iterateOverObjectValuesActionDescriptorObjectArgumentDeclaration=hT,d.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationDataType=yT,d.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationDataTypeParentRef=pT,d.iterateOverObjectValuesActionDescriptorObjectArgumentDeclarationParentRef=fT,d.iterateOverObjectValuesLoopActionDescriptor=Vi,d.iterateOverObjectValuesLoopActionDescriptorDynamicReturnDeclaration=TT,d.iterateOverObjectValuesLoopActionDescriptorDynamicReturnDeclarationParentRef=mT,d.iterateOverObjectValuesLoopBodyActionDescriptor=CT,d.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicArgument=PT,d.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicArgumentParentRef=AT,d.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicReturn=ST,d.iterateOverObjectValuesLoopBodyActionDescriptorAnyDynamicReturnParentRef=OT,d.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclaration=Dl,d.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=bT,d.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=ET,d.iterateOverObjectValuesLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=RT,d.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclaration=DT,d.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=gT,d.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=vT,d.iterateOverObjectValuesLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=IT,d.iterateOverStringActionDescriptorDynamicReturnDeclaration=Vm,d.iterateOverStringActionDescriptorDynamicReturnDeclarationParentRef=Mm,d.iterateOverStringActionDescriptorStringArgumentDeclaration=Nm,d.iterateOverStringActionDescriptorStringArgumentDeclarationDataType=wm,d.iterateOverStringActionDescriptorStringArgumentDeclarationDataTypeParentRef=Bm,d.iterateOverStringActionDescriptorStringArgumentDeclarationParentRef=_m,d.iterateOverStringLoopActionDescriptor=ts,d.iterateOverStringLoopBodyActionDescriptor=gl,d.iterateOverStringLoopBodyActionDescriptorAnyDynamicArgument=km,d.iterateOverStringLoopBodyActionDescriptorAnyDynamicArgumentParentRef=jm,d.iterateOverStringLoopBodyActionDescriptorAnyDynamicReturn=Jm,d.iterateOverStringLoopBodyActionDescriptorAnyDynamicReturnParentRef=qm,d.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclaration=Rl,d.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataType=Gm,d.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationDataTypeParentRef=Lm,d.iterateOverStringLoopBodyActionDescriptorCurrentValueArgumentDeclarationParentRef=$m,d.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclaration=vl,d.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataType=Um,d.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef=Fm,d.iterateOverStringLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef=xm,d.joinListOperation=il,d.joinListOperationError=gy,d.joinListOperationErrorParentRef=vy,d.joinListOperationFirstListArgument=my,d.joinListOperationFirstListArgumentParentRef=hy,d.joinListOperationFirstListArgumentRef=cy,d.joinListOperationFirstListDataType=dy,d.joinListOperationResultListDataType=fy,d.joinListOperationResultListReturn=Ry,d.joinListOperationResultListReturnParentRef=by,d.joinListOperationResultListReturnRef=yy,d.joinListOperationSecondListArgument=Ey,d.joinListOperationSecondListArgumentParentRef=Ty,d.joinListOperationSecondListArgumentRef=uy,d.joinListOperationSecondListDataType=py,d.joinListWithLastSeparator=$,d.joinStringsOperation=Bi,d.joinStringsOperationDynamicStringArgument=jp,d.joinStringsOperationDynamicStringArgumentParentRef=xp,d.joinStringsOperationDynamicStringArgumentRef=Fp,d.joinStringsOperationDynamicStringDataType=Up,d.joinStringsOperationError=$p,d.joinStringsOperationErrorParentRef=Gp,d.joinStringsOperationFirstStringArgument=Ja,d.joinStringsOperationFirstStringArgumentParentRef=Sp,d.joinStringsOperationFirstStringArgumentRef=gp,d.joinStringsOperationFirstStringDataType=Ip,d.joinStringsOperationResultStringDataType=Op,d.joinStringsOperationResultStringReturn=Ci,d.joinStringsOperationResultStringReturnParentRef=Lp,d.joinStringsOperationResultStringReturnRef=Pp,d.joinStringsOperationSecondStringArgument=Wa,d.joinStringsOperationSecondStringArgumentParentRef=Vp,d.joinStringsOperationSecondStringArgumentRef=Dp,d.joinStringsOperationSecondStringDataType=Ap,d.joinStringsOperationSeparatorStringArgument=Mp,d.joinStringsOperationSeparatorStringArgumentParentRef=Np,d.joinStringsOperationSeparatorStringArgumentRef=Cp,d.joinStringsOperationSeparatorStringDataType=_p,d.joinStringsOperationSeparatorStringDataTypeDefaultValue=wp,d.joinStringsOperationSeparatorStringDataTypeDefaultValueParentRef=Bp,d.jsonPrototype=Zo,d.keyValueParamBuiltInBaseEntity=is,d.keyValueParamBuiltInBaseEntityNameProperty=HT,d.keyValueParamBuiltInBaseEntityNamePropertyDataTypeRef=MP,d.keyValueParamBuiltInBaseEntityNamePropertyParentRef=YT,d.keyValueParamBuiltInBaseEntityNamePropertyRef=WT,d.keyValueParamBuiltInBaseEntityValueProperty=KT,d.keyValueParamBuiltInBaseEntityValuePropertyDataTypeRef=LP,d.keyValueParamBuiltInBaseEntityValuePropertyParentRef=ZT,d.keyValueParamBuiltInBaseEntityValuePropertyRef=zT,d.lowercaseFirstLetter=vA,d.manualFlowActionDescriptorDeclarationArgumentDeclaration=El,d.manualFlowActionDescriptorDeclarationArgumentDeclarationDataType=am,d.manualFlowActionDescriptorDeclarationArgumentDeclarationDataTypeParentRef=im,d.manualFlowActionDescriptorDeclarationArgumentDeclarationParentRef=sm,d.manualFlowLoopActionDescriptor=Tl,d.manualFlowLoopActionDescriptorDynamicReturnDeclaration=rm,d.manualFlowLoopActionDescriptorDynamicReturnDeclarationParentRef=nm,d.manualFlowLoopBodyActionDescriptor=bl,d.manualFlowLoopBodyActionDescriptorAnyDynamicArgument=lm,d.manualFlowLoopBodyActionDescriptorAnyDynamicArgumentParentRef=om,d.manualFlowLoopBodyActionDescriptorAnyDynamicReturn=dm,d.manualFlowLoopBodyActionDescriptorAnyDynamicReturnParentRef=cm,d.mapActionDescriptorToTypeItRepresents=c7,d.mergeEntityErrorsList=Qj,d.mergeListOfEntities=o7,d.methodDefaultValue=Ch,d.mockClientProject=FI,d.moreThanOrEqualCondition=zr,d.moreThanOrEqualConditionLeftHandArgument=Ob,d.moreThanOrEqualConditionLeftHandArgumentParentRef=Pb,d.moreThanOrEqualConditionRightHandArgument=Cb,d.moreThanOrEqualConditionRightHandArgumentParentRef=Sb,d.notEmptyCondition=or,d.notEmptyConditionArgument=Ib,d.notEmptyConditionRef=gb,d.numberAdditionOperation=qa,d.numberAdditionOperationDynamicSummandArgument=ip,d.numberAdditionOperationDynamicSummandArgumentType=rp,d.numberAdditionOperationDynamicSummandArgumentTypeParentRef=np,d.numberAdditionOperationError=tp,d.numberAdditionOperationErrorParentRef=ep,d.numberAdditionOperationFirstNumberArgument=Ko,d.numberAdditionOperationFirstNumberArgumentRef=Wu,d.numberAdditionOperationFirstNumberDataType=Yu,d.numberAdditionOperationRef=Xu,d.numberAdditionOperationRefThree=Qo,d.numberAdditionOperationRefTwo=Qu,d.numberAdditionOperationResultNumberDataType=Ku,d.numberAdditionOperationResultNumberReturn=el,d.numberAdditionOperationResultNumberReturnRef=Zu,d.numberAdditionOperationSecondNumberArgument=Xo,d.numberAdditionOperationSecondNumberArgumentRef=Hu,d.numberAdditionOperationSecondNumberDataType=zu,d.numberPrototype=Q,d.numberSubtractionOperation=nl,d.numberSubtractionOperationDynamicSubtrahendArgument=Rp,d.numberSubtractionOperationDynamicSubtrahendArgumentType=bp,d.numberSubtractionOperationDynamicSubtrahendArgumentTypeParentRef=Ep,d.numberSubtractionOperationError=Tp,d.numberSubtractionOperationErrorParentRef=mp,d.numberSubtractionOperationFirstNumberArgument=up,d.numberSubtractionOperationFirstNumberArgumentRef=ap,d.numberSubtractionOperationFirstNumberDataType=sp,d.numberSubtractionOperationRef=tl,d.numberSubtractionOperationRefThree=fp,d.numberSubtractionOperationRefTwo=pp,d.numberSubtractionOperationResultNumberDataType=dp,d.numberSubtractionOperationResultNumberReturn=hp,d.numberSubtractionOperationResultNumberReturnRef=cp,d.numberSubtractionOperationSecondNumberArgument=yp,d.numberSubtractionOperationSecondNumberArgumentRef=op,d.numberSubtractionOperationSecondNumberDataType=lp,d.numberValueAutogenerationSchema=ed,d.parallelExecutionOperation=xt,d.parallelExecutionOperationError=Of,d.parallelExecutionOperationErrorParentRef=Pf,d.parallelExecutionOperationListOfExecutionResultsDataType=If,d.parallelExecutionOperationListOfExecutionResultsReturn=ul,d.parallelExecutionOperationListOfExecutionResultsReturnRef=gf,d.parallelExecutionOperationListOfFunctionsArgument=dl,d.parallelExecutionOperationListOfFunctionsArgumentDatatype=vf,d.parallelExecutionOperationListOfFunctionsArgumentRef=Rf,d.parallelExecutionOperationListOfFunctionsBlueprint=bf,d.parallelExecutionOperationListOfFunctionsBlueprintDynamicInput=Ef,d.parallelExecutionOperationListOfFunctionsBlueprintDynamicOutput=Tf,d.parallelExecutionOperationRef=Df,d.parallelExecutionOperationRefThree=Af,d.persistedBuiltInBaseEntity=Ue,d.persistedBuiltInBaseEntityCreatedAtProperty=ub,d.persistedBuiltInBaseEntityCreatedAtPropertyDataType=cb,d.persistedBuiltInBaseEntityCreatedAtPropertyDataTypeRef=ZP,d.persistedBuiltInBaseEntityCreatedAtPropertyParentRef=db,d.persistedBuiltInBaseEntityCreatedAtPropertyRef=lb,d.persistedBuiltInBaseEntityDatabaseProperty=$i,d.persistedBuiltInBaseEntityDatabasePropertyDataTypeRef=WP,d.persistedBuiltInBaseEntityDatabasePropertyParentRef=QE,d.persistedBuiltInBaseEntityDatabasePropertyRef=XE,d.persistedBuiltInBaseEntityDeletedAtProperty=ob,d.persistedBuiltInBaseEntityDeletedAtPropertyDataType=ab,d.persistedBuiltInBaseEntityDeletedAtPropertyDataTypeRef=zP,d.persistedBuiltInBaseEntityDeletedAtPropertyParentRef=sb,d.persistedBuiltInBaseEntityDeletedAtPropertyRef=ib,d.persistedBuiltInBaseEntityIdentifierProperty=rb,d.persistedBuiltInBaseEntityIdentifierPropertyDataTypeRef=eb,d.persistedBuiltInBaseEntityIdentifierPropertyParentRef=nb,d.persistedBuiltInBaseEntityIdentifierPropertyRef=tb,d.persistedBuiltInBaseEntityUpdatedAtProperty=hb,d.persistedBuiltInBaseEntityUpdatedAtPropertyDataType=yb,d.persistedBuiltInBaseEntityUpdatedAtPropertyDataTypeRef=KP,d.persistedBuiltInBaseEntityUpdatedAtPropertyParentRef=fb,d.persistedBuiltInBaseEntityUpdatedAtPropertyRef=pb,d.processOutputGlobalValueDescriptorDataType=_b,d.processOutputGlobalValueDescriptorReturn=Jl,d.processOutputGlobalValueDescriptorReturnRef=wb,d.projectPublicationCompletedGlobalEvent=ds,d.propertyToZodSchema=Yb,d.relationalDatabaseBuiltInBaseEntity=_n,d.relationalDatabaseBuiltInBaseEntityAutoscalingProperty=$l,d.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyDataTypeRef=WE,d.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyParentRef=YE,d.relationalDatabaseBuiltInBaseEntityAutoscalingPropertyRef=JE,d.relationalDatabaseBuiltInBaseEntityDefaultProperty=Gl,d.relationalDatabaseBuiltInBaseEntityDefaultPropertyDataTypeRef=kE,d.relationalDatabaseBuiltInBaseEntityDefaultPropertyRef=qE,d.relationalDatabaseBuiltInBaseEntityIdentifierProperty=ss,d.relationalDatabaseBuiltInBaseEntityIdentifierPropertyDataTypeRef=GE,d.relationalDatabaseBuiltInBaseEntityIdentifierPropertyRef=$E,d.relationalDatabaseBuiltInBaseEntityMinSizeProperty=cs,d.relationalDatabaseBuiltInBaseEntityMinSizePropertyDataTypeRef=xE,d.relationalDatabaseBuiltInBaseEntityMinSizePropertyRef=jE,d.relationalDatabaseBuiltInBaseEntityPasswordProperty=ls,d.relationalDatabaseBuiltInBaseEntityPasswordPropertyDataTypeRef=xP,d.relationalDatabaseBuiltInBaseEntityPasswordPropertyRef=UE,d.relationalDatabaseBuiltInBaseEntityRef=Hr,d.relationalDatabaseBuiltInBaseEntityUsernameProperty=os,d.relationalDatabaseBuiltInBaseEntityUsernamePropertyDataTypeRef=FP,d.relationalDatabaseBuiltInBaseEntityUsernamePropertyRef=FE,d.resolveActionDescriptorName=VA,d.resolveBaseEntityName=BA,d.resolveBuiltInBaseEntityDataTypeLabel=wA,d.resolveConditionOperatorLabel=Po,d.resolveCustomEntityDataTypeLabel=_A,d.resolveDataType=Do,d.resolveDataTypeLabel=ou,d.resolveEntityDataTypeLabel=xk,d.resolveEntityName=C,d.resolveFirstCallsSecond=Z2,d.resolveFirstWritesSecond=K2,d.resolvePrimitiveEntityName=MA,d.resolveSearchName=NA,d.resolveVariableScope=$k,d.sequentialExecutionOperation=yn,d.sequentialExecutionOperationError=Yf,d.sequentialExecutionOperationErrorParentRef=Wf,d.sequentialExecutionOperationListOfExecutionResultsDataType=kf,d.sequentialExecutionOperationListOfExecutionResultsReturn=yl,d.sequentialExecutionOperationListOfExecutionResultsReturnParentRef=Jf,d.sequentialExecutionOperationListOfExecutionResultsReturnRef=jf,d.sequentialExecutionOperationListOfFunctionsArgument=pl,d.sequentialExecutionOperationListOfFunctionsArgumentDatatype=xf,d.sequentialExecutionOperationListOfFunctionsArgumentParentRef=qf,d.sequentialExecutionOperationListOfFunctionsArgumentRef=Uf,d.sequentialExecutionOperationListOfFunctionsBlueprint=Ff,d.sequentialExecutionOperationListOfFunctionsBlueprintDynamicInput=$f,d.sequentialExecutionOperationListOfFunctionsBlueprintDynamicOutput=Gf,d.softDeletePersistedEntityMethod=ZE,d.softDeletePersistedEntityMethodParentRef=zE,d.sortCallsBasedOnExecutionDependencies=XA,d.sortChildrenEntitiesBasedOnExecutionDependencies=H2,d.splitListOperation=sl,d.splitListOperationError=Uy,d.splitListOperationErrorParentRef=Fy,d.splitListOperationFirstOutputListDataType=Cy,d.splitListOperationFirstOutputListReturn=Vy,d.splitListOperationFirstOutputListReturnParentRef=My,d.splitListOperationFirstOutputListReturnRef=al,d.splitListOperationInputListArgument=wy,d.splitListOperationInputListArgumentParentRef=By,d.splitListOperationInputListArgumentRef=Ay,d.splitListOperationInputListDataType=Py,d.splitListOperationSecondOutputListDataType=Ly,d.splitListOperationSecondOutputListReturn=$y,d.splitListOperationSecondOutputListReturnParentRef=Gy,d.splitListOperationSplitIndexArgument=Ny,d.splitListOperationSplitIndexArgumentParentRef=_y,d.splitListOperationSplitIndexArgumentRef=Oy,d.splitListOperationSplitIndexDataType=Sy,d.splitStringOperation=rl,d.splitStringOperationError=ay,d.splitStringOperationErrorParentRef=iy,d.splitStringOperationFirstPartResultStringDataType=Hp,d.splitStringOperationFirstPartResultStringReturn=ry,d.splitStringOperationFirstPartResultStringReturnParentRef=ny,d.splitStringOperationFirstPartResultStringReturnRef=Yp,d.splitStringOperationIndexArgument=ey,d.splitStringOperationIndexArgumentParentRef=Qp,d.splitStringOperationIndexArgumentRef=Jp,d.splitStringOperationIndexDataType=Wp,d.splitStringOperationSecondPartResultStringDataType=Zp,d.splitStringOperationSecondPartResultStringReturn=wP,d.splitStringOperationSecondPartResultStringReturnParentRef=ty,d.splitStringOperationSecondPartResultStringReturnRef=zp,d.splitStringOperationStringArgument=Xp,d.splitStringOperationStringArgumentParentRef=Kp,d.splitStringOperationStringArgumentRef=kp,d.splitStringOperationStringDataType=qp,d.stringPrototype=F,d.stringValueAutogenerationSchema=Qc,d.suggestNewIdForEntity=yu,d.test_primitive_entities_export=N7,d.toCamelCase=Fk,d.toEntityState=_t,d.toKebabCase=CA,d.toLowerCaseKebabCase=Ao,d.toPascalCase=Uk,d.untypedObjectPrototype=He,d.updateErrorsList=ae,d.updateValueReader=Ua,d.urlDefaultValue=Ih,d.uuidPrototype=ka,d.validateArgumentDeclarationName=uu,d.validateCalledByErrorIdInAction=F2,d.validateCalledByIdInAction=$2,d.validateCallers=qA,d.validateConditionEntityDeclaration=j2,d.validateCustomEntityName=Oo,d.validateDataOperation=tr,d.validateDataOperationDataToValidateArgument=ph,d.validateDataOperationDataToValidateArgumentParentRef=uh,d.validateDataOperationDataToValidateArgumentRef=ch,d.validateDataOperationDataToValidateDataType=dh,d.validateDataOperationEntityToMatchTypeArgument=mh,d.validateDataOperationEntityToMatchTypeArgumentParentRef=hh,d.validateDataOperationEntityToMatchTypeArgumentRef=yh,d.validateDataOperationEntityToMatchTypeDataType=fh,d.validateDataOperationError=Rh,d.validateDataOperationErrorParentRef=bh,d.validateDataOperationOutputEntityDeclaration=Eh,d.validateDataOperationOutputEntityDeclarationParentRef=Th,d.validateEntryCaller=kA,d.validateErrorCaller=jA,d.validateFunctionCallDeclaration=WA,d.validateFunctionDeclarationName=lu,d.validateGeneratedEntityParentIsNotBuiltInEntity=M2,d.validateGeneration=_2,d.validateGenerationTarget=Ne,d.validateGenerationUpdate=N2,d.validateLoopEntityDeclaration=k2,d.validateName=jk,d.validateOperationEntityDeclaration=YA,d.validatePropertyName=du,d.validateReachability=Pn,d.validateReadsValueInActionPayload=U2,d.validateReferenceObject=Co,d.validateReferenceToOne=Tu,d.validateReferences=Je,d.validateReturnDeclarationName=pu,d.validateSuccessCaller=xA,d.validateValueReaderGenerationUpdate=Ga,d.validateValueWritter=Iu,d.validateVariableDeclarationName=cu,d.validateVariableInternalCallUse=Du,d.valueAutogenerationCurrentDateAndTimeSchema=xI,d.valueAutogenerationGenericSchema=zs,d.valueAutogenerationOptions=nd,d.valueAutogenerationOptionsSchema=UI,d.valueAutogenerationRandomBooleanSchema=Xc,d.valueAutogenerationRandomDateBetweenSchema=ZI,d.valueAutogenerationRandomDateFromSchema=HI,d.valueAutogenerationRandomDateSchema=Xs,d.valueAutogenerationRandomDateUntilSchema=zI,d.valueAutogenerationRandomNumberBetweenSchema=qI,d.valueAutogenerationRandomNumberFromSchema=jI,d.valueAutogenerationRandomNumberSchema=Zs,d.valueAutogenerationRandomNumberUntilSchema=kI,d.valueAutogenerationRandomSchema=Ta,d.valueAutogenerationRandomTextBetweenSchema=YI,d.valueAutogenerationRandomTextFromSchema=JI,d.valueAutogenerationRandomTextSchema=Ks,d.valueAutogenerationRandomTextUntilSchema=WI,d.valueAutogenerationRangeValueTypesSchema=ma,d.valueAutogenerationUniqueSchema=Kc,d.waitOperation=ct,d.waitOperationMillisecondsNumberArgument=Qn,d.waitOperationMillisecondsNumberArgumentRef=Bf,d.waitOperationMillisecondsNumberDataType=wf,d.waitOperationOperationError=Mf,d.waitOperationOperationErrorParentRef=Nf,d.waitOperationRef=_f,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.6051",
3
+ "version": "0.0.6052",
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",