import{c as E}from"./@babel-9d8261cc.js";(function(){try{var h=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(h._sentryDebugIds=h._sentryDebugIds||{},h._sentryDebugIds[d]="881b86a5-dda7-40b8-9411-64b449ce2e1f",h._sentryDebugIdIdentifier="sentry-dbid-881b86a5-dda7-40b8-9411-64b449ce2e1f")}catch{}})();var w={exports:{}};(function(h){var d=Object.prototype.hasOwnProperty,f="~";function y(){}Object.create&&(y.prototype=Object.create(null),new y().__proto__||(f=!1));function x(s,t,n){this.fn=s,this.context=t,this.once=n||!1}function g(s,t,n,r,l){if(typeof n!="function")throw new TypeError("The listener must be a function");var c=new x(n,r||s,l),o=f?f+t:t;return s._events[o]?s._events[o].fn?s._events[o]=[s._events[o],c]:s._events[o].push(c):(s._events[o]=c,s._eventsCount++),s}function b(s,t){--s._eventsCount===0?s._events=new y:delete s._events[t]}function u(){this._events=new y,this._eventsCount=0}u.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)d.call(n,r)&&t.push(f?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t},u.prototype.listeners=function(t){var n=f?f+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var l=0,c=r.length,o=new Array(c);l<c;l++)o[l]=r[l].fn;return o},u.prototype.listenerCount=function(t){var n=f?f+t:t,r=this._events[n];return r?r.fn?1:r.length:0},u.prototype.emit=function(t,n,r,l,c,o){var a=f?f+t:t;if(!this._events[a])return!1;var e=this._events[a],p=arguments.length,v,i;if(e.fn){switch(e.once&&this.removeListener(t,e.fn,void 0,!0),p){case 1:return e.fn.call(e.context),!0;case 2:return e.fn.call(e.context,n),!0;case 3:return e.fn.call(e.context,n,r),!0;case 4:return e.fn.call(e.context,n,r,l),!0;case 5:return e.fn.call(e.context,n,r,l,c),!0;case 6:return e.fn.call(e.context,n,r,l,c,o),!0}for(i=1,v=new Array(p-1);i<p;i++)v[i-1]=arguments[i];e.fn.apply(e.context,v)}else{var m=e.length,_;for(i=0;i<m;i++)switch(e[i].once&&this.removeListener(t,e[i].fn,void 0,!0),p){case 1:e[i].fn.call(e[i].context);break;case 2:e[i].fn.call(e[i].context,n);break;case 3:e[i].fn.call(e[i].context,n,r);break;case 4:e[i].fn.call(e[i].context,n,r,l);break;default:if(!v)for(_=1,v=new Array(p-1);_<p;_++)v[_-1]=arguments[_];e[i].fn.apply(e[i].context,v)}}return!0},u.prototype.on=function(t,n,r){return g(this,t,n,r,!1)},u.prototype.once=function(t,n,r){return g(this,t,n,r,!0)},u.prototype.removeListener=function(t,n,r,l){var c=f?f+t:t;if(!this._events[c])return this;if(!n)return b(this,c),this;var o=this._events[c];if(o.fn)o.fn===n&&(!l||o.once)&&(!r||o.context===r)&&b(this,c);else{for(var a=0,e=[],p=o.length;a<p;a++)(o[a].fn!==n||l&&!o[a].once||r&&o[a].context!==r)&&e.push(o[a]);e.length?this._events[c]=e.length===1?e[0]:e:b(this,c)}return this},u.prototype.removeAllListeners=function(t){var n;return t?(n=f?f+t:t,this._events[n]&&b(this,n)):(this._events=new y,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=f,u.EventEmitter=u,h.exports=u})(w);var L=w.exports;const O=E(L);export{O as E};
//# sourceMappingURL=eventemitter3-6d181e25.js.map
