import{H as t}from"@highlight-run/cloudflare";var i={...t,init:function(i,n,r){return function(t){"function"!=typeof t.waitUntil&&(Array.isArray(t.__waitUntilPromises)||(t.__waitUntilPromises=[]),t.waitUntil=function(i){t.__waitUntilPromises.push(i),t.__waitUntilTimer=setInterval((()=>{Promise.allSettled(t.__waitUntilPromises||[]).then((()=>{t.__waitUntilTimer&&(clearInterval(t.__waitUntilTimer),t.__waitUntilTimer=void 0)}))}),200)})}(r),t.init(i,n,r)}};function n(t){return function(n){return async function(r,e){i.init(r,t,e);try{const t=await n(r,e);return i.sendResponse(t),t}catch(t){throw t instanceof Error&&i.consumeError(t),t}}}}export{i as H,n as Highlight};//# sourceMappingURL=edge.mjs.map