!function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}System.register(["./delegate-legacy.cc306993.js","./usage-legacy.03fd855f.js"],(function(){"use strict";var t,n,i,s,r,a,o;return{setters:[function(e){t=e.d},function(e){n=e.p,i=e.t,s=e.a,r=e.b,a=e.g,o=e.c}],execute:function(){n("eventTracker",function(){function n(e,a){var o=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),i(e,s.EVENT_TRACKER),window.addEventListener){this.opts=r({events:["click"],fieldsObj:{},attributePrefix:"ga-"},a),this.tracker=e,this.handleEvents=this.handleEvents.bind(this);var c="["+this.opts.attributePrefix+"on]";this.delegates={},this.opts.events.forEach((function(e){o.delegates[e]=t(document,e,c,o.handleEvents,{composed:!0,useCapture:!0})}))}}var c,f,u;return c=n,(f=[{key:"handleEvents",value:function(e,t){var n=this.opts.attributePrefix;if(!(t.getAttribute(n+"on").split(/\s*,\s*/).indexOf(e.type)<0)){var i=a(t,n),s=r({},this.opts.fieldsObj,i),c=i.hitType||"event";this.tracker.send(c,o({transport:"beacon"},s,this.tracker,this.opts.hitFilter,t,e))}}},{key:"remove",value:function(){var e=this;Object.keys(this.delegates).forEach((function(t){e.delegates[t].destroy()}))}}])&&e(c.prototype,f),u&&e(c,u),Object.defineProperty(c,"prototype",{writable:!1}),n}())}}}))}();
