import{S as SdkError,a as SdkEvents}from"./js-core.esm4.js";function handleEvents(o){function r(n){if(!n||"string"!=typeof n)throw new SdkError("Please provide a valid event name!");if(!SdkEvents[n])throw new SdkError("Unknown event: ".concat(n))}return{on:function(n,e){r(n),o.on.call(o,n,e)},off:function(n){r(n),o.off.call(o,n)}}}export{handleEvents};
