Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@sentry/browser

Package Overview
Dependencies
Maintainers
9
Versions
536
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/browser - npm Package Compare versions

Comparing version 5.2.1 to 5.3.0

4

build/bundle.es6.min.js

@@ -1,3 +0,3 @@

/*! @sentry/browser 5.2.1 (ecb6bdb1) | https://github.com/getsentry/sentry-javascript */
var Sentry=function(t){"use strict";var e,n,r;!function(t){t[t.None=0]="None",t[t.Error=1]="Error",t[t.Debug=2]="Debug",t[t.Verbose=3]="Verbose"}(e||(e={})),(n=t.Severity||(t.Severity={})).Fatal="fatal",n.Error="error",n.Warning="warning",n.Log="log",n.Info="info",n.Debug="debug",n.Critical="critical",function(t){t.fromString=function(e){switch(e){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;case"log":default:return t.Log}}}(t.Severity||(t.Severity={})),(r=t.Status||(t.Status={})).Unknown="unknown",r.Skipped="skipped",r.Success="success",r.RateLimit="rate_limit",r.Invalid="invalid",r.Failed="failed",function(t){t.fromHttpCode=function(e){return e>=200&&e<300?t.Success:429===e?t.RateLimit:e>=400&&e<500?t.Invalid:e>=500?t.Failed:t.Unknown}}(t.Status||(t.Status={}));class i extends Error{constructor(t){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype)}}function s(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function o(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function c(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function u(t){return"[object String]"===Object.prototype.toString.call(t)}function a(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function h(t){return"[object Object]"===Object.prototype.toString.call(t)}function l(t){return Boolean(t&&t.then&&"function"==typeof t.then)}const f={};function d(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:f}function p(){const t=d(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){const t=new Uint16Array(8);e.getRandomValues(t),t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const n=t=>{let e=t.toString(16);for(;e.length<4;)e=`0${e}`;return e};return n(t[0])+n(t[1])+n(t[2])+n(t[3])+n(t[4])+n(t[5])+n(t[6])+n(t[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}function m(t){if(!t)return{};const e=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+r}}function v(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){const e=t.exception.values[0];return e.type&&e.value?`${e.type}: ${e.value}`:e.type||e.value||t.event_id||"<unknown>"}return t.event_id||"<unknown>"}function b(t){const e=d();if(!("console"in e))return t();const n=e.console,r={};["debug","info","warn","error","log","assert"].forEach(t=>{t in e.console&&n[t].__sentry__&&(r[t]=n[t].__sentry_wrapped__,n[t]=n[t].__sentry_original__)});const i=t();return Object.keys(r).forEach(t=>{n[t]=r[t]}),i}function y(t,e,n,r={handled:!0,type:"generic"}){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||e||"",t.exception.values[0].type=t.exception.values[0].type||n||"Error",t.exception.values[0].mechanism=t.exception.values[0].mechanism||r}const g=d(),w="Sentry Logger ";g.__SENTRY__=g.__SENTRY__||{};const E=g.__SENTRY__.logger||(g.__SENTRY__.logger=new class{constructor(){this.t=!1}disable(){this.t=!1}enable(){this.t=!0}log(...t){this.t&&b(()=>{g.console.log(`${w}[Log]: ${t.join(" ")}`)})}warn(...t){this.t&&b(()=>{g.console.warn(`${w}[Warn]: ${t.join(" ")}`)})}error(...t){this.t&&b(()=>{g.console.error(`${w}[Error]: ${t.join(" ")}`)})}});class _{constructor(){this.i="function"==typeof WeakSet,this.s=this.i?new WeakSet:[]}memoize(t){if(this.i)return!!this.s.has(t)||(this.s.add(t),!1);for(let e=0;e<this.s.length;e++){if(this.s[e]===t)return!0}return this.s.push(t),!1}unmemoize(t){if(this.i)this.s.delete(t);else for(let e=0;e<this.s.length;e++)if(this.s[e]===t){this.s.splice(e,1);break}}}function $(t,e,n){if(!(e in t))return;const r=t[e],i=n(r);if("function"==typeof i)try{i.prototype=i.prototype||{},Object.defineProperties(i,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:r},__sentry_wrapped__:{enumerable:!1,value:i}})}catch(t){}t[e]=i}function j(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function O(t,e=3,n=102400){const r=k(t,e);return j(r)>n?O(t,e-1,n):r}function x(t,e){return"domain"===e&&"object"==typeof t&&t.o?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":"undefined"!=typeof Event&&t instanceof Event?Object.getPrototypeOf(t)?t.constructor.name:"Event":h(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n?"[SyntheticEvent]":Number.isNaN(t)?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?`[Function: ${t.name||"<unknown-function-name>"}]`:t;var n}function S(t,e,n=1/0,r=new _){if(0===n)return function(t){const e=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===e)return"[Object]";if("[object Array]"===e)return"[Array]";const n=x(t);return a(n)?n:e}(e);if(null!=e&&"function"==typeof e.toJSON)return e.toJSON();const i=x(e,t);if(a(i))return i;const o=s(e)?function(t){const e={message:t.message,name:t.name,stack:t.stack};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}(e):e,c=Array.isArray(e)?[]:{};if(r.memoize(e))return"[Circular ~]";for(const t in o)Object.prototype.hasOwnProperty.call(o,t)&&(c[t]=S(t,o[t],n-1,r));return r.unmemoize(e),c}function k(t,e){try{return JSON.parse(JSON.stringify(t,(t,n)=>S(t,n,e)))}catch(t){return"**non-serializable**"}}class T{constructor(t){this.u=t,this.h=[]}isReady(){return void 0===this.u||this.length()<this.u}add(t){return this.isReady()?(-1===this.h.indexOf(t)&&this.h.push(t),t.then(()=>this.remove(t)).catch(()=>this.remove(t).catch(()=>{})),t):Promise.reject(new i("Not adding Promise due to buffer limit reached."))}remove(t){return this.h.splice(this.h.indexOf(t),1)[0]}length(){return this.h.length}drain(t){return new Promise(e=>{const n=setTimeout(()=>{t&&t>0&&e(!1)},t);Promise.all(this.h).then(()=>{clearTimeout(n),e(!0)}).catch(()=>{e(!0)})})}}function R(t,e=0){return 0===e?t:t.length<=e?t:`${t.substr(0,e)}...`}function I(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;e<t.length;e++){const r=t[e];try{n.push(String(r))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function D(t,e=40){if(!t.length)return"[object has no keys]";if(t[0].length>=e)return R(t[0],e);for(let n=t.length;n>0;n--){const r=t.slice(0,n).join(", ");if(!(r.length>e))return n===t.length?r:R(r,e)}return""}function F(t,e){return n=e,"[object RegExp]"===Object.prototype.toString.call(n)?e.test(t):"string"==typeof e&&t.includes(e);var n}function C(){if(!("fetch"in d()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function M(){if(!C())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}var L;!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(L||(L={}));class U{constructor(t){this.l=L.PENDING,this.p=[],this.m=(t=>{this.v(t,L.RESOLVED)}),this.g=(t=>{this.v(t,L.REJECTED)}),this.v=((t,e)=>{this.l===L.PENDING&&(l(t)?t.then(this.m,this.g):(this._=t,this.l=e,this.$()))}),this.$=(()=>{this.l!==L.PENDING&&(this.l===L.REJECTED?this.p.forEach(t=>t.onFail&&t.onFail(this._)):this.p.forEach(t=>t.onSuccess&&t.onSuccess(this._)),this.p=[])}),this.j=(t=>{this.p=this.p.concat(t),this.$()});try{t(this.m,this.g)}catch(t){this.g(t)}}then(t,e){return new U((n,r)=>{this.j({onFail:t=>{if(e)try{return void n(e(t))}catch(t){return void r(t)}else r(t)},onSuccess:e=>{if(t)try{return void n(t(e))}catch(t){return void r(t)}else n(e)}})})}catch(t){return this.then(t=>t,t)}toString(){return"[object SyncPromise]"}static resolve(t){return new U(e=>{e(t)})}static reject(t){return new U((e,n)=>{n(t)})}}const A=/([0-9a-f]{2})-([0-9a-f]{32})-([0-9a-f]{16})-([0-9a-f]{2})/;class N{constructor(t=p(),e=p().substring(16),n=!1,r){this.O=t,this.S=e,this.k=n,this.T=r}static fromTraceparent(t){const e=t.match(A);if(e){const t=new N(e[2],e[3],"01"===e[4]);return new N(e[2],void 0,void 0,t)}}toTraceparent(){return`00-${this.O}-${this.S}-${this.k?"01":"00"}`}toJSON(){return{parent:this.T&&this.T.toJSON()||void 0,span_id:this.S,trace_id:this.O}}}class P{constructor(){this.R=!1,this.I=[],this.D=[],this.F=[],this.C={},this.M={},this.L={},this.U={}}addScopeListener(t){this.I.push(t)}addEventProcessor(t){return this.D.push(t),this}A(){this.R||(this.R=!0,setTimeout(()=>{this.I.forEach(t=>{t(this)}),this.R=!1}))}N(t,e,n,r=0){return new U((i,s)=>{const o=t[r];if(null===e||"function"!=typeof o)i(e);else{const c=o(Object.assign({},e),n);l(c)?c.then(e=>this.N(t,e,n,r+1).then(i)).catch(s):this.N(t,c,n,r+1).then(i).catch(s)}})}setUser(t){return this.C=k(t),this.A(),this}setTags(t){return this.M=Object.assign({},this.M,k(t)),this.A(),this}setTag(t,e){return this.M=Object.assign({},this.M,{[t]:k(e)}),this.A(),this}setExtras(t){return this.L=Object.assign({},this.L,k(t)),this.A(),this}setExtra(t,e){return this.L=Object.assign({},this.L,{[t]:k(e)}),this.A(),this}setFingerprint(t){return this.P=k(t),this.A(),this}setLevel(t){return this.B=k(t),this.A(),this}setTransaction(t){return this.H=t,this.A(),this}setContext(t,e){return this.U[t]=e?k(e):void 0,this.A(),this}setSpan(t){return this.q=t,this.A(),this}startSpan(){const t=new N;return this.setSpan(t),t}getSpan(){return this.q}static clone(t){const e=new P;return Object.assign(e,t,{I:[]}),t&&(e.F=[...t.F],e.M=Object.assign({},t.M),e.L=Object.assign({},t.L),e.U=Object.assign({},t.U),e.C=t.C,e.B=t.B,e.q=t.q,e.H=t.H,e.P=t.P,e.D=[...t.D]),e}clear(){return this.F=[],this.M={},this.L={},this.C={},this.U={},this.B=void 0,this.H=void 0,this.P=void 0,this.q=void 0,this.A(),this}addBreadcrumb(t,e){const n=(new Date).getTime()/1e3,r=Object.assign({timestamp:n},t);return this.F=void 0!==e&&e>=0?[...this.F,k(r)].slice(-e):[...this.F,k(r)],this.A(),this}clearBreadcrumbs(){return this.F=[],this.A(),this}W(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.P&&(t.fingerprint=t.fingerprint.concat(this.P)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}applyToEvent(t,e){return this.L&&Object.keys(this.L).length&&(t.extra=Object.assign({},this.L,t.extra)),this.M&&Object.keys(this.M).length&&(t.tags=Object.assign({},this.M,t.tags)),this.C&&Object.keys(this.C).length&&(t.user=Object.assign({},this.C,t.user)),this.U&&Object.keys(this.U).length&&(t.contexts=Object.assign({},this.U,t.contexts)),this.B&&(t.level=this.B),this.H&&(t.transaction=this.H),this.q&&(t.contexts=t.contexts||{},t.contexts.trace=this.q),this.W(t),t.breadcrumbs=[...t.breadcrumbs||[],...this.F],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this.N([...B(),...this.D],t,e)}}function B(){const t=d();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function H(t){B().push(t)}const q=3,W=30,J=100;class X{constructor(t,e=new P,n=q){this.J=n,this.X=[],this.X.push({client:t,scope:e})}G(t,...e){const n=this.getStackTop();n&&n.client&&n.client[t]&&n.client[t](...e,n.scope)}isOlderThan(t){return this.J<t}bindClient(t){this.getStackTop().client=t}pushScope(){const t=this.getStack(),e=t.length>0?t[t.length-1].scope:void 0,n=P.clone(e);return this.getStack().push({client:this.getClient(),scope:n}),n}popScope(){return void 0!==this.getStack().pop()}withScope(t){const e=this.pushScope();try{t(e)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this.X}getStackTop(){return this.X[this.X.length-1]}captureException(t,e){const n=this.V=p();return this.G("captureException",t,Object.assign({},e,{event_id:n})),n}captureMessage(t,e,n){const r=this.V=p();return this.G("captureMessage",t,e,Object.assign({},n,{event_id:r})),r}captureEvent(t,e){const n=this.V=p();return this.G("captureEvent",t,Object.assign({},e,{event_id:n})),n}lastEventId(){return this.V}addBreadcrumb(t,e){const n=this.getStackTop();if(!n.scope||!n.client)return;const{beforeBreadcrumb:r=null,maxBreadcrumbs:i=W}=n.client.getOptions&&n.client.getOptions()||{};if(i<=0)return;const s=(new Date).getTime()/1e3,o=Object.assign({timestamp:s},t),c=r?b(()=>r(o,e)):o;null!==c&&n.scope.addBreadcrumb(c,Math.min(i,J))}configureScope(t){const e=this.getStackTop();e.scope&&e.client&&t(e.scope)}run(t){const e=G(this);try{t(this)}finally{G(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return E.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}traceHeaders(){const t=this.getStackTop();if(t.scope&&t.client){const e=t.scope.getSpan();if(e)return{"sentry-trace":e.toTraceparent()}}return{}}}function z(){const t=d();return t.__SENTRY__=t.__SENTRY__||{hub:void 0},t}function G(t){const e=z(),n=Z(e);return Q(e,t),n}function V(){const t=z();K(t)&&!Z(t).isOlderThan(q)||Q(t,new X);try{const r=(e=module,n="domain",e.require(n)).active;if(!r)return Z(t);if(!K(r)||Z(r).isOlderThan(q)){const e=Z(t).getStackTop();Q(r,new X(e.client,P.clone(e.scope)))}return Z(r)}catch(e){return Z(t)}var e,n}function K(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function Z(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub?t.__SENTRY__.hub:(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new X,t.__SENTRY__.hub)}function Q(t,e){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,!0)}function Y(t,...e){const n=V();if(n&&n[t])return n[t](...e);throw new Error(`No hub defined or ${t} was not found on the hub, please open a bug report.`)}function captureException(t){let e;try{throw new Error("Sentry syntheticException")}catch(t){e=t}return Y("captureException",t,{originalException:t,syntheticException:e})}function tt(t){Y("withScope",t)}const et=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,nt="Invalid Dsn";class rt{constructor(t){"string"==typeof t?this.K(t):this.Z(t),this.Y()}toString(t=!1){const{host:e,path:n,pass:r,port:i,projectId:s,protocol:o,user:c}=this;return`${o}://${c}${t&&r?`:${r}`:""}`+`@${e}${i?`:${i}`:""}/${n?`${n}/`:n}${s}`}K(t){const e=et.exec(t);if(!e)throw new i(nt);const[n,r,s="",o,c="",u]=e.slice(1);let a="",h=u;const l=h.split("/");l.length>1&&(a=l.slice(0,-1).join("/"),h=l.pop()),Object.assign(this,{host:o,pass:s,path:a,projectId:h,port:c,protocol:n,user:r})}Z(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}Y(){if(["protocol","user","host","projectId"].forEach(t=>{if(!this[t])throw new i(nt)}),"http"!==this.protocol&&"https"!==this.protocol)throw new i(nt);if(this.port&&Number.isNaN(parseInt(this.port,10)))throw new i(nt)}}const it="7";class st{constructor(t){this.dsn=t,this.tt=new rt(t)}getDsn(){return this.tt}getStoreEndpoint(){return`${this.et()}${this.getStoreEndpointPath()}`}getStoreEndpointWithUrlEncodedAuth(){const t={sentry_key:this.tt.user,sentry_version:it};return`${this.getStoreEndpoint()}?${e=t,Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}`;var e}et(){const t=this.tt,e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}`}getStoreEndpointPath(){const t=this.tt;return`${t.path?`/${t.path}`:""}/api/${t.projectId}/store/`}getRequestHeaders(t,e){const n=this.tt,r=[`Sentry sentry_version=${it}`];return r.push(`sentry_timestamp=${(new Date).getTime()}`),r.push(`sentry_client=${t}/${e}`),r.push(`sentry_key=${n.user}`),n.pass&&r.push(`sentry_secret=${n.pass}`),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}}getReportDialogEndpoint(t={}){const e=this.tt,n=`${this.et()}${e.path?`/${e.path}`:""}/api/embed/error-page/`,r=[];r.push(`dsn=${e.toString()}`);for(const e in t)if("user"===e){if(!t.user)continue;t.user.name&&r.push(`name=${encodeURIComponent(t.user.name)}`),t.user.email&&r.push(`email=${encodeURIComponent(t.user.email)}`)}else r.push(`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`);return r.length?`${n}?${r.join("&")}`:n}}const ot=[];function ct(t){const e={};return function(t){const e=t.defaultIntegrations&&[...t.defaultIntegrations]||[],n=t.integrations;let r=[];if(Array.isArray(n)){const t=n.map(t=>t.name),i=[];e.forEach(e=>{-1===t.indexOf(e.name)&&-1===i.indexOf(e.name)&&(r.push(e),i.push(e.name))}),n.forEach(t=>{-1===i.indexOf(t.name)&&(r.push(t),i.push(t.name))})}else{if("function"!=typeof n)return[...e];r=n(e),r=Array.isArray(r)?r:[r]}return r}(t).forEach(t=>{e[t.name]=t,function(t){-1===ot.indexOf(t.name)&&(t.setupOnce(H,V),ot.push(t.name),E.log(`Integration installed: ${t.name}`))}(t)}),e}class ut{constructor(t,e){this.nt=!1,this.rt=new t(e),this.it=e,e.dsn&&(this.st=new rt(e.dsn)),this.ot=ct(this.it)}captureException(t,e,n){let r=e&&e.event_id;return this.nt=!0,this.ct().eventFromException(t,e).then(t=>this.ut(t,e,n)).then(t=>{r=t&&t.event_id,this.nt=!1}).catch(t=>{E.error(t),this.nt=!1}),r}captureMessage(t,e,n,r){let i=n&&n.event_id;return this.nt=!0,(a(t)?this.ct().eventFromMessage(`${t}`,e,n):this.ct().eventFromException(t,n)).then(t=>this.ut(t,n,r)).then(t=>{i=t&&t.event_id,this.nt=!1}).catch(t=>{E.error(t),this.nt=!1}),i}captureEvent(t,e,n){let r=e&&e.event_id;return this.nt=!0,this.ut(t,e,n).then(t=>{r=t&&t.event_id,this.nt=!1}).catch(t=>{E.error(t),this.nt=!1}),r}getDsn(){return this.st}getOptions(){return this.it}flush(t){return this.at(t).then(e=>(this.ht&&clearInterval(this.ht),this.ct().getTransport().close(t).then(t=>e&&t)))}close(t){return this.flush(t).then(t=>(this.getOptions().enabled=!1,t))}getIntegrations(){return this.ot||{}}getIntegration(t){try{return this.ot[t.id]||null}catch(e){return E.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}at(t){return new Promise(e=>{let n=0;this.ht&&clearInterval(this.ht),this.ht=setInterval(()=>{this.nt?(n+=1,t&&n>=t&&e(!1)):e(!0)},1)})}ct(){return this.rt}lt(){return!1!==this.getOptions().enabled&&void 0!==this.st}ft(t,e,n){const{environment:r,release:i,dist:s,maxValueLength:o=250}=this.getOptions(),c=Object.assign({},t);void 0===c.environment&&void 0!==r&&(c.environment=r),void 0===c.release&&void 0!==i&&(c.release=i),void 0===c.dist&&void 0!==s&&(c.dist=s),c.message&&(c.message=R(c.message,o));const u=c.exception&&c.exception.values&&c.exception.values[0];u&&u.value&&(u.value=R(u.value,o));const a=c.request;a&&a.url&&(a.url=R(a.url,o)),void 0===c.event_id&&(c.event_id=p()),this.dt(c.sdk);let h=U.resolve(c);return e&&(h=e.applyToEvent(c,n)),h}dt(t){const e=Object.keys(this.ot);t&&e.length>0&&(t.integrations=e)}ut(t,e,n){const{beforeSend:r,sampleRate:i}=this.getOptions();return this.lt()?"number"==typeof i&&Math.random()>i?U.reject("This event has been sampled, will not send event."):new U((i,s)=>{this.ft(t,n,e).then(t=>{if(null===t)return void s("An event processor returned null, will not send event.");let n=t;try{if(e&&e.data&&!0===e.data.__sentry__||!r)return this.ct().sendEvent(n),void i(n);const o=r(t,e);if(void 0===o)E.error("`beforeSend` method has to return `null` or a valid event.");else if(l(o))this.pt(o,i,s);else{if(null===(n=o))return E.log("`beforeSend` returned `null`, will not send event."),void i(null);this.ct().sendEvent(n),i(n)}}catch(t){this.captureException(t,{data:{__sentry__:!0},originalException:t}),s("`beforeSend` throw an error, will not send event.")}})}):U.reject("SDK not enabled, will not send event.")}pt(t,e,n){t.then(t=>{null!==t?(this.ct().sendEvent(t),e(t)):n("`beforeSend` returned `null`, will not send event.")}).catch(t=>{n(`beforeSend rejected with ${t}`)})}}class at{sendEvent(e){return Promise.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:t.Status.Skipped})}close(t){return Promise.resolve(!0)}}class ht{constructor(t){this.it=t,this.it.dsn||E.warn("No DSN provided, backend will not do anything."),this.vt=this.bt()}bt(){return new at}eventFromException(t,e){throw new i("Backend has to implement `eventFromException` method")}eventFromMessage(t,e,n){throw new i("Backend has to implement `eventFromMessage` method")}sendEvent(t){this.vt.sendEvent(t).catch(t=>{E.error(`Error while sending event: ${t}`)})}getTransport(){return this.vt}}let lt;class ft{constructor(){this.name=ft.id}setupOnce(){lt=Function.prototype.toString,Function.prototype.toString=function(...t){const e=this.__sentry__?this.__sentry_original__:this;return lt.apply(e,t)}}}ft.id="FunctionToString";const dt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class pt{constructor(t={}){this.it=t,this.name=pt.id}setupOnce(){H(t=>{const e=V();if(!e)return t;const n=e.getIntegration(pt);if(n){const r=e.getClient(),i=r?r.getOptions():{},s=n.yt(i);if(n.gt(t,s))return null}return t})}gt(t,e){return this.wt(t,e)?(E.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${v(t)}`),!0):this.Et(t,e)?(E.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${v(t)}`),!0):this._t(t,e)?(E.warn(`Event dropped due to being matched by \`blacklistUrls\` option.\nEvent: ${v(t)}.\nUrl: ${this.$t(t)}`),!0):!this.jt(t,e)&&(E.warn(`Event dropped due to not being matched by \`whitelistUrls\` option.\nEvent: ${v(t)}.\nUrl: ${this.$t(t)}`),!0)}wt(t,e={}){if(!e.ignoreInternal)return!1;try{return"SentryError"===t.exception.values[0].type}catch(t){return!1}}Et(t,e={}){return!(!e.ignoreErrors||!e.ignoreErrors.length)&&this.Ot(t).some(t=>e.ignoreErrors.some(e=>F(t,e)))}_t(t,e={}){if(!e.blacklistUrls||!e.blacklistUrls.length)return!1;const n=this.$t(t);return!!n&&e.blacklistUrls.some(t=>F(n,t))}jt(t,e={}){if(!e.whitelistUrls||!e.whitelistUrls.length)return!0;const n=this.$t(t);return!n||e.whitelistUrls.some(t=>F(n,t))}yt(t={}){return{blacklistUrls:[...this.it.blacklistUrls||[],...t.blacklistUrls||[]],ignoreErrors:[...this.it.ignoreErrors||[],...t.ignoreErrors||[],...dt],ignoreInternal:void 0===this.it.ignoreInternal||this.it.ignoreInternal,whitelistUrls:[...this.it.whitelistUrls||[],...t.whitelistUrls||[]]}}Ot(t){if(t.message)return[t.message];if(t.exception)try{const{type:e,value:n}=t.exception.values[0];return[`${n}`,`${e}: ${n}`]}catch(e){return E.error(`Cannot extract message for event ${v(t)}`),[]}return[]}$t(t){try{if(t.stacktrace){const e=t.stacktrace.frames;return e[e.length-1].filename}if(t.exception){const e=t.exception.values[0].stacktrace.frames;return e[e.length-1].filename}return null}catch(e){return E.error(`Cannot extract url for event ${v(t)}`),null}}}pt.id="InboundFilters";var mt=Object.freeze({FunctionToString:ft,InboundFilters:pt}),vt=d(),bt={xt:!1,St:!1,kt:!1,Tt:!1},yt="?",gt=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function wt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Et(){return"undefined"==typeof document||null==document.location?"":document.location.href}bt.xt=function(){var t,e,n=[],r=null,i=null;function c(t,e,r){var i=null;if(!e||bt.St){for(var s in n)if(wt(n,s))try{n[s](t,e,r)}catch(t){i=t}if(i)throw i}}function u(e,n,r,u,a){var l=null;if(a=o(a)?a.error:a,e=o(e)?e.message:e,i)bt.kt.Rt(i,n,r,e),h();else if(a&&s(a))(l=bt.kt(a)).mechanism="onerror",c(l,!0,a);else{var f,d={url:n,line:r,column:u},p=e;if("[object String]"==={}.toString.call(e)){var m=e.match(gt);m&&(f=m[1],p=m[2])}d.func=yt,d.context=null,c(l={name:f,message:p,mode:"onerror",mechanism:"onerror",stack:[Object.assign({},d,{url:d.url||Et()})]},!0,null)}return!!t&&t.apply(this,arguments)}function a(t){var e=t&&(t.detail?t.detail.reason:t.reason)||t,n=bt.kt(e);n.mechanism="onunhandledrejection",c(n,!0,e)}function h(){var t=i,e=r;i=null,r=null,c(t,!1,e)}function l(t){if(i){if(r===t)return;h()}var e=bt.kt(t);throw i=e,r=t,setTimeout(function(){r===t&&h()},e.incomplete?2e3:0),t}return l.It=function(t){n.push(t)},l.Dt=function(){!0!==e&&(t=vt.onerror,vt.onerror=u,e=!0)},l.Ft=function(){vt.onunhandledrejection=a},l}(),bt.kt=function(){function t(t){if(!t||!t.stack)return null;for(var e,n,r,i=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,c=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,u=/\((\S*)(?::(\d+))(?::(\d+))\)/,a=t.stack.split("\n"),h=[],l=/^(.*) is undefined$/.exec(t.message),f=0,d=a.length;f<d;++f){if(n=i.exec(a[f]))n[2]&&0===n[2].indexOf("eval")&&(e=u.exec(n[2]))&&(n[2]=e[1],n[3]=e[2],n[4]=e[3]),r={url:n[2],func:n[1]||yt,args:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null};else if(n=o.exec(a[f]))r={url:n[2],func:n[1]||yt,args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=s.exec(a[f])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(e=c.exec(n[3]))?(n[3]=e[1],n[4]=e[2],n[5]=""):0!==f||n[5]||void 0===t.columnNumber||(h[0].column=t.columnNumber+1),r={url:n[3],func:n[1]||yt,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func=yt),r.context=null,h.push(r)}return h.length?(h[0]&&h[0].line&&!h[0].column&&l&&(h[0].column=null),{mode:"stack",name:t.name,message:t.message,stack:h}):null}function e(t,e,n,r){var i={url:e,line:n};if(i.url&&i.line){if(t.incomplete=!1,i.func||(i.func=yt),i.context||(i.context=null),/ '([^']+)' /.exec(r)&&(i.column=null),t.stack.length>0&&t.stack[0].url===i.url){if(t.stack[0].line===i.line)return!1;if(!t.stack[0].line&&t.stack[0].func===i.func)return t.stack[0].line=i.line,t.stack[0].context=i.context,!1}return t.stack.unshift(i),t.partial=!0,!0}return t.incomplete=!0,!1}function n(t,r){for(var i,s,o=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,c=[],u={},a=!1,h=n.caller;h&&!a;h=h.caller)if(h!==Ot&&h!==bt.xt){if(s={url:null,func:yt,args:[],line:null,column:null},h.name?s.func=h.name:(i=o.exec(h.toString()))&&(s.func=i[1]),void 0===s.func)try{s.func=i.input.substring(0,i.input.indexOf("{"))}catch(t){}u[""+h]?a=!0:u[""+h]=!0,c.push(s)}r&&c.splice(0,r);var l={mode:"callers",name:t.name,message:t.message,stack:c};return e(l,t.sourceURL||t.fileName,t.line||t.lineNumber,t.message||t.description),l}function r(e,r){var i=null;r=null==r?0:+r;try{if(i=function(t){var e=t.stacktrace;if(e){for(var n,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,s=e.split("\n"),o=[],c=0;c<s.length;c+=2){var u=null;(n=r.exec(s[c]))?u={url:n[2],line:+n[1],column:null,func:n[3],args:[]}:(n=i.exec(s[c]))&&(u={url:n[6],line:+n[1],column:+n[2],func:n[3]||n[4],args:n[5]?n[5].split(","):[]}),u&&(!u.func&&u.line&&(u.func=yt),u.line&&(u.context=null),u.context||(u.context=[s[c+1]]),o.push(u))}return o.length?{mode:"stacktrace",name:t.name,message:t.message,stack:o}:null}}(e))return i}catch(t){}try{if(i=t(e))return i}catch(t){}try{if(i=function(t){var e=t.message.split("\n");if(e.length<4)return null;var n,r=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,i=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,s=/^\s*Line (\d+) of function script\s*$/i,o=[],c=vt&&vt.document&&vt.document.getElementsByTagName("script"),u=[];for(var a in c)wt(c,a)&&!c[a].src&&u.push(c[a]);for(var h=2;h<e.length;h+=2){var l=null;(n=r.exec(e[h]))?l={url:n[2],func:n[3],args:[],line:+n[1],column:null}:(n=i.exec(e[h]))?l={url:n[3],func:n[4],args:[],line:+n[1],column:null}:(n=s.exec(e[h]))&&(l={url:Et().replace(/#.*$/,""),func:"",args:[],line:n[1],column:null}),l&&(l.func||(l.func=yt),l.context=[e[h+1]],o.push(l))}return o.length?{mode:"multiline",name:t.name,message:e[0],stack:o}:null}(e))return i}catch(t){}try{if(i=n(e,r+1))return i}catch(t){}return{original:e,name:e.name,message:e.message,mode:"failed"}}return r.Rt=e,r.Ct=t,r}(),bt.St=!0,bt.Tt=11;const _t=bt.xt.It,$t=bt.xt.Dt,jt=bt.xt.Ft,Ot=bt.kt,xt=50;function St(t){const e=Tt(t.stack),n={type:t.name,value:t.message};return e&&e.length&&(n.stacktrace={frames:e}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function kt(t){return{exception:{values:[St(t)]}}}function Tt(t){if(!t||!t.length)return[];let e=t;const n=e[0].func||"",r=e[e.length-1].func||"";return(n.includes("captureMessage")||n.includes("captureException"))&&(e=e.slice(1)),r.includes("sentryWrapped")&&(e=e.slice(0,-1)),e.map(t=>({colno:t.column,filename:t.url||e[0].url,function:t.func||"?",in_app:!0,lineno:t.line})).slice(0,xt).reverse()}class Rt{constructor(t){this.options=t,this.h=new T(30),this.url=new st(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}sendEvent(t){throw new i("Transport Class has to implement `sendEvent` method")}close(t){return this.h.drain(t)}}const It=d();class Dt extends Rt{sendEvent(e){const n={body:JSON.stringify(e),method:"POST",referrerPolicy:M()?"origin":""};return this.h.add(It.fetch(this.url,n).then(e=>({status:t.Status.fromHttpCode(e.status)})))}}class Ft extends Rt{sendEvent(e){return this.h.add(new Promise((n,r)=>{const i=new XMLHttpRequest;i.onreadystatechange=(()=>{4===i.readyState&&(200===i.status&&n({status:t.Status.fromHttpCode(i.status)}),r(i))}),i.open("POST",this.url),i.send(JSON.stringify(e))}))}}var Ct=Object.freeze({BaseTransport:Rt,FetchTransport:Dt,XHRTransport:Ft});class Mt extends ht{bt(){if(!this.it.dsn)return super.bt();const t=this.it.transportOptions?this.it.transportOptions:{dsn:this.it.dsn};return this.it.transport?new this.it.transport(t):C()?new Dt(t):new Ft(t)}eventFromException(e,n){let r;if(o(e)&&e.error){return e=e.error,r=kt(Ot(e)),U.resolve(this.Mt(r,n))}if(c(e)||(i=e,"[object DOMException]"===Object.prototype.toString.call(i))){const r=e,i=r.name||(c(r)?"DOMError":"DOMException"),s=r.message?`${i}: ${r.message}`:i;return this.eventFromMessage(s,t.Severity.Error,n).then(t=>(y(t,s),U.resolve(this.Mt(t,n))))}var i;if(s(e))return r=kt(Ot(e)),U.resolve(this.Mt(r,n));if(h(e)&&n&&n.syntheticException){return y(r=function(t,e){const n=Object.keys(t).sort(),r={extra:{__serialized__:O(t)},message:`Non-Error exception captured with keys: ${D(n)}`};if(e){const t=Tt(Ot(e).stack);r.stacktrace={frames:t}}return r}(e,n.syntheticException),"Custom Object",void 0,{handled:!0,synthetic:!0,type:"generic"}),r.level=t.Severity.Error,U.resolve(this.Mt(r,n))}const u=e;return this.eventFromMessage(u,void 0,n).then(e=>(y(e,`${u}`,void 0,{handled:!0,synthetic:!0,type:"generic"}),e.level=t.Severity.Error,U.resolve(this.Mt(e,n))))}Mt(t,e){return Object.assign({},t,{event_id:e&&e.event_id})}eventFromMessage(e,n=t.Severity.Info,r){const i={event_id:r&&r.event_id,level:n,message:e};if(this.it.attachStacktrace&&r&&r.syntheticException){const t=Tt(Ot(r.syntheticException).stack);i.stacktrace={frames:t}}return U.resolve(i)}}const Lt="sentry.javascript.browser",Ut="5.2.1";class At extends ut{constructor(t={}){super(Mt,t)}ft(t,e,n){return t.platform=t.platform||"javascript",t.sdk=Object.assign({},t.sdk,{name:Lt,packages:[...t.sdk&&t.sdk.packages||[],{name:"npm:@sentry/browser",version:Ut}],version:Ut}),super.ft(t,e,n)}showReportDialog(t={}){const e=d().document;if(!e)return;if(!this.lt())return void E.error("Trying to call showReportDialog with Sentry Client is disabled");const n=t.dsn||this.getDsn();if(!t.eventId)return void E.error("Missing `eventId` option in showReportDialog call");if(!n)return void E.error("Missing `Dsn` option in showReportDialog call");const r=e.createElement("script");r.async=!0,r.src=new st(n).getReportDialogEndpoint(t),t.onLoad&&(r.onload=t.onLoad),(e.head||e.body).appendChild(r)}}const Nt=1e3;let Pt,Bt,Ht=0;function qt(t,e={},n){if("function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(e){return t}const sentryWrapped=function(){n&&"function"==typeof n&&n.apply(this,arguments);const r=Array.prototype.slice.call(arguments);try{const n=r.map(t=>qt(t,e));return t.handleEvent?t.handleEvent.apply(this,n):t.apply(this,n)}catch(t){throw Ht+=1,setTimeout(()=>{Ht-=1}),tt(n=>{n.addEventProcessor(t=>{const n=Object.assign({},t);return e.mechanism&&y(n,void 0,void 0,e.mechanism),n.extra=Object.assign({},n.extra,{arguments:k(r,3)}),n}),captureException(t)}),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(sentryWrapped[e]=t[e])}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.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch(t){}return sentryWrapped}let Wt=0;function Jt(t,e=!1){return n=>{if(Pt=void 0,!n||Bt===n)return;Bt=n;const r=()=>{let e;try{e=n.target?zt(n.target):zt(n)}catch(t){e="<unknown>"}0!==e.length&&V().addBreadcrumb({category:`ui.${t}`,message:e},{event:n,name:t})};Wt&&clearTimeout(Wt),e?Wt=setTimeout(r):r()}}function Xt(){return t=>{let e;try{e=t.target}catch(t){return}const n=e&&e.tagName;n&&("INPUT"===n||"TEXTAREA"===n||e.isContentEditable)&&(Pt||Jt("input")(t),clearTimeout(Pt),Pt=setTimeout(()=>{Pt=void 0},Nt))}}function zt(t){let e=t;const n=[];let r=0,i=0;const s=" > ".length;let o;for(;e&&r++<5&&!("html"===(o=Gt(e))||r>1&&i+n.length*s+o.length>=80);)n.push(o),i+=o.length,e=e.parentNode;return n.reverse().join(" > ")}function Gt(t){const e=[];let n,r,i,s,o;if(!t||!t.tagName)return"";if(e.push(t.tagName.toLowerCase()),t.id&&e.push(`#${t.id}`),(n=t.className)&&u(n))for(r=n.split(/\s+/),o=0;o<r.length;o++)e.push(`.${r[o]}`);const c=["type","name","title","alt"];for(o=0;o<c.length;o++)i=c[o],(s=t.getAttribute(i))&&e.push(`[${i}="${s}"]`);return e.join("")}class Vt{constructor(t){this.name=Vt.id,this.it=Object.assign({onerror:!0,onunhandledrejection:!0},t)}setupOnce(){Error.stackTraceLimit=50,_t((t,e,n)=>{if(Ht>0)return;const r=V().getIntegration(Vt);r&&V().captureEvent(r.Lt(t),{data:{stack:t},originalException:n})}),this.it.onerror&&(E.log("Global Handler attached: onerror"),$t()),this.it.onunhandledrejection&&(E.log("Global Handler attached: onunhandledrejection"),jt())}Lt(t){if(!u(t.message)&&"onunhandledrejection"!==t.mechanism){const e=t.message;t.message=e.error&&u(e.error.message)?e.error.message:"No error message"}const e=kt(t),n={mode:t.mode};t.message&&(n.message=t.message),t.name&&(n.name=t.name);const r=V().getClient(),i=r&&r.getOptions().maxValueLength||250;return y(e,t.original?R(JSON.stringify(k(t.original)),i):"","onunhandledrejection"===t.mechanism?"UnhandledRejection":"Error",{data:n,handled:!1,type:t.mechanism}),e}}Vt.id="GlobalHandlers";class Kt{constructor(){this.Ut=0,this.name=Kt.id}At(t){return function(...e){const n=e[0];return e[0]=qt(n,{mechanism:{data:{function:Zt(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}}Nt(t){return function(e){return t(qt(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Zt(t)},handled:!0,type:"instrument"}}))}}Pt(t){const e=d(),n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&($(n,"addEventListener",function(e){return function(n,r,i){try{r.handleEvent=qt(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:Zt(r),target:t},handled:!0,type:"instrument"}})}catch(t){}return e.call(this,n,qt(r,{mechanism:{data:{function:"addEventListener",handler:Zt(r),target:t},handled:!0,type:"instrument"}}),i)}}),$(n,"removeEventListener",function(t){return function(e,n,r){let i=n;try{i=i&&(i.__sentry_wrapped__||i)}catch(t){}return t.call(this,e,i,r)}}))}setupOnce(){this.Ut=this.Ut;const t=d();$(t,"setTimeout",this.At.bind(this)),$(t,"setInterval",this.At.bind(this)),$(t,"requestAnimationFrame",this.Nt.bind(this)),["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"].forEach(this.Pt.bind(this))}}function Zt(t){try{return t&&t.name||"<anonymous>"}catch(t){return"<anonymous>"}}Kt.id="TryCatch";const Qt=d();let Yt;class te{constructor(t){this.name=te.id,this.it=Object.assign({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}Bt(){"console"in Qt&&["debug","info","warn","error","log","assert"].forEach(function(e){e in Qt.console&&$(Qt.console,e,function(n){return function(...r){const i={category:"console",data:{extra:{arguments:k(r,3)},logger:"console"},level:t.Severity.fromString(e),message:I(r," ")};"assert"===e&&!1===r[0]&&(i.message=`Assertion failed: ${I(r.slice(1)," ")||"console.assert"}`,i.data.extra.arguments=k(r.slice(1),3)),te.addBreadcrumb(i,{input:r,level:e}),n&&Function.prototype.apply.call(n,Qt.console,r)}})})}Ht(){"document"in Qt&&(Qt.document.addEventListener("click",Jt("click"),!1),Qt.document.addEventListener("keypress",Xt(),!1),["EventTarget","Node"].forEach(t=>{const e=Qt[t]&&Qt[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&($(e,"addEventListener",function(t){return function(e,n,r){return n&&n.handleEvent?("click"===e&&$(n,"handleEvent",function(t){return function(e){return Jt("click")(e),t.call(this,e)}}),"keypress"===e&&$(n,"handleEvent",Xt())):("click"===e&&Jt("click",!0)(this),"keypress"===e&&Xt()(this)),t.call(this,e,n,r)}}),$(e,"removeEventListener",function(t){return function(e,n,r){let i=n;try{i=i&&(i.__sentry_wrapped__||i)}catch(t){}return t.call(this,e,i,r)}}))}))}qt(){C()&&-1!==d().fetch.toString().indexOf("native")&&$(Qt,"fetch",function(e){return function(...n){const r=n[0];let i,s="GET";"string"==typeof r?i=r:"Request"in Qt&&r instanceof Request?(i=r.url,r.method&&(s=r.method)):i=String(r),n[1]&&n[1].method&&(s=n[1].method);const o=V().getClient(),c=o&&o.getDsn();if(c){const t=new st(c).getStoreEndpoint();if(t&&i.includes(t))return"POST"===s&&n[1]&&n[1].body&&ee(n[1].body),e.apply(Qt,n)}const u={method:s,url:i};return e.apply(Qt,n).then(t=>(u.status_code=t.status,te.addBreadcrumb({category:"fetch",data:u,type:"http"},{input:n,response:t}),t)).catch(e=>{throw te.addBreadcrumb({category:"fetch",data:u,level:t.Severity.Error,type:"http"},{error:e,input:n}),e})}})}Wt(){if(!function(){const t=d(),e=t.chrome,n=e&&e.app&&e.app.runtime,r="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!n&&r}())return;const t=(t,e)=>{const n=m(Qt.location.href),r=m(e);let i=m(t);i.path||(i=n),Yt=e,n.protocol===r.protocol&&n.host===r.host&&(e=r.relative),n.protocol===i.protocol&&n.host===i.host&&(t=i.relative),te.addBreadcrumb({category:"navigation",data:{from:t,to:e}})},e=Qt.onpopstate;function n(e){return function(...n){const r=n.length>2?n[2]:void 0;return r&&t(Yt,String(r)),e.apply(this,n)}}Qt.onpopstate=((...n)=>{const r=Qt.location.href;if(t(Yt,r),e)return e.apply(this,n)}),$(Qt.history,"pushState",n),$(Qt.history,"replaceState",n)}Jt(){if(!("XMLHttpRequest"in Qt))return;const t=XMLHttpRequest.prototype;$(t,"open",t=>(function(...e){const n=e[1];this.__sentry_xhr__={method:e[0],url:e[1]};const r=V().getClient(),i=r&&r.getDsn();if(i){const t=new st(i).getStoreEndpoint();u(n)&&t&&n.includes(t)&&(this.__sentry_own_request__=!0)}return t.apply(this,e)})),$(t,"send",t=>(function(...e){const n=this;function r(){if(4===n.readyState){if(n.__sentry_own_request__)return;try{n.__sentry_xhr__&&(n.__sentry_xhr__.status_code=n.status)}catch(t){}te.addBreadcrumb({category:"xhr",data:n.__sentry_xhr__,type:"http"},{xhr:n})}}return n.__sentry_own_request__&&ee(e[0]),["onload","onerror","onprogress"].forEach(t=>{!function(t,e){t in e&&"function"==typeof e[t]&&$(e,t,e=>qt(e,{mechanism:{data:{function:t,handler:e&&e.name||"<anonymous>"},handled:!0,type:"instrument"}}))}(t,n)}),"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?$(n,"onreadystatechange",function(t){return qt(t,{mechanism:{data:{function:"onreadystatechange",handler:t&&t.name||"<anonymous>"},handled:!0,type:"instrument"}},r)}):n.onreadystatechange=r,t.apply(this,e)}))}static addBreadcrumb(t,e){V().getIntegration(te)&&V().addBreadcrumb(t,e)}setupOnce(){this.it.console&&this.Bt(),this.it.dom&&this.Ht(),this.it.xhr&&this.Jt(),this.it.fetch&&this.qt(),this.it.history&&this.Wt()}}function ee(e){try{const n=JSON.parse(e);te.addBreadcrumb({category:"sentry",event_id:n.event_id,level:n.level||t.Severity.fromString("error"),message:v(n)},{event:n})}catch(t){E.error("Error while adding sentry type breadcrumb")}}te.id="Breadcrumbs";const ne="cause",re=5;class ie{constructor(t={}){this.name=ie.id,this.Xt=t.key||ne,this.u=t.limit||re}setupOnce(){H((t,e)=>{const n=V().getIntegration(ie);return n?n.zt(t,e):t})}zt(t,e){if(!(t.exception&&t.exception.values&&e&&e.originalException instanceof Error))return t;const n=this.Gt(e.originalException,this.Xt);return t.exception.values=[...n,...t.exception.values],t}Gt(t,e,n=[]){if(!(t[e]instanceof Error)||n.length+1>=this.u)return n;const r=St(Ot(t[e]));return this.Gt(t[e],e,[r,...n])}}ie.id="LinkedErrors";const se=d();class oe{constructor(){this.name=oe.id}setupOnce(){H(t=>{if(V().getIntegration(oe)){if(!se.navigator||!se.location)return t;const e=t.request||{};return e.url=e.url||se.location.href,e.headers=e.headers||{},e.headers["User-Agent"]=se.navigator.userAgent,Object.assign({},t,{request:e})}return t})}}oe.id="UserAgent";var ce=Object.freeze({GlobalHandlers:Vt,TryCatch:Kt,Breadcrumbs:te,LinkedErrors:ie,UserAgent:oe});const ue=[new pt,new ft,new Kt,new te,new Vt,new ie,new oe];let ae={};const he=d();he.Sentry&&he.Sentry.Integrations&&(ae=he.Sentry.Integrations);const le=Object.assign({},ae,mt,ce);return t.BrowserClient=At,t.Hub=X,t.Integrations=le,t.SDK_NAME=Lt,t.SDK_VERSION=Ut,t.Scope=P,t.Transports=Ct,t.addBreadcrumb=function(t){Y("addBreadcrumb",t)},t.addGlobalEventProcessor=H,t.captureEvent=function(t){return Y("captureEvent",t)},t.captureException=captureException,t.captureMessage=function(t,e){let n;try{throw new Error(t)}catch(t){n=t}return Y("captureMessage",t,e,{originalException:t,syntheticException:n})},t.close=function(t){const e=V().getClient();return e?e.close(t):Promise.reject(!1)},t.configureScope=function(t){Y("configureScope",t)},t.defaultIntegrations=ue,t.flush=function(t){const e=V().getClient();return e?e.flush(t):Promise.reject(!1)},t.forceLoad=function(){},t.getCurrentHub=V,t.getHubFromCarrier=Z,t.init=function(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=ue),function(t,e){!0===e.debug&&E.enable(),V().bindClient(new t(e))}(At,t)},t.lastEventId=function(){return V().lastEventId()},t.onLoad=function(t){t()},t.showReportDialog=function(t={}){t.eventId||(t.eventId=V().lastEventId());const e=V().getClient();e&&e.showReportDialog(t)},t.withScope=tt,t.wrap=function(t){qt(t)()},t}({});
/*! @sentry/browser 5.3.0 (37cf45f6) | https://github.com/getsentry/sentry-javascript */
var Sentry=function(t){var e,n,r;!function(t){t[t.None=0]="None",t[t.Error=1]="Error",t[t.Debug=2]="Debug",t[t.Verbose=3]="Verbose"}(e||(e={})),(n=t.Severity||(t.Severity={})).Fatal="fatal",n.Error="error",n.Warning="warning",n.Log="log",n.Info="info",n.Debug="debug",n.Critical="critical",function(t){t.fromString=function(e){switch(e){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;case"log":default:return t.Log}}}(t.Severity||(t.Severity={})),(r=t.Status||(t.Status={})).Unknown="unknown",r.Skipped="skipped",r.Success="success",r.RateLimit="rate_limit",r.Invalid="invalid",r.Failed="failed",function(t){t.fromHttpCode=function(e){return e>=200&&e<300?t.Success:429===e?t.RateLimit:e>=400&&e<500?t.Invalid:e>=500?t.Failed:t.Unknown}}(t.Status||(t.Status={}));class i extends Error{constructor(t){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype)}}function s(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function o(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function c(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function u(t){return"[object String]"===Object.prototype.toString.call(t)}function a(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function h(t){return"[object Object]"===Object.prototype.toString.call(t)}function l(t){return Boolean(t&&t.then&&"function"==typeof t.then)}const f={};function d(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:f}function p(){const t=d(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){const t=new Uint16Array(8);e.getRandomValues(t),t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const n=t=>{let e=t.toString(16);for(;e.length<4;)e=`0${e}`;return e};return n(t[0])+n(t[1])+n(t[2])+n(t[3])+n(t[4])+n(t[5])+n(t[6])+n(t[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}function v(t){if(!t)return{};const e=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+r}}function m(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){const e=t.exception.values[0];return e.type&&e.value?`${e.type}: ${e.value}`:e.type||e.value||t.event_id||"<unknown>"}return t.event_id||"<unknown>"}function y(t){const e=d();if(!("console"in e))return t();const n=e.console,r={};["debug","info","warn","error","log","assert"].forEach(t=>{t in e.console&&n[t].__sentry__&&(r[t]=n[t].__sentry_wrapped__,n[t]=n[t].__sentry_original__)});const i=t();return Object.keys(r).forEach(t=>{n[t]=r[t]}),i}function b(t,e,n,r={handled:!0,type:"generic"}){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||e||"",t.exception.values[0].type=t.exception.values[0].type||n||"Error",t.exception.values[0].mechanism=t.exception.values[0].mechanism||r}const g=d(),w="Sentry Logger ";g.__SENTRY__=g.__SENTRY__||{};const E=g.__SENTRY__.logger||(g.__SENTRY__.logger=new class{constructor(){this.t=!1}disable(){this.t=!1}enable(){this.t=!0}log(...t){this.t&&y(()=>{g.console.log(`${w}[Log]: ${t.join(" ")}`)})}warn(...t){this.t&&y(()=>{g.console.warn(`${w}[Warn]: ${t.join(" ")}`)})}error(...t){this.t&&y(()=>{g.console.error(`${w}[Error]: ${t.join(" ")}`)})}});class _{constructor(){this.i="function"==typeof WeakSet,this.s=this.i?new WeakSet:[]}memoize(t){if(this.i)return!!this.s.has(t)||(this.s.add(t),!1);for(let e=0;e<this.s.length;e++){if(this.s[e]===t)return!0}return this.s.push(t),!1}unmemoize(t){if(this.i)this.s.delete(t);else for(let e=0;e<this.s.length;e++)if(this.s[e]===t){this.s.splice(e,1);break}}}function $(t,e,n){if(!(e in t))return;const r=t[e],i=n(r);if("function"==typeof i)try{i.prototype=i.prototype||{},Object.defineProperties(i,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:r},__sentry_wrapped__:{enumerable:!1,value:i}})}catch(t){}t[e]=i}function j(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function O(t,e=3,n=102400){const r=k(t,e);return j(r)>n?O(t,e-1,n):r}function x(t,e){return"domain"===e&&"object"==typeof t&&t.o?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":"undefined"!=typeof Event&&t instanceof Event?Object.getPrototypeOf(t)?t.constructor.name:"Event":h(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n?"[SyntheticEvent]":Number.isNaN(t)?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?`[Function: ${t.name||"<unknown-function-name>"}]`:t;var n}function S(t,e,n=1/0,r=new _){if(0===n)return function(t){const e=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===e)return"[Object]";if("[object Array]"===e)return"[Array]";const n=x(t);return a(n)?n:e}(e);if(null!=e&&"function"==typeof e.toJSON)return e.toJSON();const i=x(e,t);if(a(i))return i;const o=s(e)?function(t){const e={message:t.message,name:t.name,stack:t.stack};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}(e):e,c=Array.isArray(e)?[]:{};if(r.memoize(e))return"[Circular ~]";for(const t in o)Object.prototype.hasOwnProperty.call(o,t)&&(c[t]=S(t,o[t],n-1,r));return r.unmemoize(e),c}function k(t,e){try{return JSON.parse(JSON.stringify(t,(t,n)=>S(t,n,e)))}catch(t){return"**non-serializable**"}}class T{constructor(t){this.u=t,this.h=[]}isReady(){return void 0===this.u||this.length()<this.u}add(t){return this.isReady()?(-1===this.h.indexOf(t)&&this.h.push(t),t.then(()=>this.remove(t)).catch(()=>this.remove(t).catch(()=>{})),t):Promise.reject(new i("Not adding Promise due to buffer limit reached."))}remove(t){return this.h.splice(this.h.indexOf(t),1)[0]}length(){return this.h.length}drain(t){return new Promise(e=>{const n=setTimeout(()=>{t&&t>0&&e(!1)},t);Promise.all(this.h).then(()=>{clearTimeout(n),e(!0)}).catch(()=>{e(!0)})})}}function R(t,e=0){return"string"!=typeof t||0===e?t:t.length<=e?t:`${t.substr(0,e)}...`}function I(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;e<t.length;e++){const r=t[e];try{n.push(String(r))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function D(t,e=40){if(!t.length)return"[object has no keys]";if(t[0].length>=e)return R(t[0],e);for(let n=t.length;n>0;n--){const r=t.slice(0,n).join(", ");if(!(r.length>e))return n===t.length?r:R(r,e)}return""}function F(t,e){return n=e,"[object RegExp]"===Object.prototype.toString.call(n)?e.test(t):"string"==typeof e&&t.includes(e);var n}function C(){if(!("fetch"in d()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function M(){if(!C())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}var L;!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(L||(L={}));class U{constructor(t){this.l=L.PENDING,this.p=[],this.v=(t=>{this.m(t,L.RESOLVED)}),this.g=(t=>{this.m(t,L.REJECTED)}),this.m=((t,e)=>{this.l===L.PENDING&&(l(t)?t.then(this.v,this.g):(this._=t,this.l=e,this.$()))}),this.$=(()=>{this.l!==L.PENDING&&(this.l===L.REJECTED?this.p.forEach(t=>t.onFail&&t.onFail(this._)):this.p.forEach(t=>t.onSuccess&&t.onSuccess(this._)),this.p=[])}),this.j=(t=>{this.p=this.p.concat(t),this.$()});try{t(this.v,this.g)}catch(t){this.g(t)}}then(t,e){return new U((n,r)=>{this.j({onFail:t=>{if(e)try{return void n(e(t))}catch(t){return void r(t)}else r(t)},onSuccess:e=>{if(t)try{return void n(t(e))}catch(t){return void r(t)}else n(e)}})})}catch(t){return this.then(t=>t,t)}toString(){return"[object SyncPromise]"}static resolve(t){return new U(e=>{e(t)})}static reject(t){return new U((e,n)=>{n(t)})}}const N=/([0-9a-f]{2})-([0-9a-f]{32})-([0-9a-f]{16})-([0-9a-f]{2})/;class A{constructor(t=p(),e=p().substring(16),n=!1,r){this.O=t,this.S=e,this.k=n,this.T=r}static fromTraceparent(t){const e=t.match(N);if(e){const t=new A(e[2],e[3],"01"===e[4]);return new A(e[2],void 0,void 0,t)}}toTraceparent(){return`00-${this.O}-${this.S}-${this.k?"01":"00"}`}toJSON(){return{parent:this.T&&this.T.toJSON()||void 0,span_id:this.S,trace_id:this.O}}}class P{constructor(){this.R=!1,this.I=[],this.D=[],this.F=[],this.C={},this.M={},this.L={},this.U={}}addScopeListener(t){this.I.push(t)}addEventProcessor(t){return this.D.push(t),this}N(){this.R||(this.R=!0,setTimeout(()=>{this.I.forEach(t=>{t(this)}),this.R=!1}))}A(t,e,n,r=0){return new U((i,s)=>{const o=t[r];if(null===e||"function"!=typeof o)i(e);else{const c=o(Object.assign({},e),n);l(c)?c.then(e=>this.A(t,e,n,r+1).then(i)).catch(s):this.A(t,c,n,r+1).then(i).catch(s)}})}setUser(t){return this.C=k(t),this.N(),this}setTags(t){return this.M=Object.assign({},this.M,k(t)),this.N(),this}setTag(t,e){return this.M=Object.assign({},this.M,{[t]:k(e)}),this.N(),this}setExtras(t){return this.L=Object.assign({},this.L,k(t)),this.N(),this}setExtra(t,e){return this.L=Object.assign({},this.L,{[t]:k(e)}),this.N(),this}setFingerprint(t){return this.P=k(t),this.N(),this}setLevel(t){return this.B=k(t),this.N(),this}setTransaction(t){return this.H=t,this.N(),this}setContext(t,e){return this.U[t]=e?k(e):void 0,this.N(),this}setSpan(t){return this.q=t,this.N(),this}startSpan(){const t=new A;return this.setSpan(t),t}getSpan(){return this.q}static clone(t){const e=new P;return Object.assign(e,t,{I:[]}),t&&(e.F=[...t.F],e.M=Object.assign({},t.M),e.L=Object.assign({},t.L),e.U=Object.assign({},t.U),e.C=t.C,e.B=t.B,e.q=t.q,e.H=t.H,e.P=t.P,e.D=[...t.D]),e}clear(){return this.F=[],this.M={},this.L={},this.C={},this.U={},this.B=void 0,this.H=void 0,this.P=void 0,this.q=void 0,this.N(),this}addBreadcrumb(t,e){const n=(new Date).getTime()/1e3,r=Object.assign({timestamp:n},t);return this.F=void 0!==e&&e>=0?[...this.F,k(r)].slice(-e):[...this.F,k(r)],this.N(),this}clearBreadcrumbs(){return this.F=[],this.N(),this}W(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.P&&(t.fingerprint=t.fingerprint.concat(this.P)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}applyToEvent(t,e){return this.L&&Object.keys(this.L).length&&(t.extra=Object.assign({},this.L,t.extra)),this.M&&Object.keys(this.M).length&&(t.tags=Object.assign({},this.M,t.tags)),this.C&&Object.keys(this.C).length&&(t.user=Object.assign({},this.C,t.user)),this.U&&Object.keys(this.U).length&&(t.contexts=Object.assign({},this.U,t.contexts)),this.B&&(t.level=this.B),this.H&&(t.transaction=this.H),this.q&&(t.contexts=t.contexts||{},t.contexts.trace=this.q),this.W(t),t.breadcrumbs=[...t.breadcrumbs||[],...this.F],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this.A([...B(),...this.D],t,e)}}function B(){const t=d();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function H(t){B().push(t)}const q=3,W=30,J=100;class X{constructor(t,e=new P,n=q){this.J=n,this.X=[],this.X.push({client:t,scope:e})}G(t,...e){const n=this.getStackTop();n&&n.client&&n.client[t]&&n.client[t](...e,n.scope)}isOlderThan(t){return this.J<t}bindClient(t){this.getStackTop().client=t}pushScope(){const t=this.getStack(),e=t.length>0?t[t.length-1].scope:void 0,n=P.clone(e);return this.getStack().push({client:this.getClient(),scope:n}),n}popScope(){return void 0!==this.getStack().pop()}withScope(t){const e=this.pushScope();try{t(e)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this.X}getStackTop(){return this.X[this.X.length-1]}captureException(t,e){const n=this.V=p();return this.G("captureException",t,Object.assign({},e,{event_id:n})),n}captureMessage(t,e,n){const r=this.V=p();return this.G("captureMessage",t,e,Object.assign({},n,{event_id:r})),r}captureEvent(t,e){const n=this.V=p();return this.G("captureEvent",t,Object.assign({},e,{event_id:n})),n}lastEventId(){return this.V}addBreadcrumb(t,e){const n=this.getStackTop();if(!n.scope||!n.client)return;const{beforeBreadcrumb:r=null,maxBreadcrumbs:i=W}=n.client.getOptions&&n.client.getOptions()||{};if(i<=0)return;const s=(new Date).getTime()/1e3,o=Object.assign({timestamp:s},t),c=r?y(()=>r(o,e)):o;null!==c&&n.scope.addBreadcrumb(c,Math.min(i,J))}configureScope(t){const e=this.getStackTop();e.scope&&e.client&&t(e.scope)}run(t){const e=G(this);try{t(this)}finally{G(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return E.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}traceHeaders(){const t=this.getStackTop();if(t.scope&&t.client){const e=t.scope.getSpan();if(e)return{"sentry-trace":e.toTraceparent()}}return{}}}function z(){const t=d();return t.__SENTRY__=t.__SENTRY__||{hub:void 0},t}function G(t){const e=z(),n=Z(e);return Q(e,t),n}function V(){const t=z();K(t)&&!Z(t).isOlderThan(q)||Q(t,new X);try{const r=(e=module,n="domain",e.require(n)).active;if(!r)return Z(t);if(!K(r)||Z(r).isOlderThan(q)){const e=Z(t).getStackTop();Q(r,new X(e.client,P.clone(e.scope)))}return Z(r)}catch(e){return Z(t)}var e,n}function K(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function Z(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub?t.__SENTRY__.hub:(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new X,t.__SENTRY__.hub)}function Q(t,e){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,!0)}function Y(t,...e){const n=V();if(n&&n[t])return n[t](...e);throw new Error(`No hub defined or ${t} was not found on the hub, please open a bug report.`)}function captureException(t){let e;try{throw new Error("Sentry syntheticException")}catch(t){e=t}return Y("captureException",t,{originalException:t,syntheticException:e})}function tt(t){Y("withScope",t)}const et=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,nt="Invalid Dsn";class rt{constructor(t){"string"==typeof t?this.K(t):this.Z(t),this.Y()}toString(t=!1){const{host:e,path:n,pass:r,port:i,projectId:s,protocol:o,user:c}=this;return`${o}://${c}${t&&r?`:${r}`:""}`+`@${e}${i?`:${i}`:""}/${n?`${n}/`:n}${s}`}K(t){const e=et.exec(t);if(!e)throw new i(nt);const[n,r,s="",o,c="",u]=e.slice(1);let a="",h=u;const l=h.split("/");l.length>1&&(a=l.slice(0,-1).join("/"),h=l.pop()),Object.assign(this,{host:o,pass:s,path:a,projectId:h,port:c,protocol:n,user:r})}Z(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}Y(){if(["protocol","user","host","projectId"].forEach(t=>{if(!this[t])throw new i(nt)}),"http"!==this.protocol&&"https"!==this.protocol)throw new i(nt);if(this.port&&Number.isNaN(parseInt(this.port,10)))throw new i(nt)}}const it="7";class st{constructor(t){this.dsn=t,this.tt=new rt(t)}getDsn(){return this.tt}getStoreEndpoint(){return`${this.et()}${this.getStoreEndpointPath()}`}getStoreEndpointWithUrlEncodedAuth(){const t={sentry_key:this.tt.user,sentry_version:it};return`${this.getStoreEndpoint()}?${e=t,Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}`;var e}et(){const t=this.tt,e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}`}getStoreEndpointPath(){const t=this.tt;return`${t.path?`/${t.path}`:""}/api/${t.projectId}/store/`}getRequestHeaders(t,e){const n=this.tt,r=[`Sentry sentry_version=${it}`];return r.push(`sentry_timestamp=${(new Date).getTime()}`),r.push(`sentry_client=${t}/${e}`),r.push(`sentry_key=${n.user}`),n.pass&&r.push(`sentry_secret=${n.pass}`),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}}getReportDialogEndpoint(t={}){const e=this.tt,n=`${this.et()}${e.path?`/${e.path}`:""}/api/embed/error-page/`,r=[];r.push(`dsn=${e.toString()}`);for(const e in t)if("user"===e){if(!t.user)continue;t.user.name&&r.push(`name=${encodeURIComponent(t.user.name)}`),t.user.email&&r.push(`email=${encodeURIComponent(t.user.email)}`)}else r.push(`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`);return r.length?`${n}?${r.join("&")}`:n}}const ot=[];function ct(t){const e={};return function(t){const e=t.defaultIntegrations&&[...t.defaultIntegrations]||[],n=t.integrations;let r=[];if(Array.isArray(n)){const t=n.map(t=>t.name),i=[];e.forEach(e=>{-1===t.indexOf(e.name)&&-1===i.indexOf(e.name)&&(r.push(e),i.push(e.name))}),n.forEach(t=>{-1===i.indexOf(t.name)&&(r.push(t),i.push(t.name))})}else{if("function"!=typeof n)return[...e];r=n(e),r=Array.isArray(r)?r:[r]}return r}(t).forEach(t=>{e[t.name]=t,function(t){-1===ot.indexOf(t.name)&&(t.setupOnce(H,V),ot.push(t.name),E.log(`Integration installed: ${t.name}`))}(t)}),e}class ut{constructor(t,e){this.nt=!1,this.rt=new t(e),this.it=e,e.dsn&&(this.st=new rt(e.dsn)),this.ot=ct(this.it)}captureException(t,e,n){let r=e&&e.event_id;return this.nt=!0,this.ct().eventFromException(t,e).then(t=>this.ut(t,e,n)).then(t=>{r=t&&t.event_id,this.nt=!1}).catch(t=>{E.error(t),this.nt=!1}),r}captureMessage(t,e,n,r){let i=n&&n.event_id;return this.nt=!0,(a(t)?this.ct().eventFromMessage(`${t}`,e,n):this.ct().eventFromException(t,n)).then(t=>this.ut(t,n,r)).then(t=>{i=t&&t.event_id,this.nt=!1}).catch(t=>{E.error(t),this.nt=!1}),i}captureEvent(t,e,n){let r=e&&e.event_id;return this.nt=!0,this.ut(t,e,n).then(t=>{r=t&&t.event_id,this.nt=!1}).catch(t=>{E.error(t),this.nt=!1}),r}getDsn(){return this.st}getOptions(){return this.it}flush(t){return this.at(t).then(e=>(this.ht&&clearInterval(this.ht),this.ct().getTransport().close(t).then(t=>e&&t)))}close(t){return this.flush(t).then(t=>(this.getOptions().enabled=!1,t))}getIntegrations(){return this.ot||{}}getIntegration(t){try{return this.ot[t.id]||null}catch(e){return E.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}at(t){return new Promise(e=>{let n=0;this.ht&&clearInterval(this.ht),this.ht=setInterval(()=>{this.nt?(n+=1,t&&n>=t&&e(!1)):e(!0)},1)})}ct(){return this.rt}lt(){return!1!==this.getOptions().enabled&&void 0!==this.st}ft(t,e,n){const{environment:r,release:i,dist:s,maxValueLength:o=250}=this.getOptions(),c=Object.assign({},t);void 0===c.environment&&void 0!==r&&(c.environment=r),void 0===c.release&&void 0!==i&&(c.release=i),void 0===c.dist&&void 0!==s&&(c.dist=s),c.message&&(c.message=R(c.message,o));const u=c.exception&&c.exception.values&&c.exception.values[0];u&&u.value&&(u.value=R(u.value,o));const a=c.request;a&&a.url&&(a.url=R(a.url,o)),void 0===c.event_id&&(c.event_id=p()),this.dt(c.sdk);let h=U.resolve(c);return e&&(h=e.applyToEvent(c,n)),h}dt(t){const e=Object.keys(this.ot);t&&e.length>0&&(t.integrations=e)}ut(t,e,n){const{beforeSend:r,sampleRate:i}=this.getOptions();return this.lt()?"number"==typeof i&&Math.random()>i?U.reject("This event has been sampled, will not send event."):new U((i,s)=>{this.ft(t,n,e).then(t=>{if(null===t)return void s("An event processor returned null, will not send event.");let n=t;try{if(e&&e.data&&!0===e.data.__sentry__||!r)return this.ct().sendEvent(n),void i(n);const o=r(t,e);if(void 0===o)E.error("`beforeSend` method has to return `null` or a valid event.");else if(l(o))this.pt(o,i,s);else{if(null===(n=o))return E.log("`beforeSend` returned `null`, will not send event."),void i(null);this.ct().sendEvent(n),i(n)}}catch(t){this.captureException(t,{data:{__sentry__:!0},originalException:t}),s("`beforeSend` throw an error, will not send event.")}})}):U.reject("SDK not enabled, will not send event.")}pt(t,e,n){t.then(t=>{null!==t?(this.ct().sendEvent(t),e(t)):n("`beforeSend` returned `null`, will not send event.")}).catch(t=>{n(`beforeSend rejected with ${t}`)})}}class at{sendEvent(e){return Promise.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:t.Status.Skipped})}close(t){return Promise.resolve(!0)}}class ht{constructor(t){this.it=t,this.it.dsn||E.warn("No DSN provided, backend will not do anything."),this.vt=this.yt()}yt(){return new at}eventFromException(t,e){throw new i("Backend has to implement `eventFromException` method")}eventFromMessage(t,e,n){throw new i("Backend has to implement `eventFromMessage` method")}sendEvent(t){this.vt.sendEvent(t).catch(t=>{E.error(`Error while sending event: ${t}`)})}getTransport(){return this.vt}}let lt;class ft{constructor(){this.name=ft.id}setupOnce(){lt=Function.prototype.toString,Function.prototype.toString=function(...t){const e=this.__sentry__?this.__sentry_original__:this;return lt.apply(e,t)}}}ft.id="FunctionToString";const dt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class pt{constructor(t={}){this.it=t,this.name=pt.id}setupOnce(){H(t=>{const e=V();if(!e)return t;const n=e.getIntegration(pt);if(n){const r=e.getClient(),i=r?r.getOptions():{},s=n.bt(i);if(n.gt(t,s))return null}return t})}gt(t,e){return this.wt(t,e)?(E.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${m(t)}`),!0):this.Et(t,e)?(E.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${m(t)}`),!0):this._t(t,e)?(E.warn(`Event dropped due to being matched by \`blacklistUrls\` option.\nEvent: ${m(t)}.\nUrl: ${this.$t(t)}`),!0):!this.jt(t,e)&&(E.warn(`Event dropped due to not being matched by \`whitelistUrls\` option.\nEvent: ${m(t)}.\nUrl: ${this.$t(t)}`),!0)}wt(t,e={}){if(!e.ignoreInternal)return!1;try{return"SentryError"===t.exception.values[0].type}catch(t){return!1}}Et(t,e={}){return!(!e.ignoreErrors||!e.ignoreErrors.length)&&this.Ot(t).some(t=>e.ignoreErrors.some(e=>F(t,e)))}_t(t,e={}){if(!e.blacklistUrls||!e.blacklistUrls.length)return!1;const n=this.$t(t);return!!n&&e.blacklistUrls.some(t=>F(n,t))}jt(t,e={}){if(!e.whitelistUrls||!e.whitelistUrls.length)return!0;const n=this.$t(t);return!n||e.whitelistUrls.some(t=>F(n,t))}bt(t={}){return{blacklistUrls:[...this.it.blacklistUrls||[],...t.blacklistUrls||[]],ignoreErrors:[...this.it.ignoreErrors||[],...t.ignoreErrors||[],...dt],ignoreInternal:void 0===this.it.ignoreInternal||this.it.ignoreInternal,whitelistUrls:[...this.it.whitelistUrls||[],...t.whitelistUrls||[]]}}Ot(t){if(t.message)return[t.message];if(t.exception)try{const{type:e,value:n}=t.exception.values[0];return[`${n}`,`${e}: ${n}`]}catch(e){return E.error(`Cannot extract message for event ${m(t)}`),[]}return[]}$t(t){try{if(t.stacktrace){const e=t.stacktrace.frames;return e[e.length-1].filename}if(t.exception){const e=t.exception.values[0].stacktrace.frames;return e[e.length-1].filename}return null}catch(e){return E.error(`Cannot extract url for event ${m(t)}`),null}}}pt.id="InboundFilters";var vt=Object.freeze({FunctionToString:ft,InboundFilters:pt}),mt=d(),yt={xt:!1,St:!1,kt:!1,Tt:!1},bt="?",gt=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function wt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Et(){return"undefined"==typeof document||null==document.location?"":document.location.href}yt.xt=function(){var t,e,n=[],r=null,i=null;function c(t,e,r){var i=null;if(!e||yt.St){for(var s in n)if(wt(n,s))try{n[s](t,e,r)}catch(t){i=t}if(i)throw i}}function u(e,n,r,u,a){var l=null;if(a=o(a)?a.error:a,e=o(e)?e.message:e,i)yt.kt.Rt(i,n,r,e),h();else if(a&&s(a))(l=yt.kt(a)).mechanism="onerror",c(l,!0,a);else{var f,d={url:n,line:r,column:u},p=e;if("[object String]"==={}.toString.call(e)){var v=e.match(gt);v&&(f=v[1],p=v[2])}d.func=bt,d.context=null,c(l={name:f,message:p,mode:"onerror",mechanism:"onerror",stack:[Object.assign({},d,{url:d.url||Et()})]},!0,null)}return!!t&&t.apply(this,arguments)}function a(t){var e=t&&(t.detail?t.detail.reason:t.reason)||t,n=yt.kt(e);n.mechanism="onunhandledrejection",n.message||(n.message=JSON.stringify(k(e))),c(n,!0,e)}function h(){var t=i,e=r;i=null,r=null,c(t,!1,e)}function l(t){if(i){if(r===t)return;h()}var e=yt.kt(t);throw i=e,r=t,setTimeout(function(){r===t&&h()},e.incomplete?2e3:0),t}return l.It=function(t){n.push(t)},l.Dt=function(){!0!==e&&(t=mt.onerror,mt.onerror=u,e=!0)},l.Ft=function(){mt.onunhandledrejection=a},l}(),yt.kt=function(){function t(t){if(!t||!t.stack)return null;for(var e,n,r,i=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,c=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,u=/\((\S*)(?::(\d+))(?::(\d+))\)/,a=t.stack.split("\n"),h=[],l=/^(.*) is undefined$/.exec(t.message),f=0,d=a.length;f<d;++f){if(n=i.exec(a[f])){var p=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(e=u.exec(n[2]))&&(n[2]=e[1],n[3]=e[2],n[4]=e[3]),r={url:n[2],func:n[1]||bt,args:p?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=o.exec(a[f]))r={url:n[2],func:n[1]||bt,args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=s.exec(a[f])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(e=c.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=e[1],n[4]=e[2],n[5]=""):0!==f||n[5]||void 0===t.columnNumber||(h[0].column=t.columnNumber+1),r={url:n[3],func:n[1]||bt,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func=bt),r.context=null,h.push(r)}return h.length?(h[0]&&h[0].line&&!h[0].column&&l&&(h[0].column=null),{mode:"stack",name:t.name,message:t.message,stack:h}):null}function e(t,e,n,r){var i={url:e,line:n};if(i.url&&i.line){if(t.incomplete=!1,i.func||(i.func=bt),i.context||(i.context=null),/ '([^']+)' /.exec(r)&&(i.column=null),t.stack.length>0&&t.stack[0].url===i.url){if(t.stack[0].line===i.line)return!1;if(!t.stack[0].line&&t.stack[0].func===i.func)return t.stack[0].line=i.line,t.stack[0].context=i.context,!1}return t.stack.unshift(i),t.partial=!0,!0}return t.incomplete=!0,!1}function n(t,r){for(var i,s,o=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,c=[],u={},a=!1,h=n.caller;h&&!a;h=h.caller)if(h!==Ot&&h!==yt.xt){if(s={url:null,func:bt,args:[],line:null,column:null},h.name?s.func=h.name:(i=o.exec(h.toString()))&&(s.func=i[1]),void 0===s.func)try{s.func=i.input.substring(0,i.input.indexOf("{"))}catch(t){}u[""+h]?a=!0:u[""+h]=!0,c.push(s)}r&&c.splice(0,r);var l={mode:"callers",name:t.name,message:t.message,stack:c};return e(l,t.sourceURL||t.fileName,t.line||t.lineNumber,t.message||t.description),l}function r(e,r){var i=null;r=null==r?0:+r;try{if(i=function(t){var e=t.stacktrace;if(e){for(var n,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,s=e.split("\n"),o=[],c=0;c<s.length;c+=2){var u=null;(n=r.exec(s[c]))?u={url:n[2],line:+n[1],column:null,func:n[3],args:[]}:(n=i.exec(s[c]))&&(u={url:n[6],line:+n[1],column:+n[2],func:n[3]||n[4],args:n[5]?n[5].split(","):[]}),u&&(!u.func&&u.line&&(u.func=bt),u.line&&(u.context=null),u.context||(u.context=[s[c+1]]),o.push(u))}return o.length?{mode:"stacktrace",name:t.name,message:t.message,stack:o}:null}}(e))return i}catch(t){}try{if(i=t(e))return i}catch(t){}try{if(i=function(t){var e=t.message.split("\n");if(e.length<4)return null;var n,r=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,i=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,s=/^\s*Line (\d+) of function script\s*$/i,o=[],c=mt&&mt.document&&mt.document.getElementsByTagName("script"),u=[];for(var a in c)wt(c,a)&&!c[a].src&&u.push(c[a]);for(var h=2;h<e.length;h+=2){var l=null;(n=r.exec(e[h]))?l={url:n[2],func:n[3],args:[],line:+n[1],column:null}:(n=i.exec(e[h]))?l={url:n[3],func:n[4],args:[],line:+n[1],column:null}:(n=s.exec(e[h]))&&(l={url:Et().replace(/#.*$/,""),func:"",args:[],line:n[1],column:null}),l&&(l.func||(l.func=bt),l.context=[e[h+1]],o.push(l))}return o.length?{mode:"multiline",name:t.name,message:e[0],stack:o}:null}(e))return i}catch(t){}try{if(i=n(e,r+1))return i}catch(t){}return{original:e,name:e.name,message:e.message,mode:"failed"}}return r.Rt=e,r.Ct=t,r}(),yt.St=!0,yt.Tt=11;const _t=yt.xt.It,$t=yt.xt.Dt,jt=yt.xt.Ft,Ot=yt.kt,xt=50;function St(t){const e=Tt(t.stack),n={type:t.name,value:t.message};return e&&e.length&&(n.stacktrace={frames:e}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function kt(t){return{exception:{values:[St(t)]}}}function Tt(t){if(!t||!t.length)return[];let e=t;const n=e[0].func||"",r=e[e.length-1].func||"";return(n.includes("captureMessage")||n.includes("captureException"))&&(e=e.slice(1)),r.includes("sentryWrapped")&&(e=e.slice(0,-1)),e.map(t=>({colno:t.column,filename:t.url||e[0].url,function:t.func||"?",in_app:!0,lineno:t.line})).slice(0,xt).reverse()}class Rt{constructor(t){this.options=t,this.h=new T(30),this.url=new st(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}sendEvent(t){throw new i("Transport Class has to implement `sendEvent` method")}close(t){return this.h.drain(t)}}const It=d();class Dt extends Rt{sendEvent(e){const n={body:JSON.stringify(e),method:"POST",referrerPolicy:M()?"origin":""};return this.h.add(It.fetch(this.url,n).then(e=>({status:t.Status.fromHttpCode(e.status)})))}}class Ft extends Rt{sendEvent(e){return this.h.add(new Promise((n,r)=>{const i=new XMLHttpRequest;i.onreadystatechange=(()=>{4===i.readyState&&(200===i.status&&n({status:t.Status.fromHttpCode(i.status)}),r(i))}),i.open("POST",this.url),i.send(JSON.stringify(e))}))}}var Ct=Object.freeze({BaseTransport:Rt,FetchTransport:Dt,XHRTransport:Ft});class Mt extends ht{yt(){if(!this.it.dsn)return super.yt();const t=this.it.transportOptions?this.it.transportOptions:{dsn:this.it.dsn};return this.it.transport?new this.it.transport(t):C()?new Dt(t):new Ft(t)}eventFromException(e,n){let r;if(o(e)&&e.error){return e=e.error,r=kt(Ot(e)),U.resolve(this.Mt(r,n))}if(c(e)||(i=e,"[object DOMException]"===Object.prototype.toString.call(i))){const r=e,i=r.name||(c(r)?"DOMError":"DOMException"),s=r.message?`${i}: ${r.message}`:i;return this.eventFromMessage(s,t.Severity.Error,n).then(t=>(b(t,s),U.resolve(this.Mt(t,n))))}var i;if(s(e))return r=kt(Ot(e)),U.resolve(this.Mt(r,n));if(h(e)&&n&&n.syntheticException){return b(r=function(t,e){const n=Object.keys(t).sort(),r={extra:{__serialized__:O(t)},message:`Non-Error exception captured with keys: ${D(n)}`};if(e){const t=Tt(Ot(e).stack);r.stacktrace={frames:t}}return r}(e,n.syntheticException),"Custom Object",void 0,{handled:!0,synthetic:!0,type:"generic"}),r.level=t.Severity.Error,U.resolve(this.Mt(r,n))}const u=e;return this.eventFromMessage(u,void 0,n).then(e=>(b(e,`${u}`,void 0,{handled:!0,synthetic:!0,type:"generic"}),e.level=t.Severity.Error,U.resolve(this.Mt(e,n))))}Mt(t,e){return Object.assign({},t,{event_id:e&&e.event_id})}eventFromMessage(e,n=t.Severity.Info,r){const i={event_id:r&&r.event_id,level:n,message:e};if(this.it.attachStacktrace&&r&&r.syntheticException){const t=Tt(Ot(r.syntheticException).stack);i.stacktrace={frames:t}}return U.resolve(i)}}const Lt="sentry.javascript.browser",Ut="5.3.0";class Nt extends ut{constructor(t={}){super(Mt,t)}ft(t,e,n){return t.platform=t.platform||"javascript",t.sdk=Object.assign({},t.sdk,{name:Lt,packages:[...t.sdk&&t.sdk.packages||[],{name:"npm:@sentry/browser",version:Ut}],version:Ut}),super.ft(t,e,n)}showReportDialog(t={}){const e=d().document;if(!e)return;if(!this.lt())return void E.error("Trying to call showReportDialog with Sentry Client is disabled");const n=t.dsn||this.getDsn();if(!t.eventId)return void E.error("Missing `eventId` option in showReportDialog call");if(!n)return void E.error("Missing `Dsn` option in showReportDialog call");const r=e.createElement("script");r.async=!0,r.src=new st(n).getReportDialogEndpoint(t),t.onLoad&&(r.onload=t.onLoad),(e.head||e.body).appendChild(r)}}const At=1e3;let Pt,Bt,Ht=0;function qt(t,e={},n){if("function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(e){return t}const sentryWrapped=function(){n&&"function"==typeof n&&n.apply(this,arguments);const r=Array.prototype.slice.call(arguments);try{const n=r.map(t=>qt(t,e));return t.handleEvent?t.handleEvent.apply(this,n):t.apply(this,n)}catch(t){throw Ht+=1,setTimeout(()=>{Ht-=1}),tt(n=>{n.addEventProcessor(t=>{const n=Object.assign({},t);return e.mechanism&&b(n,void 0,void 0,e.mechanism),n.extra=Object.assign({},n.extra,{arguments:k(r,3)}),n}),captureException(t)}),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(sentryWrapped[e]=t[e])}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.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch(t){}return sentryWrapped}let Wt=0;function Jt(t,e=!1){return n=>{if(Pt=void 0,!n||Bt===n)return;Bt=n;const r=()=>{let e;try{e=n.target?zt(n.target):zt(n)}catch(t){e="<unknown>"}0!==e.length&&V().addBreadcrumb({category:`ui.${t}`,message:e},{event:n,name:t})};Wt&&clearTimeout(Wt),e?Wt=setTimeout(r):r()}}function Xt(){return t=>{let e;try{e=t.target}catch(t){return}const n=e&&e.tagName;n&&("INPUT"===n||"TEXTAREA"===n||e.isContentEditable)&&(Pt||Jt("input")(t),clearTimeout(Pt),Pt=setTimeout(()=>{Pt=void 0},At))}}function zt(t){let e=t;const n=[];let r=0,i=0;const s=" > ".length;let o;for(;e&&r++<5&&!("html"===(o=Gt(e))||r>1&&i+n.length*s+o.length>=80);)n.push(o),i+=o.length,e=e.parentNode;return n.reverse().join(" > ")}function Gt(t){const e=[];let n,r,i,s,o;if(!t||!t.tagName)return"";if(e.push(t.tagName.toLowerCase()),t.id&&e.push(`#${t.id}`),(n=t.className)&&u(n))for(r=n.split(/\s+/),o=0;o<r.length;o++)e.push(`.${r[o]}`);const c=["type","name","title","alt"];for(o=0;o<c.length;o++)i=c[o],(s=t.getAttribute(i))&&e.push(`[${i}="${s}"]`);return e.join("")}class Vt{constructor(t){this.name=Vt.id,this.it=Object.assign({onerror:!0,onunhandledrejection:!0},t)}setupOnce(){Error.stackTraceLimit=50,_t((t,e,n)=>{if(Ht>0)return;const r=V().getIntegration(Vt);r&&V().captureEvent(r.Lt(t),{data:{stack:t},originalException:n})}),this.it.onerror&&(E.log("Global Handler attached: onerror"),$t()),this.it.onunhandledrejection&&(E.log("Global Handler attached: onunhandledrejection"),jt())}Lt(t){if(!u(t.message)&&"onunhandledrejection"!==t.mechanism){const e=t.message;t.message=e.error&&u(e.error.message)?e.error.message:"No error message"}const e=kt(t),n={mode:t.mode};t.message&&(n.message=t.message),t.name&&(n.name=t.name);const r=V().getClient(),i=r&&r.getOptions().maxValueLength||250;return b(e,t.original?R(JSON.stringify(k(t.original)),i):"","onunhandledrejection"===t.mechanism?"UnhandledRejection":"Error",{data:n,handled:!1,type:t.mechanism}),e}}Vt.id="GlobalHandlers";class Kt{constructor(){this.Ut=0,this.name=Kt.id}Nt(t){return function(...e){const n=e[0];return e[0]=qt(n,{mechanism:{data:{function:Zt(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}}At(t){return function(e){return t(qt(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Zt(t)},handled:!0,type:"instrument"}}))}}Pt(t){const e=d(),n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&($(n,"addEventListener",function(e){return function(n,r,i){try{r.handleEvent=qt(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:Zt(r),target:t},handled:!0,type:"instrument"}})}catch(t){}return e.call(this,n,qt(r,{mechanism:{data:{function:"addEventListener",handler:Zt(r),target:t},handled:!0,type:"instrument"}}),i)}}),$(n,"removeEventListener",function(t){return function(e,n,r){let i=n;try{i=i&&(i.__sentry_wrapped__||i)}catch(t){}return t.call(this,e,i,r)}}))}setupOnce(){this.Ut=this.Ut;const t=d();$(t,"setTimeout",this.Nt.bind(this)),$(t,"setInterval",this.Nt.bind(this)),$(t,"requestAnimationFrame",this.At.bind(this)),["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"].forEach(this.Pt.bind(this))}}function Zt(t){try{return t&&t.name||"<anonymous>"}catch(t){return"<anonymous>"}}Kt.id="TryCatch";const Qt=d();let Yt;class te{constructor(t){this.name=te.id,this.it=Object.assign({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}Bt(){"console"in Qt&&["debug","info","warn","error","log","assert"].forEach(function(e){e in Qt.console&&$(Qt.console,e,function(n){return function(...r){const i={category:"console",data:{extra:{arguments:k(r,3)},logger:"console"},level:t.Severity.fromString(e),message:I(r," ")};"assert"===e&&!1===r[0]&&(i.message=`Assertion failed: ${I(r.slice(1)," ")||"console.assert"}`,i.data.extra.arguments=k(r.slice(1),3)),te.addBreadcrumb(i,{input:r,level:e}),n&&Function.prototype.apply.call(n,Qt.console,r)}})})}Ht(){"document"in Qt&&(Qt.document.addEventListener("click",Jt("click"),!1),Qt.document.addEventListener("keypress",Xt(),!1),["EventTarget","Node"].forEach(t=>{const e=Qt[t]&&Qt[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&($(e,"addEventListener",function(t){return function(e,n,r){return n&&n.handleEvent?("click"===e&&$(n,"handleEvent",function(t){return function(e){return Jt("click")(e),t.call(this,e)}}),"keypress"===e&&$(n,"handleEvent",Xt())):("click"===e&&Jt("click",!0)(this),"keypress"===e&&Xt()(this)),t.call(this,e,n,r)}}),$(e,"removeEventListener",function(t){return function(e,n,r){let i=n;try{i=i&&(i.__sentry_wrapped__||i)}catch(t){}return t.call(this,e,i,r)}}))}))}qt(){C()&&-1!==d().fetch.toString().indexOf("native")&&$(Qt,"fetch",function(e){return function(...n){const r=n[0];let i,s="GET";"string"==typeof r?i=r:"Request"in Qt&&r instanceof Request?(i=r.url,r.method&&(s=r.method)):i=String(r),n[1]&&n[1].method&&(s=n[1].method);const o=V().getClient(),c=o&&o.getDsn();if(c){const t=new st(c).getStoreEndpoint();if(t&&i.includes(t))return"POST"===s&&n[1]&&n[1].body&&ee(n[1].body),e.apply(Qt,n)}const u={method:s,url:i};return e.apply(Qt,n).then(t=>(u.status_code=t.status,te.addBreadcrumb({category:"fetch",data:u,type:"http"},{input:n,response:t}),t)).catch(e=>{throw te.addBreadcrumb({category:"fetch",data:u,level:t.Severity.Error,type:"http"},{error:e,input:n}),e})}})}Wt(){if(!function(){const t=d(),e=t.chrome,n=e&&e.app&&e.app.runtime,r="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!n&&r}())return;const t=(t,e)=>{const n=v(Qt.location.href),r=v(e);let i=v(t);i.path||(i=n),Yt=e,n.protocol===r.protocol&&n.host===r.host&&(e=r.relative),n.protocol===i.protocol&&n.host===i.host&&(t=i.relative),te.addBreadcrumb({category:"navigation",data:{from:t,to:e}})},e=Qt.onpopstate;function n(e){return function(...n){const r=n.length>2?n[2]:void 0;return r&&t(Yt,String(r)),e.apply(this,n)}}Qt.onpopstate=((...n)=>{const r=Qt.location.href;if(t(Yt,r),e)return e.apply(this,n)}),$(Qt.history,"pushState",n),$(Qt.history,"replaceState",n)}Jt(){if(!("XMLHttpRequest"in Qt))return;const t=XMLHttpRequest.prototype;$(t,"open",t=>(function(...e){const n=e[1];this.__sentry_xhr__={method:e[0],url:e[1]};const r=V().getClient(),i=r&&r.getDsn();if(i){const t=new st(i).getStoreEndpoint();u(n)&&t&&n.includes(t)&&(this.__sentry_own_request__=!0)}return t.apply(this,e)})),$(t,"send",t=>(function(...e){const n=this;function r(){if(4===n.readyState){if(n.__sentry_own_request__)return;try{n.__sentry_xhr__&&(n.__sentry_xhr__.status_code=n.status)}catch(t){}te.addBreadcrumb({category:"xhr",data:n.__sentry_xhr__,type:"http"},{xhr:n})}}return n.__sentry_own_request__&&ee(e[0]),["onload","onerror","onprogress"].forEach(t=>{!function(t,e){t in e&&"function"==typeof e[t]&&$(e,t,e=>qt(e,{mechanism:{data:{function:t,handler:e&&e.name||"<anonymous>"},handled:!0,type:"instrument"}}))}(t,n)}),"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?$(n,"onreadystatechange",function(t){return qt(t,{mechanism:{data:{function:"onreadystatechange",handler:t&&t.name||"<anonymous>"},handled:!0,type:"instrument"}},r)}):n.onreadystatechange=r,t.apply(this,e)}))}static addBreadcrumb(t,e){V().getIntegration(te)&&V().addBreadcrumb(t,e)}setupOnce(){this.it.console&&this.Bt(),this.it.dom&&this.Ht(),this.it.xhr&&this.Jt(),this.it.fetch&&this.qt(),this.it.history&&this.Wt()}}function ee(e){try{const n=JSON.parse(e);te.addBreadcrumb({category:"sentry",event_id:n.event_id,level:n.level||t.Severity.fromString("error"),message:m(n)},{event:n})}catch(t){E.error("Error while adding sentry type breadcrumb")}}te.id="Breadcrumbs";const ne="cause",re=5;class ie{constructor(t={}){this.name=ie.id,this.Xt=t.key||ne,this.u=t.limit||re}setupOnce(){H((t,e)=>{const n=V().getIntegration(ie);return n?n.zt(t,e):t})}zt(t,e){if(!(t.exception&&t.exception.values&&e&&e.originalException instanceof Error))return t;const n=this.Gt(e.originalException,this.Xt);return t.exception.values=[...n,...t.exception.values],t}Gt(t,e,n=[]){if(!(t[e]instanceof Error)||n.length+1>=this.u)return n;const r=St(Ot(t[e]));return this.Gt(t[e],e,[r,...n])}}ie.id="LinkedErrors";const se=d();class oe{constructor(){this.name=oe.id}setupOnce(){H(t=>{if(V().getIntegration(oe)){if(!se.navigator||!se.location)return t;const e=t.request||{};return e.url=e.url||se.location.href,e.headers=e.headers||{},e.headers["User-Agent"]=se.navigator.userAgent,Object.assign({},t,{request:e})}return t})}}oe.id="UserAgent";var ce=Object.freeze({GlobalHandlers:Vt,TryCatch:Kt,Breadcrumbs:te,LinkedErrors:ie,UserAgent:oe});const ue=[new pt,new ft,new Kt,new te,new Vt,new ie,new oe];let ae={};const he=d();he.Sentry&&he.Sentry.Integrations&&(ae=he.Sentry.Integrations);const le=Object.assign({},ae,vt,ce);return t.BrowserClient=Nt,t.Hub=X,t.Integrations=le,t.SDK_NAME=Lt,t.SDK_VERSION=Ut,t.Scope=P,t.Transports=Ct,t.addBreadcrumb=function(t){Y("addBreadcrumb",t)},t.addGlobalEventProcessor=H,t.captureEvent=function(t){return Y("captureEvent",t)},t.captureException=captureException,t.captureMessage=function(t,e){let n;try{throw new Error(t)}catch(t){n=t}return Y("captureMessage",t,e,{originalException:t,syntheticException:n})},t.close=function(t){const e=V().getClient();return e?e.close(t):Promise.reject(!1)},t.configureScope=function(t){Y("configureScope",t)},t.defaultIntegrations=ue,t.flush=function(t){const e=V().getClient();return e?e.flush(t):Promise.reject(!1)},t.forceLoad=function(){},t.getCurrentHub=V,t.getHubFromCarrier=Z,t.init=function(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=ue),function(t,e){!0===e.debug&&E.enable(),V().bindClient(new t(e))}(Nt,t)},t.lastEventId=function(){return V().lastEventId()},t.onLoad=function(t){t()},t.showReportDialog=function(t={}){t.eventId||(t.eventId=V().lastEventId());const e=V().getClient();e&&e.showReportDialog(t)},t.withScope=tt,t.wrap=function(t){qt(t)()},t}({});
//# sourceMappingURL=bundle.es6.min.js.map

@@ -1,3 +0,3 @@

/*! @sentry/browser 5.2.1 (ecb6bdb1) | https://github.com/getsentry/sentry-javascript */
var Sentry=function(n){"use strict";var t=function(n,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,r)};function r(n,r){function e(){this.constructor=n}t(n,r),n.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}var e,i,o,u=function(){return(u=Object.assign||function(n){for(var t,r=1,e=arguments.length;r<e;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)};function c(n,t){var r="function"==typeof Symbol&&n[Symbol.iterator];if(!r)return n;var e,i,o=r.call(n),u=[];try{for(;(void 0===t||t-- >0)&&!(e=o.next()).done;)u.push(e.value)}catch(n){i={error:n}}finally{try{e&&!e.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return u}function s(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(c(arguments[t]));return n}!function(n){n[n.None=0]="None",n[n.Error=1]="Error",n[n.Debug=2]="Debug",n[n.Verbose=3]="Verbose"}(e||(e={})),(i=n.Severity||(n.Severity={})).Fatal="fatal",i.Error="error",i.Warning="warning",i.Log="log",i.Info="info",i.Debug="debug",i.Critical="critical",function(n){n.fromString=function(t){switch(t){case"debug":return n.Debug;case"info":return n.Info;case"warn":case"warning":return n.Warning;case"error":return n.Error;case"fatal":return n.Fatal;case"critical":return n.Critical;case"log":default:return n.Log}}}(n.Severity||(n.Severity={})),(o=n.Status||(n.Status={})).Unknown="unknown",o.Skipped="skipped",o.Success="success",o.RateLimit="rate_limit",o.Invalid="invalid",o.Failed="failed",function(n){n.fromHttpCode=function(t){return t>=200&&t<300?n.Success:429===t?n.RateLimit:t>=400&&t<500?n.Invalid:t>=500?n.Failed:n.Unknown}}(n.Status||(n.Status={}));var a=function(n){function t(t){var r=this.constructor,e=n.call(this,t)||this;return e.message=t,e.name=r.prototype.constructor.name,Object.setPrototypeOf(e,r.prototype),e}return r(t,n),t}(Error);function f(n){switch(Object.prototype.toString.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return n instanceof Error}}function h(n){return"[object ErrorEvent]"===Object.prototype.toString.call(n)}function l(n){return"[object DOMError]"===Object.prototype.toString.call(n)}function v(n){return"[object String]"===Object.prototype.toString.call(n)}function d(n){return null===n||"object"!=typeof n&&"function"!=typeof n}function p(n){return"[object Object]"===Object.prototype.toString.call(n)}function m(n){return Boolean(n&&n.then&&"function"==typeof n.then)}var y={};function b(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:y}function w(){var n=b(),t=n.crypto||n.msCrypto;if(void 0!==t&&t.getRandomValues){var r=new Uint16Array(8);t.getRandomValues(r),r[3]=4095&r[3]|16384,r[4]=16383&r[4]|32768;var e=function(n){for(var t=n.toString(16);t.length<4;)t="0"+t;return t};return e(r[0])+e(r[1])+e(r[2])+e(r[3])+e(r[4])+e(r[5])+e(r[6])+e(r[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=16*Math.random()|0;return("x"===n?t:3&t|8).toString(16)})}function g(n){if(!n)return{};var t=n.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var r=t[6]||"",e=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+r+e}}function E(n){if(n.message)return n.message;if(n.exception&&n.exception.values&&n.exception.values[0]){var t=n.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||n.event_id||"<unknown>"}return n.event_id||"<unknown>"}function j(n){var t=b();if(!("console"in t))return n();var r=t.console,e={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&r[n].__sentry__&&(e[n]=r[n].__sentry_wrapped__,r[n]=r[n].__sentry_original__)});var i=n();return Object.keys(e).forEach(function(n){r[n]=e[n]}),i}function x(n,t,r,e){void 0===e&&(e={handled:!0,type:"generic"}),n.exception=n.exception||{},n.exception.values=n.exception.values||[],n.exception.values[0]=n.exception.values[0]||{},n.exception.values[0].value=n.exception.values[0].value||t||"",n.exception.values[0].type=n.exception.values[0].type||r||"Error",n.exception.values[0].mechanism=n.exception.values[0].mechanism||e}var _=b(),S="Sentry Logger ",O=function(){function n(){this.t=!1}return n.prototype.disable=function(){this.t=!1},n.prototype.enable=function(){this.t=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.t&&j(function(){_.console.log(S+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.t&&j(function(){_.console.warn(S+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.t&&j(function(){_.console.error(S+"[Error]: "+n.join(" "))})},n}();_.__SENTRY__=_.__SENTRY__||{};var k=_.__SENTRY__.logger||(_.__SENTRY__.logger=new O),T=function(){function n(){this.i="function"==typeof WeakSet,this.o=this.i?new WeakSet:[]}return n.prototype.memoize=function(n){if(this.i)return!!this.o.has(n)||(this.o.add(n),!1);for(var t=0;t<this.o.length;t++){if(this.o[t]===n)return!0}return this.o.push(n),!1},n.prototype.unmemoize=function(n){if(this.i)this.o.delete(n);else for(var t=0;t<this.o.length;t++)if(this.o[t]===n){this.o.splice(t,1);break}},n}();function R(n,t,r){if(t in n){var e=n[t],i=r(e);if("function"==typeof i)try{i.prototype=i.prototype||{},Object.defineProperties(i,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e},__sentry_wrapped__:{enumerable:!1,value:i}})}catch(n){}n[t]=i}}function D(n){return function(n){return~-encodeURI(n).split(/%..|./).length}(JSON.stringify(n))}function I(n,t,r){void 0===t&&(t=3),void 0===r&&(r=102400);var e=C(n,t);return D(e)>r?I(n,t-1,r):e}function N(n,t){return"domain"===t&&"object"==typeof n&&n.u?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&n===global?"[Global]":"undefined"!=typeof window&&n===window?"[Window]":"undefined"!=typeof document&&n===document?"[Document]":"undefined"!=typeof Event&&n instanceof Event?Object.getPrototypeOf(n)?n.constructor.name:"Event":p(r=n)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r?"[SyntheticEvent]":Number.isNaN(n)?"[NaN]":void 0===n?"[undefined]":"function"==typeof n?"[Function: "+(n.name||"<unknown-function-name>")+"]":n;var r}function A(n,t,r,e){if(void 0===r&&(r=1/0),void 0===e&&(e=new T),0===r)return function(n){var t=Object.prototype.toString.call(n);if("string"==typeof n)return n;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var r=N(n);return d(r)?r:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var i=N(t,n);if(d(i))return i;var o=f(t)?function(n){var t={message:n.message,name:n.name,stack:n.stack};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}(t):t,u=Array.isArray(t)?[]:{};if(e.memoize(t))return"[Circular ~]";for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(u[c]=A(c,o[c],r-1,e));return e.unmemoize(t),u}function C(n,t){try{return JSON.parse(JSON.stringify(n,function(n,r){return A(n,r,t)}))}catch(n){return"**non-serializable**"}}var L,M=function(){function n(n){this.s=n,this.h=[]}return n.prototype.isReady=function(){return void 0===this.s||this.length()<this.s},n.prototype.add=function(n){var t=this;return this.isReady()?(-1===this.h.indexOf(n)&&this.h.push(n),n.then(function(){return t.remove(n)}).catch(function(){return t.remove(n).catch(function(){})}),n):Promise.reject(new a("Not adding Promise due to buffer limit reached."))},n.prototype.remove=function(n){return this.h.splice(this.h.indexOf(n),1)[0]},n.prototype.length=function(){return this.h.length},n.prototype.drain=function(n){var t=this;return new Promise(function(r){var e=setTimeout(function(){n&&n>0&&r(!1)},n);Promise.all(t.h).then(function(){clearTimeout(e),r(!0)}).catch(function(){r(!0)})})},n}();function F(n,t){return void 0===t&&(t=0),0===t?n:n.length<=t?n:n.substr(0,t)+"..."}function U(n,t){if(!Array.isArray(n))return"";for(var r=[],e=0;e<n.length;e++){var i=n[e];try{r.push(String(i))}catch(n){r.push("[value cannot be serialized]")}}return r.join(t)}function P(n,t){if(void 0===t&&(t=40),!n.length)return"[object has no keys]";if(n[0].length>=t)return F(n[0],t);for(var r=n.length;r>0;r--){var e=n.slice(0,r).join(", ");if(!(e.length>t))return r===n.length?e:F(e,t)}return""}function $(n,t){return r=t,"[object RegExp]"===Object.prototype.toString.call(r)?t.test(n):"string"==typeof t&&n.includes(t);var r}function q(){if(!("fetch"in b()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(n){return!1}}function H(){if(!q())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(n){return!1}}!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(L||(L={}));var W=function(){function n(n){var t=this;this.l=L.PENDING,this.v=[],this.p=function(n){t.m(n,L.RESOLVED)},this.g=function(n){t.m(n,L.REJECTED)},this.m=function(n,r){t.l===L.PENDING&&(m(n)?n.then(t.p,t.g):(t.j=n,t.l=r,t._()))},this._=function(){t.l!==L.PENDING&&(t.l===L.REJECTED?t.v.forEach(function(n){return n.onFail&&n.onFail(t.j)}):t.v.forEach(function(n){return n.onSuccess&&n.onSuccess(t.j)}),t.v=[])},this.S=function(n){t.v=t.v.concat(n),t._()};try{n(this.p,this.g)}catch(n){this.g(n)}}return n.prototype.then=function(t,r){var e=this;return new n(function(n,i){e.S({onFail:function(t){if(r)try{return void n(r(t))}catch(n){return void i(n)}else i(t)},onSuccess:function(r){if(t)try{return void n(t(r))}catch(n){return void i(n)}else n(r)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.toString=function(){return"[object SyncPromise]"},n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,r){r(t)})},n}(),B=/([0-9a-f]{2})-([0-9a-f]{32})-([0-9a-f]{16})-([0-9a-f]{2})/,J=function(){function n(n,t,r,e){void 0===n&&(n=w()),void 0===t&&(t=w().substring(16)),void 0===r&&(r=!1),this.O=n,this.k=t,this.T=r,this.R=e}return n.fromTraceparent=function(t){var r=t.match(B);if(r){var e=new n(r[2],r[3],"01"===r[4]);return new n(r[2],void 0,void 0,e)}},n.prototype.toTraceparent=function(){return"00-"+this.O+"-"+this.k+"-"+(this.T?"01":"00")},n.prototype.toJSON=function(){return{parent:this.R&&this.R.toJSON()||void 0,span_id:this.k,trace_id:this.O}},n}(),X=function(){function n(){this.D=!1,this.I=[],this.N=[],this.A=[],this.C={},this.L={},this.M={},this.F={}}return n.prototype.addScopeListener=function(n){this.I.push(n)},n.prototype.addEventProcessor=function(n){return this.N.push(n),this},n.prototype.U=function(){var n=this;this.D||(this.D=!0,setTimeout(function(){n.I.forEach(function(t){t(n)}),n.D=!1}))},n.prototype.P=function(n,t,r,e){var i=this;return void 0===e&&(e=0),new W(function(o,c){var s=n[e];if(null===t||"function"!=typeof s)o(t);else{var a=s(u({},t),r);m(a)?a.then(function(t){return i.P(n,t,r,e+1).then(o)}).catch(c):i.P(n,a,r,e+1).then(o).catch(c)}})},n.prototype.setUser=function(n){return this.C=C(n),this.U(),this},n.prototype.setTags=function(n){return this.L=u({},this.L,C(n)),this.U(),this},n.prototype.setTag=function(n,t){var r;return this.L=u({},this.L,((r={})[n]=C(t),r)),this.U(),this},n.prototype.setExtras=function(n){return this.M=u({},this.M,C(n)),this.U(),this},n.prototype.setExtra=function(n,t){var r;return this.M=u({},this.M,((r={})[n]=C(t),r)),this.U(),this},n.prototype.setFingerprint=function(n){return this.$=C(n),this.U(),this},n.prototype.setLevel=function(n){return this.q=C(n),this.U(),this},n.prototype.setTransaction=function(n){return this.H=n,this.U(),this},n.prototype.setContext=function(n,t){return this.F[n]=t?C(t):void 0,this.U(),this},n.prototype.setSpan=function(n){return this.W=n,this.U(),this},n.prototype.startSpan=function(){var n=new J;return this.setSpan(n),n},n.prototype.getSpan=function(){return this.W},n.clone=function(t){var r=new n;return Object.assign(r,t,{I:[]}),t&&(r.A=s(t.A),r.L=u({},t.L),r.M=u({},t.M),r.F=u({},t.F),r.C=t.C,r.q=t.q,r.W=t.W,r.H=t.H,r.$=t.$,r.N=s(t.N)),r},n.prototype.clear=function(){return this.A=[],this.L={},this.M={},this.C={},this.F={},this.q=void 0,this.H=void 0,this.$=void 0,this.W=void 0,this.U(),this},n.prototype.addBreadcrumb=function(n,t){var r=(new Date).getTime()/1e3,e=u({timestamp:r},n);return this.A=void 0!==t&&t>=0?s(this.A,[C(e)]).slice(-t):s(this.A,[C(e)]),this.U(),this},n.prototype.clearBreadcrumbs=function(){return this.A=[],this.U(),this},n.prototype.B=function(n){n.fingerprint=n.fingerprint?Array.isArray(n.fingerprint)?n.fingerprint:[n.fingerprint]:[],this.$&&(n.fingerprint=n.fingerprint.concat(this.$)),n.fingerprint&&!n.fingerprint.length&&delete n.fingerprint},n.prototype.applyToEvent=function(n,t){return this.M&&Object.keys(this.M).length&&(n.extra=u({},this.M,n.extra)),this.L&&Object.keys(this.L).length&&(n.tags=u({},this.L,n.tags)),this.C&&Object.keys(this.C).length&&(n.user=u({},this.C,n.user)),this.F&&Object.keys(this.F).length&&(n.contexts=u({},this.F,n.contexts)),this.q&&(n.level=this.q),this.H&&(n.transaction=this.H),this.W&&(n.contexts=n.contexts||{},n.contexts.trace=this.W),this.B(n),n.breadcrumbs=s(n.breadcrumbs||[],this.A),n.breadcrumbs=n.breadcrumbs.length>0?n.breadcrumbs:void 0,this.P(s(G(),this.N),n,t)},n}();function G(){var n=b();return n.__SENTRY__=n.__SENTRY__||{},n.__SENTRY__.globalEventProcessors=n.__SENTRY__.globalEventProcessors||[],n.__SENTRY__.globalEventProcessors}function z(n){G().push(n)}var V=3,K=function(){function n(n,t,r){void 0===t&&(t=new X),void 0===r&&(r=V),this.J=r,this.X=[],this.X.push({client:n,scope:t})}return n.prototype.G=function(n){for(var t,r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];var i=this.getStackTop();i&&i.client&&i.client[n]&&(t=i.client)[n].apply(t,s(r,[i.scope]))},n.prototype.isOlderThan=function(n){return this.J<n},n.prototype.bindClient=function(n){this.getStackTop().client=n},n.prototype.pushScope=function(){var n=this.getStack(),t=n.length>0?n[n.length-1].scope:void 0,r=X.clone(t);return this.getStack().push({client:this.getClient(),scope:r}),r},n.prototype.popScope=function(){return void 0!==this.getStack().pop()},n.prototype.withScope=function(n){var t=this.pushScope();try{n(t)}finally{this.popScope()}},n.prototype.getClient=function(){return this.getStackTop().client},n.prototype.getScope=function(){return this.getStackTop().scope},n.prototype.getStack=function(){return this.X},n.prototype.getStackTop=function(){return this.X[this.X.length-1]},n.prototype.captureException=function(n,t){var r=this.V=w();return this.G("captureException",n,u({},t,{event_id:r})),r},n.prototype.captureMessage=function(n,t,r){var e=this.V=w();return this.G("captureMessage",n,t,u({},r,{event_id:e})),e},n.prototype.captureEvent=function(n,t){var r=this.V=w();return this.G("captureEvent",n,u({},t,{event_id:r})),r},n.prototype.lastEventId=function(){return this.V},n.prototype.addBreadcrumb=function(n,t){var r=this.getStackTop();if(r.scope&&r.client){var e=r.client.getOptions&&r.client.getOptions()||{},i=e.beforeBreadcrumb,o=void 0===i?null:i,c=e.maxBreadcrumbs,s=void 0===c?30:c;if(!(s<=0)){var a=(new Date).getTime()/1e3,f=u({timestamp:a},n),h=o?j(function(){return o(f,t)}):f;null!==h&&r.scope.addBreadcrumb(h,Math.min(s,100))}}},n.prototype.configureScope=function(n){var t=this.getStackTop();t.scope&&t.client&&n(t.scope)},n.prototype.run=function(n){var t=Q(this);try{n(this)}finally{Q(t)}},n.prototype.getIntegration=function(n){var t=this.getClient();if(!t)return null;try{return t.getIntegration(n)}catch(t){return k.warn("Cannot retrieve integration "+n.id+" from the current Hub"),null}},n.prototype.traceHeaders=function(){var n=this.getStackTop();if(n.scope&&n.client){var t=n.scope.getSpan();if(t)return{"sentry-trace":t.toTraceparent()}}return{}},n}();function Z(){var n=b();return n.__SENTRY__=n.__SENTRY__||{hub:void 0},n}function Q(n){var t=Z(),r=tn(t);return rn(t,n),r}function Y(){var n,t,r=Z();nn(r)&&!tn(r).isOlderThan(V)||rn(r,new K);try{var e=(n=module,t="domain",n.require(t)).active;if(!e)return tn(r);if(!nn(e)||tn(e).isOlderThan(V)){var i=tn(r).getStackTop();rn(e,new K(i.client,X.clone(i.scope)))}return tn(e)}catch(n){return tn(r)}}function nn(n){return!!(n&&n.__SENTRY__&&n.__SENTRY__.hub)}function tn(n){return n&&n.__SENTRY__&&n.__SENTRY__.hub?n.__SENTRY__.hub:(n.__SENTRY__=n.__SENTRY__||{},n.__SENTRY__.hub=new K,n.__SENTRY__.hub)}function rn(n,t){return!!n&&(n.__SENTRY__=n.__SENTRY__||{},n.__SENTRY__.hub=t,!0)}function en(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var e=Y();if(e&&e[n])return e[n].apply(e,s(t));throw new Error("No hub defined or "+n+" was not found on the hub, please open a bug report.")}function captureException(n){var t;try{throw new Error("Sentry syntheticException")}catch(n){t=n}return en("captureException",n,{originalException:n,syntheticException:t})}function on(n){en("withScope",n)}var un=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,cn=function(){function n(n){"string"==typeof n?this.K(n):this.Z(n),this.Y()}return n.prototype.toString=function(n){void 0===n&&(n=!1);var t=this,r=t.host,e=t.path,i=t.pass,o=t.port,u=t.projectId;return t.protocol+"://"+t.user+(n&&i?":"+i:"")+"@"+r+(o?":"+o:"")+"/"+(e?e+"/":e)+u},n.prototype.K=function(n){var t=un.exec(n);if(!t)throw new a("Invalid Dsn");var r=c(t.slice(1),6),e=r[0],i=r[1],o=r[2],u=void 0===o?"":o,s=r[3],f=r[4],h=void 0===f?"":f,l="",v=r[5],d=v.split("/");d.length>1&&(l=d.slice(0,-1).join("/"),v=d.pop()),Object.assign(this,{host:s,pass:u,path:l,projectId:v,port:h,protocol:e,user:i})},n.prototype.Z=function(n){this.protocol=n.protocol,this.user=n.user,this.pass=n.pass||"",this.host=n.host,this.port=n.port||"",this.path=n.path||"",this.projectId=n.projectId},n.prototype.Y=function(){var n=this;if(["protocol","user","host","projectId"].forEach(function(t){if(!n[t])throw new a("Invalid Dsn")}),"http"!==this.protocol&&"https"!==this.protocol)throw new a("Invalid Dsn");if(this.port&&Number.isNaN(parseInt(this.port,10)))throw new a("Invalid Dsn")},n}(),sn=function(){function n(n){this.dsn=n,this.nn=new cn(n)}return n.prototype.getDsn=function(){return this.nn},n.prototype.getStoreEndpoint=function(){return""+this.tn()+this.getStoreEndpointPath()},n.prototype.getStoreEndpointWithUrlEncodedAuth=function(){var n,t={sentry_key:this.nn.user,sentry_version:"7"};return this.getStoreEndpoint()+"?"+(n=t,Object.keys(n).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(n[t])}).join("&"))},n.prototype.tn=function(){var n=this.nn,t=n.protocol?n.protocol+":":"",r=n.port?":"+n.port:"";return t+"//"+n.host+r},n.prototype.getStoreEndpointPath=function(){var n=this.nn;return(n.path?"/"+n.path:"")+"/api/"+n.projectId+"/store/"},n.prototype.getRequestHeaders=function(n,t){var r=this.nn,e=["Sentry sentry_version=7"];return e.push("sentry_timestamp="+(new Date).getTime()),e.push("sentry_client="+n+"/"+t),e.push("sentry_key="+r.user),r.pass&&e.push("sentry_secret="+r.pass),{"Content-Type":"application/json","X-Sentry-Auth":e.join(", ")}},n.prototype.getReportDialogEndpoint=function(n){void 0===n&&(n={});var t=this.nn,r=this.tn()+(t.path?"/"+t.path:"")+"/api/embed/error-page/",e=[];for(var i in e.push("dsn="+t.toString()),n)if("user"===i){if(!n.user)continue;n.user.name&&e.push("name="+encodeURIComponent(n.user.name)),n.user.email&&e.push("email="+encodeURIComponent(n.user.email))}else e.push(encodeURIComponent(i)+"="+encodeURIComponent(n[i]));return e.length?r+"?"+e.join("&"):r},n}(),an=[];function fn(n){var t={};return function(n){var t=n.defaultIntegrations&&s(n.defaultIntegrations)||[],r=n.integrations,e=[];if(Array.isArray(r)){var i=r.map(function(n){return n.name}),o=[];t.forEach(function(n){-1===i.indexOf(n.name)&&-1===o.indexOf(n.name)&&(e.push(n),o.push(n.name))}),r.forEach(function(n){-1===o.indexOf(n.name)&&(e.push(n),o.push(n.name))})}else{if("function"!=typeof r)return s(t);e=r(t),e=Array.isArray(e)?e:[e]}return e}(n).forEach(function(n){t[n.name]=n,function(n){-1===an.indexOf(n.name)&&(n.setupOnce(z,Y),an.push(n.name),k.log("Integration installed: "+n.name))}(n)}),t}var hn,ln=function(){function n(n,t){this.rn=!1,this.en=new n(t),this.in=t,t.dsn&&(this.on=new cn(t.dsn)),this.un=fn(this.in)}return n.prototype.captureException=function(n,t,r){var e=this,i=t&&t.event_id;return this.rn=!0,this.cn().eventFromException(n,t).then(function(n){return e.sn(n,t,r)}).then(function(n){i=n&&n.event_id,e.rn=!1}).catch(function(n){k.error(n),e.rn=!1}),i},n.prototype.captureMessage=function(n,t,r,e){var i=this,o=r&&r.event_id;return this.rn=!0,(d(n)?this.cn().eventFromMessage(""+n,t,r):this.cn().eventFromException(n,r)).then(function(n){return i.sn(n,r,e)}).then(function(n){o=n&&n.event_id,i.rn=!1}).catch(function(n){k.error(n),i.rn=!1}),o},n.prototype.captureEvent=function(n,t,r){var e=this,i=t&&t.event_id;return this.rn=!0,this.sn(n,t,r).then(function(n){i=n&&n.event_id,e.rn=!1}).catch(function(n){k.error(n),e.rn=!1}),i},n.prototype.getDsn=function(){return this.on},n.prototype.getOptions=function(){return this.in},n.prototype.flush=function(n){var t=this;return this.an(n).then(function(r){return t.fn&&clearInterval(t.fn),t.cn().getTransport().close(n).then(function(n){return r&&n})})},n.prototype.close=function(n){var t=this;return this.flush(n).then(function(n){return t.getOptions().enabled=!1,n})},n.prototype.getIntegrations=function(){return this.un||{}},n.prototype.getIntegration=function(n){try{return this.un[n.id]||null}catch(t){return k.warn("Cannot retrieve integration "+n.id+" from the current Client"),null}},n.prototype.an=function(n){var t=this;return new Promise(function(r){var e=0;t.fn&&clearInterval(t.fn),t.fn=setInterval(function(){t.rn?(e+=1,n&&e>=n&&r(!1)):r(!0)},1)})},n.prototype.cn=function(){return this.en},n.prototype.hn=function(){return!1!==this.getOptions().enabled&&void 0!==this.on},n.prototype.ln=function(n,t,r){var e=this.getOptions(),i=e.environment,o=e.release,c=e.dist,s=e.maxValueLength,a=void 0===s?250:s,f=u({},n);void 0===f.environment&&void 0!==i&&(f.environment=i),void 0===f.release&&void 0!==o&&(f.release=o),void 0===f.dist&&void 0!==c&&(f.dist=c),f.message&&(f.message=F(f.message,a));var h=f.exception&&f.exception.values&&f.exception.values[0];h&&h.value&&(h.value=F(h.value,a));var l=f.request;l&&l.url&&(l.url=F(l.url,a)),void 0===f.event_id&&(f.event_id=w()),this.vn(f.sdk);var v=W.resolve(f);return t&&(v=t.applyToEvent(f,r)),v},n.prototype.vn=function(n){var t=Object.keys(this.un);n&&t.length>0&&(n.integrations=t)},n.prototype.sn=function(n,t,r){var e=this,i=this.getOptions(),o=i.beforeSend,u=i.sampleRate;return this.hn()?"number"==typeof u&&Math.random()>u?W.reject("This event has been sampled, will not send event."):new W(function(i,u){e.ln(n,r,t).then(function(n){if(null!==n){var r=n;try{if(t&&t.data&&!0===t.data.__sentry__||!o)return e.cn().sendEvent(r),void i(r);var c=o(n,t);if(void 0===c)k.error("`beforeSend` method has to return `null` or a valid event.");else if(m(c))e.dn(c,i,u);else{if(null===(r=c))return k.log("`beforeSend` returned `null`, will not send event."),void i(null);e.cn().sendEvent(r),i(r)}}catch(n){e.captureException(n,{data:{__sentry__:!0},originalException:n}),u("`beforeSend` throw an error, will not send event.")}}else u("An event processor returned null, will not send event.")})}):W.reject("SDK not enabled, will not send event.")},n.prototype.dn=function(n,t,r){var e=this;n.then(function(n){null!==n?(e.cn().sendEvent(n),t(n)):r("`beforeSend` returned `null`, will not send event.")}).catch(function(n){r("beforeSend rejected with "+n)})},n}(),vn=function(){function t(){}return t.prototype.sendEvent=function(t){return Promise.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:n.Status.Skipped})},t.prototype.close=function(n){return Promise.resolve(!0)},t}(),dn=function(){function n(n){this.in=n,this.in.dsn||k.warn("No DSN provided, backend will not do anything."),this.pn=this.mn()}return n.prototype.mn=function(){return new vn},n.prototype.eventFromException=function(n,t){throw new a("Backend has to implement `eventFromException` method")},n.prototype.eventFromMessage=function(n,t,r){throw new a("Backend has to implement `eventFromMessage` method")},n.prototype.sendEvent=function(n){this.pn.sendEvent(n).catch(function(n){k.error("Error while sending event: "+n)})},n.prototype.getTransport=function(){return this.pn},n}();var pn=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){hn=Function.prototype.toString,Function.prototype.toString=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=this.__sentry__?this.__sentry_original__:this;return hn.apply(r,n)}},n.id="FunctionToString",n}(),mn=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],yn=function(){function n(t){void 0===t&&(t={}),this.in=t,this.name=n.id}return n.prototype.setupOnce=function(){z(function(t){var r=Y();if(!r)return t;var e=r.getIntegration(n);if(e){var i=r.getClient(),o=i?i.getOptions():{},u=e.yn(o);if(e.bn(t,u))return null}return t})},n.prototype.bn=function(n,t){return this.wn(n,t)?(k.warn("Event dropped due to being internal Sentry Error.\nEvent: "+E(n)),!0):this.gn(n,t)?(k.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+E(n)),!0):this.En(n,t)?(k.warn("Event dropped due to being matched by `blacklistUrls` option.\nEvent: "+E(n)+".\nUrl: "+this.jn(n)),!0):!this.xn(n,t)&&(k.warn("Event dropped due to not being matched by `whitelistUrls` option.\nEvent: "+E(n)+".\nUrl: "+this.jn(n)),!0)},n.prototype.wn=function(n,t){if(void 0===t&&(t={}),!t.ignoreInternal)return!1;try{return"SentryError"===n.exception.values[0].type}catch(n){return!1}},n.prototype.gn=function(n,t){return void 0===t&&(t={}),!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._n(n).some(function(n){return t.ignoreErrors.some(function(t){return $(n,t)})})},n.prototype.En=function(n,t){if(void 0===t&&(t={}),!t.blacklistUrls||!t.blacklistUrls.length)return!1;var r=this.jn(n);return!!r&&t.blacklistUrls.some(function(n){return $(r,n)})},n.prototype.xn=function(n,t){if(void 0===t&&(t={}),!t.whitelistUrls||!t.whitelistUrls.length)return!0;var r=this.jn(n);return!r||t.whitelistUrls.some(function(n){return $(r,n)})},n.prototype.yn=function(n){return void 0===n&&(n={}),{blacklistUrls:s(this.in.blacklistUrls||[],n.blacklistUrls||[]),ignoreErrors:s(this.in.ignoreErrors||[],n.ignoreErrors||[],mn),ignoreInternal:void 0===this.in.ignoreInternal||this.in.ignoreInternal,whitelistUrls:s(this.in.whitelistUrls||[],n.whitelistUrls||[])}},n.prototype._n=function(n){if(n.message)return[n.message];if(n.exception)try{var t=n.exception.values[0],r=t.type,e=t.value;return[""+e,r+": "+e]}catch(t){return k.error("Cannot extract message for event "+E(n)),[]}return[]},n.prototype.jn=function(n){try{if(n.stacktrace){var t=n.stacktrace.frames;return t[t.length-1].filename}if(n.exception){var r=n.exception.values[0].stacktrace.frames;return r[r.length-1].filename}return null}catch(t){return k.error("Cannot extract url for event "+E(n)),null}},n.id="InboundFilters",n}(),bn=Object.freeze({FunctionToString:pn,InboundFilters:yn}),wn=b(),gn={Sn:!1,On:!1,kn:!1,Tn:!1},En="?",jn=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function xn(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function _n(){return"undefined"==typeof document||null==document.location?"":document.location.href}gn.Sn=function(){var n,t,r=[],e=null,i=null;function o(n,t,e){var i=null;if(!t||gn.On){for(var o in r)if(xn(r,o))try{r[o](n,t,e)}catch(n){i=n}if(i)throw i}}function c(t,r,e,c,s){var l=null;if(s=h(s)?s.error:s,t=h(t)?t.message:t,i)gn.kn.Rn(i,r,e,t),a();else if(s&&f(s))(l=gn.kn(s)).mechanism="onerror",o(l,!0,s);else{var v,d={url:r,line:e,column:c},p=t;if("[object String]"==={}.toString.call(t)){var m=t.match(jn);m&&(v=m[1],p=m[2])}d.func=En,d.context=null,o(l={name:v,message:p,mode:"onerror",mechanism:"onerror",stack:[u({},d,{url:d.url||_n()})]},!0,null)}return!!n&&n.apply(this,arguments)}function s(n){var t=n&&(n.detail?n.detail.reason:n.reason)||n,r=gn.kn(t);r.mechanism="onunhandledrejection",o(r,!0,t)}function a(){var n=i,t=e;i=null,e=null,o(n,!1,t)}function l(n){if(i){if(e===n)return;a()}var t=gn.kn(n);throw i=t,e=n,setTimeout(function(){e===n&&a()},t.incomplete?2e3:0),n}return l.Dn=function(n){r.push(n)},l.In=function(){!0!==t&&(n=wn.onerror,wn.onerror=c,t=!0)},l.Nn=function(){wn.onunhandledrejection=s},l}(),gn.kn=function(){function n(n){if(!n||!n.stack)return null;for(var t,r,e,i=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,u=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,c=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,s=/\((\S*)(?::(\d+))(?::(\d+))\)/,a=n.stack.split("\n"),f=[],h=/^(.*) is undefined$/.exec(n.message),l=0,v=a.length;l<v;++l){if(r=i.exec(a[l]))r[2]&&0===r[2].indexOf("eval")&&(t=s.exec(r[2]))&&(r[2]=t[1],r[3]=t[2],r[4]=t[3]),e={url:r[2],func:r[1]||En,args:[],line:r[3]?+r[3]:null,column:r[4]?+r[4]:null};else if(r=u.exec(a[l]))e={url:r[2],func:r[1]||En,args:[],line:+r[3],column:r[4]?+r[4]:null};else{if(!(r=o.exec(a[l])))continue;r[3]&&r[3].indexOf(" > eval")>-1&&(t=c.exec(r[3]))?(r[3]=t[1],r[4]=t[2],r[5]=""):0!==l||r[5]||void 0===n.columnNumber||(f[0].column=n.columnNumber+1),e={url:r[3],func:r[1]||En,args:r[2]?r[2].split(","):[],line:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}!e.func&&e.line&&(e.func=En),e.context=null,f.push(e)}return f.length?(f[0]&&f[0].line&&!f[0].column&&h&&(f[0].column=null),{mode:"stack",name:n.name,message:n.message,stack:f}):null}function t(n,t,r,e){var i={url:t,line:r};if(i.url&&i.line){if(n.incomplete=!1,i.func||(i.func=En),i.context||(i.context=null),/ '([^']+)' /.exec(e)&&(i.column=null),n.stack.length>0&&n.stack[0].url===i.url){if(n.stack[0].line===i.line)return!1;if(!n.stack[0].line&&n.stack[0].func===i.func)return n.stack[0].line=i.line,n.stack[0].context=i.context,!1}return n.stack.unshift(i),n.partial=!0,!0}return n.incomplete=!0,!1}function r(n,e){for(var i,o,u=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,c=[],s={},a=!1,f=r.caller;f&&!a;f=f.caller)if(f!==Tn&&f!==gn.Sn){if(o={url:null,func:En,args:[],line:null,column:null},f.name?o.func=f.name:(i=u.exec(f.toString()))&&(o.func=i[1]),void 0===o.func)try{o.func=i.input.substring(0,i.input.indexOf("{"))}catch(n){}s[""+f]?a=!0:s[""+f]=!0,c.push(o)}e&&c.splice(0,e);var h={mode:"callers",name:n.name,message:n.message,stack:c};return t(h,n.sourceURL||n.fileName,n.line||n.lineNumber,n.message||n.description),h}function e(t,e){var i=null;e=null==e?0:+e;try{if(i=function(n){var t=n.stacktrace;if(t){for(var r,e=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,o=t.split("\n"),u=[],c=0;c<o.length;c+=2){var s=null;(r=e.exec(o[c]))?s={url:r[2],line:+r[1],column:null,func:r[3],args:[]}:(r=i.exec(o[c]))&&(s={url:r[6],line:+r[1],column:+r[2],func:r[3]||r[4],args:r[5]?r[5].split(","):[]}),s&&(!s.func&&s.line&&(s.func=En),s.line&&(s.context=null),s.context||(s.context=[o[c+1]]),u.push(s))}return u.length?{mode:"stacktrace",name:n.name,message:n.message,stack:u}:null}}(t))return i}catch(n){}try{if(i=n(t))return i}catch(n){}try{if(i=function(n){var t=n.message.split("\n");if(t.length<4)return null;var r,e=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,i=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,o=/^\s*Line (\d+) of function script\s*$/i,u=[],c=wn&&wn.document&&wn.document.getElementsByTagName("script"),s=[];for(var a in c)xn(c,a)&&!c[a].src&&s.push(c[a]);for(var f=2;f<t.length;f+=2){var h=null;(r=e.exec(t[f]))?h={url:r[2],func:r[3],args:[],line:+r[1],column:null}:(r=i.exec(t[f]))?h={url:r[3],func:r[4],args:[],line:+r[1],column:null}:(r=o.exec(t[f]))&&(h={url:_n().replace(/#.*$/,""),func:"",args:[],line:r[1],column:null}),h&&(h.func||(h.func=En),h.context=[t[f+1]],u.push(h))}return u.length?{mode:"multiline",name:n.name,message:t[0],stack:u}:null}(t))return i}catch(n){}try{if(i=r(t,e+1))return i}catch(n){}return{original:t,name:t.name,message:t.message,mode:"failed"}}return e.Rn=t,e.An=n,e}(),gn.On=!0,gn.Tn=11;var Sn=gn.Sn.Dn,On=gn.Sn.In,kn=gn.Sn.Nn,Tn=gn.kn,Rn=50;function Dn(n){var t=Nn(n.stack),r={type:n.name,value:n.message};return t&&t.length&&(r.stacktrace={frames:t}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function In(n){return{exception:{values:[Dn(n)]}}}function Nn(n){if(!n||!n.length)return[];var t=n,r=t[0].func||"",e=t[t.length-1].func||"";return(r.includes("captureMessage")||r.includes("captureException"))&&(t=t.slice(1)),e.includes("sentryWrapped")&&(t=t.slice(0,-1)),t.map(function(n){return{colno:n.column,filename:n.url||t[0].url,function:n.func||"?",in_app:!0,lineno:n.line}}).slice(0,Rn).reverse()}var An,Cn,Ln=function(){function n(n){this.options=n,this.h=new M(30),this.url=new sn(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}return n.prototype.sendEvent=function(n){throw new a("Transport Class has to implement `sendEvent` method")},n.prototype.close=function(n){return this.h.drain(n)},n}(),Mn=b(),Fn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.sendEvent=function(t){var r={body:JSON.stringify(t),method:"POST",referrerPolicy:H()?"origin":""};return this.h.add(Mn.fetch(this.url,r).then(function(t){return{status:n.Status.fromHttpCode(t.status)}}))},e}(Ln),Un=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.sendEvent=function(t){var r=this;return this.h.add(new Promise(function(e,i){var o=new XMLHttpRequest;o.onreadystatechange=function(){4===o.readyState&&(200===o.status&&e({status:n.Status.fromHttpCode(o.status)}),i(o))},o.open("POST",r.url),o.send(JSON.stringify(t))}))},e}(Ln),Pn=Object.freeze({BaseTransport:Ln,FetchTransport:Fn,XHRTransport:Un}),$n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.mn=function(){if(!this.in.dsn)return t.prototype.mn.call(this);var n=this.in.transportOptions?this.in.transportOptions:{dsn:this.in.dsn};return this.in.transport?new this.in.transport(n):q()?new Fn(n):new Un(n)},e.prototype.eventFromException=function(t,r){var e,i,o=this;if(h(t)&&t.error)return t=t.error,e=In(Tn(t)),W.resolve(this.Cn(e,r));if(l(t)||(i=t,"[object DOMException]"===Object.prototype.toString.call(i))){var u=t,c=u.name||(l(u)?"DOMError":"DOMException"),s=u.message?c+": "+u.message:c;return this.eventFromMessage(s,n.Severity.Error,r).then(function(n){return x(n,s),W.resolve(o.Cn(n,r))})}if(f(t))return e=In(Tn(t)),W.resolve(this.Cn(e,r));if(p(t)&&r&&r.syntheticException)return x(e=function(n,t){var r=Object.keys(n).sort(),e={extra:{__serialized__:I(n)},message:"Non-Error exception captured with keys: "+P(r)};if(t){var i=Nn(Tn(t).stack);e.stacktrace={frames:i}}return e}(t,r.syntheticException),"Custom Object",void 0,{handled:!0,synthetic:!0,type:"generic"}),e.level=n.Severity.Error,W.resolve(this.Cn(e,r));var a=t;return this.eventFromMessage(a,void 0,r).then(function(t){return x(t,""+a,void 0,{handled:!0,synthetic:!0,type:"generic"}),t.level=n.Severity.Error,W.resolve(o.Cn(t,r))})},e.prototype.Cn=function(n,t){return u({},n,{event_id:t&&t.event_id})},e.prototype.eventFromMessage=function(t,r,e){void 0===r&&(r=n.Severity.Info);var i={event_id:e&&e.event_id,level:r,message:t};if(this.in.attachStacktrace&&e&&e.syntheticException){var o=Nn(Tn(e.syntheticException).stack);i.stacktrace={frames:o}}return W.resolve(i)},e}(dn),qn="sentry.javascript.browser",Hn=function(n){function t(t){return void 0===t&&(t={}),n.call(this,$n,t)||this}return r(t,n),t.prototype.ln=function(t,r,e){return t.platform=t.platform||"javascript",t.sdk=u({},t.sdk,{name:qn,packages:s(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:"5.2.1"}]),version:"5.2.1"}),n.prototype.ln.call(this,t,r,e)},t.prototype.showReportDialog=function(n){void 0===n&&(n={});var t=b().document;if(t)if(this.hn()){var r=n.dsn||this.getDsn();if(n.eventId)if(r){var e=t.createElement("script");e.async=!0,e.src=new sn(r).getReportDialogEndpoint(n),n.onLoad&&(e.onload=n.onLoad),(t.head||t.body).appendChild(e)}else k.error("Missing `Dsn` option in showReportDialog call");else k.error("Missing `eventId` option in showReportDialog call")}else k.error("Trying to call showReportDialog with Sentry Client is disabled")},t}(ln),Wn=1e3,Bn=0;function Jn(n,t,r){if(void 0===t&&(t={}),"function"!=typeof n)return n;try{if(n.__sentry__)return n;if(n.__sentry_wrapped__)return n.__sentry_wrapped__}catch(t){return n}var sentryWrapped=function(){r&&"function"==typeof r&&r.apply(this,arguments);var e=Array.prototype.slice.call(arguments);try{var i=e.map(function(n){return Jn(n,t)});return n.handleEvent?n.handleEvent.apply(this,i):n.apply(this,i)}catch(n){throw Bn+=1,setTimeout(function(){Bn-=1}),on(function(r){r.addEventProcessor(function(n){var r=u({},n);return t.mechanism&&x(r,void 0,void 0,t.mechanism),r.extra=u({},r.extra,{arguments:C(e,3)}),r}),captureException(n)}),n}};try{for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(sentryWrapped[e]=n[e])}catch(n){}n.prototype=n.prototype||{},sentryWrapped.prototype=n.prototype,Object.defineProperty(n,"__sentry_wrapped__",{enumerable:!1,value:sentryWrapped}),Object.defineProperties(sentryWrapped,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:n}});try{Object.defineProperty(sentryWrapped,"name",{get:function(){return n.name}})}catch(n){}return sentryWrapped}var Xn=0;function Gn(n,t){return void 0===t&&(t=!1),function(r){if(An=void 0,r&&Cn!==r){Cn=r;var e=function(){var t;try{t=r.target?Vn(r.target):Vn(r)}catch(n){t="<unknown>"}0!==t.length&&Y().addBreadcrumb({category:"ui."+n,message:t},{event:r,name:n})};Xn&&clearTimeout(Xn),t?Xn=setTimeout(e):e()}}}function zn(){return function(n){var t;try{t=n.target}catch(n){return}var r=t&&t.tagName;r&&("INPUT"===r||"TEXTAREA"===r||t.isContentEditable)&&(An||Gn("input")(n),clearTimeout(An),An=setTimeout(function(){An=void 0},Wn))}}function Vn(n){for(var t,r=n,e=[],i=0,o=0,u=" > ".length;r&&i++<5&&!("html"===(t=Kn(r))||i>1&&o+e.length*u+t.length>=80);)e.push(t),o+=t.length,r=r.parentNode;return e.reverse().join(" > ")}function Kn(n){var t,r,e,i,o,u=[];if(!n||!n.tagName)return"";if(u.push(n.tagName.toLowerCase()),n.id&&u.push("#"+n.id),(t=n.className)&&v(t))for(r=t.split(/\s+/),o=0;o<r.length;o++)u.push("."+r[o]);var c=["type","name","title","alt"];for(o=0;o<c.length;o++)e=c[o],(i=n.getAttribute(e))&&u.push("["+e+'="'+i+'"]');return u.join("")}var Zn=function(){function n(t){this.name=n.id,this.in=u({onerror:!0,onunhandledrejection:!0},t)}return n.prototype.setupOnce=function(){Error.stackTraceLimit=50,Sn(function(t,r,e){if(!(Bn>0)){var i=Y().getIntegration(n);i&&Y().captureEvent(i.Ln(t),{data:{stack:t},originalException:e})}}),this.in.onerror&&(k.log("Global Handler attached: onerror"),On()),this.in.onunhandledrejection&&(k.log("Global Handler attached: onunhandledrejection"),kn())},n.prototype.Ln=function(n){if(!v(n.message)&&"onunhandledrejection"!==n.mechanism){var t=n.message;n.message=t.error&&v(t.error.message)?t.error.message:"No error message"}var r=In(n),e={mode:n.mode};n.message&&(e.message=n.message),n.name&&(e.name=n.name);var i=Y().getClient(),o=i&&i.getOptions().maxValueLength||250;return x(r,n.original?F(JSON.stringify(C(n.original)),o):"","onunhandledrejection"===n.mechanism?"UnhandledRejection":"Error",{data:e,handled:!1,type:n.mechanism}),r},n.id="GlobalHandlers",n}(),Qn=function(){function n(){this.Mn=0,this.name=n.id}return n.prototype.Fn=function(n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var e=t[0];return t[0]=Jn(e,{mechanism:{data:{function:Yn(n)},handled:!0,type:"instrument"}}),n.apply(this,t)}},n.prototype.Un=function(n){return function(t){return n(Jn(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Yn(n)},handled:!0,type:"instrument"}}))}},n.prototype.Pn=function(n){var t=b(),r=t[n]&&t[n].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(R(r,"addEventListener",function(t){return function(r,e,i){try{e.handleEvent=Jn(e.handleEvent.bind(e),{mechanism:{data:{function:"handleEvent",handler:Yn(e),target:n},handled:!0,type:"instrument"}})}catch(n){}return t.call(this,r,Jn(e,{mechanism:{data:{function:"addEventListener",handler:Yn(e),target:n},handled:!0,type:"instrument"}}),i)}}),R(r,"removeEventListener",function(n){return function(t,r,e){var i=r;try{i=i&&(i.__sentry_wrapped__||i)}catch(n){}return n.call(this,t,i,e)}}))},n.prototype.setupOnce=function(){this.Mn=this.Mn;var n=b();R(n,"setTimeout",this.Fn.bind(this)),R(n,"setInterval",this.Fn.bind(this)),R(n,"requestAnimationFrame",this.Un.bind(this)),["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"].forEach(this.Pn.bind(this))},n.id="TryCatch",n}();function Yn(n){try{return n&&n.name||"<anonymous>"}catch(n){return"<anonymous>"}}var nt,tt=b(),rt=function(){function t(n){this.name=t.id,this.in=u({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},n)}return t.prototype.$n=function(){"console"in tt&&["debug","info","warn","error","log","assert"].forEach(function(r){r in tt.console&&R(tt.console,r,function(e){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var u={category:"console",data:{extra:{arguments:C(i,3)},logger:"console"},level:n.Severity.fromString(r),message:U(i," ")};"assert"===r&&!1===i[0]&&(u.message="Assertion failed: "+(U(i.slice(1)," ")||"console.assert"),u.data.extra.arguments=C(i.slice(1),3)),t.addBreadcrumb(u,{input:i,level:r}),e&&Function.prototype.apply.call(e,tt.console,i)}})})},t.prototype.qn=function(){"document"in tt&&(tt.document.addEventListener("click",Gn("click"),!1),tt.document.addEventListener("keypress",zn(),!1),["EventTarget","Node"].forEach(function(n){var t=tt[n]&&tt[n].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(R(t,"addEventListener",function(n){return function(t,r,e){return r&&r.handleEvent?("click"===t&&R(r,"handleEvent",function(n){return function(t){return Gn("click")(t),n.call(this,t)}}),"keypress"===t&&R(r,"handleEvent",zn())):("click"===t&&Gn("click",!0)(this),"keypress"===t&&zn()(this)),n.call(this,t,r,e)}}),R(t,"removeEventListener",function(n){return function(t,r,e){var i=r;try{i=i&&(i.__sentry_wrapped__||i)}catch(n){}return n.call(this,t,i,e)}}))}))},t.prototype.Hn=function(){q()&&-1!==b().fetch.toString().indexOf("native")&&R(tt,"fetch",function(r){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o,u=e[0],c="GET";"string"==typeof u?o=u:"Request"in tt&&u instanceof Request?(o=u.url,u.method&&(c=u.method)):o=String(u),e[1]&&e[1].method&&(c=e[1].method);var s=Y().getClient(),a=s&&s.getDsn();if(a){var f=new sn(a).getStoreEndpoint();if(f&&o.includes(f))return"POST"===c&&e[1]&&e[1].body&&et(e[1].body),r.apply(tt,e)}var h={method:c,url:o};return r.apply(tt,e).then(function(n){return h.status_code=n.status,t.addBreadcrumb({category:"fetch",data:h,type:"http"},{input:e,response:n}),n}).catch(function(r){throw t.addBreadcrumb({category:"fetch",data:h,level:n.Severity.Error,type:"http"},{error:r,input:e}),r})}})},t.prototype.Wn=function(){var n=this;if(r=b(),e=r.chrome,i=e&&e.app&&e.app.runtime,o="history"in r&&!!r.history.pushState&&!!r.history.replaceState,!i&&o){var r,e,i,o,u=function(n,r){var e=g(tt.location.href),i=g(r),o=g(n);o.path||(o=e),nt=r,e.protocol===i.protocol&&e.host===i.host&&(r=i.relative),e.protocol===o.protocol&&e.host===o.host&&(n=o.relative),t.addBreadcrumb({category:"navigation",data:{from:n,to:r}})},c=tt.onpopstate;tt.onpopstate=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var e=tt.location.href;if(u(nt,e),c)return c.apply(n,t)},R(tt.history,"pushState",s),R(tt.history,"replaceState",s)}function s(n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var e=t.length>2?t[2]:void 0;return e&&u(nt,String(e)),n.apply(this,t)}}},t.prototype.Bn=function(){if("XMLHttpRequest"in tt){var n=XMLHttpRequest.prototype;R(n,"open",function(n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var e=t[1];this.__sentry_xhr__={method:t[0],url:t[1]};var i=Y().getClient(),o=i&&i.getDsn();if(o){var u=new sn(o).getStoreEndpoint();v(e)&&u&&e.includes(u)&&(this.__sentry_own_request__=!0)}return n.apply(this,t)}}),R(n,"send",function(n){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i=this;function o(){if(4===i.readyState){if(i.__sentry_own_request__)return;try{i.__sentry_xhr__&&(i.__sentry_xhr__.status_code=i.status)}catch(n){}t.addBreadcrumb({category:"xhr",data:i.__sentry_xhr__,type:"http"},{xhr:i})}}return i.__sentry_own_request__&&et(r[0]),["onload","onerror","onprogress"].forEach(function(n){!function(n,t){n in t&&"function"==typeof t[n]&&R(t,n,function(t){return Jn(t,{mechanism:{data:{function:n,handler:t&&t.name||"<anonymous>"},handled:!0,type:"instrument"}})})}(n,i)}),"onreadystatechange"in i&&"function"==typeof i.onreadystatechange?R(i,"onreadystatechange",function(n){return Jn(n,{mechanism:{data:{function:"onreadystatechange",handler:n&&n.name||"<anonymous>"},handled:!0,type:"instrument"}},o)}):i.onreadystatechange=o,n.apply(this,r)}})}},t.addBreadcrumb=function(n,r){Y().getIntegration(t)&&Y().addBreadcrumb(n,r)},t.prototype.setupOnce=function(){this.in.console&&this.$n(),this.in.dom&&this.qn(),this.in.xhr&&this.Bn(),this.in.fetch&&this.Hn(),this.in.history&&this.Wn()},t.id="Breadcrumbs",t}();function et(t){try{var r=JSON.parse(t);rt.addBreadcrumb({category:"sentry",event_id:r.event_id,level:r.level||n.Severity.fromString("error"),message:E(r)},{event:r})}catch(n){k.error("Error while adding sentry type breadcrumb")}}var it="cause",ot=5,ut=function(){function n(t){void 0===t&&(t={}),this.name=n.id,this.Jn=t.key||it,this.s=t.limit||ot}return n.prototype.setupOnce=function(){z(function(t,r){var e=Y().getIntegration(n);return e?e.Xn(t,r):t})},n.prototype.Xn=function(n,t){if(!(n.exception&&n.exception.values&&t&&t.originalException instanceof Error))return n;var r=this.Gn(t.originalException,this.Jn);return n.exception.values=s(r,n.exception.values),n},n.prototype.Gn=function(n,t,r){if(void 0===r&&(r=[]),!(n[t]instanceof Error)||r.length+1>=this.s)return r;var e=Dn(Tn(n[t]));return this.Gn(n[t],t,s([e],r))},n.id="LinkedErrors",n}(),ct=b(),st=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){z(function(t){if(Y().getIntegration(n)){if(!ct.navigator||!ct.location)return t;var r=t.request||{};return r.url=r.url||ct.location.href,r.headers=r.headers||{},r.headers["User-Agent"]=ct.navigator.userAgent,u({},t,{request:r})}return t})},n.id="UserAgent",n}(),at=Object.freeze({GlobalHandlers:Zn,TryCatch:Qn,Breadcrumbs:rt,LinkedErrors:ut,UserAgent:st}),ft=[new yn,new pn,new Qn,new rt,new Zn,new ut,new st];var ht={},lt=b();lt.Sentry&&lt.Sentry.Integrations&&(ht=lt.Sentry.Integrations);var vt=u({},ht,bn,at);return n.BrowserClient=Hn,n.Hub=K,n.Integrations=vt,n.SDK_NAME=qn,n.SDK_VERSION="5.2.1",n.Scope=X,n.Transports=Pn,n.addBreadcrumb=function(n){en("addBreadcrumb",n)},n.addGlobalEventProcessor=z,n.captureEvent=function(n){return en("captureEvent",n)},n.captureException=captureException,n.captureMessage=function(n,t){var r;try{throw new Error(n)}catch(n){r=n}return en("captureMessage",n,t,{originalException:n,syntheticException:r})},n.close=function(n){var t=Y().getClient();return t?t.close(n):Promise.reject(!1)},n.configureScope=function(n){en("configureScope",n)},n.defaultIntegrations=ft,n.flush=function(n){var t=Y().getClient();return t?t.flush(n):Promise.reject(!1)},n.forceLoad=function(){},n.getCurrentHub=Y,n.getHubFromCarrier=tn,n.init=function(n){void 0===n&&(n={}),void 0===n.defaultIntegrations&&(n.defaultIntegrations=ft),function(n,t){!0===t.debug&&k.enable(),Y().bindClient(new n(t))}(Hn,n)},n.lastEventId=function(){return Y().lastEventId()},n.onLoad=function(n){n()},n.showReportDialog=function(n){void 0===n&&(n={}),n.eventId||(n.eventId=Y().lastEventId());var t=Y().getClient();t&&t.showReportDialog(n)},n.withScope=on,n.wrap=function(n){Jn(n)()},n}({});
/*! @sentry/browser 5.3.0 (37cf45f6) | https://github.com/getsentry/sentry-javascript */
var Sentry=function(n){var t=function(n,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,r)};function r(n,r){function e(){this.constructor=n}t(n,r),n.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}var e,i,o,u=function(){return(u=Object.assign||function(n){for(var t,r=1,e=arguments.length;r<e;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)};function c(n,t){var r="function"==typeof Symbol&&n[Symbol.iterator];if(!r)return n;var e,i,o=r.call(n),u=[];try{for(;(void 0===t||t-- >0)&&!(e=o.next()).done;)u.push(e.value)}catch(n){i={error:n}}finally{try{e&&!e.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return u}function s(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(c(arguments[t]));return n}!function(n){n[n.None=0]="None",n[n.Error=1]="Error",n[n.Debug=2]="Debug",n[n.Verbose=3]="Verbose"}(e||(e={})),(i=n.Severity||(n.Severity={})).Fatal="fatal",i.Error="error",i.Warning="warning",i.Log="log",i.Info="info",i.Debug="debug",i.Critical="critical",function(n){n.fromString=function(t){switch(t){case"debug":return n.Debug;case"info":return n.Info;case"warn":case"warning":return n.Warning;case"error":return n.Error;case"fatal":return n.Fatal;case"critical":return n.Critical;case"log":default:return n.Log}}}(n.Severity||(n.Severity={})),(o=n.Status||(n.Status={})).Unknown="unknown",o.Skipped="skipped",o.Success="success",o.RateLimit="rate_limit",o.Invalid="invalid",o.Failed="failed",function(n){n.fromHttpCode=function(t){return t>=200&&t<300?n.Success:429===t?n.RateLimit:t>=400&&t<500?n.Invalid:t>=500?n.Failed:n.Unknown}}(n.Status||(n.Status={}));var a=function(n){function t(t){var r=this.constructor,e=n.call(this,t)||this;return e.message=t,e.name=r.prototype.constructor.name,Object.setPrototypeOf(e,r.prototype),e}return r(t,n),t}(Error);function f(n){switch(Object.prototype.toString.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return n instanceof Error}}function h(n){return"[object ErrorEvent]"===Object.prototype.toString.call(n)}function l(n){return"[object DOMError]"===Object.prototype.toString.call(n)}function v(n){return"[object String]"===Object.prototype.toString.call(n)}function d(n){return null===n||"object"!=typeof n&&"function"!=typeof n}function p(n){return"[object Object]"===Object.prototype.toString.call(n)}function m(n){return Boolean(n&&n.then&&"function"==typeof n.then)}var y={};function b(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:y}function w(){var n=b(),t=n.crypto||n.msCrypto;if(void 0!==t&&t.getRandomValues){var r=new Uint16Array(8);t.getRandomValues(r),r[3]=4095&r[3]|16384,r[4]=16383&r[4]|32768;var e=function(n){for(var t=n.toString(16);t.length<4;)t="0"+t;return t};return e(r[0])+e(r[1])+e(r[2])+e(r[3])+e(r[4])+e(r[5])+e(r[6])+e(r[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=16*Math.random()|0;return("x"===n?t:3&t|8).toString(16)})}function g(n){if(!n)return{};var t=n.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var r=t[6]||"",e=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+r+e}}function E(n){if(n.message)return n.message;if(n.exception&&n.exception.values&&n.exception.values[0]){var t=n.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||n.event_id||"<unknown>"}return n.event_id||"<unknown>"}function j(n){var t=b();if(!("console"in t))return n();var r=t.console,e={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&r[n].__sentry__&&(e[n]=r[n].__sentry_wrapped__,r[n]=r[n].__sentry_original__)});var i=n();return Object.keys(e).forEach(function(n){r[n]=e[n]}),i}function x(n,t,r,e){void 0===e&&(e={handled:!0,type:"generic"}),n.exception=n.exception||{},n.exception.values=n.exception.values||[],n.exception.values[0]=n.exception.values[0]||{},n.exception.values[0].value=n.exception.values[0].value||t||"",n.exception.values[0].type=n.exception.values[0].type||r||"Error",n.exception.values[0].mechanism=n.exception.values[0].mechanism||e}var _=b(),S="Sentry Logger ",O=function(){function n(){this.t=!1}return n.prototype.disable=function(){this.t=!1},n.prototype.enable=function(){this.t=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.t&&j(function(){_.console.log(S+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.t&&j(function(){_.console.warn(S+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.t&&j(function(){_.console.error(S+"[Error]: "+n.join(" "))})},n}();_.__SENTRY__=_.__SENTRY__||{};var k=_.__SENTRY__.logger||(_.__SENTRY__.logger=new O),T=function(){function n(){this.i="function"==typeof WeakSet,this.o=this.i?new WeakSet:[]}return n.prototype.memoize=function(n){if(this.i)return!!this.o.has(n)||(this.o.add(n),!1);for(var t=0;t<this.o.length;t++){if(this.o[t]===n)return!0}return this.o.push(n),!1},n.prototype.unmemoize=function(n){if(this.i)this.o.delete(n);else for(var t=0;t<this.o.length;t++)if(this.o[t]===n){this.o.splice(t,1);break}},n}();function R(n,t,r){if(t in n){var e=n[t],i=r(e);if("function"==typeof i)try{i.prototype=i.prototype||{},Object.defineProperties(i,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e},__sentry_wrapped__:{enumerable:!1,value:i}})}catch(n){}n[t]=i}}function D(n){return function(n){return~-encodeURI(n).split(/%..|./).length}(JSON.stringify(n))}function I(n,t,r){void 0===t&&(t=3),void 0===r&&(r=102400);var e=C(n,t);return D(e)>r?I(n,t-1,r):e}function N(n,t){return"domain"===t&&"object"==typeof n&&n.u?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&n===global?"[Global]":"undefined"!=typeof window&&n===window?"[Window]":"undefined"!=typeof document&&n===document?"[Document]":"undefined"!=typeof Event&&n instanceof Event?Object.getPrototypeOf(n)?n.constructor.name:"Event":p(r=n)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r?"[SyntheticEvent]":Number.isNaN(n)?"[NaN]":void 0===n?"[undefined]":"function"==typeof n?"[Function: "+(n.name||"<unknown-function-name>")+"]":n;var r}function A(n,t,r,e){if(void 0===r&&(r=1/0),void 0===e&&(e=new T),0===r)return function(n){var t=Object.prototype.toString.call(n);if("string"==typeof n)return n;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var r=N(n);return d(r)?r:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var i=N(t,n);if(d(i))return i;var o=f(t)?function(n){var t={message:n.message,name:n.name,stack:n.stack};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}(t):t,u=Array.isArray(t)?[]:{};if(e.memoize(t))return"[Circular ~]";for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(u[c]=A(c,o[c],r-1,e));return e.unmemoize(t),u}function C(n,t){try{return JSON.parse(JSON.stringify(n,function(n,r){return A(n,r,t)}))}catch(n){return"**non-serializable**"}}var L,M=function(){function n(n){this.s=n,this.h=[]}return n.prototype.isReady=function(){return void 0===this.s||this.length()<this.s},n.prototype.add=function(n){var t=this;return this.isReady()?(-1===this.h.indexOf(n)&&this.h.push(n),n.then(function(){return t.remove(n)}).catch(function(){return t.remove(n).catch(function(){})}),n):Promise.reject(new a("Not adding Promise due to buffer limit reached."))},n.prototype.remove=function(n){return this.h.splice(this.h.indexOf(n),1)[0]},n.prototype.length=function(){return this.h.length},n.prototype.drain=function(n){var t=this;return new Promise(function(r){var e=setTimeout(function(){n&&n>0&&r(!1)},n);Promise.all(t.h).then(function(){clearTimeout(e),r(!0)}).catch(function(){r(!0)})})},n}();function F(n,t){return void 0===t&&(t=0),"string"!=typeof n||0===t?n:n.length<=t?n:n.substr(0,t)+"..."}function U(n,t){if(!Array.isArray(n))return"";for(var r=[],e=0;e<n.length;e++){var i=n[e];try{r.push(String(i))}catch(n){r.push("[value cannot be serialized]")}}return r.join(t)}function P(n,t){if(void 0===t&&(t=40),!n.length)return"[object has no keys]";if(n[0].length>=t)return F(n[0],t);for(var r=n.length;r>0;r--){var e=n.slice(0,r).join(", ");if(!(e.length>t))return r===n.length?e:F(e,t)}return""}function $(n,t){return r=t,"[object RegExp]"===Object.prototype.toString.call(r)?t.test(n):"string"==typeof t&&n.includes(t);var r}function q(){if(!("fetch"in b()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(n){return!1}}function H(){if(!q())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(n){return!1}}!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(L||(L={}));var W=function(){function n(n){var t=this;this.l=L.PENDING,this.v=[],this.p=function(n){t.m(n,L.RESOLVED)},this.g=function(n){t.m(n,L.REJECTED)},this.m=function(n,r){t.l===L.PENDING&&(m(n)?n.then(t.p,t.g):(t.j=n,t.l=r,t._()))},this._=function(){t.l!==L.PENDING&&(t.l===L.REJECTED?t.v.forEach(function(n){return n.onFail&&n.onFail(t.j)}):t.v.forEach(function(n){return n.onSuccess&&n.onSuccess(t.j)}),t.v=[])},this.S=function(n){t.v=t.v.concat(n),t._()};try{n(this.p,this.g)}catch(n){this.g(n)}}return n.prototype.then=function(t,r){var e=this;return new n(function(n,i){e.S({onFail:function(t){if(r)try{return void n(r(t))}catch(n){return void i(n)}else i(t)},onSuccess:function(r){if(t)try{return void n(t(r))}catch(n){return void i(n)}else n(r)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.toString=function(){return"[object SyncPromise]"},n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,r){r(t)})},n}(),B=/([0-9a-f]{2})-([0-9a-f]{32})-([0-9a-f]{16})-([0-9a-f]{2})/,J=function(){function n(n,t,r,e){void 0===n&&(n=w()),void 0===t&&(t=w().substring(16)),void 0===r&&(r=!1),this.O=n,this.k=t,this.T=r,this.R=e}return n.fromTraceparent=function(t){var r=t.match(B);if(r){var e=new n(r[2],r[3],"01"===r[4]);return new n(r[2],void 0,void 0,e)}},n.prototype.toTraceparent=function(){return"00-"+this.O+"-"+this.k+"-"+(this.T?"01":"00")},n.prototype.toJSON=function(){return{parent:this.R&&this.R.toJSON()||void 0,span_id:this.k,trace_id:this.O}},n}(),X=function(){function n(){this.D=!1,this.I=[],this.N=[],this.A=[],this.C={},this.L={},this.M={},this.F={}}return n.prototype.addScopeListener=function(n){this.I.push(n)},n.prototype.addEventProcessor=function(n){return this.N.push(n),this},n.prototype.U=function(){var n=this;this.D||(this.D=!0,setTimeout(function(){n.I.forEach(function(t){t(n)}),n.D=!1}))},n.prototype.P=function(n,t,r,e){var i=this;return void 0===e&&(e=0),new W(function(o,c){var s=n[e];if(null===t||"function"!=typeof s)o(t);else{var a=s(u({},t),r);m(a)?a.then(function(t){return i.P(n,t,r,e+1).then(o)}).catch(c):i.P(n,a,r,e+1).then(o).catch(c)}})},n.prototype.setUser=function(n){return this.C=C(n),this.U(),this},n.prototype.setTags=function(n){return this.L=u({},this.L,C(n)),this.U(),this},n.prototype.setTag=function(n,t){var r;return this.L=u({},this.L,((r={})[n]=C(t),r)),this.U(),this},n.prototype.setExtras=function(n){return this.M=u({},this.M,C(n)),this.U(),this},n.prototype.setExtra=function(n,t){var r;return this.M=u({},this.M,((r={})[n]=C(t),r)),this.U(),this},n.prototype.setFingerprint=function(n){return this.$=C(n),this.U(),this},n.prototype.setLevel=function(n){return this.q=C(n),this.U(),this},n.prototype.setTransaction=function(n){return this.H=n,this.U(),this},n.prototype.setContext=function(n,t){return this.F[n]=t?C(t):void 0,this.U(),this},n.prototype.setSpan=function(n){return this.W=n,this.U(),this},n.prototype.startSpan=function(){var n=new J;return this.setSpan(n),n},n.prototype.getSpan=function(){return this.W},n.clone=function(t){var r=new n;return Object.assign(r,t,{I:[]}),t&&(r.A=s(t.A),r.L=u({},t.L),r.M=u({},t.M),r.F=u({},t.F),r.C=t.C,r.q=t.q,r.W=t.W,r.H=t.H,r.$=t.$,r.N=s(t.N)),r},n.prototype.clear=function(){return this.A=[],this.L={},this.M={},this.C={},this.F={},this.q=void 0,this.H=void 0,this.$=void 0,this.W=void 0,this.U(),this},n.prototype.addBreadcrumb=function(n,t){var r=(new Date).getTime()/1e3,e=u({timestamp:r},n);return this.A=void 0!==t&&t>=0?s(this.A,[C(e)]).slice(-t):s(this.A,[C(e)]),this.U(),this},n.prototype.clearBreadcrumbs=function(){return this.A=[],this.U(),this},n.prototype.B=function(n){n.fingerprint=n.fingerprint?Array.isArray(n.fingerprint)?n.fingerprint:[n.fingerprint]:[],this.$&&(n.fingerprint=n.fingerprint.concat(this.$)),n.fingerprint&&!n.fingerprint.length&&delete n.fingerprint},n.prototype.applyToEvent=function(n,t){return this.M&&Object.keys(this.M).length&&(n.extra=u({},this.M,n.extra)),this.L&&Object.keys(this.L).length&&(n.tags=u({},this.L,n.tags)),this.C&&Object.keys(this.C).length&&(n.user=u({},this.C,n.user)),this.F&&Object.keys(this.F).length&&(n.contexts=u({},this.F,n.contexts)),this.q&&(n.level=this.q),this.H&&(n.transaction=this.H),this.W&&(n.contexts=n.contexts||{},n.contexts.trace=this.W),this.B(n),n.breadcrumbs=s(n.breadcrumbs||[],this.A),n.breadcrumbs=n.breadcrumbs.length>0?n.breadcrumbs:void 0,this.P(s(G(),this.N),n,t)},n}();function G(){var n=b();return n.__SENTRY__=n.__SENTRY__||{},n.__SENTRY__.globalEventProcessors=n.__SENTRY__.globalEventProcessors||[],n.__SENTRY__.globalEventProcessors}function z(n){G().push(n)}var V=3,K=function(){function n(n,t,r){void 0===t&&(t=new X),void 0===r&&(r=V),this.J=r,this.X=[],this.X.push({client:n,scope:t})}return n.prototype.G=function(n){for(var t,r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];var i=this.getStackTop();i&&i.client&&i.client[n]&&(t=i.client)[n].apply(t,s(r,[i.scope]))},n.prototype.isOlderThan=function(n){return this.J<n},n.prototype.bindClient=function(n){this.getStackTop().client=n},n.prototype.pushScope=function(){var n=this.getStack(),t=n.length>0?n[n.length-1].scope:void 0,r=X.clone(t);return this.getStack().push({client:this.getClient(),scope:r}),r},n.prototype.popScope=function(){return void 0!==this.getStack().pop()},n.prototype.withScope=function(n){var t=this.pushScope();try{n(t)}finally{this.popScope()}},n.prototype.getClient=function(){return this.getStackTop().client},n.prototype.getScope=function(){return this.getStackTop().scope},n.prototype.getStack=function(){return this.X},n.prototype.getStackTop=function(){return this.X[this.X.length-1]},n.prototype.captureException=function(n,t){var r=this.V=w();return this.G("captureException",n,u({},t,{event_id:r})),r},n.prototype.captureMessage=function(n,t,r){var e=this.V=w();return this.G("captureMessage",n,t,u({},r,{event_id:e})),e},n.prototype.captureEvent=function(n,t){var r=this.V=w();return this.G("captureEvent",n,u({},t,{event_id:r})),r},n.prototype.lastEventId=function(){return this.V},n.prototype.addBreadcrumb=function(n,t){var r=this.getStackTop();if(r.scope&&r.client){var e=r.client.getOptions&&r.client.getOptions()||{},i=e.beforeBreadcrumb,o=void 0===i?null:i,c=e.maxBreadcrumbs,s=void 0===c?30:c;if(!(s<=0)){var a=(new Date).getTime()/1e3,f=u({timestamp:a},n),h=o?j(function(){return o(f,t)}):f;null!==h&&r.scope.addBreadcrumb(h,Math.min(s,100))}}},n.prototype.configureScope=function(n){var t=this.getStackTop();t.scope&&t.client&&n(t.scope)},n.prototype.run=function(n){var t=Q(this);try{n(this)}finally{Q(t)}},n.prototype.getIntegration=function(n){var t=this.getClient();if(!t)return null;try{return t.getIntegration(n)}catch(t){return k.warn("Cannot retrieve integration "+n.id+" from the current Hub"),null}},n.prototype.traceHeaders=function(){var n=this.getStackTop();if(n.scope&&n.client){var t=n.scope.getSpan();if(t)return{"sentry-trace":t.toTraceparent()}}return{}},n}();function Z(){var n=b();return n.__SENTRY__=n.__SENTRY__||{hub:void 0},n}function Q(n){var t=Z(),r=tn(t);return rn(t,n),r}function Y(){var n,t,r=Z();nn(r)&&!tn(r).isOlderThan(V)||rn(r,new K);try{var e=(n=module,t="domain",n.require(t)).active;if(!e)return tn(r);if(!nn(e)||tn(e).isOlderThan(V)){var i=tn(r).getStackTop();rn(e,new K(i.client,X.clone(i.scope)))}return tn(e)}catch(n){return tn(r)}}function nn(n){return!!(n&&n.__SENTRY__&&n.__SENTRY__.hub)}function tn(n){return n&&n.__SENTRY__&&n.__SENTRY__.hub?n.__SENTRY__.hub:(n.__SENTRY__=n.__SENTRY__||{},n.__SENTRY__.hub=new K,n.__SENTRY__.hub)}function rn(n,t){return!!n&&(n.__SENTRY__=n.__SENTRY__||{},n.__SENTRY__.hub=t,!0)}function en(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var e=Y();if(e&&e[n])return e[n].apply(e,s(t));throw new Error("No hub defined or "+n+" was not found on the hub, please open a bug report.")}function captureException(n){var t;try{throw new Error("Sentry syntheticException")}catch(n){t=n}return en("captureException",n,{originalException:n,syntheticException:t})}function on(n){en("withScope",n)}var un=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,cn=function(){function n(n){"string"==typeof n?this.K(n):this.Z(n),this.Y()}return n.prototype.toString=function(n){void 0===n&&(n=!1);var t=this,r=t.host,e=t.path,i=t.pass,o=t.port,u=t.projectId;return t.protocol+"://"+t.user+(n&&i?":"+i:"")+"@"+r+(o?":"+o:"")+"/"+(e?e+"/":e)+u},n.prototype.K=function(n){var t=un.exec(n);if(!t)throw new a("Invalid Dsn");var r=c(t.slice(1),6),e=r[0],i=r[1],o=r[2],u=void 0===o?"":o,s=r[3],f=r[4],h=void 0===f?"":f,l="",v=r[5],d=v.split("/");d.length>1&&(l=d.slice(0,-1).join("/"),v=d.pop()),Object.assign(this,{host:s,pass:u,path:l,projectId:v,port:h,protocol:e,user:i})},n.prototype.Z=function(n){this.protocol=n.protocol,this.user=n.user,this.pass=n.pass||"",this.host=n.host,this.port=n.port||"",this.path=n.path||"",this.projectId=n.projectId},n.prototype.Y=function(){var n=this;if(["protocol","user","host","projectId"].forEach(function(t){if(!n[t])throw new a("Invalid Dsn")}),"http"!==this.protocol&&"https"!==this.protocol)throw new a("Invalid Dsn");if(this.port&&Number.isNaN(parseInt(this.port,10)))throw new a("Invalid Dsn")},n}(),sn=function(){function n(n){this.dsn=n,this.nn=new cn(n)}return n.prototype.getDsn=function(){return this.nn},n.prototype.getStoreEndpoint=function(){return""+this.tn()+this.getStoreEndpointPath()},n.prototype.getStoreEndpointWithUrlEncodedAuth=function(){var n,t={sentry_key:this.nn.user,sentry_version:"7"};return this.getStoreEndpoint()+"?"+(n=t,Object.keys(n).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(n[t])}).join("&"))},n.prototype.tn=function(){var n=this.nn,t=n.protocol?n.protocol+":":"",r=n.port?":"+n.port:"";return t+"//"+n.host+r},n.prototype.getStoreEndpointPath=function(){var n=this.nn;return(n.path?"/"+n.path:"")+"/api/"+n.projectId+"/store/"},n.prototype.getRequestHeaders=function(n,t){var r=this.nn,e=["Sentry sentry_version=7"];return e.push("sentry_timestamp="+(new Date).getTime()),e.push("sentry_client="+n+"/"+t),e.push("sentry_key="+r.user),r.pass&&e.push("sentry_secret="+r.pass),{"Content-Type":"application/json","X-Sentry-Auth":e.join(", ")}},n.prototype.getReportDialogEndpoint=function(n){void 0===n&&(n={});var t=this.nn,r=this.tn()+(t.path?"/"+t.path:"")+"/api/embed/error-page/",e=[];for(var i in e.push("dsn="+t.toString()),n)if("user"===i){if(!n.user)continue;n.user.name&&e.push("name="+encodeURIComponent(n.user.name)),n.user.email&&e.push("email="+encodeURIComponent(n.user.email))}else e.push(encodeURIComponent(i)+"="+encodeURIComponent(n[i]));return e.length?r+"?"+e.join("&"):r},n}(),an=[];function fn(n){var t={};return function(n){var t=n.defaultIntegrations&&s(n.defaultIntegrations)||[],r=n.integrations,e=[];if(Array.isArray(r)){var i=r.map(function(n){return n.name}),o=[];t.forEach(function(n){-1===i.indexOf(n.name)&&-1===o.indexOf(n.name)&&(e.push(n),o.push(n.name))}),r.forEach(function(n){-1===o.indexOf(n.name)&&(e.push(n),o.push(n.name))})}else{if("function"!=typeof r)return s(t);e=r(t),e=Array.isArray(e)?e:[e]}return e}(n).forEach(function(n){t[n.name]=n,function(n){-1===an.indexOf(n.name)&&(n.setupOnce(z,Y),an.push(n.name),k.log("Integration installed: "+n.name))}(n)}),t}var hn,ln=function(){function n(n,t){this.rn=!1,this.en=new n(t),this.in=t,t.dsn&&(this.on=new cn(t.dsn)),this.un=fn(this.in)}return n.prototype.captureException=function(n,t,r){var e=this,i=t&&t.event_id;return this.rn=!0,this.cn().eventFromException(n,t).then(function(n){return e.sn(n,t,r)}).then(function(n){i=n&&n.event_id,e.rn=!1}).catch(function(n){k.error(n),e.rn=!1}),i},n.prototype.captureMessage=function(n,t,r,e){var i=this,o=r&&r.event_id;return this.rn=!0,(d(n)?this.cn().eventFromMessage(""+n,t,r):this.cn().eventFromException(n,r)).then(function(n){return i.sn(n,r,e)}).then(function(n){o=n&&n.event_id,i.rn=!1}).catch(function(n){k.error(n),i.rn=!1}),o},n.prototype.captureEvent=function(n,t,r){var e=this,i=t&&t.event_id;return this.rn=!0,this.sn(n,t,r).then(function(n){i=n&&n.event_id,e.rn=!1}).catch(function(n){k.error(n),e.rn=!1}),i},n.prototype.getDsn=function(){return this.on},n.prototype.getOptions=function(){return this.in},n.prototype.flush=function(n){var t=this;return this.an(n).then(function(r){return t.fn&&clearInterval(t.fn),t.cn().getTransport().close(n).then(function(n){return r&&n})})},n.prototype.close=function(n){var t=this;return this.flush(n).then(function(n){return t.getOptions().enabled=!1,n})},n.prototype.getIntegrations=function(){return this.un||{}},n.prototype.getIntegration=function(n){try{return this.un[n.id]||null}catch(t){return k.warn("Cannot retrieve integration "+n.id+" from the current Client"),null}},n.prototype.an=function(n){var t=this;return new Promise(function(r){var e=0;t.fn&&clearInterval(t.fn),t.fn=setInterval(function(){t.rn?(e+=1,n&&e>=n&&r(!1)):r(!0)},1)})},n.prototype.cn=function(){return this.en},n.prototype.hn=function(){return!1!==this.getOptions().enabled&&void 0!==this.on},n.prototype.ln=function(n,t,r){var e=this.getOptions(),i=e.environment,o=e.release,c=e.dist,s=e.maxValueLength,a=void 0===s?250:s,f=u({},n);void 0===f.environment&&void 0!==i&&(f.environment=i),void 0===f.release&&void 0!==o&&(f.release=o),void 0===f.dist&&void 0!==c&&(f.dist=c),f.message&&(f.message=F(f.message,a));var h=f.exception&&f.exception.values&&f.exception.values[0];h&&h.value&&(h.value=F(h.value,a));var l=f.request;l&&l.url&&(l.url=F(l.url,a)),void 0===f.event_id&&(f.event_id=w()),this.vn(f.sdk);var v=W.resolve(f);return t&&(v=t.applyToEvent(f,r)),v},n.prototype.vn=function(n){var t=Object.keys(this.un);n&&t.length>0&&(n.integrations=t)},n.prototype.sn=function(n,t,r){var e=this,i=this.getOptions(),o=i.beforeSend,u=i.sampleRate;return this.hn()?"number"==typeof u&&Math.random()>u?W.reject("This event has been sampled, will not send event."):new W(function(i,u){e.ln(n,r,t).then(function(n){if(null!==n){var r=n;try{if(t&&t.data&&!0===t.data.__sentry__||!o)return e.cn().sendEvent(r),void i(r);var c=o(n,t);if(void 0===c)k.error("`beforeSend` method has to return `null` or a valid event.");else if(m(c))e.dn(c,i,u);else{if(null===(r=c))return k.log("`beforeSend` returned `null`, will not send event."),void i(null);e.cn().sendEvent(r),i(r)}}catch(n){e.captureException(n,{data:{__sentry__:!0},originalException:n}),u("`beforeSend` throw an error, will not send event.")}}else u("An event processor returned null, will not send event.")})}):W.reject("SDK not enabled, will not send event.")},n.prototype.dn=function(n,t,r){var e=this;n.then(function(n){null!==n?(e.cn().sendEvent(n),t(n)):r("`beforeSend` returned `null`, will not send event.")}).catch(function(n){r("beforeSend rejected with "+n)})},n}(),vn=function(){function t(){}return t.prototype.sendEvent=function(t){return Promise.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:n.Status.Skipped})},t.prototype.close=function(n){return Promise.resolve(!0)},t}(),dn=function(){function n(n){this.in=n,this.in.dsn||k.warn("No DSN provided, backend will not do anything."),this.pn=this.mn()}return n.prototype.mn=function(){return new vn},n.prototype.eventFromException=function(n,t){throw new a("Backend has to implement `eventFromException` method")},n.prototype.eventFromMessage=function(n,t,r){throw new a("Backend has to implement `eventFromMessage` method")},n.prototype.sendEvent=function(n){this.pn.sendEvent(n).catch(function(n){k.error("Error while sending event: "+n)})},n.prototype.getTransport=function(){return this.pn},n}();var pn=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){hn=Function.prototype.toString,Function.prototype.toString=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=this.__sentry__?this.__sentry_original__:this;return hn.apply(r,n)}},n.id="FunctionToString",n}(),mn=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],yn=function(){function n(t){void 0===t&&(t={}),this.in=t,this.name=n.id}return n.prototype.setupOnce=function(){z(function(t){var r=Y();if(!r)return t;var e=r.getIntegration(n);if(e){var i=r.getClient(),o=i?i.getOptions():{},u=e.yn(o);if(e.bn(t,u))return null}return t})},n.prototype.bn=function(n,t){return this.wn(n,t)?(k.warn("Event dropped due to being internal Sentry Error.\nEvent: "+E(n)),!0):this.gn(n,t)?(k.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+E(n)),!0):this.En(n,t)?(k.warn("Event dropped due to being matched by `blacklistUrls` option.\nEvent: "+E(n)+".\nUrl: "+this.jn(n)),!0):!this.xn(n,t)&&(k.warn("Event dropped due to not being matched by `whitelistUrls` option.\nEvent: "+E(n)+".\nUrl: "+this.jn(n)),!0)},n.prototype.wn=function(n,t){if(void 0===t&&(t={}),!t.ignoreInternal)return!1;try{return"SentryError"===n.exception.values[0].type}catch(n){return!1}},n.prototype.gn=function(n,t){return void 0===t&&(t={}),!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._n(n).some(function(n){return t.ignoreErrors.some(function(t){return $(n,t)})})},n.prototype.En=function(n,t){if(void 0===t&&(t={}),!t.blacklistUrls||!t.blacklistUrls.length)return!1;var r=this.jn(n);return!!r&&t.blacklistUrls.some(function(n){return $(r,n)})},n.prototype.xn=function(n,t){if(void 0===t&&(t={}),!t.whitelistUrls||!t.whitelistUrls.length)return!0;var r=this.jn(n);return!r||t.whitelistUrls.some(function(n){return $(r,n)})},n.prototype.yn=function(n){return void 0===n&&(n={}),{blacklistUrls:s(this.in.blacklistUrls||[],n.blacklistUrls||[]),ignoreErrors:s(this.in.ignoreErrors||[],n.ignoreErrors||[],mn),ignoreInternal:void 0===this.in.ignoreInternal||this.in.ignoreInternal,whitelistUrls:s(this.in.whitelistUrls||[],n.whitelistUrls||[])}},n.prototype._n=function(n){if(n.message)return[n.message];if(n.exception)try{var t=n.exception.values[0],r=t.type,e=t.value;return[""+e,r+": "+e]}catch(t){return k.error("Cannot extract message for event "+E(n)),[]}return[]},n.prototype.jn=function(n){try{if(n.stacktrace){var t=n.stacktrace.frames;return t[t.length-1].filename}if(n.exception){var r=n.exception.values[0].stacktrace.frames;return r[r.length-1].filename}return null}catch(t){return k.error("Cannot extract url for event "+E(n)),null}},n.id="InboundFilters",n}(),bn=Object.freeze({FunctionToString:pn,InboundFilters:yn}),wn=b(),gn={Sn:!1,On:!1,kn:!1,Tn:!1},En="?",jn=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function xn(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function _n(){return"undefined"==typeof document||null==document.location?"":document.location.href}gn.Sn=function(){var n,t,r=[],e=null,i=null;function o(n,t,e){var i=null;if(!t||gn.On){for(var o in r)if(xn(r,o))try{r[o](n,t,e)}catch(n){i=n}if(i)throw i}}function c(t,r,e,c,s){var l=null;if(s=h(s)?s.error:s,t=h(t)?t.message:t,i)gn.kn.Rn(i,r,e,t),a();else if(s&&f(s))(l=gn.kn(s)).mechanism="onerror",o(l,!0,s);else{var v,d={url:r,line:e,column:c},p=t;if("[object String]"==={}.toString.call(t)){var m=t.match(jn);m&&(v=m[1],p=m[2])}d.func=En,d.context=null,o(l={name:v,message:p,mode:"onerror",mechanism:"onerror",stack:[u({},d,{url:d.url||_n()})]},!0,null)}return!!n&&n.apply(this,arguments)}function s(n){var t=n&&(n.detail?n.detail.reason:n.reason)||n,r=gn.kn(t);r.mechanism="onunhandledrejection",r.message||(r.message=JSON.stringify(C(t))),o(r,!0,t)}function a(){var n=i,t=e;i=null,e=null,o(n,!1,t)}function l(n){if(i){if(e===n)return;a()}var t=gn.kn(n);throw i=t,e=n,setTimeout(function(){e===n&&a()},t.incomplete?2e3:0),n}return l.Dn=function(n){r.push(n)},l.In=function(){!0!==t&&(n=wn.onerror,wn.onerror=c,t=!0)},l.Nn=function(){wn.onunhandledrejection=s},l}(),gn.kn=function(){function n(n){if(!n||!n.stack)return null;for(var t,r,e,i=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,u=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,c=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,s=/\((\S*)(?::(\d+))(?::(\d+))\)/,a=n.stack.split("\n"),f=[],h=/^(.*) is undefined$/.exec(n.message),l=0,v=a.length;l<v;++l){if(r=i.exec(a[l])){var d=r[2]&&0===r[2].indexOf("native");r[2]&&0===r[2].indexOf("eval")&&(t=s.exec(r[2]))&&(r[2]=t[1],r[3]=t[2],r[4]=t[3]),e={url:r[2],func:r[1]||En,args:d?[r[2]]:[],line:r[3]?+r[3]:null,column:r[4]?+r[4]:null}}else if(r=u.exec(a[l]))e={url:r[2],func:r[1]||En,args:[],line:+r[3],column:r[4]?+r[4]:null};else{if(!(r=o.exec(a[l])))continue;r[3]&&r[3].indexOf(" > eval")>-1&&(t=c.exec(r[3]))?(r[1]=r[1]||"eval",r[3]=t[1],r[4]=t[2],r[5]=""):0!==l||r[5]||void 0===n.columnNumber||(f[0].column=n.columnNumber+1),e={url:r[3],func:r[1]||En,args:r[2]?r[2].split(","):[],line:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}!e.func&&e.line&&(e.func=En),e.context=null,f.push(e)}return f.length?(f[0]&&f[0].line&&!f[0].column&&h&&(f[0].column=null),{mode:"stack",name:n.name,message:n.message,stack:f}):null}function t(n,t,r,e){var i={url:t,line:r};if(i.url&&i.line){if(n.incomplete=!1,i.func||(i.func=En),i.context||(i.context=null),/ '([^']+)' /.exec(e)&&(i.column=null),n.stack.length>0&&n.stack[0].url===i.url){if(n.stack[0].line===i.line)return!1;if(!n.stack[0].line&&n.stack[0].func===i.func)return n.stack[0].line=i.line,n.stack[0].context=i.context,!1}return n.stack.unshift(i),n.partial=!0,!0}return n.incomplete=!0,!1}function r(n,e){for(var i,o,u=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,c=[],s={},a=!1,f=r.caller;f&&!a;f=f.caller)if(f!==Tn&&f!==gn.Sn){if(o={url:null,func:En,args:[],line:null,column:null},f.name?o.func=f.name:(i=u.exec(f.toString()))&&(o.func=i[1]),void 0===o.func)try{o.func=i.input.substring(0,i.input.indexOf("{"))}catch(n){}s[""+f]?a=!0:s[""+f]=!0,c.push(o)}e&&c.splice(0,e);var h={mode:"callers",name:n.name,message:n.message,stack:c};return t(h,n.sourceURL||n.fileName,n.line||n.lineNumber,n.message||n.description),h}function e(t,e){var i=null;e=null==e?0:+e;try{if(i=function(n){var t=n.stacktrace;if(t){for(var r,e=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,o=t.split("\n"),u=[],c=0;c<o.length;c+=2){var s=null;(r=e.exec(o[c]))?s={url:r[2],line:+r[1],column:null,func:r[3],args:[]}:(r=i.exec(o[c]))&&(s={url:r[6],line:+r[1],column:+r[2],func:r[3]||r[4],args:r[5]?r[5].split(","):[]}),s&&(!s.func&&s.line&&(s.func=En),s.line&&(s.context=null),s.context||(s.context=[o[c+1]]),u.push(s))}return u.length?{mode:"stacktrace",name:n.name,message:n.message,stack:u}:null}}(t))return i}catch(n){}try{if(i=n(t))return i}catch(n){}try{if(i=function(n){var t=n.message.split("\n");if(t.length<4)return null;var r,e=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,i=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,o=/^\s*Line (\d+) of function script\s*$/i,u=[],c=wn&&wn.document&&wn.document.getElementsByTagName("script"),s=[];for(var a in c)xn(c,a)&&!c[a].src&&s.push(c[a]);for(var f=2;f<t.length;f+=2){var h=null;(r=e.exec(t[f]))?h={url:r[2],func:r[3],args:[],line:+r[1],column:null}:(r=i.exec(t[f]))?h={url:r[3],func:r[4],args:[],line:+r[1],column:null}:(r=o.exec(t[f]))&&(h={url:_n().replace(/#.*$/,""),func:"",args:[],line:r[1],column:null}),h&&(h.func||(h.func=En),h.context=[t[f+1]],u.push(h))}return u.length?{mode:"multiline",name:n.name,message:t[0],stack:u}:null}(t))return i}catch(n){}try{if(i=r(t,e+1))return i}catch(n){}return{original:t,name:t.name,message:t.message,mode:"failed"}}return e.Rn=t,e.An=n,e}(),gn.On=!0,gn.Tn=11;var Sn=gn.Sn.Dn,On=gn.Sn.In,kn=gn.Sn.Nn,Tn=gn.kn,Rn=50;function Dn(n){var t=Nn(n.stack),r={type:n.name,value:n.message};return t&&t.length&&(r.stacktrace={frames:t}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function In(n){return{exception:{values:[Dn(n)]}}}function Nn(n){if(!n||!n.length)return[];var t=n,r=t[0].func||"",e=t[t.length-1].func||"";return(r.includes("captureMessage")||r.includes("captureException"))&&(t=t.slice(1)),e.includes("sentryWrapped")&&(t=t.slice(0,-1)),t.map(function(n){return{colno:n.column,filename:n.url||t[0].url,function:n.func||"?",in_app:!0,lineno:n.line}}).slice(0,Rn).reverse()}var An,Cn,Ln=function(){function n(n){this.options=n,this.h=new M(30),this.url=new sn(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}return n.prototype.sendEvent=function(n){throw new a("Transport Class has to implement `sendEvent` method")},n.prototype.close=function(n){return this.h.drain(n)},n}(),Mn=b(),Fn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.sendEvent=function(t){var r={body:JSON.stringify(t),method:"POST",referrerPolicy:H()?"origin":""};return this.h.add(Mn.fetch(this.url,r).then(function(t){return{status:n.Status.fromHttpCode(t.status)}}))},e}(Ln),Un=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.sendEvent=function(t){var r=this;return this.h.add(new Promise(function(e,i){var o=new XMLHttpRequest;o.onreadystatechange=function(){4===o.readyState&&(200===o.status&&e({status:n.Status.fromHttpCode(o.status)}),i(o))},o.open("POST",r.url),o.send(JSON.stringify(t))}))},e}(Ln),Pn=Object.freeze({BaseTransport:Ln,FetchTransport:Fn,XHRTransport:Un}),$n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.mn=function(){if(!this.in.dsn)return t.prototype.mn.call(this);var n=this.in.transportOptions?this.in.transportOptions:{dsn:this.in.dsn};return this.in.transport?new this.in.transport(n):q()?new Fn(n):new Un(n)},e.prototype.eventFromException=function(t,r){var e,i,o=this;if(h(t)&&t.error)return t=t.error,e=In(Tn(t)),W.resolve(this.Cn(e,r));if(l(t)||(i=t,"[object DOMException]"===Object.prototype.toString.call(i))){var u=t,c=u.name||(l(u)?"DOMError":"DOMException"),s=u.message?c+": "+u.message:c;return this.eventFromMessage(s,n.Severity.Error,r).then(function(n){return x(n,s),W.resolve(o.Cn(n,r))})}if(f(t))return e=In(Tn(t)),W.resolve(this.Cn(e,r));if(p(t)&&r&&r.syntheticException)return x(e=function(n,t){var r=Object.keys(n).sort(),e={extra:{__serialized__:I(n)},message:"Non-Error exception captured with keys: "+P(r)};if(t){var i=Nn(Tn(t).stack);e.stacktrace={frames:i}}return e}(t,r.syntheticException),"Custom Object",void 0,{handled:!0,synthetic:!0,type:"generic"}),e.level=n.Severity.Error,W.resolve(this.Cn(e,r));var a=t;return this.eventFromMessage(a,void 0,r).then(function(t){return x(t,""+a,void 0,{handled:!0,synthetic:!0,type:"generic"}),t.level=n.Severity.Error,W.resolve(o.Cn(t,r))})},e.prototype.Cn=function(n,t){return u({},n,{event_id:t&&t.event_id})},e.prototype.eventFromMessage=function(t,r,e){void 0===r&&(r=n.Severity.Info);var i={event_id:e&&e.event_id,level:r,message:t};if(this.in.attachStacktrace&&e&&e.syntheticException){var o=Nn(Tn(e.syntheticException).stack);i.stacktrace={frames:o}}return W.resolve(i)},e}(dn),qn="sentry.javascript.browser",Hn=function(n){function t(t){return void 0===t&&(t={}),n.call(this,$n,t)||this}return r(t,n),t.prototype.ln=function(t,r,e){return t.platform=t.platform||"javascript",t.sdk=u({},t.sdk,{name:qn,packages:s(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:"5.3.0"}]),version:"5.3.0"}),n.prototype.ln.call(this,t,r,e)},t.prototype.showReportDialog=function(n){void 0===n&&(n={});var t=b().document;if(t)if(this.hn()){var r=n.dsn||this.getDsn();if(n.eventId)if(r){var e=t.createElement("script");e.async=!0,e.src=new sn(r).getReportDialogEndpoint(n),n.onLoad&&(e.onload=n.onLoad),(t.head||t.body).appendChild(e)}else k.error("Missing `Dsn` option in showReportDialog call");else k.error("Missing `eventId` option in showReportDialog call")}else k.error("Trying to call showReportDialog with Sentry Client is disabled")},t}(ln),Wn=1e3,Bn=0;function Jn(n,t,r){if(void 0===t&&(t={}),"function"!=typeof n)return n;try{if(n.__sentry__)return n;if(n.__sentry_wrapped__)return n.__sentry_wrapped__}catch(t){return n}var sentryWrapped=function(){r&&"function"==typeof r&&r.apply(this,arguments);var e=Array.prototype.slice.call(arguments);try{var i=e.map(function(n){return Jn(n,t)});return n.handleEvent?n.handleEvent.apply(this,i):n.apply(this,i)}catch(n){throw Bn+=1,setTimeout(function(){Bn-=1}),on(function(r){r.addEventProcessor(function(n){var r=u({},n);return t.mechanism&&x(r,void 0,void 0,t.mechanism),r.extra=u({},r.extra,{arguments:C(e,3)}),r}),captureException(n)}),n}};try{for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(sentryWrapped[e]=n[e])}catch(n){}n.prototype=n.prototype||{},sentryWrapped.prototype=n.prototype,Object.defineProperty(n,"__sentry_wrapped__",{enumerable:!1,value:sentryWrapped}),Object.defineProperties(sentryWrapped,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:n}});try{Object.defineProperty(sentryWrapped,"name",{get:function(){return n.name}})}catch(n){}return sentryWrapped}var Xn=0;function Gn(n,t){return void 0===t&&(t=!1),function(r){if(An=void 0,r&&Cn!==r){Cn=r;var e=function(){var t;try{t=r.target?Vn(r.target):Vn(r)}catch(n){t="<unknown>"}0!==t.length&&Y().addBreadcrumb({category:"ui."+n,message:t},{event:r,name:n})};Xn&&clearTimeout(Xn),t?Xn=setTimeout(e):e()}}}function zn(){return function(n){var t;try{t=n.target}catch(n){return}var r=t&&t.tagName;r&&("INPUT"===r||"TEXTAREA"===r||t.isContentEditable)&&(An||Gn("input")(n),clearTimeout(An),An=setTimeout(function(){An=void 0},Wn))}}function Vn(n){for(var t,r=n,e=[],i=0,o=0,u=" > ".length;r&&i++<5&&!("html"===(t=Kn(r))||i>1&&o+e.length*u+t.length>=80);)e.push(t),o+=t.length,r=r.parentNode;return e.reverse().join(" > ")}function Kn(n){var t,r,e,i,o,u=[];if(!n||!n.tagName)return"";if(u.push(n.tagName.toLowerCase()),n.id&&u.push("#"+n.id),(t=n.className)&&v(t))for(r=t.split(/\s+/),o=0;o<r.length;o++)u.push("."+r[o]);var c=["type","name","title","alt"];for(o=0;o<c.length;o++)e=c[o],(i=n.getAttribute(e))&&u.push("["+e+'="'+i+'"]');return u.join("")}var Zn=function(){function n(t){this.name=n.id,this.in=u({onerror:!0,onunhandledrejection:!0},t)}return n.prototype.setupOnce=function(){Error.stackTraceLimit=50,Sn(function(t,r,e){if(!(Bn>0)){var i=Y().getIntegration(n);i&&Y().captureEvent(i.Ln(t),{data:{stack:t},originalException:e})}}),this.in.onerror&&(k.log("Global Handler attached: onerror"),On()),this.in.onunhandledrejection&&(k.log("Global Handler attached: onunhandledrejection"),kn())},n.prototype.Ln=function(n){if(!v(n.message)&&"onunhandledrejection"!==n.mechanism){var t=n.message;n.message=t.error&&v(t.error.message)?t.error.message:"No error message"}var r=In(n),e={mode:n.mode};n.message&&(e.message=n.message),n.name&&(e.name=n.name);var i=Y().getClient(),o=i&&i.getOptions().maxValueLength||250;return x(r,n.original?F(JSON.stringify(C(n.original)),o):"","onunhandledrejection"===n.mechanism?"UnhandledRejection":"Error",{data:e,handled:!1,type:n.mechanism}),r},n.id="GlobalHandlers",n}(),Qn=function(){function n(){this.Mn=0,this.name=n.id}return n.prototype.Fn=function(n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var e=t[0];return t[0]=Jn(e,{mechanism:{data:{function:Yn(n)},handled:!0,type:"instrument"}}),n.apply(this,t)}},n.prototype.Un=function(n){return function(t){return n(Jn(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Yn(n)},handled:!0,type:"instrument"}}))}},n.prototype.Pn=function(n){var t=b(),r=t[n]&&t[n].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(R(r,"addEventListener",function(t){return function(r,e,i){try{e.handleEvent=Jn(e.handleEvent.bind(e),{mechanism:{data:{function:"handleEvent",handler:Yn(e),target:n},handled:!0,type:"instrument"}})}catch(n){}return t.call(this,r,Jn(e,{mechanism:{data:{function:"addEventListener",handler:Yn(e),target:n},handled:!0,type:"instrument"}}),i)}}),R(r,"removeEventListener",function(n){return function(t,r,e){var i=r;try{i=i&&(i.__sentry_wrapped__||i)}catch(n){}return n.call(this,t,i,e)}}))},n.prototype.setupOnce=function(){this.Mn=this.Mn;var n=b();R(n,"setTimeout",this.Fn.bind(this)),R(n,"setInterval",this.Fn.bind(this)),R(n,"requestAnimationFrame",this.Un.bind(this)),["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"].forEach(this.Pn.bind(this))},n.id="TryCatch",n}();function Yn(n){try{return n&&n.name||"<anonymous>"}catch(n){return"<anonymous>"}}var nt,tt=b(),rt=function(){function t(n){this.name=t.id,this.in=u({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},n)}return t.prototype.$n=function(){"console"in tt&&["debug","info","warn","error","log","assert"].forEach(function(r){r in tt.console&&R(tt.console,r,function(e){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var u={category:"console",data:{extra:{arguments:C(i,3)},logger:"console"},level:n.Severity.fromString(r),message:U(i," ")};"assert"===r&&!1===i[0]&&(u.message="Assertion failed: "+(U(i.slice(1)," ")||"console.assert"),u.data.extra.arguments=C(i.slice(1),3)),t.addBreadcrumb(u,{input:i,level:r}),e&&Function.prototype.apply.call(e,tt.console,i)}})})},t.prototype.qn=function(){"document"in tt&&(tt.document.addEventListener("click",Gn("click"),!1),tt.document.addEventListener("keypress",zn(),!1),["EventTarget","Node"].forEach(function(n){var t=tt[n]&&tt[n].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(R(t,"addEventListener",function(n){return function(t,r,e){return r&&r.handleEvent?("click"===t&&R(r,"handleEvent",function(n){return function(t){return Gn("click")(t),n.call(this,t)}}),"keypress"===t&&R(r,"handleEvent",zn())):("click"===t&&Gn("click",!0)(this),"keypress"===t&&zn()(this)),n.call(this,t,r,e)}}),R(t,"removeEventListener",function(n){return function(t,r,e){var i=r;try{i=i&&(i.__sentry_wrapped__||i)}catch(n){}return n.call(this,t,i,e)}}))}))},t.prototype.Hn=function(){q()&&-1!==b().fetch.toString().indexOf("native")&&R(tt,"fetch",function(r){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o,u=e[0],c="GET";"string"==typeof u?o=u:"Request"in tt&&u instanceof Request?(o=u.url,u.method&&(c=u.method)):o=String(u),e[1]&&e[1].method&&(c=e[1].method);var s=Y().getClient(),a=s&&s.getDsn();if(a){var f=new sn(a).getStoreEndpoint();if(f&&o.includes(f))return"POST"===c&&e[1]&&e[1].body&&et(e[1].body),r.apply(tt,e)}var h={method:c,url:o};return r.apply(tt,e).then(function(n){return h.status_code=n.status,t.addBreadcrumb({category:"fetch",data:h,type:"http"},{input:e,response:n}),n}).catch(function(r){throw t.addBreadcrumb({category:"fetch",data:h,level:n.Severity.Error,type:"http"},{error:r,input:e}),r})}})},t.prototype.Wn=function(){var n=this;if(r=b(),e=r.chrome,i=e&&e.app&&e.app.runtime,o="history"in r&&!!r.history.pushState&&!!r.history.replaceState,!i&&o){var r,e,i,o,u=function(n,r){var e=g(tt.location.href),i=g(r),o=g(n);o.path||(o=e),nt=r,e.protocol===i.protocol&&e.host===i.host&&(r=i.relative),e.protocol===o.protocol&&e.host===o.host&&(n=o.relative),t.addBreadcrumb({category:"navigation",data:{from:n,to:r}})},c=tt.onpopstate;tt.onpopstate=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var e=tt.location.href;if(u(nt,e),c)return c.apply(n,t)},R(tt.history,"pushState",s),R(tt.history,"replaceState",s)}function s(n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var e=t.length>2?t[2]:void 0;return e&&u(nt,String(e)),n.apply(this,t)}}},t.prototype.Bn=function(){if("XMLHttpRequest"in tt){var n=XMLHttpRequest.prototype;R(n,"open",function(n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var e=t[1];this.__sentry_xhr__={method:t[0],url:t[1]};var i=Y().getClient(),o=i&&i.getDsn();if(o){var u=new sn(o).getStoreEndpoint();v(e)&&u&&e.includes(u)&&(this.__sentry_own_request__=!0)}return n.apply(this,t)}}),R(n,"send",function(n){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i=this;function o(){if(4===i.readyState){if(i.__sentry_own_request__)return;try{i.__sentry_xhr__&&(i.__sentry_xhr__.status_code=i.status)}catch(n){}t.addBreadcrumb({category:"xhr",data:i.__sentry_xhr__,type:"http"},{xhr:i})}}return i.__sentry_own_request__&&et(r[0]),["onload","onerror","onprogress"].forEach(function(n){!function(n,t){n in t&&"function"==typeof t[n]&&R(t,n,function(t){return Jn(t,{mechanism:{data:{function:n,handler:t&&t.name||"<anonymous>"},handled:!0,type:"instrument"}})})}(n,i)}),"onreadystatechange"in i&&"function"==typeof i.onreadystatechange?R(i,"onreadystatechange",function(n){return Jn(n,{mechanism:{data:{function:"onreadystatechange",handler:n&&n.name||"<anonymous>"},handled:!0,type:"instrument"}},o)}):i.onreadystatechange=o,n.apply(this,r)}})}},t.addBreadcrumb=function(n,r){Y().getIntegration(t)&&Y().addBreadcrumb(n,r)},t.prototype.setupOnce=function(){this.in.console&&this.$n(),this.in.dom&&this.qn(),this.in.xhr&&this.Bn(),this.in.fetch&&this.Hn(),this.in.history&&this.Wn()},t.id="Breadcrumbs",t}();function et(t){try{var r=JSON.parse(t);rt.addBreadcrumb({category:"sentry",event_id:r.event_id,level:r.level||n.Severity.fromString("error"),message:E(r)},{event:r})}catch(n){k.error("Error while adding sentry type breadcrumb")}}var it="cause",ot=5,ut=function(){function n(t){void 0===t&&(t={}),this.name=n.id,this.Jn=t.key||it,this.s=t.limit||ot}return n.prototype.setupOnce=function(){z(function(t,r){var e=Y().getIntegration(n);return e?e.Xn(t,r):t})},n.prototype.Xn=function(n,t){if(!(n.exception&&n.exception.values&&t&&t.originalException instanceof Error))return n;var r=this.Gn(t.originalException,this.Jn);return n.exception.values=s(r,n.exception.values),n},n.prototype.Gn=function(n,t,r){if(void 0===r&&(r=[]),!(n[t]instanceof Error)||r.length+1>=this.s)return r;var e=Dn(Tn(n[t]));return this.Gn(n[t],t,s([e],r))},n.id="LinkedErrors",n}(),ct=b(),st=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){z(function(t){if(Y().getIntegration(n)){if(!ct.navigator||!ct.location)return t;var r=t.request||{};return r.url=r.url||ct.location.href,r.headers=r.headers||{},r.headers["User-Agent"]=ct.navigator.userAgent,u({},t,{request:r})}return t})},n.id="UserAgent",n}(),at=Object.freeze({GlobalHandlers:Zn,TryCatch:Qn,Breadcrumbs:rt,LinkedErrors:ut,UserAgent:st}),ft=[new yn,new pn,new Qn,new rt,new Zn,new ut,new st];var ht={},lt=b();lt.Sentry&&lt.Sentry.Integrations&&(ht=lt.Sentry.Integrations);var vt=u({},ht,bn,at);return n.BrowserClient=Hn,n.Hub=K,n.Integrations=vt,n.SDK_NAME=qn,n.SDK_VERSION="5.3.0",n.Scope=X,n.Transports=Pn,n.addBreadcrumb=function(n){en("addBreadcrumb",n)},n.addGlobalEventProcessor=z,n.captureEvent=function(n){return en("captureEvent",n)},n.captureException=captureException,n.captureMessage=function(n,t){var r;try{throw new Error(n)}catch(n){r=n}return en("captureMessage",n,t,{originalException:n,syntheticException:r})},n.close=function(n){var t=Y().getClient();return t?t.close(n):Promise.reject(!1)},n.configureScope=function(n){en("configureScope",n)},n.defaultIntegrations=ft,n.flush=function(n){var t=Y().getClient();return t?t.flush(n):Promise.reject(!1)},n.forceLoad=function(){},n.getCurrentHub=Y,n.getHubFromCarrier=tn,n.init=function(n){void 0===n&&(n={}),void 0===n.defaultIntegrations&&(n.defaultIntegrations=ft),function(n,t){!0===t.debug&&k.enable(),Y().bindClient(new n(t))}(Hn,n)},n.lastEventId=function(){return Y().lastEventId()},n.onLoad=function(n){n()},n.showReportDialog=function(n){void 0===n&&(n={}),n.eventId||(n.eventId=Y().lastEventId());var t=Y().getClient();t&&t.showReportDialog(n)},n.withScope=on,n.wrap=function(n){Jn(n)()},n}({});
//# sourceMappingURL=bundle.min.js.map

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ var tslib_1 = require("tslib");

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ var tslib_1 = require("tslib");

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ var tslib_1 = require("tslib");

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ var tslib_1 = require("tslib");

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ var tslib_1 = require("tslib");

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ var tslib_1 = require("tslib");

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ var globalhandlers_1 = require("./globalhandlers");

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ var tslib_1 = require("tslib");

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ var utils_1 = require("@sentry/utils");

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ var tslib_1 = require("tslib");

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ var utils_1 = require("@sentry/utils");

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ var core_1 = require("@sentry/core");

@@ -35,3 +35,2 @@ /**

(ex: Error, depth?: string | number): StackTrace;
_computeStackTraceFromStackProp(ex: any): StackTrace;
}

@@ -38,0 +37,0 @@ declare const _subscribe: any;

@@ -1,2 +0,1 @@

"use strict";
// tslint:disable

@@ -212,2 +211,5 @@ Object.defineProperty(exports, "__esModule", { value: true });

stack.mechanism = 'onunhandledrejection';
if (!stack.message) {
stack.message = JSON.stringify(utils_1.normalize(err));
}
_notifyHandlers(stack, true, err);

@@ -398,3 +400,3 @@ }

// We need this specific case for now because we want no other regex to match.
gecko = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i, winjs = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,
gecko = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i, winjs = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,
// Used to additionally parse URL/line/column from eval frames

@@ -404,2 +406,3 @@ isEval, geckoEval = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, chromeEval = /\((\S*)(?::(\d+))(?::(\d+))\)/, lines = ex.stack.split('\n'), stack = [], submatch, parts, element, reference = /^(.*) is undefined$/.exec(ex.message);

if ((parts = chrome.exec(lines[i]))) {
var isNative = parts[2] && parts[2].indexOf('native') === 0; // start of line
isEval = parts[2] && parts[2].indexOf('eval') === 0; // start of line

@@ -415,3 +418,3 @@ if (isEval && (submatch = chromeEval.exec(parts[2]))) {

func: parts[1] || UNKNOWN_FUNCTION,
args: [],
args: isNative ? [parts[2]] : [],
line: parts[3] ? +parts[3] : null,

@@ -434,2 +437,3 @@ column: parts[4] ? +parts[4] : null,

// throw out eval line/column and use top-most line number
parts[1] = parts[1] || "eval";
parts[3] = submatch[1];

@@ -436,0 +440,0 @@ parts[4] = submatch[2];

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ var core_1 = require("@sentry/core");

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ var tslib_1 = require("tslib");

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ var base_1 = require("./base");

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +2,0 @@ var tslib_1 = require("tslib");

export declare const SDK_NAME = "sentry.javascript.browser";
export declare const SDK_VERSION = "5.2.1";
export declare const SDK_VERSION = "5.3.0";
//# sourceMappingURL=version.d.ts.map

@@ -1,5 +0,4 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SDK_NAME = 'sentry.javascript.browser';
exports.SDK_VERSION = '5.2.1';
exports.SDK_VERSION = '5.3.0';
//# sourceMappingURL=version.js.map

@@ -35,3 +35,2 @@ /**

(ex: Error, depth?: string | number): StackTrace;
_computeStackTraceFromStackProp(ex: any): StackTrace;
}

@@ -38,0 +37,0 @@ declare const _subscribe: any;

// tslint:disable
import * as tslib_1 from "tslib";
import { getGlobalObject, isError, isErrorEvent } from '@sentry/utils';
import { getGlobalObject, isError, isErrorEvent, normalize } from '@sentry/utils';
/**

@@ -210,2 +210,5 @@ * TraceKit - Cross brower stack traces

stack.mechanism = 'onunhandledrejection';
if (!stack.message) {
stack.message = JSON.stringify(normalize(err));
}
_notifyHandlers(stack, true, err);

@@ -396,3 +399,3 @@ }

// We need this specific case for now because we want no other regex to match.
gecko = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i, winjs = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,
gecko = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i, winjs = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,
// Used to additionally parse URL/line/column from eval frames

@@ -402,2 +405,3 @@ isEval, geckoEval = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, chromeEval = /\((\S*)(?::(\d+))(?::(\d+))\)/, lines = ex.stack.split('\n'), stack = [], submatch, parts, element, reference = /^(.*) is undefined$/.exec(ex.message);

if ((parts = chrome.exec(lines[i]))) {
var isNative = parts[2] && parts[2].indexOf('native') === 0; // start of line
isEval = parts[2] && parts[2].indexOf('eval') === 0; // start of line

@@ -413,3 +417,3 @@ if (isEval && (submatch = chromeEval.exec(parts[2]))) {

func: parts[1] || UNKNOWN_FUNCTION,
args: [],
args: isNative ? [parts[2]] : [],
line: parts[3] ? +parts[3] : null,

@@ -432,2 +436,3 @@ column: parts[4] ? +parts[4] : null,

// throw out eval line/column and use top-most line number
parts[1] = parts[1] || "eval";
parts[3] = submatch[1];

@@ -434,0 +439,0 @@ parts[4] = submatch[2];

export declare const SDK_NAME = "sentry.javascript.browser";
export declare const SDK_VERSION = "5.2.1";
export declare const SDK_VERSION = "5.3.0";
//# sourceMappingURL=version.d.ts.map
export var SDK_NAME = 'sentry.javascript.browser';
export var SDK_VERSION = '5.2.1';
export var SDK_VERSION = '5.3.0';
//# sourceMappingURL=version.js.map
{
"name": "@sentry/browser",
"version": "5.2.1",
"version": "5.3.0",
"description": "Official Sentry SDK for browsers",

@@ -19,5 +19,5 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"dependencies": {
"@sentry/core": "5.2.0",
"@sentry/core": "5.3.0",
"@sentry/types": "5.2.0",
"@sentry/utils": "5.2.0",
"@sentry/utils": "5.3.0",
"tslib": "^1.9.3"

@@ -24,0 +24,0 @@ },

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc