module.exports = "(function(e,t,n){var r=function(e){return e&&\"undefined\"!=typeof Symbol&&e.constructor===Symbol?\"symbol\":typeof e},o=n(5894),i=n(343),s=n(280).v,l=n(8737),a=n(7757),u=t.Error=s(\"ClickDelegateError\");function c(e){this.handler=e,this.events=[],this.unlistenFn=null,this.clickHandler=o.bind((function(e){o.forEach(this.events,o.bind((function(t){try{var n=t.config&&t.config.selector?t.config.selector:t.eventFilter.selector;(function(e,t,n){var s=e.target,l=0;__EXPERIMENTAL_SHADOW_DOM__&&s.shadowRoot&&(s=e.composedPath()[0]);for(;s;){var c;try{c=a(s,t)}catch(a){var h={typeofElementValue:void 0===s?\"undefined\":r(s),nodeName:o.result(s,[\"nodeName\"],null),nodeType:o.result(s,[\"nodeType\"],null),targetName:o.result(e,[\"target\",\"nodeName\"],null),targetType:o.result(e,[\"target\",\"nodeType\"],null),numParentsTraversed:l,selector:t,errorMessage:a.message,eventId:n.id};return i.emitError(new u(\"Unable to evaluate match for element\"),h),!1}if(c)return!0;s=s.parentElement,l++}return!1})(e,n,t)&&this.handler(t)}catch(e){i.emitError(new u(\"Unable to handle click for selector\"+n+\":\"+e.message))}}),this))}),this)}c.prototype.listen=function(){this.unlistenFn=l.addEventListener(\"click\",this.clickHandler,!0)},c.prototype.unlisten=function(){this.unlistenFn&&(this.unlistenFn(),this.unlistenFn=null)},c.prototype.hasEvents=function(){return this.events.length>0},c.prototype.addEvent=function(e){this.events.push(e)},c.prototype.removeEvent=function(e){this.events=o.filter(this.events,(function(t){return t.apiName!==e.apiName}))},e.exports=c})";