1!function(){"use strict";var t={};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}();const e="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function n(t){return t&&t.Math==Math?t:void 0}const s="object"==typeof globalThis&&n(globalThis)||"object"==typeof window&&n(window)||"object"==typeof self&&n(self)||"object"==typeof t.g&&n(t.g)||function(){return this}()||{};function r(){return s}function i(t,e,n){const r=n||s,i=r.__SENTRY__=r.__SENTRY__||{};return i[t]||(i[t]=e())}const o=["debug","info","warn","error","log","assert","trace"],a={};function c(t){if(!("console"in s))return t();const e=s.console,n={},r=Object.keys(a);r.forEach((t=>{const s=a[t];n[t]=e[t],e[t]=s}));try{return t()}finally{r.forEach((t=>{e[t]=n[t]}))}}const u=function(){let t=!1;const n={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return e?o.forEach((e=>{n[e]=(...n)=>{t&&c((()=>{s.console[e](`Sentry Logger [${e}]:`,...n)}))}})):o.forEach((t=>{n[t]=()=>{}})),n}(),d=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function p(t,e=!1){const{host:n,path:s,pass:r,port:i,projectId:o,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&r?`:${r}`:""}@${n}${i?`:${i}`:""}/${s?`${s}/`:s}${o}`}function l(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}const h=Object.prototype.toString;function m(t){switch(h.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return w(t,Error)}}function f(t,e){return h.call(t)===`[object ${e}]`}function g(t){return f(t,"ErrorEvent")}function _(t){return f(t,"DOMError")}function v(t){return f(t,"String")}function y(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function b(t){return null===t||y(t)||"object"!=typeof t&&"function"!=typeof t}function S(t){return f(t,"Object")}function T(t){return"undefined"!=typeof Event&&w(t,Event)}function x(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function E(t){return"number"==typeof t&&t!=t}function w(t,e){try{return t instanceof e}catch(t){return!1}}const k=r(),I=80;function C(t,e={}){if(!t)return"<unknown>";try{let n=t;const s=5,r=[];let i=0,o=0;const a=" > ",c=a.length;let u;const d=Array.isArray(e)?e:e.keyAttrs,p=!Array.isArray(e)&&e.maxStringLength||I;for(;n&&i++<s&&(u=R(n,d),!("html"===u||i>1&&o+r.length*c+u.length>=p));)r.push(u),o+=u.length,n=n.parentNode;return r.reverse().join(a)}catch(t){return"<unknown>"}}function R(t,e){const n=t,s=[];let r,i,o,a,c;if(!n||!n.tagName)return"";if(k.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;s.push(n.tagName.toLowerCase());const u=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(u&&u.length)u.forEach((t=>{s.push(`[${t[0]}="${t[1]}"]`)}));else if(n.id&&s.push(`#${n.id}`),r=n.className,r&&v(r))for(i=r.split(/\s+/),c=0;c<i.length;c++)s.push(`.${i[c]}`);const d=["aria-label","type","name","title","alt"];for(c=0;c<d.length;c++)o=d[c],a=n.getAttribute(o),a&&s.push(`[${o}="${a}"]`);return s.join("")}function O(t){if(!k.HTMLElement)return null;let e=t;for(let t=0;t<5;t++){if(!e)return null;if(e instanceof HTMLElement&&e.dataset.sentryComponent)return e.dataset.sentryComponent;e=e.parentNode}return null}function $(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function N(t,e,n){if(!(e in t))return;const s=t[e],r=n(s);"function"==typeof r&&function(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,D(t,"__sentry_original__",e)}catch(t){}}(r,s),t[e]=r}function D(t,n,s){try{Object.defineProperty(t,n,{value:s,writable:!0,configurable:!0})}catch(s){e&&u.log(`Failed to add non-enumerable property "${n}" to object`,t)}}function P(t){if(m(t))return{message:t.message,name:t.name,stack:t.stack,...M(t)};if(T(t)){const e={type:t.type,target:j(t.target),currentTarget:j(t.currentTarget),...M(t)};return"undefined"!=typeof CustomEvent&&w(t,CustomEvent)&&(e.detail=t.detail),e}return t}function j(t){try{return"undefined"!=typeof Element&&w(t,Element)?C(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}}function M(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function A(t){return L(t,new Map)}function L(t,e){if(function(t){if(!S(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(t){return!0}}(t)){const n=e.get(t);if(void 0!==n)return n;const s={};e.set(t,s);for(const n of Object.keys(t))void 0!==t[n]&&(s[n]=L(t[n],e));return s}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const s=[];return e.set(t,s),t.forEach((t=>{s.push(L(t,e))})),s}return t}function H(){const t=s,e=t.crypto||t.msCrypto;let n=()=>
116*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}function F(t,e,n){const s=t.exception=t.exception||{},r=s.values=s.values||[],i=r[0]=r[0]||{};i.value||(i.value=e||""),i.type||(i.type=n||"Error")}function q(t,e){const n=function(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}(t);if(!n)return;const s=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...s,...e},e&&"data"in e){const t={...s&&s.data,...e.data};n.mechanism.data=t}}function U(t){if(t&&t.__sentry_captured__)return!0;try{D(t,"__sentry_captured__",!0)}catch(t){}return!1}var B;function Y(t){return new G((e=>{e(t)}))}function z(t){return new G(((e,n)=>{n(t)}))}!function(t){t[t.PENDING=0]="PENDING",t[t.RESOLVED=1]="RESOLVED",t[t.REJECTED=2]="REJECTED"}(B||(B={}));class G{constructor(t){G.prototype.__init.call(this),G.prototype.__init2.call(this),G.prototype.__init3.call(this),G.prototype.__init4.call(this),this._state=B.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new G(((n,s)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){s(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){s(t)}else s(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new G(((e,n)=>{let s,r;return this.then((e=>{r=!1,s=e,t&&t()}),(e=>{r=!0,s=e,t&&t()})).then((()=>{r?n(s):e(s)}))}))}__init(){this._resolve=t=>{this._setResult(B.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(B.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{this._state===B.PENDING&&(x(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===B.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===B.RESOLVED&&t[1](this._value),this._state===B.REJECTED&&t[2](this._value),t[0]=!0)}))}}}const J=/\(error: (.*)\)/,W=/captureMessage|captureException/;const V="<anonymous>";function K(t){try{return t&&"function"==typeof t&&t.name||V}catch(t){return V}}function X(t,e=100,n=1/0){try{return Z("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function Q(t,e=3,n=102400){const s=X(t,e);return r=s,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(r))>n?Q(t,e-1,n):s;var r}function Z(e,n,s=1/0,r=1/0,i=function(){const t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}()){const[o,a]=i;if(null==n||["number","boolean","string"].includes(typeof n)&&!E(n))return n;const c=function(e,n){try{if("domain"===e&&n&&"object"==typeof n&&n._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==t.g&&n===t.g)return"[Global]";if("undefined"!=typeof window&&n===window)return"[Window]";if("undefined"!=typeof document&&n===document)return"[Document]";if("object"==typeof(s=n)&&null!==s&&(s.__isVue||s._isVue))return"[VueViewModel]";if(function(t){return S(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}(n))return"[SyntheticEvent]";if("number"==typeof n&&n!=n)return"[NaN]";if("function"==typeof n)return`[Function: ${K(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;const r=function(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(n);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(t){return`**non-serializable** (${t})`}var s}(e,n);if(!c.startsWith("[object "))return c;if(n.__sentry_skip_normalization__)return n;const u="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:s;if(0===u)return c.replace("object ","");if(o(n))return"[Circular ~]";const d=n;if(d&&"function"==typeof d.toJSON)try{return Z("",d.toJSON(),u-1,r,i)}catch(t){}const p=Array.isArray(n)?[]:{};let l=0;const h=P(n);for(const t in h){if(!Object.prototype.hasOwnProperty.call(h,t))continue;if(l>=r){p[t]="[MaxProperties ~]";break}const e=h[t];p[t]=Z(t,e,u-1,r,i),l++}return a(n),p}function tt(t,e=[]){return[t,e]}function et(t,e){const[n,s]=t;return[n,[...s,e]]}function nt(t,e){const n=t[1];for(const t of n)if(e(t,t[0].type))return!0;return!1}function st(t,e){return(e||new TextEncoder).encode(t)}function rt(t,e){const[n,s]=t;let r=JSON.stringify(n);function i(t){"string"==typeof r?r="string"==typeof t?r+t:[st(r,e),t]:r.push("string"==typeof t?st(t,e):t)}for(const t of s){const[e,n]=t;if(i(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify(X(n))}i(t)}}return"string"==typeof r?r:function(t){const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let s=0;for(const e of t)n.set(e,s),s+=e.length;return n}(r)}function it(t,e){const n="string"==typeof t.data?st(t.data,e):t.data;return[A({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}const ot={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function at(t){return ot[t]}function ct(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}
1class ut extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}const dt="7";function pt(t,e={}){const n="string"==typeof e?e:e.tunnel,s="string"!=typeof e&&e._metadata?e._metadata.sdk:void 0;return n||`${function(t){return`${function(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}(t)}${t.projectId}/envelope/`}(t)}?${function(t,e){return n={sentry_key:t.publicKey,sentry_version:dt,...e&&{sentry_client:`${e.name}/${e.version}`}},Object.keys(n).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`)).join("&");var n}(t,s)}`}const lt="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;const ht=1e3;function mt(){return Date.now()/ht}const ft=function(){const{performance:t}=s;if(!t||!t.now)return mt;const e=Date.now()-t.now(),n=null==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/ht}();let gt;const _t=(()=>{const{performance:t}=s;if(!t||!t.now)return void(gt="none");const e=36e5,n=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,o=i<e,a=t.timing&&t.timing.navigationStart,c="number"==typeof a?Math.abs(a+n-r):e;return o||c<e?i<=c?(gt="timeOrigin",t.timeOrigin):(gt="navigationStart",a):(gt="dateNow",r)})(),vt="production";function yt(){return i("globalEventProcessors",(()=>[]))}function bt(t){yt().push(t)}function St(t,e,n,s=0){return new G(((r,i)=>{const o=t[s];if(null===e||"function"!=typeof o)r(e);else{const a=o({...e},n);lt&&o.id&&null===a&&u.log(`Event processor "${o.id}" dropped event`),x(a)?a.then((e=>St(t,e,n,s+1).then(r))).then(null,i):St(t,a,n,s+1).then(r).then(null,i)}}))}function Tt(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||ft(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:H()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function xt(t,e){return se().captureEvent(t,e)}function Et(){return se().getClient()}function wt(){return se().getScope()}function kt(t){return t.transaction}const It="baggage",Ct="sentry-",Rt=/^sentry-/,Ot=8192;function $t(t){if(t)return function(t){if(0!==Object.keys(t).length)return Object.entries(t).reduce(((t,[n,s],r)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(s)}`,o=0===r?i:`${t},${i}`;return o.length>Ot?(e&&u.warn(`Not adding key: ${n} with val: ${s} to baggage header due to exceeding baggage size limits.`),t):o}),"")}(Object.entries(t).reduce(((t,[e,n])=>(n&&(t[`${Ct}${e}`]=n),t)),{}))}function Nt(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,[e,n])=>(t[e]=n,t)),{})}const Dt=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Pt(t,e){const n=function(t){if(!t)return;const e=t.match(Dt);if(!e)return;let n;return"1"===e[3]?n=!0:"0"===e[3]&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}(t),s=function(t){if(!v(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce(((t,e)=>{const n=Nt(e);for(const e of Object.keys(n))t[e]=n[e];return t}),{});else{if(!t)return;e=Nt(t)}const n=Object.entries(e).reduce(((t,[e,n])=>(e.match(Rt)&&(t[e.slice(Ct.length)]=n),t)),{});return Object.keys(n).length>0?n:void 0}(e),{traceId:r,parentSpanId:i,parentSampled:o}=n||{};return n?{traceId:r||H(),parentSpanId:i||H().substring(16),spanId:H().substring(16),sampled:o,dsc:s||{}}:{traceId:r||H(),spanId:H().substring(16)}}function jt(t=H(),e=H().substring(16),n){let s="";return void 0!==n&&(s=n?"-1":"-0"),`${t}-${e}${s}`}const Mt=1;function At(t){const{spanId:e,traceId:n}=t.spanContext(),{data:s,op:r,parent_span_id:i,status:o,tags:a,origin:c}=qt(t);return A({data:s,op:r,parent_span_id:i,span_id:e,status:o,tags:a,trace_id:n,origin:c})}function Lt(t){const{traceId:e,spanId:n}=t.spanContext();return jt(e,n,Ut(t))}function Ht(t){return"number"==typeof t?Ft(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Ft(t.getTime()):ft()}function Ft(t){return t>9999999999?t/1e3:t}function qt(t){return function(t){return"function"==typeof t.getSpanJSON}(t)?t.getSpanJSON():"function"==typeof t.toJSON?t.toJSON():{}}function Ut(t){const{traceFlags:e}=t.spanContext();return Boolean(e&Mt)}function Bt(t,e,n){const s=e.getOptions(),{publicKey:r}=e.getDsn()||{},{segment:i}=n&&n.getUser()||{},o=A({environment:s.environment||vt,release:s.release,user_segment:i,public_key:r,trace_id:t});return e.emit&&e.emit("createDsc",o),o}function Yt(t){const e=Et();if(!e)return{};
1const n=Bt(qt(t).trace_id||"",e,wt()),s=kt(t);if(!s)return n;const r=s&&s._frozenDynamicSamplingContext;if(r)return r;const{sampleRate:i,source:o}=s.metadata;null!=i&&(n.sample_rate=`${i}`);const a=qt(s);return o&&"url"!==o&&(n.transaction=a.description),n.sampled=String(Ut(s)),e.emit&&e.emit("createDsc",n),n}function zt(t,e){const{fingerprint:n,span:s,breadcrumbs:r,sdkProcessingMetadata:i}=e;!function(t,e){const{extra:n,tags:s,user:r,contexts:i,level:o,transactionName:a}=e,c=A(n);c&&Object.keys(c).length&&(t.extra={...c,...t.extra});const u=A(s);u&&Object.keys(u).length&&(t.tags={...u,...t.tags});const d=A(r);d&&Object.keys(d).length&&(t.user={...d,...t.user});const p=A(i);p&&Object.keys(p).length&&(t.contexts={...p,...t.contexts}),o&&(t.level=o),a&&(t.transaction=a)}(t,e),s&&function(t,e){t.contexts={trace:At(e),...t.contexts};const n=kt(e);if(n){t.sdkProcessingMetadata={dynamicSamplingContext:Yt(e),...t.sdkProcessingMetadata};const s=qt(n).description;s&&(t.tags={transaction:s,...t.tags})}}(t,s),function(t,e){var n;t.fingerprint=t.fingerprint?(n=t.fingerprint,Array.isArray(n)?n:[n]):[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}(t,n),function(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,r),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,i)}function Gt(t,e){const{extra:n,tags:s,user:r,contexts:i,level:o,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:d,attachments:p,propagationContext:l,transactionName:h,span:m}=e;Jt(t,"extra",n),Jt(t,"tags",s),Jt(t,"user",r),Jt(t,"contexts",i),Jt(t,"sdkProcessingMetadata",a),o&&(t.level=o),h&&(t.transactionName=h),m&&(t.span=m),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),d.length&&(t.eventProcessors=[...t.eventProcessors,...d]),p.length&&(t.attachments=[...t.attachments,...p]),t.propagationContext={...t.propagationContext,...l}}function Jt(t,e,n){if(n&&Object.keys(n).length){t[e]={...t[e]};for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[e][s]=n[s])}}let Wt;class Vt{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Kt()}static clone(t){return t?t.clone():new Vt}clone(){const t=new Vt;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Tt(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t;if(e instanceof Vt){const t=e.getScopeData();this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&Object.keys(t.user).length&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint.length&&(this._fingerprint=t.fingerprint),e.getRequestSession()&&(this._requestSession=e.getRequestSession()),t.propagationContext&&(this._propagationContext=t.propagationContext)}else if(S(e)){const e=t;this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Kt(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const s={timestamp:mt(),...t},r=this._breadcrumbs;return r.push(s),this._breadcrumbs=r.length>n?r.slice(-n):r,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}
1getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:e,_contexts:n,_tags:s,_extra:r,_user:i,_level:o,_fingerprint:a,_eventProcessors:c,_propagationContext:u,_sdkProcessingMetadata:d,_transactionName:p,_span:l}=this;return{breadcrumbs:t,attachments:e,contexts:n,tags:s,extra:r,user:i,level:o,fingerprint:a||[],eventProcessors:c,propagationContext:u,sdkProcessingMetadata:d,transactionName:p,span:l}}applyToEvent(t,e={},n=[]){return zt(t,this.getScopeData()),St([...n,...yt(),...this._eventProcessors],t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e&&e.event_id?e.event_id:H();if(!this._client)return u.warn("No client configured on scope - will not capture exception!"),n;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...e,event_id:n},this),n}captureMessage(t,e,n){const s=n&&n.event_id?n.event_id:H();if(!this._client)return u.warn("No client configured on scope - will not capture message!"),s;const r=new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:r,...n,event_id:s},this),s}captureEvent(t,e){const n=e&&e.event_id?e.event_id:H();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(u.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}}function Kt(){return{traceId:H(),spanId:H().substring(16)}}const Xt="7.120.3",Qt=parseFloat(Xt),Zt=100;class te{constructor(t,e,n,s=Qt){let r,i;this._version=s,e?r=e:(r=new Vt,r.setClient(t)),n?i=n:(i=new Vt,i.setClient(t)),this._stack=[{scope:r}],t&&this.bindClient(t),this._isolationScope=i}isOlderThan(t){return this._version<t}bindClient(t){const e=this.getStackTop();e.client=t,e.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(t){const e=this.pushScope();let n;try{n=t(e)}catch(t){throw this.popScope(),t}return x(n)?n.then((t=>(this.popScope(),t)),(t=>{throw this.popScope(),t})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,e){const n=this._lastEventId=e&&e.event_id?e.event_id:H(),s=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:s,...e,event_id:n}),n}captureMessage(t,e,n){const s=this._lastEventId=n&&n.event_id?n.event_id:H(),r=new Error(t);return this.getScope().captureMessage(t,e,{originalException:t,syntheticException:r,...n,event_id:s}),s}captureEvent(t,e){const n=e&&e.event_id?e.event_id:H();return t.type||(this._lastEventId=n),this.getScope().captureEvent(t,{...e,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){const{scope:n,client:s}=this.getStackTop();if(!s)return;const{beforeBreadcrumb:r=null,maxBreadcrumbs:i=Zt}=s.getOptions&&s.getOptions()||{};if(i<=0)return;const o={timestamp:mt(),...t},a=r?c((()=>r(o,e))):o;null!==a&&(s.emit&&s.emit("beforeAddBreadcrumb",a,e),n.addBreadcrumb(a,i))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,e){this.getScope().setTag(t,e),this.getIsolationScope().setTag(t,e)}setExtra(t,e){this.getScope().setExtra(t,e),this.getIsolationScope().setExtra(t,e)}
1setContext(t,e){this.getScope().setContext(t,e),this.getIsolationScope().setContext(t,e)}configureScope(t){const{scope:e,client:n}=this.getStackTop();n&&t(e)}run(t){const e=ne(this);try{t(this)}finally{ne(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return lt&&u.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){const n=this._callExtensionMethod("startTransaction",t,e);return lt&&!n&&(this.getClient()?u.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):u.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const t=this.getStackTop().scope,e=t.getSession();e&&function(t,e){let n={};"ok"===t.status&&(n={status:"exited"}),Tt(t,n)}(e),this._sendSessionUpdate(),t.setSession()}startSession(t){const{scope:e,client:n}=this.getStackTop(),{release:r,environment:i=vt}=n&&n.getOptions()||{},{userAgent:o}=s.navigator||{},a=function(t){const e=ft(),n={sid:H(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return A({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&Tt(n,t),n}({release:r,environment:i,user:e.getUser(),...o&&{userAgent:o},...t}),c=e.getSession&&e.getSession();return c&&"ok"===c.status&&Tt(c,{status:"exited"}),this.endSession(),e.setSession(a),a}shouldSendDefaultPii(){const t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:e}=this.getStackTop(),n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}_callExtensionMethod(t,...e){const n=ee().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);lt&&u.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function ee(){return s.__SENTRY__=s.__SENTRY__||{extensions:{},hub:void 0},s}function ne(t){const e=ee(),n=ie(e);return oe(e,t),n}function se(){const t=ee();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return function(t=ee()){return e=t,!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)&&!ie(t).isOlderThan(Qt)||oe(t,new te),ie(t);var e}(t)}function re(){return se().getIsolationScope()}function ie(t){return i("hub",(()=>new te),t)}function oe(t,e){return!!t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0)}const ae=[];function ce(t,e){for(const n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function ue(t,e,n){if(n[e.name])lt&&u.log(`Integration skipped because it was already installed: ${e.name}`);else{if(n[e.name]=e,-1===ae.indexOf(e.name)&&(e.setupOnce(bt,se),ae.push(e.name)),e.setup&&"function"==typeof e.setup&&e.setup(t),t.on&&"function"==typeof e.preprocessEvent){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",((e,s)=>n(e,s,t)))}if(t.addEventProcessor&&"function"==typeof e.processEvent){const n=e.processEvent.bind(e),s=Object.assign(((e,s)=>n(e,s,t)),{id:e.name});t.addEventProcessor(s)}lt&&u.log(`Integration installed: ${e.name}`)}}const de=new WeakMap,pe="Not capturing exception because it's already been captured.";class le{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=function(t){const n="string"==typeof t?function(t){const e=d.exec(t);if(!e)return void c((()=>{console.error(`Invalid Sentry Dsn: ${t}`)}));const[n,s,r="",i,o="",a]=e.slice(1);let u="",p=a;const h=p.split("/");if(h.length>1&&(u=h.slice(0,-1).join("/"),p=h.pop()),p){const t=p.match(/^\d+/);t&&(p=t[0])}return l({host:i,pass:r,path:u,projectId:p,port:o,protocol:n,publicKey:s})}(t):l(t);if(n&&function(t){if(!e)return!0;const{port:n,projectId:s,protocol:r}=t;return!(["protocol","publicKey","host","projectId"].find((e=>!t[e]&&(u.error(`Invalid Sentry Dsn: ${e} missing`),!0)))||(s.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(r)?n&&isNaN(parseInt(n,10))&&(u.error(`Invalid Sentry Dsn: Invalid port ${n}`),1):(u.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(u.error(`Invalid Sentry Dsn: Invalid projectId ${s}`),1)))}(n))return n}(t.dsn):lt&&u.warn("No DSN provided, client will not send events."),this._dsn){const e=pt(this._dsn,t);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}}captureException(t,e,n){if(U(t))return void(lt&&u.log(pe));let s=e&&e.event_id;return this._process(this.eventFromException(t,e).then((t=>this._captureEvent(t,e,n))).then((t=>{s=t}
1))),s}captureMessage(t,e,n,s){let r=n&&n.event_id;const i=y(t)?t:String(t),o=b(t)?this.eventFromMessage(i,e,n):this.eventFromException(t,n);return this._process(o.then((t=>this._captureEvent(t,n,s))).then((t=>{r=t}))),r}captureEvent(t,e,n){if(e&&e.originalException&&U(e.originalException))return void(lt&&u.log(pe));let s=e&&e.event_id;const r=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,e,r||n).then((t=>{s=t}))),s}captureSession(t){"string"!=typeof t.release?lt&&u.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Tt(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const e=this._transport;return e?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then((n=>e.flush(t).then((t=>n&&t))))):Y(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),t)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(e){return lt&&u.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const e=this._integrations[t.name];ue(this,t,this._integrations),e||ce(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=function(t,e,n,s){const r=ct(n),i=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,n&&n.sdk);const o=function(t,e,n,s){const r=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&s&&{dsn:p(s)},...r&&{trace:A({...r})}}}(t,r,s,e);return delete t.sdkProcessingMetadata,tt(o,[[{type:i},t]])}(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])n=et(n,it(t,this._options.transportOptions&&this._options.transportOptions.textEncoder));const s=this._sendEnvelope(n);s&&s.then((e=>this.emit("afterSendEvent",t,e)),null)}sendSession(t){const e=function(t,e,n,s){const r=ct(n);return tt({sent_at:(new Date).toISOString(),...r&&{sdk:r},...!!s&&e&&{dsn:p(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){const s="number"==typeof n?n:1,r=`${t}:${e}`;lt&&u.log(`Recording outcome: "${r}"${s>1?` (${s} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+s}}captureAggregateMetrics(t){lt&&u.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const e=function(t,e,n,s){const r={sent_at:(new Date).toISOString()};n&&n.sdk&&(r.sdk={name:n.sdk.name,version:n.sdk.version}),s&&e&&(r.dsn=p(e));const i=function(t){const e=function(t){let e="";for(const n of t){const t=Object.entries(n.tags),s=t.length>0?`|#${t.map((([t,e])=>`${t}:${e}`)).join(",")}`:"";e+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${s}|T${n.timestamp}\n`}return e}(t);return[{type:"statsd",length:e.length},e]}(t);return tt(r,[i])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}on(t,e){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(e)}emit(t,...e){this._hooks[t]&&this._hooks[t].forEach((t=>t(...e)))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=function(t,e){const n={};return e.forEach((e=>{e&&ue(t,e,n)})),n}(this,t),ce(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,e){let n=!1,s=!1;const r=e.exception&&e.exception.values;if(r){s=!0;for(const t of r){const e=t.mechanism;if(e&&!1===e.handled){n=!0;break}}}const i="ok"===t.status;(i&&0===t.errors||i&&n)&&(Tt(t,{...n&&{status:"crashed"},errors:t.errors||Number(s||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new G((e=>{let n=0;const s=setInterval((()=>{0==this._numProcessing?(clearInterval(s),e(!0)):(n+=1,t&&n>=t&&(clearInterval(s),e(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,e,n,r=re()){const i=this.getOptions(),o=Object.keys(this._integrations);return!e.integrations&&o.length>
10&&(e.integrations=o),this.emit("preprocessEvent",t,e),function(t,e,n,r,i,o){const{normalizeDepth:a=3,normalizeMaxBreadth:c=1e3}=t,u={...e,event_id:e.event_id||n.event_id||H(),timestamp:e.timestamp||mt()},d=n.integrations||t.integrations.map((t=>t.name));!function(t,e){const{environment:n,release:s,dist:r,maxValueLength:i=250}=e;"environment"in t||(t.environment="environment"in e?n:vt),void 0===t.release&&void 0!==s&&(t.release=s),void 0===t.dist&&void 0!==r&&(t.dist=r),t.message&&(t.message=$(t.message,i));const o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=$(o.value,i));const a=t.request;a&&a.url&&(a.url=$(a.url,i))}(u,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(u,d),void 0===e.type&&function(t,e){const n=s._sentryDebugIds;if(!n)return;let r;const i=de.get(e);i?r=i:(r=new Map,de.set(e,r));const o=Object.keys(n).reduce(((t,s)=>{let i;const o=r.get(s);o?i=o:(i=e(s),r.set(s,i));for(let e=i.length-1;e>=0;e--){const r=i[e];if(r.filename){t[r.filename]=n[s];break}}return t}),{});try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.filename&&(t.debug_id=o[t.filename])}))}))}catch(t){}}(u,t.stackParser);const p=function(t,e){if(!e)return t;const n=t?t.clone():new Vt;return n.update(e),n}(r,n.captureContext);n.mechanism&&q(u,n.mechanism);const l=i&&i.getEventProcessors?i.getEventProcessors():[],h=(Wt||(Wt=new Vt),Wt).getScopeData();o&&Gt(h,o.getScopeData()),p&&Gt(h,p.getScopeData());const m=[...n.attachments||[],...h.attachments];return m.length&&(n.attachments=m),zt(u,h),St([...l,...yt(),...h.eventProcessors],u,n).then((t=>(t&&function(t){const e={};try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)}))}))}catch(t){}if(0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.keys(e).forEach((t=>{n.push({type:"sourcemap",code_file:t,debug_id:e[t]})}))}(t),"number"==typeof a&&a>0?function(t,e,n){if(!t)return null;const s={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:X(t.data,e,n)}})))},...t.user&&{user:X(t.user,e,n)},...t.contexts&&{contexts:X(t.contexts,e,n)},...t.extra&&{extra:X(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&s.contexts&&(s.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(s.contexts.trace.data=X(t.contexts.trace.data,e,n))),t.spans&&(s.spans=t.spans.map((t=>{const s=qt(t).data;return s&&(t.data=X(s,e,n)),t}))),s}(t,a,c):t)))}(i,t,e,n,this,r).then((t=>{if(null===t)return t;const e={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if((!t.contexts||!t.contexts.trace)&&e){const{traceId:s,spanId:r,parentSpanId:i,dsc:o}=e;t.contexts={trace:{trace_id:s,span_id:r,parent_span_id:i},...t.contexts};const a=o||Bt(s,this,n);t.sdkProcessingMetadata={dynamicSamplingContext:a,...t.sdkProcessingMetadata}}return t}))}_captureEvent(t,e={},n){return this._processEvent(t,e,n).then((t=>t.event_id),(t=>{if(lt){const e=t;"log"===e.logLevel?u.log(e.message):u.warn(e)}}))}_processEvent(t,e,n){const s=this.getOptions(),{sampleRate:r}=s,i=me(t),o=he(t),a=t.type||"error",c=`before send for type \`${a}\``;if(o&&"number"==typeof r&&Math.random()>r)return this.recordDroppedEvent("sample_rate","error",t),z(new ut(`Discarding event because it's not included in the random sample (sampling rate = ${r})`,"log"));const u="replay_event"===a?"replay":a,d=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,e,n,d).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,t),new ut("An event processor returned `null`, will not send event.","log");if(e.data&&!0===e.data.__sentry__)return n;const r=function(t,e,n){const{beforeSend:s,beforeSendTransaction:r}=t;if(he(e)&&s)return s(e,n);if(me(e)&&r){if(e.spans){const t=e.spans.length;e.sdkProcessingMetadata={...e.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return r(e,n)}return e}(s,n,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if(x(t))return t.then((t=>{if(!S(t)&&null!==t)throw new ut(n);return t}),(t=>{throw new ut(`${e} rejected with ${t}`)}));if(!S(t)&&null!==t)throw new ut(n);return t}(r,c)})).then((s=>{if(null===s){if(this.recordDroppedEvent("before_send",u,t),i){const e=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",e)}throw new ut(`${c} returned \`null\`, will not send event.`,"log")}const r=n&&n.getSession();if(!i&&r&&this._updateSessionFromEvent(r,s),i){const t=(s.sdkProcessingMetadata&&s.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(s.spans?s.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const o=s.transaction_info;if(i&&o&&s.transaction!==t.transaction){const t="custom";s.transaction_info={...o,source:t}}return this.sendEvent(s,e),s})).then(null,(t=>{if(t instanceof ut)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new ut(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}_process(t){this._numProcessing++,t.then((t=>(this._numProcessing--,t)),(t=>(this._numProcessing--,t)))}
1_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,(t=>{lt&&u.error("Error while sending event:",t)}));lt&&u.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map((e=>{const[n,s]=e.split(":");return{reason:n,category:s,quantity:t[e]}}))}}function he(t){return void 0===t.type}function me(t){return"transaction"===t.type}const fe="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function ge(t,e){const n=ve(t,e),s={type:e&&e.name,value:be(e)};return n.length&&(s.stacktrace={frames:n}),void 0===s.type&&""===s.value&&(s.value="Unrecoverable error caught"),s}function _e(t,e){return{exception:{values:[ge(t,e)]}}}function ve(t,e){const n=e.stacktrace||e.stack||"",s=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(ye.test(t.message))return 1}return 0}(e);try{return t(n,s)}catch(t){}return[]}const ye=/Minified React error #\d+;/i;function be(t){const e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function Se(t,e,n,s,r){let i;if(g(e)&&e.error)return _e(t,e.error);if(_(e)||f(e,"DOMException")){const r=e;if("stack"in e)i=_e(t,e);else{const e=r.name||(_(r)?"DOMError":"DOMException"),o=r.message?`${e}: ${r.message}`:e;i=Te(t,o,n,s),F(i,o)}return"code"in r&&(i.tags={...i.tags,"DOMException.code":`${r.code}`}),i}return m(e)?_e(t,e):S(e)||T(e)?(i=function(t,e,n,s){const r=Et(),i=r&&r.getOptions().normalizeDepth,o={exception:{values:[{type:T(e)?e.constructor.name:s?"UnhandledRejection":"Error",value:xe(e,{isUnhandledRejection:s})}]},extra:{__serialized__:Q(e,i)}};if(n){const e=ve(t,n);e.length&&(o.exception.values[0].stacktrace={frames:e})}return o}(t,e,n,r),q(i,{synthetic:!0}),i):(i=Te(t,e,n,s),F(i,`${e}`,void 0),q(i,{synthetic:!0}),i)}function Te(t,e,n,s){const r={};if(s&&n){const s=ve(t,n);s.length&&(r.exception={values:[{value:e,stacktrace:{frames:s}}]})}if(y(e)){const{__sentry_template_string__:t,__sentry_template_values__:n}=e;return r.logentry={message:t,params:n},r}return r.message=e,r}function xe(t,{isUnhandledRejection:e}){const n=function(t,e=40){const n=Object.keys(P(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return $(n[0],e);for(let t=n.length;t>0;t--){const s=n.slice(0,t).join(", ");if(!(s.length>e))return t===n.length?s:$(s,e)}return""}(t),s=e?"promise rejection":"exception";return g(t)?`Event \`ErrorEvent\` captured as ${s} with message \`${t.message}\``:T(t)?`Event \`${function(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(t){}}(t)}\` (type=${t.type}) captured as ${s}`:`Object captured as ${s} with keys: ${n}`}const Ee=s;class we extends le{constructor(t){!function(t,e,n=[e],s="npm"){const r=t._metadata||{};r.sdk||(r.sdk={name:`sentry.javascript.${e}`,packages:n.map((t=>({name:`${s}:@sentry/${t}`,version:Xt}))),version:Xt}),t._metadata=r}(t,"browser",["browser"],Ee.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&Ee.document&&Ee.document.addEventListener("visibilitychange",(()=>{"hidden"===Ee.document.visibilityState&&this._flushOutcomes()}))}eventFromException(t,e){return function(t,e,n,s){const r=Se(t,e,n&&n.syntheticException||void 0,s);return q(r),r.level="error",n&&n.event_id&&(r.event_id=n.event_id),Y(r)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",s,r){const i=Te(t,e,s&&s.syntheticException||void 0,r);return i.level=n,s&&s.event_id&&(i.event_id=s.event_id),Y(i)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled())return void(fe&&u.warn("SDK not enabled, will not capture user feedback."));const e=function(t,{metadata:e,tunnel:n,dsn:s}){const r={event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!s&&{dsn:p(s)}},i=function(t){return[{type:"user_report"},t]}(t);return tt(r,[i])}(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(e)}_prepareEvent(t,e,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n)}_flushOutcomes(){const t=this._clearOutcomes();if(0===t.length)return void(fe&&u.log("No outcomes to send"));if(!this._dsn)return void(fe&&u.log("No dsn provided, will not send outcomes"));fe&&u.log("Sending outcomes:",t);const e=(n=t,tt((s=this._options.tunnel&&p(this._dsn))?{dsn:s}:{},[[{type:"client_report"},{timestamp:mt(),discarded_events:n}]]));var n,s;this._sendEnvelope(e)}}const ke=6e4;function Ie(t,e,n=function(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(s){if(!(void 0===t||e.length<t))return z(new ut("Not adding Promise because buffer limit was reached."));const r=s();return-1===e.indexOf(r)&&e.push(r),r.then((()=>n(r))).then(null,(()=>n(r).then(null,(()=>{})))),r},drain:function(t){return new G(((n,s)=>{let r=e.length;if(!r)return n(!0);const i=setTimeout((()=>{t&&t>0&&n(!1)}),t);e.forEach((t=>{Y(t).then((()=>{--r||(clearTimeout(i),n(!0))}),s)}))}))}}}(t.bufferSize||30)){let s={};function r(r){const i=[];if(nt(r,((e,n)=>{const r=at(n);if(function(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(s,r)){const s=Ce(e,n);t.recordDroppedEvent("ratelimit_backoff",r,s)}else i.push(e)})),0===i.length)return Y();const o=tt(r[0],i),a=e=>{nt(o,((n,s)=>{const r=Ce(n,s);t.recordDroppedEvent(e,at(s),r)}))};return n.add((()=>e({body:rt(o,t.textEncoder)}).then((t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&<&&u.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),s=function(t,{statusCode:e,headers:n},s=Date.now()){const r={...t},i=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(i)for(const t of i.trim().split(",")){const[e,n,,,i]=t.split(":",5),o=parseInt(e,10),a=1e3*(isNaN(o)?60:o);if(n)for(const t of n.split(";"))"metric_bucket"===t&&i&&!i.split(";").includes("custom")||(r[t]=s+a);else r.all=s+a}else o?r.all=s+function(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const s=Date.parse(`${t}`);return isNaN(s)?ke:s-e}(o,s):429===e&&(r.all=s+6e4);return r}(s,t),t)),(t=>{throw a("network_error"),t})))).then((t=>t),(t=>{if(t instanceof ut)return lt&&u.error("Skipped sending event because buffer is full."),a("queue_overflow"),Y();throw t}))}return r.__sentry__baseTransport__=!0,{send:r,flush:t=>n.drain(t)}}function Ce(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}const Re=r();function Oe(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}let $e;const Ne="?";function De(t,e,n,s){const r={filename:t,function:e,in_app:!0};return void 0!==n&&(r.lineno=n),void 0!==s&&(r.colno=s),r}const Pe=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,je=/\((\S*)(?::(\d+))(?::(\d+))\)/,Me=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ae=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Le=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,He=function(...t){const e=t.sort(((t,e)=>t[0]-e[0])).map((t=>t[1]));return(t,n=0)=>{const s=[],r=t.split("\n");for(let t=n;t<r.length;t++){const n=r[t];if(n.length>1024)continue;const i=J.test(n)?n.replace(J,"$1"):n;if(!i.match(/\S*Error: /)){for(const t of e){const e=t(i);if(e){s.push(e);break}}if(s.length>=50)break}}return function(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),W.test(e[e.length-1].function||"")&&(e.pop(),W.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,50).map((t=>({...t,filename:t.filename||e[e.length-1].filename,function:t.function||"?"})))}(s)}}([30,t=>{const e=Pe.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){const t=je.exec(e[2]);t&&(e[2]=t[1],e[3]=t[2],e[4]=t[3])}const[t,n]=Fe(e[1]||Ne,e[2]);return De(n,t,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],[50,t=>{const e=Me.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=Ae.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||Ne;return[n,t]=Fe(n,t),De(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],[40,t=>{const e=Le.exec(t);return e?De(e[2],e[1]||Ne,+e[3],e[4]?+e[4]:void 0):void 0}]),Fe=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),s=-1!==t.indexOf("safari-web-extension");return n||s?[-1!==t.indexOf("@")?t.split("@")[0]:Ne,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};let qe;function Ue(t){const e=function(t){return qe?qe.get(t):void 0}(t);if(!e)return;const n={};for(const[,[t,s]]of e)n[t]||(n[t]=[]),n[t].push(A(s));return n}const Be="sentry.source",Ye="sentry.sample_rate",ze="sentry.op",Ge="sentry.origin";var Je;function We(t,e){t.setTag("http.status_code",String(e)),t.setData("http.response.status_code",e);const n=function(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);"unknown_error"!==n&&t.setStatus(n)}!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"}(Je||(Je={}));class Ve{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class Ke{constructor(t={}){this._traceId=t.traceId||H(),this._spanId=t.spanId||H().substring(16),this._startTime=t.startTimestamp||ft(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[Ge]:t.origin||"manual",[ze]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),void 0!==t.exclusiveTime&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?{...t.measurements}:{}}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[ze]}set op(t){this.setAttribute(ze,t)}get origin(){return this._attributes[Ge]}set origin(t){this.setAttribute(Ge,t)}spanContext(){const{_spanId:t,_traceId:e,_sampled:n}=this;return{spanId:t,traceId:e,traceFlags:n?Mt:0}}startChild(t){const e=new Ke({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});e.spanRecorder=this.spanRecorder,e.spanRecorder&&e.spanRecorder.add(e);const n=kt(this);if(e.transaction=n,lt&&n){const s=`[Tracing] Starting '${t&&t.op||"< unknown op >"}' span on transaction '${qt(e).description||"< unknown name >"}' (${n.spanContext().spanId}).`;u.log(s),this._logMessage=s}return e}setTag(t,e){return this.tags={...this.tags,[t]:e},this}setData(t,e){return this.data={...this.data,[t]:e},this}setAttribute(t,e){void 0===e?delete this._attributes[t]:this._attributes[t]=e}setAttributes(t){Object.keys(t).forEach((e=>this.setAttribute(e,t[e])))}setStatus(t){return this._status=t,this}setHttpStatus(t){return We(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return"ok"===this._status}finish(t){return this.end(t)}end(t){if(this._endTime)return;const e=kt(this);if(lt&&e&&e.spanContext().spanId!==this._spanId){const t=this._logMessage;t&&u.log(t.replace("Starting","Finishing"))}
1this._endTime=Ht(t)}toTraceparent(){return Lt(this)}toContext(){return A({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return At(this)}getSpanJSON(){return A({data:this._getData(),description:this._name,op:this._attributes[ze],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Ge],_metrics_summary:Ue(this),profile_id:this._attributes.profile_id,exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:e}=this,n=Object.keys(t).length>0,s=Object.keys(e).length>0;if(n||s)return n&&s?{...t,...e}:n?t:e}}function Xe(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=Et(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function Qe(t){if(!Xe())return;const e=function(t){if(t.startTime){const e={...t};return e.startTimestamp=Ht(t.startTime),delete e.startTime,e}return t}(t),n=se(),s=t.scope?t.scope.getSpan():wt().getSpan();if(t.onlyIfParent&&!s)return;const r=(t.scope||wt()).clone();return function(t,{parentSpan:e,spanContext:n,forceTransaction:s,scope:r}){if(!Xe())return;const i=re();let o;if(e&&!s)o=e.startChild(n);else if(e){const s=Yt(e),{traceId:r,spanId:i}=e.spanContext(),a=Ut(e);o=t.startTransaction({traceId:r,parentSpanId:i,parentSampled:a,...n,metadata:{dynamicSamplingContext:s,...n.metadata}})}else{const{traceId:e,dsc:s,parentSpanId:a,sampled:c}={...i.getPropagationContext(),...r.getPropagationContext()};o=t.startTransaction({traceId:e,parentSpanId:a,parentSampled:c,...n,metadata:{dynamicSamplingContext:s,...n.metadata}})}return r.setSpan(o),function(t,e,n){t&&(D(t,tn,n),D(t,Ze,e))}(o,r,i),o}(n,{parentSpan:s,spanContext:e,forceTransaction:t.forceTransaction,scope:r})}const Ze="_sentryScope",tn="_sentryIsolationScope";class en extends Ke{constructor(t,e){super(t),this._contexts={},this._hub=e||se(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[Be]&&{source:this._attributes[Be]},...this._attributes[Ye]&&{sampleRate:this._attributes[Ye]}}}set metadata(t){this._metadata=t}setName(t,e="custom"){this._name=t,this.setAttribute(Be,e)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new Ve(t)),this.spanRecorder.add(this)}setContext(t,e){null===e?delete this._contexts[t]:this._contexts[t]=e}setMeasurement(t,e,n=""){this._measurements[t]={value:e,unit:n}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const e=Ht(t),n=this._finishTransaction(e);if(n)return this._hub.captureEvent(n)}toContext(){return A({...super.toContext(),name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return Yt(this)}setHub(t){this._hub=t}getProfileId(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}_finishTransaction(t){if(void 0!==this._endTime)return;this._name||(lt&&u.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(t);const e=this._hub.getClient();if(e&&e.emit&&e.emit("finishTransaction",this),!0!==this._sampled)return lt&&u.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(e&&e.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter((t=>t!==this&&qt(t).timestamp)):[];if(this._trimEnd&&n.length>0){const t=n.map((t=>
1qt(t).timestamp)).filter(Boolean);this._endTime=t.reduce(((t,e)=>t>e?t:e))}const{scope:s,isolationScope:r}={scope:this[Ze],isolationScope:this[tn]};const{metadata:i}=this,{source:o}=i,a={contexts:{...this._contexts,trace:At(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...i,capturedSpanScope:s,capturedSpanIsolationScope:r,...A({dynamicSamplingContext:Yt(this)})},_metrics_summary:Ue(this),...o&&{transaction_info:{source:o}}};return Object.keys(this._measurements).length>0&&(lt&&u.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),a.measurements=this._measurements),lt&&u.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),a}}const nn={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},sn=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class rn extends Ve{constructor(t,e,n,s){super(s),this._pushActivity=t,this._popActivity=e,this.transactionSpanId=n}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const e=t.end;t.end=(...n)=>(this._popActivity(t.spanContext().spanId),e.apply(t,n)),void 0===qt(t).timestamp&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class on extends en{constructor(t,e,n=nn.idleTimeout,s=nn.finalTimeout,r=nn.heartbeatInterval,i=!1,o=!1){super(t,e),this._idleHub=e,this._idleTimeout=n,this._finalTimeout=s,this._heartbeatInterval=r,this._onScope=i,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=sn[4],this._autoFinishAllowed=!o,i&&(lt&&u.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),e.getScope().setSpan(this)),o||this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=sn[3],this.end())}),this._finalTimeout)}end(t){const e=Ht(t);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){lt&&u.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op);for(const t of this._beforeFinishCallbacks)t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter((t=>{if(t.spanContext().spanId===this.spanContext().spanId)return!0;qt(t).timestamp||(t.setStatus("cancelled"),t.end(e),lt&&u.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));const{start_timestamp:n,timestamp:s}=qt(t),r=n&&n<e,i=(this._finalTimeout+this._idleTimeout)/1e3,o=s&&n&&s-n<i;if(lt){const e=JSON.stringify(t,void 0,2);r?o||u.log("[Tracing] discarding Span since it finished after Transaction final timeout",e):u.log("[Tracing] discarding Span since it happened after Transaction was finished",e)}return r&&o})),lt&&u.log("[Tracing] flushing IdleTransaction")}else lt&&u.log("[Tracing] No active IdleTransaction");if(this._onScope){const t=this._idleHub.getScope();t.getTransaction()===this&&t.setSpan(void 0)}return super.end(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const e=t=>{this._finished||this._pushActivity(t)},n=t=>{this._finished||this._popActivity(t)};this.spanRecorder=new rn(e,n,this.spanContext().spanId,t),lt&&u.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:e}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===e,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=sn[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(lt&&u.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=sn[1],this.end(t))}),this._idleTimeout)}
1_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),lt&&u.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,lt&&u.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(lt&&u.log(`[Tracing] popActivity ${t}`),delete this.activities[t],lt&&u.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const t=ft();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=sn[5],this.end(t)):this._restartIdleTimeout(t+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(lt&&u.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=sn[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){lt&&u.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}const an={},cn={};function un(t,e){an[t]=an[t]||[],an[t].push(e)}function dn(t,e){cn[t]||(e(),cn[t]=!0)}function pn(t,n){const s=t&&an[t];if(s)for(const r of s)try{r(n)}catch(n){e&&u.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${K(r)}\nError:`,n)}}let ln=null;function hn(t){const e="error";un(e,t),dn(e,mn)}function mn(){ln=s.onerror,s.onerror=function(t,e,n,s,r){return pn("error",{column:s,error:r,line:n,msg:t,url:e}),!(!ln||ln.__SENTRY_LOADER__)&&ln.apply(this,arguments)},s.onerror.__SENTRY_INSTRUMENTED__=!0}let fn=null;function gn(t){const e="unhandledrejection";un(e,t),dn(e,_n)}function _n(){fn=s.onunhandledrejection,s.onunhandledrejection=function(t){return pn("unhandledrejection",t),!(fn&&!fn.__SENTRY_LOADER__)||fn.apply(this,arguments)},s.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function vn(t){return(t||se()).getScope().getTransaction()}let yn=!1;function bn(){const t=vn();if(t){const e="internal_error";lt&&u.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}function Sn(t,e,n){if(!Xe(e))return t.sampled=!1,t;if(void 0!==t.sampled)return t.setAttribute(Ye,Number(t.sampled)),t;let s;return"function"==typeof e.tracesSampler?(s=e.tracesSampler(n),t.setAttribute(Ye,Number(s))):void 0!==n.parentSampled?s=n.parentSampled:void 0!==e.tracesSampleRate?(s=e.tracesSampleRate,t.setAttribute(Ye,Number(s))):(s=1,t.setAttribute(Ye,s)),Tn(s)?s?(t.sampled=Math.random()<s,t.sampled?(lt&&u.log(`[Tracing] starting ${t.op} transaction - ${qt(t).description}`),t):(lt&&u.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(s)})`),t)):(lt&&u.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(lt&&u.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)}function Tn(t){return E(t)||"number"!=typeof t&&"boolean"!=typeof t?(lt&&u.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):!(t<0||t>1)||(lt&&u.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${t}.`),!1)}function xn(){const t=this.getScope().getSpan();return t?{"sentry-trace":Lt(t)}:{}}function En(t,e){const n=this.getClient(),s=n&&n.getOptions()||{},r=s.instrumenter||"sentry",i=t.instrumenter||"sentry";r!==i&&(lt&&u.error(`A transaction was started with instrumenter=\`${i}\`, but the SDK is configured with the \`${r}\` instrumenter.\nThe transaction will not be sampled. Please use the ${r} instrumentation to start transactions.`),t.sampled=!1);let o=new en(t,this);return o=Sn(o,s,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...e}),o.isRecording()&&o.initSpanRecorder(s._experiments&&s._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",o),o}function wn(t,e,n,s,r,i,o,a=!1){const c=t.getClient(),u=c&&c.getOptions()||{};let d=new on(e,t,n,s,o,r,a);return d=Sn(d,u,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...i}),d.isRecording()&&d.initSpanRecorder(u._experiments&&u._experiments.maxSpans),c&&c.emit&&c.emit("startTransaction",d),d}bn.tag="sentry_tracingErrorCallback";
1const kn="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,In=s,Cn=(t,e,n)=>{let s,r;return i=>{e.value>=0&&(i||n)&&(r=e.value-(s||0),(r||void 0===s)&&(s=e.value,e.delta=r,t(e)))}},Rn=()=>In.__WEB_VITALS_POLYFILL__?In.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const t=In.performance.timing,e=In.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==e?"back_forward":1===e?"reload":"navigate"};for(const e in t)"navigationStart"!==e&&"toJSON"!==e&&(n[e]=Math.max(t[e]-t.navigationStart,0));return n})()):In.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],On=()=>{const t=Rn();return t&&t.activationStart||0},$n=(t,e)=>{const n=Rn();let s="navigate";return n&&(s=In.document&&In.document.prerendering||On()>0?"prerender":n.type.replace(/_/g,"-")),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:s}},Nn=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const s=new PerformanceObserver((t=>{e(t.getEntries())}));return s.observe(Object.assign({type:t,buffered:!0},n||{})),s}}catch(t){}},Dn=(t,e)=>{const n=s=>{"pagehide"!==s.type&&"hidden"!==In.document.visibilityState||(t(s),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};In.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},Pn=(t,e={})=>{const n=$n("CLS",0);let s,r=0,i=[];const o=t=>{t.forEach((t=>{if(!t.hadRecentInput){const e=i[0],o=i[i.length-1];r&&0!==i.length&&t.startTime-o.startTime<1e3&&t.startTime-e.startTime<5e3?(r+=t.value,i.push(t)):(r=t.value,i=[t]),r>n.value&&(n.value=r,n.entries=i,s&&s())}}))},a=Nn("layout-shift",o);if(a){s=Cn(t,n,e.reportAllChanges);const r=()=>{o(a.takeRecords()),s(!0)};return Dn(r),r}};let jn=-1;const Mn=()=>(jn<0&&(In.document&&In.document.visibilityState&&(jn="hidden"!==In.document.visibilityState||In.document.prerendering?1/0:0),Dn((({timeStamp:t})=>{jn=t}),!0)),{get firstHiddenTime(){return jn}}),An=t=>{const e=Mn(),n=$n("FID");let s;const r=t=>{t.startTime<e.firstHiddenTime&&(n.value=t.processingStart-t.startTime,n.entries.push(t),s(!0))},i=t=>{t.forEach(r)},o=Nn("first-input",i);s=Cn(t,n),o&&Dn((()=>{i(o.takeRecords()),o.disconnect()}),!0)};let Ln=0,Hn=1/0,Fn=0;const qn=t=>{t.forEach((t=>{t.interactionId&&(Hn=Math.min(Hn,t.interactionId),Fn=Math.max(Fn,t.interactionId),Ln=Fn?(Fn-Hn)/7+1:0)}))};let Un;const Bn=()=>{"interactionCount"in performance||Un||(Un=Nn("event",qn,{type:"event",buffered:!0,durationThreshold:0}))},Yn=()=>Un?Ln:performance.interactionCount||0,zn=[],Gn={},Jn=t=>{const e=zn[zn.length-1],n=Gn[t.interactionId];if(n||zn.length<10||t.duration>e.latency){if(n)n.entries.push(t),n.latency=Math.max(n.latency,t.duration);else{const e={id:t.interactionId,latency:t.duration,entries:[t]};Gn[e.id]=e,zn.push(e)}zn.sort(((t,e)=>e.latency-t.latency)),zn.splice(10).forEach((t=>{delete Gn[t.id]}))}},Wn=(t,e)=>{e=e||{},Bn();const n=$n("INP");let s;const r=t=>{t.forEach((t=>{t.interactionId&&Jn(t),"first-input"===t.entryType&&!zn.some((e=>e.entries.some((e=>t.duration===e.duration&&t.startTime===e.startTime))))&&Jn(t)}));const e=(()=>{const t=Math.min(zn.length-1,Math.floor(Yn()/50));return zn[t]})();e&&e.latency!==n.value&&(n.value=e.latency,n.entries=e.entries,s())},i=Nn("event",r,{durationThreshold:e.durationThreshold||40});s=Cn(t,n,e.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),Dn((()=>{r(i.takeRecords()),n.value<0&&Yn()>0&&(n.value=0,n.entries=[]),s(!0)})))},Vn={},Kn=t=>{const e=Mn(),n=$n("LCP");let s;const r=t=>{const r=t[t.length-1];if(r){const t=Math.max(r.startTime-On(),0);t<e.firstHiddenTime&&(n.value=t,n.entries=[r],s())}},i=Nn("largest-contentful-paint",r);if(i){s=Cn(t,n);const e=()=>{Vn[n.id]||(r(i.takeRecords()),i.disconnect(),Vn[n.id]=!0,s(!0))};return["keydown","click"].forEach((t=>{In.document&&addEventListener(t,e,{once:!0,capture:!0})})),Dn(e,!0),e}},Xn=t=>{In.document&&(In.document.prerendering?addEventListener("prerenderingchange",(()=>Xn(t)),!0):"complete"!==In.document.readyState?addEventListener("load",(()=>Xn(t)),!0):setTimeout(t,0))},Qn=(t,e)=>{e=e||{};const n=$n("TTFB"),s=Cn(t,n,e.reportAllChanges);Xn((()=>{const t=Rn();if(t){if(n.value=Math.max(t.responseStart-On(),0),n.value<0||n.value>performance.now())return;n.entries=[t],s(!0)}}))},Zn={},ts={};let es,ns,ss,rs,is;function os(t,e){return ms(t,e),ts[t]||(function(t){const e={};"event"===t&&(e.durationThreshold=0),Nn(t,(e=>
1{as(t,{entries:e})}),e)}(t),ts[t]=!0),fs(t,e)}function as(t,e){const n=Zn[t];if(n&&n.length)for(const s of n)try{s(e)}catch(e){kn&&u.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${K(s)}\nError:`,e)}}function cs(){return Pn((t=>{as("cls",{metric:t}),es=t}),{reportAllChanges:!0})}function us(){return An((t=>{as("fid",{metric:t}),ns=t}))}function ds(){return Kn((t=>{as("lcp",{metric:t}),ss=t}))}function ps(){return Qn((t=>{as("ttfb",{metric:t}),rs=t}))}function ls(){return Wn((t=>{as("inp",{metric:t}),is=t}))}function hs(t,e,n,s,r=!1){let i;return ms(t,e),ts[t]||(i=n(),ts[t]=!0),s&&e({metric:s}),fs(t,e,r?i:void 0)}function ms(t,e){Zn[t]=Zn[t]||[],Zn[t].push(e)}function fs(t,e,n){return()=>{n&&n();const s=Zn[t];if(!s)return;const r=s.indexOf(e);-1!==r&&s.splice(r,1)}}function gs(t){return[{type:"span"},t]}function _s(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",s=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:s,relative:e[5]+n+s}}function vs(t){return"number"==typeof t&&isFinite(t)}function ys(t,{startTimestamp:e,...n}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,...n})}const bs=2147483647;function Ss(t){return t/1e3}function Ts(){return In&&In.addEventListener&&In.performance}let xs,Es,ws=0,ks={};function Is(){const t=Ts();if(t&&_t){t.mark&&In.performance.mark("sentry-tracing-init");const e=hs("fid",(({metric:t})=>{const e=t.entries[t.entries.length-1];if(!e)return;const n=Ss(_t),s=Ss(e.startTime);kn&&u.log("[Measurements] Adding FID"),ks.fid={value:t.value,unit:"millisecond"},ks["mark.fid"]={value:n+s,unit:"second"}}),us,ns),n=function(t,e=!1){return hs("cls",t,cs,es,e)}((({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(kn&&u.log("[Measurements] Adding CLS"),ks.cls={value:t.value,unit:""},Es=e)}),!0),s=function(t,e=!1){return hs("lcp",t,ds,ss,e)}((({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(kn&&u.log("[Measurements] Adding LCP"),ks.lcp={value:t.value,unit:"millisecond"},xs=e)}),!0),r=hs("ttfb",(({metric:t})=>{t.entries[t.entries.length-1]&&(kn&&u.log("[Measurements] Adding TTFB"),ks.ttfb={value:t.value,unit:"millisecond"})}),ps,rs);return()=>{e(),n(),s(),r()}}return()=>{}}const Cs={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function Rs(t,e,n,s,r,i){const o=i?e[i]:e[`${n}End`],a=e[`${n}Start`];a&&o&&ys(t,{op:"browser",origin:"auto.browser.browser.metrics",description:r||n,startTimestamp:s+Ss(a),endTimestamp:s+Ss(o)})}function Os(t,e,n,s){const r=e[n];null!=r&&r<bs&&(t[s]=r)}function $s(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in Re))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}())return!1;if(Oe(Re.fetch))return!0;let t=!1;const n=Re.document;if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e),e.contentWindow&&e.contentWindow.fetch&&(t=Oe(e.contentWindow.fetch)),n.head.removeChild(e)}catch(t){e&&u.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t})()&&N(s,"fetch",(function(t){return function(...e){const{method:n,url:r}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:Ds(e),method:Ns(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:Ds(e),method:Ns(e,"method")?String(e.method).toUpperCase():"GET"}}(e),i={args:e,fetchData:{method:n,url:r},startTimestamp:Date.now()};return pn("fetch",{...i}),t.apply(s,e).then((t=>(pn("fetch",{...i,endTimestamp:Date.now(),response:t}),t)),(t=>{throw pn("fetch",{...i,endTimestamp:Date.now(),error:t}),t}))}}))}function Ns(t,e){return!!t&&"object"==typeof t&&!!t[e]}function Ds(t){return"string"==typeof t?t:t?Ns(t,"url")?t.url:t.toString?t.toString():"":""}const Ps=s,js="__sentry_xhr_v3__";function Ms(){if(!Ps.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;N(t,"open",(function(t){return function(...e){const n=Date.now(),s=v(e[0])?e[0].toUpperCase():void 0,r=function(t){if(v(t))return t;try{return t.toString()}catch(t){}}(e[1]);if(!s||!r)return t.apply(this,e);this[js]={method:s,url:r,request_headers:{}}
1,"POST"===s&&r.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const i=()=>{const t=this[js];if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}pn("xhr",{args:[s,r],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?N(this,"onreadystatechange",(function(t){return function(...e){return i(),t.apply(this,e)}})):this.addEventListener("readystatechange",i),N(this,"setRequestHeader",(function(t){return function(...e){const[n,s]=e,r=this[js];return r&&v(n)&&v(s)&&(r.request_headers[n.toLowerCase()]=s),t.apply(this,e)}})),t.apply(this,e)}})),N(t,"send",(function(t){return function(...e){const n=this[js];return n?(void 0!==e[0]&&(n.body=e[0]),pn("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),t.apply(this,e)):t.apply(this,e)}}))}const As=["localhost",/^\/(?!\/)/],Ls={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:As,tracePropagationTargets:As};function Hs(t){const{traceFetch:e,traceXHR:n,tracePropagationTargets:s,tracingOrigins:r,shouldCreateSpanForRequest:i,enableHTTPTimings:o}={traceFetch:Ls.traceFetch,traceXHR:Ls.traceXHR,...t},a="function"==typeof i?i:t=>!0,c=t=>function(t,e){return function(t,e=[],n=!1){return e.some((e=>function(t,e,n=!1){return!!v(t)&&(f(e,"RegExp")?e.test(t):!!v(e)&&(n?t===e:t.includes(e)))}(t,e,n)))}(t,e||As)}(t,s||r),u={};var d;e&&function(t){const e="fetch";un(e,(t=>{const e=function(t,e,n,s,r="auto.http.browser"){if(!Xe()||!t.fetchData)return;const i=e(t.fetchData.url);if(t.endTimestamp&&i){const e=t.fetchData.__span;if(!e)return;const n=s[e];return void(n&&(function(t,e){if(e.response){We(t,e.response.status);const n=e.response&&e.response.headers&&e.response.headers.get("content-length");if(n){const e=parseInt(n);e>0&&t.setAttribute("http.response_content_length",e)}}else e.error&&t.setStatus("internal_error");t.end()}(n,t),delete s[e]))}const o=wt(),a=Et(),{method:c,url:u}=t.fetchData,d=function(t){try{return new URL(t).href}catch(t){return}}(u),p=d?_s(d).host:void 0,l=i?Qe({name:`${c} ${u}`,onlyIfParent:!0,attributes:{url:u,type:"fetch","http.method":c,"http.url":d,"server.address":p,[Ge]:r},op:"http.client"}):void 0;if(l&&(t.fetchData.__span=l.spanContext().spanId,s[l.spanContext().spanId]=l),n(t.fetchData.url)&&a){const e=t.args[0];t.args[1]=t.args[1]||{};const n=t.args[1];n.headers=function(t,e,n,s,r){const i=r||n.getSpan(),o=re(),{traceId:a,spanId:c,sampled:u,dsc:d}={...o.getPropagationContext(),...n.getPropagationContext()},p=i?Lt(i):jt(a,c,u),l=$t(d||(i?Yt(i):Bt(a,e,n))),h=s.headers||("undefined"!=typeof Request&&w(t,Request)?t.headers:void 0);if(h){if("undefined"!=typeof Headers&&w(h,Headers)){const t=new Headers(h);return t.append("sentry-trace",p),l&&t.append(It,l),t}if(Array.isArray(h)){const t=[...h,["sentry-trace",p]];return l&&t.push([It,l]),t}{const t="baggage"in h?h.baggage:void 0,e=[];return Array.isArray(t)?e.push(...t):t&&e.push(t),l&&e.push(l),{...h,"sentry-trace":p,baggage:e.length>0?e.join(","):void 0}}}return{"sentry-trace":p,baggage:l}}(e,a,o,n,l)}return l}(t,a,c,u);if(e){const n=Us(t.fetchData.url),s=n?_s(n).host:void 0;e.setAttributes({"http.url":n,"server.address":s})}o&&e&&Fs(e)})),dn(e,$s)}(),n&&(d=t=>{const e=function(t,e,n,s){const r=t.xhr,i=r&&r[js];if(!Xe()||!r||r.__sentry_own_request__||!i)return;const o=e(i.url);if(t.endTimestamp&&o){const t=r.__sentry_xhr_span_id__;if(!t)return;const e=s[t];return void(e&&void 0!==i.status_code&&(We(e,i.status_code),e.end(),delete s[t]))}const a=wt(),c=re(),u=Us(i.url),d=u?_s(u).host:void 0,p=o?Qe({name:`${i.method} ${i.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":i.method,"http.url":u,url:i.url,"server.address":d,[Ge]:"auto.http.browser"},op:"http.client"}):void 0;p&&(r.__sentry_xhr_span_id__=p.spanContext().spanId,s[r.__sentry_xhr_span_id__]=p);const l=Et();if(r.setRequestHeader&&n(i.url)&&l){const{traceId:t,spanId:e,sampled:n,dsc:s}={...c.getPropagationContext(),...a.getPropagationContext()};!function(t,e,n){try{t.setRequestHeader("sentry-trace",e),n&&t.setRequestHeader(It,n)}catch(t){}}(r,p?Lt(p):jt(t,e,n),$t(s||(p?Yt(p):Bt(t,l,a))))}return p}(t,a,c,u);o&&e&&Fs(e)},un("xhr",d),dn("xhr",Ms))}function Fs(t){const{url:e}=qt(t).data||{};if(!e||"string"!=typeof e)return;const n=os("resource",(({entries:s})=>
1{s.forEach((s=>{(function(t){return"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)})(s)&&s.name.endsWith(e)&&(function(t){const{name:e,version:n}=function(t){let e="unknown",n="unknown",s="";for(const r of t){if("/"===r){[e,n]=t.split("/");break}if(!isNaN(Number(r))){e="h"===s?"http":s,n=t.split(s)[1];break}s+=r}return s===t&&(e=s),{name:e,version:n}}(t.nextHopProtocol),s=[];return s.push(["network.protocol.version",n],["network.protocol.name",e]),_t?[...s,["http.request.redirect_start",qs(t.redirectStart)],["http.request.fetch_start",qs(t.fetchStart)],["http.request.domain_lookup_start",qs(t.domainLookupStart)],["http.request.domain_lookup_end",qs(t.domainLookupEnd)],["http.request.connect_start",qs(t.connectStart)],["http.request.secure_connection_start",qs(t.secureConnectionStart)],["http.request.connection_end",qs(t.connectEnd)],["http.request.request_start",qs(t.requestStart)],["http.request.response_start",qs(t.responseStart)],["http.request.response_end",qs(t.responseEnd)]]:s}(s).forEach((e=>t.setAttribute(...e))),setTimeout(n))}))}))}function qs(t=0){return((_t||performance.timeOrigin)+t)/1e3}function Us(t){try{return new URL(t,In.location.origin).href}catch(t){return}}const Bs=r(),Ys=s;let zs;function Gs(){if(!function(){const t=Bs.chrome,e=t&&t.app&&t.app.runtime,n="history"in Bs&&!!Bs.history.pushState&&!!Bs.history.replaceState;return!e&&n}())return;const t=Ys.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=zs,e=String(n);zs=e,pn("history",{from:t,to:e})}return t.apply(this,e)}}Ys.onpopstate=function(...e){const n=Ys.location.href,s=zs;if(zs=n,pn("history",{from:s,to:n}),t)try{return t.apply(this,e)}catch(t){}},N(Ys.history,"pushState",e),N(Ys.history,"replaceState",e)}const Js={...nn,markBackgroundTransactions:!0,routingInstrumentation:function(t,e=!0,n=!0){if(!In||!In.location)return void(kn&&u.warn("Could not initialize routing instrumentation due to invalid location"));let s,r=In.location.href;e&&(s=t({name:In.location.pathname,startTimestamp:_t?_t/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&function(e){const n="history";un(n,(({to:e,from:n})=>{void 0===n&&r&&-1!==r.indexOf(e)?r=void 0:n!==e&&(r=void 0,s&&(kn&&u.log(`[Tracing] Finishing current transaction with op: ${s.op}`),s.end()),s=t({name:In.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})),dn(n,Gs)}()},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...Ls};class Ws{constructor(t){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,function(){const t=ee();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=En),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=xn),yn||(yn=!0,hn(bn),gn(bn)))}(),kn&&(this._hasSetTracePropagationTargets=!(!t||!t.tracePropagationTargets&&!t.tracingOrigins)),this.options={...Js,...t},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=Is(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&function(t,e){if(Ts()&&_t){const n=function(t,e){return n=({metric:n})=>{if(void 0===n.value)return;const s=n.entries.find((t=>t.duration===n.value&&void 0!==Cs[t.name])),r=Et();if(!s||!r)return;const i=Cs[s.name],o=r.getOptions(),a=Ss(_t+s.startTime),c=Ss(n.value),d=void 0!==s.interactionId?t[s.interactionId]:void 0;if(void 0===d)return;const{routeName:l,parentContext:h,activeTransaction:m,user:f,replayId:g}=d,_=void 0!==f?f.email||f.id||f.ip_address:void 0,v=void 0!==m?m.getProfileId():void 0,y=new Ke({startTimestamp:a,endTimestamp:a+c,op:`ui.interaction.${i}`,name:C(s.target),attributes:{release:o.release,environment:o.environment,transaction:l,...void 0!==_&&""!==_?{user:_}:{},...void 0!==v?{profile_id:v}:{},...void 0!==g?{replay_id:g}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),b=function(t,e,n){if(!Xe(e))return!1;let s;return s=void 0!==t&&"function"==typeof e.tracesSampler?e.tracesSampler({transactionContext:t,name:t.name,parentSampled:t.parentSampled,attributes:{...t.data,...t.attributes},location:In.location}):void 0!==t&&void 0!==t.sampled?t.sampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1,Tn(s)?!0===s?n:!1===s?0:s*n:(kn&&u.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}(h,o,e);if(b&&Math.random()<b){const t=y?function(t,e){const n={sent_at:(new Date).toISOString()};return e&&(n.dsn=p(e)),tt(n,t.map(gs))}([y],r.getDsn()):void 0,e=r&&r.getTransport();e&&t&&e.send(t).then(null,(t=>{kn&&u.error("Error while sending interaction:",t)}))}},hs("inp",n,ls,is);var n}(t,e);return()=>{n()}}}(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&os("longtask",(({entries:t})=>{for(const e of t){const t=vn();if(!t)return;const n=Ss(_t+e.startTime),s=Ss(e.duration);t.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+s})}})),this.options._experiments.enableInteractions&&os("event",(({entries:t})=>{for(const e of t){const t=vn();if(!t)return;if("click"===e.name){const n=Ss(_t+e.startTime),s=Ss(e.duration),r={description:C(e.target),op:`ui.interaction.${e.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+s},i=O(e.target);i&&(r.attributes={"ui.component_name":i}),t.startChild(r)}}})),this._latestRoute={name:void 0,context:void 0}}setupOnce(t,e){this._getCurrentHub=e;
1const n=e().getClient(),s=n&&n.getOptions(),{routingInstrumentation:r,startTransactionOnLocationChange:i,startTransactionOnPageLoad:o,markBackgroundTransactions:a,traceFetch:c,traceXHR:d,shouldCreateSpanForRequest:p,enableHTTPTimings:l,_experiments:h}=this.options,m=s&&s.tracePropagationTargets,f=m||this.options.tracePropagationTargets;kn&&this._hasSetTracePropagationTargets&&m&&u.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),r((t=>{const n=this._createRouteTransaction(t);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,t,e),n}),o,i),a&&(In.document?In.document.addEventListener("visibilitychange",(()=>{const t=vn();if(In.document.hidden&&t){const e="cancelled",{op:n,status:s}=qt(t);kn&&u.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),s||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.end()}})):kn&&u.warn("[Tracing] Could not set up background tab detection due to lack of global document")),h.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),Hs({traceFetch:c,traceXHR:d,tracePropagationTargets:f,shouldCreateSpanForRequest:p,enableHTTPTimings:l})}_createRouteTransaction(t){if(!this._getCurrentHub)return void(kn&&u.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`));const e=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:s,finalTimeout:r,heartbeatInterval:i}=this.options,o="pageload"===t.op;let a;if(o){const e=o?Vs("sentry-trace"):"",n=o?Vs("baggage"):void 0,{traceId:s,dsc:r,parentSpanId:i,sampled:c}=Pt(e,n);a={traceId:s,parentSpanId:i,parentSampled:c,...t,metadata:{...t.metadata,dynamicSamplingContext:r},trimEnd:!0}}else a={trimEnd:!0,...t};const c="function"==typeof n?n(a):a,d=void 0===c?{...a,sampled:!1}:c;d.metadata=d.name!==a.name?{...d.metadata,source:"custom"}:d.metadata,this._latestRoute.name=d.name,this._latestRoute.context=d,!1===d.sampled&&kn&&u.log(`[Tracing] Will not send ${d.op} transaction because of beforeNavigate.`),kn&&u.log(`[Tracing] Starting ${d.op} transaction on scope`);const{location:p}=In,l=wn(e,d,s,r,!0,{location:p},i,o);return o&&In.document&&(In.document.addEventListener("readystatechange",(()=>{["interactive","complete"].includes(In.document.readyState)&&l.sendAutoFinishSignal()})),["interactive","complete"].includes(In.document.readyState)&&l.sendAutoFinishSignal()),l.registerBeforeFinishCallback((t=>{this._collectWebVitals(),function(t){const e=Ts();if(!e||!In.performance.getEntries||!_t)return;kn&&u.log("[Tracing] Adding & adjusting spans using Performance API");const n=Ss(_t),s=e.getEntries(),{op:r,start_timestamp:i}=qt(t);
1if(s.slice(ws).forEach((e=>{const s=Ss(e.startTime),r=Ss(e.duration);if(!("navigation"===t.op&&i&&n+s<i))switch(e.entryType){case"navigation":!function(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((s=>{Rs(t,e,s,n)})),Rs(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),Rs(t,e,"fetch",n,"cache","domainLookupStart"),Rs(t,e,"domainLookup",n,"DNS"),function(t,e,n){e.responseEnd&&(ys(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+Ss(e.requestStart),endTimestamp:n+Ss(e.responseEnd)}),ys(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+Ss(e.responseStart),endTimestamp:n+Ss(e.responseEnd)}))}(t,e,n)}(t,e,n);break;case"mark":case"paint":case"measure":{!function(t,e,n,s,r){const i=r+n,o=i+s;ys(t,{description:e.name,endTimestamp:o,op:e.entryType,origin:"auto.resource.browser.metrics",startTimestamp:i})}(t,e,s,r,n);const i=Mn(),o=e.startTime<i.firstHiddenTime;"first-paint"===e.name&&o&&(kn&&u.log("[Measurements] Adding FP"),ks.fp={value:e.startTime,unit:"millisecond"}),"first-contentful-paint"===e.name&&o&&(kn&&u.log("[Measurements] Adding FCP"),ks.fcp={value:e.startTime,unit:"millisecond"});break}case"resource":!function(t,e,n,s,r,i){if("xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType)return;const o=_s(n),a={};Os(a,e,"transferSize","http.response_transfer_size"),Os(a,e,"encodedBodySize","http.response_content_length"),Os(a,e,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in e&&(a["resource.render_blocking_status"]=e.renderBlockingStatus),o.protocol&&(a["url.scheme"]=o.protocol.split(":").pop()),o.host&&(a["server.address"]=o.host),a["url.same_origin"]=n.includes(In.location.origin);const c=i+s,u=c+r;ys(t,{description:n.replace(In.location.origin,""),endTimestamp:u,op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:c,data:a})}(t,e,e.name,s,r,n)}})),ws=Math.max(s.length-1,0),function(t){const e=In.navigator;if(!e)return;const n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),vs(n.rtt)&&(ks["connection.rtt"]={value:n.rtt,unit:"millisecond"})),vs(e.deviceMemory)&&t.setTag("deviceMemory",`${e.deviceMemory} GB`),vs(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}(t),"pageload"===r){!function(t){const e=Rn();if(!e)return;const{responseStart:n,requestStart:s}=e;s<=n&&(kn&&u.log("[Measurements] Adding TTFB Request Time"),t["ttfb.requestTime"]={value:n-s,unit:"millisecond"})}(ks),["fcp","fp","lcp"].forEach((t=>{if(!ks[t]||!i||n>=i)return;const e=ks[t].value,s=n+Ss(e),r=Math.abs(1e3*(s-i)),o=r-e;kn&&u.log(`[Measurements] Normalized ${t} from ${e} to ${r} (${o})`),ks[t].value=r}));const e=ks["mark.fid"];e&&ks.fid&&(ys(t,{description:"first input delay",endTimestamp:e.value+Ss(ks.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:e.value}),delete ks["mark.fid"]),"fcp"in ks||delete ks.cls,Object.keys(ks).forEac
1h((t=>{!function(t,e,n){const s=vn();s&&s.setMeasurement(t,e,n)}(t,ks[t].value,ks[t].unit)})),function(t){xs&&(kn&&u.log("[Measurements] Adding LCP Data"),xs.element&&t.setTag("lcp.element",C(xs.element)),xs.id&&t.setTag("lcp.id",xs.id),xs.url&&t.setTag("lcp.url",xs.url.trim().slice(0,200)),t.setTag("lcp.size",xs.size)),Es&&Es.sources&&(kn&&u.log("[Measurements] Adding CLS Data"),Es.sources.forEach(((e,n)=>t.setTag(`cls.source.${n+1}`,C(e.node)))))}(t)}xs=void 0,Es=void 0,ks={}}(t)})),l}_registerInteractionListener(){let t;const e=()=>{const{idleTimeout:e,finalTimeout:n,heartbeatInterval:s}=this.options,r="ui.action.click",i=vn();if(i&&i.op&&["navigation","pageload"].includes(i.op))return void(kn&&u.warn(`[Tracing] Did not create ${r} transaction because a pageload or navigation transaction is in progress.`));if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub)return void(kn&&u.warn(`[Tracing] Did not create ${r} transaction because _getCurrentHub is invalid.`));if(!this._latestRoute.name)return void(kn&&u.warn(`[Tracing] Did not create ${r} transaction because _latestRouteName is missing.`));const o=this._getCurrentHub(),{location:a}=In,c={name:this._latestRoute.name,op:r,trimEnd:!0,data:{[Be]:this._latestRoute.context?Ks(this._latestRoute.context):"url"}};t=wn(o,c,e,n,!0,{location:a},s)};["click"].forEach((t=>{In.document&&addEventListener(t,e,{once:!1,capture:!0})}))}_registerInpInteractionListener(){const t=({entries:t})=>{const e=Et(),n=void 0!==e&&void 0!==e.getIntegrationByName?e.getIntegrationByName("Replay"):void 0,s=void 0!==n?n.getReplayId():void 0,r=vn(),i=wt(),o=void 0!==i?i.getUser():void 0;t.forEach((t=>{if(function(t){return"duration"in t}(t)){const e=t.interactionId;if(void 0===e)return;const n=this._interactionIdToRouteNameMapping[e],i=t.duration,a=t.startTime,c=Object.keys(this._interactionIdToRouteNameMapping),u=c.length>0?c.reduce(((t,e)=>this._interactionIdToRouteNameMapping[t].duration<this._interactionIdToRouteNameMapping[e].duration?t:e)):void 0;if("first-input"===t.entryType&&c.map((t=>this._interactionIdToRouteNameMapping[t])).some((t=>t.duration===i&&t.startTime===a)))return;if(!e)return;if(n)n.duration=Math.max(n.duration,i);else if(c.length<10||void 0===u||i>this._interactionIdToRouteNameMapping[u].duration){const t=this._latestRoute.name,n=this._latestRoute.context;t&&n&&(u&&Object.keys(this._interactionIdToRouteNameMapping).length>=10&&delete this._interactionIdToRouteNameMapping[u],this._interactionIdToRouteNameMapping[e]={routeName:t,duration:i,parentContext:n,user:o,activeTransaction:r,replayId:s,startTime:a})}}}))};os("event",t),os("first-input",t)}}function Vs(t){const e=(n=`meta[name=${t}]`,k.document&&k.document.querySelector?k.document.querySelector(n):null);var n;return e?e.getAttribute("content"):void 0}function Ks(t){const e=t.attributes&&t.attributes[Be],n=t.data&&t.data[Be],s=t.metadata&&t.metadata.source;return e||n||s}const Xs="GlobalHandlers",Qs=(Zs=Xs,tr=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:Xs,setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(function(t){hn((e=>{const{stackParser:n,attachStacktrace:s}=sr();if(Et()!==t)return;const{msg:r,url:i,line:o,column:a,error:c}=e,u=void 0===c&&v(r)?function(t,e,n,s){let r=g(t)?t.message:t,i="Error";const o=r.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);o&&(i=o[1],r=o[2]);return er({exception:{values:[{type:i,value:r}]}},e,n,s)}(r,i,o,a):er(Se(n,c||r,void 0,s,!1),i,o,a);u.level="error",xt(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})}))}(t),nr("onerror")),e.onunhandledrejection&&(function(t){gn((e=>{const{stackParser:n,attachStacktrace:s}=sr();if(Et()!==t)return;const r=function(t){if(b(t))return t;const e=t;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(t){}return t}(e),i=b(r)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(r)}`}]}}:Se(n,r,void 0,s,!0);i.level="error",xt(i,{originalException:r,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(t),nr("onunhandledrejection"))}}},Object.assign((function(...t){return tr(...t)}),{id:Zs}));var Zs,tr;function er(t,e,n,s){const r=t.exception=t.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(s,10))?void 0:s,d=isNaN(parseInt(n,10))?void 0:n,p=v(e)&&e.length>0?e:function(){try{return k.document.location.href}catch(t){return""}}();return 0===c.length&&c.push({colno:u,filename:p,function:"?",in_app:!0,lineno:d}),t}function nr(t){fe&&u.log(`Global Handler attached: ${t}`)}function sr(){const t=Et();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}if(window.sentry){var rr=new we({dsn:window.sentry.dsn,environment:window.sentry.environment,sampleRate:+window.sentry.error_sample_rate,tracesSampleRate:+window.sentry.trace_sample_rate,release:window.sentry.release,autoSessionTracking:!1,sendClientReports:!1,transport:function(t,e=function(){if($e)return $e;if(Oe(Ee.fetch))return $e=Ee.fetch.bind(Ee);const t=Ee.document;let e=Ee.fetch;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);const s=n.contentWindow;s&&s.fetch&&(e=s.fetch),t.head.removeChild(n)}catch(t){fe&&u.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return $e=e.bind(Ee)}()){let n=0,s=0;return Ie(t,(function(r){const i=r.body.length;n+=i,s++;const o={body:r.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&s<15,...t.fetchOptions};try{return e(t.url,o).then((t=>(n-=i,s--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}catch(t){return $e=void 0,n-=i,s--,z(t)}}))},stackParser:He,integrations:[new Ws({tracePropagationTargets:[]}),new Qs]}),ir=se();ir.bindClient(rr);var or=window.sentry.transaction_data;null!==or&&(ir.configureScope((function(t){return t.setTransactionName("".concat(or.name," (").concat((e="unknown",(n=window.screen.width)>=1024&&(e="desktop"),n<1024&&(e="mobile"),e),")"));var e,n})),ir.configureScope((function(t){return t.setTags(or.tags)})),ir.configureScope((function(t){return t.setContext("Object",or.context)})))}}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.