import{R as t}from"./index-T8LZyOXI.js";import{b as l,g as r}from"./KHR_interactivity-BRnQ0PPJ.js";import{i as s}from"./declarationMapper-YJJdbZ_c.js";import"./index-BkylzejB.js";import"./objectModelMapping-D1pI71RW.js";class o extends l{constructor(e){super(e),this.delayIndex=this.registerDataInput("delayIndex",s)}_execute(e,p){const a=r(this.delayIndex.getValue(e));if(a<=0||isNaN(a)||!isFinite(a))return this._reportError(e,"Invalid delay index");const i=e._getGlobalContextVariable("pendingDelays",[])[a];i&&i.dispose(),this.out._activateSignal(e)}getClassName(){return"FlowGraphCancelDelayBlock"}}t("FlowGraphCancelDelayBlock",o);export{o as FlowGraphCancelDelayBlock};
