var t,n;function e(t){const{port1:n,port2:e}=new MessageChannel;return new Promise(((o,a)=>{try{parent.postMessage(t,"*",[e]),n.onmessage=t=>{const n=t.data;n.ok?o(n.data):a(n.data)}}catch(t){a(t)}}))}!function(t){t.Context="context",t.Fetch="fetch"}(t||(t={})),function(t){t.Entity="ENTITY",t.Global="GLOBAL"}(n||(n={}));export{t as CortexProtocolMessageType,n as PluginContextLocation,e as postCortexMessage};
//# sourceMappingURL=cortexProtocol.js.map
