import{r as e}from"./chunk-BPLyUllO.js";import{t}from"./src-D8DRHLtD.js";import{n,t as r}from"./chunk-VCGWCGR7-BsHMpZ7V.js";import{t as i}from"./chunk-ODNERRIQ-Byy9t2rn.js";var a=e({onMessage:()=>l,onOpenStreamChannel:()=>d,openStream:()=>u,sendMessage:()=>c}),o=i(`offscreen`),s=r(`offscreen`,e=>o.postMessage(e));o.onMessage(s.handleMessage);var{sendMessage:c,onMessage:l}=s,{openStream:u,onOpenStreamChannel:d}=n(s);t(a);