PageSourceSearch

https://cdp-prod-us-base-hydra-assets-us.customer.io/assets/sentry-D0Yklwyq.js

js customer.io collected 2026-09-24 07:30:39 UTC 131,372 bytes, 6 lines download raw bytes

1try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`b8bf21f5-cced-45c7-a45f-bc462c7b7efc`,e._sentryDebugIdIdentifier=`sentry-dbid-b8bf21f5-cced-45c7-a45f-bc462c7b7efc`)}catch{}import{o as e}from"./_sentry-release-injection-file-BIr0W1zm.js";import{n as t}from"./jsx-runtime-zj0ecbIi.js";var n=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,r=globalThis,i=`9.47.1`;function a(){return o(r),r}function o(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`9.47.1`,t[i]=t[`9.47.1`]||{}}function s(e,t,n=r){let a=n.__SENTRY__=n.__SENTRY__||{},o=a[i]=a[`9.47.1`]||{};return o[e]||(o[e]=t())}var c=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],l=`Sentry Logger `,u={};function d(e){if(!(`console`in r))return e();let t=r.console,n={},i=Object.keys(u);i.forEach(e=>{let r=u[e];n[e]=t[e],t[e]=r});try{return e()}finally{i.forEach(e=>{t[e]=n[e]})}}function f(){re().enabled=!0}function p(){re().enabled=!1}function m(){return re().enabled}function ee(...e){ne(`log`,...e)}function h(...e){ne(`warn`,...e)}function te(...e){ne(`error`,...e)}function ne(e,...t){n&&m()&&d(()=>{r.console[e](`${l}[${e}]:`,...t)})}function re(){return n?s(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var g={enable:f,disable:p,isEnabled:m,log:ee,warn:h,error:te},ie=50,ae=/\(error: (.*)\)/,oe=/captureMessage|captureException/;function se(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let i=[],a=e.split(`
2`);for(let e=n;e<a.length;e++){let n=a[e];if(n.length>1024)continue;let o=ae.test(n)?n.replace(ae,`$1`):n;if(!o.match(/\S*Error: /)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=ie+r)break}}return le(i.slice(r))}}function ce(e){return Array.isArray(e)?se(...e):e}function le(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(ue(t).function||``)&&t.pop(),t.reverse(),oe.test(ue(t).function||``)&&(t.pop(),oe.test(ue(t).function||``)&&t.pop()),t.slice(0,ie).map(e=>({...e,filename:e.filename||ue(t).filename,function:e.function||`?`}))}function ue(e){return e[e.length-1]||{}}var de=`<anonymous>`;function _(e){try{return!e||typeof e!=`function`?de:e.name||de}catch{return de}}function fe(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}var pe={},me={};function v(e,t){pe[e]=pe[e]||[],pe[e].push(t)}function y(e,t){if(!me[e]){me[e]=!0;try{t()}catch(t){n&&g.error(`Error while instrumenting ${e}`,t)}}}function b(e,t){let r=e&&pe[e];if(r)for(let i of r)try{i(t)}catch(t){n&&g.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${_(i)}\nError:`,t)}}var he=null;function ge(e){let t=`error`;v(t,e),y(t,_e)}function _e(){he=r.onerror,r.onerror=function(e,t,n,r,i){return b(`error`,{column:r,error:i,line:n,msg:e,url:t}),he?he.apply(this,arguments):!1},r.onerror.__SENTRY_INSTRUMENTED__=!0}var ve=null;function ye(e){let t=`unhandledrejection`;v(t,e),y(t,be)}function be(){ve=r.onunhandledrejection,r.onunhandledrejection=function(e){return b(`unhandledrejection`,e),ve?ve.apply(this,arguments):!0},r.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var xe=Object.prototype.toString;function Se(e){switch(xe.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return S(e,Error)}}function Ce(e,t){return xe.call(e)===`[object ${t}]`}function we(e){return Ce(e,`ErrorEvent`)}function Te(e){return Ce(e,`DOMError`)}function Ee(e){return Ce(e,`DOMException`)}function x(e){return Ce(e,`String`)}function De(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function Oe(e){return e===null||De(e)||typeof e!=`object`&&typeof e!=`function`}function ke(e){return Ce(e,`Object`)}function Ae(e){return typeof Event<`u`&&S(e,Event)}function je(e){return typeof Element<`u`&&S(e,Element)}function Me(e){return Ce(e,`RegExp`)}function Ne(e){return!!(e?.then&&typeof e.then==`function`)}function Pe(e){return ke(e)&&`nativeEvent`in e&&`preventDefault`in e&&`stopPropagation`in e}function S(e,t){try{return e instanceof t}catch{return!1}}function Fe(e){return!!(typeof e==`object`&&e&&(e.__isVue||e._isVue))}function Ie(e){return typeof Request<`u`&&S(e,Request)}var Le=r,Re=80;function C(e,t={}){if(!e)return`<unknown>`;try{let n=e,r=[],i=0,a=0,o,s=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||Re;for(;n&&i++<5&&(o=ze(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=n.parentNode;return r.reverse().join(` > `)}catch{return`<unknown>`}}function ze(e,t){let n=e,r=[];if(!n?.tagName)return``;if(Le.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());let i=t?.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;
2if(i?.length)i.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let e=n.className;if(e&&x(e)){let t=e.split(/\s+/);for(let e of t)r.push(`.${e}`)}}for(let e of[`aria-label`,`type`,`name`,`title`,`alt`]){let t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join(``)}function Be(){try{return Le.document.location.href}catch{return``}}function Ve(e){if(!Le.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function He(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Ue(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{Fe(r)?n.push(`[VueViewModel]`):n.push(String(r))}catch{n.push(`[value cannot be serialized]`)}}return n.join(t)}function We(e,t,n=!1){return x(e)?Me(t)?t.test(e):x(t)?n?e===t:e.includes(t):!1:!1}function w(e,t=[],n=!1){return t.some(t=>We(e,t,n))}function T(e,t,r){if(!(t in e))return;let i=e[t];if(typeof i!=`function`)return;let a=r(i);typeof a==`function`&&Ge(a,i);try{e[t]=a}catch{n&&g.log(`Failed to replace method "${t}" in object`,e)}}function E(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{n&&g.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Ge(e,t){try{e.prototype=t.prototype=t.prototype||{},E(e,`__sentry_original__`,t)}catch{}}function Ke(e){return e.__sentry_original__}function qe(e){if(Se(e))return{message:e.message,name:e.name,stack:e.stack,...Ye(e)};if(Ae(e)){let t={type:e.type,target:Je(e.target),currentTarget:Je(e.currentTarget),...Ye(e)};return typeof CustomEvent<`u`&&S(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Je(e){try{return je(e)?C(e):Object.prototype.toString.call(e)}catch{return`<unknown>`}}function Ye(e){if(typeof e==`object`&&e){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Xe(e,t=40){let n=Object.keys(qe(e));n.sort();let r=n[0];if(!r)return`[object has no keys]`;if(r.length>=t)return He(r,t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(`, `);if(!(r.length>t))return e===n.length?r:He(r,t)}return``}function Ze(){let e=r;return e.crypto||e.msCrypto}function D(e=Ze()){let t=()=>Math.random()*16;try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,``);e?.getRandomValues&&(t=()=>{let t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch{}return`10000000100040008000100000000000`.replace(/[018]/g,e=>(e^(t()&15)>>e/4).toString(16))}function Qe(e){return e.exception?.values?.[0]}function $e(e){let{message:t,event_id:n}=e;if(t)return t;let r=Qe(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function et(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||=t||``,a.type||=n||`Error`}function tt(e,t){let n=Qe(e);if(!n)return;let r={type:`generic`,handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&`data`in t){let e={...i?.data,...t.data};n.mechanism.data=e}}function nt(e){if(rt(e))return!0;try{E(e,`__sentry_captured__`,!0)}catch{}return!1}function rt(e){try{return e.__sentry_captured__}catch{}}var it=1e3;function at(){return Date.now()/it}function ot(){let{performance:e}=r;if(!e?.now||!e.timeOrigin)return at;let t=e.timeOrigin;return()=>(t+e.now())/it}var st;function O(){return(st??=ot())()}var ct;function lt(){let{performance:e}=r;if(!e?.now)return[void 0,`none`];let t=3600*1e3,n=e.now(),i=Date.now(),a=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,o=a<t,s=e.timing?.navigationStart,c=typeof s==`number`?Math.abs(s+n-i):t;return o||c<t?a<=c?[e.timeOrigin,`timeOrigin`]:[s,`navigationStart`]:[i,`dateNow`]}function k(){return ct||=lt(),ct[0]}function ut(e){let t=O(),n={sid:D(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>pt(n)};return e&&dt(n,e),n}function dt(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||O(),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:D()),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 t=e.timestamp-e.started;e.duration=t>=0?t: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
2ypeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function ft(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),dt(e,n)}function pt(e){return{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}}}function mt(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=mt(r[e],t[e],n-1));return r}function A(){return D()}function ht(){return D().substring(16)}var gt=`_sentrySpan`;function _t(e,t){t?E(e,gt,t):delete e[gt]}function vt(e){return e[gt]}var yt=100,bt=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:A(),sampleRand:Math.random()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,_t(t,vt(this)),t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&dt(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t==`function`?t(this):t,{tags:r,extra:i,user:a,contexts:o,level:s,fingerprint:c=[],propagationContext:l}=(n instanceof e?n.getScopeData():ke(n)?t:void 0)||{};return this._tags={...this._tags,...r},this._extra={...this._extra,...i},this._contexts={...this._contexts,...o},a&&Object.keys(a).length&&(this._user=a),s&&(this._level=s),c.length&&(this._fingerprint=c),l&&(this._propagationContext=l),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._session=void 0,_t(this,void 0),this._attachments=[],this.setPropagationContext({traceId:A(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:yt;if(n<=0)return this;let r={timestamp:at(),...e,message:e.message?He(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent(`buffer_overflow`,`log_item`)),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:vt(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=mt(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let r=t?.event_id||D();if(!this._client)return n&&g.warn(`No client configured on scope - will not capture exception!`),r;let i=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:r},this),r}captureMessage(e,t,r){let i=r?.event_id||D();if(!this._client)return n&&g.warn(`No client configured on scope - will not capture message!`),i;let a=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...r,event_id:i},this),i}captureEvent(e,t){let r=t?.event_id||D();return this._client?(this._client.captureEvent(e,{...t,event_id:r},this),r):(n&&g.warn(`No client configured on scope - will not capture event!`),r)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEac
2h(e=>{e(this)}),!1)}};function xt(){return s(`defaultCurrentScope`,()=>new bt)}function St(){return s(`defaultIsolationScope`,()=>new bt)}var Ct=class{constructor(e,t){let n;n=e||new bt;let r;r=t||new bt,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(e){throw this._popScope(),e}return Ne(n)?n.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function wt(){let e=o(a());return e.stack=e.stack||new Ct(xt(),St())}function Tt(e){return wt().withScope(e)}function Et(e,t){let n=wt();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Dt(e){return wt().withScope(()=>e(wt().getIsolationScope()))}function Ot(){return{withIsolationScope:Dt,withScope:Tt,withSetScope:Et,withSetIsolationScope:(e,t)=>Dt(t),getCurrentScope:()=>wt().getScope(),getIsolationScope:()=>wt().getIsolationScope()}}function kt(e){let t=o(e);return t.acs?t.acs:Ot()}function j(){return kt(a()).getCurrentScope()}function M(){return kt(a()).getIsolationScope()}function At(){return s(`globalScope`,()=>new bt)}function jt(...e){let t=kt(a());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function N(){return j().getClient()}function Mt(e){let{traceId:t,parentSpanId:n,propagationSpanId:r}=e.getPropagationContext(),i={trace_id:t,span_id:r||ht()};return n&&(i.parent_span_id=n),i}var P=`sentry.source`,Nt=`sentry.sample_rate`,Pt=`sentry.previous_trace_sample_rate`,F=`sentry.op`,I=`sentry.origin`,Ft=`sentry.idle_span_finish_reason`,It=`sentry.measurement_unit`,Lt=`sentry.measurement_value`,Rt=`sentry.custom_span_name`,zt=`sentry.profile_id`,Bt=`sentry.exclusive_time`,Vt=`sentry.link.type`;function Ht(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:`unauthenticated`};case 403:return{code:2,message:`permission_denied`};case 404:return{code:2,message:`not_found`};case 409:return{code:2,message:`already_exists`};case 413:return{code:2,message:`failed_precondition`};case 429:return{code:2,message:`resource_exhausted`};case 499:return{code:2,message:`cancelled`};default:return{code:2,message:`invalid_argument`}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:`unimplemented`};case 503:return{code:2,message:`unavailable`};case 504:return{code:2,message:`deadline_exceeded`};default:return{code:2,message:`internal_error`}}return{code:2,message:`unknown_error`}}function Ut(e,t){e.setAttribute(`http.response.status_code`,t);let n=Ht(t);n.message!==`unknown_error`&&e.setStatus(n)}var Wt=`_sentryScope`,Gt=`_sentryIsolationScope`;function Kt(e,t,n){e&&(E(e,Gt,n),E(e,Wt,t))}function qt(e){return{scope:e[Wt],isolationScope:e[Gt]}}var Jt=`sentry-`,Yt=/^sentry-/;function Xt(e){let t=Qt(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.match(Yt)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function Zt(e){if(e)return en(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${Jt}${t}`]=n),e),{}))}function Qt(e){if(!(!e||!x(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=$t(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):$t(e)}function $t(e){return e.split(`,`).map(e=>e.split(`=`).map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}function en(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((e,[t,r],i)=>{let a=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,o=i===0?a:`${e},${a}`;return o.length>8192?(n&&g.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):o},``)}function tn(e){if(typeof e==`boolean`)return Number(e);let t=typeof e==`string`?parseFloat(e):e;if(!(typeof t!=`number`||isNaN(t)||t<0||t>1))return t}var nn=RegExp(`^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$`);function rn(e){if(!e)return;let t=e.match(nn);if(!t)return;let n;return t[3]===`1`?n=!0:t[3]===`0`&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function an(e,t){let n=rn(e),r=Xt(t);if(!n?.traceId)return{traceId:A(),sampleRand:Math.random()};let i=sn(n,r);r&&(r.sample_rand=i.toString());let{traceId:a,parentSpanId:o,parentSampled:s}=n;return{traceId:a,parentSpanId:o,sampled:s,dsc:r||{},sampleRand:i}}function on(e=A(),t=ht(),n){let r=``;return n!==void 0&&(r=n?`-1`:`-0`),`${e}-${t}${r}`}function sn(e,t){let n=tn(t?.sample_rand);if(n!==void 0)return n;let r=tn(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}var cn=!1;function ln(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s,links:c}=L(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s,links:c}}function un(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:L(e).parent_span_id,a=qt(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||ht():t,trace_id:n}}function dn(e){let{traceId:t,spanId:n}=e.spanContext();return on(t,n,_n(e))}function fn(e){if(e&&e.length>0)return e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===1,attributes:i,...r}))}function pn(e){return typeof e==`number`?mn(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?mn(e.getTime()):O()}function mn(e){return e>9999999999?e/1e3:e}function L(e){if(gn(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(hn(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0,start_timestamp:pn(i),timestamp:pn(o)||void 0,status:vn(s),op:r[F],origin:r[I],links:fn(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function hn(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function gn(e){return typeof e.getSpanJSON==`function`}function _n(e){let{traceFlags:t}=e.spanContext();return t===1}function vn(e){if(!(!e||e.code===0))return e.code===1?`ok`:e.message||`unknown_error`}var yn=`_sentryChildSpans`,bn=`_sentryRootSpan`;function xn(e,t){E(t,bn,e[bn]||e),e[yn]?e[yn].add(t):E(e,yn,new Set([t]))}function Sn(e,t){e[yn]&&e[yn].delete(t)}function Cn(e){let t=new Set;function n(e){if(!t.has(e)&&_n(e)){t.add(e);let r=e[yn]?Array.from(e[yn]):[];for(let e of r)n(e)}}return n(e),Array.from(t)}function R(e){return e[bn]||e}function z(){let e=kt(a());return e.getActiveSpan?e.getActiveSpan():vt(j())}function wn(){cn||=(d(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),!0)}var Tn=!1;function En(){if(Tn)return;function e(){let e=z(),t=e&&R(e);if(t){let e=`internal_error`;n&&g.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:2,message:e})}}e.tag=`sentry_tracingErrorCallback`,Tn=!0,ge(e),ye(e)}function B(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||N()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}var Dn=`production`,On=/^o(\d+)\./,kn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function An(e){return e===`http`||e===`https`}function jn(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:``}@${n}${a?`:${a}`:``}/${r&&`${r}/`}${o}`}function Mn(e){let t=kn.exec(e);if(!t){d(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i=``,a=``,o=``,s=``]=t.slice(1),c=``,l=s,u=l.split(`/`);if(u.length>1&&(c=u.slice(0,-1).join(`/`),l=u.pop()),l){let e=l.match(/^\d+/);e&&(l=e[0])}return Nn({host:a,pass:i,path:c,projectId:l,port:o,protocol:n,publicKey:r})}function Nn(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function Pn(e){if(!n)return!0;let{port:t,projectId:r,protocol:i}=e;return[`protocol`,`publicKey`,`host`,`projectId`].find(t=>e[t]?!1:(g.error(`Invalid Sentry Dsn: ${t} missing`),!0))?!1:r.match(/^\d+$/)?An(i)?t&&isNaN(parseInt(t,10))?(g.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(g.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),!1):(g.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function Fn(e){return e.match(On)?.[1]}function In(e){let t=typeof e==`string`?Mn(e):Nn(e);if(!(!t||!Pn(t)))return t}var Ln=`_frozenDsc`;function Rn(e,t){E(e,Ln,t)}function zn(e,t){let n=t.getOptions(),{publicKey:r,host:i}=t.getDsn()||{},a;n.orgId?a=String(n.orgId):i&&(a=Fn(i));let o={environment:n.environment||`production`,release:n.release,public_key:r,trace_id:e,org_id:a};return t.emit(`createDsc`,o),o}function Bn(e,t){let n=t.getPropagationContext();return n.dsc||zn(n.traceId,e)}function V(e){let t=N();if(!t)return{};let n=R(e),r=L(n),i=r.data,a=n.spanContext().traceState,o=a?.get(`sentry.sample_rate`)??i[`sentry.sample_rate`]??i[`sentry.previous_trace_sample_rate`];function s(e){return(typeof o==`number`||typeof o==`string`)&&(e.sample_rate=`${o}`),e}let c=n[Ln];if(c)return s(c);let l=a?.get(`sentry.dsc`),u=l&&Xt(l);
2if(u)return s(u);let d=zn(e.spanContext().traceId,t),f=i[P],p=r.description;return f!==`url`&&p&&(d.transaction=p),B()&&(d.sampled=String(_n(n)),d.sample_rand=a?.get(`sentry.sample_rand`)??qt(n).scope?.getPropagationContext().sampleRand.toString()),s(d),t.emit(`createDsc`,d,n),d}var H=class{constructor(e={}){this._traceId=e.traceId||A(),this._spanId=e.spanId||ht()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}};function U(e,t=100,n=1/0){try{return Hn(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Vn(e,t=3,n=100*1024){let r=U(e,t);return Kn(r)>n?Vn(e,t-1,n):r}function Hn(e,t,n=1/0,r=1/0,i=qn()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=Un(e,t);if(!s.startsWith(`[object `))return s;if(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 s.replace(`object `,``);if(a(t))return`[Circular ~]`;let l=t;if(l&&typeof l.toJSON==`function`)try{return Hn(``,l.toJSON(),c-1,r,i)}catch{}let u=Array.isArray(t)?[]:{},d=0,f=qe(t);for(let e in f){if(!Object.prototype.hasOwnProperty.call(f,e))continue;if(d>=r){u[e]=`[MaxProperties ~]`;break}let t=f[e];u[e]=Hn(e,t,c-1,r,i),d++}return o(t),u}function Un(e,t){try{if(e===`domain`&&t&&typeof t==`object`&&t._events)return`[Domain]`;if(e===`domainEmitter`)return`[DomainEmitter]`;if(typeof global<`u`&&t===global)return`[Global]`;if(typeof window<`u`&&t===window)return`[Window]`;if(typeof document<`u`&&t===document)return`[Document]`;if(Fe(t))return`[VueViewModel]`;if(Pe(t))return`[SyntheticEvent]`;if(typeof t==`number`&&!Number.isFinite(t))return`[${t}]`;if(typeof t==`function`)return`[Function: ${_(t)}]`;if(typeof t==`symbol`)return`[${String(t)}]`;if(typeof t==`bigint`)return`[BigInt: ${String(t)}]`;let n=Wn(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function Wn(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function Gn(e){return~-encodeURI(e).split(/%..|./).length}function Kn(e){return Gn(JSON.stringify(e))}function qn(){let e=new WeakSet;function t(t){return e.has(t)?!0:(e.add(t),!1)}function n(t){e.delete(t)}return[t,n]}function Jn(e,t=[]){return[e,t]}function Yn(e,t){let[n,r]=e;return[n,[...r,t]]}function Xn(e,t){let n=e[1];for(let e of n){let n=e[0].type;if(t(e,n))return!0}return!1}function Zn(e){let t=o(r);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function Qn(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[Zn(r),e]:r.push(typeof e==`string`?Zn(e):e)}for(let e of n){let[t,n]=e;if(i(`\n${JSON.stringify(t)}\n`),typeof n==`string`||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(U(n))}i(e)}}return typeof r==`string`?r:$n(r)}function $n(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function er(e){return[{type:`span`},e]}function tr(e){let t=typeof e.data==`string`?Zn(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var nr={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`,log:`log_item`};function rr(e){return nr[e]}function ir(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function ar(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:jn(r)},...i&&{trace:i}}}function or(e,t){return t?(e.sdk=e.sdk||{}
2,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):e}function sr(e,t,n,r){let i=ir(n);return Jn({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:jn(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function cr(e,t,n,r){let i=ir(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;or(e,n?.sdk);let o=ar(e,i,r,t);return delete e.sdkProcessingMetadata,Jn(o,[[{type:a},e]])}function lr(e,t){function n(e){return!!e.trace_id&&!!e.public_key}let r=V(e[0]),i=t?.getDsn(),a=t?.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!a&&i&&{dsn:jn(i)}},s=t?.getOptions().beforeSendSpan,c=s?e=>{let t=L(e);return s(t)||(wn(),t)}:L,l=[];for(let t of e){let e=c(t);e&&l.push(er(e))}return Jn(o,l)}function ur(e){if(!n)return;let{description:t=`< unknown name >`,op:r=`< unknown op >`,parent_span_id:i}=L(e),{spanId:a}=e.spanContext(),o=_n(e),s=R(e),c=s===e,l=`[Tracing] Starting ${o?`sampled`:`unsampled`} ${c?`root `:``}span`,u=[`op: ${r}`,`name: ${t}`,`ID: ${a}`];if(i&&u.push(`parent ID: ${i}`),!c){let{op:e,description:t}=L(s);u.push(`root ID: ${s.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}g.log(`${l}
3  ${u.join(`
4  `)}`)}function dr(e){if(!n)return;let{description:t=`< unknown name >`,op:r=`< unknown op >`}=L(e),{spanId:i}=e.spanContext(),a=`[Tracing] Finishing "${r}" ${R(e)===e?`root `:``}span "${t}" with ID ${i}`;g.log(a)}function fr(e,t,r,i=z()){let a=i&&R(i);a&&(n&&g.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${r}`),a.addEvent(e,{[Lt]:t,[It]:r}))}function pr(e){if(!e||e.length===0)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[It],i=n[Lt];typeof r==`string`&&typeof i==`number`&&(t[e.name]={value:i,unit:r})}),t}var mr=1e3,hr=class{constructor(e={}){this._traceId=e.traceId||A(),this._spanId=e.spanId||ht(),this._startTime=e.startTimestamp||O(),this._links=e.links,this._attributes={},this.setAttributes({[I]:`manual`,[F]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),`sampled`in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:+!!n}}setAttribute(e,t){return t===void 0?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=pn(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(P,`custom`),this}end(e){this._endTime||(this._endTime=pn(e),dr(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[F],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:vn(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[I],profile_id:this._attributes[zt],exclusive_time:this._attributes[Bt],measurements:pr(this._events),is_segment:this._isStandaloneSpan&&R(this)===this||void 0,segment_id:this._isStandaloneSpan?R(this).spanContext().spanId:void 0,links:fn(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){n&&g.log(`[Tracing] Adding an event to span:`,e);let i=gr(t)?t:r||O(),a=gr(t)?{}:t||{},o={name:e,time:pn(i),attributes:a};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=N();if(e&&e.emit(`spanEnd`,this),!(this._isStandaloneSpan||this===R(this)))return;if(this._isStandaloneSpan){this._sampled?yr(lr([this],e)):(n&&g.log(`[Tracing] Discarding standalone span because its trace was not chosen to be sampled.`),e&&e.recordDroppedEvent(`sample_rate`,`span`));return}let t=this._convertSpanToTransaction();t&&(qt(this).scope||j()).captureEvent(t)}_convertSpanToTransaction(){if(!_r(L(this)))return;this._name||=(n&&g.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),`<unlabeled transaction>`);let{scope:e,isolationScope:t}=qt(this),r=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;let i=Cn(this).filter(e=>e!==this&&!vr(e)).map(e=>L(e)).filter(_r),a=this._attributes[P];
4delete this._attributes[Rt],i.forEach(e=>{delete e.data[Rt]});let o={contexts:{trace:ln(this)},spans:i.length>mr?i.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,mr):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:`transaction`,sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:V(this)},request:r,...a&&{transaction_info:{source:a}}},s=pr(this._events);return s&&Object.keys(s).length&&(n&&g.log(`[Measurements] Adding measurements to transaction event`,JSON.stringify(s,void 0,2)),o.measurements=s),o}};function gr(e){return e&&typeof e==`number`||e instanceof Date||Array.isArray(e)}function _r(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function vr(e){return e instanceof hr&&e.isStandaloneSpan()}function yr(e){let t=N();if(!t)return;let n=e[1];if(!n||n.length===0){t.recordDroppedEvent(`before_send`,`span`);return}t.sendEnvelope(e)}function br(e,t,n=()=>{}){let r;try{r=e()}catch(e){throw t(e),n(),e}return xr(r,t,n)}function xr(e,t,n){return Ne(e)?e.then(e=>(n(),e),e=>{throw t(e),n(),e}):(n(),e)}function Sr(e,t,r){if(!B(e))return[!1];let i,a;typeof e.tracesSampler==`function`?(a=e.tracesSampler({...t,inheritOrSampleWith:e=>typeof t.parentSampleRate==`number`?t.parentSampleRate:typeof t.parentSampled==`boolean`?Number(t.parentSampled):e}),i=!0):t.parentSampled===void 0?e.tracesSampleRate!==void 0&&(a=e.tracesSampleRate,i=!0):a=t.parentSampled;let o=tn(a);if(o===void 0)return n&&g.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(a)} of type ${JSON.stringify(typeof a)}.`),[!1];if(!o)return n&&g.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler==`function`?`tracesSampler returned 0 or false`:`a negative sampling decision was inherited or tracesSampleRate is set to 0`}`),[!1,o,i];let s=r<o;return s||n&&g.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(a)})`),[s,o,i]}var Cr=`__SENTRY_SUPPRESS_TRACING__`;function wr(e,t){let n=kr();if(n.startSpan)return n.startSpan(e,t);let r=Or(e),{forceTransaction:i,parentSpan:a,scope:o}=e,s=o?.clone();return jt(s,()=>Nr(a)(()=>{let n=j(),o=Mr(n,a),s=e.onlyIfParent&&!o?new H:Dr({parentSpan:o,spanArguments:r,forceTransaction:i,scope:n});return _t(n,s),br(()=>t(s),()=>{let{status:e}=L(s);s.isRecording()&&(!e||e===`ok`)&&s.setStatus({code:2,message:`internal_error`})},()=>{s.end()})}))}function Tr(e){let t=kr();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=Or(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?t=>jt(e.scope,t):i===void 0?e=>e():e=>Er(i,e))(()=>{let t=j(),a=Mr(t,i);return e.onlyIfParent&&!a?new H:Dr({parentSpan:a,spanArguments:n,forceTransaction:r,scope:t})})}function Er(e,t){let n=kr();return n.withActiveSpan?n.withActiveSpan(e,t):jt(n=>(_t(n,e||void 0),t(n)))}function Dr({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!B()){let r=new H;return(n||!e)&&Rn(r,{sampled:`false`,sample_rate:`0`,transaction:t.name,...V(r)}),r}let i=M(),a;if(e&&!n)a=jr(e,r,t),xn(e,a);else if(e){let n=V(e),{traceId:i,spanId:o}=e.spanContext(),s=_n(e);a=Ar({traceId:i,parentSpanId:o,...t},r,s),Rn(a,n)}else{let{traceId:e,dsc:n,parentSpanId:o,sampled:s}={...i.getPropagationContext(),...r.getPropagationContext()};a=Ar({traceId:e,parentSpanId:o,...t},r,s),n&&Rn(a,n)}return ur(a),Kt(a,r,i),a}function Or(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=pn(e.startTime),delete n.startTime,n}return t}function kr(){return kt(a())}function Ar(e,t,r){let i=N(),a=i?.getOptions()||{},{name:o=``}=e,s={spanAttributes:{...e.attributes},spanName:o,parentSampled:r};i?.emit(`beforeSampling`,s,{decision:!1});let c=s.parentSampled??r,l=s.spanAttributes,u=t.getPropagationContext(),[d,f,p]=t.getScopeData().sdkProcessingMetadata[Cr]?[!1]:Sr(a,{name:o,parentSampled:c,attributes:l,parentSampleRate:tn(u.dsc?.sample_rate)},u.sampleRand),m=new hr({...e,attributes:{[P]:`custom`,[Nt]:f!==void 0&&p?f:void 0,...l},sampled:d});return!d&&i&&(n&&g.log(`[Tracing] Discarding root span because its trace was not chosen to be sampled.`),i.recordDroppedEvent(`sample_rate`,`transaction`)),i&&i.emit(`spanStart`,m),m}function jr(e,t,n){let{spanId:r,traceId:i}=e.spanContext(),a=t.getScopeData().sdkProcessingMetadata[Cr]?!1:_n(e),o=a?new hr({...n,parentSpanId:r,traceId:i,sampled:a}):new H({traceId:i});xn(e,o);let s=N();return s&&(s.emit(`spanStart`,o),n.endTimestamp&&s.emit(`spanEnd`,o)),o}function Mr(e,t){if(t)return t;if(t===null)return;let n=vt(e);if(!n)return;let r=N();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?R(n):n}function Nr(e){return e===void 0?e=>e():t=>Er(e,t)}var Pr={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},Fr=`heartbeatFailed`,Ir=`idleTimeout`,Lr=`finalTimeout`,Rr=`externalFinish`;function zr(e,t={}){let r=new Map,i=!1,a,o=Rr,s=!t.disableAutoFinish,c=[],{idleTimeout:l=Pr.idleTimeout,finalTimeout:u=Pr.finalTimeout,childSpanTimeout:d=Pr.childSpanTimeout,beforeSpanEnd:f}=t,p=N();if(!p||!B()){let e=new H;return Rn(e,{sample_rate:`0`,sampled:`false`,...V(e)}),e}let m=j(),ee=z(),h=Br(e);h.end=new Proxy(h.end,{apply(e,t,n){if(f&&f(h),t instanceof H)return;let[r,...i]=n,a=pn(r||O()),o=Cn(h).filter(e=>e!==h);if(!o.length)return oe(a),Reflect.apply(e,t,[a,...i]);let s=o.map(e=>L(e).timestamp).filter(e=>!!e),c=s.length?Math.max(...s):void 0,l=L(h).start_timestamp,d=Math.min(l?l+u/1e3:1/0,Math.max(l||-1/0,Math.min(a,c||1/0)));return oe(d),Reflect.apply(e,t,[d,...i])}});function te(){a&&=(clearTimeout(a),void 0)}function ne(e){te(),a=setTimeout(()=>{!i&&r.size===0&&s&&(o=Ir,h.end(e))},l)}function re(e){a=setTimeout(()=>
4{!i&&s&&(o=Fr,h.end(e))},d)}function ie(e){te(),r.set(e,!0),re(O()+d/1e3)}function ae(e){r.has(e)&&r.delete(e),r.size===0&&ne(O()+l/1e3)}function oe(e){i=!0,r.clear(),c.forEach(e=>e()),_t(m,ee);let t=L(h),{start_timestamp:a}=t;if(!a)return;t.data[`sentry.idle_span_finish_reason`]||h.setAttribute(Ft,o),g.log(`[Tracing] Idle span "${t.op}" finished`);let s=Cn(h).filter(e=>e!==h),d=0;s.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:`cancelled`}),t.end(e),n&&g.log(`[Tracing] Cancelling span since span ended early`,JSON.stringify(t,void 0,2)));let{timestamp:r=0,start_timestamp:i=0}=L(t),a=i<=e,o=(u+l)/1e3,s=r-i<=o;if(n){let e=JSON.stringify(t,void 0,2);a?s||g.log(`[Tracing] Discarding span since it finished after idle span final timeout`,e):g.log(`[Tracing] Discarding span since it happened after idle span was finished`,e)}(!s||!a)&&(Sn(h,t),d++)}),d>0&&h.setAttribute(`sentry.idle_span_discarded_spans`,d)}return c.push(p.on(`spanStart`,e=>{i||e===h||L(e).timestamp||e instanceof hr&&e.isStandaloneSpan()||Cn(h).includes(e)&&ie(e.spanContext().spanId)})),c.push(p.on(`spanEnd`,e=>{i||ae(e.spanContext().spanId)})),c.push(p.on(`idleSpanEnableAutoFinish`,e=>{e===h&&(s=!0,ne(),r.size&&re())})),t.disableAutoFinish||ne(),setTimeout(()=>{i||(h.setStatus({code:2,message:`deadline_exceeded`}),o=Lr,h.end())},u),h}function Br(e){let t=Tr(e);return _t(j(),t),n&&g.log(`[Tracing] Started span is an idle span`),t}var Vr=0,Hr=1,Ur=2;function Wr(e){return new Kr(t=>{t(e)})}function Gr(e){return new Kr((t,n)=>{n(e)})}var Kr=class e{constructor(e){this._state=Vr,this._handlers=[],this._runExecutor(e)}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>{if(!t)e(n);else try{e(t(n))}catch(e){r(e)}},t=>{if(!n)r(t);else try{e(n(t))}catch(e){r(e)}}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i){n(r);return}e(r)})})}_executeHandlers(){if(this._state===Vr)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===Hr&&e[1](this._value),this._state===Ur&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===Vr){if(Ne(t)){t.then(n,r);return}this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(Hr,e)},r=e=>{t(Ur,e)};try{e(n,r)}catch(e){r(e)}}};function qr(e,t,r,i=0){return new Kr((a,o)=>{let s=e[i];if(t===null||typeof s!=`function`)a(t);else{let c=s({...t},r);n&&s.id&&c===null&&g.log(`Event processor "${s.id}" dropped event`),Ne(c)?c.then(t=>qr(e,t,r,i+1).then(a)).then(null,o):qr(e,c,r,i+1).then(a).then(null,o)}})}function Jr(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;Zr(e,t),r&&ei(e,r),ti(e,n),Qr(e,i),$r(e,a)}function Yr(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,sdkProcessingMetadata:s,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:d,propagationContext:f,transactionName:p,span:m}=t;Xr(e,`extra`,n),Xr(e,`tags`,r),Xr(e,`user`,i),Xr(e,`contexts`,a),e.sdkProcessingMetadata=mt(e.sdkProcessingMetadata,s,2),o&&(e.level=o),p&&(e.transactionName=p),m&&(e.span=m),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function Xr(e,t,n){e[t]=mt(e[t],n,1)}function Zr(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),o&&(e.level=o),s&&e.type!==`transaction`&&(e.transaction=s)}function Qr(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function $r(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function ei(e,t){e.contexts={trace:un(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:V(t),...e.sdkProcessingMetadata};let n=L(R(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function ti(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}var ni,ri,ii;function ai(e){let t=r._sentryDebugIds;if(!t)return{};let n=Object.keys(t);return ii&&n.length===ri?ii:(ri=n.length,ii=n.reduce((n,r)=>{ni||={};let i=ni[r];if(i)n[i[0]]=i[1];else{let i=e(r);for(let e=i.length-1;e>=0;e--){let a=i[e]?.filename,o=t[r];if(a&&o){n[a]=o,ni[r]=[a,o];break}}}return n},{}),ii)}function oi(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||D(),timestamp:t.timestamp||at()},l=n.integrations||e.integrations.map(e=>e.name);si(c,e),ui(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&ci(c,e.stackParser);let u=fi(r,n.captureContext);n.mechanism&&tt(c,n.mechanism);let d=i?i.getEventProcessors():[],f=At().getScopeData();a&&Yr(f,a.getScopeData()),u&&Yr(f,u.getScopeData());let p=[...n.attachments||[],...f.attachments];return p.length&&(n.attachments=p),Jr(c,f),qr([...d,...f.eventProcessors],c,n).then(e=>(e&&li(e),typeof o==`number`&&o>0?di(e,o,s):e))}function si(e,t){let{environment:n,release:r,dist:i,maxValueLength:a=250}=t;e.environment=e.environment||n||`production`,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let o=e.request;o?.url&&(o.url=He(o.url,a))}function ci(e,t){let n=ai(t);
4e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function li(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),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.entries(t).forEach(([e,t])=>{n.push({type:`sourcemap`,code_file:e,debug_id:t})})}function ui(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function di(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:U(e.data,t,n)}}))},...e.user&&{user:U(e.user,t,n)},...e.contexts&&{contexts:U(e.contexts,t,n)},...e.extra&&{extra:U(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=U(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:U(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=U(e.contexts.flags,3,n)),r}function fi(e,t){if(!t)return e;let n=e?e.clone():new bt;return n.update(t),n}function pi(e){if(e)return mi(e)||gi(e)?{captureContext:e}:e}function mi(e){return e instanceof bt||typeof e==`function`}var hi=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function gi(e){return Object.keys(e).some(e=>hi.includes(e))}function _i(e,t){return j().captureException(e,pi(t))}function vi(e,t){let n=typeof t==`string`?t:void 0,r=typeof t==`string`?void 0:{captureContext:t};return j().captureMessage(e,n,r)}function yi(e,t){return j().captureEvent(e,t)}function bi(e,t){M().setContext(e,t)}function xi(e,t){M().setExtra(e,t)}function Si(e){M().setUser(e)}function Ci(){let e=N();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function wi(e){let t=M(),n=j(),{userAgent:i}=r.navigator||{},a=ut({user:n.getUser()||t.getUser(),...i&&{userAgent:i},...e}),o=t.getSession();return o?.status===`ok`&&dt(o,{status:`exited`}),Ti(),t.setSession(a),a}function Ti(){let e=M(),t=j().getSession()||e.getSession();t&&ft(t),Ei(),e.setSession()}function Ei(){let e=M(),t=N(),n=e.getSession();n&&t&&t.captureSession(n)}function Di(e=!1){if(e){Ti();return}Ei()}var Oi=`7`;function ki(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function Ai(e){return`${ki(e)}${e.projectId}/envelope/`}function ji(e,t){let n={sentry_version:Oi};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Mi(e,t,n){return t||`${Ai(e)}?${ji(e,n)}`}var Ni=[];function Pi(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}function Fi(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n==`function`){let e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return Pi(r)}function Ii(e,t){let n={};return t.forEach(t=>{t&&Ri(e,t,n)}),n}function Li(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function Ri(e,t,r){if(r[t.name]){n&&g.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,Ni.indexOf(t.name)===-1&&typeof t.setupOnce==`function`&&(t.setupOnce(),Ni.push(t.name)),t.setup&&typeof t.setup==`function`&&t.setup(e),typeof t.preprocessEvent==`function`){let n=t.preprocessEvent.bind(t);e.on(`preprocessEvent`,(t,r)=>n(t,r,e))}if(typeof t.processEvent==`function`){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}n&&g.log(`Integration installed: ${t.name}`)}function W(e){return e}function zi(e,t,n){let r=[{type:`client_report`},{timestamp:n||at(),discarded_events:e}];return Jn(t?{dsn:t}:{},[r])}function Bi(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function Vi(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??``,start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??``,origin:a,profile_id:o?.[zt],exclusive_time:o?.[Bt],measurements:e.measurements,is_segment:!0}}function Hi(e){return{type:`transaction`,timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{"sentry.profile_id":e.profile_id},...e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time}}}},measurements:e.measurements}}var Ui=`Not capturing exception because it's already been captured.`,Wi=`Discarded session because of missing or non-string release`,Gi=Symbol.for(`SentryInternalError`),Ki=Symbol.for(`SentryDoNotSendEventError`);function qi(e){return{message:e,[Gi]:!0}}function Ji(e){return{message:e,[Ki]:!0}}function Yi(e){return!!e&&typeof e==`object`&&Gi in e}function Xi(e){return!!e&&typeof e==`object`&&Ki in e}var Zi=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=In(e.dsn):n&&g.warn(`No DSN provided, client will not send events.`),this._dsn){let t=Mi(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,r){let i=D();if(nt(e))return n&&g.log(Ui),i;let a={event_id:i,...t};return this._process(this.eventFromException(e,a).then(e=>this._captureEvent(e,a,r))),a.event_id}captureMessage(e,t,n,r){let i={event_id:D(),...n}
4,a=De(e)?e:String(e),o=Oe(e)?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(o.then(e=>this._captureEvent(e,i,r))),i.event_id}captureEvent(e,t,r){let i=D();if(t?.originalException&&nt(t.originalException))return n&&g.log(Ui),i;let a={event_id:i,...t},o=e.sdkProcessingMetadata||{},s=o.capturedSpanScope,c=o.capturedSpanIsolationScope;return this._process(this._captureEvent(e,a,s||r,c)),a.event_id}captureSession(e){this.sendSession(e),dt(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?(this.emit(`flush`),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):Wr(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit(`close`),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith(`Spotlight`)))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];Ri(this,e,this._integrations),t||Li(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=cr(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=Yn(n,tr(e));let r=this.sendEnvelope(n);r&&r.then(t=>this.emit(`afterSendEvent`,e,t),null)}sendSession(e){let{release:t,environment:r=Dn}=this._options;if(`aggregates`in e){let i=e.attrs||{};if(!i.release&&!t){n&&g.warn(Wi);return}i.release=i.release||t,i.environment=i.environment||r,e.attrs=i}else{if(!e.release&&!t){n&&g.warn(Wi);return}e.release=e.release||t,e.environment=e.environment||r}this.emit(`beforeSendSession`,e);let i=sr(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){let i=`${e}:${t}`;n&&g.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:``}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}on(e,t){let n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{let e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}sendEnvelope(e){return this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,e=>(n&&g.error(`Error while sending envelope:`,e),e)):(n&&g.error(`Transport disabled`),Wr({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=Ii(this,e),Li(this,e)}_updateSessionFromEvent(e,t){let n=t.level===`fatal`,r=!1,i=t.exception?.values;if(i){r=!0;for(let e of i)if(e.mechanism?.handled===!1){n=!0;break}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(dt(e,{...n&&{status:`crashed`},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Kr(t=>{let n=0,r=setInterval(()=>{this._numProcessing==0?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){let i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a?.length&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),oi(i,e,t,n,this,r).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:Mt(n),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Bn(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(e,t={},r=j(),i=M()){return n&&ea(e)&&g.log(`Captured error event \`${Bi(e)[0]||`<unknown>`}\``),this._processEvent(e,t,r,i).then(e=>e.event_id,e=>{n&&(Xi(e)?g.log(e.message):Yi(e)?g.warn(e.message):g.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=ta(e),s=ea(e),c=e.type||`error`,l=`before send for type \`${c}\``,u=a===void 0?void 0:tn(a);if(s&&typeof u==`number`&&Math.random()>u)return this.recordDroppedEvent(`sample_rate`,`error`),Gr(Ji(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));
4let d=c===`replay_event`?`replay`:c;return this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw this.recordDroppedEvent(`event_processor`,d),Ji("An event processor returned `null`, will not send event.");return t.data&&t.data.__sentry__===!0?e:Qi($i(this,i,e,t),l)}).then(i=>{if(i===null){if(this.recordDroppedEvent(`before_send`,d),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent(`before_send`,`span`,t)}throw Ji(`${l} returned \`null\`, will not send event.`)}let a=n.getSession()||r.getSession();if(s&&a&&this._updateSessionFromEvent(a,i),o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let c=i.transaction_info;return o&&c&&i.transaction!==e.transaction&&(i.transaction_info={...c,source:`custom`}),this.sendEvent(i,t),i}).then(null,e=>{throw Xi(e)||Yi(e)?e:(this.captureException(e,{data:{__sentry__:!0},originalException:e}),qi(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`))})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(`:`);return{reason:n,category:r,quantity:t}})}_flushOutcomes(){n&&g.log(`Flushing outcomes...`);let e=this._clearOutcomes();if(e.length===0){n&&g.log(`No outcomes to send`);return}if(!this._dsn){n&&g.log(`No dsn provided, will not send outcomes`);return}n&&g.log(`Sending outcomes:`,e);let t=zi(e,this._options.tunnel&&jn(this._dsn));this.sendEnvelope(t)}};function Qi(e,t){let n=`${t} must return \`null\` or a valid event.`;if(Ne(e))return e.then(e=>{if(!ke(e)&&e!==null)throw qi(n);return e},e=>{throw qi(`${t} rejected with ${e}`)});if(!ke(e)&&e!==null)throw qi(n);return e}function $i(e,t,n,r){let{beforeSend:i,beforeSendTransaction:a,beforeSendSpan:o}=t,s=n;if(ea(s)&&i)return i(s,r);if(ta(s)){if(o){let e=o(Vi(s));if(e?s=mt(n,Hi(e)):wn(),s.spans){let e=[];for(let t of s.spans){let n=o(t);n?e.push(n):(wn(),e.push(t))}s.spans=e}}if(a){if(s.spans){let e=s.spans.length;s.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(s,r)}}return s}function ea(e){return e.type===void 0}function ta(e){return e.type===`transaction`}function na(e){return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{items:e}]}function ra(e,t,n,r){let i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=jn(r)),Jn(i,[na(e)])}function ia(e,t){let n=t??aa(e)??[];if(n.length===0)return;let r=e.getOptions(),i=ra(n,r._metadata,r.tunnel,e.getDsn());oa().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function aa(e){return oa().get(e)}function oa(){return s(`clientToLogBufferMap`,()=>new WeakMap)}function sa(e,t){t.debug===!0&&(n?g.enable():d(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),j().update(t.initialScope);let r=new e(t);return ca(r),r.init(),r}function ca(e){j().setClient(e)}var la=Symbol.for(`SentryBufferFullError`);function ua(e){let t=[];function n(){return e===void 0||t.length<e}function r(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}function i(e){if(!n())return Gr(la);let i=e();return t.indexOf(i)===-1&&t.push(i),i.then(()=>r(i)).then(null,()=>r(i).then(null,()=>{})),i}function a(e){return new Kr((n,r)=>{let i=t.length;if(!i)return n(!0);let a=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{Wr(e).then(()=>{--i||(clearTimeout(a),n(!0))},r)})})}return{$:t,add:i,drain:a}}var da=60*1e3;function fa(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?da:r-t}function pa(e,t){return e[t]||e.all||0}function ma(e,t,n=Date.now()){return pa(e,t)>n}function ha(e,{statusCode:t,headers:n},r=Date.now()){let i={...e},a=n?.[`x-sentry-rate-limits`],o=n?.[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+fa(o,r):t===429&&(i.all=r+60*1e3);return i}function ga(e,t,r=ua(e.bufferSize||64)){let i={},a=e=>r.drain(e);function o(a){let o=[];if(Xn(a,(t,n)=>{let r=rr(n);ma(i,r)?e.recordDroppedEvent(`ratelimit_backoff`,r):o.push(t)}),o.length===0)return Wr({});let s=Jn(a[0],o),c=t=>
4{Xn(s,(n,r)=>{e.recordDroppedEvent(t,rr(r))})};return r.add(()=>t({body:Qn(s)}).then(e=>(e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&n&&g.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),i=ha(i,e),e),e=>{throw c(`network_error`),n&&g.error(`Encountered error running transport request:`,e),e})).then(e=>e,e=>{if(e===la)return n&&g.error(`Skipped sending event because buffer is full.`),c(`queue_overflow`),Wr({});throw e})}return{send:o,flush:a}}function _a(e,t){let n=t?.getDsn(),r=t?.getOptions().tunnel;return ya(e,n)||va(e,r)}function va(e,t){return t?ba(e)===ba(t):!1}function ya(e,t){return t?e.includes(t.host):!1}function ba(e){return e[e.length-1]===`/`?e.slice(0,-1):e}function xa(e){e.user?.ip_address===void 0&&(e.user={...e.user,ip_address:`{{auto}}`})}function Sa(e){`aggregates`in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:`{{auto}}`}):e.ipAddress===void 0&&(e.ipAddress=`{{auto}}`)}function Ca(e,t,n=[t],r=`npm`){let a=e._metadata||{};a.sdk||={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:i})),version:i},e._metadata=a}function wa(e={}){let t=e.client||N();if(!Ci()||!t)return{};let n=kt(a());if(n.getTraceData)return n.getTraceData(e);let r=e.scope||j(),i=e.span||z(),o=i?dn(i):Ta(r),s=Zt(i?V(i):Bn(t,r));return nn.test(o)?{"sentry-trace":o,baggage:s}:(g.warn(`Invalid sentry-trace data. Cannot generate trace data`),{})}function Ta(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return on(t,r,n)}var Ea=100;function G(e,t){let n=N(),r=M();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=Ea}=n.getOptions();if(a<=0)return;let o={timestamp:at(),...e},s=i?d(()=>i(o,t)):o;s!==null&&(n.emit&&n.emit(`beforeAddBreadcrumb`,s,t),r.addBreadcrumb(s,a))}var Da,Oa=`FunctionToString`,ka=new WeakMap,Aa=W((()=>({name:Oa,setupOnce(){Da=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=Ke(this),n=ka.has(N())&&t!==void 0?t:this;return Da.apply(n,e)}}catch{}},setup(e){ka.set(e,!0)}}))),ja=[/^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$/],Ma=`EventFilters`,Na=W((e={})=>{let t;return{name:Ma,setup(n){t=Fa(e,n.getOptions())},processEvent(n,r,i){return t||=Fa(e,i.getOptions()),Ia(n,t)?null:n}}}),Pa=W(((e={})=>({...Na(e),name:`InboundFilters`})));function Fa(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:ja],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Ia(e,t){if(!e.type){if(La(e,t.ignoreErrors))return n&&g.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${$e(e)}`),!0;if(Ua(e))return n&&g.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${$e(e)}`),!0;if(za(e,t.denyUrls))return n&&g.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${$e(e)}.\nUrl: ${Ha(e)}`),!0;if(!Ba(e,t.allowUrls))return n&&g.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${$e(e)}.\nUrl: ${Ha(e)}`),!0}else if(e.type===`transaction`&&Ra(e,t.ignoreTransactions))return n&&g.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${$e(e)}`),!0;return!1}function La(e,t){return t?.length?Bi(e).some(e=>w(e,t)):!1}function Ra(e,t){if(!t?.length)return!1;let n=e.transaction;return n?w(n,t):!1}function za(e,t){if(!t?.length)return!1;let n=Ha(e);return n?w(n,t):!1}function Ba(e,t){if(!t?.length)return!0;let n=Ha(e);return n?w(n,t):!0}function Va(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 Ha(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?Va(t):null}catch{return n&&g.error(`Cannot extract url for event ${$e(e)}`),null}}function Ua(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function Wa(e,t,n,r,i,a){if(!i.exception?.values||!a||!S(a.originalException,Error))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=Ga(e,t,r,a.originalException,n,i.exception.values,o,0))}
4function Ga(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(S(r[i],Error)){Ka(o,s);let a=e(t,r[i]),l=c.length;qa(a,i,l,s),c=Ga(e,t,n,r[i],i,[a,...c],a,l)}return Array.isArray(r.errors)&&r.errors.forEach((r,a)=>{if(S(r,Error)){Ka(o,s);let l=e(t,r),u=c.length;qa(l,`errors[${a}]`,u,s),c=Ga(e,t,n,r,i,[l,...c],l,u)}}),c}function Ka(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 qa(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 Ja(e){let t=`console`;v(t,e),y(t,Ya)}function Ya(){`console`in r&&c.forEach(function(e){e in r.console&&T(r.console,e,function(t){return u[e]=t,function(...t){b(`console`,{args:t,level:e}),u[e]?.apply(r.console,t)}})})}function Xa(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var Za=`Dedupe`,Qa=W((()=>{let e;return{name:Za,processEvent(t){if(t.type)return t;try{if($a(t,e))return n&&g.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));function $a(e,t){return t?!!(eo(e,t)||to(e,t)):!1}function eo(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!ro(e,t)||!no(e,t))}function to(e,t){let n=io(t),r=io(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!ro(e,t)||!no(e,t))}function no(e,t){let n=fe(e),r=fe(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function ro(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 io(e){return e.exception?.values?.[0]}var ao=`ExtraErrorData`,oo=W(((e={})=>{let{depth:t=3,captureErrorCause:n=!0}=e;return{name:ao,processEvent(e,r,i){let{maxValueLength:a=250}=i.getOptions();return so(e,r,t,n,a)}}}));function so(e,t={},n,r,i){if(!t.originalException||!Se(t.originalException))return e;let a=t.originalException.name||t.originalException.constructor.name,o=co(t.originalException,r,i);if(o){let t={...e.contexts},r=U(o,n);return ke(r)&&(E(r,`__sentry_skip_normalization__`,!0),t[a]=r),{...e,contexts:t}}return e}function co(e,t,r){try{let n=[`name`,`message`,`stack`,`line`,`column`,`fileName`,`lineNumber`,`columnNumber`,`toJSON`],i={};for(let t of Object.keys(e)){if(n.indexOf(t)!==-1)continue;let a=e[t];i[t]=Se(a)||typeof a==`string`?He(`${a}`,r):a}if(t&&e.cause!==void 0&&(i.cause=Se(e.cause)?e.cause.toString():e.cause),typeof e.toJSON==`function`){let t=e.toJSON();for(let e of Object.keys(t)){let n=t[e];i[e]=Se(n)?n.toString():n}}return i}catch(e){n&&g.error(`Unable to extract extra data from the Error object:`,e)}return null}var lo=`thismessage:/`;function uo(e){return`isRelative`in e}function fo(e,t){let n=e.indexOf(`://`)<=0&&e.indexOf(`//`)!==0,r=t??(n?lo:void 0);try{if(`canParse`in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);return n?{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch{}}function po(e){if(uo(e))return e.pathname;let t=new URL(e);return t.search=``,t.hash=``,[`80`,`443`].includes(t.port)&&(t.port=``),t.password&&=`%filtered%`,t.username&&=`%filtered%`,t.toString()}function mo(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}}function ho(e){return e.split(/[?#]/,1)[0]}function go(e,t,n,r,i=`auto.http.browser`){if(!e.fetchData)return;let{method:a,url:o}=e.fetchData,s=B()&&t(o);if(e.endTimestamp&&s){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(vo(n,e),delete r[t]);return}let c=!!z(),l=s&&c?Tr(xo(o,a,i)):new H;if(e.fetchData.__span=l.spanContext().spanId,r[l.spanContext().spanId]=l,n(e.fetchData.url)){let t=e.args[0],n=e.args[1]||{},r=_o(t,n,B()&&c?l:void 0);r&&(e.args[1]=n,n.headers=r)}let u=N();if(u){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};u.emit(`beforeOutgoingRequestSpan`,l,t)}return l}function _o(e,t,n){let r=wa({span:n}),i=r[`sentry-trace`],a=r.baggage;if(!i)return;let o=t.headers||(Ie(e)?e.headers:void 0);if(!o)return{...r};if(bo(o)){let e=new Headers(o);
4if(e.get(`sentry-trace`)||e.set(`sentry-trace`,i),a){let t=e.get(`baggage`);t?yo(t)||e.set(`baggage`,`${t},${a}`):e.set(`baggage`,a)}return e}else if(Array.isArray(o)){let e=[...o];o.find(e=>e[0]===`sentry-trace`)||e.push([`sentry-trace`,i]);let t=o.find(e=>e[0]===`baggage`&&yo(e[1]));return a&&!t&&e.push([`baggage`,a]),e}else{let e=`sentry-trace`in o?o[`sentry-trace`]:void 0,t=`baggage`in o?o.baggage:void 0,n=t?Array.isArray(t)?[...t]:[t]:[],r=t&&(Array.isArray(t)?t.find(e=>yo(e)):yo(t));return a&&!r&&n.push(a),{...o,"sentry-trace":e??i,baggage:n.length>0?n.join(`,`):void 0}}}function vo(e,t){if(t.response){Ut(e,t.response.status);let n=t.response?.headers?.get(`content-length`);if(n){let t=parseInt(n);t>0&&e.setAttribute(`http.response_content_length`,t)}}else t.error&&e.setStatus({code:2,message:`internal_error`});e.end()}function yo(e){return e.split(`,`).some(e=>e.trim().startsWith(Jt))}function bo(e){return typeof Headers<`u`&&S(e,Headers)}function xo(e,t,n){let r=fo(e);return{name:r?`${t} ${po(r)}`:t,attributes:So(e,r,t,n)}}function So(e,t,n,r){let i={url:e,type:`fetch`,"http.method":n,[I]:r,[F]:`http.client`};return t&&(uo(t)||(i[`http.url`]=t.href,i[`server.address`]=t.host),t.search&&(i[`http.query`]=t.search),t.hash&&(i[`http.fragment`]=t.hash)),i}function Co(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var wo=r;function To(){return`history`in wo&&!!wo.history}function Eo(){if(!(`fetch`in wo))return!1;try{return new Headers,new Request(`http://www.example.com`),new Response,!0}catch{return!1}}function Do(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Oo(){if(typeof EdgeRuntime==`string`)return!0;if(!Eo())return!1;if(Do(wo.fetch))return!0;let e=!1,t=wo.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Do(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){n&&g.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}function ko(e,t){let n=`fetch`;v(n,e),y(n,()=>jo(void 0,t))}function Ao(e){let t=`fetch-body-resolved`;v(t,e),y(t,()=>jo(No))}function jo(e,t=!1){t&&!Oo()||T(r,`fetch`,function(t){return function(...n){let i=Error(),{method:a,url:o}=Io(n),s={args:n,fetchData:{method:a,url:o},startTimestamp:O()*1e3,virtualError:i,headers:Lo(n)};return e||b(`fetch`,{...s}),t.apply(r,n).then(async t=>(e?e(t):b(`fetch`,{...s,endTimestamp:O()*1e3,response:t}),t),e=>{if(b(`fetch`,{...s,endTimestamp:O()*1e3,error:e}),Se(e)&&e.stack===void 0&&(e.stack=i.stack,E(e,`framesToPop`,1)),e instanceof TypeError&&(e.message===`Failed to fetch`||e.message===`Load failed`||e.message===`NetworkError when attempting to fetch resource.`))try{let t=new URL(s.fetchData.url);e.message=`${e.message} (${t.host})`}catch{}throw e})}})}async function Mo(e,t){if(e?.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3),a=!0;for(;a;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:i}=await r.read();clearTimeout(e),i&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function No(e){let t;try{t=e.clone()}catch{return}Mo(t,()=>{b(`fetch-body-resolved`,{endTimestamp:O()*1e3,response:e})})}function Po(e,t){return!!e&&typeof e==`object`&&!!e[t]}function Fo(e){return typeof e==`string`?e:e?Po(e,`url`)?e.url:e.toString?e.toString():``:``}function Io(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:Fo(t),method:Po(n,`method`)?String(n.method).toUpperCase():`GET`}}let t=e[0];return{url:Fo(t),method:Po(t,`method`)?String(t.method).toUpperCase():`GET`}}function Lo(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(Ie(t))return new Headers(t.headers)}catch{}}function Ro(){return`npm`}var K=r,zo=0;function Bo(){return zo>0}function Vo(){zo++,setTimeout(()=>{zo--})}function Ho(e,t={}){function n(e){return typeof e==`function`}if(!n(e))return e;try{let t=e.__sentry_wrapped__;if(t)return typeof t==`function`?t:e;if(Ke(e))return e}catch{return e}let r=function(...n){try{let r=n.map(e=>Ho(e,t));return e.apply(this,r)}catch(e){throw Vo(),jt(r=>{r.addEventProcessor(e=>(t.mechanism&&(et(e,void 0,void 0),tt(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),_i(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}Ge(r,e),E(e,`__sentry_wrapped__`,r);try{Object.getOwnPropertyDescriptor(r,`name`).configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function Uo(){let e=Be(),{referrer:t}=K.document||{},{userAgent:n}=K.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}function Wo(e,t){let n=qo(e,t),r={type:Qo(t),value:$o(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function Go(e,t,n,r){let i=N()?.getOptions().normalizeDepth,a=os(t),o={__serialized__:Vn(t,i)};if(a)return{exception:{values:[Wo(e,a)]},extra:o};let s={exception:{values:[{type:Ae(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:is(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=qo(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function Ko(e,t){return{exception:{values:[Wo(e,t)]}}}function qo(e,t){let n=t.stacktrace||t.stack||``,r=Yo(t),i=Xo(t);try{return e(n,r,i)}catch{}return[]}var Jo=/Minified React error #\d+;/i;function Yo(e){return e&&Jo.test(e.message)?1:0}function Xo(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function Zo(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0?e instanceof WebAssembly.Exception:!1}function Qo(e){let t=e?.name;return!t&&Zo(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function $o(e){let t=e?.message;return Zo(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?t.error.message:t:`No error message`}function es(e,t,n,r){let i=ns(e,t,n?.syntheticException||void 0,r);
4return tt(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),Wr(i)}function ts(e,t,n=`info`,r,i){let a=rs(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),Wr(a)}function ns(e,t,n,r,i){let a;if(we(t)&&t.error)return Ko(e,t.error);if(Te(t)||Ee(t)){let i=t;if(`stack`in t)a=Ko(e,t);else{let t=i.name||(Te(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=rs(e,o,n,r),et(a,o)}return`code`in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return Se(t)?Ko(e,t):ke(t)||Ae(t)?(a=Go(e,t,n,i),tt(a,{synthetic:!0}),a):(a=rs(e,t,n,r),et(a,`${t}`,void 0),tt(a,{synthetic:!0}),a)}function rs(e,t,n,r){let i={};if(r&&n){let r=qo(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),tt(i,{synthetic:!0})}if(De(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function is(e,{isUnhandledRejection:t}){let n=Xe(e),r=t?`promise rejection`:`exception`;return we(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Ae(e)?`Event \`${as(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function as(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function os(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}var ss=5e3,cs=class extends Zi{constructor(e){let t=ls(e);Ca(t,`browser`,[`browser`],K.SENTRY_SDK_SOURCE||Ro()),super(t);let{sendDefaultPii:n,sendClientReports:r,enableLogs:i,_experiments:a}=this._options,o=i??a?.enableLogs;K.document&&(r||o)&&K.document.addEventListener(`visibilitychange`,()=>{K.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),o&&ia(this))}),o&&(this.on(`flush`,()=>{ia(this)}),this.on(`afterCaptureLog`,()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{ia(this)},ss)})),n&&(this.on(`postprocessEvent`,xa),this.on(`beforeSendSession`,Sa))}eventFromException(e,t){return es(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return ts(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n,r)}};function ls(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:K.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var us=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,q=r,ds=(e,t)=>e>t[1]?`poor`:e>t[0]?`needs-improvement`:`good`,fs=(e,t,n,r)=>{let i,a;return o=>{t.value>=0&&(o||r)&&(a=t.value-(i??0),(a||i===void 0)&&(i=t.value,t.delta=a,t.rating=ds(t.value,n),e(t)))}},ps=()=>`v5-${Date.now()}-${Math.floor(Math.random()*8999999999999)+0xe8d4a51000}`,ms=(e=!0)=>{let t=q.performance?.getEntriesByType?.(`navigation`)[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},hs=()=>ms()?.activationStart??0,gs=(e,t=-1)=>{let n=ms(),r=`navigate`;return n&&(q.document?.prerendering||hs()>0?r=`prerender`:q.document?.wasDiscarded?r=`restore`:n.type&&(r=n.type.replace(/_/g,`-`))),{name:e,value:t,rating:`good`,delta:0,entries:[],id:ps(),navigationType:r}},_s=new WeakMap;function vs(e,t){return _s.get(e)||_s.set(e,new t),_s.get(e)}var ys=class e{constructor(){e.prototype.__init.call(this),e.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}},bs=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},xs=e=>{let t=!1;return()=>{t||=(e(),!0)}},Ss=-1,Cs=()=>q.document?.visibilityState===`hidden`&&!q.document?.prerendering?0:1/0,ws=e=>{q.document.visibilityState===`hidden`&&Ss>-1&&(Ss=e.type===`visibilitychange`?e.timeStamp:0,Es())},Ts=()=>{addEventListener(`visibilitychange`,ws,!0),addEventListener(`prerenderingchange`,ws,!0)},Es=()=>{removeEventListener(`visibilitychange`,ws,!0),removeEventListener(`prerenderingchange`,ws,!0)},Ds=()=>
4{if(q.document&&Ss<0){let e=hs();Ss=(q.document.prerendering?void 0:globalThis.performance.getEntriesByType(`visibility-state`).filter(t=>t.name===`hidden`&&t.startTime>e)[0]?.startTime)??Cs(),Ts()}return{get firstHiddenTime(){return Ss}}},Os=e=>{q.document?.prerendering?addEventListener(`prerenderingchange`,()=>e(),!0):e()},ks=[1800,3e3],As=(e,t={})=>{Os(()=>{let n=Ds(),r=gs(`FCP`),i,a=bs(`paint`,e=>{for(let t of e)t.name===`first-contentful-paint`&&(a.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-hs(),0),r.entries.push(t),i(!0)))});a&&(i=fs(e,r,ks,t.reportAllChanges))})},js=[.1,.25],Ms=(e,t={})=>{As(xs(()=>{let n=gs(`CLS`,0),r,i=vs(t,ys),a=e=>{for(let t of e)i._processEntry(t);i._sessionValue>n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},o=bs(`layout-shift`,a);o&&(r=fs(e,n,js,t.reportAllChanges),q.document?.addEventListener(`visibilitychange`,()=>{q.document?.visibilityState===`hidden`&&(a(o.takeRecords()),r(!0))}),q?.setTimeout?.(r))}))},Ns=e=>{let t=t=>{(t.type===`pagehide`||q.document?.visibilityState===`hidden`)&&e(t)};q.document&&(addEventListener(`visibilitychange`,t,!0),addEventListener(`pagehide`,t,!0))},Ps=[100,300],Fs=(e,t={})=>{Os(()=>{let n=Ds(),r=gs(`FID`),i,a=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),i(!0))},o=e=>{e.forEach(a)},s=bs(`first-input`,o);i=fs(e,r,Ps,t.reportAllChanges),s&&Ns(xs(()=>{o(s.takeRecords()),s.disconnect()}))})},Is=0,Ls=1/0,Rs=0,zs=e=>{e.forEach(e=>{e.interactionId&&(Ls=Math.min(Ls,e.interactionId),Rs=Math.max(Rs,e.interactionId),Is=Rs?(Rs-Ls)/7+1:0)})},Bs,Vs=()=>Bs?Is:performance.interactionCount||0,Hs=()=>{`interactionCount`in performance||Bs||(Bs=bs(`event`,zs,{type:`event`,buffered:!0,durationThreshold:0}))},Us=10,Ws=0,Gs=()=>Vs()-Ws,Ks=class e{constructor(){e.prototype.__init.call(this),e.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){Ws=Vs(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor(Gs()/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||e.entryType===`first-input`))return;let t=this._longestInteractionList.at(-1),n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<Us||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>Us){let e=this._longestInteractionList.splice(Us);for(let t of e)this._longestInteractionMap.delete(t.id)}this._onAfterProcessingINPCandidate?.(n)}}},qs=e=>{let t=q.requestIdleCallback||q.setTimeout;q.document?.visibilityState===`hidden`?e():(e=xs(e),t(e),Ns(e))},Js=[200,500],Ys=40,Xs=(e,t={})=>{globalThis.PerformanceEventTiming&&`interactionId`in PerformanceEventTiming.prototype&&Os(()=>{Hs();let n=gs(`INP`),r,i=vs(t,Ks),a=e=>{qs(()=>{for(let t of e)i._processEntry(t);let t=i._estimateP98LongestInteraction();t&&t._latency!==n.value&&(n.value=t._latency,n.entries=t.entries,r())})},o=bs(`event`,a,{durationThreshold:t.durationThreshold??Ys});r=fs(e,n,Js,t.reportAllChanges),o&&(o.observe({type:`first-input`,buffered:!0}),Ns(()=>{a(o.takeRecords()),r(!0)}))})},Zs=class{_processEntry(e){this._onBeforeProcessingEntry?.(e)}},Qs=[2500,4e3],$s=(e,t={})=>{Os(()=>{let n=Ds(),r=gs(`LCP`),i,a=vs(t,Zs),o=e=>{t.reportAllChanges||(e=e.slice(-1));for(let t of e)a._processEntry(t),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-hs(),0),r.entries=[t],i())},s=bs(`largest-contentful-paint`,o);if(s){i=fs(e,r,Qs,t.reportAllChanges);let n=xs(()=>{o(s.takeRecords()),s.disconnect(),i(!0)});for(let e of[`keydown`,`click`,`visibilitychange`])q.document&&addEventListener(e,()=>qs(n),{capture:!0,once:!0})}})},ec=[800,1800],tc=e=>{q.document?.prerendering?Os(()=>tc(e)):q.document?.readyState===`complete`?setTimeout(e):addEventListener(`load`,()=>tc(e),!0)},nc=(e,t={})=>{let n=gs(`TTFB`),r=fs(e,n,ec,t.reportAllChanges);tc(()=>{let e=ms();e&&(n.value=Math.max(e.responseStart-hs(),0),n.entries=[e],r(!0))})},rc={},ic={},ac,oc,sc,cc,lc;function uc(e,t=!1){return Sc(`cls`,e,_c,ac,t)}function dc(e,t=!1){return Sc(`lcp`,e,yc,sc,t)}function fc(e){return Sc(`fid`,e,vc,oc)}function pc(e){return Sc(`ttfb`,e,bc,cc)}function mc(e){return Sc(`inp`,e,xc,lc)}function hc(e,t){return wc(e,t),ic[e]||(Cc(e),ic[e]=!0),Tc(e,t)}function gc(e,t){let n=rc[e];if(n?.length)for(let r of n)try{r(t)}catch(t){us&&g.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${_(r)}\nError:`,t)}}function _c(){return Ms(e=>{gc(`cls`,{metric:e}),ac=e},{reportAllChanges:!0})}function vc(){return Fs(e=>
4{gc(`fid`,{metric:e}),oc=e})}function yc(){return $s(e=>{gc(`lcp`,{metric:e}),sc=e},{reportAllChanges:!0})}function bc(){return nc(e=>{gc(`ttfb`,{metric:e}),cc=e})}function xc(){return Xs(e=>{gc(`inp`,{metric:e}),lc=e})}function Sc(e,t,n,r,i=!1){wc(e,t);let a;return ic[e]||(a=n(),ic[e]=!0),r&&t({metric:r}),Tc(e,t,i?a:void 0)}function Cc(e){let t={};e===`event`&&(t.durationThreshold=0),bs(e,t=>{gc(e,{entries:t})},t)}function wc(e,t){rc[e]=rc[e]||[],rc[e].push(t)}function Tc(e,t,n){return()=>{n&&n();let r=rc[e];if(!r)return;let i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function Ec(e){return`duration`in e}function Dc(e){return typeof e==`number`&&isFinite(e)}function J(e,t,n,{...r}){let i=L(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime==`function`&&e.updateStartTime(t),Er(e,()=>{let e=Tr({startTime:t,...r});return e&&e.end(n),e})}function Oc(e){let t=N();if(!t)return;let{name:n,transaction:r,attributes:i,startTime:a}=e,{release:o,environment:s,sendDefaultPii:c}=t.getOptions(),l=t.getIntegrationByName(`Replay`)?.getReplayId(),u=j(),d=u.getUser(),f=d===void 0?void 0:d.email||d.id||d.ip_address,p;try{p=u.getScopeData().contexts.profile.profile_id}catch{}return Tr({name:n,attributes:{release:o,environment:s,user:f||void 0,profile_id:p||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":q.navigator?.userAgent,"client.address":c?`{{auto}}`:void 0,...i},startTime:a,experimental:{standalone:!0}})}function kc(){return q.addEventListener&&q.performance}function Y(e){return e/1e3}function Ac(e){let t=`unknown`,n=`unknown`,r=``;for(let i of e){if(i===`/`){[t,n]=e.split(`/`);break}if(!isNaN(Number(i))){t=r===`h`?`http`:r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function jc(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function Mc(e,t){let n,r=!1;function i(e){!r&&n&&t(e,n),r=!0}Ns(()=>{i(`pagehide`)});let a=e.on(`beforeStartNavigationSpan`,(e,t)=>{t?.isRedirect||(i(`navigation`),a?.(),o?.())}),o=e.on(`afterStartPageLoadSpan`,e=>{n=e.spanContext().spanId,o?.()})}function Nc(e){let t=0,n;if(!jc(`layout-shift`))return;let r=uc(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(t=e.value,n=r)},!0);Mc(e,(e,i)=>{Pc(t,n,i,e),r()})}function Pc(e,t,n,r){us&&g.log(`Sending CLS span (${e})`);let i=Y((k()||0)+(t?.startTime||0)),a=j().getScopeData().transactionName,o=t?C(t.sources[0]?.node):`Layout shift`,s={[I]:`auto.http.browser.cls`,[F]:`ui.webvital.cls`,[Bt]:t?.duration||0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((e,t)=>{s[`cls.source.${t+1}`]=C(e.node)});let c=Oc({name:o,transaction:a,attributes:s,startTime:i});c&&(c.addEvent(`cls`,{[It]:``,[Lt]:e}),c.end(i))}function Fc(e){let t=0,n;if(!jc(`largest-contentful-paint`))return;let r=dc(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(t=e.value,n=r)},!0);Mc(e,(e,i)=>{Ic(t,n,i,e),r()})}function Ic(e,t,n,r){us&&g.log(`Sending LCP span (${e})`);let i=Y((k()||0)+(t?.startTime||0)),a=j().getScopeData().transactionName,o=t?C(t.element):`Largest contentful paint`,s={[I]:`auto.http.browser.lcp`,[F]:`ui.webvital.lcp`,[Bt]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(s[`lcp.element`]=C(t.element)),t.id&&(s[`lcp.id`]=t.id),t.url&&(s[`lcp.url`]=t.url.trim().slice(0,200)),t.loadTime!=null&&(s[`lcp.loadTime`]=t.loadTime),t.renderTime!=null&&(s[`lcp.renderTime`]=t.renderTime),t.size!=null&&(s[`lcp.size`]=t.size));let c=Oc({name:o,transaction:a,attributes:s,startTime:i});c&&(c.addEvent(`lcp`,{[It]:`millisecond`,[Lt]:e}),c.end(i))}var Lc=2147483647,Rc=0,X={},Z,zc;function Bc({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){let r=kc();if(r&&k()){r.mark&&q.performance.mark(`sentry-tracing-init`);let i=Kc(),a=t?Fc(n):Gc(),o=qc(),s=e?Nc(n):Wc();return()=>{i(),a?.(),o(),s?.()}}return()=>void 0}function Vc(){hc(`longtask`,({entries:e})=>{let t=z();if(!t)return;let{op:n,start_timestamp:r}=L(t);for(let i of e){let e=Y(k()+i.startTime),a=Y(i.duration);n===`navigation`&&r&&e<r||J(t,e,e+a,{name:`Main UI thread blocked`,op:`ui.long-task`,attributes:{[I]:`auto.ui.browser.metrics`}})}})}function Hc(){new PerformanceObserver(e=>{let t=z();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=Y(k()+n.startTime),{start_timestamp:r,op:i}=L(t);if(i===`navigation`&&r&&e<r)continue;let a=Y(n.duration),o={[I]:`auto.ui.browser.metrics`},{invoker:s,invokerType:c,sourceURL:l,sourceFunctionName:u,sourceCharPosition:d}=n.scripts[0];o[`browser.script.invoker`]=s,o[`browser.script.invoker_type`]=c,l&&(o[`code.filepath`]=l),u&&(o[`code.function`]=u),d!==-1&&(o[`browser.script.source_char_position`]=d),J(t,e,e+a,{name:`Main UI thread blocked`,op:`ui.long-animation-frame`,attributes:o})}}).observe({type:`long-animation-frame`,buffered:!0})}function Uc(){hc(`event`,({entries:e})=>{let t=z();if(t){for(let n of e)if(n.name===`click`){let e=Y(k()+n.startTime),r=Y(n.duration),i={name:C(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[I]:`auto.ui.browser.metrics`}},a=Ve(n.target);a&&(i.attributes[`ui.component_name`]=a),J(t,e,e+r,i)}}})}function Wc(){return uc(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(X.cls={value:e.value,unit:``},zc=t)},!0)}function Gc(){return dc(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(X.lcp={value:e.value,unit:`millisecond`},Z=t)},!0)}function Kc(){return fc(({metric:e})=>{let t=e.entries[e.entries.length-1];if(!t)return;let n=Y(k()),r=Y(t.startTime);X.fid={value:e.value,unit:`millisecond`},X[`mark.fid`]={value:n+r,unit:`second`}})}function qc(){return pc(({metric:e})=>{e.entries[e.entries.length-1]&&(X.ttfb={value:e.value,unit:`millisecond`})})}
4function Jc(e,t){let n=kc(),r=k();if(!n?.getEntries||!r)return;let i=Y(r),a=n.getEntries(),{op:o,start_timestamp:s}=L(e);if(a.slice(Rc).forEach(n=>{let r=Y(n.startTime),a=Y(Math.max(0,n.duration));if(!(o===`navigation`&&s&&i+r<s))switch(n.entryType){case`navigation`:Zc(e,n,i);break;case`mark`:case`paint`:case`measure`:{Yc(e,n,r,a,i,t.ignorePerformanceApiSpans);let o=Ds(),s=n.startTime<o.firstHiddenTime;n.name===`first-paint`&&s&&(X.fp={value:n.startTime,unit:`millisecond`}),n.name===`first-contentful-paint`&&s&&(X.fcp={value:n.startTime,unit:`millisecond`});break}case`resource`:tl(e,n,n.name,r,a,i,t.ignoreResourceSpans);break}}),Rc=Math.max(a.length-1,0),nl(e),o===`pageload`){al(X);let n=X[`mark.fid`];n&&X.fid&&(J(e,n.value,n.value+Y(X.fid.value),{name:`first input delay`,op:`ui.action`,attributes:{[I]:`auto.ui.browser.metrics`}}),delete X[`mark.fid`]),t.recordClsOnPageloadSpan||delete X.cls,t.recordLcpOnPageloadSpan||delete X.lcp,Object.entries(X).forEach(([e,t])=>{fr(e,t.value,t.unit)}),e.setAttribute(`performance.timeOrigin`,i),e.setAttribute(`performance.activationStart`,hs()),rl(e,t)}Z=void 0,zc=void 0,X={}}function Yc(e,t,n,r,i,a){if([`mark`,`measure`].includes(t.entryType)&&w(t.name,a))return;let o=ms(!1),s=Y(o?o.requestStart:0),c=i+Math.max(n,s),l=i+n,u=l+r,d={[I]:`auto.resource.browser.metrics`};c!==l&&(d[`sentry.browser.measure_happened_before_request`]=!0,d[`sentry.browser.measure_start_time`]=c),Xc(d,t),c<=u&&J(e,c,u,{name:t.name,op:t.entryType,attributes:d})}function Xc(e,t){try{let n=t.detail;if(!n)return;if(typeof n==`object`){for(let[t,r]of Object.entries(n))if(r&&Oe(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(r!==void 0)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if(Oe(n)){e[`sentry.browser.measure.detail`]=n;return}try{e[`sentry.browser.measure.detail`]=JSON.stringify(n)}catch{}}catch{}}function Zc(e,t,n){[`unloadEvent`,`redirect`,`domContentLoadedEvent`,`loadEvent`,`connect`].forEach(r=>{Qc(e,t,r,n)}),Qc(e,t,`secureConnection`,n,`TLS/SSL`),Qc(e,t,`fetch`,n,`cache`),Qc(e,t,`domainLookup`,n,`DNS`),el(e,t,n)}function Qc(e,t,n,r,i=n){let a=t[$c(n)],o=t[`${n}Start`];!o||!a||J(e,r+Y(o),r+Y(a),{op:`browser.${i}`,name:t.name,attributes:{[I]:`auto.ui.browser.metrics`,...n===`redirect`&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function $c(e){return e===`secureConnection`?`connectEnd`:e===`fetch`?`domainLookupStart`:`${e}End`}function el(e,t,n){let r=n+Y(t.requestStart),i=n+Y(t.responseEnd),a=n+Y(t.responseStart);t.responseEnd&&(J(e,r,i,{op:`browser.request`,name:t.name,attributes:{[I]:`auto.ui.browser.metrics`}}),J(e,a,i,{op:`browser.response`,name:t.name,attributes:{[I]:`auto.ui.browser.metrics`}}))}function tl(e,t,n,r,i,a,o){if(t.initiatorType===`xmlhttprequest`||t.initiatorType===`fetch`)return;let s=t.initiatorType?`resource.${t.initiatorType}`:`resource.other`;if(o?.includes(s))return;let c=mo(n),l={[I]:`auto.resource.browser.metrics`};il(l,t,`transferSize`,`http.response_transfer_size`),il(l,t,`encodedBodySize`,`http.response_content_length`),il(l,t,`decodedBodySize`,`http.decoded_response_content_length`);let u=t.deliveryType;u!=null&&(l[`http.response_delivery_type`]=u);let d=t.renderBlockingStatus;if(d&&(l[`resource.render_blocking_status`]=d),c.protocol&&(l[`url.scheme`]=c.protocol.split(`:`).pop()),c.host&&(l[`server.address`]=c.host),l[`url.same_origin`]=n.includes(q.location.origin),t.nextHopProtocol!=null){let{name:e,version:n}=Ac(t.nextHopProtocol);l[`network.protocol.name`]=e,l[`network.protocol.version`]=n}let f=a+r;J(e,f,f+i,{name:n.replace(q.location.origin,``),op:s,attributes:l})}function nl(e){let t=q.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setAttribute(`effectiveConnectionType`,n.effectiveType),n.type&&e.setAttribute(`connectionType`,n.type),Dc(n.rtt)&&(X[`connection.rtt`]={value:n.rtt,unit:`millisecond`})),Dc(t.deviceMemory)&&e.setAttribute(`deviceMemory`,`${t.deviceMemory} GB`),Dc(t.hardwareConcurrency)&&e.setAttribute(`hardwareConcurrency`,String(t.hardwareConcurrency))}function rl(e,t){Z&&t.recordLcpOnPageloadSpan&&(Z.element&&e.setAttribute(`lcp.element`,C(Z.element)),Z.id&&e.setAttribute(`lcp.id`,Z.id),Z.url&&e.setAttribute(`lcp.url`,Z.url.trim().slice(0,200)),Z.loadTime!=null&&e.setAttribute(`lcp.loadTime`,Z.loadTime),Z.renderTime!=null&&e.setAttribute(`lcp.renderTime`,Z.renderTime),e.setAttribute(`lcp.size`,Z.size)),zc?.sources&&t.recordClsOnPageloadSpan&&zc.sources.forEac
4h((t,n)=>e.setAttribute(`cls.source.${n+1}`,C(t.node)))}function il(e,t,n,r){let i=t[n];i!=null&&i<Lc&&(e[r]=i)}function al(e){let t=ms(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e[`ttfb.requestTime`]={value:n-r,unit:`millisecond`})}function ol(){return kc()&&k()?hc(`element`,sl):()=>void 0}var sl=({entries:e})=>{let t=z(),n=t?R(t):void 0,r=n?L(n).description:j().getScopeData().transactionName;e.forEach(e=>{let t=e;if(!t.identifier)return;let n=t.name,i=t.renderTime,a=t.loadTime,[o,s]=a?[Y(a),`load-time`]:i?[Y(i),`render-time`]:[O(),`entry-emission`],c=n===`image-paint`?Y(Math.max(0,(i??0)-(a??0))):0,l={[I]:`auto.ui.browser.elementtiming`,[F]:`ui.elementtiming`,[P]:`component`,"sentry.span_start_time_source":s,"sentry.transaction_name":r,"element.id":t.id,"element.type":t.element?.tagName?.toLowerCase()||`unknown`,"element.size":t.naturalWidth&&t.naturalHeight?`${t.naturalWidth}x${t.naturalHeight}`:void 0,"element.render_time":i,"element.load_time":a,"element.url":t.url||void 0,"element.identifier":t.identifier,"element.paint_type":n};wr({name:`element[${t.identifier}]`,attributes:l,startTime:o,onlyIfParent:!0},e=>{e.end(o+c)})})},cl=1e3,ll,ul,dl;function fl(e){v(`dom`,e),y(`dom`,pl)}function pl(){if(!q.document)return;let e=b.bind(null,`dom`),t=gl(e,!0);q.document.addEventListener(`click`,t,!1),q.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=q[t]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(T(n,`addEventListener`,function(t){return function(n,r,i){if(n===`click`||n==`keypress`)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=gl(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),T(n,`removeEventListener`,function(e){return function(t,n,r){if(t===`click`||t==`keypress`)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),Object.keys(n).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function ml(e){if(e.type!==ul)return!1;try{if(!e.target||e.target._sentryId!==dl)return!1}catch{}return!0}function hl(e,t){return e===`keypress`?t?.tagName?!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!0:!1}function gl(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=_l(n);if(hl(n.type,r))return;E(n,`_sentryCaptured`,!0),r&&!r._sentryId&&E(r,`_sentryId`,D());let i=n.type===`keypress`?`input`:n.type;ml(n)||(e({event:n,name:i,global:t}),ul=n.type,dl=r?r._sentryId:void 0),clearTimeout(ll),ll=q.setTimeout(()=>{dl=void 0,ul=void 0},cl)}}function _l(e){try{return e.target}catch{return null}}var vl;function yl(e){let t=`history`;v(t,e),y(t,bl)}function bl(){if(q.addEventListener(`popstate`,()=>{let e=q.location.href,t=vl;vl=e,t!==e&&b(`history`,{from:t,to:e})}),!To())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=vl,i=xl(String(n));if(vl=i,r===i)return e.apply(this,t);b(`history`,{from:r,to:i})}return e.apply(this,t)}}T(q.history,`pushState`,e),T(q.history,`replaceState`,e)}function xl(e){try{return new URL(e,q.location.origin).toString()}catch{return e}}var Sl={};function Cl(e){let t=Sl[e];if(t)return t;let n=q[e];if(Do(n))return Sl[e]=n.bind(q);let r=q.document;if(r&&typeof r.createElement==`function`)try{let t=r.createElement(`iframe`);t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){us&&g.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(Sl[e]=n.bind(q))}function wl(e){Sl[e]=void 0}var Tl=`__sentry_xhr_v3__`;function El(e){v(`xhr`,e),y(`xhr`,Dl)}function Dl(){if(!q.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=O()*1e3,a=x(n[0])?n[0].toUpperCase():void 0,o=Ol(n[1]);if(!a||!o)return e.apply(t,n);t[Tl]={method:a,url:o,request_headers:{}},a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[Tl];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}b(`xhr`,{endTimestamp:O()*1e3,startTimestamp:i,xhr:t,virtualError:r})}};return`onreadystatechange`in t&&typeof t.onreadystatechange==`function`?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(e,t,n){return s(),e.apply(t,n)}}):t.addEventListener(`readystatechange`,s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[Tl];return a&&x(r)&&x(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[Tl];return r?(n[0]!==void 0&&(r.body=n[0]),b(`xhr`,{startTimestamp:O()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function Ol(e){if(x(e))return e;try{return e.toString()}catch{}}var kl=[],Al=new Map,jl=60;function Ml(){if(kc()&&k()){let e=Pl();return()=>{e()}}return()=>void 0}var Nl={click:`click`,pointerdown:`click`,pointerup:`click`,mousedown:`click`,mouseup:`click`,touchstart:`click`,touchend:`click`,mouseover:`hover`,mouseout:`hover`,mouseenter:`hover`,mouseleave:`hover`,pointerover:`hover`,pointerout:`hover`,pointerenter:`hover`,pointerleave:`hover`,dragstart:`drag`,dragend:`drag`,drag:`drag`,dragenter:`drag`,dragleave:`drag`,dragover:`drag`,drop:`drag`,keydown:`press`,keyup:`press`,keypress:`press`,input:`press`};function Pl(){return mc(Fl)}var Fl=({metric:e})=>
4{if(e.value==null)return;let t=Y(e.value);if(t>jl)return;let n=e.entries.find(t=>t.duration===e.value&&Nl[t.name]);if(!n)return;let{interactionId:r}=n,i=Nl[n.name],a=Y(k()+n.startTime),o=z(),s=o?R(o):void 0,c=(r==null?void 0:Al.get(r))||s,l=c?L(c).description:j().getScopeData().transactionName,u=Oc({name:C(n.target),transaction:l,attributes:{[I]:`auto.http.browser.inp`,[F]:`ui.interaction.${i}`,[Bt]:n.duration},startTime:a});u&&(u.addEvent(`inp`,{[It]:`millisecond`,[Lt]:e.value}),u.end(a+t))};function Il(){let e=({entries:e})=>{let t=z(),n=t&&R(t);e.forEach(e=>{if(!Ec(e)||!n)return;let t=e.interactionId;if(t!=null&&!Al.has(t)){if(kl.length>10){let e=kl.shift();Al.delete(e)}kl.push(t),Al.set(t,n)}})};hc(`event`,e),hc(`first-input`,e)}function Ll(e,t=Cl(`fetch`)){let n=0,r=0;function i(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:`POST`,referrerPolicy:`strict-origin`,headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return wl(`fetch`),Gr(`No fetch implementation available`);try{return t(e.url,o).then(e=>(n-=a,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get(`X-Sentry-Rate-Limits`),"retry-after":e.headers.get(`Retry-After`)}}))}catch(e){return wl(`fetch`),n-=a,r--,Gr(e)}}return ga(e,i)}var Rl=30,zl=50;function Bl(e,t,n,r){let i={filename:e,function:t===`<anonymous>`?`?`:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var Vl=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Hl=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ul=/\((\S*)(?::(\d+))(?::(\d+))\)/,Wl=[Rl,e=>{let t=Vl.exec(e);if(t){let[,e,n,r]=t;return Bl(e,`?`,+n,+r)}let n=Hl.exec(e);if(n){if(n[2]&&n[2].indexOf(`eval`)===0){let e=Ul.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=Jl(n[1]||`?`,n[2]);return Bl(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],Gl=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Kl=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ql=se(Wl,[zl,e=>{let t=Gl.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=Kl.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],n=t[1]||`?`;return[n,e]=Jl(n,e),Bl(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),Jl=(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],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Q=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,Yl=1024,Xl=`Breadcrumbs`,Zl=W(((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Xl,setup(e){t.console&&Ja(eu(e)),t.dom&&fl($l(e,t.dom)),t.xhr&&El(tu(e)),t.fetch&&ko(nu(e)),t.history&&yl(ru(e)),t.sentry&&e.on(`beforeSendEvent`,Ql(e))}}}));function Ql(e){return function(t){N()===e&&G({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:$e(t)},{event:t})}}function $l(e,t){return function(n){if(N()!==e)return;let r,i,a=typeof t==`object`?t.serializeAttribute:void 0,o=typeof t==`object`&&typeof t.maxStringLength==`number`?t.maxStringLength:void 0;o&&o>Yl&&(Q&&g.warn(`\`dom.maxStringLength\` cannot exceed ${Yl}, but a value of ${o} was configured. Sentry will use ${Yl} instead.`),o=Yl),typeof a==`string`&&(a=[a]);try{let e=n.event,t=iu(e)?e.target:e;r=C(t,{keyAttrs:a,maxStringLength:o}),i=Ve(t)}catch{r=`<unknown>`}if(r.length===0)return;let s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),G(s,{event:n.event,name:n.name,global:n.global})}}function eu(e){return function(t){if(N()!==e)return;let n={category:`console`,data:{arguments:t.args,logger:`console`},level:Xa(t.level),message:Ue(t.args,` `)};if(t.level===`assert`)if(t.args[0]===!1)n.message=`Assertion failed: ${Ue(t.args.slice(1),` `)||`console.assert`}`,n.data.arguments=t.args.slice(1);else return;G(n,{input:t.args,level:t.level})}}function tu(e){return function(t){if(N()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[Tl];if(!n||!r||!i)return;let{method:a,url:o,status_code:s,body:c}=i,l={method:a,url:o,status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:`xhr`,data:l,type:`http`,level:Co(s)};e.emit(`beforeOutgoingRequestBreadcrumb`,d,u),G(d,u)}}function nu(e){return function(t){if(N()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;
4if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`))if(t.fetchData.method,t.fetchData.url,t.error){let i=t.fetchData,a={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},o={category:`fetch`,data:i,level:`error`,type:`http`};e.emit(`beforeOutgoingRequestBreadcrumb`,o,a),G(o,a)}else{let i=t.response,a={...t.fetchData,status_code:i?.status};t.fetchData.request_body_size,t.fetchData.response_body_size,i?.status;let o={input:t.args,response:i,startTimestamp:n,endTimestamp:r},s={category:`fetch`,data:a,type:`http`,level:Co(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),G(s,o)}}}function ru(e){return function(t){if(N()!==e)return;let n=t.from,r=t.to,i=mo(K.location.href),a=n?mo(n):void 0,o=mo(r);a?.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),G({category:`navigation`,data:{from:n,to:r}})}}function iu(e){return!!e&&!!e.target}var au=`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`.split(`.`),ou=`BrowserApiErrors`,su=W(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:ou,setupOnce(){t.setTimeout&&T(K,`setTimeout`,cu),t.setInterval&&T(K,`setInterval`,cu),t.requestAnimationFrame&&T(K,`requestAnimationFrame`,lu),t.XMLHttpRequest&&`XMLHttpRequest`in K&&T(XMLHttpRequest.prototype,`send`,uu);let e=t.eventTarget;e&&(Array.isArray(e)?e:au).forEach(e=>du(e,t))}}}));function cu(e){return function(...t){let n=t[0];return t[0]=Ho(n,{mechanism:{data:{function:_(e)},handled:!1,type:`instrument`}}),e.apply(this,t)}}function lu(e){return function(t){return e.apply(this,[Ho(t,{mechanism:{data:{function:`requestAnimationFrame`,handler:_(e)},handled:!1,type:`instrument`}})])}}function uu(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&T(n,e,function(t){let n={mechanism:{data:{function:e,handler:_(t)},handled:!1,type:`instrument`}},r=Ke(t);return r&&(n.mechanism.data.handler=_(r)),Ho(t,n)})}),e.apply(this,t)}}function du(e,t){let n=K[e]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(T(n,`addEventListener`,function(n){return function(r,i,a){try{fu(i)&&(i.handleEvent=Ho(i.handleEvent,{mechanism:{data:{function:`handleEvent`,handler:_(i),target:e},handled:!1,type:`instrument`}}))}catch{}return t.unregisterOriginalCallbacks&&pu(this,r,i),n.apply(this,[r,Ho(i,{mechanism:{data:{function:`addEventListener`,handler:_(i),target:e},handled:!1,type:`instrument`}}),a])}}),T(n,`removeEventListener`,function(e){return function(t,n,r){try{let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch{}return e.call(this,t,n,r)}}))}function fu(e){return typeof e.handleEvent==`function`}function pu(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var mu=W(()=>({name:`BrowserSession`,setupOnce(){if(K.document===void 0){Q&&g.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}wi({ignoreDuration:!0}),Di(),yl(({from:e,to:t})=>{e!==void 0&&e!==t&&(wi({ignoreDuration:!0}),Di())})}})),hu=`GlobalHandlers`,gu=W(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:hu,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(_u(e),Su(`onerror`)),t.onunhandledrejection&&(vu(e),Su(`onunhandledrejection`))}}}));function _u(e){ge(t=>{let{stackParser:n,attachStacktrace:r}=Cu();if(N()!==e||Bo())return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=xu(ns(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,yi(l,{originalException:c,mechanism:{handled:!1,type:`onerror`}})})}function vu(e){ye(t=>{let{stackParser:n,attachStacktrace:r}=Cu();if(N()!==e||Bo())return;let i=yu(t),a=Oe(i)?bu(i):ns(n,i,void 0,r,!0);a.level=`error`,yi(a,{originalException:i,mechanism:{handled:!1,type:`onunhandledrejection`}})})}function yu(e){if(Oe(e))return e;try{if(`reason`in e)return e.reason;if(`detail`in e&&`reason`in e.detail)return e.detail.reason}catch{}return e}function bu(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function xu(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[],l=r,u=n,d=x(t)&&t.length>0?t:Be();
4return c.length===0&&c.push({colno:l,filename:d,function:`?`,in_app:!0,lineno:u}),e}function Su(e){Q&&g.log(`Global Handler attached: ${e}`)}function Cu(){return N()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}var wu=W(()=>({name:`HttpContext`,preprocessEvent(e){if(!K.navigator&&!K.location&&!K.document)return;let t=Uo(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}})),Tu=`cause`,Eu=5,Du=`LinkedErrors`,Ou=W(((e={})=>{let t=e.limit||Eu,n=e.key||Tu;return{name:Du,preprocessEvent(e,r,i){Wa(Wo,i.getOptions().stackParser,n,t,e,r)}}}));function ku(){return Au()?(Q&&d(()=>{console.error(`[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/`)}),!0):!1}function Au(){if(K.window===void 0)return!1;let e=K;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=Be();return!(K===K.top&&[`chrome-extension`,`moz-extension`,`ms-browser-extension`,`safari-web-extension`].some(e=>t.startsWith(`${e}://`)))}function ju(e){return[Pa(),Aa(),su(),Zl(),gu(),Ou(),Qa(),wu(),mu()]}function Mu(e={}){let t=!e.skipBrowserExtensionCheck&&ku();return sa(cs,{...e,enabled:t?!1:e.enabled,stackParser:ce(e.stackParser||ql),integrations:Fi({integrations:e.integrations,defaultIntegrations:e.defaultIntegrations==null?ju():e.defaultIntegrations}),transport:e.transport||Ll})}var Nu=`HttpClient`,Pu=W(((e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:Nu,setup(e){Wu(e,t),Gu(e,t)}}}));function Fu(e,t,n,r,i){if(Ku(e,n.status,n.url)){let e=Ju(t,r),a,o,s,c;Yu()&&([a,s]=Iu(`Cookie`,e),[o,c]=Iu(`Set-Cookie`,n)),yi(qu({url:e.url,method:e.method,status:n.status,requestHeaders:a,responseHeaders:o,requestCookies:s,responseCookies:c,error:i}))}}function Iu(e,t){let n=Bu(t.headers),r;try{let t=n[e]||n[e.toLowerCase()]||void 0;t&&(r=zu(t))}catch{}return[n,r]}function Lu(e,t,n,r,i){if(Ku(e,t.status,t.responseURL)){let e,a,o;if(Yu()){try{let e=t.getResponseHeader(`Set-Cookie`)||t.getResponseHeader(`set-cookie`)||void 0;e&&(a=zu(e))}catch{}try{o=Vu(t)}catch{}e=r}yi(qu({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:o,responseCookies:a,error:i}))}}function Ru(e){if(e){let t=e[`Content-Length`]||e[`content-length`];if(t)return parseInt(t,10)}}function zu(e){return e.split(`; `).reduce((e,t)=>{let[n,r]=t.split(`=`);return n&&r&&(e[n]=r),e},{})}function Bu(e){let t={};return e.forEach((e,n)=>{t[n]=e}),t}function Vu(e){let t=e.getAllResponseHeaders();return t?t.split(`\r
5`).reduce((e,t)=>{let[n,r]=t.split(`: `);return n&&r&&(e[n]=r),e},{}):{}}function Hu(e,t){return e.some(e=>typeof e==`string`?t.includes(e):e.test(t))}function Uu(e,t){return e.some(e=>typeof e==`number`?e===t:t>=e[0]&&t<=e[1])}function Wu(e,t){Oo()&&ko(n=>{if(N()!==e)return;let{response:r,args:i,error:a,virtualError:o}=n,[s,c]=i;r&&Fu(t,s,r,c,a||o)},!1)}function Gu(e,t){`XMLHttpRequest`in r&&El(n=>{if(N()!==e)return;let{error:r,virtualError:i}=n,a=n.xhr,o=a[Tl];if(!o)return;let{method:s,request_headers:c}=o;try{Lu(t,a,s,c,r||i)}catch(e){Q&&g.warn(`Error while extracting response event form XHR response`,e)}})}function Ku(e,t,n){return Uu(e.failedRequestStatusCodes,t)&&Hu(e.failedRequestTargets,n)&&!_a(n,N())}function qu(e){let t=N(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,i=`HTTP Client Error with status code: ${e.status}`,a={message:i,exception:{values:[{type:`Error`,value:i,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:Ru(e.responseHeaders)}}};return tt(a,{type:`http.client`,handled:!1}),a}function Ju(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}function Yu(){let e=N();return e?!!e.getOptions().sendDefaultPii:!1}function $(e=0){return((k()||performance.timeOrigin)+e)/1e3}function Xu(e){let t=[];if(e.nextHopProtocol!=null){let{name:n,version:r}=Ac(e.nextHopProtocol);t.push([`network.protocol.version`,r],[`network.protocol.name`,n])}return k()?[...t,[`http.request.redirect_start`,$(e.redirectStart)],[`http.request.fetch_start`,$(e.fetchStart)],[`http.request.domain_lookup_start`,$(e.domainLookupStart)],[`http.request.domain_lookup_end`,$(e.domainLookupEnd)],[`http.request.connect_start`,$(e.connectStart)],[`http.request.secure_connection_start`,$(e.secureConnectionStart)],[`http.request.connection_end`,$(e.connectEnd)],[`http.request.request_start`,$(e.requestStart)],[`http.request.response_start`,$(e.responseStart)],[`http.request.response_end`,$(e.responseEnd)]]:t}var Zu=new WeakMap,Qu=new Map,$u={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function ed(e,t){let{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:a,enableHTTPTimings:o,tracePropagationTargets:s,onRequestSpanStart:c}={...$u,...t},l=typeof a==`function`?a:e=>!0,u=e=>rd(e,s),d={};n&&(e.addEventProcessor(e=>
5(e.type===`transaction`&&e.spans&&e.spans.forEach(e=>{if(e.op===`http.client`){let t=Qu.get(e.span_id);t&&(e.timestamp=t/1e3,Qu.delete(e.span_id))}}),e)),i&&Ao(e=>{if(e.response){let t=Zu.get(e.response);t&&e.endTimestamp&&Qu.set(t,e.endTimestamp)}}),ko(e=>{let t=go(e,l,u,d);if(e.response&&e.fetchData.__span&&Zu.set(e.response,e.fetchData.__span),t){let n=cd(e.fetchData.url),r=n?mo(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r}),o&&nd(t),c?.(t,{headers:e.headers})}})),r&&El(e=>{let t=id(e,l,u,d);if(t){o&&nd(t);let n;try{n=new Headers(e.xhr.__sentry_xhr_v3__?.request_headers)}catch{}c?.(t,{headers:n})}})}function td(e){return e.entryType===`resource`&&`initiatorType`in e&&typeof e.nextHopProtocol==`string`&&(e.initiatorType===`fetch`||e.initiatorType===`xmlhttprequest`)}function nd(e){let{url:t}=L(e).data;if(!t||typeof t!=`string`)return;let n=hc(`resource`,({entries:r})=>{r.forEach(r=>{td(r)&&r.name.endsWith(t)&&(Xu(r).forEach(t=>e.setAttribute(...t)),setTimeout(n))})})}function rd(e,t){let n=Be();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}let a=r.origin===i;return t?w(r.toString(),t)||a&&w(r.pathname,t):a}else{let n=!!e.match(/^\/(?!\/)/);return t?w(e,t):n}}function id(e,t,n,r){let i=e.xhr,a=i?.[Tl];if(!i||i.__sentry_own_request__||!a)return;let{url:o,method:s}=a,c=B()&&t(o);if(e.endTimestamp&&c){let e=i.__sentry_xhr_span_id__;if(!e)return;let t=r[e];t&&a.status_code!==void 0&&(Ut(t,a.status_code),t.end(),delete r[e]);return}let l=cd(o),u=mo(l||o),d=ho(o),f=!!z(),p=c&&f?Tr({name:`${s} ${d}`,attributes:{url:o,type:`xhr`,"http.method":s,"http.url":l,"server.address":u?.host,[I]:`auto.http.browser`,[F]:`http.client`,...u?.search&&{"http.query":u?.search},...u?.hash&&{"http.fragment":u?.hash}}}):new H;i.__sentry_xhr_span_id__=p.spanContext().spanId,r[i.__sentry_xhr_span_id__]=p,n(o)&&ad(i,B()&&f?p:void 0);let m=N();return m&&m.emit(`beforeOutgoingRequestSpan`,p,e),p}function ad(e,t){let{"sentry-trace":n,baggage:r}=wa({span:t});n&&od(e,n,r)}function od(e,t,n){let r=e.__sentry_xhr_v3__?.request_headers;if(!r?.[`sentry-trace`])try{if(e.setRequestHeader(`sentry-trace`,t),n){let t=r?.baggage;(!t||!sd(t))&&e.setRequestHeader(`baggage`,n)}}catch{}}function sd(e){return e.split(`,`).some(e=>e.trim().startsWith(`sentry-`))}function cd(e){try{return new URL(e,K.location.origin).href}catch{return}}function ld(){K.document?K.document.addEventListener(`visibilitychange`,()=>{let e=z();if(!e)return;let t=R(e);if(K.document.hidden&&t){let e=`cancelled`,{op:n,status:r}=L(t);Q&&g.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:2,message:e}),t.setAttribute(`sentry.cancellation_reason`,`document.hidden`),t.end()}}):Q&&g.warn(`[Tracing] Could not set up background tab detection due to lack of global document`)}var ud=`sentry_previous_trace`,dd=`sentry.previous_trace`;function fd(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r=t===`session-storage`,i=r?hd():void 0;e.on(`spanStart`,e=>{if(R(e)!==e)return;let t=j().getPropagationContext();i=pd(i,e,t),r&&md(i)});let a=!0;n&&e.on(`beforeSampling`,e=>{if(!i)return;let t=j(),n=t.getPropagationContext();if(a&&n.parentSpanId){a=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(i.sampleRate),sampled:String(gd(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=gd(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[Pt]:i.sampleRate}})}function pd(e,t,n){let r=L(t);function i(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[`sentry.sample_rate`])}catch{return 0}}let a={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return a;let o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(Q&&g.log(`Adding previous_trace ${o} link to span ${{op:r.op,...t.spanContext()}}`),t.addLink({context:o,attributes:{[Vt]:`previous_trace`}}),t.setAttribute(dd,`${o.traceId}-${o.spanId}-${+!!gd(o)}`)),a)}function md(e){try{K.sessionStorage.setItem(ud,JSON.stringify(e))}catch(e){Q&&g.warn(`Could not store previous trace in sessionStorage`,e)}}function hd(){try{let e=K.sessionStorage?.getItem(ud);return JSON.parse(e)}catch{return}}function gd(e){return e.traceFlags===1}var _d=`BrowserTracing`,vd={...Pr,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
5dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:`in-memory`,consistentTraceSampling:!1,_experiments:{},...$u},yd=((e={})=>{let t={name:void 0,source:void 0},n=K.document,{enableInp:i,enableElementTiming:a,enableLongTask:o,enableLongAnimationFrame:s,_experiments:{enableInteractions:c,enableStandaloneClsSpans:l,enableStandaloneLcpSpans:u},beforeStartSpan:d,idleTimeout:f,finalTimeout:p,childSpanTimeout:m,markBackgroundSpan:ee,traceFetch:h,traceXHR:te,trackFetchStreamPerformance:ne,shouldCreateSpanForRequest:re,enableHTTPTimings:ie,ignoreResourceSpans:ae,ignorePerformanceApiSpans:oe,instrumentPageLoad:se,instrumentNavigation:ce,detectRedirects:le,linkPreviousTrace:ue,consistentTraceSampling:de,onRequestSpanStart:_}={...vd,...e},fe,pe;function me(e,r,i=!0){let a=r.op===`pageload`,o=d?d(r):r,s=o.attributes||{};if(r.name!==o.name&&(s[P]=`custom`,o.attributes=s),!i){let e=at();Tr({...o,startTime:e}).end(e);return}t.name=o.name,t.source=s[P];let c=zr(o,{idleTimeout:f,finalTimeout:p,childSpanTimeout:m,disableAutoFinish:a,beforeSpanEnd:t=>{fe?.(),Jc(t,{recordClsOnPageloadSpan:!l,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:ae,ignorePerformanceApiSpans:oe}),Ed(e,void 0);let n=j(),r=n.getPropagationContext();n.setPropagationContext({...r,traceId:c.spanContext().traceId,sampled:_n(c),dsc:V(t)})}});Ed(e,c);function ee(){n&&[`interactive`,`complete`].includes(n.readyState)&&e.emit(`idleSpanEnableAutoFinish`,c)}a&&n&&(n.addEventListener(`readystatechange`,()=>{ee()}),ee())}return{name:_d,setup(e){if(En(),fe=Bc({recordClsStandaloneSpans:l||!1,recordLcpStandaloneSpans:u||!1,client:e}),i&&Ml(),a&&ol(),s&&r.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(`long-animation-frame`)?Hc():o&&Vc(),c&&Uc(),le&&n){let e=()=>{pe=O()};addEventListener(`click`,e,{capture:!0}),addEventListener(`keydown`,e,{capture:!0,passive:!0})}function t(){let t=Td(e);t&&!L(t).timestamp&&(Q&&g.log(`[Tracing] Finishing current active span with op: ${L(t).op}`),t.setAttribute(Ft,`cancelled`),t.end())}e.on(`startNavigationSpan`,(n,r)=>{if(N()!==e)return;if(r?.isRedirect){Q&&g.warn(`[Tracing] Detected redirect, navigation span will not be the root span, but a child span.`),me(e,{op:`navigation.redirect`,...n},!1);return}t(),M().setPropagationContext({traceId:A(),sampleRand:Math.random()});let i=j();i.setPropagationContext({traceId:A(),sampleRand:Math.random()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),me(e,{op:`navigation`,...n})}),e.on(`startPageLoadSpan`,(n,r={})=>{if(N()!==e)return;t();let i=an(r.sentryTrace||Sd(`sentry-trace`),r.baggage||Sd(`baggage`)),a=j();a.setPropagationContext(i),a.setSDKProcessingMetadata({normalizedRequest:Uo()}),me(e,{op:`pageload`,...n})})},afterAllSetup(e){let n=Be();if(ue!==`off`&&fd(e,{linkPreviousTrace:ue,consistentTraceSampling:de}),K.location){if(se){let t=k();bd(e,{name:K.location.pathname,startTime:t?t/1e3:void 0,attributes:{[P]:`url`,[I]:`auto.pageload.browser`}})}ce&&yl(({to:t,from:r})=>{if(r===void 0&&n?.indexOf(t)!==-1){n=void 0;return}n=void 0;let i=fo(t),a=Td(e),o=a&&le&&Od(a,pe);xd(e,{name:i?.pathname||K.location.pathname,attributes:{[P]:`url`,[I]:`auto.navigation.browser`}},{url:t,isRedirect:o})})}ee&&ld(),c&&Cd(e,f,p,m,t),i&&Il(),ed(e,{traceFetch:h,traceXHR:te,trackFetchStreamPerformance:ne,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:re,enableHTTPTimings:ie,onRequestSpanStart:_})}}});function bd(e,t,n){e.emit(`startPageLoadSpan`,t,n),j().setTransactionName(t.name);let r=Td(e);return r&&e.emit(`afterStartPageLoadSpan`,r),r}function xd(e,t,n){let{url:r,isRedirect:i}=n||{};e.emit(`beforeStartNavigationSpan`,t,{isRedirect:i}),e.emit(`startNavigationSpan`,t,{isRedirect:i});let a=j();return a.setTransactionName(t.name),r&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...Uo(),url:r}}),Td(e)}function Sd(e){return(K.document?.querySelector(`meta[name=${e}]`))?.getAttribute(`content`)||void 0}function Cd(e,t,n,r,i){let a=K.document,o;a&&addEventListener(`click`,()=>{let a=`ui.action.click`,s=Td(e);if(s){let e=L(s).op;if([`navigation`,`pageload`].includes(e)){Q&&g.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`);return}}if(o&&=(o.setAttribute(Ft,`interactionInterrupted`),o.end(),void 0),!i.name){Q&&g.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}o=zr({name:i.name,op:a,attributes:{[P]:i.source||`url`}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})},{capture:!0})}var wd=`_sentry_idleSpan`;function Td(e){return e[wd]}function Ed(e,t){E(e,wd,t)}var Dd=.3;function Od(e,t){let n=L(e),r=at();return!(r-n.start_timestamp>Dd||t&&r-t<=Dd)}var kd=e(t());function Ad(e){let t={...e};return Ca(t,`react`),bi(`react`,{version:kd.version}),Mu(t)}var jd=[`access_token`,`id_token`,`refresh_token`,`code`],Md=`[Filtered]`;function Nd(e){if(!jd.some(t=>e.includes(t)))return e;try{let t=new URL(e,window.location.origin),n=jd.filter(e=>t.searchParams.has(e));if(n.length===0)return e;for(let e of n)t.searchParams.set(e,Md);return t.toString()}catch{let t=e.indexOf(`?`);return t===-1?e:`${e.slice(0,t)}?${Md}`}}var Pd=RegExp(`(${jd.join(`|`)})=[^&\\s"']*`,`gi`);function Fd(e){return jd.some(t=>e.includes(t))?e.replace(Pd,`$1=${Md}`):e}function Id(e){let t=Object.entries(e);return t.some(([,e])=>typeof e==`string`&&Fd(e)!==e)?Object.fromEntries(t.map(([e,t])=>[e,typeof t==`string`?Fd(t):t])):e}function Ld(e){return{...e,description:e.description==null?e.description:Fd(e.description),data:Id(e.data)}}function Rd(e){return typeof e.data?.url==`string`?{...e,data:{...e.data,url:Nd(e.data.url)}}:e}function zd(e){return typeof e.request?.url==`string`&&(e.request.url=Nd(e.request.url)),e.breadcrumbs!=null&&(e.breadcrumbs=e.breadcrumbs.map(Rd)),e}function Bd(e){typeof e.request?.url==`string`&&(e.request.url=Nd(e.request.url)),e.spans!=null&&(e.spans=e.spans.map(Ld));let t=e.contexts?.trace?.data;return t!=null&&(e.contexts.trace.data=Id(t)),e}var Vd=`:id`;function Hd(e){try{return decodeURIComponent(e)}catch{return e}}function Ud(e,t){let n=Hd(e),r=t?.toLowerCase();return[`people`,`persons`,`customers`,`profiles`].includes(r??``)?!0:/^\d+$/.test(e)||/^[\da-f]{16,}$/i.test(e)||/^[\da-f]{8}(?:-[\da-f]{4}){3}-[\da-f]{12}$/i.test(e)||/^[\w-]{24,}$/.test(e)||/@|%40/i.test(e)||/@/.test(n)}function Wd(e){return(e.split(/[#?]/)[0]??``).split(`/`).map((e,t,n)=>e===``?e:Ud(e,n[t-1])?Vd:e).join(`/`).slice(0,300)}function Gd(e){try{let t=new URL(e,window.location.origin);return`${t.origin}${Wd(t.pathname)}`.slice(0,300)}catch{return Wd(e).slice(0,300)}}function Kd(e){return[`script`,`link`,`css`].includes(e.initiatorType)?/(?:fly|unityassets)\.customer\.io|localhost:\d+|\.cio\.localhost|entrypoint\.js/.test(e.name):!1}function qd(){try{return performance.getEntriesByType(`resource`).filter(e=>`initiatorType`in e).filter(Kd).slice(-12).map(e=>{let t=e;return{name:Gd(e.name),initiatorType:e.initiatorType,durationMs:Math.round(e.duration),transferSize:e.transferSize,encodedBodySize:e.encodedBodySize,responseStatus:t.responseStatus}})}catch{return[]}}function Jd(){try{return performance.getEntriesByType(`mark`).filter(e=>e.name.startsWith(`hydra:`)).slice(-20).map(e=>({name:e.name,startTimeMs:Math.round(e.startTime)}))}catch{return[]}}function Yd(){return{appLoadPerformanceMarks:Jd(),recentEmbeddedAppResources:qd()}}var Xd=`hydra:sentry-app-load-diagnostic`,Zd=600*1e3,Qd=new Map,$d=[`Failed to read the 'contentDocument' property from 'HTMLIFrameElement'`,`can't access dead object`,`Cannot read properties of undefined (reading 'getModel')`,`setVariables timed out after 10000ms`,/t.monaco.editor/,/Failed to fetch/,/Load failed/,/AxiosError/,/Unable to preload CSS/,/APIError/,/AbortError/,/ResizeObserver loop/,/VM BUG/,/Ember Data Request/];function ef(){return[`standalone`,`prod-staging-1`,`prod-staging-2`,`production`].includes(`production`)}function tf(e,t){let n=Date.now();try{let r=Number(window.localStorage.getItem(e));return Number.isFinite(r)&&n-r<t?!0:(window.localStorage.setItem(e,String(n)),!1)}catch{let r=Qd.get(e);return r!=null&&n-r<t?!0:(Qd.set(e,n),!1)}}function nf(e,t,n=`info`){ef()&&G({category:`embedded-app-load`,level:n,message:e,data:t})}function rf(e,t,n={}){if(!ef()||tf([Xd,e,...n.dedupeKey??[String(t.appBundle??`unknown`)]].join(`:`),n.rateLimitMs??Zd))return;let r=typeof t.appBundle==`string`?t.appBundle:`unknown`,i={...t,activeRoutePath:typeof t.activeRoutePath==`string`?Wd(t.activeRoutePath):t.activeRoutePath};jt(t=>{t.setLevel(n.level??`warning`),t.setTag(`diagnostic`,`embedded_app_load`),t.setTag(`diagnostic_kind`,e),t.setTag(`app_bundle`,r),t.setFingerprint(n.fingerprint??[`hydra-embedded-app-load`,e,r]),t.setContext(`embedded_app_load`,{kind:e,path:Wd(window.location.pathname),searchPresent:window.location.search!==``,visibilityState:document.visibilityState,online:window.navigator.onLine,...i,...Yd()}),vi(`Hydra embedded app load diagnostic: ${e}`)})}function af(e){return e.category===`console`&&e.level!==`error`?null:Rd(e)}function of(e){try{return{formattedError:typeof e==`string`?{message:e}:JSON.parse(JSON.stringify(e)),stringRepresentation:String(e)}}catch{return{formattedError:{message:`Could not process non-Error exception`,originalError:String(e)},stringRepresentation:String(e)}}}function sf(e,t){let n=t.originalException;if(e?.exception?.values?.length===1){let[t]=e.exception.values;if(t.type===`UnhandledRejection`&&t.value?.includes(`Non-Error promise rejection captured with value: Object Not Found Matching Id:`)===!0)return null}if(n instanceof Error&&window.FS?.event!=null){let e=n;
5window.FS.event(`Application Error`,{name:e.name,message:e.message,fileName:e.fileName,lineNumber:e.lineNumber,stack:e.stack,sentryEventId:t.event_id})}if(n!=null&&!(n instanceof Error)){let{formattedError:t,stringRepresentation:r}=of(n);e.extra=e.extra??{},e.extra.nonErrorException=t,e.extra.nonErrorExceptionString=r}return zd(e)}function cf(e){return Bd(e)}function lf(){if(!ef())return;let e=!1;try{e=localStorage.getItem(`hydra:sentryBrowserTracing`)===`true`}catch{}Ad({dsn:`https://[email protected]/4505875619905536`,integrations:[oo(),Pu({failedRequestStatusCodes:[[405,408],[410,421],[423,428],[430,499],[503,599]]}),...e?[yd()]:[]],tracesSampleRate:+!!e,tracePropagationTargets:[],environment:`production`,release:`[email protected]+310d792d+production`,ignoreErrors:$d,beforeBreadcrumb:af,beforeSend:sf,beforeSendTransaction:cf,denyUrls:[/extensions\//i,/^chrome:\/\//i,/^moz-extension:\/\//i],allowUrls:[/https:\/\/(unityassets|fly)\.customer\.io/]})}function uf(){window._fs_ready=function(){window?.FS?.getCurrentSessionURL!=null&&j().setExtra(`fs_session_url`,window.FS.getCurrentSessionURL(!0))}}function df(e){ef()&&xi(`masquerading_enabled`,e)}function ff(e){j().setTag(`data_center`,e)}function pf(e,t){Si({id:t.id,email:t.email,account_id:e.id})}function mf(e){}var hf=_i;export{ff as a,df as c,_i as d,vi as f,mf as i,lf as l,rf as n,pf as o,hf as r,uf as s,nf as t,Wd as u};
6//# sourceMappingURL=sentry-D0Yklwyq.js.map

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.