class t{constructor(t,s,n){this.value=t,this.error=s,this.visible=n}}const s=new Map;function n(t,n){s.set(t,n)}function o(t){const n=s.get(t.id);if(n)return n(t)}function c(s,n,o,c,r,i,a,e){const f=i&&i[a]||[];let u=e?n[e.id]:c,l=r;for(const t of f){if(!t)continue;const c=t.run(s,n,o,u,e);if("boolean"==typeof c.visible&&(l=c.visible),c.error)return c;u=c.value}return new t(u,void 0,l)}class r{constructor(t){this.id=t}}class i{}export{r as I,i as a,c as e,o as g,n as r}