"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("onion-interceptor"),s=a=>c.operate(async(r,t)=>{try{await t()}catch(o){throw o}finally{a()}}),y=a=>c.operate(async(r,t)=>{try{await t()}catch(o){throw a(o)}}),i=a=>c.operate(async(r,t)=>{await new Promise(o=>setTimeout(o,a)),await t()}),w=function(a,r,t){return c.operate(async(o,n)=>{try{await n(),a(o)}catch(e){throw(r==null?void 0:r(e))??e}finally{t==null||t()}})};exports.catchError=y;exports.delay=i;exports.finalize=s;exports.tap=w;