class e{constructor(e,t,n){this._element=e,this._event=t,this._handler=n,this._connected=!1}connect(){!this._connected&&this._castHandler(this._handler)&&(this._element.addEventListener(this._event,this._handler),this._connected=!0)}disconnect(){this._connected&&this._castHandler(this._handler)&&(this._element.removeEventListener(this._event,this._handler),this._connected=!1)}_castHandler(e){return!0}}class t extends CustomEvent{constructor(e,t){super(e,{detail:t,bubbles:!0,composed:!0})}get ccEvent(){return!0}}export{t as CcEvent,e as EventHandler};
//# sourceMappingURL=events.js.map
