/*! @sentry/browser 5.18.0 (60ba6aba) | https://github.com/getsentry/sentry-javascript */ var Sentry=function(t){var n=function(t,r){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])})(t,r)};function r(t,r){function e(){this.constructor=t}n(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}var e=function(){return(e=Object.assign||function(t){for(var n,r=1,e=arguments.length;r=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}function o(t,n){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var e,i,o=r.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(e=o.next()).done;)u.push(e.value)}catch(t){i={error:t}}finally{try{e&&!e.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return u}function u(){for(var t=[],n=0;n=200&&n<300?t.Success:429===n?t.RateLimit:n>=400&&n<500?t.Invalid:n>=500?t.Failed:t.Unknown}}(t.Status||(t.Status={}));var f=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var r in n)t.hasOwnProperty(r)||(t[r]=n[r]);return t});var h=function(t){function n(n){var r=this.constructor,e=t.call(this,n)||this;return e.message=n,e.name=r.prototype.constructor.name,f(e,r.prototype),e}return r(n,t),n}(Error);function v(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return E(t,Error)}}function l(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function d(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function p(t){return"[object String]"===Object.prototype.toString.call(t)}function y(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function m(t){return"[object Object]"===Object.prototype.toString.call(t)}function b(t){return"undefined"!=typeof Event&&E(t,Event)}function w(t){return"undefined"!=typeof Element&&E(t,Element)}function g(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function E(t,n){try{return t instanceof n}catch(t){return!1}}function x(t,n){return void 0===n&&(n=0),"string"!=typeof t||0===n?t:t.length<=n?t:t.substr(0,n)+"..."}function j(t,n){if(!Array.isArray(t))return"";for(var r=[],e=0;e"}return t.event_id||""}function I(t){var n=O();if(!("console"in n))return t();var r=n.console,e={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&r[t].__sentry_original__&&(e[t]=r[t],r[t]=r[t].__sentry_original__)});var i=t();return Object.keys(e).forEach(function(t){r[t]=e[t]}),i}function N(t,n,r){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||n||"",t.exception.values[0].type=t.exception.values[0].type||r||"Error"}function C(t,n){void 0===n&&(n={});try{t.exception.values[0].mechanism=t.exception.values[0].mechanism||{},Object.keys(n).forEach(function(r){t.exception.values[0].mechanism[r]=n[r]})}catch(t){}}function M(t){try{for(var n=t,r=[],e=0,i=0,o=" > ".length,u=void 0;n&&e++<5&&!("html"===(u=A(n))||e>1&&i+r.length*o+u.length>=80);)r.push(u),i+=u.length,n=n.parentNode;return r.reverse().join(" > ")}catch(t){return""}}function A(t){var n,r,e,i,o,u=t,c=[];if(!u||!u.tagName)return"";if(c.push(u.tagName.toLowerCase()),u.id&&c.push("#"+u.id),(n=u.className)&&p(n))for(r=n.split(/\s+/),o=0;o"}try{o.currentTarget=w(i.currentTarget)?M(i.currentTarget):Object.prototype.toString.call(i.currentTarget)}catch(t){o.currentTarget=""}for(var e in"undefined"!=typeof CustomEvent&&E(t,CustomEvent)&&(o.detail=i.detail),i)Object.prototype.hasOwnProperty.call(i,e)&&(o[e]=i);return o}return t}function Z(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function tt(t,n,r){void 0===n&&(n=3),void 0===r&&(r=102400);var e=et(t,n);return Z(e)>r?tt(t,n-1,r):e}function nt(t,n){return"domain"===n&&t&&"object"==typeof t&&t.u?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":m(r=t)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+$(t)+"]":t;var r}function rt(t,n,r,e){if(void 0===r&&(r=1/0),void 0===e&&(e=new K),0===r)return function(t){var n=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";var r=nt(t);return y(r)?r:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var i=nt(n,t);if(y(i))return i;var o=Y(n),u=Array.isArray(n)?[]:{};if(e.memoize(n))return"[Circular ~]";for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(u[c]=rt(c,o[c],r-1,e));return e.unmemoize(n),u}function et(t,n){try{return JSON.parse(JSON.stringify(t,function(t,r){return rt(t,r,n)}))}catch(t){return"**non-serializable**"}}function it(t,n){void 0===n&&(n=40);var r=Object.keys(Y(t));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=n)return x(r[0],n);for(var e=r.length;e>0;e--){var i=r.slice(0,e).join(", ");if(!(i.length>n))return e===r.length?i:x(i,n)}return""}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(z||(z={}));var ot=function(){function t(t){var n=this;this.s=z.PENDING,this.h=[],this.v=function(t){n.l(z.RESOLVED,t)},this.p=function(t){n.l(z.REJECTED,t)},this.l=function(t,r){n.s===z.PENDING&&(g(r)?r.then(n.v,n.p):(n.s=t,n.m=r,n.g()))},this.j=function(t){n.h=n.h.concat(t),n.g()},this.g=function(){if(n.s!==z.PENDING){var t=n.h.slice();n.h=[],t.forEach(function(t){t.done||(n.s===z.RESOLVED&&t.onfulfilled&&t.onfulfilled(n.m),n.s===z.REJECTED&&t.onrejected&&t.onrejected(n.m),t.done=!0)})}};try{t(this.v,this.p)}catch(t){this.p(t)}}return t.prototype.toString=function(){return"[object SyncPromise]"},t.resolve=function(n){return new t(function(t){t(n)})},t.reject=function(n){return new t(function(t,r){r(n)})},t.all=function(n){return new t(function(r,e){if(Array.isArray(n))if(0!==n.length){var i=n.length,o=[];n.forEach(function(n,u){t.resolve(n).then(function(t){o[u]=t,0===(i-=1)&&r(o)}).then(null,e)})}else r([]);else e(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(n,r){var e=this;return new t(function(t,i){e.j({done:!1,onfulfilled:function(r){if(n)try{return void t(n(r))}catch(t){return void i(t)}else t(r)},onrejected:function(n){if(r)try{return void t(r(n))}catch(t){return void i(t)}else i(n)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(n){var r=this;return new t(function(t,e){var i,o;return r.then(function(t){o=!1,i=t,n&&n()},function(t){o=!0,i=t,n&&n()}).then(function(){o?e(i):t(i)})})},t}(),ut=function(){function t(t){this.k=t,this.S=[]}return t.prototype.isReady=function(){return void 0===this.k||this.length()0&&r(!1)},t);ot.all(n.S).then(function(){clearTimeout(e),r(!0)}).then(null,function(){r(!0)})})},t}();function ct(){if(!("fetch"in O()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function at(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function st(){if(!ct())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}var ft,ht=O(),vt={},lt={};function dt(t){if(!lt[t])switch(lt[t]=!0,t){case"console":!function(){if(!("console"in ht))return;["debug","info","warn","error","log","assert"].forEach(function(t){t in ht.console&&Q(ht.console,t,function(n){return function(){for(var r=[],e=0;e2?n[2]:void 0;if(e){var i=ft,o=String(e);ft=o,yt("history",{from:i,to:o})}return t.apply(this,n)}}ht.onpopstate=function(){for(var t=[],n=0;n1&&(v=d.slice(0,-1).join("/"),l=d.pop()),l){var p=l.match(/^\d+/);p&&(l=p[0])}this.O({host:a,pass:c,path:v,projectId:l,port:f,protocol:e,user:i})},t.prototype.O=function(t){this.protocol=t.protocol,this.user=t.user,this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId},t.prototype._=function(){var t=this;if(["protocol","user","host","projectId"].forEach(function(n){if(!t[n])throw new h("Invalid Dsn: "+n+" missing")}),!this.projectId.match(/^\d+$/))throw new h("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new h("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new h("Invalid Dsn: Invalid port "+this.port)},t}(),Dt=function(){function t(){this.D=!1,this.R=[],this.I=[],this.N=[],this.C={},this.M={},this.A={},this.q={}}return t.prototype.addScopeListener=function(t){this.R.push(t)},t.prototype.addEventProcessor=function(t){return this.I.push(t),this},t.prototype.U=function(){var t=this;this.D||(this.D=!0,setTimeout(function(){t.R.forEach(function(n){n(t)}),t.D=!1}))},t.prototype.L=function(t,n,r,i){var o=this;return void 0===i&&(i=0),new ot(function(u,c){var a=t[i];if(null===n||"function"!=typeof a)u(n);else{var s=a(e({},n),r);g(s)?s.then(function(n){return o.L(t,n,r,i+1).then(u)}).then(null,c):o.L(t,s,r,i+1).then(u).then(null,c)}})},t.prototype.setUser=function(t){return this.C=t||{},this.U(),this},t.prototype.setTags=function(t){return this.M=e({},this.M,t),this.U(),this},t.prototype.setTag=function(t,n){var r;return this.M=e({},this.M,((r={})[t]=n,r)),this.U(),this},t.prototype.setExtras=function(t){return this.A=e({},this.A,t),this.U(),this},t.prototype.setExtra=function(t,n){var r;return this.A=e({},this.A,((r={})[t]=n,r)),this.U(),this},t.prototype.setFingerprint=function(t){return this.H=t,this.U(),this},t.prototype.setLevel=function(t){return this.F=t,this.U(),this},t.prototype.setTransactionName=function(t){return this.P=t,this.U(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,n){var r;return this.q=e({},this.q,((r={})[t]=n,r)),this.U(),this},t.prototype.setSpan=function(t){return this.X=t,this.U(),this},t.prototype.getSpan=function(){return this.X},t.prototype.getTransaction=function(){var t=this.getSpan();if(t&&t.spanRecorder&&t.spanRecorder.spans[0])return t.spanRecorder.spans[0]},t.clone=function(n){var r=new t;return n&&(r.N=u(n.N),r.M=e({},n.M),r.A=e({},n.A),r.q=e({},n.q),r.C=n.C,r.F=n.F,r.X=n.X,r.P=n.P,r.H=n.H,r.I=u(n.I)),r},t.prototype.update=function(n){if(!n)return this;if("function"==typeof n){var r=n(this);return r instanceof t?r:this}return n instanceof t?(this.M=e({},this.M,n.M),this.A=e({},this.A,n.A),this.q=e({},this.q,n.q),n.C&&(this.C=n.C),n.F&&(this.F=n.F),n.H&&(this.H=n.H)):m(n)&&(n=n,this.M=e({},this.M,n.tags),this.A=e({},this.A,n.extra),this.q=e({},this.q,n.contexts),n.user&&(this.C=n.user),n.level&&(this.F=n.level),n.fingerprint&&(this.H=n.fingerprint)),this},t.prototype.clear=function(){return this.N=[],this.M={},this.A={},this.C={},this.q={},this.F=void 0,this.P=void 0,this.H=void 0,this.X=void 0,this.U(),this},t.prototype.addBreadcrumb=function(t,n){var r=e({timestamp:F()},t);return this.N=void 0!==n&&n>=0?u(this.N,[r]).slice(-n):u(this.N,[r]),this.U(),this},t.prototype.clearBreadcrumbs=function(){return this.N=[],this.U(),this},t.prototype.W=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.H&&(t.fingerprint=t.fingerprint.concat(this.H)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t.prototype.applyToEvent=function(t,n){return this.A&&Object.keys(this.A).length&&(t.extra=e({},this.A,t.extra)),this.M&&Object.keys(this.M).length&&(t.tags=e({},this.M,t.tags)),this.C&&Object.keys(this.C).length&&(t.user=e({},this.C,t.user)),this.q&&Object.keys(this.q).length&&(t.contexts=e({},this.q,t.contexts)),this.F&&(t.level=this.F),this.P&&(t.transaction=this.P),this.X&&(t.contexts=e({trace:this.X.getTraceContext()},t.contexts)),this.W(t),t.breadcrumbs=u(t.breadcrumbs||[],this.N),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this.L(u(Rt(),this.I),t,n)},t}();function Rt(){var t=O();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function It(t){Rt().push(t)}var Nt=3,Ct=function(){function t(t,n,r){void 0===n&&(n=new Dt),void 0===r&&(r=Nt),this.$=r,this.B=[],this.B.push({client:t,scope:n}),this.bindClient(t)}return t.prototype.G=function(t){for(var n,r=[],e=1;e0?t[t.length-1].scope:void 0,r=Dt.clone(n);return this.getStack().push({client:this.getClient(),scope:r}),r},t.prototype.popScope=function(){return void 0!==this.getStack().pop()},t.prototype.withScope=function(t){var n=this.pushScope();try{t(n)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this.B},t.prototype.getStackTop=function(){return this.B[this.B.length-1]},t.prototype.captureException=function(t,n){var r=this.J=_(),i=n;if(!n){var o=void 0;try{throw new Error("Sentry syntheticException")}catch(t){o=t}i={originalException:t,syntheticException:o}}return this.G("captureException",t,e({},i,{event_id:r})),r},t.prototype.captureMessage=function(t,n,r){var i=this.J=_(),o=r;if(!r){var u=void 0;try{throw new Error(t)}catch(t){u=t}o={originalException:t,syntheticException:u}}return this.G("captureMessage",t,n,e({},o,{event_id:i})),i},t.prototype.captureEvent=function(t,n){var r=this.J=_();return this.G("captureEvent",t,e({},n,{event_id:r})),r},t.prototype.lastEventId=function(){return this.J},t.prototype.addBreadcrumb=function(t,n){var r=this.getStackTop();if(r.scope&&r.client){var i=r.client.getOptions&&r.client.getOptions()||{},o=i.beforeBreadcrumb,u=void 0===o?null:o,c=i.maxBreadcrumbs,a=void 0===c?100:c;if(!(a<=0)){var s=F(),f=e({timestamp:s},t),h=u?I(function(){return u(f,n)}):f;null!==h&&r.scope.addBreadcrumb(h,Math.min(a,100))}}},t.prototype.setUser=function(t){var n=this.getStackTop();n.scope&&n.scope.setUser(t)},t.prototype.setTags=function(t){var n=this.getStackTop();n.scope&&n.scope.setTags(t)},t.prototype.setExtras=function(t){var n=this.getStackTop();n.scope&&n.scope.setExtras(t)},t.prototype.setTag=function(t,n){var r=this.getStackTop();r.scope&&r.scope.setTag(t,n)},t.prototype.setExtra=function(t,n){var r=this.getStackTop();r.scope&&r.scope.setExtra(t,n)},t.prototype.setContext=function(t,n){var r=this.getStackTop();r.scope&&r.scope.setContext(t,n)},t.prototype.configureScope=function(t){var n=this.getStackTop();n.scope&&n.client&&t(n.scope)},t.prototype.run=function(t){var n=At(this);try{t(this)}finally{At(n)}},t.prototype.getIntegration=function(t){var n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch(n){return V.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t.prototype.startSpan=function(t){return this.V("startSpan",t)},t.prototype.startTransaction=function(t){return this.V("startTransaction",t)},t.prototype.traceHeaders=function(){return this.V("traceHeaders")},t.prototype.V=function(t){for(var n=[],r=1;r=t&&r({interval:i,ready:!1})):r({interval:i,ready:!0})},1)})},t.prototype.ut=function(){return this.et},t.prototype.st=function(){return!1!==this.getOptions().enabled&&void 0!==this.ot},t.prototype.ft=function(t,n,r){var i=this,o=this.getOptions().normalizeDepth,u=void 0===o?3:o,c=e({},t,{event_id:t.event_id||(r&&r.event_id?r.event_id:_()),timestamp:t.timestamp||F()});this.ht(c),this.vt(c);var a=n;r&&r.captureContext&&(a=Dt.clone(a).update(r.captureContext));var s=ot.resolve(c);return a&&(s=a.applyToEvent(c,r)),s.then(function(t){return"number"==typeof u&&u>0?i.lt(t,u):t})},t.prototype.lt=function(t,n){if(!t)return null;var r=e({},t,t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(function(t){return e({},t,t.data&&{data:et(t.data,n)})})},t.user&&{user:et(t.user,n)},t.contexts&&{contexts:et(t.contexts,n)},t.extra&&{extra:et(t.extra,n)});return t.contexts&&t.contexts.trace&&(r.contexts.trace=t.contexts.trace),r},t.prototype.ht=function(t){var n=this.getOptions(),r=n.environment,e=n.release,i=n.dist,o=n.maxValueLength,u=void 0===o?250:o;void 0===t.environment&&void 0!==r&&(t.environment=r),void 0===t.release&&void 0!==e&&(t.release=e),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=x(t.message,u));var c=t.exception&&t.exception.values&&t.exception.values[0];c&&c.value&&(c.value=x(c.value,u));var a=t.request;a&&a.url&&(a.url=x(a.url,u))},t.prototype.vt=function(t){var n=t.sdk,r=Object.keys(this.nt);n&&r.length>0&&(n.integrations=r)},t.prototype.dt=function(t){this.ut().sendEvent(t)},t.prototype.ct=function(t,n,r){var e=this,i=this.getOptions(),o=i.beforeSend,u=i.sampleRate;if(!this.st())return ot.reject("SDK not enabled, will not send event.");var c="transaction"===t.type;return!c&&"number"==typeof u&&Math.random()>u?ot.reject("This event has been sampled, will not send event."):new ot(function(i,u){e.ft(t,r,n).then(function(t){if(null!==t){var r=t;if(n&&n.data&&!0===n.data.__sentry__||!o||c)return e.dt(r),void i(r);var a=o(t,n);if(void 0===a)V.error("`beforeSend` method has to return `null` or a valid event.");else if(g(a))e.pt(a,i,u);else{if(null===(r=a))return V.log("`beforeSend` returned `null`, will not send event."),void i(null);e.dt(r),i(r)}}else u("An event processor returned null, will not send event.")}).then(null,function(t){e.captureException(t,{data:{__sentry__:!0},originalException:t}),u("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)})})},t.prototype.pt=function(t,n,r){var e=this;t.then(function(t){null!==t?(e.dt(t),n(t)):r("`beforeSend` returned `null`, will not send event.")}).then(null,function(t){r("beforeSend rejected with "+t)})},t}(),Jt=function(){function n(){}return n.prototype.sendEvent=function(n){return ot.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:t.Status.Skipped})},n.prototype.close=function(t){return ot.resolve(!0)},n}(),zt=function(){function t(t){this.it=t,this.it.dsn||V.warn("No DSN provided, backend will not do anything."),this.yt=this.bt()}return t.prototype.bt=function(){return new Jt},t.prototype.eventFromException=function(t,n){throw new h("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,n,r){throw new h("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){this.yt.sendEvent(t).then(null,function(t){V.error("Error while sending event: "+t)})},t.prototype.getTransport=function(){return this.yt},t}();function Vt(t,n){var r="transaction"===t.type,e={body:JSON.stringify(t),url:r?n.getEnvelopeEndpointWithUrlEncodedAuth():n.getStoreEndpointWithUrlEncodedAuth()};if(r){var i=JSON.stringify({event_id:t.event_id,sent_at:new Date(1e3*F()).toISOString()})+"\n"+JSON.stringify({type:t.type})+"\n"+e.body;e.body=i}return e}var Kt=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){Bt=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],n=0;n|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,rn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,en=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,on=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,un=/\((\S*)(?::(\d+))(?::(\d+))\)/;function cn(t){var n=null,r=t&&t.framesToPop;try{if(n=function(t){if(!t||!t.stacktrace)return null;for(var n,r=t.stacktrace,e=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,o=r.split("\n"),u=[],c=0;c eval")>-1&&(n=on.exec(r[3]))?(r[1]=r[1]||"eval",r[3]=n[1],r[4]=n[2],r[5]=""):0!==u||r[5]||void 0===t.columnNumber||(i[0].column=t.columnNumber+1),e={url:r[3],func:r[1]||tn,args:r[2]?r[2].split(","):[],line:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}!e.func&&e.line&&(e.func=tn),i.push(e)}if(!i.length)return null;return{message:sn(t),name:t.name,stack:i}}(t))return an(n,r)}catch(t){}return{message:sn(t),name:t&&t.name,stack:[],failed:!0}}function an(t,n){try{return e({},t,{stack:t.stack.slice(n)})}catch(n){return t}}function sn(t){var n=t&&t.message;return n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"}var fn=50;function hn(t){var n=ln(t.stack),r={type:t.name,value:t.message};return n&&n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function vn(t){return{exception:{values:[hn(t)]}}}function ln(t){if(!t||!t.length)return[];var n=t,r=n[0].func||"",e=n[n.length-1].func||"";return-1===r.indexOf("captureMessage")&&-1===r.indexOf("captureException")||(n=n.slice(1)),-1!==e.indexOf("sentryWrapped")&&(n=n.slice(0,-1)),n.slice(0,fn).map(function(t){return{colno:null===t.column?void 0:t.column,filename:t.url||n[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line}}).reverse()}function dn(t,n,r){var e,i;if(void 0===r&&(r={}),l(t)&&t.error)return e=vn(cn(t=t.error));if(d(t)||(i=t,"[object DOMException]"===Object.prototype.toString.call(i))){var o=t,u=o.name||(d(o)?"DOMError":"DOMException"),c=o.message?u+": "+o.message:u;return N(e=pn(c,n,r),c),e}return v(t)?e=vn(cn(t)):m(t)||b(t)?(C(e=function(t,n,r){var e={exception:{values:[{type:b(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:"Non-Error "+(r?"promise rejection":"exception")+" captured with keys: "+it(t)}]},extra:{__serialized__:tt(t)}};if(n){var i=ln(cn(n).stack);e.stacktrace={frames:i}}return e}(t,n,r.rejection),{synthetic:!0}),e):(N(e=pn(t,n,r),""+t,void 0),C(e,{synthetic:!0}),e)}function pn(t,n,r){void 0===r&&(r={});var e={message:t};if(r.attachStacktrace&&n){var i=ln(cn(n).stack);e.stacktrace={frames:i}}return e}var yn=function(){function t(t){this.options=t,this.S=new ut(30),this.Ot=new Xt(this.options.dsn),this.url=this.Ot.getStoreEndpointWithUrlEncodedAuth()}return t.prototype.sendEvent=function(t){throw new h("Transport Class has to implement `sendEvent` method")},t.prototype.close=function(t){return this.S.drain(t)},t}(),mn=O(),bn=function(n){function e(){var t=null!==n&&n.apply(this,arguments)||this;return t._t=new Date(Date.now()),t}return r(e,n),e.prototype.sendEvent=function(n){var r=this;if(new Date(Date.now())0}function kn(t,n,r){if(void 0===n&&(n={}),"function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(n){return t}var sentryWrapped=function(){var i=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);var o=i.map(function(t){return kn(t,n)});return t.handleEvent?t.handleEvent.apply(this,o):t.apply(this,o)}catch(t){throw xn+=1,setTimeout(function(){xn-=1}),Pt(function(r){r.addEventProcessor(function(t){var r=e({},t);return n.mechanism&&(N(r,void 0,void 0),C(r,n.mechanism)),r.extra=e({},r.extra,{arguments:i}),r}),captureException(t)}),t}};try{for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(sentryWrapped[i]=t[i])}catch(t){}t.prototype=t.prototype||{},sentryWrapped.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:sentryWrapped}),Object.defineProperties(sentryWrapped,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:function(){return t.name}})}catch(t){}return sentryWrapped}var Sn=function(){function n(t){this.name=n.id,this.Dt=!1,this.Rt=!1,this.it=e({onerror:!0,onunhandledrejection:!0},t)}return n.prototype.setupOnce=function(){Error.stackTraceLimit=50,this.it.onerror&&(V.log("Global Handler attached: onerror"),this.It()),this.it.onunhandledrejection&&(V.log("Global Handler attached: onunhandledrejection"),this.Nt())},n.prototype.It=function(){var t=this;this.Dt||(pt({callback:function(r){var e=r.error,i=qt(),o=i.getIntegration(n),u=e&&!0===e.__sentry_own_request__;if(o&&!jn()&&!u){var c=i.getClient(),a=y(e)?t.Ct(r.msg,r.url,r.line,r.column):t.Mt(dn(e,void 0,{attachStacktrace:c&&c.getOptions().attachStacktrace,rejection:!1}),r.url,r.line,r.column);C(a,{handled:!1,type:"onerror"}),i.captureEvent(a,{originalException:e})}},type:"error"}),this.Dt=!0)},n.prototype.Nt=function(){var r=this;this.Rt||(pt({callback:function(e){var i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(t){}var o=qt(),u=o.getIntegration(n),c=i&&!0===i.__sentry_own_request__;if(!u||jn()||c)return!0;var a=o.getClient(),s=y(i)?r.At(i):dn(i,void 0,{attachStacktrace:a&&a.getOptions().attachStacktrace,rejection:!0});s.level=t.Severity.Error,C(s,{handled:!1,type:"onunhandledrejection"}),o.captureEvent(s,{originalException:i})},type:"unhandledrejection"}),this.Rt=!0)},n.prototype.Ct=function(t,n,r,e){var i,o=l(t)?t.message:t;if(p(o)){var u=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);u&&(i=u[1],o=u[2])}var c={exception:{values:[{type:i||"Error",value:o}]}};return this.Mt(c,n,r,e)},n.prototype.At=function(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+t}]}}},n.prototype.Mt=function(t,n,r,e){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].stacktrace=t.exception.values[0].stacktrace||{},t.exception.values[0].stacktrace.frames=t.exception.values[0].stacktrace.frames||[];var i=isNaN(parseInt(e,10))?void 0:e,o=isNaN(parseInt(r,10))?void 0:r,u=p(n)&&n.length>0?n:function(){try{return document.location.href}catch(t){return""}}();return 0===t.exception.values[0].stacktrace.frames.length&&t.exception.values[0].stacktrace.frames.push({colno:i,filename:u,function:"?",in_app:!0,lineno:o}),t},n.id="GlobalHandlers",n}(),Tn=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],On=function(){function t(n){this.name=t.id,this.it=e({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},n)}return t.prototype.qt=function(t){return function(){for(var n=[],r=0;r"}0!==n.length&&qt().addBreadcrumb({category:"ui."+t.name,message:n},{event:t.event,name:t.name})},n.prototype.Xt=function(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;qt().addBreadcrumb({category:"xhr",data:t.xhr.__sentry_xhr__,type:"http"},{xhr:t.xhr})}else;},n.prototype.Wt=function(n){n.endTimestamp&&(n.fetchData.url.match(/sentry_key/)&&"POST"===n.fetchData.method||(n.error?qt().addBreadcrumb({category:"fetch",data:n.fetchData,level:t.Severity.Error,type:"http"},{data:n.error,input:n.args}):qt().addBreadcrumb({category:"fetch",data:e({},n.fetchData,{status_code:n.response.status}),type:"http"},{input:n.args,response:n.response})))},n.prototype.$t=function(t){var n=O(),r=t.from,e=t.to,i=D(n.location.href),o=D(r),u=D(e);o.path||(o=i),i.protocol===u.protocol&&i.host===u.host&&(e=u.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),qt().addBreadcrumb({category:"navigation",data:{from:r,to:e}})},n.prototype.setupOnce=function(){var t=this;this.it.console&&pt({callback:function(){for(var n=[],r=0;r=this.k)return r;var e=hn(cn(t[n]));return this.Jt(t[n],n,u([e],r))},t.id="LinkedErrors",t}(),Nn=O(),Cn=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){It(function(n){if(qt().getIntegration(t)){if(!Nn.navigator||!Nn.location)return n;var r=n.request||{};return r.url=r.url||Nn.location.href,r.headers=r.headers||{},r.headers["User-Agent"]=Nn.navigator.userAgent,e({},n,{request:r})}return n})},t.id="UserAgent",t}(),Mn=Object.freeze({GlobalHandlers:Sn,TryCatch:On,Breadcrumbs:_n,LinkedErrors:In,UserAgent:Cn}),An="sentry.javascript.browser",qn=function(t){function n(n){return void 0===n&&(n={}),t.call(this,En,n)||this}return r(n,t),n.prototype.ft=function(n,r,i){return n.platform=n.platform||"javascript",n.sdk=e({},n.sdk,{name:An,packages:u(n.sdk&&n.sdk.packages||[],[{name:"npm:@sentry/browser",version:"5.18.0"}]),version:"5.18.0"}),t.prototype.ft.call(this,n,r,i)},n.prototype.dt=function(n){var r=this.getIntegration(_n);r&&r.addSentryBreadcrumb(n),t.prototype.dt.call(this,n)},n.prototype.showReportDialog=function(t){void 0===t&&(t={});var n=O().document;if(n)if(this.st()){var r=t.dsn||this.getDsn();if(t.eventId)if(r){var e=n.createElement("script");e.async=!0,e.src=new Xt(r).getReportDialogEndpoint(t),t.onLoad&&(e.onload=t.onLoad),(n.head||n.body).appendChild(e)}else V.error("Missing `Dsn` option in showReportDialog call");else V.error("Missing `eventId` option in showReportDialog call")}else V.error("Trying to call showReportDialog with Sentry Client is disabled")},n}(Gt),Un=[new Yt,new Kt,new On,new _n,new Sn,new In,new Cn];var Ln={},Hn=O();Hn.Sentry&&Hn.Sentry.Integrations&&(Ln=Hn.Sentry.Integrations);var Fn=e({},Ln,Zt,Mn);return t.BrowserClient=qn,t.Hub=Ct,t.Integrations=Fn,t.SDK_NAME=An,t.SDK_VERSION="5.18.0",t.Scope=Dt,t.Transports=gn,t.addBreadcrumb=function(t){Ft("addBreadcrumb",t)},t.addGlobalEventProcessor=It,t.captureEvent=function(t){return Ft("captureEvent",t)},t.captureException=captureException,t.captureMessage=function(t,n){var r;try{throw new Error(t)}catch(t){r=t}return Ft("captureMessage",t,"string"==typeof n?n:void 0,e({originalException:t,syntheticException:r},"string"!=typeof n?{captureContext:n}:void 0))},t.close=function(t){var n=qt().getClient();return n?n.close(t):ot.reject(!1)},t.configureScope=function(t){Ft("configureScope",t)},t.defaultIntegrations=Un,t.flush=function(t){var n=qt().getClient();return n?n.flush(t):ot.reject(!1)},t.forceLoad=function(){},t.getCurrentHub=qt,t.getHubFromCarrier=Lt,t.init=function(t){if(void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=Un),void 0===t.release){var n=O();n.SENTRY_RELEASE&&n.SENTRY_RELEASE.id&&(t.release=n.SENTRY_RELEASE.id)}!function(t,n){!0===n.debug&&V.enable();var r=qt(),e=new t(n);r.bindClient(e)}(qn,t)},t.lastEventId=function(){return qt().lastEventId()},t.makeMain=At,t.onLoad=function(t){t()},t.setContext=function(t,n){Ft("setContext",t,n)},t.setExtra=function(t,n){Ft("setExtra",t,n)},t.setExtras=function(t){Ft("setExtras",t)},t.setTag=function(t,n){Ft("setTag",t,n)},t.setTags=function(t){Ft("setTags",t)},t.setUser=function(t){Ft("setUser",t)},t.showReportDialog=function(t){void 0===t&&(t={}),t.eventId||(t.eventId=qt().lastEventId());var n=qt().getClient();n&&n.showReportDialog(t)},t.startTransaction=function(t){return Ft("startTransaction",e({},t))},t.withScope=Pt,t.wrap=function(t){return kn(t)()},t}({});