1var e=`10.65.0`,t=globalThis;function n(){return r(t),t}function r(t){let n=t.__SENTRY__=t.__SENTRY__||{};return n.version=n.version||`10.65.0`,n[e]=n[`10.65.0`]||{}}function i(n,r,i=t){let a=i.__SENTRY__=i.__SENTRY__||{},o=a[e]=a[`10.65.0`]||{};return o[n]||(o[n]=r())}var a=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,o=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],s=`Sentry Logger `,c={};function l(e){if(!(`console`in t))return e();let n=t.console,r={},i=Object.keys(c);i.forEach(e=>{let t=c[e];r[e]=n[e],n[e]=t});try{return e()}finally{i.forEach(e=>{n[e]=r[e]})}}function u(){_().enabled=!0}function d(){_().enabled=!1}function f(){return _().enabled}function p(...e){g(`log`,...e)}function m(...e){g(`warn`,...e)}function h(...e){g(`error`,...e)}function g(e,...n){a&&f()&&l(()=>{t.console[e](`${s}[${e}]:`,...n)})}function _(){return a?i(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var v={enable:u,disable:d,isEnabled:f,log:p,warn:m,error:h},ee=Object.prototype.toString;function te(e){switch(ee.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return S(e,Error)}}function y(e,t){return ee.call(e)===`[object ${t}]`}function ne(e){return y(e,`ErrorEvent`)}function re(e){return y(e,`DOMError`)}function ie(e){return y(e,`DOMException`)}function b(e){return y(e,`String`)}function ae(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function x(e){return e===null||ae(e)||typeof e!=`object`&&typeof e!=`function`}function oe(e){return y(e,`Object`)}function se(e){return typeof e==`object`&&!!e}function ce(e){return typeof Event<`u`&&S(e,Event)}function le(e){return y(e,`RegExp`)}function ue(e){return!!(e?.then&&typeof e.then==`function`)}function S(e,t){try{return e instanceof t}catch{return!1}}function de(e){return typeof Request<`u`&&S(e,Request)}function C(e,t,n){if(!(t in e))return;let r=e[t];if(typeof r!=`function`)return;let i=n(r);typeof i==`function`&&fe(i,r);try{e[t]=i}catch{a&&v.log(`Failed to replace method "${t}" in object`,e)}}function w(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{a&&v.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function fe(e,t){try{e.prototype=t.prototype=t.prototype||{},w(e,`__sentry_original__`,t)}catch{}}function pe(e){return e.__sentry_original__}function me(e){if(te(e))return{message:e.message,name:e.name,stack:e.stack,...he(e)};if(ce(e)){let{type:t,target:n,currentTarget:r,detail:i}=e;return{type:t,target:n,currentTarget:r,...i?{detail:i}:{},...he(e)}}return e}function he(e){return se(e)?Object.fromEntries(Object.entries(e)):{}}function ge(e){let t=Object.keys(me(e));return t.sort(),t[0]?t.join(`, `):`[object has no keys]`}var _e;function ve(e){if(_e!==void 0)return _e?_e(e):e();let n=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),r=t;return n in r&&typeof r[n]==`function`?(_e=r[n],_e(e)):(_e=null,e())}function ye(){return ve(()=>Math.random())}function be(){return ve(()=>Date.now())}var xe=Symbol.for(`sentry.skipNormalization`),Se=Symbol.for(`sentry.overrideNormalizationDepth`);function Ce(e){return!!e[xe]}function we(e){let t=e[Se];return typeof t==`number`?t:void 0}var Te=50,Ee=/\(error: (.*)\)/,De=/captureMessage|captureException/;function Oe(...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];n.length>1024&&(n=n.slice(0,1024));let o=Ee.test(n)?n.replace(Ee,`$1`):n;if(!o.includes(`Error: `)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=Te+r)break}}return Ae(i.slice(r))}}function ke(e){return Array.isArray(e)?Oe(...e):e}function Ae(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(je(t).function||``)&&t.pop(),t.reverse(),De.test(je(t).function||``)&&(t.pop(),De.test(je(t).function||``)&&t.pop()),t.slice(0,Te).map(e=>({...e,filename:e.filename||je(t).filename,function:e.function||`?`}))}function je(e){return e[e.length-1]||{}}var Me=`<anonymous>`;function Ne(e){try{return!e||typeof e!=`function`?Me:e.name||Me}catch{return Me}}function Pe(e){let t=e.exception;if(t){let e=[];
2try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}var Fe;function Ie(e){Fe=e}function Le(e,t=100,n=1/0){try{return ze(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Re(e,t=3,n=100*1024){let r=Le(e,t);return Ue(r)>n?Re(e,t-1,n):r}function ze(e,t,n=1/0,r=1/0,i=We()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=Be(e,t);if(!s.startsWith(`[object `))return s;if(Ce(t))return t;let c=we(t),l=c===void 0?n:c;if(l===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let u=t;if(u&&typeof u.toJSON==`function`)try{return ze(``,u.toJSON(),l-1,r,i)}catch{}let d=Array.isArray(t)?[]:{},f=0,p=me(t);for(let e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(f>=r){d[e]=`[MaxProperties ~]`;break}let t=p[e];d[e]=ze(e,t,l-1,r,i),f++}return o(t),d}function Be(e,t){try{if(Fe){let e=Fe(t);if(e)return e}return typeof global<`u`&&t===global?`[Global]`:typeof t==`number`&&!Number.isFinite(t)?`[${t}]`:typeof t==`function`?`[Function: ${Ne(t)}]`:typeof t==`symbol`?`[${String(t)}]`:typeof t==`bigint`?`[BigInt: ${String(t)}]`:`[object ${Ve(t)}]`}catch(e){return`**non-serializable** (${e})`}}function Ve(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function He(e){return~-encodeURI(e).split(/%..|./).length}function Ue(e){return He(JSON.stringify(e))}function We(){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 Ge(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Ke(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];x(r)?n.push(String(r)):r instanceof Error?n.push(r.message?`${r.name}: ${r.message}`:r.name):n.push(Be(void 0,r))}return n.join(t)}function qe(e,t,n=!1){return b(e)?le(t)?t.test(e):b(t)?n?e===t:e.includes(t):typeof t==`function`?t(e):!1:!1}function Je(e,t=[],n=!1){for(let r of t)if(qe(e,r,n))return!0;return!1}function Ye(){let e=t;return e.crypto||e.msCrypto}var Xe;function Ze(){return ye()*16}function T(e=Ye()){try{if(e?.randomUUID)return ve(()=>e.randomUUID()).replace(/-/g,``)}catch{}return Xe||=`10000000100040008000100000000000`,Xe.replace(/[018]/g,e=>(e^(Ze()&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{w(e,`__sentry_captured__`,!0)}catch{}return!1}function rt(e){try{return e.__sentry_captured__}catch{}}var it=1e3;function at(){return be()/it}function ot(){let{performance:e}=t;if(!e?.now||!e.timeOrigin)return at;let n=e.timeOrigin;return()=>(n+ve(()=>e.now()))/it}var st;function E(){return(st??=ot())()}var ct=null;function lt(){let{performance:e}=t;if(!e?.now)return;let n=3e5,r=ve(()=>e.now()),i=be(),a=e.timeOrigin;if(typeof a==`number`&&Math.abs(a+r-i)<n)return a;let o=e.timing?.navigationStart;return typeof o==`number`&&Math.abs(o+r-i)<n?o:i-r}function D(){return ct===null&&(ct=lt()),ct}function ut(e){let t=E(),n={sid:T(),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||E(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:T()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let 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 O(){return T()}function k(){return T().substring(16)}function ht(e){try{let n=t.WeakRef;if(typeof n==`function`)return new n(e)}catch{}return e}function gt(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}var _t=`_sentrySpan`;function vt(e,t){t?w(e,_t,ht(t)):delete e[_t]}function yt(e){return gt(e[_t])}var bt=100,xt=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:O(),sampleRand:ye()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},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._conversationId=this._conversationId,vt(t,yt(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}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],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,attributes:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u,conversationId:d}=(n instanceof e?n.getScopeData():oe(n)?t:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,vt(this,void 0),this._attachments=[],this.setPropagationContext({traceId:O(),sampleRand:ye()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:bt;if(n<=0)return this;let r={timestamp:at(),...e,message:e.message?Ge(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,attributes:this._attributes,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:yt(this),conversationId:this._conversationId}}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 n=t?.event_id||T();if(!this._client)return a&&v.warn(`No client configured on scope - will not capture exception!`),n;let r=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||T();if(!this._client)return a&&v.warn(`No client configured on scope - will not capture message!`),r;let i=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=e.event_id||t?.event_id||T();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(a&&v.warn(`No client configured on scope - will not capture event!`),n)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEac
2h(e=>{e(this)}),!1)}};function St(){return i(`defaultCurrentScope`,()=>new xt)}function Ct(){return i(`defaultIsolationScope`,()=>new xt)}var wt=e=>e instanceof Promise&&!e[Tt],Tt=Symbol(`chained PromiseLike`),Et=(e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return wt(r)&&wt(e)?r:Dt(e,r)},Dt=(e,t)=>{if(!t)return e;let n=!1;for(let r in e){if(r in t)continue;n=!0;let i=e[r];typeof i==`function`?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[Tt]:!0}),t},Ot=class{constructor(e,t){let n;n=e||new xt;let r;r=t||new xt,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 ue(n)?Et(n,()=>this._popScope(),()=>this._popScope()):(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 kt(){let e=r(n());return e.stack=e.stack||new Ot(St(),Ct())}function At(e){return kt().withScope(e)}function jt(e,t){let n=kt();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Mt(e){return kt().withScope(()=>e(kt().getIsolationScope()))}function Nt(){return{withIsolationScope:Mt,withScope:At,withSetScope:jt,withSetIsolationScope:(e,t)=>Mt(t),getCurrentScope:()=>kt().getScope(),getIsolationScope:()=>kt().getIsolationScope()}}function Pt(e){let t=r(e);return t.acs?t.acs:Nt()}var Ft;function It(){return Ft?.()}function Lt(){return Ft!==void 0}function A(){return Pt(n()).getCurrentScope()}function j(){return Pt(n()).getIsolationScope()}function Rt(){return i(`globalScope`,()=>new xt)}function zt(...e){let t=Pt(n());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function M(){return A().getClient()}function Bt(e){let t=It();if(t)return{trace_id:t.traceId,span_id:t.spanId};let{traceId:n,parentSpanId:r,propagationSpanId:i}=e.getPropagationContext(),a={trace_id:n,span_id:i||k()};return r&&(a.parent_span_id=r),a}var N=`sentry.source`,Vt=`sentry.sample_rate`,Ht=`sentry.previous_trace_sample_rate`,P=`sentry.op`,F=`sentry.origin`,Ut=`sentry.idle_span_finish_reason`,Wt=`sentry.measurement_unit`,Gt=`sentry.measurement_value`,Kt=`sentry.custom_span_name`,qt=`sentry.profile_id`,Jt=`sentry.exclusive_time`,Yt=`url.full`,Xt=`sentry.link.type`,Zt=`gen_ai.conversation.id`,Qt=`sentry-`;function $t(e){let t=tn(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.startsWith(`sentry-`)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function en(e){if(e)return rn(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${Qt}${t}`]=n),e),{}))}function tn(e){if(!(!e||!b(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=nn(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):nn(e)}function nn(e){return e.split(`,`).map(e=>{let t=e.indexOf(`=`);return t===-1?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}function rn(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((e,[t,n],r)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,o=r===0?i:`${e},${i}`;return o.length>8192?(a&&v.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):o},``)}function I(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||M()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function an(e){v.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function on(e,t){if(!t?.length)return!1;for(let n of t){if(ln(n)){if(e.description&&qe(e.description,n))return a&&an(e),!0;continue}let t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;let r=n.name?e.description&&qe(e.description,n.name):!0,i=n.op?e.op&&qe(e.op,n.op):!0,o=n.attributes?Object.entries(n.attributes).every(([t,n])=>sn(e.attributes?.[t],n)):!0;if(r&&i&&o)return a&&an(e),!0}return!1}function sn(e,t){return typeof e==`string`&&(typeof t==`string`||t instanceof RegExp)?qe(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}function cn(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function ln(e){return typeof e==`string`||e instanceof RegExp}function L(e){return e.getOptions().traceLifecycle===`stream`}function un(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}function dn(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).includes(`value`)}function fn(e,t){let{value:n,unit:r}=dn(e)?e:{value:e,unit:void 0},i=mn(n),a=r&&typeof r==`string`?{unit:r}:{};if(i)return{...i,...a};
2if(!t||t===`skip-undefined`&&n===void 0)return;let o=``;try{o=JSON.stringify(n)??``}catch{}return{value:o,type:`string`,...a}}function pn(e,t=!1){let n={};for(let[r,i]of Object.entries(e??{})){let e=fn(i,t);e&&(n[r]=e)}return n}function mn(e){if(Array.isArray(e))return{value:e,type:`array`};let t=typeof e==`string`?`string`:typeof e==`boolean`?`boolean`:typeof e==`number`&&!Number.isNaN(e)?Number.isInteger(e)?`integer`:`double`:null;if(t)return{value:e,type:t}}function hn(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:`internal_error`}}function gn(e,t){e.setAttribute(`http.response.status_code`,t);let n=hn(t);n.message!==`unknown_error`&&e.setStatus(n)}var _n=`_sentryScope`,vn=`_sentryIsolationScope`,yn=Symbol.for(`sentry.otelSourceInference`),bn=Symbol.for(`sentry.otelSourceExplicitlySet`),xn=Symbol.for(`sentry.tracerProviderSpan`);function Sn(e,t,n){e&&(w(e,vn,ht(n)),w(e,_n,t))}function Cn(e){let t=e;return{scope:t[_n],isolationScope:gt(t[vn])}}function wn(e){return e[yn]===!0}function Tn(e){w(e,bn,!0)}function En(e){return e[xn]===!0}var Dn=/^o(\d+)\./,On=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function kn(e){return e===`http`||e===`https`}function An(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 jn(e){let t=On.exec(e);if(!t){l(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i=``,a=``,o=``,s=``]=t.slice(1),c=``,u=s,d=u.split(`/`);if(d.length>1&&(c=d.slice(0,-1).join(`/`),u=d.pop()),u){let e=u.match(/^\d+/);e&&(u=e[0])}return Mn({host:a,pass:i,path:c,projectId:u,port:o,protocol:n,publicKey:r})}function Mn(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function Nn(e){if(!a)return!0;let{port:t,projectId:n,protocol:r}=e;return[`protocol`,`publicKey`,`host`,`projectId`].find(t=>e[t]?!1:(v.error(`Invalid Sentry Dsn: ${t} missing`),!0))?!1:n.match(/^\d+$/)?kn(r)?t&&isNaN(parseInt(t,10))?(v.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(v.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(v.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Pn(e){return e.match(Dn)?.[1]}function Fn(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=Pn(n)),r}function In(e){let t=typeof e==`string`?jn(e):Mn(e);if(!(!t||!Nn(t)))return t}var Ln=RegExp(`^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$`);function Rn(e){if(!e)return;let t=e.match(Ln);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 zn(e,t){let n=Rn(e),r=$t(t);if(!n?.traceId)return{traceId:O(),sampleRand:ye()};let i=Hn(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 Bn(e=O(),t=k(),n){let r=``;return n!==void 0&&(r=n?`-1`:`-0`),`${e}-${t}${r}`}function Vn(e=O(),t=k(),n){return`00-${e}-${t}-${n?`01`:`00`}`}function Hn(e,t){let n=un(t?.sample_rand);if(n!==void 0)return n;let r=un(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?ye()*r:r+ye()*(1-r):ye()}var Un=!1;function Wn(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s,links:c}=z(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s,links:c}}function Gn(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:z(e).parent_span_id,a=Cn(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||k():t,trace_id:n}}function Kn(e){let{traceId:t,spanId:n}=e.spanContext();return Bn(t,n,nr(e))}function qn(e){let{traceId:t,spanId:n}=e.spanContext();return Vn(t,n,nr(e))}function Jn(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 Yn(e){if(e?.length)return e.map(({context:{spanId:e,traceId:t,traceFlags:n},attributes:r})=>({span_id:e,trace_id:t,sampled:n===1,attributes:r}))}function R(e){return typeof e==`number`?Xn(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Xn(e.getTime()):E()}function Xn(e){return e>9999999999?e/1e3:e}function z(e){if(tr(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(er(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:Qn(e),start_timestamp:R(i),timestamp:R(o)||void 0,status:rr(s),op:r[P],origin:r[F],links:Jn(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Zn(e){if(tr(e))return e.getStreamedSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(er(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{name:a,span_id:t,trace_id:n,parent_span_id:Qn(e),start_timestamp:R(i),end_timestamp:R(o),is_segment:e===dr(e),status:ir(s),attributes:ar(r,s),links:Yn(c)}}return{span_id:t,trace_id:n,start_timestamp:0,name:``,end_timestamp:0,status:`ok`,is_segment:e===dr(e)}}function Qn(e){return`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0}function $n(e){return{...e,attributes:pn(e.attributes),links:e.links?.map(e=>({...e,attributes:pn(e.attributes)}))}}function er(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function tr(e){return typeof e.getSpanJSON==`function`}function nr(e){let{traceFlags:t}=e.spanContext();return t===1}function rr(e){if(!(!e||e.code===0))return e.code===1?`ok`:e.message||`internal_error`}function ir(e){return!e||e.code===1||e.code===0||e.message===`cancelled`?`ok`:`error`}function ar(e,t){let n=ir(t)===`error`?t?.message:void 0;return{...n&&{"sentry.status.message":n},...e}}var or=`_sentryChildSpans`,sr=`_sentryRootSpan`;function cr(e,t){w(t,sr,e[sr]||e),e[or]?e[or].add(t):w(e,or,new Set([t]))}function lr(e,t){e[or]&&e[or].delete(t)}function ur(e){let t=new Set;function n(e){if(!t.has(e)&&nr(e)){t.add(e);let r=e[or]?Array.from(e[or]):[];for(let e of r)n(e)}}return n(e),Array.from(t)}var B=dr;function dr(e){return e[sr]||e}function V(){let e=Pt(n());return e.getActiveSpan?e.getActiveSpan():yt(A())}function fr(){Un||=(l(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),!0)}var pr=`sentry.segment.name`,mr=`sentry.transaction`,hr=`production`,gr=Symbol.for(`sentry.nonRecordingSpan`),_r
2=class{constructor(e={}){this._traceId=e.traceId||O(),this._spanId=e.spanId||k(),this.dropReason=e.dropReason,w(this,gr,!0)}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 vr(e){return!!e&&e[gr]===!0}var yr=`_frozenDsc`;function br(e,t){w(e,yr,t)}function xr(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||`production`,release:n.release,public_key:r,trace_id:e,org_id:Fn(t)};return t.emit(`createDsc`,i),i}function Sr(e,t){let n=t.getPropagationContext();return n.dsc||xr(n.traceId,e)}function Cr(e){let t=M();if(!t)return{};let n=B(e),r=z(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[yr];if(c)return s(c);if(vr(n)&&!I(t.getOptions())){let e=Cn(n).scope;if(e)return s({...Sr(t,e)})}let l=a?.get(`sentry.dsc`),u=l&&$t(l);if(u)return s(u);let d=xr(e.spanContext().traceId,t),f=i[`sentry.source`]??i[`sentry.span.source`],p=r.description;return f!==`url`&&p&&(d.transaction=p),I()&&(d.sampled=String(nr(n)),d.sample_rand=a?.get(`sentry.sample_rand`)??Cn(n).scope?.getPropagationContext().sampleRand.toString()),s(d),t.emit(`createDsc`,d,n),d}function wr(e){if(!a)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`,parent_span_id:r}=z(e),{spanId:i}=e.spanContext(),o=nr(e),s=B(e),c=s===e,l=`[Tracing] Starting ${o?`sampled`:`unsampled`} ${c?`root `:``}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&u.push(`parent ID: ${r}`),!c){let{op:e,description:t}=z(s);u.push(`root ID: ${s.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}v.log(`${l} 3 ${u.join(` 4 `)}`)}function Tr(e){if(!a)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`}=z(e),{spanId:r}=e.spanContext(),i=`[Tracing] Finishing "${n}" ${B(e)===e?`root `:``}span "${t}" with ID ${r}`;v.log(i)}function Er(e,t,n){if(!I(e))return[!1];let r,i;typeof e.tracesSampler==`function`?(i=e.tracesSampler({...t,inheritOrSampleWith:e=>typeof t.parentSampleRate==`number`?t.parentSampleRate:typeof t.parentSampled==`boolean`?Number(t.parentSampled):e}),r=!0):t.parentSampled===void 0?e.tracesSampleRate!==void 0&&(i=e.tracesSampleRate,r=!0):i=t.parentSampled;let o=un(i);if(o===void 0)return a&&v.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(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!o)return a&&v.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,r];let s=n<o;return s||a&&v.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[s,o,r]}function Dr(e){return!!e&&typeof e==`function`&&`_streamed`in e&&!!e._streamed}function Or(e,t=[]){return[e,t]}function kr(e,t){let[n,r]=e;return[n,[...r,t]]}function Ar(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 jr(e,t){return Ar(e,(e,n)=>t.includes(n))}function Mr(e){let n=r(t);return n.encodePolyfill?n.encodePolyfill(e):new TextEncoder().encode(e)}function Nr(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[Mr(r),e]:r.push(typeof e==`string`?Mr(e):e)}for(let e of n){let[t,n]=e;if(i(` 5${JSON.stringify(t)} 6`),typeof n==`string`||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(Le(n))}i(e)}}return typeof r==`string`?r:Pr(r)}function Pr(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 Fr(e){return[{type:`span`},e]}function Ir(e){let t=typeof e.data==`string`?Mr(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var Lr={sessions:`session`,event:`error`,client_report:`internal`,user_report:`default`,profile_chunk:`profile`,replay_event:`replay`,replay_recording:`replay`,check_in:`monitor`,raw_security:`security`,log:`log_item`,trace_metric:`metric`};function Rr(e){return e in Lr}function zr(e){return Rr(e)?Lr[e]:e}function Br(e){if(!e?.sdk)return;
6let{name:t,version:n}=e.sdk;return{name:t,version:n}}function Vr(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date(be()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:An(r)},...i&&{trace:i}}}function Hr(e,t){if(!t)return e;let n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function Ur(e,t,n,r){let i=Br(n);return Or({sent_at:new Date(be()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:An(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function Wr(e,t,n,r){let i=Br(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;Hr(e,n?.sdk);let o=Vr(e,i,r,t);return delete e.sdkProcessingMetadata,Or(o,[[{type:a},e]])}function Gr(e,t){function n(e){return!!e.trace_id&&!!e.public_key}let r=Cr(e[0]),i=t?.getDsn(),a=t?.getOptions().tunnel,o={sent_at:new Date(be()).toISOString(),...n(r)&&{trace:r},...!!a&&i&&{dsn:An(i)}},{beforeSendSpan:s,ignoreSpans:c}=t?.getOptions()||{},l=c?.length?e.filter(e=>{let t=z(e);return!on({description:t.description,op:t.op,attributes:t.data},c)}):e,u=e.length-l.length;u&&t?.recordDroppedEvent(`before_send`,`span`,u);let d=s?e=>{let t=z(e);return(Dr(s)?t:s(t))||(fr(),t)}:z,f=[];for(let e of l){let t=d(e);t&&f.push(Fr(t))}return Or(o,f)}function Kr(e,t,n,r=V()){let i=r&&B(r);i&&(a&&v.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[Gt]:t,[Wt]:n}))}function qr(e){if(!e||e.length===0)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[Wt],i=n[Gt];typeof r==`string`&&typeof i==`number`&&(t[e.name]={value:i,unit:r})}),t}function Jr(){return r(n()).segmentSpanCaptureStrategy}var Yr=1e3,Xr=class{constructor(e={}){this._traceId=e.traceId||O(),this._spanId=e.spanId||k(),this._startTime=e.startTimestamp||E(),this._links=e.links,this._attributes={},this.setAttributes({[F]:`manual`,[P]: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._frozen||(this._links?this._links.push(e):this._links=[e]),this}addLinks(e){return this._frozen||(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 this._frozen?this:(t===void 0?delete this._attributes[e]:this._attributes[e]=t,e===`sentry.source`&&t!==void 0&&wn(this)&&Tn(this),this)}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._frozen||(this._startTime=R(e))}setStatus(e){return this._frozen||(this._status=e),this}updateName(e){return this._frozen?this:(this._name=e,wn(this)||this.setAttribute(N,`custom`),this)}end(e){if(this._endTime){this._frozen=En(this);return}this._endTime=R(e),Tr(this),this._onSpanEnded(),this._frozen=En(this)}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[P],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:rr(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[F],profile_id:this._attributes[qt],exclusive_time:this._attributes[Jt],measurements:qr(this._events),is_segment:this._isStandaloneSpan&&B(this)===this||void 0,segment_id:this._isStandaloneSpan?B(this).spanContext().spanId:void 0,links:Jn(this._links)}}getStreamedSpanJSON(){return{name:this._name??``,span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===B(this),status:ir(this._status),attributes:ar(this._attributes,this._status),links:Yn(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){if(this._frozen)return this;a&&v.log(`[Tracing] Adding an event to span:`,e);let r=Zr(t)?t:n||E(),i=Zr(t)?{}:t||{},o={name:e,time:R(r),attributes:i};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=M();e&&(e.emit(`spanEnd`,this),this._isStandaloneSpan||e.emit(`afterSpanEnd`,this));let t=B(this),n=this._isStandaloneSpan||this===t;if(this._isStandaloneSpan){this._sampled?ei(Gr([this],e)):(a&&v.log(`[Tracing] Discarding standalone span because its trace was not chosen to be sampled.`),e&&e.recordDroppedEvent(`sample_rate`,`span`));return}if(!n){let e=Jr();if(e){let n=Cn(this).scope||A();e.onChildSpanEnded(this,t,e=>this._convertSpanToTransaction(e),n)}return}if(e&&L(e)){e.emit(`afterSegmentSpanEnd`,this);return}let r=Cn(this).scope||A(),i=Jr();if(i)i.onSegmentSpanEnded(e=>this._convertSpanToTransaction(e),r);else{let e=this._convertSpanToTransaction();e&&r.captureEvent(e)}}_convertSpanToTransaction(e={}){if(!Qr(z(this)))return;this._name||=(a&&v.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),`<unlabeled transaction>`);let{scope:t,isolationScope:n}=Cn(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;e.onSpanCaptured?.(this);let i=[];for(let t of ur(this)){if(t===this||$r(t)||e.isSpanAlreadyCaptured?.(t))continue;let n=z(t);Qr(n)&&(e.onSpanCaptured?.(t),i.push(n))}let o=this._attributes[N];delete this._attributes[Kt];let s=!1;
6i.forEach(e=>{delete e.data[Kt],e.op?.startsWith(`gen_ai.`)&&(s=!0)});let c={contexts:{trace:Wn(this)},spans:i.length>Yr?i.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,Yr):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:`transaction`,sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:Cr(this),hasGenAiSpans:s},request:r,...o&&{transaction_info:{source:o}}},l=qr(this._events);return l&&Object.keys(l).length&&(a&&v.log(`[Measurements] Adding measurements to transaction event`,JSON.stringify(l,void 0,2)),c.measurements=l),c}};function Zr(e){return e&&typeof e==`number`||e instanceof Date||Array.isArray(e)}function Qr(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function $r(e){return e instanceof Xr&&e.isStandaloneSpan()}function ei(e){let t=M();if(!t)return;let n=e[1];if(!n||n.length===0){t.recordDroppedEvent(`before_send`,`span`);return}t.sendEnvelope(e)}var ti=`__SENTRY_SUPPRESS_TRACING__`;function ni(e){let t=li();return t.startInactiveSpan?t.startInactiveSpan(e):ri(e)}function ri(e){let t=ci(e),{forceTransaction:n,parentSpan:r}=e;return(e.scope?t=>zt(e.scope,t):r===void 0?e=>e():e=>ii(r,e))(()=>{let i=A(),a=fi(i,r),o=M();return e.onlyIfParent&&!a?oi(i,o):si({parentSpan:a,spanArguments:t,forceTransaction:n,scope:i})})}function ii(e,t){let n=li();return n.withActiveSpan?n.withActiveSpan(e,t):zt(n=>(vt(n,e||void 0),t(n)))}function ai(e=A()){let t=li();return t.isTracingSuppressed?t.isTracingSuppressed(e):e.getScopeData().sdkProcessingMetadata[ti]===!0}function oi(e,t){t?.recordDroppedEvent(`no_parent_span`,`span`);let n=new _r({traceId:e.getPropagationContext().traceId});return Sn(n,e,j()),n}function si({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){let i=j();if(!I()){let t={...i.getPropagationContext(),...r.getPropagationContext()},a=new _r({traceId:e?e.spanContext().traceId:t.traceId});return e&&!n&&cr(e,a),Sn(a,r,i),a}let a=M();if(pi(a,t)){ai(r)||a?.recordDroppedEvent(`ignored`,`span`);let t=new _r({dropReason:`ignored`,traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});return Sn(t,r,i),t}let o;if(e&&!n)o=di(e,r,t,i),cr(e,o);else if(e){let n=Cr(e),{traceId:a,spanId:s}=e.spanContext(),c=nr(e);o=ui({traceId:a,parentSpanId:s,...t},r,i,c),br(o,n)}else{let{traceId:e,dsc:n,parentSpanId:a,sampled:s}={...i.getPropagationContext(),...r.getPropagationContext()};o=ui({traceId:e,parentSpanId:a,...t},r,i,s),n&&br(o,n)}return wr(o),o}function ci(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=R(e.startTime),delete n.startTime,n}return t}function li(){return Pt(n())}function ui(e,t,n,r){let i=M(),o=i?.getOptions()||{},{name:s=``}=e,c={spanAttributes:{...e.attributes},spanName:s,parentSampled:r};i?.emit(`beforeSampling`,c,{decision:!1});let l=c.parentSampled??r,u=c.spanAttributes,d=t.getPropagationContext(),f=ai(t),[p,m,h]=f?[!1]:Er(o,{name:s,parentSampled:l,attributes:u,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:un(d.dsc?.sample_rate)},d.sampleRand),g=new Xr({...e,attributes:{[N]:`custom`,[Vt]:m!==void 0&&h?m:void 0,...u},sampled:p});return!p&&i&&!f&&(a&&v.log(`[Tracing] Discarding root span because its trace was not chosen to be sampled.`),i.recordDroppedEvent(`sample_rate`,L(i)?`span`:`transaction`)),Sn(g,t,n),i&&i.emit(`spanStart`,g),g}function di(e,t,n,r){let{spanId:i,traceId:a}=e.spanContext(),o=ai(t),s=o?!1:nr(e),c=s?new Xr({...n,parentSpanId:i,traceId:a,sampled:s}):new _r({traceId:a});cr(e,c),Sn(c,t,r);let l=M();return l?(L(l)&&vr(c)&&(vr(e)&&e.dropReason?(c.dropReason=e.dropReason,l.recordDroppedEvent(e.dropReason,`span`)):o||(c.dropReason=`sample_rate`,l.recordDroppedEvent(`sample_rate`,`span`))),l.emit(`spanStart`,c),n.endTimestamp&&(l.emit(`spanEnd`,c),l.emit(`afterSpanEnd`,c)),c):c}function fi(e,t){if(t)return t;if(t===null)return;let n=yt(e);if(!n)return;let r=M();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?B(n):n}function pi(e,t){let n=e?.getOptions().ignoreSpans;return!e||!L(e)||!n?.length?!1:on({description:t.name||``,op:t.attributes?.[`sentry.op`]||t.op,attributes:t.attributes},n)}function mi(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;vi(e,t),r&&xi(e,r),Si(e,n),yi(e,i),bi(e,a)}function hi(e,t){let{extra:n,tags:r,attributes:i,user:a,contexts:o,level:s,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:m,span:h}=t;
6gi(e,`extra`,n),gi(e,`tags`,r),gi(e,`attributes`,i),gi(e,`user`,a),gi(e,`contexts`,o),e.sdkProcessingMetadata=mt(e.sdkProcessingMetadata,c,2),s&&(e.level=s),m&&(e.transactionName=m),h&&(e.span=h),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function gi(e,t,n){e[t]=mt(e[t],n,1)}function _i(e,t){let n=Rt().getScopeData();return e&&hi(n,e.getScopeData()),t&&hi(n,t.getScopeData()),n}function vi(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 yi(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function bi(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function xi(e,t){e.contexts={trace:Gn(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Cr(t),...e.sdkProcessingMetadata};let n=z(B(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function Si(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}function Ci(e,t){let n=e.attributes??={};Object.entries(t).forEach(([e,t])=>{t!=null&&!(e in n)&&(n[e]=t)})}var wi=0,Ti=1,Ei=2;function Di(e){return new ki(t=>{t(e)})}function Oi(e){return new ki((t,n)=>{n(e)})}var ki=class e{constructor(e){this._state=wi,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===wi)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===Ti&&e[1](this._value),this._state===Ei&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===wi){if(ue(t)){t.then(n,r);return}this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(Ti,e)},r=e=>{t(Ei,e)};try{e(n,r)}catch(e){r(e)}}};function Ai(e,t,n,r=0){try{let i=ji(t,n,e,r);return ue(i)?i:Di(i)}catch(e){return Oi(e)}}function ji(e,t,n,r){let i=n[r];if(!e||!i)return e;let o=i({...e},t);return a&&o===null&&v.log(`Event processor "${i.id||`?`}" dropped event`),ue(o)?o.then(e=>ji(e,t,n,r+1)):ji(o,t,n,r+1)}var Mi,Ni,Pi,Fi;function Ii(e){let n=t._sentryDebugIds,r=t._debugIds;if(!n&&!r)return{};let i=n?Object.keys(n):[],a=r?Object.keys(r):[];if(Fi&&i.length===Ni&&a.length===Pi)return Fi;Ni=i.length,Pi=a.length,Fi={},Mi||={};let o=(t,n)=>{for(let r of t){let t=n[r],i=Mi?.[r];if(i&&Fi&&t)Fi[i[0]]=t,Mi&&(Mi[r]=[i[0],t]);else if(t){let n=e(r);for(let e=n.length-1;e>=0;e--){let i=n[e]?.filename;if(i&&Fi&&Mi){Fi[i]=t,Mi[r]=[i,t];break}}}}};return n&&o(i,n),r&&o(a,r),Fi}function Li(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||T(),timestamp:t.timestamp||at()},l=n.integrations||e.integrations.map(e=>e.name);Ri(c,e),Vi(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&zi(c,e.stackParser);let u=Ui(r,n.captureContext);n.mechanism&&tt(c,n.mechanism);let d=i?i.getEventProcessors():[],f=_i(a,u),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),mi(c,f);let m=[...d,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?Di(c):Ai(m,c,n)).then(e=>(e&&Bi(e),typeof o==`number`&&o>0?Hi(e,o,s):e))}function Ri(e,t){let{environment:n,release:r,dist:i,maxValueLength:a}=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&&a&&(o.url=Ge(o.url,a)),a&&e.exception?.values?.forEach(e
6=>{e.value&&=Ge(e.value,a)})}function zi(e,t){let n=Ii(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function Bi(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 Vi(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Hi(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:Le(e.data,t,n)}}))},...e.user&&{user:Le(e.user,t,n)},...e.contexts&&{contexts:Le(e.contexts,t,n)},...e.extra&&{extra:Le(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Le(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:Le(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=Le(e.contexts.flags,3,n)),r}function Ui(e,t){if(!t)return e;let n=e?e.clone():new xt;return n.update(t),n}function Wi(e){if(e)return Gi(e)||qi(e)?{captureContext:e}:e}function Gi(e){return e instanceof xt||typeof e==`function`}var Ki=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function qi(e){return Object.keys(e).some(e=>Ki.includes(e))}function Ji(e,t){return A().captureException(e,Wi(t))}function Yi(e,t){return A().captureEvent(e,t)}function Xi(){let e=M();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function Zi(e){let n=j(),{user:r}=_i(n,A()),{userAgent:i}=t.navigator||{},a=ut({user:r,...i&&{userAgent:i},...e}),o=n.getSession();return o?.status===`ok`&&dt(o,{status:`exited`}),Qi(),n.setSession(a),a}function Qi(){let e=j(),t=A().getSession()||e.getSession();t&&ft(t),$i(),e.setSession()}function $i(){let e=j(),t=M(),n=e.getSession();n&&t&&t.captureSession(n)}function ea(e=!1){if(e){Qi();return}$i()}var ta=[];function na(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 ra(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 na(r)}function ia(e,t){let n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&oa(e,t,n)}),n}function aa(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function oa(e,t,n){if(n[t.name]){a&&v.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!ta.includes(t.name)&&typeof t.setupOnce==`function`&&(t.setupOnce(),ta.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)}[`processSpan`,`processSegmentSpan`].forEach(n=>{let r=t[n];typeof r==`function`&&e.on(n,n=>r.call(t,n,e))}),a&&v.log(`Integration installed: ${t.name}`)}function H(e){return e}var sa=`thismessage:/`;function ca(e){return`isRelative`in e}function la(e,t){let n=e.indexOf(`://`)<=0&&e.indexOf(`//`)!==0,r=t??(n?sa: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 ua(e){if(ca(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 da(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 fa(e){return e.split(/[?#]/,1)[0]}function U(e,t=!0){if(e.startsWith(`data:`)){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:`text/plain`,i=e.includes(`;base64,`),a=e.indexOf(`,`),o=``;if(t&&a!==-1){let t=e.slice(a+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?`,base64`:``}${o?`,${o}`:``}`}return e}function pa(t,n,r=[n],i=`npm`){let a=(t._metadata=t._metadata||{}).sdk=t._metadata.sdk||{};a.name||(a.name=`sentry.javascript.${n}`,a.packages=r.map(t=>({name:`${i}:@sentry/${t}`,version:e})),a.version=e)}var ma=100;function ha(e,t){let n=M(),r=j();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=ma}=n.getOptions();if(a<=0)return;let o={timestamp:at(),...e}
6,s=i?l(()=>i(o,t)):o;s!==null&&(n.emit&&n.emit(`beforeAddBreadcrumb`,s,t),r.addBreadcrumb(s,a))}function ga(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function _a(){return`npm`}function va(){return!ga()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function ya(){return typeof window<`u`&&(!va()||ba())}function ba(){return t.process?.type===`renderer`}function xa(e,t){let n=t?`auto`:`never`;return[{type:`trace_metric`,item_count:e.length,content_type:`application/vnd.sentry.items.trace-metric+json`},{version:2,...ya()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Sa(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=An(r)),Or(a,[xa(e,i)])}function Ca(e,t){let n=t??wa(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Sa(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Ta().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function wa(e){return Ta().get(e)}function Ta(){return i(`clientToMetricBufferMap`,()=>new WeakMap)}var Ea=t;function Da(){return`history`in Ea&&!!Ea.history}function Oa(){if(!(`fetch`in Ea))return!1;try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function ka(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Aa(){if(typeof EdgeRuntime==`string`)return!0;if(!Oa())return!1;if(ka(Ea.fetch))return!0;let e=!1,t=Ea.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=ka(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){a&&v.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}var ja={},Ma={};function Na(e,t){return ja[e]=ja[e]||[],ja[e].push(t),()=>{let n=ja[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}function Pa(e,t){if(!Ma[e]){Ma[e]=!0;try{t()}catch(t){a&&v.error(`Error while instrumenting ${e}`,t)}}}function W(e,t){let n=e&&ja[e];if(n)for(let r of n)try{r(t)}catch(t){a&&v.error(`Error while triggering instrumentation handler. 7Type: ${e} 8Name: ${Ne(r)} 9Error:`,t)}}function Fa(e,t){let n=`fetch`,r=Na(n,e);return Pa(n,()=>La(void 0,t)),r}function Ia(e){let t=`fetch-body-resolved`,n=Na(t,e);return Pa(t,()=>La(za)),n}function La(e,n=!1){n&&!Aa()||C(t,`fetch`,function(n){return function(...r){let i=Error(),{method:a,url:o}=Ha(r),s={args:r,fetchData:{method:a,url:o},startTimestamp:E()*1e3,virtualError:i,headers:Ua(r)};return e||W(`fetch`,{...s}),n.apply(t,r).then(async t=>(e?e(t):W(`fetch`,{...s,endTimestamp:E()*1e3,response:t}),t),e=>{W(`fetch`,{...s,endTimestamp:E()*1e3,error:e}),te(e)&&e.stack===void 0&&(e.stack=i.stack,w(e,`framesToPop`,1));let t=M()?.getOptions().enhanceFetchErrorMessages??`always`;if(t!==!1&&e instanceof TypeError&&(e.message===`Failed to fetch`||e.message===`Load failed`||e.message===`NetworkError when attempting to fetch resource.`))try{let n=new URL(s.fetchData.url).host;t===`always`?e.message=`${e.message} (${n})`:w(e,`__sentry_fetch_url_host__`,n)}catch{}throw e})}})}async function Ra(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 za(e){let t;try{t=e.clone()}catch{return}Ra(t,()=>{W(`fetch-body-resolved`,{endTimestamp:E()*1e3,response:e})})}function Ba(e,t){return se(e)&&!!e[t]}function Va(e){return typeof e==`string`?e:e?Ba(e,`url`)?e.url:e.toString?e.toString():``:``}function Ha(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:Va(t),method:Ba(n,`method`)?String(n.method).toUpperCase():de(t)&&Ba(t,`method`)?String(t.method).toUpperCase():`GET`}}let t=e[0];return{url:Va(t),method:Ba(t,`method`)?String(t.method).toUpperCase():`GET`}}function Ua(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(de(t))return new Headers(t.headers)}catch{}}function Wa(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var Ga=60*1e3;function Ka(e,t=be()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?Ga:r-t}function qa(e,t){return e[t]||e.all||0}function Ja(e,t,n=be()){return qa(e,t)>n}function Ya(e,{statusCode:t,headers:n},r=be()){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+Ka(o,r):t===429&&(i.all=r+60*1e3);return i}var Xa=t;function Za(){try{return Xa.document.location.href}catch{return``}}function Qa(e,t=5){if(!Xa.HTMLElement)return null;let n=e;for(let e=0;e<t;e++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}var $a=null;function eo(e){let t=`error`;Na(t,e),Pa(t,to)}function to(){$a=t.onerror,t.onerror=function(e,t,n,r,i){return W(`error`,{column:r,error:i,line:n,msg:e,url:t}),$a?$a.apply(this,arguments):!1},t.onerror.__SENTRY_INSTRUMENTED__=!0}var no=null;function ro(e){let t=`unhandledrejection`;Na(t,e),Pa(t,io)}function io(){no=t.onunhandledrejection,t.onunhandledrejection=function(e){return W(`unhandledrejection`,e),no?no.apply(this,arguments):!0},t.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var ao=!1;function oo(){if(ao)return;function e(){let e=V(),t=e&&B(e);if(t){let e=`internal_error`;a&&v.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:2,message:e})}}ao=!0,eo(e),ro(e)}var so={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},co=`heartbeatFailed`,lo=`idleTimeout`,uo=`finalTimeout`,fo=`externalFinish`;function po(e,t={}){let n=new Map,r=!1,i,o=fo,s=!t.disableAutoFinish,c=[],{idleTimeout:l=so.idleTimeout,finalTimeout:u=so.finalTimeout,childSpanTimeout:d=so.childSpanTimeout,beforeSpanEnd:f,trimIdleSpanEndTimestamp:p=!0}=t,m=M(),h=A();if(!m||!I()){let e=new _r({traceId:h.getPropagationContext().traceId});return Sn(e,h,j()),e}let g=V(),_=mo(e);_.end=new Proxy(_.end,{apply(e,t,n){if(f&&f(_),vr(t))return;let[r,...i]=n,a=R(r||E()),o=ur(_).filter(e=>e!==_),s=z(_);if(!o.length||!p)return ie(a),Reflect.apply(e,t,[a,...i]);let c=m.getOptions().ignoreSpans,l=o?.reduce((e,t)=>
9{let n=z(t);return!n.timestamp||c&&on({description:n.description,op:n.op,attributes:n.data},c)?e:e?Math.max(e,n.timestamp):n.timestamp},void 0),d=s.start_timestamp,h=Math.min(d?d+u/1e3:1/0,Math.max(d||-1/0,Math.min(a,l||1/0)));return ie(h),Reflect.apply(e,t,[h,...i])}});function ee(){i&&=(clearTimeout(i),void 0)}function te(e){ee(),i=setTimeout(()=>{!r&&n.size===0&&s&&(o=lo,_.end(e))},l)}function y(e){i=setTimeout(()=>{!r&&s&&(o=co,_.end(e))},d)}function ne(e){ee(),n.set(e,!0),y(E()+d/1e3)}function re(e){n.has(e)&&n.delete(e),n.size===0&&te(E()+l/1e3)}function ie(e){r=!0,n.clear(),c.forEach(e=>e()),vt(h,g);let t=z(_),{start_timestamp:i}=t;if(!i)return;t.data[`sentry.idle_span_finish_reason`]||_.setAttribute(Ut,o);let s=t.status;(!s||s===`unknown`)&&_.setStatus({code:1}),v.log(`[Tracing] Idle span "${t.op}" finished`);let d=ur(_).filter(e=>e!==_),f=0;d.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:`cancelled`}),t.end(e),a&&v.log(`[Tracing] Cancelling span since span ended early`,JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:r=0}=z(t),i=r<=e,o=(u+l)/1e3,s=n-r<=o;if(a){let e=JSON.stringify(t,void 0,2);i?s||v.log(`[Tracing] Discarding span since it finished after idle span final timeout`,e):v.log(`[Tracing] Discarding span since it happened after idle span was finished`,e)}(!s||!i)&&(lr(_,t),f++)}),f>0&&_.setAttribute(`sentry.idle_span_discarded_spans`,f)}return c.push(m.on(`spanStart`,e=>{r||e===_||z(e).timestamp||e instanceof Xr&&e.isStandaloneSpan()||ur(_).includes(e)&&ne(e.spanContext().spanId)})),c.push(m.on(`spanEnd`,e=>{r||re(e.spanContext().spanId)})),c.push(m.on(`idleSpanEnableAutoFinish`,e=>{e===_&&(s=!0,te(),n.size&&y())})),t.disableAutoFinish||te(),setTimeout(()=>{r||(_.setStatus({code:2,message:`deadline_exceeded`}),o=uo,_.end())},u),_}function mo(e){let t=ni(e);return vt(A(),t),a&&v.log(`[Tracing] Started span is an idle span`),t}function ho(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function go(e){return`${ho(e)}${e.projectId}/envelope/`}function _o(e,t){let n={sentry_version:`7`};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function vo(e,t,n){return t||`${go(e)}?${_o(e,n)}`}function yo(e,t){let n=t?`auto`:`never`;return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{version:2,...ya()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function bo(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=An(r)),Or(a,[yo(e,i)])}function xo(e,t){let n=t??So(e)??[];if(n.length===0)return;let r=e.getOptions(),i=bo(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Co().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function So(e){return Co().get(e)}function Co(){return i(`clientToLogBufferMap`,()=>new WeakMap)}function wo(e){return $n({trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||``,start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:!e.status||e.status===`ok`||e.status===`cancelled`?`ok`:`error`,is_segment:!1,attributes:{...e.data},links:e.links})}function To(e,t){if(e.type!==`transaction`||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||t.getOptions().streamGenAiSpans===!1||L(t))return;let n=[],r=[];for(let t of e.spans)t.op?.startsWith(`gen_ai.`)?n.push(wo(t)):r.push(t);if(n.length===0)return;e.spans=r;let i=t.getDataCollectionOptions().userInfo?`auto`:`never`;return[{type:`span`,item_count:n.length,content_type:`application/vnd.sentry.items.span.v2+json`},{version:2,...ya()&&{ingest_settings:{infer_ip:i,infer_user_agent:i}},items:n}]}function Eo(e){return typeof e==`object`&&typeof e.unref==`function`&&e.unref(),e}var Do=Symbol.for(`SentryBufferFullError`);function Oo(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return Oi(Do);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return Di(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>Eo(setTimeout(()=>t(!1),e)))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}function ko(e,t,n=Oo(e.bufferSize||64)){let r={},i=e=>n.drain(e);function o(i){let o=[];if(Ar(i,(t,n)=>{let i=zr(n);Ja(r,i)?e.recordDroppedEvent(`ratelimit_backoff`,i):o.push(t)}),o.length===0)return Promise.resolve({});let s=Or(i[0],o),c=t=>{if(jr(s,[`client_report`])){a&&v.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}Ar(s,(n,r)=>{e.recordDroppedEvent(t,zr(r))})};return n.add(()=>t({body:Nr(s)}).then(e=>e.statusCode===413?(a&&v.error(`Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.`),c(`send_error`),e):(a&&e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&v.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=Ya(r,e),e),e=>{throw c(`network_error`),a&&v.error(`Encountered error running transport request:`,e),e})).then(e=>e,e=>
9{if(e===Do)return a&&v.error(`Skipped sending event because buffer is full.`),c(`queue_overflow`),Promise.resolve({});throw e})}return{send:o,flush:i}}function Ao(e,t,n){let r=[{type:`client_report`},{timestamp:n||at(),discarded_events:e}];return Or(t?{dsn:t}:{},[r])}function jo(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 Mo(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?.[qt],exclusive_time:o?.[Jt],measurements:e.measurements,is_segment:!0}}function No(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 Po=[`forwarded`,`-ip`,`remote-`,`via`,`-user`];function Fo(e){return e===!0?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:[`incomingRequest`,`outgoingRequest`,`incomingResponse`,`outgoingResponse`],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:Po},httpHeaders:{request:{deny:Po},response:{deny:Po}},httpBodies:[],queryParams:{deny:Po},genAI:{inputs:!1,outputs:!1},stackFrameVariables:!0,frameContextLines:7}}var Io={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:[`incomingRequest`,`outgoingRequest`,`incomingResponse`,`outgoingResponse`],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:5};function Lo(e){let t=e.dataCollection==null?Fo(e.sendDefaultPii):Io,n=e.dataCollection??{};return{userInfo:n.userInfo??t.userInfo,cookies:n.cookies??t.cookies,httpHeaders:{request:n.httpHeaders?.request??t.httpHeaders.request,response:n.httpHeaders?.response??t.httpHeaders.response},httpBodies:n.httpBodies??t.httpBodies,queryParams:n.queryParams??t.queryParams,genAI:{inputs:n.genAI?.inputs??t.genAI.inputs,outputs:n.genAI?.outputs??t.genAI.outputs},stackFrameVariables:n.stackFrameVariables??t.stackFrameVariables,frameContextLines:n.frameContextLines??t.frameContextLines}}var Ro=`Not capturing exception because it's already been captured.`,zo=`Discarded session because of missing or non-string release`,Bo=Symbol.for(`SentryInternalError`),Vo=Symbol.for(`SentryDoNotSendEventError`),Ho=5e3;function Uo(e){return{message:e,[Bo]:!0}}function Wo(e){return{message:e,[Vo]:!0}}function Go(e){return se(e)&&Bo in e}function Ko(e){return se(e)&&Vo in e}function qo(e,t,n,r,i){let a=0,o,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{if(a+=r(t),a>=8e5)i(e);else if(!s){let t=e.getOptions()._flushInterval??Ho;t>0&&(s=!0,o=Eo(setTimeout(()=>{i(e)},t)))}}),e.on(`flush`,()=>{i(e)})}var Jo=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Oo(e.transportOptions?.bufferSize??64),this._dataCollection=Lo(e),e.dsn?this._dsn=In(e.dsn):a&&v.warn(`No DSN provided, client will not send events.`),this._dsn){let t=vo(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})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&qo(this,`afterCaptureLog`,`flushLogs`,ts,xo),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&qo(this,`afterCaptureMetric`,`flushMetrics`,es,Ca)}captureException(e,t,n){let r=T();if(nt(e))return a&&v.log(Ro),r;let i={event_id:r,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n)).then(e=>e),`error`),i.event_id}captureMessage(e,t,n,r){let i={event_id:T(),...n}
9,a=ae(e)?e:String(e),o=x(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,r)),o?`unknown`:`error`),i.event_id}captureEvent(e,t,n){let r=T();if(t?.originalException&&nt(t.originalException))return a&&v.log(Ro),r;let i={event_id:r,...t},o=e.sdkProcessingMetadata||{},s=o.capturedSpanScope,c=o.capturedSpanIsolationScope,l=Yo(e.type);return this._process(()=>this._captureEvent(e,i,s||n,c),l),i.event_id}captureSession(e){this.sendSession(e),dt(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(this.emit(`flush`),!t)return!0;let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){xo(this);let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit(`close`),t}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]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),oa(this,e,this._integrations),t||aa(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=To(e,this),r=Wr(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=kr(r,Ir(e));n&&(r=kr(r,n)),this.sendEnvelope(r).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(e){let{release:t,environment:n=hr}=this._options;if(`aggregates`in e){let r=e.attrs||{};if(!r.release&&!t){a&&v.warn(zo);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){a&&v.warn(zo);return}e.release=e.release||t,e.environment=e.environment||n}this.emit(`beforeSendSession`,e);let r=Ur(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;a&&v.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:``}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return a&&v.error(`Error while sending envelope:`,e),{}}return a&&v.error(`Transport disabled`),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=ia(this,e),aa(this,e)}_updateSessionFromEvent(e,t){let n=t.level===`fatal`,r=!1,i=t.exception?.values;if(i){r=!0,n=!1;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))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){let i=this.getOptions(),a=this.getIntegrationNames();return!t.integrations&&a.length&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),Li(i,e,t,n,this,r).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...e.contexts?.trace,...Bt(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Sr(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(e,t={},n=A(),r=j()){return a&&Qo(e)&&v.log(`Captured error event \`${jo(e)[0]||`<unknown>`}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{a&&(Ko(e)?v.log(e.message):Go(e)?v.warn(e.message):v.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=$o(e),s=Qo(e),c=`before send for type \`${e.type||`error`}\``,l=a===void 0?void 0:un(a);if(s&&typeof l==`number`&&ye()>l)return this.recordDroppedEvent(`sample_rate`,`error`),Oi(Wo(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));let u=Yo(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw this.recordDroppedEvent(`event_processor`,u),Wo("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:Xo(Zo(this,i,e,t),c)}).then(i=>{if(i===null){if(this.recordDroppedEvent(`before_send`,u),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent(`before_send`,`span`,t)}throw Wo(`${c} returned \`null\`, will not send event.`)}
9let 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 l=i.transaction_info;return o&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:`custom`}),this.sendEvent(i,t),i}).then(null,e=>{throw Ko(e)||Go(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),Uo(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 10Reason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===Do&&this.recordDroppedEvent(`queue_overflow`,t),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(){a&&v.log(`Flushing outcomes...`);let e=this._clearOutcomes();if(e.length===0){a&&v.log(`No outcomes to send`);return}if(!this._dsn){a&&v.log(`No dsn provided, will not send outcomes`);return}a&&v.log(`Sending outcomes:`,e);let t=Ao(e,this._options.tunnel&&An(this._dsn));this.sendEnvelope(t)}};function Yo(e){return e===`replay_event`?`replay`:e||`error`}function Xo(e,t){let n=`${t} must return \`null\` or a valid event.`;if(ue(e))return e.then(e=>{if(!oe(e)&&e!==null)throw Uo(n);return e},e=>{throw Uo(`${t} rejected with ${e}`)});if(!oe(e)&&e!==null)throw Uo(n);return e}function Zo(e,t,n,r){let{beforeSend:i,beforeSendTransaction:a,ignoreSpans:o}=t,s=!Dr(t.beforeSendSpan)&&t.beforeSendSpan,c=n;if(Qo(c)&&i)return i(c,r);if($o(c)){if(s||o){let t=Mo(c);if(o?.length&&on({description:t.description,op:t.op,attributes:t.data},o))return null;if(s){let e=s(t);e?c=mt(n,No(e)):fr()}if(c.spans){let t=[],n=c.spans;for(let e of n){if(o?.length&&on({description:e.description,op:e.op,attributes:e.data},o)){cn(n,e);continue}if(s){let n=s(e);n?t.push(n):(fr(),t.push(e))}else t.push(e)}let r=c.spans.length-t.length;r&&e.recordDroppedEvent(`before_send`,`span`,r),c.spans=t}}if(a){if(c.spans){let e=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(c,r)}}return c}function Qo(e){return e.type===void 0}function $o(e){return e.type===`transaction`}function es(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+ns(e.attributes)}function ts(e){let t=0;return e.message&&(t+=e.message.length*2),t+ns(e.attributes)}function ns(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*rs(e[0]):x(e)?t+=rs(e):t+=100}),t}function rs(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function is(e,t){t.debug===!0&&(a?v.enable():l(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),A().update(t.initialScope);let n=new e(t);return as(n),n.init(),n}function as(e){A().setClient(e)}function os(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 ss(e={}){let t=e.client||M();if(!Xi()||!t)return{};let r=Pt(n());if(r.getTraceData)return r.getTraceData(e);let i=e.scope||A(),a=e.span||V(),o=vr(a)&&!I(t.getOptions());if(!a&&Lt())return{};let s=a&&!o?Kn(a):cs(i),c=en(a?Cr(a):Sr(t,i));if(!Ln.test(s))return v.warn(`Invalid sentry-trace data. Cannot generate trace data`),{};let l={"sentry-trace":s,baggage:c};return e.propagateTraceparent&&(l.traceparent=a&&!o?qn(a):ls(i)),l}function cs(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Bn(t,r,n)}function ls(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Vn(t,r,n)}var us,ds=`FunctionToString`,fs=new WeakMap,ps=H((()=>({name:ds,setupOnce(){us=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=pe(this),n=fs.has(M())&&t!==void 0?t:this;return us.apply(n,e)}}catch{}},setup(e){fs.set(e,!0)}}))),ms=[/^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/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],hs=`EventFilters`,gs=H((e={})=>{let t;return{name:hs,setup(n){t=vs(e,n.getOptions())},processEvent(n,r,i){return t||=vs(e,i.getOptions()),ys(n,t)?null:n}}}),_s=H(((e={})=>({...gs(e),name:`InboundFilters`})));function vs(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:ms],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function ys(e,t){if(!e.type){if(bs(e,t.ignoreErrors))return a&&v.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 11Event: ${$e(e)}`),!0;if(Es(e))return a&&v.warn(`Event dropped due to not having an error message, error type or stacktrace. 12Event: ${$e(e)}`),!0;if(Ss(e,t.denyUrls))return a&&v.warn(`Event dropped due to being matched by \`denyUrls\` option. 13Event: ${$e(e)}. 14Url: ${Ts(e)}`),!0;if(!Cs(e,t.allowUrls))return a&&v.warn(`Event dropped due to not being matched by \`allowUrls\` option. 15Event: ${$e(e)}. 16Url: ${Ts(e)}`),!0}else if(e.type===`transaction`&&xs(e,t.ignoreTransactions))return a&&v.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 17Event: ${$e(e)}`),!0;return!1}function bs(e,t){return t?.length?jo(e).some(e=>Je(e,t)):!1}function xs(e,t){if(!t?.length)return!1;let n=e.transaction;return n?Je(n,t):!1}function Ss(e,t){if(!t?.length)return!1;let n=Ts(e);return n?Je(n,t):!1}function Cs(e,t){if(!t?.length)return!0;let n=Ts(e);return n?Je(n,t):!0}function ws(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 Ts(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?ws(t):null}catch{return a&&v.error(`Cannot extract url for event ${$e(e)}`),null}}function Es(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}var Ds=new Set([]);function Os(e){let t=`console`,n=Na(t,e);return Pa(t,ks),n}function ks(){`console`in t&&o.forEach(function(e){e in t.console&&C(t.console,e,function(n){return c[e]=n,function(...n){let r=n[0],i=c[e],o=Ds.size&&typeof r==`string`&&Je(r,Ds);o||W(`console`,{args:n,level:e}),(!o||a&&v.isEnabled())&&i?.apply(t.console,n)}})})}var As=`CaptureConsole`,js=H(((e={})=>{let n=e.levels||o,r=e.handled??!0;return{name:As,setup(e){`console`in t&&Os(({args:t,level:i})=>{M()!==e||!n.includes(i)||Ms(t,i,r)})}}}));function Ms(e,t,n){let r=Wa(t),i=Error(),a={level:Wa(t),extra:{arguments:e}};zt(o=>{if(o.addEventProcessor(e=>(e.logger=`console`,tt(e,{handled:n,type:`auto.core.capture_console`}),e)),t===`assert`){if(!e[0]){let t=`Assertion failed: ${Ke(e.slice(1),` `)||`console.assert`}`;o.setExtra(`arguments`,e.slice(1)),o.captureMessage(t,r,{captureContext:a,syntheticException:i})}return}let s=e.find(e=>e instanceof Error);if(s){Ji(s,a);return}let c=Ke(e,` `);o.captureMessage(c,r,{captureContext:a,syntheticException:i})})}var Ns=`Dedupe`,Ps=H((()=>{let e;return{name:Ns,processEvent(t){if(t.type)return t;try{if(Fs(t,e))return a&&v.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));function Fs(e,t){return t?!!(Is(e,t)||Ls(e,t)):!1}function Is(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!zs(e,t)||!Rs(e,t))}function Ls(e,t){let n=Bs(t),r=Bs(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!zs(e,t)||!Rs(e,t))}function Rs(e,t){let n=Pe(e),r=Pe(t);if(!n&&!r)return!0;
17if(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 zs(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 Bs(e){return e.exception?.values?.[0]}var Vs=`ConversationId`,Hs=H((()=>({name:Vs,setup(e){e.on(`spanStart`,e=>{let t=A().getScopeData(),n=j().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=z(e);if(!t?.startsWith(`gen_ai.`)&&!n[`ai.operationId`]&&!i?.startsWith(`ai.`))return;e.setAttribute(Zt,r)}})}})));function Us(e,t,n,r,i){if(!e.fetchData)return;let{method:a,url:o}=e.fetchData,s=I()&&t(o);if(e.endTimestamp){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(s&&(Ks(n,e),Ws(n,e,i)),delete r[t]);return}let{spanOrigin:c=`auto.http.browser`,propagateTraceparent:l=!1}=typeof i==`object`?i:{spanOrigin:i},u=M(),d=!!V()||!!u&&L(u),f=s&&d?ni(Xs(o,a,c)):new _r;if(s&&!d&&u?.recordDroppedEvent(`no_parent_span`,`span`),e.fetchData.__span=f.spanContext().spanId,r[f.spanContext().spanId]=f,n(e.fetchData.url)){let t=e.args[0],n={...e.args[1]||{}},r=Gs(t,n,I()&&d?f:void 0,l);r&&(e.args[1]=n,n.headers=r)}if(u){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};u.emit(`beforeOutgoingRequestSpan`,f,t)}return f}function Ws(e,t,n){(typeof n==`object`&&n?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function Gs(e,t,n,r){let i=ss({span:n,propagateTraceparent:r}),a=i[`sentry-trace`],o=i.baggage,s=i.traceparent;if(!a)return;let c=t.headers||(de(e)?e.headers:void 0);if(!c)return{...i};if(Js(c)){let e=new Headers(c);if(e.get(`sentry-trace`)||e.set(`sentry-trace`,a),r&&s&&!e.get(`traceparent`)&&e.set(`traceparent`,s),o){let t=e.get(`baggage`);t?qs(t)||e.set(`baggage`,`${t},${o}`):e.set(`baggage`,o)}return e}else if(Ys(c)){let e=[...c];e.find(e=>e[0]===`sentry-trace`)||e.push([`sentry-trace`,a]),r&&s&&!e.find(e=>e[0]===`traceparent`)&&e.push([`traceparent`,s]);let t=c.find(e=>e[0]===`baggage`&&typeof e[1]==`string`&&qs(e[1]));return o&&!t&&e.push([`baggage`,o]),e}else{let e=`sentry-trace`in c?c[`sentry-trace`]:void 0,t=`traceparent`in c?c.traceparent:void 0,n=`baggage`in c?c.baggage:void 0,i=n?Array.isArray(n)?[...n]:[n]:[],l=n&&(Array.isArray(n)?n.find(e=>qs(e)):qs(n));o&&!l&&i.push(o);let u=Object.assign({},c,{"sentry-trace":e??a,baggage:i.length>0?i.join(`,`):void 0});return r&&s&&!t&&(u.traceparent=s),u}}function Ks(e,t){if(t.response){gn(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 qs(e){return typeof e==`string`?e.split(`,`).some(e=>e.trim().startsWith(Qt)):!1}function Js(e){return typeof Headers<`u`&&S(e,Headers)}function Ys(e){return Array.isArray(e)?e.every(e=>Array.isArray(e)&&e.length===2&&typeof e[0]==`string`):!1}function Xs(e,t,n){if(e.startsWith(`data:`))return{name:`${t} ${U(e)}`,attributes:Zs(e,void 0,t,n)};let r=la(e);return{name:`${t} ${r?ua(r):e}`,attributes:Zs(e,r,t,n)}}function Zs(e,t,n,r){let i={url:U(e),type:`fetch`,"http.method":n,[F]:r,[P]:`http.client`};return t&&(ca(t)||(i[`http.url`]=U(t.href),i[`server.address`]=t.host),t.search&&(i[`http.query`]=t.search),t.hash&&(i[`http.fragment`]=t.hash)),i}function Qs(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=$s(e,t,r,a.originalException,n,i.exception.values,o,0))}function $s(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(S(r[i],Error)){tc(o,s,r);let a=e(t,r[i]),l=c.length;nc(a,i,l,s),c=$s(e,t,n,r[i],i,[a,...c],a,l)}return ec(r)&&r.errors.forEach((a,l)=>{if(S(a,Error)){tc(o,s,r);let u=e(t,a),d=c.length;nc(u,`errors[${l}]`,d,s),c=$s(e,t,n,a,i,[u,...c],u,d)}}),c}function ec(e){return Array.isArray(e.errors)}
17function tc(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...ec(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function nc(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}function rc(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}function ic(e){return te(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function ac(e){return ic(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}var G=t,oc=0;function sc(){return oc>0}function cc(){oc++,setTimeout(()=>{oc--})}function lc(e,n={}){function r(e){return typeof e==`function`}if(!r(e))return e;try{if(Object.prototype.hasOwnProperty.call(e,`__sentry_wrapped__`)){let t=e.__sentry_wrapped__;return typeof t==`function`?t:e}if(pe(e))return e}catch{return e}let i=function(...r){t._sentryWrappedDepth=(t._sentryWrappedDepth||0)+1;try{let t=r.map(e=>lc(e,n));return e.apply(this,t)}catch(e){throw cc(),zt(t=>{t.addEventProcessor(e=>(n.mechanism&&(et(e,void 0,void 0),tt(e,n.mechanism)),e.extra={...e.extra,arguments:r},e)),Ji(e)}),e}finally{t._sentryWrappedDepth=(t._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}catch{}fe(i,e),w(e,`__sentry_wrapped__`,i);try{Object.getOwnPropertyDescriptor(i,`name`).configurable&&Object.defineProperty(i,"name",{get(){return e.name}})}catch{}return i}function uc(){let e=Za(),{referrer:t}=G.document||{},{userAgent:n}=G.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}function dc(e,t){let n=mc(e,t),r={type:yc(t),value:bc(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function fc(e,t,n,r){let i=M()?.getOptions().normalizeDepth,a=Dc(t),o={__serialized__:Re(t,i)};if(a)return{exception:{values:[dc(e,a)]},extra:o};let s={exception:{values:[{type:ce(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:Tc(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=mc(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function pc(e,t){return{exception:{values:[dc(e,t)]}}}function mc(e,t){let n=t.stacktrace||t.stack||``,r=gc(t),i=_c(t);try{return e(n,r,i)}catch{}return[]}var hc=/Minified React error #\d+;/i;function gc(e){return e&&hc.test(e.message)?1:0}function _c(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function vc(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0?e instanceof WebAssembly.Exception:!1}function yc(e){let t=e?.name;return!t&&vc(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function bc(e){let t=e?.message;return vc(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?ac(t.error):ac(e):`No error message`}function xc(e,t,n,r){let i=Cc(e,t,n?.syntheticException||void 0,r);return tt(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),Di(i)}function Sc(e,t,n=`info`,r,i){let a=wc(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),Di(a)}function Cc(e,t,n,r,i){let a;if(ne(t)&&t.error)return pc(e,t.error);if(re(t)||ie(t)){let i=t;if(`stack`in t){a=pc(e,t);let i=a.exception?.values?.[0];if(r&&n&&i&&!i.stacktrace){let t=mc(e,n);t.length&&(i.stacktrace={frames:t},tt(a,{synthetic:!0}))}}else{let t=i.name||(re(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=wc(e,o,n,r),et(a,o)}return`code`in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return te(t)?pc(e,t):oe(t)||ce(t)?(a=fc(e,t,n,i),tt(a,{synthetic:!0}),a):(a=wc(e,t,n,r),et(a,`${t}`,void 0),tt(a,{synthetic:!0}),a)}function wc(e,t,n,r){let i={};if(r&&n){let r=mc(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),tt(i,{synthetic:!0})}if(ae(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 Tc(e,{isUnhandledRejection:t}){let n=ge(e),r=t?`promise rejection`:`exception`;return ne(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:ce(e)?`Event \`${Ec(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Ec(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Dc(e){return Object.values(e).find(e=>e instanceof Error)}var Oc=class extends Jo{constructor(e){let t=kc(e);pa(t,`browser`,[`browser`],G.SENTRY_SDK_SOURCE||_a()),super(t);let{userInfo:n}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:n?`auto`:`never`,...t._metadata.sdk.settings});let{sendClientReports:r}=this._options;G.document&&G.document.addEventListener(`visibilitychange`,()=>{G.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),n&&this.on(`beforeSendSession`,os)}eventFromException(e,t){return xc(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return Sc(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 kc(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:G.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var K=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,q=t,Ac=(e,t)=>e>t[1]?`poor`:e>t[0]?`needs-improvement`:`good`,jc=(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=Ac(t.value,n),e(t)))}},Mc=(e=!0)=>{let t=q.performance?.getEntriesByType?.(`navigation`)[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Nc=()=>Mc()?.activationStart??0;
17function Pc(e,t,n){q.document&&q.addEventListener(e,t,n)}function Fc(e,t,n){q.document&&q.removeEventListener(e,t,n)}var Ic=-1,Lc=new Set,Rc=()=>q.document?.visibilityState===`hidden`&&!q.document?.prerendering?0:1/0,zc=e=>{if(Vc(e)&&Ic>-1){if(e.type===`visibilitychange`||e.type===`pagehide`)for(let e of Lc)e();isFinite(Ic)||(Ic=e.type===`visibilitychange`?e.timeStamp:0,Fc(`prerenderingchange`,zc,!0))}},Bc=()=>{if(q.document&&Ic<0){let e=Nc();Ic=(q.document.prerendering?void 0:globalThis.performance.getEntriesByType(`visibility-state`).filter(t=>t.name===`hidden`&&t.startTime>e)[0]?.startTime)??Rc(),Pc(`visibilitychange`,zc,!0),Pc(`pagehide`,zc,!0),Pc(`prerenderingchange`,zc,!0)}return{get firstHiddenTime(){return Ic},onHidden(e){Lc.add(e)}}};function Vc(e){return e.type===`pagehide`||q.document?.visibilityState===`hidden`}var Hc=()=>`v5-${Date.now()}-${Math.floor(Math.random()*8999999999999)+0xe8d4a51000}`,Uc=(e,t=-1)=>{let n=Mc(),r=`navigate`;return n&&(q.document?.prerendering||Nc()>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:Hc(),navigationType:r}},Wc=new WeakMap;function Gc(e,t){try{return Wc.get(e)||Wc.set(e,new t),Wc.get(e)}catch{return new t}}var Kc=class{constructor(){this._sessionValue=0,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)}},qc=(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{}},Jc=e=>{let t=!1;return()=>{t||=(e(),!0)}},Yc=e=>{q.document?.prerendering?addEventListener(`prerenderingchange`,()=>e(),!0):e()},Xc=[1800,3e3],Zc=(e,t={})=>{Yc(()=>{let n=Bc(),r=Uc(`FCP`),i,a=qc(`paint`,e=>{for(let t of e)t.name===`first-contentful-paint`&&(a.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-Nc(),0),r.entries.push(t),i(!0)))});a&&(i=jc(e,r,Xc,t.reportAllChanges))})},Qc=[.1,.25],$c=(e,t={})=>{Zc(Jc(()=>{let n=Uc(`CLS`,0),r,i=Bc(),a=Gc(t,Kc),o=e=>{for(let t of e)a._processEntry(t);a._sessionValue>n.value&&(n.value=a._sessionValue,n.entries=a._sessionEntries,r())},s=qc(`layout-shift`,o);s&&(r=jc(e,n,Qc,t.reportAllChanges),i.onHidden(()=>{o(s.takeRecords()),r(!0)}),q?.setTimeout?.(r))}))},el=0,tl=1/0,nl=0,rl=e=>{e.forEach(e=>{e.interactionId&&(tl=Math.min(tl,e.interactionId),nl=Math.max(nl,e.interactionId),el=nl?(nl-tl)/7+1:0)})},il,al=()=>il?el:performance.interactionCount||0,ol=()=>{`interactionCount`in performance||il||(il=qc(`event`,rl,{type:`event`,buffered:!0,durationThreshold:0}))},sl=10,cl=0,ll=()=>al()-cl,ul=class{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){cl=al(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor(ll()/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<sl||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>sl){let e=this._longestInteractionList.splice(sl);for(let t of e)this._longestInteractionMap.delete(t.id)}this._onAfterProcessingINPCandidate?.(n)}}},dl=e=>{let t=q.requestIdleCallback||q.setTimeout;q.document?.visibilityState===`hidden`?e():(e=Jc(e),Pc(`visibilitychange`,e,{once:!0,capture:!0}),Pc(`pagehide`,e,{once:!0,capture:!0}),t(()=>{e(),Fc(`visibilitychange`,e,{capture:!0}),Fc(`pagehide`,e,{capture:!0})}
17))},fl=[200,500],pl=40,ml=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&`interactionId`in PerformanceEventTiming.prototype))return;let n=Bc();Yc(()=>{ol();let r=Uc(`INP`),i,a=Gc(t,ul),o=e=>{dl(()=>{for(let t of e)a._processEntry(t);let t=a._estimateP98LongestInteraction();t&&t._latency!==r.value&&(r.value=t._latency,r.entries=t.entries,i())})},s=qc(`event`,o,{durationThreshold:t.durationThreshold??pl});i=jc(e,r,fl,t.reportAllChanges),s&&(s.observe({type:`first-input`,buffered:!0}),n.onHidden(()=>{o(s.takeRecords()),i(!0)}))})},hl=class{_processEntry(e){this._onBeforeProcessingEntry?.(e)}},gl=[2500,4e3],_l=(e,t={})=>{Yc(()=>{let n=Bc(),r=Uc(`LCP`),i,a=Gc(t,hl),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-Nc(),0),r.entries=[t],i())},s=qc(`largest-contentful-paint`,o);if(s){i=jc(e,r,gl,t.reportAllChanges);let n=Jc(()=>{o(s.takeRecords()),s.disconnect(),i(!0)}),a=e=>{e.isTrusted&&(dl(n),Fc(e.type,a,{capture:!0}))};for(let e of[`keydown`,`click`,`visibilitychange`])Pc(e,a,{capture:!0})}})},vl=[800,1800],yl=e=>{q.document?.prerendering?Yc(()=>yl(e)):q.document?.readyState===`complete`?setTimeout(e):addEventListener(`load`,()=>yl(e),!0)},bl=(e,t={})=>{let n=Uc(`TTFB`),r=jc(e,n,vl,t.reportAllChanges);yl(()=>{let e=Mc();e&&(n.value=Math.max(e.responseStart-Nc(),0),n.entries=[e],r(!0))})},xl={},Sl={},Cl,wl,Tl,El;function Dl(e,t=!1){return Ll(`cls`,e,Nl,Cl,t)}function Ol(e,t=!1){return Ll(`lcp`,e,Pl,wl,t)}function kl(e){return Ll(`ttfb`,e,Fl,Tl)}function Al(e){return Ll(`inp`,e,Il,El)}function jl(e,t){return zl(e,t),Sl[e]||(Rl(e),Sl[e]=!0),Bl(e,t)}function Ml(e,t){let n=xl[e];if(n?.length)for(let r of n)try{r(t)}catch(t){K&&v.error(`Error while triggering instrumentation handler. 18Type: ${e} 19Name: ${Ne(r)} 20Error:`,t)}}function Nl(){return $c(e=>{Ml(`cls`,{metric:e}),Cl=e},{reportAllChanges:!0})}function Pl(){return _l(e=>{Ml(`lcp`,{metric:e}),wl=e},{reportAllChanges:!0})}function Fl(){return bl(e=>{Ml(`ttfb`,{metric:e}),Tl=e})}function Il(){return ml(e=>{Ml(`inp`,{metric:e}),El=e})}function Ll(e,t,n,r,i=!1){zl(e,t);let a;return Sl[e]||(a=n(),Sl[e]=!0),r&&t({metric:r}),Bl(e,t,i?a:void 0)}function Rl(e){let t={};e===`event`&&(t.durationThreshold=0),qc(e,t=>{Ml(e,{entries:t})},t)}function zl(e,t){xl[e]=xl[e]||[],xl[e].push(t)}function Bl(e,t,n){return()=>{n&&n();let r=xl[e];if(!r)return;let i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function Vl(e){return`duration`in e}var Hl=80,Ul={};try{typeof Node<`u`&&(Ul.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,`parentNode`).get),typeof Element<`u`&&(Ul.tagName=Object.getOwnPropertyDescriptor(Element.prototype,`tagName`).get,Ul.id=Object.getOwnPropertyDescriptor(Element.prototype,`id`).get,Ul.className=Object.getOwnPropertyDescriptor(Element.prototype,`className`).get,Ul.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<`u`&&(Ul.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,`dataset`).get)}catch{}function Wl(e,t,n){let r=Ul[t];if(r)try{return r.call(e,n)}catch{}let i=e[t];return typeof i==`function`?i.call(e,n):i}function J(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||Hl;for(;n&&i++<5&&(o=Gl(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=Wl(n,`parentNode`);return r.reverse().join(` > `)}catch{return`<unknown>`}}function Gl(e,t){let n=[],r=Wl(e,`tagName`);if(!r)return``;if(typeof HTMLElement<`u`&&e instanceof HTMLElement){let t=Wl(e,`dataset`);if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}n.push(r.toLowerCase());let i=t?.length?t.filter(t=>Wl(e,`getAttribute`,t)).map(t=>[t,Wl(e,`getAttribute`,t)]):null;if(i?.length)i.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{let t=Wl(e,`id`);t&&n.push(`#${t}`);let r=Wl(e,`className`);if(r&&b(r)){let e=r.split(/\s+/);for(let t of e)n.push(`.${t}`)}}for(let t of[`aria-label`,`type`,`name`,`title`,`alt`]){let r=Wl(e,`getAttribute`,t);r&&n.push(`[${t}="${r}"]`)}return n.join(``)}var Kl=e=>{let t=t=>{(t.type===`pagehide`||q.document?.visibilityState===`hidden`)&&e(t)};Pc(`visibilitychange`,t,{capture:!0,once:!0}),Pc(`pagehide`,t,{capture:!0,once:!0})};function ql(e){return typeof e==`number`&&isFinite(e)}function Jl(e,t,n,{...r}){let i=z(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime==`function`&&e.updateStartTime(t),ii(e,()=>{let e=ni({startTime:t,...r});return e&&e.end(n),e})}function Yl(e){let t=M();if(!t)return;let{name:n,transaction:r,attributes:i,startTime:a}=e,{release:o,environment:s}=t.getOptions(),{userInfo:c}=t.getDataCollectionOptions(),l=t.getIntegrationByName(`Replay`)?.getReplayId(),u=A(),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 ni({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 Xl(){return q.addEventListener&&q.performance}function Y(e){return e/1e3}function Zl(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}
20return r===e&&(t=r),{name:t,version:n}}function Ql(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function $l(e,t){let n,r=!1;function i(e){!r&&n&&t(e,n.spanContext().spanId,n),r=!0}Kl(()=>{i(`pagehide`)});let a=e.on(`beforeStartNavigationSpan`,(e,t)=>{t?.isRedirect||(i(`navigation`),a(),o())}),o=e.on(`afterStartPageLoadSpan`,e=>{n=e,o()})}function eu(e){let t=0,n;if(!Ql(`layout-shift`))return;let r=Dl(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(t=e.value,n=r)},!0);$l(e,(e,i)=>{tu(t,n,i,e),r()})}function tu(e,t,n,r){K&&v.log(`Sending CLS span (${e})`);let i=t?Y((D()||0)+t.startTime):E(),a=A().getScopeData().transactionName,o=t?J(t.sources[0]?.node):`Layout shift`,s={[F]:`auto.http.browser.cls`,[P]:`ui.webvital.cls`,[Jt]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((e,t)=>{s[`cls.source.${t+1}`]=J(e.node)});let c=Yl({name:o,transaction:a,attributes:s,startTime:i});c&&(c.addEvent(`cls`,{[Wt]:``,[Gt]:e}),c.end(i))}function nu(e){return e!=null&&e>0&&e<=6e4}function ru(e){let t=0,n;if(!Ql(`largest-contentful-paint`))return;let r=Ol(({metric:e})=>{let r=e.entries[e.entries.length-1];!r||!nu(e.value)||(t=e.value,n=r)},!0);$l(e,(e,i)=>{iu(t,n,i,e),r()})}function iu(e,t,n,r){if(!nu(e))return;K&&v.log(`Sending LCP span (${e})`);let i=Y((D()||0)+(t?.startTime||0)),a=A().getScopeData().transactionName,o=t?J(t.element):`Largest contentful paint`,s={[F]:`auto.http.browser.lcp`,[P]:`ui.webvital.lcp`,[Jt]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(s[`lcp.element`]=J(t.element)),t.id&&(s[`lcp.id`]=t.id),t.url&&(s[`lcp.url`]=t.url),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=Yl({name:o,transaction:a,attributes:s,startTime:i});c&&(c.addEvent(`lcp`,{[Wt]:`millisecond`,[Gt]:e}),c.end(i))}function X(e){return e&&((D()||performance.timeOrigin)+e)/1e3}function au(e){let t={};if(e.nextHopProtocol!=null){let{name:n,version:r}=Zl(e.nextHopProtocol);t[`network.protocol.version`]=r,t[`network.protocol.name`]=n}return D()||Xl()?.timeOrigin?ou({...t,"http.request.redirect_start":X(e.redirectStart),"http.request.redirect_end":X(e.redirectEnd),"http.request.worker_start":X(e.workerStart),"http.request.fetch_start":X(e.fetchStart),"http.request.domain_lookup_start":X(e.domainLookupStart),"http.request.domain_lookup_end":X(e.domainLookupEnd),"http.request.connect_start":X(e.connectStart),"http.request.secure_connection_start":X(e.secureConnectionStart),"http.request.connection_end":X(e.connectEnd),"http.request.request_start":X(e.requestStart),"http.request.response_start":X(e.responseStart),"http.request.response_end":X(e.responseEnd),"http.request.time_to_first_byte":e.responseStart==null?void 0:e.responseStart/1e3}):t}function ou(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!=null))}var su=2147483647,cu=0,Z={},Q,lu;function uu({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){let r=Xl();if(r&&D()){r.mark&&q.performance.mark(`sentry-tracing-init`);let i=t?ru(n):t===!1?hu():void 0,a=e?eu(n):e===!1?mu():void 0,o=gu(),s=_u();return()=>{o(),s(),i?.(),a?.()}}return()=>void 0}function du(){jl(`longtask`,({entries:e})=>{let t=V();if(!t)return;let{op:n,start_timestamp:r}=z(t);for(let i of e){let e=Y(D()+i.startTime),a=Y(i.duration);n===`navigation`&&r&&e<r||Jl(t,e,e+a,{name:`Main UI thread blocked`,op:`ui.long-task`,attributes:{[F]:`auto.ui.browser.metrics`}})}})}function fu(){new PerformanceObserver(e=>{let t=V();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=Y(D()+n.startTime),{start_timestamp:r,op:i}=z(t);if(i===`navigation`&&r&&e<r)continue;let a=Y(n.duration),o={[F]:`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),Jl(t,e,e+a,{name:`Main UI thread blocked`,op:`ui.long-animation-frame`,attributes:o})}}).observe({type:`long-animation-frame`,buffered:!0})}function pu(){jl(`event`,({entries:e})=>{let t=V();if(t){for(let n of e)if(n.name===`click`){let e=Y(D()+n.startTime),r=Y(n.duration),i={name:J(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[F]:`auto.ui.browser.metrics`}},a=Qa(n.target);a&&(i.attributes[`ui.component_name`]=a),Jl(t,e,e+r,i)}}})}function mu(){return Dl(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(Z.cls={value:e.value,unit:``},lu=t)},!0)}function hu(){return Ol(({metric:e})=>{let t=e.entries[e.entries.length-1];!t||!nu(e.value)||(Z.lcp={value:e.value,unit:`millisecond`},Q=t)},!0)}function gu(){return kl(({metric:e})=>{e.entries[e.entries.length-1]&&(Z.ttfb={value:e.value,unit:`millisecond`})})}function _u(){return jl(`paint`,({entries:e})=>{let t=Bc();for(let n of e){let e=n.startTime<t.firstHiddenTime;n.name===`first-paint`&&e&&(Z.fp={value:n.startTime,unit:`millisecond`}),n.name===`first-contentful-paint`&&e&&(Z.fcp={value:n.startTime,unit:`millisecond`})}})}function vu(e,t){let n=Xl(),r=D();if(!n?.getEntries||!r)return;let{spanStreamingEnabled:i,ignorePerformanceApiSpans:a,ignoreResourceSpans:o}=t,s=Y(r),c=n.getEntries(),{op:l,start_timestamp:u}=z(e);c.slice(cu).forEach(t=>{let n=Y(t.startTime),r=Y(Math.max(0,t.duration));if(!(l===`navigation`&&u&&s+n<u))switch(t.entryType){case`navigation`:wu(e,t,s);break;case`mark`:case`paint`:case`measure`:Su(e,t,n,r,s,a);break;case`resource`:Ou(e,t,t.name,n,r,s,o);break}}),cu=Math.max(c.length-1,0),ku(e,i)}function yu(e,t){let n=D();if(!Xl()?.getEntries||!n){bu();return}let{spanStreamingEnabled:r,recordClsOnPageloadSpan:i,recordLcpOnPageloadSpan:a}=t,o=Y(n);if(z(e).op===`pageload`){if(Mu(Z),r){let t=(t,n,r)=>{let i=r??`browser.web_vital.${t}.value`;e.setAttribute(i,n),K&&v.log(`Setting web vital attribute`,{[i]:n},`on pageload span`)};
20[`ttfb`,`fp`,`fcp`].forEach(e=>{Z[e]&&t(e,Z[e].value)}),Z[`ttfb.requestTime`]&&t(`ttfb.requestTime`,Z[`ttfb.requestTime`].value,`browser.web_vital.ttfb.request_time`)}else i||delete Z.cls,a||delete Z.lcp,Object.entries(Z).forEach(([t,n])=>{Kr(t,n.value,n.unit,e)}),Au(e,t);e.setAttribute(r?`browser.performance.time_origin`:`performance.timeOrigin`,o),e.setAttribute(r?`browser.performance.navigation.activation_start`:`performance.activationStart`,Nc())}bu()}function bu(){Q=void 0,lu=void 0,Z={}}function xu(e){if(e?.entryType===`measure`)try{return e.detail.devtools.track===`Components â`}catch{return}}function Su(e,t,n,r,i,a){if(xu(t)||[`mark`,`measure`].includes(t.entryType)&&Je(t.name,a))return;let o=Mc(!1),s=Y(o?o.requestStart:0),c=i+Math.max(n,s),l=i+n,u=l+r,d={[F]:`auto.resource.browser.metrics`};c!==l&&(d[`sentry.browser.measure_happened_before_request`]=!0,d[`sentry.browser.measure_start_time`]=c),Cu(d,t),c<=u&&Jl(e,c,u,{name:t.name,op:t.entryType,attributes:d})}function Cu(e,t){try{let n=t.detail;if(!n)return;if(typeof n==`object`){for(let[t,r]of Object.entries(n))if(r&&x(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(x(n)){e[`sentry.browser.measure.detail`]=n;return}try{e[`sentry.browser.measure.detail`]=JSON.stringify(n)}catch{}}catch{}}function wu(e,t,n){[`unloadEvent`,`redirect`,`domContentLoadedEvent`,`loadEvent`,`connect`].forEach(r=>{Tu(e,t,r,n)}),Tu(e,t,`secureConnection`,n,`TLS/SSL`),Tu(e,t,`fetch`,n,`cache`),Tu(e,t,`domainLookup`,n,`DNS`),Du(e,t,n)}function Tu(e,t,n,r,i=n){let a=t[Eu(n)],o=t[`${n}Start`];!o||!a||Jl(e,r+Y(o),r+Y(a),{op:`browser.${i}`,name:t.name,attributes:{[F]:`auto.ui.browser.metrics`,...n===`redirect`&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function Eu(e){return e===`secureConnection`?`connectEnd`:e===`fetch`?`domainLookupStart`:`${e}End`}function Du(e,t,n){let r=n+Y(t.requestStart),i=n+Y(t.responseEnd),a=n+Y(t.responseStart);t.responseEnd&&(Jl(e,r,i,{op:`browser.request`,name:t.name,attributes:{[F]:`auto.ui.browser.metrics`}}),Jl(e,a,i,{op:`browser.response`,name:t.name,attributes:{[F]:`auto.ui.browser.metrics`}}))}function Ou(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={[F]:`auto.resource.browser.metrics`},l=da(n);l.protocol&&(c[`url.scheme`]=l.protocol.split(`:`).pop()),l.host&&(c[`server.address`]=l.host),c[`url.same_origin`]=n.includes(q.location.origin),c[Yt]=n,ju(t,c,[[`responseStatus`,`http.response.status_code`],[`transferSize`,`http.response_transfer_size`],[`encodedBodySize`,`http.response_content_length`],[`decodedBodySize`,`http.decoded_response_content_length`],[`renderBlockingStatus`,`resource.render_blocking_status`],[`deliveryType`,`http.response_delivery_type`]]);let u={...c,...au(t)},d=a+r;Jl(e,d,d+i,{name:n.replace(q.location.origin,``),op:s,attributes:u})}function ku(e,t){let n=q.navigator;if(!n)return;let r=n.connection;r&&(r.effectiveType&&e.setAttribute(t?`network.connection.effective_type`:`effectiveConnectionType`,r.effectiveType),r.type&&e.setAttribute(t?`network.connection.type`:`connectionType`,r.type),ql(r.rtt)&&(t?e.setAttribute(`network.connection.rtt`,r.rtt):z(e).op===`pageload`&&Kr(`connection.rtt`,r.rtt,`millisecond`))),ql(n.deviceMemory)&&(t?e.setAttribute(`device.memory.estimated_capacity`,n.deviceMemory):e.setAttribute(`deviceMemory`,`${n.deviceMemory} GB`)),ql(n.hardwareConcurrency)&&(t?e.setAttribute(`device.processor_count`,n.hardwareConcurrency):e.setAttribute(`hardwareConcurrency`,String(n.hardwareConcurrency)))}function Au(e,t){Q&&t.recordLcpOnPageloadSpan&&(Q.element&&e.setAttribute(`lcp.element`,J(Q.element)),Q.id&&e.setAttribute(`lcp.id`,Q.id),Q.url&&e.setAttribute(`lcp.url`,Q.url.trim().slice(0,200)),Q.loadTime!=null&&e.setAttribute(`lcp.loadTime`,Q.loadTime),Q.renderTime!=null&&e.setAttribute(`lcp.renderTime`,Q.renderTime),e.setAttribute(`lcp.size`,Q.size)),lu?.sources&&t.recordClsOnPageloadSpan&&lu.sources.forEac
20h((t,n)=>e.setAttribute(`cls.source.${n+1}`,J(t.node)))}function ju(e,t,n){n.forEach(([n,r])=>{let i=e[n];i!=null&&(typeof i==`number`&&i<su||typeof i==`string`)&&(t[r]=i)})}function Mu(e){let t=Mc(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e[`ttfb.requestTime`]={value:n-r,unit:`millisecond`})}var Nu=[],Pu=new Map,Fu=new Map;function Iu(){if(Xl()&&D()){let e=Ru();return()=>{e()}}return()=>void 0}var Lu={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 Ru(){return Al(zu)}var zu=({metric:e})=>{if(e.value==null)return;let t=Y(e.value);if(t>60)return;let n=e.entries.find(t=>t.duration===e.value&&Lu[t.name]);if(!n)return;let{interactionId:r}=n,i=Lu[n.name],a=Y(D()+n.startTime),o=V(),s=o?B(o):void 0,c=r==null?void 0:Pu.get(r),l=c?.span||s,u=l?z(l).description:A().getScopeData().transactionName,d=Yl({name:c?.elementName||J(n.target),transaction:u,attributes:{[F]:`auto.http.browser.inp`,[P]:`ui.interaction.${i}`,[Jt]:n.duration},startTime:a});d&&(d.addEvent(`inp`,{[Wt]:`millisecond`,[Gt]:e.value}),d.end(a+t))};function Bu(e){return e==null?void 0:Pu.get(e)}function Vu(){let e=Object.keys(Lu);ya()&&e.forEach(e=>{q.addEventListener(e,t,{capture:!0,passive:!0})});function t(e){let t=e.target;if(!t)return;let n=J(t),r=Math.round(e.timeStamp);if(Fu.set(r,n),Fu.size>50){let e=Fu.keys().next().value;e!==void 0&&Fu.delete(e)}}function n(e){let t=Math.round(e.startTime),n=Fu.get(t);if(!n)for(let e=-5;e<=5;e++){let r=Fu.get(t+e);if(r){n=r;break}}return n||`<unknown>`}let r=({entries:e})=>{let t=V(),r=t&&B(t);e.forEach(e=>{if(!Vl(e))return;let t=e.interactionId;if(t==null||Pu.has(t))return;let i=e.target?J(e.target):n(e);if(Nu.length>10){let e=Nu.shift();Pu.delete(e)}Nu.push(t),Pu.set(t,{span:r,elementName:i})})};jl(`event`,r),jl(`first-input`,r)}function Hu(e){let{name:t,op:n,origin:r,metricName:i,value:a,attributes:o,parentSpan:s,reportEvent:c,startTime:l,endTime:u}=e,d=A().getScopeData().transactionName,f={[F]:r,[P]:n,[Jt]:0,[`browser.web_vital.${i}.value`]:a,[mr]:d,[pr]:d,"user_agent.original":q.navigator?.userAgent,...o};s&&Zn(s).attributes?.[`sentry.op`]===`pageload`&&(f[`sentry.pageload.span_id`]=s.spanContext().spanId),c&&(f[`browser.web_vital.${i}.report_event`]=c);let p=ni({name:t,attributes:f,startTime:l,parentSpan:s});p&&p.end(u??l)}function Uu(e){let t=0,n;if(!Ql(`largest-contentful-paint`))return;let r=Ol(({metric:e})=>{let r=e.entries[e.entries.length-1];!r||!nu(e.value)||(t=e.value,n=r)},!0);$l(e,(e,i,a)=>{Wu(t,n,a,e),r()})}function Wu(e,t,n,r){if(!nu(e))return;K&&v.log(`Sending LCP span (${e})`);let i=D()||0,a=Y(i),o=Y(i+(t?.startTime||0)),s=t?J(t.element):`Largest contentful paint`,c={};t?.element&&(c[`browser.web_vital.lcp.element`]=J(t.element)),t?.id&&(c[`browser.web_vital.lcp.id`]=t.id),t?.url&&(c[`browser.web_vital.lcp.url`]=t.url),t?.loadTime!=null&&(c[`browser.web_vital.lcp.load_time`]=t.loadTime),t?.renderTime!=null&&(c[`browser.web_vital.lcp.render_time`]=t.renderTime),t?.size!=null&&(c[`browser.web_vital.lcp.size`]=t.size),Hu({name:s,op:`ui.webvital.lcp`,origin:`auto.http.browser.lcp`,metricName:`lcp`,value:e,attributes:c,parentSpan:n,reportEvent:r,startTime:a,endTime:o})}function Gu(e){let t=0,n;if(!Ql(`layout-shift`))return;let r=Dl(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(t=e.value,n=r)},!0);$l(e,(e,i,a)=>{Ku(t,n,a,e),r()})}function Ku(e,t,n,r){K&&v.log(`Sending CLS span (${e})`);let i=t?Y((D()||0)+t.startTime):E(),a=t?J(t.sources[0]?.node):`Layout shift`,o={};t?.sources&&t.sources.forEach((e,t)=>{o[`browser.web_vital.cls.source.${t+1}`]=J(e.node)}),Hu({name:a,op:`ui.webvital.cls`,origin:`auto.http.browser.cls`,metricName:`cls`,value:e,attributes:o,parentSpan:n,reportEvent:r,startTime:i})}function qu(){!Xl()||!D()||Al(({metric:e})=>
20{if(e.value==null||Y(e.value)>60)return;let t=e.entries.find(t=>t.duration===e.value&&Lu[t.name]);t&&Ju(e.value,t)})}function Ju(e,t){K&&v.log(`Sending INP span (${e})`);let n=Y(D()+t.startTime),r=Y(e),i=Lu[t.name],a=Bu(t.interactionId),o=V(),s=o?B(o):void 0,c=a?.span||s,l=c?Zn(c).name:A().getScopeData().transactionName;Hu({name:a?.elementName||J(t.target),op:`ui.interaction.${i}`,origin:`auto.http.browser.inp`,metricName:`inp`,value:e,attributes:{[Jt]:t.duration,[mr]:l,[pr]:l},startTime:n,endTime:n+r,parentSpan:c})}var Yu=1e3,Xu,Zu,Qu;function $u(e){Na(`dom`,e),Pa(`dom`,ed)}function ed(){if(!q.document)return;let e=W.bind(null,`dom`),t=rd(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`)&&(C(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=rd(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),C(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 td(e){if(e.type!==Zu)return!1;try{if(!e.target||e.target._sentryId!==Qu)return!1}catch{}return!0}function nd(e,t){return e===`keypress`?t?.tagName?!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!0:!1}function rd(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=id(n);if(nd(n.type,r))return;w(n,`_sentryCaptured`,!0),r&&!r._sentryId&&w(r,`_sentryId`,T());let i=n.type===`keypress`?`input`:n.type;td(n)||(e({event:n,name:i,global:t}),Zu=n.type,Qu=r?r._sentryId:void 0),clearTimeout(Xu),Xu=q.setTimeout(()=>{Qu=void 0,Zu=void 0},Yu)}}function id(e){try{return e.target}catch{return null}}var ad;function od(e){let t=`history`;Na(t,e),Pa(t,sd)}
20function sd(){if(q.addEventListener(`popstate`,()=>{let e=q.location.href,t=ad;ad=e,t!==e&&W(`history`,{from:t,to:e})}),!Da())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=ad,i=cd(String(n));if(ad=i,r===i)return e.apply(this,t);W(`history`,{from:r,to:i})}return e.apply(this,t)}}C(q.history,`pushState`,e),C(q.history,`replaceState`,e)}function cd(e){try{return new URL(e,q.location.origin).toString()}catch{return e}}var ld={};function ud(e){let t=ld[e];if(t)return t;let n=q[e];if(ka(n))return ld[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){K&&v.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(ld[e]=n.bind(q))}function dd(e){ld[e]=void 0}var fd=`__sentry_xhr_v3__`;function pd(e){Na(`xhr`,e),Pa(`xhr`,md)}function md(){if(!q.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=E()*1e3,a=b(n[0])?n[0].toUpperCase():void 0,o=hd(n[1]);if(!a||!o)return e.apply(t,n);t[fd]={method:a,url:o,request_headers:{}},a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[fd];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}W(`xhr`,{endTimestamp:E()*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[fd];return a&&b(r)&&b(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[fd];return r?(n[0]!==void 0&&(r.body=n[0]),W(`xhr`,{startTimestamp:E()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function hd(e){if(b(e))return e;try{return e.toString()}catch{}}function gd(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return K&&v.error(t,`Failed to get xhr response headers`,e),{}}return t?t.split(`\r 21`).reduce((e,t)=>{let[n,r]=t.split(`: `);return r&&(e[n.toLowerCase()]=r),e},{}):{}}function _d(e){if(typeof Element>`u`)return!1;try{return e instanceof Element}catch{return!1}}var vd=40;function yd(e,t=ud(`fetch`)){let n=0,r=0;async 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};try{let n=await t(e.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get(`X-Sentry-Rate-Limits`),"retry-after":n.headers.get(`Retry-After`)}}}catch(e){throw dd(`fetch`),e}finally{n-=a,r--}}return ko(e,i,Oo(e.bufferSize||vd))}var $=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,bd=30,xd=50;function Sd(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 Cd=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,wd=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Td=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ed=/at (.+?) ?\(data:(.+?),/,Dd=[bd,e=>{let t=e.match(Ed);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=Cd.exec(e);if(n){let[,e,t,r]=n;return Sd(e,`?`,+t,+r)}let r=wd.exec(e);if(r){if(r[2]?.indexOf(`eval`)===0){let e=Td.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=jd(r[1]||`?`,r[2]);return Sd(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],Od=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,kd=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ad=Oe(Dd,[xd,e=>{let t=Od.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=kd.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]=jd(n,e),Sd(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),jd=(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]},Md=1024,Nd=`Breadcrumbs`,Pd=H(((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Nd,setup(e){t.console&&Os(Ld(e)),t.dom&&$u(Id(e,t.dom)),t.xhr&&pd(Rd(e)),t.fetch&&Fa(zd(e)),t.history&&od(Bd(e)),t.sentry&&e.on(`beforeSendEvent`,Fd(e))}}}));function Fd(e){return function(t){M()===e&&ha({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:$e(t)},{event:t})}}function Id(e,t){return function(n){if(M()!==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>Md&&($&&v.warn(`\`dom.maxStringLength\` cannot exceed ${Md}, but a value of ${o} was configured. Sentry will use ${Md} instead.`),o=Md),typeof a==`string`&&(a=[a]);try{let e=n.event,t=Vd(e)?e.target:e;r=J(t,{keyAttrs:a,maxStringLength:o}),i=Qa(t)}catch{r=`<unknown>`}if(r.length===0)return;let s={category:`ui.${n.name}`,message:r};
21i&&(s.data={"ui.component_name":i}),ha(s,{event:n.event,name:n.name,global:n.global})}}function Ld(e){return function(t){if(M()!==e)return;let n={category:`console`,data:{arguments:t.args,logger:`console`},level:Wa(t.level),message:Ke(t.args,` `)};if(t.level===`assert`)if(t.args[0]===!1)n.message=`Assertion failed: ${Ke(t.args.slice(1),` `)||`console.assert`}`,n.data.arguments=t.args.slice(1);else return;ha(n,{input:t.args,level:t.level})}}function Rd(e){return function(t){if(M()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[fd];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:rc(s)};e.emit(`beforeOutgoingRequestBreadcrumb`,d,u),ha(d,u)}}function zd(e){return function(t){if(M()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`))if(t.error){let i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},a={category:`fetch`,data:t.fetchData,level:`error`,type:`http`};e.emit(`beforeOutgoingRequestBreadcrumb`,a,i),ha(a,i)}else{let i=t.response,a={...t.fetchData,status_code:i?.status},o={input:t.args,response:i,startTimestamp:n,endTimestamp:r},s={category:`fetch`,data:a,type:`http`,level:rc(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),ha(s,o)}}}function Bd(e){return function(t){if(M()!==e)return;let n=t.from,r=t.to,i=da(G.location.href),a=n?da(n):void 0,o=da(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),ha({category:`navigation`,data:{from:n,to:r}})}}function Vd(e){return!!e&&!!e.target}var Hd=`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(`,`),Ud=`BrowserApiErrors`,Wd=H(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:Ud,setupOnce(){t.setTimeout&&C(G,`setTimeout`,Gd),t.setInterval&&C(G,`setInterval`,Gd),t.requestAnimationFrame&&C(G,`requestAnimationFrame`,Kd),t.XMLHttpRequest&&`XMLHttpRequest`in G&&C(XMLHttpRequest.prototype,`send`,qd);let e=t.eventTarget;e&&(Array.isArray(e)?e:Hd).forEach(e=>Jd(e,t))}}}));function Gd(e){return function(...t){let n=t[0];return t[0]=lc(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Ne(e)}`}}),e.apply(this,t)}}function Kd(e){return function(t){return e.apply(this,[lc(t,{mechanism:{data:{handler:Ne(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function qd(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&C(n,e,function(t){let n={mechanism:{data:{handler:Ne(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=pe(t);return r&&(n.mechanism.data.handler=Ne(r)),lc(t,n)})}),e.apply(this,t)}}function Jd(e,t){let n=G[e]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(C(n,`addEventListener`,function(n){return function(r,i,a){try{Yd(i)&&(i.handleEvent=lc(i.handleEvent,{mechanism:{data:{handler:Ne(i),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&Xd(this,r,i),n.apply(this,[r,lc(i,{mechanism:{data:{handler:Ne(i),target:e},handled:!1,type:`auto.browser.browserapierrors.addEventListener`}}),a])}}),C(n,`removeEventListener`,function(e){return function(t,n,r){try{if(Object.prototype.hasOwnProperty.call(n,`__sentry_wrapped__`)){let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}}catch{}return e.call(this,t,n,r)}}))}function Yd(e){return typeof e.handleEvent==`function`}function Xd(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var Zd=H((e={})=>{let t=e.lifecycle??`route`;return{name:`BrowserSession`,setupOnce(){if(G.document===void 0){$&&v.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Zi({ignoreDuration:!0});let e=!1;dl(()=>{e||=(ea(),!0)});let n=j(),r=n.getUser();n.addScopeListener(t=>{let n=t.getUser();(r?.id!==n?.id||r?.ip_address!==n?.ip_address)&&(r=n,e&&ea())}),t===`route`&&od(({from:t,to:n})=>{t!==n&&(Zi({ignoreDuration:!0}),ea(),e=!0)})}}}),Qd=`CultureContext`,$d=H((()=>({name:Qd,preprocessEvent(e){let t=ef();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=ef();t&&Ci(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})));function ef(){try{let e=G.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var tf=`GlobalHandlers`,nf=H(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:tf,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(rf(e),lf(`onerror`)),t.onunhandledrejection&&(af(e),lf(`onunhandledrejection`))}}}));function rf(e){eo(t=>{let{stackParser:n,attachStacktrace:r}=uf();if(M()!==e||sc())return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=cf(Cc(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,Yi(l,{originalException:c,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function af(e){ro(t=>{let{stackParser:n,attachStacktrace:r}=uf();if(M()!==e||sc())return;let i=of(t),a=x(i)?sf(i):Cc(n,i,void 0,r,!0);a.level=`error`,Yi(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function of(e){if(x(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 sf(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function cf(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||[];
21return c.length===0&&c.push({colno:r,lineno:n,filename:df(t)??Za(),function:`?`,in_app:!0}),e}function lf(e){$&&v.log(`Global Handler attached: ${e}`)}function uf(){return M()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function df(e){if(!(!b(e)||e.length===0))return e.startsWith(`data:`)?`<${U(e,!1)}>`:e}var ff=H(()=>({name:`HttpContext`,preprocessEvent(e){if(!G.navigator&&!G.location&&!G.document)return;let t=uc(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){let t=e.attributes?.[P];if(!G.navigator&&!G.location&&!G.document)return;let n=uc();Ci(e,{"url.full":t===`http.client`?void 0:n.url,"http.request.header.user_agent":n.headers[`User-Agent`],"http.request.header.referer":n.headers.Referer})}})),pf=`cause`,mf=5,hf=`LinkedErrors`,gf=H(((e={})=>{let t=e.limit||mf,n=e.key||pf;return{name:hf,preprocessEvent(e,r,i){Qs(dc,i.getOptions().stackParser,n,t,e,r)}}})),_f=/^HTML(\w*)Element$/;function vf(e){if(typeof window<`u`&&e===window)return`[Window]`;if(typeof document<`u`&&e===document)return`[Document]`;if(_d(e)){let t=yf(e);if(_f.test(t))return`[HTMLElement: ${J(e)}]`}}function yf(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function bf(){return xf()?($&&l(()=>{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 xf(){if(G.window===void 0)return!1;let e=G;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=Za();return!(G===G.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function Sf(e){return[_s(),ps(),Hs(),Wd(),Pd(),nf(),gf(),Ps(),ff(),$d(),Zd()]}function Cf(e={}){let t=!e.skipBrowserExtensionCheck&&bf(),n=e.defaultIntegrations==null?Sf():e.defaultIntegrations,r={...e,enabled:t?!1:e.enabled,stackParser:ke(e.stackParser||Ad),integrations:ra({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||yd};return Ie(vf),is(Oc,r)}function wf(e){return e.split(`,`).some(e=>e.trim().startsWith(`sentry-`))}function Tf(e){try{return new URL(e,G.location.origin).href}catch{return}}function Ef(e){return e.entryType===`resource`&&`initiatorType`in e&&typeof e.nextHopProtocol==`string`&&(e.initiatorType===`fetch`||e.initiatorType===`xmlhttprequest`)}function Df(e){try{return new Headers(e)}catch{return}}var Of={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function kf(e,t){let{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:i,enableHTTPTimings:a,tracePropagationTargets:o,onRequestSpanStart:s,onRequestSpanEnd:c}
21={...Of,...t},l=typeof i==`function`?i:e=>!0,u=e=>Mf(e,o),d={},f=e.getOptions().propagateTraceparent;n&&Fa(t=>{let n=Us(t,l,u,d,{propagateTraceparent:f,onRequestSpanEnd:c});if(n){let r=Tf(t.fetchData.url),i=r?da(r).host:void 0,o=r?U(r):void 0;n.setAttributes({"http.url":o,"url.full":o,"server.address":i}),a&&jf(n,e),s?.(n,{headers:t.headers})}}),r&&pd(t=>{let n=Nf(t,l,u,d,f,c);n&&(a&&jf(n,e),s?.(n,{headers:Df(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}var Af=300;function jf(e,t){let{url:n}=z(e).data;if(!n||typeof n!=`string`)return;let r=()=>void setTimeout(i);if(L(t)){let t=e.end.bind(e);e.end=e=>{let n=e??E(),a=!1,o=()=>{a||(a=!0,setTimeout(i),t(n),clearTimeout(s))};r=o;let s=setTimeout(o,Af)}}let i=jl(`resource`,({entries:t})=>{t.forEach(t=>{Ef(t)&&t.name.endsWith(n)&&(e.setAttributes(au(t)),r())})})}function Mf(e,t){let n=Za();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?Je(r.toString(),t)||a&&Je(r.pathname,t):a}else{let n=!!e.match(/^\/(?!\/)/);return t?Je(e,t):n}}function Nf(e,t,n,r,i,a){let o=e.xhr,s=o?.[fd];if(!o||o.__sentry_own_request__||!s)return;let{url:c,method:l}=s,u=I()&&t(c);if(e.endTimestamp){let t=o.__sentry_xhr_span_id__;if(!t)return;let n=r[t];n&&(u&&s.status_code!==void 0&&(gn(n,s.status_code),n.end(),a?.(n,{headers:Df(gd(o)),error:e.error})),delete r[t]);return}let d=Tf(c),f=da(d||c),p=d?U(d):void 0,m=U(fa(c)),h=M(),g=!!V()||!!h&&L(h),_=u&&g?ni({name:`${l} ${m}`,attributes:{url:U(c),type:`xhr`,"http.method":l,"http.url":p,"url.full":p,"server.address":f?.host,[F]:`auto.http.browser`,[P]:`http.client`,...f?.search&&{"http.query":f?.search},...f?.hash&&{"http.fragment":f?.hash}}}):new _r;return u&&!g&&h?.recordDroppedEvent(`no_parent_span`,`span`),o.__sentry_xhr_span_id__=_.spanContext().spanId,r[o.__sentry_xhr_span_id__]=_,n(c)&&Pf(o,I()&&g?_:void 0,i),h&&h.emit(`beforeOutgoingRequestSpan`,_,e),_}function Pf(e,t,n){let{"sentry-trace":r,baggage:i,traceparent:a}=ss({span:t,propagateTraceparent:n});r&&Ff(e,r,i,a)}function Ff(e,t,n,r){let i=e.__sentry_xhr_v3__?.request_headers;if(!(i?.[`sentry-trace`]||!e.setRequestHeader))try{if(e.setRequestHeader(`sentry-trace`,t),r&&!i?.traceparent&&e.setRequestHeader(`traceparent`,r),n){let t=i?.baggage;(!t||!wf(t))&&e.setRequestHeader(`baggage`,n)}}catch{}}var If=new WeakMap,Lf=new WeakMap,Rf=9e4,zf=[`text/event-stream`,`application/x-ndjson`,`application/stream+json`],Bf=H(()=>({name:`FetchStreamPerformance`,setup(){Ia(e=>{if(e.response){let t=If.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);let n=Lf.get(e.response);n&&clearTimeout(n)}}}),Fa(e=>{if(e.endTimestamp&&e.response){let t=e.response.headers?.get(`content-type`)||``;if(e.response.headers?.get(`content-length`)||!zf.some(e=>t.startsWith(e)))return;let n=e.fetchData?.url||``,r=e.fetchData?.method||`GET`,i=la(n),a=ni({name:`${r} ${n.startsWith(`data:`)?U(n):i?ua(i):n}`,startTime:e.endTimestamp,attributes:{url:U(n),"http.method":r,type:`fetch`,[P]:`http.client.stream`,[F]:`auto.http.browser.stream`}});If.set(e.response,a);let o=setTimeout(()=>{a.isRecording()&&a.end()},Rf);Lf.set(e.response,o)}})}})),Vf=`WebVitals`,Hf=H((e={})=>{let t=new Set(e.ignore??[]);return{name:Vf,setup(n){let r=L(n),{enableStandaloneClsSpans:i,enableStandaloneLcpSpans:a}=e._experiments??{},o=r||t.has(`cls`)?void 0:i||!1,s=r||t.has(`lcp`)?void 0:a||!1,c=uu({recordClsStandaloneSpans:o,recordLcpStandaloneSpans:s,client:n}),l=new WeakSet;n.on(`afterStartPageLoadSpan`,e=>{l.add(e)}),n.on(`spanEnd`,e=>{l.delete(e)&&(c(),yu(e,{recordClsOnPageloadSpan:o===!1,recordLcpOnPageloadSpan:s===!1,spanStreamingEnabled:r}))}),r?(t.has(`lcp`)||Uu(n),t.has(`cls`)||Gu(n),t.has(`inp`)||qu()):t.has(`inp`)||Iu()},afterAllSetup(){t.has(`inp`)||Vu()}}});function Uf(){G.document?G.document.addEventListener(`visibilitychange`,()=>{let e=V();if(!e)return;let t=B(e);if(G.document.hidden&&t){let e=`cancelled`,{op:n,status:r}=z(t);$&&v.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()}}):$&&v.warn(`[Tracing] Could not set up background tab detection due to lack of global document`)}var Wf=`sentry_previous_trace`,Gf=`sentry.previous_trace`;function Kf(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r=t===`session-storage`,i=r?Yf():void 0;e.on(`spanStart`,e=>{if(B(e)!==e)return;let t=A().getPropagationContext();i=qf(i,e,t),r&&Jf(i)});let a=!0;n&&e.on(`beforeSampling`,e=>{if(!i)return;let t=A(),n=t.getPropagationContext();if(a&&n.parentSpanId){a=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(i.sampleRate),sampled:String(Xf(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=Xf(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[Ht]:i.sampleRate}})}function qf(e,t,n){let r=z(t);function i(){try{let e=Number(r.data?.[`sentry.sample_rate`]??n.dsc?.sample_rate);return Number.isNaN(e)?0:e}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&&($&&v.log(`Adding previous_trace \`${JSON.stringify(o)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:o,attributes:{[Xt]:`previous_trace`}}),t.setAttribute(Gf,`${o.traceId}-${o.spanId}-${+!!Xf(o)}`)),a)}function Jf(e){try{G.sessionStorage.setItem(Wf,JSON.stringify(e))}catch(e){$&&v.warn(`Could not store previous trace in sessionStorage`,e)}}function Yf(){try{let e=G.sessionStorage?.getItem(Wf);return JSON.parse(e)}catch{return}}function Xf(e){return e.traceFlags===1}var Zf=`BrowserTracing`,Qf=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function $f(){let e=G.navigator;return e?.userAgent?Qf.test(e.userAgent):!1}var ep={...so,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
21dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:`in-memory`,consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...Of},tp=((e={})=>{`enableElementTiming`in e&&l(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let n={name:void 0,source:void 0},r=G.document,{enableInp:i,enableLongTask:a,enableLongAnimationFrame:o,_experiments:{enableInteractions:s,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u},beforeStartSpan:d,idleTimeout:f,finalTimeout:p,childSpanTimeout:m,markBackgroundSpan:h,traceFetch:g,traceXHR:_,trackFetchStreamPerformance:ee,shouldCreateSpanForRequest:te,enableHTTPTimings:y,ignoreResourceSpans:ne,ignorePerformanceApiSpans:re,instrumentPageLoad:ie,instrumentNavigation:b,detectRedirects:ae,linkPreviousTrace:x,consistentTraceSampling:oe,enableReportPageLoaded:se,onRequestSpanStart:ce,onRequestSpanEnd:le}={...ep,...e},ue=$f(),S,de;function C(e,t,i=!0,a){let o=t.op===`pageload`,s=t.name,c=d?d(t):t,l=la(a||Za()),u={...l?.pathname&&{"url.path":l.pathname},...l&&!ca(l)&&{"url.full":l.href},...c.attributes};if(s!==c.name&&(u[N]=`custom`),c.attributes=u,!i){let e=at();ni({...c,startTime:e}).end(e);return}n.name=c.name,n.source=u[N];let h=po(c,{idleTimeout:f,finalTimeout:p,childSpanTimeout:m,disableAutoFinish:o,beforeSpanEnd:t=>{vu(t,{ignoreResourceSpans:ne,ignorePerformanceApiSpans:re,spanStreamingEnabled:L(e)}),lp(e,void 0);let n=A(),r=n.getPropagationContext();n.setPropagationContext({...r,traceId:h.spanContext().traceId,sampled:nr(h),dsc:Cr(t)}),o&&(de=void 0)},trimIdleSpanEndTimestamp:!se});o&&se&&(de=h),lp(e,h);function g(){r&&[`interactive`,`complete`].includes(r.readyState)&&(e.emit(`idleSpanEnableAutoFinish`,h),r.removeEventListener(`readystatechange`,g))}o&&!se&&r&&(r.addEventListener(`readystatechange`,g),g())}return{name:Zf,setup(e){if(ue){$&&v.log(`[Tracing] Skipping browserTracingIntegration setup for bot user agent.`);return}if(oo(),o&&t.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes(`long-animation-frame`)?fu():a&&du(),s&&pu(),ae&&r){let e=()=>{S=E()};addEventListener(`click`,e,{capture:!0}),addEventListener(`keydown`,e,{capture:!0,passive:!0})}function n(){let t=cp(e);t&&!z(t).timestamp&&($&&v.log(`[Tracing] Finishing current active span with op: ${z(t).op}`),t.setAttribute(Ut,`cancelled`),t.end())}e.on(`startNavigationSpan`,(t,r)=>{if(M()!==e)return;if(r?.isRedirect){$&&v.warn(`[Tracing] Detected redirect, navigation span will not be the root span, but a child span.`),C(e,{op:`navigation.redirect`,...t},!1,r.url);return}S=void 0,n(),j().setPropagationContext({traceId:O(),sampleRand:Math.random(),propagationSpanId:I()?void 0:k()});let i=A();i.setPropagationContext({traceId:O(),sampleRand:Math.random(),propagationSpanId:I()?void 0:k()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),C(e,{op:`navigation`,...t,parentSpan:null,forceTransaction:!0},!0,r?.url)}),e.on(`startPageLoadSpan`,(t,r={})=>{if(M()!==e)return;n();let i=zn(r.sentryTrace||ip(`sentry-trace`)||ap(`sentry-trace`),r.baggage||ip(`baggage`)||ap(`baggage`)),a=A();a.setPropagationContext(i),I()||(a.getPropagationContext().propagationSpanId=k()),a.setSDKProcessingMetadata({normalizedRequest:uc()}),C(e,{op:`pageload`,...t})}),e.on(`endPageloadSpan`,()=>{se&&de&&(de.setAttribute(Ut,`reportPageLoaded`),de.end())})},afterAllSetup(e){if(ue)return;e.addIntegration&&!e.getIntegrationByName?.(`WebVitals`)&&e.addIntegration(Hf({ignore:i?[]:[`inp`],_experiments:{enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u}}));let t=Za();if(x!==`off`&&Kf(e,{linkPreviousTrace:x,consistentTraceSampling:oe}),G.location){if(ie){let t=D();np(e,{name:G.location.pathname,startTime:t?t/1e3:void 0,attributes:{[N]:`url`,[F]:`auto.pageload.browser`}})}b&&od(({to:n,from:r})=>{if(r===void 0&&t?.indexOf(n)!==-1){t=void 0;return}t=void 0;let i=la(n),a=cp(e),o=a&&ae&&dp(a,S);rp(e,{name:i?.pathname||G.location.pathname,attributes:{[N]:`url`,[F]:`auto.navigation.browser`}},{url:n,isRedirect:o})})}h&&Uf(),s&&op(e,f,p,m,n),kf(e,{traceFetch:g,traceXHR:_,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:te,enableHTTPTimings:y,onRequestSpanStart:ce,onRequestSpanEnd:le}),ee&&e.addIntegration(Bf())}}});
21function np(e,t,n){e.emit(`startPageLoadSpan`,t,n),A().setTransactionName(t.name);let r=cp(e);return r&&e.emit(`afterStartPageLoadSpan`,r),r}function rp(e,t,n){let{url:r,isRedirect:i}=n||{};e.emit(`beforeStartNavigationSpan`,t,{isRedirect:i,url:r}),e.emit(`startNavigationSpan`,t,{isRedirect:i,url:r});let a=A();return a.setTransactionName(t.name),r&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...uc(),url:r}}),cp(e)}function ip(e){return(G.document?.querySelector(`meta[name=${e}]`))?.getAttribute(`content`)||void 0}function ap(e){return(G.performance?.getEntriesByType?.(`navigation`)[0])?.serverTiming?.find(t=>t.name===e)?.description}function op(e,t,n,r,i){let a=G.document,o;a&&addEventListener(`click`,()=>{let a=`ui.action.click`,s=cp(e);if(s){let e=z(s).op;if([`navigation`,`pageload`].includes(e)){$&&v.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`);return}}if(o&&=(o.setAttribute(Ut,`interactionInterrupted`),o.end(),void 0),!i.name){$&&v.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}o=po({name:i.name,op:a,attributes:{[N]:i.source||`url`}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})},{capture:!0})}var sp=`_sentry_idleSpan`;function cp(e){return e[sp]}function lp(e,t){w(e,sp,t)}var up=1.5;function dp(e,t){let n=z(e),r=at();return!(r-n.start_timestamp>up||t&&r-t<=up)}var fp=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__;function pp(e){return(G.document?.querySelector(`meta[name=${e}]`))?.getAttribute(`content`)||void 0}function mp(e={}){let t=tp({...e,instrumentPageLoad:!1});return{...t,afterAllSetup(n){if(t.afterAllSetup?.(n),G.location&&e.instrumentPageLoad!=0){let e=D(),{name:t,source:r}=hp();np(n,{name:t,startTime:e?e/1e3:void 0,attributes:{[N]:r,[F]:`auto.pageload.astro`,...r===`route`&&{"url.template":t}}})}}}}function hp(){try{let e=pp(`sentry-route-name`);if(e){let t=decodeURIComponent(e);return fp&&v.log(`[Tracing] Using route name from Sentry HTML meta-tag: ${t}`),{name:t,source:`route`}}}catch{}return{name:G.location.pathname,source:`url`}}function gp(e){let t={defaultIntegrations:_p(e),...e};return pa(t,`astro`,[`astro`,`browser`]),Cf(t)}function _p(e){return typeof __SENTRY_TRACING__>`u`||__SENTRY_TRACING__?[...Sf(e),mp()]:Sf(e)}gp({dsn:`https://3272ea96c72b1b206b6bd092531b3cdf@o4510940765487104.ingest.de.sentry.io/4510940823289936`,environment:`production`,enabled:!0,sendDefaultPii:!1,integrations:[mp(),js({levels:[`error`]})],tracesSampleRate:.1});
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.