/*! @sentry/browser 9.6.1 (528c3d1) | https://github.com/getsentry/sentry-javascript */ var Sentry=function(t){t=window.Sentry||{};const n=globalThis,e="9.6.1";function r(){return o(n),n}function o(t){const n=t.__SENTRY__=t.__SENTRY__||{};return n.version=n.version||e,n[e]=n[e]||{}}function i(t,r,o=n){const i=o.__SENTRY__=o.__SENTRY__||{},s=i[e]=i[e]||{};return s[t]||(s[t]=r())}const s=["debug","info","warn","error","log","assert","trace"],c={};function u(t){if(!("console"in n))return t();const e=n.console,r={},o=Object.keys(c);o.forEach((t=>{const n=c[t];r[t]=e[t],e[t]=n}));try{return t()}finally{o.forEach((t=>{e[t]=r[t]}))}}const a=i("logger",(function(){let t=!1;const n={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return s.forEach((t=>{n[t]=()=>{}})),n})),f=50,l="?",d=/\(error: (.*)\)/,h=/captureMessage|captureException/;function p(...t){const n=t.sort(((t,n)=>t[0]-n[0])).map((t=>t[1]));return(t,e=0,r=0)=>{const o=[],i=t.split("\n");for(let t=e;t1024)continue;const s=d.test(e)?e.replace(d,"$1"):e;if(!s.match(/\S*Error: /)){for(const t of n){const n=t(s);if(n){o.push(n);break}}if(o.length>=f+r)break}}return function(t){if(!t.length)return[];const n=Array.from(t);/sentryWrapped/.test(m(n).function||"")&&n.pop();n.reverse(),h.test(m(n).function||"")&&(n.pop(),h.test(m(n).function||"")&&n.pop());return n.slice(0,f).map((t=>({...t,filename:t.filename||m(n).filename,function:t.function||l})))}(o.slice(r))}}function m(t){return t[t.length-1]||{}}const y="";function g(t){try{return t&&"function"==typeof t&&t.name||y}catch(t){return y}}function v(t){const n=t.exception;if(n){const t=[];try{return n.values.forEach((n=>{n.stacktrace.frames&&t.push(...n.stacktrace.frames)})),t}catch(t){return}}}const b={},_={};function w(t,n){b[t]=b[t]||[],b[t].push(n)}function E(t,n){if(!_[t]){_[t]=!0;try{n()}catch(t){}}}function S(t,n){const e=t&&b[t];if(e)for(const t of e)try{t(n)}catch(t){}}let $=null;function x(){$=n.onerror,n.onerror=function(t,n,e,r,o){return S("error",{column:r,error:o,line:e,msg:t,url:n}),!!$&&$.apply(this,arguments)},n.onerror.__SENTRY_INSTRUMENTED__=!0}let k=null;function I(){k=n.onunhandledrejection,n.onunhandledrejection=function(t){return S("unhandledrejection",t),!k||k.apply(this,arguments)},n.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const j=Object.prototype.toString;function T(t){switch(j.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return U(t,Error)}}function O(t,n){return j.call(t)===`[object ${n}]`}function R(t){return O(t,"ErrorEvent")}function C(t){return O(t,"DOMError")}function A(t){return O(t,"String")}function M(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function D(t){return null===t||M(t)||"object"!=typeof t&&"function"!=typeof t}function N(t){return O(t,"Object")}function P(t){return"undefined"!=typeof Event&&U(t,Event)}function L(t){return Boolean(t?.then&&"function"==typeof t.then)}function U(t,n){try{return t instanceof n}catch(t){return!1}}function F(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t.t)}const B=n,q=80;function H(t,n={}){if(!t)return"";try{let e=t;const r=5,o=[];let i=0,s=0;const c=" > ",u=c.length;let a;const f=Array.isArray(n)?n:n.keyAttrs,l=!Array.isArray(n)&&n.maxStringLength||q;for(;e&&i++1&&s+o.length*u+a.length>=l));)o.push(a),s+=a.length,e=e.parentNode;return o.reverse().join(c)}catch(t){return""}}function W(t,n){const e=t,r=[];if(!e?.tagName)return"";if(B.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}r.push(e.tagName.toLowerCase());const o=n?.length?n.filter((t=>e.getAttribute(t))).map((t=>[t,e.getAttribute(t)])):null;if(o?.length)o.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else{e.id&&r.push(`#${e.id}`);const t=e.className;if(t&&A(t)){const n=t.split(/\s+/);for(const t of n)r.push(`.${t}`)}}const i=["aria-label","type","name","title","alt"];for(const t of i){const n=e.getAttribute(t);n&&r.push(`[${t}="${n}"]`)}return r.join("")}function z(){try{return B.document.location.href}catch(t){return""}}function G(t,n=0){return"string"!=typeof t||0===n||t.length<=n?t:`${t.slice(0,n)}...`}function J(t,n){if(!Array.isArray(t))return"";const e=[];for(let n=0;nX(t,n,e)))}function K(t,n,e){if(!(n in t))return;const r=t[n];if("function"!=typeof r)return;const o=e(r);"function"==typeof o&&Z(o,r);try{t[n]=o}catch{}}function V(t,n,e){try{Object.defineProperty(t,n,{value:e,writable:!0,configurable:!0})}catch(t){}}function Z(t,n){try{const e=n.prototype||{};t.prototype=n.prototype=e,V(t,"__sentry_original__",n)}catch(t){}}function Q(t){return t.__sentry_original__}function tt(t){if(T(t))return{message:t.message,name:t.name,stack:t.stack,...et(t)};if(P(t)){const n={type:t.type,target:nt(t.target),currentTarget:nt(t.currentTarget),...et(t)};return"undefined"!=typeof CustomEvent&&U(t,CustomEvent)&&(n.detail=t.detail),n}return t}function nt(t){try{return n=t,"undefined"!=typeof Element&&U(n,Element)?H(t):Object.prototype.toString.call(t)}catch(t){return""}var n}function et(t){if("object"==typeof t&&null!==t){const n={};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n}return{}}function rt(t){return ot(t,new Map)}function ot(t,n){if(function(t){if(!N(t))return!1;try{const n=Object.getPrototypeOf(t).constructor.name;return!n||"Object"===n}catch{return!0}}(t)){const e=n.get(t);if(void 0!==e)return e;const r={};n.set(t,r);for(const e of Object.getOwnPropertyNames(t))void 0!==t[e]&&(r[e]=ot(t[e],n));return r}if(Array.isArray(t)){const e=n.get(t);if(void 0!==e)return e;const r=[];return n.set(t,r),t.forEach((t=>{r.push(ot(t,n))})),r}return t}const it=1e3;function st(){return Date.now()/it}const ct=function(){const{performance:t}=n;if(!t?.now)return st;const e=Date.now()-t.now(),r=null==t.timeOrigin?e:t.timeOrigin;return()=>(r+t.now())/it}();function ut(t=function(){const t=n;return t.crypto||t.msCrypto}()){let e=()=>16*Math.random();try{if(t?.randomUUID)return t.randomUUID().replace(/-/g,"");t?.getRandomValues&&(e=()=>{const n=new Uint8Array(1);return t.getRandomValues(n),n[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&e())>>t/4).toString(16)))}function at(t){return t.exception?.values?.[0]}function ft(t){const{message:n,event_id:e}=t;if(n)return n;const r=at(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||e||"":e||""}function lt(t,n,e){const r=t.exception=t.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=n||""),i.type||(i.type="Error")}function dt(t,n){const e=at(t);if(!e)return;const r=e.mechanism;if(e.mechanism={type:"generic",handled:!0,...r,...n},n&&"data"in n){const t={...r?.data,...n.data};e.mechanism.data=t}}function ht(t){if(function(t){try{return t.__sentry_captured__}catch{}}(t))return!0;try{V(t,"__sentry_captured__",!0)}catch(t){}return!1}var pt;function mt(t){return new gt((n=>{n(t)}))}function yt(t){return new gt(((n,e)=>{e(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(pt||(pt={}));class gt{constructor(t){this.o=pt.PENDING,this.i=[],this.u(t)}then(t,n){return new gt(((e,r)=>{this.i.push([!1,n=>{if(t)try{e(t(n))}catch(t){r(t)}else e(n)},t=>{if(n)try{e(n(t))}catch(t){r(t)}else r(t)}]),this.l()}))}catch(t){return this.then((t=>t),t)}finally(t){return new gt(((n,e)=>{let r,o;return this.then((n=>{o=!1,r=n,t&&t()}),(n=>{o=!0,r=n,t&&t()})).then((()=>{o?e(r):n(r)}))}))}l(){if(this.o===pt.PENDING)return;const t=this.i.slice();this.i=[],t.forEach((t=>{t[0]||(this.o===pt.RESOLVED&&t[1](this.h),this.o===pt.REJECTED&&t[2](this.h),t[0]=!0)}))}u(t){const n=(t,n)=>{this.o===pt.PENDING&&(L(n)?n.then(e,r):(this.o=t,this.h=n,this.l()))},e=t=>{n(pt.RESOLVED,t)},r=t=>{n(pt.REJECTED,t)};try{t(e,r)}catch(t){r(t)}}}function vt(t){const n=ct(),e={sid:ut(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return rt({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}})}(e)};return t&&bt(e,t),e}function bt(t,n={}){if(n.user&&(!t.ipAddress&&n.user.ip_address&&(t.ipAddress=n.user.ip_address),t.did||n.did||(t.did=n.user.id||n.user.email||n.user.username)),t.timestamp=n.timestamp||ct(),n.abnormal_mechanism&&(t.abnormal_mechanism=n.abnormal_mechanism),n.ignoreDuration&&(t.ignoreDuration=n.ignoreDuration),n.sid&&(t.sid=32===n.sid.length?n.sid:ut()),void 0!==n.init&&(t.init=n.init),!t.did&&n.did&&(t.did=`${n.did}`),"number"==typeof n.started&&(t.started=n.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof n.duration)t.duration=n.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}n.release&&(t.release=n.release),n.environment&&(t.environment=n.environment),!t.ipAddress&&n.ipAddress&&(t.ipAddress=n.ipAddress),!t.userAgent&&n.userAgent&&(t.userAgent=n.userAgent),"number"==typeof n.errors&&(t.errors=n.errors),n.status&&(t.status=n.status)}function _t(){return ut()}function wt(){return ut().substring(16)}function Et(t,n,e=2){if(!n||"object"!=typeof n||e<=0)return n;if(t&&0===Object.keys(n).length)return t;const r={...t};for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(r[t]=Et(r[t],n[t],e-1));return r}const St="_sentrySpan";function $t(t,n){n?V(t,St,n):delete t[St]}function xt(t){return t[St]}class kt{constructor(){this.p=!1,this.m=[],this.v=[],this._=[],this.S=[],this.k={},this.I={},this.j={},this.T={},this.O={},this.R={traceId:_t(),sampleRand:Math.random()}}clone(){const t=new kt;return t._=[...this._],t.I={...this.I},t.j={...this.j},t.T={...this.T},this.T.flags&&(t.T.flags={values:[...this.T.flags.values]}),t.k=this.k,t.C=this.C,t.A=this.A,t.M=this.M,t.D=this.D,t.v=[...this.v],t.S=[...this.S],t.O={...this.O},t.R={...this.R},t.N=this.N,t.P=this.P,$t(t,xt(this)),t}setClient(t){this.N=t}setLastEventId(t){this.P=t}getClient(){return this.N}lastEventId(){return this.P}addScopeListener(t){this.m.push(t)}addEventProcessor(t){return this.v.push(t),this}setUser(t){return this.k=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this.A&&bt(this.A,{user:t}),this.L(),this}getUser(){return this.k}setTags(t){return this.I={...this.I,...t},this.L(),this}setTag(t,n){return this.I={...this.I,[t]:n},this.L(),this}setExtras(t){return this.j={...this.j,...t},this.L(),this}setExtra(t,n){return this.j={...this.j,[t]:n},this.L(),this}setFingerprint(t){return this.D=t,this.L(),this}setLevel(t){return this.C=t,this.L(),this}setTransactionName(t){return this.M=t,this.L(),this}setContext(t,n){return null===n?delete this.T[t]:this.T[t]=n,this.L(),this}setSession(t){return t?this.A=t:delete this.A,this.L(),this}getSession(){return this.A}update(t){if(!t)return this;const n="function"==typeof t?t(this):t,e=n instanceof kt?n.getScopeData():N(n)?t:void 0,{tags:r,extra:o,user:i,contexts:s,level:c,fingerprint:u=[],propagationContext:a}=e||{};return this.I={...this.I,...r},this.j={...this.j,...o},this.T={...this.T,...s},i&&Object.keys(i).length&&(this.k=i),c&&(this.C=c),u.length&&(this.D=u),a&&(this.R=a),this}clear(){return this._=[],this.I={},this.j={},this.k={},this.T={},this.C=void 0,this.M=void 0,this.D=void 0,this.A=void 0,$t(this,void 0),this.S=[],this.setPropagationContext({traceId:_t(),sampleRand:Math.random()}),this.L(),this}addBreadcrumb(t,n){const e="number"==typeof n?n:100;if(e<=0)return this;const r={timestamp:st(),...t};return this._.push(r),this._.length>e&&(this._=this._.slice(-e),this.N?.recordDroppedEvent("buffer_overflow","log_item")),this.L(),this}getLastBreadcrumb(){return this._[this._.length-1]}clearBreadcrumbs(){return this._=[],this.L(),this}addAttachment(t){return this.S.push(t),this}clearAttachments(){return this.S=[],this}getScopeData(){return{breadcrumbs:this._,attachments:this.S,contexts:this.T,tags:this.I,extra:this.j,user:this.k,level:this.C,fingerprint:this.D||[],eventProcessors:this.v,propagationContext:this.R,sdkProcessingMetadata:this.O,transactionName:this.M,span:xt(this)}}setSDKProcessingMetadata(t){return this.O=Et(this.O,t,2),this}setPropagationContext(t){return this.R=t,this}getPropagationContext(){return this.R}captureException(t,n){const e=n?.event_id||ut();if(!this.N)return a.warn("No client configured on scope - will not capture exception!"),e;const r=new Error("Sentry syntheticException");return this.N.captureException(t,{originalException:t,syntheticException:r,...n,event_id:e},this),e}captureMessage(t,n,e){const r=e?.event_id||ut();if(!this.N)return a.warn("No client configured on scope - will not capture message!"),r;const o=new Error(t);return this.N.captureMessage(t,n,{originalException:t,syntheticException:o,...e,event_id:r},this),r}captureEvent(t,n){const e=n?.event_id||ut();return this.N?(this.N.captureEvent(t,{...n,event_id:e},this),e):(a.warn("No client configured on scope - will not capture event!"),e)}L(){this.p||(this.p=!0,this.m.forEach((t=>{t(this)})),this.p=!1)}}class It{constructor(t,n){let e,r;e=t||new kt,r=n||new kt,this.U=[{scope:e}],this.F=r}withScope(t){const n=this.B();let e;try{e=t(n)}catch(t){throw this.q(),t}return L(e)?e.then((t=>(this.q(),t)),(t=>{throw this.q(),t})):(this.q(),e)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this.F}getStackTop(){return this.U[this.U.length-1]}B(){const t=this.getScope().clone();return this.U.push({client:this.getClient(),scope:t}),t}q(){return!(this.U.length<=1)&&!!this.U.pop()}}function jt(){const t=o(r());return t.stack=t.stack||new It(i("defaultCurrentScope",(()=>new kt)),i("defaultIsolationScope",(()=>new kt)))}function Tt(t){return jt().withScope(t)}function Ot(t,n){const e=jt();return e.withScope((()=>(e.getStackTop().scope=t,n(t))))}function Rt(t){return jt().withScope((()=>t(jt().getIsolationScope())))}function Ct(t){const n=o(t);return n.acs?n.acs:{withIsolationScope:Rt,withScope:Tt,withSetScope:Ot,withSetIsolationScope:(t,n)=>Rt(n),getCurrentScope:()=>jt().getScope(),getIsolationScope:()=>jt().getIsolationScope()}}function At(){return Ct(r()).getCurrentScope()}function Mt(){return Ct(r()).getIsolationScope()}function Dt(){return i("globalScope",(()=>new kt))}function Nt(...t){const n=Ct(r());if(2===t.length){const[e,r]=t;return e?n.withSetScope(e,r):n.withScope(r)}return n.withScope(t[0])}function Pt(){return At().getClient()}function Lt(t){const n=t.getPropagationContext(),{traceId:e,parentSpanId:r,propagationSpanId:o}=n;return rt({trace_id:e,span_id:o||wt(),parent_span_id:r})}const Ut="sentry.source",Ft="sentry.sample_rate",Bt="sentry.op",qt="sentry.origin",Ht="sentry.profile_id",Wt="sentry.exclusive_time",zt=0,Gt=1,Jt="_sentryScope",Xt="_sentryIsolationScope";function Yt(t){return{scope:t[Jt],isolationScope:t[Xt]}}function Kt(t){if("boolean"==typeof t)return Number(t);const n="string"==typeof t?parseFloat(t):t;return"number"!=typeof n||isNaN(n)||n<0||n>1?void 0:n}const Vt="sentry-",Zt=/^sentry-/,Qt=8192;function tn(t){const n=function(t){if(!t||!A(t)&&!Array.isArray(t))return;if(Array.isArray(t))return t.reduce(((t,n)=>{const e=en(n);return Object.entries(e).forEach((([n,e])=>{t[n]=e})),t}),{});return en(t)}(t);if(!n)return;const e=Object.entries(n).reduce(((t,[n,e])=>{if(n.match(Zt)){t[n.slice(Vt.length)]=e}return t}),{});return Object.keys(e).length>0?e:void 0}function nn(t){if(!t)return;return function(t){if(0===Object.keys(t).length)return;return Object.entries(t).reduce(((t,[n,e],r)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(e)}`,i=0===r?o:`${t},${o}`;return i.length>Qt?t:i}),"")}(Object.entries(t).reduce(((t,[n,e])=>(e&&(t[`${Vt}${n}`]=e),t)),{}))}function en(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,[n,e])=>(n&&e&&(t[n]=e),t)),{})}const rn=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function on(t,n){const e=function(t){if(!t)return;const n=t.match(rn);if(!n)return;let e;return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}(t),r=tn(n);if(!e?.traceId)return{traceId:_t(),sampleRand:Math.random()};const o=function(t,n){const e=Kt(n?.sample_rand);if(void 0!==e)return e;const r=Kt(n?.sample_rate);return r&&void 0!==t?.parentSampled?t.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}(e,r);r&&(r.sample_rand=o.toString());const{traceId:i,parentSpanId:s,parentSampled:c}=e;return{traceId:i,parentSpanId:s,sampled:c,dsc:r||{},sampleRand:o}}const sn=1;let cn=!1;function un(t){const{spanId:n,traceId:e,isRemote:r}=t.spanContext(),o=r?n:dn(t).parent_span_id,i=Yt(t).scope;return rt({parent_span_id:o,span_id:r?i?.getPropagationContext().propagationSpanId||wt():n,trace_id:e})}function an(t){return t&&t.length>0?t.map((({context:{spanId:t,traceId:n,traceFlags:e,...r},attributes:o})=>({span_id:t,trace_id:n,sampled:e===sn,attributes:o,...r}))):void 0}function fn(t){return"number"==typeof t?ln(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?ln(t.getTime()):ct()}function ln(t){return t>9999999999?t/1e3:t}function dn(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();const{spanId:n,traceId:e}=t.spanContext();if(function(t){const n=t;return!!(n.attributes&&n.startTime&&n.name&&n.endTime&&n.status)}(t)){const{attributes:r,startTime:o,name:i,endTime:s,parentSpanId:c,status:u,links:a}=t;return rt({span_id:n,trace_id:e,data:r,description:i,parent_span_id:c,start_timestamp:fn(o),timestamp:fn(s)||void 0,status:pn(u),op:r[Bt],origin:r[qt],links:an(a)})}return{span_id:n,trace_id:e,start_timestamp:0,data:{}}}function hn(t){const{traceFlags:n}=t.spanContext();return n===sn}function pn(t){if(t&&t.code!==zt)return t.code===Gt?"ok":t.message||"unknown_error"}const mn="_sentryRootSpan";function yn(t){return t[mn]||t}function gn(){cn||(u((()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")})),cn=!0)}const vn="production",bn="_frozenDsc";function _n(t,n){const e=n.getOptions(),{publicKey:r}=n.getDsn()||{},o=rt({environment:e.environment||vn,release:e.release,public_key:r,trace_id:t});return n.emit("createDsc",o),o}function wn(t){const n=Pt();if(!n)return{};const e=yn(t),r=dn(e),o=r.data,i=e.spanContext().traceState,s=i?.get("sentry.sample_rate")??o[Ft];function c(t){return"number"!=typeof s&&"string"!=typeof s||(t.sample_rate=`${s}`),t}const u=e[bn];if(u)return c(u);const a=i?.get("sentry.dsc"),f=a&&tn(a);if(f)return c(f);const l=_n(t.spanContext().traceId,n),d=o[Ut],h=r.description;return"url"!==d&&h&&(l.transaction=h),function(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const n=t||Pt()?.getOptions();return!(!n||null==n.tracesSampleRate&&!n.tracesSampler)}()&&(l.sampled=String(hn(e)),l.sample_rand=i?.get("sentry.sample_rand")??Yt(e).scope?.getPropagationContext().sampleRand.toString()),c(l),n.emit("createDsc",l,e),l}const En=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Sn(t,n=!1){const{host:e,path:r,pass:o,port:i,projectId:s,protocol:c,publicKey:u}=t;return`${c}://${u}${n&&o?`:${o}`:""}@${e}${i?`:${i}`:""}/${r?`${r}/`:r}${s}`}function $n(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function xn(t){const n="string"==typeof t?function(t){const n=En.exec(t);if(!n)return void u((()=>{console.error(`Invalid Sentry Dsn: ${t}`)}));const[e,r,o="",i="",s="",c=""]=n.slice(1);let a="",f=c;const l=f.split("/");if(l.length>1&&(a=l.slice(0,-1).join("/"),f=l.pop()),f){const t=f.match(/^\d+/);t&&(f=t[0])}return $n({host:i,pass:o,path:a,projectId:f,port:s,protocol:e,publicKey:r})}(t):$n(t);if(n)return n}function kn(t,n=100,e=1/0){try{return jn("",t,n,e)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function In(t,n=3,e=102400){const r=kn(t,n);return o=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(o))>e?In(t,n-1,e):r;var o}function jn(t,n,e=1/0,r=1/0,o=function(){const t=new WeakSet;function n(n){return!!t.has(n)||(t.add(n),!1)}function e(n){t.delete(n)}return[n,e]}()){const[i,s]=o;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;const c=function(t,n){try{if("domain"===t&&n&&"object"==typeof n&&n.H)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if("undefined"!=typeof global&&n===global)return"[Global]";if("undefined"!=typeof window&&n===window)return"[Window]";if("undefined"!=typeof document&&n===document)return"[Document]";if(F(n))return"[VueViewModel]";if(N(e=n)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e)return"[SyntheticEvent]";if("number"==typeof n&&!Number.isFinite(n))return`[${n}]`;if("function"==typeof n)return`[Function: ${g(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;const r=function(t){const n=Object.getPrototypeOf(t);return n?.constructor?n.constructor.name:"null prototype"}(n);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(t){return`**non-serializable** (${t})`}var e}(t,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__:e;if(0===u)return c.replace("object ","");if(i(n))return"[Circular ~]";const a=n;if(a&&"function"==typeof a.toJSON)try{return jn("",a.toJSON(),u-1,r,o)}catch(t){}const f=Array.isArray(n)?[]:{};let l=0;const d=tt(n);for(const t in d){if(!Object.prototype.hasOwnProperty.call(d,t))continue;if(l>=r){f[t]="[MaxProperties ~]";break}const n=d[t];f[t]=jn(t,n,u-1,r,o),l++}return s(n),f}function Tn(t,n=[]){return[t,n]}function On(t,n){const[e,r]=t;return[e,[...r,n]]}function Rn(t,n){const e=t[1];for(const t of e){if(n(t,t[0].type))return!0}return!1}function Cn(t){const e=o(n);return e.encodePolyfill?e.encodePolyfill(t):(new TextEncoder).encode(t)}function An(t){const[n,e]=t;let r=JSON.stringify(n);function o(t){"string"==typeof r?r="string"==typeof t?r+t:[Cn(r),t]:r.push("string"==typeof t?Cn(t):t)}for(const t of e){const[n,e]=t;if(o(`\n${JSON.stringify(n)}\n`),"string"==typeof e||e instanceof Uint8Array)o(e);else{let t;try{t=JSON.stringify(e)}catch(n){t=JSON.stringify(kn(e))}o(t)}}return"string"==typeof r?r:function(t){const n=t.reduce(((t,n)=>t+n.length),0),e=new Uint8Array(n);let r=0;for(const n of t)e.set(n,r),r+=n.length;return e}(r)}function Mn(t){const n="string"==typeof t.data?Cn(t.data):t.data;return[rt({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}const Dn={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",otel_log:"log_item"};function Nn(t){return Dn[t]}function Pn(t){if(!t?.sdk)return;const{name:n,version:e}=t.sdk;return{name:n,version:e}}function Ln(t,n,e,r){const o=Pn(e),i=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,n){n&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||n.name,t.sdk.version=t.sdk.version||n.version,t.sdk.integrations=[...t.sdk.integrations||[],...n.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...n.packages||[]])}(t,e?.sdk);const s=function(t,n,e,r){const o=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...n&&{sdk:n},...!!e&&r&&{dsn:Sn(r)},...o&&{trace:rt({...o})}}}(t,o,r,n);delete t.sdkProcessingMetadata;return Tn(s,[[{type:i},t]])}function Un(t,n,e,r=0){return new gt(((o,i)=>{const s=t[r];if(null===n||"function"!=typeof s)o(n);else{const c=s({...n},e);L(c)?c.then((n=>Un(t,n,e,r+1).then(o))).then(null,i):Un(t,c,e,r+1).then(o).then(null,i)}}))}let Fn,Bn,qn;function Hn(t,n){const{fingerprint:e,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=n;!function(t,n){const{extra:e,tags:r,user:o,contexts:i,level:s,transactionName:c}=n,u=rt(e);Object.keys(u).length&&(t.extra={...u,...t.extra});const a=rt(r);Object.keys(a).length&&(t.tags={...a,...t.tags});const f=rt(o);Object.keys(f).length&&(t.user={...f,...t.user});const l=rt(i);Object.keys(l).length&&(t.contexts={...l,...t.contexts});s&&(t.level=s);c&&"transaction"!==t.type&&(t.transaction=c)}(t,n),r&&function(t,n){t.contexts={trace:un(n),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:wn(n),...t.sdkProcessingMetadata};const e=yn(n),r=dn(e).description;r&&!t.transaction&&"transaction"===t.type&&(t.transaction=r)}(t,r),function(t,n){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],n&&(t.fingerprint=t.fingerprint.concat(n));t.fingerprint.length||delete t.fingerprint}(t,e),function(t,n){const e=[...t.breadcrumbs||[],...n];t.breadcrumbs=e.length?e:void 0}(t,o),function(t,n){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...n}}(t,i)}function Wn(t,n){const{extra:e,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:a,eventProcessors:f,attachments:l,propagationContext:d,transactionName:h,span:p}=n;zn(t,"extra",e),zn(t,"tags",r),zn(t,"user",o),zn(t,"contexts",i),t.sdkProcessingMetadata=Et(t.sdkProcessingMetadata,c,2),s&&(t.level=s),h&&(t.transactionName=h),p&&(t.span=p),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),a.length&&(t.fingerprint=[...t.fingerprint,...a]),f.length&&(t.eventProcessors=[...t.eventProcessors,...f]),l.length&&(t.attachments=[...t.attachments,...l]),t.propagationContext={...t.propagationContext,...d}}function zn(t,n,e){t[n]=Et(t[n],e,1)}function Gn(t,e,r,o,i,s){const{normalizeDepth:c=3,normalizeMaxBreadth:u=1e3}=t,a={...e,event_id:e.event_id||r.event_id||ut(),timestamp:e.timestamp||st()},f=r.integrations||t.integrations.map((t=>t.name));!function(t,n){const{environment:e,release:r,dist:o,maxValueLength:i=250}=n;t.environment=t.environment||e||vn,!t.release&&r&&(t.release=r);!t.dist&&o&&(t.dist=o);t.message&&(t.message=G(t.message,i));const s=t.exception?.values?.[0];s?.value&&(s.value=G(s.value,i));const c=t.request;c?.url&&(c.url=G(c.url,i))}(a,t),function(t,n){n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...n])}(a,f),i&&i.emit("applyFrameMetadata",e),void 0===e.type&&function(t,e){const r=function(t){const e=n._sentryDebugIds;if(!e)return{};const r=Object.keys(e);return qn&&r.length===Bn||(Bn=r.length,qn=r.reduce(((n,r)=>{Fn||(Fn={});const o=Fn[r];if(o)n[o[0]]=o[1];else{const o=t(r);for(let t=o.length-1;t>=0;t--){const i=o[t],s=i?.filename,c=e[r];if(s&&c){n[s]=c,Fn[r]=[s,c];break}}}return n}),{})),qn}(e);t.exception?.values?.forEach((t=>{t.stacktrace?.frames?.forEach((t=>{t.filename&&(t.debug_id=r[t.filename])}))}))}(a,t.stackParser);const l=function(t,n){if(!n)return t;const e=t?t.clone():new kt;return e.update(n),e}(o,r.captureContext);r.mechanism&&dt(a,r.mechanism);const d=i?i.getEventProcessors():[],h=Dt().getScopeData();if(s){Wn(h,s.getScopeData())}if(l){Wn(h,l.getScopeData())}const p=[...r.attachments||[],...h.attachments];p.length&&(r.attachments=p),Hn(a,h);return Un([...d,...h.eventProcessors],a,r).then((t=>(t&&function(t){const n={};if(t.exception?.values?.forEach((t=>{t.stacktrace?.frames?.forEach((t=>{t.debug_id&&(t.abs_path?n[t.abs_path]=t.debug_id:t.filename&&(n[t.filename]=t.debug_id),delete t.debug_id)}))})),0===Object.keys(n).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const e=t.debug_meta.images;Object.entries(n).forEach((([t,n])=>{e.push({type:"sourcemap",code_file:t,debug_id:n})}))}(t),"number"==typeof c&&c>0?function(t,n,e){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:kn(t.data,n,e)}})))},...t.user&&{user:kn(t.user,n,e)},...t.contexts&&{contexts:kn(t.contexts,n,e)},...t.extra&&{extra:kn(t.extra,n,e)}};t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=kn(t.contexts.trace.data,n,e)));t.spans&&(r.spans=t.spans.map((t=>({...t,...t.data&&{data:kn(t.data,n,e)}}))));t.contexts?.flags&&r.contexts&&(r.contexts.flags=kn(t.contexts.flags,3,e));return r}(t,c,u):t)))}function Jn(t){if(t)return function(t){return t instanceof kt||"function"==typeof t}(t)||function(t){return Object.keys(t).some((t=>Xn.includes(t)))}(t)?{captureContext:t}:t}const Xn=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function captureException(t,n){return At().captureException(t,Jn(n))}function Yn(t,n){return At().captureEvent(t,n)}function Kn(){return Mt().lastEventId()}function Vn(t){const e=Mt(),r=At(),{userAgent:o}=n.navigator||{},i=vt({user:r.getUser()||e.getUser(),...o&&{userAgent:o},...t}),s=e.getSession();return"ok"===s?.status&&bt(s,{status:"exited"}),Zn(),e.setSession(i),i}function Zn(){const t=Mt(),n=At().getSession()||t.getSession();n&&function(t,n){let e={};"ok"===t.status&&(e={status:"exited"}),bt(t,e)}(n),Qn(),t.setSession()}function Qn(){const t=Mt(),n=Pt(),e=t.getSession();e&&n&&n.captureSession(e)}function te(t=!1){t?Zn():Qn()}const ne="7";function ee(t){const n=t.protocol?`${t.protocol}:`:"",e=t.port?`:${t.port}`:"";return`${n}//${t.host}${e}${t.path?`/${t.path}`:""}/api/`}function re(t,n,e){return n||`${function(t){return`${ee(t)}${t.projectId}/envelope/`}(t)}?${function(t,n){const e={sentry_version:ne};return t.publicKey&&(e.sentry_key=t.publicKey),n&&(e.sentry_client=`${n.name}/${n.version}`),new URLSearchParams(e).toString()}(t,e)}`}const oe=[];function ie(t){const n=t.defaultIntegrations||[],e=t.integrations;let r;if(n.forEach((t=>{t.isDefaultInstance=!0})),Array.isArray(e))r=[...n,...e];else if("function"==typeof e){const t=e(n);r=Array.isArray(t)?t:[t]}else r=n;return function(t){const n={};return t.forEach((t=>{const{name:e}=t,r=n[e];r&&!r.isDefaultInstance&&t.isDefaultInstance||(n[e]=t)})),Object.values(n)}(r)}function se(t,n){for(const e of n)e?.afterAllSetup&&e.afterAllSetup(t)}function ce(t,n,e){if(!e[n.name]){if(e[n.name]=n,-1===oe.indexOf(n.name)&&"function"==typeof n.setupOnce&&(n.setupOnce(),oe.push(n.name)),n.setup&&"function"==typeof n.setup&&n.setup(t),"function"==typeof n.preprocessEvent){const e=n.preprocessEvent.bind(n);t.on("preprocessEvent",((n,r)=>e(n,r,t)))}if("function"==typeof n.processEvent){const e=n.processEvent.bind(n),r=Object.assign(((n,r)=>e(n,r,t)),{id:n.name});t.addEventProcessor(r)}}}class ue extends Error{constructor(t,n="warn"){super(t),this.message=t,this.logLevel=n}}class ae{constructor(t){if(this.W=t,this._integrations={},this.G=0,this.J={},this.X={},this.v=[],t.dsn&&(this.Y=xn(t.dsn)),this.Y){const n=re(this.Y,t.tunnel,t._metadata?t._metadata.sdk:void 0);this.K=t.transport({tunnel:this.W.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,e){const r=ut();if(ht(t))return r;const o={event_id:r,...n};return this.V(this.eventFromException(t,o).then((t=>this.Z(t,o,e)))),o.event_id}captureMessage(t,n,e,r){const o={event_id:ut(),...e},i=M(t)?t:String(t),s=D(t)?this.eventFromMessage(i,n,o):this.eventFromException(t,o);return this.V(s.then((t=>this.Z(t,o,r)))),o.event_id}captureEvent(t,n,e){const r=ut();if(n?.originalException&&ht(n.originalException))return r;const o={event_id:r,...n},i=t.sdkProcessingMetadata||{},s=i.capturedSpanScope,c=i.capturedSpanIsolationScope;return this.V(this.Z(t,o,s||e,c)),o.event_id}captureSession(t){this.sendSession(t),bt(t,{init:!1})}getDsn(){return this.Y}getOptions(){return this.W}getSdkMetadata(){return this.W._metadata}getTransport(){return this.K}flush(t){const n=this.K;return n?(this.emit("flush"),this.tt(t).then((e=>n.flush(t).then((t=>e&&t))))):mt(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,this.emit("close"),t)))}getEventProcessors(){return this.v}addEventProcessor(t){this.v.push(t)}init(){(this.nt()||this.W.integrations.some((({name:t})=>t.startsWith("Spotlight"))))&&this.et()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];ce(this,t,this._integrations),n||se(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let e=Ln(t,this.Y,this.W._metadata,this.W.tunnel);for(const t of n.attachments||[])e=On(e,Mn(t));const r=this.sendEnvelope(e);r&&r.then((n=>this.emit("afterSendEvent",t,n)),null)}sendSession(t){const{release:n,environment:e=vn}=this.W;if("aggregates"in t){const r=t.attrs||{};if(!r.release&&!n)return;r.release=r.release||n,r.environment=r.environment||e,t.attrs=r}else{if(!t.release&&!n)return;t.release=t.release||n,t.environment=t.environment||e}this.emit("beforeSendSession",t);const r=function(t,n,e,r){const o=Pn(e);return Tn({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&n&&{dsn:Sn(n)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this.Y,this.W._metadata,this.W.tunnel);this.sendEnvelope(r)}recordDroppedEvent(t,n,e=1){if(this.W.sendClientReports){const r=`${t}:${n}`;this.J[r]=(this.J[r]||0)+e}}on(t,n){const e=this.X[t]=this.X[t]||[];return e.push(n),()=>{const t=e.indexOf(n);t>-1&&e.splice(t,1)}}emit(t,...n){const e=this.X[t];e&&e.forEach((t=>t(...n)))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this.nt()&&this.K?this.K.send(t).then(null,(t=>t)):mt({})}et(){const{integrations:t}=this.W;this._integrations=function(t,n){const e={};return n.forEach((n=>{n&&ce(t,n,e)})),e}(this,t),se(this,t)}rt(t,n){let e="fatal"===n.level,r=!1;const o=n.exception?.values;if(o){r=!0;for(const t of o){const n=t.mechanism;if(!1===n?.handled){e=!0;break}}}const i="ok"===t.status;(i&&0===t.errors||i&&e)&&(bt(t,{...e&&{status:"crashed"},errors:t.errors||Number(r||e)}),this.captureSession(t))}tt(t){return new gt((n=>{let e=0;const r=setInterval((()=>{0==this.G?(clearInterval(r),n(!0)):(e+=1,t&&e>=t&&(clearInterval(r),n(!1)))}),1)}))}nt(){return!1!==this.getOptions().enabled&&void 0!==this.K}ot(t,n,e,r){const o=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i?.length&&(n.integrations=i),this.emit("preprocessEvent",t,n),t.type||r.setLastEventId(t.event_id||n.event_id),Gn(o,t,n,e,this,r).then((t=>{if(null===t)return t;this.emit("postprocessEvent",t,n),t.contexts={trace:Lt(e),...t.contexts};const r=function(t,n){const e=n.getPropagationContext();return e.dsc||_n(e.traceId,t)}(this,e);return t.sdkProcessingMetadata={dynamicSamplingContext:r,...t.sdkProcessingMetadata},t}))}Z(t,n={},e=At(),r=Mt()){return this.it(t,n,e,r).then((t=>t.event_id),(t=>{}))}it(t,n,e,r){const o=this.getOptions(),{sampleRate:i}=o,s=le(t),c=fe(t),u=t.type||"error",a=`before send for type \`${u}\``,f=void 0===i?void 0:Kt(i);if(c&&"number"==typeof f&&Math.random()>f)return this.recordDroppedEvent("sample_rate","error"),yt(new ue(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const l="replay_event"===u?"replay":u;return this.ot(t,n,e,r).then((t=>{if(null===t)throw this.recordDroppedEvent("event_processor",l),new ue("An event processor returned `null`, will not send event.","log");if(n.data&&!0===n.data.__sentry__)return t;const e=function(t,n,e,r){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s}=n;let c=e;if(fe(c)&&o)return o(c,r);if(le(c)){if(s){const t=s(function(t){const{trace_id:n,parent_span_id:e,span_id:r,status:o,origin:i,data:s,op:c}=t.contexts?.trace??{};return rt({data:s??{},description:t.transaction,op:c,parent_span_id:e,span_id:r??"",start_timestamp:t.start_timestamp??0,status:o,timestamp:t.timestamp,trace_id:n??"",origin:i,profile_id:s?.[Ht],exclusive_time:s?.[Wt],measurements:t.measurements,is_segment:!0})}(c));if(t?c=Et(e,rt({type:"transaction",timestamp:(u=t).timestamp,start_timestamp:u.start_timestamp,transaction:u.description,contexts:{trace:{trace_id:u.trace_id,span_id:u.span_id,parent_span_id:u.parent_span_id,op:u.op,status:u.status,origin:u.origin,data:{...u.data,...u.profile_id&&{[Ht]:u.profile_id},...u.exclusive_time&&{[Wt]:u.exclusive_time}}}},measurements:u.measurements})):gn(),c.spans){const t=[];for(const n of c.spans){const e=s(n);e?t.push(e):(gn(),t.push(n))}c.spans=t}}if(i){if(c.spans){const t=c.spans.length;c.sdkProcessingMetadata={...e.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return i(c,r)}}var u;return c}(0,o,t,n);return function(t,n){const e=`${n} must return \`null\` or a valid event.`;if(L(t))return t.then((t=>{if(!N(t)&&null!==t)throw new ue(e);return t}),(t=>{throw new ue(`${n} rejected with ${t}`)}));if(!N(t)&&null!==t)throw new ue(e);return t}(e,a)})).then((o=>{if(null===o){if(this.recordDroppedEvent("before_send",l),s){const n=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",n)}throw new ue(`${a} returned \`null\`, will not send event.`,"log")}const i=e.getSession()||r.getSession();if(c&&i&&this.rt(i,o),s){const t=(o.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(o.spans?o.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const u=o.transaction_info;if(s&&u&&o.transaction!==t.transaction){const t="custom";o.transaction_info={...u,source:t}}return this.sendEvent(o,n),o})).then(null,(t=>{if(t instanceof ue)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new ue(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}V(t){this.G++,t.then((t=>(this.G--,t)),(t=>(this.G--,t)))}st(){const t=this.J;return this.J={},Object.entries(t).map((([t,n])=>{const[e,r]=t.split(":");return{reason:e,category:r,quantity:n}}))}ct(){const t=this.st();if(0===t.length)return;if(!this.Y)return;const n=(e=t,Tn((r=this.W.tunnel&&Sn(this.Y))?{dsn:r}:{},[[{type:"client_report"},{timestamp:st(),discarded_events:e}]]));var e,r;this.sendEnvelope(n)}}function fe(t){return void 0===t.type}function le(t){return"transaction"===t.type}function de(t){At().setClient(t)}function he(t){const n=[];function e(t){return n.splice(n.indexOf(t),1)[0]||Promise.resolve(void 0)}return{$:n,add:function(r){if(!(void 0===t||n.lengthe(o))).then(null,(()=>e(o).then(null,(()=>{})))),o},drain:function(t){return new gt(((e,r)=>{let o=n.length;if(!o)return e(!0);const i=setTimeout((()=>{t&&t>0&&e(!1)}),t);n.forEach((t=>{mt(t).then((()=>{--o||(clearTimeout(i),e(!0))}),r)}))}))}}}const pe=6e4;function me(t,{statusCode:n,headers:e},r=Date.now()){const o={...t},i=e?.["x-sentry-rate-limits"],s=e?.["retry-after"];if(i)for(const t of i.trim().split(",")){const[n,e,,,i]=t.split(":",5),s=parseInt(n,10),c=1e3*(isNaN(s)?60:s);if(e)for(const t of e.split(";"))"metric_bucket"===t&&i&&!i.split(";").includes("custom")||(o[t]=r+c);else o.all=r+c}else s?o.all=r+function(t,n=Date.now()){const e=parseInt(`${t}`,10);if(!isNaN(e))return 1e3*e;const r=Date.parse(`${t}`);return isNaN(r)?pe:r-n}(s,r):429===n&&(o.all=r+6e4);return o}const ye=64;function ge(t,n,e=he(t.bufferSize||ye)){let r={};return{send:function(o){const i=[];if(Rn(o,((n,e)=>{const o=Nn(e);!function(t,n,e=Date.now()){return function(t,n){return t[n]||t.all||0}(t,n)>e}(r,o)?i.push(n):t.recordDroppedEvent("ratelimit_backoff",o)})),0===i.length)return mt({});const s=Tn(o[0],i),c=n=>{Rn(s,((e,r)=>{t.recordDroppedEvent(n,Nn(r))}))};return e.add((()=>n({body:An(s)}).then((t=>(r=me(r,t),t)),(t=>{throw c("network_error"),t})))).then((t=>t),(t=>{if(t instanceof ue)return c("queue_overflow"),mt({});throw t}))},flush:t=>e.drain(t)}}function ve(t){void 0===t.user?.ip_address&&(t.user={...t.user,ip_address:"{{auto}}"})}function be(t){"aggregates"in t?void 0===t.attrs?.ip_address&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):void 0===t.ipAddress&&(t.ipAddress="{{auto}}")}const _e=100;function we(t,n){const e=Pt(),r=Mt();if(!e)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=_e}=e.getOptions();if(i<=0)return;const s={timestamp:st(),...t},c=o?u((()=>o(s,n))):s;null!==c&&(e.emit&&e.emit("beforeAddBreadcrumb",c,n),r.addBreadcrumb(c,i))}let Ee;const Se=new WeakMap,$e=()=>({name:"FunctionToString",setupOnce(){Ee=Function.prototype.toString;try{Function.prototype.toString=function(...t){const n=Q(this),e=Se.has(Pt())&&void 0!==n?n:this;return Ee.apply(e,t)}}catch{}},setup(t){Se.set(t,!0)}}),xe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],ke=(t={})=>({name:"EventFilters",processEvent(n,e,r){const o=r.getOptions(),i=function(t={},n={}){return{allowUrls:[...t.allowUrls||[],...n.allowUrls||[]],denyUrls:[...t.denyUrls||[],...n.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...n.ignoreErrors||[],...t.disableErrorDefaults?[]:xe],ignoreTransactions:[...t.ignoreTransactions||[],...n.ignoreTransactions||[]],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(t,o);return function(t,n){if(n.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t))return!0;if(function(t,n){if(t.type||!n||!n.length)return!1;return function(t){const n=[];t.message&&n.push(t.message);try{const e=t.exception.values[t.exception.values.length-1];e?.value&&(n.push(e.value),e.type&&n.push(`${e.type}: ${e.value}`))}catch(t){}return n}(t).some((t=>Y(t,n)))}(t,n.ignoreErrors))return!0;if(function(t){if(t.type)return!1;if(!t.exception?.values?.length)return!1;return!t.message&&!t.exception.values.some((t=>t.stacktrace||t.type&&"Error"!==t.type||t.value))}(t))return!0;if(function(t,n){if("transaction"!==t.type||!n||!n.length)return!1;const e=t.transaction;return!!e&&Y(e,n)}(t,n.ignoreTransactions))return!0;if(function(t,n){if(!n?.length)return!1;const e=je(t);return!!e&&Y(e,n)}(t,n.denyUrls))return!0;if(!function(t,n){if(!n?.length)return!0;const e=je(t);return!e||Y(e,n)}(t,n.allowUrls))return!0;return!1}(n,i)?null:n}}),Ie=(t={})=>({...ke(t),name:"InboundFilters"});function je(t){try{const n=[...t.exception?.values??[]].reverse().find((t=>void 0===t.mechanism?.parent_id&&t.stacktrace?.frames?.length)),e=n?.stacktrace?.frames;return e?function(t=[]){for(let n=t.length-1;n>=0;n--){const e=t[n];if(e&&""!==e.filename&&"[native code]"!==e.filename)return e.filename||null}return null}(e):null}catch(t){return null}}function Te(t,n,e=250,r,o,i,s){if(!i.exception?.values||!s||!U(s.originalException,Error))return;const c=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;var u,a;c&&(i.exception.values=(u=Oe(t,n,o,s.originalException,r,i.exception.values,c,0),a=e,u.map((t=>(t.value&&(t.value=G(t.value,a)),t)))))}function Oe(t,n,e,r,o,i,s,c){if(i.length>=e+1)return i;let u=[...i];if(U(r[o],Error)){Re(s,c);const i=t(n,r[o]),a=u.length;Ce(i,o,a,c),u=Oe(t,n,e,r[o],o,[i,...u],i,a)}return Array.isArray(r.errors)&&r.errors.forEach(((r,i)=>{if(U(r,Error)){Re(s,c);const a=t(n,r),f=u.length;Ce(a,`errors[${i}]`,f,c),u=Oe(t,n,e,r,o,[a,...u],a,f)}})),u}function Re(t,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,..."AggregateError"===t.type&&{is_exception_group:!0},exception_id:n}}function Ce(t,n,e,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:n,exception_id:e,parent_id:r}}function Ae(){"console"in n&&s.forEach((function(t){t in n.console&&K(n.console,t,(function(e){return c[t]=e,function(...e){S("console",{args:e,level:t});const r=c[t];r?.apply(n.console,e)}}))}))}function Me(t){return"warn"===t?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const De=()=>{let t;return{name:"Dedupe",processEvent(n){if(n.type)return n;try{if(function(t,n){if(!n)return!1;if(function(t,n){const e=t.message,r=n.message;if(!e&&!r)return!1;if(e&&!r||!e&&r)return!1;if(e!==r)return!1;if(!Pe(t,n))return!1;if(!Ne(t,n))return!1;return!0}(t,n))return!0;if(function(t,n){const e=Le(n),r=Le(t);if(!e||!r)return!1;if(e.type!==r.type||e.value!==r.value)return!1;if(!Pe(t,n))return!1;if(!Ne(t,n))return!1;return!0}(t,n))return!0;return!1}(n,t))return null}catch(t){}return t=n}}};function Ne(t,n){let e=v(t),r=v(n);if(!e&&!r)return!0;if(e&&!r||!e&&r)return!1;if(r.length!==e.length)return!1;for(let t=0;t=400&&t<500?"warning":t>=500?"error":void 0}const Be=n;function qe(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function He(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in Be))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}())return!1;if(qe(Be.fetch))return!0;let t=!1;const n=Be.document;if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e),e.contentWindow?.fetch&&(t=qe(e.contentWindow.fetch)),n.head.removeChild(e)}catch(t){}return t}function We(t,e){const r="fetch";w(r,t),E(r,(()=>function(t,e=!1){if(e&&!He())return;K(n,"fetch",(function(t){return function(...e){const r=new Error,{method:o,url:i}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[n,e]=t;return{url:Ge(n),method:ze(e,"method")?String(e.method).toUpperCase():"GET"}}const n=t[0];return{url:Ge(n),method:ze(n,"method")?String(n.method).toUpperCase():"GET"}}(e),s={args:e,fetchData:{method:o,url:i},startTimestamp:1e3*ct(),virtualError:r};return S("fetch",{...s}),t.apply(n,e).then((async t=>(S("fetch",{...s,endTimestamp:1e3*ct(),response:t}),t)),(t=>{throw S("fetch",{...s,endTimestamp:1e3*ct(),error:t}),T(t)&&void 0===t.stack&&(t.stack=r.stack,V(t,"framesToPop",1)),t}))}}))}(0,e)))}function ze(t,n){return!!t&&"object"==typeof t&&!!t[n]}function Ge(t){return"string"==typeof t?t:t?ze(t,"url")?t.url:t.toString?t.toString():"":""}const Je=()=>{},Xe=["attachTo","createForm","createWidget","remove"],Ye=Object.assign((t=>(u((()=>{console.warn("You are using feedbackIntegration() even though this bundle does not include feedback.")})),{name:"Feedback",...Xe.reduce(((t,n)=>(t[n]=Je,t)),{})})),{_isShim:!0}),Ke=["start","stop","flush"];const Ve=t=>(u((()=>{console.warn("You are using browserTracingIntegration() even though this bundle does not include tracing.")})),{name:"BrowserTracing"}),Ze=n;let Qe=0;function tr(){return Qe>0}function nr(t,n={}){if(!function(t){return"function"==typeof t}(t))return t;try{const n=t.__sentry_wrapped__;if(n)return"function"==typeof n?n:t;if(Q(t))return t}catch(n){return t}const sentryWrapped=function(...e){try{const r=e.map((t=>nr(t,n)));return t.apply(this,r)}catch(t){throw Qe++,setTimeout((()=>{Qe--})),Nt((r=>{r.addEventProcessor((t=>(n.mechanism&&(lt(t,void 0),dt(t,n.mechanism)),t.extra={...t.extra,arguments:e},t))),captureException(t)})),t}};try{for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(sentryWrapped[n]=t[n])}catch{}Z(sentryWrapped,t),V(t,"__sentry_wrapped__",sentryWrapped);try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch{}return sentryWrapped}function er(t,n){const e=ir(t,n),r={type:ur(n),value:ar(n)};return e.length&&(r.stacktrace={frames:e}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function rr(t,n,e,r){const o=Pt(),i=o?.getOptions().normalizeDepth,s=function(t){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const e=t[n];if(e instanceof Error)return e}return}(n),c={__serialized__:In(n,i)};if(s)return{exception:{values:[er(t,s)]},extra:c};const u={exception:{values:[{type:P(n)?n.constructor.name:r?"UnhandledRejection":"Error",value:pr(n,{isUnhandledRejection:r})}]},extra:c};if(e){const n=ir(t,e);n.length&&(u.exception.values[0].stacktrace={frames:n})}return u}function or(t,n){return{exception:{values:[er(t,n)]}}}function ir(t,n){const e=n.stacktrace||n.stack||"",r=function(t){if(t&&sr.test(t.message))return 1;return 0}(n),o=function(t){if("number"==typeof t.framesToPop)return t.framesToPop;return 0}(n);try{return t(e,r,o)}catch(t){}return[]}const sr=/Minified React error #\d+;/i;function cr(t){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&t instanceof WebAssembly.Exception}function ur(t){const n=t?.name;if(!n&&cr(t)){return t.message&&Array.isArray(t.message)&&2==t.message.length?t.message[0]:"WebAssembly.Exception"}return n}function ar(t){const n=t?.message;return cr(t)?Array.isArray(t.message)&&2==t.message.length?t.message[1]:"wasm exception":n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"}function fr(t,n,e,r){const o=dr(t,n,e?.syntheticException||void 0,r);return dt(o),o.level="error",e?.event_id&&(o.event_id=e.event_id),mt(o)}function lr(t,n,e="info",r,o){const i=hr(t,n,r?.syntheticException||void 0,o);return i.level=e,r?.event_id&&(i.event_id=r.event_id),mt(i)}function dr(t,n,e,r,o){let i;if(R(n)&&n.error){return or(t,n.error)}if(C(n)||O(n,"DOMException")){const o=n;if("stack"in n)i=or(t,n);else{const n=o.name||(C(o)?"DOMError":"DOMException"),s=o.message?`${n}: ${o.message}`:n;i=hr(t,s,e,r),lt(i,s)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}if(T(n))return or(t,n);if(N(n)||P(n)){return i=rr(t,n,e,o),dt(i,{synthetic:!0}),i}return i=hr(t,n,e,r),lt(i,`${n}`),dt(i,{synthetic:!0}),i}function hr(t,n,e,r){const o={};if(r&&e){const r=ir(t,e);r.length&&(o.exception={values:[{value:n,stacktrace:{frames:r}}]}),dt(o,{synthetic:!0})}if(M(n)){const{__sentry_template_string__:t,__sentry_template_values__:e}=n;return o.logentry={message:t,params:e},o}return o.message=n,o}function pr(t,{isUnhandledRejection:n}){const e=function(t,n=40){const e=Object.keys(tt(t));e.sort();const r=e[0];if(!r)return"[object has no keys]";if(r.length>=n)return G(r,n);for(let t=e.length;t>0;t--){const r=e.slice(0,t).join(", ");if(!(r.length>n))return t===e.length?r:G(r,n)}return""}(t),r=n?"promise rejection":"exception";if(R(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if(P(t)){return`Event \`${function(t){try{const n=Object.getPrototypeOf(t);return n?n.constructor.name:void 0}catch(t){}}(t)}\` (type=${t.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${e}`}class mr extends ae{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t};!function(t,n,r=[n],o="npm"){const i=t._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${n}`,packages:r.map((t=>({name:`${o}:@sentry/${t}`,version:e}))),version:e}),t._metadata=i}(n,"browser",["browser"],Ze.SENTRY_SDK_SOURCE||"cdn"),super(n),n.sendClientReports&&Ze.document&&Ze.document.addEventListener("visibilitychange",(()=>{"hidden"===Ze.document.visibilityState&&this.ct()})),this.W.sendDefaultPii&&(this.on("postprocessEvent",ve),this.on("beforeSendSession",be))}eventFromException(t,n){return fr(this.W.stackParser,t,n,this.W.attachStacktrace)}eventFromMessage(t,n="info",e){return lr(this.W.stackParser,t,n,e,this.W.attachStacktrace)}ot(t,n,e,r){return t.platform=t.platform||"javascript",super.ot(t,n,e,r)}}const yr=n,gr=1e3;let vr,br,_r,wr;function Er(){if(!yr.document)return;const t=S.bind(null,"dom"),n=Sr(t,!0);yr.document.addEventListener("click",n,!1),yr.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach((n=>{const e=yr,r=e[n]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(K(r,"addEventListener",(function(n){return function(e,r,o){if("click"===e||"keypress"==e)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=r[e]=r[e]||{refCount:0};if(!i.handler){const r=Sr(t);i.handler=r,n.call(this,e,r,o)}i.refCount++}catch(t){}return n.call(this,e,r,o)}})),K(r,"removeEventListener",(function(t){return function(n,e,r){if("click"===n||"keypress"==n)try{const e=this.__sentry_instrumentation_handlers__||{},o=e[n];o&&(o.refCount--,o.refCount<=0&&(t.call(this,n,o.handler,r),o.handler=void 0,delete e[n]),0===Object.keys(e).length&&delete this.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,n,e,r)}})))}))}function Sr(t,n=!1){return e=>{if(!e||e._sentryCaptured)return;const r=function(t){try{return t.target}catch(t){return null}}(e);if(function(t,n){return"keypress"===t&&(!n?.tagName||"INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&!n.isContentEditable)}(e.type,r))return;V(e,"_sentryCaptured",!0),r&&!r._sentryId&&V(r,"_sentryId",ut());const o="keypress"===e.type?"input":e.type;if(!function(t){if(t.type!==br)return!1;try{if(!t.target||t.target._sentryId!==_r)return!1}catch(t){}return!0}(e)){t({event:e,name:o,global:n}),br=e.type,_r=r?r._sentryId:void 0}clearTimeout(vr),vr=yr.setTimeout((()=>{_r=void 0,br=void 0}),gr)}}function $r(t){const n="history";w(n,t),E(n,xr)}function xr(){function t(t){return function(...n){const e=n.length>2?n[2]:void 0;if(e){const r=wr,o=String(e);if(wr=o,r===o)return t.apply(this,n);S("history",{from:r,to:o})}return t.apply(this,n)}}yr.addEventListener("popstate",(()=>{const t=yr.location.href,n=wr;if(wr=t,n===t)return;S("history",{from:n,to:t})})),"history"in Be&&Be.history&&(K(yr.history,"pushState",t),K(yr.history,"replaceState",t))}const kr={};function Ir(t){kr[t]=void 0}const jr="__sentry_xhr_v3__";function Tr(){if(!yr.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(t,n,e){const r=new Error,o=1e3*ct(),i=A(e[0])?e[0].toUpperCase():void 0,s=function(t){if(A(t))return t;try{return t.toString()}catch{}return}(e[1]);if(!i||!s)return t.apply(n,e);n[jr]={method:i,url:s,request_headers:{}},"POST"===i&&s.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const t=n[jr];if(t&&4===n.readyState){try{t.status_code=n.status}catch(t){}S("xhr",{endTimestamp:1e3*ct(),startTimestamp:o,xhr:n,virtualError:r})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply:(t,n,e)=>(c(),t.apply(n,e))}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(t,n,e){const[r,o]=e,i=n[jr];return i&&A(r)&&A(o)&&(i.request_headers[r.toLowerCase()]=o),t.apply(n,e)}}),t.apply(n,e)}}),t.send=new Proxy(t.send,{apply(t,n,e){const r=n[jr];if(!r)return t.apply(n,e);void 0!==e[0]&&(r.body=e[0]);return S("xhr",{startTimestamp:1e3*ct(),xhr:n}),t.apply(n,e)}})}function Or(t,n=function(t){const n=kr[t];if(n)return n;let e=yr[t];if(qe(e))return kr[t]=e.bind(yr);const r=yr.document;if(r&&"function"==typeof r.createElement)try{const n=r.createElement("iframe");n.hidden=!0,r.head.appendChild(n);const o=n.contentWindow;o?.[t]&&(e=o[t]),r.head.removeChild(n)}catch(t){}return e?kr[t]=e.bind(yr):e}("fetch")){let e=0,r=0;return ge(t,(function(o){const i=o.body.length;e+=i,r++;const s={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:e<=6e4&&r<15,...t.fetchOptions};if(!n)return Ir("fetch"),yt("No fetch implementation available");try{return n(t.url,s).then((t=>(e-=i,r--,{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 Ir("fetch"),e-=i,r--,yt(t)}}))}function Rr(t,n,e,r){const o={filename:t,function:""===n?l:n,in_app:!0};return void 0!==e&&(o.lineno=e),void 0!==r&&(o.colno=r),o}const Cr=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Ar=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Mr=/\((\S*)(?::(\d+))(?::(\d+))\)/,Dr=[30,t=>{const n=Cr.exec(t);if(n){const[,t,e,r]=n;return Rr(t,l,+e,+r)}const e=Ar.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){const t=Mr.exec(e[2]);t&&(e[2]=t[1],e[3]=t[2],e[4]=t[3])}const[t,n]=Jr(e[1]||l,e[2]);return Rr(n,t,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],Nr=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Pr=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Lr=[50,t=>{const n=Nr.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){const t=Pr.exec(n[3]);t&&(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]="")}let t=n[3],e=n[1]||l;return[e,t]=Jr(e,t),Rr(t,e,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],Ur=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Fr=[40,t=>{const n=Ur.exec(t);return n?Rr(n[2],n[1]||l,+n[3],n[4]?+n[4]:void 0):void 0}],Br=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,qr=[10,t=>{const n=Br.exec(t);return n?Rr(n[2],n[3]||l,+n[1]):void 0}],Hr=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Wr=[20,t=>{const n=Hr.exec(t);return n?Rr(n[5],n[3]||n[4]||l,+n[1],+n[2]):void 0}],zr=[Dr,Lr],Gr=p(...zr),Jr=(t,n)=>{const e=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return e||r?[-1!==t.indexOf("@")?t.split("@")[0]:l,e?`safari-extension:${n}`:`safari-web-extension:${n}`]:[t,n]};const Xr=1024,Yr=(t={})=>{const n={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:"Breadcrumbs",setup(t){var e;n.console&&function(t){const n="console";w(n,t),E(n,Ae)}(function(t){return function(n){if(Pt()!==t)return;const e={category:"console",data:{arguments:n.args,logger:"console"},level:Me(n.level),message:J(n.args," ")};if("assert"===n.level){if(!1!==n.args[0])return;e.message=`Assertion failed: ${J(n.args.slice(1)," ")||"console.assert"}`,e.data.arguments=n.args.slice(1)}we(e,{input:n.args,level:n.level})}}(t)),n.dom&&(e=function(t,n){return function(e){if(Pt()!==t)return;let r,o,i="object"==typeof n?n.serializeAttribute:void 0,s="object"==typeof n&&"number"==typeof n.maxStringLength?n.maxStringLength:void 0;s&&s>Xr&&(s=Xr),"string"==typeof i&&(i=[i]);try{const t=e.event,n=function(t){return!!t&&!!t.target}(t)?t.target:t;r=H(n,{keyAttrs:i,maxStringLength:s}),o=function(t){if(!B.HTMLElement)return null;let n=t;for(let t=0;t<5;t++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}(n)}catch(t){r=""}if(0===r.length)return;const c={category:`ui.${e.name}`,message:r};o&&(c.data={"ui.component_name":o}),we(c,{event:e.event,name:e.name,global:e.global})}}(t,n.dom),w("dom",e),E("dom",Er)),n.xhr&&function(t){w("xhr",t),E("xhr",Tr)}(function(t){return function(n){if(Pt()!==t)return;const{startTimestamp:e,endTimestamp:r}=n,o=n.xhr[jr];if(!e||!r||!o)return;const{method:i,url:s,status_code:c,body:u}=o,a={method:i,url:s,status_code:c},f={xhr:n.xhr,input:u,startTimestamp:e,endTimestamp:r},l={category:"xhr",data:a,type:"http",level:Fe(c)};t.emit("beforeOutgoingRequestBreadcrumb",l,f),we(l,f)}}(t)),n.fetch&&We(function(t){return function(n){if(Pt()!==t)return;const{startTimestamp:e,endTimestamp:r}=n;if(r&&(!n.fetchData.url.match(/sentry_key/)||"POST"!==n.fetchData.method))if(n.error){const o=n.fetchData,i={data:n.error,input:n.args,startTimestamp:e,endTimestamp:r},s={category:"fetch",data:o,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",s,i),we(s,i)}else{const o=n.response,i={...n.fetchData,status_code:o?.status},s={input:n.args,response:o,startTimestamp:e,endTimestamp:r},c={category:"fetch",data:i,type:"http",level:Fe(i.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",c,s),we(c,s)}}}(t)),n.history&&$r(function(t){return function(n){if(Pt()!==t)return;let e=n.from,r=n.to;const o=Ue(Ze.location.href);let i=e?Ue(e):void 0;const s=Ue(r);i?.path||(i=o),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),o.protocol===i.protocol&&o.host===i.host&&(e=i.relative),we({category:"navigation",data:{from:e,to:r}})}}(t)),n.sentry&&t.on("beforeSendEvent",function(t){return function(n){Pt()===t&&we({category:"sentry."+("transaction"===n.type?"transaction":"event"),event_id:n.event_id,level:n.level,message:ft(n)},{event:n})}}(t))}}};const Kr=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Vr=(t={})=>{const n={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:"BrowserApiErrors",setupOnce(){n.setTimeout&&K(Ze,"setTimeout",Zr),n.setInterval&&K(Ze,"setInterval",Zr),n.requestAnimationFrame&&K(Ze,"requestAnimationFrame",Qr),n.XMLHttpRequest&&"XMLHttpRequest"in Ze&&K(XMLHttpRequest.prototype,"send",to);const t=n.eventTarget;if(t){(Array.isArray(t)?t:Kr).forEach(no)}}}};function Zr(t){return function(...n){const e=n[0];return n[0]=nr(e,{mechanism:{data:{function:g(t)},handled:!1,type:"instrument"}}),t.apply(this,n)}}function Qr(t){return function(n){return t.apply(this,[nr(n,{mechanism:{data:{function:"requestAnimationFrame",handler:g(t)},handled:!1,type:"instrument"}})])}}function to(t){return function(...n){const e=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in e&&"function"==typeof e[t]&&K(e,t,(function(n){const e={mechanism:{data:{function:t,handler:g(n)},handled:!1,type:"instrument"}},r=Q(n);return r&&(e.mechanism.data.handler=g(r)),nr(n,e)}))})),t.apply(this,n)}}function no(t){const n=Ze,e=n[t]?.prototype;e?.hasOwnProperty?.("addEventListener")&&(K(e,"addEventListener",(function(n){return function(e,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=nr(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:g(r),target:t},handled:!1,type:"instrument"}}))}catch{}return n.apply(this,[e,nr(r,{mechanism:{data:{function:"addEventListener",handler:g(r),target:t},handled:!1,type:"instrument"}}),o])}})),K(e,"removeEventListener",(function(t){return function(n,e,r){try{const o=e.__sentry_wrapped__;o&&t.call(this,n,o,r)}catch(t){}return t.call(this,n,e,r)}})))}const eo=()=>({name:"BrowserSession",setupOnce(){void 0!==Ze.document&&(Vn({ignoreDuration:!0}),te(),$r((({from:t,to:n})=>{void 0!==t&&t!==n&&(Vn({ignoreDuration:!0}),te())})))}}),ro=(t={})=>{const n={onerror:!0,onunhandledrejection:!0,...t};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(t){n.onerror&&function(t){!function(t){const n="error";w(n,t),E(n,x)}((n=>{const{stackParser:e,attachStacktrace:r}=oo();if(Pt()!==t||tr())return;const{msg:o,url:i,line:s,column:c,error:u}=n,a=function(t,n,e,r){const o=t.exception=t.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},c=s.stacktrace=s.stacktrace||{},u=c.frames=c.frames||[],a=r,f=e,d=A(n)&&n.length>0?n:z();0===u.length&&u.push({colno:a,filename:d,function:l,in_app:!0,lineno:f});return t}(dr(e,u||o,void 0,r,!1),i,s,c);a.level="error",Yn(a,{originalException:u,mechanism:{handled:!1,type:"onerror"}})}))}(t),n.onunhandledrejection&&function(t){!function(t){const n="unhandledrejection";w(n,t),E(n,I)}((n=>{const{stackParser:e,attachStacktrace:r}=oo();if(Pt()!==t||tr())return;const o=function(t){if(D(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}(n),i=D(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:dr(e,o,void 0,r,!0);i.level="error",Yn(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(t)}}};function oo(){const t=Pt();return t?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const io=()=>({name:"HttpContext",preprocessEvent(t){if(!Ze.navigator&&!Ze.location&&!Ze.document)return;const n=t.request?.url||z(),{referrer:e}=Ze.document||{},{userAgent:r}=Ze.navigator||{},o={...t.request?.headers,...e&&{Referer:e},...r&&{"User-Agent":r}},i={...t.request,...n&&{url:n},headers:o};t.request=i}}),so=(t={})=>{const n=t.limit||5,e=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,r,o){const i=o.getOptions();Te(er,i.stackParser,i.maxValueLength,e,n,t,r)}}};function co(t){return[Ie(),$e(),Vr(),Yr(),ro(),so(),De(),io(),eo()]}function uo(t){const n={};for(const e of Object.getOwnPropertyNames(t)){const r=e;void 0!==t[r]&&(n[r]=t[r])}return n}const ao={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",graphqlClientIntegration:"graphqlclient",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata"},fo=Ze;return t.BrowserClient=mr,t.SDK_VERSION=e,t.SEMANTIC_ATTRIBUTE_SENTRY_OP=Bt,t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=qt,t.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=Ft,t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=Ut,t.Scope=kt,t.WINDOW=Ze,t.addBreadcrumb=we,t.addEventProcessor=function(t){Mt().addEventProcessor(t)},t.addIntegration=function(t){const n=Pt();n&&n.addIntegration(t)},t.breadcrumbsIntegration=Yr,t.browserApiErrorsIntegration=Vr,t.browserTracingIntegration=Ve,t.captureEvent=Yn,t.captureException=captureException,t.captureFeedback=function(t,n={},e=At()){const{message:r,name:o,email:i,url:s,source:c,associatedEventId:u,tags:a}=t,f={contexts:{feedback:rt({contact_email:i,name:o,message:r,url:s,source:c,associated_event_id:u})},type:"feedback",level:"info",tags:a},l=e?.getClient()||Pt();return l&&l.emit("beforeSendFeedback",f,n),e.captureEvent(f,n)},t.captureMessage=function(t,n){const e="string"==typeof n?n:void 0,r="string"!=typeof n?{captureContext:n}:void 0;return At().captureMessage(t,e,r)},t.captureSession=te,t.chromeStackLineParser=Dr,t.close=async function(t){const n=Pt();return n?n.close(t):Promise.resolve(!1)},t.continueTrace=(t,n)=>{const e=Ct(r());if(e.continueTrace)return e.continueTrace(t,n);const{sentryTrace:o,baggage:i}=t;return Nt((t=>{const e=on(o,i);return t.setPropagationContext(e),n()}))},t.createTransport=ge,t.createUserFeedbackEnvelope=function(t,{metadata:n,tunnel:e,dsn:r}){const o={event_id:t.event_id,sent_at:(new Date).toISOString(),...n?.sdk&&{sdk:{name:n.sdk.name,version:n.sdk.version}},...!!e&&!!r&&{dsn:Sn(r)}},i=function(t){return[{type:"user_report"},t]}(t);return Tn(o,[i])},t.dedupeIntegration=De,t.defaultStackLineParsers=zr,t.defaultStackParser=Gr,t.endSession=Zn,t.eventFiltersIntegration=ke,t.eventFromException=fr,t.eventFromMessage=lr,t.exceptionFromError=er,t.feedbackAsyncIntegration=Ye,t.feedbackIntegration=Ye,t.flush=async function(t){const n=Pt();return n?n.flush(t):Promise.resolve(!1)},t.forceLoad=function(){},t.functionToStringIntegration=$e,t.geckoStackLineParser=Lr,t.getClient=Pt,t.getCurrentScope=At,t.getDefaultIntegrations=co,t.getGlobalScope=Dt,t.getIsolationScope=Mt,t.globalHandlersIntegration=ro,t.httpContextIntegration=io,t.inboundFiltersIntegration=Ie,t.init=function(t={}){const n=function(t={}){return{defaultIntegrations:co(),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Ze.SENTRY_RELEASE?.id,sendClientReports:!0,...uo(t)}}(t);if(!n.skipBrowserExtensionCheck&&function(){const t=void 0!==Ze.window&&Ze;if(!t)return!1;const n=t[t.chrome?"chrome":"browser"],e=n?.runtime?.id,r=z()||"",o=!!e&&Ze===Ze.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some((t=>r.startsWith(`${t}//`))),i=void 0!==t.nw;return!!e&&!o&&!i}())return;const e={...n,stackParser:(r=n.stackParser||Gr,Array.isArray(r)?p(...r):r),integrations:ie(n),transport:n.transport||Or};var r;return function(t,n){!0===n.debug&&u((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),At().update(n.initialScope);const e=new t(n);return de(e),e.init(),e}(mr,e)},t.isInitialized=function(){return!!Pt()},t.lastEventId=Kn,t.lazyLoadIntegration=async function(t,n){const r=ao[t],o=fo.Sentry=fo.Sentry||{};if(!r)throw new Error(`Cannot lazy load integration: ${t}`);const i=o[t];if("function"==typeof i&&!("_isShim"in i))return i;const s=function(t){const n=Pt(),r=n?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${e}/${t}.min.js`,r).toString()}(r),c=Ze.document.createElement("script");c.src=s,c.crossOrigin="anonymous",c.referrerPolicy="strict-origin",n&&c.setAttribute("nonce",n);const u=new Promise(((t,n)=>{c.addEventListener("load",(()=>t())),c.addEventListener("error",n)})),a=Ze.document.currentScript,f=Ze.document.body||Ze.document.head||a?.parentElement;if(!f)throw new Error(`Could not find parent element to insert lazy-loaded ${t} script`);f.appendChild(c);try{await u}catch{throw new Error(`Error when loading integration: ${t}`)}const l=o[t];if("function"!=typeof l)throw new Error(`Could not load integration: ${t}`);return l},t.linkedErrorsIntegration=so,t.makeFetchTransport=Or,t.onLoad=function(t){t()},t.opera10StackLineParser=qr,t.opera11StackLineParser=Wr,t.parameterize=function(t,...n){const e=new String(String.raw(t,...n));return e.__sentry_template_string__=t.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),e.__sentry_template_values__=n,e},t.replayIntegration=function(t){return u((()=>{console.warn("You are using replayIntegration() even though this bundle does not include replay.")})),{name:"Replay",...Ke.reduce(((t,n)=>(t[n]=Je,t)),{})}},t.setContext=function(t,n){Mt().setContext(t,n)},t.setCurrentClient=de,t.setExtra=function(t,n){Mt().setExtra(t,n)},t.setExtras=function(t){Mt().setExtras(t)},t.setTag=function(t,n){Mt().setTag(t,n)},t.setTags=function(t){Mt().setTags(t)},t.setUser=function(t){Mt().setUser(t)},t.showReportDialog=function(t={}){if(!Ze.document)return;const n=At(),e=n.getClient(),r=e?.getDsn();if(!r)return;if(n&&(t.user={...n.getUser(),...t.user}),!t.eventId){const n=Kn();n&&(t.eventId=n)}const o=Ze.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=function(t,n){const e=xn(t);if(!e)return"";const r=`${ee(e)}embed/error-page/`;let o=`dsn=${Sn(e)}`;for(const t in n)if("dsn"!==t&&"onClose"!==t)if("user"===t){const t=n.user;if(!t)continue;t.name&&(o+=`&name=${encodeURIComponent(t.name)}`),t.email&&(o+=`&email=${encodeURIComponent(t.email)}`)}else o+=`&${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`;return`${r}?${o}`}(r,t),t.onLoad&&(o.onload=t.onLoad);const{onClose:i}=t;if(i){const t=n=>{if("__sentry_reportdialog_closed__"===n.data)try{i()}finally{Ze.removeEventListener("message",t)}};Ze.addEventListener("message",t)}const s=Ze.document.head||Ze.document.body;s&&s.appendChild(o)},t.spanToBaggageHeader=function(t){return nn(wn(t))},t.spanToJSON=dn,t.spanToTraceHeader=function(t){const{traceId:n,spanId:e}=t.spanContext();return function(t=_t(),n=wt(),e){let r="";return void 0!==e&&(r=e?"-1":"-0"),`${t}-${n}${r}`}(n,e,hn(t))},t.startSession=Vn,t.suppressTracing=function(t){const n=Ct(r());return n.suppressTracing?n.suppressTracing(t):Nt((n=>(n.setSDKProcessingMetadata({__SENTRY_SUPPRESS_TRACING__:!0}),t())))},t.updateSpanName=function(t,n){t.updateName(n),t.setAttributes({[Ut]:"custom","sentry.custom_span_name":n})},t.winjsStackLineParser=Fr,t.withIsolationScope=function(...t){const n=Ct(r());if(2===t.length){const[e,r]=t;return e?n.withSetIsolationScope(e,r):n.withIsolationScope(r)}return n.withIsolationScope(t[0])},t.withScope=Nt,t}({}); //# sourceMappingURL=bundle.min.js.map