/*! @sentry/tracing & @sentry/browser 6.13.3 (cbb01ba) | https://github.com/getsentry/sentry-javascript */ var Sentry=function(t){var n=function(t,i){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])})(t,i)};function i(t,i){function r(){this.constructor=t}n(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}var r,e,o,u,s,a,c,f=function(){return(f=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++)for(var e in n=arguments[i])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}).apply(this,arguments)};function h(t,n){var i={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(i[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var e=0;for(r=Object.getOwnPropertySymbols(t);e<r.length;e++)n.indexOf(r[e])<0&&(i[r[e]]=t[r[e]])}return i}function v(t){var n="function"==typeof Symbol&&t[Symbol.iterator],i=0;return n?n.call(t):{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}}}function d(t,n){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,e,o=i.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}return u}function l(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(d(arguments[n]));return t}function p(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return x(t,Error)}}function m(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function y(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function g(t){return"[object String]"===Object.prototype.toString.call(t)}function b(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function w(t){return"[object Object]"===Object.prototype.toString.call(t)}function T(t){return"undefined"!=typeof Event&&x(t,Event)}function S(t){return"undefined"!=typeof Element&&x(t,Element)}function E(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function x(t,n){try{return t instanceof n}catch(t){return!1}}function _(t,n){try{for(var i=t,r=[],e=0,o=0,u=" > ".length,s=void 0;i&&e++<5&&!("html"===(s=O(i,n))||e>1&&o+r.length*u+s.length>=80);)r.push(s),o+=s.length,i=i.parentNode;return r.reverse().join(" > ")}catch(t){return"<unknown>"}}function O(t,n){var i,r,e,o,u,s,a,c=t,f=[];if(!c||!c.tagName)return"";f.push(c.tagName.toLowerCase());var h=(null===(i=n)||void 0===i?void 0:i.length)?n.filter(function(t){return c.getAttribute(t)}).map(function(t){return[t,c.getAttribute(t)]}):null;if(null===(r=h)||void 0===r?void 0:r.length)h.forEach(function(t){f.push("["+t[0]+'="'+t[1]+'"]')});else if(c.id&&f.push("#"+c.id),(e=c.className)&&g(e))for(o=e.split(/\s+/),a=0;a<o.length;a++)f.push("."+o[a]);var v=["type","name","title","alt"];for(a=0;a<v.length;a++)u=v[a],(s=c.getAttribute(u))&&f.push("["+u+'="'+s+'"]');return f.join("")}!function(t){t[t.None=0]="None",t[t.Error=1]="Error",t[t.Debug=2]="Debug",t[t.Verbose=3]="Verbose"}(r||(r={})),function(t){t.Ok="ok",t.Exited="exited",t.Crashed="crashed",t.Abnormal="abnormal"}(e||(e={})),function(t){t.Ok="ok",t.Errored="errored",t.Crashed="crashed"}(o||(o={})),(u=t.Severity||(t.Severity={})).Fatal="fatal",u.Error="error",u.Warning="warning",u.Log="log",u.Info="info",u.Debug="debug",u.Critical="critical",function(t){t.fromString=function(n){switch(n){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={})),(s=t.Status||(t.Status={})).Unknown="unknown",s.Skipped="skipped",s.Success="success",s.RateLimit="rate_limit",s.Invalid="invalid",s.Failed="failed",function(t){t.fromHttpCode=function(n){return n>=200&&n<300?t.Success:429===n?t.RateLimit:n>=400&&n<500?t.Invalid:n>=500?t.Failed:t.Unknown}}(t.Status||(t.Status={})),function(t){t.Explicit="explicitly_set",t.Sampler="client_sampler",t.Rate="client_rate",t.Inheritance="inheritance"}(a||(a={})),function(t){t.BeforeSend="before_send",t.EventProcessor="event_processor",t.NetworkError="network_error",t.QueueOverflow="queue_overflow",t.RateLimitBackoff="ratelimit_backoff",t.SampleRate="sample_rate"}(c||(c={}));var j=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var i in n)t.hasOwnProperty(i)||(t[i]=n[i]);return t});var k=function(t){function n(n){var i=this.constructor,r=t.call(this,n)||this;return r.message=n,r.name=i.prototype.constructor.name,j(r,i.prototype),r}return i(n,t),n}(Error),D=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,N=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,i=n.host,r=n.path,e=n.pass,o=n.port,u=n.projectId;return n.protocol+"://"+n.publicKey+(t&&e?":"+e:"")+"@"+i+(o?":"+o:"")+"/"+(r?r+"/":r)+u},t.prototype.t=function(t){var n=D.exec(t);if(!n)throw new k("Invalid Dsn");var i=d(n.slice(1),6),r=i[0],e=i[1],o=i[2],u=void 0===o?"":o,s=i[3],a=i[4],c=void 0===a?"":a,f="",h=i[5],v=h.split("/");if(v.length>1&&(f=v.slice(0,-1).join("/"),h=v.pop()),h){var l=h.match(/^\d+/);l&&(h=l[0])}this.i({host:s,pass:u,path:f,projectId:h,port:c,protocol:r,publicKey:e})},t.prototype.i=function(t){"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),this.user=t.publicKey||"",this.protocol=t.protocol,this.publicKey=t.publicKey||"",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","publicKey","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}();function I(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function C(t,n){return t.require(n)}function R(t,n){return void 0===n&&(n=0),"string"!=typeof t||0===n?t:t.length<=n?t:t.substr(0,n)+"..."}function M(t,n){if(!Array.isArray(t))return"";for(var i=[],r=0;r<t.length;r++){var e=t[r];try{i.push(String(e))}catch(t){i.push("[value cannot be serialized]")}}return i.join(n)}function A(t,n){return!!g(t)&&(i=n,"[object RegExp]"===Object.prototype.toString.call(i)?n.test(t):"string"==typeof n&&-1!==t.indexOf(n));var i}var L={};function q(){return I()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:L}function F(){var t=q(),n=t.crypto||t.msCrypto;if(void 0!==n&&n.getRandomValues){var i=new Uint16Array(8);n.getRandomValues(i),i[3]=4095&i[3]|16384,i[4]=16383&i[4]|32768;var r=function(t){for(var n=t.toString(16);n.length<4;)n="0"+n;return n};return r(i[0])+r(i[1])+r(i[2])+r(i[3])+r(i[4])+r(i[5])+r(i[6])+r(i[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)})}function P(t){if(!t)return{};var n=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!n)return{};var i=n[6]||"",r=n[8]||"";return{host:n[4],path:n[5],protocol:n[2],relative:n[5]+i+r}}function U(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||"<unknown>"}return t.event_id||"<unknown>"}function H(t){var n=q();if(!("console"in n))return t();var i=n.console,r={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&i[t].__sentry_original__&&(r[t]=i[t],i[t]=i[t].__sentry_original__)});var e=t();return Object.keys(r).forEach(function(t){i[t]=r[t]}),e}function J(t,n,i){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||i||"Error"}function B(t,n){void 0===n&&(n={});try{t.exception.values[0].mechanism=t.exception.values[0].mechanism||{},Object.keys(n).forEach(function(i){t.exception.values[0].mechanism[i]=n[i]})}catch(t){}}var X=6e4;var G=q(),W="Sentry Logger ",z=function(){function t(){this.u=!1}return t.prototype.disable=function(){this.u=!1},t.prototype.enable=function(){this.u=!0},t.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.u&&H(function(){G.console.log(W+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.u&&H(function(){G.console.warn(W+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.u&&H(function(){G.console.error(W+"[Error]: "+t.join(" "))})},t}();G.__SENTRY__=G.__SENTRY__||{};var $=G.__SENTRY__.logger||(G.__SENTRY__.logger=new z),K=function(){function t(){this.s="function"==typeof WeakSet,this.h=this.s?new WeakSet:[]}return t.prototype.memoize=function(t){if(this.s)return!!this.h.has(t)||(this.h.add(t),!1);for(var n=0;n<this.h.length;n++){if(this.h[n]===t)return!0}return this.h.push(t),!1},t.prototype.unmemoize=function(t){if(this.s)this.h.delete(t);else for(var n=0;n<this.h.length;n++)if(this.h[n]===t){this.h.splice(n,1);break}},t}(),V="<anonymous>";function Y(t){try{return t&&"function"==typeof t&&t.name||V}catch(t){return V}}function Q(t,n,i){if(n in t){var r=t[n],e=i(r);if("function"==typeof e)try{e.prototype=e.prototype||{},Object.defineProperties(e,{__sentry_original__:{enumerable:!1,value:r}})}catch(t){}t[n]=e}}function Z(t){if(p(t)){var n=t,i={message:n.message,name:n.name,stack:n.stack};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[r]=n[r]);return i}if(T(t)){var e=t,o={};o.type=e.type;try{o.target=S(e.target)?_(e.target):Object.prototype.toString.call(e.target)}catch(t){o.target="<unknown>"}try{o.currentTarget=S(e.currentTarget)?_(e.currentTarget):Object.prototype.toString.call(e.currentTarget)}catch(t){o.currentTarget="<unknown>"}for(var u in"undefined"!=typeof CustomEvent&&x(t,CustomEvent)&&(o.detail=e.detail),e)Object.prototype.hasOwnProperty.call(e,u)&&(o[u]=e[u]);return o}return t}function tt(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function nt(t,n,i){void 0===n&&(n=3),void 0===i&&(i=102400);var r=et(t,n);return tt(r)>i?nt(t,n-1,i):r}function it(t,n){return"domain"===n&&t&&"object"==typeof t&&t.v?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":w(i=t)&&"nativeEvent"in i&&"preventDefault"in i&&"stopPropagation"in i?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+Y(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t;var i}function rt(t,n,i,r){if(void 0===i&&(i=1/0),void 0===r&&(r=new K),0===i)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 i=it(t);return b(i)?i:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var e=it(n,t);if(b(e))return e;var o=Z(n),u=Array.isArray(n)?[]:{};if(r.memoize(n))return"[Circular ~]";for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(u[s]=rt(s,o[s],i-1,r));return r.unmemoize(n),u}function et(t,n){try{return JSON.parse(JSON.stringify(t,function(t,i){return rt(t,i,n)}))}catch(t){return"**non-serializable**"}}function ot(t,n){void 0===n&&(n=40);var i=Object.keys(Z(t));if(i.sort(),!i.length)return"[object has no keys]";if(i[0].length>=n)return R(i[0],n);for(var r=i.length;r>0;r--){var e=i.slice(0,r).join(", ");if(!(e.length>n))return r===i.length?e:R(e,n)}return""}function ut(t){var n,i;if(w(t)){var r=t,e={};try{for(var o=v(Object.keys(r)),u=o.next();!u.done;u=o.next()){var s=u.value;void 0!==r[s]&&(e[s]=ut(r[s]))}}catch(t){n={error:t}}finally{try{u&&!u.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return e}return Array.isArray(t)?t.map(ut):t}function st(){if(!("fetch"in q()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function at(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function ct(){if(!st())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}var ft,ht=q(),vt={},dt={};function lt(t){if(!dt[t])switch(dt[t]=!0,t){case"console":!function(){if(!("console"in ht))return;["debug","info","warn","error","log","assert"].forEach(function(t){t in ht.console&&Q(ht.console,t,function(n){return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];mt("console",{args:i,level:t}),n&&Function.prototype.apply.call(n,ht.console,i)}})})}();break;case"dom":!function(){if(!("document"in ht))return;var t=mt.bind(null,"dom"),n=St(t,!0);ht.document.addEventListener("click",n,!1),ht.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach(function(n){var i=ht[n]&&ht[n].prototype;i&&i.hasOwnProperty&&i.hasOwnProperty("addEventListener")&&(Q(i,"addEventListener",function(n){return function(i,r,e){if("click"===i||"keypress"==i)try{var o=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},u=o[i]=o[i]||{refCount:0};if(!u.handler){var s=St(t);u.handler=s,n.call(this,i,s,e)}u.refCount+=1}catch(t){}return n.call(this,i,r,e)}}),Q(i,"removeEventListener",function(t){return function(n,i,r){if("click"===n||"keypress"==n)try{var e=this.__sentry_instrumentation_handlers__||{},o=e[n];o&&(o.refCount-=1,o.refCount<=0&&(t.call(this,n,o.handler,r),o.handler=void 0,delete e[n]),0===Object.keys(e).length&&delete this.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,n,i,r)}}))})}();break;case"xhr":!function(){if(!("XMLHttpRequest"in ht))return;var t=[],n=[],i=XMLHttpRequest.prototype;Q(i,"open",function(i){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var o=this,u=r[1];o.__sentry_xhr__={method:g(r[0])?r[0].toUpperCase():r[0],url:r[1]},g(u)&&"POST"===o.__sentry_xhr__.method&&u.match(/sentry_key/)&&(o.__sentry_own_request__=!0);var s=function(){if(4===o.readyState){try{o.__sentry_xhr__&&(o.__sentry_xhr__.status_code=o.status)}catch(t){}try{var i=t.indexOf(o);if(-1!==i){t.splice(i);var e=n.splice(i)[0];o.__sentry_xhr__&&void 0!==e[0]&&(o.__sentry_xhr__.body=e[0])}}catch(t){}mt("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:o})}};return"onreadystatechange"in o&&"function"==typeof o.onreadystatechange?Q(o,"onreadystatechange",function(t){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return s(),t.apply(o,n)}}):o.addEventListener("readystatechange",s),i.apply(o,r)}}),Q(i,"send",function(i){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return t.push(this),n.push(r),mt("xhr",{args:r,startTimestamp:Date.now(),xhr:this}),i.apply(this,r)}})}();break;case"fetch":!function(){if(!function(){if(!st())return!1;var t=q();if(at(t.fetch))return!0;var n=!1,i=t.document;if(i&&"function"==typeof i.createElement)try{var r=i.createElement("iframe");r.hidden=!0,i.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(n=at(r.contentWindow.fetch)),i.head.removeChild(r)}catch(t){$.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return n}())return;Q(ht,"fetch",function(t){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r={args:n,fetchData:{method:yt(n),url:gt(n)},startTimestamp:Date.now()};return mt("fetch",f({},r)),t.apply(ht,n).then(function(t){return mt("fetch",f(f({},r),{endTimestamp:Date.now(),response:t})),t},function(t){throw mt("fetch",f(f({},r),{endTimestamp:Date.now(),error:t})),t})}})}();break;case"history":!function(){if(t=q(),n=t.chrome,i=n&&n.app&&n.app.runtime,r="history"in t&&!!t.history.pushState&&!!t.history.replaceState,i||!r)return;var t,n,i,r;var e=ht.onpopstate;function o(t){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r=n.length>2?n[2]:void 0;if(r){var e=ft,o=String(r);ft=o,mt("history",{from:e,to:o})}return t.apply(this,n)}}ht.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=ht.location.href,r=ft;if(ft=i,mt("history",{from:r,to:i}),e)try{return e.apply(this,t)}catch(t){}},Q(ht.history,"pushState",o),Q(ht.history,"replaceState",o)}();break;case"error":Et=ht.onerror,ht.onerror=function(t,n,i,r,e){return mt("error",{column:r,error:e,line:i,msg:t,url:n}),!!Et&&Et.apply(this,arguments)};break;case"unhandledrejection":_t=ht.onunhandledrejection,ht.onunhandledrejection=function(t){return mt("unhandledrejection",t),!_t||_t.apply(this,arguments)};break;default:$.warn("unknown instrumentation type:",t)}}function pt(t){t&&"string"==typeof t.type&&"function"==typeof t.callback&&(vt[t.type]=vt[t.type]||[],vt[t.type].push(t.callback),lt(t.type))}function mt(t,n){var i,r;if(t&&vt[t])try{for(var e=v(vt[t]||[]),o=e.next();!o.done;o=e.next()){var u=o.value;try{u(n)}catch(n){$.error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+Y(u)+"\nError: "+n)}}}catch(t){i={error:t}}finally{try{o&&!o.done&&(r=e.return)&&r.call(e)}finally{if(i)throw i.error}}}function yt(t){return void 0===t&&(t=[]),"Request"in ht&&x(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function gt(t){return void 0===t&&(t=[]),"string"==typeof t[0]?t[0]:"Request"in ht&&x(t[0],Request)?t[0].url:String(t[0])}var bt,wt,Tt=1e3;function St(t,n){return void 0===n&&(n=!1),function(i){if(i&&wt!==i&&!function(t){if("keypress"!==t.type)return!1;try{var n=t.target;if(!n||!n.tagName)return!0;if("INPUT"===n.tagName||"TEXTAREA"===n.tagName||n.isContentEditable)return!1}catch(t){}return!0}(i)){var r="keypress"===i.type?"input":i.type;void 0===bt?(t({event:i,name:r,global:n}),wt=i):function(t,n){if(!t)return!0;if(t.type!==n.type)return!0;try{if(t.target!==n.target)return!0}catch(t){}return!1}(wt,i)&&(t({event:i,name:r,global:n}),wt=i),clearTimeout(bt),bt=ht.setTimeout(function(){bt=void 0},Tt)}}}var Et=null;var xt,_t=null;!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(xt||(xt={}));var Ot=function(){function t(t){var n=this;this.l=xt.PENDING,this.p=[],this.m=function(t){n.g(xt.RESOLVED,t)},this.T=function(t){n.g(xt.REJECTED,t)},this.g=function(t,i){n.l===xt.PENDING&&(E(i)?i.then(n.m,n.T):(n.l=t,n.S=i,n._()))},this.O=function(t){n.p=n.p.concat(t),n._()},this._=function(){if(n.l!==xt.PENDING){var t=n.p.slice();n.p=[],t.forEach(function(t){t.done||(n.l===xt.RESOLVED&&t.onfulfilled&&t.onfulfilled(n.S),n.l===xt.REJECTED&&t.onrejected&&t.onrejected(n.S),t.done=!0)})}};try{t(this.m,this.T)}catch(t){this.T(t)}}return t.resolve=function(n){return new t(function(t){t(n)})},t.reject=function(n){return new t(function(t,i){i(n)})},t.all=function(n){return new t(function(i,r){if(Array.isArray(n))if(0!==n.length){var e=n.length,o=[];n.forEach(function(n,u){t.resolve(n).then(function(t){o[u]=t,0===(e-=1)&&i(o)}).then(null,r)})}else i([]);else r(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(n,i){var r=this;return new t(function(t,e){r.O({done:!1,onfulfilled:function(i){if(n)try{return void t(n(i))}catch(t){return void e(t)}else t(i)},onrejected:function(n){if(i)try{return void t(i(n))}catch(t){return void e(t)}else e(n)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(n){var i=this;return new t(function(t,r){var e,o;return i.then(function(t){o=!1,e=t,n&&n()},function(t){o=!0,e=t,n&&n()}).then(function(){o?r(e):t(e)})})},t.prototype.toString=function(){return"[object SyncPromise]"},t}(),jt=function(){function t(t){this.j=t,this.k=[]}return t.prototype.isReady=function(){return void 0===this.j||this.length()<this.j},t.prototype.add=function(t){var n=this;if(!this.isReady())return Ot.reject(new k("Not adding Promise due to buffer limit reached."));var i=t();return-1===this.k.indexOf(i)&&this.k.push(i),i.then(function(){return n.remove(i)}).then(null,function(){return n.remove(i).then(null,function(){})}),i},t.prototype.remove=function(t){return this.k.splice(this.k.indexOf(t),1)[0]},t.prototype.length=function(){return this.k.length},t.prototype.drain=function(t){var n=this;return new Ot(function(i){var r=setTimeout(function(){t&&t>0&&i(!1)},t);Ot.all(n.k).then(function(){clearTimeout(r),i(!0)}).then(null,function(){i(!0)})})},t}(),kt={nowSeconds:function(){return Date.now()/1e3}};var Dt=I()?function(){try{return C(module,"perf_hooks").performance}catch(t){return}}():function(){var t=q().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),Nt=void 0===Dt?kt:{nowSeconds:function(){return(Dt.timeOrigin+Dt.now())/1e3}},It=kt.nowSeconds.bind(kt),Ct=Nt.nowSeconds.bind(Nt),Rt=Ct,Mt=function(){var t=q().performance;if(t&&t.now){var n=t.now(),i=Date.now(),r=t.timeOrigin?Math.abs(t.timeOrigin+n-i):36e5,e=r<36e5,o=t.timing&&t.timing.navigationStart,u="number"==typeof o?Math.abs(o+n-i):36e5;return e||u<36e5?r<=u?t.timeOrigin:o:i}}(),At=function(){function t(){this.D=!1,this.N=[],this.I=[],this.C=[],this.R={},this.M={},this.A={},this.L={}}return t.clone=function(n){var i=new t;return n&&(i.C=l(n.C),i.M=f({},n.M),i.A=f({},n.A),i.L=f({},n.L),i.R=n.R,i.q=n.q,i.F=n.F,i.P=n.P,i.U=n.U,i.H=n.H,i.I=l(n.I),i.J=n.J),i},t.prototype.addScopeListener=function(t){this.N.push(t)},t.prototype.addEventProcessor=function(t){return this.I.push(t),this},t.prototype.setUser=function(t){return this.R=t||{},this.P&&this.P.update({user:t}),this.B(),this},t.prototype.getUser=function(){return this.R},t.prototype.getRequestSession=function(){return this.J},t.prototype.setRequestSession=function(t){return this.J=t,this},t.prototype.setTags=function(t){return this.M=f(f({},this.M),t),this.B(),this},t.prototype.setTag=function(t,n){var i;return this.M=f(f({},this.M),((i={})[t]=n,i)),this.B(),this},t.prototype.setExtras=function(t){return this.A=f(f({},this.A),t),this.B(),this},t.prototype.setExtra=function(t,n){var i;return this.A=f(f({},this.A),((i={})[t]=n,i)),this.B(),this},t.prototype.setFingerprint=function(t){return this.H=t,this.B(),this},t.prototype.setLevel=function(t){return this.q=t,this.B(),this},t.prototype.setTransactionName=function(t){return this.U=t,this.B(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,n){var i;return null===n?delete this.L[t]:this.L=f(f({},this.L),((i={})[t]=n,i)),this.B(),this},t.prototype.setSpan=function(t){return this.F=t,this.B(),this},t.prototype.getSpan=function(){return this.F},t.prototype.getTransaction=function(){var t,n,i,r,e=this.getSpan();return(null===(t=e)||void 0===t?void 0:t.transaction)?null===(n=e)||void 0===n?void 0:n.transaction:(null===(r=null===(i=e)||void 0===i?void 0:i.spanRecorder)||void 0===r?void 0:r.spans[0])?e.spanRecorder.spans[0]:void 0},t.prototype.setSession=function(t){return t?this.P=t:delete this.P,this.B(),this},t.prototype.getSession=function(){return this.P},t.prototype.update=function(n){if(!n)return this;if("function"==typeof n){var i=n(this);return i instanceof t?i:this}return n instanceof t?(this.M=f(f({},this.M),n.M),this.A=f(f({},this.A),n.A),this.L=f(f({},this.L),n.L),n.R&&Object.keys(n.R).length&&(this.R=n.R),n.q&&(this.q=n.q),n.H&&(this.H=n.H),n.J&&(this.J=n.J)):w(n)&&(n=n,this.M=f(f({},this.M),n.tags),this.A=f(f({},this.A),n.extra),this.L=f(f({},this.L),n.contexts),n.user&&(this.R=n.user),n.level&&(this.q=n.level),n.fingerprint&&(this.H=n.fingerprint),n.requestSession&&(this.J=n.requestSession)),this},t.prototype.clear=function(){return this.C=[],this.M={},this.A={},this.R={},this.L={},this.q=void 0,this.U=void 0,this.H=void 0,this.J=void 0,this.F=void 0,this.P=void 0,this.B(),this},t.prototype.addBreadcrumb=function(t,n){var i="number"==typeof n?Math.min(n,100):100;if(i<=0)return this;var r=f({timestamp:It()},t);return this.C=l(this.C,[r]).slice(-i),this.B(),this},t.prototype.clearBreadcrumbs=function(){return this.C=[],this.B(),this},t.prototype.applyToEvent=function(t,n){var i;if(this.A&&Object.keys(this.A).length&&(t.extra=f(f({},this.A),t.extra)),this.M&&Object.keys(this.M).length&&(t.tags=f(f({},this.M),t.tags)),this.R&&Object.keys(this.R).length&&(t.user=f(f({},this.R),t.user)),this.L&&Object.keys(this.L).length&&(t.contexts=f(f({},this.L),t.contexts)),this.q&&(t.level=this.q),this.U&&(t.transaction=this.U),this.F){t.contexts=f({trace:this.F.getTraceContext()},t.contexts);var r=null===(i=this.F.transaction)||void 0===i?void 0:i.name;r&&(t.tags=f({transaction:r},t.tags))}return this.X(t),t.breadcrumbs=l(t.breadcrumbs||[],this.C),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this.G(l(Lt(),this.I),t,n)},t.prototype.G=function(t,n,i,r){var e=this;return void 0===r&&(r=0),new Ot(function(o,u){var s=t[r];if(null===n||"function"!=typeof s)o(n);else{var a=s(f({},n),i);E(a)?a.then(function(n){return e.G(t,n,i,r+1).then(o)}).then(null,u):e.G(t,a,i,r+1).then(o).then(null,u)}})},t.prototype.B=function(){var t=this;this.D||(this.D=!0,this.N.forEach(function(n){n(t)}),this.D=!1)},t.prototype.X=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.H&&(t.fingerprint=t.fingerprint.concat(this.H)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function Lt(){var t=q();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function qt(t){Lt().push(t)}var Ft=function(){function t(t){this.errors=0,this.sid=F(),this.duration=0,this.status=e.Ok,this.init=!0,this.ignoreDuration=!1;var n=Ct();this.timestamp=n,this.started=n,t&&this.update(t)}return t.prototype.update=function(t){if(void 0===t&&(t={}),t.user&&(!this.ipAddress&&t.user.ip_address&&(this.ipAddress=t.user.ip_address),this.did||t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||Ct(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:F()),void 0!==t.init&&(this.init=t.init),!this.did&&t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof t.duration)this.duration=t.duration;else{var n=this.timestamp-this.started;this.duration=n>=0?n:0}t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),!this.ipAddress&&t.ipAddress&&(this.ipAddress=t.ipAddress),!this.userAgent&&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===e.Ok?this.update({status:e.Exited}):this.update()},t.prototype.toJSON=function(){return ut({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*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:ut({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},t}(),Pt=4,Ut=function(){function t(t,n,i){void 0===n&&(n=new At),void 0===i&&(i=Pt),this.W=i,this.$=[{}],this.getStackTop().scope=n,t&&this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this.W<t},t.prototype.bindClient=function(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()},t.prototype.pushScope=function(){var t=At.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t},t.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},t.prototype.withScope=function(t){var n=this.pushScope();try{t(n)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this.$},t.prototype.getStackTop=function(){return this.$[this.$.length-1]},t.prototype.captureException=function(t,n){var i=this.K=F(),r=n;if(!n){var e=void 0;try{throw new Error("Sentry syntheticException")}catch(t){e=t}r={originalException:t,syntheticException:e}}return this.V("captureException",t,f(f({},r),{event_id:i})),i},t.prototype.captureMessage=function(t,n,i){var r=this.K=F(),e=i;if(!i){var o=void 0;try{throw new Error(t)}catch(t){o=t}e={originalException:t,syntheticException:o}}return this.V("captureMessage",t,n,f(f({},e),{event_id:r})),r},t.prototype.captureEvent=function(t,n){var i=F();return"transaction"!==t.type&&(this.K=i),this.V("captureEvent",t,f(f({},n),{event_id:i})),i},t.prototype.lastEventId=function(){return this.K},t.prototype.addBreadcrumb=function(t,n){var i=this.getStackTop(),r=i.scope,e=i.client;if(r&&e){var o=e.getOptions&&e.getOptions()||{},u=o.beforeBreadcrumb,s=void 0===u?null:u,a=o.maxBreadcrumbs,c=void 0===a?100:a;if(!(c<=0)){var h=It(),v=f({timestamp:h},t),d=s?H(function(){return s(v,n)}):v;null!==d&&r.addBreadcrumb(d,c)}}},t.prototype.setUser=function(t){var n=this.getScope();n&&n.setUser(t)},t.prototype.setTags=function(t){var n=this.getScope();n&&n.setTags(t)},t.prototype.setExtras=function(t){var n=this.getScope();n&&n.setExtras(t)},t.prototype.setTag=function(t,n){var i=this.getScope();i&&i.setTag(t,n)},t.prototype.setExtra=function(t,n){var i=this.getScope();i&&i.setExtra(t,n)},t.prototype.setContext=function(t,n){var i=this.getScope();i&&i.setContext(t,n)},t.prototype.configureScope=function(t){var n=this.getStackTop(),i=n.scope,r=n.client;i&&r&&t(i)},t.prototype.run=function(t){var n=Jt(this);try{t(this)}finally{Jt(n)}},t.prototype.getIntegration=function(t){var n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch(n){return $.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t.prototype.startSpan=function(t){return this.Y("startSpan",t)},t.prototype.startTransaction=function(t,n){return this.Y("startTransaction",t,n)},t.prototype.traceHeaders=function(){return this.Y("traceHeaders")},t.prototype.captureSession=function(t){if(void 0===t&&(t=!1),t)return this.endSession();this.Z()},t.prototype.endSession=function(){var t,n,i,r,e;null===(i=null===(n=null===(t=this.getStackTop())||void 0===t?void 0:t.scope)||void 0===n?void 0:n.getSession())||void 0===i||i.close(),this.Z(),null===(e=null===(r=this.getStackTop())||void 0===r?void 0:r.scope)||void 0===e||e.setSession()},t.prototype.startSession=function(t){var n=this.getStackTop(),i=n.scope,r=n.client,o=r&&r.getOptions()||{},u=o.release,s=o.environment,a=(q().navigator||{}).userAgent,c=new Ft(f(f(f({release:u,environment:s},i&&{user:i.getUser()}),a&&{userAgent:a}),t));if(i){var h=i.getSession&&i.getSession();h&&h.status===e.Ok&&h.update({status:e.Exited}),this.endSession(),i.setSession(c)}return c},t.prototype.Z=function(){var t=this.getStackTop(),n=t.scope,i=t.client;if(n){var r=n.getSession&&n.getSession();r&&i&&i.captureSession&&i.captureSession(r)}},t.prototype.V=function(t){for(var n,i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];var e=this.getStackTop(),o=e.scope,u=e.client;u&&u[t]&&(n=u)[t].apply(n,l(i,[o]))},t.prototype.Y=function(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=Ht().__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[t])return r.extensions[t].apply(this,n);$.warn("Extension method "+t+" couldn't be found, doing nothing.")},t}();function Ht(){var t=q();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function Jt(t){var n=Ht(),i=Gt(n);return Wt(n,t),i}function Bt(){var t=Ht();return Xt(t)&&!Gt(t).isOlderThan(Pt)||Wt(t,new Ut),I()?function(t){var n,i,r;try{var e=null===(r=null===(i=null===(n=Ht().__SENTRY__)||void 0===n?void 0:n.extensions)||void 0===i?void 0:i.domain)||void 0===r?void 0:r.active;if(!e)return Gt(t);if(!Xt(e)||Gt(e).isOlderThan(Pt)){var o=Gt(t).getStackTop();Wt(e,new Ut(o.client,At.clone(o.scope)))}return Gt(e)}catch(n){return Gt(t)}}(t):Gt(t)}function Xt(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function Gt(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub?t.__SENTRY__.hub:(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new Ut,t.__SENTRY__.hub)}function Wt(t,n){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=n,!0)}function zt(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=Bt();if(r&&r[t])return r[t].apply(r,l(n));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function captureException(t,n){var i;try{throw new Error("Sentry syntheticException")}catch(t){i=t}return zt("captureException",t,{captureContext:n,originalException:t,syntheticException:i})}function $t(t){zt("withScope",t)}var Kt=function(){function t(t,n,i){void 0===n&&(n={}),this.dsn=t,this.tt=new N(t),this.metadata=n,this.nt=i}return t.prototype.getDsn=function(){return this.tt},t.prototype.forceEnvelope=function(){return!!this.nt},t.prototype.getBaseApiEndpoint=function(){var t=this.getDsn(),n=t.protocol?t.protocol+":":"",i=t.port?":"+t.port:"";return n+"//"+t.host+i+(t.path?"/"+t.path:"")+"/api/"},t.prototype.getStoreEndpoint=function(){return this.it("store")},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this.rt()},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this.forceEnvelope()?this.nt:this.et()+"?"+this.rt()},t.prototype.getStoreEndpointPath=function(){var t=this.getDsn();return(t.path?"/"+t.path:"")+"/api/"+t.projectId+"/store/"},t.prototype.getRequestHeaders=function(t,n){var i=this.getDsn(),r=["Sentry sentry_version=7"];return r.push("sentry_client="+t+"/"+n),r.push("sentry_key="+i.publicKey),i.pass&&r.push("sentry_secret="+i.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},t.prototype.getReportDialogEndpoint=function(t){void 0===t&&(t={});var n=this.getDsn(),i=this.getBaseApiEndpoint()+"embed/error-page/",r=[];for(var e in r.push("dsn="+n.toString()),t)if("dsn"!==e)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?i+"?"+r.join("&"):i},t.prototype.et=function(){return this.it("envelope")},t.prototype.it=function(t){return this.nt?this.nt:""+this.getBaseApiEndpoint()+this.getDsn().projectId+"/"+t+"/"},t.prototype.rt=function(){var t,n={sentry_key:this.getDsn().publicKey,sentry_version:"7"};return t=n,Object.keys(t).map(function(n){return encodeURIComponent(n)+"="+encodeURIComponent(t[n])}).join("&")},t}(),Vt=[];function Yt(t){return t.reduce(function(t,n){return t.every(function(t){return n.name!==t.name})&&t.push(n),t},[])}function Qt(t){var n={};return function(t){var n=t.defaultIntegrations&&l(t.defaultIntegrations)||[],i=t.integrations,r=l(Yt(n));Array.isArray(i)?r=l(r.filter(function(t){return i.every(function(n){return n.name!==t.name})}),Yt(i)):"function"==typeof i&&(r=i(r),r=Array.isArray(r)?r:[r]);var e=r.map(function(t){return t.name});return-1!==e.indexOf("Debug")&&r.push.apply(r,l(r.splice(e.indexOf("Debug"),1))),r}(t).forEach(function(t){n[t.name]=t,function(t){-1===Vt.indexOf(t.name)&&(t.setupOnce(qt,Bt),Vt.push(t.name),$.log("Integration installed: "+t.name))}(t)}),Object.defineProperty(n,"initialized",{value:!0}),n}var Zt=function(){function t(t,n){this.ot={},this.ut=0,this.st=new t(n),this.at=n,n.dsn&&(this.ct=new N(n.dsn))}return t.prototype.captureException=function(t,n,i){var r=this,e=n&&n.event_id;return this.ft(this.ht().eventFromException(t,n).then(function(t){return r.vt(t,n,i)}).then(function(t){e=t})),e},t.prototype.captureMessage=function(t,n,i,r){var e=this,o=i&&i.event_id,u=b(t)?this.ht().eventFromMessage(String(t),n,i):this.ht().eventFromException(t,i);return this.ft(u.then(function(t){return e.vt(t,i,r)}).then(function(t){o=t})),o},t.prototype.captureEvent=function(t,n,i){var r=n&&n.event_id;return this.ft(this.vt(t,n,i).then(function(t){r=t})),r},t.prototype.captureSession=function(t){this.dt()?"string"!=typeof t.release?$.warn("Discarded session because of missing or non-string release"):(this.lt(t),t.update({init:!1})):$.warn("SDK not enabled, will not capture session.")},t.prototype.getDsn=function(){return this.ct},t.prototype.getOptions=function(){return this.at},t.prototype.getTransport=function(){return this.ht().getTransport()},t.prototype.flush=function(t){var n=this;return this.pt(t).then(function(i){return n.getTransport().close(t).then(function(t){return i&&t})})},t.prototype.close=function(t){var n=this;return this.flush(t).then(function(t){return n.getOptions().enabled=!1,t})},t.prototype.setupIntegrations=function(){this.dt()&&!this.ot.initialized&&(this.ot=Qt(this.at))},t.prototype.getIntegration=function(t){try{return this.ot[t.id]||null}catch(n){return $.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype.yt=function(t,n){var i,r,o=!1,u=!1,s=n.exception&&n.exception.values;if(s){u=!0;try{for(var a=v(s),c=a.next();!c.done;c=a.next()){var h=c.value.mechanism;if(h&&!1===h.handled){o=!0;break}}}catch(t){i={error:t}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}}var d=t.status===e.Ok;(d&&0===t.errors||d&&o)&&(t.update(f(f({},o&&{status:e.Crashed}),{errors:t.errors||Number(u||o)})),this.captureSession(t))},t.prototype.lt=function(t){this.ht().sendSession(t)},t.prototype.pt=function(t){var n=this;return new Ot(function(i){var r=0,e=setInterval(function(){0==n.ut?(clearInterval(e),i(!0)):(r+=1,t&&r>=t&&(clearInterval(e),i(!1)))},1)})},t.prototype.ht=function(){return this.st},t.prototype.dt=function(){return!1!==this.getOptions().enabled&&void 0!==this.ct},t.prototype.gt=function(t,n,i){var r=this,e=this.getOptions().normalizeDepth,o=void 0===e?3:e,u=f(f({},t),{event_id:t.event_id||(i&&i.event_id?i.event_id:F()),timestamp:t.timestamp||It()});this.bt(u),this.wt(u);var s=n;i&&i.captureContext&&(s=At.clone(s).update(i.captureContext));var a=Ot.resolve(u);return s&&(a=s.applyToEvent(u,i)),a.then(function(t){return"number"==typeof o&&o>0?r.Tt(t,o):t})},t.prototype.Tt=function(t,n){if(!t)return null;var i=f(f(f(f(f({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(function(t){return f(f({},t),t.data&&{data:et(t.data,n)})})}),t.user&&{user:et(t.user,n)}),t.contexts&&{contexts:et(t.contexts,n)}),t.extra&&{extra:et(t.extra,n)});t.contexts&&t.contexts.trace&&(i.contexts.trace=t.contexts.trace);var r=this.getOptions().St;return(void 0===r?{}:r).ensureNoCircularStructures?et(i):i},t.prototype.bt=function(t){var n=this.getOptions(),i=n.environment,r=n.release,e=n.dist,o=n.maxValueLength,u=void 0===o?250:o;"environment"in t||(t.environment="environment"in n?i:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==e&&(t.dist=e),t.message&&(t.message=R(t.message,u));var s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=R(s.value,u));var a=t.request;a&&a.url&&(a.url=R(a.url,u))},t.prototype.wt=function(t){var n=Object.keys(this.ot);n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=l(t.sdk.integrations||[],n))},t.prototype.Et=function(t){this.ht().sendEvent(t)},t.prototype.vt=function(t,n,i){return this.xt(t,n,i).then(function(t){return t.event_id},function(t){$.error(t)})},t.prototype.xt=function(t,n,i){var r,e,o=this,u=this.getOptions(),s=u.beforeSend,a=u.sampleRate,f=this.getTransport();if(!this.dt())return Ot.reject(new k("SDK not enabled, will not capture event."));var h="transaction"===t.type;return!h&&"number"==typeof a&&Math.random()>a?(null===(e=(r=f).recordLostEvent)||void 0===e||e.call(r,c.SampleRate,"event"),Ot.reject(new k("Discarding event because it's not included in the random sample (sampling rate = "+a+")"))):this.gt(t,i,n).then(function(i){var r,e;if(null===i)throw null===(e=(r=f).recordLostEvent)||void 0===e||e.call(r,c.EventProcessor,t.type||"event"),new k("An event processor returned null, will not send event.");if(n&&n.data&&!0===n.data.__sentry__||h||!s)return i;var u=s(i,n);return o._t(u)}).then(function(n){var r,e;if(null===n)throw null===(e=(r=f).recordLostEvent)||void 0===e||e.call(r,c.BeforeSend,t.type||"event"),new k("`beforeSend` returned `null`, will not send event.");var u=i&&i.getSession&&i.getSession();return!h&&u&&o.yt(u,n),o.Et(n),n}).then(null,function(t){if(t instanceof k)throw t;throw o.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.ft=function(t){var n=this;this.ut+=1,t.then(function(t){return n.ut-=1,t},function(t){return n.ut-=1,t})},t.prototype._t=function(t){var n="`beforeSend` method has to return `null` or a valid event.";if(E(t))return t.then(function(t){if(!w(t)&&null!==t)throw new k(n);return t},function(t){throw new k("beforeSend rejected with "+t)});if(!w(t)&&null!==t)throw new k(n);return t},t}(),tn=function(){function n(){}return n.prototype.sendEvent=function(n){return Ot.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:t.Status.Skipped})},n.prototype.close=function(t){return Ot.resolve(!0)},n}(),nn=function(){function t(t){this.at=t,this.at.dsn||$.warn("No DSN provided, backend will not do anything."),this.Ot=this.jt()}return t.prototype.eventFromException=function(t,n){throw new k("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,n,i){throw new k("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){this.Ot.sendEvent(t).then(null,function(t){$.error("Error while sending event: "+t)})},t.prototype.sendSession=function(t){this.Ot.sendSession?this.Ot.sendSession(t).then(null,function(t){$.error("Error while sending session: "+t)}):$.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this.Ot},t.prototype.jt=function(){return new tn},t}();function rn(t){if(t.metadata&&t.metadata.sdk){var n=t.metadata.sdk;return{name:n.name,version:n.version}}}function en(t,n){return n?(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||n.name,t.sdk.version=t.sdk.version||n.version,t.sdk.integrations=l(t.sdk.integrations||[],n.integrations||[]),t.sdk.packages=l(t.sdk.packages||[],n.packages||[]),t):t}function on(t,n){var i=rn(n),r="aggregates"in t?"sessions":"session";return{body:JSON.stringify(f(f({sent_at:(new Date).toISOString()},i&&{sdk:i}),n.forceEnvelope()&&{dsn:n.getDsn().toString()}))+"\n"+JSON.stringify({type:r})+"\n"+JSON.stringify(t),type:r,url:n.getEnvelopeEndpointWithUrlEncodedAuth()}}function un(t,n){var i=rn(n),r=t.type||"event",e="transaction"===r||n.forceEnvelope(),o=t.debug_meta||{},u=o.transactionSampling,s=h(o,["transactionSampling"]),a=u||{},c=a.method,v=a.rate;0===Object.keys(s).length?delete t.debug_meta:t.debug_meta=s;var d={body:JSON.stringify(i?en(t,n.metadata.sdk):t),type:r,url:e?n.getEnvelopeEndpointWithUrlEncodedAuth():n.getStoreEndpointWithUrlEncodedAuth()};if(e){var l=JSON.stringify(f(f({event_id:t.event_id,sent_at:(new Date).toISOString()},i&&{sdk:i}),n.forceEnvelope()&&{dsn:n.getDsn().toString()}))+"\n"+JSON.stringify({type:r,sample_rates:[{id:c,rate:v}]})+"\n"+d.body;d.body=l}return d}var sn,an="6.13.3",cn=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){sn=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=this.__sentry_original__||this;return sn.apply(i,t)}},t.id="FunctionToString",t}(),fn=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],hn=function(){function t(n){void 0===n&&(n={}),this.at=n,this.name=t.id}return t.prototype.setupOnce=function(){qt(function(n){var i=Bt();if(!i)return n;var r=i.getIntegration(t);if(r){var e=i.getClient(),o=e?e.getOptions():{},u="function"==typeof r.kt?r.kt(o):{};return"function"!=typeof r.Dt?n:r.Dt(n,u)?null:n}return n})},t.prototype.Dt=function(t,n){return this.Nt(t,n)?($.warn("Event dropped due to being internal Sentry Error.\nEvent: "+U(t)),!0):this.It(t,n)?($.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+U(t)),!0):this.Ct(t,n)?($.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+U(t)+".\nUrl: "+this.Rt(t)),!0):!this.Mt(t,n)&&($.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+U(t)+".\nUrl: "+this.Rt(t)),!0)},t.prototype.Nt=function(t,n){if(!n.ignoreInternal)return!1;try{return t&&t.exception&&t.exception.values&&t.exception.values[0]&&"SentryError"===t.exception.values[0].type||!1}catch(t){return!1}},t.prototype.It=function(t,n){return!(!n.ignoreErrors||!n.ignoreErrors.length)&&this.At(t).some(function(t){return n.ignoreErrors.some(function(n){return A(t,n)})})},t.prototype.Ct=function(t,n){if(!n.denyUrls||!n.denyUrls.length)return!1;var i=this.Rt(t);return!!i&&n.denyUrls.some(function(t){return A(i,t)})},t.prototype.Mt=function(t,n){if(!n.allowUrls||!n.allowUrls.length)return!0;var i=this.Rt(t);return!i||n.allowUrls.some(function(t){return A(i,t)})},t.prototype.kt=function(t){return void 0===t&&(t={}),{allowUrls:l(this.at.whitelistUrls||[],this.at.allowUrls||[],t.whitelistUrls||[],t.allowUrls||[]),denyUrls:l(this.at.blacklistUrls||[],this.at.denyUrls||[],t.blacklistUrls||[],t.denyUrls||[]),ignoreErrors:l(this.at.ignoreErrors||[],t.ignoreErrors||[],fn),ignoreInternal:void 0===this.at.ignoreInternal||this.at.ignoreInternal}},t.prototype.At=function(t){if(t.message)return[t.message];if(t.exception)try{var n=t.exception.values&&t.exception.values[0]||{},i=n.type,r=void 0===i?"":i,e=n.value,o=void 0===e?"":e;return[""+o,r+": "+o]}catch(n){return $.error("Cannot extract message for event "+U(t)),[]}return[]},t.prototype.Lt=function(t){var n,i;void 0===t&&(t=[]);for(var r=t.length-1;r>=0;r--){var e=t[r];if("<anonymous>"!==(null===(n=e)||void 0===n?void 0:n.filename)&&"[native code]"!==(null===(i=e)||void 0===i?void 0:i.filename))return e.filename||null}return null},t.prototype.Rt=function(t){try{if(t.stacktrace){var n=t.stacktrace.frames;return this.Lt(n)}if(t.exception){var i=t.exception.values&&t.exception.values[0].stacktrace&&t.exception.values[0].stacktrace.frames;return this.Lt(i)}return null}catch(n){return $.error("Cannot extract url for event "+U(t)),null}},t.id="InboundFilters",t}(),vn=Object.freeze({__proto__:null,FunctionToString:cn,InboundFilters:hn}),dn="?",ln=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,pn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. \/=]+)(?::(\d+))?(?::(\d+))?\s*$/i,mn=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,yn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,gn=/\((\S*)(?::(\d+))(?::(\d+))\)/,bn=/Minified React error #\d+;/i;function wn(t){var n=null,i=0;t&&("number"==typeof t.framesToPop?i=t.framesToPop:bn.test(t.message)&&(i=1));try{if(n=function(t){if(!t||!t.stacktrace)return null;for(var n,i=t.stacktrace,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,e=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,o=i.split("\n"),u=[],s=0;s<o.length;s+=2){var a=null;(n=r.exec(o[s]))?a={url:n[2],func:n[3],args:[],line:+n[1],column:null}:(n=e.exec(o[s]))&&(a={url:n[6],func:n[3]||n[4],args:n[5]?n[5].split(","):[],line:+n[1],column:+n[2]}),a&&(!a.func&&a.line&&(a.func=dn),u.push(a))}if(!u.length)return null;return{message:En(t),name:t.name,stack:u}}(t))return Sn(n,i)}catch(t){}try{if(n=function(t){var n,i;if(!t||!t.stack)return null;for(var r,e,o,u=[],s=t.stack.split("\n"),a=0;a<s.length;++a){if(e=ln.exec(s[a])){var c=e[2]&&0===e[2].indexOf("native");e[2]&&0===e[2].indexOf("eval")&&(r=gn.exec(e[2]))&&(e[2]=r[1],e[3]=r[2],e[4]=r[3]);var f=e[2]&&0===e[2].indexOf("address at ")?e[2].substr("address at ".length):e[2],h=e[1]||dn;n=d(Tn(h,f),2),h=n[0],f=n[1],o={url:f,func:h,args:c?[e[2]]:[],line:e[3]?+e[3]:null,column:e[4]?+e[4]:null}}else if(e=mn.exec(s[a]))o={url:e[2],func:e[1]||dn,args:[],line:+e[3],column:e[4]?+e[4]:null};else{if(!(e=pn.exec(s[a])))continue;e[3]&&e[3].indexOf(" > eval")>-1&&(r=yn.exec(e[3]))?(e[1]=e[1]||"eval",e[3]=r[1],e[4]=r[2],e[5]=""):0!==a||e[5]||void 0===t.columnNumber||(u[0].column=t.columnNumber+1);var f=e[3],h=e[1]||dn;i=d(Tn(h,f),2),h=i[0],f=i[1],o={url:f,func:h,args:e[2]?e[2].split(","):[],line:e[4]?+e[4]:null,column:e[5]?+e[5]:null}}!o.func&&o.line&&(o.func=dn),u.push(o)}if(!u.length)return null;return{message:En(t),name:t.name,stack:u}}(t))return Sn(n,i)}catch(t){}return{message:En(t),name:t&&t.name,stack:[],failed:!0}}var Tn=function(t,n){var i=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return i||r?[-1!==t.indexOf("@")?t.split("@")[0]:dn,i?"safari-extension:"+n:"safari-web-extension:"+n]:[t,n]};function Sn(t,n){try{return f(f({},t),{stack:t.stack.slice(n)})}catch(n){return t}}function En(t){var n=t&&t.message;return n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"}var xn=50;function _n(t){var n=jn(t.stack),i={type:t.name,value:t.message};return n&&n.length&&(i.stacktrace={frames:n}),void 0===i.type&&""===i.value&&(i.value="Unrecoverable error caught"),i}function On(t){return{exception:{values:[_n(t)]}}}function jn(t){if(!t||!t.length)return[];var n=t,i=n[0].func||"",r=n[n.length-1].func||"";return-1===i.indexOf("captureMessage")&&-1===i.indexOf("captureException")||(n=n.slice(1)),-1!==r.indexOf("sentryWrapped")&&(n=n.slice(0,-1)),n.slice(0,xn).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 kn(t,n,i){var r,e;if(void 0===i&&(i={}),m(t)&&t.error)return r=On(wn(t=t.error));if(y(t)||(e=t,"[object DOMException]"===Object.prototype.toString.call(e))){var o=t,u=o.name||(y(o)?"DOMError":"DOMException"),s=o.message?u+": "+o.message:u;return J(r=Dn(s,n,i),s),"code"in o&&(r.tags=f(f({},r.tags),{"DOMException.code":""+o.code})),r}return p(t)?r=On(wn(t)):w(t)||T(t)?(B(r=function(t,n,i){var r={exception:{values:[{type:T(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:"Non-Error "+(i?"promise rejection":"exception")+" captured with keys: "+ot(t)}]},extra:{__serialized__:nt(t)}};if(n){var e=jn(wn(n).stack);r.stacktrace={frames:e}}return r}(t,n,i.rejection),{synthetic:!0}),r):(J(r=Dn(t,n,i),""+t,void 0),B(r,{synthetic:!0}),r)}function Dn(t,n,i){void 0===i&&(i={});var r={message:t};if(i.attachStacktrace&&n){var e=jn(wn(n).stack);r.stacktrace={frames:e}}return r}var Nn,In=q();function Cn(){var t,n;if(Nn)return Nn;if(at(In.fetch))return Nn=In.fetch.bind(In);var i=In.document,r=In.fetch;if("function"==typeof(null===(t=i)||void 0===t?void 0:t.createElement))try{var e=i.createElement("iframe");e.hidden=!0,i.head.appendChild(e),(null===(n=e.contentWindow)||void 0===n?void 0:n.fetch)&&(r=e.contentWindow.fetch),i.head.removeChild(e)}catch(t){$.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return Nn=r.bind(In)}function Rn(t,n){if("[object Navigator]"===Object.prototype.toString.call(In&&In.navigator)&&"function"==typeof In.navigator.sendBeacon)return In.navigator.sendBeacon.bind(In.navigator)(t,n);if(st()){var i=Cn();i(t,{body:n,method:"POST",credentials:"omit",keepalive:!0}).then(null,function(t){console.error(t)})}else;}var Mn={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},An=q(),Ln=function(){function n(t){var n=this;this.options=t,this.k=new jt(30),this.qt={},this.Ft={},this.Pt=new Kt(t.dsn,t.Ut,t.tunnel),this.url=this.Pt.getStoreEndpointWithUrlEncodedAuth(),this.options.sendClientReports&&An.document&&An.document.addEventListener("visibilitychange",function(){"hidden"===An.document.visibilityState&&n.Ht()})}return n.prototype.sendEvent=function(t){throw new k("Transport Class has to implement `sendEvent` method")},n.prototype.close=function(t){return this.k.drain(t)},n.prototype.recordLostEvent=function(t,n){var i;if(this.options.sendClientReports){var r=Mn[n]+":"+t;$.log("Adding outcome: "+r),this.Ft[r]=(null!=(i=this.Ft[r])?i:0)+1}},n.prototype.Ht=function(){if(this.options.sendClientReports){var t=this.Ft;if(this.Ft={},Object.keys(t).length){$.log("Flushing outcomes:\n"+JSON.stringify(t,null,2));var n=this.Pt.getEnvelopeEndpointWithUrlEncodedAuth(),i=JSON.stringify({})+"\n"+JSON.stringify({type:"client_report"})+"\n"+JSON.stringify({timestamp:It(),discarded_events:Object.keys(t).map(function(n){var i=d(n.split(":"),2),r=i[0];return{reason:i[1],category:r,quantity:t[n]}})});try{Rn(n,i)}catch(t){$.error(t)}}else $.log("No outcomes to flush")}},n.prototype.Jt=function(n){var i=n.requestType,r=n.response,e=n.headers,o=n.resolve,u=n.reject,s=t.Status.fromHttpCode(r.status);this.Bt(e)&&$.warn("Too many "+i+" requests, backing off until: "+this.Xt(i)),s!==t.Status.Success?u(r):o({status:s})},n.prototype.Xt=function(t){var n=Mn[t];return this.qt[n]||this.qt.all},n.prototype.Gt=function(t){return this.Xt(t)>new Date(Date.now())},n.prototype.Bt=function(t){var n,i,r,e,o=Date.now(),u=t["x-sentry-rate-limits"],s=t["retry-after"];if(u){try{for(var a=v(u.trim().split(",")),c=a.next();!c.done;c=a.next()){var f=c.value.split(":",2),h=parseInt(f[0],10),d=1e3*(isNaN(h)?60:h);try{for(var l=(r=void 0,v(f[1].split(";"))),p=l.next();!p.done;p=l.next()){var m=p.value;this.qt[m||"all"]=new Date(o+d)}}catch(t){r={error:t}}finally{try{p&&!p.done&&(e=l.return)&&e.call(l)}finally{if(r)throw r.error}}}}catch(t){n={error:t}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return!0}return!!s&&(this.qt.all=new Date(o+function(t,n){if(!n)return X;var i=parseInt(""+n,10);if(!isNaN(i))return 1e3*i;var r=Date.parse(""+n);return isNaN(r)?X:r-t}(o,s)),!0)},n}(),qn=function(t){function n(n,i){void 0===i&&(i=Cn());var r=t.call(this,n)||this;return r.Wt=i,r}return i(n,t),n.prototype.sendEvent=function(t){return this.zt(un(t,this.Pt),t)},n.prototype.sendSession=function(t){return this.zt(on(t,this.Pt),t)},n.prototype.zt=function(t,n){var i=this;if(this.Gt(t.type))return this.recordLostEvent(c.RateLimitBackoff,t.type),Promise.reject({event:n,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this.Xt(t.type)+" due to too many requests.",status:429});var r={body:t.body,method:"POST",referrerPolicy:ct()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this.k.add(function(){return new Ot(function(n,e){i.Wt(t.url,r).then(function(r){var o={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};i.Jt({requestType:t.type,response:r,headers:o,resolve:n,reject:e})}).catch(e)})}).then(void 0,function(n){throw n instanceof k?i.recordLostEvent(c.QueueOverflow,t.type):i.recordLostEvent(c.NetworkError,t.type),n})},n}(Ln),Fn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i(n,t),n.prototype.sendEvent=function(t){return this.zt(un(t,this.Pt),t)},n.prototype.sendSession=function(t){return this.zt(on(t,this.Pt),t)},n.prototype.zt=function(t,n){var i=this;return this.Gt(t.type)?(this.recordLostEvent(c.RateLimitBackoff,t.type),Promise.reject({event:n,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this.Xt(t.type)+" due to too many requests.",status:429})):this.k.add(function(){return new Ot(function(n,r){var e=new XMLHttpRequest;for(var o in e.onreadystatechange=function(){if(4===e.readyState){var o={"x-sentry-rate-limits":e.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":e.getResponseHeader("Retry-After")};i.Jt({requestType:t.type,response:e,headers:o,resolve:n,reject:r})}},e.open("POST",t.url),i.options.headers)i.options.headers.hasOwnProperty(o)&&e.setRequestHeader(o,i.options.headers[o]);e.send(t.body)})}).then(void 0,function(n){throw n instanceof k?i.recordLostEvent(c.QueueOverflow,t.type):i.recordLostEvent(c.NetworkError,t.type),n})},n}(Ln),Pn=Object.freeze({__proto__:null,BaseTransport:Ln,FetchTransport:qn,XHRTransport:Fn}),Un=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return i(r,n),r.prototype.eventFromException=function(n,i){return function(n,i,r){var e=kn(i,r&&r.syntheticException||void 0,{attachStacktrace:n.attachStacktrace});return B(e,{handled:!0,type:"generic"}),e.level=t.Severity.Error,r&&r.event_id&&(e.event_id=r.event_id),Ot.resolve(e)}(this.at,n,i)},r.prototype.eventFromMessage=function(n,i,r){return void 0===i&&(i=t.Severity.Info),function(n,i,r,e){void 0===r&&(r=t.Severity.Info);var o=Dn(i,e&&e.syntheticException||void 0,{attachStacktrace:n.attachStacktrace});return o.level=r,e&&e.event_id&&(o.event_id=e.event_id),Ot.resolve(o)}(this.at,n,i,r)},r.prototype.jt=function(){if(!this.at.dsn)return n.prototype.jt.call(this);var t=f(f({},this.at.transportOptions),{dsn:this.at.dsn,tunnel:this.at.tunnel,sendClientReports:this.at.sendClientReports,Ut:this.at.Ut});return this.at.transport?new this.at.transport(t):st()?new qn(t):new Fn(t)},r}(nn),Hn=q(),Jn=0;function Bn(){return Jn>0}function Xn(t,n,i){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 r=Array.prototype.slice.call(arguments);try{i&&"function"==typeof i&&i.apply(this,arguments);var e=r.map(function(t){return Xn(t,n)});return t.handleEvent?t.handleEvent.apply(this,e):t.apply(this,e)}catch(t){throw Jn+=1,setTimeout(function(){Jn-=1}),$t(function(i){i.addEventProcessor(function(t){var i=f({},t);return n.mechanism&&(J(i,void 0,void 0),B(i,n.mechanism)),i.extra=f(f({},i.extra),{arguments:r}),i}),captureException(t)}),t}};try{for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(sentryWrapped[r]=t[r])}catch(t){}t.prototype=t.prototype||{},sentryWrapped.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:sentryWrapped}),Object.defineProperties(sentryWrapped,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:function(){return t.name}})}catch(t){}return sentryWrapped}var Gn=function(){function n(t){this.name=n.id,this.$t=!1,this.Kt=!1,this.at=f({onerror:!0,onunhandledrejection:!0},t)}return n.prototype.setupOnce=function(){Error.stackTraceLimit=50,this.at.onerror&&($.log("Global Handler attached: onerror"),this.Vt()),this.at.onunhandledrejection&&($.log("Global Handler attached: onunhandledrejection"),this.Yt())},n.prototype.Vt=function(){var t=this;this.$t||(pt({callback:function(i){var r=i.error,e=Bt(),o=e.getIntegration(n),u=r&&!0===r.__sentry_own_request__;if(o&&!Bn()&&!u){var s=e.getClient(),a=void 0===r&&g(i.msg)?t.Qt(i.msg,i.url,i.line,i.column):t.Zt(kn(r||i.msg,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!1}),i.url,i.line,i.column);B(a,{handled:!1,type:"onerror"}),e.captureEvent(a,{originalException:r})}},type:"error"}),this.$t=!0)},n.prototype.Yt=function(){var i=this;this.Kt||(pt({callback:function(r){var e=r;try{"reason"in r?e=r.reason:"detail"in r&&"reason"in r.detail&&(e=r.detail.reason)}catch(t){}var o=Bt(),u=o.getIntegration(n),s=e&&!0===e.__sentry_own_request__;if(!u||Bn()||s)return!0;var a=o.getClient(),c=b(e)?i.tn(e):kn(e,void 0,{attachStacktrace:a&&a.getOptions().attachStacktrace,rejection:!0});c.level=t.Severity.Error,B(c,{handled:!1,type:"onunhandledrejection"}),o.captureEvent(c,{originalException:e})},type:"unhandledrejection"}),this.Kt=!0)},n.prototype.Qt=function(t,n,i,r){var e,o=m(t)?t.message:t,u=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);u&&(e=u[1],o=u[2]);var s={exception:{values:[{type:e||"Error",value:o}]}};return this.Zt(s,n,i,r)},n.prototype.tn=function(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t)}]}}},n.prototype.Zt=function(t,n,i,r){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 e=isNaN(parseInt(r,10))?void 0:r,o=isNaN(parseInt(i,10))?void 0:i,u=g(n)&&n.length>0?n:function(){var t=q();try{return t.document.location.href}catch(t){return""}}();return 0===t.exception.values[0].stacktrace.frames.length&&t.exception.values[0].stacktrace.frames.push({colno:e,filename:u,function:"?",in_app:!0,lineno:o}),t},n.id="GlobalHandlers",n}(),Wn=["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"],zn=function(){function t(n){this.name=t.id,this.at=f({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},n)}return t.prototype.setupOnce=function(){var t=q();(this.at.setTimeout&&Q(t,"setTimeout",this.nn.bind(this)),this.at.setInterval&&Q(t,"setInterval",this.nn.bind(this)),this.at.requestAnimationFrame&&Q(t,"requestAnimationFrame",this.in.bind(this)),this.at.XMLHttpRequest&&"XMLHttpRequest"in t&&Q(XMLHttpRequest.prototype,"send",this.rn.bind(this)),this.at.eventTarget)&&(Array.isArray(this.at.eventTarget)?this.at.eventTarget:Wn).forEach(this.en.bind(this))},t.prototype.nn=function(t){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r=n[0];return n[0]=Xn(r,{mechanism:{data:{function:Y(t)},handled:!0,type:"instrument"}}),t.apply(this,n)}},t.prototype.in=function(t){return function(n){return t.call(this,Xn(n,{mechanism:{data:{function:"requestAnimationFrame",handler:Y(t)},handled:!0,type:"instrument"}}))}},t.prototype.en=function(t){var n=q(),i=n[t]&&n[t].prototype;i&&i.hasOwnProperty&&i.hasOwnProperty("addEventListener")&&(Q(i,"addEventListener",function(n){return function(i,r,e){try{"function"==typeof r.handleEvent&&(r.handleEvent=Xn(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:Y(r),target:t},handled:!0,type:"instrument"}}))}catch(t){}return n.call(this,i,Xn(r,{mechanism:{data:{function:"addEventListener",handler:Y(r),target:t},handled:!0,type:"instrument"}}),e)}}),Q(i,"removeEventListener",function(t){return function(n,i,r){var e,o=i;try{var u=null===(e=o)||void 0===e?void 0:e.__sentry_wrapped__;u&&t.call(this,n,u,r)}catch(t){}return t.call(this,n,o,r)}}))},t.prototype.rn=function(t){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(function(t){t in r&&"function"==typeof r[t]&&Q(r,t,function(n){var i={mechanism:{data:{function:t,handler:Y(n)},handled:!0,type:"instrument"}};return n.__sentry_original__&&(i.mechanism.data.handler=Y(n.__sentry_original__)),Xn(n,i)})}),t.apply(this,n)}},t.id="TryCatch",t}(),$n=function(){function n(t){this.name=n.id,this.at=f({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return n.prototype.addSentryBreadcrumb=function(t){this.at.sentry&&Bt().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:U(t)},{event:t})},n.prototype.setupOnce=function(){var t=this;this.at.console&&pt({callback:function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];t.on.apply(t,l(n))},type:"console"}),this.at.dom&&pt({callback:function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];t.un.apply(t,l(n))},type:"dom"}),this.at.xhr&&pt({callback:function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];t.sn.apply(t,l(n))},type:"xhr"}),this.at.fetch&&pt({callback:function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];t.an.apply(t,l(n))},type:"fetch"}),this.at.history&&pt({callback:function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];t.cn.apply(t,l(n))},type:"history"})},n.prototype.on=function(n){var i={category:"console",data:{arguments:n.args,logger:"console"},level:t.Severity.fromString(n.level),message:M(n.args," ")};if("assert"===n.level){if(!1!==n.args[0])return;i.message="Assertion failed: "+(M(n.args.slice(1)," ")||"console.assert"),i.data.arguments=n.args.slice(1)}Bt().addBreadcrumb(i,{input:n.args,level:n.level})},n.prototype.un=function(t){var n,i="object"==typeof this.at.dom?this.at.dom.serializeAttribute:void 0;"string"==typeof i&&(i=[i]);try{n=t.event.target?_(t.event.target,i):_(t.event,i)}catch(t){n="<unknown>"}0!==n.length&&Bt().addBreadcrumb({category:"ui."+t.name,message:n},{event:t.event,name:t.name,global:t.global})},n.prototype.sn=function(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var n=t.xhr.__sentry_xhr__||{},i=n.method,r=n.url,e=n.status_code,o=n.body;Bt().addBreadcrumb({category:"xhr",data:{method:i,url:r,status_code:e},type:"http"},{xhr:t.xhr,input:o})}else;},n.prototype.an=function(n){n.endTimestamp&&(n.fetchData.url.match(/sentry_key/)&&"POST"===n.fetchData.method||(n.error?Bt().addBreadcrumb({category:"fetch",data:n.fetchData,level:t.Severity.Error,type:"http"},{data:n.error,input:n.args}):Bt().addBreadcrumb({category:"fetch",data:f(f({},n.fetchData),{status_code:n.response.status}),type:"http"},{input:n.args,response:n.response})))},n.prototype.cn=function(t){var n=q(),i=t.from,r=t.to,e=P(n.location.href),o=P(i),u=P(r);o.path||(o=e),e.protocol===u.protocol&&e.host===u.host&&(r=u.relative),e.protocol===o.protocol&&e.host===o.host&&(i=o.relative),Bt().addBreadcrumb({category:"navigation",data:{from:i,to:r}})},n.id="Breadcrumbs",n}(),Kn="cause",Vn=5,Yn=function(){function t(n){void 0===n&&(n={}),this.name=t.id,this.fn=n.key||Kn,this.j=n.limit||Vn}return t.prototype.setupOnce=function(){qt(function(n,i){var r=Bt().getIntegration(t);if(r){var e=r.hn&&r.hn.bind(r);return"function"==typeof e?e(n,i):n}return n})},t.prototype.hn=function(t,n){if(!(t.exception&&t.exception.values&&n&&x(n.originalException,Error)))return t;var i=this.vn(n.originalException,this.fn);return t.exception.values=l(i,t.exception.values),t},t.prototype.vn=function(t,n,i){if(void 0===i&&(i=[]),!x(t[n],Error)||i.length+1>=this.j)return i;var r=_n(wn(t[n]));return this.vn(t[n],n,l([r],i))},t.id="LinkedErrors",t}(),Qn=q(),Zn=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){qt(function(n){var i,r,e;if(Bt().getIntegration(t)){if(!Qn.navigator&&!Qn.location&&!Qn.document)return n;var o=(null===(i=n.request)||void 0===i?void 0:i.url)||(null===(r=Qn.location)||void 0===r?void 0:r.href),u=(Qn.document||{}).referrer,s=(Qn.navigator||{}).userAgent,a=f(f(f({},null===(e=n.request)||void 0===e?void 0:e.headers),u&&{Referer:u}),s&&{"User-Agent":s}),c=f(f({},o&&{url:o}),{headers:a});return f(f({},n),{request:c})}return n})},t.id="UserAgent",t}(),ti=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(n,i){n(function(n){var r=i().getIntegration(t);if(r){try{if(r.Dt(n,r.dn))return $.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return r.dn=n}return r.dn=n}return n})},t.prototype.Dt=function(t,n){return!!n&&(!!this.ln(t,n)||!!this.pn(t,n))},t.prototype.ln=function(t,n){var i=t.message,r=n.message;return!(!i&&!r)&&(!(i&&!r||!i&&r)&&(i===r&&(!!this.mn(t,n)&&!!this.yn(t,n))))},t.prototype.gn=function(t){var n=t.exception;if(n)try{return n.values[0].stacktrace.frames}catch(t){return}else if(t.stacktrace)return t.stacktrace.frames},t.prototype.yn=function(t,n){var i=this.gn(t),r=this.gn(n);if(!i&&!r)return!0;if(i&&!r||!i&&r)return!1;if(i=i,(r=r).length!==i.length)return!1;for(var e=0;e<r.length;e++){var o=r[e],u=i[e];if(o.filename!==u.filename||o.lineno!==u.lineno||o.colno!==u.colno||o.function!==u.function)return!1}return!0},t.prototype.bn=function(t){return t.exception&&t.exception.values&&t.exception.values[0]},t.prototype.pn=function(t,n){var i=this.bn(n),r=this.bn(t);return!(!i||!r)&&(i.type===r.type&&i.value===r.value&&(!!this.mn(t,n)&&!!this.yn(t,n)))},t.prototype.mn=function(t,n){var i=t.fingerprint,r=n.fingerprint;if(!i&&!r)return!0;if(i&&!r||!i&&r)return!1;i=i,r=r;try{return!(i.join("")!==r.join(""))}catch(t){return!1}},t.id="Dedupe",t}(),ni=Object.freeze({__proto__:null,GlobalHandlers:Gn,TryCatch:zn,Breadcrumbs:$n,LinkedErrors:Yn,UserAgent:Zn,Dedupe:ti}),ii=function(t){function n(n){void 0===n&&(n={});return n.Ut=n.Ut||{},n.Ut.sdk=n.Ut.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:an}],version:an},t.call(this,Un,n)||this}return i(n,t),n.prototype.showReportDialog=function(t){void 0===t&&(t={}),q().document&&(this.dt()?function(t){if(void 0===t&&(t={}),Hn.document)if(t.eventId)if(t.dsn){var n=Hn.document.createElement("script");n.async=!0,n.src=new Kt(t.dsn).getReportDialogEndpoint(t),t.onLoad&&(n.onload=t.onLoad);var i=Hn.document.head||Hn.document.body;i&&i.appendChild(n)}else $.error("Missing dsn option in showReportDialog call");else $.error("Missing eventId option in showReportDialog call")}(f(f({},t),{dsn:t.dsn||this.getDsn()})):$.error("Trying to call showReportDialog with Sentry Client disabled"))},n.prototype.gt=function(n,i,r){return n.platform=n.platform||"javascript",t.prototype.gt.call(this,n,i,r)},n.prototype.Et=function(n){var i=this.getIntegration($n);i&&i.addSentryBreadcrumb(n),t.prototype.Et.call(this,n)},n}(Zt),ri=[new hn,new cn,new zn,new $n,new Gn,new Yn,new ti,new Zn];var ei={},oi=q();oi.Sentry&&oi.Sentry.Integrations&&(ei=oi.Sentry.Integrations);var ui,si=f(f(f({},ei),vn),ni);!function(t){t.Ok="ok",t.DeadlineExceeded="deadline_exceeded",t.Unauthenticated="unauthenticated",t.PermissionDenied="permission_denied",t.NotFound="not_found",t.ResourceExhausted="resource_exhausted",t.InvalidArgument="invalid_argument",t.Unimplemented="unimplemented",t.Unavailable="unavailable",t.InternalError="internal_error",t.UnknownError="unknown_error",t.Cancelled="cancelled",t.AlreadyExists="already_exists",t.FailedPrecondition="failed_precondition",t.Aborted="aborted",t.OutOfRange="out_of_range",t.DataLoss="data_loss"}(ui||(ui={})),function(t){t.fromHttpCode=function(n){if(n<400)return t.Ok;if(n>=400&&n<500)switch(n){case 401:return t.Unauthenticated;case 403:return t.PermissionDenied;case 404:return t.NotFound;case 409:return t.AlreadyExists;case 413:return t.FailedPrecondition;case 429:return t.ResourceExhausted;default:return t.InvalidArgument}if(n>=500&&n<600)switch(n){case 501:return t.Unimplemented;case 503:return t.Unavailable;case 504:return t.DeadlineExceeded;default:return t.InternalError}return t.UnknownError}}(ui||(ui={}));var ai=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function ci(t){var n;return void 0===t&&(t=null===(n=Bt().getClient())||void 0===n?void 0:n.getOptions()),!!t&&("tracesSampleRate"in t||"tracesSampler"in t)}function fi(t){var n,i;return void 0===t&&(t=Bt()),null===(i=null===(n=t)||void 0===n?void 0:n.getScope())||void 0===i?void 0:i.getTransaction()}function hi(t){return t/1e3}function vi(){var t=fi();t&&($.log("[Tracing] Transaction: "+ui.InternalError+" -> Global error occured"),t.setStatus(ui.InternalError))}var di=function(){function t(t){void 0===t&&(t=1e3),this.spans=[],this.wn=t}return t.prototype.add=function(t){this.spans.length>this.wn?t.spanRecorder=void 0:this.spans.push(t)},t}(),li=function(){function t(t){if(this.traceId=F(),this.spanId=F().substring(16),this.startTimestamp=Rt(),this.tags={},this.data={},!t)return this;t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp)}return t.prototype.child=function(t){return this.startChild(t)},t.prototype.startChild=function(n){var i=new t(f(f({},n),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return i.spanRecorder=this.spanRecorder,i.spanRecorder&&i.spanRecorder.add(i),i.transaction=this.transaction,i},t.prototype.setTag=function(t,n){var i;return this.tags=f(f({},this.tags),((i={})[t]=n,i)),this},t.prototype.setData=function(t,n){var i;return this.data=f(f({},this.data),((i={})[t]=n,i)),this},t.prototype.setStatus=function(t){return this.status=t,this},t.prototype.setHttpStatus=function(t){this.setTag("http.status_code",String(t));var n=ui.fromHttpCode(t);return n!==ui.UnknownError&&this.setStatus(n),this},t.prototype.isSuccess=function(){return this.status===ui.Ok},t.prototype.finish=function(t){this.endTimestamp="number"==typeof t?t:Rt()},t.prototype.toTraceparent=function(){var t="";return void 0!==this.sampled&&(t=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+t},t.prototype.toContext=function(){return ut({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},t.prototype.updateWithContext=function(t){var n,i,r,e,o;return this.data=null!=(n=t.data)?n:{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=null!=(i=t.spanId)?i:this.spanId,this.startTimestamp=null!=(r=t.startTimestamp)?r:this.startTimestamp,this.status=t.status,this.tags=null!=(e=t.tags)?e:{},this.traceId=null!=(o=t.traceId)?o:this.traceId,this},t.prototype.getTraceContext=function(){return ut({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},t.prototype.toJSON=function(){return ut({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},t}(),pi=function(t){function n(n,i){var r=t.call(this,n)||this;return r.Tn={},r.Sn=Bt(),x(i,Ut)&&(r.Sn=i),r.name=n.name||"",r.metadata=n.metadata||{},r.En=n.trimEnd,r.transaction=r,r}return i(n,t),n.prototype.setName=function(t){this.name=t},n.prototype.initSpanRecorder=function(t){void 0===t&&(t=1e3),this.spanRecorder||(this.spanRecorder=new di(t)),this.spanRecorder.add(this)},n.prototype.setMeasurements=function(t){this.Tn=f({},t)},n.prototype.setMetadata=function(t){this.metadata=f(f({},this.metadata),t)},n.prototype.finish=function(n){var i,r,e,o,u,s=this;if(void 0===this.endTimestamp){if(this.name||($.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),t.prototype.finish.call(this,n),!0!==this.sampled)return $.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(null===(u=null===(e=null===(i=this.Sn.getClient())||void 0===i?void 0:(r=i).getTransport)||void 0===e?void 0:(o=e.call(r)).recordLostEvent)||void 0===u||u.call(o,c.SampleRate,"transaction"));var a=this.spanRecorder?this.spanRecorder.spans.filter(function(t){return t!==s&&t.endTimestamp}):[];this.En&&a.length>0&&(this.endTimestamp=a.reduce(function(t,n){return t.endTimestamp&&n.endTimestamp?t.endTimestamp>n.endTimestamp?t:n:t}).endTimestamp);var f={contexts:{trace:this.getTraceContext()},spans:a,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",debug_meta:this.metadata};return Object.keys(this.Tn).length>0&&($.log("[Measurements] Adding measurements to transaction",JSON.stringify(this.Tn,void 0,2)),f.measurements=this.Tn),$.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this.Sn.captureEvent(f)}},n.prototype.toContext=function(){var n=t.prototype.toContext.call(this);return ut(f(f({},n),{name:this.name,trimEnd:this.En}))},n.prototype.updateWithContext=function(n){var i;return t.prototype.updateWithContext.call(this,n),this.name=null!=(i=n.name)?i:"",this.En=n.trimEnd,this},n}(li),mi=1e3,yi=function(t){function n(n,i,r,e){void 0===r&&(r="");var o=t.call(this,e)||this;return o.xn=n,o._n=i,o.transactionSpanId=r,o}return i(n,t),n.prototype.add=function(n){var i=this;n.spanId!==this.transactionSpanId&&(n.finish=function(t){n.endTimestamp="number"==typeof t?t:Rt(),i._n(n.spanId)},void 0===n.endTimestamp&&this.xn(n.spanId)),t.prototype.add.call(this,n)},n}(di),gi=function(t){function n(n,i,r,e){void 0===r&&(r=mi),void 0===e&&(e=!1);var o=t.call(this,n,i)||this;return o.On=i,o.jn=r,o.kn=e,o.activities={},o.Dn=0,o.Nn=!1,o.In=[],i&&e&&(bi(i),$.log("Setting idle transaction on scope. Span ID: "+o.spanId),i.configureScope(function(t){return t.setSpan(o)})),o.Cn=setTimeout(function(){o.Nn||o.finish()},o.jn),o}return i(n,t),n.prototype.finish=function(n){var i,r,e=this;if(void 0===n&&(n=Rt()),this.Nn=!0,this.activities={},this.spanRecorder){$.log("[Tracing] finishing IdleTransaction",new Date(1e3*n).toISOString(),this.op);try{for(var o=v(this.In),u=o.next();!u.done;u=o.next()){(0,u.value)(this,n)}}catch(t){i={error:t}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter(function(t){if(t.spanId===e.spanId)return!0;t.endTimestamp||(t.endTimestamp=n,t.setStatus(ui.Cancelled),$.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));var i=t.startTimestamp<n;return i||$.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(t,void 0,2)),i}),$.log("[Tracing] flushing IdleTransaction")}else $.log("[Tracing] No active IdleTransaction");return this.kn&&bi(this.On),t.prototype.finish.call(this,n)},n.prototype.registerBeforeFinishCallback=function(t){this.In.push(t)},n.prototype.initSpanRecorder=function(t){var n=this;if(!this.spanRecorder){this.spanRecorder=new yi(function(t){n.Nn||n.xn(t)},function(t){n.Nn||n._n(t)},this.spanId,t),$.log("Starting heartbeat"),this.Rn()}this.spanRecorder.add(this)},n.prototype.xn=function(t){this.Cn&&(clearTimeout(this.Cn),this.Cn=void 0),$.log("[Tracing] pushActivity: "+t),this.activities[t]=!0,$.log("[Tracing] new activities count",Object.keys(this.activities).length)},n.prototype._n=function(t){var n=this;if(this.activities[t]&&($.log("[Tracing] popActivity "+t),delete this.activities[t],$.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var i=this.jn,r=Rt()+i/1e3;setTimeout(function(){n.Nn||n.finish(r)},i)}},n.prototype.Mn=function(){if(!this.Nn){var t=Object.keys(this.activities).join("");t===this.An?this.Dn+=1:this.Dn=1,this.An=t,this.Dn>=3?($.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus(ui.DeadlineExceeded),this.setTag("heartbeat","failed"),this.finish()):this.Rn()}},n.prototype.Rn=function(){var t=this;$.log("pinging Heartbeat -> current counter: "+this.Dn),setTimeout(function(){t.Mn()},5e3)},n}(pi);function bi(t){if(t){var n=t.getScope();if(n)n.getTransaction()&&n.setSpan(void 0)}}function wi(){var t=this.getScope();if(t){var n=t.getSpan();if(n)return{"sentry-trace":n.toTraceparent()}}return{}}function Ti(t,n,i){return ci(n)?void 0!==t.sampled?(t.setMetadata({transactionSampling:{method:a.Explicit}}),t):("function"==typeof n.tracesSampler?(r=n.tracesSampler(i),t.setMetadata({transactionSampling:{method:a.Sampler,rate:Number(r)}})):void 0!==i.parentSampled?(r=i.parentSampled,t.setMetadata({transactionSampling:{method:a.Inheritance}})):(r=n.tracesSampleRate,t.setMetadata({transactionSampling:{method:a.Rate,rate:Number(r)}})),function(t){if(isNaN(t)||"number"!=typeof t&&"boolean"!=typeof t)return $.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(t)+" of type "+JSON.stringify(typeof t)+"."),!1;if(t<0||t>1)return $.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+t+"."),!1;return!0}(r)?r?(t.sampled=Math.random()<r,t.sampled?($.log("[Tracing] starting "+t.op+" transaction - "+t.name),t):($.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = "+Number(r)+")"),t)):($.log("[Tracing] Discarding transaction because "+("function"==typeof n.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):($.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)):(t.sampled=!1,t);var r}function Si(t,n){var i,r,e=(null===(i=this.getClient())||void 0===i?void 0:i.getOptions())||{},o=new pi(t,this);return(o=Ti(o,e,f({parentSampled:t.parentSampled,transactionContext:t},n))).sampled&&o.initSpanRecorder(null===(r=e.St)||void 0===r?void 0:r.maxSpans),o}function Ei(){var t=Ht();if(t.__SENTRY__){var n={mongodb:function(){return new(C(module,"./integrations/mongo").Mongo)},mongoose:function(){return new(C(module,"./integrations/mongo").Mongo)({mongoose:!0})},mysql:function(){return new(C(module,"./integrations/mysql").Mysql)},pg:function(){return new(C(module,"./integrations/postgres").Postgres)}},i=Object.keys(n).filter(function(t){return!!function(t){var n;try{n=C(module,t)}catch(t){}try{var i=C(module,"process").cwd;n=C(module,i()+"/node_modules/"+t)}catch(t){}return n}(t)}).map(function(t){try{return n[t]()}catch(t){return}}).filter(function(t){return t});i.length>0&&(t.__SENTRY__.integrations=l(t.__SENTRY__.integrations||[],i))}}function xi(){var t;(t=Ht()).__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=Si),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=wi)),I()&&Ei(),pt({callback:vi,type:"error"}),pt({callback:vi,type:"unhandledrejection"})}var _i=q();var Oi=function(t,n,i){var r;return function(e){n.value>=0&&(e||i)&&(n.delta=n.value-(r||0),(n.delta||void 0===r)&&(r=n.value,t(n)))}},ji=function(t,n){return{name:t,value:null!=n?n:-1,delta:0,entries:[],id:"v2-"+Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12)}},ki=function(t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if("first-input"===t&&!("PerformanceEventTiming"in self))return;var i=new PerformanceObserver(function(t){return t.getEntries().map(n)});return i.observe({type:t,buffered:!0}),i}}catch(t){}},Di=function(t,n){var i=function(r){"pagehide"!==r.type&&"hidden"!==q().document.visibilityState||(t(r),n&&(removeEventListener("visibilitychange",i,!0),removeEventListener("pagehide",i,!0)))};addEventListener("visibilitychange",i,!0),addEventListener("pagehide",i,!0)},Ni=-1,Ii=function(){return Ni<0&&(Ni="hidden"===q().document.visibilityState?0:1/0,Di(function(t){var n=t.timeStamp;Ni=n},!0)),{get firstHiddenTime(){return Ni}}},Ci={},Ri=q(),Mi={Ln:!1},Ai=function(){function t(t){var n,i;this.Tn={},this.qn=0,!I()&&(null===(n=Ri)||void 0===n?void 0:n.performance)&&(null===(i=Ri)||void 0===i?void 0:i.document)&&(Ri.performance.mark&&Ri.performance.mark("sentry-tracing-init"),this.Fn(),this.Pn(t.Ln),this.Un())}return t.prototype.addPerformanceEntries=function(t){var n=this;if(Ri&&Ri.performance&&Ri.performance.getEntries&&Mt){$.log("[Tracing] Adding & adjusting spans using Performance API");var i,r,e,o,u,s=hi(Mt);if(Ri.document&&Ri.document.scripts)for(var a=0;a<Ri.document.scripts.length;a++)if("true"===Ri.document.scripts[a].dataset.entry){i=Ri.document.scripts[a].src;break}if(Ri.performance.getEntries().slice(this.qn).forEach(function(a){var c=hi(a.startTime),f=hi(a.duration);if(!("navigation"===t.op&&s+c<t.startTimestamp))switch(a.entryType){case"navigation":!function(t,n,i){Li({transaction:t,entry:n,event:"unloadEvent",timeOrigin:i}),Li({transaction:t,entry:n,event:"redirect",timeOrigin:i}),Li({transaction:t,entry:n,event:"domContentLoadedEvent",timeOrigin:i}),Li({transaction:t,entry:n,event:"loadEvent",timeOrigin:i}),Li({transaction:t,entry:n,event:"connect",timeOrigin:i}),Li({transaction:t,entry:n,event:"secureConnection",timeOrigin:i,eventEnd:"connectEnd",description:"TLS/SSL"}),Li({transaction:t,entry:n,event:"fetch",timeOrigin:i,eventEnd:"domainLookupStart",description:"cache"}),Li({transaction:t,entry:n,event:"domainLookup",timeOrigin:i,description:"DNS"}),function(t,n,i){qi(t,{op:"browser",description:"request",startTimestamp:i+hi(n.requestStart),endTimestamp:i+hi(n.responseEnd)}),qi(t,{op:"browser",description:"response",startTimestamp:i+hi(n.responseStart),endTimestamp:i+hi(n.responseEnd)})}(t,n,i)}(t,a,s),o=s+hi(a.responseStart),u=s+hi(a.requestStart);break;case"mark":case"paint":case"measure":var h=function(t,n,i,r,e){var o=e+i,u=o+r;return qi(t,{description:n.name,endTimestamp:u,op:n.entryType,startTimestamp:o}),o}(t,a,c,f,s);void 0===e&&"sentry-tracing-init"===a.name&&(e=h);var v=Ii(),d=a.startTime<v.firstHiddenTime;"first-paint"===a.name&&d&&($.log("[Measurements] Adding FP"),n.Tn.fp={value:a.startTime},n.Tn["mark.fp"]={value:h}),"first-contentful-paint"===a.name&&d&&($.log("[Measurements] Adding FCP"),n.Tn.fcp={value:a.startTime},n.Tn["mark.fcp"]={value:h});break;case"resource":var l=a.name.replace(Ri.location.origin,""),p=function(t,n,i,r,e,o){if("xmlhttprequest"===n.initiatorType||"fetch"===n.initiatorType)return;var u={};"transferSize"in n&&(u["Transfer Size"]=n.transferSize);"encodedBodySize"in n&&(u["Encoded Body Size"]=n.encodedBodySize);"decodedBodySize"in n&&(u["Decoded Body Size"]=n.decodedBodySize);var s=o+r,a=s+e;return qi(t,{description:i,endTimestamp:a,op:n.initiatorType?"resource."+n.initiatorType:"resource",startTimestamp:s,data:u}),a}(t,a,l,c,f,s);void 0===r&&(i||"").indexOf(l)>-1&&(r=p)}}),void 0!==r&&void 0!==e&&qi(t,{description:"evaluation",endTimestamp:e,op:"script",startTimestamp:r}),this.qn=Math.max(performance.getEntries().length-1,0),this.Hn(t),"pageload"===t.op){var c=hi(Mt);"number"==typeof o&&($.log("[Measurements] Adding TTFB"),this.Tn.ttfb={value:1e3*(o-t.startTimestamp)},"number"==typeof u&&u<=o&&(this.Tn["ttfb.requestTime"]={value:1e3*(o-u)})),["fcp","fp","lcp"].forEach(function(i){if(n.Tn[i]&&!(c>=t.startTimestamp)){var r=n.Tn[i].value,e=c+hi(r),o=Math.abs(1e3*(e-t.startTimestamp)),u=o-r;$.log("[Measurements] Normalized "+i+" from "+r+" to "+o+" ("+u+")"),n.Tn[i].value=o}}),this.Tn["mark.fid"]&&this.Tn.fid&&qi(t,{description:"first input delay",endTimestamp:this.Tn["mark.fid"].value+hi(this.Tn.fid.value),op:"web.vitals",startTimestamp:this.Tn["mark.fid"].value}),"fcp"in this.Tn||delete this.Tn.cls,t.setMeasurements(this.Tn),this.Jn(t)}}},t.prototype.Jn=function(t){this.Bn&&($.log("[Measurements] Adding LCP Data"),this.Bn.element&&t.setTag("lcp.element",_(this.Bn.element)),this.Bn.id&&t.setTag("lcp.id",this.Bn.id),this.Bn.url&&t.setTag("lcp.url",this.Bn.url.trim().slice(0,200)),t.setTag("lcp.size",this.Bn.size)),this.Xn&&this.Xn.sources&&($.log("[Measurements] Adding CLS Data"),this.Xn.sources.forEach(function(n,i){return t.setTag("cls.source."+(i+1),_(n.node))}))},t.prototype.Fn=function(){var t,n,i,r,e,o,u,s,a=this;t=function(t){var n=t.entries.pop();n&&($.log("[Measurements] Adding CLS"),a.Tn.cls={value:t.value},a.Xn=n)},r=ji("CLS",0),e=0,o=[],(s=ki("layout-shift",u=function(t){if(t&&!t.hadRecentInput){var n=o[0],u=o[o.length-1];e&&0!==o.length&&t.startTime-u.startTime<1e3&&t.startTime-n.startTime<5e3?(e+=t.value,o.push(t)):(e=t.value,o=[t]),e>r.value&&(r.value=e,r.entries=o,i&&i())}}))&&(i=Oi(t,r,n),Di(function(){s.takeRecords().map(u),i(!0)}))},t.prototype.Hn=function(t){var n=Ri.navigator;if(n){var i=n.connection;i&&(i.effectiveType&&t.setTag("effectiveConnectionType",i.effectiveType),i.type&&t.setTag("connectionType",i.type),Fi(i.rtt)&&(this.Tn["connection.rtt"]={value:i.rtt}),Fi(i.downlink)&&(this.Tn["connection.downlink"]={value:i.downlink})),Fi(n.deviceMemory)&&t.setTag("deviceMemory",String(n.deviceMemory)),Fi(n.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(n.hardwareConcurrency))}},t.prototype.Pn=function(t){var n=this;!function(t,n){var i,r=Ii(),e=ji("LCP"),o=function(t){var n=t.startTime;n<r.firstHiddenTime&&(e.value=n,e.entries.push(t)),i&&i()},u=ki("largest-contentful-paint",o);if(u){i=Oi(t,e,n);var s=function(){Ci[e.id]||(u.takeRecords().map(o),u.disconnect(),Ci[e.id]=!0,i(!0))};["keydown","click"].forEach(function(t){addEventListener(t,s,{once:!0,capture:!0})}),Di(s,!0)}}(function(t){var i=t.entries.pop();if(i){var r=hi(Mt),e=hi(i.startTime);$.log("[Measurements] Adding LCP"),n.Tn.lcp={value:t.value},n.Tn["mark.lcp"]={value:r+e},n.Bn=i}},t)},t.prototype.Un=function(){var t,n,i,r,e,o,u,s=this;t=function(t){var n=t.entries.pop();if(n){var i=hi(Mt),r=hi(n.startTime);$.log("[Measurements] Adding FID"),s.Tn.fid={value:t.value},s.Tn["mark.fid"]={value:i+r}}},r=Ii(),e=ji("FID"),(u=ki("first-input",o=function(t){i&&t.startTime<r.firstHiddenTime&&(e.value=t.processingStart-t.startTime,e.entries.push(t),i(!0))}))&&(i=Oi(t,e,n),Di(function(){u.takeRecords().map(o),u.disconnect()},!0))},t}();function Li(t){var n=t.transaction,i=t.entry,r=t.event,e=t.timeOrigin,o=t.eventEnd,u=t.description,s=o?i[o]:i[r+"End"],a=i[r+"Start"];a&&s&&qi(n,{op:"browser",description:null!=u?u:r,startTimestamp:e+hi(a),endTimestamp:e+hi(s)})}function qi(t,n){var i=n.startTimestamp,r=h(n,["startTimestamp"]);return i&&t.startTimestamp>i&&(t.startTimestamp=i),t.startChild(f({startTimestamp:i},r))}function Fi(t){return"number"==typeof t&&isFinite(t)}var Pi={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};function Ui(t){var n=f(f({},Pi),t),i=n.traceFetch,r=n.traceXHR,e=n.tracingOrigins,o=n.shouldCreateSpanForRequest,u={},s=function(t){if(u[t])return u[t];var n=e;return u[t]=n.some(function(n){return A(t,n)})&&!A(t,"sentry_key"),u[t]},a=s;"function"==typeof o&&(a=function(t){return s(t)&&o(t)});var c={};i&&pt({callback:function(t){!function(t,n,i){if(!ci()||!t.fetchData||!n(t.fetchData.url))return;if(t.endTimestamp&&t.fetchData.__span){var r=i[t.fetchData.__span];return void(r&&(t.response?r.setHttpStatus(t.response.status):t.error&&r.setStatus(ui.InternalError),r.finish(),delete i[t.fetchData.__span]))}var e=fi();if(e){var r=e.startChild({data:f(f({},t.fetchData),{type:"fetch"}),description:t.fetchData.method+" "+t.fetchData.url,op:"http.client"});t.fetchData.__span=r.spanId,i[r.spanId]=r;var o=t.args[0]=t.args[0],u=t.args[1]=t.args[1]||{},s=u.headers;x(o,Request)&&(s=o.headers),s?"function"==typeof s.append?s.append("sentry-trace",r.toTraceparent()):s=Array.isArray(s)?l(s,[["sentry-trace",r.toTraceparent()]]):f(f({},s),{"sentry-trace":r.toTraceparent()}):s={"sentry-trace":r.toTraceparent()},u.headers=s}}(t,a,c)},type:"fetch"}),r&&pt({callback:function(t){!function(t,n,i){var r,e;if(!ci()||(null===(r=t.xhr)||void 0===r?void 0:r.__sentry_own_request__)||!((null===(e=t.xhr)||void 0===e?void 0:e.__sentry_xhr__)&&n(t.xhr.__sentry_xhr__.url)))return;var o=t.xhr.__sentry_xhr__;if(t.endTimestamp&&t.xhr.__sentry_xhr_span_id__){var u=i[t.xhr.__sentry_xhr_span_id__];return void(u&&(u.setHttpStatus(o.status_code),u.finish(),delete i[t.xhr.__sentry_xhr_span_id__]))}var s=fi();if(s){var u=s.startChild({data:f(f({},o.data),{type:"xhr",method:o.method,url:o.url}),description:o.method+" "+o.url,op:"http.client"});if(t.xhr.__sentry_xhr_span_id__=u.spanId,i[t.xhr.__sentry_xhr_span_id__]=u,t.xhr.setRequestHeader)try{t.xhr.setRequestHeader("sentry-trace",u.toTraceparent())}catch(t){}}}(t,a,c)},type:"xhr"})}var Hi=q();var Ji=f({idleTimeout:mi,markBackgroundTransactions:!0,maxTransactionDuration:600,routingInstrumentation:function(t,n,i){if(void 0===n&&(n=!0),void 0===i&&(i=!0),Hi&&Hi.location){var r,e=Hi.location.href;n&&(r=t({name:Hi.location.pathname,op:"pageload"})),i&&pt({callback:function(n){var i=n.to,o=n.from;void 0===o&&e&&-1!==e.indexOf(i)?e=void 0:o!==i&&(e=void 0,r&&($.log("[Tracing] Finishing current transaction with op: "+r.op),r.finish()),r=t({name:Hi.location.pathname,op:"navigation"}))},type:"history"})}else $.warn("Could not initialize routing instrumentation due to invalid location")},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},Pi),Bi=function(){function t(n){this.name=t.id,this.Gn=!1;var i=Pi.tracingOrigins;n&&n.tracingOrigins&&Array.isArray(n.tracingOrigins)&&0!==n.tracingOrigins.length?i=n.tracingOrigins:this.Gn=!0,this.options=f(f(f({},Ji),n),{tracingOrigins:i}),this.Wn=new Ai(f(f({},Mi),this.options.zn))}return t.prototype.setupOnce=function(t,n){var i=this;this.$n=n,this.Gn&&($.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),$.warn("[Tracing] We added a reasonable default for you: "+Pi.tracingOrigins));var r=this.options,e=r.routingInstrumentation,o=r.startTransactionOnLocationChange,u=r.startTransactionOnPageLoad,s=r.markBackgroundTransactions,a=r.traceFetch,c=r.traceXHR,f=r.tracingOrigins,h=r.shouldCreateSpanForRequest;e(function(t){return i.Kn(t)},u,o),s&&(_i&&_i.document?_i.document.addEventListener("visibilitychange",function(){var t=fi();_i.document.hidden&&t&&($.log("[Tracing] Transaction: "+ui.Cancelled+" -> since tab moved to the background, op: "+t.op),t.status||t.setStatus(ui.Cancelled),t.setTag("visibilitychange","document.hidden"),t.finish())}):$.warn("[Tracing] Could not set up background tab detection due to lack of global document")),Ui({traceFetch:a,traceXHR:c,tracingOrigins:f,shouldCreateSpanForRequest:h})},t.prototype.Kn=function(t){var n=this;if(this.$n){var i=this.options,r=i.beforeNavigate,e=i.idleTimeout,o=i.maxTransactionDuration,u="pageload"===t.op?function(){var t=(n="sentry-trace",i=q().document.querySelector("meta[name="+n+"]"),i?i.getAttribute("content"):null);var n,i;if(t)return function(t){var n=t.match(ai);if(n){var i=void 0;return"1"===n[3]?i=!0:"0"===n[3]&&(i=!1),{traceId:n[1],parentSampled:i,parentSpanId:n[2]}}}(t);return}():void 0,s=f(f(f({},t),u),{trimEnd:!0}),a="function"==typeof r?r(s):s,c=void 0===a?f(f({},s),{sampled:!1}):a;!1===c.sampled&&$.log("[Tracing] Will not send "+c.op+" transaction because of beforeNavigate."),$.log("[Tracing] Starting "+c.op+" transaction on scope");var h=function(t,n,i,r,e){var o,u,s=(null===(o=t.getClient())||void 0===o?void 0:o.getOptions())||{},a=new gi(n,t,i,r);return(a=Ti(a,s,f({parentSampled:n.parentSampled,transactionContext:n},e))).sampled&&a.initSpanRecorder(null===(u=s.St)||void 0===u?void 0:u.maxSpans),a}(this.$n(),c,e,!0,{location:q().location});return h.registerBeforeFinishCallback(function(t,i){n.Wn.addPerformanceEntries(t),function(t,n,i){var r=i-n.startTimestamp;i&&(r>t||r<0)&&(n.setStatus(ui.DeadlineExceeded),n.setTag("maxTransactionDurationExceeded","true"))}(1e3*o,t,i)}),h}$.warn("[Tracing] Did not create "+t.op+" transaction because _getCurrentHub is invalid.")},t.id="BrowserTracing",t}();var Xi={},Gi=q();Gi.Sentry&&Gi.Sentry.Integrations&&(Xi=Gi.Sentry.Integrations);var Wi=f(f(f({},Xi),si),{BrowserTracing:Bi});return xi(),t.BrowserClient=ii,t.Hub=Ut,t.Integrations=Wi,t.SDK_NAME="sentry.javascript.browser",t.SDK_VERSION=an,t.Scope=At,t.Span=li,t.Transports=Pn,t.addBreadcrumb=function(t){zt("addBreadcrumb",t)},t.addExtensionMethods=xi,t.addGlobalEventProcessor=qt,t.captureEvent=function(t){return zt("captureEvent",t)},t.captureException=captureException,t.captureMessage=function(t,n){var i;try{throw new Error(t)}catch(t){i=t}return zt("captureMessage",t,"string"==typeof n?n:void 0,f({originalException:t,syntheticException:i},"string"!=typeof n?{captureContext:n}:void 0))},t.close=function(t){var n=Bt().getClient();return n?n.close(t):($.warn("Cannot flush events and disable SDK. No client defined."),Ot.resolve(!1))},t.configureScope=function(t){zt("configureScope",t)},t.defaultIntegrations=ri,t.flush=function(t){var n=Bt().getClient();return n?n.flush(t):($.warn("Cannot flush events. No client defined."),Ot.resolve(!1))},t.forceLoad=function(){},t.getCurrentHub=Bt,t.getHubFromCarrier=Gt,t.init=function(t){if(void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=ri),void 0===t.release){var n=q();n.SENTRY_RELEASE&&n.SENTRY_RELEASE.id&&(t.release=n.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0),function(t,n){var i;!0===n.debug&&$.enable();var r=Bt();null===(i=r.getScope())||void 0===i||i.update(n.initialScope);var e=new t(n);r.bindClient(e)}(ii,t),t.autoSessionTracking&&function(){if(void 0!==q().document){var t=Bt();"function"==typeof t.startSession&&"function"==typeof t.captureSession&&(t.startSession({ignoreDuration:!0}),t.captureSession(),pt({callback:function(n){var i=n.from,r=n.to;void 0!==i&&i!==r&&(t.startSession({ignoreDuration:!0}),t.captureSession())},type:"history"}))}else $.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()},t.lastEventId=function(){return Bt().lastEventId()},t.onLoad=function(t){t()},t.setContext=function(t,n){zt("setContext",t,n)},t.setExtra=function(t,n){zt("setExtra",t,n)},t.setExtras=function(t){zt("setExtras",t)},t.setTag=function(t,n){zt("setTag",t,n)},t.setTags=function(t){zt("setTags",t)},t.setUser=function(t){zt("setUser",t)},t.showReportDialog=function(t){void 0===t&&(t={});var n=Bt(),i=n.getScope();i&&(t.user=f(f({},i.getUser()),t.user)),t.eventId||(t.eventId=n.lastEventId());var r=n.getClient();r&&r.showReportDialog(t)},t.startTransaction=function(t,n){return zt("startTransaction",f({},t),n)},t.withScope=$t,t.wrap=function(t){return Xn(t)()},t}({}); //# sourceMappingURL=bundle.tracing.min.js.map