PageSourceSearch

https://springroll.zest.hungryroot.com/springroll/page.D6xMEjcU.js

js hungryroot.com collected 2026-09-24 10:04:01 UTC 98,069 bytes, 21 lines download raw bytes

1import{D as h,d as m,g as ae,G as P,a as q,b as B,S as be,i as Mt,c as _t,e as xe,T as Ar,n as Gs,f as zs,h as Ae,j as ge,s as I,k as Gt,l as wt,m as We,o as je,t as M,p as oe,q as A,r as Ys,u as $e,v as K,w as Vs,x as ke,y as dn,z as Xs,A as R,B as Mn,C as N,E as it,F as xn,H as Js,I as kr,J as Z,K as ln,L as Nt,M as Pr,N as Cr,_ as Ks,O as ct,P as fn,Q as Lr,R as Zs,U as Or,V as At,W as He,X as Qs,Y as ea,Z as Mr,$ as pn,a0 as xr,a1 as mn,a2 as gn,a3 as ta,a4 as ut,a5 as $n,a6 as Fn,a7 as na,a8 as ra,a9 as sa,aa as $r,ab as aa,ac as Fr,ad as ve,ae as oa,af as zt,ag as hn,ah as Dr,ai as Dn,aj as ia,ak as ca,al as ua,am as da,an as la,ao as fa,ap as pa,aq as _n,ar as pe,as as ne,at as St,au as ma,av as U,aw as Hn,ax as Un,ay as Hr,az as Sn,aA as ga,aB as Ie,aC as Ge,aD as ha,aE as Yt,aF as Ue,aG as _a,aH as Ur,aI as Bn,aJ as Sa,aK as En,aL as Ea,aM as ya,aN as F,aO as V,aP as Br,aQ as Fe,aR as Ta,aS as Re,aT as he,aU as qn,aV as Wn,aW as jn,aX as qr,aY as ba,aZ as va,a_ as Ia,a$ as Ra}from"./breadcrumbs.Cfj6Fpnt.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"7e126f03e401fed083380eb140b3963d4ab802bb"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ac462207-26cd-4c88-a4e7-8d59d5e91c65",e._sentryDebugIdIdentifier="sentry-dbid-ac462207-26cd-4c88-a4e7-8d59d5e91c65")}catch{}})();const dt={},Gn={};function ue(e,t){dt[e]=dt[e]||[],dt[e].push(t)}function de(e,t){if(!Gn[e]){Gn[e]=!0;try{t()}catch(n){h&&m.error(`Error while instrumenting ${e}`,n)}}}function j(e,t){const n=e&&dt[e];if(n)for(const r of n)try{r(t)}catch(s){h&&m.error(`Error while triggering instrumentation handler.
2Type: ${e}
3Name: ${ae(r)}
4Error:`,s)}}let xt=null;function Wr(e){const t="error";ue(t,e),de(t,wa)}function wa(){xt=P.onerror,P.onerror=function(e,t,n,r,s){return j("error",{column:r,error:s,line:n,msg:e,url:t}),xt?xt.apply(this,arguments):!1},P.onerror.__SENTRY_INSTRUMENTED__=!0}let $t=null;function jr(e){const t="unhandledrejection";ue(t,e),de(t,Na)}function Na(){$t=P.onunhandledrejection,P.onunhandledrejection=function(e){return j("unhandledrejection",e),$t?$t.apply(this,arguments):!0},P.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let zn=!1;function Aa(){if(zn)return;function e(){const t=q(),n=t&&B(t);if(n){const r="internal_error";h&&m.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:be,message:r})}}e.tag="sentry_tracingErrorCallback",zn=!0,Wr(e),jr(e)}function Yn(e){m.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Et(e,t){if(!t?.length||!e.description)return!1;for(const n of t){if(Pa(n)){if(Mt(e.description,n))return h&&Yn(e),!0;continue}if(!n.name&&!n.op)continue;const r=n.name?Mt(e.description,n.name):!0,s=n.op?e.op&&Mt(e.op,n.op):!0;if(r&&s)return h&&Yn(e),!0}return!1}function ka(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const s of e)s.parent_span_id===r&&(s.parent_span_id=n)}function Pa(e){return typeof e=="string"||e instanceof RegExp}class ie{constructor(t={}){this._traceId=t.traceId||_t(),this._spanId=t.spanId||xe()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:Ar}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function _e(e,t=[]){return[e,t]}function Ca(e,t){const[n,r]=e;return[n,[...r,t]]}function Vt(e,t){const n=e[1];for(const r of n){const s=r[0].type;if(t(r,s))return!0}return!1}function La(e,t){return Vt(e,(n,r)=>t.includes(r))}function Xt(e){const t=zs(P);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function Oa(e){const[t,n]=e;let r=JSON.stringify(t);function s(a){typeof r=="string"?r=typeof a=="string"?r+a:[Xt(r),a]:r.push(typeof a=="string"?Xt(a):a)}for(const a of n){const[o,i]=a;if(s(`
5${JSON.stringify(o)}
6`),typeof i=="string"||i instanceof Uint8Array)s(i);else{let c;try{c=JSON.stringify(i)}catch{c=JSON.stringify(Gs(i))}s(c)}}return typeof r=="string"?r:Ma(r)}function Ma(e){const t=e.reduce((s,a)=>s+a.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function xa(e){return[{type:"span"},e]}
6function $a(e){const t=typeof e.data=="string"?Xt(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const Fa={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function Vn(e){return Fa[e]}function Gr(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Da(e,t,n,r){const s=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Ae(r)},...s&&{trace:s}}}function Ha(e,t){if(!t)return e;const 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 Ua(e,t,n,r){const s=Gr(n),a={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:Ae(t)}},o="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return _e(a,[o])}function Ba(e,t,n,r){const s=Gr(n),a=e.type&&e.type!=="replay_event"?e.type:"event";Ha(e,n?.sdk);const o=Da(e,s,r,t);return delete e.sdkProcessingMetadata,_e(o,[[{type:a},e]])}function qa(e,t){function n(f){return!!f.trace_id&&!!f.public_key}const r=ge(e[0]),s=t?.getDsn(),a=t?.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!a&&s&&{dsn:Ae(s)}},{beforeSendSpan:i,ignoreSpans:c}=t?.getOptions()||{},u=c?.length?e.filter(f=>!Et(I(f),c)):e,d=e.length-u.length;d&&t?.recordDroppedEvent("before_send","span",d);const l=i?f=>{const g=I(f),S=i(g);return S||(Gt(),g)}:I,p=[];for(const f of u){const g=l(f);g&&p.push(xa(g))}return _e(o,p)}function Wa(e){if(!h)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=I(e),{spanId:s}=e.spanContext(),a=wt(e),o=B(e),i=o===e,c=`[Tracing] Starting ${a?"sampled":"unsampled"} ${i?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${s}`];if(r&&u.push(`parent ID: ${r}`),!i){const{op:d,description:l}=I(o);u.push(`root ID: ${o.spanContext().spanId}`),d&&u.push(`root op: ${d}`),l&&u.push(`root description: ${l}`)}m.log(`${c}
7  ${u.join(`
8  `)}`)}function ja(e){if(!h)return;const{description:t="< unknown name >",op:n="< unknown op >"}=I(e),{spanId:r}=e.spanContext(),a=B(e)===e,o=`[Tracing] Finishing "${n}" ${a?"root ":""}span "${t}" with ID ${r}`;m.log(o)}function Ga(e,t,n,r=q()){const s=r&&B(r);s&&(h&&m.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),s.addEvent(e,{[je]:t,[We]:n}))}function Xn(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},s=r[We],a=r[je];typeof s=="string"&&typeof a=="number"&&(t[n.name]={value:a,unit:s})}),t}const Jn=1e3;class kt{constructor(t={}){this._traceId=t.traceId||_t(),this._spanId=t.spanId||xe(),this._startTime=t.startTimestamp||M(),this._links=t.links,this._attributes={},this.setAttributes({[A]:"manual",[oe]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?Ys:Ar}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=$e(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(K,"custom"),this}end(t){this._endTime||(this._endTime=$e(t),ja(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[oe],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Xs(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[A],profile_id:this._attributes[dn],exclusive_time:this._attributes[ke],measurements:Xn(this._events),is_segment:this._isStandaloneSpan&&B(this)===this||void 0,segment_id:this._isStandaloneSpan?B(this).spanContext().spanId:void 0,links:Vs(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){h&&m.log("[Tracing] Adding an event to span:",t);const s=Kn(n)?n:r||M(),a=Kn(n)?{}:n||{},o={name:t,time:$e(s),attributes:a};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=R();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===B(this)))return;if(this._isStandaloneSpan){this._sampled?Ya(qa([this],t)):(h&&m.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(Mn(this).scope||N()).captureEvent(r)}_convertSpanToTransaction(){if(!Zn(I(this)))return;this._name||(h&&m.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=Mn(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;const a=it(this).filter(d=>d!==this&&!za(d)).map(d=>I(d)).filter(Zn),o=this._attributes[K];delete this._attributes[xn],a.forEach(d=>{delete d.data[xn]});const i={contexts:{trace:Js(this)},spans:a.length>Jn?a.sort((d,l)=>d.start_timestamp-l.start_timestamp).slice(0,Jn):a,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:ge(this)},request:r,...o&&{transaction_info:{source:o}}},c=Xn(this._events);return c&&Object.keys(c).length&&(h&&m.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),i.measurements=c),i}}function Kn(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function Zn(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function za(e){return e instanceof kt&&e.isStandaloneSpan()}function Ya(e){const t=R();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function Va(e,t,n=()=>{},r=()=>{}){let s;try{s=e()}catch(a){throw t(a),n(),a}return Xa(s,t,n,r)}function Xa(e,t,n,r){return kr(e)?e.then(s=>(n(),r(s),s),s=>{throw t(s),n(),s}):(n(),r(e),e)}
8function Ja(e,t,n){if(!Z(e))return[!1];let r,s;typeof e.tracesSampler=="function"?(s=e.tracesSampler({...t,inheritOrSampleWith:i=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):i}),r=!0):t.parentSampled!==void 0?s=t.parentSampled:typeof e.tracesSampleRate<"u"&&(s=e.tracesSampleRate,r=!0);const a=ln(s);if(a===void 0)return h&&m.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(s)} of type ${JSON.stringify(typeof s)}.`),[!1];if(!a)return h&&m.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,a,r];const o=n<a;return o||h&&m.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(s)})`),[o,a,r]}const zr="__SENTRY_SUPPRESS_TRACING__";function Ka(e,t){const n=Tn();if(n.startSpan)return n.startSpan(e,t);const r=Vr(e),{forceTransaction:s,parentSpan:a,scope:o}=e,i=o?.clone();return Nt(i,()=>Qa(a)(()=>{const u=N(),d=Xr(u,a),p=e.onlyIfParent&&!d?new ie:Yr({parentSpan:d,spanArguments:r,forceTransaction:s,scope:u});return At(u,p),Va(()=>t(p),()=>{const{status:f}=I(p);p.isRecording()&&(!f||f==="ok")&&p.setStatus({code:be,message:"internal_error"})},()=>{p.end()})}))}function Pe(e){const t=Tn();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=Vr(e),{forceTransaction:r,parentSpan:s}=e;return(e.scope?o=>Nt(e.scope,o):s!==void 0?o=>yn(s,o):o=>o())(()=>{const o=N(),i=Xr(o,s);return e.onlyIfParent&&!i?new ie:Yr({parentSpan:i,spanArguments:n,forceTransaction:r,scope:o})})}function yn(e,t){const n=Tn();return n.withActiveSpan?n.withActiveSpan(e,t):Nt(r=>(At(r,e||void 0),t(r)))}function Yr({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!Z()){const o=new ie;if(n||!e){const i={sampled:"false",sample_rate:"0",transaction:t.name,...ge(o)};ct(o,i)}return o}const s=fn();let a;if(e&&!n)a=Za(e,r,t),Lr(e,a);else if(e){const o=ge(e),{traceId:i,spanId:c}=e.spanContext(),u=wt(e);a=Qn({traceId:i,parentSpanId:c,...t},r,u),ct(a,o)}else{const{traceId:o,dsc:i,parentSpanId:c,sampled:u}={...s.getPropagationContext(),...r.getPropagationContext()};a=Qn({traceId:o,parentSpanId:c,...t},r,u),i&&ct(a,i)}return Wa(a),Zs(a,r,s),a}function Vr(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=$e(e.startTime),delete r.startTime,r}return n}function Tn(){const e=Pr();return Cr(e)}function Qn(e,t,n){const r=R(),s=r?.getOptions()||{},{name:a=""}=e,o={spanAttributes:{...e.attributes},spanName:a,parentSampled:n};r?.emit("beforeSampling",o,{decision:!1});const i=o.parentSampled??n,c=o.spanAttributes,u=t.getPropagationContext(),[d,l,p]=t.getScopeData().sdkProcessingMetadata[zr]?[!1]:Ja(s,{name:a,parentSampled:i,attributes:c,parentSampleRate:ln(u.dsc?.sample_rate)},u.sampleRand),f=new kt({...e,attributes:{[K]:"custom",[Or]:l!==void 0&&p?l:void 0,...c},sampled:d});return!d&&r&&(h&&m.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",f),f}function Za(e,t,n){const{spanId:r,traceId:s}=e.spanContext(),a=t.getScopeData().sdkProcessingMetadata[zr]?!1:wt(e),o=a?new kt({...n,parentSpanId:r,traceId:s,sampled:a}):new ie({traceId:s});Lr(e,o);const i=R();return i&&(i.emit("spanStart",o),n.endTimestamp&&i.emit("spanEnd",o)),o}function Xr(e,t){if(t)return t;if(t===null)return;const n=Ks(e);if(!n)return;const r=R();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?B(n):n}function Qa(e){return e!==void 0?t=>yn(e,t):t=>t()}const lt={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},eo="heartbeatFailed",to="idleTimeout",no="finalTimeout",ro="externalFinish";function Jr(e,t={}){const n=new Map;let r=!1,s,a=ro,o=!t.disableAutoFinish;const i=[],{idleTimeout:c=lt.idleTimeout,finalTimeout:u=lt.finalTimeout,childSpanTimeout:d=lt.childSpanTimeout,beforeSpanEnd:l,trimIdleSpanEndTimestamp:p=!0}
8=t,f=R();if(!f||!Z()){const b=new ie,k={sample_rate:"0",sampled:"false",...ge(b)};return ct(b,k),b}const g=N(),S=q(),E=so(e);E.end=new Proxy(E.end,{apply(b,k,Se){if(l&&l(E),k instanceof ie)return;const[tt,...X]=Se,Oe=tt||M(),Q=$e(Oe),C=it(E).filter(T=>T!==E),le=I(E);if(!C.length||!p)return et(Q),Reflect.apply(b,k,[Q,...X]);const J=f.getOptions().ignoreSpans,te=C?.reduce((T,O)=>{const H=I(O);return!H.timestamp||J&&Et(H,J)?T:T?Math.max(T,H.timestamp):H.timestamp},void 0),v=le.start_timestamp,L=Math.min(v?v+u/1e3:1/0,Math.max(v||-1/0,Math.min(Q,te||1/0)));return et(L),Reflect.apply(b,k,[L,...X])}});function x(){s&&(clearTimeout(s),s=void 0)}function D(b){x(),s=setTimeout(()=>{!r&&n.size===0&&o&&(a=to,E.end(b))},c)}function Qe(b){s=setTimeout(()=>{!r&&o&&(a=eo,E.end(b))},d)}function Lt(b){x(),n.set(b,!0);const k=M();Qe(k+d/1e3)}function Ot(b){if(n.has(b)&&n.delete(b),n.size===0){const k=M();D(k+c/1e3)}}function et(b){r=!0,n.clear(),i.forEach(C=>C()),At(g,S);const k=I(E),{start_timestamp:Se}=k;if(!Se)return;k.data[He]||E.setAttribute(He,a);const X=k.status;(!X||X==="unknown")&&E.setStatus({code:Qs}),m.log(`[Tracing] Idle span "${k.op}" finished`);const Oe=it(E).filter(C=>C!==E);let Q=0;Oe.forEach(C=>{C.isRecording()&&(C.setStatus({code:be,message:"cancelled"}),C.end(b),h&&m.log("[Tracing] Cancelling span since span ended early",JSON.stringify(C,void 0,2)));const le=I(C),{timestamp:J=0,start_timestamp:te=0}=le,v=te<=b,L=(u+c)/1e3,T=J-te<=L;if(h){const O=JSON.stringify(C,void 0,2);v?T||m.log("[Tracing] Discarding span since it finished after idle span final timeout",O):m.log("[Tracing] Discarding span since it happened after idle span was finished",O)}(!T||!v)&&(ea(E,C),Q++)}),Q>0&&E.setAttribute("sentry.idle_span_discarded_spans",Q)}return i.push(f.on("spanStart",b=>{if(r||b===E||I(b).timestamp||b instanceof kt&&b.isStandaloneSpan())return;it(E).includes(b)&&Lt(b.spanContext().spanId)})),i.push(f.on("spanEnd",b=>{r||Ot(b.spanContext().spanId)})),i.push(f.on("idleSpanEnableAutoFinish",b=>{b===E&&(o=!0,D(),n.size&&Qe())})),t.disableAutoFinish||D(),setTimeout(()=>{r||(E.setStatus({code:be,message:"deadline_exceeded"}),a=no,E.end())},u),E}function so(e){const t=Pe(e);return At(N(),t),h&&m.log("[Tracing] Started span is an idle span"),t}const ao="7";function oo(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function io(e){return`${oo(e)}${e.projectId}/envelope/`}function co(e,t){const n={sentry_version:ao};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function uo(e,t,n){return t||`${io(e)}?${co(e,n)}`}const er=[];function lo(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function fo(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const s=n(t);r=Array.isArray(s)?s:[s]}else r=t;return lo(r)}function po(e,t){const n={};return t.forEach(r=>{r&&Kr(e,r,n)}),n}function tr(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function Kr(e,t,n){if(n[t.name]){h&&m.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!er.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),er.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,a)=>r(s,a,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((a,o)=>r(a,o,e),{id:t.name});e.addEventProcessor(s)}h&&m.log(`Integration installed: ${t.name}`)}function mo(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function go(e,t,n,r){const s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=Ae(r)),_e(s,[mo(e)])}function Zr(e,t){const n=t??ho(e)??[];if(n.length===0)return;const r=e.getOptions(),s=go(n,r._metadata,r.tunnel,e.getDsn());Qr().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(s)}function ho(e){return Qr().get(e)}function Qr(){return Mr("clientToLogBufferMap",()=>new WeakMap)}function _o(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function So(e,t,n,r){const s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=Ae(r)),_e(s,[_o(e)])}function es(e,t){const n=t??Eo(e)??[];if(n.length===0)return;const r=e.getOptions(),s=So(n,r._metadata,r.tunnel,e.getDsn());ts().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(s)}function Eo(e){return ts().get(e)}function ts(){return Mr("clientToMetricBufferMap",()=>new WeakMap)}const bn=Symbol.for("SentryBufferFullError");function vn(e=100){const t=new Set;function n(){return t.size<e}function r(o){t.delete(o)}function s(o){if(!n())return xr(bn);const i=o();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(o){if(!t.size)return pn(!0);const i=Promise.allSettled(Array.from(t)).then(()=>!0);if(!o)return i;const c=[i,new Promise(u=>setTimeout(()=>u(!1),o))];return Promise.race(c)}return{get $(){return Array.from(t)},add:s,drain:a}}const yo=60*1e3;function To(e,t=mn()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?yo:r-t}function bo(e,t){return e[t]||e.all||0}function vo(e,t,n=mn()){return bo(e,t)>n}function Io(e,{statusCode:t,headers:n},r=mn()){const s={...e},a=n?.["x-sentry-rate-limits"],o=n?.["retry-after"];if(a)for(const i of a.trim().split(",")){const[c,u,,,d]=i.split(":",5),l=parseInt(c,10),p=(isNaN(l)?60:l)*1e3;if(!u)s.all=r+p;else for(const f of u.split(";"))f==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(s[f]=r+p):s[f]=r+p}else o?s.all=r+To(o,r):t===429&&(s.all=r+60*1e3);return s}const ns=64;function Ro(e,t,n=vn(e.bufferSize||ns)){let r={};const s=o=>n.drain(o);function a(o){const i=[];if(Vt(o,(l,p)=>{const f=Vn(p);vo(r,f)?e.recordDroppedEvent("ratelimit_backoff",f):i.push(l)}),i.length===0)return Promise.resolve({});const c=_e(o[0],i),u=l=>{if(La(c,["client_report"])){h&&m.warn(`Dropping client report. Will not send outcomes (reason: ${l}).`);return}Vt(c,(p,f)=>{e.recordDroppedEvent(l,Vn(f))})},d=()=>t({body:Oa(c)}).then(l=>(l.statusCode!==void 0&&(l.statusCode<200||l.statusCode>=300)&&h&&m.warn(`Sentry responded with status code ${l.statusCode} to sent event.`),r=Io(r,l),l),l=>{throw u("network_error"),h&&m.error("Encountered error running transport request:",l),l});return n.add(d).then(l=>l,l=>{if(l===bn)return h&&m.error("Skipped sending event because buffer is full."),u("queue_overflow"),Promise.resolve({});throw l})}return{send:a,flush:s}}function wo(e,t,n){const r=[{type:"client_report"},{timestamp:gn(),discarded_events:e}];return _e(t?{dsn:t}:{},[r])}function rs(e){const t=[];e.message&&t.push(e.message);try{const 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 No(e){const{trace_id:t,parent_span_id:n,span_id:r,status:s,origin:a,data:o,op:i}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:i,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:s,timestamp:e.timestamp,trace_id:t??"",origin:a,profile_id:o?.[dn],exclusive_time:o?.[ke],measurements:e.measurements,is_segment:!0}}function Ao(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&&{[dn]:e.profile_id},...e.exclusive_time&&{[ke]:e.exclusive_time}}}},measurements:e.measurements}}const nr="Not capturing exception because it's already been captured.",rr="Discarded session because of missing or non-string release",ss=Symbol.for("SentryInternalError"),as=Symbol.for("SentryDoNotSendEventError"),ko=5e3;function ft(e){return{message:e,[ss]:!0}}function Ft(e){return{message:e,[as]:!0}}function sr(e){return!!e&&typeof e=="object"&&ss in e}function ar(e){return!!e&&typeof e=="object"&&as in e}
8function or(e,t,n,r,s){let a=0,o,i=!1;e.on(n,()=>{a=0,clearTimeout(o),i=!1}),e.on(t,c=>{a+=r(c),a>=8e5?s(e):i||(i=!0,o=setTimeout(()=>{s(e)},ko))}),e.on("flush",()=>{s(e)})}class Po{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=vn(t.transportOptions?.bufferSize??ns),t.dsn?this._dsn=ta(t.dsn):h&&m.warn("No DSN provided, client will not send events."),this._dsn){const r=uo(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:r})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&or(this,"afterCaptureLog","flushLogs",Mo,Zr),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&or(this,"afterCaptureMetric","flushMetrics",Oo,es)}captureException(t,n,r){const s=ut();if($n(t))return h&&m.log(nr),s;const a={event_id:s,...n};return this._process(()=>this.eventFromException(t,a).then(o=>this._captureEvent(o,a,r)).then(o=>o),"error"),a.event_id}captureMessage(t,n,r,s){const a={event_id:ut(),...r},o=Fr(t)?t:String(t),i=ve(t),c=i?this.eventFromMessage(o,n,a):this.eventFromException(t,a);return this._process(()=>c.then(u=>this._captureEvent(u,a,s)),i?"unknown":"error"),a.event_id}captureEvent(t,n,r){const s=ut();if(n?.originalException&&$n(n.originalException))return h&&m.log(nr),s;const a={event_id:s,...n},o=t.sdkProcessingMetadata||{},i=o.capturedSpanScope,c=o.capturedSpanIsolationScope,u=ir(t.type);return this._process(()=>this._captureEvent(t,a,i||r,c),u),a.event_id}captureSession(t){this.sendSession(t),Fn(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const n=this._transport;if(!n)return!0;this.emit("flush");const r=await this._isClientDoneProcessing(t),s=await n.flush(t);return r&&s}async close(t){const n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];Kr(this,t,this._integrations),n||tr(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=Ba(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])r=Ca(r,$a(s));this.sendEnvelope(r).then(s=>this.emit("afterSendEvent",t,s))}sendSession(t){const{release:n,environment:r=na}=this._options;if("aggregates"in t){const a=t.attrs||{};if(!a.release&&!n){h&&m.warn(rr);return}a.release=a.release||n,a.environment=a.environment||r,t.attrs=a}else{if(!t.release&&!n){h&&m.warn(rr);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const s=Ua(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(s)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const s=`${t}:${n}`;h&&m.log(`Recording outcome: "${s}"${r>1?` (${r} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||new Set,s=(...a)=>n(...a);return r.add(s),()=>{r.delete(s)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(s=>s(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(n){return h&&m.error("Error while sending envelope:",n),{}}return h&&m.error("Transport disabled"),{}}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=po(this,t),tr(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",s=!1;const a=n.exception?.values;if(a){s=!0,r=!1;for(const c of a)if(c.mechanism?.handled===!1){r=!0;break}}const o=t.status==="ok";(o&&t.errors===0||o&&r)&&(Fn(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}async _isClientDoneProcessing(t){let n=0;for(;!t||n<t;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,s){const a=this.getOptions(),o=Object.keys(this._integrations);
8return!n.integrations&&o?.length&&(n.integrations=o),this.emit("preprocessEvent",t,n),t.type||s.setLastEventId(t.event_id||n.event_id),ra(a,t,n,r,this,s).then(i=>{if(i===null)return i;this.emit("postprocessEvent",i,n),i.contexts={trace:sa(r),...i.contexts};const c=$r(this,r);return i.sdkProcessingMetadata={dynamicSamplingContext:c,...i.sdkProcessingMetadata},i})}_captureEvent(t,n={},r=N(),s=fn()){return h&&Jt(t)&&m.log(`Captured error event \`${rs(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,s).then(a=>a.event_id,a=>{h&&(ar(a)?m.log(a.message):sr(a)?m.warn(a.message):m.warn(a))})}_processEvent(t,n,r,s){const a=this.getOptions(),{sampleRate:o}=a,i=os(t),c=Jt(t),d=`before send for type \`${t.type||"error"}\``,l=typeof o>"u"?void 0:ln(o);if(c&&typeof l=="number"&&aa()>l)return this.recordDroppedEvent("sample_rate","error"),xr(Ft(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));const p=ir(t.type);return this._prepareEvent(t,n,r,s).then(f=>{if(f===null)throw this.recordDroppedEvent("event_processor",p),Ft("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return f;const S=Lo(this,a,f,n);return Co(S,d)}).then(f=>{if(f===null){if(this.recordDroppedEvent("before_send",p),i){const x=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",x)}throw Ft(`${d} returned \`null\`, will not send event.`)}const g=r.getSession()||s.getSession();if(c&&g&&this._updateSessionFromEvent(g,f),i){const E=f.sdkProcessingMetadata?.spanCountBeforeProcessing||0,x=f.spans?f.spans.length:0,D=E-x;D>0&&this.recordDroppedEvent("before_send","span",D)}const S=f.transaction_info;if(i&&S&&f.transaction!==t.transaction){const E="custom";f.transaction_info={...S,source:E}}return this.sendEvent(f,n),f}).then(null,f=>{throw ar(f)||sr(f)?f:(this.captureException(f,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:f}),ft(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
9Reason: ${f}`))})}_process(t,n){this._numProcessing++,this._promiseBuffer.add(t).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===bn&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[s,a]=n.split(":");return{reason:s,category:a,quantity:r}})}_flushOutcomes(){h&&m.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){h&&m.log("No outcomes to send");return}if(!this._dsn){h&&m.log("No dsn provided, will not send outcomes");return}h&&m.log("Sending outcomes:",t);const n=wo(t,this._options.tunnel&&Ae(this._dsn));this.sendEnvelope(n)}}function ir(e){return e==="replay_event"?"replay":e||"error"}function Co(e,t){const n=`${t} must return \`null\` or a valid event.`;if(kr(e))return e.then(r=>{if(!zt(r)&&r!==null)throw ft(n);return r},r=>{throw ft(`${t} rejected with ${r}`)});if(!zt(e)&&e!==null)throw ft(n);return e}function Lo(e,t,n,r){const{beforeSend:s,beforeSendTransaction:a,beforeSendSpan:o,ignoreSpans:i}=t;let c=n;if(Jt(c)&&s)return s(c,r);if(os(c)){if(o||i){const u=No(c);if(i?.length&&Et(u,i))return null;if(o){const d=o(u);d?c=oa(n,Ao(d)):Gt()}if(c.spans){const d=[],l=c.spans;for(const f of l){if(i?.length&&Et(f,i)){ka(l,f);continue}if(o){const g=o(f);g?d.push(g):(Gt(),d.push(f))}else d.push(f)}const p=c.spans.length-d.length;p&&e.recordDroppedEvent("before_send","span",p),c.spans=d}}if(a){if(c.spans){const u=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:u}}return a(c,r)}}return c}function Jt(e){return e.type===void 0}function os(e){return e.type==="transaction"}function Oo(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+is(e.attributes)}function Mo(e){let t=0;return e.message&&(t+=e.message.length*2),t+is(e.attributes)}function is(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*cr(n[0]):ve(n)?t+=cr(n):t+=100}),t}function cr(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function xo(e){return hn(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string"}function ur(e){return xo(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function $o(e,t){t.debug===!0&&(h?m.enable():Dr(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),N().update(t.initialScope);const r=new e(t);return Fo(r),r.init(),r}function Fo(e){N().setClient(e)}const Do="thismessage:/";function cs(e){return"isRelative"in e}function us(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?Do:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const s=new URL(e,r);return n?{isRelative:n,pathname:s.pathname,search:s.search,hash:s.hash}:s}catch{}}function Ho(e){if(cs(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function me(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const 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 Uo(e){return e.split(/[?#]/,1)[0]}function re(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",s=e.includes(";base64,"),a=e.indexOf(",");let o="";if(t&&a!==-1){const i=e.slice(a+1);o=i.length>10?`${i.slice(0,10)}... [truncated]`:i}
9return`data:${r}${s?",base64":""}${o?`,${o}`:""}`}return e}function Bo(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 ds(e,t,n=[t],r="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map(a=>({name:`${r}:@sentry/${a}`,version:Dn})),version:Dn}),e._metadata=s}function ls(e={}){const t=e.client||R();if(!ia()||!t)return{};const n=Pr(),r=Cr(n);if(r.getTraceData)return r.getTraceData(e);const s=e.scope||N(),a=e.span||q(),o=a?ca(a):qo(s),i=a?ge(a):$r(t,s),c=ua(i);if(!da.test(o))return m.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const d={"sentry-trace":o,baggage:c};return e.propagateTraceparent&&(d.traceparent=a?la(a):Wo(s)),d}function qo(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return fa(t,r,n)}function Wo(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return pa(t,r,n)}let dr;const jo="FunctionToString",lr=new WeakMap,Go=(()=>({name:jo,setupOnce(){dr=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=_n(this),n=lr.has(R())&&t!==void 0?t:this;return dr.apply(n,e)}}catch{}},setup(e){lr.set(e,!0)}})),zo=Go,Yo=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],Vo="EventFilters",Xo=(e={})=>{let t;return{name:Vo,setup(n){const r=n.getOptions();t=fr(e,r)},processEvent(n,r,s){if(!t){const a=s.getOptions();t=fr(e,a)}return Ko(n,t)?null:n}}},Jo=((e={})=>({...Xo(e),name:"InboundFilters"}));function fr(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Yo],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Ko(e,t){if(e.type){if(e.type==="transaction"&&Qo(e,t.ignoreTransactions))return h&&m.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
10Event: ${pe(e)}`),!0}else{if(Zo(e,t.ignoreErrors))return h&&m.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
11Event: ${pe(e)}`),!0;if(ri(e))return h&&m.warn(`Event dropped due to not having an error message, error type or stacktrace.
12Event: ${pe(e)}`),!0;if(ei(e,t.denyUrls))return h&&m.warn(`Event dropped due to being matched by \`denyUrls\` option.
13Event: ${pe(e)}.
14Url: ${yt(e)}`),!0;if(!ti(e,t.allowUrls))return h&&m.warn(`Event dropped due to not being matched by \`allowUrls\` option.
15Event: ${pe(e)}.
16Url: ${yt(e)}`),!0}return!1}function Zo(e,t){return t?.length?rs(e).some(n=>ne(n,t)):!1}function Qo(e,t){if(!t?.length)return!1;const n=e.transaction;return n?ne(n,t):!1}function ei(e,t){if(!t?.length)return!1;const n=yt(e);return n?ne(n,t):!1}function ti(e,t){if(!t?.length)return!0;const n=yt(e);return n?ne(n,t):!0}function ni(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function yt(e){try{const n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?ni(n):null}catch{return h&&m.error(`Cannot extract url for event ${pe(e)}`),null}}function ri(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function si(e,t,n,r,s,a){if(!s.exception?.values||!a||!St(a.originalException,Error))return;const o=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;o&&(s.exception.values=Kt(e,t,r,a.originalException,n,s.exception.values,o,0))}function Kt(e,t,n,r,s,a,o,i){if(a.length>=n+1)return a;let c=[...a];if(St(r[s],Error)){pr(o,i);const u=e(t,r[s]),d=c.length;mr(u,s,d,i),c=Kt(e,t,n,r[s],s,[u,...c],u,d)}
16return Array.isArray(r.errors)&&r.errors.forEach((u,d)=>{if(St(u,Error)){pr(o,i);const l=e(t,u),p=c.length;mr(l,`errors[${d}]`,p,i),c=Kt(e,t,n,u,s,[l,...c],l,p)}}),c}function pr(e,t){e.mechanism={handled:!0,type:"auto.core.linked_errors",...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function mr(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function ai(e){const t="console";ue(t,e),de(t,oi)}function oi(){"console"in P&&ma.forEach(function(e){e in P.console&&U(P.console,e,function(t){return Hn[e]=t,function(...n){j("console",{args:n,level:e}),Hn[e]?.apply(P.console,n)}})})}function ii(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const ci="Dedupe",ui=(()=>{let e;return{name:ci,processEvent(t){if(t.type)return t;try{if(li(t,e))return h&&m.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),di=ui;function li(e,t){return t?!!(fi(e,t)||pi(e,t)):!1}function fi(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!ps(e,t)||!fs(e,t))}function pi(e,t){const n=gr(t),r=gr(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!ps(e,t)||!fs(e,t))}function fs(e,t){let n=Un(e),r=Un(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const a=r[s],o=n[s];if(a.filename!==o.filename||a.lineno!==o.lineno||a.colno!==o.colno||a.function!==o.function)return!1}return!0}function ps(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 gr(e){return e.exception?.values?.[0]}function mi(e,t,n,r,s){if(!e.fetchData)return;const{method:a,url:o}=e.fetchData,i=Z()&&t(o);if(e.endTimestamp&&i){const f=e.fetchData.__span;if(!f)return;const g=r[f];g&&(_i(g,e),gi(g,e,s),delete r[f]);return}const{spanOrigin:c="auto.http.browser",propagateTraceparent:u=!1}=typeof s=="object"?s:{spanOrigin:s},d=!!q(),l=i&&d?Pe(Ei(o,a,c)):new ie;if(e.fetchData.__span=l.spanContext().spanId,r[l.spanContext().spanId]=l,n(e.fetchData.url)){const f=e.args[0],g={...e.args[1]||{}},S=hi(f,g,Z()&&d?l:void 0,u);S&&(e.args[1]=g,g.headers=S)}const p=R();if(p){const f={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};p.emit("beforeOutgoingRequestSpan",l,f)}return l}function gi(e,t,n){(typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function hi(e,t,n,r){const s=ls({span:n,propagateTraceparent:r}),a=s["sentry-trace"],o=s.baggage,i=s.traceparent;if(!a)return;const c=t.headers||(Sn(e)?e.headers:void 0);if(c)if(Si(c)){const u=new Headers(c);if(u.get("sentry-trace")||u.set("sentry-trace",a),r&&i&&!u.get("traceparent")&&u.set("traceparent",i),o){const d=u.get("baggage");d?nt(d)||u.set("baggage",`${d},${o}`):u.set("baggage",o)}return u}else if(Array.isArray(c)){const u=[...c];c.find(l=>l[0]==="sentry-trace")||u.push(["sentry-trace",a]),r&&i&&!c.find(l=>l[0]==="traceparent")&&u.push(["traceparent",i]);const d=c.find(l=>l[0]==="baggage"&&nt(l[1]));return o&&!d&&u.push(["baggage",o]),u}else{const u="sentry-trace"in c?c["sentry-trace"]:void 0,d="traceparent"in c?c.traceparent:void 0,l="baggage"in c?c.baggage:void 0,p=l?Array.isArray(l)?[...l]:[l]:[],f=l&&(Array.isArray(l)?l.find(S=>nt(S)):nt(l));o&&!f&&p.push(o);const g={...c,"sentry-trace":u??a,baggage:p.length>0?p.join(","):void 0};return r&&i&&!d&&(g.traceparent=i),g}else return{...s}}function _i(e,t){if(t.response){Hr(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:be,message:"internal_error"});e.end()}function nt(e){return e.split(",").some(t=>t.trim().startsWith(ga))}function Si(e){return typeof Headers<"u"&&St(e,Headers)}function Ei(e,t,n){if(e.startsWith("data:")){const a=re(e);return{name:`${t} ${a}`,attributes:hr(e,void 0,t,n)}}const r=us(e),s=r?Ho(r):e;return{name:`${t} ${s}`,attributes:hr(e,r,t,n)}}function hr(e,t,n,r){const s={url:re(e),type:"fetch","http.method":n,[A]:r,[oe]:"http.client"};return t&&(cs(t)||(s["http.url"]=re(t.href),s["server.address"]=t.host),t.search&&(s["http.query"]=t.search),t.hash&&(s["http.fragment"]=t.hash)),s}function ms(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const Be=P;function yi(){return"history"in Be&&!!Be.history}function Ti(){if(!("fetch"in Be))return!1;
16try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function Zt(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function bi(){if(typeof EdgeRuntime=="string")return!0;if(!Ti())return!1;if(Zt(Be.fetch))return!0;let e=!1;const t=Be.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Zt(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){h&&m.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function gs(e,t){const n="fetch";ue(n,e),de(n,()=>hs(void 0,t))}function vi(e){const t="fetch-body-resolved";ue(t,e),de(t,()=>hs(Ri))}function hs(e,t=!1){t&&!bi()||U(P,"fetch",function(n){return function(...r){const s=new Error,{method:a,url:o}=wi(r),i={args:r,fetchData:{method:a,url:o},startTimestamp:M()*1e3,virtualError:s,headers:Ni(r)};return e||j("fetch",{...i}),n.apply(P,r).then(async c=>(e?e(c):j("fetch",{...i,endTimestamp:M()*1e3,response:c}),c),c=>{j("fetch",{...i,endTimestamp:M()*1e3,error:c}),hn(c)&&c.stack===void 0&&(c.stack=s.stack,Ie(c,"framesToPop",1));const d=R()?.getOptions().enhanceFetchErrorMessages??"always";if(d!==!1&&c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{const f=new URL(i.fetchData.url).host;d==="always"?c.message=`${c.message} (${f})`:Ie(c,"__sentry_fetch_url_host__",f)}catch{}throw c})}})}async function Ii(e,t){if(e?.body){const n=e.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let a=!0;for(;a;){let o;try{o=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:i}=await r.read();clearTimeout(o),i&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(o)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function Ri(e){let t;try{t=e.clone()}catch{return}Ii(t,()=>{j("fetch-body-resolved",{endTimestamp:M()*1e3,response:e})})}function pt(e,t){return!!e&&typeof e=="object"&&!!e[t]}function _r(e){return typeof e=="string"?e:e?pt(e,"url")?e.url:e.toString?e.toString():"":""}function wi(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:_r(n),method:pt(r,"method")?String(r.method).toUpperCase():Sn(n)&&pt(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:_r(t),method:pt(t,"method")?String(t.method).toUpperCase():"GET"}}function Ni(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(Sn(t))return new Headers(t.headers)}catch{}}function Ai(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function ki(){return"npm"}function Pi(){return!Ai()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Ci(){return typeof window<"u"&&(!Pi()||Li())}function Li(){return P.process?.type==="renderer"}const y=P;let Qt=0;function _s(){return Qt>0}function Oi(){Qt++,setTimeout(()=>{Qt--})}function we(e,t={}){function n(s){return typeof s=="function"}if(!n(e))return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if(_n(e))return e}catch{return e}const r=function(...s){try{const a=s.map(o=>we(o,t));return e.apply(this,a)}catch(a){throw Oi(),Nt(o=>{o.addEventProcessor(i=>(t.mechanism&&(Yt(i,void 0),Ue(i,t.mechanism)),i.extra={...i.extra,arguments:s},i)),_a(a)}),a}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}ha(r,e),Ie(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function In(){const e=Ge(),{referrer:t}=y.document||{},{userAgent:n}=y.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}function Rn(e,t){const n=wn(e,t),r={type:Di(t),value:Hi(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Mi(e,t,n,r){const a=R()?.getOptions().normalizeDepth,o=ji(t),i={__serialized__:Ea(t,a)};if(o)return{exception:{values:[Rn(e,o)]},extra:i};const c={exception:{values:[{type:En(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:qi(t,{isUnhandledRejection:r})}]},extra:i};if(n){const u=wn(e,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function Dt(e,t){return{exception:{values:[Rn(e,t)]}}}function wn(e,t){const n=t.stacktrace||t.stack||"",r=$i(t),s=Fi(t);try{return e(n,r,s)}catch{}return[]}const xi=/Minified React error #\d+;/i;function $i(e){return e&&xi.test(e.message)?1:0}function Fi(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Ss(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function Di(e){const t=e?.name;return!t&&Ss(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function Hi(e){const t=e?.message;return Ss(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?ur(t.error):ur(e):"No error message"}function Ui(e,t,n,r){const s=n?.syntheticException||void 0,a=Nn(e,t,s,r);return Ue(a),a.level="error",n?.event_id&&(a.event_id=n.event_id),pn(a)}function Bi(e,t,n="info",r,s){const a=r?.syntheticException||void 0,o=en(e,t,a,s);return o.level=n,r?.event_id&&(o.event_id=r.event_id),pn(o)}
16function Nn(e,t,n,r,s){let a;if(Ur(t)&&t.error)return Dt(e,t.error);if(Bn(t)||Sa(t)){const o=t;if("stack"in t)a=Dt(e,t);else{const i=o.name||(Bn(o)?"DOMError":"DOMException"),c=o.message?`${i}: ${o.message}`:i;a=en(e,c,n,r),Yt(a,c)}return"code"in o&&(a.tags={...a.tags,"DOMException.code":`${o.code}`}),a}return hn(t)?Dt(e,t):zt(t)||En(t)?(a=Mi(e,t,n,s),Ue(a,{synthetic:!0}),a):(a=en(e,t,n,r),Yt(a,`${t}`),Ue(a,{synthetic:!0}),a)}function en(e,t,n,r){const s={};if(r&&n){const a=wn(e,n);a.length&&(s.exception={values:[{value:t,stacktrace:{frames:a}}]}),Ue(s,{synthetic:!0})}if(Fr(t)){const{__sentry_template_string__:a,__sentry_template_values__:o}=t;return s.logentry={message:a,params:o},s}return s.message=t,s}function qi(e,{isUnhandledRejection:t}){const n=ya(e),r=t?"promise rejection":"exception";return Ur(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:En(e)?`Event \`${Wi(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Wi(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function ji(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}class Gi extends Po{constructor(t){const n=zi(t),r=y.SENTRY_SDK_SOURCE||ki();ds(n,"browser",["browser"],r),n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:s,sendClientReports:a,enableLogs:o,_experiments:i,enableMetrics:c}=this._options,u=c??i?.enableMetrics??!0;y.document&&(a||o||u)&&y.document.addEventListener("visibilitychange",()=>{y.document.visibilityState==="hidden"&&(a&&this._flushOutcomes(),o&&Zr(this),u&&es(this))}),s&&this.on("beforeSendSession",Bo)}eventFromException(t,n){return Ui(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Bi(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,s){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,s)}}function zi(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:y.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const ze=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,_=P,Yi=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",Ye=(e,t,n,r)=>{let s,a;return o=>{t.value>=0&&(o||r)&&(a=t.value-(s??0),(a||s===void 0)&&(s=t.value,t.delta=a,t.rating=Yi(t.value,n),e(t)))}},Ve=(e=!0)=>{const t=_.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Ce=()=>Ve()?.activationStart??0;function se(e,t,n){_.document&&_.addEventListener(e,t,n)}function Tt(e,t,n){_.document&&_.removeEventListener(e,t,n)}let Te=-1;const Es=new Set,Vi=()=>_.document?.visibilityState==="hidden"&&!_.document?.prerendering?0:1/0,mt=e=>{if(Xi(e)&&Te>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(const t of Es)t();isFinite(Te)||(Te=e.type==="visibilitychange"?e.timeStamp:0,Tt("prerenderingchange",mt,!0))}},Xe=()=>{if(_.document&&Te<0){const e=Ce();Te=(_.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>e)[0]?.startTime)??Vi(),se("visibilitychange",mt,!0),se("pagehide",mt,!0),se("prerenderingchange",mt,!0)}return{get firstHiddenTime(){return Te},onHidden(e){Es.add(e)}}};function Xi(e){return e.type==="pagehide"||_.document?.visibilityState==="hidden"}const Ji=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Je=(e,t=-1)=>{const n=Ve();let r="navigate";return n&&(_.document?.prerendering||Ce()>0?r="prerender":_.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:Ji(),navigationType:r}},Ht=new WeakMap;function An(e,t){try{return Ht.get(e)||Ht.set(e,new t),Ht.get(e)}catch{return new t}}class bt{constructor(){bt.prototype.__init.call(this),bt.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}}const Le=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(s=>{Promise.resolve().then(()=>{t(s.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},kn=e=>{let t=!1;return()=>{t||(e(),t=!0)}},Pt=e=>{_.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},Ki=[1800,3e3],Zi=(e,t={})=>{Pt(()=>{const n=Xe(),r=Je("FCP");let s;const o=Le("paint",i=>{for(const c of i)c.name==="first-contentful-paint"&&(o.disconnect(),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-Ce(),0),r.entries.push(c),s(!0)))});o&&(s=Ye(e,r,Ki,t.reportAllChanges))})},Qi=[.1,.25],ec=(e,t={})=>{Zi(kn(()=>{const n=Je("CLS",0);let r;const s=Xe(),a=An(t,bt),o=c=>{for(const u of c)a._processEntry(u);a._sessionValue>
16n.value&&(n.value=a._sessionValue,n.entries=a._sessionEntries,r())},i=Le("layout-shift",o);i&&(r=Ye(e,n,Qi,t.reportAllChanges),s.onHidden(()=>{o(i.takeRecords()),r(!0)}),_?.setTimeout?.(r))}))};let ys=0,Ut=1/0,rt=0;const tc=e=>{e.forEach(t=>{t.interactionId&&(Ut=Math.min(Ut,t.interactionId),rt=Math.max(rt,t.interactionId),ys=rt?(rt-Ut)/7+1:0)})};let tn;const Ts=()=>tn?ys:performance.interactionCount||0,nc=()=>{"interactionCount"in performance||tn||(tn=Le("event",tc,{type:"event",buffered:!0,durationThreshold:0}))},Bt=10;let bs=0;const rc=()=>Ts()-bs;class vt{constructor(){vt.prototype.__init.call(this),vt.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){bs=Ts(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(rc()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<Bt||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((s,a)=>a._latency-s._latency),this._longestInteractionList.length>Bt){const s=this._longestInteractionList.splice(Bt);for(const a of s)this._longestInteractionMap.delete(a.id)}this._onAfterProcessingINPCandidate?.(r)}}}const vs=e=>{const t=_.requestIdleCallback||_.setTimeout;_.document?.visibilityState==="hidden"?e():(e=kn(e),se("visibilitychange",e,{once:!0,capture:!0}),se("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),Tt("visibilitychange",e,{capture:!0}),Tt("pagehide",e,{capture:!0})}))},sc=[200,500],ac=40,oc=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;const n=Xe();Pt(()=>{nc();const r=Je("INP");let s;const a=An(t,vt),o=c=>{vs(()=>{for(const d of c)a._processEntry(d);const u=a._estimateP98LongestInteraction();u&&u._latency!==r.value&&(r.value=u._latency,r.entries=u.entries,s())})},i=Le("event",o,{durationThreshold:t.durationThreshold??ac});s=Ye(e,r,sc,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{o(i.takeRecords()),s(!0)}))})};class ic{_processEntry(t){this._onBeforeProcessingEntry?.(t)}}const cc=[2500,4e3],uc=(e,t={})=>{Pt(()=>{const n=Xe(),r=Je("LCP");let s;const a=An(t,ic),o=c=>{t.reportAllChanges||(c=c.slice(-1));for(const u of c)a._processEntry(u),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-Ce(),0),r.entries=[u],s())},i=Le("largest-contentful-paint",o);if(i){s=Ye(e,r,cc,t.reportAllChanges);const c=kn(()=>{o(i.takeRecords()),i.disconnect(),s(!0)}),u=d=>{d.isTrusted&&(vs(c),Tt(d.type,u,{capture:!0}))};for(const d of["keydown","click","visibilitychange"])se(d,u,{capture:!0})}})},dc=[800,1800],nn=e=>{_.document?.prerendering?Pt(()=>nn(e)):_.document?.readyState!=="complete"?addEventListener("load",()=>nn(e),!0):setTimeout(e)},lc=(e,t={})=>{const n=Je("TTFB"),r=Ye(e,n,dc,t.reportAllChanges);nn(()=>{const s=Ve();s&&(n.value=Math.max(s.responseStart-Ce(),0),n.entries=[s],r(!0))})},De={},It={};let Is,Rs,ws,Ns;function As(e,t=!1){return Ct("cls",e,mc,Is,t)}function ks(e,t=!1){return Ct("lcp",e,gc,Rs,t)}function fc(e){return Ct("ttfb",e,hc,ws)}function pc(e){return Ct("inp",e,_c,Ns)}function Ne(e,t){return Ps(e,t),It[e]||(Sc(e),It[e]=!0),Cs(e,t)}function Ke(e,t){const n=De[e];if(n?.length)for(const r of n)try{r(t)}catch(s){ze&&m.error(`Error while triggering instrumentation handler.
17Type: ${e}
18Name: ${ae(r)}
19Error:`,s)}}function mc(){return ec(e=>{Ke("cls",{metric:e}),Is=e},{reportAllChanges:!0})}function gc(){return uc(e=>{Ke("lcp",{metric:e}),Rs=e},{reportAllChanges:!0})}
19function hc(){return lc(e=>{Ke("ttfb",{metric:e}),ws=e})}function _c(){return oc(e=>{Ke("inp",{metric:e}),Ns=e})}function Ct(e,t,n,r,s=!1){Ps(e,t);let a;return It[e]||(a=n(),It[e]=!0),r&&t({metric:r}),Cs(e,t,s?a:void 0)}function Sc(e){const t={};e==="event"&&(t.durationThreshold=0),Le(e,n=>{Ke(e,{entries:n})},t)}function Ps(e,t){De[e]=De[e]||[],De[e].push(t)}function Cs(e,t,n){return()=>{n&&n();const r=De[e];if(!r)return;const s=r.indexOf(t);s!==-1&&r.splice(s,1)}}function Ec(e){return"duration"in e}const yc=e=>{const t=n=>{(n.type==="pagehide"||_.document?.visibilityState==="hidden")&&e(n)};se("visibilitychange",t,{capture:!0,once:!0}),se("pagehide",t,{capture:!0,once:!0})};function qt(e){return typeof e=="number"&&isFinite(e)}function ce(e,t,n,{...r}){const s=I(e).start_timestamp;return s&&s>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),yn(e,()=>{const a=Pe({startTime:t,...r});return a&&a.end(n),a})}function Pn(e){const t=R();if(!t)return;const{name:n,transaction:r,attributes:s,startTime:a}=e,{release:o,environment:i,sendDefaultPii:c}=t.getOptions(),d=t.getIntegrationByName("Replay")?.getReplayId(),l=N(),p=l.getUser(),f=p!==void 0?p.email||p.id||p.ip_address:void 0;let g;try{g=l.getScopeData().contexts.profile.profile_id}catch{}const S={release:o,environment:i,user:f||void 0,profile_id:g||void 0,replay_id:d||void 0,transaction:r,"user_agent.original":_.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...s};return Pe({name:n,attributes:S,startTime:a,experimental:{standalone:!0}})}function Ze(){return _.addEventListener&&_.performance}function w(e){return e/1e3}function Tc(e){let t="unknown",n="unknown",r="";for(const s of e){if(s==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=s}return r===e&&(t=r),{name:t,version:n}}function Ls(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function Os(e,t){let n,r=!1;function s(i){!r&&n&&t(i,n),r=!0}yc(()=>{s("pagehide")});const a=e.on("beforeStartNavigationSpan",(i,c)=>{c?.isRedirect||(s("navigation"),a(),o())}),o=e.on("afterStartPageLoadSpan",i=>{n=i.spanContext().spanId,o()})}function bc(e){let t=0,n;if(!Ls("layout-shift"))return;const r=As(({metric:s})=>{const a=s.entries[s.entries.length-1];a&&(t=s.value,n=a)},!0);Os(e,(s,a)=>{vc(t,n,a,s),r()})}function vc(e,t,n,r){ze&&m.log(`Sending CLS span (${e})`);const s=t?w((F()||0)+t.startTime):M(),a=N().getScopeData().transactionName,o=t?V(t.sources[0]?.node):"Layout shift",i={[A]:"auto.http.browser.cls",[oe]:"ui.webvital.cls",[ke]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((u,d)=>{i[`cls.source.${d+1}`]=V(u.node)});const c=Pn({name:o,transaction:a,attributes:i,startTime:s});c&&(c.addEvent("cls",{[We]:"",[je]:e}),c.end(s))}function Ic(e){let t=0,n;if(!Ls("largest-contentful-paint"))return;const r=ks(({metric:s})=>{const a=s.entries[s.entries.length-1];a&&(t=s.value,n=a)},!0);Os(e,(s,a)=>{Rc(t,n,a,s),r()})}function Rc(e,t,n,r){ze&&m.log(`Sending LCP span (${e})`);const s=w((F()||0)+(t?.startTime||0)),a=N().getScopeData().transactionName,o=t?V(t.element):"Largest contentful paint",i={[A]:"auto.http.browser.lcp",[oe]:"ui.webvital.lcp",[ke]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(i["lcp.element"]=V(t.element)),t.id&&(i["lcp.id"]=t.id),t.url&&(i["lcp.url"]=t.url),t.loadTime!=null&&(i["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(i["lcp.renderTime"]=t.renderTime),t.size!=null&&(i["lcp.size"]=t.size));const c=Pn({name:o,transaction:a,attributes:i,startTime:s});c&&(c.addEvent("lcp",{[We]:"millisecond",[je]:e}),c.end(s))}function W(e){return e&&((F()||performance.timeOrigin)+e)/1e3}function Ms(e){const t={};if(e.nextHopProtocol!=null){const{name:n,version:r}=Tc(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return F()||Ze()?.timeOrigin?wc({...t,"http.request.redirect_start":W(e.redirectStart),"http.request.redirect_end":W(e.redirectEnd),"http.request.worker_start":W(e.workerStart),"http.request.fetch_start":W(e.fetchStart),"http.request.domain_lookup_start":W(e.domainLookupStart),"http.request.domain_lookup_end":W(e.domainLookupEnd),"http.request.connect_start":W(e.connectStart),"http.request.secure_connection_start":W(e.secureConnectionStart),"http.request.connection_end":W(e.connectEnd),"http.request.request_start":W(e.requestStart),"http.request.response_start":W(e.responseStart),"http.request.response_end":W(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):t}function wc(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}const Nc=2147483647;let Sr=0,Y={},$,Rt;function Ac({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=Ze();if(r&&F()){r.mark&&_.performance.mark("sentry-tracing-init");const s=t?Ic(n):Oc(),a=Mc(),o=e?bc(n):Lc();return()=>{s?.(),a(),o?.()}}return()=>{}}function kc(){Ne("longtask",({entries:e})=>{const t=q();if(!t)return;const{op:n,start_timestamp:r}=I(t);for(const s of e){const a=w(F()+s.startTime),o=w(s.duration);n==="navigation"&&r&&a<r||ce(t,a,a+o,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[A]:"auto.ui.browser.metrics"}})}})}function Pc(){new PerformanceObserver(t=>{const n=q();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const s=w(F()+r.startTime),{start_timestamp:a,op:o}=I(n);if(o==="navigation"&&a&&s<a)continue;const i=w(r.duration),c={[A]:"auto.ui.browser.metrics"}
19,u=r.scripts[0],{invoker:d,invokerType:l,sourceURL:p,sourceFunctionName:f,sourceCharPosition:g}=u;c["browser.script.invoker"]=d,c["browser.script.invoker_type"]=l,p&&(c["code.filepath"]=p),f&&(c["code.function"]=f),g!==-1&&(c["browser.script.source_char_position"]=g),ce(n,s,s+i,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function Cc(){Ne("event",({entries:e})=>{const t=q();if(t){for(const n of e)if(n.name==="click"){const r=w(F()+n.startTime),s=w(n.duration),a={name:V(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[A]:"auto.ui.browser.metrics"}},o=Br(n.target);o&&(a.attributes["ui.component_name"]=o),ce(t,r,r+s,a)}}})}function Lc(){return As(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Y.cls={value:e.value,unit:""},Rt=t)},!0)}function Oc(){return ks(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Y.lcp={value:e.value,unit:"millisecond"},$=t)},!0)}function Mc(){return fc(({metric:e})=>{e.entries[e.entries.length-1]&&(Y.ttfb={value:e.value,unit:"millisecond"})})}function xc(e,t){const n=Ze(),r=F();if(!n?.getEntries||!r)return;const s=w(r),a=n.getEntries(),{op:o,start_timestamp:i}=I(e);a.slice(Sr).forEach(c=>{const u=w(c.startTime),d=w(Math.max(0,c.duration));if(!(o==="navigation"&&i&&s+u<i))switch(c.entryType){case"navigation":{Hc(e,c,s);break}case"mark":case"paint":case"measure":{Fc(e,c,u,d,s,t.ignorePerformanceApiSpans);const l=Xe(),p=c.startTime<l.firstHiddenTime;c.name==="first-paint"&&p&&(Y.fp={value:c.startTime,unit:"millisecond"}),c.name==="first-contentful-paint"&&p&&(Y.fcp={value:c.startTime,unit:"millisecond"});break}case"resource":{qc(e,c,c.name,u,d,s,t.ignoreResourceSpans);break}}}),Sr=Math.max(a.length-1,0),Wc(e),o==="pageload"&&(zc(Y),t.recordClsOnPageloadSpan||delete Y.cls,t.recordLcpOnPageloadSpan||delete Y.lcp,Object.entries(Y).forEach(([c,u])=>{Ga(c,u.value,u.unit)}),e.setAttribute("performance.timeOrigin",s),e.setAttribute("performance.activationStart",Ce()),jc(e,t)),$=void 0,Rt=void 0,Y={}}function $c(e){if(e?.entryType==="measure")try{return e.detail.devtools.track==="Components ⚛"}catch{return}}function Fc(e,t,n,r,s,a){if($c(t)||["mark","measure"].includes(t.entryType)&&ne(t.name,a))return;const o=Ve(!1),i=w(o?o.requestStart:0),c=s+Math.max(n,i),u=s+n,d=u+r,l={[A]:"auto.resource.browser.metrics"};c!==u&&(l["sentry.browser.measure_happened_before_request"]=!0,l["sentry.browser.measure_start_time"]=c),Dc(l,t),c<=d&&ce(e,c,d,{name:t.name,op:t.entryType,attributes:l})}function Dc(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,s]of Object.entries(n))if(s&&ve(s))e[`sentry.browser.measure.detail.${r}`]=s;else if(s!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(s)}catch{}return}if(ve(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function Hc(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{st(e,t,r,n)}),st(e,t,"secureConnection",n,"TLS/SSL"),st(e,t,"fetch",n,"cache"),st(e,t,"domainLookup",n,"DNS"),Bc(e,t,n)}function st(e,t,n,r,s=n){const a=Uc(n),o=t[a],i=t[`${n}Start`];!i||!o||ce(e,r+w(i),r+w(o),{op:`browser.${s}`,name:t.name,attributes:{[A]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function Uc(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function Bc(e,t,n){const r=n+w(t.requestStart),s=n+w(t.responseEnd),a=n+w(t.responseStart);t.responseEnd&&(ce(e,r,s,{op:"browser.request",name:t.name,attributes:{[A]:"auto.ui.browser.metrics"}}),ce(e,a,s,{op:"browser.response",name:t.name,attributes:{[A]:"auto.ui.browser.metrics"}}))}function qc(e,t,n,r,s,a,o){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const i=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(o?.includes(i))return;const c={[A]:"auto.resource.browser.metrics"},u=me(n);u.protocol&&(c["url.scheme"]=u.protocol.split(":").pop()),u.host&&(c["server.address"]=u.host),c["url.same_origin"]=n.includes(_.location.origin),Gc(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"]]);const d={...c,...Ms(t)},l=a+r,p=l+s;ce(e,l,p,{name:n.replace(_.location.origin,""),op:i,attributes:d})}function Wc(e){const t=_.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),qt(n.rtt)&&(Y["connection.rtt"]={value:n.rtt,unit:"millisecond"})),qt(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),qt(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function jc(e,t){$&&t.recordLcpOnPageloadSpan&&($.element&&e.setAttribute("lcp.element",V($.element)),$.id&&e.setAttribute("lcp.id",$.id),$.url&&e.setAttribute("lcp.url",$.url.trim().slice(0,200)),$.loadTime!=null&&e.setAttribute("lcp.loadTime",$.loadTime),$.renderTime!=null&&e.setAttribute("lcp.renderTime",$.renderTime),e.setAttribute("lcp.size",$.size)),Rt?.sources&&t.recordClsOnPageloadSpan&&Rt.sources.forEac
19h((n,r)=>e.setAttribute(`cls.source.${r+1}`,V(n.node)))}function Gc(e,t,n){n.forEach(([r,s])=>{const a=e[r];a!=null&&(typeof a=="number"&&a<Nc||typeof a=="string")&&(t[s]=a)})}function zc(e){const t=Ve(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function Yc(){return Ze()&&F()?Ne("element",Vc):()=>{}}const Vc=({entries:e})=>{const t=q(),n=t?B(t):void 0,r=n?I(n).description:N().getScopeData().transactionName;e.forEach(s=>{const a=s;if(!a.identifier)return;const o=a.name,i=a.renderTime,c=a.loadTime,[u,d]=c?[w(c),"load-time"]:i?[w(i),"render-time"]:[M(),"entry-emission"],l=o==="image-paint"?w(Math.max(0,(i??0)-(c??0))):0,p={[A]:"auto.ui.browser.elementtiming",[oe]:"ui.elementtiming",[K]:"component","sentry.span_start_time_source":d,"sentry.transaction_name":r,"element.id":a.id,"element.type":a.element?.tagName?.toLowerCase()||"unknown","element.size":a.naturalWidth&&a.naturalHeight?`${a.naturalWidth}x${a.naturalHeight}`:void 0,"element.render_time":i,"element.load_time":c,"element.url":a.url||void 0,"element.identifier":a.identifier,"element.paint_type":o};Ka({name:`element[${a.identifier}]`,attributes:p,startTime:u,onlyIfParent:!0},f=>{f.end(u+l)})})},Xc=1e3;let Er,rn,sn;function Jc(e){ue("dom",e),de("dom",Kc)}function Kc(){if(!_.document)return;const e=j.bind(null,"dom"),t=yr(e,!0);_.document.addEventListener("click",t,!1),_.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const s=_[n]?.prototype;s?.hasOwnProperty?.("addEventListener")&&(U(s,"addEventListener",function(a){return function(o,i,c){if(o==="click"||o=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},d=u[o]=u[o]||{refCount:0};if(!d.handler){const l=yr(e);d.handler=l,a.call(this,o,l,c)}d.refCount++}catch{}return a.call(this,o,i,c)}}),U(s,"removeEventListener",function(a){return function(o,i,c){if(o==="click"||o=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},d=u[o];d&&(d.refCount--,d.refCount<=0&&(a.call(this,o,d.handler,c),d.handler=void 0,delete u[o]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return a.call(this,o,i,c)}}))})}function Zc(e){if(e.type!==rn)return!1;try{if(!e.target||e.target._sentryId!==sn)return!1}catch{}return!0}function Qc(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function yr(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=eu(n);if(Qc(n.type,r))return;Ie(n,"_sentryCaptured",!0),r&&!r._sentryId&&Ie(r,"_sentryId",ut());
19const s=n.type==="keypress"?"input":n.type;Zc(n)||(e({event:n,name:s,global:t}),rn=n.type,sn=r?r._sentryId:void 0),clearTimeout(Er),Er=_.setTimeout(()=>{sn=void 0,rn=void 0},Xc)}}function eu(e){try{return e.target}catch{return null}}let at;function Cn(e){const t="history";ue(t,e),de(t,tu)}function tu(){if(_.addEventListener("popstate",()=>{const t=_.location.href,n=at;if(at=t,n===t)return;j("history",{from:n,to:t})}),!yi())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const s=at,a=nu(String(r));if(at=a,s===a)return t.apply(this,n);j("history",{from:s,to:a})}return t.apply(this,n)}}U(_.history,"pushState",e),U(_.history,"replaceState",e)}function nu(e){try{return new URL(e,_.location.origin).toString()}catch{return e}}const gt={};function ru(e){const t=gt[e];if(t)return t;let n=_[e];if(Zt(n))return gt[e]=n.bind(_);const r=_.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const a=s.contentWindow;a?.[e]&&(n=a[e]),r.head.removeChild(s)}catch(s){ze&&m.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(gt[e]=n.bind(_))}function su(e){gt[e]=void 0}const ye="__sentry_xhr_v3__";function xs(e){ue("xhr",e),de("xhr",au)}function au(){if(!_.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=new Error,a=M()*1e3,o=Fe(r[0])?r[0].toUpperCase():void 0,i=ou(r[1]);if(!o||!i)return t.apply(n,r);n[ye]={method:o,url:i,request_headers:{}},o==="POST"&&i.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[ye];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const d={endTimestamp:M()*1e3,startTimestamp:a,xhr:n,virtualError:s};j("xhr",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,d,l){return c(),u.apply(d,l)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,d,l){const[p,f]=l,g=d[ye];return g&&Fe(p)&&Fe(f)&&(g.request_headers[p.toLowerCase()]=f),u.apply(d,l)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[ye];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const a={startTimestamp:M()*1e3,xhr:n};return j("xhr",a),t.apply(n,r)}})}function ou(e){if(Fe(e))return e;try{return e.toString()}catch{}}function iu(e){let t;try{t=e.getAllResponseHeaders()}catch(n){return ze&&m.error(n,"Failed to get xhr response headers",e),{}}return t?t.split(`\r
20`).reduce((n,r)=>{const[s,a]=r.split(": ");return a&&(n[s.toLowerCase()]=a),n},{}):{}}const Wt=[],ht=new Map,Ee=new Map,cu=60;function uu(){if(Ze()&&F()){const t=du();return()=>{t()}}return()=>{}}const an={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 du(){return pc(lu)}const lu=({metric:e})=>{if(e.value==null)return;const t=w(e.value);if(t>cu)return;const n=e.entries.find(g=>g.duration===e.value&&an[g.name]);if(!n)return;const{interactionId:r}=n,s=an[n.name],a=w(F()+n.startTime),o=q(),i=o?B(o):void 0,c=r!=null?ht.get(r):void 0,u=c?.span||i,d=u?I(u).description:N().getScopeData().transactionName,l=c?.elementName||V(n.target),p={[A]:"auto.http.browser.inp",[oe]:`ui.interaction.${s}`,[ke]:n.duration},f=Pn({name:l,transaction:d,attributes:p,startTime:a});f&&(f.addEvent("inp",{[We]:"millisecond",[je]:e.value}),f.end(a+t))};function fu(){const e=Object.keys(an);Ci()&&e.forEach(s=>{_.addEventListener(s,t,{capture:!0,passive:!0})});function t(s){const a=s.target;if(!a)return;const o=V(a),i=Math.round(s.timeStamp);if(Ee.set(i,o),Ee.size>50){const c=Ee.keys().next().value;c!==void 0&&Ee.delete(c)}}function n(s){const a=Math.round(s.startTime);let o=Ee.get(a);if(!o)for(let i=-5;i<=5;i++){const c=Ee.get(a+i);if(c){o=c;break}}return o||"<unknown>"}const r=({entries:s})=>{const a=q(),o=a&&B(a);
20s.forEach(i=>{if(!Ec(i))return;const c=i.interactionId;if(c==null||ht.has(c))return;const u=i.target?V(i.target):n(i);if(Wt.length>10){const d=Wt.shift();ht.delete(d)}Wt.push(c),ht.set(c,{span:o,elementName:u})})};Ne("event",r),Ne("first-input",r)}const pu=40;function mu(e,t=ru("fetch")){let n=0,r=0;async function s(a){const o=a.body.length;n+=o,r++;const i={body:a.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const c=await t(e.url,i);return{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}}catch(c){throw su("fetch"),c}finally{n-=o,r--}}return Ro(e,s,vn(e.bufferSize||pu))}const G=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,gu=30,hu=50;function on(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?Re:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const _u=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Su=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Eu=/\((\S*)(?::(\d+))(?::(\d+))\)/,yu=/at (.+?) ?\(data:(.+?),/,Tu=e=>{const t=e.match(yu);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=_u.exec(e);if(n){const[,s,a,o]=n;return on(s,Re,+a,+o)}const r=Su.exec(e);if(r){if(r[2]&&r[2].indexOf("eval")===0){const i=Eu.exec(r[2]);i&&(r[2]=i[1],r[3]=i[2],r[4]=i[3])}const[a,o]=$s(r[1]||Re,r[2]);return on(o,a,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},bu=[gu,Tu],vu=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Iu=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ru=e=>{const t=vu.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=Iu.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let r=t[3],s=t[1]||Re;return[s,r]=$s(s,r),on(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},wu=[hu,Ru],Nu=[bu,wu],Au=Ta(...Nu),$s=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Re,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},ot=1024,ku="Breadcrumbs",Pu=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:ku,setup(n){t.console&&ai(Mu(n)),t.dom&&Jc(Ou(n,t.dom)),t.xhr&&xs(xu(n)),t.fetch&&gs($u(n)),t.history&&Cn(Fu(n)),t.sentry&&n.on("beforeSendEvent",Lu(n))}}}),Cu=Pu;function Lu(e){return function(n){R()===e&&he({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:pe(n)},{event:n})}}function Ou(e,t){return function(r){if(R()!==e)return;let s,a,o=typeof t=="object"?t.serializeAttribute:void 0,i=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;i&&i>ot&&(G&&m.warn(`\`dom.maxStringLength\` cannot exceed ${ot}, but a value of ${i} was configured. Sentry will use ${ot} instead.`),i=ot),typeof o=="string"&&(o=[o]);try{const u=r.event,d=Du(u)?u.target:u;s=V(d,{keyAttrs:o,maxStringLength:i}),a=Br(d)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};a&&(c.data={"ui.component_name":a}),he(c,{event:r.event,name:r.name,global:r.global})}}function Mu(e){return function(n){if(R()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:ii(n.level),message:qn(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${qn(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;he(r,{input:n.args,level:n.level})}}function xu(e){return function(n){if(R()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,a=n.xhr[ye];if(!r||!s||!a)return;const{method:o,url:i,status_code:c,body:u}=a,d={method:o,url:i,status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s},p={category:"xhr",data:d,type:"http",level:ms(c)};e.emit("beforeOutgoingRequestBreadcrumb",p,l),he(p,l)}}function $u(e){return function(n){if(R()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;
20if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const a=n.fetchData,o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s},i={category:"fetch",data:a,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",i,o),he(i,o)}else{const a=n.response,o={...n.fetchData,status_code:a?.status};n.fetchData.request_body_size,n.fetchData.response_body_size,a?.status;const i={input:n.args,response:a,startTimestamp:r,endTimestamp:s},c={category:"fetch",data:o,type:"http",level:ms(o.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,i),he(c,i)}}}function Fu(e){return function(n){if(R()!==e)return;let r=n.from,s=n.to;const a=me(y.location.href);let o=r?me(r):void 0;const i=me(s);o?.path||(o=a),a.protocol===i.protocol&&a.host===i.host&&(s=i.relative),a.protocol===o.protocol&&a.host===o.host&&(r=o.relative),he({category:"navigation",data:{from:r,to:s}})}}function Du(e){return!!e&&!!e.target}const Hu=["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"],Uu="BrowserApiErrors",Bu=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:Uu,setupOnce(){t.setTimeout&&U(y,"setTimeout",Tr),t.setInterval&&U(y,"setInterval",Tr),t.requestAnimationFrame&&U(y,"requestAnimationFrame",Wu),t.XMLHttpRequest&&"XMLHttpRequest"in y&&U(XMLHttpRequest.prototype,"send",ju);const n=t.eventTarget;n&&(Array.isArray(n)?n:Hu).forEach(s=>Gu(s,t))}}}),qu=Bu;function Tr(e){return function(...t){const n=t[0];return t[0]=we(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${ae(e)}`}}),e.apply(this,t)}}function Wu(e){return function(t){return e.apply(this,[we(t,{mechanism:{data:{handler:ae(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function ju(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&U(n,s,function(a){const o={mechanism:{data:{handler:ae(a)},handled:!1,type:`auto.browser.browserapierrors.xhr.${s}`}},i=_n(a);return i&&(o.mechanism.data.handler=ae(i)),we(a,o)})}),e.apply(this,t)}}function Gu(e,t){const r=y[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(U(r,"addEventListener",function(s){return function(a,o,i){try{zu(o)&&(o.handleEvent=we(o.handleEvent,{mechanism:{data:{handler:ae(o),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&Yu(this,a,o),s.apply(this,[a,we(o,{mechanism:{data:{handler:ae(o),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),i])}}),U(r,"removeEventListener",function(s){return function(a,o,i){try{const c=o.__sentry_wrapped__;c&&s.call(this,a,c,i)}catch{}return s.call(this,a,o,i)}}))}function zu(e){return typeof e.handleEvent=="function"}function Yu(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const Vu=()=>({name:"BrowserSession",setupOnce(){if(typeof y.document>"u"){G&&m.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Wn({ignoreDuration:!0}),jn(),Cn(({from:e,to:t})=>{e!==void 0&&e!==t&&(Wn({ignoreDuration:!0}),jn())})}}),Xu="GlobalHandlers",Ju=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Xu,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Zu(n),br("onerror")),t.onunhandledrejection&&(Qu(n),br("onunhandledrejection"))}}}),Ku=Ju;function Zu(e){Wr(t=>{const{stackParser:n,attachStacktrace:r}=Fs();if(R()!==e||_s())return;const{msg:s,url:a,line:o,column:i,error:c}=t,u=nd(Nn(n,c||s,void 0,r,!1),a,o,i);u.level="error",qr(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function Qu(e){jr(t=>{const{stackParser:n,attachStacktrace:r}=Fs();if(R()!==e||_s())return;const s=ed(t),a=ve(s)?td(s):Nn(n,s,void 0,r,!0);a.level="error",qr(a,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function ed(e){if(ve(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 td(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}
20function nd(e,t,n,r){const s=e.exception=e.exception||{},a=s.values=s.values||[],o=a[0]=a[0]||{},i=o.stacktrace=o.stacktrace||{},c=i.frames=i.frames||[],u=r,d=n,l=rd(t)??Ge();return c.length===0&&c.push({colno:u,filename:l,function:Re,in_app:!0,lineno:d}),e}function br(e){G&&m.log(`Global Handler attached: ${e}`)}function Fs(){return R()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function rd(e){if(!(!Fe(e)||e.length===0))return e.startsWith("data:")?`<${re(e,!1)}>`:e}const sd=()=>({name:"HttpContext",preprocessEvent(e){if(!y.navigator&&!y.location&&!y.document)return;const t=In(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}),ad="cause",od=5,id="LinkedErrors",cd=((e={})=>{const t=e.limit||od,n=e.key||ad;return{name:id,preprocessEvent(r,s,a){const o=a.getOptions();si(Rn,o.stackParser,n,t,r,s)}}}),ud=cd;function dd(){return ld()?(G&&Dr(()=>{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 ld(){if(typeof y.window>"u")return!1;const e=y;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const n=Ge(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(y===y.top&&r.some(a=>n.startsWith(`${a}://`)))}function cn(e){return[Jo(),zo(),qu(),Cu(),Ku(),ud(),di(),sd(),Vu()]}function fd(e={}){const t=!e.skipBrowserExtensionCheck&&dd();let n=e.defaultIntegrations==null?cn():e.defaultIntegrations;const r={...e,enabled:t?!1:e.enabled,stackParser:ba(e.stackParser||Au),integrations:fo({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||mu};return $o(Gi,r)}function pd(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function Ds(e){try{return new URL(e,y.location.origin).href}catch{return}}function md(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function Hs(e){try{return new Headers(e)}catch{return}}const vr=new WeakMap,jt=new Map,Us={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function gd(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:s,shouldCreateSpanForRequest:a,enableHTTPTimings:o,tracePropagationTargets:i,onRequestSpanStart:c,onRequestSpanEnd:u}={...Us,...t},d=typeof a=="function"?a:g=>!0,l=g=>hd(g,i),p={},f=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(g=>(g.type==="transaction"&&g.spans&&g.spans.forEach(S=>{if(S.op==="http.client"){const E=jt.get(S.span_id);E&&(S.timestamp=E/1e3,jt.delete(S.span_id))}}),g)),s&&vi(g=>{if(g.response){const S=vr.get(g.response);S&&g.endTimestamp&&jt.set(S,g.endTimestamp)}}),gs(g=>{const S=mi(g,d,l,p,{propagateTraceparent:f,onRequestSpanEnd:u});if(g.response&&g.fetchData.__span&&vr.set(g.response,g.fetchData.__span),S){const E=Ds(g.fetchData.url),x=E?me(E).host:void 0;S.setAttributes({"http.url":E?re(E):void 0,"server.address":x}),o&&Ir(S),c?.(S,{headers:g.headers})}})),r&&xs(g=>{const S=_d(g,d,l,p,f,u);S&&(o&&Ir(S),c?.(S,{headers:Hs(g.xhr.__sentry_xhr_v3__?.request_headers)}))})}function Ir(e){const{url:t}=I(e).data;if(!t||typeof t!="string")return;const n=Ne("resource",({entries:r})=>{r.forEach(s=>{md(s)&&s.name.endsWith(t)&&(e.setAttributes(Ms(s)),setTimeout(n))})})}function hd(e,t){const n=Ge();if(n){let r,s;try{r=new URL(e,n),s=new URL(n).origin}catch{return!1}const a=r.origin===s;return t?ne(r.toString(),t)||a&&ne(r.pathname,t):a}else{const r=!!e.match(/^\/(?!\/)/);return t?ne(e,t):r}}function _d(e,t,n,r,s,a){const o=e.xhr,i=o?.[ye];if(!o||o.__sentry_own_request__||!i)return;const{url:c,method:u}=i,d=Z()&&t(c);if(e.endTimestamp&&d){const x=o.__sentry_xhr_span_id__;if(!x)return;const D=r[x];D&&i.status_code!==void 0&&(Hr(D,i.status_code),D.end(),a?.(D,{headers:Hs(iu(o)),error:e.error}),delete r[x]);return}const l=Ds(c),p=me(l||c),f=re(Uo(c)),g=!!q(),S=d&&g?Pe({name:`${u} ${f}`,attributes:{url:re(c),type:"xhr","http.method":u,"http.url":l?re(l):void 0,"server.address":p?.host,[A]:"auto.http.browser",[oe]:"http.client",...p?.search&&{"http.query":p?.search},...p?.hash&&{"http.fragment":p?.hash}}}):new ie;o.__sentry_xhr_span_id__=S.spanContext().spanId,r[o.__sentry_xhr_span_id__]=S,n(c)&&Sd(o,Z()&&g?S:void 0,s);const E=R();return E&&E.emit("beforeOutgoingRequestSpan",S,e),S}function Sd(e,t,n){const{"sentry-trace":r,baggage:s,traceparent:a}=ls({span:t,propagateTraceparent:n});r&&Ed(e,r,s,a)}function Ed(e,t,n,r){const s=e.__sentry_xhr_v3__?.request_headers;if(!(s?.["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),r&&!s?.traceparent&&e.setRequestHeader("traceparent",r),n){const a=s?.baggage;(!a||!pd(a))&&e.setRequestHeader("baggage",n)}}catch{}}function yd(){y.document?y.document.addEventListener("visibilitychange",()=>{const e=q();if(!e)return;const t=B(e);if(y.document.hidden&&t){const n="cancelled",{op:r,status:s}=I(t);G&&m.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),s||t.setStatus({code:be,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):G&&m.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const Td=3600,Bs="sentry_previous_trace",bd="sentry.previous_trace";function vd(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let s=r?wd():void 0;e.on("spanStart",o=>{if(B(o)!==o)return;const i=N().getPropagationContext();s=Id(s,o,i),r&&Rd(s)});let a=!0;n&&e.on("beforeSampling",o=>{if(!s)return;const i=N(),c=i.getPropagationContext();if(a&&c.parentSpanId){a=!1;return}i.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(s.sampleRate),sampled:String(un(s.spanContext))},sampleRand:s.sampleRand}),o.parentSampled=un(s.spanContext),o.parentSampleRate=s.sampleRate,o.spanAttributes={...o.spanAttributes,[va]:s.sampleRate}})}
20function Id(e,t,n){const r=I(t);function s(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[Or])}catch{return 0}}const a={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:s(),sampleRand:n.sampleRand};if(!e)return a;const o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=Td&&(G&&m.log(`Adding previous_trace \`${JSON.stringify(o)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:o,attributes:{[Ia]:"previous_trace"}}),t.setAttribute(bd,`${o.traceId}-${o.spanId}-${un(o)?1:0}`)),a)}function Rd(e){try{y.sessionStorage.setItem(Bs,JSON.stringify(e))}catch(t){G&&m.warn("Could not store previous trace in sessionStorage",t)}}function wd(){try{const e=y.sessionStorage?.getItem(Bs);return JSON.parse(e)}catch{return}}function un(e){return e.traceFlags===1}const Nd="BrowserTracing",Ad={...lt,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...Us},kd=((e={})=>{const t={name:void 0,source:void 0},n=y.document,{enableInp:r,enableElementTiming:s,enableLongTask:a,enableLongAnimationFrame:o,_experiments:{enableInteractions:i,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u},beforeStartSpan:d,idleTimeout:l,finalTimeout:p,childSpanTimeout:f,markBackgroundSpan:g,traceFetch:S,traceXHR:E,trackFetchStreamPerformance:x,shouldCreateSpanForRequest:D,enableHTTPTimings:Qe,ignoreResourceSpans:Lt,ignorePerformanceApiSpans:Ot,instrumentPageLoad:et,instrumentNavigation:b,detectRedirects:k,linkPreviousTrace:Se,consistentTraceSampling:tt,enableReportPageLoaded:X,onRequestSpanStart:Oe,onRequestSpanEnd:Q}={...Ad,...e};let C,le,J;function te(v,L,T=!0){const O=L.op==="pageload",H=L.name,z=d?d(L):L,fe=z.attributes||{};if(H!==z.name&&(fe[K]="custom",z.attributes=fe),!T){const Me=gn();Pe({...z,startTime:Me}).end(Me);return}t.name=z.name,t.source=fe[K];const ee=Jr(z,{idleTimeout:l,finalTimeout:p,childSpanTimeout:f,disableAutoFinish:O,beforeSpanEnd:Me=>{C?.(),xc(Me,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:Lt,ignorePerformanceApiSpans:Ot}),wr(v,void 0);const On=N(),js=On.getPropagationContext();On.setPropagationContext({...js,traceId:ee.spanContext().traceId,sampled:wt(ee),dsc:ge(Me)}
20),O&&(J=void 0)},trimIdleSpanEndTimestamp:!X});O&&X&&(J=ee),wr(v,ee);function Ln(){n&&["interactive","complete"].includes(n.readyState)&&v.emit("idleSpanEnableAutoFinish",ee)}O&&!X&&n&&(n.addEventListener("readystatechange",()=>{Ln()}),Ln())}return{name:Nd,setup(v){if(Aa(),C=Ac({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:u||!1,client:v}),r&&uu(),s&&Yc(),o&&P.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?Pc():a&&kc(),i&&Cc(),k&&n){const T=()=>{le=M()};addEventListener("click",T,{capture:!0}),addEventListener("keydown",T,{capture:!0,passive:!0})}function L(){const T=qe(v);T&&!I(T).timestamp&&(G&&m.log(`[Tracing] Finishing current active span with op: ${I(T).op}`),T.setAttribute(He,"cancelled"),T.end())}v.on("startNavigationSpan",(T,O)=>{if(R()!==v)return;if(O?.isRedirect){G&&m.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),te(v,{op:"navigation.redirect",...T},!1);return}le=void 0,L(),fn().setPropagationContext({traceId:_t(),sampleRand:Math.random(),propagationSpanId:Z()?void 0:xe()});const H=N();H.setPropagationContext({traceId:_t(),sampleRand:Math.random(),propagationSpanId:Z()?void 0:xe()}),H.setSDKProcessingMetadata({normalizedRequest:void 0}),te(v,{op:"navigation",...T,parentSpan:null,forceTransaction:!0})}),v.on("startPageLoadSpan",(T,O={})=>{if(R()!==v)return;L();const H=O.sentryTrace||Rr("sentry-trace"),z=O.baggage||Rr("baggage"),fe=Ra(H,z),ee=N();ee.setPropagationContext(fe),Z()||(ee.getPropagationContext().propagationSpanId=xe()),ee.setSDKProcessingMetadata({normalizedRequest:In()}),te(v,{op:"pageload",...T})}),v.on("endPageloadSpan",()=>{X&&J&&(J.setAttribute(He,"reportPageLoaded"),J.end())})},afterAllSetup(v){let L=Ge();if(Se!=="off"&&vd(v,{linkPreviousTrace:Se,consistentTraceSampling:tt}),y.location){if(et){const T=F();qs(v,{name:y.location.pathname,startTime:T?T/1e3:void 0,attributes:{[K]:"url",[A]:"auto.pageload.browser"}})}b&&Cn(({to:T,from:O})=>{if(O===void 0&&L?.indexOf(T)!==-1){L=void 0;return}L=void 0;const H=us(T),z=qe(v),fe=z&&k&&Ld(z,le);Pd(v,{name:H?.pathname||y.location.pathname,attributes:{[K]:"url",[A]:"auto.navigation.browser"}},{url:T,isRedirect:fe})})}g&&yd(),i&&Cd(v,l,p,f,t),r&&fu(),gd(v,{traceFetch:S,traceXHR:E,trackFetchStreamPerformance:x,tracePropagationTargets:v.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:D,enableHTTPTimings:Qe,onRequestSpanStart:Oe,onRequestSpanEnd:Q})}}});function qs(e,t,n){e.emit("startPageLoadSpan",t,n),N().setTransactionName(t.name);const r=qe(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function Pd(e,t,n){const{url:r,isRedirect:s}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:s}),e.emit("startNavigationSpan",t,{isRedirect:s});const a=N();return a.setTransactionName(t.name),r&&!s&&a.setSDKProcessingMetadata({normalizedRequest:{...In(),url:r}}),qe(e)}function Rr(e){return y.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function Cd(e,t,n,r,s){const a=y.document;let o;const i=()=>{const c="ui.action.click",u=qe(e);
20if(u){const d=I(u).op;if(["navigation","pageload"].includes(d)){G&&m.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(o&&(o.setAttribute(He,"interactionInterrupted"),o.end(),o=void 0),!s.name){G&&m.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}o=Jr({name:s.name,op:c,attributes:{[K]:s.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};a&&addEventListener("click",i,{capture:!0})}const Ws="_sentry_idleSpan";function qe(e){return e[Ws]}function wr(e,t){Ie(e,Ws,t)}const Nr=1.5;function Ld(e,t){const n=I(e),r=gn(),s=n.start_timestamp;return!(r-s>Nr||t&&r-t<=Nr)}const Od=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Md(e){return y.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function xd(e={}){const t=kd({...e,instrumentPageLoad:!1});return{...t,afterAllSetup(n){if(t.afterAllSetup?.(n),y.location&&e.instrumentPageLoad!=!1){const r=F(),{name:s,source:a}=$d();qs(n,{name:s,startTime:r?r/1e3:void 0,attributes:{[K]:a,[A]:"auto.pageload.astro"}})}}}}function $d(){try{const e=Md("sentry-route-name");if(e){const t=decodeURIComponent(e);return Od&&m.log(`[Tracing] Using route name from Sentry HTML meta-tag: ${t}`),{name:t,source:"route"}}}catch{}return{name:y.location.pathname,source:"url"}}function Fd(e){const t={defaultIntegrations:Dd(),...e};return ds(t,"astro",["astro","browser"]),fd(t)}function Dd(e){return typeof __SENTRY_TRACING__>"u"||__SENTRY_TRACING__?[...cn(),xd()]:cn()}Fd({dsn:"https://0b3a64882cc8169450051b98b9f2cba3@o4506106153861120.ingest.us.sentry.io/4508213116928000",environment:"production",tracesSampleRate:.01,tracePropagationTargets:["localhost",/^https:\/\/.*\.hungryroot\.com\/api/],replaysSessionSampleRate:0,replaysOnErrorSampleRate:0,ignoreErrors:["Load failed"]});
21//# sourceMappingURL=page.D6xMEjcU.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.