diff --git a/js/beestat.js b/js/beestat.js
index b5a988c..3f5cf8c 100644
--- a/js/beestat.js
+++ b/js/beestat.js
@@ -64,8 +64,17 @@ $.ready(function() {
moment.suppressDeprecationWarnings = true;
if (window.environment === 'live') {
Sentry.init({
+ 'release': window.commit,
'dsn': 'https://af9fd2cf6cda49dcb93dcaf02fe39fc6@sentry.io/3736982',
- 'ignoreErrors': ['window.webkit.messageHandlers']
+ 'ignoreErrors': ['window.webkit.messageHandlers'],
+ 'integrations': [
+ Sentry.replayIntegration({
+ maskAllText: false,
+ blockAllMedia: false,
+ }),
+ ],
+ 'replaysSessionSampleRate': 0.01, // 1%
+ 'replaysOnErrorSampleRate': 1.0, // 100%
});
}
(new beestat.layer.load()).render();
diff --git a/js/js.php b/js/js.php
index 48ccad2..00fc671 100755
--- a/js/js.php
+++ b/js/js.php
@@ -7,6 +7,7 @@ $setting = cora\setting::get_instance();
echo '';
echo '';
echo '';
+echo '';
if($setting->get('environment') === 'dev' || $setting->get('environment') === 'dev_live') {
// External libraries
diff --git a/js/lib/sentry/sentry.js b/js/lib/sentry/sentry.js
index f446eab..2248514 100644
--- a/js/lib/sentry/sentry.js
+++ b/js/lib/sentry/sentry.js
@@ -1,4 +1,10 @@
/* eslint-disable */
-/*! @sentry/browser 6.0.2 (6d7700c) | https://github.com/getsentry/sentry-javascript */
-var Sentry=function(t){var n=function(t,r){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])})(t,r)};function r(t,r){function e(){this.constructor=t}n(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}var e,i,o,u,s,c=function(){return(c=Object.assign||function(t){for(var n,r=1,e=arguments.length;r=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}function f(t,n){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var e,i,o=r.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(e=o.next()).done;)u.push(e.value)}catch(t){i={error:t}}finally{try{e&&!e.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return u}function h(){for(var t=[],n=0;n ".length,u=void 0;n&&e++<5&&!("html"===(u=j(n))||e>1&&i+r.length*o+u.length>=80);)r.push(u),i+=u.length,n=n.parentNode;return r.reverse().join(" > ")}catch(t){return""}}function j(t){var n,r,e,i,o,u=t,s=[];if(!u||!u.tagName)return"";if(s.push(u.tagName.toLowerCase()),u.id&&s.push("#"+u.id),(n=u.className)&&p(n))for(r=n.split(/\s+/),o=0;o=200&&n<300?t.Success:429===n?t.RateLimit:n>=400&&n<500?t.Invalid:n>=500?t.Failed:t.Unknown}}(t.Status||(t.Status={})),function(t){t.Explicit="explicitly_set",t.Sampler="client_sampler",t.Rate="client_rate",t.Inheritance="inheritance"}(s||(s={}));var _=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var r in n)t.hasOwnProperty(r)||(t[r]=n[r]);return t});var k=function(t){function n(n){var r=this.constructor,e=t.call(this,n)||this;return e.message=n,e.name=r.prototype.constructor.name,_(e,r.prototype),e}return r(n,t),n}(Error),S=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,O=function(){function t(t){"string"==typeof t?this.t(t):this.i(t),this.o()}return t.prototype.toString=function(t){void 0===t&&(t=!1);var n=this,r=n.host,e=n.path,i=n.pass,o=n.port,u=n.projectId;return n.protocol+"://"+n.user+(t&&i?":"+i:"")+"@"+r+(o?":"+o:"")+"/"+(e?e+"/":e)+u},t.prototype.t=function(t){var n=S.exec(t);if(!n)throw new k("Invalid Dsn");var r=f(n.slice(1),6),e=r[0],i=r[1],o=r[2],u=void 0===o?"":o,s=r[3],c=r[4],a=void 0===c?"":c,h="",v=r[5],l=v.split("/");if(l.length>1&&(h=l.slice(0,-1).join("/"),v=l.pop()),v){var d=v.match(/^\d+/);d&&(v=d[0])}this.i({host:s,pass:u,path:h,projectId:v,port:a,protocol:e,user:i})},t.prototype.i=function(t){this.protocol=t.protocol,this.user=t.user,this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId},t.prototype.o=function(){var t=this;if(["protocol","user","host","projectId"].forEach(function(n){if(!t[n])throw new k("Invalid Dsn: "+n+" missing")}),!this.projectId.match(/^\d+$/))throw new k("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new k("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new k("Invalid Dsn: Invalid port "+this.port)},t}(),T=function(){function t(){this.u="function"==typeof WeakSet,this.s=this.u?new WeakSet:[]}return t.prototype.memoize=function(t){if(this.u)return!!this.s.has(t)||(this.s.add(t),!1);for(var n=0;n";function R(t){try{return t&&"function"==typeof t&&t.name||D}catch(t){return D}}function I(t,n){return void 0===n&&(n=0),"string"!=typeof t||0===n?t:t.length<=n?t:t.substr(0,n)+"..."}function N(t,n){if(!Array.isArray(t))return"";for(var r=[],e=0;e"}try{o.currentTarget=w(i.currentTarget)?x(i.currentTarget):Object.prototype.toString.call(i.currentTarget)}catch(t){o.currentTarget=""}for(var e in"undefined"!=typeof CustomEvent&&E(t,CustomEvent)&&(o.detail=i.detail),i)Object.prototype.hasOwnProperty.call(i,e)&&(o[e]=i);return o}return t}function q(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function L(t,n,r){void 0===n&&(n=3),void 0===r&&(r=102400);var e=P(t,n);return q(e)>r?L(t,n-1,r):e}function U(t,n){return"domain"===n&&t&&"object"==typeof t&&t.h?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":m(r=t)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+R(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t;var r}function H(t,n,r,e){if(void 0===r&&(r=1/0),void 0===e&&(e=new T),0===r)return function(t){var n=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";var r=U(t);return y(r)?r:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var i=U(n,t);if(y(i))return i;var o=C(n),u=Array.isArray(n)?[]:{};if(e.memoize(n))return"[Circular ~]";for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(u[s]=H(s,o[s],r-1,e));return e.unmemoize(n),u}function P(t,n){try{return JSON.parse(JSON.stringify(t,function(t,r){return H(t,r,n)}))}catch(t){return"**non-serializable**"}}function F(t,n){void 0===n&&(n=40);var r=Object.keys(C(t));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=n)return I(r[0],n);for(var e=r.length;e>0;e--){var i=r.slice(0,e).join(", ");if(!(i.length>n))return e===r.length?i:I(i,n)}return""}function X(t){var n,r;if(m(t)){var e=t,i={};try{for(var o=a(Object.keys(e)),u=o.next();!u.done;u=o.next()){var s=u.value;void 0!==e[s]&&(i[s]=X(e[s]))}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}return Array.isArray(t)?t.map(X):t}function B(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var J={};function W(){return B()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:J}function $(){var t=W(),n=t.crypto||t.msCrypto;if(void 0!==n&&n.getRandomValues){var r=new Uint16Array(8);n.getRandomValues(r),r[3]=4095&r[3]|16384,r[4]=16383&r[4]|32768;var e=function(t){for(var n=t.toString(16);n.length<4;)n="0"+n;return n};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(t){var n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)})}function G(t){if(!t)return{};var n=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};var r=n[6]||"",e=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],relative:n[5]+r+e}}function z(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){var n=t.exception.values[0];return n.type&&n.value?n.type+": "+n.value:n.type||n.value||t.event_id||""}return t.event_id||""}function V(t){var n=W();if(!("console"in n))return t();var r=n.console,e={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&r[t].__sentry_original__&&(e[t]=r[t],r[t]=r[t].__sentry_original__)});var i=t();return Object.keys(e).forEach(function(t){r[t]=e[t]}),i}function K(t,n,r){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||n||"",t.exception.values[0].type=t.exception.values[0].type||r||"Error"}function Q(t,n){void 0===n&&(n={});try{t.exception.values[0].mechanism=t.exception.values[0].mechanism||{},Object.keys(n).forEach(function(r){t.exception.values[0].mechanism[r]=n[r]})}catch(t){}}var Y=6e4;var Z=W(),tt="Sentry Logger ",nt=function(){function t(){this.v=!1}return t.prototype.disable=function(){this.v=!1},t.prototype.enable=function(){this.v=!0},t.prototype.log=function(){for(var t=[],n=0;n2?n[2]:void 0;if(e){var i=ut,o=String(e);ut=o,vt("history",{from:i,to:o})}return t.apply(this,n)}}st.onpopstate=function(){for(var t=[],n=0;n0&&r(!1)},t);_t.all(n.T).then(function(){clearTimeout(e),r(!0)}).then(null,function(){r(!0)})})},t}(),St={nowSeconds:function(){return Date.now()/1e3}};var Ot=B()?function(){try{return(t=module,n="perf_hooks",t.require(n)).performance}catch(t){return}var t,n}():function(){var t=W().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),Tt=void 0===Ot?St:{nowSeconds:function(){return(Ot.timeOrigin+Ot.now())/1e3}},Dt=St.nowSeconds.bind(St),Rt=(Tt.nowSeconds.bind(Tt),function(){var t=W().performance;if(t)t.timeOrigin?t.timeOrigin:t.timing&&t.timing.navigationStart||Date.now()}(),function(){function t(){this.D=!1,this.R=[],this.I=[],this.N=[],this.M={},this.A={},this.C={},this.q={}}return t.clone=function(n){var r=new t;return n&&(r.N=h(n.N),r.A=c({},n.A),r.C=c({},n.C),r.q=c({},n.q),r.M=n.M,r.L=n.L,r.U=n.U,r.H=n.H,r.P=n.P,r.F=n.F,r.I=h(n.I)),r},t.prototype.addScopeListener=function(t){this.R.push(t)},t.prototype.addEventProcessor=function(t){return this.I.push(t),this},t.prototype.setUser=function(t){return this.M=t||{},this.H&&this.H.update({user:t}),this.X(),this},t.prototype.getUser=function(){return this.M},t.prototype.setTags=function(t){return this.A=c(c({},this.A),t),this.X(),this},t.prototype.setTag=function(t,n){var r;return this.A=c(c({},this.A),((r={})[t]=n,r)),this.X(),this},t.prototype.setExtras=function(t){return this.C=c(c({},this.C),t),this.X(),this},t.prototype.setExtra=function(t,n){var r;return this.C=c(c({},this.C),((r={})[t]=n,r)),this.X(),this},t.prototype.setFingerprint=function(t){return this.F=t,this.X(),this},t.prototype.setLevel=function(t){return this.L=t,this.X(),this},t.prototype.setTransactionName=function(t){return this.P=t,this.X(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,n){var r;return null===n?delete this.q[t]:this.q=c(c({},this.q),((r={})[t]=n,r)),this.X(),this},t.prototype.setSpan=function(t){return this.U=t,this.X(),this},t.prototype.getSpan=function(){return this.U},t.prototype.getTransaction=function(){var t,n,r,e,i=this.getSpan();return(null===(t=i)||void 0===t?void 0:t.transaction)?null===(n=i)||void 0===n?void 0:n.transaction:(null===(e=null===(r=i)||void 0===r?void 0:r.spanRecorder)||void 0===e?void 0:e.spans[0])?i.spanRecorder.spans[0]:void 0},t.prototype.setSession=function(t){return t?this.H=t:delete this.H,this.X(),this},t.prototype.getSession=function(){return this.H},t.prototype.update=function(n){if(!n)return this;if("function"==typeof n){var r=n(this);return r instanceof t?r:this}return n instanceof t?(this.A=c(c({},this.A),n.A),this.C=c(c({},this.C),n.C),this.q=c(c({},this.q),n.q),n.M&&Object.keys(n.M).length&&(this.M=n.M),n.L&&(this.L=n.L),n.F&&(this.F=n.F)):m(n)&&(n=n,this.A=c(c({},this.A),n.tags),this.C=c(c({},this.C),n.extra),this.q=c(c({},this.q),n.contexts),n.user&&(this.M=n.user),n.level&&(this.L=n.level),n.fingerprint&&(this.F=n.fingerprint)),this},t.prototype.clear=function(){return this.N=[],this.A={},this.C={},this.M={},this.q={},this.L=void 0,this.P=void 0,this.F=void 0,this.U=void 0,this.H=void 0,this.X(),this},t.prototype.addBreadcrumb=function(t,n){var r=c({timestamp:Dt()},t);return this.N=void 0!==n&&n>=0?h(this.N,[r]).slice(-n):h(this.N,[r]),this.X(),this},t.prototype.clearBreadcrumbs=function(){return this.N=[],this.X(),this},t.prototype.applyToEvent=function(t,n){var r;if(this.C&&Object.keys(this.C).length&&(t.extra=c(c({},this.C),t.extra)),this.A&&Object.keys(this.A).length&&(t.tags=c(c({},this.A),t.tags)),this.M&&Object.keys(this.M).length&&(t.user=c(c({},this.M),t.user)),this.q&&Object.keys(this.q).length&&(t.contexts=c(c({},this.q),t.contexts)),this.L&&(t.level=this.L),this.P&&(t.transaction=this.P),this.U){t.contexts=c({trace:this.U.getTraceContext()},t.contexts);var e=null===(r=this.U.transaction)||void 0===r?void 0:r.name;e&&(t.tags=c({transaction:e},t.tags))}return this.B(t),t.breadcrumbs=h(t.breadcrumbs||[],this.N),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this.J(h(It(),this.I),t,n)},t.prototype.J=function(t,n,r,e){var i=this;return void 0===e&&(e=0),new _t(function(o,u){var s=t[e];if(null===n||"function"!=typeof s)o(n);else{var a=s(c({},n),r);g(a)?a.then(function(n){return i.J(t,n,r,e+1).then(o)}).then(null,u):i.J(t,a,r,e+1).then(o).then(null,u)}})},t.prototype.X=function(){var t=this;this.D||(this.D=!0,this.R.forEach(function(n){n(t)}),this.D=!1)},t.prototype.B=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.F&&(t.fingerprint=t.fingerprint.concat(this.F)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}());function It(){var t=W();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function Nt(t){It().push(t)}var Mt=function(){function t(t){this.errors=0,this.sid=$(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=i.Ok,t&&this.update(t)}return t.prototype.update=function(t){void 0===t&&(t={}),t.user&&(t.user.ip_address&&(this.ipAddress=t.user.ip_address),t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||Date.now(),t.sid&&(this.sid=32===t.sid.length?t.sid:$()),t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),"number"==typeof t.duration?this.duration=t.duration:this.duration=this.timestamp-this.started,t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),t.ipAddress&&(this.ipAddress=t.ipAddress),t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):this.status===i.Ok?this.update({status:i.Exited}):this.update()},t.prototype.toJSON=function(){return X({sid:""+this.sid,init:!0,started:new Date(this.started).toISOString(),timestamp:new Date(this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:X({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},t}(),At=3,Ct=function(){function t(t,n,r){void 0===n&&(n=new Rt),void 0===r&&(r=At),this.W=r,this.$=[{}],this.getStackTop().scope=n,this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this.W=t&&(clearInterval(i),r(!1)))},1)})},t.prototype.ct=function(){return this.it},t.prototype.vt=function(){return!1!==this.getOptions().enabled&&void 0!==this.ut},t.prototype.dt=function(t,n,r){var e=this,i=this.getOptions().normalizeDepth,o=void 0===i?3:i,u=c(c({},t),{event_id:t.event_id||(r&&r.event_id?r.event_id:$()),timestamp:t.timestamp||Dt()});this.pt(u),this.yt(u);var s=n;r&&r.captureContext&&(s=Rt.clone(s).update(r.captureContext));var a=_t.resolve(u);return s&&(a=s.applyToEvent(u,r)),a.then(function(t){return"number"==typeof o&&o>0?e.bt(t,o):t})},t.prototype.bt=function(t,n){if(!t)return null;var r=c(c(c(c(c({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(function(t){return c(c({},t),t.data&&{data:P(t.data,n)})})}),t.user&&{user:P(t.user,n)}),t.contexts&&{contexts:P(t.contexts,n)}),t.extra&&{extra:P(t.extra,n)});return t.contexts&&t.contexts.trace&&(r.contexts.trace=t.contexts.trace),r},t.prototype.pt=function(t){var n=this.getOptions(),r=n.environment,e=n.release,i=n.dist,o=n.maxValueLength,u=void 0===o?250:o;"environment"in t||(t.environment="environment"in n?r:"production"),void 0===t.release&&void 0!==e&&(t.release=e),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=I(t.message,u));var s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=I(s.value,u));var c=t.request;c&&c.url&&(c.url=I(c.url,u))},t.prototype.yt=function(t){var n=t.sdk,r=Object.keys(this.rt);n&&r.length>0&&(n.integrations=r)},t.prototype.wt=function(t){this.ct().sendEvent(t)},t.prototype.at=function(t,n,r){return this.gt(t,n,r).then(function(t){return t.event_id},function(t){rt.error(t)})},t.prototype.gt=function(t,n,r){var e=this,i=this.getOptions(),o=i.beforeSend,u=i.sampleRate;if(!this.vt())return _t.reject(new k("SDK not enabled, will not send event."));var s="transaction"===t.type;return!s&&"number"==typeof u&&Math.random()>u?_t.reject(new k("Discarding event because it's not included in the random sample (sampling rate = "+u+")")):this.dt(t,r,n).then(function(t){if(null===t)throw new k("An event processor returned null, will not send event.");if(n&&n.data&&!0===n.data.__sentry__||s||!o)return t;var r=o(t,n);if(void 0===r)throw new k("`beforeSend` method has to return `null` or a valid event.");return g(r)?r.then(function(t){return t},function(t){throw new k("beforeSend rejected with "+t)}):r}).then(function(t){if(null===t)throw new k("`beforeSend` returned `null`, will not send event.");var n=r&&r.getSession&&r.getSession();return!s&&n&&e.lt(n,t),e.wt(t),t}).then(null,function(t){if(t instanceof k)throw t;throw e.captureException(t,{data:{__sentry__:!0},originalException:t}),new k("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)})},t.prototype.st=function(t){var n=this;this.et+=1,t.then(function(t){return n.et-=1,t},function(t){return n.et-=1,t})},t}(),zt=function(){function n(){}return n.prototype.sendEvent=function(n){return _t.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:t.Status.Skipped})},n.prototype.close=function(t){return _t.resolve(!0)},n}(),Vt=function(){function t(t){this.ot=t,this.ot.dsn||rt.warn("No DSN provided, backend will not do anything."),this.Et=this.xt()}return t.prototype.eventFromException=function(t,n){throw new k("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,n,r){throw new k("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){this.Et.sendEvent(t).then(null,function(t){rt.error("Error while sending event: "+t)})},t.prototype.sendSession=function(t){this.Et.sendSession?this.Et.sendSession(t).then(null,function(t){rt.error("Error while sending session: "+t)}):rt.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this.Et},t.prototype.xt=function(){return new zt},t}();function Kt(t){if(t.metadata&&t.metadata.sdk){var n=t.metadata.sdk;return{name:n.name,version:n.version}}}function Qt(t,n){return n?(t.sdk=t.sdk||{name:n.name,version:n.version},t.sdk.name=t.sdk.name||n.name,t.sdk.version=t.sdk.version||n.version,t.sdk.integrations=h(t.sdk.integrations||[],n.integrations||[]),t.sdk.packages=h(t.sdk.packages||[],n.packages||[]),t):t}function Yt(t,n){var r=Kt(n);return{body:JSON.stringify(c({sent_at:(new Date).toISOString()},r&&{sdk:r}))+"\n"+JSON.stringify({type:"session"})+"\n"+JSON.stringify(t),type:"session",url:n.getEnvelopeEndpointWithUrlEncodedAuth()}}function Zt(t,n){var r=t.tags||{},e=r.__sentry_samplingMethod,i=r.__sentry_sampleRate,o=function(t,n){var r={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0&&(r[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(e=Object.getOwnPropertySymbols(t);i|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,an=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. \/=]+)(?::(\d+))?(?::(\d+))?\s*$/i,fn=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,hn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,vn=/\((\S*)(?::(\d+))(?::(\d+))\)/,ln=/Minified React error #\d+;/i;function dn(t){var n=null,r=0;t&&("number"==typeof t.framesToPop?r=t.framesToPop:ln.test(t.message)&&(r=1));try{if(n=function(t){if(!t||!t.stacktrace)return null;for(var n,r=t.stacktrace,e=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,o=r.split("\n"),u=[],s=0;s eval")>-1&&(n=hn.exec(r[3]))?(r[1]=r[1]||"eval",r[3]=n[1],r[4]=n[2],r[5]=""):0!==u||r[5]||void 0===t.columnNumber||(i[0].column=t.columnNumber+1),e={url:r[3],func:r[1]||sn,args:r[2]?r[2].split(","):[],line:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}!e.func&&e.line&&(e.func=sn),i.push(e)}if(!i.length)return null;return{message:yn(t),name:t.name,stack:i}}(t))return pn(n,r)}catch(t){}return{message:yn(t),name:t&&t.name,stack:[],failed:!0}}function pn(t,n){try{return c(c({},t),{stack:t.stack.slice(n)})}catch(n){return t}}function yn(t){var n=t&&t.message;return n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"}var mn=50;function bn(t){var n=gn(t.stack),r={type:t.name,value:t.message};return n&&n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function wn(t){return{exception:{values:[bn(t)]}}}function gn(t){if(!t||!t.length)return[];var n=t,r=n[0].func||"",e=n[n.length-1].func||"";return-1===r.indexOf("captureMessage")&&-1===r.indexOf("captureException")||(n=n.slice(1)),-1!==e.indexOf("sentryWrapped")&&(n=n.slice(0,-1)),n.slice(0,mn).map(function(t){return{colno:null===t.column?void 0:t.column,filename:t.url||n[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line}}).reverse()}function En(n,r,e){var i=jn(r,e&&e.syntheticException||void 0,{attachStacktrace:n.attachStacktrace});return Q(i,{handled:!0,type:"generic"}),i.level=t.Severity.Error,e&&e.event_id&&(i.event_id=e.event_id),_t.resolve(i)}function xn(n,r,e,i){void 0===e&&(e=t.Severity.Info);var o=_n(r,i&&i.syntheticException||void 0,{attachStacktrace:n.attachStacktrace});return o.level=e,i&&i.event_id&&(o.event_id=i.event_id),_t.resolve(o)}function jn(t,n,r){var e,i;if(void 0===r&&(r={}),l(t)&&t.error)return e=wn(dn(t=t.error));if(d(t)||(i=t,"[object DOMException]"===Object.prototype.toString.call(i))){var o=t,u=o.name||(d(o)?"DOMError":"DOMException"),s=o.message?u+": "+o.message:u;return K(e=_n(s,n,r),s),"code"in o&&(e.tags=c(c({},e.tags),{"DOMException.code":""+o.code})),e}return v(t)?e=wn(dn(t)):m(t)||b(t)?(Q(e=function(t,n,r){var e={exception:{values:[{type:b(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:"Non-Error "+(r?"promise rejection":"exception")+" captured with keys: "+F(t)}]},extra:{__serialized__:L(t)}};if(n){var i=gn(dn(n).stack);e.stacktrace={frames:i}}return e}(t,n,r.rejection),{synthetic:!0}),e):(K(e=_n(t,n,r),""+t,void 0),Q(e,{synthetic:!0}),e)}function _n(t,n,r){void 0===r&&(r={});var e={message:t};if(r.attachStacktrace&&n){var i=gn(dn(n).stack);e.stacktrace={frames:i}}return e}var kn=function(){function n(t){this.options=t,this.T=new kt(30),this.It={},this.Nt=new Jt(t.dsn,t.Mt),this.url=this.Nt.getStoreEndpointWithUrlEncodedAuth()}return n.prototype.sendEvent=function(t){throw new k("Transport Class has to implement `sendEvent` method")},n.prototype.close=function(t){return this.T.drain(t)},n.prototype.At=function(n){var r=n.requestType,e=n.response,i=n.headers,o=n.resolve,u=n.reject,s=t.Status.fromHttpCode(e.status);this.Ct(i)&&rt.warn("Too many requests, backing off until: "+this.qt(r)),s!==t.Status.Success?u(e):o({status:s})},n.prototype.qt=function(t){return this.It[t]||this.It.all},n.prototype.Lt=function(t){return this.qt(t)>new Date(Date.now())},n.prototype.Ct=function(t){var n,r,e,i,o=Date.now(),u=t["x-sentry-rate-limits"],s=t["retry-after"];if(u){try{for(var c=a(u.trim().split(",")),f=c.next();!f.done;f=c.next()){var h=f.value.split(":",2),v=parseInt(h[0],10),l=1e3*(isNaN(v)?60:v);try{for(var d=(e=void 0,a(h[1].split(";"))),p=d.next();!p.done;p=d.next()){var y=p.value;this.It[y||"all"]=new Date(o+l)}}catch(t){e={error:t}}finally{try{p&&!p.done&&(i=d.return)&&i.call(d)}finally{if(e)throw e.error}}}}catch(t){n={error:t}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return!0}return!!s&&(this.It.all=new Date(o+function(t,n){if(!n)return Y;var r=parseInt(""+n,10);if(!isNaN(r))return 1e3*r;var e=Date.parse(""+n);return isNaN(e)?Y:e-t}(o,s)),!0)},n}(),Sn=W(),On=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.sendEvent=function(t){return this.Ut(Zt(t,this.Nt),t)},n.prototype.sendSession=function(t){return this.Ut(Yt(t,this.Nt),t)},n.prototype.Ut=function(t,n){var r=this;if(this.Lt(t.type))return Promise.reject({event:n,type:t.type,reason:"Transport locked till "+this.qt(t.type)+" due to too many requests.",status:429});var e={body:t.body,method:"POST",referrerPolicy:ot()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(e,this.options.fetchParameters),void 0!==this.options.headers&&(e.headers=this.options.headers),this.T.add(new _t(function(n,i){Sn.fetch(t.url,e).then(function(e){var o={"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")};r.At({requestType:t.type,response:e,headers:o,resolve:n,reject:i})}).catch(i)}))},n}(kn),Tn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.sendEvent=function(t){return this.Ut(Zt(t,this.Nt),t)},n.prototype.sendSession=function(t){return this.Ut(Yt(t,this.Nt),t)},n.prototype.Ut=function(t,n){var r=this;return this.Lt(t.type)?Promise.reject({event:n,type:t.type,reason:"Transport locked till "+this.qt(t.type)+" due to too many requests.",status:429}):this.T.add(new _t(function(n,e){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var o={"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")};r.At({requestType:t.type,response:i,headers:o,resolve:n,reject:e})}},i.open("POST",t.url),r.options.headers)r.options.headers.hasOwnProperty(o)&&i.setRequestHeader(o,r.options.headers[o]);i.send(t.body)}))},n}(kn),Dn=Object.freeze({__proto__:null,BaseTransport:kn,FetchTransport:On,XHRTransport:Tn}),Rn=function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return r(e,n),e.prototype.eventFromException=function(t,n){return En(this.ot,t,n)},e.prototype.eventFromMessage=function(n,r,e){return void 0===r&&(r=t.Severity.Info),xn(this.ot,n,r,e)},e.prototype.xt=function(){if(!this.ot.dsn)return n.prototype.xt.call(this);var t=c(c({},this.ot.transportOptions),{dsn:this.ot.dsn,Mt:this.ot.Mt});return this.ot.transport?new this.ot.transport(t):et()?new On(t):new Tn(t)},e}(Vt),In=0;function Nn(){return In>0}function Mn(t,n,r){if(void 0===n&&(n={}),"function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(n){return t}var sentryWrapped=function(){var e=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);var i=e.map(function(t){return Mn(t,n)});return t.handleEvent?t.handleEvent.apply(this,i):t.apply(this,i)}catch(t){throw In+=1,setTimeout(function(){In-=1}),Bt(function(r){r.addEventProcessor(function(t){var r=c({},t);return n.mechanism&&(K(r,void 0,void 0),Q(r,n.mechanism)),r.extra=c(c({},r.extra),{arguments:e}),r}),captureException(t)}),t}};try{for(var 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.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:function(){return t.name}})}catch(t){}return sentryWrapped}function An(t){if(void 0===t&&(t={}),t.eventId)if(t.dsn){var n=document.createElement("script");n.async=!0,n.src=new Jt(t.dsn).getReportDialogEndpoint(t),t.onLoad&&(n.onload=t.onLoad),(document.head||document.body).appendChild(n)}else rt.error("Missing dsn option in showReportDialog call");else rt.error("Missing eventId option in showReportDialog call")}var Cn=function(){function n(t){this.name=n.id,this.Ht=!1,this.Pt=!1,this.ot=c({onerror:!0,onunhandledrejection:!0},t)}return n.prototype.setupOnce=function(){Error.stackTraceLimit=50,this.ot.onerror&&(rt.log("Global Handler attached: onerror"),this.Ft()),this.ot.onunhandledrejection&&(rt.log("Global Handler attached: onunhandledrejection"),this.Xt())},n.prototype.Ft=function(){var t=this;this.Ht||(ht({callback:function(r){var e=r.error,i=Ut(),o=i.getIntegration(n),u=e&&!0===e.__sentry_own_request__;if(o&&!Nn()&&!u){var s=i.getClient(),c=y(e)?t.Bt(r.msg,r.url,r.line,r.column):t.Jt(jn(e,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!1}),r.url,r.line,r.column);Q(c,{handled:!1,type:"onerror"}),i.captureEvent(c,{originalException:e})}},type:"error"}),this.Ht=!0)},n.prototype.Xt=function(){var r=this;this.Pt||(ht({callback:function(e){var i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(t){}var o=Ut(),u=o.getIntegration(n),s=i&&!0===i.__sentry_own_request__;if(!u||Nn()||s)return!0;var c=o.getClient(),a=y(i)?r.Wt(i):jn(i,void 0,{attachStacktrace:c&&c.getOptions().attachStacktrace,rejection:!0});a.level=t.Severity.Error,Q(a,{handled:!1,type:"onunhandledrejection"}),o.captureEvent(a,{originalException:i})},type:"unhandledrejection"}),this.Pt=!0)},n.prototype.Bt=function(t,n,r,e){var i,o=l(t)?t.message:t;if(p(o)){var u=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);u&&(i=u[1],o=u[2])}var s={exception:{values:[{type:i||"Error",value:o}]}};return this.Jt(s,n,r,e)},n.prototype.Wt=function(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t)}]}}},n.prototype.Jt=function(t,n,r,e){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].stacktrace=t.exception.values[0].stacktrace||{},t.exception.values[0].stacktrace.frames=t.exception.values[0].stacktrace.frames||[];var i=isNaN(parseInt(e,10))?void 0:e,o=isNaN(parseInt(r,10))?void 0:r,u=p(n)&&n.length>0?n:function(){try{return document.location.href}catch(t){return""}}();return 0===t.exception.values[0].stacktrace.frames.length&&t.exception.values[0].stacktrace.frames.push({colno:i,filename:u,function:"?",in_app:!0,lineno:o}),t},n.id="GlobalHandlers",n}(),qn=["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"],Ln=function(){function t(n){this.name=t.id,this.ot=c({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},n)}return t.prototype.setupOnce=function(){var t=W();(this.ot.setTimeout&&A(t,"setTimeout",this.$t.bind(this)),this.ot.setInterval&&A(t,"setInterval",this.$t.bind(this)),this.ot.requestAnimationFrame&&A(t,"requestAnimationFrame",this.Gt.bind(this)),this.ot.XMLHttpRequest&&"XMLHttpRequest"in t&&A(XMLHttpRequest.prototype,"send",this.zt.bind(this)),this.ot.eventTarget)&&(Array.isArray(this.ot.eventTarget)?this.ot.eventTarget:qn).forEach(this.Vt.bind(this))},t.prototype.$t=function(t){return function(){for(var n=[],r=0;r"}0!==n.length&&Ut().addBreadcrumb({category:"ui."+t.name,message:n},{event:t.event,name:t.name})},n.prototype.Yt=function(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var n=t.xhr.__sentry_xhr__||{},r=n.method,e=n.url,i=n.status_code,o=n.body;Ut().addBreadcrumb({category:"xhr",data:{method:r,url:e,status_code:i},type:"http"},{xhr:t.xhr,input:o})}else;},n.prototype.Zt=function(n){n.endTimestamp&&(n.fetchData.url.match(/sentry_key/)&&"POST"===n.fetchData.method||(n.error?Ut().addBreadcrumb({category:"fetch",data:n.fetchData,level:t.Severity.Error,type:"http"},{data:n.error,input:n.args}):Ut().addBreadcrumb({category:"fetch",data:c(c({},n.fetchData),{status_code:n.response.status}),type:"http"},{input:n.args,response:n.response})))},n.prototype.tn=function(t){var n=W(),r=t.from,e=t.to,i=G(n.location.href),o=G(r),u=G(e);o.path||(o=i),i.protocol===u.protocol&&i.host===u.host&&(e=u.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),Ut().addBreadcrumb({category:"navigation",data:{from:r,to:e}})},n.id="Breadcrumbs",n}(),Hn="cause",Pn=5,Fn=function(){function t(n){void 0===n&&(n={}),this.name=t.id,this.nn=n.key||Hn,this.O=n.limit||Pn}return t.prototype.setupOnce=function(){Nt(function(n,r){var e=Ut().getIntegration(t);return e?e.rn(n,r):n})},t.prototype.rn=function(t,n){if(!(t.exception&&t.exception.values&&n&&E(n.originalException,Error)))return t;var r=this.en(n.originalException,this.nn);return t.exception.values=h(r,t.exception.values),t},t.prototype.en=function(t,n,r){if(void 0===r&&(r=[]),!E(t[n],Error)||r.length+1>=this.O)return r;var e=bn(dn(t[n]));return this.en(t[n],n,h([e],r))},t.id="LinkedErrors",t}(),Xn=W(),Bn=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){Nt(function(n){var r,e,i;if(Ut().getIntegration(t)){if(!Xn.navigator&&!Xn.location&&!Xn.document)return n;var o=(null===(r=n.request)||void 0===r?void 0:r.url)||(null===(e=Xn.location)||void 0===e?void 0:e.href),u=(Xn.document||{}).referrer,s=(Xn.navigator||{}).userAgent,a=c(c(c({},null===(i=n.request)||void 0===i?void 0:i.headers),u&&{Referer:u}),s&&{"User-Agent":s}),f=c(c({},o&&{url:o}),{headers:a});return c(c({},n),{request:f})}return n})},t.id="UserAgent",t}(),Jn=Object.freeze({__proto__:null,GlobalHandlers:Cn,TryCatch:Ln,Breadcrumbs:Un,LinkedErrors:Fn,UserAgent:Bn}),Wn=function(t){function n(n){return void 0===n&&(n={}),t.call(this,Rn,n)||this}return r(n,t),n.prototype.showReportDialog=function(t){void 0===t&&(t={}),W().document&&(this.vt()?An(c(c({},t),{dsn:t.dsn||this.getDsn()})):rt.error("Trying to call showReportDialog with Sentry Client disabled"))},n.prototype.dt=function(n,r,e){return n.platform=n.platform||"javascript",t.prototype.dt.call(this,n,r,e)},n.prototype.wt=function(n){var r=this.getIntegration(Un);r&&r.addSentryBreadcrumb(n),t.prototype.wt.call(this,n)},n}(Gt),$n=[new on,new rn,new Ln,new Un,new Cn,new Fn,new Bn];var Gn={},zn=W();zn.Sentry&&zn.Sentry.Integrations&&(Gn=zn.Sentry.Integrations);var Vn=c(c(c({},Gn),un),Jn);return t.BrowserClient=Wn,t.Hub=Ct,t.Integrations=Vn,t.SDK_NAME="sentry.javascript.browser",t.SDK_VERSION=nn,t.Scope=Rt,t.Transports=Dn,t.addBreadcrumb=function(t){Xt("addBreadcrumb",t)},t.addGlobalEventProcessor=Nt,t.captureEvent=function(t){return Xt("captureEvent",t)},t.captureException=captureException,t.captureMessage=function(t,n){var r;try{throw new Error(t)}catch(t){r=t}return Xt("captureMessage",t,"string"==typeof n?n:void 0,c({originalException:t,syntheticException:r},"string"!=typeof n?{captureContext:n}:void 0))},t.close=function(t){var n=Ut().getClient();return n?n.close(t):_t.reject(!1)},t.configureScope=function(t){Xt("configureScope",t)},t.defaultIntegrations=$n,t.eventFromException=En,t.eventFromMessage=xn,t.flush=function(t){var n=Ut().getClient();return n?n.flush(t):_t.reject(!1)},t.forceLoad=function(){},t.getCurrentHub=Ut,t.getHubFromCarrier=Pt,t.init=function(t){if(void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=$n),void 0===t.release){var n=W();n.SENTRY_RELEASE&&n.SENTRY_RELEASE.id&&(t.release=n.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),t.Mt=t.Mt||{},t.Mt.sdk={name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:nn}],version:nn},function(t,n){!0===n.debug&&rt.enable();var r=Ut(),e=new t(n);r.bindClient(e)}(Wn,t),t.autoSessionTracking&&function(){var t=W(),n=t.document;if(void 0!==n){var r=Ut(),e="complete"===n.readyState,i=!1,o=function(){i&&e&&r.endSession()},u=function(){e=!0,o(),t.removeEventListener("load",u)};r.startSession(),e||t.addEventListener("load",u);try{var s=new PerformanceObserver(function(t,n){t.getEntries().forEach(function(t){"first-contentful-paint"===t.name&&t.startTime0&&i[i.length-1])||6!==a[0]&&2!==a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=n.length&&(n=void 0),{value:n&&n[e++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(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 c(n,t,r){if(r||2===arguments.length)for(var e,i=0,o=t.length;i0?o.exception.values[o.exception.values.length-1]:void 0;f&&(o.exception.values=(a=k(n,t,i,u.originalException,e,o.exception.values,f,0),c=r,a.map((function(n){return n.value&&(n.value=E(n.value,c)),n}))))}}function k(n,t,r,e,i,o,u,f){if(o.length>=r+1)return o;var s=c([],a(o),!1);if(w(e[i],Error)){T(u,f);var v=n(t,e[i]),h=s.length;R(v,i,h,f),s=k(n,t,r,e[i],i,c([v],a(s),!1),v,h)}return Array.isArray(e.errors)&&e.errors.forEach((function(e,o){if(w(e,Error)){T(u,f);var v=n(t,e),h=s.length;R(v,"errors[".concat(o,"]"),h,f),s=k(n,t,r,e,i,c([v],a(s),!1),v,h)}})),s}function T(n,t){n.mechanism=n.mechanism||{type:"generic",handled:!0},n.mechanism=e(e(e({},n.mechanism),"AggregateError"===n.type&&{is_exception_group:!0}),{exception_id:t})}function R(n,t,r,i){n.mechanism=n.mechanism||{type:"generic",handled:!0},n.mechanism=e(e({},n.mechanism),{type:"chained",source:t,exception_id:r,parent_id:i})}function A(n){return n&&n.Math==Math?n:void 0}var D="object"==typeof globalThis&&A(globalThis)||"object"==typeof window&&A(window)||"object"==typeof self&&A(self)||"object"==typeof global&&A(global)||function(){return this}()||{};function I(){return D}function C(n,t,r){var e=r||D,i=e.__SENTRY__=e.__SENTRY__||{};return i[n]||(i[n]=t())}var M=I();function N(n,t){if(void 0===t&&(t={}),!n)return"";try{for(var r=n,e=[],i=0,o=0,u=" > ".length,a=void 0,c=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||80;r&&i++<5&&!("html"===(a=L(r,c))||i>1&&o+e.length*u+a.length>=f);)e.push(a),o+=a.length,r=r.parentNode;return e.reverse().join(" > ")}catch(n){return""}}function L(n,t){var r,e,i,o,u,a=n,c=[];if(!a||!a.tagName)return"";if(M.HTMLElement&&a instanceof HTMLElement&&a.dataset&&a.dataset.sentryComponent)return a.dataset.sentryComponent;c.push(a.tagName.toLowerCase());var f=t&&t.length?t.filter((function(n){return a.getAttribute(n)})).map((function(n){return[n,a.getAttribute(n)]})):null;if(f&&f.length)f.forEach((function(n){c.push("[".concat(n[0],'="').concat(n[1],'"]'))}));else if(a.id&&c.push("#".concat(a.id)),(r=a.className)&&l(r))for(e=r.split(/\s+/),u=0;u1&&(v=d.slice(0,-1).join("/"),h=d.pop()),h){var l=h.match(/^\d+/);l&&(h=l[0])}return F({host:c,pass:u,path:v,projectId:h,port:s,protocol:e,publicKey:i})}H((function(){console.error("Invalid Sentry Dsn: ".concat(n))}))}(n):F(n);if(t)return t}var G=function(n){function t(t,r){void 0===r&&(r="warn");var e=this.constructor,i=n.call(this,t)||this;return i.message=t,i.name=e.prototype.constructor.name,Object.setPrototypeOf(i,e.prototype),i.logLevel=r,i}return r(t,n),t}(Error),X=/\(error: (.*)\)/,z=/captureMessage|captureException/;function J(){for(var n=[],t=0;t1024)){var s=X.test(f)?f.replace(X,"$1"):f;if(!s.match(/\S*Error: /)){try{for(var v=(e=void 0,u(r)),h=v.next();!h.done;h=v.next()){var d=(0,h.value)(s);if(d){o.push(d);break}}}catch(n){e={error:n}}finally{try{h&&!h.done&&(i=v.return)&&i.call(v)}finally{if(e)throw e.error}}if(o.length>=50)break}}}return Y(o)}}function Y(n){if(!n.length)return[];var t=Array.from(n);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),z.test(t[t.length-1].function||"")&&(t.pop(),z.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,50).map((function(n){return e(e({},n),{filename:n.filename||t[t.length-1].filename,function:n.function||"?"})}))}var V="";function K(n){try{return n&&"function"==typeof n&&n.name||V}catch(n){return V}}var Q={},Z={};function nn(n,t){Q[n]=Q[n]||[],Q[n].push(t)}function tn(n,t){Z[n]||(t(),Z[n]=!0)}function rn(n,t){var r,e,i=n&&Q[n];if(i)try{for(var o=u(i),a=o.next();!a.done;a=o.next()){var c=a.value;try{c(t)}catch(n){}}}catch(n){r={error:n}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}}function en(n,t,r){if(t in n){var e=n[t],i=r(e);"function"==typeof i&&un(i,e),n[t]=i}}function on(n,t,r){try{Object.defineProperty(n,t,{value:r,writable:!0,configurable:!0})}catch(n){}}function un(n,t){try{var r=t.prototype||{};n.prototype=t.prototype=r,on(n,"__sentry_original__",t)}catch(n){}}function an(n){return n.__sentry_original__}function cn(n){if(s(n))return e({message:n.message,name:n.name,stack:n.stack},sn(n));if(g(n)){var t=e({type:n.type,target:fn(n.target),currentTarget:fn(n.currentTarget)},sn(n));return"undefined"!=typeof CustomEvent&&w(n,CustomEvent)&&(t.detail=n.detail),t}return n}function fn(n){try{return t=n,"undefined"!=typeof Element&&w(t,Element)?N(n):Object.prototype.toString.call(n)}catch(n){return""}var t}function sn(n){if("object"==typeof n&&null!==n){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}return{}}function vn(n){return hn(n,new Map)}function hn(n,t){var r,e;if(function(n){if(!m(n))return!1;try{var t=Object.getPrototypeOf(n).constructor.name;return!t||"Object"===t}catch(n){return!0}}(n)){if(void 0!==(f=t.get(n)))return f;var i={};t.set(n,i);try{for(var o=u(Object.keys(n)),a=o.next();!a.done;a=o.next()){var c=a.value;void 0!==n[c]&&(i[c]=hn(n[c],t))}}catch(n){r={error:n}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return i}if(Array.isArray(n)){var f;if(void 0!==(f=t.get(n)))return f;var s=[];return t.set(n,s),n.forEach((function(n){s.push(hn(n,t))})),s}return n}function dn(){"console"in D&&U.forEach((function(n){n in D.console&&en(D.console,n,(function(t){return $[n]=t,function(){for(var t=[],r=0;r>n/4).toString(16)}))}function pn(n){return n.exception&&n.exception.values?n.exception.values[0]:void 0}function yn(n){var t=n.message,r=n.event_id;if(t)return t;var e=pn(n);return e?e.type&&e.value?"".concat(e.type,": ").concat(e.value):e.type||e.value||r||"":r||""}function mn(n,t,r){var e=n.exception=n.exception||{},i=e.values=e.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=r||"Error")}function gn(n,t){var r=pn(n);if(r){var i=r.mechanism;if(r.mechanism=e(e(e({},{type:"generic",handled:!0}),i),t),t&&"data"in t){var o=e(e({},i&&i.data),t.data);r.mechanism.data=o}}}function bn(n){if(n&&n.__sentry_captured__)return!0;try{on(n,"__sentry_captured__",!0)}catch(n){}return!1}function wn(n){return Array.isArray(n)?n:[n]}var _n,En,Sn,jn=D;function xn(){if(jn.document){var n=rn.bind(null,"dom"),t=On(n,!0);jn.document.addEventListener("click",t,!1),jn.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((function(t){var r=jn[t]&&jn[t].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(en(r,"addEventListener",(function(t){return function(r,e,i){if("click"===r||"keypress"==r)try{var o=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},u=o[r]=o[r]||{refCount:0};if(!u.handler){var a=On(n);u.handler=a,t.call(this,r,a,i)}u.refCount++}catch(n){}return t.call(this,r,e,i)}})),en(r,"removeEventListener",(function(n){return function(t,r,e){if("click"===t||"keypress"==t)try{var i=this.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount--,o.refCount<=0&&(n.call(this,t,o.handler,e),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete this.__sentry_instrumentation_handlers__)}catch(n){}return n.call(this,t,r,e)}})))}))}}function On(n,t){return void 0===t&&(t=!1),function(r){if(r&&!r._sentryCaptured){var e=function(n){try{return n.target}catch(n){return null}}(r);if(!function(n,t){return"keypress"===n&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(r.type,e)){on(r,"_sentryCaptured",!0),e&&!e._sentryId&&on(e,"_sentryId",ln());var i="keypress"===r.type?"input":r.type;if(!function(n){if(n.type!==En)return!1;try{if(!n.target||n.target._sentryId!==Sn)return!1}catch(n){}return!0}(r))n({event:r,name:i,global:t}),En=r.type,Sn=e?e._sentryId:void 0;clearTimeout(_n),_n=jn.setTimeout((function(){Sn=void 0,En=void 0}),1e3)}}}}var kn=I();var Tn=I();function Rn(){if(!("fetch"in Tn))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(n){return!1}}function An(n){return n&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(n.toString())}function Dn(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!Rn())return!1;if(An(Tn.fetch))return!0;var n=!1,t=Tn.document;if(t&&"function"==typeof t.createElement)try{var r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(n=An(r.contentWindow.fetch)),t.head.removeChild(r)}catch(n){}return n})()&&en(D,"fetch",(function(n){return function(){for(var t=[],r=0;r2?t[2]:void 0;if(e){var i=Hn,o=String(e);Hn=o;var u={from:i,to:o};rn("history",u)}return n.apply(this,t)}}}var Fn,Bn=D;function Gn(){if(Bn.XMLHttpRequest){var n=XMLHttpRequest.prototype;en(n,"open",(function(n){return function(){for(var t=this,r=[],e=0;er?Jn(n,t-1,r):i}function Yn(n,t,r,e,i){var o,u;void 0===r&&(r=1/0),void 0===e&&(e=1/0),void 0===i&&(o="function"==typeof WeakSet,u=o?new WeakSet:[],i=[function(n){if(o)return!!u.has(n)||(u.add(n),!1);for(var t=0;t=e){p[b]="[MaxProperties ~]";break}var w=g[b];p[b]=Yn(b,w,d-1,e,i),y++}return v(t),p}function Vn(n){return new Qn((function(t){t(n)}))}function Kn(n){return new Qn((function(t,r){r(n)}))}!function(n){n[n.PENDING=0]="PENDING",n[n.RESOLVED=1]="RESOLVED",n[n.REJECTED=2]="REJECTED"}(Fn||(Fn={}));var Qn=function(){function n(n){var t=this;this.o=function(n){t.u(Fn.RESOLVED,n)},this.v=function(n){t.u(Fn.REJECTED,n)},this.u=function(n,r){t.h===Fn.PENDING&&(b(r)?r.then(t.o,t.v):(t.h=n,t.l=r,t.p()))},this.p=function(){if(t.h!==Fn.PENDING){var n=t.m.slice();t.m=[],n.forEach((function(n){n[0]||(t.h===Fn.RESOLVED&&n[1](t.l),t.h===Fn.REJECTED&&n[2](t.l),n[0]=!0)}))}},this.h=Fn.PENDING,this.m=[];try{n(this.o,this.v)}catch(n){this.v(n)}}return n.prototype.then=function(t,r){var e=this;return new n((function(n,i){e.m.push([!1,function(r){if(t)try{n(t(r))}catch(n){i(n)}else n(r)},function(t){if(r)try{n(r(t))}catch(n){i(n)}else i(t)}]),e.p()}))},n.prototype.catch=function(n){return this.then((function(n){return n}),n)},n.prototype.finally=function(t){var r=this;return new n((function(n,e){var i,o;return r.then((function(n){o=!1,i=n,t&&t()}),(function(n){o=!0,i=n,t&&t()})).then((function(){o?e(i):n(i)}))}))},n}();function Zn(n){var t=[];function r(n){return t.splice(t.indexOf(n),1)[0]}return{$:t,add:function(e){if(!(void 0===n||t.length0&&r(!1)}),n);t.forEach((function(n){Vn(n).then((function(){--i||(clearTimeout(o),r(!0))}),e)}))}))}}}function nt(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],search:r,hash:e,relative:t[5]+r+e}}var tt=["fatal","error","warning","log","info","debug"];function rt(n){return"warn"===n?"warning":tt.includes(n)?n:"log"}function et(){return Date.now()/1e3}var it=function(){var n=D.performance;if(!n||!n.now)return et;var t=Date.now()-n.now(),r=null==n.timeOrigin?t:n.timeOrigin;return function(){return(r+n.now())/1e3}}();!function(){var n=D.performance;if(n&&n.now){var t=36e5,r=n.now(),e=Date.now(),i=n.timeOrigin?Math.abs(n.timeOrigin+r-e):t,o=i0?r:void 0}}(t),i=r||{},o=i.traceId,c=i.parentSpanId,f=i.parentSampled;return r?{traceparentData:r,dynamicSamplingContext:e||{},propagationContext:{traceId:o||ln(),parentSpanId:c||ln().substring(16),spanId:ln().substring(16),sampled:f,dsc:e||{}}}:{traceparentData:r,dynamicSamplingContext:void 0,propagationContext:{traceId:o||ln(),spanId:ln().substring(16)}}}function ft(n,t){return void 0===t&&(t=[]),[n,t]}function st(n,t){var r=a(n,2);return[r[0],c(c([],a(r[1]),!1),[t],!1)]}function vt(n,t){var r,e,i=n[1];try{for(var o=u(i),a=o.next();!a.done;a=o.next()){var c=a.value;if(t(c,c[0].type))return!0}}catch(n){r={error:n}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return!1}function ht(n,t){return(t||new TextEncoder).encode(n)}function dt(n,t){var r,e,i=a(n,2),o=i[0],c=i[1],f=JSON.stringify(o);function s(n){"string"==typeof f?f="string"==typeof n?f+n:[ht(f,t),n]:f.push("string"==typeof n?ht(n,t):n)}try{for(var v=u(c),h=v.next();!h.done;h=v.next()){var d=a(h.value,2),l=d[0],p=d[1];if(s("\n".concat(JSON.stringify(l),"\n")),"string"==typeof p||p instanceof Uint8Array)s(p);else{var y=void 0;try{y=JSON.stringify(p)}catch(n){y=JSON.stringify(zn(p))}s(y)}}}catch(n){r={error:n}}finally{try{h&&!h.done&&(e=v.return)&&e.call(v)}finally{if(r)throw r.error}}return"string"==typeof f?f:function(n){var t,r,e=n.reduce((function(n,t){return n+t.length}),0),i=new Uint8Array(e),o=0;try{for(var a=u(n),c=a.next();!c.done;c=a.next()){var f=c.value;i.set(f,o),o+=f.length}}catch(n){t={error:n}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return i}(f)}function lt(n,t){var r="string"==typeof n.data?ht(n.data,t):n.data;return[vn({type:"attachment",length:r.length,filename:n.filename,content_type:n.contentType,attachment_type:n.attachmentType}),r]}var pt={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function yt(n){return pt[n]}function mt(n){if(n&&n.sdk){var t=n.sdk;return{name:t.name,version:t.version}}}function gt(n,t,r){var i,o,c,f,s=t.statusCode,v=t.headers;void 0===r&&(r=Date.now());var h=e({},n),d=v&&v["x-sentry-rate-limits"],l=v&&v["retry-after"];if(d)try{for(var p=u(d.trim().split(",")),y=p.next();!y.done;y=p.next()){var m=a(y.value.split(":",5),5),g=m[0],b=m[1],w=m[4],_=parseInt(g,10),E=1e3*(isNaN(_)?60:_);if(b)try{for(var S=(c=void 0,u(b.split(";"))),j=S.next();!j.done;j=S.next()){var x=j.value;"metric_bucket"===x&&w&&!w.split(";").includes("custom")||(h[x]=r+E)}}catch(n){c={error:n}}finally{try{j&&!j.done&&(f=S.return)&&f.call(S)}finally{if(c)throw c.error}}else h.all=r+E}}catch(n){i={error:n}}finally{try{y&&!y.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}else l?h.all=r+function(n,t){void 0===t&&(t=Date.now());var r=parseInt("".concat(n),10);if(!isNaN(r))return 1e3*r;var e=Date.parse("".concat(n));return isNaN(e)?6e4:e-t}(l,r):429===s&&(h.all=r+6e4);return h}function bt(n,t){var r={type:t.name||t.constructor.name,value:t.message},e=function(n,t){return n(t.stack||"",1)}(n,t);return e.length&&(r.stacktrace={frames:e}),r}var wt=function(){function n(t){this.name=n.id,H((function(){console.warn("You are using new Feedback() even though this bundle does not include Feedback.")}))}return n.prototype.setupOnce=function(){},n.prototype.openDialog=function(){},n.prototype.closeDialog=function(){},n.prototype.attachTo=function(){},n.prototype.createWidget=function(){},n.prototype.removeWidget=function(){},n.prototype.getWidget=function(){},n.prototype.remove=function(){},n.id="Feedback",n}();var _t=function(){function n(t){this.name=n.id,H((function(){console.warn("You are using new Replay() even though this bundle does not include replay.")}))}return n.prototype.setupOnce=function(){},n.prototype.start=function(){},n.prototype.stop=function(){},n.prototype.flush=function(){},n.id="Replay",n}();var Et=function(){function n(t){this.name=n.id,H((function(){console.warn("You are using new BrowserTracing() even though this bundle does not include tracing.")}))}return n.prototype.setupOnce=function(){},n.id="BrowserTracing",n}();var St="production";function jt(){return C("globalEventProcessors",(function(){return[]}))}function xt(n){jt().push(n)}function Ot(n,t,r,i){return void 0===i&&(i=0),new Qn((function(o,u){var a=n[i];if(null===t||"function"!=typeof a)o(t);else{var c=a(e({},t),r);b(c)?c.then((function(t){return Ot(n,t,r,i+1).then(o)})).then(null,u):Ot(n,c,r,i+1).then(o).then(null,u)}}))}function kt(n){var t=it(),r={sid:ln(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:function(){return function(n){return vn({sid:"".concat(n.sid),init:n.init,started:new Date(1e3*n.started).toISOString(),timestamp:new Date(1e3*n.timestamp).toISOString(),status:n.status,errors:n.errors,did:"number"==typeof n.did||"string"==typeof n.did?"".concat(n.did):void 0,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})}(r)}};return n&&Tt(r,n),r}function Tt(n,t){if(void 0===t&&(t={}),t.user&&(!n.ipAddress&&t.user.ip_address&&(n.ipAddress=t.user.ip_address),n.did||t.did||(n.did=t.user.id||t.user.email||t.user.username)),n.timestamp=t.timestamp||it(),t.abnormal_mechanism&&(n.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(n.ignoreDuration=t.ignoreDuration),t.sid&&(n.sid=32===t.sid.length?t.sid:ln()),void 0!==t.init&&(n.init=t.init),!n.did&&t.did&&(n.did="".concat(t.did)),"number"==typeof t.started&&(n.started=t.started),n.ignoreDuration)n.duration=void 0;else if("number"==typeof t.duration)n.duration=t.duration;else{var r=n.timestamp-n.started;n.duration=r>=0?r:0}t.release&&(n.release=t.release),t.environment&&(n.environment=t.environment),!n.ipAddress&&t.ipAddress&&(n.ipAddress=t.ipAddress),!n.userAgent&&t.userAgent&&(n.userAgent=t.userAgent),"number"==typeof t.errors&&(n.errors=t.errors),t.status&&(n.status=t.status)}function Rt(n,t){var r={};t?r={status:t}:"ok"===n.status&&(r={status:"exited"}),Tt(n,r)}function At(n){var t=n.spanContext(),r=t.spanId,e=t.traceId,i=It(n);return vn({data:i.data,op:i.op,parent_span_id:i.parent_span_id,span_id:r,status:i.status,tags:i.tags,trace_id:e,origin:i.origin})}function Dt(n){return n>9999999999?n/1e3:n}function It(n){return function(n){return"function"==typeof n.getSpanJSON}(n)?n.getSpanJSON():"function"==typeof n.toJSON?n.toJSON():{}}function Ct(n){var t=n.spanContext().traceFlags;return Boolean(1&t)}function Mt(n,t,r,i,o,u){var f=n.normalizeDepth,s=void 0===f?3:f,v=n.normalizeMaxBreadth,h=void 0===v?1e3:v,d=e(e({},t),{event_id:t.event_id||r.event_id||ln(),timestamp:t.timestamp||et()}),l=r.integrations||n.integrations.map((function(n){return n.name}));!function(n,t){var r=t.environment,e=t.release,i=t.dist,o=t.maxValueLength,u=void 0===o?250:o;"environment"in n||(n.environment="environment"in t?r:St);void 0===n.release&&void 0!==e&&(n.release=e);void 0===n.dist&&void 0!==i&&(n.dist=i);n.message&&(n.message=E(n.message,u));var a=n.exception&&n.exception.values&&n.exception.values[0];a&&a.value&&(a.value=E(a.value,u));var c=n.request;c&&c.url&&(c.url=E(c.url,u))}(d,n),function(n,t){t.length>0&&(n.sdk=n.sdk||{},n.sdk.integrations=c(c([],a(n.sdk.integrations||[]),!1),a(t),!1))}(d,l),void 0===t.type&&function(n,t){var r,e=D._sentryDebugIds;if(!e)return;var i=Nt.get(t);i?r=i:(r=new Map,Nt.set(t,r));var o=Object.keys(e).reduce((function(n,i){var o,u=r.get(i);u?o=u:(o=t(i),r.set(i,o));for(var a=o.length-1;a>=0;a--){var c=o[a];if(c.filename){n[c.filename]=e[i];break}}return n}),{});try{n.exception.values.forEach((function(n){n.stacktrace.frames.forEach((function(n){n.filename&&(n.debug_id=o[n.filename])}))}))}catch(n){}}(d,n.stackParser);var p=function(n,t){if(!t)return n;var r=n?n.clone():new nr;return r.update(t),r}(i,r.captureContext);r.mechanism&&gn(d,r.mechanism);var y=o&&o.getEventProcessors?o.getEventProcessors():[],m=function(){Zt||(Zt=new nr);return Zt}().getScopeData();u&&Kt(m,u.getScopeData());p&&Kt(m,p.getScopeData());var g=c(c([],a(r.attachments||[]),!1),a(m.attachments),!1);return g.length&&(r.attachments=g),Vt(d,m),Ot(c(c(c([],a(y),!1),a(jt()),!1),a(m.eventProcessors),!1),d,r).then((function(n){return n&&function(n){var t={};try{n.exception.values.forEach((function(n){n.stacktrace.frames.forEach((function(n){n.debug_id&&(n.abs_path?t[n.abs_path]=n.debug_id:n.filename&&(t[n.filename]=n.debug_id),delete n.debug_id)}))}))}catch(n){}if(0===Object.keys(t).length)return;n.debug_meta=n.debug_meta||{},n.debug_meta.images=n.debug_meta.images||[];var r=n.debug_meta.images;Object.keys(t).forEach((function(n){r.push({type:"sourcemap",code_file:n,debug_id:t[n]})}))}(n),"number"==typeof s&&s>0?function(n,t,r){if(!n)return null;var i=e(e(e(e(e({},n),n.breadcrumbs&&{breadcrumbs:n.breadcrumbs.map((function(n){return e(e({},n),n.data&&{data:zn(n.data,t,r)})}))}),n.user&&{user:zn(n.user,t,r)}),n.contexts&&{contexts:zn(n.contexts,t,r)}),n.extra&&{extra:zn(n.extra,t,r)});n.contexts&&n.contexts.trace&&i.contexts&&(i.contexts.trace=n.contexts.trace,n.contexts.trace.data&&(i.contexts.trace.data=zn(n.contexts.trace.data,t,r)));n.spans&&(i.spans=n.spans.map((function(n){var e=It(n).data;return e&&(n.data=zn(e,t,r)),n})));return i}(n,s,h):n}))}var Nt=new WeakMap;function Lt(n){if(n)return function(n){return n instanceof nr||"function"==typeof n}(n)||function(n){return Object.keys(n).some((function(n){return Ut.includes(n)}))}(n)?{captureContext:n}:n}var Ut=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function captureException(n,t){return cr().captureException(n,Lt(t))}function $t(n,t){return cr().captureEvent(n,t)}function Ht(n,t){cr().addBreadcrumb(n,t)}function Pt(){for(var n=[],t=0;tr?o.slice(-r):o,this.W(),this},n.prototype.getLastBreadcrumb=function(){return this.O[this.O.length-1]},n.prototype.clearBreadcrumbs=function(){return this.O=[],this.W(),this},n.prototype.addAttachment=function(n){return this.k.push(n),this},n.prototype.getAttachments=function(){return this.getScopeData().attachments},n.prototype.clearAttachments=function(){return this.k=[],this},n.prototype.getScopeData=function(){var n=this;return{breadcrumbs:n.O,attachments:n.k,contexts:n.D,tags:n.R,extra:n.A,user:n.T,level:n.M,fingerprint:n.H||[],eventProcessors:n.j,propagationContext:n.C,sdkProcessingMetadata:n.I,transactionName:n.U,span:n.N}},n.prototype.applyToEvent=function(n,t,r){return void 0===t&&(t={}),void 0===r&&(r=[]),Vt(n,this.getScopeData()),Ot(c(c(c([],a(r),!1),a(jt()),!1),a(this.j),!1),n,t)},n.prototype.setSDKProcessingMetadata=function(n){return this.I=e(e({},this.I),n),this},n.prototype.setPropagationContext=function(n){return this.C=n,this},n.prototype.getPropagationContext=function(){return this.C},n.prototype.captureException=function(n,t){var r=t&&t.event_id?t.event_id:ln();if(!this.q)return P.warn("No client configured on scope - will not capture exception!"),r;var i=new Error("Sentry syntheticException");return this.q.captureException(n,e(e({originalException:n,syntheticException:i},t),{event_id:r}),this),r},n.prototype.captureMessage=function(n,t,r){var i=r&&r.event_id?r.event_id:ln();if(!this.q)return P.warn("No client configured on scope - will not capture message!"),i;var o=new Error(n);return this.q.captureMessage(n,t,e(e({originalException:n,syntheticException:o},r),{event_id:i}),this),i},n.prototype.captureEvent=function(n,t){var r=t&&t.event_id?t.event_id:ln();return this.q?(this.q.captureEvent(n,e(e({},t),{event_id:r}),this),r):(P.warn("No client configured on scope - will not capture event!"),r)},n.prototype.W=function(){var n=this;this._||(this._=!0,this.S.forEach((function(t){t(n)})),this._=!1)},n}();function tr(){return{traceId:ln(),spanId:ln().substring(16)}}var rr,er="7.116.0",ir=parseFloat(er),or=function(){function n(n,t,r,e){var i,o;void 0===e&&(e=ir),this.F=e,t?i=t:(i=new nr).setClient(n),r?o=r:(o=new nr).setClient(n),this.B=[{scope:i}],n&&this.bindClient(n),this.G=o}return n.prototype.isOlderThan=function(n){return this.F0?"|#".concat(f.map((function(n){var t=a(n,2),r=t[0],e=t[1];return"".concat(r,":").concat(e)})).join(",")):"";e+="".concat(c.name,"@").concat(c.unit,":").concat(c.metric,"|").concat(c.metricType).concat(s,"|T").concat(c.timestamp,"\n")}}catch(n){t={error:n}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return e}(n);return[{type:"statsd",length:t.length},t]}(n);return ft(i,[o])}var Mr=function(){function n(n){if(this.K=n,this._integrations={},this.Z=!1,this.nn=0,this.tn={},this.rn={},this.j=[],n.dsn&&(this.en=B(n.dsn)),this.en){var t=jr(this.en,n);this.un=n.transport(e(e({tunnel:this.K.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this)},n.transportOptions),{url:t}))}}return n.prototype.captureException=function(n,t,r){var e=this;if(!bn(n)){var i=t&&t.event_id;return this.an(this.eventFromException(n,t).then((function(n){return e.cn(n,t,r)})).then((function(n){i=n}))),i}},n.prototype.captureMessage=function(n,t,r,e){var i=this,o=r&&r.event_id,u=p(n)?n:String(n),a=y(n)?this.eventFromMessage(u,t,r):this.eventFromException(n,r);return this.an(a.then((function(n){return i.cn(n,r,e)})).then((function(n){o=n}))),o},n.prototype.captureEvent=function(n,t,r){if(!(t&&t.originalException&&bn(t.originalException))){var e=t&&t.event_id,i=(n.sdkProcessingMetadata||{}).capturedSpanScope;return this.an(this.cn(n,t,i||r).then((function(n){e=n}))),e}},n.prototype.captureSession=function(n){"string"!=typeof n.release||(this.sendSession(n),Tt(n,{init:!1}))},n.prototype.getDsn=function(){return this.en},n.prototype.getOptions=function(){return this.K},n.prototype.getSdkMetadata=function(){return this.K.V},n.prototype.getTransport=function(){return this.un},n.prototype.flush=function(n){var t=this.un;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this.fn(n).then((function(r){return t.flush(n).then((function(n){return r&&n}))}))):Vn(!0)},n.prototype.close=function(n){var t=this;return this.flush(n).then((function(n){return t.getOptions().enabled=!1,t.metricsAggregator&&t.metricsAggregator.close(),n}))},n.prototype.getEventProcessors=function(){return this.j},n.prototype.addEventProcessor=function(n){this.j.push(n)},n.prototype.setupIntegrations=function(n){(n&&!this.Z||this.sn()&&!this.Z)&&this.vn()},n.prototype.init=function(){this.sn()&&this.vn()},n.prototype.getIntegrationById=function(n){return this.getIntegrationByName(n)},n.prototype.getIntegrationByName=function(n){return this._integrations[n]},n.prototype.getIntegration=function(n){try{return this._integrations[n.id]||null}catch(n){return null}},n.prototype.addIntegration=function(n){var t=this._integrations[n.name];Tr(this,n,this._integrations),t||kr(this,[n])},n.prototype.sendEvent=function(n,t){var r,e,i=this;void 0===t&&(t={}),this.emit("beforeSendEvent",n,t);var o=_r(n,this.en,this.K.V,this.K.tunnel);try{for(var a=u(t.attachments||[]),c=a.next();!c.done;c=a.next()){o=st(o,lt(c.value,this.K.transportOptions&&this.K.transportOptions.textEncoder))}}catch(n){r={error:n}}finally{try{c&&!c.done&&(e=a.return)&&e.call(a)}finally{if(r)throw r.error}}var f=this.hn(o);f&&f.then((function(t){return i.emit("afterSendEvent",n,t)}),null)},n.prototype.sendSession=function(n){var t=function(n,t,r,i){var o=mt(r);return ft(e(e({sent_at:(new Date).toISOString()},o&&{sdk:o}),!!i&&t&&{dsn:W(t)}),["aggregates"in n?[{type:"sessions"},n]:[{type:"session"},n.toJSON()]])}(n,this.en,this.K.V,this.K.tunnel);this.hn(t)},n.prototype.recordDroppedEvent=function(n,t,r){if(this.K.sendClientReports){var e="".concat(n,":").concat(t);this.tn[e]=this.tn[e]+1||1}},n.prototype.captureAggregateMetrics=function(n){var t=Cr(n,this.en,this.K.V,this.K.tunnel);this.hn(t)},n.prototype.on=function(n,t){this.rn[n]||(this.rn[n]=[]),this.rn[n].push(t)},n.prototype.emit=function(n){for(var t=[],r=1;r=n&&(clearInterval(i),r(!1)))}),1)}))},n.prototype.sn=function(){return!1!==this.getOptions().enabled&&void 0!==this.un},n.prototype.ln=function(n,t,r,i){var o=this;void 0===i&&(i=fr());var u=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a.length>0&&(t.integrations=a),this.emit("preprocessEvent",n,t),Mt(u,n,t,r,this,i).then((function(n){if(null===n)return n;var t=e(e({},i.getPropagationContext()),r?r.getPropagationContext():void 0);if(!(n.contexts&&n.contexts.trace)&&t){var u=t.traceId,a=t.spanId,c=t.parentSpanId,f=t.dsc;n.contexts=e({trace:{trace_id:u,span_id:a,parent_span_id:c}},n.contexts);var s=f||Jt(u,o,r);n.sdkProcessingMetadata=e({dynamicSamplingContext:s},n.sdkProcessingMetadata)}return n}))},n.prototype.cn=function(n,t,r){return void 0===t&&(t={}),this.pn(n,t,r).then((function(n){return n.event_id}),(function(n){}))},n.prototype.pn=function(n,t,r){var i=this,o=this.getOptions(),u=o.sampleRate,a=Lr(n),c=Nr(n),f=n.type||"error",s="before send for type `".concat(f,"`");if(c&&"number"==typeof u&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",n),Kn(new G("Discarding event because it's not included in the random sample (sampling rate = ".concat(u,")"),"log"));var v="replay_event"===f?"replay":f,h=(n.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this.ln(n,t,r,h).then((function(r){if(null===r)throw i.recordDroppedEvent("event_processor",v,n),new G("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return r;var e=function(n,t,r){var e=n.beforeSend,i=n.beforeSendTransaction;if(Nr(t)&&e)return e(t,r);if(Lr(t)&&i)return i(t,r);return t}(o,r,t);return function(n,t){var r="".concat(t," must return `null` or a valid event.");if(b(n))return n.then((function(n){if(!m(n)&&null!==n)throw new G(r);return n}),(function(n){throw new G("".concat(t," rejected with ").concat(n))}));if(!m(n)&&null!==n)throw new G(r);return n}(e,s)})).then((function(o){if(null===o)throw i.recordDroppedEvent("before_send",v,n),new G("".concat(s," returned `null`, will not send event."),"log");var u=r&&r.getSession();!a&&u&&i.dn(u,o);var c=o.transaction_info;if(a&&c&&o.transaction!==n.transaction){o.transaction_info=e(e({},c),{source:"custom"})}return i.sendEvent(o,t),o})).then(null,(function(n){if(n instanceof G)throw n;throw i.captureException(n,{data:{__sentry__:!0},originalException:n}),new G("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(n))}))},n.prototype.an=function(n){var t=this;this.nn++,n.then((function(n){return t.nn--,n}),(function(n){return t.nn--,n}))},n.prototype.hn=function(n){if(this.emit("beforeEnvelope",n),this.sn()&&this.un)return this.un.send(n).then(null,(function(n){}))},n.prototype.yn=function(){var n=this.tn;return this.tn={},Object.keys(n).map((function(t){var r=a(t.split(":"),2);return{reason:r[0],category:r[1],quantity:n[t]}}))},n}();function Nr(n){return void 0===n.type}function Lr(n){return"transaction"===n.type}var Ur,$r=function(){function n(n){this.l=n}return Object.defineProperty(n.prototype,"weight",{get:function(){return 1},enumerable:!1,configurable:!0}),n.prototype.add=function(n){this.l+=n},n.prototype.toString=function(){return"".concat(this.l)},n}(),Hr=function(){function n(n){this.mn=n,this.gn=n,this.bn=n,this.wn=n,this._n=1}return Object.defineProperty(n.prototype,"weight",{get:function(){return 5},enumerable:!1,configurable:!0}),n.prototype.add=function(n){this.mn=n,nthis.bn&&(this.bn=n),this.wn+=n,this._n++},n.prototype.toString=function(){return"".concat(this.mn,":").concat(this.gn,":").concat(this.bn,":").concat(this.wn,":").concat(this._n)},n}(),Pr=function(){function n(n){this.l=[n]}return Object.defineProperty(n.prototype,"weight",{get:function(){return this.l.length},enumerable:!1,configurable:!0}),n.prototype.add=function(n){this.l.push(n)},n.prototype.toString=function(){return this.l.join(":")},n}(),qr=function(){function n(n){this.first=n,this.l=new Set([n])}return Object.defineProperty(n.prototype,"weight",{get:function(){return this.l.size},enumerable:!1,configurable:!0}),n.prototype.add=function(n){this.l.add(n)},n.prototype.toString=function(){return Array.from(this.l).map((function(n){return"string"==typeof n?function(n){for(var t=0,r=0;r>>0}(n):n})).join(":")},n}(),Wr=((Ur={}).c=$r,Ur.g=Hr,Ur.d=Pr,Ur.s=qr,Ur);function Fr(n){var t=cr().getStackTop();t.client=n,t.scope.setClient(n)}function Br(n,t,r){void 0===r&&(r=Zn(n.bufferSize||30));var e={};function i(i){var o=[];if(vt(i,(function(t,r){var i=yt(r);if(function(n,t,r){return void 0===r&&(r=Date.now()),function(n,t){return n[t]||n.all||0}(n,t)>r}(e,i)){var u=Gr(t,r);n.recordDroppedEvent("ratelimit_backoff",i,u)}else o.push(t)})),0===o.length)return Vn();var u=ft(i[0],o),a=function(t){vt(u,(function(r,e){var i=Gr(r,e);n.recordDroppedEvent(t,yt(e),i)}))};return r.add((function(){return t({body:dt(u,n.textEncoder)}).then((function(n){return e=gt(e,n),n}),(function(n){throw a("network_error"),n}))})).then((function(n){return n}),(function(n){if(n instanceof G)return a("queue_overflow"),Vn();throw n}))}return i.__sentry__baseTransport__=!0,{send:i,flush:function(n){return r.drain(n)}}}function Gr(n,t){if("event"===t||"transaction"===t)return Array.isArray(n)?n[1]:void 0}var Xr,zr=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],Jr=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Yr="InboundFilters",Vr=function(n){return void 0===n&&(n={}),{name:Yr,setupOnce:function(){},processEvent:function(t,r,e){var i=e.getOptions(),o=function(n,t){void 0===n&&(n={});void 0===t&&(t={});return{allowUrls:c(c([],a(n.allowUrls||[]),!1),a(t.allowUrls||[]),!1),denyUrls:c(c([],a(n.denyUrls||[]),!1),a(t.denyUrls||[]),!1),ignoreErrors:c(c(c([],a(n.ignoreErrors||[]),!1),a(t.ignoreErrors||[]),!1),a(n.disableErrorDefaults?[]:zr),!1),ignoreTransactions:c(c(c([],a(n.ignoreTransactions||[]),!1),a(t.ignoreTransactions||[]),!1),a(n.disableTransactionDefaults?[]:Jr),!1),ignoreInternal:void 0===n.ignoreInternal||n.ignoreInternal}}(n,i);return function(n,t){if(t.ignoreInternal&&function(n){try{return"SentryError"===n.exception.values[0].type}catch(n){}return!1}(n))return!0;if(function(n,t){if(n.type||!t||!t.length)return!1;return function(n){var t,r=[];n.message&&r.push(n.message);try{t=n.exception.values[n.exception.values.length-1]}catch(n){}t&&t.value&&(r.push(t.value),t.type&&r.push("".concat(t.type,": ").concat(t.value)));return r}(n).some((function(n){return x(n,t)}))}(n,t.ignoreErrors))return!0;if(function(n,t){if("transaction"!==n.type||!t||!t.length)return!1;var r=n.transaction;return!!r&&x(r,t)}(n,t.ignoreTransactions))return!0;if(function(n,t){if(!t||!t.length)return!1;var r=Qr(n);return!!r&&x(r,t)}(n,t.denyUrls))return!0;if(!function(n,t){if(!t||!t.length)return!0;var r=Qr(n);return!r||x(r,t)}(n,t.allowUrls))return!0;return!1}(t,o)?null:t}}},Kr=Rr(Yr,Vr);function Qr(n){try{var t;try{t=n.exception.values[0].stacktrace.frames}catch(n){}return t?function(n){void 0===n&&(n=[]);for(var t=n.length-1;t>=0;t--){var r=n[t];if(r&&""!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(t):null}catch(n){return null}}var Zr="FunctionToString",ne=new WeakMap,te=function(){return{name:Zr,setupOnce:function(){Xr=Function.prototype.toString;try{Function.prototype.toString=function(){for(var n=[],t=0;t0}function pe(){de++,setTimeout((function(){de--}))}function ye(n,t,r){if(void 0===t&&(t={}),"function"!=typeof n)return n;try{var i=n.__sentry_wrapped__;if(i)return i;if(an(n))return n}catch(t){return n}var sentryWrapped=function(){var i=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);var o=i.map((function(n){return ye(n,t)}));return n.apply(this,o)}catch(n){throw pe(),Pt((function(r){r.addEventProcessor((function(n){return t.mechanism&&(mn(n,void 0,void 0),gn(n,t.mechanism)),n.extra=e(e({},n.extra),{arguments:i}),n})),captureException(n)})),n}};try{for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(sentryWrapped[o]=n[o])}catch(n){}un(sentryWrapped,n),on(n,"__sentry_wrapped__",sentryWrapped);try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:function(){return n.name}})}catch(n){}return sentryWrapped}function me(n,t){var r=be(n,t),e={type:t&&t.name,value:_e(t)};return r.length&&(e.stacktrace={frames:r}),void 0===e.type&&""===e.value&&(e.value="Unrecoverable error caught"),e}function ge(n,t){return{exception:{values:[me(n,t)]}}}function be(n,t){var r=t.stacktrace||t.stack||"",e=function(n){if(n){if("number"==typeof n.framesToPop)return n.framesToPop;if(we.test(n.message))return 1}return 0}(t);try{return n(r,e)}catch(n){}return[]}var we=/Minified React error #\d+;/i;function _e(n){var t=n&&n.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Ee(n,t,r,e){var i=je(n,t,r&&r.syntheticException||void 0,e);return gn(i),i.level="error",r&&r.event_id&&(i.event_id=r.event_id),Vn(i)}function Se(n,t,r,e,i){void 0===r&&(r="info");var o=xe(n,t,e&&e.syntheticException||void 0,i);return o.level=r,e&&e.event_id&&(o.event_id=e.event_id),Vn(o)}function je(n,t,r,i,o){var u;if(h(t)&&t.error)return ge(n,t.error);if(d(t)||v(t,"DOMException")){var a=t;if("stack"in t)u=ge(n,t);else{var c=a.name||(d(a)?"DOMError":"DOMException"),f=a.message?"".concat(c,": ").concat(a.message):c;mn(u=xe(n,f,r,i),f)}return"code"in a&&(u.tags=e(e({},u.tags),{"DOMException.code":"".concat(a.code)})),u}return s(t)?ge(n,t):m(t)||g(t)?(u=function(n,t,r,e){var i=qt(),o=i&&i.getOptions().normalizeDepth,u={exception:{values:[{type:g(t)?t.constructor.name:e?"UnhandledRejection":"Error",value:Oe(t,{isUnhandledRejection:e})}]},extra:{__serialized__:Jn(t,o)}};if(r){var a=be(n,r);a.length&&(u.exception.values[0].stacktrace={frames:a})}return u}(n,t,r,o),gn(u,{synthetic:!0}),u):(mn(u=xe(n,t,r,i),"".concat(t),void 0),gn(u,{synthetic:!0}),u)}function xe(n,t,r,e){var i={};if(e&&r){var o=be(n,r);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}if(p(t)){var u=t.__sentry_template_string__,a=t.__sentry_template_values__;return i.logentry={message:u,params:a},i}return i.message=t,i}function Oe(n,t){var r=t.isUnhandledRejection,e=function(n,t){void 0===t&&(t=40);var r=Object.keys(cn(n));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=t)return E(r[0],t);for(var e=r.length;e>0;e--){var i=r.slice(0,e).join(", ");if(!(i.length>t))return e===r.length?i:E(i,t)}return""}(n),i=r?"promise rejection":"exception";if(h(n))return"Event `ErrorEvent` captured as ".concat(i," with message `").concat(n.message,"`");if(g(n)){var o=function(n){try{var t=Object.getPrototypeOf(n);return t?t.constructor.name:void 0}catch(n){}}(n);return"Event `".concat(o,"` (type=").concat(n.type,") captured as ").concat(i)}return"Object captured as ".concat(i," with keys: ").concat(e)}function ke(n,t){var r=t.metadata,i=t.tunnel,o=t.dsn,u=e(e({event_id:n.event_id,sent_at:(new Date).toISOString()},r&&r.sdk&&{sdk:{name:r.sdk.name,version:r.sdk.version}}),!!i&&!!o&&{dsn:W(o)}),a=function(n){return[{type:"user_report"},n]}(n);return ft(u,[a])}var Te=function(n){function t(t){var r=this;return function(n,t,r,e){void 0===r&&(r=[t]),void 0===e&&(e="npm");var i=n.V||{};i.sdk||(i.sdk={name:"sentry.javascript.".concat(t),packages:r.map((function(n){return{name:"".concat(e,":@sentry/").concat(n),version:er}})),version:er}),n.V=i}(t,"browser",["browser"],he.SENTRY_SDK_SOURCE||"cdn"),r=n.call(this,t)||this,t.sendClientReports&&he.document&&he.document.addEventListener("visibilitychange",(function(){"hidden"===he.document.visibilityState&&r.jn()})),r}return r(t,n),t.prototype.eventFromException=function(n,t){return Ee(this.K.stackParser,n,t,this.K.attachStacktrace)},t.prototype.eventFromMessage=function(n,t,r){return void 0===t&&(t="info"),Se(this.K.stackParser,n,t,r,this.K.attachStacktrace)},t.prototype.captureUserFeedback=function(n){if(this.sn()){var t=ke(n,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.hn(t)}},t.prototype.ln=function(t,r,e){return t.platform=t.platform||"javascript",n.prototype.ln.call(this,t,r,e)},t.prototype.jn=function(){var n=this.yn();if(0!==n.length&&this.en){var t,r,e,i=(t=n,ft((r=this.K.tunnel&&W(this.en))?{dsn:r}:{},[[{type:"client_report"},{timestamp:e||et(),discarded_events:t}]]));this.hn(i)}},t}(Mr),Re=void 0;function Ae(n,t){void 0===t&&(t=function(){if(Re)return Re;if(An(he.fetch))return Re=he.fetch.bind(he);var n=he.document,t=he.fetch;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r);var e=r.contentWindow;e&&e.fetch&&(t=e.fetch),n.head.removeChild(r)}catch(n){}return Re=t.bind(he)}());var r=0,i=0;return Br(n,(function(o){var u=o.body.length;r+=u,i++;var a=e({body:o.body,method:"POST",referrerPolicy:"origin",headers:n.headers,keepalive:r<=6e4&&i<15},n.fetchOptions);try{return t(n.url,a).then((function(n){return r-=u,i--,{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}))}catch(n){return Re=void 0,r-=u,i--,Kn(n)}}))}function De(n){return Br(n,(function(t){return new Qn((function(r,e){var i=new XMLHttpRequest;for(var o in i.onerror=e,i.onreadystatechange=function(){4===i.readyState&&r({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",n.url),n.headers)Object.prototype.hasOwnProperty.call(n.headers,o)&&i.setRequestHeader(o,n.headers[o]);i.send(t.body)}))}))}var Ie="?";function Ce(n,t,r,e){var i={filename:n,function:t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==e&&(i.colno=e),i}var Me=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ne=/\((\S*)(?::(\d+))(?::(\d+))\)/,Le=[30,function(n){var t=Me.exec(n);if(t){if(t[2]&&0===t[2].indexOf("eval")){var r=Ne.exec(t[2]);r&&(t[2]=r[1],t[3]=r[2],t[4]=r[3])}var e=a(Je(t[1]||Ie,t[2]),2),i=e[0];return Ce(e[1],i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],Ue=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,$e=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,He=[50,function(n){var t,r=Ue.exec(n);if(r){if(r[3]&&r[3].indexOf(" > eval")>-1){var e=$e.exec(r[3]);e&&(r[1]=r[1]||"eval",r[3]=e[1],r[4]=e[2],r[5]="")}var i=r[3],o=r[1]||Ie;return o=(t=a(Je(o,i),2))[0],Ce(i=t[1],o,r[4]?+r[4]:void 0,r[5]?+r[5]:void 0)}}],Pe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,qe=[40,function(n){var t=Pe.exec(n);return t?Ce(t[2],t[1]||Ie,+t[3],t[4]?+t[4]:void 0):void 0}],We=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Fe=[10,function(n){var t=We.exec(n);return t?Ce(t[2],t[3]||Ie,+t[1]):void 0}],Be=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Ge=[20,function(n){var t=Be.exec(n);return t?Ce(t[5],t[3]||t[4]||Ie,+t[1],+t[2]):void 0}],Xe=[Le,He,qe],ze=J.apply(void 0,c([],a(Xe),!1)),Je=function(n,t){var r=-1!==n.indexOf("safari-extension"),e=-1!==n.indexOf("safari-web-extension");return r||e?[-1!==n.indexOf("@")?n.split("@")[0]:Ie,r?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[n,t]},Ye=1024,Ve="Breadcrumbs",Ke=function(n){void 0===n&&(n={});var t=e({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},n);return{name:Ve,setupOnce:function(){},setup:function(n){var r,i;t.console&&(r=function(n){return function(t){if(qt()===n){var r={category:"console",data:{arguments:t.args,logger:"console"},level:rt(t.level),message:S(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message="Assertion failed: ".concat(S(t.args.slice(1)," ")||"console.assert"),r.data.arguments=t.args.slice(1)}Ht(r,{input:t.args,level:t.level})}}}(n),nn(i="console",r),tn(i,dn)),t.dom&&function(n){nn("dom",n),tn("dom",xn)}(function(n,t){return function(r){if(qt()===n){var e,i,o,u="object"==typeof t?t.serializeAttribute:void 0,a="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;a&&a>Ye&&(a=Ye),"string"==typeof u&&(u=[u]);try{var c=r.event,f=(o=c)&&o.target?c.target:c;e=N(f,{keyAttrs:u,maxStringLength:a}),i=function(n){if(!M.HTMLElement)return null;for(var t=n,r=0;r<5;r++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}(f)}catch(n){e=""}if(0!==e.length){var s={category:"ui.".concat(r.name),message:e};i&&(s.data={"ui.component_name":i}),Ht(s,{event:r.event,name:r.name,global:r.global})}}}}(n,t.dom)),t.xhr&&function(n){nn("xhr",n),tn("xhr",Gn)}(function(n){return function(t){if(qt()===n){var r=t.startTimestamp,e=t.endTimestamp,i=t.xhr.__sentry_xhr_v3__;if(r&&e&&i){var o=i.method,u=i.url,a=i.status_code,c=i.body;Ht({category:"xhr",data:{method:o,url:u,status_code:a},type:"http"},{xhr:t.xhr,input:c,startTimestamp:r,endTimestamp:e})}}}}(n)),t.fetch&&function(n){var t="fetch";nn(t,n),tn(t,Dn)}(function(n){return function(t){if(qt()===n){var r=t.startTimestamp,i=t.endTimestamp;if(i&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){Ht({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:r,endTimestamp:i})}else{var o=t.response;Ht({category:"fetch",data:e(e({},t.fetchData),{status_code:o&&o.status}),type:"http"},{input:t.args,response:o,startTimestamp:r,endTimestamp:i})}}}}(n)),t.history&&qn(function(n){return function(t){if(qt()===n){var r=t.from,e=t.to,i=nt(he.location.href),o=r?nt(r):void 0,u=nt(e);o&&o.path||(o=i),i.protocol===u.protocol&&i.host===u.host&&(e=u.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),Ht({category:"navigation",data:{from:r,to:e}})}}}(n)),t.sentry&&n.on&&n.on("beforeSendEvent",function(n){return function(t){qt()===n&&Ht({category:"sentry.".concat("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:yn(t)},{event:t})}}(n))}}},Qe=Rr(Ve,Ke);var Ze="Dedupe",ni=function(){var n;return{name:Ze,setupOnce:function(){},processEvent:function(t){if(t.type)return t;try{if(function(n,t){if(!t)return!1;if(function(n,t){var r=n.message,e=t.message;if(!r&&!e)return!1;if(r&&!e||!r&&e)return!1;if(r!==e)return!1;if(!ei(n,t))return!1;if(!ri(n,t))return!1;return!0}(n,t))return!0;if(function(n,t){var r=ii(t),e=ii(n);if(!r||!e)return!1;if(r.type!==e.type||r.value!==e.value)return!1;if(!ei(n,t))return!1;if(!ri(n,t))return!1;return!0}(n,t))return!0;return!1}(t,n))return null}catch(n){}return n=t}}},ti=Rr(Ze,ni);function ri(n,t){var r=oi(n),e=oi(t);if(!r&&!e)return!0;if(r&&!e||!r&&e)return!1;if(r=r,(e=e).length!==r.length)return!1;for(var i=0;i0?t:function(){try{return M.document.location.href}catch(n){return""}}();return 0===c.length&&c.push({colno:f,filename:v,function:"?",in_app:!0,lineno:s}),n}function si(){var n=qt();return n&&n.getOptions()||{stackParser:function(){return[]},attachStacktrace:!1}}var vi="HttpContext",hi=function(){return{name:vi,setupOnce:function(){},preprocessEvent:function(n){if(he.navigator||he.location||he.document){var t=n.request&&n.request.url||he.location&&he.location.href,r=(he.document||{}).referrer,i=(he.navigator||{}).userAgent,o=e(e(e({},n.request&&n.request.headers),r&&{Referer:r}),i&&{"User-Agent":i}),u=e(e(e({},n.request),t&&{url:t}),{headers:o});n.request=u}}}},di=Rr(vi,hi),li="LinkedErrors",pi=function(n){void 0===n&&(n={});var t=n.limit||5,r=n.key||"cause";return{name:li,setupOnce:function(){},preprocessEvent:function(n,e,i){var o=i.getOptions();O(me,o.stackParser,o.maxValueLength,r,t,n,e)}}},yi=Rr(li,pi),mi=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],gi="TryCatch",bi=function(n){void 0===n&&(n={});var t=e({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},n);return{name:gi,setupOnce:function(){t.setTimeout&&en(he,"setTimeout",_i),t.setInterval&&en(he,"setInterval",_i),t.requestAnimationFrame&&en(he,"requestAnimationFrame",Ei),t.XMLHttpRequest&&"XMLHttpRequest"in he&&en(XMLHttpRequest.prototype,"send",Si);var n=t.eventTarget;n&&(Array.isArray(n)?n:mi).forEach(ji)}}},wi=Rr(gi,bi);function _i(n){return function(){for(var t=[],r=0;r-1}),"find"in Array.prototype||(Array.prototype.find=function(n){for(var t=0;t-1}),"startsWith"in String.prototype||(String.prototype.startsWith=function(n){return 0===this.indexOf(n)}),"endsWith"in String.prototype||(String.prototype.endsWith=function(n){var t=this.indexOf(n);return t>-1&&t===this.length-n.length}),n}({});