PageSourceSearch

https://app.vest.investments/build/_shared/chunk-XS4APR5F.js

js vest.investments collected 2026-10-02 15:24:05 UTC 79,597 bytes, 24 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="13494008-e7d6-59e7-bda9-50bc5a36af0c")}catch(e){}}();
3import{c as Jo}from"/build/_shared/chunk-QWR3AV6U.js";import{a as sr}from"/build/_shared/chunk-GKOVIXKZ.js";import{d as ir,e as Fe}from"/build/_shared/chunk-3WC5IHJS.js";var ar=Object.prototype.toString;function ot(e){switch(ar.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return W(e,Error)}}function ht(e,t){return ar.call(e)===`[object ${t}]`}function _t(e){return ht(e,"ErrorEvent")}function ne(e){return ht(e,"DOMError")}function Le(e){return ht(e,"DOMException")}function k(e){return ht(e,"String")}function Et(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function it(e){return e===null||Et(e)||typeof e!="object"&&typeof e!="function"}function B(e){return ht(e,"Object")}function st(e){return typeof Event<"u"&&W(e,Event)}function Me(e){return typeof Element<"u"&&W(e,Element)}function Be(e){return ht(e,"RegExp")}function q(e){return Boolean(e&&e.then&&typeof e.then=="function")}function Ue(e){return B(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function He(e){return typeof e=="number"&&e!==e}function W(e,t){try{return e instanceof t}catch{return!1}}function Dt(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function Y(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function re(e,t){if(!Array.isArray(e))return"";let n=[];for(let r=0;r<e.length;r++){let o=e[r];try{Dt(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function cr(e,t,n=!1){return k(e)?Be(t)?t.test(e):k(t)?n?e===t:e.includes(t):!1:!1}function St(e,t=[],n=!1){return t.some(r=>cr(e,r,n))}function At(e,t,n=250,r,o,i,s){if(!i.exception||!i.exception.values||!s||!W(s.originalException,Error))return;let a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=Xo($e(e,t,o,s.originalException,r,i.exception.values,a,0),n))}function $e(e,t,n,r,o,i,s,a){if(i.length>=n+1)return i;let c=[...i];if(W(r[o],Error)){ur(s,a);let u=e(t,r[o]),f=c.length;pr(u,o,f,a),c=$e(e,t,n,r[o],o,[u,...c],u,f)}return Array.isArray(r.errors)&&r.errors.forEach((u,f)=>{if(W(u,Error)){ur(s,a);let l=e(t,u),_=c.length;pr(l,`errors[${f}]`,_,a),c=$e(e,t,n,u,o,[l,...c],l,_)}}),c}function ur(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function pr(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Xo(e,t){return e.map(n=>(n.value&&(n.value=Y(n.value,t)),n))}function oe(e){return e&&e.Math==Math?e:void 0}var m=typeof globalThis=="object"&&oe(globalThis)||typeof window=="object"&&oe(window)||typeof self=="object"&&oe(self)||typeof globalThis=="object"&&oe(globalThis)||function(){return this}()||{};function at(){return m}function wt(e,t,n){let r=n||m,o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=t())}var Ge=at(),Zo=80;function Pt(e,t={}){if(!e)return"<unknown>";try{let n=e,r=5,o=[],i=0,s=0,a=" > ",c=a.length,u,f=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||Zo;for(;n&&i++<r&&(u=Qo(n,f),!(u==="html"||i>1&&s+o.length*c+u.length>=l));)o.push(u),s+=u.length,n=n.parentNode;return o.reverse().join(a)}catch{return"<unknown>"}}function Qo(e,t){let n=e,r=[],o,i,s,a,c;if(!n||!n.tagName)return"";if(Ge.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());let u=t&&t.length?t.filter(l=>n.getAttribute(l)).map(l=>[l,n.getAttribute(l)]):null;if(u&&u.length)u.forEach(l=>{r.push(`[${l[0]}="${l[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&k(o))for(i=o.split(/\s+/),c=0;c<i.length;c++)r.push(`.${i[c]}`);let f=["aria-label","type","name","title","alt"];for(c=0;c<f.length;c++)s=f[c],a=n.getAttribute(s),a&&r.push(`[${s}="${a}"]`);return r.join("")}function je(){try{return Ge.document.location.href}catch{return""}}function qe(e){if(!Ge.HTMLElement)return null;let t=e,n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}var z=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var ti="Sentry Logger ",Ft=["debug","info","warn","error","log","assert","trace"],yt={};function et(e){if(!("console"in m))return e();let t=m.console,n={},r=Object.keys(yt);r.forEach(o=>{let i=yt[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function ei(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return z?Ft.forEach(n=>{t[n]=(...r)=>{e&&et(()=>{m.console[n](`${ti}[${n}]:`,...r)})}}):Ft.forEach(n=>{t[n]=()=>{}}),t}var p=ei();var ni=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ri(e){return e==="http"||e==="https"}function F(e,t=!1){let{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${s}`}function fr(e){let t=ni.exec(e);if(!t){et(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,o="",i,s="",a]=t.slice(1),c="",u=a,f=u.split("/");if(f.length>1&&(c=f.slice(0,-1).join("/"),u=f.pop()),u){let l=u.match(/^\d+/);l&&(u=l[0])}return lr({host:i,pass:o,path:c,projectId:u,port:s,protocol:n,publicKey:r})}function lr(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function oi(e){if(!z)return!0;let{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(p.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?ri(r)?t&&isNaN(parseInt(t,10))?(p.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(p.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(p.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Lt(e){let t=typeof e=="string"?fr(e):lr(e);if(!(!t||!oi(t)))return t}
vendor: 6,410 bytes, lines 3-7
3var C=class extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}};function S(e,t,n){if(!(t in e))return;let r=e[t],o=n(r);typeof o=="function"&&ie(o,r),e[t]=o}function J(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{z&&p.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function ie(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,J(e,"__sentry_original__",t)}catch{}}function ct(e){return e.__sentry_original__}function Ye(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function se(e){if(ot(e))return{message:e.message,name:e.name,stack:e.stack,...mr(e)};if(st(e)){let t={type:e.type,target:dr(e.target),currentTarget:dr(e.currentTarget),...mr(e)};return typeof CustomEvent<"u"&&W(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function dr(e){try{return Me(e)?Pt(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function mr(e){if(typeof e=="object"&&e!==null){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function ze(e,t=40){let n=Object.keys(se(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Y(n[0],t);for(let r=n.length;r>0;r--){let o=n.slice(0,r).join(", ");if(!(o.length>t))return r===n.length?o:Y(o,t)}return""}function N(e){return We(e,new Map)}function We(e,t){if(ii(e)){let n=t.get(e);if(n!==void 0)return n;let r={};t.set(e,r);for(let o of Object.keys(e))typeof e[o]<"u"&&(r[o]=We(e[o],t));return r}if(Array.isArray(e)){let n=t.get(e);if(n!==void 0)return n;let r=[];return t.set(e,r),e.forEach(o=>{r.push(We(o,t))}),r}return e}function ii(e){if(!B(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}var _r=50,gr=/\(error: (.*)\)/,hr=/captureMessage|captureException/;function ae(...e){let t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{let o=[],i=n.split(`
4`);for(let s=r;s<i.length;s++){let a=i[s];if(a.length>1024)continue;let c=gr.test(a)?a.replace(gr,"$1"):a;if(!c.match(/\S*Error: /)){for(let u of t){let f=u(c);if(f){o.push(f);break}}if(o.length>=_r)break}}return Er(o)}}function Ke(e){return Array.isArray(e)?ae(...e):e}function Er(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),hr.test(t[t.length-1].function||"")&&(t.pop(),hr.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,_r).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}var Ve="<anonymous>";function L(e){try{return!e||typeof e!="function"?Ve:e.name||Ve}catch{return Ve}}var ce={},Sr={};function D(e,t){ce[e]=ce[e]||[],ce[e].push(t)}function A(e,t){Sr[e]||(t(),Sr[e]=!0)}function x(e,t){let n=e&&ce[e];if(n)for(let r of n)try{r(t)}catch(o){z&&p.error(`Error while triggering instrumentation handler.
5Type: ${e}
6Name: ${L(r)}
7Error:`,o)}}function Je(e){let t="console";D(t,e),A(t,si)}function si(){"console"in m&&Ft.forEach(function(e){e in m.console&&S(m.console,e,function(t){return yt[e]=t,function(...n){x("console",{args:n,level:e});let o=yt[e];o&&o.apply(m.console,n)}})})}function T(){let e=m,t=e.crypto||e.msCrypto,n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{let r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function yr(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function U(e){let{message:t,event_id:n}=e;if(t)return t;let r=yr(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Tt(e,t,n){let r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function X(e,t){let n=yr(e);if(!n)return;let r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...t},t&&"data"in t){let i={...o&&o.data,...t.data};n.mechanism.data=i}}function ue(e){if(e&&e.__sentry_captured__)return!0;try{J(e,"__sentry_captured__",!0)}catch{}return!1}function Mt(e){return Array.isArray(e)?e:[e]}var It=m,ai=1e3,Tr,Xe,Ze;function Qe(e){let t="dom";D(t,e),A(t,ci)}function ci(){if(!It.document)return;let e=x.bind(null,"dom"),t=Ir(e,!0);It.document.addEventListener("click",t,!1),It.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{let r=It[n]&&It[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(S(r,"addEventListener",function(o){return function(i,s,a){if(i==="click"||i=="keypress")try{let c=this,u=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},f=u[i]=u[i]||{refCount:0};if(!f.handler){let l=Ir(e);f.handler=l,o.call(this,i,l,a)}f.refCount++}catch{}return o.call(this,i,s,a)}}),S(r,"removeEventListener",function(o){return function(i,s,a){if(i==="click"||i=="keypress")try{let c=this,u=c.__sentry_instrumentation_handlers__||{},f=u[i];f&&(f.refCount--,f.refCount<=0&&(o.call(this,i,f.handler,a),f.handler=void 0,delete u[i]),Object.keys(u).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return o.call(this,i,s,a)}}))})}function ui(e){if(e.type!==Xe)return!1;try{if(!e.target||e.target._sentryId!==Ze)return!1}catch{}return!0}function pi(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Ir(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=fi(n);if(pi(n.type,r))return;J(n,"_sentryCaptured",!0),r&&!r._sentryId&&J(r,"_sentryId",T());let o=n.type==="keypress"?"input":n.type;ui(n)||(e({event:n,name:o,global:t}),Xe=n.type,Ze=r?r._sentryId:void 0),clearTimeout(Tr),Tr=It.setTimeout(()=>{Ze=void 0,Xe=void 0},ai)}}function fi(e){try{return e.target}catch{return null}}var tn=at();function pe(){if(!("fetch"in tn))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Bt(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function en(){if(typeof EdgeRuntime=="string")return!0;if(!pe())return!1;if(Bt(tn.fetch))return!0;let e=!1,t=tn.document;if(t&&typeof t.createElement=="function")try{let n=t.createElement("iframe");
7n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Bt(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){z&&p.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function rn(e){let t="fetch";D(t,e),A(t,li)}function li(){en()&&S(m,"fetch",function(e){return function(...t){let{method:n,url:r}=di(t),o={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return x("fetch",{...o}),e.apply(m,t).then(i=>{let s={...o,endTimestamp:Date.now(),response:i};return x("fetch",s),i},i=>{let s={...o,endTimestamp:Date.now(),error:i};throw x("fetch",s),i})}})}function nn(e,t){return!!e&&typeof e=="object"&&!!e[t]}function xr(e){return typeof e=="string"?e:e?nn(e,"url")?e.url:e.toString?e.toString():"":""}function di(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){let[n,r]=e;return{url:xr(n),method:nn(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:xr(t),method:nn(t,"method")?String(t.method).toUpperCase():"GET"}}var fe=null;function on(e){let t="error";D(t,e),A(t,mi)}function mi(){fe=m.onerror,m.onerror=function(e,t,n,r,o){return x("error",{column:r,error:o,line:n,msg:e,url:t}),fe&&!fe.__SENTRY_LOADER__?fe.apply(this,arguments):!1},m.onerror.__SENTRY_INSTRUMENTED__=!0}var le=null;function sn(e){let t="unhandledrejection";D(t,e),A(t,gi)}function gi(){le=m.onunhandledrejection,m.onunhandledrejection=function(e){return x("unhandledrejection",e),le&&!le.__SENTRY_LOADER__?le.apply(this,arguments):!0},m.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var de=at();function br(){let e=de.chrome,t=e&&e.app&&e.app.runtime,n="history"in de&&!!de.history.pushState&&!!de.history.replaceState;return!t&&n}var Ut=m,me;function Ht(e){let t="history";D(t,e),A(t,hi)}function hi(){if(!br())return;let e=Ut.onpopstate;Ut.onpopstate=function(...n){let r=Ut.location.href,o=me;if(me=r,x("history",{from:o,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){let o=r.length>2?r[2]:void 0;if(o){let i=me,s=String(o);me=s,x("history",{from:i,to:s})}return n.apply(this,r)}}S(Ut.history,"pushState",t),S(Ut.history,"replaceState",t)}var _i=m,ut="__sentry_xhr_v3__";function an(e){let t="xhr";D(t,e),A(t,Ei)}function Ei(){if(!_i.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;S(e,"open",function(t){return function(...n){let r=Date.now(),o=k(n[0])?n[0].toUpperCase():void 0,i=Si(n[1]);if(!o||!i)return t.apply(this,n);this[ut]={method:o,url:i,request_headers:{}},o==="POST"&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let s=()=>{let a=this[ut];if(a&&this.readyState===4){try{a.status_code=this.status}catch{}let c={args:[o,i],endTimestamp:Date.now(),startTimestamp:r,xhr:this};x("xhr",c)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?S(this,"onreadystatechange",function(a){return function(...c){return s(),a.apply(this,c)}}):this.addEventListener("readystatechange",s),S(this,"setRequestHeader",function(a){return function(...c){let[u,f]=c,l=this[ut];return l&&k(u)&&k(f)&&(l.request_headers[u.toLowerCase()]=f),a.apply(this,c)}}),t.apply(this,n)}}),S(e,"send",function(t){return function(...n){let r=this[ut];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);let o={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return x("xhr",o),t.apply(this,n)}})}function Si(e){if(k(e))return e;try{return e.toString()}catch{}}function cn(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function un(){return"npm"}function pn(){return!cn()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function vr(){let e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(o){if(e)return t.has(o)?!0:(t.add(o),!1);for(let i=0;i<t.length;i++)if(t[i]===o)return!0;return t.push(o),!1}function r(o){if(e)t.delete(o);else for(let i=0;i<t.length;i++)if(t[i]===o){t.splice(i,1);break}}return[n,r]}function H(e,t=100,n=1/0){try{return ge("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function he(e,t=3,n=100*1024){let r=H(e,t);return xi(r)>n?he(e,t-1,n):r}function ge(e,t,n=1/0,r=1/0,o=vr()){let[i,s]=o;if(t==null||["number","boolean","string"].includes(typeof t)&&!He(t))return t;let a=yi(e,t);if(!a.startsWith("[object "))return a;
7if(t.__sentry_skip_normalization__)return t;let c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(i(t))return"[Circular ~]";let u=t;if(u&&typeof u.toJSON=="function")try{let d=u.toJSON();return ge("",d,c-1,r,o)}catch{}let f=Array.isArray(t)?[]:{},l=0,_=se(t);for(let d in _){if(!Object.prototype.hasOwnProperty.call(_,d))continue;if(l>=r){f[d]="[MaxProperties ~]";break}let R=_[d];f[d]=ge(d,R,c-1,r,o),l++}return s(t),f}function yi(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof globalThis<"u"&&t===globalThis)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Dt(t))return"[VueViewModel]";if(Ue(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${L(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;let n=Ti(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Ti(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Ii(e){return~-encodeURI(e).split(/%..|./).length}function xi(e){return Ii(JSON.stringify(e))}var Z;(function(e){e[e.PENDING=0]="PENDING";let n=1;e[e.RESOLVED=n]="RESOLVED";let r=2;e[e.REJECTED=r]="REJECTED"})(Z||(Z={}));function $(e){return new y(t=>{t(e)})}function pt(e){return new y((t,n)=>{n(e)})}var y=class{constructor(t){y.prototype.__init.call(this),y.prototype.__init2.call(this),y.prototype.__init3.call(this),y.prototype.__init4.call(this),this._state=Z.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new y((r,o)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(s){o(s)}},i=>{if(!n)o(i);else try{r(n(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new y((n,r)=>{let o,i;return this.then(s=>{i=!1,o=s,t&&t()},s=>{i=!0,o=s,t&&t()}).then(()=>{if(i){r(o);return}n(o)})})}__init(){this._resolve=t=>{this._setResult(Z.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Z.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Z.PENDING){if(q(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Z.PENDING)return;let t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Z.RESOLVED&&n[1](this._value),this._state===Z.REJECTED&&n[2](this._value),n[0]=!0)})}}};function fn(e){let t=[];function n(){return e===void 0||t.length<e}function r(s){return t.splice(t.indexOf(s),1)[0]}function o(s){if(!n())return pt(new C("Not adding Promise because buffer limit was reached."));let a=s();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function i(s){return new y((a,c)=>{let u=t.length;if(!u)return a(!0);let f=setTimeout(()=>{s&&s>0&&a(!1)},s);t.forEach(l=>{$(l).then(()=>{--u||(clearTimeout(f),a(!0))},c)})})}return{$:t,add:o,drain:i}}function $t(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}var Rr=["fatal","error","warning","log","info","debug"];function ln(e){return e==="warn"?"warning":Rr.includes(e)?e:"log"}var Cr=1e3;function V(){return Date.now()/Cr}function bi(){let{performance:e}=m;if(!e||!e.now)return V;let t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/Cr}var xt=bi();var Gt,vi=(()=>{let{performance:e}=m;if(!e||!e.now){Gt="none";return}let t=3600*1e3,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,s=e.timing&&e.timing.navigationStart,c=typeof s=="number"?Math.abs(s+n-r):t,u=c<t;return i||u?o<=c?(Gt="timeOrigin",e.timeOrigin):(Gt="navigationStart",s):(Gt="dateNow",r)}
7)();function M(e,t=[]){return[e,t]}function mn(e,t){let[n,r]=e;return[n,[...r,t]]}function _e(e,t){let n=e[1];for(let r of n){let o=r[0].type;if(t(r,o))return!0}return!1}function dn(e,t){return(t||new TextEncoder).encode(e)}function gn(e,t){let[n,r]=e,o=JSON.stringify(n);function i(s){typeof o=="string"?o=typeof s=="string"?o+s:[dn(o,t),s]:o.push(typeof s=="string"?dn(s,t):s)}for(let s of r){let[a,c]=s;if(i(`
8${JSON.stringify(a)}
9`),typeof c=="string"||c instanceof Uint8Array)i(c);else{let u;try{u=JSON.stringify(c)}catch{u=JSON.stringify(H(c))}i(u)}}return typeof o=="string"?o:Ri(o)}function Ri(e){let t=e.reduce((o,i)=>o+i.length,0),n=new Uint8Array(t),r=0;for(let o of e)n.set(o,r),r+=o.length;return n}function hn(e,t){let n=typeof e.data=="string"?dn(e.data,t):e.data;return[N({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}var Ci={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 Ee(e){return Ci[e]}function Se(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function _n(e,t,n,r){let o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:F(r)},...o&&{trace:N({...o})}}}function En(e,t,n){let r=[{type:"client_report"},{timestamp:n||V(),discarded_events:e}];return M(t?{dsn:t}:{},[r])}function Or(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}function Nr(e,t){return e[t]||e.all||0}function Sn(e,t,n=Date.now()){return Nr(e,t)>n}function yn(e,{statusCode:t,headers:n},r=Date.now()){let o={...e},i=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(i)for(let a of i.trim().split(",")){let[c,u,,,f]=a.split(":",5),l=parseInt(c,10),_=(isNaN(l)?60:l)*1e3;if(!u)o.all=r+_;else for(let d of u.split(";"))d==="metric_bucket"?(!f||f.split(";").includes("custom"))&&(o[d]=r+_):o[d]=r+_}else s?o.all=r+Or(s,r):t===429&&(o.all=r+60*1e3);return o}function kr(e,t){return e(t.stack||"",1)}function Tn(e,t){let n={type:t.name||t.constructor.name,value:t.message},r=kr(e,t);return r.length&&(n.stacktrace={frames:r}),n}function jt(e){let t,n=e[0],r=1;for(;r<e.length;){let o=e[r],i=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...s)=>n.call(t,...s)),t=void 0)}return n}var h=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var nt="production";function qt(){return wt("globalEventProcessors",()=>[])}function In(e){qt().push(e)}function bt(e,t,n,r=0){return new y((o,i)=>{let s=e[r];if(t===null||typeof s!="function")o(t);else{let a=s({...t},n);h&&s.id&&a===null&&p.log(`Event processor "${s.id}" dropped event`),q(a)?a.then(c=>bt(e,c,n,r+1).then(o)).then(null,i):bt(e,a,n,r+1).then(o).then(null,i)}})}function ye(e){let t=xt(),n={sid:T(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Oi(n)};return e&&G(n,e),n}function G(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||xt(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:T()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{let n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),t
vendor: 11,237 bytes, line 9
9ypeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Te(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),G(e,n)}function Oi(e){return N({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}var Ni=1;function xn(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:s,tags:a,origin:c}=j(e);return N({data:r,op:o,parent_span_id:i,span_id:t,status:s,tags:a,trace_id:n,origin:c})}function j(e){return ki(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function ki(e){return typeof e.getSpanJSON=="function"}function bn(e){let{traceFlags:t}=e.spanContext();return Boolean(t&Ni)}function Ar(e,t,n,r,o,i){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||T(),timestamp:t.timestamp||V()},u=n.integrations||e.integrations.map(O=>O.name);Di(c,e),Pi(c,u),t.type===void 0&&Ai(c,e.stackParser);let f=Li(r,n.captureContext);n.mechanism&&X(c,n.mechanism);let l=o&&o.getEventProcessors?o.getEventProcessors():[],_=Pr().getScopeData();if(i){let O=i.getScopeData();vn(_,O)}if(f){let O=f.getScopeData();vn(_,O)}let d=[...n.attachments||[],..._.attachments];d.length&&(n.attachments=d),Ie(c,_);let R=[...l,...qt(),..._.eventProcessors];return bt(R,c,n).then(O=>(O&&wi(O),typeof s=="number"&&s>0?Fi(O,s,a):O))}function Di(e,t){let{environment:n,release:r,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:nt),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&o!==void 0&&(e.dist=o),e.message&&(e.message=Y(e.message,i));let s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=Y(s.value,i));let a=e.request;a&&a.url&&(a.url=Y(a.url,i))}var Dr=new WeakMap;function Ai(e,t){let n=m._sentryDebugIds;if(!n)return;let r,o=Dr.get(t);o?r=o:(r=new Map,Dr.set(t,r));let i=Object.keys(n).reduce((s,a)=>{let c,u=r.get(a);u?c=u:(c=t(a),r.set(a,c));for(let f=c.length-1;f>=0;f--){let l=c[f];if(l.filename){s[l.filename]=n[a];break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=i[a.filename])})})}catch{}}function wi(e){let t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function Pi(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Fi(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:H(o.data,t,n)}}))},...e.user&&{user:H(e.user,t,n)},...e.contexts&&{contexts:H(e.contexts,t,n)},...e.extra&&{extra:H(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=H(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>{let i=j(o).data;return i&&(o.data=H(i,t,n)),o})),r}function Li(e,t){if(!t)return e;let n=e?e.clone():new w;return n.update(t),n}function wr(e){if(e)return Mi(e)?{captureContext:e}:Ui(e)?{captureContext:e}:e}function Mi(e){return e instanceof w||typeof e=="function"}var Bi=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Ui(e){return Object.keys(e).some(t=>Bi.includes(t))}function vt(e,t){return b().captureException(e,wr(t))}function Wt(e,t){return b().captureEvent(e,t)}function K(e,t){b().addBreadcrumb(e,t)}function ft(...e){let t=b();if(e.length===2){let[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function Fr(){return b().lastEventId()}function E(){return b().getClient()}function P(){return b().getScope()}function Yt(e){let t=E(),n=lt(),r=P(),{release:o,environment:i=nt}=t&&t.getOptions()||{},{userAgent:s}=m.navigator||{},a=ye({release:o,environment:i,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),c=n.getSession();return c&&c.status==="ok"&&G(c,{status:"exited"}),xe(),n.setSession(a),r.setSession(a),a}function xe(){let e=lt(),t=P(),n=t.getSession()||e.getSession();n&&Te(n),Lr(),e.setSession(),t.setSession()}function Lr(){let e=lt(),t=P(),n=E(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function zt(e=!1){if(e){xe();return}Lr()}function dt(e){return e.transaction}function Rn(e,t,n){let r=t.getOptions(),{publicKey:o}=t.getDsn()||{},{segment:i}=n&&n.getUser()||{},s=N({environment:r.environment||nt,release:r.release,user_segment:i,public_key:o,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function Mr(e){let t=E();if(!t)return{};let n=Rn(j(e).trace_id||"",t,P()),r=dt(e);if(!r)return n;let o=r&&r._frozenDynamicSamplingContext;if(o)return o;let{sampleRate:i,source:s}=r.metadata;i!=null&&(n.sample_rate=`${i}`);let a=j(r);return s&&s!=="url"&&(n.transaction=a.description),n.sampled=String(bn(r)),t.emit&&t.emit("createDsc",n),n}function Ie(e,t){let{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;$i(e,t),r&&qi(e,r),Wi(e,n),Gi(e,o),ji(e,i)}function vn(e,t){let{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:f,attachments:l,propagationContext:_,transactionName:d,span:R}=t;Vt(e,"extra",n),Vt(e,"tags",r),Vt(e,"user",o),Vt(e,"contexts",i),Vt(e,"sdkProcessingMetadata",a),s&&(e.level=s),d&&(e.transactionName=d),R&&(e.span=R),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),l.length&&(e.attachments=[...e.attachments,...l]),e.propagationContext={...e.propagationContext,..._}}function Vt(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(let r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function $i(e,t){let{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:a}=t,c=N(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});let u=N(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});let f=N(o);f&&Object.keys(f).length&&(e.user={...f,...e.user});let l=N(i);l&&Object.keys(l).length&&(e.contexts={...l,...e.contexts}),s&&(e.level=s),a&&(e.transaction=a)}function Gi(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function ji(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function qi(e,t){e.contexts={trace:xn(t),...e.contexts};let n=dt(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Mr(t),...e.sdkProcessingMetadata};let r=j(n).description;r&&(e.tags={transaction:r,...e.tags})}}function Wi(e,t){e.fingerprint=e.fingerprint?Mt(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}var Yi=100,Cn,w=class{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Br()}static clone(t){return t?t.clone():new w}clone(){let t=new w;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&&G(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,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},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,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let 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;let n=typeof t=="function"?t(this):t;if(n instanceof w){let r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(B(n)){let r=t;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.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=Br(),this}addBreadcrumb(t,n){let r=typeof n=="number"?n:Yi;if(r<=0)return this;let o={timestamp:V(),...t},i=this._breadcrumbs;return i.push(o),this._breadcrumbs=i.length>r?i.slice(-r):i,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}
9getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){let{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:o,_extra:i,_user:s,_level:a,_fingerprint:c,_eventProcessors:u,_propagationContext:f,_sdkProcessingMetadata:l,_transactionName:_,_span:d}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:o,extra:i,user:s,level:a,fingerprint:c||[],eventProcessors:u,propagationContext:f,sdkProcessingMetadata:l,transactionName:_,span:d}}applyToEvent(t,n={},r=[]){Ie(t,this.getScopeData());let o=[...r,...qt(),...this._eventProcessors];return bt(o,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){let r=n&&n.event_id?n.event_id:T();if(!this._client)return p.warn("No client configured on scope - will not capture exception!"),r;let o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureMessage(t,n,r){let o=r&&r.event_id?r.event_id:T();if(!this._client)return p.warn("No client configured on scope - will not capture message!"),o;let i=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o},this),o}captureEvent(t,n){let r=n&&n.event_id?n.event_id:T();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(p.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}};function Pr(){return Cn||(Cn=new w),Cn}function Br(){return{traceId:T(),spanId:T().substring(16)}}var Rt="7.120.4";var Ur=parseFloat(Rt),zi=100,Ct=class{constructor(t,n,r,o=Ur){this._version=o;let i;n?i=n:(i=new w,i.setClient(t));let s;r?s=r:(s=new w,s.setClient(t)),this._stack=[{scope:i}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version<t}bindClient(t){let n=this.getStackTop();n.client=t,n.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){let t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){let n=this.pushScope(),r;try{r=t(n)}catch(o){throw this.popScope(),o}return q(r)?r.then(o=>(this.popScope(),o),o=>{throw this.popScope(),o}):(this.popScope(),r)}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,n){let r=this._lastEventId=n&&n.event_id?n.event_id:T(),o=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:o,...n,event_id:r}),r}captureMessage(t,n,r){let o=this._lastEventId=r&&r.event_id?r.event_id:T(),i=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o}),o}captureEvent(t,n){let r=n&&n.event_id?n.event_id:T();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){let{scope:r,client:o}=this.getStackTop();if(!o)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:s=zi}=o.getOptions&&o.getOptions()||{};if(s<=0)return;let c={timestamp:V(),...t},u=i?et(()=>i(c,n)):c;u!==null&&(o.emit&&o.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,s))}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,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}
vendor: 7,162 bytes, lines 9-13
9setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){let{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){let n=be(this);try{t(this)}finally{be(n)}}getIntegration(t){let n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return h&&p.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){let r=this._callExtensionMethod("startTransaction",t,n);return h&&!r&&(this.getClient()?p.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
10Sentry.addTracingExtensions();
11Sentry.init({...});
12`):p.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){let n=this.getStackTop().scope,r=n.getSession();r&&Te(r),this._sendSessionUpdate(),n.setSession()}startSession(t){let{scope:n,client:r}=this.getStackTop(),{release:o,environment:i=nt}=r&&r.getOptions()||{},{userAgent:s}=m.navigator||{},a=ye({release:o,environment:i,user:n.getUser(),...s&&{userAgent:s},...t}),c=n.getSession&&n.getSession();return c&&c.status==="ok"&&G(c,{status:"exited"}),this.endSession(),n.setSession(a),a}shouldSendDefaultPii(){let t=this.getClient(),n=t&&t.getOptions();return Boolean(n&&n.sendDefaultPii)}_sendSessionUpdate(){let{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){let o=Jt().__SENTRY__;if(o&&o.extensions&&typeof o.extensions[t]=="function")return o.extensions[t].apply(this,n);h&&p.warn(`Extension method ${t} couldn't be found, doing nothing.`)}};function Jt(){return m.__SENTRY__=m.__SENTRY__||{extensions:{},hub:void 0},m}function be(e){let t=Jt(),n=Kt(t);return On(t,e),n}function b(){let e=Jt();if(e.__SENTRY__&&e.__SENTRY__.acs){let t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return Vi(e)}function lt(){return b().getIsolationScope()}function Vi(e=Jt()){return(!Ki(e)||Kt(e).isOlderThan(Ur))&&On(e,new Ct),Kt(e)}function Ki(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Kt(e){return wt("hub",()=>new Ct,e)}function On(e,t){if(!e)return!1;let n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function mt(){return P().getSpan()}var Xt="sentry.source";var Nn={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3};function Ji(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function Hr(e,t,n,r){let o=Se(n),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:F(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return M(i,[s])}function $r(e,t,n,r){let o=Se(n),i=e.type&&e.type!=="replay_event"?e.type:"event";Ji(e,n&&n.sdk);let s=_n(e,o,r,t);return delete e.sdkProcessingMetadata,M(s,[[{type:i},e]])}var Xi="7";function Gr(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Zi(e){return`${Gr(e)}${e.projectId}/envelope/`}function Qi(e,t){return Ye({sentry_key:e.publicKey,sentry_version:Xi,...t&&{sentry_client:`${t.name}/${t.version}`}})}function kn(e,t={}){let n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${Zi(e)}?${Qi(e,r)}`}function Dn(e,t){let n=Lt(e);if(!n)return"";let r=`${Gr(n)}embed/error-page/`,o=`dsn=${F(n)}`;for(let i in t)if(i!=="dsn"&&i!=="onClose")if(i==="user"){let s=t.user;if(!s)continue;s.name&&(o+=`&name=${encodeURIComponent(s.name)}`),s.email&&(o+=`&email=${encodeURIComponent(s.email)}`)}else o+=`&${encodeURIComponent(i)}=${encodeURIComponent(t[i])}`;return`${r}?${o}`}var jr=[];function ts(e){let t={};return e.forEach(n=>{let{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function An(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=Mt(n(t)):r=t;let o=ts(r),i=es(o,s=>s.name==="Debug");if(i!==-1){let[s]=o.splice(i,1);o.push(s)}return o}function qr(e,t){let n={};return t.forEach(r=>{r&&Pn(e,r,n)}),n}function wn(e,t){for(let n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Pn(e,t,n){if(n[t.name]){h&&p.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,jr.indexOf(t.name)===-1&&(t.setupOnce(In,b),jr.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,i)=>r(o,i,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){let r=t.processEvent.bind(t),o=(i,s)=>r(i,s,e);o.id=t.name,e.addEventProcessor(o)}h&&p.log(`Integration installed: ${t.name}`)}function es(e,t){for(let n=0;n<e.length;n++)if(t(e[n])===!0)return n;return-1}function I(e,t){let n=function(...o){return t(...o)};return n.id=e,n}function Wr(e){let t="";for(let n of e){let r=Object.entries(n.tags),o=r.length>0?`|#${r.map(([i,s])=>`${i}:${s}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${o}|T${n.timestamp}
13`}return t}function Yr(e,t,n,r){let o={sent_at:new Date().toISOString()};n&&n.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(o.dsn=F(t));let i=ns(e);return M(o,[i])}function ns(e){let t=Wr(e);return[{type:"statsd",length:t.length},t]}var zr="Not capturing exception because it's already been captured.",Zt=class{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Lt(t.dsn):h&&p.warn("No DSN provided, client will not send events."),this._dsn){let n=kn(this._dsn,t);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){if(ue(t)){h&&p.log(zr);return}let o=n&&n.event_id;return this._process(this.eventFromException(t,n).then(i=>this._captureEvent(i,n,r)).then(i=>{o=i})),o}captureMessage(t,n,r,o){let i=r&&r.event_id,s=Et(t)?t:String(t),a=it(t)?this.eventFromMessage(s,n,r):this.eventFromException(t,r);return this._process(a.then(c=>this._captureEvent(c,r,o)).then(c=>{i=c})),i}captureEvent(t,n,r){if(n&&n.originalException&&ue(n.originalException)){h&&p.log(zr);return}let o=n&&n.event_id,s=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,n,s||r).then(a=>{o=a})),o}captureSession(t){typeof t.release!="string"?h&&p.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),G(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){let n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isCl
13ientDoneProcessing(t).then(r=>n.flush(t).then(o=>r&&o))):$(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}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{return h&&p.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){let n=this._integrations[t.name];Pn(this,t,this._integrations),n||wn(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=$r(t,this._dsn,this._options._metadata,this._options.tunnel);for(let i of n.attachments||[])r=mn(r,hn(i,this._options.transportOptions&&this._options.transportOptions.textEncoder));let o=this._sendEnvelope(r);o&&o.then(i=>this.emit("afterSendEvent",t,i),null)}sendSession(t){let n=Hr(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){let o=typeof r=="number"?r:1,i=`${t}:${n}`;h&&p.log(`Recording outcome: "${i}"${o>1?` (${o} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+o}}captureAggregateMetrics(t){h&&p.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);let n=Yr(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_setupIntegrations(){let{integrations:t}=this._options;this._integrations=qr(this,t),wn(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,n){let r=!1,o=!1,i=n.exception&&n.exception.values;if(i){o=!0;for(let c of i){let u=c.mechanism;if(u&&u.handled===!1){r=!0;break}}}let s=t.status==="ok";(s&&t.errors===0||s&&r)&&(G(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new y(n=>{let r=0,o=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(!0)):(r+=o,t&&r>=t&&(clearInterval(i),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,o=lt()){let i=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",t,n),Ar(i,t,n,r,this,o).then(a=>{if(a===null)return a;let c={...o.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(a.contexts&&a.contexts.trace)&&c){let{traceId:f,spanId:l,parentSpanId:_,dsc:d}=c;a.contexts={trace:{trace_id:f,span_id:l,parent_span_id:_},...a.contexts};let R=d||Rn(f,this,r);a.sdkProcessingMetadata={dynamicSamplingContext:R,...a.sdkProcessingMetadata}}return a})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(o=>o.event_id,o=>{if(h){let i=o;i.logLevel==="log"?p.log(i.message):p.warn(i)}})}_processEvent(t,n,r){let o=this.getOptions(),{sampleRate:i}=o,s=Kr(t),a=Vr(t),c=t.type||"error",u=`before send for type \`${c}\``;if(a&&typeof i=="number"&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),pt(new C(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let f=c==="replay_event"?"replay":c,_=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,_).then(d=>{if(d===null)throw this.recordDroppedEvent("event_processor",f,t),new C("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return d;let kt=os(o,d,n);return rs(kt,u)}).then(d=>{if(d===null){if(this.recordDroppedEvent("before_send",f,t),s){let Pe=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",Pe)}throw new C(`${u} returned \`null\`, will not send event.`,"log")}let R=r&&r.getSession();if(!s&&R&&this._updateSessionFromEvent(R,d),s){let O=d.sdkProcessingMetadata&&d.sdkProcessingMetadata.spanCountBeforeProcessing||0,Pe=d.spans?d.spans.length:0,or=O-Pe;or>0&&this.recordDroppedEvent("before_send","span",or)}let kt=d.transaction_info;if(s&&kt&&d.transaction!==t.transaction){let O="custom";d.transaction_info={...kt,source:O}}return this.sendEvent(d,n),d}).then(null,d=>{throw d instanceof C?d:(this.captureException(d,{data:{__sentry__:!0},originalException:d}),new C(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
14Reason: ${d}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}
14_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{h&&p.error("Error while sending event:",n)});h&&p.error("Transport disabled")}_clearOutcomes(){let t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{let[r,o]=n.split(":");return{reason:r,category:o,quantity:t[n]}})}};function rs(e,t){let n=`${t} must return \`null\` or a valid event.`;if(q(e))return e.then(r=>{if(!B(r)&&r!==null)throw new C(n);return r},r=>{throw new C(`${t} rejected with ${r}`)});if(!B(e)&&e!==null)throw new C(n);return e}function os(e,t,n){let{beforeSend:r,beforeSendTransaction:o}=e;if(Vr(t)&&r)return r(t,n);if(Kr(t)&&o){if(t.spans){let i=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:i}}return o(t,n)}return t}function Vr(e){return e.type===void 0}function Kr(e){return e.type==="transaction"}function Fn(e,t){t.debug===!0&&(h?p.enable():et(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),P().update(t.initialScope);let r=new e(t);Ln(r),is(r)}function Ln(e){let n=b().getStackTop();n.client=e,n.scope.setClient(e)}function is(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}var ss=30;function Ot(e,t,n=fn(e.bufferSize||ss)){let r={},o=s=>n.drain(s);function i(s){let a=[];if(_e(s,(l,_)=>{let d=Ee(_);if(Sn(r,d)){let R=Jr(l,_);e.recordDroppedEvent("ratelimit_backoff",d,R)}else a.push(l)}),a.length===0)return $();let c=M(s[0],a),u=l=>{_e(c,(_,d)=>{let R=Jr(_,d);e.recordDroppedEvent(l,Ee(d),R)})},f=()=>t({body:gn(c,e.textEncoder)}).then(l=>(l.statusCode!==void 0&&(l.statusCode<200||l.statusCode>=300)&&h&&p.warn(`Sentry responded with status code ${l.statusCode} to sent event.`),r=yn(r,l),l),l=>{throw u("network_error"),l});return n.add(f).then(l=>l,l=>{if(l instanceof C)return h&&p.error("Skipped sending event because buffer is full."),u("queue_overflow"),$();throw l})}return i.__sentry__baseTransport__=!0,{send:i,flush:o}}function Jr(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function gt(e,t,n=[t],r="npm"){let o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(i=>({name:`${r}:@sentry/${i}`,version:Rt})),version:Rt}),e._metadata=o}var as=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],cs=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Xr="InboundFilters",us=(e={})=>({name:Xr,setupOnce(){},processEvent(t,n,r){let o=r.getOptions(),i=ps(e,o);return fs(t,i)?null:t}}),Qt=us,Re=I(Xr,Qt);function ps(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:as],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:cs],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function fs(e,t){return t.ignoreInternal&&_s(e)?(h&&p.warn(`Event dropped due to being internal Sentry Error.
15Event: ${U(e)}`),!0):ls(e,t.ignoreErrors)?(h&&p.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
16Event: ${U(e)}`),!0):ds(e,t.ignoreTransactions)?(h&&p.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
17Event: ${U(e)}`),!0):ms(e,t.denyUrls)?(h&&p.warn(`Event dropped due to being matched by \`denyUrls\` option.
18Event: ${U(e)}.
19Url: ${ve(e)}`),!0):gs(e,t.allowUrls)?!1:(h&&p.warn(`Event dropped due to not being matched by \`allowUrls\` option.
20Event: ${U(e)}.
21Url: ${ve(e)}`),!0)}function ls(e,t){return e.type||!t||!t.length?!1:hs(e).some(n=>St(n,t))}function ds(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;let n=e.transaction;return n?St(n,t):!1}function ms(e,t){if(!t||!t.length)return!1;let n=ve(e);return n?St(n,t):!1}function gs(e,t){if(!t||!t.length)return!0;let n=ve(e);return n?St(n,t):!0}function hs(e){let t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),h&&t.length===0&&p.error(`Could not extract message for event ${U(e)}`),t}function _s(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function Es(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function ve(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Es(t):null}catch{return h&&p.error(`Cannot extract url for event ${U(e)}`),null}}var Zr,to="FunctionToString",Qr=new WeakMap,Ss=()=>({name:to,setupOnce(){Zr=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=ct(this),n=Qr.has(E())&&t!==void 0?t:this;return Zr.apply(n,e)}}catch{}},setup(e){Qr.set(e,!0)}}),te=Ss,Ce=I(to,te);var ys="cause",Ts=5,eo="LinkedErrors",Is=(e={})=>{let t=e.limit||Ts,n=e.key||ys;return{name:eo,setupOnce(){},preprocessEvent(r,o,i){let s=i.getOptions();At(Tn,s.stackParser,s.maxValueLength,n,t,r,o)}}},xs=Is,no=I(eo,xs);var Mn={};ir(Mn,{FunctionToString:()=>Ce,InboundFilters:()=>Re,LinkedErrors:()=>no});var ro=Mn;var oo=["localhost",/^\/(?!\/)/],Bn={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:oo,tracePropagationTargets:oo};var _d={...Nn,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
vendor: 5,008 bytes, line 21
21dSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...Bn};function Oe(e,t){if(!e.emit)return;e.emit("startNavigationSpan",t);let n=mt();return(n&&j(n).op)==="navigation"?n:void 0}var g=m,Un=0;function Hn(){return Un>0}function Zs(){Un++,setTimeout(()=>{Un--})}function rt(e,t={},n){if(typeof e!="function")return e;try{let o=e.__sentry_wrapped__;if(o)return typeof o=="function"?o:e;if(ct(e))return e}catch{return e}let r=function(){let o=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);let i=o.map(s=>rt(s,t));return e.apply(this,i)}catch(i){throw Zs(),ft(s=>{s.addEventProcessor(a=>(t.mechanism&&(Tt(a,void 0,void 0),X(a,t.mechanism)),a.extra={...a.extra,arguments:o},a)),vt(i)}),i}};try{for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch{}ie(r,e),J(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}var v=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function jn(e,t){let n=qn(e,t),r={type:t&&t.name,value:na(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Qs(e,t,n,r){let o=E(),i=o&&o.getOptions().normalizeDepth,s={exception:{values:[{type:st(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:ra(t,{isUnhandledRejection:r})}]},extra:{__serialized__:he(t,i)}};if(n){let a=qn(e,n);a.length&&(s.exception.values[0].stacktrace={frames:a})}return s}function $n(e,t){return{exception:{values:[jn(e,t)]}}}function qn(e,t){let n=t.stacktrace||t.stack||"",r=ea(t);try{return e(n,r)}catch{}return[]}var ta=/Minified React error #\d+;/i;function ea(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(ta.test(e.message))return 1}return 0}function na(e){let t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function so(e,t,n,r){let o=n&&n.syntheticException||void 0,i=Ne(e,t,o,r);return X(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),$(i)}function ao(e,t,n="info",r,o){let i=r&&r.syntheticException||void 0,s=Gn(e,t,i,o);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),$(s)}function Ne(e,t,n,r,o){let i;if(_t(t)&&t.error)return $n(e,t.error);if(ne(t)||Le(t)){let s=t;if("stack"in t)i=$n(e,t);else{let a=s.name||(ne(s)?"DOMError":"DOMException"),c=s.message?`${a}: ${s.message}`:a;i=Gn(e,c,n,r),Tt(i,c)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}return ot(t)?$n(e,t):B(t)||st(t)?(i=Qs(e,t,n,o),X(i,{synthetic:!0}),i):(i=Gn(e,t,n,r),Tt(i,`${t}`,void 0),X(i,{synthetic:!0}),i)}function Gn(e,t,n,r){let o={};if(r&&n){let i=qn(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]})}if(Et(t)){let{__sentry_template_string__:i,__sentry_template_values__:s}=t;return o.logentry={message:i,params:s},o}return o.message=t,o}function ra(e,{isUnhandledRejection:t}){let n=ze(e),r=t?"promise rejection":"exception";return _t(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:st(e)?`Event \`${oa(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function oa(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function co(e,{metadata:t,tunnel:n,dsn:r}){let o={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:F(r)}},i=ia(e);return M(o,[i])}function ia(e){return[{type:"user_report"},e]}var ke=class extends Zt{constructor(t){let n=g.SENTRY_SDK_SOURCE||un();gt(t,"browser",["browser"],n),super(t),t.sendClientReports&&g.document&&g.document.addEventListener("visibilitychange",()=>{g.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return so(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return ao(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){v&&p.warn("SDK not enabled, will not capture user feedback.");return}let n=co(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){let t=this._clearOutcomes();if(t.length===0){v&&p.log("No outcomes to send");return}if(!this._dsn){v&&p.log("No dsn provided, will not send outcomes");return}v&&p.log("Sending outcomes:",t);let n=En(t,this._options.tunnel&&F(this._dsn));this._sendEnvelope(n)}};var ee;function uo(){if(ee)return ee;if(Bt(g.fetch))return ee=g.fetch.bind(g);let e=g.document,t=g.fetch;if(e&&typeof e.createElement=="function")try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);let r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){v&&p.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n
21)}return ee=t.bind(g)}function po(){ee=void 0}function fo(e,t=uo()){let n=0,r=0;function o(i){let s=i.body.length;n+=s,r++;let a={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,a).then(c=>(n-=s,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return po(),n-=s,r--,pt(c)}}return Ot(e,o)}var sa=4;function lo(e){function t(n){return new y((r,o)=>{let i=new XMLHttpRequest;i.onerror=o,i.onreadystatechange=()=>{i.readyState===sa&&r({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url);for(let s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&i.setRequestHeader(s,e.headers[s]);i.send(n.body)})}return Ot(e,t)}var De="?";var aa=30,ca=40,ua=50;function Wn(e,t,n,r){let o={filename:e,function:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}var pa=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,fa=/\((\S*)(?::(\d+))(?::(\d+))\)/,la=e=>{let t=pa.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){let i=fa.exec(t[2]);i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3])}let[r,o]=go(t[1]||De,t[2]);return Wn(o,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},da=[aa,la],ma=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ga=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ha=e=>{let t=ma.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let i=ga.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],o=t[1]||De;return[o,r]=go(o,r),Wn(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},_a=[ua,ha],Ea=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Sa=e=>{let t=Ea.exec(e);return t?Wn(t[2],t[1]||De,+t[3],t[4]?+t[4]:void 0):void 0},ya=[ca,Sa];var Ta=[da,_a,ya],mo=ae(...Ta),go=(e,t)=>{let n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:De,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var Ae=1024,ho="Breadcrumbs",Ia=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:ho,setupOnce(){},setup(n){t.console&&Je(va(n)),t.dom&&Qe(ba(n,t.dom)),t.xhr&&an(Ra(n)),t.fetch&&rn(Ca(n)),t.history&&Ht(Oa(n)),t.sentry&&n.on&&n.on("beforeSendEvent",xa(n))}}},Yn=Ia,_o=I(ho,Yn);function xa(e){return function(n){E()===e&&K({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:U(n)},{event:n})}}function ba(e,t){return function(r){if(E()!==e)return;let o,i,s=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>Ae&&(v&&p.warn(`\`dom.maxStringLength\` cannot exceed ${Ae}, but a value of ${a} was configured. Sentry will use ${Ae} instead.`),a=Ae),typeof s=="string"&&(s=[s]);try{let u=r.event,f=Na(u)?u.target:u;o=Pt(f,{keyAttrs:s,maxStringLength:a}),i=qe(f)}catch{o="<unknown>"}if(o.length===0)return;let c={category:`ui.${r.name}`,message:o};i&&(c.data={"ui.component_name":i}),K(c,{event:r.event,name:r.name,global:r.global})}}function va(e){return function(n){if(E()!==e)return;let r={category:"console",data:{arguments:n.args,logger:"console"},level:ln(n.level),message:re(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${re(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;K(r,{input:n.args,level:n.level})}}function Ra(e){return function(n){if(E()!==e)return;let{startTimestamp:r,endTimestamp:o}=n,i=n.xhr[ut];if(!r||!o||!i)return;let{method:s,url:a,status_code:c,body:u}=i,f={method:s,url:a,status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:o};K({category:"xhr",data:f,type:"http"},l)}}function Ca(e){return function(n){if(E()!==e)return;let{startTimestamp:r,endTimestamp:o}=n;
vendor: 5,106 bytes, line 21
21if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){let i=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:o};K({category:"fetch",data:i,level:"error",type:"http"},s)}else{let i=n.response,s={...n.fetchData,status_code:i&&i.status},a={input:n.args,response:i,startTimestamp:r,endTimestamp:o};K({category:"fetch",data:s,type:"http"},a)}}}function Oa(e){return function(n){if(E()!==e)return;let r=n.from,o=n.to,i=$t(g.location.href),s=r?$t(r):void 0,a=$t(o);(!s||!s.path)&&(s=i),i.protocol===a.protocol&&i.host===a.host&&(o=a.relative),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),K({category:"navigation",data:{from:r,to:o}})}}function Na(e){return!!e&&!!e.target}var yo="Dedupe",ka=()=>{let e;return{name:yo,setupOnce(){},processEvent(t){if(t.type)return t;try{if(Da(t,e))return v&&p.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},zn=ka,To=I(yo,zn);function Da(e,t){return t?!!(Aa(e,t)||wa(e,t)):!1}function Aa(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!xo(e,t)||!Io(e,t))}function wa(e,t){let n=Eo(t),r=Eo(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!xo(e,t)||!Io(e,t))}function Io(e,t){let n=So(e),r=So(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o<r.length;o++){let i=r[o],s=n[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function xo(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function Eo(e){return e.exception&&e.exception.values&&e.exception.values[0]}function So(e){let t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}var vo="GlobalHandlers",Pa=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:vo,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Fa(n),bo("onerror")),t.onunhandledrejection&&(La(n),bo("onunhandledrejection"))}}},Vn=Pa,Ro=I(vo,Vn);function Fa(e){on(t=>{let{stackParser:n,attachStacktrace:r}=Oo();if(E()!==e||Hn())return;let{msg:o,url:i,line:s,column:a,error:c}=t,u=c===void 0&&k(o)?Ua(o,i,s,a):Co(Ne(n,c||o,void 0,r,!1),i,s,a);u.level="error",Wt(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function La(e){sn(t=>{let{stackParser:n,attachStacktrace:r}=Oo();if(E()!==e||Hn())return;let o=Ma(t),i=it(o)?Ba(o):Ne(n,o,void 0,r,!0);i.level="error",Wt(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Ma(e){if(it(e))return e;let t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function Ba(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Ua(e,t,n,r){let o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,i=_t(e)?e.message:e,s="Error",a=i.match(o);return a&&(s=a[1],i=a[2]),Co({exception:{values:[{type:s,value:i}]}},t,n,r)}function Co(e,t,n,r){let o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,f=isNaN(parseInt(n,10))?void 0:n,l=k(t)&&t.length>0?t:je();return c.length===0&&c.push({colno:u,filename:l,function:"?",in_app:!0,lineno:f}),e}function bo(e){v&&p.log(`Global Handler attached: ${e}`)}function Oo(){let e=E();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}var No="HttpContext",Ha=()=>({name:No,setupOnce(){},preprocessEvent(e){if(!g.navigator&&!g.location&&!g.document)return;let t=e.request&&e.request.url||g.location&&g.location.href,{referrer:n}=g.document||{},{userAgent:r}=g.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...e.request,...t&&{url:t},headers:o};e.request=i}}),Kn=Ha,ko=I(No,Kn);var $a="cause",Ga=5,Do="LinkedErrors",ja=(e={})=>{let t=e.limit||Ga,n=e.key||$a;return{name:Do,setupOnce(){},preprocessEvent(r,o,i){let s=i.getOptions();At(jn,s.stackParser,s.maxValueLength,n,t,r,o)}}},Jn=ja,Ao=I(Do,Jn);var qa=["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"],Po="TryCatch",Wa=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Po,setupOnce(){t.setTimeout&&S(g,"setTimeout",wo),t.setInterval&&S(g,"setInterval",wo),t.requestAnimationFrame&&S(g,"requestAnimationFrame",Ya),t.XMLHttpRequest&&"XMLHttpRequest"in g&&S(XMLHttpRequest.prototype,"send",za);let n=t.eventTarget;
21n&&(Array.isArray(n)?n:qa).forEach(Va)}}},Xn=Wa,Fo=I(Po,Xn);function wo(e){return function(...t){let n=t[0];return t[0]=rt(n,{mechanism:{data:{function:L(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Ya(e){return function(t){return e.apply(this,[rt(t,{mechanism:{data:{function:"requestAnimationFrame",handler:L(e)},handled:!1,type:"instrument"}})])}}function za(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&S(n,o,function(i){let s={mechanism:{data:{function:o,handler:L(i)},handled:!1,type:"instrument"}},a=ct(i);return a&&(s.mechanism.data.handler=L(a)),rt(i,s)})}),e.apply(this,t)}}function Va(e){let t=g,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(S(n,"addEventListener",function(r){return function(o,i,s){try{typeof i.handleEvent=="function"&&(i.handleEvent=rt(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:L(i),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[o,rt(i,{mechanism:{data:{function:"addEventListener",handler:L(i),target:e},handled:!1,type:"instrument"}}),s])}}),S(n,"removeEventListener",function(r){return function(o,i,s){let a=i;try{let c=a&&a.__sentry_wrapped__;c&&r.call(this,o,c,s)}catch{}return r.call(this,o,a,s)}}))}var Lo=[Qt(),te(),Xn(),Yn(),Vn(),Jn(),zn(),Kn()];function Mo(e){return[...Lo]}function Zn(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=Mo()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),g.SENTRY_RELEASE&&g.SENTRY_RELEASE.id&&(e.release=g.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);let t={...e,stackParser:Ke(e.stackParser||mo),integrations:An(e),transport:e.transport||(pe()?fo:lo)};Fn(ke,t),e.autoSessionTracking&&Ka()}var we=(e={},t=b())=>{if(!g.document){v&&p.error("Global document not defined in showReportDialog call");return}let{client:n,scope:r}=t.getStackTop(),o=e.dsn||n&&n.getDsn();if(!o){v&&p.error("DSN not configured for showReportDialog call");return}r&&(e.user={...r.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());let i=g.document.createElement("script");i.async=!0,i.crossOrigin="anonymous",i.src=Dn(o,e),e.onLoad&&(i.onload=e.onLoad);let{onClose:s}=e;if(s){let c=u=>{if(u.data==="__sentry_reportdialog_closed__")try{s()}finally{g.removeEventListener("message",c)}};g.addEventListener("message",c)}let a=g.document.head||g.document.body;a?a.appendChild(i):v&&p.error("Not injecting report dialog. No injection point found in HTML")};function Ka(){if(typeof g.document>"u"){v&&p.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}Yt({ignoreDuration:!0}),zt(),Ht(({from:e,to:t})=>{e!==void 0&&e!==t&&(Yt({ignoreDuration:!0}),zt())})}var Qn={};ir(Qn,{Breadcrumbs:()=>_o,Dedupe:()=>To,GlobalHandlers:()=>Ro,HttpContext:()=>ko,LinkedErrors:()=>Ao,TryCatch:()=>Fo});var Bo={};g.Sentry&&g.Sentry.Integrations&&(Bo=g.Sentry.Integrations);var sg={...Bo,...ro,...Qn};function tr(e){let t={...e};gt(t,"react"),Zn(t)}var Go=Fe(Jo()),tt=Fe(sr());var Uo=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var Ho="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/errorboundary.tsx";function Ja(e){let t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}var Xa="unknown",$o={componentStack:null,error:null,eventId:null};function Za(e,t){let n=new WeakMap;function r(o,i){if(!n.has(o)){if(o.cause)return n.set(o,!0),r(o.cause,i);o.cause=i}}r(e,t)}var Nt=class extends tt.Component{constructor(t){super(t),Nt.prototype.__init.call(this),this.state=$o,this._openFallbackReportDialog=!0;let n=E();n&&n.on&&t.showDialog&&(this._openFallbackReportDialog=!1,n.on("afterSendEvent",r=>{!r.type&&r.event_id===this._lastEventId&&we({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,{componentStack:n}){let{beforeCapture:r,onError:o,showDialog:i,dialogOptions:s}=this.props;ft(a=>{if(Ja(tt.version)&&ot(t)){let u=new Error(t.message);u.name=`React ErrorBoundary ${t.name}`,u.stack=n,Za(t,u)}r&&r(a,t,n);let c=vt(t,{captureContext:{contexts:{react:{componentStack:n}}},mechanism:{handled:!!this.props.fallback}});o&&o(t,n,c),i&&(this._lastEventId=c,this._openFallbackReportDialog&&we({...s,eventId:c})),this.setState({error:t,componentStack:n,eventId:c})})}componentDidMount(){let{onMount:t}=this.props;t&&t()}componentWillUnmount(){let{error:t,componentStack:n,eventId:r}=this.state,{onUnmount:o}=this.props;o&&o(t,n,r)}__init(){this.resetErrorBoundary=()=>{let{onReset:t}=this.props,{error:n,componentStack:r,eventId:o}=this.state;t&&t(n,r,o),this.setState($o)}}render(){let{fallback:t,children:n}=this.props,r=this.state;if(r.error){let o;return typeof t=="function"?o=t({error:r.error,componentStack:r.componentStack,resetError:this.resetErrorBoundary,eventId:r.eventId}):o=t,tt.isValidElement(o)?o:(t&&Uo&&p.warn("fallback did not produce a valid ReactElement"),null)}return typeof n=="function"?n():n}};function er(e,t){let n=e.displayName||e.name||Xa,r=o=>tt.createElement(Nt,{...t,__self:this,__source:{fileName:Ho,lineNumber:240}},tt.createElement(e,{...o,__self:this,__source:{fileName:Ho,lineNumber:241}}));return r.displayName=`errorBoundary(${n})`,(0,Go.default)(r,e),r}var rr=Fe(sr());var jo=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function qo(){let e=m;if(e.__remixContext)return e.__remixContext.future}function Wo(){return jt([m,"access",t=>t.__remixContext,"optionalAccess",t=>t.state,"optionalAccess",t=>t.loaderData,"optionalAccess",t=>t.root,"optionalAccess",t=>t.remixVersion])}var Yo="/home/runner/work/sentry-javascript/sentry-javascript/packages/remix/src/client/performance.tsx",Qa={"routing.instrumentation":"remix-router"},nr,zo,Vo,Ko,tc;function ec(e){return e===2||jt([qo,"call",t=>t(),"optionalAccess",t=>t.v2_errorBoundary])||!1}function nc(e){let t={name:e[e.length-1].id,op:"navigation",origin:"auto.navigation.remix",tags:Qa,metadata:{source:"route"}};if(Ko)Ko(t);else{let n=E();if(!n)return;Oe(n,t)}}function rc(e,t={wrapWithErrorBoundary:!0,errorBoundaryOptions:{}}){return r=>{if(!nr||!zo||!Vo)return jo&&!pn()&&p.warn("Remix SDK was unable to wrap your root because of one or more missing parameters."),rr.createElement(e,{...r,__self:this,__source:{fileName:Yo,lineNumber:181}});let o=!1,i=zo(),s=Vo();return nr(()=>{let a=mt();if(a&&s&&s.length){let c=dt(a);c&&(c.updateName(s[s.length-1].id),c.setAttribute(Xt,"route"))}o=!0},[]),nr(()=>{let a=mt();if(o){a&&a.end();return}tc&&s&&s.length&&(a&&a.end(),nc(s))},[i]),o=!1,!ec(Wo())&&t.wrapWithErrorBoundary?er(e,t.errorBoundaryOptions)(r):rr.createElement(e,{...r,__self:this,__source:{fileName:Yo,lineNumber:233}}
21)}}function Mg(e){let t={...e,environment:e.environment||"production"};gt(t,"remix",["remix","react"]),tr(t),P().setTag("runtime","browser")}export{vt as a,Wt as b,K as c,Fr as d,rc as e,Mg as f};
22//# sourceMappingURL=/build/_shared/chunk-XS4APR5F.js.map
23
24//# debugId=13494008-e7d6-59e7-bda9-50bc5a36af0c

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.